@sme.up/ketchup 11.0.0-SNAPSHOT-20241023100903 → 11.0.0-SNAPSHOT-20241023124603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-c069517c.js → f-cell-4fce3cc0.js} +13 -1
- package/dist/cjs/f-cell-4fce3cc0.js.map +1 -0
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +1 -1
- package/dist/cjs/kup-box.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +1 -13
- package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +12 -0
- package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +0 -12
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +12 -0
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-cell.js +0 -12
- package/dist/components/kup-cell.js.map +1 -1
- package/dist/esm/{f-cell-5c7183a7.js → f-cell-11b7dcb3.js} +13 -1
- package/dist/esm/f-cell-11b7dcb3.js.map +1 -0
- package/dist/esm/kup-autocomplete_27.entry.js +1 -1
- package/dist/esm/kup-box.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +1 -13
- package/dist/esm/kup-cell.entry.js.map +1 -1
- package/dist/esm/kup-image-list.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-6f0164d2.entry.js → p-0d20ebc4.entry.js} +2 -2
- package/dist/ketchup/p-11f7e98b.js +2 -0
- package/dist/ketchup/p-11f7e98b.js.map +1 -0
- package/dist/ketchup/p-414148a2.entry.js +2 -0
- package/dist/ketchup/p-414148a2.entry.js.map +1 -0
- package/dist/ketchup/{p-cfaab419.entry.js → p-92199556.entry.js} +2 -2
- package/dist/ketchup/{p-4be79a7c.entry.js → p-aa28eef6.entry.js} +2 -2
- package/dist/ketchup/{p-3c321e45.entry.js → p-ee526a78.entry.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/f-cell-c069517c.js.map +0 -1
- package/dist/esm/f-cell-5c7183a7.js.map +0 -1
- package/dist/ketchup/p-721b6a3c.js +0 -2
- package/dist/ketchup/p-721b6a3c.js.map +0 -1
- package/dist/ketchup/p-d5ab3ae8.entry.js +0 -2
- package/dist/ketchup/p-d5ab3ae8.entry.js.map +0 -1
- /package/dist/ketchup/{p-6f0164d2.entry.js.map → p-0d20ebc4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-cfaab419.entry.js.map → p-92199556.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4be79a7c.entry.js.map → p-aa28eef6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3c321e45.entry.js.map → p-ee526a78.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"kup-cell.entry.js","mappings":";;;;;;;;;;;;AAGA;;;;AAIA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,8DAA8C,CAAA;IAC9C,8CAA8B,CAAA;IAC9B,mHAAmG,CAAA;IACnG,6EAA6D,CAAA;AACjE,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACnC,qDAAsB,CAAA;IACtB,gDAAiB,CAAA;IACjB,mDAAoB,CAAA;IACpB,4CAAa,CAAA;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B;;;;;;;;;;;;;ACIvC,MAAM,GAAG,GAAW,QAAQ,CAAC,eAAyB,CAAC;AA8BhD,MAAM,YAAY,GAA2C,CAChE,KAAwB;IAExB,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI;0CAEhB,KAAK,CAAC,IAA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BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3C;;;;;;;;","names":["this","setProps"],"sources":["src/components/kup-cell/kup-cell-declarations.ts","src/f-components/f-cell-options.tsx/f-cell-options.tsx","src/components/kup-cell/kup-cell.scss?tag=kup-cell&encapsulation=shadow","src/components/kup-cell/kup-cell.tsx"],"sourcesContent":["import { KupDataCell, KupEventPayload } from '../../components';\nimport { KupDataCellOptions } from '../../managers/kup-data/kup-data-declarations';\n\n/**\n * Props of the kup-cell component.\n * Used to export every prop in an object.\n */\nexport enum KupCellProps {\n customStyle = 'Custom style of the component.',\n data = 'The data of the cell.',\n density = \"The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\",\n dragEnabled = 'When set to true, the component is draggable.',\n}\n\nexport enum KupCellSubmitButtonPosition {\n top = 'column-reverse',\n bottom = 'column',\n left = 'row-reverse',\n right = 'row',\n}\n\nexport interface KupCellSubmitClickEventPayload extends KupEventPayload {\n cell: KupDataCellOptions;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { KupDom } from '../../managers/kup-manager/kup-manager-declarations';\nimport { GenericObject, KupDataColumn } from '../../components';\nimport { CMBandACPAdapter } from '../../utils/cell-utils';\nimport {\n FCellOptionsProps,\n FCellProps,\n FCellShapes,\n FCellTypes,\n} from '../f-cell/f-cell-declarations';\nimport { DataAdapterFn } from '../../components/kup-input-panel/kup-input-panel-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCell } from '../f-cell/f-cell';\n\nconst dom: KupDom = document.documentElement as KupDom;\n\nconst treeOptionsNodeAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.content.codice,\n value: child.content.testo,\n selected: currentValue === child.content.codice,\n children: child.children?.length\n ? treeOptionsNodeAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst dataTreeOptionsChildrenAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.obj.k,\n value: child.value,\n selected: currentValue === child.obj.k,\n children: child.children?.length\n ? dataTreeOptionsChildrenAdapter(child, currentValue)\n : [],\n }));\n};\n\nexport const FCellOptions: FunctionalComponent<FCellOptionsProps> = (\n props: FCellOptionsProps\n) => {\n const mappedCell = props.cell\n ? {\n ...props.cell,\n data: setProps(props.cell, props.column),\n slotData: slotData(props.cell, props.column),\n isEditable: true,\n }\n : null;\n\n const mappedProps: FCellProps = {\n ...props,\n editable: true,\n cell: mappedCell as KupDataCell,\n column: generateColumn(mappedCell.data),\n row: generateRow(mappedCell.data),\n };\n\n if (props.cell.shape === FCellShapes.TEXT_FIELD) {\n mappedProps.cell.value = mappedProps.cell.data.value;\n }\n\n return <FCell {...mappedProps}></FCell>;\n};\n\nconst generateColumn = (data: GenericObject): KupDataColumn => {\n const colname: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'genericEmptyObject';\n return {\n name: colname,\n title: coltitle,\n };\n};\n\nconst generateRow = (data: GenericObject): KupDataRow => {\n const col: KupDataColumn = generateColumn(data);\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = data.cell;\n return row;\n};\n\nconst slotData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n\n if (!cell.isEditable) {\n return null;\n }\n\n if (\n cellType === FCellTypes.MULTI_AUTOCOMPLETE ||\n cellType === FCellTypes.MULTI_COMBOBOX\n ) {\n return {\n ...CMBandACPAdapter(\n null,\n col.title,\n cell.options\n // cell,\n // col.name\n ),\n showDropDownIcon: true,\n class: '',\n style: { width: '100%' },\n disabled: !cell.isEditable,\n id: col.name,\n };\n }\n\n return null;\n};\n\nconst setProps = (cell: KupDataCellOptions, column: KupDataColumn) => {\n const defaultProps = {\n ...mapData(cell, column),\n disabled: !cell.isEditable,\n id: column.name,\n };\n\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const { data, ...noDataProps } = cell.data || {};\n return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&\n cellType !== FCellTypes.MULTI_COMBOBOX\n ? deepObjectsMerge(defaultProps, {\n ...cell.data,\n })\n : // Add and ovverride defaultProps of Chip host component except data\n {\n ...defaultProps,\n ...noDataProps,\n };\n};\n\nconst deepObjectsMerge = (target: GenericObject, source: GenericObject) => {\n for (const key in source) {\n if (\n source[key] instanceof Object &&\n !Array.isArray(source[key]) &&\n key in target\n ) {\n target[key] = deepObjectsMerge(target[key], source[key]);\n } else {\n target[key] = source[key];\n }\n }\n return target;\n};\n\nconst mapData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n if (!cell) {\n return null;\n }\n\n const options = cell.options;\n const fieldLabel = col.title;\n const currentValue = cell.value;\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const dataAdapterMap = new Map<FCellTypes, DataAdapterFn>([\n [FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(this)],\n [FCellTypes.STRING, MainITXAdapter.bind(this)],\n ]);\n\n const adapter = dataAdapterMap.get(cellType);\n\n return adapter\n ? adapter(options, fieldLabel, currentValue, cell, col.name)\n : null;\n};\n\nconst MainITXAdapter = (\n options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n _cell: KupDataCellOptions\n) => {\n if (options?.[0]) {\n return {\n value: options[0].label,\n };\n }\n};\n\nconst MainBTNAdapter = (\n _options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n cell: KupDataCellOptions\n) => {\n return {\n data: cell.options?.length\n ? cell.options?.map((option) => ({\n icon: option.icon,\n value: option.value,\n }))\n : [],\n };\n};\n","/**\n* @prop --kup-cell-background: Sets the background of the cell.\n* @prop --kup-cell-font-family: Sets the font family of the cell.\n* @prop --kup-cell-font-family-monospace: Sets the monospace font family of the cell (for numbers).\n* @prop --kup-cell-font-size: Sets the font size of the cell.\n* @prop --kup-cell-text-color: Sets the text color of the cell.\n*\n* NOTE: These variables are defined in the \"kup-theme.css\" file, because they must work even without the kup component (it's a functional component)\n*\n*/\n\n:host {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#kup-component {\n height: 100%;\n width: 100%;\n}\n","import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellShapes,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <FCellOptions {...props} />\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"kup-cell.entry.js","mappings":";;;;;;;;;;;;AAGA;;;;AAIA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,8DAA8C,CAAA;IAC9C,8CAA8B,CAAA;IAC9B,mHAAmG,CAAA;IACnG,6EAA6D,CAAA;AACjE,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACnC,qDAAsB,CAAA;IACtB,gDAAiB,CAAA;IACjB,mDAAoB,CAAA;IACpB,4CAAa,CAAA;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B;;;;;;;;;;;;;ACIvC,MAAM,GAAG,GAAW,QAAQ,CAAC,eAAyB,CAAC;AA8BhD,MAAM,YAAY,GAA2C,CAChE,KAAwB;IAExB,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI;0CAE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,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,WAAW,CAC/B,IAAI,CAAC,WAA2B,CACnC,CACG,EACR,4DACI,EAAE,EAAE,kBAAkB,EACtB,KAAK,EACD,IAAI,CAAC,UAAU;kBACT;oBACI,OAAO,EAAE,MAAM;oBACf,gBAAgB,EAAE,IAAI,CAAC,cAAc;oBACrC,aAAa,EAAE,QAAQ;oBACvB,GAAG,EAAE,QAAQ;iBAChB;kBACD,EAAE,IAGZ,EAAC,YAAY,qEAAK,KAAK,EAAI,EAC1B,IAAI,CAAC,UAAU,IACZ,EAAC,OAAO,IACJ,UAAU,EAAC,QAAQ,EACnB,KAAK,EAAE,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,SAAS,CACtC,kBAAkB,CAAC,OAAO,CAC7B,EACD,YAAY,EAAC,cAAc,EAC3B,OAAO,EAAE,CAAC,CAAC;gBACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;aACvB,GACM,IACX,IAAI,CACN,CACH,EACT;KACL;IAED,oBAAoB;QAChB,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxC,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC3C,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3C;;;;;;;;","names":["this","setProps"],"sources":["src/components/kup-cell/kup-cell-declarations.ts","src/f-components/f-cell-options.tsx/f-cell-options.tsx","src/components/kup-cell/kup-cell.scss?tag=kup-cell&encapsulation=shadow","src/components/kup-cell/kup-cell.tsx"],"sourcesContent":["import { KupDataCell, KupEventPayload } from '../../components';\nimport { KupDataCellOptions } from '../../managers/kup-data/kup-data-declarations';\n\n/**\n * Props of the kup-cell component.\n * Used to export every prop in an object.\n */\nexport enum KupCellProps {\n customStyle = 'Custom style of the component.',\n data = 'The data of the cell.',\n density = \"The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\",\n dragEnabled = 'When set to true, the component is draggable.',\n}\n\nexport enum KupCellSubmitButtonPosition {\n top = 'column-reverse',\n bottom = 'column',\n left = 'row-reverse',\n right = 'row',\n}\n\nexport interface KupCellSubmitClickEventPayload extends KupEventPayload {\n cell: KupDataCellOptions;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { KupDom } from '../../managers/kup-manager/kup-manager-declarations';\nimport { GenericObject, KupDataColumn } from '../../components';\nimport { CMBandACPAdapter } from '../../utils/cell-utils';\nimport {\n FCellOptionsProps,\n FCellProps,\n FCellShapes,\n FCellTypes,\n} from '../f-cell/f-cell-declarations';\nimport { DataAdapterFn } from '../../components/kup-input-panel/kup-input-panel-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCell } from '../f-cell/f-cell';\n\nconst dom: KupDom = document.documentElement as KupDom;\n\nconst treeOptionsNodeAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.content.codice,\n value: child.content.testo,\n selected: currentValue === child.content.codice,\n children: child.children?.length\n ? treeOptionsNodeAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst dataTreeOptionsChildrenAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.obj.k,\n value: child.value,\n selected: currentValue === child.obj.k,\n children: child.children?.length\n ? dataTreeOptionsChildrenAdapter(child, currentValue)\n : [],\n }));\n};\n\nexport const FCellOptions: FunctionalComponent<FCellOptionsProps> = (\n props: FCellOptionsProps\n) => {\n const mappedCell = props.cell\n ? {\n ...props.cell,\n data: setProps(props.cell, props.column),\n slotData: slotData(props.cell, props.column),\n isEditable: true,\n }\n : null;\n\n const mappedProps: FCellProps = {\n ...props,\n editable: true,\n cell: mappedCell as KupDataCell,\n column: generateColumn(mappedCell.data),\n row: generateRow(mappedCell.data),\n };\n\n if (props.cell.shape === FCellShapes.TEXT_FIELD) {\n mappedProps.cell.value = mappedProps.cell.data.value;\n }\n\n return <FCell {...mappedProps}></FCell>;\n};\n\nconst generateColumn = (data: GenericObject): KupDataColumn => {\n const colname: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'genericEmptyObject';\n return {\n name: colname,\n title: coltitle,\n };\n};\n\nconst generateRow = (data: GenericObject): KupDataRow => {\n const col: KupDataColumn = generateColumn(data);\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = data.cell;\n return row;\n};\n\nconst slotData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n\n if (!cell.isEditable) {\n return null;\n }\n\n if (\n cellType === FCellTypes.MULTI_AUTOCOMPLETE ||\n cellType === FCellTypes.MULTI_COMBOBOX\n ) {\n return {\n ...CMBandACPAdapter(\n null,\n col.title,\n cell.options\n // cell,\n // col.name\n ),\n showDropDownIcon: true,\n class: '',\n style: { width: '100%' },\n disabled: !cell.isEditable,\n id: col.name,\n };\n }\n\n return null;\n};\n\nconst setProps = (cell: KupDataCellOptions, column: KupDataColumn) => {\n const defaultProps = {\n ...mapData(cell, column),\n disabled: !cell.isEditable,\n id: column.name,\n };\n\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const { data, ...noDataProps } = cell.data || {};\n return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&\n cellType !== FCellTypes.MULTI_COMBOBOX\n ? deepObjectsMerge(defaultProps, {\n ...cell.data,\n })\n : // Add and ovverride defaultProps of Chip host component except data\n {\n ...defaultProps,\n ...noDataProps,\n };\n};\n\nconst deepObjectsMerge = (target: GenericObject, source: GenericObject) => {\n for (const key in source) {\n if (\n source[key] instanceof Object &&\n !Array.isArray(source[key]) &&\n key in target\n ) {\n target[key] = deepObjectsMerge(target[key], source[key]);\n } else {\n target[key] = source[key];\n }\n }\n return target;\n};\n\nconst mapData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n if (!cell) {\n return null;\n }\n\n const options = cell.options;\n const fieldLabel = col.title;\n const currentValue = cell.value;\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const dataAdapterMap = new Map<FCellTypes, DataAdapterFn>([\n [FCellTypes.STRING, MainITXAdapter.bind(this)],\n ]);\n\n const adapter = dataAdapterMap.get(cellType);\n\n return adapter\n ? adapter(options, fieldLabel, currentValue, cell, col.name)\n : null;\n};\n\nconst MainITXAdapter = (\n options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n _cell: KupDataCellOptions\n) => {\n if (options?.[0]) {\n return {\n value: options[0].label,\n };\n }\n};\n","/**\n* @prop --kup-cell-background: Sets the background of the cell.\n* @prop --kup-cell-font-family: Sets the font family of the cell.\n* @prop --kup-cell-font-family-monospace: Sets the monospace font family of the cell (for numbers).\n* @prop --kup-cell-font-size: Sets the font size of the cell.\n* @prop --kup-cell-text-color: Sets the text color of the cell.\n*\n* NOTE: These variables are defined in the \"kup-theme.css\" file, because they must work even without the kup component (it's a functional component)\n*\n*/\n\n:host {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#kup-component {\n height: 100%;\n width: 100%;\n}\n","import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellShapes,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <FCellOptions {...props} />\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
|
|
@@ -4,7 +4,7 @@ import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
|
4
4
|
import { F as FImage } from './f-image-feab9f36.js';
|
|
5
5
|
import { F as FButton } from './f-button-79148bc6.js';
|
|
6
6
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
7
|
+
import { F as FCell } from './f-cell-11b7dcb3.js';
|
|
8
8
|
import { M as MDCRipple } from './component-879e99bf.js';
|
|
9
9
|
import './kup-dates-b90227c6.js';
|
|
10
10
|
import './f-checkbox-6a591860.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-191ee7cb.js';
|
|
2
2
|
import { F as FButton } from './f-button-79148bc6.js';
|
|
3
|
-
import { F as FCell } from './f-cell-
|
|
3
|
+
import { F as FCell } from './f-cell-11b7dcb3.js';
|
|
4
4
|
import { k as kupManagerInstance, a5 as FCellTypes, F as FCellShapes, g as getProps, s as setProps, h as KupLanguageGeneric, al as CHIAdapter, ab as CMBandACPAdapter, ak as CHKAdapter, aa as RADAdapter, am as SWTAdapter, e as KupDebugCategory } from './kup-manager-7f0308ee.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-9a862967.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-d7c15b0e.js";export{s as setNonce}from"./p-d7c15b0e.js";import{g as a}from"./p-e1255160.js";var l=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};l().then((async e=>{await a();return t(JSON.parse('[["p-cfaab419",[[1,"kup-data-table",{"stateId":[1,"state-id"],"store":[16],"autoFillMissingCells":[4,"auto-fill-missing-cells"],"customStyle":[1,"custom-style"],"data":[1040],"density":[1],"dragEnabled":[1540,"drag-enabled"],"dropEnabled":[516,"drop-enabled"],"editableData":[1028,"editable-data"],"emptyDataLabel":[1025,"empty-data-label"],"enableColumnsFormula":[4,"enable-columns-formula"],"enableExtraColumns":[4,"enable-extra-columns"],"enableMergeColumns":[4,"enable-merge-columns"],"enableSortableColumns":[4,"enable-sortable-columns"],"expandGroups":[4,"expand-groups"],"filters":[1040],"fixedColumns":[2,"fixed-columns"],"fixedColumnsR":[2,"fixed-columns-r"],"fixedRows":[2,"fixed-rows"],"forceOneLine":[516,"force-one-line"],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"groupLabelDisplay":[1,"group-label-display"],"groups":[1040],"headerIsPersistent":[4,"header-is-persistent"],"insertMode":[1,"insert-mode"],"isFocusable":[4,"is-focusable"],"lazyLoadRows":[4,"lazy-load-rows"],"lineBreakCharacter":[1,"line-break-character"],"loadMoreLimit":[2,"load-more-limit"],"loadMoreMode":[1,"load-more-mode"],"loadMoreStep":[2,"load-more-step"],"pageSelected":[2,"page-selected"],"paginatorPos":[1,"paginator-pos"],"legacyLook":[516,"legacy-look"],"removableColumns":[4,"removable-columns"],"resizableColumns":[4,"resizable-columns"],"rowActions":[16],"commands":[16],"rowsPerPage":[2,"rows-per-page"],"scrollOnHover":[4,"scroll-on-hover"],"selection":[1],"showCustomization":[4,"show-customization"],"showDeleteButton":[4,"show-delete-button"],"showHistoryButton":[4,"show-history-button"],"showFilters":[4,"show-filters"],"showFooter":[4,"show-footer"],"showGrid":[1,"show-grid"],"showGroups":[4,"show-groups"],"showHeader":[4,"show-header"],"showLoadMore":[4,"show-load-more"],"sort":[1040],"sortableColumnsMutateData":[4,"sortable-columns-mutate-data"],"sortEnabled":[4,"sort-enabled"],"tableHeight":[1,"table-height"],"tableWidth":[1,"table-width"],"totals":[1040],"transpose":[1028],"updatableData":[1028,"updatable-data"],"lazyLoadCells":[32],"currentPage":[32],"currentRowsPerPage":[32],"selectedRows":[32],"selectedColumn":[32],"columnMenuAnchor":[32],"groupState":[32],"openedTotalMenu":[32],"openedCustomSettings":[32],"fontsize":[32],"closeColumnMenu":[64],"collapseAll":[64],"deleteRows":[64],"closeInsertCard":[64],"closeConfirmDeleteCard":[64],"getCards":[64],"insertNewRow":[64],"expandAll":[64],"getProps":[64],"getSelectedRows":[64],"hideColumn":[64],"setGroupExpansionByDepth":[64],"newColumn":[64],"openColumnMenu":[64],"refresh":[64],"resizeCallback":[64],"setCellValue":[64],"setFocus":[64],"setProps":[64],"setSelectedRows":[64],"getInternalState":[64],"defaultSortingFunction":[64]},null,{"rowsPerPage":["rowsPerPageHandler","recalculateRows"],"expandGroups":["expandGroupsHandler"],"filters":["filtersChanged"],"globalFilterValue":["filtersChanged"],"sort":["recalculateRows"],"totals":["recalculateRows"],"currentPage":["recalculateRows"],"currentRowsPerPage":["recalculateRows"],"data":["identifyAndInitRows","backupOriginalDataAndAdapting"],"groups":["recalculateRowsAndUndoSelections"],"fixedColumns":["controlFixedRowsColumns"],"fixedColumnsR":["controlFixedRowsColumns"],"fixedRows":["controlFixedRowsColumns"],"transpose":["recalculateData"]}],[1,"kup-form",{"customStyle":[1,"custom-style"],"data":[16],"hiddenSubmitButton":[4,"hidden-submit-button"],"labelPlacement":[1,"label-placement"],"layout":[16],"submitCb":[16],"getProps":[64],"refresh":[64],"setFocus":[64],"setProps":[64]},null,{"data":["onDataChanged"],"layout":["onLayoutChanged"]}],[1,"kup-autocomplete",{"alert":[1],"allowInconsistentValues":[4,"allow-inconsistent-values"],"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"displayMode":[1,"display-mode"],"error":[1],"icon":[1],"initialValue":[1,"initial-value"],"isClearable":[4,"is-clearable"],"inputDelay":[2,"input-delay"],"label":[1],"leadingLabel":[4,"leading-label"],"minimumChars":[2,"minimum-chars"],"readOnly":[4,"read-only"],"selectMode":[1,"select-mode"],"serverHandledFilter":[516,"server-handled-filter"],"showDropDownIcon":[4,"show-drop-down-icon"],"sizing":[1],"trailingIcon":[4,"trailing-icon"],"displayedValue":[32],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-button",{"buttonType":[1,"button-type"],"checked":[1028],"contentAlign":[1,"content-align"],"customStyle":[1,"custom-style"],"disabled":[4],"icon":[1],"iconOff":[1,"icon-off"],"label":[1],"blackMode":[4,"black-mode"],"placeholderIcon":[1,"placeholder-icon"],"styling":[1],"showSpinner":[4,"show-spinner"],"toggable":[4],"trailingIcon":[4,"trailing-icon"],"sizing":[1],"keyShortcut":[1,"key-shortcut"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-button-list",{"blackMode":[4,"black-mode"],"contentAlign":[1,"content-align"],"columns":[2],"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"showSelection":[4,"show-selection"],"sizing":[1],"styling":[513],"selected":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}],[1,"kup-checkbox",{"alert":[1],"checked":[1028],"customStyle":[1,"custom-style"],"disabled":[4],"error":[1],"indeterminate":[1028],"label":[1],"leadingLabel":[4,"leading-label"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-tree",{"asAccordion":[516,"as-accordion"],"columns":[1040],"customStyle":[1,"custom-style"],"data":[1040],"density":[1],"dynamicExpansionCallback":[16],"editableData":[4,"editable-data"],"enableExtraColumns":[4,"enable-extra-columns"],"expanded":[4],"expansionMode":[1,"expansion-mode"],"filters":[1040],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"globalFilterMode":[1,"global-filter-mode"],"preventXScroll":[516,"prevent-x-scroll"],"removableColumns":[4,"removable-columns"],"ripple":[4],"scrollOnHover":[4,"scroll-on-hover"],"showColumns":[1028,"show-columns"],"showFilters":[4,"show-filters"],"showFooter":[4,"show-footer"],"showHeader":[1028,"show-header"],"showIcons":[4,"show-icons"],"stateId":[1,"state-id"],"store":[16],"useDynamicExpansion":[4,"use-dynamic-expansion"],"totals":[1040],"treeColumnVisible":[32],"openedTotalMenu":[32],"columnMenuAnchor":[32],"stateSwitcher":[32],"selectedNode":[32],"getSelectedNode":[64],"setSelectedNode":[64],"isEmpty":[64],"closeColumnMenu":[64],"collapseAll":[64],"expandAll":[64],"setExpansionByDepth":[64],"getProps":[64],"hideColumn":[64],"openColumnMenu":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["enrichDataWhenChanged"],"expanded":["enrichStructureStateWhenChanged"]}],[1,"kup-color-picker",{"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"initialValue":[1,"initial-value"],"readOnly":[4,"read-only"],"swatchOnly":[4,"swatch-only"],"value":[32],"getProps":[64],"getValue":[64],"setFocus":[64],"setProps":[64],"setValue":[64],"refresh":[64]}],[1,"kup-dropdown-button",{"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"displayMode":[1,"display-mode"],"dropdownOnly":[4,"dropdown-only"],"icon":[1],"initialValue":[1,"initial-value"],"label":[1],"placeholderIcon":[1,"placeholder-icon"],"selectMode":[1,"select-mode"],"sizing":[1],"styling":[1],"trailingIcon":[4,"trailing-icon"],"id":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-radio",{"columns":[2],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"horizontal":[4],"label":[1],"leadingLabel":[4,"leading-label"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-image",{"badgeData":[16],"color":[1],"customStyle":[1,"custom-style"],"data":[16],"feedback":[4],"isCanvas":[4,"is-canvas"],"placeholderResource":[1,"placeholder-resource"],"resource":[1],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"zoomEnable":[4,"zoom-enable"],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-badge",{"customStyle":[1,"custom-style"],"imageData":[16],"type":[1],"text":[1],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-card",{"customStyle":[1,"custom-style"],"data":[16],"isMenu":[516,"is-menu"],"layoutFamily":[1,"layout-family"],"layoutNumber":[2,"layout-number"],"menuVisible":[1540,"menu-visible"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}],[1,"kup-chart",{"asp":[1],"axis":[1],"chartTitle":[16],"colors":[16],"customStyle":[1,"custom-style"],"data":[16],"hAxis":[16],"hAxes":[16],"legend":[1],"offlineMode":[16],"series":[16],"showMarks":[4,"show-marks"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"sorting":[16],"stacked":[4],"types":[16],"vAxes":[16],"vAxis":[16],"trendlines":[16],"version":[1],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["identifyRows"]}],[1,"kup-chip",{"customStyle":[1,"custom-style"],"data":[1040],"displayId":[4,"display-id"],"enableInput":[4,"enable-input"],"type":[1],"sizing":[1],"styling":[1],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}],[1,"kup-combobox",{"alert":[1],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"displayMode":[1,"display-mode"],"error":[1],"icon":[1],"initialValue":[1,"initial-value"],"isClearable":[4,"is-clearable"],"isSelect":[516,"is-select"],"label":[1],"leadingLabel":[4,"leading-label"],"readOnly":[4,"read-only"],"selectMode":[1,"select-mode"],"showDropDownIcon":[4,"show-drop-down-icon"],"sizing":[1],"trailingIcon":[4,"trailing-icon"],"displayedValue":[32],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]],{"initialValue":["initialValueChange"]}],[1,"kup-date-picker",{"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"firstDayIndex":[2,"first-day-index"],"initialValue":[1,"initial-value"],"outlined":[4],"sizing":[1],"showIcon":[4,"show-icon"],"showPreviousNextMonthDays":[4,"show-previous-next-month-days"],"stateSwitcher":[32],"ISOvalue":[32],"notISOvalue":[32],"getValue":[64],"getProps":[64],"refresh":[64],"setFocus":[64],"setValue":[64]},[[0,"keyup","listenKeyup"]],{"firstDayIndex":["watchFirstDayIndex"]}],[1,"kup-gauge",{"arcThickness":[2,"arc-thickness"],"colors":[16],"customStyle":[1,"custom-style"],"firstThreshold":[2,"first-threshold"],"labelDistance":[1026,"label-distance"],"maxValue":[1026,"max-value"],"measurementUnit":[1,"measurement-unit"],"minValue":[1026,"min-value"],"needleCircle":[4,"needle-circle"],"onlyValue":[4,"only-value"],"reverseColors":[4,"reverse-colors"],"secondThreshold":[2,"second-threshold"],"showLabels":[4,"show-labels"],"showMaxmin":[4,"show-maxmin"],"showValue":[4,"show-value"],"size":[2],"value":[1026],"valueSize":[2,"value-size"],"widthComponent":[1,"width-component"],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-tab-bar",{"customStyle":[1,"custom-style"],"data":[16],"dense":[4],"ripple":[4],"toolbar":[4],"toolbarData":[16],"value":[32],"getProps":[64],"getSelectedNode":[64],"refresh":[64],"setProps":[64]},null,{"ripple":["applyRipple"]}],[1,"kup-list",{"customStyle":[1,"custom-style"],"data":[1040],"displayMode":[1,"display-mode"],"filter":[1025],"hideText":[4,"hide-text"],"isMenu":[4,"is-menu"],"keyboardNavigation":[4,"keyboard-navigation"],"menuVisible":[4,"menu-visible"],"roleType":[1025,"role-type"],"selectable":[4],"showIcons":[4,"show-icons"],"twoLine":[4,"two-line"],"focused":[32],"selected":[32],"focusNext":[64],"focusPrevious":[64],"getProps":[64],"getSelectedNode":[64],"refresh":[64],"select":[64],"setProps":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-progress-bar",{"centeredLabel":[4,"centered-label"],"customStyle":[1,"custom-style"],"hideLabel":[4,"hide-label"],"icon":[1],"label":[1],"isRadial":[516,"is-radial"],"value":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-rating",{"customStyle":[1,"custom-style"],"disabled":[4],"maxValue":[2,"max-value"],"value":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-spinner",{"active":[516],"barVariant":[4,"bar-variant"],"customStyle":[1,"custom-style"],"dimensions":[1],"fader":[4],"faderTimeout":[2,"fader-timeout"],"fullScreen":[516,"full-screen"],"layout":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-switch",{"checked":[1028],"customStyle":[1,"custom-style"],"disabled":[4],"label":[1],"leadingLabel":[4,"leading-label"],"sizing":[1],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-text-field",{"alert":[1],"allowNegative":[4,"allow-negative"],"customStyle":[1,"custom-style"],"decimals":[2],"disabled":[4],"emitSubmitEventOnEnter":[4,"emit-submit-event-on-enter"],"error":[1],"fullWidth":[516,"full-width"],"group":[4],"helper":[1],"helperIcon":[4,"helper-icon"],"helperEnabled":[4,"helper-enabled"],"helperWhenFocused":[4,"helper-when-focused"],"hiddenCounter":[4,"hidden-counter"],"icon":[1],"initialValue":[1,"initial-value"],"inputMode":[1,"input-mode"],"inputType":[1,"input-type"],"integers":[2],"isClearable":[4,"is-clearable"],"label":[1],"lightMode":[4,"light-mode"],"leadingLabel":[4,"leading-label"],"max":[2],"maxLength":[2,"max-length"],"min":[2],"name":[1],"outlined":[4],"placeholder":[1],"quantityButtons":[4,"quantity-buttons"],"readOnly":[4,"read-only"],"size":[2],"sizing":[1],"step":[2],"textArea":[4,"text-area"],"trailingIcon":[4,"trailing-icon"],"trailingLabel":[4,"trailing-label"],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]}],[1,"kup-time-picker",{"clockVariant":[4,"clock-variant"],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"initialValue":[1,"initial-value"],"manageSeconds":[4,"manage-seconds"],"timeMinutesStep":[2,"time-minutes-step"],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[4,"keyup","listenKeyup"]],{"timeMinutesStep":["watchTimeMinutesStep"]}],[1,"kup-dialog",{"autoCenter":[16],"customStyle":[1,"custom-style"],"header":[16],"modal":[16],"resizable":[4],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"close":[64],"getProps":[64],"recalcPosition":[64],"refresh":[64],"setProps":[64]}]]],["p-ce5a86e1",[[1,"kup-planner",{"stateId":[1,"state-id"],"store":[16],"customStyle":[1,"custom-style"],"data":[16],"detailData":[16],"detailColorCol":[1,"detail-color-col"],"detailColumns":[16],"detailDates":[16],"detailFilter":[1,"detail-filter"],"detailHeight":[2,"detail-height"],"detailHours":[16],"detailIconCol":[1,"detail-icon-col"],"detailIdCol":[1,"detail-id-col"],"detailNameCol":[1,"detail-name-col"],"detailPrevHours":[16],"detailPrevDates":[16],"detailInitialScrollX":[2,"detail-initial-scroll-x"],"detailInitialScrollY":[2,"detail-initial-scroll-y"],"listCellWidth":[1,"list-cell-width"],"maxWidth":[1,"max-width"],"phaseColorCol":[1,"phase-color-col"],"phaseColumns":[16],"phaseColParDep":[1,"phase-col-par-dep"],"phaseDates":[16],"phaseHours":[16],"phaseIconCol":[1,"phase-icon-col"],"phaseIdCol":[1,"phase-id-col"],"phaseNameCol":[1,"phase-name-col"],"phasePrevHours":[16],"phasePrevDates":[16],"readOnly":[4,"read-only"],"showSecondaryDates":[4,"show-secondary-dates"],"taskColumns":[16],"taskDates":[16],"taskFilter":[1,"task-filter"],"taskHeight":[2,"task-height"],"taskHours":[16],"taskIconCol":[1,"task-icon-col"],"taskIdCol":[1,"task-id-col"],"taskInitialScrollX":[2,"task-initial-scroll-x"],"taskInitialScrollY":[2,"task-initial-scroll-y"],"taskNameCol":[1,"task-name-col"],"taskPrevHours":[16],"taskPrevDates":[16],"titleMess":[1,"title-mess"],"viewMode":[1,"view-mode"],"mainFilter":[16],"secondaryFilter":[16],"scrollableTaskList":[4,"scrollable-task-list"],"plannerProps":[32],"getProps":[64],"refresh":[64],"setProps":[64],"addPhases":[64]},null,{"data":["dataChanged"]}]]],["p-b849ae30",[[1,"kup-magic-box",{"customStyle":[1,"custom-style"],"data":[1040],"display":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-cdd29a6d",[[1,"kup-card-list",{"columnsNumber":[2,"columns-number"],"customStyle":[1,"custom-style"],"data":[16],"fullWidth":[4,"full-width"],"horizontal":[4],"descrCol":[1,"descr-col"],"iconCol":[1,"icon-col"],"valueCol":[1,"value-col"],"measureCol":[1,"measure-col"],"intvalueCol":[1,"intvalue-col"],"decvalueCol":[1,"decvalue-col"],"textcolorCol":[1,"textcolor-col"],"valuecolorCol":[1,"valuecolor-col"],"iconcolorCol":[1,"iconcolor-col"],"layoutCol":[1,"layout-col"],"isClickable":[4,"is-clickable"],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-48368d6a",[[1,"kup-family-tree",{"autofitOnExpand":[4,"autofit-on-expand"],"autofitOnLoad":[4,"autofit-on-load"],"cardData":[16],"collapsible":[4],"customStyle":[1,"custom-style"],"data":[16],"layout":[2],"stackedLeaves":[4,"stacked-leaves"],"collapseAll":[64],"expandAll":[64],"getProps":[64],"refresh":[64],"runAutofit":[64],"setProps":[64]}]]],["p-4be79a7c",[[1,"kup-input-panel",{"customStyle":[1,"custom-style"],"data":[16],"hiddenSubmitButton":[4,"hidden-submit-button"],"submitCb":[16],"optionsHandler":[16],"customButtonClickHandler":[16],"inputPanelCells":[32],"tabSelected":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["onDataChanged"]}]]],["p-87ff86ee",[[1,"kup-accordion",{"customStyle":[1,"custom-style"],"data":[16],"ripple":[4],"sizing":[1],"selectedItems":[32],"collapseAll":[64],"expandAll":[64],"getProps":[64],"refresh":[64],"setProps":[64],"toggleItem":[64]},null,{"ripple":["applyRipple"]}]]],["p-2b47d837",[[1,"kup-activity-timeline",{"data":[16],"dateColumn":[1,"date-column"],"sort":[16],"timeColumn":[1,"time-column"],"timeline":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-05a7120a",[[1,"kup-calendar",{"currentDate":[1,"current-date"],"customStyle":[1,"custom-style"],"data":[16],"hideNavigation":[4,"hide-navigation"],"editableEvents":[4,"editable-events"],"viewType":[1025,"view-type"],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["setCalendarData"],"currentDate":["setCalendarData"]}]]],["p-d5ab3ae8",[[1,"kup-cell",{"customStyle":[1,"custom-style"],"data":[16],"density":[1],"dragEnabled":[4,"drag-enabled"],"showSubmit":[4,"show-submit"],"submitPosition":[1,"submit-position"],"addCssClasses":[64],"getProps":[64],"refresh":[64],"removeCssClasses":[64],"setProps":[64]}]]],["p-afc92adf",[[1,"kup-dashboard",{"customStyle":[1,"custom-style"],"data":[16],"enableDesign":[4,"enable-design"],"resetInternalData":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["dataChanged"]}]]],["p-6d51f043",[[1,"kup-drawer",{"customStyle":[1,"custom-style"],"opened":[32],"close":[64],"getProps":[64],"isOpened":[64],"open":[64],"refresh":[64],"setProps":[64],"toggle":[64]}]]],["p-5e889cbc",[[1,"kup-htm",{"data":[16],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-03885b8d",[[1,"kup-iframe",{"buttonData":[16],"isButton":[4,"is-button"],"src":[1],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-6f0164d2",[[1,"kup-image-list",{"columns":[16],"customStyle":[1,"custom-style"],"data":[16],"ripple":[4],"rows":[2],"selectedNode":[16],"stateId":[1,"state-id"],"store":[16],"currentNode":[32],"navigationBarToggled":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"selectedNode":["selectNode"]}]]],["p-4b14b67b",[[1,"kup-lazy",{"componentName":[1,"component-name"],"customStyle":[1,"custom-style"],"data":[16],"renderMode":[1,"render-mode"],"showPlaceholder":[4,"show-placeholder"],"isInViewport":[32],"getProps":[64],"getComponent":[64],"refresh":[64],"setProps":[64]}]]],["p-b46a4d95",[[1,"kup-nav-bar",{"customStyle":[1,"custom-style"],"styling":[513],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}]]],["p-3a8f5a76",[[1,"kup-numeric-picker",{"customStyle":[1,"custom-style"],"data":[1040],"decimals":[4],"disabled":[4],"initialValue":[1,"initial-value"],"maxDecimals":[1026,"max-decimals"],"maxIntegers":[1026,"max-integers"],"maxLength":[2,"max-length"],"negative":[4],"stateSwitcher":[32],"value":[32],"getValue":[64],"getProps":[64],"refresh":[64],"setFocus":[64],"setValue":[64]},[[0,"keyup","listenKeyup"]]]]],["p-e8c292e9",[[1,"kup-pdf",{"pdfPath":[1,"pdf-path"],"sendCredentials":[4,"send-credentials"],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"pdfPath":["onPdfPathChange"]}]]],["p-362a8b69",[[1,"kup-photo-frame",{"customStyle":[1,"custom-style"],"placeholderAttrs":[16],"resourceAttrs":[16],"threshold":[2],"isInViewport":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-bb4e26cb",[[1,"kup-probe",{"customStyle":[1,"custom-style"],"features":[16],"content":[32],"printLifecycleTime":[64],"refresh":[64]}]]],["p-422e1c5d",[[0,"kup-qlik",{"config":[16],"qlik":[8],"appid":[513],"app":[520],"grid":[16],"debug":[4],"fluid":[4],"bordered":[4],"defobjsize":[1],"divlist":[32]}]]],["p-20c22a22",[[1,"kup-snackbar",{"actionButton":[16],"closeButton":[4,"close-button"],"customStyle":[1,"custom-style"],"text":[1],"header":[1],"timeout":[2],"visible":[32],"getProps":[64],"hide":[64],"refresh":[64],"setProps":[64],"show":[64]}]]],["p-a33ea26d",[[1,"kup-typography",{"customStyle":[1,"custom-style"],"toolbar":[4],"toolbarData":[16],"type":[1],"value":[1],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-2c8d07af",[[1,"kup-typography-list",{"customStyle":[1,"custom-style"],"data":[1040],"type":[1],"toolbar":[4],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}]]],["p-202dfeee",[[1,"kup-echart",{"axis":[1025],"colors":[16],"consistencyCheck":[4,"consistency-check"],"chartTitle":[16],"customStyle":[1,"custom-style"],"data":[16],"legend":[1],"map":[1],"series":[16],"showMarks":[4,"show-marks"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"stacked":[4],"types":[16],"xAxis":[16],"yAxis":[16],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}]]],["p-b6c07403",[[0,"kup-editor",{"autosaveTimer":[2,"autosave-timer"],"editorHeight":[1,"editor-height"],"initialEditType":[1,"initial-edit-type"],"initialValue":[1,"initial-value"],"isReadOnly":[4,"is-read-only"],"previewStyle":[1,"preview-style"],"selectedTab":[1,"selected-tab"],"showSaveButton":[4,"show-save-button"],"showToolbar":[4,"show-toolbar"],"editor":[32],"editorRef":[32],"viewer":[32],"getProps":[64],"getValueAsHTML":[64],"getValueAsMarkdown":[64],"refresh":[64],"setProps":[64]},null,{"editorRef":["onEditorRefUpdated"],"editor":["onEditorUpdate"],"initialEditType":["onInitialEditTypeChanged"],"isReadOnly":["onIsReadOnlyChanged"],"previewStyle":["onPreviewStyleChanged"],"selectedTab":["onMarkdownPreviewTabChanged"],"showSaveButton":["onShowSaveButtonChanged"],"showToolbar":["onShowToolBarChanged"],"autosaveTimer":["onAutosaveTimerChanged"]}]]],["p-2227785a",[[1,"kup-grid",{"columns":[2],"customStyle":[1,"custom-style"],"singleLine":[4,"single-line"],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-26efe39b",[[0,"kup-planner-renderer",{"props":[1040],"timeUnit":[32],"currentTasks":[32],"currentDetails":[32],"scrollX":[32],"mainGanttDoubleView":[32],"displayedDates":[32],"viewDate":[32],"projection":[32],"tasks":[32],"details":[32],"refresh":[64]},null,{"props":["mainGanttChangeHandler"],"timeUnit":["updateDisplayedDates"],"mainGanttDoubleView":["updateDisplayedDates"],"props.preStepsCount":["updateDisplayedDates"],"viewDate":["updateDisplayedDates"],"currentTasks":["updateTasks"],"currentDetails":["updateTasks"]}]]],["p-3c321e45",[[1,"kup-box",{"cardData":[16],"columns":[2],"customStyle":[1,"custom-style"],"data":[16],"dragEnabled":[4,"drag-enabled"],"dropEnabled":[4,"drop-enabled"],"dropOnSection":[4,"drop-on-section"],"editableData":[4,"editable-data"],"enableRowActions":[4,"enable-row-actions"],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"kanban":[16],"layout":[16],"lazyLoadRows":[4,"lazy-load-rows"],"loadMoreLimit":[2,"load-more-limit"],"loadMoreMode":[1,"load-more-mode"],"loadMoreStep":[2,"load-more-step"],"multiSelection":[4,"multi-selection"],"pageSelected":[2,"page-selected"],"pagination":[4],"rowsPerPage":[2,"rows-per-page"],"scrollOnHover":[4,"scroll-on-hover"],"selectBox":[2,"select-box"],"selectedRowsState":[1025,"selected-rows-state"],"showLoadMore":[4,"show-load-more"],"showSelection":[4,"show-selection"],"sortBy":[1025,"sort-by"],"sortEnabled":[4,"sort-enabled"],"stateId":[1,"state-id"],"store":[16],"swipeDisabled":[4,"swipe-disabled"],"collapsedSection":[32],"selectedRows":[32],"rowActionMenuOpened":[32],"currentPage":[32],"currentRowsPerPage":[32],"getProps":[64],"loadRowActions":[64],"refresh":[64],"setProps":[64]},null,{"rowsPerPage":["rowsPerPageHandler","recalculateRows"],"globalFilterValue":["recalculateRows"],"sortBy":["recalculateRows"],"pagination":["recalculateRows"],"currentPage":["recalculateRows"],"currentRowsPerPage":["recalculateRows"],"data":["onDataChanged"],"layout":["onLayoutChanged"],"selectBox":["onSelectBoxChanged"]}]]],["p-94099e24",[[0,"kup-custom-task-list-header",{"label":[1],"doubleView":[4,"double-view"],"setDoubleView":[16],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"]}],[0,"kup-custom-task-list-table",{"ganttId":[1,"gantt-id"],"tasks":[16],"rowHeight":[2,"row-height"],"rowWidth":[1,"row-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"scrollableTaskList":[4,"scrollable-task-list"],"taskListScrollX":[2,"task-list-scroll-x"],"setSelectedTask":[16],"onclickTaskList":[16],"ondblclickTaskList":[16],"oncontextmenuTaskList":[16],"ontaskListScrollWidth":[16]},null,{"taskListScrollX":["updateTaskListScroll"]}],[0,"kup-gantt-calendar",{"dateSetup":[16],"locale":[1],"rtl":[4],"headerHeight":[2,"header-height"],"columnWidth":[2,"column-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"dateTimeFormatters":[16],"singleLineHeader":[4,"single-line-header"],"currentDateIndicator":[16],"svgWidth":[2,"svg-width"],"simplifiedHeader":[32]}],[0,"kup-grid-renderer",{"tasks":[16],"dates":[16],"ganttEvent":[16],"selectedTask":[16],"rowHeight":[2,"row-height"],"columnWidth":[2,"column-width"],"timeStep":[2,"time-step"],"taskHeight":[2,"task-height"],"arrowColor":[1,"arrow-color"],"arrowIndent":[2,"arrow-indent"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rtl":[4],"hideLabel":[4,"hide-label"],"showSecondaryDates":[4,"show-secondary-dates"],"currentDateIndicator":[16],"projection":[16],"readOnly":[4,"read-only"],"gridProps":[16],"dateChange":[16],"progressChange":[16],"doubleClick":[16],"barClick":[16],"barDblClick":[16],"barContextMenu":[16],"delete":[16],"setFailedTask":[16],"setSelectedTask":[16],"eventStart":[16],"eMouseDown":[16],"phaseDrop":[16],"setGanttEvent":[1040],"phaseDragScroll":[16],"xStep":[32],"initEventX1Delta":[32],"initEventXClick":[32],"isMoving":[32],"point":[32],"svg":[32],"currentTarget":[32],"dragScrollInterval":[32],"dropZoneTask":[32]},null,{"columnWidth":["updateXStep"],"dates":["updateXStep"],"timeStep":["updateXStep","updateSvgMove"],"ganttEvent":["updateSvgMove"],"xStep":["updateSvgMove"],"svg":["updateSvgMove"],"initEventX1Delta":["updateSvgMove"],"point":["updateSvgMove"],"rtl":["updateSvgMove"],"onProgressChange":["updateSvgMove"],"onDateChange":["updateSvgMove"]}]]],["p-9fa6808d",[[0,"kup-gantt",{"ganttId":[1,"gantt-id"],"tasks":[16],"headerHeight":[2,"header-height"],"columnWidth":[2,"column-width"],"listCellWidth":[1,"list-cell-width"],"rowHeight":[2,"row-height"],"filter":[16],"ganttHeight":[2,"gantt-height"],"viewMode":[1,"view-mode"],"preStepsCount":[2,"pre-steps-count"],"locale":[1],"barFill":[2,"bar-fill"],"projectFill":[2,"project-fill"],"timelineFill":[2,"timeline-fill"],"barCornerRadius":[2,"bar-corner-radius"],"barProgressColor":[1,"bar-progress-color"],"barProgressSelectedColor":[1,"bar-progress-selected-color"],"barBackgroundColor":[1,"bar-background-color"],"barBackgroundSelectedColor":[1,"bar-background-selected-color"],"projectProgressColor":[1,"project-progress-color"],"projectProgressSelectedColor":[1,"project-progress-selected-color"],"projectBackgroundColor":[1,"project-background-color"],"projectBackgroundSelectedColor":[1,"project-background-selected-color"],"rtl":[4],"handleWidth":[2,"handle-width"],"timeStep":[2,"time-step"],"arrowColor":[1,"arrow-color"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"arrowIndent":[2,"arrow-indent"],"todayColor":[1,"today-color"],"viewDate":[16],"TooltipContent":[16],"TaskListHeader":[16],"TaskListTable":[16],"dateTimeFormatters":[16],"singleLineHeader":[4,"single-line-header"],"hideLabel":[4,"hide-label"],"showSecondaryDates":[4,"show-secondary-dates"],"hideDependencies":[4,"hide-dependencies"],"projection":[16],"displayedStartDate":[16],"displayedEndDate":[16],"initialScrollX":[2,"initial-scroll-x"],"initialScrollY":[2,"initial-scroll-y"],"readOnly":[4,"read-only"],"currentTasks":[16],"label":[1],"doubleView":[4,"double-view"],"scrollableTaskList":[4,"scrollable-task-list"],"setDoubleView":[16],"barContextMenu":[16],"scrollXChange":[16],"scrollYChange":[16],"barClick":[16],"barDblClick":[16],"dateChange":[16],"select":[16],"handleClick":[16],"handleDblClick":[16],"handleContextMenu":[16],"ganttOnClick":[16],"ganttOnDblClick":[16],"ganttonOnContextMenu":[16],"progressChange":[16],"doubleClick":[16],"delete":[16],"expanderClick":[16],"phaseDrop":[16],"wrapperRef":[32],"taskGanttRef":[32],"taskListRef":[32],"dateSetup":[32],"taskListWidth":[32],"svgContainerWidth":[32],"svgContainerHeight":[32],"barTasks":[32],"ganttEvent":[32],"taskHeight":[32],"projectHeight":[32],"timelineHeight":[32],"selectedTask":[32],"failedTask":[32],"svgWidth":[32],"ganttFullHeight":[32],"scrollX":[32],"scrollY":[32],"ignoreScrollEvent":[32],"currentDateIndicatorContent":[32],"projectionContent":[32],"taskListScrollWidth":[32],"taskListScrollX":[32],"refresh":[64]},[[0,"wheel","handleWheel"]],{"initialScrollY":["updateInitialScrollY"],"scrollYChange":["updateInitialScrollY"],"initialScrollX":["updateInitialScrollX","updateIgnoreScrollEvent"],"scrollXChange":["updateInitialScrollX"],"tasks":["updateGanttData","updateSvgContainerHeight"],"viewMode":["updateGanttData","updateIgnoreScrollEvent"],"preStepsCount":["updateGanttData"],"rowHeight":["updateGanttData","updateSvgContainerHeight","updateGanttFullHeight"],"barCornerRadius":["updateGanttData"],"columnWidth":["updateGanttData","updateIgnoreScrollEvent","updateCurrentDateIndicatorContent","updateProjectionContent","updateSvgWidth"],"taskHeight":["updateGanttData"],"handleWidth":["updateGanttData"],"barProgressColor":["updateGanttData"],"barProgressSelectedColor":["updateGanttData"],"barBackgroundColor":["updateGanttData"],"barBackgroundSelectedColor":["updateGanttData"],"projectProgressColor":["updateGanttData"],"projectProgressSelectedColor":["updateGanttData"],"projectBackgroundColor":["updateGanttData"],"projectBackgroundSelectedColor":["updateGanttData"],"milestoneBackgroundColor":["updateGanttData"],"milestoneBackgroundSelectedColor":["updateGanttData"],"rtl":["updateGanttData","handleWheel"],"scrollX":["updateGanttData","handleWheel"],"onExpanderClick":["updateGanttData"],"showSecondaryDates":["updateGanttData"],"projectHeight":["updateGanttData"],"timelineHeight":["updateGanttData"],"displayedStartDate":["updateGanttData"],"displayedEndDate":["updateGanttData"],"dateSetup":["updateGanttData","updateIgnoreScrollEvent","updateCurrentDateIndicatorContent","updateProjectionContent","updateSvgWidth"],"viewDate":["updateIgnoreScrollEvent"],"ganttEvent":["updateGanttEventAndBarTasks"],"failedTask":["updateFailedTasksAndBarChart"],"barTasks":["updateFailedTasksAndBarChart","updateGanttFullHeight"],"taskListRef":["updateTaskListWidth"],"listCellWidth":["updateTaskListWidth"],"wrapperRef":["updateSvgContainerWidth","handleWheel"],"ganttHeight":["updateSvgContainerHeight","handleWheel"],"headerHeight":["updateSvgContainerHeight"],"scrollY":["handleWheel"],"svgWidth":["handleWheel"],"ganttFullHeight":["handleWheel"],"todayColor":["updateCurrentDateIndicatorContent"],"projection":["updateProjectionContent"]}],[0,"kup-switcher",{"timeUnitChange":[16],"activeButton":[32]}],[0,"kup-task-gantt",{"gridProps":[16],"calendarProps":[16],"barProps":[16],"taskGanttRef":[16],"ganttHeight":[2,"gantt-height"],"scrollY":[1026,"scroll-y"],"scrollX":[1026,"scroll-x"],"phaseDragScroll":[16]},null,{"scrollX":["updateScrollX"],"verticalGanttContainerRef":["updateScrollX"],"scrollY":["updateScrollY"],"horizontalContainerRef":["updateScrollY"]}],[0,"kup-task-list",{"headerHeight":[2,"header-height"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rowWidth":[1,"row-width"],"rowHeight":[2,"row-height"],"scrollY":[2,"scroll-y"],"locale":[1],"tasks":[16],"selectedTask":[16],"horizontalContainerClass":[1,"horizontal-container-class"],"ganttHeight":[2,"gantt-height"],"filter":[16],"TaskListHeader":[16],"TaskListTable":[16],"currentTasks":[16],"label":[1],"doubleView":[4,"double-view"],"scrollableTaskList":[4,"scrollable-task-list"],"updateTaskListScrollX":[4,"update-task-list-scroll-x"],"taskListScrollX":[2,"task-list-scroll-x"],"setDoubleView":[16],"handleClick":[16],"handleDblClick":[16],"handleContextMenu":[16],"ganttOnClick":[16],"ganttOnDblClick":[16],"ganttonOnContextMenu":[16],"setSelectedTask":[16],"expanderClick":[16],"ontaskListScrollWidth":[16],"selectedTaskId":[32]},null,{"scrollY":["updateScrollY"]}],[1,"kup-horizontal-scroll",{"scrollNumber":[2,"scroll-number"],"svgWidth":[2,"svg-width"],"taskListTrueRef":[16],"rtl":[4],"taskListWidth":[2,"task-list-width"],"scrollableTaskList":[4,"scrollable-task-list"],"listCellWidth":[1,"list-cell-width"],"taskListScrollWidth":[2,"task-list-scroll-width"],"taskListScrollNumber":[2,"task-list-scroll-number"],"horizontalScroll":[16],"horizontalTaskListScroll":[16],"timeoutId":[32]},null,{"scrollNumber":["scrollLeft"],"taskListScrollNumber":["listScrollLeft"]}],[1,"kup-standard-tooltip",{"task":[16],"fontSize":[1,"font-size"],"fontFamily":[1,"font-family"]}],[0,"kup-task-list-header",{"headerHeight":[2,"header-height"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rowWidth":[1,"row-width"]}],[0,"kup-task-list-table",{"rowHeight":[2,"row-height"],"rowWidth":[1,"row-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"locale":[1],"tasks":[16],"selectedTaskId":[1,"selected-task-id"],"setSelectedTask":[16],"expanderClick":[16],"expandedTasks":[32]}],[1,"kup-tooltip",{"task":[16],"rowHeight":[2,"row-height"],"rtl":[4],"svgContainerHeight":[2,"svg-container-height"],"svgContainerWidth":[2,"svg-container-width"],"scrollX":[2,"scroll-x"],"scrollY":[2,"scroll-y"],"arrowIndent":[2,"arrow-indent"],"fontSize":[1,"font-size"],"fontFamily":[1,"font-family"],"headerHeight":[2,"header-height"],"taskListWidth":[2,"task-list-width"],"TooltipContent":[8,"tooltip-content"],"svgWidth":[2,"svg-width"],"relatedY":[32],"relatedX":[32]},null,{"task":["calculateTooltipPosition"],"arrowIndent":["calculateTooltipPosition"],"scrollX":["calculateTooltipPosition"],"scrollY":["calculateTooltipPosition"],"headerHeight":["calculateTooltipPosition"],"taskListWidth":["calculateTooltipPosition"],"rowHeight":["calculateTooltipPosition"],"svgContainerHeight":["calculateTooltipPosition"],"svgContainerWidth":["calculateTooltipPosition"],"rtl":["calculateTooltipPosition"]}],[0,"kup-vertical-scroll",{"scrollNumber":[2,"scroll-number"],"ganttHeight":[2,"gantt-height"],"ganttFullHeight":[2,"gantt-full-height"],"headerHeight":[2,"header-height"],"rtl":[4],"verticalScroll":[16]},null,{"scrollNumber":["updateScroll"]}]]]]'),e)}));
|
|
1
|
+
import{p as e,b as t}from"./p-d7c15b0e.js";export{s as setNonce}from"./p-d7c15b0e.js";import{g as a}from"./p-e1255160.js";var l=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};l().then((async e=>{await a();return t(JSON.parse('[["p-92199556",[[1,"kup-data-table",{"stateId":[1,"state-id"],"store":[16],"autoFillMissingCells":[4,"auto-fill-missing-cells"],"customStyle":[1,"custom-style"],"data":[1040],"density":[1],"dragEnabled":[1540,"drag-enabled"],"dropEnabled":[516,"drop-enabled"],"editableData":[1028,"editable-data"],"emptyDataLabel":[1025,"empty-data-label"],"enableColumnsFormula":[4,"enable-columns-formula"],"enableExtraColumns":[4,"enable-extra-columns"],"enableMergeColumns":[4,"enable-merge-columns"],"enableSortableColumns":[4,"enable-sortable-columns"],"expandGroups":[4,"expand-groups"],"filters":[1040],"fixedColumns":[2,"fixed-columns"],"fixedColumnsR":[2,"fixed-columns-r"],"fixedRows":[2,"fixed-rows"],"forceOneLine":[516,"force-one-line"],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"groupLabelDisplay":[1,"group-label-display"],"groups":[1040],"headerIsPersistent":[4,"header-is-persistent"],"insertMode":[1,"insert-mode"],"isFocusable":[4,"is-focusable"],"lazyLoadRows":[4,"lazy-load-rows"],"lineBreakCharacter":[1,"line-break-character"],"loadMoreLimit":[2,"load-more-limit"],"loadMoreMode":[1,"load-more-mode"],"loadMoreStep":[2,"load-more-step"],"pageSelected":[2,"page-selected"],"paginatorPos":[1,"paginator-pos"],"legacyLook":[516,"legacy-look"],"removableColumns":[4,"removable-columns"],"resizableColumns":[4,"resizable-columns"],"rowActions":[16],"commands":[16],"rowsPerPage":[2,"rows-per-page"],"scrollOnHover":[4,"scroll-on-hover"],"selection":[1],"showCustomization":[4,"show-customization"],"showDeleteButton":[4,"show-delete-button"],"showHistoryButton":[4,"show-history-button"],"showFilters":[4,"show-filters"],"showFooter":[4,"show-footer"],"showGrid":[1,"show-grid"],"showGroups":[4,"show-groups"],"showHeader":[4,"show-header"],"showLoadMore":[4,"show-load-more"],"sort":[1040],"sortableColumnsMutateData":[4,"sortable-columns-mutate-data"],"sortEnabled":[4,"sort-enabled"],"tableHeight":[1,"table-height"],"tableWidth":[1,"table-width"],"totals":[1040],"transpose":[1028],"updatableData":[1028,"updatable-data"],"lazyLoadCells":[32],"currentPage":[32],"currentRowsPerPage":[32],"selectedRows":[32],"selectedColumn":[32],"columnMenuAnchor":[32],"groupState":[32],"openedTotalMenu":[32],"openedCustomSettings":[32],"fontsize":[32],"closeColumnMenu":[64],"collapseAll":[64],"deleteRows":[64],"closeInsertCard":[64],"closeConfirmDeleteCard":[64],"getCards":[64],"insertNewRow":[64],"expandAll":[64],"getProps":[64],"getSelectedRows":[64],"hideColumn":[64],"setGroupExpansionByDepth":[64],"newColumn":[64],"openColumnMenu":[64],"refresh":[64],"resizeCallback":[64],"setCellValue":[64],"setFocus":[64],"setProps":[64],"setSelectedRows":[64],"getInternalState":[64],"defaultSortingFunction":[64]},null,{"rowsPerPage":["rowsPerPageHandler","recalculateRows"],"expandGroups":["expandGroupsHandler"],"filters":["filtersChanged"],"globalFilterValue":["filtersChanged"],"sort":["recalculateRows"],"totals":["recalculateRows"],"currentPage":["recalculateRows"],"currentRowsPerPage":["recalculateRows"],"data":["identifyAndInitRows","backupOriginalDataAndAdapting"],"groups":["recalculateRowsAndUndoSelections"],"fixedColumns":["controlFixedRowsColumns"],"fixedColumnsR":["controlFixedRowsColumns"],"fixedRows":["controlFixedRowsColumns"],"transpose":["recalculateData"]}],[1,"kup-form",{"customStyle":[1,"custom-style"],"data":[16],"hiddenSubmitButton":[4,"hidden-submit-button"],"labelPlacement":[1,"label-placement"],"layout":[16],"submitCb":[16],"getProps":[64],"refresh":[64],"setFocus":[64],"setProps":[64]},null,{"data":["onDataChanged"],"layout":["onLayoutChanged"]}],[1,"kup-autocomplete",{"alert":[1],"allowInconsistentValues":[4,"allow-inconsistent-values"],"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"displayMode":[1,"display-mode"],"error":[1],"icon":[1],"initialValue":[1,"initial-value"],"isClearable":[4,"is-clearable"],"inputDelay":[2,"input-delay"],"label":[1],"leadingLabel":[4,"leading-label"],"minimumChars":[2,"minimum-chars"],"readOnly":[4,"read-only"],"selectMode":[1,"select-mode"],"serverHandledFilter":[516,"server-handled-filter"],"showDropDownIcon":[4,"show-drop-down-icon"],"sizing":[1],"trailingIcon":[4,"trailing-icon"],"displayedValue":[32],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-button",{"buttonType":[1,"button-type"],"checked":[1028],"contentAlign":[1,"content-align"],"customStyle":[1,"custom-style"],"disabled":[4],"icon":[1],"iconOff":[1,"icon-off"],"label":[1],"blackMode":[4,"black-mode"],"placeholderIcon":[1,"placeholder-icon"],"styling":[1],"showSpinner":[4,"show-spinner"],"toggable":[4],"trailingIcon":[4,"trailing-icon"],"sizing":[1],"keyShortcut":[1,"key-shortcut"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-button-list",{"blackMode":[4,"black-mode"],"contentAlign":[1,"content-align"],"columns":[2],"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"showSelection":[4,"show-selection"],"sizing":[1],"styling":[513],"selected":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}],[1,"kup-checkbox",{"alert":[1],"checked":[1028],"customStyle":[1,"custom-style"],"disabled":[4],"error":[1],"indeterminate":[1028],"label":[1],"leadingLabel":[4,"leading-label"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-tree",{"asAccordion":[516,"as-accordion"],"columns":[1040],"customStyle":[1,"custom-style"],"data":[1040],"density":[1],"dynamicExpansionCallback":[16],"editableData":[4,"editable-data"],"enableExtraColumns":[4,"enable-extra-columns"],"expanded":[4],"expansionMode":[1,"expansion-mode"],"filters":[1040],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"globalFilterMode":[1,"global-filter-mode"],"preventXScroll":[516,"prevent-x-scroll"],"removableColumns":[4,"removable-columns"],"ripple":[4],"scrollOnHover":[4,"scroll-on-hover"],"showColumns":[1028,"show-columns"],"showFilters":[4,"show-filters"],"showFooter":[4,"show-footer"],"showHeader":[1028,"show-header"],"showIcons":[4,"show-icons"],"stateId":[1,"state-id"],"store":[16],"useDynamicExpansion":[4,"use-dynamic-expansion"],"totals":[1040],"treeColumnVisible":[32],"openedTotalMenu":[32],"columnMenuAnchor":[32],"stateSwitcher":[32],"selectedNode":[32],"getSelectedNode":[64],"setSelectedNode":[64],"isEmpty":[64],"closeColumnMenu":[64],"collapseAll":[64],"expandAll":[64],"setExpansionByDepth":[64],"getProps":[64],"hideColumn":[64],"openColumnMenu":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["enrichDataWhenChanged"],"expanded":["enrichStructureStateWhenChanged"]}],[1,"kup-color-picker",{"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"initialValue":[1,"initial-value"],"readOnly":[4,"read-only"],"swatchOnly":[4,"swatch-only"],"value":[32],"getProps":[64],"getValue":[64],"setFocus":[64],"setProps":[64],"setValue":[64],"refresh":[64]}],[1,"kup-dropdown-button",{"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"displayMode":[1,"display-mode"],"dropdownOnly":[4,"dropdown-only"],"icon":[1],"initialValue":[1,"initial-value"],"label":[1],"placeholderIcon":[1,"placeholder-icon"],"selectMode":[1,"select-mode"],"sizing":[1],"styling":[1],"trailingIcon":[4,"trailing-icon"],"id":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-radio",{"columns":[2],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"horizontal":[4],"label":[1],"leadingLabel":[4,"leading-label"],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-image",{"badgeData":[16],"color":[1],"customStyle":[1,"custom-style"],"data":[16],"feedback":[4],"isCanvas":[4,"is-canvas"],"placeholderResource":[1,"placeholder-resource"],"resource":[1],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"zoomEnable":[4,"zoom-enable"],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-badge",{"customStyle":[1,"custom-style"],"imageData":[16],"type":[1],"text":[1],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-card",{"customStyle":[1,"custom-style"],"data":[16],"isMenu":[516,"is-menu"],"layoutFamily":[1,"layout-family"],"layoutNumber":[2,"layout-number"],"menuVisible":[1540,"menu-visible"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}],[1,"kup-chart",{"asp":[1],"axis":[1],"chartTitle":[16],"colors":[16],"customStyle":[1,"custom-style"],"data":[16],"hAxis":[16],"hAxes":[16],"legend":[1],"offlineMode":[16],"series":[16],"showMarks":[4,"show-marks"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"sorting":[16],"stacked":[4],"types":[16],"vAxes":[16],"vAxis":[16],"trendlines":[16],"version":[1],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["identifyRows"]}],[1,"kup-chip",{"customStyle":[1,"custom-style"],"data":[1040],"displayId":[4,"display-id"],"enableInput":[4,"enable-input"],"type":[1],"sizing":[1],"styling":[1],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}],[1,"kup-combobox",{"alert":[1],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"displayMode":[1,"display-mode"],"error":[1],"icon":[1],"initialValue":[1,"initial-value"],"isClearable":[4,"is-clearable"],"isSelect":[516,"is-select"],"label":[1],"leadingLabel":[4,"leading-label"],"readOnly":[4,"read-only"],"selectMode":[1,"select-mode"],"showDropDownIcon":[4,"show-drop-down-icon"],"sizing":[1],"trailingIcon":[4,"trailing-icon"],"displayedValue":[32],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[0,"keydown","listenKeydown"]],{"initialValue":["initialValueChange"]}],[1,"kup-date-picker",{"customStyle":[1,"custom-style"],"data":[1040],"disabled":[4],"firstDayIndex":[2,"first-day-index"],"initialValue":[1,"initial-value"],"outlined":[4],"sizing":[1],"showIcon":[4,"show-icon"],"showPreviousNextMonthDays":[4,"show-previous-next-month-days"],"stateSwitcher":[32],"ISOvalue":[32],"notISOvalue":[32],"getValue":[64],"getProps":[64],"refresh":[64],"setFocus":[64],"setValue":[64]},[[0,"keyup","listenKeyup"]],{"firstDayIndex":["watchFirstDayIndex"]}],[1,"kup-gauge",{"arcThickness":[2,"arc-thickness"],"colors":[16],"customStyle":[1,"custom-style"],"firstThreshold":[2,"first-threshold"],"labelDistance":[1026,"label-distance"],"maxValue":[1026,"max-value"],"measurementUnit":[1,"measurement-unit"],"minValue":[1026,"min-value"],"needleCircle":[4,"needle-circle"],"onlyValue":[4,"only-value"],"reverseColors":[4,"reverse-colors"],"secondThreshold":[2,"second-threshold"],"showLabels":[4,"show-labels"],"showMaxmin":[4,"show-maxmin"],"showValue":[4,"show-value"],"size":[2],"value":[1026],"valueSize":[2,"value-size"],"widthComponent":[1,"width-component"],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-tab-bar",{"customStyle":[1,"custom-style"],"data":[16],"dense":[4],"ripple":[4],"toolbar":[4],"toolbarData":[16],"value":[32],"getProps":[64],"getSelectedNode":[64],"refresh":[64],"setProps":[64]},null,{"ripple":["applyRipple"]}],[1,"kup-list",{"customStyle":[1,"custom-style"],"data":[1040],"displayMode":[1,"display-mode"],"filter":[1025],"hideText":[4,"hide-text"],"isMenu":[4,"is-menu"],"keyboardNavigation":[4,"keyboard-navigation"],"menuVisible":[4,"menu-visible"],"roleType":[1025,"role-type"],"selectable":[4],"showIcons":[4,"show-icons"],"twoLine":[4,"two-line"],"focused":[32],"selected":[32],"focusNext":[64],"focusPrevious":[64],"getProps":[64],"getSelectedNode":[64],"refresh":[64],"select":[64],"setProps":[64]},[[0,"keydown","listenKeydown"]]],[1,"kup-progress-bar",{"centeredLabel":[4,"centered-label"],"customStyle":[1,"custom-style"],"hideLabel":[4,"hide-label"],"icon":[1],"label":[1],"isRadial":[516,"is-radial"],"value":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-rating",{"customStyle":[1,"custom-style"],"disabled":[4],"maxValue":[2,"max-value"],"value":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-spinner",{"active":[516],"barVariant":[4,"bar-variant"],"customStyle":[1,"custom-style"],"dimensions":[1],"fader":[4],"faderTimeout":[2,"fader-timeout"],"fullScreen":[516,"full-screen"],"layout":[2],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-switch",{"checked":[1028],"customStyle":[1,"custom-style"],"disabled":[4],"label":[1],"leadingLabel":[4,"leading-label"],"sizing":[1],"value":[32],"getProps":[64],"refresh":[64],"setProps":[64]}],[1,"kup-text-field",{"alert":[1],"allowNegative":[4,"allow-negative"],"customStyle":[1,"custom-style"],"decimals":[2],"disabled":[4],"emitSubmitEventOnEnter":[4,"emit-submit-event-on-enter"],"error":[1],"fullWidth":[516,"full-width"],"group":[4],"helper":[1],"helperIcon":[4,"helper-icon"],"helperEnabled":[4,"helper-enabled"],"helperWhenFocused":[4,"helper-when-focused"],"hiddenCounter":[4,"hidden-counter"],"icon":[1],"initialValue":[1,"initial-value"],"inputMode":[1,"input-mode"],"inputType":[1,"input-type"],"integers":[2],"isClearable":[4,"is-clearable"],"label":[1],"lightMode":[4,"light-mode"],"leadingLabel":[4,"leading-label"],"max":[2],"maxLength":[2,"max-length"],"min":[2],"name":[1],"outlined":[4],"placeholder":[1],"quantityButtons":[4,"quantity-buttons"],"readOnly":[4,"read-only"],"size":[2],"sizing":[1],"step":[2],"textArea":[4,"text-area"],"trailingIcon":[4,"trailing-icon"],"trailingLabel":[4,"trailing-label"],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]}],[1,"kup-time-picker",{"clockVariant":[4,"clock-variant"],"customStyle":[1,"custom-style"],"data":[16],"disabled":[4],"initialValue":[1,"initial-value"],"manageSeconds":[4,"manage-seconds"],"timeMinutesStep":[2,"time-minutes-step"],"value":[32],"getProps":[64],"getValue":[64],"refresh":[64],"setFocus":[64],"setProps":[64],"setValue":[64]},[[4,"keyup","listenKeyup"]],{"timeMinutesStep":["watchTimeMinutesStep"]}],[1,"kup-dialog",{"autoCenter":[16],"customStyle":[1,"custom-style"],"header":[16],"modal":[16],"resizable":[4],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"close":[64],"getProps":[64],"recalcPosition":[64],"refresh":[64],"setProps":[64]}]]],["p-ce5a86e1",[[1,"kup-planner",{"stateId":[1,"state-id"],"store":[16],"customStyle":[1,"custom-style"],"data":[16],"detailData":[16],"detailColorCol":[1,"detail-color-col"],"detailColumns":[16],"detailDates":[16],"detailFilter":[1,"detail-filter"],"detailHeight":[2,"detail-height"],"detailHours":[16],"detailIconCol":[1,"detail-icon-col"],"detailIdCol":[1,"detail-id-col"],"detailNameCol":[1,"detail-name-col"],"detailPrevHours":[16],"detailPrevDates":[16],"detailInitialScrollX":[2,"detail-initial-scroll-x"],"detailInitialScrollY":[2,"detail-initial-scroll-y"],"listCellWidth":[1,"list-cell-width"],"maxWidth":[1,"max-width"],"phaseColorCol":[1,"phase-color-col"],"phaseColumns":[16],"phaseColParDep":[1,"phase-col-par-dep"],"phaseDates":[16],"phaseHours":[16],"phaseIconCol":[1,"phase-icon-col"],"phaseIdCol":[1,"phase-id-col"],"phaseNameCol":[1,"phase-name-col"],"phasePrevHours":[16],"phasePrevDates":[16],"readOnly":[4,"read-only"],"showSecondaryDates":[4,"show-secondary-dates"],"taskColumns":[16],"taskDates":[16],"taskFilter":[1,"task-filter"],"taskHeight":[2,"task-height"],"taskHours":[16],"taskIconCol":[1,"task-icon-col"],"taskIdCol":[1,"task-id-col"],"taskInitialScrollX":[2,"task-initial-scroll-x"],"taskInitialScrollY":[2,"task-initial-scroll-y"],"taskNameCol":[1,"task-name-col"],"taskPrevHours":[16],"taskPrevDates":[16],"titleMess":[1,"title-mess"],"viewMode":[1,"view-mode"],"mainFilter":[16],"secondaryFilter":[16],"scrollableTaskList":[4,"scrollable-task-list"],"plannerProps":[32],"getProps":[64],"refresh":[64],"setProps":[64],"addPhases":[64]},null,{"data":["dataChanged"]}]]],["p-b849ae30",[[1,"kup-magic-box",{"customStyle":[1,"custom-style"],"data":[1040],"display":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-cdd29a6d",[[1,"kup-card-list",{"columnsNumber":[2,"columns-number"],"customStyle":[1,"custom-style"],"data":[16],"fullWidth":[4,"full-width"],"horizontal":[4],"descrCol":[1,"descr-col"],"iconCol":[1,"icon-col"],"valueCol":[1,"value-col"],"measureCol":[1,"measure-col"],"intvalueCol":[1,"intvalue-col"],"decvalueCol":[1,"decvalue-col"],"textcolorCol":[1,"textcolor-col"],"valuecolorCol":[1,"valuecolor-col"],"iconcolorCol":[1,"iconcolor-col"],"layoutCol":[1,"layout-col"],"isClickable":[4,"is-clickable"],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-48368d6a",[[1,"kup-family-tree",{"autofitOnExpand":[4,"autofit-on-expand"],"autofitOnLoad":[4,"autofit-on-load"],"cardData":[16],"collapsible":[4],"customStyle":[1,"custom-style"],"data":[16],"layout":[2],"stackedLeaves":[4,"stacked-leaves"],"collapseAll":[64],"expandAll":[64],"getProps":[64],"refresh":[64],"runAutofit":[64],"setProps":[64]}]]],["p-aa28eef6",[[1,"kup-input-panel",{"customStyle":[1,"custom-style"],"data":[16],"hiddenSubmitButton":[4,"hidden-submit-button"],"submitCb":[16],"optionsHandler":[16],"customButtonClickHandler":[16],"inputPanelCells":[32],"tabSelected":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["onDataChanged"]}]]],["p-87ff86ee",[[1,"kup-accordion",{"customStyle":[1,"custom-style"],"data":[16],"ripple":[4],"sizing":[1],"selectedItems":[32],"collapseAll":[64],"expandAll":[64],"getProps":[64],"refresh":[64],"setProps":[64],"toggleItem":[64]},null,{"ripple":["applyRipple"]}]]],["p-2b47d837",[[1,"kup-activity-timeline",{"data":[16],"dateColumn":[1,"date-column"],"sort":[16],"timeColumn":[1,"time-column"],"timeline":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-05a7120a",[[1,"kup-calendar",{"currentDate":[1,"current-date"],"customStyle":[1,"custom-style"],"data":[16],"hideNavigation":[4,"hide-navigation"],"editableEvents":[4,"editable-events"],"viewType":[1025,"view-type"],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]},null,{"data":["setCalendarData"],"currentDate":["setCalendarData"]}]]],["p-414148a2",[[1,"kup-cell",{"customStyle":[1,"custom-style"],"data":[16],"density":[1],"dragEnabled":[4,"drag-enabled"],"showSubmit":[4,"show-submit"],"submitPosition":[1,"submit-position"],"addCssClasses":[64],"getProps":[64],"refresh":[64],"removeCssClasses":[64],"setProps":[64]}]]],["p-afc92adf",[[1,"kup-dashboard",{"customStyle":[1,"custom-style"],"data":[16],"enableDesign":[4,"enable-design"],"resetInternalData":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["dataChanged"]}]]],["p-6d51f043",[[1,"kup-drawer",{"customStyle":[1,"custom-style"],"opened":[32],"close":[64],"getProps":[64],"isOpened":[64],"open":[64],"refresh":[64],"setProps":[64],"toggle":[64]}]]],["p-5e889cbc",[[1,"kup-htm",{"data":[16],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-03885b8d",[[1,"kup-iframe",{"buttonData":[16],"isButton":[4,"is-button"],"src":[1],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-0d20ebc4",[[1,"kup-image-list",{"columns":[16],"customStyle":[1,"custom-style"],"data":[16],"ripple":[4],"rows":[2],"selectedNode":[16],"stateId":[1,"state-id"],"store":[16],"currentNode":[32],"navigationBarToggled":[32],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"selectedNode":["selectNode"]}]]],["p-4b14b67b",[[1,"kup-lazy",{"componentName":[1,"component-name"],"customStyle":[1,"custom-style"],"data":[16],"renderMode":[1,"render-mode"],"showPlaceholder":[4,"show-placeholder"],"isInViewport":[32],"getProps":[64],"getComponent":[64],"refresh":[64],"setProps":[64]}]]],["p-b46a4d95",[[1,"kup-nav-bar",{"customStyle":[1,"custom-style"],"styling":[513],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}]]],["p-3a8f5a76",[[1,"kup-numeric-picker",{"customStyle":[1,"custom-style"],"data":[1040],"decimals":[4],"disabled":[4],"initialValue":[1,"initial-value"],"maxDecimals":[1026,"max-decimals"],"maxIntegers":[1026,"max-integers"],"maxLength":[2,"max-length"],"negative":[4],"stateSwitcher":[32],"value":[32],"getValue":[64],"getProps":[64],"refresh":[64],"setFocus":[64],"setValue":[64]},[[0,"keyup","listenKeyup"]]]]],["p-e8c292e9",[[1,"kup-pdf",{"pdfPath":[1,"pdf-path"],"sendCredentials":[4,"send-credentials"],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"pdfPath":["onPdfPathChange"]}]]],["p-362a8b69",[[1,"kup-photo-frame",{"customStyle":[1,"custom-style"],"placeholderAttrs":[16],"resourceAttrs":[16],"threshold":[2],"isInViewport":[32],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-bb4e26cb",[[1,"kup-probe",{"customStyle":[1,"custom-style"],"features":[16],"content":[32],"printLifecycleTime":[64],"refresh":[64]}]]],["p-422e1c5d",[[0,"kup-qlik",{"config":[16],"qlik":[8],"appid":[513],"app":[520],"grid":[16],"debug":[4],"fluid":[4],"bordered":[4],"defobjsize":[1],"divlist":[32]}]]],["p-20c22a22",[[1,"kup-snackbar",{"actionButton":[16],"closeButton":[4,"close-button"],"customStyle":[1,"custom-style"],"text":[1],"header":[1],"timeout":[2],"visible":[32],"getProps":[64],"hide":[64],"refresh":[64],"setProps":[64],"show":[64]}]]],["p-a33ea26d",[[1,"kup-typography",{"customStyle":[1,"custom-style"],"toolbar":[4],"toolbarData":[16],"type":[1],"value":[1],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-2c8d07af",[[1,"kup-typography-list",{"customStyle":[1,"custom-style"],"data":[1040],"type":[1],"toolbar":[4],"getProps":[64],"refresh":[64],"setProps":[64]},null,{"data":["checkDataset"]}]]],["p-202dfeee",[[1,"kup-echart",{"axis":[1025],"colors":[16],"consistencyCheck":[4,"consistency-check"],"chartTitle":[16],"customStyle":[1,"custom-style"],"data":[16],"legend":[1],"map":[1],"series":[16],"showMarks":[4,"show-marks"],"sizeX":[1,"size-x"],"sizeY":[1,"size-y"],"stacked":[4],"types":[16],"xAxis":[16],"yAxis":[16],"getProps":[64],"refresh":[64],"resizeCallback":[64],"setProps":[64]}]]],["p-b6c07403",[[0,"kup-editor",{"autosaveTimer":[2,"autosave-timer"],"editorHeight":[1,"editor-height"],"initialEditType":[1,"initial-edit-type"],"initialValue":[1,"initial-value"],"isReadOnly":[4,"is-read-only"],"previewStyle":[1,"preview-style"],"selectedTab":[1,"selected-tab"],"showSaveButton":[4,"show-save-button"],"showToolbar":[4,"show-toolbar"],"editor":[32],"editorRef":[32],"viewer":[32],"getProps":[64],"getValueAsHTML":[64],"getValueAsMarkdown":[64],"refresh":[64],"setProps":[64]},null,{"editorRef":["onEditorRefUpdated"],"editor":["onEditorUpdate"],"initialEditType":["onInitialEditTypeChanged"],"isReadOnly":["onIsReadOnlyChanged"],"previewStyle":["onPreviewStyleChanged"],"selectedTab":["onMarkdownPreviewTabChanged"],"showSaveButton":["onShowSaveButtonChanged"],"showToolbar":["onShowToolBarChanged"],"autosaveTimer":["onAutosaveTimerChanged"]}]]],["p-2227785a",[[1,"kup-grid",{"columns":[2],"customStyle":[1,"custom-style"],"singleLine":[4,"single-line"],"getProps":[64],"refresh":[64],"setProps":[64]}]]],["p-26efe39b",[[0,"kup-planner-renderer",{"props":[1040],"timeUnit":[32],"currentTasks":[32],"currentDetails":[32],"scrollX":[32],"mainGanttDoubleView":[32],"displayedDates":[32],"viewDate":[32],"projection":[32],"tasks":[32],"details":[32],"refresh":[64]},null,{"props":["mainGanttChangeHandler"],"timeUnit":["updateDisplayedDates"],"mainGanttDoubleView":["updateDisplayedDates"],"props.preStepsCount":["updateDisplayedDates"],"viewDate":["updateDisplayedDates"],"currentTasks":["updateTasks"],"currentDetails":["updateTasks"]}]]],["p-ee526a78",[[1,"kup-box",{"cardData":[16],"columns":[2],"customStyle":[1,"custom-style"],"data":[16],"dragEnabled":[4,"drag-enabled"],"dropEnabled":[4,"drop-enabled"],"dropOnSection":[4,"drop-on-section"],"editableData":[4,"editable-data"],"enableRowActions":[4,"enable-row-actions"],"globalFilter":[4,"global-filter"],"globalFilterValue":[1537,"global-filter-value"],"kanban":[16],"layout":[16],"lazyLoadRows":[4,"lazy-load-rows"],"loadMoreLimit":[2,"load-more-limit"],"loadMoreMode":[1,"load-more-mode"],"loadMoreStep":[2,"load-more-step"],"multiSelection":[4,"multi-selection"],"pageSelected":[2,"page-selected"],"pagination":[4],"rowsPerPage":[2,"rows-per-page"],"scrollOnHover":[4,"scroll-on-hover"],"selectBox":[2,"select-box"],"selectedRowsState":[1025,"selected-rows-state"],"showLoadMore":[4,"show-load-more"],"showSelection":[4,"show-selection"],"sortBy":[1025,"sort-by"],"sortEnabled":[4,"sort-enabled"],"stateId":[1,"state-id"],"store":[16],"swipeDisabled":[4,"swipe-disabled"],"collapsedSection":[32],"selectedRows":[32],"rowActionMenuOpened":[32],"currentPage":[32],"currentRowsPerPage":[32],"getProps":[64],"loadRowActions":[64],"refresh":[64],"setProps":[64]},null,{"rowsPerPage":["rowsPerPageHandler","recalculateRows"],"globalFilterValue":["recalculateRows"],"sortBy":["recalculateRows"],"pagination":["recalculateRows"],"currentPage":["recalculateRows"],"currentRowsPerPage":["recalculateRows"],"data":["onDataChanged"],"layout":["onLayoutChanged"],"selectBox":["onSelectBoxChanged"]}]]],["p-94099e24",[[0,"kup-custom-task-list-header",{"label":[1],"doubleView":[4,"double-view"],"setDoubleView":[16],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"]}],[0,"kup-custom-task-list-table",{"ganttId":[1,"gantt-id"],"tasks":[16],"rowHeight":[2,"row-height"],"rowWidth":[1,"row-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"scrollableTaskList":[4,"scrollable-task-list"],"taskListScrollX":[2,"task-list-scroll-x"],"setSelectedTask":[16],"onclickTaskList":[16],"ondblclickTaskList":[16],"oncontextmenuTaskList":[16],"ontaskListScrollWidth":[16]},null,{"taskListScrollX":["updateTaskListScroll"]}],[0,"kup-gantt-calendar",{"dateSetup":[16],"locale":[1],"rtl":[4],"headerHeight":[2,"header-height"],"columnWidth":[2,"column-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"dateTimeFormatters":[16],"singleLineHeader":[4,"single-line-header"],"currentDateIndicator":[16],"svgWidth":[2,"svg-width"],"simplifiedHeader":[32]}],[0,"kup-grid-renderer",{"tasks":[16],"dates":[16],"ganttEvent":[16],"selectedTask":[16],"rowHeight":[2,"row-height"],"columnWidth":[2,"column-width"],"timeStep":[2,"time-step"],"taskHeight":[2,"task-height"],"arrowColor":[1,"arrow-color"],"arrowIndent":[2,"arrow-indent"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rtl":[4],"hideLabel":[4,"hide-label"],"showSecondaryDates":[4,"show-secondary-dates"],"currentDateIndicator":[16],"projection":[16],"readOnly":[4,"read-only"],"gridProps":[16],"dateChange":[16],"progressChange":[16],"doubleClick":[16],"barClick":[16],"barDblClick":[16],"barContextMenu":[16],"delete":[16],"setFailedTask":[16],"setSelectedTask":[16],"eventStart":[16],"eMouseDown":[16],"phaseDrop":[16],"setGanttEvent":[1040],"phaseDragScroll":[16],"xStep":[32],"initEventX1Delta":[32],"initEventXClick":[32],"isMoving":[32],"point":[32],"svg":[32],"currentTarget":[32],"dragScrollInterval":[32],"dropZoneTask":[32]},null,{"columnWidth":["updateXStep"],"dates":["updateXStep"],"timeStep":["updateXStep","updateSvgMove"],"ganttEvent":["updateSvgMove"],"xStep":["updateSvgMove"],"svg":["updateSvgMove"],"initEventX1Delta":["updateSvgMove"],"point":["updateSvgMove"],"rtl":["updateSvgMove"],"onProgressChange":["updateSvgMove"],"onDateChange":["updateSvgMove"]}]]],["p-9fa6808d",[[0,"kup-gantt",{"ganttId":[1,"gantt-id"],"tasks":[16],"headerHeight":[2,"header-height"],"columnWidth":[2,"column-width"],"listCellWidth":[1,"list-cell-width"],"rowHeight":[2,"row-height"],"filter":[16],"ganttHeight":[2,"gantt-height"],"viewMode":[1,"view-mode"],"preStepsCount":[2,"pre-steps-count"],"locale":[1],"barFill":[2,"bar-fill"],"projectFill":[2,"project-fill"],"timelineFill":[2,"timeline-fill"],"barCornerRadius":[2,"bar-corner-radius"],"barProgressColor":[1,"bar-progress-color"],"barProgressSelectedColor":[1,"bar-progress-selected-color"],"barBackgroundColor":[1,"bar-background-color"],"barBackgroundSelectedColor":[1,"bar-background-selected-color"],"projectProgressColor":[1,"project-progress-color"],"projectProgressSelectedColor":[1,"project-progress-selected-color"],"projectBackgroundColor":[1,"project-background-color"],"projectBackgroundSelectedColor":[1,"project-background-selected-color"],"rtl":[4],"handleWidth":[2,"handle-width"],"timeStep":[2,"time-step"],"arrowColor":[1,"arrow-color"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"arrowIndent":[2,"arrow-indent"],"todayColor":[1,"today-color"],"viewDate":[16],"TooltipContent":[16],"TaskListHeader":[16],"TaskListTable":[16],"dateTimeFormatters":[16],"singleLineHeader":[4,"single-line-header"],"hideLabel":[4,"hide-label"],"showSecondaryDates":[4,"show-secondary-dates"],"hideDependencies":[4,"hide-dependencies"],"projection":[16],"displayedStartDate":[16],"displayedEndDate":[16],"initialScrollX":[2,"initial-scroll-x"],"initialScrollY":[2,"initial-scroll-y"],"readOnly":[4,"read-only"],"currentTasks":[16],"label":[1],"doubleView":[4,"double-view"],"scrollableTaskList":[4,"scrollable-task-list"],"setDoubleView":[16],"barContextMenu":[16],"scrollXChange":[16],"scrollYChange":[16],"barClick":[16],"barDblClick":[16],"dateChange":[16],"select":[16],"handleClick":[16],"handleDblClick":[16],"handleContextMenu":[16],"ganttOnClick":[16],"ganttOnDblClick":[16],"ganttonOnContextMenu":[16],"progressChange":[16],"doubleClick":[16],"delete":[16],"expanderClick":[16],"phaseDrop":[16],"wrapperRef":[32],"taskGanttRef":[32],"taskListRef":[32],"dateSetup":[32],"taskListWidth":[32],"svgContainerWidth":[32],"svgContainerHeight":[32],"barTasks":[32],"ganttEvent":[32],"taskHeight":[32],"projectHeight":[32],"timelineHeight":[32],"selectedTask":[32],"failedTask":[32],"svgWidth":[32],"ganttFullHeight":[32],"scrollX":[32],"scrollY":[32],"ignoreScrollEvent":[32],"currentDateIndicatorContent":[32],"projectionContent":[32],"taskListScrollWidth":[32],"taskListScrollX":[32],"refresh":[64]},[[0,"wheel","handleWheel"]],{"initialScrollY":["updateInitialScrollY"],"scrollYChange":["updateInitialScrollY"],"initialScrollX":["updateInitialScrollX","updateIgnoreScrollEvent"],"scrollXChange":["updateInitialScrollX"],"tasks":["updateGanttData","updateSvgContainerHeight"],"viewMode":["updateGanttData","updateIgnoreScrollEvent"],"preStepsCount":["updateGanttData"],"rowHeight":["updateGanttData","updateSvgContainerHeight","updateGanttFullHeight"],"barCornerRadius":["updateGanttData"],"columnWidth":["updateGanttData","updateIgnoreScrollEvent","updateCurrentDateIndicatorContent","updateProjectionContent","updateSvgWidth"],"taskHeight":["updateGanttData"],"handleWidth":["updateGanttData"],"barProgressColor":["updateGanttData"],"barProgressSelectedColor":["updateGanttData"],"barBackgroundColor":["updateGanttData"],"barBackgroundSelectedColor":["updateGanttData"],"projectProgressColor":["updateGanttData"],"projectProgressSelectedColor":["updateGanttData"],"projectBackgroundColor":["updateGanttData"],"projectBackgroundSelectedColor":["updateGanttData"],"milestoneBackgroundColor":["updateGanttData"],"milestoneBackgroundSelectedColor":["updateGanttData"],"rtl":["updateGanttData","handleWheel"],"scrollX":["updateGanttData","handleWheel"],"onExpanderClick":["updateGanttData"],"showSecondaryDates":["updateGanttData"],"projectHeight":["updateGanttData"],"timelineHeight":["updateGanttData"],"displayedStartDate":["updateGanttData"],"displayedEndDate":["updateGanttData"],"dateSetup":["updateGanttData","updateIgnoreScrollEvent","updateCurrentDateIndicatorContent","updateProjectionContent","updateSvgWidth"],"viewDate":["updateIgnoreScrollEvent"],"ganttEvent":["updateGanttEventAndBarTasks"],"failedTask":["updateFailedTasksAndBarChart"],"barTasks":["updateFailedTasksAndBarChart","updateGanttFullHeight"],"taskListRef":["updateTaskListWidth"],"listCellWidth":["updateTaskListWidth"],"wrapperRef":["updateSvgContainerWidth","handleWheel"],"ganttHeight":["updateSvgContainerHeight","handleWheel"],"headerHeight":["updateSvgContainerHeight"],"scrollY":["handleWheel"],"svgWidth":["handleWheel"],"ganttFullHeight":["handleWheel"],"todayColor":["updateCurrentDateIndicatorContent"],"projection":["updateProjectionContent"]}],[0,"kup-switcher",{"timeUnitChange":[16],"activeButton":[32]}],[0,"kup-task-gantt",{"gridProps":[16],"calendarProps":[16],"barProps":[16],"taskGanttRef":[16],"ganttHeight":[2,"gantt-height"],"scrollY":[1026,"scroll-y"],"scrollX":[1026,"scroll-x"],"phaseDragScroll":[16]},null,{"scrollX":["updateScrollX"],"verticalGanttContainerRef":["updateScrollX"],"scrollY":["updateScrollY"],"horizontalContainerRef":["updateScrollY"]}],[0,"kup-task-list",{"headerHeight":[2,"header-height"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rowWidth":[1,"row-width"],"rowHeight":[2,"row-height"],"scrollY":[2,"scroll-y"],"locale":[1],"tasks":[16],"selectedTask":[16],"horizontalContainerClass":[1,"horizontal-container-class"],"ganttHeight":[2,"gantt-height"],"filter":[16],"TaskListHeader":[16],"TaskListTable":[16],"currentTasks":[16],"label":[1],"doubleView":[4,"double-view"],"scrollableTaskList":[4,"scrollable-task-list"],"updateTaskListScrollX":[4,"update-task-list-scroll-x"],"taskListScrollX":[2,"task-list-scroll-x"],"setDoubleView":[16],"handleClick":[16],"handleDblClick":[16],"handleContextMenu":[16],"ganttOnClick":[16],"ganttOnDblClick":[16],"ganttonOnContextMenu":[16],"setSelectedTask":[16],"expanderClick":[16],"ontaskListScrollWidth":[16],"selectedTaskId":[32]},null,{"scrollY":["updateScrollY"]}],[1,"kup-horizontal-scroll",{"scrollNumber":[2,"scroll-number"],"svgWidth":[2,"svg-width"],"taskListTrueRef":[16],"rtl":[4],"taskListWidth":[2,"task-list-width"],"scrollableTaskList":[4,"scrollable-task-list"],"listCellWidth":[1,"list-cell-width"],"taskListScrollWidth":[2,"task-list-scroll-width"],"taskListScrollNumber":[2,"task-list-scroll-number"],"horizontalScroll":[16],"horizontalTaskListScroll":[16],"timeoutId":[32]},null,{"scrollNumber":["scrollLeft"],"taskListScrollNumber":["listScrollLeft"]}],[1,"kup-standard-tooltip",{"task":[16],"fontSize":[1,"font-size"],"fontFamily":[1,"font-family"]}],[0,"kup-task-list-header",{"headerHeight":[2,"header-height"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"rowWidth":[1,"row-width"]}],[0,"kup-task-list-table",{"rowHeight":[2,"row-height"],"rowWidth":[1,"row-width"],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"locale":[1],"tasks":[16],"selectedTaskId":[1,"selected-task-id"],"setSelectedTask":[16],"expanderClick":[16],"expandedTasks":[32]}],[1,"kup-tooltip",{"task":[16],"rowHeight":[2,"row-height"],"rtl":[4],"svgContainerHeight":[2,"svg-container-height"],"svgContainerWidth":[2,"svg-container-width"],"scrollX":[2,"scroll-x"],"scrollY":[2,"scroll-y"],"arrowIndent":[2,"arrow-indent"],"fontSize":[1,"font-size"],"fontFamily":[1,"font-family"],"headerHeight":[2,"header-height"],"taskListWidth":[2,"task-list-width"],"TooltipContent":[8,"tooltip-content"],"svgWidth":[2,"svg-width"],"relatedY":[32],"relatedX":[32]},null,{"task":["calculateTooltipPosition"],"arrowIndent":["calculateTooltipPosition"],"scrollX":["calculateTooltipPosition"],"scrollY":["calculateTooltipPosition"],"headerHeight":["calculateTooltipPosition"],"taskListWidth":["calculateTooltipPosition"],"rowHeight":["calculateTooltipPosition"],"svgContainerHeight":["calculateTooltipPosition"],"svgContainerWidth":["calculateTooltipPosition"],"rtl":["calculateTooltipPosition"]}],[0,"kup-vertical-scroll",{"scrollNumber":[2,"scroll-number"],"ganttHeight":[2,"gantt-height"],"ganttFullHeight":[2,"gantt-full-height"],"headerHeight":[2,"header-height"],"rtl":[4],"verticalScroll":[16]},null,{"scrollNumber":["updateScroll"]}]]]]'),e)}));
|
|
2
2
|
//# sourceMappingURL=ketchup.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,f as e,h as a,H as s,d as o}from"./p-d7c15b0e.js";import{k as n,g as r,s as l,h as p,N as c,f as h}from"./p-8c07fd42.js";import{c as m}from"./p-635bb4b3.js";import{F as f}from"./p-2b519589.js";import{F as u}from"./p-cc32b7a2.js";import{a as g}from"./p-e3062c19.js";import{F as d}from"./p-721b6a3c.js";import{M as _}from"./p-d4a879fc.js";import"./p-029c7cbe.js";import"./p-5d03c077.js";import"./p-1754ee9b.js";import"./p-df06309a.js";var k;(function(i){i["columns"]="Can set a specific number of columns";i["customStyle"]="Custom style of the component.";i["data"]="Actual data of the component";i["ripple"]="When enabled displays Material's ripple effect on clicked items.";i["rows"]="Cam set a specific number of rows. It overwrite the columns flow into rows flow"})(k||(k={}));class b{constructor(){this.load=false}toDebugString(){return"image-list state"}}const v=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_imagelist_columns_mobile:var(--kup-imagelist-columns-mobile, 4);--kup_imagelist_columns_tablet:var(--kup-imagelist-columns-tablet, 6);--kup_imagelist_columns_desktop:var(--kup-imagelist-columns-desktop, 8);--kup_imagelist_background_color:var(\n --kup-imagelist-background-color,\n transparent\n );--kup_imagelist_columns:var(--kup-imagelist-columns, 4);--kup_imagelist_grid_gap:var(--kup-imagelist-grid-gap, var(--kup-space-03));--kup_imagelist_image_min_height:var(\n --kup-imagelist-image-min-height,\n var(--kup-space-09)\n );--kup_imagelist_item_border_radius:var(\n --kup-imagelist-item-border-radius,\n var(--kup-radius-00)\n );--kup_imagelist_item_height:var(--kup-imagelist-item-height, auto);--kup_imagelist_item_padding:var(--kup-imagelist-item-padding, 0);--kup_imagelist_item_width:var(--kup-imagelist-item-width, auto);--kup_imagelist_label_margin:var(\n --kup-imagelist-label-margin,\n 0 auto 1em auto\n );--kup_imagelist_navbar_background_color:var(\n --kup-imagelist-navbar-background-color,\n transparent\n );--kup_imagelist_primary_color:var(\n --kup-imagelist-primary-color,\n var(--kup-primary-color)\n );--kup_imagelist_primary_color_rgb:var(\n --kup-imagelist-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_imagelist_text_color:var(\n --kup-imagelist-text-color,\n var(--kup-text-secondary)\n );--kup_imagelist_item_background_color:var(\n --kup-imagelist-item-background-color,\n var(--kup-layer-1)\n );--kup_imagelist_item_background_color_hover:var(\n --kup-imagelist-item-background-color-hover,\n var(--kup-layer-1-hover)\n );display:block}.navigation-bar{align-items:center;background-color:var(--kup_imagelist_navbar_background_color);display:flex;justify-content:center}.navigation-bar__wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;position:relative}.navigation-bar__wrapper--active .navigation-bar__title{background-color:rgba(var(--kup_imagelist_primary_color_rgb), 0.15);color:var(--kup_imagelist_primary_color)}.navigation-bar__back,.navigation-bar__top{--kup-button-primary-color-rgb:0}.navigation-bar__title{border-radius:16px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;padding:0.75em 1em;user-select:none;transition:background-color 125ms, color 125ms;width:100%}.navigation-bar__title__image.f-image{margin:0}.navigation-bar__title__label{overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.image-list{background-color:var(--kup_imagelist_background_color);display:grid;grid-gap:var(--kup_imagelist_grid_gap);grid-template-columns:repeat(var(--kup-imagelist-columns-mobile, var(--kup_imagelist_columns_mobile)), minmax(0px, 1fr));margin-top:1em;width:100%;grid-auto-flow:row}.image-list .f-cell{height:100%;width:100%}.image-list .f-cell .f-cell__content{height:100%}.image-list .f-cell .f-cell__content .image-list__wrapper{display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;position:relative;height:100%}.image-list .f-cell .f-cell__content .image-list__wrapper.images{height:100%;justify-content:flex-end}.image-list .f-cell .f-cell__content .image-list__wrapper.images .f-image{position:unset;overflow:auto;height:100%;display:flex}.image-list__item{background-color:var(--kup_imagelist_item_background_color);border-radius:var(--kup_imagelist_item_border_radius);cursor:pointer;height:var(--kup_imagelist_item_height);padding:var(--kup_imagelist_item_padding);width:var(--kup_imagelist_item_width)}.image-list__item:hover{background-color:var(--kup_imagelist_item_background_color_hover)}.image-list__image.f-image{position:absolute;padding:var(--kup-space-03);padding-bottom:0px;box-sizing:border-box;width:100%;height:calc(100% - 16px - var(--kup-space-03) * 2);overflow:hidden}.image-list__image.f-image .f-image__icon{mask-size:100% !important}.image-list__label{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;padding:var(--kup-space-03);font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}@media screen and (min-width: 678px){.image-list{grid-template-columns:repeat(var(--kup-imagelist-columns-tablet, var(--kup_imagelist_columns_tablet)), minmax(0px, 1fr));grid-gap:var(--kup-space-05)}}@media screen and (min-width: 1024px){.image-list{grid-template-columns:repeat(var(--kup-imagelist-columns-desktop, var(--kup_imagelist_columns_desktop)), minmax(0px, 1fr));grid-gap:var(--kup-space-05)}}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-horizontal) .image-list{display:flex}:host(.kup-auto-grid) .image-list{display:flex;flex-wrap:wrap;justify-content:center}";const w=v;var x=undefined&&undefined.__classPrivateFieldGet||function(i,t,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?i!==t||!a:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(i):a?a.value:t.get(i)};var y=undefined&&undefined.__classPrivateFieldSet||function(i,t,e,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(i,e):s?s.value=e:t.set(i,e),e};var j,z,C,W,$,M,E,O,T,P,D,I,N,R,S;const F=class{constructor(e){i(this,e);this.kupClick=t(this,"kup-imagelist-click",6);this.kupContextMenu=t(this,"kup-imagelist-contextmenu",6);this.kupDblClick=t(this,"kup-imagelist-dblclick",6);j.add(this);this.state=new b;z.set(this,[]);C.set(this,n());W.set(this,{icon:"arrow_back",onClick:()=>{this.currentNode=x(this,C,"f").data.node.getParent(this.data,this.currentNode);if(!this.currentNode){this.navigationBarToggled=false}},styling:g.FLAT,wrapperClass:"navigation-bar__back"});$.set(this,{icon:"arrow_upward",onClick:()=>{this.currentNode=null;this.navigationBarToggled=false},styling:g.FLAT,wrapperClass:"navigation-bar__top"});M.set(this,void 0);E.set(this,false);O.set(this,[]);this.currentNode=null;this.navigationBarToggled=false;this.columns=[];this.customStyle="";this.data=[];this.ripple=false;this.rows=null;this.selectedNode=[];this.stateId="";this.store=undefined}initWithPersistedState(){if(this.store&&this.stateId){const i=this.store.getState(this.stateId);if(i!=null){this.currentNode=x(this,C,"f").data.node.findByStrTreeNodePath(this.data,i.selectedTreeNodePath)}}}persistState(){if(this.store&&this.stateId){let i=false;let t=this.currentNode?this.currentNode.id:"";if(!x(this,C,"f").objects.deepEqual(this.state.selectedTreeNodePath,t)){this.state.selectedTreeNodePath=t;i=true}if(!this.state.load){this.state.load=true;return}if(i){this.store.persistState(this.stateId,this.state)}}}selectNode(i){if(!i||i.length==0){return}this.currentNode=x(this,C,"f").data.node.find(this.data,i)}async getProps(i){return r(this,k,i)}async refresh(){e(this)}async setProps(i){l(this,k,i)}componentWillLoad(){x(this,C,"f").debug.logLoad(this,false);x(this,C,"f").language.register(this);x(this,C,"f").theme.register(this)}componentDidLoad(){x(this,j,"m",S).call(this);x(this,C,"f").debug.logLoad(this,true)}componentWillRender(){x(this,C,"f").debug.logRender(this,false)}componentDidRender(){const i=this.rootElement.shadowRoot;if(i&&this.ripple){const t=i.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(t){for(let i=0;i<t.length;i++){_.attachTo(t[i])}}}this.persistState();x(this,C,"f").debug.logRender(this,true)}render(){const i=!!this.currentNode;let t={};if(this.columns){if(this.columns.length===1){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[0]}`,"--kup-imagelist-columns-desktop":`${this.columns[0]}`}}else if(this.columns.length===2){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[0]}`,"--kup-imagelist-columns-desktop":`${this.columns[1]}`}}else if(this.columns.length===3){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[1]}`,"--kup-imagelist-columns-desktop":`${this.columns[2]}`}}}let e=Object.assign({},t);if(this.rows!=null&&this.rows>0){const i={"grid-template-rows":`repeat(${this.rows}, minmax(0px, 1fr))`,"grid-auto-flow":`column`};e=Object.assign(Object.assign({},e),i)}return a(s,{key:"81da022bca5cec8e7a25ae5854126fc8d1df1949"},a("style",{key:"e7ca04de4d67ec2bfd6b069f560c9cf5f131a235"},x(this,C,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"bb9852654bdef8112a36d4fe096a39e4b925cd0c",id:m,ref:i=>{y(this,M,i,"f")}},a("div",{key:"3547692cbbe395329b3f9ee5f6c5a9c35171e7a6",class:"navigation-bar"},i?a("div",{class:`navigation-bar__wrapper ${this.navigationBarToggled?"navigation-bar__wrapper--active":""}`},a("div",{class:`navigation-bar__title`,onClick:()=>{this.navigationBarToggled=!this.navigationBarToggled}},a(f,{fit:true,resource:this.currentNode.icon,placeholderResource:this.currentNode.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"navigation-bar__title__image"}),a("div",{class:"navigation-bar__title__label"},this.currentNode.value)),a(u,Object.assign({},x(this,W,"f"),{label:x(this,C,"f").language.translate(p.BACK)})),a(u,Object.assign({},x(this,$,"f"),{label:x(this,C,"f").language.translate(p.TOP)}))):null),a("div",{key:"60eb2ce4d81bfdaf39310d9276edfab440200ab6",class:"image-list",style:e},...x(this,j,"m",P).call(this))))}disconnectedCallback(){x(this,C,"f").interact.unregister(x(this,O,"f"));x(this,C,"f").language.unregister(this);x(this,C,"f").theme.unregister(this)}get rootElement(){return o(this)}static get watchers(){return{selectedNode:["selectNode"]}}};z=new WeakMap,C=new WeakMap,W=new WeakMap,$=new WeakMap,M=new WeakMap,E=new WeakMap,O=new WeakMap,j=new WeakSet,T=function i(t){const e={fit:true,resource:t.icon,placeholderResource:t.placeholderIcon,title:t.title,wrapperClass:"image-list__image",badgeData:t.badgeData};const s=a(f,Object.assign({},e));const o=a("div",{class:"image-list__label"},t.value);const n=e.resource.indexOf(".")>-1||e.resource.indexOf("/")>-1||e.resource.indexOf("\\")>-1;return a(d,{cell:{value:t.value,icon:t.icon,placeholderIcon:t.placeholderIcon,obj:t.obj},column:{name:"IMAGE",title:"Image"},component:this,density:h.NONE,row:Object.assign({},t)},a("div",{class:`image-list__wrapper${n?" images":""}`},!n&&a("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 24 24"}),s,o))},P=function i(){const t=[];const e=this.currentNode?this.currentNode.children:this.data;for(let i=0;e&&i<e.length;i++){const s=e[i];const o={"image-list__item":true,"mdc-ripple-surface":this.ripple?true:false};const n=a("div",{onContextMenu:i=>{i.preventDefault()},class:o},x(this,j,"m",T).call(this,s));t.push(n)}return t},D=function i(t,e){let a;if(t){for(let i=t.length-1;i>=0;i--){let e=t[i];if(!e.tagName){continue}if(e.classList.contains("f-cell")){a=e["kup-get-cell-props"]()}}}return{cell:a===null||a===void 0?void 0:a.cell,column:a===null||a===void 0?void 0:a.column,originalEvent:e,row:a===null||a===void 0?void 0:a.row}},I=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},N=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},R=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},S=function i(){x(this,O,"f").push(x(this,M,"f"));const t=i=>{if(x(this,E,"f")){y(this,E,false,"f");return}switch(i.button){case 0:const t={};for(const e in i){t[e]=i[e]}x(this,z,"f").push(setTimeout((()=>{var i;const e=x(this,j,"m",I).call(this,t);const a=e.row;if(((i=a===null||a===void 0?void 0:a.children)===null||i===void 0?void 0:i.length)>0){this.currentNode=a}this.kupClick.emit({comp:this,id:this.rootElement.id,details:e})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",N).call(this,i)});break}};const e=i=>{switch(i.button){case 0:for(let i=0;i<x(this,z,"f").length;i++){clearTimeout(x(this,z,"f")[i]);x(this,C,"f").debug.logMessage(this,"Cleared clickHandler timeout("+x(this,z,"f")[i]+").")}y(this,z,[],"f");this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",R).call(this,i)});break}};const a=i=>{if(i.pointerType==="pen"||i.pointerType==="touch"){y(this,E,true,"f");this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",N).call(this,i)})}};x(this,C,"f").interact.on(x(this,M,"f"),c.HOLD,a);x(this,C,"f").interact.on(x(this,M,"f"),c.TAP,t);x(this,C,"f").interact.on(x(this,M,"f"),c.DOUBLETAP,e)};F.style=w;export{F as kup_image_list};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,f as e,h as a,H as s,d as o}from"./p-d7c15b0e.js";import{k as n,g as r,s as l,h as p,N as c,f as h}from"./p-8c07fd42.js";import{c as m}from"./p-635bb4b3.js";import{F as f}from"./p-2b519589.js";import{F as u}from"./p-cc32b7a2.js";import{a as g}from"./p-e3062c19.js";import{F as d}from"./p-11f7e98b.js";import{M as _}from"./p-d4a879fc.js";import"./p-029c7cbe.js";import"./p-5d03c077.js";import"./p-1754ee9b.js";import"./p-df06309a.js";var k;(function(i){i["columns"]="Can set a specific number of columns";i["customStyle"]="Custom style of the component.";i["data"]="Actual data of the component";i["ripple"]="When enabled displays Material's ripple effect on clicked items.";i["rows"]="Cam set a specific number of rows. It overwrite the columns flow into rows flow"})(k||(k={}));class b{constructor(){this.load=false}toDebugString(){return"image-list state"}}const v=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_imagelist_columns_mobile:var(--kup-imagelist-columns-mobile, 4);--kup_imagelist_columns_tablet:var(--kup-imagelist-columns-tablet, 6);--kup_imagelist_columns_desktop:var(--kup-imagelist-columns-desktop, 8);--kup_imagelist_background_color:var(\n --kup-imagelist-background-color,\n transparent\n );--kup_imagelist_columns:var(--kup-imagelist-columns, 4);--kup_imagelist_grid_gap:var(--kup-imagelist-grid-gap, var(--kup-space-03));--kup_imagelist_image_min_height:var(\n --kup-imagelist-image-min-height,\n var(--kup-space-09)\n );--kup_imagelist_item_border_radius:var(\n --kup-imagelist-item-border-radius,\n var(--kup-radius-00)\n );--kup_imagelist_item_height:var(--kup-imagelist-item-height, auto);--kup_imagelist_item_padding:var(--kup-imagelist-item-padding, 0);--kup_imagelist_item_width:var(--kup-imagelist-item-width, auto);--kup_imagelist_label_margin:var(\n --kup-imagelist-label-margin,\n 0 auto 1em auto\n );--kup_imagelist_navbar_background_color:var(\n --kup-imagelist-navbar-background-color,\n transparent\n );--kup_imagelist_primary_color:var(\n --kup-imagelist-primary-color,\n var(--kup-primary-color)\n );--kup_imagelist_primary_color_rgb:var(\n --kup-imagelist-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_imagelist_text_color:var(\n --kup-imagelist-text-color,\n var(--kup-text-secondary)\n );--kup_imagelist_item_background_color:var(\n --kup-imagelist-item-background-color,\n var(--kup-layer-1)\n );--kup_imagelist_item_background_color_hover:var(\n --kup-imagelist-item-background-color-hover,\n var(--kup-layer-1-hover)\n );display:block}.navigation-bar{align-items:center;background-color:var(--kup_imagelist_navbar_background_color);display:flex;justify-content:center}.navigation-bar__wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;position:relative}.navigation-bar__wrapper--active .navigation-bar__title{background-color:rgba(var(--kup_imagelist_primary_color_rgb), 0.15);color:var(--kup_imagelist_primary_color)}.navigation-bar__back,.navigation-bar__top{--kup-button-primary-color-rgb:0}.navigation-bar__title{border-radius:16px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;padding:0.75em 1em;user-select:none;transition:background-color 125ms, color 125ms;width:100%}.navigation-bar__title__image.f-image{margin:0}.navigation-bar__title__label{overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.image-list{background-color:var(--kup_imagelist_background_color);display:grid;grid-gap:var(--kup_imagelist_grid_gap);grid-template-columns:repeat(var(--kup-imagelist-columns-mobile, var(--kup_imagelist_columns_mobile)), minmax(0px, 1fr));margin-top:1em;width:100%;grid-auto-flow:row}.image-list .f-cell{height:100%;width:100%}.image-list .f-cell .f-cell__content{height:100%}.image-list .f-cell .f-cell__content .image-list__wrapper{display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;position:relative;height:100%}.image-list .f-cell .f-cell__content .image-list__wrapper.images{height:100%;justify-content:flex-end}.image-list .f-cell .f-cell__content .image-list__wrapper.images .f-image{position:unset;overflow:auto;height:100%;display:flex}.image-list__item{background-color:var(--kup_imagelist_item_background_color);border-radius:var(--kup_imagelist_item_border_radius);cursor:pointer;height:var(--kup_imagelist_item_height);padding:var(--kup_imagelist_item_padding);width:var(--kup_imagelist_item_width)}.image-list__item:hover{background-color:var(--kup_imagelist_item_background_color_hover)}.image-list__image.f-image{position:absolute;padding:var(--kup-space-03);padding-bottom:0px;box-sizing:border-box;width:100%;height:calc(100% - 16px - var(--kup-space-03) * 2);overflow:hidden}.image-list__image.f-image .f-image__icon{mask-size:100% !important}.image-list__label{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;padding:var(--kup-space-03);font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}@media screen and (min-width: 678px){.image-list{grid-template-columns:repeat(var(--kup-imagelist-columns-tablet, var(--kup_imagelist_columns_tablet)), minmax(0px, 1fr));grid-gap:var(--kup-space-05)}}@media screen and (min-width: 1024px){.image-list{grid-template-columns:repeat(var(--kup-imagelist-columns-desktop, var(--kup_imagelist_columns_desktop)), minmax(0px, 1fr));grid-gap:var(--kup-space-05)}}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-horizontal) .image-list{display:flex}:host(.kup-auto-grid) .image-list{display:flex;flex-wrap:wrap;justify-content:center}";const w=v;var x=undefined&&undefined.__classPrivateFieldGet||function(i,t,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?i!==t||!a:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(i):a?a.value:t.get(i)};var y=undefined&&undefined.__classPrivateFieldSet||function(i,t,e,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(i,e):s?s.value=e:t.set(i,e),e};var j,z,C,W,$,M,E,O,T,P,D,I,N,R,S;const F=class{constructor(e){i(this,e);this.kupClick=t(this,"kup-imagelist-click",6);this.kupContextMenu=t(this,"kup-imagelist-contextmenu",6);this.kupDblClick=t(this,"kup-imagelist-dblclick",6);j.add(this);this.state=new b;z.set(this,[]);C.set(this,n());W.set(this,{icon:"arrow_back",onClick:()=>{this.currentNode=x(this,C,"f").data.node.getParent(this.data,this.currentNode);if(!this.currentNode){this.navigationBarToggled=false}},styling:g.FLAT,wrapperClass:"navigation-bar__back"});$.set(this,{icon:"arrow_upward",onClick:()=>{this.currentNode=null;this.navigationBarToggled=false},styling:g.FLAT,wrapperClass:"navigation-bar__top"});M.set(this,void 0);E.set(this,false);O.set(this,[]);this.currentNode=null;this.navigationBarToggled=false;this.columns=[];this.customStyle="";this.data=[];this.ripple=false;this.rows=null;this.selectedNode=[];this.stateId="";this.store=undefined}initWithPersistedState(){if(this.store&&this.stateId){const i=this.store.getState(this.stateId);if(i!=null){this.currentNode=x(this,C,"f").data.node.findByStrTreeNodePath(this.data,i.selectedTreeNodePath)}}}persistState(){if(this.store&&this.stateId){let i=false;let t=this.currentNode?this.currentNode.id:"";if(!x(this,C,"f").objects.deepEqual(this.state.selectedTreeNodePath,t)){this.state.selectedTreeNodePath=t;i=true}if(!this.state.load){this.state.load=true;return}if(i){this.store.persistState(this.stateId,this.state)}}}selectNode(i){if(!i||i.length==0){return}this.currentNode=x(this,C,"f").data.node.find(this.data,i)}async getProps(i){return r(this,k,i)}async refresh(){e(this)}async setProps(i){l(this,k,i)}componentWillLoad(){x(this,C,"f").debug.logLoad(this,false);x(this,C,"f").language.register(this);x(this,C,"f").theme.register(this)}componentDidLoad(){x(this,j,"m",S).call(this);x(this,C,"f").debug.logLoad(this,true)}componentWillRender(){x(this,C,"f").debug.logRender(this,false)}componentDidRender(){const i=this.rootElement.shadowRoot;if(i&&this.ripple){const t=i.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(t){for(let i=0;i<t.length;i++){_.attachTo(t[i])}}}this.persistState();x(this,C,"f").debug.logRender(this,true)}render(){const i=!!this.currentNode;let t={};if(this.columns){if(this.columns.length===1){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[0]}`,"--kup-imagelist-columns-desktop":`${this.columns[0]}`}}else if(this.columns.length===2){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[0]}`,"--kup-imagelist-columns-desktop":`${this.columns[1]}`}}else if(this.columns.length===3){t={"--kup-imagelist-columns-mobile":`${this.columns[0]}`,"--kup-imagelist-columns-tablet":`${this.columns[1]}`,"--kup-imagelist-columns-desktop":`${this.columns[2]}`}}}let e=Object.assign({},t);if(this.rows!=null&&this.rows>0){const i={"grid-template-rows":`repeat(${this.rows}, minmax(0px, 1fr))`,"grid-auto-flow":`column`};e=Object.assign(Object.assign({},e),i)}return a(s,{key:"81da022bca5cec8e7a25ae5854126fc8d1df1949"},a("style",{key:"e7ca04de4d67ec2bfd6b069f560c9cf5f131a235"},x(this,C,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"bb9852654bdef8112a36d4fe096a39e4b925cd0c",id:m,ref:i=>{y(this,M,i,"f")}},a("div",{key:"3547692cbbe395329b3f9ee5f6c5a9c35171e7a6",class:"navigation-bar"},i?a("div",{class:`navigation-bar__wrapper ${this.navigationBarToggled?"navigation-bar__wrapper--active":""}`},a("div",{class:`navigation-bar__title`,onClick:()=>{this.navigationBarToggled=!this.navigationBarToggled}},a(f,{fit:true,resource:this.currentNode.icon,placeholderResource:this.currentNode.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"navigation-bar__title__image"}),a("div",{class:"navigation-bar__title__label"},this.currentNode.value)),a(u,Object.assign({},x(this,W,"f"),{label:x(this,C,"f").language.translate(p.BACK)})),a(u,Object.assign({},x(this,$,"f"),{label:x(this,C,"f").language.translate(p.TOP)}))):null),a("div",{key:"60eb2ce4d81bfdaf39310d9276edfab440200ab6",class:"image-list",style:e},...x(this,j,"m",P).call(this))))}disconnectedCallback(){x(this,C,"f").interact.unregister(x(this,O,"f"));x(this,C,"f").language.unregister(this);x(this,C,"f").theme.unregister(this)}get rootElement(){return o(this)}static get watchers(){return{selectedNode:["selectNode"]}}};z=new WeakMap,C=new WeakMap,W=new WeakMap,$=new WeakMap,M=new WeakMap,E=new WeakMap,O=new WeakMap,j=new WeakSet,T=function i(t){const e={fit:true,resource:t.icon,placeholderResource:t.placeholderIcon,title:t.title,wrapperClass:"image-list__image",badgeData:t.badgeData};const s=a(f,Object.assign({},e));const o=a("div",{class:"image-list__label"},t.value);const n=e.resource.indexOf(".")>-1||e.resource.indexOf("/")>-1||e.resource.indexOf("\\")>-1;return a(d,{cell:{value:t.value,icon:t.icon,placeholderIcon:t.placeholderIcon,obj:t.obj},column:{name:"IMAGE",title:"Image"},component:this,density:h.NONE,row:Object.assign({},t)},a("div",{class:`image-list__wrapper${n?" images":""}`},!n&&a("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 24 24"}),s,o))},P=function i(){const t=[];const e=this.currentNode?this.currentNode.children:this.data;for(let i=0;e&&i<e.length;i++){const s=e[i];const o={"image-list__item":true,"mdc-ripple-surface":this.ripple?true:false};const n=a("div",{onContextMenu:i=>{i.preventDefault()},class:o},x(this,j,"m",T).call(this,s));t.push(n)}return t},D=function i(t,e){let a;if(t){for(let i=t.length-1;i>=0;i--){let e=t[i];if(!e.tagName){continue}if(e.classList.contains("f-cell")){a=e["kup-get-cell-props"]()}}}return{cell:a===null||a===void 0?void 0:a.cell,column:a===null||a===void 0?void 0:a.column,originalEvent:e,row:a===null||a===void 0?void 0:a.row}},I=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},N=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},R=function i(t){const e=x(this,j,"m",D).call(this,x(this,C,"f").getEventPath(t.target,this.rootElement),t);return e},S=function i(){x(this,O,"f").push(x(this,M,"f"));const t=i=>{if(x(this,E,"f")){y(this,E,false,"f");return}switch(i.button){case 0:const t={};for(const e in i){t[e]=i[e]}x(this,z,"f").push(setTimeout((()=>{var i;const e=x(this,j,"m",I).call(this,t);const a=e.row;if(((i=a===null||a===void 0?void 0:a.children)===null||i===void 0?void 0:i.length)>0){this.currentNode=a}this.kupClick.emit({comp:this,id:this.rootElement.id,details:e})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",N).call(this,i)});break}};const e=i=>{switch(i.button){case 0:for(let i=0;i<x(this,z,"f").length;i++){clearTimeout(x(this,z,"f")[i]);x(this,C,"f").debug.logMessage(this,"Cleared clickHandler timeout("+x(this,z,"f")[i]+").")}y(this,z,[],"f");this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",R).call(this,i)});break}};const a=i=>{if(i.pointerType==="pen"||i.pointerType==="touch"){y(this,E,true,"f");this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:x(this,j,"m",N).call(this,i)})}};x(this,C,"f").interact.on(x(this,M,"f"),c.HOLD,a);x(this,C,"f").interact.on(x(this,M,"f"),c.TAP,t);x(this,C,"f").interact.on(x(this,M,"f"),c.DOUBLETAP,e)};F.style=w;export{F as kup_image_list};
|
|
2
|
+
//# sourceMappingURL=p-0d20ebc4.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a8 as e,a9 as s,d as t,a5 as n,aa as i,ab as c,ac as a,F as l,ad as r,ae as o,af as u,ag as f,ah as d,e as p}from"./p-8c07fd42.js";import{h as k,g as b,F as h}from"./p-d7c15b0e.js";import{F as v}from"./p-5d03c077.js";import{F as m}from"./p-1754ee9b.js";import{F as g}from"./p-2b519589.js";import{F as w,c as y}from"./p-df06309a.js";import{F as $}from"./p-cc32b7a2.js";var j;(function(e){e["customStyle"]="Custom style of the component.";e["data"]="The data of the list.";e["displayMode"]="Selects how the items must display their label and how they can be filtered for.";e["filter"]="Keeps string for filtering elements when filter mode is active";e["hideText"]="Hides rows' text, ideally to display a list of icons only.";e["isMenu"]="Defines whether the list is a menu or not.";e["keyboardNavigation"]="When true, enables items' navigation through arrow keys.";e["menuVisible"]="Sets the status of the menu, when false it's hidden otherwise it's visible.";e["roleType"]="Defines the type of selection. Values accepted: listbox, radiogroup or group.";e["selectable"]="Defines whether items are selectable or not.";e["showIcons"]="Displays the icons associated to each row when set to true.";e["twoLine"]="The list elements descriptions will be arranged in two lines."})(j||(j={}));var x;(function(e){e["LISTBOX"]="listbox";e["RADIOGROUP"]="radiogroup";e["GROUP"]="group"})(x||(x={}));var O;(function(e){e["CODE"]="code";e["DESCRIPTION"]="description";e["DESCRIPTION_AND_CODE"]="both"})(O||(O={}));var _;(function(e){e["SMALL"]="small";e["MEDIUM"]="medium"})(_||(_={}));const I=e=>{if(!e.sizing){e.sizing=_.MEDIUM}e.sizing.toLowerCase()===_.SMALL;const s={switch:true,"switch--checked":e.checked,"switch--disabled":e.disabled,[`switch--${e.sizing}`]:e.sizing?true:false};return k("div",Object.assign({class:`f-switch ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),k("div",{class:`form-field ${e.leadingLabel?"form-field--align-end":""}`},k("div",{class:s},k("div",{class:"switch__track"}),k("div",{class:"switch__thumb-underlay"},k("div",{class:"switch__thumb"},k("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:e.checked,disabled:e.disabled,value:e.checked?"on":"off",onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus})))),k("label",{onClick:e.onChange},e.label)))};const C=e=>{if(!e.centeredLabel&&!e.centeredLabel!==false){e.centeredLabel=true}let s=`f-progress-bar ${e.danger?"kup-danger":""} ${e.animated?"kup-animated":""} ${e.padded?"kup-padded":""} ${e.info?"kup-info":""} ${e.slim?"kup-slim":""} ${e.striped?"kup-striped":""} ${e.secondary?"kup-secondary":""} ${e.slim?"kup-slim":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`;let t="pie";let n=undefined;if(e.isRadial){s+=" pie-wrapper is-radial"}else{s+=" progress-bar"}let i=undefined;const c={width:`${e.value}%`};if(!e.centeredLabel){i=c;if(e.value>2){s+=" text-color-on-primary"}}else if(e.value>49){s+=" text-color-on-primary"}let a=null;if(e.icon){a=z(e)}else{if(!e.hideLabel){if(e.isRadial){if(e.label){a=k("span",{class:"label"},e.label)}else{a=k("span",{class:"label"},e.value,k("span",{class:"smaller"},"%"))}}else{if(e.label){a=e.label}else{a=e.value+"%"}}}}if(e.value>0){t+=" has-value";if(e.value>50){t+=" is-more-than-half"}else{t+=" is-less-than-half"}}if(e.isRadial){return k("div",{class:s},a,k("div",{class:t},k("div",{style:n,class:"left-side half-circle"}),k("div",{class:"right-side half-circle"})),k("div",{class:"shadow"}))}else{return k("div",{class:s},k("div",{class:"progress-bar-percentage",style:c},k("span",{style:i},a)))}};function z(e){if(!e.icon){return undefined}if(e.icon.indexOf(".")>-1||e.icon.indexOf("/")>-1||e.icon.indexOf("\\")>-1){return k("span",{class:"label kup-icon is-image"},k("img",{src:e.icon}))}else{let s=`url('${b(`./assets/svg/${e.icon}.svg`)}') no-repeat center`;let t={mask:s,webkitMask:s};return k("span",{style:t,class:"label kup-icon"})}}var N;(function(e){e["RADIO"]="radio";e["CHEVRON"]="chevron"})(N||(N={}));const F=e=>{var s;const t=!!e.columns;const n=[];const i=e.type||N.RADIO;for(let t=0;t<((s=e.data)===null||s===void 0?void 0:s.length);t++){const s=e.data[t];const c={radio:true,"radio--checked":s.checked?true:false,"radio--disabled":e.disabled?true:false,[`radio--${e.type}`]:e.type?true:false};n.push(k("div",{class:`form-field \n ${e.leadingLabel?" form-field--align-end":""} ${e.disabled?"radio--disabled":""}`},k("div",{class:c},i===N.RADIO?k("input",{class:"radio__native-control",type:"radio",name:"radio-element",value:s.value,checked:s.checked,disabled:e.disabled,onBlur:e.onBlur,onChange:e.onChange?e.onChange.bind(e.onChange,t):null,onFocus:e.onFocus}):k(h,null,s.checked?k(g,{resource:"check",sizeX:"14px",sizeY:"14px"}):k(g,{sizeX:"14px",sizeY:"14px",onClick:e.onChange?e.onChange.bind(e.onChange,t):null})),i===N.RADIO&&k("div",{class:"radio__background"},k("div",{class:"radio__outer-circle"}),k("div",{class:"radio__inner-circle"}))),k("label",{htmlFor:"radio-element",onClick:e.onChange?e.onChange.bind(e.onChange,t):null},s.label?s.label:"")))}const c={"--kup_radio_columns":t?`repeat(${e.columns}, 1fr)`:""};return k("div",{class:`f-radio radio-wrapper\n ${t?"radio-wrapper-grid":""} ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""} ${e.horizontal?"kup-horizontal":""}`,style:c},n)};const H=e=>{if(!e.maxValue){e.maxValue=5}return k("div",{class:`f-rating ${e.disabled?"disabled":""} ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},D(e))};function D(e){const s=[];for(let t=1;t<=e.maxValue;t++){if(t<=e.value){s.push(k("span",{class:"rating",onClick:e.onClick?e.onClick.bind(e.onClick,t):null},"★"))}else{s.push(k("span",{class:"rating",onClick:e.onClick?e.onClick.bind(e.onClick,t):null},"☆"))}}return s}const T=document.documentElement;const M=(i,c)=>{var a;const l=i.cell;const r=i.column;const u=i.row;const f=i.shape?i.shape:l.shape?l.shape:r.shape?r.shape:null;const p=!T.ketchup.objects.isEmptyKupObj(l.obj);let b=false;if(l.hasOwnProperty("isEditable")){b=l.isEditable}else if(r.hasOwnProperty("isEditable")){b=r.isEditable}b=b&&i.editable;if(l.options){l.data=(a=S(l,r))!==null&&a!==void 0?a:l.data}const h=i.previousValue!==l.value?l.value:"";const v=T.ketchup.data.cell.getType(l,f);const m=Object.assign({},l.data);let w=l.cssClass?l.cssClass:r.cssClass?r.cssClass:"";if(i.component.legacyLook){w+=" monospace c-pre"}const y={"f-cell":true,[o.OBJ]:p?true:false,[v+"-cell"]:true,[i.wrapperClass]:i.wrapperClass?true:false,[i.density]:i.density&&v!==n.BAR?true:false,[w]:w?true:false};let $=h;if(!l.data){q(v,l)}if(b&&e.includes(v)){$=P(v,y,l,r,i)}else if(l.data&&s.includes(v)){if(i.setSizes){G(v,m,l)}if(!i.renderKup){const e="cell-"+v+" placeholder";$=k("span",{class:e})}else{$=U(v,y,m,l,u,r,i)}}else{if(i.setSizes){B(v,m,l,i)}$=L(v,m,$,y,l,r,i)}let j=null;if(!b&&(r.icon||l.icon)&&$){const e={color:`rgba(var(${t.TEXT}-rgb), 0.375)`,resource:l.icon?l.icon:r.icon,placeholderResource:l.placeholderIcon?l.placeholderIcon:r.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"};j=k(g,Object.assign({},e))}let x=null;if(T.ketchup.debug.isDebug()&&p){x=l.obj.t+"; "+l.obj.p+"; "+l.obj.k+";"}else if(l.title!=null&&l.title.trim()!=""){x=l.title}let O=null;if(l.info){const e=Object.assign({},l.info);if(!e.color){e.color=`var(${t.INFO})`}if(!e.icon){e.icon="info"}const s={color:e.color,resource:e.icon,placeholderResource:e.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",title:e.message?e.message:"",wrapperClass:"cell-info"};O=k(g,Object.assign({},s))}return k("div",{onKeyUp:e=>J(e,i,v,d.KEYUP),class:y,"kup-get-cell-props":()=>i,ref:e=>l.element=e,style:l.style},k("div",{class:"f-cell__content",style:l.styleContent,title:x},i.cellActionIcon&&k(g,{resource:"more_vert",sizeX:"16px",sizeY:"16px",wrapperClass:`f-cell__iconfunction ${v===n.NUMBER?"left":"right"}`,onClick:i.cellActionIcon.onClick,tabIndex:0}),c&&c.length>0?c:[i.indents,O,j,$]))};const S=(e,s)=>{if(!e){return null}const t=e.options;const i=s.title;const c=e.value;const a=T.ketchup.data.cell.getType(e,e.shape);const l=new Map([[n.BUTTON_LIST,A.bind(undefined)],[n.RADIO,E.bind(undefined)],[n.AUTOCOMPLETE,X.bind(undefined)],[n.COMBOBOX,X.bind(undefined)]]);const r=l.get(a);return r?r(t,i,c,e,s.name):null};const E=(e,s,t)=>i(t,e);const X=(e,s,t)=>{const n=c(t,s,[]);n.data["kup-list"].data=R(e,t);return n};const R=(e,s)=>{const t=W.get(e.type);if(t){return t(e,s)}else{return e.map((e=>({value:e.label,id:e.id,selected:s===e.id})))}};const V=(e,s)=>e.children.map((e=>{var t;return{id:e.content.codice,value:e.content.testo,selected:s===e.content.codice,children:((t=e.children)===null||t===void 0?void 0:t.length)?V(e,s):[]}}));const Y=(e,s)=>e.children.map((e=>{var t;return{id:e.obj.k,value:e.value,selected:s===e.obj.k,children:((t=e.children)===null||t===void 0?void 0:t.length)?Y(e,s):[]}}));const K=(e,s)=>e.rows.map((e=>{var t;const n=e.fields||e.cells;const[i,c]=Object.keys(n);return{id:n[i].value,value:((t=n[c])===null||t===void 0?void 0:t.value)||n[i].value,selected:s===n[i].value}}));const W=new Map([["SmeupTreeNode",V.bind(undefined)],["SmeupDataTree",Y.bind(undefined)],["SmeupTable",K.bind(undefined)],["SmeupDataTable",K.bind(undefined)]]);const A=(e,s,t,n)=>{var i,c;return{data:((i=n.options)===null||i===void 0?void 0:i.length)?(c=n.options)===null||c===void 0?void 0:c.map((e=>({icon:e.icon,value:e.value}))):[]}};function B(e,s,t,i){var c;switch(e){case n.CHECKBOX:case n.ICON:if(!s.sizeX){s.sizeX="18px"}if(!s.sizeY){s.sizeY="18px"}if(t.style){if(!t.style.height){t.style["minHeight"]=s.sizeY}}else{t.style={minHeight:s.sizeY}}break;case n.IMAGE:const e=((c=i.cell)===null||c===void 0?void 0:c.value)||"";const l=e.indexOf(".")>-1||e.indexOf("/")>-1||e.indexOf("\\")>-1;if(i.component.rootElement.tagName===a.DATA_TABLE&&!l){if(!s.sizeX&&!s.sizeY){s.sizeX="100%";s.sizeY="64px";s.wrapperClass="noWidth"}else{if(!s.sizeX){s.sizeX="100%";s.wrapperClass="noWidth"}if(!s.sizeY){s.sizeY="auto"}}}if(i.component.rootElement.tagName===a.BOX){if(!s.sizeY){s.sizeY="auto"}if(s.fit===undefined){s.fit=true}}else if(!s.sizeX){s.sizeX="auto"}if(!s.sizeY){s.sizeY="64px"}break}}function G(e,s,t){switch(e){case n.BAR:if(!s.sizeY){s.sizeY="26px"}break;case n.BUTTON:let e="";if(s.label){e="36px"}if(t.style){if(!t.style.height){t.style["minHeight"]=e}}else{t.style={minHeight:e}}break;case n.CHART:if(!s.sizeX){s.sizeX="100%"}if(!s.sizeY){s.sizeY="100%"}break;case n.CHIP:if(t.style){if(!t.style.height){t.style["minHeight"]="40px"}}else{t.style={minHeight:"40px"}}break;case n.RADIO:if(t.style){if(!t.style.height){t.style["minHeight"]="40px"}}else{t.style={minHeight:"40px"}}break}}function P(e,s,t,i,c){var a,r;switch(e){case n.AUTOCOMPLETE:return k("kup-autocomplete",Object.assign({key:i.name+c.row.id,initialValue:t.value},t.data,{class:ee(c)?"kup-full-width":"","onkup-autocomplete-change":s=>J(s,c,e,d.UPDATE),"onkup-autocomplete-input":s=>J(s,c,e,d.INPUT),"onkup-autocomplete-iconclick":s=>J(s,c,e,d.ICON_CLICK)}));case n.CHECKBOX:if(Z(c)){s[o.C_CENTERED]=true}if(t.shape===l.INPUT_CHECKBOX){return k("input",{checked:t.value==="on"||t.value==="1"?true:false,class:"input-checkbox",onChange:s=>J(s,c,e,d.UPDATE),type:"checkbox"})}else{return k(v,Object.assign({},t.data,{onChange:s=>J(s,c,e,d.UPDATE)}))}case n.CHIP:return k("kup-chip",Object.assign({},t.data,{type:w.INPUT,enableInput:true,"onKup-chip-change":s=>J(s,c,e,d.UPDATE)}),k("kup-text-field",Object.assign({fullWidth:true,slot:"field"},t.slotData)));case n.COLOR_PICKER:return k("kup-color-picker",Object.assign({key:i.name+c.row.id,initialValue:t.value},t.data,{class:ee(c)?"kup-full-width":"",disabled:false,"onkup-colorpicker-change":s=>J(s,c,e,d.UPDATE)}));case n.COMBOBOX:return k("kup-combobox",Object.assign({key:i.name+c.row.id,initialValue:t.value},t.data,{class:ee(c)?"kup-full-width":"","onkup-combobox-change":s=>J(s,c,e,d.UPDATE),"onkup-combobox-input":s=>J(s,c,e,d.INPUT),"onkup-combobox-iconclick":s=>J(s,c,e,d.ICON_CLICK)}));case n.DATE:return k("kup-date-picker",Object.assign({key:i.name+c.row.id,initialValue:t.value},t.data,{class:ee(c)?"kup-full-width":"","onkup-datepicker-change":s=>J(s,c,e,d.UPDATE),"onkup-datepicker-input":s=>J(s,c,e,d.INPUT)}));case n.MULTI_AUTOCOMPLETE:return k("kup-chip",Object.assign({displayId:true},t.data,{type:w.INPUT,enableInput:true,"onKup-chip-change":s=>J(s,c,e,d.UPDATE)}),k("kup-autocomplete",Object.assign({class:"kup-full-width",slot:"field",displayMode:O.DESCRIPTION_AND_CODE,selectMode:O.DESCRIPTION_AND_CODE,"onkup-autocomplete-input":s=>J(s,c,e,d.INPUT),"onkup-autocomplete-iconclick":s=>J(s,c,e,d.ICON_CLICK),showDropDownIcon:false},t.slotData)));case n.MULTI_COMBOBOX:return k("kup-chip",Object.assign({displayId:true},t.data,{type:w.INPUT,enableInput:true,"onKup-chip-change":s=>J(s,c,e,d.UPDATE)}),k("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",displayMode:O.DESCRIPTION_AND_CODE,selectMode:O.DESCRIPTION_AND_CODE,"onkup-combobox-input":s=>J(s,c,e,d.INPUT),"onkup-combobox-iconclick":s=>J(s,c,e,d.ICON_CLICK)},t.slotData)));case n.RADIO:return k(F,Object.assign({},t.data,{disabled:false,onChange:(s,n)=>{const i=t.data.data;for(let e=0;e<i.length;e++){const t=i[e];if(e===s){t.checked=true}else{t.checked=false}}J(n,c,e,d.UPDATE)}}));case n.RATING:return k("kup-rating",Object.assign({key:i.name+c.row.id},t.data,{disabled:false,"onkup-rating-click":s=>J(s,c,e,d.UPDATE)}));case n.SWITCH:return k(I,Object.assign({},t.data,{disabled:false,onChange:s=>J(s,c,e,d.UPDATE)}));case n.TIME:return k("kup-time-picker",Object.assign({key:i.name+c.row.id,initialValue:t.value},t.data,{class:ee(c)?"kup-full-width":"","onkup-timepicker-change":s=>J(s,c,e,d.UPDATE),"onkup-timepicker-input":s=>J(s,c,e,d.INPUT)}));case n.OBJECT:return k(m,Object.assign({icon:"table"},t.data,{disabled:false,onIconClick:s=>J(s,c,e,d.ICON_CLICK)}));case n.NUMBER:s[o.C_RIGHT_ALIGNED]=true;case n.LINK:case n.STRING:const u=s=>J(s,c,e,d.UPDATE);const f=s=>J(s,c,e,d.INPUT);const p=e===n.NUMBER?"number":null;const b=e===n.NUMBER&&t.value?T.ketchup.math.numberifySafe(t.value).toString():t.value;if(t.shape===l.INPUT_FIELD){return k("input",{class:"input-field",onChange:u,onInput:f,type:p,value:b,maxLength:(r=(a=i.cellData)===null||a===void 0?void 0:a.maxLength)!==null&&r!==void 0?r:-1})}else{return k(m,Object.assign({inputType:p,fullWidth:ee(c)?true:false},t.data,{icon:t.data&&t.data.icon?t.data.icon:t.icon?t.icon:i.icon?i.icon:null,value:b,onChange:u,onInput:f,onIconClick:s=>J(s,c,e,d.ICON_CLICK)}))}}}function L(e,s,t,i,c,a,l){switch(e){case n.AUTOCOMPLETE:case n.COMBOBOX:case n.DATE:case n.DATETIME:case n.TIME:if(t&&t!=""){const e=f(a,c);return k("div",{class:"f-cell__text"},e)}return t;case n.CHECKBOX:if(Z(l)){i[o.C_CENTERED]=true}return k(g,{resource:s.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case n.EDITOR:return k("div",{innerHTML:c.value});case n.ICON:if(Z(l)){i[o.C_CENTERED]=true}if(s.badgeData){i[o.C_PADDED]=true}return k(g,Object.assign({},s));case n.IMAGE:if(Z(l)){i[o.C_CENTERED]=true}if(s.badgeData){i[o.C_PADDED]=true}return k(g,Object.assign({},s));case n.LINK:return k("a",{href:t,target:"_blank"},c.value);case n.NUMBER:if(t&&t!=""){const e=T.ketchup.math.numberifySafe(c.value);const s=f(a,c);if(e<0){i[o.TEXT_DANGER]=true}if(Z(l)){i[o.C_RIGHT_ALIGNED]=true}return k("div",{class:"f-cell__text"},s)}return k("div",{class:"f-cell__text"},t);case n.SWITCH:if(Z(l)){i[o.C_CENTERED]=true}s["disabled"]=true;return k(I,Object.assign({},s));default:return k("div",{class:"f-cell__text"},t)}}function U(e,s,t,i,c,a,l){switch(e){case n.BAR:if(!t.data){return k("kup-image",Object.assign({key:a.name+l.row.id,sizeX:"250px"},t))}else{const e={height:t.sizeY,width:"100%"};return k("div",{style:e},k(g,Object.assign({},t)))}case n.BUTTON:if(Z(l)){s[o.C_CENTERED]=true}return k($,Object.assign({},t,{onClick:s=>J(s,l,e,d.CLICK)}));case n.BUTTON_LIST:if(Z(l)){s[o.C_CENTERED]=true}t["data-storage"]={cell:i,row:c,column:a};return k("kup-button-list",Object.assign({key:a.name+l.row.id},t));case n.CHART:if(Z(l)){s[o.C_CENTERED]=true}return k("kup-chart",Object.assign({key:a.name+l.row.id},t));case n.MULTI_AUTOCOMPLETE:case n.MULTI_COMBOBOX:case n.CHIP:return k(y,Object.assign({},t));case n.COLOR_PICKER:return k("kup-color-picker",Object.assign({key:a.name+l.row.id},t,{class:ee(l)?"kup-full-width":"",disabled:true}));case n.GAUGE:return k("kup-gauge",Object.assign({key:a.name+l.row.id,value:T.ketchup.math.numberifySafe(i.value),"width-component":"280px"},t));case n.KNOB:case n.PROGRESS_BAR:return t.customStyle?k("kup-progress-bar",Object.assign({key:a.name+l.row.id},t)):k(C,Object.assign({},t));case n.RADIO:if(Z(l)){s[o.C_CENTERED]=true}t["disabled"]=c.readOnly;return k(F,Object.assign({},t));case n.RATING:return k(H,Object.assign({},t,{disabled:true}));case n.OBJECT:return k(m,Object.assign({icon:"table"},t,{disabled:true}))}}function q(e,s){function t(e){return e.toUpperCase().startsWith("SHAPE;BAR")}function i(e){return e.toUpperCase().startsWith("SHAPE;")}function c(e){return e.toUpperCase().startsWith("BCOLOR;")}function a(e){return e.toUpperCase().startsWith("HEIGHT;")}function l(e){return e.toUpperCase().startsWith("SEP;")||e.toUpperCase().startsWith("DIV;")||e.toUpperCase().startsWith("ARW;")||e.toUpperCase().startsWith("GRID;")}function r(e){if(!e){return null}const s=e.split("\\\\AND\\");const t=[];for(const e of s){const s=o(e);if(s){t.push(...s)}else{return null}}return t}function o(e){const s={};const n=e.split("\\\\");const r=[];for(const e of n){if(e){if(l(e)){return null}if(i(e)){if(!t(e)){return null}else{const t=e.split(";");if(t.length===3){const e=t[2].replace(",",".");if(!isNaN(parseFloat(e))){s.width=`${e}%`}}}}else if(c(e));else if(a(e)){const t=e.substring("HEIGHT;".length).replace(",",".");if(!isNaN(parseFloat(t))){s.height=`${t}%`}}else{r.push(o(e,s))}}return r.length?r:null}function o(e,s){const t=Object.assign({},s);const n=e.split(";");if(n.length>=1){const e=/R(\d+)G(\d+)B(\d+)/;const s=e.exec(n[0]);if(s){const[,e,n,i]=s;if(!isNaN(parseInt(e,10))&&!isNaN(parseInt(n,10))&&!isNaN(parseInt(i,10))){t.color=`rgb(${parseInt(e)},${parseInt(n)},${parseInt(i)})`}}if(n.length>=2){const e=n[1].replace(",",".");if(!isNaN(parseFloat(e))){t.width=`${e}%`}}}return t}}s.data={};const u=()=>{var e;const t=(e=s.value)===null||e===void 0?void 0:e.split(";");if((t===null||t===void 0?void 0:t[t.length-1].trim())===""){t.pop()}if(t&&t.length){s.data.data=[];for(let e of t){s.data.data.push({id:e,value:e})}}};switch(e){case n.CHECKBOX:case n.SWITCH:s.data.checked=s.value==="1"?true:false;break;case n.BAR:if(i(s.value)){s.data.isCanvas=true;s.data.resource=s.value}else{s.data.data=r(s.value)}break;case n.BUTTON:s.data.label=s.value;break;case n.CHART:Object.assign(s.data,{sizeX:"100px",sizeY:"100px",offlineMode:{value:s.value,shape:"pie"}});break;case n.BUTTON_LIST:case n.CHIP:case n.MULTI_AUTOCOMPLETE:case n.MULTI_COMBOBOX:case n.RADIO:u();break;case n.COLOR_PICKER:s.data.initialValue=s.value;break;case n.GAUGE:case n.KNOB:case n.PROGRESS_BAR:case n.RATING:s.data.value=parseInt(s.value);break;case n.ICON:case n.IMAGE:s.data.resource=s.value;break}}function J(e,s,t,i){const c=s.cell;const a=s.column;const l=s.component;const r=s.row;if(i===d.UPDATE){let s=Q(e,t);switch(t){case n.AUTOCOMPLETE:case n.COMBOBOX:case n.DATE:case n.TIME:if(c.data){c.data["initialValue"]=s}break;case n.CHECKBOX:case n.SWITCH:s=s==="on"?"0":"1";if(c.data){c.data.checked=s==="0"?false:true}break;case n.RADIO:break;case n.CHIP:case n.MULTI_AUTOCOMPLETE:case n.MULTI_COMBOBOX:s=e.detail.stringifiedValues;if(c.data){c.data.data=e.detail.comp.data}break}if(c.obj){c.obj.k=s.toString()}c.value=s.toString();c.displayedValue=null;c.displayedValue=f(a,c)}if(l&&l.rootElement){const s=new CustomEvent(i,{bubbles:true,cancelable:true,composed:true,detail:{comp:l,id:l.rootElement.id,cell:c,column:a,event:e,row:r,type:t}});l.rootElement.dispatchEvent(s);if(i===d.UPDATE){try{l.refresh()}catch(e){T.ketchup.debug.logMessage(l,e,p.ERROR)}}}}function Q(e,s){const t=!!(e.target.tagName==="INPUT");let i=t?e.target.value:e.detail.value;if(s===n.CHECKBOX&&t){i=e.target.checked?"off":"on"}if(s===n.NUMBER&&t){i=T.ketchup.math.formattedStringToNumberString(i,"")}return i}function Z(e){var s;return u.includes((s=e.component)===null||s===void 0?void 0:s.rootElement.tagName)}function ee(e){var s;return r.includes((s=e.component)===null||s===void 0?void 0:s.rootElement.tagName)}export{M as F,O as I,x as K,j as a,C as b,F as c,H as d,_ as e,I as f};
|
|
2
|
+
//# sourceMappingURL=p-11f7e98b.js.map
|