@sme.up/ketchup 9.6.4 → 9.6.5
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/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
- package/dist/cjs/{f-button-89de2403.js → f-button-23ec3db5.js} +1 -1
- package/dist/cjs/{f-cell-75dbd6eb.js → f-cell-bcc51c0f.js} +5 -5
- package/dist/cjs/{f-chip-08857345.js → f-chip-63363ecf.js} +2 -2
- package/dist/cjs/{f-image-a41d7f1e.js → f-image-f3944c01.js} +2 -5
- package/dist/cjs/{f-paginator-utils-ff07301e.js → f-paginator-utils-60e05759.js} +2 -2
- package/dist/cjs/{f-text-field-eb207a83.js → f-text-field-354b6c78.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 +2 -2
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +46 -46
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +253 -37
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-gantt_10.cjs.entry.js +104 -38
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +20 -13
- package/dist/cjs/kup-input-panel.cjs.entry.js +199 -53
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-abfe4ddd.js → kup-manager-e1bfd4f8.js} +647 -120
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
- package/dist/cjs/{kup-planner-renderer-helper-9f776d6e.js → kup-planner-renderer-helper-f001fad7.js} +55 -7
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +43 -10
- package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
- package/dist/cjs/kup-planner.cjs.entry.js +80 -8
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/image-list.js +332 -2
- package/dist/collection/assets/input-panel.js +307 -76
- package/dist/collection/assets/planner-example-5.js +19 -7
- package/dist/collection/assets/planner-example-6.js +3 -0
- package/dist/collection/assets/planner.js +4 -3
- package/dist/collection/components/kup-badge/kup-badge.css +4 -4
- package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +38 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +69 -28
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +206 -59
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
- package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
- package/dist/collection/components/kup-planner/kup-planner.js +191 -5
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +2 -5
- package/dist/components/_commonjsHelpers.js +26 -0
- package/dist/components/custom-task-list-table.js +58 -13
- package/dist/components/kup-autocomplete2.js +43 -45
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-dates.js +2 -25
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +31 -1
- package/dist/components/kup-gantt2.js +26 -7
- package/dist/components/kup-grid-renderer2.js +219 -81
- package/dist/components/kup-horizontal-scroll2.js +48 -10
- package/dist/components/kup-image-list.js +14 -7
- package/dist/components/kup-input-panel.js +192 -46
- package/dist/components/kup-manager.js +649 -121
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-planner-declarations.js +91 -0
- package/dist/components/kup-planner-renderer2.js +42 -9
- package/dist/components/kup-planner.js +86 -6
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +19 -7
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +434 -84
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/components/other.helpers.js +47 -0
- package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
- package/dist/esm/{f-button-1eebd42e.js → f-button-d6dbcfd6.js} +1 -1
- package/dist/esm/{f-cell-af19d5c7.js → f-cell-7b41415c.js} +5 -5
- package/dist/esm/{f-chip-9e5fdb25.js → f-chip-68d27d7a.js} +2 -2
- package/dist/esm/{f-image-1e1ed567.js → f-image-a67229e5.js} +2 -5
- package/dist/esm/{f-paginator-utils-dede029b.js → f-paginator-utils-8773e358.js} +2 -2
- package/dist/esm/{f-text-field-802b45fb.js → f-text-field-d364ffd2.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_27.entry.js +46 -46
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-custom-task-list-header_4.entry.js +253 -37
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-gantt_10.entry.js +105 -39
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +20 -13
- package/dist/esm/kup-input-panel.entry.js +199 -53
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-dd24fb5a.js → kup-manager-a316a70e.js} +647 -120
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
- package/dist/esm/{kup-planner-renderer-helper-b4727e44.js → kup-planner-renderer-helper-a2ec9a1c.js} +56 -7
- package/dist/esm/kup-planner-renderer.entry.js +43 -10
- package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
- package/dist/esm/kup-planner.entry.js +80 -8
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- 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-008bdcdc.js +1 -0
- package/dist/ketchup/p-042e874a.entry.js +1 -0
- package/dist/ketchup/{p-b3b50bb5.entry.js → p-074ccd53.entry.js} +1 -1
- package/dist/ketchup/{p-26d42b88.entry.js → p-1088ab22.entry.js} +1 -1
- package/dist/ketchup/{p-201f8d7b.entry.js → p-1bcac01f.entry.js} +1 -1
- package/dist/ketchup/{p-3b544027.entry.js → p-1e028d95.entry.js} +1 -1
- package/dist/ketchup/p-25058baa.js +1 -0
- package/dist/ketchup/{p-dcf7e9b6.entry.js → p-2932e7e8.entry.js} +1 -1
- package/dist/ketchup/{p-b238cde7.entry.js → p-2b84db7b.entry.js} +1 -1
- package/dist/ketchup/{p-f998ff28.entry.js → p-2ef90f60.entry.js} +1 -1
- package/dist/ketchup/{p-8fcdf454.js → p-339bbeae.js} +1 -1
- package/dist/ketchup/{p-cd7fec02.entry.js → p-48e45ac0.entry.js} +1 -1
- package/dist/ketchup/p-53af4c87.js +1 -0
- package/dist/ketchup/{p-6972fa0c.entry.js → p-556f7ddc.entry.js} +1 -1
- package/dist/ketchup/{p-e7507dd6.entry.js → p-5f7d8c21.entry.js} +1 -1
- package/dist/ketchup/{p-e0e47ca9.entry.js → p-6362738c.entry.js} +1 -1
- package/dist/ketchup/{p-a2e14d8b.entry.js → p-65e363c6.entry.js} +1 -1
- package/dist/ketchup/p-6921bc81.entry.js +16 -0
- package/dist/ketchup/p-6961e0ce.entry.js +1 -0
- package/dist/ketchup/p-7123d2a4.entry.js +1 -0
- package/dist/ketchup/{p-6c888179.js → p-801776bc.js} +1 -1
- package/dist/ketchup/{p-4f69f6f9.entry.js → p-81645576.entry.js} +1 -1
- package/dist/ketchup/p-838dea62.js +1 -0
- package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
- package/dist/ketchup/{p-8229b97a.js → p-8d4050ec.js} +4 -4
- package/dist/ketchup/{p-79f4dc5b.entry.js → p-9e2533e1.entry.js} +1 -1
- package/dist/ketchup/{p-158076de.entry.js → p-a06974a3.entry.js} +1 -1
- package/dist/ketchup/p-a6beb822.js +1 -0
- package/dist/ketchup/p-abe181d0.entry.js +1 -0
- package/dist/ketchup/{p-61e8d573.js → p-b3540f83.js} +1 -1
- package/dist/ketchup/{p-19a13672.entry.js → p-c702eb45.entry.js} +1 -1
- package/dist/ketchup/{p-2e04042b.entry.js → p-ccb6dbb0.entry.js} +1 -1
- package/dist/ketchup/{p-a2e691b8.entry.js → p-cf44485a.entry.js} +2 -2
- package/dist/ketchup/{p-8f3d400a.entry.js → p-d2001dec.entry.js} +1 -1
- package/dist/ketchup/{p-34d70475.entry.js → p-dbb6cd8d.entry.js} +1 -1
- package/dist/ketchup/{p-2d4a9235.js → p-f6c8f006.js} +1 -1
- package/dist/ketchup/{p-43ce397b.entry.js → p-f79ffe77.entry.js} +1 -1
- package/dist/ketchup/{p-489af77f.entry.js → p-fdcfaedd.entry.js} +1 -1
- package/dist/ketchup/p-fe75ede2.entry.js +1 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +9 -7
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +4 -4
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
- package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
- package/dist/types/components.d.ts +122 -16
- package/package.json +1 -1
- package/dist/components/kup-planner-renderer-helper.js +0 -379
- package/dist/ketchup/p-14943de9.entry.js +0 -1
- package/dist/ketchup/p-180cd7ab.entry.js +0 -1
- package/dist/ketchup/p-636be6f1.entry.js +0 -16
- package/dist/ketchup/p-63c141d9.entry.js +0 -1
- package/dist/ketchup/p-818e61d5.entry.js +0 -1
- package/dist/ketchup/p-8e3b6de8.js +0 -1
- package/dist/ketchup/p-a46f99d4.js +0 -1
- package/dist/ketchup/p-c0f660d6.js +0 -1
- package/dist/ketchup/p-e4c63684.js +0 -1
- package/dist/ketchup/p-e841c2ae.js +0 -1
- package/dist/ketchup/p-f9a7c21c.entry.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { F as FButton } from './f-button-d6dbcfd6.js';
|
|
3
|
+
import { F as FCell } from './f-cell-7b41415c.js';
|
|
4
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, a3 as FCellTypes } from './kup-manager-a316a70e.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
|
|
6
|
-
import {
|
|
7
|
-
import './kup-dates-26a56bf7.js';
|
|
6
|
+
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
8
7
|
import './f-button-declarations-9bdc6f26.js';
|
|
9
|
-
import './f-image-
|
|
10
|
-
import './component-879e99bf.js';
|
|
8
|
+
import './f-image-a67229e5.js';
|
|
11
9
|
import './f-checkbox-ddb6234e.js';
|
|
12
|
-
import './f-text-field-
|
|
13
|
-
import './f-chip-
|
|
10
|
+
import './f-text-field-d364ffd2.js';
|
|
11
|
+
import './f-chip-68d27d7a.js';
|
|
12
|
+
import './kup-dates-26a56bf7.js';
|
|
13
|
+
import './component-879e99bf.js';
|
|
14
14
|
|
|
15
15
|
var KupInputPanelProps;
|
|
16
16
|
(function (KupInputPanelProps) {
|
|
@@ -18,10 +18,10 @@ var KupInputPanelProps;
|
|
|
18
18
|
KupInputPanelProps["data"] = "Actual data of the input panel.";
|
|
19
19
|
KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
|
|
20
20
|
KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
|
|
21
|
-
KupInputPanelProps["
|
|
21
|
+
KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
|
|
22
22
|
})(KupInputPanelProps || (KupInputPanelProps = {}));
|
|
23
23
|
|
|
24
|
-
const kupInputPanelCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);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}.input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}";
|
|
24
|
+
const kupInputPanelCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);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_input_panel_background_color:var(--kup-input-panel-background-color,\n var(--kup-background-color));--kup_input_panel_color:var(--kup-input-panel-color, var(--kup-text-color));--kup_input_panel_font_family:var(--kup-input-panel-font-family, var(--kup-font-family));--kup_input_panel_font_size:var(--kup-input-panel-font-size, var(--kup-font-size));--kup_input_panel_label_alignment:var(--kup-input-panel-label-alignment);--kup_input_panel_label_width:var(--kup-input-panel-label-width);--kup_input_panel_padding:var(--kup-input-panel-padding, 1em 0)}:host .input-panel{background:var(--kup_input_panel_background_color);color:var(--kup_input_panel_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_input_panel_padding);position:relative}:host .input-panel--column{flex-direction:column}:host .input-panel__section{display:grid}:host .input-panel__horizontal-section{display:inline-grid}:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}";
|
|
25
25
|
const KupInputPanelStyle0 = kupInputPanelCss;
|
|
26
26
|
|
|
27
27
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -31,7 +31,16 @@ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) ||
|
|
|
31
31
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
32
32
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
33
33
|
};
|
|
34
|
-
var
|
|
34
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
35
|
+
if (kind === "m")
|
|
36
|
+
throw new TypeError("Private method is not writable");
|
|
37
|
+
if (kind === "a" && !f)
|
|
38
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
39
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
40
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
41
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
42
|
+
};
|
|
43
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderSection, _KupInputPanel_renderField, _KupInputPanel_mapCells, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_tableOptionsAdapter;
|
|
35
44
|
const dom = document.documentElement;
|
|
36
45
|
const KupInputPanel = class {
|
|
37
46
|
constructor(hostRef) {
|
|
@@ -44,11 +53,16 @@ const KupInputPanel = class {
|
|
|
44
53
|
/* I n t e r n a l V a r i a b l e s */
|
|
45
54
|
/*-------------------------------------------------*/
|
|
46
55
|
_KupInputPanel_kupManager.set(this, kupManagerInstance());
|
|
56
|
+
_KupInputPanel_optionsAdapterMap.set(this, new Map([
|
|
57
|
+
['SmeupTree', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_treeOptionsNodeAdapter).bind(this)],
|
|
58
|
+
['SmeupTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_tableOptionsAdapter).bind(this)],
|
|
59
|
+
]));
|
|
60
|
+
_KupInputPanel_originalData.set(this, null);
|
|
47
61
|
this.customStyle = '';
|
|
48
62
|
this.data = null;
|
|
49
63
|
this.hiddenSubmitButton = false;
|
|
50
64
|
this.submitCb = null;
|
|
51
|
-
this.
|
|
65
|
+
this.optionsHandler = null;
|
|
52
66
|
this.inputPanelCells = [];
|
|
53
67
|
}
|
|
54
68
|
//#endregion
|
|
@@ -57,6 +71,9 @@ const KupInputPanel = class {
|
|
|
57
71
|
/* W a t c h e r s */
|
|
58
72
|
/*-------------------------------------------------*/
|
|
59
73
|
onDataChanged() {
|
|
74
|
+
if (!__classPrivateFieldGet(this, _KupInputPanel_originalData, "f")) {
|
|
75
|
+
__classPrivateFieldSet(this, _KupInputPanel_originalData, structuredClone(this.data), "f");
|
|
76
|
+
}
|
|
60
77
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
61
78
|
}
|
|
62
79
|
//#endregion
|
|
@@ -99,18 +116,22 @@ const KupInputPanel = class {
|
|
|
99
116
|
componentDidLoad() {
|
|
100
117
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
101
118
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
|
|
102
|
-
this.handleEventsCallbacks.map((cbData) => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
119
|
+
// this.handleEventsCallbacks.map((cbData) => {
|
|
120
|
+
// this.rootElement.addEventListener(cbData.eventName, (e: any) => {
|
|
121
|
+
// const inputPanelEvent: InputPanelEvent = {
|
|
122
|
+
// state: this.inputPanelCells.find((data) =>
|
|
123
|
+
// data.cells.find(
|
|
124
|
+
// (cell) => cell.column.name === e.detail.id
|
|
125
|
+
// )
|
|
126
|
+
// ).cells,
|
|
127
|
+
// data: {
|
|
128
|
+
// field: e.detail.id,
|
|
129
|
+
// value: e.detail.inputValue || e.detail.value,
|
|
130
|
+
// },
|
|
131
|
+
// };
|
|
132
|
+
// cbData.eventCallback(inputPanelEvent);
|
|
133
|
+
// });
|
|
134
|
+
// });
|
|
114
135
|
}
|
|
115
136
|
componentWillRender() {
|
|
116
137
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, false);
|
|
@@ -132,7 +153,7 @@ const KupInputPanel = class {
|
|
|
132
153
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
133
154
|
]
|
|
134
155
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
135
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: 'fb64cbdffc9e56a3318eaef42d7b71e815d21f58' }, h("style", { key: 'e3501f7c56bbb5058dd99c727b2813411b45e519' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '06eb5a7b6822a9518d9d7ff75652df91f69fbd74', id: componentWrapperId }, inputPanelContent)));
|
|
136
157
|
}
|
|
137
158
|
disconnectedCallback() {
|
|
138
159
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -143,18 +164,29 @@ const KupInputPanel = class {
|
|
|
143
164
|
"data": ["onDataChanged"]
|
|
144
165
|
}; }
|
|
145
166
|
};
|
|
146
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
167
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
147
168
|
var _a;
|
|
148
|
-
|
|
149
|
-
const horizontal = (
|
|
150
|
-
|
|
169
|
+
const layout = inputPanelCell.row.layout;
|
|
170
|
+
const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
|
|
171
|
+
let rowContent;
|
|
172
|
+
if (!((_a = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
173
|
+
rowContent = inputPanelCell.cells.map((cell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, cell.cell, inputPanelCell.row, cell.column));
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
rowContent = layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, inputPanelCell, section));
|
|
177
|
+
}
|
|
151
178
|
const classObj = {
|
|
152
|
-
form: true,
|
|
153
179
|
'input-panel': true,
|
|
154
|
-
'
|
|
180
|
+
'input-panel--column': !horizontal,
|
|
155
181
|
};
|
|
156
182
|
// We create a form for each row in data
|
|
157
|
-
return (h("form", { class: classObj, name: this.rootElement.id, onSubmit:
|
|
183
|
+
return (h("form", { class: classObj, name: this.rootElement.id, onSubmit: (e) => {
|
|
184
|
+
e.preventDefault();
|
|
185
|
+
this.submitCb({
|
|
186
|
+
before: Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_originalData, "f")),
|
|
187
|
+
after: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
188
|
+
});
|
|
189
|
+
} }, rowContent, !this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
|
|
158
190
|
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
159
191
|
const cellProps = {
|
|
160
192
|
cell,
|
|
@@ -166,6 +198,52 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
166
198
|
setSizes: true,
|
|
167
199
|
};
|
|
168
200
|
return h(FCell, Object.assign({}, cellProps));
|
|
201
|
+
}, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section) {
|
|
202
|
+
var _a, _b, _c, _d;
|
|
203
|
+
let content = [];
|
|
204
|
+
if ((_a = section.sections) === null || _a === void 0 ? void 0 : _a.length) {
|
|
205
|
+
content = section.sections.map((innerSection) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, cells, innerSection));
|
|
206
|
+
}
|
|
207
|
+
else if ((_b = section.content) === null || _b === void 0 ? void 0 : _b.length) {
|
|
208
|
+
content = section.content.map((field) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderField).call(this, cells, field));
|
|
209
|
+
}
|
|
210
|
+
const classObj = {
|
|
211
|
+
'input-panel__section': !section.horizontal,
|
|
212
|
+
'input-panel__horizontal-section': section.horizontal,
|
|
213
|
+
};
|
|
214
|
+
const styleObj = {
|
|
215
|
+
gap: section.gap ? `${section.gap}rem` : '',
|
|
216
|
+
'grid-template-columns': section.gridCols
|
|
217
|
+
? `repeat(${section.gridCols}, 1fr)`
|
|
218
|
+
: '',
|
|
219
|
+
'grid-template-rows': section.gridRows
|
|
220
|
+
? `repeat(${section.gridRows}, 1fr)`
|
|
221
|
+
: '',
|
|
222
|
+
};
|
|
223
|
+
if ((_d = (_c = cells.row) === null || _c === void 0 ? void 0 : _c.layout) === null || _d === void 0 ? void 0 : _d.horizontal) {
|
|
224
|
+
styleObj.maxWidth = section.dim;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
styleObj.maxHeight = section.dim;
|
|
228
|
+
}
|
|
229
|
+
return (h("div", { class: classObj, style: styleObj }, content));
|
|
230
|
+
}, _KupInputPanel_renderField = function _KupInputPanel_renderField(cells, field) {
|
|
231
|
+
const fieldCell = cells.cells.find((cell) => cell.column.name === field.id);
|
|
232
|
+
const colStart = field.colSpan
|
|
233
|
+
? `span ${field.colSpan}`
|
|
234
|
+
: `${field.colStart}`;
|
|
235
|
+
const colEnd = field.colEnd ? `${field.colEnd}` : '';
|
|
236
|
+
const rowStart = field.rowSpan
|
|
237
|
+
? `span ${field.rowSpan}`
|
|
238
|
+
: `${field.rowStart}`;
|
|
239
|
+
const rowEnd = field.rowEnd ? `${field.rowEnd}` : '';
|
|
240
|
+
const styleObj = {
|
|
241
|
+
'grid-column-start': colStart,
|
|
242
|
+
'grid-column-end': colEnd,
|
|
243
|
+
'grid-row-start': rowStart,
|
|
244
|
+
'grid-row-end': rowEnd,
|
|
245
|
+
};
|
|
246
|
+
return (h("div", { style: styleObj }, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, fieldCell.cell, cells.row, fieldCell.column)));
|
|
169
247
|
}, _KupInputPanel_mapCells = function _KupInputPanel_mapCells(data) {
|
|
170
248
|
var _a;
|
|
171
249
|
const inpuPanelCells = ((_a = data === null || data === void 0 ? void 0 : data.rows) === null || _a === void 0 ? void 0 : _a.length)
|
|
@@ -173,7 +251,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
173
251
|
const cells = data.columns
|
|
174
252
|
.filter((column) => column.visible)
|
|
175
253
|
.map((column) => {
|
|
176
|
-
const cell = row.cells[column.name];
|
|
254
|
+
const cell = structuredClone(row.cells[column.name]);
|
|
177
255
|
const mappedCell = Object.assign(Object.assign({}, cell), { data: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column)), { id: column.name }), slotData: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_slotData).call(this, cell, column), isEditable: cell.editable });
|
|
178
256
|
return { column, cell: mappedCell };
|
|
179
257
|
});
|
|
@@ -181,24 +259,49 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
181
259
|
}, [])
|
|
182
260
|
: [];
|
|
183
261
|
this.inputPanelCells = inpuPanelCells;
|
|
262
|
+
}, _KupInputPanel_reverseMapCells = function _KupInputPanel_reverseMapCells() {
|
|
263
|
+
return this.inputPanelCells.reduce((data, curr) => {
|
|
264
|
+
const updatedCells = Object.keys(curr.row.cells).reduce((cells, key) => {
|
|
265
|
+
const cellState = curr.cells.find((c) => c.column.name === key).cell;
|
|
266
|
+
return Object.assign(Object.assign({}, cells), { [key]: Object.assign(Object.assign({}, curr.row.cells[key]), { value: cellState.value, obj: cellState.obj }) });
|
|
267
|
+
}, {});
|
|
268
|
+
return {
|
|
269
|
+
columns: [
|
|
270
|
+
...data.columns,
|
|
271
|
+
...curr.cells.map((cell) => cell.column),
|
|
272
|
+
],
|
|
273
|
+
rows: [
|
|
274
|
+
...data.rows,
|
|
275
|
+
{
|
|
276
|
+
cells: updatedCells,
|
|
277
|
+
layout: curr.row.layout,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
};
|
|
281
|
+
}, {
|
|
282
|
+
columns: [],
|
|
283
|
+
rows: [],
|
|
284
|
+
});
|
|
184
285
|
}, _KupInputPanel_mapData = function _KupInputPanel_mapData(cell, col) {
|
|
185
286
|
const options = cell.options;
|
|
186
287
|
const fieldLabel = col.title;
|
|
187
288
|
const currentValue = cell.value;
|
|
188
289
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
189
290
|
const dataAdapterMap = new Map([
|
|
190
|
-
[FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
|
|
191
|
-
[FCellTypes.BUTTON_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter)],
|
|
192
|
-
[FCellTypes.CHART, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_GRAAdapter)],
|
|
193
|
-
[FCellTypes.CHIP, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHIAdapter)],
|
|
194
|
-
[FCellTypes.CHECKBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHKAdapter)],
|
|
195
|
-
[FCellTypes.COLOR_PICKER, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CLPAdapter)],
|
|
196
|
-
[FCellTypes.COMBOBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
|
|
197
|
-
[FCellTypes.RADIO, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_RADAdapter)],
|
|
198
|
-
[FCellTypes.STRING, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ITXAdapter)],
|
|
291
|
+
[FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).bind(this)],
|
|
292
|
+
[FCellTypes.BUTTON_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter).bind(this)],
|
|
293
|
+
[FCellTypes.CHART, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_GRAAdapter).bind(this)],
|
|
294
|
+
[FCellTypes.CHIP, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHIAdapter).bind(this)],
|
|
295
|
+
[FCellTypes.CHECKBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHKAdapter).bind(this)],
|
|
296
|
+
[FCellTypes.COLOR_PICKER, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CLPAdapter).bind(this)],
|
|
297
|
+
[FCellTypes.COMBOBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).bind(this)],
|
|
298
|
+
[FCellTypes.RADIO, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_RADAdapter).bind(this)],
|
|
299
|
+
[FCellTypes.STRING, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ITXAdapter).bind(this)],
|
|
199
300
|
]);
|
|
200
301
|
const adapter = dataAdapterMap.get(cellType);
|
|
201
|
-
return adapter
|
|
302
|
+
return adapter
|
|
303
|
+
? adapter(options, fieldLabel, currentValue, cell.fun)
|
|
304
|
+
: null;
|
|
202
305
|
}, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
|
|
203
306
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
204
307
|
if (cellType !== FCellTypes.CHIP &&
|
|
@@ -244,8 +347,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
244
347
|
{ data: { dropdownOnly: false, label: 'Valerio' } },
|
|
245
348
|
],
|
|
246
349
|
};
|
|
247
|
-
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(
|
|
248
|
-
|
|
350
|
+
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(rawOptions, fieldLabel, currentValue, fun) {
|
|
351
|
+
const configCMandACP = {
|
|
249
352
|
data: {
|
|
250
353
|
'kup-text-field': {
|
|
251
354
|
trailingIcon: true,
|
|
@@ -254,17 +357,24 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
254
357
|
},
|
|
255
358
|
'kup-list': {
|
|
256
359
|
showIcons: true,
|
|
257
|
-
data:
|
|
258
|
-
? options.map((option) => ({
|
|
259
|
-
value: option.label,
|
|
260
|
-
id: option.id,
|
|
261
|
-
selected: currentValue === option.id,
|
|
262
|
-
}))
|
|
263
|
-
: [],
|
|
360
|
+
data: [],
|
|
264
361
|
},
|
|
265
362
|
},
|
|
266
363
|
label: fieldLabel,
|
|
267
364
|
};
|
|
365
|
+
const options = fun ? this.optionsHandler(fun) : rawOptions;
|
|
366
|
+
if (options instanceof Promise) {
|
|
367
|
+
options.then((data) => {
|
|
368
|
+
var _a;
|
|
369
|
+
return (configCMandACP.data['kup-list'].data =
|
|
370
|
+
(_a = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, data, currentValue)) !== null && _a !== void 0 ? _a : []);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
else if (options) {
|
|
374
|
+
configCMandACP.data['kup-list'].data =
|
|
375
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, options, currentValue);
|
|
376
|
+
}
|
|
377
|
+
return configCMandACP;
|
|
268
378
|
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue) {
|
|
269
379
|
return {
|
|
270
380
|
checked: currentValue === 'on' || currentValue === '1',
|
|
@@ -288,6 +398,42 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSe
|
|
|
288
398
|
checked: option.id === currentValue,
|
|
289
399
|
})),
|
|
290
400
|
};
|
|
401
|
+
}, _KupInputPanel_optionsTreeComboAdapter = function _KupInputPanel_optionsTreeComboAdapter(options, currentValue) {
|
|
402
|
+
const adapter = __classPrivateFieldGet(this, _KupInputPanel_optionsAdapterMap, "f").get(options.type);
|
|
403
|
+
if (adapter) {
|
|
404
|
+
return adapter(options, currentValue);
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
return options.map((option) => ({
|
|
408
|
+
value: option.label,
|
|
409
|
+
id: option.id,
|
|
410
|
+
selected: currentValue === option.id,
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
}, _KupInputPanel_treeOptionsNodeAdapter = function _KupInputPanel_treeOptionsNodeAdapter(options, currentValue) {
|
|
414
|
+
return options.children.map((child) => {
|
|
415
|
+
var _a;
|
|
416
|
+
return ({
|
|
417
|
+
id: child.content.codice,
|
|
418
|
+
value: child.content.testo,
|
|
419
|
+
selected: currentValue === child.content.codice,
|
|
420
|
+
children: ((_a = child.children) === null || _a === void 0 ? void 0 : _a.length)
|
|
421
|
+
? __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_treeOptionsNodeAdapter).call(this, child, currentValue)
|
|
422
|
+
: [],
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
}, _KupInputPanel_tableOptionsAdapter = function _KupInputPanel_tableOptionsAdapter(options, currentValue) {
|
|
426
|
+
return options.rows
|
|
427
|
+
.filter((row) => row.fields)
|
|
428
|
+
.map(({ fields }) => {
|
|
429
|
+
const keys = Object.keys(fields);
|
|
430
|
+
return keys.map((key) => ({
|
|
431
|
+
id: fields[key].smeupObject.codice,
|
|
432
|
+
value: fields[key].smeupObject.testo,
|
|
433
|
+
selected: currentValue === fields[key].smeupObject.codice,
|
|
434
|
+
}));
|
|
435
|
+
})
|
|
436
|
+
.flat();
|
|
291
437
|
};
|
|
292
438
|
KupInputPanel.style = KupInputPanelStyle0;
|
|
293
439
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-a316a70e.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-26a56bf7.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as KupDebugCategory, ai as kupDropEvent, N as kupDraggableColumnAttr, aj as kupDraggableRowAttr, U as KupDropEventTypes, c as KupThemeColorValues } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as KupDebugCategory, ai as kupDropEvent, N as kupDraggableColumnAttr, aj as kupDraggableRowAttr, U as KupDropEventTypes, c as KupThemeColorValues } from './kup-manager-a316a70e.js';
|
|
3
3
|
import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
4
|
+
import { F as FImage } from './f-image-a67229e5.js';
|
|
5
5
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
6
6
|
import './kup-dates-26a56bf7.js';
|
|
7
7
|
|