@sme.up/ketchup 11.0.0-SNAPSHOT-20241030100919 → 11.0.0-SNAPSHOT-20241030135105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-784e142a.js → f-cell-ccde7158.js} +4 -4
- package/dist/cjs/{f-cell-784e142a.js.map → f-cell-ccde7158.js.map} +1 -1
- package/dist/cjs/{f-chip-af09446d.js → f-chip-dbe137ed.js} +2 -2
- package/dist/cjs/{f-chip-af09446d.js.map → f-chip-dbe137ed.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-662821e2.js → f-paginator-utils-4cf8ac1e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-662821e2.js.map → f-paginator-utils-4cf8ac1e.js.map} +1 -1
- package/dist/cjs/{f-text-field-02d9d284.js → f-text-field-8b373b26.js} +2 -2
- package/dist/cjs/{f-text-field-02d9d284.js.map → f-text-field-8b373b26.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +6 -6
- package/dist/cjs/kup-box.cjs.entry.js +6 -6
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +4 -4
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-d5528bc5.js → kup-data-table-helper-bef7a94e.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-d5528bc5.js.map → kup-data-table-helper-bef7a94e.js.map} +1 -1
- 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 +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 +4 -4
- package/dist/cjs/kup-input-panel.cjs.entry.js +96 -55
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- 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-189eaf63.js → kup-manager-6e414e08.js} +6 -3
- package/dist/cjs/kup-manager-6e414e08.js.map +1 -0
- 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.cjs.entry.js +2 -2
- 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-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +92 -51
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +1 -0
- package/dist/collection/managers/kup-language/kup-language-declarations.js.map +1 -1
- package/dist/components/kup-input-panel.js +92 -51
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/components/kup-manager.js +5 -2
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/esm/{f-cell-9f52a30a.js → f-cell-e6b53a87.js} +4 -4
- package/dist/esm/{f-cell-9f52a30a.js.map → f-cell-e6b53a87.js.map} +1 -1
- package/dist/esm/{f-chip-dd98e13c.js → f-chip-ebf776f3.js} +2 -2
- package/dist/esm/{f-chip-dd98e13c.js.map → f-chip-ebf776f3.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-72800ef7.js → f-paginator-utils-2aac0d1a.js} +2 -2
- package/dist/esm/{f-paginator-utils-72800ef7.js.map → f-paginator-utils-2aac0d1a.js.map} +1 -1
- package/dist/esm/{f-text-field-81c7e63b.js → f-text-field-ca6c5386.js} +2 -2
- package/dist/esm/{f-text-field-81c7e63b.js.map → f-text-field-ca6c5386.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +6 -6
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +4 -4
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-52b21f9e.js → kup-data-table-helper-2ff0b12a.js} +2 -2
- package/dist/esm/{kup-data-table-helper-52b21f9e.js.map → kup-data-table-helper-2ff0b12a.js.map} +1 -1
- 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 +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 +4 -4
- package/dist/esm/kup-input-panel.entry.js +96 -55
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-ee1e7cd4.js → kup-manager-1d6b8b1a.js} +6 -3
- package/dist/esm/kup-manager-1d6b8b1a.js.map +1 -0
- 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.entry.js +2 -2
- 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-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-80928c2c.entry.js → p-0b4f6874.entry.js} +2 -2
- package/dist/ketchup/{p-24ff4213.entry.js → p-16e93198.entry.js} +2 -2
- package/dist/ketchup/{p-69012c53.entry.js → p-18481eec.entry.js} +2 -2
- package/dist/ketchup/{p-602cd520.entry.js → p-192c022f.entry.js} +2 -2
- package/dist/ketchup/{p-20bae24d.entry.js → p-196f3059.entry.js} +2 -2
- package/dist/ketchup/{p-25355f43.entry.js → p-2389ccc1.entry.js} +2 -2
- package/dist/ketchup/{p-f0be4c49.entry.js → p-4799c97f.entry.js} +2 -2
- package/dist/ketchup/{p-4a98256d.entry.js → p-587e12b4.entry.js} +2 -2
- package/dist/ketchup/{p-5ae04be3.entry.js → p-607b83f5.entry.js} +2 -2
- package/dist/ketchup/{p-f08e6820.entry.js → p-62596f5d.entry.js} +2 -2
- package/dist/ketchup/{p-2ebedaaa.entry.js → p-67763e23.entry.js} +2 -2
- package/dist/ketchup/{p-fd00900c.entry.js → p-7cdceaea.entry.js} +2 -2
- package/dist/ketchup/{p-b2875c24.js → p-7d7b8718.js} +2 -2
- package/dist/ketchup/{p-6e258e44.entry.js → p-853e2b1d.entry.js} +2 -2
- package/dist/ketchup/p-86b6489e.js +29 -0
- package/dist/{cjs/kup-manager-189eaf63.js.map → ketchup/p-86b6489e.js.map} +1 -1
- package/dist/ketchup/{p-7728ffb2.entry.js → p-8ab1203f.entry.js} +2 -2
- package/dist/ketchup/{p-8de170dd.entry.js → p-8e844b9d.entry.js} +2 -2
- package/dist/ketchup/{p-b8c8d7b8.entry.js → p-9da57972.entry.js} +2 -2
- package/dist/ketchup/{p-3dde5808.js → p-a16707d1.js} +2 -2
- package/dist/ketchup/{p-48e9e28a.entry.js → p-a3ace76e.entry.js} +2 -2
- package/dist/ketchup/{p-a5329b0b.entry.js → p-a55d2c8b.entry.js} +2 -2
- package/dist/ketchup/{p-bec9fb36.entry.js → p-affd9a2c.entry.js} +2 -2
- package/dist/ketchup/{p-724a3fdb.entry.js → p-b0ca996f.entry.js} +2 -2
- package/dist/ketchup/{p-92f8f2a8.entry.js → p-bb7dddb3.entry.js} +2 -2
- package/dist/ketchup/{p-2bf4b018.entry.js → p-c4ae346f.entry.js} +2 -2
- package/dist/ketchup/{p-6e7863c6.entry.js → p-cc901eb3.entry.js} +2 -2
- package/dist/ketchup/{p-7fbb3587.entry.js → p-d5325eb6.entry.js} +2 -2
- package/dist/ketchup/{p-444237dd.entry.js → p-d6243c07.entry.js} +2 -2
- package/dist/ketchup/{p-f28e4d30.entry.js → p-deb86dcb.entry.js} +2 -2
- package/dist/ketchup/{p-2049ede1.js → p-e9388650.js} +2 -2
- package/dist/ketchup/{p-ba47d93e.js → p-f3f54269.js} +2 -2
- package/dist/ketchup/{p-15ed7d99.entry.js → p-f59fb7d0.entry.js} +2 -2
- package/dist/ketchup/{p-dd80dcd1.entry.js → p-f607dc0d.entry.js} +2 -2
- package/dist/ketchup/p-fc91cec3.entry.js +2 -0
- package/dist/ketchup/p-fc91cec3.entry.js.map +1 -0
- package/dist/ketchup/{p-1cb80f82.js → p-fe31a004.js} +2 -2
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -1
- package/package.json +1 -1
- package/dist/esm/kup-manager-ee1e7cd4.js.map +0 -1
- package/dist/ketchup/p-49a79002.js +0 -29
- package/dist/ketchup/p-49a79002.js.map +0 -1
- package/dist/ketchup/p-70d05775.entry.js +0 -2
- package/dist/ketchup/p-70d05775.entry.js.map +0 -1
- /package/dist/ketchup/{p-80928c2c.entry.js.map → p-0b4f6874.entry.js.map} +0 -0
- /package/dist/ketchup/{p-24ff4213.entry.js.map → p-16e93198.entry.js.map} +0 -0
- /package/dist/ketchup/{p-69012c53.entry.js.map → p-18481eec.entry.js.map} +0 -0
- /package/dist/ketchup/{p-602cd520.entry.js.map → p-192c022f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-20bae24d.entry.js.map → p-196f3059.entry.js.map} +0 -0
- /package/dist/ketchup/{p-25355f43.entry.js.map → p-2389ccc1.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f0be4c49.entry.js.map → p-4799c97f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4a98256d.entry.js.map → p-587e12b4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5ae04be3.entry.js.map → p-607b83f5.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f08e6820.entry.js.map → p-62596f5d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2ebedaaa.entry.js.map → p-67763e23.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fd00900c.entry.js.map → p-7cdceaea.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b2875c24.js.map → p-7d7b8718.js.map} +0 -0
- /package/dist/ketchup/{p-6e258e44.entry.js.map → p-853e2b1d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7728ffb2.entry.js.map → p-8ab1203f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8de170dd.entry.js.map → p-8e844b9d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b8c8d7b8.entry.js.map → p-9da57972.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3dde5808.js.map → p-a16707d1.js.map} +0 -0
- /package/dist/ketchup/{p-48e9e28a.entry.js.map → p-a3ace76e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a5329b0b.entry.js.map → p-a55d2c8b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-bec9fb36.entry.js.map → p-affd9a2c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-724a3fdb.entry.js.map → p-b0ca996f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-92f8f2a8.entry.js.map → p-bb7dddb3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2bf4b018.entry.js.map → p-c4ae346f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6e7863c6.entry.js.map → p-cc901eb3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7fbb3587.entry.js.map → p-d5325eb6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-444237dd.entry.js.map → p-d6243c07.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f28e4d30.entry.js.map → p-deb86dcb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2049ede1.js.map → p-e9388650.js.map} +0 -0
- /package/dist/ketchup/{p-ba47d93e.js.map → p-f3f54269.js.map} +0 -0
- /package/dist/ketchup/{p-15ed7d99.entry.js.map → p-f59fb7d0.entry.js.map} +0 -0
- /package/dist/ketchup/{p-dd80dcd1.entry.js.map → p-f607dc0d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-1cb80f82.js.map → p-fe31a004.js.map} +0 -0
|
@@ -80,7 +80,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
80
80
|
}
|
|
81
81
|
return t;
|
|
82
82
|
};
|
|
83
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback,
|
|
83
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_checkOnBlurProp, _KupInputPanel_checkOnBlurEvent, _KupInputPanel_setCellError;
|
|
84
84
|
const dom = document.documentElement;
|
|
85
85
|
const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel extends HTMLElement {
|
|
86
86
|
constructor() {
|
|
@@ -230,7 +230,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
230
230
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
231
231
|
]
|
|
232
232
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
233
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '2e431f8ed3bc24cb844c21e62f09d0ebd4c95227' }, h("style", { key: '1b5d013473b0270b3ff95950c956b4e040f5bb6f' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '1bd47df5bced2847e3a661588f7f7234c3be9e1a', id: componentWrapperId }, inputPanelContent)));
|
|
234
234
|
}
|
|
235
235
|
disconnectedCallback() {
|
|
236
236
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -257,7 +257,14 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
257
257
|
}, undefined, {
|
|
258
258
|
"data": ["onDataChanged"]
|
|
259
259
|
}]);
|
|
260
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(),
|
|
260
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
261
|
+
return this.inputPanelCells.reduce((cell, { cells }) => {
|
|
262
|
+
if (!cell) {
|
|
263
|
+
return cells.find(({ column }) => column.name === id).cell;
|
|
264
|
+
}
|
|
265
|
+
return cell;
|
|
266
|
+
}, null);
|
|
267
|
+
}, _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
261
268
|
var _a;
|
|
262
269
|
const layout = inputPanelCell.row.layout;
|
|
263
270
|
const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
|
|
@@ -626,8 +633,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
626
633
|
return null;
|
|
627
634
|
}, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(_options, _fieldLabel, currentValue, cell, id) {
|
|
628
635
|
var _a;
|
|
629
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
630
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
636
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
637
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
631
638
|
}
|
|
632
639
|
return CHIAdapter(currentValue);
|
|
633
640
|
}, _KupInputPanel_GRAAdapter = function _KupInputPanel_GRAAdapter() {
|
|
@@ -690,16 +697,16 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
690
697
|
configCMandACP.data['kup-list'].data =
|
|
691
698
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, rawOptions, currentValue);
|
|
692
699
|
}
|
|
693
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
694
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
700
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
701
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
695
702
|
}
|
|
696
703
|
return configCMandACP;
|
|
697
704
|
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
698
705
|
var _a;
|
|
699
706
|
let data = CHKAdapter(currentValue, fieldLabel);
|
|
700
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
707
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
701
708
|
return Object.assign(Object.assign({}, data), { onBlur: () => {
|
|
702
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
709
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
703
710
|
} });
|
|
704
711
|
}
|
|
705
712
|
return data;
|
|
@@ -717,11 +724,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
717
724
|
};
|
|
718
725
|
}, _KupInputPanel_ITXAdapter = function _KupInputPanel_ITXAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
719
726
|
var _a;
|
|
720
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
727
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
721
728
|
return {
|
|
722
729
|
label: fieldLabel,
|
|
723
730
|
onBlur: () => {
|
|
724
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
731
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
725
732
|
},
|
|
726
733
|
};
|
|
727
734
|
}
|
|
@@ -729,9 +736,9 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
729
736
|
}, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(options, _fieldLabel, currentValue, cell, id) {
|
|
730
737
|
var _a;
|
|
731
738
|
let data = RADAdapter(currentValue, options);
|
|
732
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
739
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
733
740
|
return Object.assign(Object.assign({}, data), { onBlur: () => {
|
|
734
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
741
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
735
742
|
} });
|
|
736
743
|
}
|
|
737
744
|
return data;
|
|
@@ -739,8 +746,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
739
746
|
return SWTAdapter(currentValue, fieldLabel);
|
|
740
747
|
}, _KupInputPanel_DateAdapter = function _KupInputPanel_DateAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
741
748
|
var _a;
|
|
742
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
743
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
749
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
750
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
744
751
|
}
|
|
745
752
|
return {
|
|
746
753
|
data: {
|
|
@@ -752,13 +759,13 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
752
759
|
};
|
|
753
760
|
}, _KupInputPanel_ObjectAdapter = function _KupInputPanel_ObjectAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
754
761
|
var _a;
|
|
755
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
762
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
756
763
|
return {
|
|
757
764
|
initialValue: currentValue || '',
|
|
758
765
|
label: fieldLabel || ' ',
|
|
759
766
|
value: currentValue || '',
|
|
760
767
|
onBlur: () => {
|
|
761
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
768
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
762
769
|
},
|
|
763
770
|
};
|
|
764
771
|
}
|
|
@@ -769,8 +776,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
769
776
|
};
|
|
770
777
|
}, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
771
778
|
var _a;
|
|
772
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
773
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
779
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
780
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
774
781
|
}
|
|
775
782
|
return {
|
|
776
783
|
data: {
|
|
@@ -781,11 +788,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
781
788
|
};
|
|
782
789
|
}, _KupInputPanel_NumberAdapter = function _KupInputPanel_NumberAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
783
790
|
var _a;
|
|
784
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
791
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
785
792
|
return {
|
|
786
793
|
label: fieldLabel,
|
|
787
794
|
onBlur: () => {
|
|
788
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
795
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
789
796
|
},
|
|
790
797
|
};
|
|
791
798
|
}
|
|
@@ -897,50 +904,84 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
897
904
|
(_a = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, options, currentValue)) !== null && _a !== void 0 ? _a : [];
|
|
898
905
|
detail.comp.refresh();
|
|
899
906
|
});
|
|
900
|
-
},
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
907
|
+
}, _KupInputPanel_checkOnBlurProp = function _KupInputPanel_checkOnBlurProp(cell, id) {
|
|
908
|
+
var _a;
|
|
909
|
+
const currCell = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, id);
|
|
910
|
+
// Required cell check
|
|
911
|
+
if (cell.mandatory) {
|
|
912
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setCellError).call(this, id, currCell.value
|
|
913
|
+
? // If it's not empty remove the error message
|
|
914
|
+
null
|
|
915
|
+
: // else set the error message
|
|
916
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.REQUIRED_VALUE));
|
|
917
|
+
}
|
|
918
|
+
if (!currCell.value) {
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
// Valid object check
|
|
922
|
+
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
923
|
+
this.checkValidObjCallback({
|
|
924
|
+
obj: cell.obj,
|
|
925
|
+
currentState: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
926
|
+
fun: cell.fun,
|
|
927
|
+
}).then(({ valid }) => {
|
|
928
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setCellError).call(this, id, valid
|
|
929
|
+
? // If it's a valid object remove the error message
|
|
930
|
+
null
|
|
931
|
+
: // else set the error message
|
|
932
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE));
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
}, _KupInputPanel_checkOnBlurEvent = function _KupInputPanel_checkOnBlurEvent(cell, id) {
|
|
936
|
+
const evName = __classPrivateFieldGet(this, _KupInputPanel_eventBlurNames, "f").get(cell.shape);
|
|
921
937
|
if (!evName) {
|
|
922
938
|
return;
|
|
923
939
|
}
|
|
924
940
|
const handler = (e) => {
|
|
941
|
+
var _a;
|
|
925
942
|
if (e.detail.id !== id) {
|
|
926
943
|
return;
|
|
927
944
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE);
|
|
945
|
+
// Required cell check
|
|
946
|
+
if (cell.mandatory) {
|
|
947
|
+
e.detail.comp.error = e.detail.value
|
|
948
|
+
? // If it's not empty remove the error message
|
|
949
|
+
null
|
|
950
|
+
: // else set the error message
|
|
951
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.REQUIRED_VALUE);
|
|
936
952
|
e.detail.comp.refresh();
|
|
937
|
-
}
|
|
953
|
+
}
|
|
954
|
+
if (!e.detail.value) {
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
// Valid object check
|
|
958
|
+
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
959
|
+
this.checkValidObjCallback({
|
|
960
|
+
obj: cell.obj,
|
|
961
|
+
currentState: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
962
|
+
fun: cell.fun,
|
|
963
|
+
}).then(({ valid }) => {
|
|
964
|
+
e.detail.comp.error = valid
|
|
965
|
+
? null
|
|
966
|
+
: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE);
|
|
967
|
+
e.detail.comp.refresh();
|
|
968
|
+
});
|
|
969
|
+
}
|
|
938
970
|
};
|
|
939
971
|
this.rootElement.addEventListener(evName, handler);
|
|
940
972
|
__classPrivateFieldGet(this, _KupInputPanel_listeners, "f").push({
|
|
941
973
|
event: evName,
|
|
942
974
|
handler,
|
|
943
975
|
});
|
|
976
|
+
}, _KupInputPanel_setCellError = function _KupInputPanel_setCellError(id, error) {
|
|
977
|
+
this.inputPanelCells = this.inputPanelCells.map((cell) => (Object.assign(Object.assign({}, cell), { cells: cell.cells.map(({ cell, column }) => {
|
|
978
|
+
const data = column.name === id
|
|
979
|
+
? Object.assign(Object.assign({}, cell.data), { error }) : cell.data;
|
|
980
|
+
return {
|
|
981
|
+
column,
|
|
982
|
+
cell: Object.assign(Object.assign({}, cell), { data }),
|
|
983
|
+
};
|
|
984
|
+
}) })));
|
|
944
985
|
};
|
|
945
986
|
function defineCustomElement$1() {
|
|
946
987
|
if (typeof customElements === "undefined") {
|