@sme.up/ketchup 11.0.0-SNAPSHOT-20241129170944 → 11.0.0-SNAPSHOT-20241129171423

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.
@@ -463,6 +463,7 @@ export class KupDataTable {
463
463
  this.selection = ((_b = (_a = this.data.setup) === null || _a === void 0 ? void 0 : _a.operations) === null || _b === void 0 ? void 0 : _b.delete)
464
464
  ? SelectionMode.MULTIPLE_CHECKBOX
465
465
  : this.selection;
466
+ __classPrivateFieldSet(this, _KupDataTable_insertedRowIds, [], "f");
466
467
  __classPrivateFieldSet(this, _KupDataTable_originalDataLoadedMaxId, ((_c = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows) === null || _c === void 0 ? void 0 : _c.length) > 0
467
468
  ? Math.max(...__classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows.map((r) => parseInt(r.id)))
468
469
  : -1, "f");
@@ -1257,7 +1258,7 @@ export class KupDataTable {
1257
1258
  __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").keysBinding.unregister('enter');
1258
1259
  let rows = null;
1259
1260
  if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
1260
- rows = (h("tr", { key: 'ff1d80a278d9fd972f746237d99faab65f203d08', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'e39628c0448d45152b9fab69377c0ca44281c6a9', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1261
+ rows = (h("tr", { key: 'a42f58a17b498cab979ae51d1838360d6a56b401', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '0e25b2f510866f1ae9d0e5aaecf5998c4e917e07', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1261
1262
  }
1262
1263
  else {
1263
1264
  rows = [];
@@ -1321,7 +1322,7 @@ export class KupDataTable {
1321
1322
  for (let i = 0; i < chipsData.length; i++) {
1322
1323
  props.onIconClick.push(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
1323
1324
  }
1324
- groupChips = h(FChip, Object.assign({ key: '8861c89cf556a2bd7883da7876c9ff2b4094253b' }, props));
1325
+ groupChips = h(FChip, Object.assign({ key: '7c702d6120704f6ac2e41f44a6ace3e03679b43f' }, props));
1325
1326
  }
1326
1327
  }
1327
1328
  const tableClass = {
@@ -1353,7 +1354,7 @@ export class KupDataTable {
1353
1354
  if (this.headerIsPersistent &&
1354
1355
  this.tableHeight === undefined &&
1355
1356
  this.tableWidth === undefined) {
1356
- stickyEl = (h("sticky-header", { key: '495dc13b94f6d58aa59e7f58405b26169a5cea47', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '44f0736e018a9c01283e31c53f4ea771bdcb71e6' }, h("tr-sticky", { key: '69d3bd55880002e2456cd3ab71f1029f6bf4f8d4' }, stickyHeader))));
1357
+ stickyEl = (h("sticky-header", { key: '0b098575e5ca9472eea712d09c70b1717929b920', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'c39c79e7658a947d70fe3587b464d1feca5d51c1' }, h("tr-sticky", { key: '3762a552466f25912b05924517901ba4ef6ac65f' }, stickyHeader))));
1357
1358
  }
1358
1359
  let belowClass = 'below-wrapper';
1359
1360
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -1379,11 +1380,11 @@ export class KupDataTable {
1379
1380
  }
1380
1381
  }
1381
1382
  };
1382
- const compCreated = (h(Host, { key: 'b7433dfb48feafe7037d0b09aed6632cdeff521a', "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", { key: 'cd46f375ac9ac412a3b57cb4bc426a28a014e07b' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '0abd35abb1da2cb5102d5b5ade622a7896545bd9', id: componentWrapperId, class: wrapClass }, h("div", { key: '7519fd08a29694496f28d1ecf16046b720aad3e7', class: "group-wrapper" }, groupChips), h("div", { key: 'c3a291509653ae68562fa30f54f3eb6d42cb120d', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
1383
+ const compCreated = (h(Host, { key: '7aa619415ed15977c6b306c48d3b4cc03bb28b68', "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", { key: '29711c5a24ea6608afa6701564cabe8699a65928' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: 'b11b9a1fa00753ecd393de259dbb373fb93c4bf1', id: componentWrapperId, class: wrapClass }, h("div", { key: '92a37236924743aac262049936b0e17dd41523a4', class: "group-wrapper" }, groupChips), h("div", { key: '1f9e270cc2e5359bf9069a6862a4d66066385892', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
1383
1384
  const t = event.target;
1384
1385
  window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
1385
1386
  __classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
1386
- } }))) : null, h("div", { key: '464a55feb0158ee43897257cb8ca30d3011d6880', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
1387
+ } }))) : null, h("div", { key: '16d22620bacb19f9eea0f5cec273f01c56946c44', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
1387
1388
  this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
1388
1389
  this.kupSave.emit({
1389
1390
  comp: this,
@@ -1433,9 +1434,9 @@ export class KupDataTable {
1433
1434
  this.data.rows.unshift(row);
1434
1435
  await this.refresh(true);
1435
1436
  }
1436
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '0bd3eb5d519932672a018b2c16e1c6ac78724ab1', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1437
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'fa44a73256a8bad172796cd1ed2963e99299c453', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1437
1438
  ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
1438
- : null), h("div", { key: '52d8adb2f3e98986b5327b22da1808df0d2d081e', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1439
+ : null), h("div", { key: 'b6289afc5ded2d75c5507ee65a088d059fdc3086', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1439
1440
  ? [
1440
1441
  h("div", { class: "settings-trigger", onClick: () => {
1441
1442
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -1444,7 +1445,7 @@ export class KupDataTable {
1444
1445
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
1445
1446
  this.renderCustomizePanel(),
1446
1447
  ]
1447
- : null, h("table", { key: 'c0e78f70bd337d7acce22bfeffad25fd83128904', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
1448
+ : null, h("table", { key: 'ed9c7477cf90332b1a6316e97789605eebd9fc00', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
1448
1449
  ev.stopPropagation();
1449
1450
  }, onPointerDown: (e) => {
1450
1451
  __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");
@@ -1452,7 +1453,7 @@ export class KupDataTable {
1452
1453
  __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");
1453
1454
  }, onContextMenu: (e) => {
1454
1455
  e.preventDefault();
1455
- } }, h("thead", { key: '98c1aac24bb77daee11938abdf7664d6af118c6a', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'f1293827ba613e808b01ed5db229c04c0ddcbf30' }, header)), h("tbody", { key: '8771fa283be082ef4501798df5b457788531007b' }, rows), this.showFooter || __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
1456
+ } }, h("thead", { key: '7e1f4717a6fff07c6d371a6dc418cbe9588e9723', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '9565ea78928490d95b4558390c5942fed14d8c92' }, header)), h("tbody", { key: '7d9fd0d904e3fe76f80cd13b9e9d98c337522f60' }, rows), this.showFooter || __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
1456
1457
  ? this.renderFooter()
1457
1458
  : null), stickyEl), paginatorBottom)));
1458
1459
  return compCreated;