@sme.up/ketchup 10.3.1 → 10.3.2
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/{component-cb3b32f5.js → component-a6dd6c14.js} +1 -1
- package/dist/cjs/{f-cell-be0c55ac.js → f-cell-7a2faf7a.js} +8 -6
- package/dist/cjs/{f-chip-dc085b9b.js → f-chip-f2d6124b.js} +1 -1
- package/dist/cjs/{f-object-field-96e1c599.js → f-object-field-3810f288.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3f233ebe.js → f-paginator-utils-3855e84c.js} +1 -1
- package/dist/cjs/{f-text-field-d91ab1e8.js → f-text-field-a34a5979.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-2a3c8c01.js → f-text-field-mdc-29aae9c9.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +247 -44
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +927 -894
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +925 -87
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/{kup-data-table-helper-ff263f4f.js → kup-data-table-helper-f53032e7.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +5 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js +58 -31
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-ecc44384.js → kup-manager-c70d3188.js} +122 -24
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/accordion.js +73 -18
- package/dist/collection/assets/dashboard.js +3 -9
- package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +6 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +10 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +432 -54
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +44 -28
- package/dist/collection/components/kup-calendar/kup-calendar.css +13 -0
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +3 -3
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -2
- package/dist/collection/components/kup-card/kup-card.css +16 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -3
- package/dist/collection/components/kup-chip/kup-chip.js +5 -5
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +37 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +45 -46
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart.js +4 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +20 -14
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +53 -13
- package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +26 -43
- package/dist/collection/components/kup-toolbar/kup-toolbar.css +17 -6
- package/dist/collection/components/kup-tree/kup-tree.js +7 -10
- package/dist/collection/f-components/f-cell/f-cell.js +2 -1
- package/dist/collection/f-components/f-radio/f-radio.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +45 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +3 -2
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +1 -0
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning.js +25 -0
- package/dist/collection/utils/cell-utils.js +21 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +253 -45
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +925 -87
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +55 -27
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-680ee680.js → p-286915d4.js} +2 -2
- package/dist/components/{p-685106b4.js → p-3ba7c133.js} +2 -2
- package/dist/components/{p-e0031e17.js → p-55fda958.js} +2025 -1983
- package/dist/components/{p-8037ef07.js → p-7bdb5142.js} +4 -4
- package/dist/components/{p-73922583.js → p-9859e801.js} +122 -25
- package/dist/components/{p-39e807bc.js → p-a22e5ee4.js} +6 -5
- package/dist/esm/{component-879e99bf.js → component-a35bc7f1.js} +1 -1
- package/dist/esm/{f-cell-eea4e836.js → f-cell-ae0c965d.js} +8 -6
- package/dist/esm/{f-chip-72bcea75.js → f-chip-29242e70.js} +1 -1
- package/dist/esm/{f-object-field-1827746c.js → f-object-field-75069ac2.js} +2 -2
- package/dist/esm/{f-paginator-utils-e785d34e.js → f-paginator-utils-212f93c3.js} +1 -1
- package/dist/esm/{f-text-field-591dc383.js → f-text-field-ebe023fb.js} +2 -2
- package/dist/esm/{f-text-field-mdc-9a862967.js → f-text-field-mdc-81ce6c7c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +247 -44
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_29.entry.js +164 -131
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +925 -87
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/{kup-data-table-helper-0fbe9df1.js → kup-data-table-helper-ca11e6e9.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +5 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-input-panel.entry.js +58 -31
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-a3f8ee8f.js → kup-manager-63a8048f.js} +122 -25
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-102d35b1.js +1 -0
- package/dist/ketchup/p-11e54526.entry.js +1 -0
- package/dist/ketchup/{p-5e55604b.entry.js → p-260587c5.entry.js} +1 -1
- package/dist/ketchup/p-3533879b.entry.js +1 -0
- package/dist/ketchup/{p-8cf7b4a6.entry.js → p-434f2c39.entry.js} +1 -1
- package/dist/ketchup/{p-cd5db3b1.entry.js → p-4365fbd3.entry.js} +1 -1
- package/dist/ketchup/p-43f12940.entry.js +1 -0
- package/dist/ketchup/{p-442a16b1.entry.js → p-4a64f9f2.entry.js} +1 -1
- package/dist/ketchup/{p-64e064f0.js → p-4cfa35bc.js} +1 -1
- package/dist/ketchup/{p-d2e3f987.entry.js → p-5bf3d60d.entry.js} +2 -2
- package/dist/ketchup/p-5d28e8e0.entry.js +8 -0
- package/dist/ketchup/{p-932940cb.js → p-610faea9.js} +1 -1
- package/dist/ketchup/{p-2faa7118.entry.js → p-6c41cd20.entry.js} +1 -1
- package/dist/ketchup/{p-dcf2c5c0.entry.js → p-6f1dec16.entry.js} +1 -1
- package/dist/ketchup/{p-f1886258.js → p-7375d456.js} +1 -1
- package/dist/ketchup/{p-2f0664cb.entry.js → p-7b326bde.entry.js} +1 -1
- package/dist/ketchup/{p-c4054aba.js → p-7db300e0.js} +1 -1
- package/dist/ketchup/{p-36ec5bc3.entry.js → p-7dfc42f0.entry.js} +1 -1
- package/dist/ketchup/p-81743364.entry.js +1 -0
- package/dist/ketchup/p-8610d5b5.js +21 -0
- package/dist/ketchup/{p-beef4fe9.entry.js → p-8ba1d444.entry.js} +1 -1
- package/dist/ketchup/{p-a4168ce9.entry.js → p-93541362.entry.js} +1 -1
- package/dist/ketchup/{p-ee0836a4.entry.js → p-9b200a90.entry.js} +1 -1
- package/dist/ketchup/{p-43dc9f87.entry.js → p-9baa1d6d.entry.js} +1 -1
- package/dist/ketchup/{p-57a93686.entry.js → p-a2d40711.entry.js} +1 -1
- package/dist/ketchup/{p-0f9ae966.entry.js → p-b068a383.entry.js} +1 -1
- package/dist/ketchup/{p-2c11b778.entry.js → p-b6beace3.entry.js} +1 -1
- package/dist/ketchup/{p-5340f777.entry.js → p-b91e3bae.entry.js} +1 -1
- package/dist/ketchup/{p-4c5b911e.entry.js → p-bc789017.entry.js} +1 -1
- package/dist/ketchup/{p-79e580bc.entry.js → p-c8cd012e.entry.js} +1 -1
- package/dist/ketchup/{p-d9ae70bb.entry.js → p-d84e4e90.entry.js} +1 -1
- package/dist/ketchup/{p-d1fa33e0.js → p-da694791.js} +1 -1
- package/dist/ketchup/{p-8140c1d2.js → p-e705eb4a.js} +1 -1
- package/dist/ketchup/{p-21a2d25a.entry.js → p-e7293ae8.entry.js} +1 -1
- package/dist/ketchup/{p-283f7bfc.entry.js → p-eb090acd.entry.js} +1 -1
- package/dist/ketchup/{p-d03527d8.entry.js → p-fb7c0958.entry.js} +1 -1
- package/dist/ketchup/p-fb82cad9.entry.js +1 -0
- package/dist/ketchup/{p-6fe57b1a.entry.js → p-fe42ae2d.entry.js} +1 -1
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +14 -7
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +62 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +3 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -2
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -1
- package/dist/types/components/kup-card/kup-card-helper.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +6 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -1
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +1 -5
- package/dist/types/components.d.ts +86 -21
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/ketchup/p-0eea54ac.js +0 -1
- package/dist/ketchup/p-1a9fb6e7.entry.js +0 -1
- package/dist/ketchup/p-32a6feed.entry.js +0 -9
- package/dist/ketchup/p-4c16edda.entry.js +0 -1
- package/dist/ketchup/p-e1281898.entry.js +0 -1
- package/dist/ketchup/p-ec86f88f.entry.js +0 -1
- package/dist/ketchup/p-fb4f10d5.js +0 -21
- package/dist/ketchup/p-fc750bff.entry.js +0 -1
- /package/dist/ketchup/{p-d4a879fc.js → p-c56195a0.js} +0 -0
|
@@ -7,9 +7,13 @@ import { KupEventPayload } from '../../types/GenericTypes';
|
|
|
7
7
|
export declare enum KupTabBarProps {
|
|
8
8
|
customStyle = "Custom style of the component.",
|
|
9
9
|
data = "List of elements.",
|
|
10
|
+
dense = "When true, the component will be more compact.",
|
|
11
|
+
infoIcon = "Icon to be shown in the info button",
|
|
10
12
|
ripple = "When enabled displays Material's ripple effect on item headers.",
|
|
11
13
|
toolbar = "when true, it will show the toolbar activation icon",
|
|
12
|
-
variant = "Variant of the component. It is either flat or contained"
|
|
14
|
+
variant = "Variant of the component. It is either flat or contained",
|
|
15
|
+
toolbarCallback = "Callback to be called when the toolbar icon is clicked",
|
|
16
|
+
infoCallback = "Callback to be called when the info icon is clicked"
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* Styling options for the f-button component.
|
|
@@ -27,6 +31,7 @@ export declare enum KupTabbarStyling {
|
|
|
27
31
|
*/
|
|
28
32
|
export interface KupTabBarNode extends KupDataNode {
|
|
29
33
|
active?: boolean;
|
|
34
|
+
contentVisible?: boolean;
|
|
30
35
|
danger?: boolean;
|
|
31
36
|
}
|
|
32
37
|
export interface KupTabBarEventPayload extends KupEventPayload {
|
|
@@ -75,10 +75,6 @@ export declare class KupTabBar {
|
|
|
75
75
|
* Triggered when the icon inside tab is clicked.
|
|
76
76
|
*/
|
|
77
77
|
kupIconClick: EventEmitter<KupTabBarEventPayload>;
|
|
78
|
-
/**
|
|
79
|
-
* Triggered when the icon inside tab is clicked.
|
|
80
|
-
*/
|
|
81
|
-
kupInfoIconClick: EventEmitter<KupTabBarEventPayload>;
|
|
82
78
|
/**
|
|
83
79
|
* Triggered when the tab is focused.
|
|
84
80
|
*/
|
|
@@ -86,7 +82,7 @@ export declare class KupTabBar {
|
|
|
86
82
|
/**
|
|
87
83
|
* Triggered when a list item is clicked.
|
|
88
84
|
*/
|
|
89
|
-
|
|
85
|
+
kupToolbarItemClick: EventEmitter<KupToolbarItemClickEventPayload>;
|
|
90
86
|
onKupBlur(i: number, node: KupTabBarNode): void;
|
|
91
87
|
onKupClick(i: number, node: KupTabBarNode): void;
|
|
92
88
|
onKupIconClick(el: HTMLElement): void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { KupAccordionEventPayload, KupAccordionNode } from "./components/kup-accordion/kup-accordion-declarations";
|
|
9
9
|
import { GenericObject, KupComponentSizing, KupEventPayload } from "./types/GenericTypes";
|
|
10
10
|
import { KupCommand, KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
|
|
11
11
|
import { GroupLabelDisplayMode, GroupObject, KupDataTableCell, KupDatatableCellCheckPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableDeleteRowEventPayload, KupDatatableHistoryEventPayload, KupDataTableInsertMode, KupDatatableInsertRowEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionItemClickEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableUpdatePayload, LoadMoreMode as LoadMoreMode1, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
|
|
@@ -67,7 +67,7 @@ import { KupTimePickerEventPayload } from "./components/kup-time-picker/kup-time
|
|
|
67
67
|
import { FTypographyType } from "./f-components/f-typography/f-typography-declarations";
|
|
68
68
|
import { KupTypographyClickEventPayload, KupTypographyIconClickEventPayload } from "./components/kup-typography/kup-typography-declarations";
|
|
69
69
|
import { KupTypographyListClickEventPayload, KupTypographyListIconClickEventPayload } from "./components/kup-typography-list/kup-typography-list-declarations";
|
|
70
|
-
export {
|
|
70
|
+
export { KupAccordionEventPayload, KupAccordionNode } from "./components/kup-accordion/kup-accordion-declarations";
|
|
71
71
|
export { GenericObject, KupComponentSizing, KupEventPayload } from "./types/GenericTypes";
|
|
72
72
|
export { KupCommand, KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
|
|
73
73
|
export { GroupLabelDisplayMode, GroupObject, KupDataTableCell, KupDatatableCellCheckPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableDeleteRowEventPayload, KupDatatableHistoryEventPayload, KupDataTableInsertMode, KupDatatableInsertRowEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionItemClickEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableUpdatePayload, LoadMoreMode as LoadMoreMode1, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
|
|
@@ -145,7 +145,7 @@ export namespace Components {
|
|
|
145
145
|
* Data of the accordion.
|
|
146
146
|
* @default null
|
|
147
147
|
*/
|
|
148
|
-
"data":
|
|
148
|
+
"data": KupAccordionNode[];
|
|
149
149
|
/**
|
|
150
150
|
* This method expands all expandible items.
|
|
151
151
|
*/
|
|
@@ -156,6 +156,12 @@ export namespace Components {
|
|
|
156
156
|
* @returns List of props as object, each key will be a prop.
|
|
157
157
|
*/
|
|
158
158
|
"getProps": (descriptions?: boolean) => Promise<GenericObject>;
|
|
159
|
+
"infoCallback": () => Promise<KupDataNode[]>;
|
|
160
|
+
/**
|
|
161
|
+
* When true, it will show the info activation icon.
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
"infoIcon": boolean;
|
|
159
165
|
/**
|
|
160
166
|
* This method is used to trigger a new render of the component.
|
|
161
167
|
*/
|
|
@@ -171,7 +177,7 @@ export namespace Components {
|
|
|
171
177
|
*/
|
|
172
178
|
"setProps": (props: GenericObject) => Promise<void>;
|
|
173
179
|
/**
|
|
174
|
-
* Sets the type of the
|
|
180
|
+
* Sets the type of the component sizing
|
|
175
181
|
* @default KupComponentSizing.SMALL
|
|
176
182
|
*/
|
|
177
183
|
"sizing": KupComponentSizing;
|
|
@@ -179,7 +185,13 @@ export namespace Components {
|
|
|
179
185
|
* This method activates or deactivates an item
|
|
180
186
|
* @param itemName - Name of the item.
|
|
181
187
|
*/
|
|
182
|
-
"toggleItem": (
|
|
188
|
+
"toggleItem": (node: KupAccordionNode) => Promise<void>;
|
|
189
|
+
/**
|
|
190
|
+
* When true, it will show the toolbar activation icon.
|
|
191
|
+
* @default false
|
|
192
|
+
*/
|
|
193
|
+
"toolbar": boolean;
|
|
194
|
+
"toolbarCallback": () => Promise<KupDataNode[]>;
|
|
183
195
|
}
|
|
184
196
|
interface KupActivityTimeline {
|
|
185
197
|
/**
|
|
@@ -314,8 +326,8 @@ export namespace Components {
|
|
|
314
326
|
*/
|
|
315
327
|
"minimumChars": number;
|
|
316
328
|
/**
|
|
317
|
-
* Set custom placeholder / watermark for text field
|
|
318
|
-
* @default
|
|
329
|
+
* Set custom placeholder / watermark for text field, if not set the default one will be taken on component load.
|
|
330
|
+
* @default 'Type code or description'
|
|
319
331
|
*/
|
|
320
332
|
"placeholder": string;
|
|
321
333
|
/**
|
|
@@ -366,6 +378,10 @@ export namespace Components {
|
|
|
366
378
|
* @default false
|
|
367
379
|
*/
|
|
368
380
|
"showMarker": boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Sets the size of the input element
|
|
383
|
+
*/
|
|
384
|
+
"size": number;
|
|
369
385
|
/**
|
|
370
386
|
* Sets the type of the button
|
|
371
387
|
* @default KupComponentSizing.SMALL
|
|
@@ -1451,6 +1467,10 @@ export namespace Components {
|
|
|
1451
1467
|
* @default false
|
|
1452
1468
|
*/
|
|
1453
1469
|
"showMarker": boolean;
|
|
1470
|
+
/**
|
|
1471
|
+
* Sets the size of the input element
|
|
1472
|
+
*/
|
|
1473
|
+
"size": number;
|
|
1454
1474
|
/**
|
|
1455
1475
|
* Sets the type of the button
|
|
1456
1476
|
* @default KupComponentSizing.SMALL
|
|
@@ -3072,6 +3092,11 @@ export namespace Components {
|
|
|
3072
3092
|
* @default null
|
|
3073
3093
|
*/
|
|
3074
3094
|
"data": KupInputPanelData;
|
|
3095
|
+
/**
|
|
3096
|
+
* When set to true, will render a reset button
|
|
3097
|
+
* @default false
|
|
3098
|
+
*/
|
|
3099
|
+
"fieldReset": boolean;
|
|
3075
3100
|
/**
|
|
3076
3101
|
* Used to retrieve component's props values.
|
|
3077
3102
|
* @param descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -5091,7 +5116,11 @@ export interface KupTypographyListCustomEvent<T> extends CustomEvent<T> {
|
|
|
5091
5116
|
}
|
|
5092
5117
|
declare global {
|
|
5093
5118
|
interface HTMLKupAccordionElementEventMap {
|
|
5094
|
-
"kup-accordion-
|
|
5119
|
+
"kup-accordion-blur": KupAccordionEventPayload;
|
|
5120
|
+
"kup-accordion-click": KupAccordionEventPayload;
|
|
5121
|
+
"kup-accordion-iconclick": KupAccordionEventPayload;
|
|
5122
|
+
"kup-accordion-focus": KupAccordionEventPayload;
|
|
5123
|
+
"kup-accordion-toolbaritemclick": KupAccordionEventPayload;
|
|
5095
5124
|
}
|
|
5096
5125
|
interface HTMLKupAccordionElement extends Components.KupAccordion, HTMLStencilElement {
|
|
5097
5126
|
addEventListener<K extends keyof HTMLKupAccordionElementEventMap>(type: K, listener: (this: HTMLKupAccordionElement, ev: KupAccordionCustomEvent<HTMLKupAccordionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6035,9 +6064,8 @@ declare global {
|
|
|
6035
6064
|
"kup-tabbar-blur": KupTabBarEventPayload;
|
|
6036
6065
|
"kup-tabbar-click": KupTabBarEventPayload;
|
|
6037
6066
|
"kup-tabbar-iconclick": KupTabBarEventPayload;
|
|
6038
|
-
"kup-tabbar-infoiconclick": KupTabBarEventPayload;
|
|
6039
6067
|
"kup-tabbar-focus": KupTabBarEventPayload;
|
|
6040
|
-
"kup-tabbar-
|
|
6068
|
+
"kup-tabbar-toolbaritemclick": KupToolbarItemClickEventPayload;
|
|
6041
6069
|
}
|
|
6042
6070
|
interface HTMLKupTabBarElement extends Components.KupTabBar, HTMLStencilElement {
|
|
6043
6071
|
addEventListener<K extends keyof HTMLKupTabBarElementEventMap>(type: K, listener: (this: HTMLKupTabBarElement, ev: KupTabBarCustomEvent<HTMLKupTabBarElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6328,21 +6356,49 @@ declare namespace LocalJSX {
|
|
|
6328
6356
|
* Data of the accordion.
|
|
6329
6357
|
* @default null
|
|
6330
6358
|
*/
|
|
6331
|
-
"data"?:
|
|
6359
|
+
"data"?: KupAccordionNode[];
|
|
6360
|
+
"infoCallback"?: () => Promise<KupDataNode[]>;
|
|
6361
|
+
/**
|
|
6362
|
+
* When true, it will show the info activation icon.
|
|
6363
|
+
* @default false
|
|
6364
|
+
*/
|
|
6365
|
+
"infoIcon"?: boolean;
|
|
6366
|
+
/**
|
|
6367
|
+
* Triggered when the accordion loses focus.
|
|
6368
|
+
*/
|
|
6369
|
+
"onKup-accordion-blur"?: (event: KupAccordionCustomEvent<KupAccordionEventPayload>) => void;
|
|
6370
|
+
/**
|
|
6371
|
+
* Triggered when an item is selected.
|
|
6372
|
+
*/
|
|
6373
|
+
"onKup-accordion-click"?: (event: KupAccordionCustomEvent<KupAccordionEventPayload>) => void;
|
|
6332
6374
|
/**
|
|
6333
|
-
*
|
|
6375
|
+
* Triggered when the accordion is focused.
|
|
6334
6376
|
*/
|
|
6335
|
-
"onKup-accordion-
|
|
6377
|
+
"onKup-accordion-focus"?: (event: KupAccordionCustomEvent<KupAccordionEventPayload>) => void;
|
|
6378
|
+
/**
|
|
6379
|
+
* Triggered when the icon inside accordion is clicked.
|
|
6380
|
+
*/
|
|
6381
|
+
"onKup-accordion-iconclick"?: (event: KupAccordionCustomEvent<KupAccordionEventPayload>) => void;
|
|
6382
|
+
/**
|
|
6383
|
+
* Triggered when a list item is clicked.
|
|
6384
|
+
*/
|
|
6385
|
+
"onKup-accordion-toolbaritemclick"?: (event: KupAccordionCustomEvent<KupAccordionEventPayload>) => void;
|
|
6336
6386
|
/**
|
|
6337
6387
|
* When enabled displays Material's ripple effect on item headers.
|
|
6338
6388
|
* @default true
|
|
6339
6389
|
*/
|
|
6340
6390
|
"ripple"?: boolean;
|
|
6341
6391
|
/**
|
|
6342
|
-
* Sets the type of the
|
|
6392
|
+
* Sets the type of the component sizing
|
|
6343
6393
|
* @default KupComponentSizing.SMALL
|
|
6344
6394
|
*/
|
|
6345
6395
|
"sizing"?: KupComponentSizing;
|
|
6396
|
+
/**
|
|
6397
|
+
* When true, it will show the toolbar activation icon.
|
|
6398
|
+
* @default false
|
|
6399
|
+
*/
|
|
6400
|
+
"toolbar"?: boolean;
|
|
6401
|
+
"toolbarCallback"?: () => Promise<KupDataNode[]>;
|
|
6346
6402
|
}
|
|
6347
6403
|
interface KupActivityTimeline {
|
|
6348
6404
|
/**
|
|
@@ -6470,8 +6526,8 @@ declare namespace LocalJSX {
|
|
|
6470
6526
|
"onKup-autocomplete-input"?: (event: KupAutocompleteCustomEvent<KupAutocompleteEventPayload>) => void;
|
|
6471
6527
|
"onKup-autocomplete-itemclick"?: (event: KupAutocompleteCustomEvent<KupAutocompleteEventPayload>) => void;
|
|
6472
6528
|
/**
|
|
6473
|
-
* Set custom placeholder / watermark for text field
|
|
6474
|
-
* @default
|
|
6529
|
+
* Set custom placeholder / watermark for text field, if not set the default one will be taken on component load.
|
|
6530
|
+
* @default 'Type code or description'
|
|
6475
6531
|
*/
|
|
6476
6532
|
"placeholder"?: string;
|
|
6477
6533
|
/**
|
|
@@ -6499,6 +6555,10 @@ declare namespace LocalJSX {
|
|
|
6499
6555
|
* @default false
|
|
6500
6556
|
*/
|
|
6501
6557
|
"showMarker"?: boolean;
|
|
6558
|
+
/**
|
|
6559
|
+
* Sets the size of the input element
|
|
6560
|
+
*/
|
|
6561
|
+
"size"?: number;
|
|
6502
6562
|
/**
|
|
6503
6563
|
* Sets the type of the button
|
|
6504
6564
|
* @default KupComponentSizing.SMALL
|
|
@@ -7457,6 +7517,10 @@ declare namespace LocalJSX {
|
|
|
7457
7517
|
* @default false
|
|
7458
7518
|
*/
|
|
7459
7519
|
"showMarker"?: boolean;
|
|
7520
|
+
/**
|
|
7521
|
+
* Sets the size of the input element
|
|
7522
|
+
*/
|
|
7523
|
+
"size"?: number;
|
|
7460
7524
|
/**
|
|
7461
7525
|
* Sets the type of the button
|
|
7462
7526
|
* @default KupComponentSizing.SMALL
|
|
@@ -8782,6 +8846,11 @@ declare namespace LocalJSX {
|
|
|
8782
8846
|
* @default null
|
|
8783
8847
|
*/
|
|
8784
8848
|
"data"?: KupInputPanelData;
|
|
8849
|
+
/**
|
|
8850
|
+
* When set to true, will render a reset button
|
|
8851
|
+
* @default false
|
|
8852
|
+
*/
|
|
8853
|
+
"fieldReset"?: boolean;
|
|
8785
8854
|
/**
|
|
8786
8855
|
* Creates a hidden submit button in order to submit the form with enter.``
|
|
8787
8856
|
* @default false
|
|
@@ -9646,14 +9715,10 @@ declare namespace LocalJSX {
|
|
|
9646
9715
|
* Triggered when the icon inside tab is clicked.
|
|
9647
9716
|
*/
|
|
9648
9717
|
"onKup-tabbar-iconclick"?: (event: KupTabBarCustomEvent<KupTabBarEventPayload>) => void;
|
|
9649
|
-
/**
|
|
9650
|
-
* Triggered when the icon inside tab is clicked.
|
|
9651
|
-
*/
|
|
9652
|
-
"onKup-tabbar-infoiconclick"?: (event: KupTabBarCustomEvent<KupTabBarEventPayload>) => void;
|
|
9653
9718
|
/**
|
|
9654
9719
|
* Triggered when a list item is clicked.
|
|
9655
9720
|
*/
|
|
9656
|
-
"onKup-tabbar-
|
|
9721
|
+
"onKup-tabbar-toolbaritemclick"?: (event: KupTabBarCustomEvent<KupToolbarItemClickEventPayload>) => void;
|
|
9657
9722
|
/**
|
|
9658
9723
|
* When enabled displays Material's ripple effect on item headers.
|
|
9659
9724
|
* @default true
|
|
@@ -167,7 +167,9 @@ export declare enum KupLanguageGeneric {
|
|
|
167
167
|
INVALID_VALUE = "genericInvalidValue",
|
|
168
168
|
REQUIRED_VALUE = "genericRequiredValue",
|
|
169
169
|
UPLOAD = "genericUpload",
|
|
170
|
-
CHOOSE = "genericChoose"
|
|
170
|
+
CHOOSE = "genericChoose",
|
|
171
|
+
TYPE_CODE_OR_DESCR = "genericTypeCodeOrDescr",
|
|
172
|
+
PARTIAL_FILTERS_LIST = "genericPartialFiltersList"
|
|
171
173
|
}
|
|
172
174
|
/**
|
|
173
175
|
* Grid decodes (data table customization settings).
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface KupPerfTuningData {
|
|
2
2
|
maxCellsPerPage: number;
|
|
3
3
|
maxRowsPerPage: number;
|
|
4
|
+
filtersMaxLength: number;
|
|
4
5
|
priority: KupPerfTuningPriority;
|
|
5
6
|
}
|
|
6
7
|
export declare enum KupPerfTuningPriority {
|
|
7
8
|
CELLS_PER_PAGE = "cells-per-page",
|
|
8
|
-
ROWS_PER_PAGE = "rows-per-page"
|
|
9
|
+
ROWS_PER_PAGE = "rows-per-page",
|
|
10
|
+
DYNAMIC_ROWS_PER_PAGE = "dynamic-rows-per-page"
|
|
9
11
|
}
|
|
@@ -4,4 +4,5 @@ export declare class KupPerfTuning {
|
|
|
4
4
|
constructor(data: KupPerfTuningData);
|
|
5
5
|
getPerfIndex(duration: number): number;
|
|
6
6
|
performPerfTuning(duration?: number): void;
|
|
7
|
+
maxRowsPerPageProvider(columnsNumber: number, rowsNumber: number, maxRowsConsumer: (maxRows: number) => void): void;
|
|
7
8
|
}
|
|
@@ -3,6 +3,7 @@ import { ValueDisplayedValue } from './filters/filters-declarations';
|
|
|
3
3
|
import { KupDataCell, KupDataColumn } from '../managers/kup-data/kup-data-declarations';
|
|
4
4
|
import { GenericObject, KupChipNode } from '../components';
|
|
5
5
|
import { KupCellElementsPosition } from '../components/kup-cell/kup-cell-declarations';
|
|
6
|
+
import { ItemsDisplayMode } from '../components/kup-list/kup-list-declarations';
|
|
6
7
|
import { KupObj } from '../managers/kup-objects/kup-objects-declarations';
|
|
7
8
|
export declare function getCellValueForDisplay(column: KupDataColumn, cell: KupDataCell): string;
|
|
8
9
|
export declare function getValueForDisplay2(values: ValueDisplayedValue, column?: KupDataColumn): string;
|
|
@@ -45,3 +46,4 @@ export declare const submitPositionAdapter: (position: KupCellElementsPosition)
|
|
|
45
46
|
export declare const isForceLowercase: (cell: KupDataCell) => boolean;
|
|
46
47
|
export declare const isForceUppercase: (cell: KupDataCell) => boolean;
|
|
47
48
|
export declare function adaptContentToDisplayMode(cell: KupDataCell, content: unknown, separator: string): unknown;
|
|
49
|
+
export declare function getSizeOfInputElement(data: Object, displayMode: ItemsDisplayMode, size: number): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@stencil/core": "4.20.0",
|
|
62
62
|
"@stencil/react-output-target": "^0.8",
|
|
63
|
-
"@stencil/sass": "
|
|
63
|
+
"@stencil/sass": "3.0.12",
|
|
64
64
|
"jest": "^29.7.0",
|
|
65
65
|
"jest-cli": "^29.7.0",
|
|
66
66
|
"jest-html-reporter": "^3.10.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,F as n}from"./p-710d0a7d.js";import{ap as a,aq as o,R as t,ac as c,d as l,an as i,al as r,ak as s,ar as u,F as d,ah as p,a as b,as as k,I as v,at as f,au as m,av as h,aw as g,ax as j,e as O}from"./p-fb4f10d5.js";import{F as x}from"./p-c4224227.js";import{F as w}from"./p-9f9428d1.js";import{F as _,d as y}from"./p-f1886258.js";import{F as C}from"./p-3cab6420.js";import{F as $}from"./p-d1fa33e0.js";import{F}from"./p-8140c1d2.js";var I;!function(e){e.RADIO="radio",e.CHEVRON="chevron"}(I||(I={}));const E=a=>{var o;const t=!!a.columns,c=[],l=a.type||I.RADIO;for(let t=0;t<(null===(o=a.data)||void 0===o?void 0:o.length);t++){const o=a.data[t],i={radio:!0,"radio--checked":!!o.checked,"radio--disabled":!!a.disabled,[`radio--${a.type}`]:!!a.type};c.push(e("div",{class:`form-field \n ${a.leadingLabel?" form-field--align-end":""} ${a.disabled?"radio--disabled":""} ${l===I.CHEVRON?"form--chevron":""}`,onClick:a.onChange?a.onChange.bind(a.onChange,t):null},e("div",{class:i},l===I.RADIO?e("input",{class:"radio__native-control",type:"radio",name:"radio-element",value:o.value,checked:o.checked,disabled:a.disabled,onBlur:a.onBlur,onChange:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()},onFocus:a.onFocus}):e(n,null,e(C,o.checked?{resource:"check",sizeX:"14px",sizeY:"14px"}:{sizeX:"14px",sizeY:"14px",onClick:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()}})),l===I.RADIO&&e("div",{class:"radio__background"},e("div",{class:"radio__outer-circle"}),e("div",{class:"radio__inner-circle"}))),e("div",{class:"label-wrapper",onClick:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()}},l===I.CHEVRON&&e(C,{resource:o.icon,sizeX:"14px",sizeY:"14px"}),e("label",{htmlFor:"radio-element"},o.label?o.label:""))))}return e("div",{class:`f-radio radio-wrapper\n ${t?"radio-wrapper-grid":""} ${a.danger?"kup-danger":""} ${a.info?"kup-info":""} ${a.secondary?"kup-secondary":""} ${a.success?"kup-success":""} ${a.warning?"kup-warning":""} ${a.wrapperClass?a.wrapperClass:""} ${a.horizontal?"kup-horizontal":""}`,style:{"--kup_radio_columns":t?`repeat(${a.columns}, 1fr)`:""}},c)},B=n=>(n.maxValue||(n.maxValue=5),e("div",{class:`f-rating ${n.disabled?"disabled":""} ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},function(n){const a=[];for(let o=1;o<=n.maxValue;o++)a.push(e("span",{class:"rating",onClick:n.onClick?n.onClick.bind(n.onClick,o):null},o<=n.value?"★":"☆"));return a}(n)));var A;!function(e){e.SMALL="small",e.MEDIUM="medium"}(A||(A={}));const D=n=>{n.sizing||(n.sizing=A.MEDIUM),n.sizing.toLowerCase();const a={switch:!0,"switch--checked":n.checked,"switch--disabled":n.disabled,[`switch--${n.sizing}`]:!!n.sizing};return e("div",Object.assign({class:`f-switch ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},n.dataSet,{id:n.id,title:n.title}),e("div",{class:"form-field "+(n.leadingLabel?"form-field--align-end":"")},e("div",{class:a},e("div",{class:"switch__track"}),e("div",{class:"switch__thumb-underlay"},e("div",{class:"switch__thumb"},e("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:n.checked,disabled:n.disabled,value:n.checked?"on":"off",onBlur:n.onBlur,onChange:n.onChange,onFocus:n.onFocus})))),e("label",{onClick:n.onChange},n.label)))},z={"*BOLD":"font-weight: bold; !important;","*ERROR":"color: white !important; background: red !important;","*UNDERLINE":"text-decoration: underline !important;","*ITALIC":"font-style: italic !important;"};function N(e){let n;switch(e){case"0":n="color: #000000 !important;";break;case"1":n="color: #6C7A89 !important;";break;case"2":n="color: #3A539B !important;";break;case"3":n="color: var(--kup-danger-color-60) !important;";break;case"4":n="color: #C0C0C0 !important;";break;case"5":n="color: #FFFFFF !important;";break;case"6":n="color: var(--kup-success-color-60) !important;";break;case"7":n="color: #9B59B6 !important;";break;default:n=""}return n}function R(e){let n;switch(e){case"1":n="font-weight: bold !important;";break;case"2":n="font-style: italic !important;";break;case"3":n="text-decoration: underline !important;";break;default:n=""}return n}function L(e){let n;switch(e){case"0":n="background: transparent;";break;case"1":n="background: #D5ECF7;";break;case"2":n="background: #59ABE3;";break;case"3":n="background: #446CB3;";break;case"4":n="background: #9B59B6;";break;case"5":n="background: #F1A9A0;";break;case"6":n="background: #E74C3C;";break;case"7":n="background: #CF000F;";break;case"8":n="background: #C0392B;";break;case"9":n="background: #95A5A6;";break;case"A":n="background: #F5D76E;";break;case"B":case"C":n="background: #F7CA18;";break;case"D":n="background: #F39C12;";break;case"E":n="background: #90C695;";break;case"F":n="background: #26A65B;";break;case"G":n="background: #019875;";break;case"H":n="background: #36D7B7;";break;default:n=""}return n}function K(e){let n;switch(e){case"1":n='font-family: "Courier New", Courier, monospace !important;';break;case"2":n='font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;';break;case"3":n="font-family: Arial, Helvetica, sans-serif !important;";break;default:n=""}return n}const M=({text:a,classes:o})=>{const t=function(e){const n=[];let a=null;return function(e,n){const a=/((_G\d{2}[A-Z0-9]\d{2}_|_G\*(BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_)/g;let o,t=0;for(;null!==(o=a.exec(e));)o.index>t&&n.onContent(e.slice(t,o.index)),"_n_"===o[1]?n.onEndTag(o[1]):n.onStartTag(o[2]),t=a.lastIndex;t<e.length&&n.onContent(e.slice(t))}(e,{onStartTag(e){(null==a?void 0:a.tag)&&(a.closed=!0),n.push(a={tag:e,content:""})},onEndTag(e){a?a.tag?(a.closed=!0,a=null):this.onContent(e):n.push(a={content:e})},onContent(e){a?a.content+=e:n.push(a={content:e})}}),a&&a.tag&&(a.closed=!0),n}(a);return t.find((e=>void 0!==e.tag))?e("span",{class:o},function(n){return n.map((n=>{var a,o;const t=function(e){const n=function(e){let n="";if((null==e?void 0:e.match(/\d{2}[A-Z0-9]\d{2}|\*(BOLD|ERROR|ITALIC|UNDERLINE)/))&&(n=z[e],!n)){n="";for(let a=0;a<e.length;a++)switch(a){case 0:n+=N(e.charAt(a));break;case 1:n+=R(e.charAt(a));break;case 2:n+=L(e.charAt(a));break;case 3:n+=K(e.charAt(a))}}return n}(e);return n.split(";").filter((e=>e.trim())).reduce(((e,n)=>{const[a,o]=n.split(":").map((e=>e.trim()));if(a&&o){const n=o.replace(/!important/g,"").trim();e[a.replace(/-([a-z])/g,((e,n)=>n.toUpperCase()))]=n}return e}),{})}(null===(a=n.tag)||void 0===a?void 0:a.replace(/[_]/g,"").slice(1));return n.closed?e("span",{style:t},n.content):e("span",null,`${null!==(o=n.tag)&&void 0!==o?o:""}${n.content}`)}))}(t)):e(n,null,a)},T=document.documentElement,V=(n,i)=>{var r,s,k,f,O;const I=n.cell,A=n.column,z=n.row,N=n.shape?n.shape:I.shape?I.shape:A.shape?A.shape:null,R=!T.ketchup.objects.isEmptyKupObj(I.obj);let L=!1;I.hasOwnProperty("isEditable")?L=I.isEditable:A.hasOwnProperty("isEditable")&&(L=A.isEditable),L=L&&n.editable,I.data=null!==(r=X(I,A))&&void 0!==r?r:I.data;const K=n.previousValue!==I.value?I.value:"",V=T.ketchup.data.cell.getType(I,N),G="extra_dense"===n.density?"extra-small":null===(s=I.data)||void 0===s?void 0:s.sizing,Y=Object.assign(Object.assign(Object.assign(Object.assign({},I.data),(null==I?void 0:I.icon)?{resource:I.icon}:{}),(null==I?void 0:I.placeholderIcon)?{placeholderResource:I.placeholderIcon}:{}),G?{sizing:G}:{});let W=I.cssClass?I.cssClass:(null==A?void 0:A.cssClass)?null==A?void 0:A.cssClass:"";const U={"f-cell":!0,[t.OBJ]:!!R,[V+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||V===c.BAR),[W]:!!W,"c-input-uppercase":g(I),"c-input-lowercase":j(I),"monospace c-pre":null===(k=I.data)||void 0===k?void 0:k.legacyLook};let P=K;I.data||function(e,n){function a(e){return e.toUpperCase().startsWith("SHAPE;BAR")}function o(e){return e.toUpperCase().startsWith("SHAPE;")}function t(e){return e.toUpperCase().startsWith("BCOLOR;")}function l(e){return e.toUpperCase().startsWith("HEIGHT;")}function i(e){return e.toUpperCase().startsWith("SEP;")||e.toUpperCase().startsWith("DIV;")||e.toUpperCase().startsWith("ARW;")||e.toUpperCase().startsWith("GRID;")}function r(e){const n={},c=e.split("\\\\"),r=[];for(const e of c){if(e){if(i(e))return null;if(o(e)){if(!a(e))return null;{const a=e.split(";");if(3===a.length){const e=a[2].replace(",",".");isNaN(parseFloat(e))||(n.width=`${e}%`)}}}else if(t(e));else if(l(e)){const a=e.substring(7).replace(",",".");isNaN(parseFloat(a))||(n.height=`${a}%`)}else r.push(s(e,n))}return r.length?r:null}function s(e,n){const a=Object.assign({},n),o=e.split(";");if(o.length>=1){const e=/R(\d+)G(\d+)B(\d+)/.exec(o[0]);if(e){const[,n,o,t]=e;isNaN(parseInt(n,10))||isNaN(parseInt(o,10))||isNaN(parseInt(t,10))||(a.color=`rgb(${parseInt(n)},${parseInt(o)},${parseInt(t)})`)}if(o.length>=2){const e=o[1].replace(",",".");isNaN(parseFloat(e))||(a.width=`${e}%`)}}return a}}n.data={};switch(e){case c.CHECKBOX:case c.SWITCH:n.data.checked="1"===n.value;break;case c.BAR:o(n.value)?(n.data.isCanvas=!0,n.data.resource=n.value):n.data.data=function(e){if(!e)return null;const n=e.split("\\\\AND\\"),a=[];for(const e of n){const n=r(e);if(!n)return null;a.push(...n)}return a}(n.value);break;case c.BUTTON:n.data.label=n.value;break;case c.CHART:Object.assign(n.data,{sizeX:"100px",sizeY:"100px",offlineMode:{value:n.value,shape:"pie"}});break;case c.BUTTON_LIST:case c.CHIP:case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:case c.RADIO:(()=>{var e;const a=null===(e=n.value)||void 0===e?void 0:e.split(";");if(""===(null==a?void 0:a[a.length-1].trim())&&a.pop(),a&&a.length){n.data.data=[];for(let e of a)n.data.data.push({id:e,value:e})}})();break;case c.COLOR_PICKER:n.data.initialValue=n.value;break;case c.GAUGE:case c.KNOB:case c.PROGRESS_BAR:case c.RATING:n.data.value=parseInt(n.value);break;case c.ICON:case c.IMAGE:n.data.resource=n.value}}(V,I),L&&a.includes(V)?(I.data.showMarker=null!==(f=I.tooltip)&&void 0!==f&&f,P=function(n,a,o,l,i){var r,s,u,k,f,m,g,j,O,x,y,C,I,B;switch(n){case c.AUTOCOMPLETE:return e("kup-autocomplete",Object.assign({key:l.name+i.row.id,initialValue:o.value,initialValueDecode:o.decode},o.data,{class:ce(i)?"kup-full-width":"","onkup-autocomplete-change":e=>oe(e,i,n,h.UPDATE),"onkup-autocomplete-input":e=>oe(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>oe(e,i,n,h.ICON_CLICK),"onKup-autocomplete-blur":e=>oe(e,i,n,h.BLUR),"onKup-autocomplete-itemclick":e=>oe(e,i,n,h.ITEMCLICK)}));case c.CHECKBOX:return te(i)&&(a[t.C_CENTERED]=!0),o.shape===d.INPUT_CHECKBOX?e("input",{checked:"on"===o.value.toLowerCase()||"1"===o.value,class:"input-checkbox",onChange:e=>oe(e,i,n,h.UPDATE),type:"checkbox",onBlur:e=>oe(e,i,n,h.BLUR)}):e(w,Object.assign({},o.data,{onChange:e=>oe(e,i,n,h.UPDATE),onBlur:e=>oe(e,i,n,h.BLUR)}));case c.CHIP:return e("kup-chip",Object.assign({},o.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>oe(e,i,n,h.UPDATE)}),e("kup-text-field",Object.assign({fullWidth:!0,slot:"field"},o.slotData,{error:o.data.error,"onKup-textfield-blur":e=>oe(e,i,n,h.BLUR)})));case c.COLOR_PICKER:return e("kup-color-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:ce(i)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":e=>oe(e,i,n,h.UPDATE)}));case c.COMBOBOX:return e("kup-combobox",Object.assign({key:l.name+i.row.id,initialValue:o.value,initialValueDecode:o.decode},o.data,{class:ce(i)?"kup-full-width":"","onkup-combobox-change":e=>oe(e,i,n,h.UPDATE),"onkup-combobox-input":e=>oe(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>oe(e,i,n,h.ICON_CLICK),"onKup-combobox-blur":e=>oe(e,i,n,h.BLUR),"onKup-combobox-itemclick":e=>oe(e,i,n,h.ITEMCLICK)}));case c.DATE:return e("kup-date-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:ce(i)?"kup-full-width":"","onkup-datepicker-change":e=>oe(e,i,n,h.UPDATE),"onkup-datepicker-input":e=>oe(e,i,n,h.INPUT),"onKup-datepicker-blur":e=>oe(e,i,n,h.BLUR),"onkup-datepicker-textfieldsubmit":e=>oe(e,i,n,h.UPDATE)}));case c.EDITOR:const A=e=>{"Enter"!==e.key||e.ctrlKey?("Enter"===e.key&&e.ctrlKey||/^F[1-9]|F1[0-2]$/.test(e.key))&&oe(e,i,n,h.UPDATE):e.stopPropagation()};return e(F,Object.assign({},o.data,{textArea:!0,sizing:b.EXTRA_LARGE,label:l.title,fullWidth:!!ce(i),maxLength:o.data.maxLength,value:o.value,onChange:e=>{oe(e,i,n,h.UPDATE)},onInput:e=>{var a,t;null===(t=null===(a=o.data)||void 0===a?void 0:a.onInput)||void 0===t||t.call(a,e),oe(e,i,n,h.INPUT)},onBlur:e=>oe(e,i,n,h.BLUR),onKeyDown:A}));case c.FILE_UPLOAD:return e("kup-file-upload",Object.assign({},o.data));case c.MULTI_AUTOCOMPLETE:return e("kup-chip",Object.assign({displayMode:null!==(r=o.data.displayMode)&&void 0!==r?r:v.DESCRIPTION},o.data,{label:null!==(u=null===(s=o.slotData)||void 0===s?void 0:s.label)&&void 0!==u?u:"",type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>oe(e,i,n,h.UPDATE)}),e("kup-autocomplete",{class:"kup-full-width",slot:"field",displayMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-autocomplete-blur":e=>oe(e,i,n,h.BLUR),"onkup-autocomplete-input":e=>oe(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>oe(e,i,n,h.ICON_CLICK),data:null===(k=o.slotData)||void 0===k?void 0:k.data,initialValue:null===(f=o.slotData)||void 0===f?void 0:f.initialValue,showDropDownIcon:null===(m=o.slotData)||void 0===m?void 0:m.showDropDownIcon,style:null===(g=o.slotData)||void 0===g?void 0:g.style,disabled:null===(j=o.slotData)||void 0===j?void 0:j.disabled,id:null===(O=o.slotData)||void 0===O?void 0:O.id,error:o.data.error,showMarker:null!==(x=o.tooltip)&&void 0!==x&&x,listDisplayMode:o.data.listDisplayMode}));case c.MULTI_COMBOBOX:return e("kup-chip",Object.assign({displayMode:null!==(y=o.data.displayMode)&&void 0!==y?y:v.DESCRIPTION},o.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>oe(e,i,n,h.UPDATE)}),e("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",displayMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-combobox-blur":e=>oe(e,i,n,h.BLUR),"onkup-combobox-input":e=>oe(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>oe(e,i,n,h.ICON_CLICK)},o.slotData,{error:o.data.error,showMarker:null!==(C=o.tooltip)&&void 0!==C&&C})));case c.RADIO:return e(E,Object.assign({},o.data,{disabled:!1,onChange:(e,a)=>{const t=o.data.data;for(let n=0;n<t.length;n++){t[n].checked=n===e}oe(a,i,n,h.UPDATE)},onBlur:e=>oe(e,i,n,h.BLUR)}));case c.RATING:return e("kup-rating",Object.assign({key:l.name+i.row.id},o.data,{disabled:!1,"onkup-rating-click":e=>oe(e,i,n,h.UPDATE)}));case c.SWITCH:return e(D,Object.assign({},o.data,{disabled:!1,onChange:e=>oe(e,i,n,h.UPDATE),onBlur:e=>oe(e,i,n,h.BLUR)}));case c.TIME:return e("kup-time-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:ce(i)?"kup-full-width":"","onkup-timepicker-change":e=>oe(e,i,n,h.UPDATE),"onkup-timepicker-input":e=>oe(e,i,n,h.INPUT),"onKup-timepicker-blur":e=>oe(e,i,n,h.BLUR)}));case c.OBJECT:return e($,{cell:o,column:i.column,row:i.row,inputValue:o.value,onChange:e=>oe(e,i,n,h.UPDATE)});case c.NUMBER:a[t.C_RIGHT_ALIGNED]=!0;case c.LINK:case c.MEMO:case c.STRING:const z=e=>oe(e,i,n,h.UPDATE),N=e=>{var a,t;null===(t=null===(a=o.data)||void 0===a?void 0:a.onInput)||void 0===t||t.call(a,e),oe(e,i,n,h.INPUT)},R=e=>{var a,t,l;null===(t=null===(a=o.data)||void 0===a?void 0:a.onKeyDown)||void 0===t||t.call(a,e);const r="MEMO"===o.shape||(null===(l=o.data)||void 0===l?void 0:l.maxLength)>=256||n===c.MEMO,s="Enter"===e.key&&e.ctrlKey;r&&"Enter"===e.key&&!e.ctrlKey?e.stopPropagation():(s||/^F[1-9]|F1[0-2]$/.test(e.key))&&oe(e,i,n,h.UPDATE)},L=n===c.NUMBER?"number":null;if(o.shape===d.INPUT_FIELD){const a=n===c.NUMBER&&o.value?p(l,o):o.value;return e("input",{class:"input-field",onChange:z,onInput:N,onKeyDown:R,type:L,value:a,maxLength:null!==(B=null===(I=l.cellData)||void 0===I?void 0:I.maxLength)&&void 0!==B?B:-1})}{const a=!!o.shape&&o.shape===d.MEMO||!!n&&n===c.MEMO;return e(F,Object.assign({},o.data,{textArea:a,sizing:o.data.sizing?o.data.sizing:a?b.EXTRA_LARGE:b.SMALL,inputType:L,fullWidth:!!ce(i),maxLength:n==c.NUMBER&&(i.column.decimals&&i.column.decimals>0||i.column.group)||i.column.integers&&i.column.integers>0?-1:o.data.maxLength,icon:o.data&&o.data.icon?o.data.icon:o.icon?o.icon:l.icon?l.icon:null,decimals:i.column.decimals,integers:i.column.integers,group:i.column.group,value:o.value,label:l.title,onChange:z,onInput:N,onKeyDown:R,onIconClick:e=>oe(e,i,n,h.ICON_CLICK),onBlur:e=>oe(e,i,n,h.BLUR)}))}}}(V,U,I,A,n)):I.data&&o.includes(V)?(n.setSizes&&function(e,n,a){switch(e){case c.BAR:n.sizeY||(n.sizeY="26px");break;case c.BUTTON:let e="";n.label&&(e="36px"),a.style?a.style.height||(a.style.minHeight=e):a.style={minHeight:e};break;case c.CHART:n.sizeX||(n.sizeX="100%"),n.sizeY||(n.sizeY="100%");break;case c.CHIP:a.style?a.style.height||(a.style.minHeight="18px"):a.style={minHeight:"18px"};break;case c.RADIO:a.style?a.style.height||(a.style.minHeight="40px"):a.style={minHeight:"40px"}}}(V,Y,I),P=n.renderKup?function(n,a,o,l,i,r,s){switch(n){case c.BAR:return o.data?e("div",{style:{height:o.sizeY,width:"100%"}},e(C,Object.assign({},o))):e("kup-image",Object.assign({key:r.name+s.row.id,sizeX:"250px"},o));case c.BUTTON:te(s)&&(a[t.C_CENTERED]=!0);const u=Object.assign({label:l.value,icon:l.icon,placeholderIcon:l.placeholderIcon},o);return e(x,Object.assign({},u,{onClick:e=>oe(e,s,n,h.CLICK)}));case c.BUTTON_LIST:return te(s)&&(a[t.C_CENTERED]=!0),o["data-storage"]={cell:l,row:i,column:r},e("kup-button-list",Object.assign({key:r.name+s.row.id},o));case c.CHART:return te(s)&&(a[t.C_CENTERED]=!0),e("kup-chart",Object.assign({key:r.name+s.row.id},o));case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:case c.CHIP:return e(y,Object.assign({},o));case c.COLOR_PICKER:return e("kup-color-picker",Object.assign({key:r.name+s.row.id},o,{class:ce(s)?"kup-full-width":"",disabled:!0}));case c.GAUGE:return e("kup-gauge",Object.assign({key:r.name+s.row.id,value:T.ketchup.math.numberifySafe(l.value),"width-component":"280px"},o));case c.KNOB:case c.PROGRESS_BAR:return e("kup-progress-bar",Object.assign({key:r.name+s.row.id},o,{value:T.ketchup.math.numberifySafe(l.value)}));case c.RADIO:return te(s)&&(a[t.C_CENTERED]=!0),o.disabled=i.readOnly,e(E,Object.assign({},o));case c.RATING:return e(B,Object.assign({},o,{disabled:!0}));case c.OBJECT:return e(F,Object.assign({icon:"table"},o,{disabled:!0}))}}(V,U,Y,I,z,A,n):e("span",{class:"cell-"+V+" placeholder"})):(n.setSizes&&function(e,n,a,o){var t;switch(e){case c.CHECKBOX:case c.ICON:n.sizeX||(n.sizeX="18px"),n.sizeY||(n.sizeY="18px"),a.style?a.style.height||(a.style.minHeight=n.sizeY):a.style={minHeight:n.sizeY};break;case c.IMAGE:const e=(null===(t=o.cell)||void 0===t?void 0:t.value)||"",l=e.indexOf(".")>-1||e.indexOf("/")>-1||e.indexOf("\\")>-1;o.component.rootElement.tagName!==u.DATA_TABLE||l||(n.sizeX||n.sizeY?(n.sizeX||(n.sizeX="100%",n.wrapperClass="noWidth"),n.sizeY||(n.sizeY="auto")):(n.sizeX="100%",n.sizeY="64px",n.wrapperClass="noWidth")),o.component.rootElement.tagName===u.BOX?(n.sizeY||(n.sizeY="auto"),void 0===n.fit&&(n.fit=!0)):n.sizeX||(n.sizeX="auto"),n.sizeY||(n.sizeY="64px")}}(V,Y,I,n),U[t.INDICATOR_TOPRIGHT]=null!==(O=I.tooltip)&&void 0!==O&&O,P=function(n,a,o,l,i,r,s){switch(n){case c.AUTOCOMPLETE:case c.COMBOBOX:return o&&""!=o?e("div",{class:"f-cell__text"},m(i,o," - ")):o;case c.DATE:case c.DATETIME:case c.TIME:if(o&&""!=o){const n=p(r,i);return e("div",{class:"f-cell__text"},n)}return o;case c.CHECKBOX:return te(s)&&(l[t.C_CENTERED]=!0),e(C,{resource:a.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case c.EDITOR:case c.MEMO:return e("div",{innerHTML:i.value});case c.ICON:case c.IMAGE:return te(s)&&(l[t.C_CENTERED]=!0),a.badgeData&&(l[t.C_PADDED]=!0),e(C,Object.assign({},a));case c.LINK:return e("a",{href:o,target:"_blank"},i.value);case c.NUMBER:if(o&&""!=o){const n=T.ketchup.math.numberifySafe(i.value),a=p(r,i);return n<0&&(l[t.TEXT_DANGER]=!0),te(s)&&(l[t.C_RIGHT_ALIGNED]=!0),e("div",{class:"f-cell__text"},a)}return e("div",{class:"f-cell__text"},o);case c.SWITCH:return te(s)&&(l[t.C_CENTERED]=!0),a.disabled=!0,e(D,Object.assign({},a));case c.LABEL:return e(M,{text:i.value,classes:"f-cell__text"});default:return e("div",{class:"f-cell__text"},i.data.displayMode?m(i,o,"-"):o)}}(V,Y,P,U,I,A,n));let Z=null;!L&&(A.icon||I.icon)&&P&&V!=c.BUTTON&&V!=c.BUTTON_LIST&&V!=c.IMAGE&&V!=c.ICON&&(Z=e(C,Object.assign({},{color:`rgba(var(${l.TEXT}-rgb), 0.375)`,resource:I.icon?I.icon:A.icon,placeholderResource:I.placeholderIcon?I.placeholderIcon:A.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let q=null;T.ketchup.debug.isDebug()&&R?q=I.obj.t+"; "+I.obj.p+"; "+I.obj.k+";":null!=I.title&&""!=I.title.trim()&&(q=I.title);let J=null;if(I.info){const n=Object.assign({},I.info);n.color||(n.color=`var(${l.INFO})`),n.icon||(n.icon="info"),J=e(C,Object.assign({},{color:n.color,resource:n.icon,placeholderResource:n.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",title:n.message?n.message:"",wrapperClass:"cell-info"}))}return e("div",{onKeyUp:e=>oe(e,n,V,h.KEYUP),class:U,"kup-get-cell-props":()=>n,ref:e=>I.element=e,style:I.style},e("div",{class:"f-cell__content",style:I.styleContent,title:q,onMouseEnter:e=>H(e,n,V),onMouseLeave:e=>S(e)},i&&i.length>0?i:[n.indents,J,Z,P]))},H=(e,n,a)=>{var o;if(n.cellActionIcon){const t=e.currentTarget,l=document.createElement("kup-image");l.resource="more_vert",l.sizeX="16px",l.sizeY="16px",l.tabIndex=0,l.className="f-cell__iconfunction "+(a===c.NUMBER?"left":"right"),(null===(o=n.cellActionIcon)||void 0===o?void 0:o.onClick)&&l.addEventListener("click",n.cellActionIcon.onClick),t.appendChild(l)}},S=e=>{const n=e.currentTarget.querySelector("kup-image");n&&n.remove()},X=(e,n)=>{var a;if(!e)return null;const o=e.options,t=(null===(a=e.data)||void 0===a?void 0:a.hasOwnProperty("label"))?e.data.label:n.title,l=e.value,i=T.ketchup.data.cell.getType(e,e.shape),r=new Map([[c.BUTTON_LIST,U.bind(void 0)],[c.STRING,P.bind(void 0)],[c.RADIO,Z.bind(void 0)],[c.AUTOCOMPLETE,q.bind(void 0)],[c.COMBOBOX,q.bind(void 0)],[c.CHECKBOX,W.bind(void 0)],[c.OBJECT,Y.bind(void 0)],[c.CHIP,G.bind(void 0)]]).get(i);return r?r(o,t,l,e):null},G=(e,n,a,o)=>{var t;return(null===(t=o.data)||void 0===t?void 0:t.data)?Object.assign({},o.data):i(o.value,o.decode)},Y=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{data:{initialValue:a||"",label:n||"",value:a||""}}),W=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{checked:"on"===a||"1"===a,label:n}),U=(e,n,a,o)=>({data:[Object.assign(Object.assign({},o.data),{icon:o.icon,placeholderIcon:o.placeholderIcon,value:a})]}),P=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{label:n}),Z=(e,n,a,o)=>{const t=r(a,e);return Object.assign(Object.assign({},o.data),t)},q=(e,n,a,o)=>{var t;if(!(null===(t=o.data)||void 0===t?void 0:t.data)&&e){const o=s(a,n,[]);return o.data["kup-list"].data=J(e,a),o}},J=(e,n)=>{const a=ae.get(e.type);return a?a(e,n):e.map((e=>({value:e.label,id:e.id,selected:n===e.id})))},Q=(e,n)=>e.children.map((e=>{var a;return{id:e.content.codice,value:e.content.testo,selected:n===e.content.codice,children:(null===(a=e.children)||void 0===a?void 0:a.length)?Q(e,n):[]}})),ee=(e,n)=>e.children.map((e=>{var a;return{id:e.obj.k,value:e.value,selected:n===e.obj.k,children:(null===(a=e.children)||void 0===a?void 0:a.length)?ee(e,n):[]}})),ne=(e,n)=>e.rows.map((e=>{var a;const o=e.fields||e.cells,[t,c]=Object.keys(o);return{id:o[t].value,value:(null===(a=o[c])||void 0===a?void 0:a.value)||o[t].value,selected:n===o[t].value}})),ae=new Map([["SmeupTreeNode",Q.bind(void 0)],["SmeupDataTree",ee.bind(void 0)],["SmeupTable",ne.bind(void 0)],["SmeupDataTable",ne.bind(void 0)]]);function oe(e,n,a,o){var t,l,i,r,s,u,d,b;const k=n.cell,v=n.column,f=n.component,m=n.row;if(o===h.UPDATE){let n=function(e,n){var a;let o=e.target.value;return n===c.CHECKBOX&&(o=e.target.checked?"off":"on"),n===c.DATE&&(o=null===(a=e.detail)||void 0===a?void 0:a.value),n===c.NUMBER&&(o=T.ketchup.math.formattedStringToNumberString(o,"")),o}(e,a);switch(g(k)?n=null==n?void 0:n.toUpperCase():j(k)&&(n=null==n?void 0:n.toLowerCase()),a){case c.AUTOCOMPLETE:k.decode=null===(l=null===(t=e.detail)||void 0===t?void 0:t.node)||void 0===l?void 0:l.value,k.data&&(k.data.initialValue=n,k.data.initialValueDecode=null===(r=null===(i=e.detail)||void 0===i?void 0:i.node)||void 0===r?void 0:r.value);break;case c.COMBOBOX:k.decode=null===(u=null===(s=e.detail)||void 0===s?void 0:s.node)||void 0===u?void 0:u.value;case c.DATE:case c.TIME:k.data&&(k.data.initialValue=n);break;case c.CHECKBOX:case c.SWITCH:n="on"===n.toLowerCase()?"0":"1",k.data&&(k.data.checked="0"!==n);break;case c.RADIO:if(k.data.data){const e=k.data.data.find((e=>e.checked));e&&(n=e.value)}break;case c.CHIP:case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:n=e.detail.stringifiedValues,k.data&&(k.data.data=e.detail.comp.data)}k.obj&&(k.obj.k=null==n?void 0:n.toString()),k.value=null==n?void 0:n.toString(),k.displayedValue=null,k.displayedValue=p(v,k)}if(f&&f.rootElement){const n=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:f,id:f.rootElement.id,cell:k,column:v,event:e,row:m,type:a,inputValue:(null===(b=null===(d=k.element)||void 0===d?void 0:d.querySelector("input"))||void 0===b?void 0:b.value)||null}});if(f.rootElement.dispatchEvent(n),o===h.UPDATE)try{f.refresh()}catch(e){T.ketchup.debug.logMessage(f,e,O.ERROR)}}}function te(e){var n;return f.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}function ce(e){var n;return k.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}export{V as F,E as a,B as b,A as c,D as d,M as e}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,f as e,h as n,F as a,H as o,d as f}from"./p-710d0a7d.js";import{k as p,g as h,s,h as r}from"./p-fb4f10d5.js";import{c as l}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var c;!function(t){t.data="Data of the component containing url or html"}(c||(c={}));var m,g,u,k=function(t,i,e,n){if("a"===e&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!n:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?n:"a"===e?n.call(t):n?n.value:i.get(t)};const d=class{constructor(e){t(this,e),this.kupReady=i(this,"kup-htm-ready",6),m.add(this),g.set(this,p()),this.data=void 0}async getProps(t){return h(this,c,t)}async refresh(){e(this)}async setProps(t){s(this,c,t)}componentWillLoad(){k(this,g,"f").debug.logLoad(this,!1),k(this,g,"f").theme.register(this),k(this,g,"f").language.register(this)}componentDidLoad(){this.kupReady.emit({comp:this,id:this.rootElement.id}),k(this,g,"f").debug.logLoad(this,!0)}componentWillRender(){k(this,g,"f").debug.logRender(this,!1)}componentDidRender(){k(this,g,"f").debug.logRender(this,!0)}render(){var t;const i=k(this,m,"m",u).call(this,null===(t=null==this?void 0:this.data)||void 0===t?void 0:t.obj);return n(o,{key:"5a79767bda05f81fbfa3b44c06592ce9d338c859"},n("style",{key:"4977d1d9a029a0669695ac206ecbd306b467cf21"},k(this,g,"f").theme.setKupStyle(this.rootElement)),n("div",{key:"f8e7cdc3e1992853c090f3204fed1a0de76b904b",id:l},n("div",{key:"0c6724dc5d6c2b8f53ca7573424aab59adbcf6a4",class:"kup-htm "+(i?"is-link":"")},i?n(a,null,n("a",{href:this.data.value,target:"_blank",rel:"noopener noreferrer"},k(this,g,"f").language.translate(r.OPEN_IN_NEW_TAB)),n("iframe",{src:this.data.value,frameBorder:"0"})):n("div",{innerHTML:this.data.value}))))}disconnectedCallback(){k(this,g,"f").theme.unregister(this),k(this,g,"f").language.unregister(this)}get rootElement(){return f(this)}};g=new WeakMap,m=new WeakSet,u=function(t){return k(this,g,"f").objects.isLink(t)||k(this,g,"f").objects.isJ1Pathfile(t)},d.style=".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:var(--kup-label-01-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:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-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{height:100%;width:100%;display:block}#kup-component{height:100%}#kup-component .kup-htm.is-link{height:100%}#kup-component .kup-htm.is-link a{float:left}#kup-component .kup-htm.is-link iframe{min-height:600px;width:100%}";export{d as kup_htm}
|