@sme.up/ketchup 11.0.0-SNAPSHOT-20241118154002 → 11.0.0-SNAPSHOT-20241118161105

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.
@@ -23423,9 +23423,10 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23423
23423
  let elStyle = undefined;
23424
23424
  let actionWrapperWidth = undefined;
23425
23425
  __classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
23426
+ __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").keysBinding.unregister('enter');
23426
23427
  let rows = null;
23427
23428
  if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
23428
- rows = (h("tr", { key: '6b8d55eb44502d96fc42e1019767e32dab7320e4', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '530dbd4e23e46667e8c632016729f9623baf01f9', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
23429
+ rows = (h("tr", { key: '58196b55afe0e914fc3cf00c3131d6d609f1c40d', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '40bcadfa5714386f6845567e0e411b384b67e0c2', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
23429
23430
  }
23430
23431
  else {
23431
23432
  rows = [];
@@ -23489,7 +23490,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23489
23490
  for (let i = 0; i < chipsData.length; i++) {
23490
23491
  props.onIconClick.push(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
23491
23492
  }
23492
- groupChips = h(FChip, Object.assign({ key: '5a883b639e44700c89928d5ba9cf839b9732cd53' }, props));
23493
+ groupChips = h(FChip, Object.assign({ key: '70af7419b624423c92ea27e9502717fd981e6543' }, props));
23493
23494
  }
23494
23495
  }
23495
23496
  const tableClass = {
@@ -23521,7 +23522,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23521
23522
  if (this.headerIsPersistent &&
23522
23523
  this.tableHeight === undefined &&
23523
23524
  this.tableWidth === undefined) {
23524
- stickyEl = (h("sticky-header", { key: '3aad96e7a17b35c2fc7f70bc604991899b44d351', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'd31b1083a18c9ed37b814d5623148c0f5a00ec82' }, h("tr-sticky", { key: '4b7ed8bb31654ec2b8b06e0b79a877ea72e0ab00' }, stickyHeader))));
23525
+ stickyEl = (h("sticky-header", { key: '39b59bec2ce42e0cbfc9de67f3ed51b1e99905c4', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '938d07ee61d1389d0a205aa98579c24e04d075f6' }, h("tr-sticky", { key: 'a836ef6e8efcbd69f7d08e3a5a3977ec423d1e66' }, stickyHeader))));
23525
23526
  }
23526
23527
  let belowClass = 'below-wrapper';
23527
23528
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -23547,11 +23548,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23547
23548
  }
23548
23549
  }
23549
23550
  };
23550
- const compCreated = (h(Host, { key: 'bd40d3b3201d4b07a6b6044a794921650887c860', "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", { key: 'b3352603dcf0f8d99b563b1e578dc4f763f3b71f' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '26d58f205a28000267ce1532626a53ff31ac2a2a', id: componentWrapperId, class: wrapClass }, h("div", { key: 'c908dccaed7692530330e51e551879ef0f694369', class: "group-wrapper" }, groupChips), h("div", { key: '0a915dafeb40e9e8e6a06e4b7a7eef753606e1cd', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
23551
+ const compCreated = (h(Host, { key: '3462500743a56d303584e2691d8ed6016fb0ad39', "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", { key: '71ab4d698102f9eadc3bf6123965ffe2fdd66603' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: 'ecf9c6ec18dfdbf3a0a682b09a343de4e388444c', id: componentWrapperId, class: wrapClass }, h("div", { key: '1543fc449cabcbc245eb7ab6207b50a5104936ac', class: "group-wrapper" }, groupChips), h("div", { key: 'a8cf1fe60de0d07858b8e0264b2ec1145a6d0000', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
23551
23552
  const t = event.target;
23552
23553
  window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
23553
23554
  __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
23554
- } }))) : null, h("div", { key: '56b37466bf8be7d0b266222231114c0e12ed83a9', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
23555
+ } }))) : null, h("div", { key: 'b8e9d699a095abf8057cb9654a49a004fec54c28', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
23555
23556
  this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
23556
23557
  this.kupSave.emit({
23557
23558
  comp: this,
@@ -23601,9 +23602,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23601
23602
  this.data.rows.unshift(row);
23602
23603
  await this.refresh(true);
23603
23604
  }
23604
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'a0ce57237f6fe553d3e4658c1f9d5b2decc6fee8', 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
23605
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'ac5ae08d6af06604b74a867b4cd5e56bf5145330', 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
23605
23606
  ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
23606
- : null), h("div", { key: 'f2f17b2c91f3a09192c05d7d02d101bf67496820', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
23607
+ : null), h("div", { key: 'c8d31229418340d9709720a5831b31ef61027f65', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
23607
23608
  ? [
23608
23609
  h("div", { class: "settings-trigger", onClick: () => {
23609
23610
  __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -23612,7 +23613,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23612
23613
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
23613
23614
  this.renderCustomizePanel(),
23614
23615
  ]
23615
- : null, h("table", { key: '908967a2e798f5ff4fdf3ffd0691a5328030305e', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
23616
+ : null, h("table", { key: '00b9d9546870eec3cbefb47d84f0f31f3cbb0464', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
23616
23617
  ev.stopPropagation();
23617
23618
  }, onPointerDown: (e) => {
23618
23619
  __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");
@@ -23620,7 +23621,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23620
23621
  __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");
23621
23622
  }, onContextMenu: (e) => {
23622
23623
  e.preventDefault();
23623
- } }, h("thead", { key: 'c3f7b74941208f5f9f388f363d0188f853d867a4', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '4bca48880507e9c22995f7632f47c64e1bb7ba1d' }, header)), h("tbody", { key: '115258ef46d6967bd58cc530f86e3fe31078f77a' }, rows), this.showFooter || __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
23624
+ } }, h("thead", { key: 'cbc52433e310b919a94fcb276655d6647b6f44b3', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'cae2222b4c79c64085be28869a0386d5d25df456' }, header)), h("tbody", { key: '337ac7499d2e39eda33151e7493921d8eb12a025' }, rows), this.showFooter || __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
23624
23625
  ? this.renderFooter()
23625
23626
  : null), stickyEl), paginatorBottom)));
23626
23627
  return compCreated;
@@ -26185,7 +26186,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
26185
26186
  this.deleteRows(ids);
26186
26187
  };
26187
26188
  const addConfirmButton = () => {
26188
- commandButtons.push(h("kup-button", { styling: styling, icon: "check", "onKup-button-click": () => __classPrivateFieldGet$3(this, _KupDataTable_handleUpdateClick, "f").call(this), label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM) }));
26189
+ __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").keysBinding.register('enter', () => __classPrivateFieldGet$3(this, _KupDataTable_handleUpdateClick, "f").call(this));
26190
+ commandButtons.push(h("kup-button", { styling: styling, icon: "check", "onKup-button-click": () => {
26191
+ __classPrivateFieldGet$3(this, _KupDataTable_handleUpdateClick, "f").call(this);
26192
+ }, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM) }));
26189
26193
  };
26190
26194
  const addCommands = () => {
26191
26195
  var _a, _b, _c;