{"version":3,"sources":["webpack://crmWeb/../src/kuika/data-entry/selectbox/selectbox.scss","webpack://crmWeb/../src/kuika/data-entry/selectbox/k-debounceSelect.tsx","webpack://crmWeb/../src/kuika/data-entry/selectbox/k-selectbox.tsx","webpack://crmWeb/../src/kuika/display/icon/k-icon.tsx"],"names":[],"mappings":"kLAGI,EAA0B,IAA4B,KAE1D,EAAwB,KAAK,CAAC,EAAO,GAAI,0EAA2E,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,gEAAgE,MAAQ,GAAG,SAAW,mBAAmB,eAAiB,CAAC;AAAA;AAAA;AAAA,GAAuF,WAAa,MAE9W,UAAe,G,8kBCYf,gBAA6B,gBAAgE,CAC3F,YAAY,EAAyB,CACnC,MAAM,GAMR,mBAAgB,eAAU,GAAU,KAAK,aAAa,GAAQ,KAE9D,kBAAgB,GAAU,CACpB,KAAK,MAAM,qBACb,KAAK,MAAM,oBAAoB,IAInC,kBAAgB,GAAU,CACxB,KAAK,SAAS,CACZ,SAAU,KAGR,KAAK,MAAM,UACb,KAAK,MAAM,SAAS,EAAO,KAI/B,cAAW,IACU,UAAQ,KAAK,OAxBhC,KAAK,MAAQ,CACX,SAAU,IA2Bd,QAAoB,CAClB,KAAM,CAAE,YAAa,KAAK,MAC1B,MACE,iBAAC,UAAD,SACM,KAAK,YADX,CAEE,aAAY,GACZ,gBAAiB,EAAW,gBAAC,IAAD,CAAM,KAAK,UAAa,KACpD,aAAc,GACd,SAAU,KAAK,cACf,SAAU,KAAK,aACf,WAAU,OAMlB,KAAM,IAAa,QAAiB,I,mbCpCpC,gBAAyB,gBAAgE,CAGvF,YAAY,EAAyB,CACnC,MAAM,GAHA,8BAA2B,GAS5B,gBAAa,IACX,KAAK,MAAM,QAGpB,uBAAoB,IAAM,CACxB,KAAK,kBACL,KAAK,yBAEH,KAAK,MAAM,aACX,KAAK,MAAM,QAAU,QACrB,KAAK,MAAM,UACX,KAAK,MAAM,OAAS,YACpB,MAAO,MAAK,MAAM,UAAa,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vB,SAAK,MAAM,QAAX,cAAkB,aACpB,MAAO,GAAM,YAGb,KAAK,MAAM,mBACb,GAAM,OAAS,WAEjB,EAAM,cAAgB,SACf,GA3BP,KAAK,MAAQ,GA8Bf,QAAoB,CAClB,MAAI,MAAK,MAAM,UAEX,gCACE,gBAAC,KAAD,CAAS,MAAO,KAAK,MAAM,WACzB,gBAAC,IAAD,KAAG,MAAO,KAAK,gBAAoB,KAAK,YAAxC,CAAoD,UAAU,yBAC3D,KAAK,MAAM,YAMlB,MAAK,MAAM,SACb,MAAG,MAAO,KAAK,gBAAoB,KAAK,YAAxC,CAAoD,UAAU,+BAC3D,KAAK,MAAM,UAId,gCACE,gBAAC,IAAD,KAAG,MAAO,KAAK,gBAAoB,KAAK,YAAxC,CAAoD,UAAU,yBAC3D,KAAK,MAAM,aAOtB,KAAM,IAAQ,QAAiB,K,sBH1E/B,MAAgB,EAAQ,OACxB,EAAmB,EAAQ,OAC3B,EAAqB,EAAQ,OAC7B,EAA0B,EAAQ,OAClC,EAA+B,EAAQ,OACvC,EAAgC,EAAQ,OACxC,EAAoB,EAAQ,OAE5B,2BAEA,SAEA,sBACA,kBAEA,6BAEA,WACA,uBAEA,aAIA","file":"src.deprecatedWebComponents.f8f6872514c5cc87206d.js","sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../../../../../../../code-generation/platform/dependencies/node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../../../../../../../code-generation/platform/dependencies/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".ant-select-multiple .ant-select-selection-search{width:auto!important}\", \"\",{\"version\":3,\"sources\":[\"webpack://./../src/kuika/data-entry/selectbox/selectbox.scss\"],\"names\":[],\"mappings\":\"AAAA,kDACE,oBAAA\",\"sourcesContent\":[\".ant-select-multiple .ant-select-selection-search {\\n width: auto !important;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import { Select, Spin } from \"antd\";\nimport { SelectProps } from \"antd/lib/select\";\nimport _, { debounce } from \"lodash\";\nimport { PureComponent, ReactNode } from \"react\";\nimport { CommonProps } from \"../../../components/web-components/common/common-props\";\nimport withCommonEvents from \"../../../shared/hoc/with-common-events\";\n\ninterface IKSelectBoxProps extends SelectProps {\n datatextfield?: string;\n datavaluefield?: any;\n widthType?: \"fill\" | \"content\";\n onSearchValueChange: (searchValue: string) => void;\n getTextFromValue: (value: any) => void;\n}\n\ninterface IKSelectBoxState {\n fetching: boolean;\n}\n\nclass DebounceSelect extends PureComponent {\n constructor(props: IKSelectBoxProps) {\n super(props);\n this.state = {\n fetching: false\n };\n }\n\n waitAndSearch = debounce((value) => this.handleSearch(value), 800);\n\n handleSearch = (value) => {\n if (this.props.onSearchValueChange) {\n this.props.onSearchValueChange(value);\n }\n };\n\n handleChange = (value) => {\n this.setState({\n fetching: false\n });\n\n if (this.props.onChange) {\n this.props.onChange(value, []);\n }\n };\n\n getProps = () => {\n const props: any = _.clone(this.props);\n return props;\n };\n\n render(): ReactNode {\n const { fetching } = this.state;\n return (\n : null}\n filterOption={false}\n onSearch={this.waitAndSearch}\n onChange={this.handleChange}\n showSearch\n >\n );\n }\n}\n\nconst kSelectBox = withCommonEvents(DebounceSelect);\nexport { kSelectBox as KDebounceSelect };\n","import { Select } from \"antd\";\nimport { SelectProps } from \"antd/lib/select\";\nimport { Guid } from \"guid-typescript\";\nimport _, { debounce } from \"lodash\";\nimport React, { PureComponent, ReactNode } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { CommonProps } from \"../../../components/web-components/common/common-props\";\nimport withCommonEvents from \"../../../shared/hoc/with-common-events\";\nimport { KDebounceSelect } from \"./k-debounceSelect\";\nimport \"./selectbox.scss\";\n\ndeclare let window: any;\n\nexport interface IKSelectBoxProps extends SelectProps {\n datatextfield?: string;\n datavaluefield?: any;\n widthType?: \"fill\" | \"content\";\n searchable?: boolean;\n getTextFromValue?: (value: any) => void;\n onChange: (value: any) => void;\n defaultText: string;\n sortBy?: string;\n containsNullItem?: boolean;\n autoRefresh?: boolean;\n}\n\ninterface IKSelectBoxState {\n uniqueKey: Guid;\n}\n\nclass KSelectBox extends PureComponent {\n private memoizedDynamicCssResult = \"\";\n\n constructor(props: IKSelectBoxProps) {\n super(props);\n this.state = {\n uniqueKey: Guid.create()\n };\n }\n\n public getAllData = () => {\n return this.props.options;\n };\n\n componentDidMount = () => {\n this.setDynamicStyle();\n this.handleComponentStyling();\n if (\n this.props.autoRefresh &&\n this.props.value === undefined &&\n this.props.onChange &&\n this.props.mode === \"multiple\" &&\n typeof this.props.onChange === \"function\"\n ) {\n this.props.onChange([]);\n }\n };\n\n componentDidUpdate = () => {\n this.handleComponentStyling();\n };\n\n setDynamicStyle = () => {\n const uniquekey = this.state.uniqueKey?.toString();\n if (!uniquekey) {\n return;\n }\n const isDesignTime = window.kuika?.isDesignTime;\n if (this.memoizedDynamicCssResult !== \"\" && !isDesignTime) {\n return this.memoizedDynamicCssResult;\n }\n const dynamic_style = document.getElementById(\"dynamic_style\");\n if (dynamic_style && dynamic_style.innerHTML?.indexOf(uniquekey) === -1) {\n const generatedCss = this.getDynamicCss();\n dynamic_style.innerHTML = `${dynamic_style.innerHTML}\n ${generatedCss}`;\n this.memoizedDynamicCssResult = generatedCss;\n }\n };\n\n getBgColor = (): string | undefined => {\n if (this.props.style?.backgroundColor) {\n return `background-color: ${this.props.style?.backgroundColor} !important;`;\n }\n };\n\n getFontSize = (): string | undefined => {\n if (this.props.style?.fontSize) {\n return `font-size: ${this.props.style?.fontSize.toString()} !important;`;\n }\n };\n\n getFontWeight = (): string | undefined => {\n if (this.props.style?.fontWeight) {\n return `font-weight: ${this.props.style?.fontWeight} !important;`;\n }\n };\n\n getColor = (): string | undefined => {\n if (this.props.style?.color) {\n return `color: ${this.props.style?.color};`;\n }\n };\n\n getDynamicCss = (): string => {\n const className: string = this.getClassName();\n if (!className || className.length === 0) {\n return \"\";\n }\n\n const bgColor = this.getBgColor();\n const color = this.getColor();\n const fontSize = this.getFontSize();\n const fontWeight = this.getFontWeight();\n let result = \"\";\n\n if (this.props.style?.color) {\n if (this.props.style?.color.substring(0, 4) === \"rgba\") {\n const match = /rgba?\\((\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(,\\s*\\d+[\\.\\d+]*)*\\)/g.exec(this.props.style?.color);\n if (match) {\n const newColor = `rgba(${[match[1], match[2], match[3], 0.15].join(\",\")})`;\n result += `\n .kdropdown-${className.trim()} .ant-select-item-option:hover,\n .kdropdown-${className.trim()} .ant-select-item-option-active {\n background-color: ${newColor} !important;\n }`;\n }\n }\n }\n\n if (bgColor || color || fontSize || fontWeight) {\n result += `.${className.trim()} > .ant-select-selector {\n ${bgColor !== undefined ? `${bgColor}` : ``}${color !== undefined ? color : ``}\n }`;\n\n result += `.${className.trim()} > .ant-select-arrow {\n ${bgColor !== undefined ? `${bgColor}` : ``}${color !== undefined ? color : ``}\n }`;\n\n result +=\n `\n .` +\n `kdropdown-${className.trim()} {\n ${bgColor !== undefined ? `${bgColor}` : ``}${color !== undefined ? color : ``}\n }`;\n\n result +=\n `\n .` +\n `kdropdown-${className.trim()} .ant-select-item-option {\n ${color !== undefined ? color : ``}\n }`;\n\n result +=\n `\n .` +\n `kdropdown-${className.trim()} .ant-select-item-option-content {\n ${fontSize !== undefined ? fontSize : ``}\n ${color !== undefined ? color : ``}\n }`;\n result +=\n `\n .` +\n `kdropdown-${className.trim()} .ant-select-item-option-content {\n ${fontWeight !== undefined ? fontWeight : ``}\n }`;\n }\n\n if (this.props.style?.color || this.props.style?.fontFamily || this.props.style?.fontWeight) {\n result += `\n .${className.trim()} .ant-select-selection-search-input, .ant-select-selection-item {\n `;\n if (this.props.style?.color) result += `color: ${this.props.style?.color} !important;`;\n if (this.props.style?.fontFamily) result += `font-family: ${this.props.style?.fontFamily} !important;`;\n if (this.props.style?.fontWeight) result += `font-weight: ${this.props.style?.fontWeight} !important;`;\n result += `;\n }`;\n }\n\n if (this.props.style?.fontSize || this.props.style?.fontFamily || this.props.style?.fontWeight) {\n result += `\n .${className.trim()} .ant-select-selection-placeholder {\n `;\n if (this.props.style?.fontSize) result += `font-size: ${this.props.style?.fontSize} !important;`;\n if (this.props.style?.fontFamily) result += `font-family: ${this.props.style?.fontFamily} !important;`;\n if (this.props.style?.fontWeight) result += `font-weight: ${this.props.style?.fontWeight} !important;`;\n result += `;\n }`;\n }\n\n const paddingBottom: any = this.props.style?.paddingBottom;\n const paddingLeft: any = this.props.style?.paddingLeft;\n const paddingRight: any = this.props.style?.paddingRight;\n const paddingTop: any = this.props.style?.paddingTop;\n\n result += `.${className.trim()} .ant-select-selector {\n `;\n if (paddingBottom) result += `padding-bottom: ${paddingBottom}px !important;`;\n if (paddingLeft) result += `padding-left: ${paddingLeft}px !important;`;\n if (paddingRight) result += `padding-right: ${paddingRight}px !important;`;\n if (paddingTop) result += `padding-top: ${paddingTop}px !important;`;\n\n result += `;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selection-placeholder {\n `;\n result += `color: #bfbfbf !important;`;\n result += `;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selection-search-input {\n height: 100% !important;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selection-search {\n margin-left: 0 !important;\n inset-inline-start: unset !important;\n inset-inline-end: unset !important;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selection-placeholder {\n inset-inline-start: unset;\n inset-inline-end: unset;\n line-height: inherit !important;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selector:after {\n line-height: inherit !important;\n margin: 0 !important;\n }`;\n\n result += `\n .${className.trim()} .ant-select-selection-item {\n line-height: inherit !important;\n margin: 0 !important;\n }`;\n return result;\n };\n\n getClassName = () => {\n let result = \"\";\n if (this.props.className) {\n result = this.props.className;\n }\n if (!this.state.uniqueKey) {\n return result;\n }\n result = `${result} kselectbox_${this.state.uniqueKey.toString().substring(0, 8)}`;\n return result;\n };\n\n getWidth() {\n if (this.props.widthType && this.props.widthType == \"content\") {\n return \"max-content\";\n }\n return \"100%\";\n }\n\n handleComponentStyling = () => {\n if (!this.props.style) return;\n const { style } = this.props;\n const node = ReactDOM.findDOMNode(this) as Element;\n const item = node.querySelector(\".ant-select-selector\") as HTMLElement;\n const input = node.querySelector(\".ant-select-selection-search-input\") as HTMLElement;\n const isMultiple = node?.classList?.contains(\"ant-select-multiple\");\n if (input) {\n input.setAttribute(\"focusid\", this.props.id);\n }\n if (!isMultiple) {\n if (this.props.style?.height) {\n this.handleHeight(item);\n } else {\n item.style.height = \"40px\";\n }\n\n if (this.props.style?.minHeight) {\n this.handleMinHeight(item);\n } else if (this.props.style?.height) {\n item.style.minHeight = this.props.style?.height as string;\n } else {\n item.style.minHeight = \"40px\";\n }\n\n if (this.props.style?.maxHeight) {\n this.handleMaxHeight(item);\n }\n }\n if (this.props.style?.color) {\n this.handleColor(node, style);\n }\n if (this.props.style?.fontSize) {\n this.handleFontSize(node);\n }\n if (this.props.style?.fontWeight) {\n this.handleFontWeight(item, style);\n }\n\n this.handleBorderRadius(item, style);\n this.handleBorder(item, style);\n };\n\n handleHeight = (item: HTMLElement) => {\n item.style.height = this.props.style!.height as any;\n item.style.alignItems = \"center\";\n };\n\n handleMinHeight = (item: HTMLElement) => {\n item.style.minHeight = this.props.style!.minHeight as any;\n };\n\n handleMaxHeight = (item: HTMLElement) => {\n item.style.maxHeight = this.props.style!.maxHeight as any;\n };\n\n handleFontWeight = (item: HTMLElement, style: React.CSSProperties) => {\n if (style?.fontWeight && item && item.style) {\n item.style.fontWeight = this.props.style!.fontWeight.toString();\n }\n };\n\n handleBorderRadius = (item: HTMLElement, style: React.CSSProperties) => {\n if (style?.borderRadius !== undefined) {\n item.style.borderRadius = `${style.borderRadius.toString()}px` as any;\n }\n if (style?.borderTopLeftRadius !== undefined) {\n item.style.borderTopLeftRadius = `${style.borderTopLeftRadius.toString()}px` as any;\n }\n if (style?.borderTopRightRadius !== undefined) {\n item.style.borderTopRightRadius = `${style.borderTopRightRadius.toString()}px` as any;\n }\n if (style?.borderBottomLeftRadius !== undefined) {\n item.style.borderBottomLeftRadius = `${style.borderBottomLeftRadius.toString()}px` as any;\n }\n if (style?.borderBottomRightRadius !== undefined) {\n item.style.borderBottomRightRadius = `${style.borderBottomRightRadius.toString()}px` as any;\n }\n };\n\n handleBorder = (item: HTMLElement, style: React.CSSProperties) => {\n if (style?.border) {\n item.style.border = style.border as any;\n }\n if (style?.borderRadius) {\n item.style.borderRadius = style.borderRadius as any;\n }\n if (style?.borderWidth) {\n item.style.borderWidth = style.borderWidth as any;\n }\n if (style?.borderColor) {\n item.style.borderColor = style.borderColor as any;\n }\n if (style?.borderStyle) {\n item.style.borderStyle = style.borderStyle as any;\n }\n if (style?.borderTopWidth != undefined) {\n item.style.borderTopWidth = `${style.borderTopWidth.toString()}px` as any;\n }\n if (style?.borderRightWidth != undefined) {\n item.style.borderRightWidth = `${style.borderRightWidth.toString()}px` as any;\n }\n if (style?.borderBottomWidth != undefined) {\n item.style.borderBottomWidth = `${style.borderBottomWidth.toString()}px` as any;\n }\n if (style?.borderLeftWidth != undefined) {\n item.style.borderLeftWidth = `${style.borderLeftWidth.toString()}px` as any;\n }\n };\n\n handleColor = (node: Element, style: React.CSSProperties) => {\n const selectionItem: HTMLElement = node.getElementsByClassName(\"ant-select-selection-item\")[0] as HTMLElement;\n if (selectionItem) {\n selectionItem.style.color = style?.color as any;\n }\n };\n\n handleFontSize = (node: Element) => {\n const item = node.firstChild as HTMLElement;\n item.style.fontSize = this.props.style!.fontSize as any;\n item.style.alignItems = \"center\";\n };\n\n getProps = () => {\n const isDesignTime = window.kuika?.isDesignTime;\n const props: any = {};\n props.datatextfield = this.props.datatextfield;\n props.datavaluefield = this.props.datavaluefield;\n props.widthType = this.props.widthType;\n props.searchable = this.props.searchable;\n props.options = this.props.options;\n props.onChange = this.props.onChange ?? _.noop;\n props.placeholder = this.props.placeholder;\n props.onBlur = isDesignTime ? () => {} : this.props.onBlur ?? _.noop;\n props.className = this.props.className;\n props.allowClear = this.props.allowClear;\n props.showSearch = this.props.showSearch;\n props.mode = this.props.mode;\n\n let style: any | undefined = _.clone(this.props.style);\n if (props.options) {\n delete props.options;\n }\n if (!style) {\n style = {\n width: this.getWidth()\n };\n } else if (!style.width) {\n style.width = this.getWidth();\n }\n if (style) {\n style.border = \"none\";\n delete style.padding;\n delete style.paddingTop;\n delete style.paddingRight;\n delete style.paddingBottom;\n delete style.paddingLeft;\n delete style.borderLeftWidth;\n delete style.borderBottomWidth;\n delete style.borderRightWidth;\n delete style.borderTopWidth;\n delete style.borderTopLeftRadius;\n delete style.borderTopRightRadius;\n delete style.borderBottomLeftRadius;\n delete style.borderBottomRightRadius;\n delete style.backgroundColor;\n\n if (style.display == \"block\") {\n style.display = \"flex\";\n } else if (style.display == \"inline\") {\n style.display = \"inline-flex\";\n }\n }\n props.style = style;\n if (props.value == \"\") {\n delete props.value;\n }\n if (props.value) {\n delete props.value;\n }\n if (isDesignTime) {\n props.getPopupContainer = (triggerNode) => triggerNode.parentNode;\n }\n return props;\n };\n\n getOptions = (): object[] | undefined => {\n const isDesignTime = window.kuika?.isDesignTime;\n const dataTextField = this.props.datatextfield;\n const dataValueField = this.props.datavaluefield;\n if (dataTextField && dataValueField && dataTextField.length > 1 && dataValueField.length > 1) {\n let options: any[] = [];\n if (this.props.options && this.props.options.length && this.props.options.length > 0) {\n this.props.options.forEach((row) => {\n if (\n !_.isUndefined(row) &&\n !_.isUndefined(row[dataTextField!]) &&\n row[dataValueField] !== null &&\n row[dataValueField] !== undefined\n ) {\n options.push({\n label: row[dataTextField!],\n value: row[dataValueField],\n key: row[dataValueField]\n });\n }\n });\n }\n\n if (this.props.sortBy) {\n if (this.props.sortBy == \"A-Z\") {\n options = options.sort((a, b) => a?.label?.localeCompare(b.label));\n } else if (this.props.sortBy == \"Z-A\") {\n options = options.sort((a, b) => b?.label?.localeCompare(a.label));\n }\n }\n\n if (this.props.containsNullItem) {\n options.unshift({\n label: this.props.placeholder ?? \"\",\n value: null,\n key: \"null\"\n });\n }\n\n return options;\n }\n if (isDesignTime) {\n let options: any[] = [];\n if (this.props.options && this.props.options.length) {\n this.props.options.forEach((element) => {\n options.push({\n label: element.text ?? element.value,\n value: element.text ?? element.value,\n key: element.key ?? element.value\n });\n });\n }\n return options;\n }\n\n return this.props.options;\n };\n\n getFormValue = () => {\n return this.props.value;\n };\n\n getValue = () => {\n if (this.props.mode == \"multiple\") {\n if (this.props.value === \"\") {\n return [];\n }\n if (typeof this.props.value === \"string\") {\n return this.props.value.split(\",\");\n }\n return this.props.value;\n }\n if (this.props.searchable !== true) {\n let value;\n const options = this.getOptions() as any;\n if (options && options.length) {\n options.forEach((element) => {\n if (element.value == this.props.value) {\n // 2 eşittir olacak\n value = element.value;\n }\n });\n }\n return value;\n }\n\n if (window.kuika?.dashboardState === 1 && (this.props.value === \"\" || this.props.value === undefined)) {\n // Designer\n return undefined;\n }\n\n let { defaultText } = this.props;\n if (this.pressedClear === true) {\n defaultText = \"\";\n }\n let value;\n let text: undefined | string;\n const options = this.getOptions() as any;\n if (options && options.length) {\n options.forEach((element) => {\n if (element && element.value && element.value == this.props.value) {\n // 2 eşittir olacak\n value = element;\n text = element.label;\n }\n });\n }\n if (text !== undefined && this.props.value && this.refreshCounter === 2) {\n this.refreshCounter = 1;\n this.searchValue = \"\";\n this.handleChange({ key: this.props.value, label: text, value: this.props.value });\n }\n if (value === undefined && this.props.searchable === true) {\n if (\n this.props.value != undefined &&\n this.props.value.toString().length > 0 &&\n this.props.getTextFromValue &&\n (this.props.defaultText === undefined || this.props.defaultText === \"\") &&\n this.refreshCounter === 0\n ) {\n this.refreshCounter++;\n this.props.getTextFromValue(this.props.value);\n }\n }\n if (text === undefined || text === \"\") {\n if (\n defaultText &&\n defaultText.length > 0 &&\n this.refreshCounter === 1 &&\n (this.searchValue === undefined || this.searchValue === \"\")\n ) {\n this.refreshCounter++;\n this.waitAndSearch(defaultText);\n }\n text = defaultText;\n }\n if (this.props.value == undefined && text == undefined) {\n return undefined;\n }\n return { key: this.props.value, label: text, value: this.props.value };\n };\n\n refreshCounter: number = 0;\n\n searchValue = \"\";\n\n pressedClear: boolean = false;\n\n getSearchValue = () => {\n return this.searchValue;\n };\n\n waitAndSearch = debounce((value) => this.handleSearch(value), 50);\n\n handleSearch = (value) => {\n this.pressedClear = false;\n this.searchValue = value;\n if (this.props.onSearch) {\n this.props.onSearch(value);\n }\n };\n\n handleGetTextFromValue = (value: any) => {\n if (this.props.getTextFromValue) {\n this.props.getTextFromValue(value);\n }\n };\n\n handleChange = (value: any) => {\n const isDesignTime = window.kuika?.isDesignTime;\n if (value === undefined) {\n this.searchValue = \"\";\n this.pressedClear = true;\n if (this.props.onChange) {\n this.props.onChange(undefined);\n }\n }\n if (this.props.mode == \"multiple\") {\n if (isDesignTime) return;\n this.props.onChange(value);\n } else if (value !== undefined && value.key && this.props.onChange) {\n this.props.onChange(value.key);\n } else if (value !== undefined && this.props?.onChange) {\n if (isDesignTime) return;\n this.props.onChange(value);\n }\n };\n\n render(): ReactNode {\n return (\n <>\n {this.props.searchable === true ? (\n \n ) : (\n {\n // @ts-ignore\n return option?.label?.toLowerCase()?.indexOf(input?.toLowerCase()) >= 0;\n }}\n showSearch={this.props.showSearch}\n value={this.getValue()}\n {...this.getProps()}\n options={this.getOptions() as any}\n className={`k-selectbox-component${this.getClassName()}`}\n popupClassName={`kdropdown-${this.getClassName().trim()}`}\n onChange={this.handleChange}\n >\n )}\n \n );\n }\n}\n\nconst kSelectBox = withCommonEvents(KSelectBox);\nexport { kSelectBox as KSelectBox };\n","import { Tooltip } from \"antd\";\nimport _ from \"lodash\";\nimport { PureComponent, ReactNode } from \"react\";\nimport { CommonProps } from \"../../../components/web-components/common/common-props\";\nimport withCommonEvents from \"../../../shared/hoc/with-common-events\";\n\ninterface IKIconProps {\n iconName: string;\n style: any;\n hoverText?: string;\n rounded?: boolean;\n}\n\ninterface IKIconState {}\n\nclass KIcon extends PureComponent {\n constructor(props: IKIconProps) {\n super(props);\n this.state = {};\n }\n\n getProps = () => {\n let result: any = {};\n if (this.props && this.props.style) {\n result = _.clone(this.props);\n if (result && result.style) {\n delete result.style;\n }\n }\n return result;\n };\n\n getStyleProp = () => {\n let style: any = {};\n\n if (this.props.style) {\n style = _.clone(this.props.style);\n if (this.props.style?.fontFamily) {\n delete style.fontFamily;\n }\n }\n if (this.props.showCursorPointer) {\n style.cursor = \"pointer\";\n }\n style.verticalAlign = \"middle\";\n return style;\n };\n\n render(): ReactNode {\n if (this.props.hoverText) {\n return (\n <>\n \n \n {this.props.iconName}\n \n \n \n );\n }\n if (this.props.rounded) {\n \n {this.props.iconName}\n ;\n }\n return (\n <>\n \n {this.props.iconName}\n \n \n );\n }\n}\n\nconst kIcon = withCommonEvents(KIcon);\nexport { kIcon as KIcon };\n"],"sourceRoot":""}