original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
|---|---|---|
setSelectedItem(item)
|
setSelectedItem ( item )
|
setSelectedItem [MASK] item )
|
setIsSearchListVisible(false)
|
setIsSearchListVisible ( false )
|
setIsSearchListVisible [MASK] false [MASK]
|
props.onSelectCallback(item, item[props.labelField], index)
|
props.onSelectCallback ( item , item [ props.labelField ] , index )
|
props.onSelectCallback [MASK] item , item [ [MASK] ] , index )
|
}
|
}
|
}
|
const [referenceRef, setReferenceRef] = useState(null)
|
const [ referenceRef , setReferenceRef ] = useState ( null )
|
const [ referenceRef , [MASK] ] = useState ( null )
|
const [popperRef, setPopperRef] = useState(null)
|
const [ popperRef , setPopperRef ] = useState ( null )
|
const [ popperRef , setPopperRef ] = useState ( null )
|
})
|
} )
|
} )
|
return
|
return
|
return
|
setIsSearchListVisible(false)
|
setIsSearchListVisible ( false )
|
setIsSearchListVisible ( false )
|
document.addEventListener('click', handleClickOutside)
|
document.addEventListener ( 'click ' , handleClickOutside )
|
document.addEventListener [MASK] 'click ' , handleClickOutside [MASK]
|
document.addEventListener('focusin', handleClickOutside)
|
document.addEventListener ( 'focusin ' , handleClickOutside )
|
document.addEventListener ( 'focusin ' , handleClickOutside )
|
document.removeEventListener('click', handleClickOutside)
|
document.removeEventListener ( 'click ' , handleClickOutside )
|
document.removeEventListener [MASK] 'click ' , handleClickOutside )
|
document.addEventListener('focusin', handleClickOutside)
|
document.addEventListener ( 'focusin ' , handleClickOutside )
|
[MASK] ( 'focusin ' , handleClickOutside )
|
}
|
}
|
}
|
}, [popperRef, referenceRef])
|
} , [ popperRef , referenceRef ] )
|
} , [ popperRef , referenceRef ] )
|
<Element type={'strong'}>{optionList?.length}  
|
< Element type= { 'strong ' } > { optionList ? .length } & nbsp
|
< Element type= { 'strong ' } > { optionList ? .length } & nbsp
|
)
|
)
|
)
|
}
|
}
|
}
|
export default React.forwardRef(AutoComplete)
|
export default React.forwardRef ( AutoComplete )
|
export default React.forwardRef ( [MASK] )
|
import React, { useState, useCallback } from 'react'
|
import React , { useState , useCallback } from 'react '
|
import React , { [MASK] , useCallback } from 'react '
|
import ConfirmationModal from './ConfirmationModal'
|
import ConfirmationModal from './ConfirmationModal '
|
import ConfirmationModal from './ConfirmationModal '
|
import Button from '@protoweb/button'
|
import Button from ' @ protoweb/button '
|
import Button from ' @ protoweb/button [MASK]
|
}
|
}
|
}
|
const [show, setShow] = useState(false)
|
const [ show , setShow ] = useState ( false )
|
const [ show , setShow ] = [MASK] ( false [MASK]
|
args.onClose()
|
args.onClose ( )
|
args.onClose ( )
|
setShow(false)
|
setShow ( false )
|
[MASK] ( false )
|
args.onConfirm()
|
args.onConfirm ( )
|
[MASK] ( )
|
setShow(false)
|
setShow ( false )
|
setShow ( false )
|
)
|
)
|
)
|
}
|
}
|
}
|
export const Default = Template.bind({})
|
export const Default = Template.bind ( { } )
|
export const Default = Template.bind ( { } )
|
}
|
}
|
}
|
import useLocalization from '@hooks/useLocalization'
|
import useLocalization from ' @ hooks/useLocalization '
|
import [MASK] from ' [MASK] hooks/useLocalization [MASK]
|
import { Button, Modal, Row, Element } from '@protolibrary/components'
|
import { Button , Modal , Row , Element } from ' @ protolibrary/components '
|
import { Button , Modal , Row , Element } from ' @ protolibrary/components '
|
import React from 'react'
|
import React from 'react '
|
import [MASK] from 'react '
|
show?: boolean
|
show ? : boolean
|
show ? : [MASK]
|
onConfirm?: () => void
|
onConfirm ? : ( ) = > void
|
onConfirm ? [MASK] ( [MASK] = > void
|
onClose: () => void
|
onClose : ( ) = > void
|
onClose : ( ) = > void
|
size?: string
|
size ? : string
|
[MASK] ? : string
|
content?: any
|
content ? : any
|
content ? [MASK] any
|
title?: string
|
title ? : string
|
title ? : string
|
confirmText?: string
|
confirmText ? : string
|
confirmText ? : string
|
cancelText?: string
|
cancelText ? : string
|
cancelText ? : string
|
closeControl?: boolean
|
closeControl ? : boolean
|
closeControl ? : boolean
|
onClose()
|
onClose ( )
|
onClose ( [MASK]
|
onClose()
|
onClose ( )
|
onClose ( )
|
onConfirm()
|
onConfirm ( )
|
onConfirm [MASK] )
|
!closeControl && onClose()
|
! closeControl & & onClose ( )
|
[MASK] closeControl & & onClose ( )
|
)
|
)
|
)
|
}
|
}
|
}
|
export default ConfirmationModal
|
export default ConfirmationModal
|
export [MASK] ConfirmationModal
|
import DropDown from '@common/components/dropdown'
|
import DropDown from ' @ common/components/dropdown '
|
import DropDown from [MASK] @ common/components/dropdown '
|
import React, { useMemo } from 'react'
|
import React , { useMemo } from 'react '
|
import [MASK] , { useMemo } [MASK] 'react [MASK]
|
import policyService from '@services/PolicyService'
|
import policyService from ' @ services/PolicyService '
|
import [MASK] from [MASK] @ services/PolicyService '
|
import useLocalization from '@hooks/useLocalization'
|
import useLocalization from ' @ hooks/useLocalization '
|
import [MASK] from [MASK] @ hooks/useLocalization '
|
import ICONS from '@resources/icons'
|
import ICONS from ' @ resources/icons '
|
import ICONS [MASK] ' @ [MASK] '
|
import { DownloadPdfFile } from '@utils/DownloadExcel'
|
import { DownloadPdfFile } from ' @ utils/DownloadExcel '
|
import [MASK] DownloadPdfFile } from ' @ utils/DownloadExcel '
|
import toastManager from '@common/toast/ToastManager'
|
import toastManager from ' @ common/toast/ToastManager '
|
import [MASK] [MASK] ' @ [MASK] [MASK]
|
import restClient from '@services/RestClient'
|
import restClient from ' @ services/RestClient '
|
import restClient from ' @ services/RestClient '
|
refDataTable: any
|
refDataTable : any
|
refDataTable : any
|
fileName: string
|
fileName : string
|
fileName : string
|
header: string
|
header : string
|
[MASK] : string
|
columns: Array<{ header: string
|
columns : Array < { header : string
|
columns : [MASK] < { header : string
|
headerDefinition: string
|
headerDefinition : string
|
[MASK] : string
|
type: string }>
|
type : string } >
|
type : [MASK] } >
|
types: Array<'excel-current' | 'excel-all' | 'csv'>
|
types : Array < 'excel-current ' | 'excel-all ' | 'csv ' >
|
types : Array [MASK] 'excel-current ' | 'excel-all ' [MASK] 'csv ' >
|
show: boolean
|
show : boolean
|
[MASK] : boolean
|
header: string
|
header : string
|
header : string
|
headerDefinition: string
|
headerDefinition : string
|
headerDefinition : string
|
type: string
|
type : string
|
type : string
|
url: string
|
url : string
|
[MASK] : string
|
fileName: string
|
fileName : string
|
[MASK] : [MASK]
|
exportType: 'CURRENT' | 'ALL'
|
exportType : 'CURRENT ' | 'ALL '
|
exportType : 'CURRENT ' | 'ALL '
|
tableHeader: string
|
tableHeader : string
|
tableHeader : string
|
columns: col[]
|
columns : col [ ]
|
columns : [MASK] [ ]
|
httpMethod: 'GET' | 'POST'
|
httpMethod : 'GET ' | 'POST '
|
httpMethod : 'GET ' | 'POST '
|
payloadBody?: string
|
payloadBody ? : string
|
payloadBody ? : string
|
successMessage: any
|
successMessage : any
|
successMessage [MASK] any
|
msPath: string
|
msPath : string
|
msPath : string
|
}
|
}
|
[MASK]
|
data = { ...data, payloadBody: props?.payloadBody }
|
data = { ... data , payloadBody : props ? .payloadBody }
|
data = [MASK] ... data , payloadBody [MASK] [MASK] ? .payloadBody }
|
DownloadPdfFile(response.payload.base64Content, response.payload.fileName)
|
DownloadPdfFile ( response.payload.base64Content , response.payload.fileName )
|
DownloadPdfFile ( response.payload.base64Content , response.payload.fileName )
|
toastManager.show('success', props.successMessage)
|
toastManager.show ( 'success ' , props.successMessage )
|
toastManager.show ( 'success ' , props.successMessage )
|
.catch(err => reject(err))
|
.catch ( err = > reject ( err ) )
|
.catch ( [MASK] = > reject ( err ) )
|
})
|
} )
|
} )
|
}
|
}
|
}
|
const { t } = useLocalization()
|
const { t } = useLocalization ( )
|
const { t } = useLocalization [MASK] )
|
const options: any = []
|
const options : any = [ ]
|
const options : any = [ ]
|
exportExcel('CURRENT')
|
exportExcel ( 'CURRENT ' )
|
exportExcel [MASK] 'CURRENT [MASK] )
|
})
|
} )
|
} )
|
exportExcel('ALL')
|
exportExcel ( 'ALL ' )
|
exportExcel ( [MASK] ' )
|
})
|
} )
|
[MASK] )
|
exportExcel('ALL')
|
exportExcel ( 'ALL ' )
|
[MASK] ( 'ALL ' )
|
})
|
} )
|
} )
|
return options
|
return options
|
[MASK] options
|
}, [types])
|
} , [ types ] )
|
} [MASK] [ types ] )
|
const { props, params, pageParams } = refDataTable?.current
|
const { props , params , pageParams } = refDataTable ? .current
|
const { props , params , pageParams } = refDataTable ? .current
|
const gridOptions = props.gridOptions
|
const gridOptions = props.gridOptions
|
[MASK] gridOptions = [MASK]
|
const tempBody = params
|
const tempBody = params
|
const [MASK] = params
|
const tempUrl = gridOptions.url.split('/')
|
const tempUrl = gridOptions.url.split ( '/ ' )
|
const [MASK] [MASK] gridOptions.url.split ( '/ ' )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.