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

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 (45) hide show
  1. package/chunks/{ids-chunk-FBCH7PA2-full.js → ids-chunk-A7EAZCL6-full.js} +49 -16
  2. package/chunks/ids-chunk-A7EAZCL6-full.js.map +7 -0
  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-55BKFJ74-full.js → ids-chunk-ZSEJSVUD-full.js} +9 -5
  10. package/chunks/{ids-chunk-55BKFJ74-full.js.map → ids-chunk-ZSEJSVUD-full.js.map} +2 -2
  11. package/components/ids-accordion/ids-accordion.css +93 -9
  12. package/components/ids-button/ids-button.css +392 -43
  13. package/components/ids-calendar/ids-calendar.css +265 -190
  14. package/components/ids-calendar/ids-calendar.js +1 -1
  15. package/components/ids-card/ids-card.css +4 -344
  16. package/components/ids-data-grid/ids-data-grid-cell.js +1 -1
  17. package/components/ids-data-grid/ids-data-grid-editors.js +1 -1
  18. package/components/ids-data-grid/ids-data-grid-filters.js +3 -3
  19. package/components/ids-data-grid/ids-data-grid-header.js +1 -1
  20. package/components/ids-data-grid/ids-data-grid-row.js +2 -2
  21. package/components/ids-data-grid/ids-data-grid.js +6 -6
  22. package/components/ids-date-picker/ids-date-picker-popup.js +1 -1
  23. package/components/ids-date-picker/ids-date-picker.css +389 -31
  24. package/components/ids-date-picker/ids-date-picker.js +1 -1
  25. package/components/ids-hyperlink/ids-hyperlink.css +15 -188
  26. package/components/ids-layout-flex/ids-layout-flex.css +69 -6
  27. package/components/ids-layout-grid/ids-layout-grid.css +21300 -10
  28. package/components/ids-menu/ids-menu.css +3 -337
  29. package/components/ids-module-nav/ids-module-nav.css +476 -29
  30. package/components/ids-swappable/ids-swappable.css +84 -19
  31. package/components/ids-tabs/ids-tabs.css +470 -264
  32. package/components/ids-tag/ids-tag.css +8 -152
  33. package/components/ids-trigger-field/ids-trigger-field.css +1681 -1165
  34. package/components/ids-week-view/ids-week-view.js +1 -1
  35. package/custom-elements.json +1068 -1062
  36. package/enterprise-wc.all.iife.js +75 -25
  37. package/enterprise-wc.all.iife.js.map +2 -2
  38. package/enterprise-wc.js +6 -6
  39. package/package.json +1 -1
  40. package/vscode.html-custom-data.json +1 -1
  41. package/chunks/ids-chunk-FBCH7PA2-full.js.map +0 -7
  42. package/chunks/ids-chunk-SZQQA2OO-full.js.map +0 -7
  43. package/chunks/ids-chunk-VES77P3L-full.js.map +0 -7
  44. /package/chunks/{ids-chunk-MPM4WSFS-full.js.map → ids-chunk-ETJKDQAM-full.js.map} +0 -0
  45. /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,49 @@ 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
+ this.offEvent("focusin.reorder", this);
83942
+ this.onEvent("focusin.reorder", this, (e) => {
83943
+ const target = e.target;
83944
+ if (target?.nodeName === "IDS-INPUT") {
83945
+ const wrapper = target.parentElement;
83946
+ dragParent = wrapper?.parentElement;
83947
+ dragParent?.setAttribute(attributes.DRAGGABLE, "false");
83948
+ }
83949
+ });
83950
+ this.offEvent("focusout.reorder", this);
83951
+ this.onEvent("focusout.reorder", this, (e) => {
83952
+ const target = e.target;
83953
+ if (target?.nodeName === "IDS-INPUT") {
83954
+ dragParent?.setAttribute(attributes.DRAGGABLE, "true");
83955
+ dragParent = null;
83931
83956
  }
83932
83957
  });
83933
- this.offEvent("mouseup.reorder", this);
83934
- this.onEvent("mouseup.reorder", this, () => {
83935
- dragParent?.setAttribute("draggable", "true");
83958
+ this.offEvent("mouseover.reorder", this);
83959
+ this.onEvent("mouseover.reorder", this, (e) => {
83960
+ const target = e.target;
83961
+ if (target?.closest(".reorderer") && dragParent) {
83962
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
83963
+ dragParent = null;
83964
+ }
83936
83965
  });
83937
83966
  this.offEvent("dragstart.reorder", this);
83938
83967
  this.onEvent("dragstart.reorder", this, (e) => {
83939
- const selection = window.getSelection();
83940
- if (selection && selection.toString().length > 0) {
83941
- return;
83942
- }
83943
83968
  const target = e.target;
83944
83969
  const nodeName = e.target.nodeName;
83945
83970
  if (this.dataGrid.isResizing || !target || nodeName === "IDS-INPUT") return;
83971
+ const selection = window.getSelection();
83972
+ if (selection && selection.toString().length > 0) {
83973
+ if (selection.anchorNode && target.contains(selection.anchorNode)) {
83974
+ return;
83975
+ }
83976
+ selection.removeAllRanges();
83977
+ }
83978
+ if (target.tagName.includes("TRIGGER-FIELD")) {
83979
+ const selectedText = target.input.value.substring(target.input.selectionStart, target.input.selectionEnd);
83980
+ if (selectedText.toString().length > 0) {
83981
+ return;
83982
+ }
83983
+ }
83946
83984
  dragInitiated = true;
83947
83985
  target.classList.add("active-drag-column");
83948
83986
  dragger = target.cloneNode(true);
@@ -84005,6 +84043,10 @@ ids-loading-indicator[stopped] {
84005
84043
  };
84006
84044
  this.offEvent("dragend.reorder", this);
84007
84045
  this.onEvent("dragend.reorder", this, (e) => {
84046
+ if (dragParent) {
84047
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
84048
+ dragParent = null;
84049
+ }
84008
84050
  if (!dragInitiated) {
84009
84051
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
84010
84052
  e.target.style.backgroundColor = "";
@@ -84016,6 +84058,10 @@ ids-loading-indicator[stopped] {
84016
84058
  });
84017
84059
  this.offEvent("drop.reorder", this);
84018
84060
  this.onEvent("drop.reorder", this, (e) => {
84061
+ if (dragParent) {
84062
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
84063
+ dragParent = null;
84064
+ }
84019
84065
  if (!dragInitiated) {
84020
84066
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
84021
84067
  e.target.style.backgroundColor = "";
@@ -88721,7 +88767,11 @@ ids-icon {
88721
88767
  }
88722
88768
  });
88723
88769
  resetEmptyMessageElements.apply(this);
88770
+ const savedConditions = this.filterable ? this.filters?.filterConditions() : null;
88724
88771
  this.redraw();
88772
+ if (savedConditions?.length) {
88773
+ this.filters?.setFilterConditions(savedConditions);
88774
+ }
88725
88775
  this.triggerEvent("columnmoved", this, { detail: { elem: this, fromIndex: correctFromIndex, toIndex: correctToIndex } });
88726
88776
  if (this.sortColumn) this.header?.setSortState(this.sortColumn.id, this.sortColumn.ascending);
88727
88777
  this.saveSettings?.();