@sme.up/ketchup 11.0.7 → 11.0.8
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-9aca7812.js → f-button-a1b656d2.js} +3 -1
- package/dist/cjs/{f-cell-eed32cd7.js → f-cell-2b05ec41.js} +7 -7
- package/dist/cjs/{f-chip-ec543689.js → f-chip-911142ce.js} +1 -1
- package/dist/cjs/{f-object-field-1ddaee2d.js → f-object-field-60ddab64.js} +3 -3
- package/dist/cjs/{f-paginator-utils-f0d22b06.js → f-paginator-utils-fcbea8ea.js} +2 -2
- package/dist/cjs/{f-text-field-4d4fa492.js → f-text-field-028d892b.js} +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_30.cjs.entry.js +43 -32
- package/dist/cjs/kup-box.cjs.entry.js +19 -15
- package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
- 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-dashboard.cjs.entry.js +3 -3
- package/dist/cjs/{kup-data-table-helper-9a9ad503.js → kup-data-table-helper-a1d68467.js} +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 +2 -2
- 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-input-panel.cjs.entry.js +20 -18
- 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-8787fc42.js → kup-manager-f3bdd297.js} +4 -3
- 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-object-field.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +11 -9
- package/dist/collection/components/kup-box/kup-box.js +11 -7
- package/dist/collection/components/kup-data-table/kup-data-table.js +21 -12
- package/dist/collection/components/kup-form/kup-form.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +14 -12
- package/dist/collection/f-components/f-button/f-button.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +2 -2
- package/dist/collection/managers/kup-data/kup-data.js +4 -3
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +17 -15
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-362d7a44.js → p-0a8eb556.js} +4 -3
- package/dist/components/{p-fc3df00a.js → p-0bd261d7.js} +2 -2
- package/dist/components/{p-fcdae215.js → p-1314bbdf.js} +13 -9
- package/dist/components/{p-f1766ad7.js → p-2807b2ad.js} +2 -2
- package/dist/components/{p-a30c0106.js → p-4a48a95b.js} +41 -28
- package/dist/components/{p-b85372ba.js → p-afa666c5.js} +2 -2
- package/dist/esm/{f-button-3e022953.js → f-button-93e7961b.js} +3 -1
- package/dist/esm/{f-cell-bd79ffef.js → f-cell-3b2ffb31.js} +7 -7
- package/dist/esm/{f-chip-c22107de.js → f-chip-5308ce63.js} +1 -1
- package/dist/esm/{f-object-field-90dfb903.js → f-object-field-79b11bc0.js} +3 -3
- package/dist/esm/{f-paginator-utils-38b51762.js → f-paginator-utils-a5920e3f.js} +2 -2
- package/dist/esm/{f-text-field-31ad8f7f.js → f-text-field-2a249262.js} +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_30.entry.js +43 -32
- package/dist/esm/kup-box.entry.js +19 -15
- package/dist/esm/kup-calendar.entry.js +3 -3
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-dashboard.entry.js +3 -3
- package/dist/esm/{kup-data-table-helper-3a60f39d.js → kup-data-table-helper-22528638.js} +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 +2 -2
- 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-input-panel.entry.js +20 -18
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-35960eb2.js → kup-manager-c45fb212.js} +4 -3
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-751b23b7.entry.js → p-054dab8e.entry.js} +1 -1
- package/dist/ketchup/{p-707dff2c.entry.js → p-054e86fa.entry.js} +1 -1
- package/dist/ketchup/{p-21cb6f39.entry.js → p-10ce03d9.entry.js} +1 -1
- package/dist/ketchup/{p-c838a17e.entry.js → p-1b41a2f5.entry.js} +1 -1
- package/dist/ketchup/{p-3b4d57f5.entry.js → p-1b4e7e1d.entry.js} +1 -1
- package/dist/ketchup/p-206177c6.js +1 -0
- package/dist/ketchup/{p-5f82173c.js → p-21ccfe53.js} +1 -1
- package/dist/ketchup/{p-77117b3a.entry.js → p-2f10f0dc.entry.js} +1 -1
- package/dist/ketchup/p-310d2f7f.entry.js +8 -0
- package/dist/ketchup/{p-99761543.entry.js → p-34e90e24.entry.js} +1 -1
- package/dist/ketchup/{p-08ac13a7.entry.js → p-38965836.entry.js} +1 -1
- package/dist/ketchup/{p-76c2f184.entry.js → p-38fa4745.entry.js} +1 -1
- package/dist/ketchup/p-3a4f2645.entry.js +1 -0
- package/dist/ketchup/{p-541d469a.entry.js → p-4188de38.entry.js} +1 -1
- package/dist/ketchup/{p-2d954ca8.entry.js → p-430eba1f.entry.js} +1 -1
- package/dist/ketchup/{p-a841aef5.entry.js → p-4efa5cf8.entry.js} +1 -1
- package/dist/ketchup/{p-9f5d650a.js → p-52468dba.js} +1 -1
- package/dist/ketchup/p-5249e759.entry.js +1 -0
- package/dist/ketchup/{p-6d3521d6.entry.js → p-5c16e13d.entry.js} +1 -1
- package/dist/ketchup/{p-bbd702fd.entry.js → p-5f1013cd.entry.js} +1 -1
- package/dist/ketchup/{p-6dd48c60.entry.js → p-6a68c47d.entry.js} +1 -1
- package/dist/ketchup/{p-9ae814eb.js → p-6b7448c7.js} +1 -1
- package/dist/ketchup/{p-b6a5e87c.entry.js → p-6dd07391.entry.js} +1 -1
- package/dist/ketchup/{p-68dc4ed1.js → p-7cad8215.js} +1 -1
- package/dist/ketchup/p-97eba4ec.entry.js +1 -0
- package/dist/ketchup/{p-ab6b96ab.entry.js → p-9ec6c43e.entry.js} +1 -1
- package/dist/ketchup/{p-7e0fb905.entry.js → p-a799b4e8.entry.js} +1 -1
- package/dist/ketchup/{p-939094ef.entry.js → p-c3fde41a.entry.js} +1 -1
- package/dist/ketchup/{p-55e69e9f.entry.js → p-ca91eb26.entry.js} +1 -1
- package/dist/ketchup/{p-d66086d5.entry.js → p-d16d66fc.entry.js} +1 -1
- package/dist/ketchup/{p-c31f37f9.entry.js → p-f03f501a.entry.js} +1 -1
- package/dist/ketchup/{p-c2367aee.js → p-f0ce7a1c.js} +1 -1
- package/dist/ketchup/{p-b1197adf.entry.js → p-fbbf08d7.entry.js} +1 -1
- package/dist/ketchup/{p-df0207be.entry.js → p-fcee2b95.entry.js} +1 -1
- package/dist/ketchup/p-ff9d5cc2.js +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ketchup/p-067b5430.entry.js +0 -1
- package/dist/ketchup/p-1ad40fd0.js +0 -1
- package/dist/ketchup/p-37c3d27d.js +0 -1
- package/dist/ketchup/p-a44780fb.entry.js +0 -1
- package/dist/ketchup/p-a8714314.entry.js +0 -8
- package/dist/ketchup/p-fa177711.entry.js +0 -1
- /package/dist/ketchup/{p-14c6efce.js → p-6742335b.js} +0 -0
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const fButton = require('./f-button-
|
|
7
|
-
const fCell = require('./f-cell-
|
|
8
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const fButton = require('./f-button-a1b656d2.js');
|
|
7
|
+
const fCell = require('./f-cell-2b05ec41.js');
|
|
8
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
10
|
const fTypography = require('./f-typography-85d8238a.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-5a33fd05.js');
|
|
14
14
|
require('./f-checkbox-a3461c4d.js');
|
|
15
|
-
require('./f-chip-
|
|
16
|
-
require('./f-object-field-
|
|
17
|
-
require('./f-text-field-
|
|
15
|
+
require('./f-chip-911142ce.js');
|
|
16
|
+
require('./f-object-field-60ddab64.js');
|
|
17
|
+
require('./f-text-field-028d892b.js');
|
|
18
18
|
require('./kup-dates-594b0f91.js');
|
|
19
19
|
require('./component-a6dd6c14.js');
|
|
20
20
|
|
|
@@ -198,7 +198,7 @@ const KupInputPanel = class {
|
|
|
198
198
|
constructor(hostRef) {
|
|
199
199
|
index.registerInstance(this, hostRef);
|
|
200
200
|
this.kupReady = index.createEvent(this, "kup-input-panel-ready", 6);
|
|
201
|
-
this.
|
|
201
|
+
this.kupInputPanelContextMenu = index.createEvent(this, "kup-inputpanel-contextmenu", 6);
|
|
202
202
|
this.kupInputPanelObjectFieldSearchPayload = index.createEvent(this, "kup-inputpanel-objectfield-searchpayload", 6);
|
|
203
203
|
this.kupInputPanelObjectFieldOpenSearchMenu = index.createEvent(this, "kup-inputpanel-objectfield-opensearchmenu", 6);
|
|
204
204
|
this.kupInputPanelObjectFieldSelectedMenuItem = index.createEvent(this, "kup-inputpanel-objectfield-selectedmenuitem", 6);
|
|
@@ -423,7 +423,7 @@ const KupInputPanel = class {
|
|
|
423
423
|
index.h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA)),
|
|
424
424
|
]
|
|
425
425
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
426
|
-
return (index.h(index.Host, { key: '
|
|
426
|
+
return (index.h(index.Host, { key: '1e85e08ad732c523fec1eca80df19f7e3da44199', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
|
|
427
427
|
this.tabSelected = e.detail.node.id;
|
|
428
428
|
}, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
|
|
429
429
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
|
|
@@ -433,7 +433,7 @@ const KupInputPanel = class {
|
|
|
433
433
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
434
434
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
435
435
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
436
|
-
}, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, index.h("style", { key: '
|
|
436
|
+
}, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, index.h("style", { key: '1b4cc6c9de25d68eb3686417e935309fc487a596' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '14fe7270026ad82f34e1ad0683e3a2039e0fdf2e', id: GenericVariables.componentWrapperId }, inputPanelContent)));
|
|
437
437
|
}
|
|
438
438
|
disconnectedCallback() {
|
|
439
439
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -567,7 +567,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
567
567
|
renderKup: true,
|
|
568
568
|
setSizes: true,
|
|
569
569
|
};
|
|
570
|
-
const label = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getLabelComponent).call(this,
|
|
570
|
+
const label = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getLabelComponent).call(this, column, cell);
|
|
571
571
|
const fcell = index.h(fCell.FCell, Object.assign({}, cellProps));
|
|
572
572
|
if (label) {
|
|
573
573
|
/*
|
|
@@ -644,11 +644,12 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
644
644
|
? cell.decode
|
|
645
645
|
: cell.value;
|
|
646
646
|
return (index.h("span", { class: classList.join(' '), id: column.name }, index.h(fCell.FLabel, { style: cell.style, text: value })));
|
|
647
|
-
}, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(
|
|
647
|
+
}, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(column, cell) {
|
|
648
|
+
const label = column.title;
|
|
648
649
|
if (!label) {
|
|
649
650
|
return null;
|
|
650
651
|
}
|
|
651
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
652
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
652
653
|
if (cellType === kupManager.FCellTypes.RADIO) {
|
|
653
654
|
return index.h("span", null, label);
|
|
654
655
|
}
|
|
@@ -905,7 +906,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
905
906
|
: [];
|
|
906
907
|
inpuPanelCells.map(({ cells }) => cells.map(({ cell, column }) => {
|
|
907
908
|
var _a;
|
|
908
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
909
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
909
910
|
const queryCompSetValue = __classPrivateFieldGet(this, _KupInputPanel_cellTypeComponents, "f").get(cellType);
|
|
910
911
|
const queryCompNeedsReset = __classPrivateFieldGet(this, _KupInputPanel_cellTypesNeedingReset, "f").get(cellType);
|
|
911
912
|
if (!queryCompSetValue && !queryCompNeedsReset)
|
|
@@ -921,7 +922,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
921
922
|
}
|
|
922
923
|
}, _KupInputPanel_setData = function _KupInputPanel_setData(cell, column, layout) {
|
|
923
924
|
const defaultProps = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column, layout)), { disabled: !cell.isEditable || column.useAs === kupManager.UseAsValue.KEY, id: column.name });
|
|
924
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
925
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
925
926
|
const _a = cell.data || {}, noDataProps = __rest(_a, ["data"]);
|
|
926
927
|
return cellType !== kupManager.FCellTypes.MULTI_AUTOCOMPLETE &&
|
|
927
928
|
cellType !== kupManager.FCellTypes.MULTI_COMBOBOX
|
|
@@ -981,7 +982,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
981
982
|
fieldLabel = col.title;
|
|
982
983
|
}
|
|
983
984
|
const currentValue = cell.value;
|
|
984
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
985
|
+
const cellType = dom.ketchup.data.cell.getType(col, cell, cell.shape);
|
|
985
986
|
const dataAdapterMap = new Map([
|
|
986
987
|
[kupManager.FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).bind(this)],
|
|
987
988
|
[kupManager.FCellTypes.BUTTON_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter).bind(this)],
|
|
@@ -1009,7 +1010,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1009
1010
|
: null;
|
|
1010
1011
|
}, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
|
|
1011
1012
|
var _a;
|
|
1012
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
1013
|
+
const cellType = dom.ketchup.data.cell.getType(col, cell, cell.shape);
|
|
1013
1014
|
if (cellType === kupManager.FCellTypes.CHIP) {
|
|
1014
1015
|
return {
|
|
1015
1016
|
trailingIcon: true,
|
|
@@ -1453,6 +1454,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1453
1454
|
const fcell = path.find((p) => { var _a; return (_a = p.classList) === null || _a === void 0 ? void 0 : _a.contains('f-cell'); });
|
|
1454
1455
|
return fcell;
|
|
1455
1456
|
}, _KupInputPanel_getEventDetails = function _KupInputPanel_getEventDetails(originalEvent) {
|
|
1457
|
+
var _a;
|
|
1456
1458
|
const fcell = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_findTraversedFCell).call(this, originalEvent);
|
|
1457
1459
|
if (fcell == null) {
|
|
1458
1460
|
return;
|
|
@@ -1461,7 +1463,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1461
1463
|
const props = fcell['kup-get-cell-props']();
|
|
1462
1464
|
const columnName = props.column.name;
|
|
1463
1465
|
const anchor = fcell;
|
|
1464
|
-
const cell = currState.rows[0].cells[columnName];
|
|
1466
|
+
const cell = (_a = currState.rows[0].cells[columnName]) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.cell;
|
|
1465
1467
|
const column = currState.columns.find((c) => c.name == columnName);
|
|
1466
1468
|
const row = currState.rows[0];
|
|
1467
1469
|
return {
|
|
@@ -1481,7 +1483,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1481
1483
|
if (e.button == 2) {
|
|
1482
1484
|
const details = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getEventDetails).call(this, e);
|
|
1483
1485
|
if (details) {
|
|
1484
|
-
this.
|
|
1486
|
+
this.kupInputPanelContextMenu.emit({
|
|
1485
1487
|
comp: this,
|
|
1486
1488
|
id: this.rootElement.id,
|
|
1487
1489
|
details,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-594b0f91.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-5a33fd05.js');
|
|
9
9
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
@@ -9696,9 +9696,10 @@ class KupData {
|
|
|
9696
9696
|
replace(dataset, cell, columns) {
|
|
9697
9697
|
return replaceCell(dataset, cell, columns);
|
|
9698
9698
|
},
|
|
9699
|
-
getType(cell, shape) {
|
|
9700
|
-
var _a;
|
|
9699
|
+
getType(column, cell, shape) {
|
|
9700
|
+
var _a, _b;
|
|
9701
9701
|
const obj = cell.obj;
|
|
9702
|
+
const maxLength = (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.maxLength) !== null && _b !== void 0 ? _b : column === null || column === void 0 ? void 0 : column.maxLength;
|
|
9702
9703
|
if (shape) {
|
|
9703
9704
|
switch (shape.toUpperCase()) {
|
|
9704
9705
|
case FCellShapes.AUTOCOMPLETE:
|
|
@@ -9810,7 +9811,7 @@ class KupData {
|
|
|
9810
9811
|
else if (dom$5.ketchup.objects.isVoCodver(obj)) {
|
|
9811
9812
|
return exports.FCellTypes.ICON;
|
|
9812
9813
|
}
|
|
9813
|
-
else if (
|
|
9814
|
+
else if (maxLength >= 256) {
|
|
9814
9815
|
return exports.FCellTypes.MEMO;
|
|
9815
9816
|
}
|
|
9816
9817
|
else {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-594b0f91.js');
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-028d892b.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
10
|
require('./kup-dates-594b0f91.js');
|
|
11
11
|
require('./f-image-5a33fd05.js');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const fObjectField = require('./f-object-field-
|
|
7
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const fObjectField = require('./f-object-field-60ddab64.js');
|
|
7
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
|
-
require('./f-button-
|
|
9
|
+
require('./f-button-a1b656d2.js');
|
|
10
10
|
require('./f-button-declarations-76ef9f87.js');
|
|
11
11
|
require('./f-image-5a33fd05.js');
|
|
12
|
-
require('./f-text-field-
|
|
12
|
+
require('./f-text-field-028d892b.js');
|
|
13
13
|
require('./kup-dates-594b0f91.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager$1 = require('./kup-manager-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
|
-
const fTextField = require('./f-text-field-
|
|
9
|
+
const fTextField = require('./f-text-field-028d892b.js');
|
|
10
10
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
11
11
|
require('./kup-dates-594b0f91.js');
|
|
12
12
|
require('./f-image-5a33fd05.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-594b0f91.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
require('./kup-dates-594b0f91.js');
|
|
8
8
|
|
|
9
9
|
const kupQlikCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const fButton = require('./f-button-
|
|
8
|
+
const fButton = require('./f-button-a1b656d2.js');
|
|
9
9
|
require('./kup-dates-594b0f91.js');
|
|
10
10
|
require('./f-button-declarations-76ef9f87.js');
|
|
11
11
|
require('./f-image-5a33fd05.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-594b0f91.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const fTypography = require('./f-typography-85d8238a.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
require('./kup-dates-594b0f91.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-f3bdd297.js');
|
|
7
7
|
const fTypography = require('./f-typography-85d8238a.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
const fImage = require('./f-image-5a33fd05.js');
|
|
@@ -335,7 +335,7 @@ export class KupAutocomplete {
|
|
|
335
335
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
|
|
336
336
|
}
|
|
337
337
|
render() {
|
|
338
|
-
var _a;
|
|
338
|
+
var _a, _b;
|
|
339
339
|
const props = {
|
|
340
340
|
alert: this.alert,
|
|
341
341
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
@@ -369,9 +369,9 @@ export class KupAutocomplete {
|
|
|
369
369
|
};
|
|
370
370
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
371
371
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
372
|
-
return (h(Host, { key: '
|
|
372
|
+
return (h(Host, { key: 'dcf5fb54a29f7417eb03a900996212ebed8ade9b', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: '841899fcb8b4d3220ac82b14311f2b4d4d69acbd' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd7f7c3309a92552d8a0199004ab5fed75d492275', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: '60f9bc7ec98b83792059b14e6f9e3ad12052326f' }, props, { icon: this.showDropDownIcon
|
|
373
373
|
? KupThemeIconValues.SEARCH
|
|
374
|
-
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
374
|
+
: null, trailingIcon: true }, (_b = this.data) === null || _b === void 0 ? void 0 : _b['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
375
375
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
376
376
|
__classPrivateFieldSet(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
|
|
377
377
|
}, onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
|
|
@@ -1348,13 +1348,13 @@ export class KupAutocomplete {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
_KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(), _KupAutocomplete_kupManager = new WeakMap(), _KupAutocomplete_textfieldWrapper = new WeakMap(), _KupAutocomplete_textfieldEl = new WeakMap(), _KupAutocomplete_clickCb = new WeakMap(), _KupAutocomplete_inputTimeout = new WeakMap(), _KupAutocomplete_instances = new WeakSet(), _KupAutocomplete_openList = function _KupAutocomplete_openList(forceOpen) {
|
|
1351
|
-
var _a, _b, _c, _d;
|
|
1351
|
+
var _a, _b, _c, _d, _e;
|
|
1352
1352
|
if (forceOpen != true &&
|
|
1353
1353
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
1354
1354
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
1355
1355
|
return false;
|
|
1356
1356
|
}
|
|
1357
|
-
if (forceOpen && !((_b = (_a = this.data['kup-list']) === null ||
|
|
1357
|
+
if (forceOpen && !((_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list']) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
1358
1358
|
this.kupIconClick.emit({
|
|
1359
1359
|
comp: this,
|
|
1360
1360
|
id: this.rootElement.id,
|
|
@@ -1363,8 +1363,8 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1363
1363
|
open: true,
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
|
-
const hasError = ((
|
|
1367
|
-
const hasAlert = ((
|
|
1366
|
+
const hasError = ((_d = this.error) === null || _d === void 0 ? void 0 : _d.trim().length) > 0;
|
|
1367
|
+
const hasAlert = ((_e = this.alert) === null || _e === void 0 ? void 0 : _e.trim().length) > 0;
|
|
1368
1368
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
1369
1369
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
1370
1370
|
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
@@ -1397,11 +1397,12 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1397
1397
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
1398
1398
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
1399
1399
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1400
|
+
var _a;
|
|
1400
1401
|
if (idIn && idInDecode) {
|
|
1401
1402
|
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
1402
1403
|
}
|
|
1403
1404
|
else {
|
|
1404
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
1405
|
+
const ret = consistencyCheck(idIn, (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
1405
1406
|
if ((ret.exists || this.allowInconsistentValues) &&
|
|
1406
1407
|
eventShouldSetValue) {
|
|
1407
1408
|
this.value = ret.value;
|
|
@@ -1416,5 +1417,6 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1416
1417
|
return ret;
|
|
1417
1418
|
}
|
|
1418
1419
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
1419
|
-
|
|
1420
|
+
var _a;
|
|
1421
|
+
return (h("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
1420
1422
|
};
|
|
@@ -967,7 +967,7 @@ export class KupBox {
|
|
|
967
967
|
didLoadInteractables() {
|
|
968
968
|
this.interactableTouch.push(this.boxContainer);
|
|
969
969
|
const tapCb = (e) => {
|
|
970
|
-
var _a;
|
|
970
|
+
var _a, _b;
|
|
971
971
|
if (this.hold) {
|
|
972
972
|
this.hold = false;
|
|
973
973
|
return;
|
|
@@ -982,12 +982,16 @@ export class KupBox {
|
|
|
982
982
|
clone[key] = e[key];
|
|
983
983
|
}
|
|
984
984
|
const details = this.clickHandler(clone);
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
985
|
+
// If the box or a cell without fun is clicked
|
|
986
|
+
// emit the box click, else leave the managment to onKup-cell-click handler
|
|
987
|
+
if (!((_a = details === null || details === void 0 ? void 0 : details.cell) === null || _a === void 0 ? void 0 : _a['fun'])) {
|
|
988
|
+
this.kupBoxClick.emit({
|
|
989
|
+
comp: this,
|
|
990
|
+
id: this.rootElement.id,
|
|
991
|
+
row: details.row,
|
|
992
|
+
column: (_b = details.column) === null || _b === void 0 ? void 0 : _b.name,
|
|
993
|
+
});
|
|
994
|
+
}
|
|
991
995
|
break;
|
|
992
996
|
case 2:
|
|
993
997
|
this.kupBoxContextMenu.emit({
|
|
@@ -526,7 +526,13 @@ export class KupDataTable {
|
|
|
526
526
|
if (this.data.rows.filter((r) => r.id == undefined).length) {
|
|
527
527
|
identify(this.getRows());
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
// Group expansion is triggered at the end of decorateAndInitForUpdTable()
|
|
530
|
+
// instead, so the grouped row tree (which clones rows, severing the live
|
|
531
|
+
// reference to this.data.rows) is rebuilt from already-decorated and
|
|
532
|
+
// already-patched (pendingRowsToUpdate) cell data. Doing it here, before
|
|
533
|
+
// decorateDataTable() runs, caused cells in grouped tables to keep a
|
|
534
|
+
// stale cell.data missing the 'kup-list'/'kup-text-field' slot data,
|
|
535
|
+
// crashing kup-autocomplete's consistency check on the next value change.
|
|
530
536
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
531
537
|
}
|
|
532
538
|
decorateAndInitForUpdTable() {
|
|
@@ -564,6 +570,9 @@ export class KupDataTable {
|
|
|
564
570
|
__classPrivateFieldSet(this, _KupDataTable_insertedRowIds, [], "f");
|
|
565
571
|
__classPrivateFieldSet(this, _KupDataTable_modifiedRowsIds, [], "f");
|
|
566
572
|
}
|
|
573
|
+
// Runs after pendingRowsToUpdate patching and decorateDataTable() above,
|
|
574
|
+
// so grouped rows are (re)built from fully decorated, up-to-date cells.
|
|
575
|
+
this.expandGroupsHandler();
|
|
567
576
|
}
|
|
568
577
|
computeMaxRowsPerPage() {
|
|
569
578
|
var _a, _b, _c, _d;
|
|
@@ -1583,7 +1592,7 @@ export class KupDataTable {
|
|
|
1583
1592
|
__classPrivateFieldSet(this, _KupDataTable_sizedColumns, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
1584
1593
|
let rows = null;
|
|
1585
1594
|
if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
1586
|
-
rows = (h("tr", { key: '
|
|
1595
|
+
rows = (h("tr", { key: '222a8279fe407575382a65c83e33fd4b2569014a', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '9c5ed4321284ebbec8dcab42d8c833b22a5e5a8a', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
1587
1596
|
}
|
|
1588
1597
|
else {
|
|
1589
1598
|
rows = [];
|
|
@@ -1659,7 +1668,7 @@ export class KupDataTable {
|
|
|
1659
1668
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
1660
1669
|
});
|
|
1661
1670
|
}
|
|
1662
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
1671
|
+
groupChips = h(FChip, Object.assign({ key: '3dcf15fd1edb4038a0bde0f7832ecc63030917ba' }, props));
|
|
1663
1672
|
}
|
|
1664
1673
|
}
|
|
1665
1674
|
const tableClass = {
|
|
@@ -1691,7 +1700,7 @@ export class KupDataTable {
|
|
|
1691
1700
|
if (this.headerIsPersistent &&
|
|
1692
1701
|
this.tableHeight === undefined &&
|
|
1693
1702
|
this.tableWidth === undefined) {
|
|
1694
|
-
stickyEl = (h("sticky-header", { key: '
|
|
1703
|
+
stickyEl = (h("sticky-header", { key: '012a49ef4e86f9653a7f019e458a3726cd848c96', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '8d7af5595a3a85ba1e6d2b0b20f745212322c347' }, h("tr-sticky", { key: 'f33ccbb7ec7dfe9dd98f6b70faf73540a4b0df31' }, stickyHeader))));
|
|
1695
1704
|
}
|
|
1696
1705
|
let belowClass = 'below-wrapper';
|
|
1697
1706
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -1737,7 +1746,7 @@ export class KupDataTable {
|
|
|
1737
1746
|
const useGlobalFilter = !this.legacyLook &&
|
|
1738
1747
|
(this.globalFilter ||
|
|
1739
1748
|
this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
1740
|
-
const compCreated = (h(Host, { key: '
|
|
1749
|
+
const compCreated = (h(Host, { key: '5264eb4129ec9fdca78982b3eacf4dba3fd80fde', "onKup-drop": (e) => {
|
|
1741
1750
|
this.kupDataTableDrop.emit(e.detail);
|
|
1742
1751
|
}, "onKup-cell-input": (e) => {
|
|
1743
1752
|
autoselectOnAction(e);
|
|
@@ -1756,11 +1765,11 @@ export class KupDataTable {
|
|
|
1756
1765
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
1757
1766
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
1758
1767
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
1759
|
-
} }, h("style", { key: '
|
|
1768
|
+
} }, h("style", { key: '7c422ef8e9ef0e9a73fa7e4ff2d429babac78432' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h("div", { key: 'e7665c4b6a220ab94ec6a78c9e821e3480a9e95e', id: componentWrapperId, class: wrapClass }, h("div", { key: 'b160e64031639cb6319bc43aac7b08e6c92a83a3', class: "group-wrapper" }, groupChips), h("div", { key: '53d1d060d86f15869a3448330348c6f1d5ea89dc', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
1760
1769
|
const t = event.target;
|
|
1761
1770
|
window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
1762
1771
|
__classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
1763
|
-
} }))) : null, paginatorTop && (h("div", { key: '
|
|
1772
|
+
} }))) : null, paginatorTop && (h("div", { key: '2c200acb217f83755654023dd824591669fe1f9e', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
1764
1773
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
1765
1774
|
this.kupSave.emit({
|
|
1766
1775
|
comp: this,
|
|
@@ -1810,9 +1819,9 @@ export class KupDataTable {
|
|
|
1810
1819
|
this.data.rows.unshift(row);
|
|
1811
1820
|
await this.refresh(true);
|
|
1812
1821
|
}
|
|
1813
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
1822
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '1c87d7627e2e8eca3805b3acf8579fcf4a6a8cfb', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
1814
1823
|
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
1815
|
-
: null), h("div", { key: '
|
|
1824
|
+
: null), h("div", { key: '9ee1376d49777a9181bd638713ac773eb600b850', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
1816
1825
|
? [
|
|
1817
1826
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
1818
1827
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -1821,7 +1830,7 @@ export class KupDataTable {
|
|
|
1821
1830
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
1822
1831
|
this.renderCustomizePanel(),
|
|
1823
1832
|
]
|
|
1824
|
-
: null, h("table", { key: '
|
|
1833
|
+
: null, h("table", { key: 'b0154ffe6d1bcdb073ed8a9c5083c5fcfb1d4222', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
1825
1834
|
ev.stopPropagation();
|
|
1826
1835
|
}, onPointerDown: (e) => {
|
|
1827
1836
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -1829,7 +1838,7 @@ export class KupDataTable {
|
|
|
1829
1838
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
1830
1839
|
}, onContextMenu: (e) => {
|
|
1831
1840
|
e.preventDefault();
|
|
1832
|
-
} }, h("thead", { key: '
|
|
1841
|
+
} }, h("thead", { key: 'd0b45272e078fb72046591df5cee832c3ad01b40', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '5b7db1061b419177488d7f6227a39eb5a9b07428' }, header)), h("tbody", { key: '02881d35ba957b56a84fc3ee8468a04bd6be3d82' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
1833
1842
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
1834
1843
|
return compCreated;
|
|
1835
1844
|
}
|
|
@@ -6113,7 +6122,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_cellToFocus = new WeakM
|
|
|
6113
6122
|
}, _KupDataTable_copyCellValueInColumnHandler = function _KupDataTable_copyCellValueInColumnHandler(e, el) {
|
|
6114
6123
|
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(el, this.rootElement));
|
|
6115
6124
|
const { cell, column, row } = details;
|
|
6116
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
6125
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
6117
6126
|
if (!TypesToDuplicate.includes(cellType)) {
|
|
6118
6127
|
return;
|
|
6119
6128
|
}
|
|
@@ -344,7 +344,7 @@ export class KupForm {
|
|
|
344
344
|
return (h("td", { class: `form__label form__label--${alignment}`, style: style }, h("span", null, label)));
|
|
345
345
|
}
|
|
346
346
|
function setPlaceholderLabel() {
|
|
347
|
-
switch (dom.ketchup.data.cell.getType(cell, cell.shape || column.shape || null)) {
|
|
347
|
+
switch (dom.ketchup.data.cell.getType(column, cell, cell.shape || column.shape || null)) {
|
|
348
348
|
case FCellTypes.AUTOCOMPLETE:
|
|
349
349
|
case FCellTypes.COLOR_PICKER:
|
|
350
350
|
case FCellTypes.COMBOBOX:
|
|
@@ -409,7 +409,7 @@ export class KupForm {
|
|
|
409
409
|
render() {
|
|
410
410
|
let formContent = null;
|
|
411
411
|
if (this.data.rows.length === 0) {
|
|
412
|
-
formContent = (h("p", { key: '
|
|
412
|
+
formContent = (h("p", { key: 'ea815da488cf3ac3ac14510a9526b09417d39ebf' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
413
413
|
}
|
|
414
414
|
else {
|
|
415
415
|
const rows = this.data.rows;
|
|
@@ -420,7 +420,7 @@ export class KupForm {
|
|
|
420
420
|
formContent.push(this.renderRow(rows[cnt++]));
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
return (h(Host, { key: '
|
|
423
|
+
return (h(Host, { key: '87eec5120123fb0d89bbc454825ab9717f8cc57a' }, h("style", { key: '17bd0739b753023d6636496d93852e8b5a8f3e77' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '5ff34b363c16a369a175f4e166fcb8acd5880139', id: componentWrapperId }, formContent)));
|
|
424
424
|
}
|
|
425
425
|
disconnectedCallback() {
|
|
426
426
|
this.kupManager.language.unregister(this);
|