@sme.up/ketchup 9.6.3 → 9.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-9a0eba42.js → f-button-89de2403.js} +1 -1
- package/dist/cjs/{f-cell-1ad41071.js → f-cell-75dbd6eb.js} +9 -29
- package/dist/cjs/{f-chip-48851b4f.js → f-chip-08857345.js} +2 -2
- package/dist/cjs/{f-image-541e5f4d.js → f-image-a41d7f1e.js} +1 -1
- package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-ff07301e.js} +3 -3
- package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-eb207a83.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -47
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
- package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-gantt_10.cjs.entry.js +21 -21
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +7 -7
- package/dist/cjs/kup-input-panel.cjs.entry.js +298 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
- package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
- package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-abfe4ddd.js} +9 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-9f776d6e.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/input-panel.js +249 -0
- package/dist/collection/assets/pdf.js +15 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +132 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +305 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +522 -0
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.js +1 -1
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
- package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
- package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
- package/dist/collection/components/kup-planner/kup-planner.js +1 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
- 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 +1 -1
- 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-cell/f-cell.js +5 -24
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/components/custom-task-list-header.js +2 -2
- package/dist/components/custom-task-list-table.js +1 -1
- package/dist/components/kup-autocomplete2.js +44 -64
- package/dist/components/kup-box2.js +1 -1
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-dates.js +20 -1
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +1 -1
- package/dist/components/kup-gantt2.js +1 -1
- package/dist/components/kup-grid-renderer2.js +2 -2
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-horizontal-scroll2.js +2 -2
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-input-panel.d.ts +11 -0
- package/dist/components/kup-input-panel.js +449 -0
- package/dist/components/kup-lazy.js +11 -11
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-manager.js +9 -1
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-pdf.d.ts +11 -0
- package/dist/components/kup-pdf.js +76756 -0
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner-renderer2.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- 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 +1 -1
- package/dist/components/kup-task-gantt2.js +2 -2
- 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 +1 -1
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/esm/{f-button-45d690a5.js → f-button-1eebd42e.js} +1 -1
- package/dist/esm/{f-cell-63db06db.js → f-cell-af19d5c7.js} +9 -29
- package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-9e5fdb25.js} +2 -2
- package/dist/esm/{f-image-8b382cc5.js → f-image-1e1ed567.js} +1 -1
- package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-dede029b.js} +3 -3
- package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-802b45fb.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +47 -47
- package/dist/esm/kup-box.entry.js +8 -8
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +5 -5
- package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-gantt_10.entry.js +21 -21
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +7 -7
- package/dist/esm/kup-input-panel.entry.js +294 -0
- package/dist/esm/kup-lazy.entry.js +13 -13
- package/dist/esm/kup-magic-box.entry.js +6 -6
- package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-dd24fb5a.js} +9 -1
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-pdf.entry.js +76596 -0
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-b4727e44.js} +1 -1
- package/dist/esm/kup-planner-renderer.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +5 -5
- 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-14943de9.entry.js +1 -0
- package/dist/ketchup/{p-c6b34763.entry.js → p-158076de.entry.js} +1 -1
- package/dist/ketchup/{p-670354ef.entry.js → p-180cd7ab.entry.js} +1 -1
- package/dist/ketchup/{p-b6a21b6a.entry.js → p-19a13672.entry.js} +1 -1
- package/dist/ketchup/{p-d9284d98.entry.js → p-201f8d7b.entry.js} +1 -1
- package/dist/ketchup/{p-41e8402e.entry.js → p-26d42b88.entry.js} +1 -1
- package/dist/ketchup/{p-590c34bc.js → p-2d4a9235.js} +1 -1
- package/dist/ketchup/{p-090e5097.entry.js → p-2e04042b.entry.js} +1 -1
- package/dist/ketchup/{p-e508b2fd.entry.js → p-34d70475.entry.js} +1 -1
- package/dist/ketchup/{p-e0a1fbe7.entry.js → p-3b544027.entry.js} +1 -1
- package/dist/ketchup/{p-4c100286.entry.js → p-43ce397b.entry.js} +1 -1
- package/dist/ketchup/{p-31c0cfc0.entry.js → p-489af77f.entry.js} +1 -1
- package/dist/ketchup/{p-ca8a1f53.entry.js → p-4f69f6f9.entry.js} +1 -1
- package/dist/ketchup/{p-ba0f28b7.js → p-61e8d573.js} +1 -1
- package/dist/ketchup/{p-ca42a421.entry.js → p-636be6f1.entry.js} +2 -2
- package/dist/ketchup/{p-ec4050e1.entry.js → p-63c141d9.entry.js} +1 -1
- package/dist/ketchup/{p-4dfc5927.entry.js → p-6972fa0c.entry.js} +1 -1
- package/dist/ketchup/{p-a5074ce4.js → p-6c888179.js} +1 -1
- package/dist/ketchup/{p-1474852d.entry.js → p-79f4dc5b.entry.js} +1 -1
- package/dist/ketchup/{p-2b40d9b9.entry.js → p-818e61d5.entry.js} +1 -1
- package/dist/ketchup/{p-9a856951.js → p-8229b97a.js} +1 -1
- package/dist/ketchup/p-8f3d400a.entry.js +44 -0
- package/dist/ketchup/{p-bedabdb5.js → p-8fcdf454.js} +1 -1
- package/dist/ketchup/{p-ad6a3c2a.entry.js → p-a2e14d8b.entry.js} +1 -1
- package/dist/ketchup/{p-d839ce21.entry.js → p-a2e691b8.entry.js} +2 -2
- package/dist/ketchup/p-a46f99d4.js +1 -0
- package/dist/ketchup/{p-1cd48eea.entry.js → p-b238cde7.entry.js} +1 -1
- package/dist/ketchup/{p-837bd0a6.entry.js → p-b3b50bb5.entry.js} +1 -1
- package/dist/ketchup/{p-d50515f7.js → p-c0f660d6.js} +1 -1
- package/dist/ketchup/{p-157f0e89.entry.js → p-cd7fec02.entry.js} +1 -1
- package/dist/ketchup/{p-cbe42afd.entry.js → p-dcf7e9b6.entry.js} +1 -1
- package/dist/ketchup/{p-e0c10de2.entry.js → p-e0e47ca9.entry.js} +1 -1
- package/dist/ketchup/{p-9852b1e9.js → p-e4c63684.js} +1 -1
- package/dist/ketchup/{p-cc7352a8.entry.js → p-e7507dd6.entry.js} +1 -1
- package/dist/ketchup/p-eb8ea3a6.js +1 -0
- package/dist/ketchup/{p-d608f866.entry.js → p-f998ff28.entry.js} +1 -1
- package/dist/ketchup/{p-21351b19.entry.js → p-f9a7c21c.entry.js} +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +79 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
- package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
- package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
- package/dist/types/components.d.ts +158 -0
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +2 -1
- package/dist/ketchup/p-5c79cb74.js +0 -1
- package/dist/ketchup/p-935f58fc.js +0 -1
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_mapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter;
|
|
9
|
+
import { Host, forceUpdate, h, } from "@stencil/core";
|
|
10
|
+
import { KupInputPanelProps, } from "./kup-input-panel-declarations";
|
|
11
|
+
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
12
|
+
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
13
|
+
import { FButton } from "../../f-components/f-button/f-button";
|
|
14
|
+
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
15
|
+
import { FCellTypes, } from "../../f-components/f-cell/f-cell-declarations";
|
|
16
|
+
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
17
|
+
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
18
|
+
import { getProps, setProps } from "../../utils/utils";
|
|
19
|
+
const dom = document.documentElement;
|
|
20
|
+
export class KupInputPanel {
|
|
21
|
+
constructor() {
|
|
22
|
+
_KupInputPanel_instances.add(this);
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region VARIABLES
|
|
25
|
+
/*-------------------------------------------------*/
|
|
26
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
27
|
+
/*-------------------------------------------------*/
|
|
28
|
+
_KupInputPanel_kupManager.set(this, kupManagerInstance());
|
|
29
|
+
this.customStyle = '';
|
|
30
|
+
this.data = null;
|
|
31
|
+
this.hiddenSubmitButton = false;
|
|
32
|
+
this.submitCb = null;
|
|
33
|
+
this.handleEventsCallbacks = [];
|
|
34
|
+
this.inputPanelCells = [];
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region WATCHERS
|
|
38
|
+
/*-------------------------------------------------*/
|
|
39
|
+
/* W a t c h e r s */
|
|
40
|
+
/*-------------------------------------------------*/
|
|
41
|
+
onDataChanged() {
|
|
42
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region PUBLIC METHODS
|
|
46
|
+
/*-------------------------------------------------*/
|
|
47
|
+
/* P u b l i c M e t h o d s */
|
|
48
|
+
/*-------------------------------------------------*/
|
|
49
|
+
/**
|
|
50
|
+
* Used to retrieve component's props values.
|
|
51
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
52
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
53
|
+
*/
|
|
54
|
+
async getProps(descriptions) {
|
|
55
|
+
return getProps(this, KupInputPanelProps, descriptions);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* This method is used to trigger a new render of the component.
|
|
59
|
+
*/
|
|
60
|
+
async refresh() {
|
|
61
|
+
forceUpdate(this);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Sets the props to the component.
|
|
65
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
66
|
+
*/
|
|
67
|
+
async setProps(props) {
|
|
68
|
+
setProps(this, KupInputPanelProps, props);
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region LIFECYCLE HOOKS
|
|
72
|
+
/*-------------------------------------------------*/
|
|
73
|
+
/* L i f e c y c l e H o o k s */
|
|
74
|
+
/*-------------------------------------------------*/
|
|
75
|
+
componentWillLoad() {
|
|
76
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, false);
|
|
77
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.register(this);
|
|
78
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.register(this);
|
|
79
|
+
this.onDataChanged();
|
|
80
|
+
}
|
|
81
|
+
componentDidLoad() {
|
|
82
|
+
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
83
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
|
|
84
|
+
this.handleEventsCallbacks.map((cbData) => {
|
|
85
|
+
this.rootElement.addEventListener(cbData.eventName, (e) => {
|
|
86
|
+
const inputPanelEvent = {
|
|
87
|
+
state: this.inputPanelCells.find((data) => data.cells.find((cell) => cell.column.name === e.detail.id)).cells,
|
|
88
|
+
data: {
|
|
89
|
+
field: e.detail.id,
|
|
90
|
+
value: e.detail.inputValue || e.detail.value,
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
cbData.eventCallback(inputPanelEvent);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
componentWillRender() {
|
|
98
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, false);
|
|
99
|
+
}
|
|
100
|
+
componentDidRender() {
|
|
101
|
+
const root = this.rootElement.shadowRoot;
|
|
102
|
+
if (root) {
|
|
103
|
+
const fs = root.querySelectorAll('.f-text-field');
|
|
104
|
+
for (let index = 0; index < fs.length; index++) {
|
|
105
|
+
FTextFieldMDC(fs[index]);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, true);
|
|
109
|
+
}
|
|
110
|
+
render() {
|
|
111
|
+
const isEmptyData = Boolean(!this.inputPanelCells.length);
|
|
112
|
+
const inputPanelContent = isEmptyData
|
|
113
|
+
? [
|
|
114
|
+
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
115
|
+
]
|
|
116
|
+
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
117
|
+
return (h(Host, { key: '47b1cbfae920b48873c3c5c5629ed1d9f4ac7290' }, h("style", { key: 'd48cfa1e1f470e9b991745ef30ebc236c6399b98' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '257d3d98795b32e59abee2c5aa8be341880f37be', id: componentWrapperId }, inputPanelContent)));
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
121
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.unregister(this);
|
|
122
|
+
}
|
|
123
|
+
static get is() { return "kup-input-panel"; }
|
|
124
|
+
static get encapsulation() { return "shadow"; }
|
|
125
|
+
static get originalStyleUrls() {
|
|
126
|
+
return {
|
|
127
|
+
"$": ["kup-input-panel.scss"]
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
static get styleUrls() {
|
|
131
|
+
return {
|
|
132
|
+
"$": ["kup-input-panel.css"]
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static get properties() {
|
|
136
|
+
return {
|
|
137
|
+
"customStyle": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "string",
|
|
142
|
+
"resolved": "string",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [{
|
|
149
|
+
"name": "default",
|
|
150
|
+
"text": "\"\""
|
|
151
|
+
}, {
|
|
152
|
+
"name": "see",
|
|
153
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
154
|
+
}],
|
|
155
|
+
"text": "Custom style of the component."
|
|
156
|
+
},
|
|
157
|
+
"attribute": "custom-style",
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "''"
|
|
160
|
+
},
|
|
161
|
+
"data": {
|
|
162
|
+
"type": "unknown",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "KupInputPanelData",
|
|
166
|
+
"resolved": "KupInputPanelData",
|
|
167
|
+
"references": {
|
|
168
|
+
"KupInputPanelData": {
|
|
169
|
+
"location": "import",
|
|
170
|
+
"path": "./kup-input-panel-declarations",
|
|
171
|
+
"id": "src/components/kup-input-panel/kup-input-panel-declarations.ts::KupInputPanelData"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [{
|
|
179
|
+
"name": "default",
|
|
180
|
+
"text": "null"
|
|
181
|
+
}],
|
|
182
|
+
"text": "Actual data of the form."
|
|
183
|
+
},
|
|
184
|
+
"defaultValue": "null"
|
|
185
|
+
},
|
|
186
|
+
"hiddenSubmitButton": {
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "boolean",
|
|
191
|
+
"resolved": "boolean",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [{
|
|
198
|
+
"name": "default",
|
|
199
|
+
"text": "false"
|
|
200
|
+
}],
|
|
201
|
+
"text": "Creates a hidden submit button in order to submit the form with enter."
|
|
202
|
+
},
|
|
203
|
+
"attribute": "hidden-submit-button",
|
|
204
|
+
"reflect": false,
|
|
205
|
+
"defaultValue": "false"
|
|
206
|
+
},
|
|
207
|
+
"submitCb": {
|
|
208
|
+
"type": "unknown",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "(e: SubmitEvent) => unknown",
|
|
212
|
+
"resolved": "(e: SubmitEvent) => unknown",
|
|
213
|
+
"references": {
|
|
214
|
+
"SubmitEvent": {
|
|
215
|
+
"location": "global",
|
|
216
|
+
"id": "global::SubmitEvent"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [{
|
|
224
|
+
"name": "default",
|
|
225
|
+
"text": "null"
|
|
226
|
+
}],
|
|
227
|
+
"text": "Sets the callback function on submit form"
|
|
228
|
+
},
|
|
229
|
+
"defaultValue": "null"
|
|
230
|
+
},
|
|
231
|
+
"handleEventsCallbacks": {
|
|
232
|
+
"type": "unknown",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "InputPanelEventsCallback[]",
|
|
236
|
+
"resolved": "InputPanelEventsCallback[]",
|
|
237
|
+
"references": {
|
|
238
|
+
"InputPanelEventsCallback": {
|
|
239
|
+
"location": "import",
|
|
240
|
+
"path": "./kup-input-panel-declarations",
|
|
241
|
+
"id": "src/components/kup-input-panel/kup-input-panel-declarations.ts::InputPanelEventsCallback"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": false,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [{
|
|
249
|
+
"name": "default",
|
|
250
|
+
"text": "[]"
|
|
251
|
+
}],
|
|
252
|
+
"text": "Sets the callbacks functions on ketchup events"
|
|
253
|
+
},
|
|
254
|
+
"defaultValue": "[]"
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
static get states() {
|
|
259
|
+
return {
|
|
260
|
+
"inputPanelCells": {}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
static get events() {
|
|
264
|
+
return [{
|
|
265
|
+
"method": "kupReady",
|
|
266
|
+
"name": "kup-input-panel-ready",
|
|
267
|
+
"bubbles": true,
|
|
268
|
+
"cancelable": false,
|
|
269
|
+
"composed": true,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "When component load is complete"
|
|
273
|
+
},
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "KupEventPayload",
|
|
276
|
+
"resolved": "KupEventPayload",
|
|
277
|
+
"references": {
|
|
278
|
+
"KupEventPayload": {
|
|
279
|
+
"location": "import",
|
|
280
|
+
"path": "../../types/GenericTypes",
|
|
281
|
+
"id": "src/types/GenericTypes.ts::KupEventPayload"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}];
|
|
286
|
+
}
|
|
287
|
+
static get methods() {
|
|
288
|
+
return {
|
|
289
|
+
"getProps": {
|
|
290
|
+
"complexType": {
|
|
291
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
292
|
+
"parameters": [{
|
|
293
|
+
"name": "descriptions",
|
|
294
|
+
"type": "boolean",
|
|
295
|
+
"docs": "- When provided and true, the result will be the list of props with their description."
|
|
296
|
+
}],
|
|
297
|
+
"references": {
|
|
298
|
+
"Promise": {
|
|
299
|
+
"location": "global",
|
|
300
|
+
"id": "global::Promise"
|
|
301
|
+
},
|
|
302
|
+
"GenericObject": {
|
|
303
|
+
"location": "import",
|
|
304
|
+
"path": "../../types/GenericTypes",
|
|
305
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"return": "Promise<GenericObject>"
|
|
309
|
+
},
|
|
310
|
+
"docs": {
|
|
311
|
+
"text": "Used to retrieve component's props values.",
|
|
312
|
+
"tags": [{
|
|
313
|
+
"name": "param",
|
|
314
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
315
|
+
}, {
|
|
316
|
+
"name": "returns",
|
|
317
|
+
"text": "List of props as object, each key will be a prop."
|
|
318
|
+
}]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"refresh": {
|
|
322
|
+
"complexType": {
|
|
323
|
+
"signature": "() => Promise<void>",
|
|
324
|
+
"parameters": [],
|
|
325
|
+
"references": {
|
|
326
|
+
"Promise": {
|
|
327
|
+
"location": "global",
|
|
328
|
+
"id": "global::Promise"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"return": "Promise<void>"
|
|
332
|
+
},
|
|
333
|
+
"docs": {
|
|
334
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
335
|
+
"tags": []
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"setProps": {
|
|
339
|
+
"complexType": {
|
|
340
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
341
|
+
"parameters": [{
|
|
342
|
+
"name": "props",
|
|
343
|
+
"type": "GenericObject",
|
|
344
|
+
"docs": "- Object containing props that will be set to the component."
|
|
345
|
+
}],
|
|
346
|
+
"references": {
|
|
347
|
+
"Promise": {
|
|
348
|
+
"location": "global",
|
|
349
|
+
"id": "global::Promise"
|
|
350
|
+
},
|
|
351
|
+
"GenericObject": {
|
|
352
|
+
"location": "import",
|
|
353
|
+
"path": "../../types/GenericTypes",
|
|
354
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"return": "Promise<void>"
|
|
358
|
+
},
|
|
359
|
+
"docs": {
|
|
360
|
+
"text": "Sets the props to the component.",
|
|
361
|
+
"tags": [{
|
|
362
|
+
"name": "param",
|
|
363
|
+
"text": "props - Object containing props that will be set to the component."
|
|
364
|
+
}]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
static get elementRef() { return "rootElement"; }
|
|
370
|
+
static get watchers() {
|
|
371
|
+
return [{
|
|
372
|
+
"propName": "data",
|
|
373
|
+
"methodName": "onDataChanged"
|
|
374
|
+
}];
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
378
|
+
var _a;
|
|
379
|
+
// todo layout
|
|
380
|
+
const horizontal = ((_a = inputPanelCell.row.layout) === null || _a === void 0 ? void 0 : _a.horizontal) || false;
|
|
381
|
+
const rowContent = inputPanelCell.cells.map((cell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, cell.cell, inputPanelCell.row, cell.column));
|
|
382
|
+
const classObj = {
|
|
383
|
+
form: true,
|
|
384
|
+
'input-panel': true,
|
|
385
|
+
'form--column': !horizontal,
|
|
386
|
+
};
|
|
387
|
+
// We create a form for each row in data
|
|
388
|
+
return (h("form", { class: classObj, name: this.rootElement.id, onSubmit: this.submitCb }, rowContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
|
|
389
|
+
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
390
|
+
const cellProps = {
|
|
391
|
+
cell,
|
|
392
|
+
column,
|
|
393
|
+
row,
|
|
394
|
+
component: this,
|
|
395
|
+
editable: cell.isEditable,
|
|
396
|
+
renderKup: true,
|
|
397
|
+
setSizes: true,
|
|
398
|
+
};
|
|
399
|
+
return h(FCell, Object.assign({}, cellProps));
|
|
400
|
+
}, _KupInputPanel_mapCells = function _KupInputPanel_mapCells(data) {
|
|
401
|
+
var _a;
|
|
402
|
+
const inpuPanelCells = ((_a = data === null || data === void 0 ? void 0 : data.rows) === null || _a === void 0 ? void 0 : _a.length)
|
|
403
|
+
? data.rows.reduce((inpuPanelCells, row) => {
|
|
404
|
+
const cells = data.columns
|
|
405
|
+
.filter((column) => column.visible)
|
|
406
|
+
.map((column) => {
|
|
407
|
+
const cell = row.cells[column.name];
|
|
408
|
+
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 });
|
|
409
|
+
return { column, cell: mappedCell };
|
|
410
|
+
});
|
|
411
|
+
return [...inpuPanelCells, { cells, row }];
|
|
412
|
+
}, [])
|
|
413
|
+
: [];
|
|
414
|
+
this.inputPanelCells = inpuPanelCells;
|
|
415
|
+
}, _KupInputPanel_mapData = function _KupInputPanel_mapData(cell, col) {
|
|
416
|
+
const options = cell.options;
|
|
417
|
+
const fieldLabel = col.title;
|
|
418
|
+
const currentValue = cell.value;
|
|
419
|
+
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
420
|
+
const dataAdapterMap = new Map([
|
|
421
|
+
[FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
|
|
422
|
+
[FCellTypes.BUTTON_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter)],
|
|
423
|
+
[FCellTypes.CHART, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_GRAAdapter)],
|
|
424
|
+
[FCellTypes.CHIP, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHIAdapter)],
|
|
425
|
+
[FCellTypes.CHECKBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHKAdapter)],
|
|
426
|
+
[FCellTypes.COLOR_PICKER, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CLPAdapter)],
|
|
427
|
+
[FCellTypes.COMBOBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
|
|
428
|
+
[FCellTypes.RADIO, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_RADAdapter)],
|
|
429
|
+
[FCellTypes.STRING, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ITXAdapter)],
|
|
430
|
+
]);
|
|
431
|
+
const adapter = dataAdapterMap.get(cellType);
|
|
432
|
+
return adapter ? adapter(options, fieldLabel, currentValue) : null;
|
|
433
|
+
}, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
|
|
434
|
+
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
435
|
+
if (cellType !== FCellTypes.CHIP &&
|
|
436
|
+
cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&
|
|
437
|
+
cellType !== FCellTypes.MULTI_COMBOBOX &&
|
|
438
|
+
!cell.editable) {
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
return {
|
|
442
|
+
trailingIcon: true,
|
|
443
|
+
label: col.title,
|
|
444
|
+
};
|
|
445
|
+
}, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(options, _fieldLabel, currentValue) {
|
|
446
|
+
return {
|
|
447
|
+
data: (options === null || options === void 0 ? void 0 : options.length)
|
|
448
|
+
? options.map((option) => ({
|
|
449
|
+
value: option.label,
|
|
450
|
+
id: option.id,
|
|
451
|
+
selected: currentValue === option.id,
|
|
452
|
+
}))
|
|
453
|
+
: [{ id: currentValue, value: currentValue }],
|
|
454
|
+
};
|
|
455
|
+
}, _KupInputPanel_GRAAdapter = function _KupInputPanel_GRAAdapter() {
|
|
456
|
+
//TODO: definire mapping
|
|
457
|
+
return {
|
|
458
|
+
data: {
|
|
459
|
+
sizeX: '50px',
|
|
460
|
+
offlineMode: {
|
|
461
|
+
value: '8;4;5',
|
|
462
|
+
},
|
|
463
|
+
id: 'i1012_GREF_0',
|
|
464
|
+
cellId: 'i1012_GREF_0',
|
|
465
|
+
sizeY: '50px',
|
|
466
|
+
},
|
|
467
|
+
};
|
|
468
|
+
}, _KupInputPanel_BTNAdapter = function _KupInputPanel_BTNAdapter(_options, _fieldLabel, _currentValue) {
|
|
469
|
+
//TODO: come gestire i button list dal protocollo?
|
|
470
|
+
return {
|
|
471
|
+
data: [
|
|
472
|
+
{
|
|
473
|
+
data: { dropdownOnly: false, label: 'Pier' },
|
|
474
|
+
},
|
|
475
|
+
{ data: { dropdownOnly: false, label: 'Valerio' } },
|
|
476
|
+
],
|
|
477
|
+
};
|
|
478
|
+
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(options, fieldLabel, currentValue) {
|
|
479
|
+
return {
|
|
480
|
+
data: {
|
|
481
|
+
'kup-text-field': {
|
|
482
|
+
trailingIcon: true,
|
|
483
|
+
label: fieldLabel,
|
|
484
|
+
icon: 'arrow_drop_down',
|
|
485
|
+
},
|
|
486
|
+
'kup-list': {
|
|
487
|
+
showIcons: true,
|
|
488
|
+
data: (options === null || options === void 0 ? void 0 : options.length)
|
|
489
|
+
? options.map((option) => ({
|
|
490
|
+
value: option.label,
|
|
491
|
+
id: option.id,
|
|
492
|
+
selected: currentValue === option.id,
|
|
493
|
+
}))
|
|
494
|
+
: [],
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
label: fieldLabel,
|
|
498
|
+
};
|
|
499
|
+
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue) {
|
|
500
|
+
return {
|
|
501
|
+
checked: currentValue === 'on' || currentValue === '1',
|
|
502
|
+
label: fieldLabel,
|
|
503
|
+
};
|
|
504
|
+
}, _KupInputPanel_CLPAdapter = function _KupInputPanel_CLPAdapter(_options, fieldLabel, _currentValue) {
|
|
505
|
+
return {
|
|
506
|
+
data: {
|
|
507
|
+
'kup-text-field': {
|
|
508
|
+
label: fieldLabel,
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
};
|
|
512
|
+
}, _KupInputPanel_ITXAdapter = function _KupInputPanel_ITXAdapter(_options, fieldLabel, _currentValue) {
|
|
513
|
+
return { label: fieldLabel };
|
|
514
|
+
}, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(options, _fieldLabel, currentValue) {
|
|
515
|
+
return {
|
|
516
|
+
data: options.map((option) => ({
|
|
517
|
+
value: option.id,
|
|
518
|
+
label: option.label,
|
|
519
|
+
checked: option.id === currentValue,
|
|
520
|
+
})),
|
|
521
|
+
};
|
|
522
|
+
};
|
|
@@ -108,39 +108,39 @@ export class KupLazy {
|
|
|
108
108
|
switch (this.componentName) {
|
|
109
109
|
case 'kup-button':
|
|
110
110
|
//call_to_action.svg
|
|
111
|
-
resource = (h("svg", { key: '
|
|
111
|
+
resource = (h("svg", { key: 'bca5daf712b40d11abe4f3b1856385844642acf1', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'ab212455b45b78bf981309de350b4b3619a288e9', d: "M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z" })));
|
|
112
112
|
break;
|
|
113
113
|
case 'kup-card':
|
|
114
114
|
//art_track.svg
|
|
115
|
-
resource = (h("svg", { key: '
|
|
115
|
+
resource = (h("svg", { key: '1e266ffe7b2568dc6caa45592e86b73c7683cc16', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '14a4eb6f9c5b6772cd26ec29aef7b470e0fe6574', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
116
116
|
break;
|
|
117
117
|
case 'kup-checkbox':
|
|
118
118
|
//check_box_outline_blank.svg
|
|
119
|
-
resource = (h("svg", { key: '
|
|
119
|
+
resource = (h("svg", { key: 'd553613ffa5ee60014a4e89cf8e62ace3384f3a4', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'bf5a69068bc1f2142a0d4b451cf3cdceb16d7963', d: "M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z" })));
|
|
120
120
|
break;
|
|
121
121
|
case 'kup-chart':
|
|
122
122
|
//chart-bar.svg
|
|
123
|
-
resource = (h("svg", { key: '
|
|
123
|
+
resource = (h("svg", { key: '51f3129e31571f6e7a8faf293a6f3e35ba7524e0', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '19085e9d52b14637127c1bafdb37beb5349d2300', d: "M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z" })));
|
|
124
124
|
break;
|
|
125
125
|
case 'kup-data-table':
|
|
126
126
|
//table-large.svg
|
|
127
|
-
resource = (h("svg", { key: '
|
|
127
|
+
resource = (h("svg", { key: 'f7f187befb900356e7e589b3d169adff21791e35', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '4a53ed7568274a78be593b5ce8cd412747313725', d: "M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z" })));
|
|
128
128
|
break;
|
|
129
129
|
case 'kup-image':
|
|
130
130
|
//photo.svg
|
|
131
|
-
resource = (h("svg", { key: '
|
|
131
|
+
resource = (h("svg", { key: '587c27f674e8c3f153c9ed047ed605301a477621', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'e76e9b0410e3375d8d981396fdacc2f2c44dadf1', d: "M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z" })));
|
|
132
132
|
break;
|
|
133
133
|
case 'kup-progress-bar':
|
|
134
134
|
//linear_scale.svg
|
|
135
|
-
resource = (h("svg", { key: '
|
|
135
|
+
resource = (h("svg", { key: 'c7e82a2c18827a874acd6b8fe2dbcb4009ab3807', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '291ca07cfeced3bbbc92cb5ae7ac69375b640e22', d: "M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z" })));
|
|
136
136
|
break;
|
|
137
137
|
case 'kup-radio':
|
|
138
138
|
//radio_button_unchecked.svg
|
|
139
|
-
resource = (h("svg", { key: '
|
|
139
|
+
resource = (h("svg", { key: 'd2f81e158dc86c4ef74ad7628ac376f7e0eacbe2', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'fc4ec71ff460760866b3ad99db0d8cb9b8e3cd3b', d: "M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" })));
|
|
140
140
|
break;
|
|
141
141
|
default:
|
|
142
142
|
//art_track.svg
|
|
143
|
-
resource = (h("svg", { key: '
|
|
143
|
+
resource = (h("svg", { key: '8da82bcc100ef628d5f4bab0a8d28c06841270ca', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'f95db9cad4ee1973048e1a121cf84a8b0ecbce99', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
if ((this.renderMode === KupLazyRender.VIEWPORT && this.isInViewport) ||
|
|
@@ -149,14 +149,14 @@ export class KupLazy {
|
|
|
149
149
|
this.data &&
|
|
150
150
|
this.isInViewport)) {
|
|
151
151
|
let Tag = this.componentName;
|
|
152
|
-
content = (h(Tag, Object.assign({ key: '
|
|
152
|
+
content = (h(Tag, Object.assign({ key: 'af0853700b7bbfdcfd01f500fe303816264b387f' }, this.data, { ref: (el) => (this.lazyComponent = el) })));
|
|
153
153
|
className += ' kup-loaded';
|
|
154
154
|
}
|
|
155
155
|
else if (this.showPlaceholder) {
|
|
156
156
|
content = resource;
|
|
157
157
|
className += ' kup-to-be-loaded';
|
|
158
158
|
}
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '66562d25373ef498b4b82bc654752c894051ce6b', class: className }, h("style", { key: '7b314d53110ba9310ee1717f3b026da85e95e04d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '4e72e07e2acb78b1db0e0a69c8a3424ff14731ff', id: componentWrapperId }, content)));
|
|
160
160
|
}
|
|
161
161
|
disconnectedCallback() {
|
|
162
162
|
var _a;
|
|
@@ -243,7 +243,7 @@ export class KupList {
|
|
|
243
243
|
}
|
|
244
244
|
__classPrivateFieldSet(this, _KupList_radios, [], "f");
|
|
245
245
|
let index = 0;
|
|
246
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: '3181209e4896fb9f83feff44ad341bc1b4cd3e7c' }, h("style", { key: '360f38ea751b8b6e969629936967db8fa36efa20' }, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'c66d2c82e8ce58320e9d2413825463234b206a02', id: "kup-component", class: wrapperClass }, h("ul", { key: '009e5afdbd9bd5b0ec63a1fdcb814a05a171946b', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
247
247
|
.filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
248
248
|
.map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
|
|
249
249
|
}
|
|
@@ -263,11 +263,11 @@ export class KupMagicBox {
|
|
|
263
263
|
this.kupManager.debug.logRender(this, true);
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: '212f73b08fa30db6822a33f61dd8d10fe5e0ae5c' }, h("style", { key: 'bd8dfa094092c2b010867f98d595320d59e120e8' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '29d97585aa1a3d0c8680912289153337c2c2a23c', id: componentWrapperId }, h("div", { key: 'fc73991d493f68a37690b4b9d8dbc45ff15e9c1a', class: "magic-box-wrapper" }, h("div", { key: '7f27dcf3a8916ea1007a263cff3a1b835ce39612', class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({ key: '2f7303dd205ad6411c73e5ec5809632b12d134ca' }, this.comboboxProps())), h("kup-button", { key: 'ef696124673192ca35f7b71138f061c6e09a3f70', styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
267
267
|
this.data = null;
|
|
268
|
-
} }), h("kup-button", { key: '
|
|
268
|
+
} }), h("kup-button", { key: '09d63727c8500844e614606d5417f350cb2aebed', id: "close-dialog", customStyle: `:host{${KupThemeColorValues.PRIMARY}: var(${KupThemeColorValues.TITLE});}`, icon: "clear", "onkup-button-click": () => {
|
|
269
269
|
this.kupManager.hideMagicBox();
|
|
270
|
-
} })), h("div", { key: '
|
|
270
|
+
} })), h("div", { key: 'aaa1d0f9e81041dfa3669bcb1222b937760c49aa', class: "content", ref: (el) => (this.wrapperRef = el) }, this.setContent())))));
|
|
271
271
|
}
|
|
272
272
|
disconnectedCallback() {
|
|
273
273
|
this.kupManager.interact.unregister([
|
|
@@ -98,7 +98,7 @@ export class KupNavBar {
|
|
|
98
98
|
this.kupManager.debug.logRender(this, true);
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: 'c0ee317aa4f4c5d7eea17e92073c2382dfed6f38', class: "header" }, h("style", { key: '48b3dec462796c406f3c492f402cd18090b780c4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '6a4822ca6723bf9f7145db93dffe88f7781cccb3', id: componentWrapperId }, h("header", { key: '178148cbe743a0c4d9b4e41b26519f2ebb89c776', class: `${navbarClass} ${navbarClass}--${this.styling.toLowerCase()} ` }, h("div", { key: '5ee2f06ac2e4518cf6c993e0e9b09b9cf77e66ff', class: `${navbarClass}__row` }, this.content())))));
|
|
102
102
|
}
|
|
103
103
|
disconnectedCallback() {
|
|
104
104
|
this.kupManager.language.unregister(this);
|
|
@@ -331,7 +331,7 @@ export class KupNumericPicker {
|
|
|
331
331
|
this.kupManager.debug.logRender(this, true);
|
|
332
332
|
}
|
|
333
333
|
render() {
|
|
334
|
-
return (h(Host, { key: '
|
|
334
|
+
return (h(Host, { key: '83c844a686d9a82576b8ccbbdaaf0ce61190fad4' }, h("style", { key: '9f8e8eeeeb0db1f67cdd03e0815aa3cc0126f7b0' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '787aee96d5550a9bdb98d3d746142967456645f4', id: componentWrapperId }, this.prepTextfield())));
|
|
335
335
|
}
|
|
336
336
|
disconnectedCallback() {
|
|
337
337
|
this.kupManager.dates.unregister(this);
|