ids-enterprise-wc 1.15.9-patch.15 → 1.15.9-patch.17

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.
Files changed (44) hide show
  1. package/chunks/{ids-chunk-55BKFJ74-full.js → ids-chunk-A3SIMVC4-full.js} +10 -6
  2. package/chunks/{ids-chunk-55BKFJ74-full.js.map → ids-chunk-A3SIMVC4-full.js.map} +2 -2
  3. package/chunks/{ids-chunk-MPM4WSFS-full.js → ids-chunk-ETJKDQAM-full.js} +2 -2
  4. package/chunks/{ids-chunk-SZQQA2OO-full.js → ids-chunk-GHWD4TOS-full.js} +3 -3
  5. package/chunks/ids-chunk-GHWD4TOS-full.js.map +7 -0
  6. package/chunks/{ids-chunk-JW7OJNH5-full.js → ids-chunk-GL7SUNG4-full.js} +2 -2
  7. package/chunks/{ids-chunk-VES77P3L-full.js → ids-chunk-QQ742HQ7-full.js} +25 -9
  8. package/chunks/ids-chunk-QQ742HQ7-full.js.map +7 -0
  9. package/chunks/{ids-chunk-FBCH7PA2-full.js → ids-chunk-WCEYHKG2-full.js} +61 -16
  10. package/chunks/ids-chunk-WCEYHKG2-full.js.map +7 -0
  11. package/components/ids-accordion/ids-accordion.css +93 -9
  12. package/components/ids-calendar/ids-calendar.css +265 -190
  13. package/components/ids-calendar/ids-calendar.js +1 -1
  14. package/components/ids-checkbox/ids-checkbox.css +7 -580
  15. package/components/ids-data-grid/ids-data-grid-cell.js +1 -1
  16. package/components/ids-data-grid/ids-data-grid-editors.js +1 -1
  17. package/components/ids-data-grid/ids-data-grid-filters.js +3 -3
  18. package/components/ids-data-grid/ids-data-grid-header.js +1 -1
  19. package/components/ids-data-grid/ids-data-grid-row.js +2 -2
  20. package/components/ids-data-grid/ids-data-grid.js +6 -6
  21. package/components/ids-date-picker/ids-date-picker-popup.js +1 -1
  22. package/components/ids-date-picker/ids-date-picker.js +1 -1
  23. package/components/ids-hyperlink/ids-hyperlink.css +15 -188
  24. package/components/ids-layout-flex/ids-layout-flex.css +69 -6
  25. package/components/ids-menu/ids-menu.css +3 -337
  26. package/components/ids-modal/ids-modal.css +23 -94
  27. package/components/ids-module-nav/ids-module-nav.css +276 -29
  28. package/components/ids-swappable/ids-swappable.css +84 -19
  29. package/components/ids-tabs/ids-tabs.css +11 -336
  30. package/components/ids-tag/ids-tag.css +8 -152
  31. package/components/ids-toolbar/ids-toolbar.css +122 -12
  32. package/components/ids-trigger-field/ids-trigger-field.css +1681 -1165
  33. package/components/ids-week-view/ids-week-view.js +1 -1
  34. package/custom-elements.json +2850 -2844
  35. package/enterprise-wc.all.iife.js +88 -26
  36. package/enterprise-wc.all.iife.js.map +2 -2
  37. package/enterprise-wc.js +6 -6
  38. package/package.json +1 -1
  39. package/vscode.html-custom-data.json +1 -1
  40. package/chunks/ids-chunk-FBCH7PA2-full.js.map +0 -7
  41. package/chunks/ids-chunk-SZQQA2OO-full.js.map +0 -7
  42. package/chunks/ids-chunk-VES77P3L-full.js.map +0 -7
  43. /package/chunks/{ids-chunk-MPM4WSFS-full.js.map → ids-chunk-ETJKDQAM-full.js.map} +0 -0
  44. /package/chunks/{ids-chunk-JW7OJNH5-full.js.map → ids-chunk-GL7SUNG4-full.js.map} +0 -0
@@ -58198,7 +58198,7 @@ ids-time-picker-popup[embeddable] {
58198
58198
  )
58199
58199
  )
58200
58200
  );
58201
- var _IdsDatePickerPopup_instances, handleDatePickerPositioning_fn;
58201
+ var _IdsDatePickerPopup_instances, updateTranslations_fn, handleDatePickerPositioning_fn;
58202
58202
  var IdsDatePickerPopup = class extends Base51 {
58203
58203
  constructor() {
58204
58204
  super();
@@ -58220,14 +58220,14 @@ ids-time-picker-popup[embeddable] {
58220
58220
  this.updateMonthYearPickerTriggerDisplay(locale);
58221
58221
  if (this.monthYearPicklist) {
58222
58222
  this.monthYearPicklist.locale = this.locale;
58223
- this.monthYearPicklist.language = this.language.name;
58223
+ this.monthYearPicklist.language = this.localeAPI.language.name;
58224
58224
  }
58225
58225
  if (this.monthView) {
58226
58226
  this.monthView.locale = this.locale;
58227
- this.monthView.language = this.language.name;
58227
+ this.monthView.language = this.localeAPI.language.name;
58228
58228
  }
58229
- this.shadowRoot?.querySelectorAll("[translate-text]").forEach((textElem) => {
58230
- textElem.language = this.language.name;
58229
+ requestAnimationFrame(() => {
58230
+ __privateMethod(this, _IdsDatePickerPopup_instances, updateTranslations_fn).call(this);
58231
58231
  });
58232
58232
  });
58233
58233
  }
@@ -58299,13 +58299,13 @@ ids-time-picker-popup[embeddable] {
58299
58299
  <ids-button-group slot="content" class="popup-footer${isBtnGroupVisible ? "" : " hidden"}" part="footer" ${isBtnGroupVisible ? "" : " hidden"} compact="true">
58300
58300
  <ids-button-group-section gap="8">
58301
58301
  <ids-button appearance="secondary" class="popup-btn popup-btn-cancel" cancel ${this.showCancel ? "" : " hidden"}>
58302
- <span>Cancel</span>
58302
+ <ids-text translate-text="true" translation-key="Cancel">Cancel</ids-text>
58303
58303
  </ids-button>
58304
58304
  <ids-button appearance="secondary" class="popup-btn popup-btn-clear" part="btn-clear" ${this.showClear ? "" : " hidden"}>
58305
- <span>Clear</span>
58305
+ <ids-text translate-text="true" translation-key="Clear">Clear</ids-text>
58306
58306
  </ids-button>
58307
58307
  <ids-button appearance="primary" class="popup-btn popup-btn-apply"${this.useRange || this.showApply || this.expanded ? " disabled" : " hidden"} part="btn-apply">
58308
- <span>Apply</span>
58308
+ <ids-text translate-text="true" translation-key="Apply">Apply</ids-text>
58309
58309
  </ids-button>
58310
58310
  </ids-button-group-section>
58311
58311
  </ids-button-group>
@@ -58348,6 +58348,7 @@ ids-time-picker-popup[embeddable] {
58348
58348
  class="btn-today-text"
58349
58349
  font-size="16"
58350
58350
  translate-text="true"
58351
+ translation-key="Today"
58351
58352
  font-weight="semi-bold"
58352
58353
  >Today</ids-text>
58353
58354
  </ids-button>` : "";
@@ -59236,6 +59237,7 @@ ids-time-picker-popup[embeddable] {
59236
59237
  if (this.hasTime() && this.useCurrentTime && !this.value) this.setCurrentTime();
59237
59238
  __privateMethod(this, _IdsDatePickerPopup_instances, handleDatePickerPositioning_fn).call(this);
59238
59239
  this.updateMonthYearPickerTriggerDisplay();
59240
+ __privateMethod(this, _IdsDatePickerPopup_instances, updateTranslations_fn).call(this);
59239
59241
  this.focus();
59240
59242
  }
59241
59243
  /**
@@ -59395,6 +59397,20 @@ ids-time-picker-popup[embeddable] {
59395
59397
  }
59396
59398
  };
59397
59399
  _IdsDatePickerPopup_instances = new WeakSet();
59400
+ /**
59401
+ * Updates translate-text elements with current locale translations
59402
+ */
59403
+ updateTranslations_fn = function() {
59404
+ if (!this.container || !this.localeAPI) return;
59405
+ this.container.querySelectorAll("[translate-text]").forEach((textElem) => {
59406
+ const key = textElem.getAttribute("translation-key");
59407
+ if (key) {
59408
+ textElem.textContent = this.localeAPI.translate(key);
59409
+ }
59410
+ textElem.setAttribute(attributes.LANGUAGE, this.localeAPI.language.name);
59411
+ textElem.setAttribute(attributes.LOCALE, this.locale);
59412
+ });
59413
+ };
59398
59414
  /**
59399
59415
  * Handle viewport positioning for the date picker popup
59400
59416
  * @private
@@ -78435,7 +78451,7 @@ ids-trigger-button[slot=trigger-end] {
78435
78451
  const cssPart = this?.cellCssPart(column, columnIndex) ?? "";
78436
78452
  this.setAttribute(attributes.PART, cssPart || attributes.CELL);
78437
78453
  if (dataGrid.lastActiveCell?.cell === columnIndex && dataGrid.lastActiveCell?.row === rowIndex) {
78438
- this.onFocus();
78454
+ dataGrid.lastActiveCell = this.activate(false, "internal");
78439
78455
  }
78440
78456
  }
78441
78457
  /**
@@ -78556,7 +78572,7 @@ ids-trigger-button[slot=trigger-end] {
78556
78572
  if (!nofocus) {
78557
78573
  this.dataGrid.shadowRoot?.querySelector('ids-data-grid-cell[tabindex="0"]')?.setAttribute("tabindex", "-1");
78558
78574
  this.tabIndex = 0;
78559
- this.focus();
78575
+ this.focus({ preventScroll: reason === "internal" });
78560
78576
  }
78561
78577
  if (previousActiveCell === void 0 || previousActiveCell !== this && document.hasFocus()) {
78562
78578
  this.dataGrid.triggerEvent("activecellchanged", this.dataGrid, {
@@ -83891,7 +83907,7 @@ ids-loading-indicator[stopped] {
83891
83907
  this?.style.setProperty("cursor", "");
83892
83908
  requestAnimationFrame(() => {
83893
83909
  this.dataGrid.isResizing = false;
83894
- columnElem?.parentElement?.querySelectorAll("[draggable]").forEach((el) => el.setAttribute("draggable", "true"));
83910
+ columnElem?.parentElement?.querySelectorAll(`[${attributes.DRAGGABLE}]`).forEach((el) => el.setAttribute(attributes.DRAGGABLE, "true"));
83895
83911
  });
83896
83912
  };
83897
83913
  this.offEvent("mousedown.resize", this);
@@ -83902,7 +83918,7 @@ ids-loading-indicator[stopped] {
83902
83918
  }
83903
83919
  x = e.clientX;
83904
83920
  columnElem = target.closest(".ids-data-grid-header-cell");
83905
- columnElem.parentElement?.querySelectorAll("[draggable]").forEach((el) => el.setAttribute("draggable", "false"));
83921
+ columnElem.parentElement?.querySelectorAll(`[${attributes.DRAGGABLE}]`).forEach((el) => el.setAttribute(attributes.DRAGGABLE, "false"));
83906
83922
  const colStyles = window.getComputedStyle(columnElem);
83907
83923
  columnId = columnElem.getAttribute("column-id") || "";
83908
83924
  w = parseInt(colStyles.width, 10);
@@ -83922,27 +83938,59 @@ ids-loading-indicator[stopped] {
83922
83938
  let startIndex = 0;
83923
83939
  let dragInitiated = false;
83924
83940
  let dragParent;
83925
- this.offEvent("mousedown.reorder", this);
83926
- this.onEvent("mousedown.reorder", this, (e) => {
83927
- const nodeName = e.target.nodeName;
83928
- if (nodeName === "IDS-INPUT") {
83929
- dragParent = e.target.closest(".ids-data-grid-header-cell");
83930
- dragParent?.setAttribute("draggable", "false");
83941
+ let wasDraggable = false;
83942
+ this.offEvent("focusin.reorder", this);
83943
+ this.onEvent("focusin.reorder", this, (e) => {
83944
+ const target = e.target;
83945
+ if (target?.nodeName === "IDS-INPUT") {
83946
+ const wrapper = target.parentElement;
83947
+ dragParent = wrapper?.parentElement;
83948
+ wasDraggable = dragParent?.getAttribute(attributes.DRAGGABLE) === "true";
83949
+ if (wasDraggable) {
83950
+ dragParent?.setAttribute(attributes.DRAGGABLE, "false");
83951
+ }
83931
83952
  }
83932
83953
  });
83933
- this.offEvent("mouseup.reorder", this);
83934
- this.onEvent("mouseup.reorder", this, () => {
83935
- dragParent?.setAttribute("draggable", "true");
83954
+ this.offEvent("focusout.reorder", this);
83955
+ this.onEvent("focusout.reorder", this, (e) => {
83956
+ const target = e.target;
83957
+ if (target?.nodeName === "IDS-INPUT") {
83958
+ if (wasDraggable) {
83959
+ dragParent?.setAttribute(attributes.DRAGGABLE, "true");
83960
+ }
83961
+ dragParent = null;
83962
+ wasDraggable = false;
83963
+ }
83964
+ });
83965
+ this.offEvent("mouseover.reorder", this);
83966
+ this.onEvent("mouseover.reorder", this, (e) => {
83967
+ const target = e.target;
83968
+ if (target?.closest(".reorderer") && dragParent) {
83969
+ if (wasDraggable) {
83970
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
83971
+ }
83972
+ dragParent = null;
83973
+ wasDraggable = false;
83974
+ }
83936
83975
  });
83937
83976
  this.offEvent("dragstart.reorder", this);
83938
83977
  this.onEvent("dragstart.reorder", this, (e) => {
83939
- const selection = window.getSelection();
83940
- if (selection && selection.toString().length > 0) {
83941
- return;
83942
- }
83943
83978
  const target = e.target;
83944
83979
  const nodeName = e.target.nodeName;
83945
83980
  if (this.dataGrid.isResizing || !target || nodeName === "IDS-INPUT") return;
83981
+ const selection = window.getSelection();
83982
+ if (selection && selection.toString().length > 0) {
83983
+ if (selection.anchorNode && target.contains(selection.anchorNode)) {
83984
+ return;
83985
+ }
83986
+ selection.removeAllRanges();
83987
+ }
83988
+ if (target.tagName.includes("TRIGGER-FIELD")) {
83989
+ const selectedText = target.input.value.substring(target.input.selectionStart, target.input.selectionEnd);
83990
+ if (selectedText.toString().length > 0) {
83991
+ return;
83992
+ }
83993
+ }
83946
83994
  dragInitiated = true;
83947
83995
  target.classList.add("active-drag-column");
83948
83996
  dragger = target.cloneNode(true);
@@ -84005,6 +84053,11 @@ ids-loading-indicator[stopped] {
84005
84053
  };
84006
84054
  this.offEvent("dragend.reorder", this);
84007
84055
  this.onEvent("dragend.reorder", this, (e) => {
84056
+ if (dragParent && wasDraggable) {
84057
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
84058
+ dragParent = null;
84059
+ wasDraggable = false;
84060
+ }
84008
84061
  if (!dragInitiated) {
84009
84062
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
84010
84063
  e.target.style.backgroundColor = "";
@@ -84016,6 +84069,11 @@ ids-loading-indicator[stopped] {
84016
84069
  });
84017
84070
  this.offEvent("drop.reorder", this);
84018
84071
  this.onEvent("drop.reorder", this, (e) => {
84072
+ if (dragParent && wasDraggable) {
84073
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
84074
+ dragParent = null;
84075
+ wasDraggable = false;
84076
+ }
84019
84077
  if (!dragInitiated) {
84020
84078
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
84021
84079
  e.target.style.backgroundColor = "";
@@ -88721,7 +88779,11 @@ ids-icon {
88721
88779
  }
88722
88780
  });
88723
88781
  resetEmptyMessageElements.apply(this);
88782
+ const savedConditions = this.filterable ? this.filters?.filterConditions() : null;
88724
88783
  this.redraw();
88784
+ if (savedConditions?.length) {
88785
+ this.filters?.setFilterConditions(savedConditions);
88786
+ }
88725
88787
  this.triggerEvent("columnmoved", this, { detail: { elem: this, fromIndex: correctFromIndex, toIndex: correctToIndex } });
88726
88788
  if (this.sortColumn) this.header?.setSortState(this.sortColumn.id, this.sortColumn.ascending);
88727
88789
  this.saveSettings?.();
@@ -91738,7 +91800,7 @@ ids-icon {
91738
91800
  e.stopImmediatePropagation();
91739
91801
  e.stopPropagation();
91740
91802
  e.preventDefault();
91741
- nextCell.activate(false, "keyboard");
91803
+ this.setActiveCell(nextCell.columnIndex, nextCell.rowIndex, false, "keyboard");
91742
91804
  if (this.editNextOnEnterPress) {
91743
91805
  setTimeout(() => {
91744
91806
  nextCell.startCellEdit?.();