@sme.up/ketchup 11.0.0-SNAPSHOT-20250324141942 → 11.0.0-SNAPSHOT-20250325155054
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/kup-autocomplete_29.cjs.entry.js +28 -22
- package/dist/cjs/kup-box.cjs.entry.js +4 -1
- package/dist/collection/components/kup-box/kup-box.js +24 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +20 -17
- package/dist/collection/components/kup-tree/kup-tree.js +28 -5
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-activity-timeline.js +1 -1
- 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 +1 -1
- package/dist/components/kup-card-list.js +2 -2
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +2 -2
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +3 -3
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-object-field.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- 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 +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/{p-ce3909bd.js → p-4d9e9263.js} +28 -22
- package/dist/components/{p-8cb07986.js → p-8de4ca9c.js} +1 -1
- package/dist/components/{p-0e3b7be7.js → p-ca4214be.js} +1 -1
- package/dist/components/{p-37f8538f.js → p-d6009d14.js} +5 -2
- package/dist/components/{p-d756bd7a.js → p-e07d4581.js} +1 -1
- package/dist/esm/kup-autocomplete_29.entry.js +28 -22
- package/dist/esm/kup-box.entry.js +4 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-955cda21.entry.js +9 -0
- package/dist/ketchup/p-a6299653.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box.d.ts +2 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +2 -1
- package/dist/types/components.d.ts +6 -2
- package/package.json +1 -1
- package/dist/ketchup/p-06facdd1.entry.js +0 -9
- package/dist/ketchup/p-411f9eb5.entry.js +0 -1
|
@@ -14407,6 +14407,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
14407
14407
|
this.kupTreeNodeDblClick = createEvent(this, "kup-tree-nodedblclick", 6);
|
|
14408
14408
|
this.kupTreeDynamicMassExpansion = createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
14409
14409
|
this.kupColumnRemove = createEvent(this, "kup-tree-columnremove", 6);
|
|
14410
|
+
this.kupTreeCellClick = createEvent(this, "kup-tree-cell-click", 6);
|
|
14410
14411
|
_KupTree_instances.add(this);
|
|
14411
14412
|
/*-------------------------------------------------*/
|
|
14412
14413
|
/* S t a t e s */
|
|
@@ -15735,17 +15736,19 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
15735
15736
|
this.data &&
|
|
15736
15737
|
this.data.length &&
|
|
15737
15738
|
this.data.length > 0) {
|
|
15738
|
-
filterField = (h$1("div", { key: '
|
|
15739
|
+
filterField = (h$1("div", { key: '0422a3005ee9c5685566d0d77e6499a50a587a49', id: "global-filter" }, h$1("kup-text-field", { key: '90beab087ac4d174ff0847a4c617af5c0d84b9d0', fullWidth: true, label: __classPrivateFieldGet$a(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
15739
15740
|
window.clearTimeout(this.globalFilterTimeout);
|
|
15740
15741
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
15741
15742
|
} })));
|
|
15742
15743
|
}
|
|
15743
|
-
return (h$1(Host, { key: '
|
|
15744
|
-
|
|
15744
|
+
return (h$1(Host, { key: '6725bc80be8f5bd265bd55f38400dd1640a36ec1', "onKup-cell-click": (e) => {
|
|
15745
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
15746
|
+
} }, h$1("style", { key: '8d1dcd9a81e911fce0030ed34cda4b071f7ddd37' }, __classPrivateFieldGet$a(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: '43aa4214b531312c802a70b0d67fa82d252e1f84', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h$1("div", { key: '9459103c8a2b5a3326712fb6d61c1feffcea60f2', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
15747
|
+
el) }, h$1("table", { key: 'e1f9b2037f610111e8f5ca79cb61976de010cd71', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
15745
15748
|
e.preventDefault();
|
|
15746
|
-
} }, h$1("thead", { key: '
|
|
15749
|
+
} }, h$1("thead", { key: '24a230c7466525265a30e8a0a4e3506e4709d194', class: {
|
|
15747
15750
|
'header--is-visible': visibleHeader,
|
|
15748
|
-
} }, h$1("tr", { key: '
|
|
15751
|
+
} }, h$1("tr", { key: '52027e18a599ce91ba19c35767d308d86d22e517' }, visibleHeader ? this.renderHeader() : null)), h$1("tbody", { key: '6e1fe220837d197e2c6ab1262a3c49a548332600' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
15749
15752
|
this.columns
|
|
15750
15753
|
? this.renderFooter()
|
|
15751
15754
|
: null)))));
|
|
@@ -23666,10 +23669,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
23666
23669
|
});
|
|
23667
23670
|
//======== Event Listeners ========
|
|
23668
23671
|
_KupDataTable_horNav.set(this, (isRight) => {
|
|
23669
|
-
if (!__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f")
|
|
23672
|
+
if (!__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
23673
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
23670
23674
|
return;
|
|
23671
23675
|
}
|
|
23672
|
-
|
|
23676
|
+
//this.#resetSelectedRows(true);
|
|
23673
23677
|
const tr = __classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
23674
23678
|
const cells = tr.querySelectorAll('.f-cell');
|
|
23675
23679
|
const oldIndex = Array.from(cells).indexOf(__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
@@ -23682,14 +23686,15 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
23682
23686
|
}
|
|
23683
23687
|
const focused = cells[newIndex];
|
|
23684
23688
|
const focusedProps = focused['kup-get-cell-props']();
|
|
23685
|
-
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
23689
|
+
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
23686
23690
|
__classPrivateFieldSet$2(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
23687
23691
|
});
|
|
23688
23692
|
_KupDataTable_verNav.set(this, (isDown) => {
|
|
23689
|
-
if (!__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f")
|
|
23693
|
+
if (!__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
23694
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
23690
23695
|
return;
|
|
23691
23696
|
}
|
|
23692
|
-
|
|
23697
|
+
//this.#resetSelectedRows(true);
|
|
23693
23698
|
const tr = __classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
23694
23699
|
const cellXIndex = Array.from(tr.querySelectorAll('.f-cell')).indexOf(__classPrivateFieldGet$3(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
23695
23700
|
const rows = tr.parentElement.querySelectorAll('tr:not(.group)');
|
|
@@ -23706,7 +23711,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
23706
23711
|
const focused = focusedCells[cellXIndex];
|
|
23707
23712
|
const focusedProps = focused['kup-get-cell-props']();
|
|
23708
23713
|
__classPrivateFieldSet$2(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
23709
|
-
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
23714
|
+
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
23710
23715
|
});
|
|
23711
23716
|
_KupDataTable_onKupKeyDown.set(this, (e) => {
|
|
23712
23717
|
const isHorizontal = e.key === 'ArrowLeft' || e.key === 'ArrowRight';
|
|
@@ -24912,7 +24917,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24912
24917
|
}
|
|
24913
24918
|
let rows = null;
|
|
24914
24919
|
if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
24915
|
-
rows = (h$1("tr", { key: '
|
|
24920
|
+
rows = (h$1("tr", { key: '91a523c871298307ee598626fae5d567fd4c5e97', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '7dfcd18db445a1a9103b5aa5d0c5559dce598a92', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
24916
24921
|
}
|
|
24917
24922
|
else {
|
|
24918
24923
|
rows = [];
|
|
@@ -24977,7 +24982,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24977
24982
|
for (let i = 0; i < chipsData.length; i++) {
|
|
24978
24983
|
props.onIconClick.push(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
24979
24984
|
}
|
|
24980
|
-
groupChips = h$1(FChip, Object.assign({ key: '
|
|
24985
|
+
groupChips = h$1(FChip, Object.assign({ key: '57245c44e1aaed782041f538a76d7be02aeea879' }, props));
|
|
24981
24986
|
}
|
|
24982
24987
|
}
|
|
24983
24988
|
const tableClass = {
|
|
@@ -25009,7 +25014,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25009
25014
|
if (this.headerIsPersistent &&
|
|
25010
25015
|
this.tableHeight === undefined &&
|
|
25011
25016
|
this.tableWidth === undefined) {
|
|
25012
|
-
stickyEl = (h$1("sticky-header", { key: '
|
|
25017
|
+
stickyEl = (h$1("sticky-header", { key: '3e581e06cda013d5ae55addddfba1a5b4af3122f', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: 'f28e5407749762b5f424a51cad137948d244691a' }, h$1("tr-sticky", { key: '526cbbb76c543ffa896ad92fff855fe4a7865aaf' }, stickyHeader))));
|
|
25013
25018
|
}
|
|
25014
25019
|
let belowClass = 'below-wrapper';
|
|
25015
25020
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -25055,7 +25060,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25055
25060
|
const useGlobalFilter = !this.legacyLook &&
|
|
25056
25061
|
(this.globalFilter ||
|
|
25057
25062
|
this.getRows().length > __classPrivateFieldGet$3(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
25058
|
-
const compCreated = (h$1(Host, { key: '
|
|
25063
|
+
const compCreated = (h$1(Host, { key: '86499e7978207bc06afddb2821780c5b56b49729', "onKup-drop": (e) => {
|
|
25059
25064
|
this.kupDataTableDrop.emit(e.detail);
|
|
25060
25065
|
}, "onKup-cell-input": (e) => {
|
|
25061
25066
|
autoselectOnAction(e);
|
|
@@ -25070,11 +25075,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25070
25075
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
25071
25076
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
25072
25077
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
25073
|
-
} }, h$1("style", { key: '
|
|
25078
|
+
} }, h$1("style", { key: '7ae316542bfb6f75519b49653621b87e1f5d6b62' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h$1("div", { key: '8203865d037b801ac76165c9fb27643603925466', id: componentWrapperId, class: wrapClass }, h$1("div", { key: '1fb8086e0bd3c5f80d5e6b6d770bfe8f08312632', class: "group-wrapper" }, groupChips), h$1("div", { key: '0ee5e2cc2a9f57e906ac0a1aeedc171e47f20c62', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
25074
25079
|
const t = event.target;
|
|
25075
25080
|
window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
25076
25081
|
__classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
25077
|
-
} }))) : null, h$1("div", { key: '
|
|
25082
|
+
} }))) : null, h$1("div", { key: '0079ff58b69002c4298b3289cc4e41e98c1bb9a2', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
25078
25083
|
this.selectedRows.length > 0 ? (h$1(FButton, { icon: "save", onClick: () => {
|
|
25079
25084
|
this.kupSave.emit({
|
|
25080
25085
|
comp: this,
|
|
@@ -25124,9 +25129,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25124
25129
|
this.data.rows.unshift(row);
|
|
25125
25130
|
await this.refresh(true);
|
|
25126
25131
|
}
|
|
25127
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '
|
|
25132
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '8d02d31a515e5f69c84f63a6b956c9ad602ced04', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
25128
25133
|
? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
25129
|
-
: null), h$1("div", { key: '
|
|
25134
|
+
: null), h$1("div", { key: '418fba73b6659c9fbf09620c9018367d09d7b7b7', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
25130
25135
|
? [
|
|
25131
25136
|
h$1("div", { class: "settings-trigger", onClick: () => {
|
|
25132
25137
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -25135,7 +25140,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25135
25140
|
} }, h$1(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
25136
25141
|
this.renderCustomizePanel(),
|
|
25137
25142
|
]
|
|
25138
|
-
: null, h$1("table", { key: '
|
|
25143
|
+
: null, h$1("table", { key: 'a2ec91e8500538e064e3bca3c1d8a388f9017212', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$3(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
25139
25144
|
ev.stopPropagation();
|
|
25140
25145
|
}, onPointerDown: (e) => {
|
|
25141
25146
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -25143,7 +25148,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25143
25148
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
25144
25149
|
}, onContextMenu: (e) => {
|
|
25145
25150
|
e.preventDefault();
|
|
25146
|
-
} }, h$1("thead", { key: '
|
|
25151
|
+
} }, h$1("thead", { key: 'd74ba1860f15295dfc8fdfd1778037b648f923e2', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: '57bb52d7ccc9d756faa752d9ce08d100d5f7aef2' }, header)), h$1("tbody", { key: '43fefe0ec6dddde4dc692a8f6f79ed7693d5bffa' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
25147
25152
|
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
25148
25153
|
return compCreated;
|
|
25149
25154
|
}
|
|
@@ -27056,7 +27061,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
27056
27061
|
this.currentRowsPerPage = newRows;
|
|
27057
27062
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
27058
27063
|
}
|
|
27059
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
27064
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
27060
27065
|
// selecting row
|
|
27061
27066
|
if (!row.unselectable) {
|
|
27062
27067
|
switch (this.selection) {
|
|
@@ -27095,6 +27100,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
27095
27100
|
selectedRows: this.selectedRows,
|
|
27096
27101
|
clickedRow: row,
|
|
27097
27102
|
clickedColumn,
|
|
27103
|
+
isKeyboardNav,
|
|
27098
27104
|
});
|
|
27099
27105
|
}
|
|
27100
27106
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host, g as getAssetPath } from './p-ef8cbd35.js';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupThemeColorValues, u as KupDebugCategory, L as getColumnByName, D as KupDataNewColumnTypes } from './p-b304b91c.js';
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-4d9e9263.js';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-b304b91c.js';
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-4d9e9263.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-grid component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
2
|
import { k as kupManagerInstance, ad as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, d as KupLanguageGeneric, c as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, ak as KupDragEffect, az as kupDraggableAttr, am as KupDropEventTypes, J as KupLanguageSearch } from './p-b304b91c.js';
|
|
3
|
-
import { H as filterRows, I as paginateRows, E as sortRows, J as pageChange, L as rowsPerPageChange, F as FImage, N as FCell, O as FChip, P as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, Q as FPaginator } from './p-
|
|
3
|
+
import { H as filterRows, I as paginateRows, E as sortRows, J as pageChange, L as rowsPerPageChange, F as FImage, N as FCell, O as FChip, P as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, Q as FPaginator } from './p-4d9e9263.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-box component.
|
|
@@ -99,6 +99,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
99
99
|
this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
|
|
100
100
|
this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
|
|
101
101
|
this.kupLoadMoreClick = createEvent(this, "kup-box-loadmoreclick", 6);
|
|
102
|
+
this.kupBoxCellClick = createEvent(this, "kup-box-cell-click", 6);
|
|
102
103
|
_KupBox_instances.add(this);
|
|
103
104
|
this.state = new KupBoxState();
|
|
104
105
|
/*-------------------------------------------------*/
|
|
@@ -1256,7 +1257,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1256
1257
|
boxContent.push(this.renderRow(rows[cnt++]));
|
|
1257
1258
|
}
|
|
1258
1259
|
}
|
|
1259
|
-
return (h(Host,
|
|
1260
|
+
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1261
|
+
this.kupBoxCellClick.emit(e.detail);
|
|
1262
|
+
} }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1260
1263
|
e.preventDefault();
|
|
1261
1264
|
}, ref: (el) => (this.boxContainer =
|
|
1262
1265
|
el) }, boxContent)))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps } from './p-b304b91c.js';
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t } from './p-4d9e9263.js';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './p-5882e117.js';
|
|
5
5
|
|
|
6
6
|
var toastuiEditor = {exports: {}};
|
|
@@ -8738,10 +8738,11 @@ const KupDataTable = class {
|
|
|
8738
8738
|
});
|
|
8739
8739
|
//======== Event Listeners ========
|
|
8740
8740
|
_KupDataTable_horNav.set(this, (isRight) => {
|
|
8741
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8741
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8742
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
8742
8743
|
return;
|
|
8743
8744
|
}
|
|
8744
|
-
|
|
8745
|
+
//this.#resetSelectedRows(true);
|
|
8745
8746
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8746
8747
|
const cells = tr.querySelectorAll('.f-cell');
|
|
8747
8748
|
const oldIndex = Array.from(cells).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
@@ -8754,14 +8755,15 @@ const KupDataTable = class {
|
|
|
8754
8755
|
}
|
|
8755
8756
|
const focused = cells[newIndex];
|
|
8756
8757
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8757
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8758
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8758
8759
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8759
8760
|
});
|
|
8760
8761
|
_KupDataTable_verNav.set(this, (isDown) => {
|
|
8761
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8762
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8763
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
8762
8764
|
return;
|
|
8763
8765
|
}
|
|
8764
|
-
|
|
8766
|
+
//this.#resetSelectedRows(true);
|
|
8765
8767
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8766
8768
|
const cellXIndex = Array.from(tr.querySelectorAll('.f-cell')).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
8767
8769
|
const rows = tr.parentElement.querySelectorAll('tr:not(.group)');
|
|
@@ -8778,7 +8780,7 @@ const KupDataTable = class {
|
|
|
8778
8780
|
const focused = focusedCells[cellXIndex];
|
|
8779
8781
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8780
8782
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8781
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8783
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8782
8784
|
});
|
|
8783
8785
|
_KupDataTable_onKupKeyDown.set(this, (e) => {
|
|
8784
8786
|
const isHorizontal = e.key === 'ArrowLeft' || e.key === 'ArrowRight';
|
|
@@ -9984,7 +9986,7 @@ const KupDataTable = class {
|
|
|
9984
9986
|
}
|
|
9985
9987
|
let rows = null;
|
|
9986
9988
|
if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9987
|
-
rows = (h("tr", { key: '
|
|
9989
|
+
rows = (h("tr", { key: '91a523c871298307ee598626fae5d567fd4c5e97', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '7dfcd18db445a1a9103b5aa5d0c5559dce598a92', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9988
9990
|
}
|
|
9989
9991
|
else {
|
|
9990
9992
|
rows = [];
|
|
@@ -10049,7 +10051,7 @@ const KupDataTable = class {
|
|
|
10049
10051
|
for (let i = 0; i < chipsData.length; i++) {
|
|
10050
10052
|
props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
10051
10053
|
}
|
|
10052
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
10054
|
+
groupChips = h(FChip, Object.assign({ key: '57245c44e1aaed782041f538a76d7be02aeea879' }, props));
|
|
10053
10055
|
}
|
|
10054
10056
|
}
|
|
10055
10057
|
const tableClass = {
|
|
@@ -10081,7 +10083,7 @@ const KupDataTable = class {
|
|
|
10081
10083
|
if (this.headerIsPersistent &&
|
|
10082
10084
|
this.tableHeight === undefined &&
|
|
10083
10085
|
this.tableWidth === undefined) {
|
|
10084
|
-
stickyEl = (h("sticky-header", { key: '
|
|
10086
|
+
stickyEl = (h("sticky-header", { key: '3e581e06cda013d5ae55addddfba1a5b4af3122f', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'f28e5407749762b5f424a51cad137948d244691a' }, h("tr-sticky", { key: '526cbbb76c543ffa896ad92fff855fe4a7865aaf' }, stickyHeader))));
|
|
10085
10087
|
}
|
|
10086
10088
|
let belowClass = 'below-wrapper';
|
|
10087
10089
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10127,7 +10129,7 @@ const KupDataTable = class {
|
|
|
10127
10129
|
const useGlobalFilter = !this.legacyLook &&
|
|
10128
10130
|
(this.globalFilter ||
|
|
10129
10131
|
this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10130
|
-
const compCreated = (h(Host, { key: '
|
|
10132
|
+
const compCreated = (h(Host, { key: '86499e7978207bc06afddb2821780c5b56b49729', "onKup-drop": (e) => {
|
|
10131
10133
|
this.kupDataTableDrop.emit(e.detail);
|
|
10132
10134
|
}, "onKup-cell-input": (e) => {
|
|
10133
10135
|
autoselectOnAction(e);
|
|
@@ -10142,11 +10144,11 @@ const KupDataTable = class {
|
|
|
10142
10144
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10143
10145
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10144
10146
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10145
|
-
} }, h("style", { key: '
|
|
10147
|
+
} }, h("style", { key: '7ae316542bfb6f75519b49653621b87e1f5d6b62' }, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '8203865d037b801ac76165c9fb27643603925466', id: componentWrapperId, class: wrapClass }, h("div", { key: '1fb8086e0bd3c5f80d5e6b6d770bfe8f08312632', class: "group-wrapper" }, groupChips), h("div", { key: '0ee5e2cc2a9f57e906ac0a1aeedc171e47f20c62', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
10146
10148
|
const t = event.target;
|
|
10147
10149
|
window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10148
10150
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10149
|
-
} }))) : null, h("div", { key: '
|
|
10151
|
+
} }))) : null, h("div", { key: '0079ff58b69002c4298b3289cc4e41e98c1bb9a2', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10150
10152
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
10151
10153
|
this.kupSave.emit({
|
|
10152
10154
|
comp: this,
|
|
@@ -10196,9 +10198,9 @@ const KupDataTable = class {
|
|
|
10196
10198
|
this.data.rows.unshift(row);
|
|
10197
10199
|
await this.refresh(true);
|
|
10198
10200
|
}
|
|
10199
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
10201
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '8d02d31a515e5f69c84f63a6b956c9ad602ced04', class: "droparea", ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
10200
10202
|
? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10201
|
-
: null), h("div", { key: '
|
|
10203
|
+
: null), h("div", { key: '418fba73b6659c9fbf09620c9018367d09d7b7b7', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10202
10204
|
? [
|
|
10203
10205
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
10204
10206
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10207,7 +10209,7 @@ const KupDataTable = class {
|
|
|
10207
10209
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10208
10210
|
this.renderCustomizePanel(),
|
|
10209
10211
|
]
|
|
10210
|
-
: null, h("table", { key: '
|
|
10212
|
+
: null, h("table", { key: 'a2ec91e8500538e064e3bca3c1d8a388f9017212', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$7(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
10211
10213
|
ev.stopPropagation();
|
|
10212
10214
|
}, onPointerDown: (e) => {
|
|
10213
10215
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -10215,7 +10217,7 @@ const KupDataTable = class {
|
|
|
10215
10217
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
10216
10218
|
}, onContextMenu: (e) => {
|
|
10217
10219
|
e.preventDefault();
|
|
10218
|
-
} }, h("thead", { key: '
|
|
10220
|
+
} }, h("thead", { key: 'd74ba1860f15295dfc8fdfd1778037b648f923e2', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '57bb52d7ccc9d756faa752d9ce08d100d5f7aef2' }, header)), h("tbody", { key: '43fefe0ec6dddde4dc692a8f6f79ed7693d5bffa' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10219
10221
|
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10220
10222
|
return compCreated;
|
|
10221
10223
|
}
|
|
@@ -12009,7 +12011,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12009
12011
|
this.currentRowsPerPage = newRows;
|
|
12010
12012
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
12011
12013
|
}
|
|
12012
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
12014
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
12013
12015
|
// selecting row
|
|
12014
12016
|
if (!row.unselectable) {
|
|
12015
12017
|
switch (this.selection) {
|
|
@@ -12048,6 +12050,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12048
12050
|
selectedRows: this.selectedRows,
|
|
12049
12051
|
clickedRow: row,
|
|
12050
12052
|
clickedColumn,
|
|
12053
|
+
isKeyboardNav,
|
|
12051
12054
|
});
|
|
12052
12055
|
}
|
|
12053
12056
|
}
|
|
@@ -19024,6 +19027,7 @@ const KupTree = class {
|
|
|
19024
19027
|
this.kupTreeNodeDblClick = createEvent(this, "kup-tree-nodedblclick", 6);
|
|
19025
19028
|
this.kupTreeDynamicMassExpansion = createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
19026
19029
|
this.kupColumnRemove = createEvent(this, "kup-tree-columnremove", 6);
|
|
19030
|
+
this.kupTreeCellClick = createEvent(this, "kup-tree-cell-click", 6);
|
|
19027
19031
|
_KupTree_instances.add(this);
|
|
19028
19032
|
/*-------------------------------------------------*/
|
|
19029
19033
|
/* S t a t e s */
|
|
@@ -20352,17 +20356,19 @@ const KupTree = class {
|
|
|
20352
20356
|
this.data &&
|
|
20353
20357
|
this.data.length &&
|
|
20354
20358
|
this.data.length > 0) {
|
|
20355
|
-
filterField = (h("div", { key: '
|
|
20359
|
+
filterField = (h("div", { key: '0422a3005ee9c5685566d0d77e6499a50a587a49', id: "global-filter" }, h("kup-text-field", { key: '90beab087ac4d174ff0847a4c617af5c0d84b9d0', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
20356
20360
|
window.clearTimeout(this.globalFilterTimeout);
|
|
20357
20361
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
20358
20362
|
} })));
|
|
20359
20363
|
}
|
|
20360
|
-
return (h(Host, { key: '
|
|
20361
|
-
|
|
20364
|
+
return (h(Host, { key: '6725bc80be8f5bd265bd55f38400dd1640a36ec1', "onKup-cell-click": (e) => {
|
|
20365
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
20366
|
+
} }, h("style", { key: '8d1dcd9a81e911fce0030ed34cda4b071f7ddd37' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '43aa4214b531312c802a70b0d67fa82d252e1f84', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: '9459103c8a2b5a3326712fb6d61c1feffcea60f2', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
20367
|
+
el) }, h("table", { key: 'e1f9b2037f610111e8f5ca79cb61976de010cd71', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
20362
20368
|
e.preventDefault();
|
|
20363
|
-
} }, h("thead", { key: '
|
|
20369
|
+
} }, h("thead", { key: '24a230c7466525265a30e8a0a4e3506e4709d194', class: {
|
|
20364
20370
|
'header--is-visible': visibleHeader,
|
|
20365
|
-
} }, h("tr", { key: '
|
|
20371
|
+
} }, h("tr", { key: '52027e18a599ce91ba19c35767d308d86d22e517' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: '6e1fe220837d197e2c6ab1262a3c49a548332600' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
20366
20372
|
this.columns
|
|
20367
20373
|
? this.renderFooter()
|
|
20368
20374
|
: null)))));
|
|
@@ -110,6 +110,7 @@ const KupBox = class {
|
|
|
110
110
|
this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
|
|
111
111
|
this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
|
|
112
112
|
this.kupLoadMoreClick = createEvent(this, "kup-box-loadmoreclick", 6);
|
|
113
|
+
this.kupBoxCellClick = createEvent(this, "kup-box-cell-click", 6);
|
|
113
114
|
_KupBox_instances.add(this);
|
|
114
115
|
this.state = new KupBoxState();
|
|
115
116
|
/*-------------------------------------------------*/
|
|
@@ -1267,7 +1268,9 @@ const KupBox = class {
|
|
|
1267
1268
|
boxContent.push(this.renderRow(rows[cnt++]));
|
|
1268
1269
|
}
|
|
1269
1270
|
}
|
|
1270
|
-
return (h(Host,
|
|
1271
|
+
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1272
|
+
this.kupBoxCellClick.emit(e.detail);
|
|
1273
|
+
} }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1271
1274
|
e.preventDefault();
|
|
1272
1275
|
}, ref: (el) => (this.boxContainer =
|
|
1273
1276
|
el) }, boxContent)))));
|