ids-enterprise-wc 1.15.9-patch.3 → 1.15.9-patch.4

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 (42) hide show
  1. package/chunks/{ids-chunk-PLPR5GKJ-full.js → ids-chunk-INOASOWB-full.js} +2 -2
  2. package/chunks/{ids-chunk-FBSXIEML-full.js → ids-chunk-LBCYQLZV-full.js} +2 -2
  3. package/chunks/{ids-chunk-FBSXIEML-full.js.map → ids-chunk-LBCYQLZV-full.js.map} +2 -2
  4. package/chunks/{ids-chunk-TUTTQTPT-full.js → ids-chunk-LFAI3KCS-full.js} +16 -5
  5. package/chunks/{ids-chunk-TUTTQTPT-full.js.map → ids-chunk-LFAI3KCS-full.js.map} +2 -2
  6. package/chunks/{ids-chunk-YNW5W3PP-full.js → ids-chunk-PNETRNHG-full.js} +35 -12
  7. package/chunks/ids-chunk-PNETRNHG-full.js.map +7 -0
  8. package/chunks/{ids-chunk-GLMW7DMU-full.js → ids-chunk-TJ35QP4Y-full.js} +4 -3
  9. package/chunks/{ids-chunk-GLMW7DMU-full.js.map → ids-chunk-TJ35QP4Y-full.js.map} +2 -2
  10. package/components/ids-accordion/ids-accordion.css +156 -8
  11. package/components/ids-calendar/ids-calendar.js +4 -4
  12. package/components/ids-card/ids-card.css +4 -344
  13. package/components/ids-data-grid/ids-data-grid-editors.js +3 -3
  14. package/components/ids-data-grid/ids-data-grid-filters.js +2 -2
  15. package/components/ids-data-grid/ids-data-grid.js +4 -4
  16. package/components/ids-date-picker/ids-date-picker-popup.js +2 -2
  17. package/components/ids-date-picker/ids-date-picker.css +389 -31
  18. package/components/ids-date-picker/ids-date-picker.d.ts +5 -0
  19. package/components/ids-date-picker/ids-date-picker.js +3 -3
  20. package/components/ids-hierarchy/ids-hierarchy.css +117 -14
  21. package/components/ids-hyperlink/ids-hyperlink.css +15 -188
  22. package/components/ids-layout-flex/ids-layout-flex.css +69 -6
  23. package/components/ids-layout-grid/ids-layout-grid.css +10 -21300
  24. package/components/ids-list-view/ids-list-view.css +112 -15
  25. package/components/ids-menu/ids-menu.css +11 -7
  26. package/components/ids-modal/ids-modal.css +23 -94
  27. package/components/ids-module-nav/ids-module-nav.css +1 -182
  28. package/components/ids-month-view/ids-month-view.js +1 -1
  29. package/components/ids-pager/ids-pager.css +28 -25
  30. package/components/ids-swappable/ids-swappable.css +84 -19
  31. package/components/ids-tabs/ids-tabs.css +542 -11
  32. package/components/ids-tag/ids-tag.css +8 -152
  33. package/components/ids-time-picker/ids-time-picker.css +49 -67
  34. package/components/ids-week-view/ids-week-view.js +3 -3
  35. package/custom-elements.json +964 -942
  36. package/enterprise-wc.all.iife.js +53 -18
  37. package/enterprise-wc.all.iife.js.map +3 -3
  38. package/enterprise-wc.js +5 -5
  39. package/package.json +1 -1
  40. package/vscode.html-custom-data.json +1 -1
  41. package/chunks/ids-chunk-YNW5W3PP-full.js.map +0 -7
  42. /package/chunks/{ids-chunk-PLPR5GKJ-full.js.map → ids-chunk-INOASOWB-full.js.map} +0 -0
@@ -50948,7 +50948,7 @@ ids-toolbar ids-menu-button[menu=view-picker] {
50948
50948
  this.year = year;
50949
50949
  }
50950
50950
  this.focus();
50951
- if (!this.showApply) __privateMethod(this, _IdsMonthView_instances, triggerSelectedEvent_fn).call(this);
50951
+ __privateMethod(this, _IdsMonthView_instances, triggerSelectedEvent_fn).call(this);
50952
50952
  }
50953
50953
  };
50954
50954
  /**
@@ -58719,7 +58719,8 @@ ids-time-picker-popup[embeddable] {
58719
58719
  attachEventListeners() {
58720
58720
  this.offEvent("dayselected.date-picker-calendar");
58721
58721
  this.onEvent("dayselected.date-picker-calendar", this.monthView, (e) => {
58722
- if (!this.showApply) this.handleDaySelectedEvent(e);
58722
+ this.handleDaySelectedEvent(e);
58723
+ e.stopPropagation();
58723
58724
  });
58724
58725
  this.offEvent("datechange");
58725
58726
  this.onEvent("datechange", this.monthView, (e) => {
@@ -58904,7 +58905,7 @@ ids-time-picker-popup[embeddable] {
58904
58905
  this.day = e.detail.date.getDate();
58905
58906
  e.detail.date = fixedDate;
58906
58907
  e.detail.value = this.value;
58907
- if (!this.showApply) this.hide(true);
58908
+ this.hide(true);
58908
58909
  this.triggerSelectedEvent(e);
58909
58910
  }
58910
58911
  }
@@ -60051,6 +60052,16 @@ ids-time-picker-popup[embeddable] {
60051
60052
  }
60052
60053
  }
60053
60054
  }
60055
+ /**
60056
+ * Apply the selected date value to the date picker and trigger field
60057
+ * @param {Date | null} date - The date to apply (currently unused)
60058
+ */
60059
+ applyValue(date) {
60060
+ this.setAttribute(attributes.VALUE, String(date));
60061
+ this.parseEventDate(date);
60062
+ this.triggerField?.setAttribute(attributes.VALUE, date);
60063
+ this.triggerField?.checkValidation?.();
60064
+ }
60054
60065
  /**
60055
60066
  * Defers `activeDate` to the inner IdsDatePickerPopup's active date,
60056
60067
  * otherwise fallback to the one generated by this one's date props
@@ -60730,10 +60741,11 @@ ids-time-picker-popup[embeddable] {
60730
60741
  attachEventHandlers_fn30 = function() {
60731
60742
  this.offEvent("dayselected.date-picker-popup");
60732
60743
  this.onEvent("dayselected.date-picker-popup", this.container, (e) => {
60733
- this.setAttribute(attributes.VALUE, e.detail.value);
60734
- this.parseEventDate(e.detail.date);
60735
- this.triggerField?.setAttribute(attributes.VALUE, e.detail.value);
60736
- this.triggerField?.checkValidation?.();
60744
+ this.applyValue(e.detail.value);
60745
+ });
60746
+ this.offEvent("applyclicked.date-picker-popup");
60747
+ this.onEvent("applyclicked.date-picker-popup", this.container, (e) => {
60748
+ this.applyValue(e.detail.value);
60737
60749
  });
60738
60750
  this.offEvent("hide.date-picker-popup");
60739
60751
  this.onEvent("hide.date-picker-popup", this.picker, (e) => {
@@ -87776,7 +87788,7 @@ ids-icon {
87776
87788
  )
87777
87789
  )
87778
87790
  );
87779
- var _activeCellCache, _editedCellsCache, _startSelectionCell, _endSelectionCell, _currentScroll, _header, _IdsDataGrid_instances, redrawBodyTemplate_fn, _lastSelectedRow, _initiallySelectedRow, _lastShiftedRow, resetLastSelectedRow_fn, resetInitiallySelectedRow_fn, resetLastShiftedRow_fn, toggleShiftSelectionInBetween_fn, getSelection_fn, attachEventHandlers_fn41, attachDragSelection_fn, createSelectionBorder_fn, updateSelectionBorder_fn, attachCopyPasteCellHandlers_fn, attachKeyboardListeners_fn9, setColumnWidths_fn, setFrozenColumnWidth_fn, calcMaxContentWidth_fn, reapplyDirtyStates_fn, setColumnGroupsWidth_fn, appendMissingRows_fn, _virtualScrollMaxRowsInDom, attachScrollEvents_fn, attachVirtualScrollEvent_fn, calculateColumnsOnscreen_fn, detachScrollEvents_fn, syncTreeHiddenStates_fn, handleTreeRowExpandCollapse_fn, recycleAllTreeRows_fn, handleVirtualScroll_fn, _customScrollEventCache, triggerCustomScrollEvent_fn, positionVirtualScrollWindow_fn, restoreScrollPosition_fn, scrollTo_fn, scrollToTreeRow_fn, scrollRowIntoView_fn, setVirtualScrollPaddingBottom_fn, scrollTreeRowIntoView_fn, recycleTreeRowsDown_fn, recycleTreeRowsUp_fn, recycleAllRows_fn, recycleTopRowsDown_fn, recycleBottomRowsUp_fn, saveCellOriginalValue_fn, updateCellDirtyState_fn, findParentRow_fn, findRootRow_fn, updateRowCount_fn, applyAutoFit_fn, removeAttachedMenus_fn, filterColumnList_fn, handleCopy_fn, handlePaste_fn, saveEditedCellsBeforeScroll_fn, restoreActiveCellAfterScroll_fn, restoreEditedCellsAfterScroll_fn;
87791
+ var _activeCellCache, _editedCellsCache, _startSelectionCell, _endSelectionCell, _currentScroll, _afterSetActiveCellFn, _header, _IdsDataGrid_instances, redrawBodyTemplate_fn, _lastSelectedRow, _initiallySelectedRow, _lastShiftedRow, resetLastSelectedRow_fn, resetInitiallySelectedRow_fn, resetLastShiftedRow_fn, toggleShiftSelectionInBetween_fn, getSelection_fn, attachEventHandlers_fn41, attachDragSelection_fn, createSelectionBorder_fn, updateSelectionBorder_fn, attachCopyPasteCellHandlers_fn, attachKeyboardListeners_fn9, setColumnWidths_fn, setFrozenColumnWidth_fn, calcMaxContentWidth_fn, reapplyDirtyStates_fn, setColumnGroupsWidth_fn, appendMissingRows_fn, _virtualScrollMaxRowsInDom, attachScrollEvents_fn, attachVirtualScrollEvent_fn, calculateColumnsOnscreen_fn, detachScrollEvents_fn, syncTreeHiddenStates_fn, handleTreeRowExpandCollapse_fn, recycleAllTreeRows_fn, handleVirtualScroll_fn, _customScrollEventCache, triggerCustomScrollEvent_fn, positionVirtualScrollWindow_fn, restoreScrollPosition_fn, scrollTo_fn, scrollToTreeRow_fn, scrollRowIntoView_fn, setVirtualScrollPaddingBottom_fn, scrollTreeRowIntoView_fn, recycleTreeRowsDown_fn, recycleTreeRowsUp_fn, recycleAllRows_fn, recycleTopRowsDown_fn, recycleBottomRowsUp_fn, saveCellOriginalValue_fn, updateCellDirtyState_fn, findParentRow_fn, findRootRow_fn, updateRowCount_fn, applyAutoFit_fn, removeAttachedMenus_fn, filterColumnList_fn, handleCopy_fn, handlePaste_fn, saveEditedCellsBeforeScroll_fn, restoreActiveCellAfterScroll_fn, restoreEditedCellsAfterScroll_fn;
87780
87792
  var IdsDataGrid = class extends Base68 {
87781
87793
  constructor() {
87782
87794
  super();
@@ -87810,6 +87822,7 @@ ids-icon {
87810
87822
  top: NaN,
87811
87823
  left: NaN
87812
87824
  });
87825
+ __privateAdd(this, _afterSetActiveCellFn);
87813
87826
  /**
87814
87827
  * Types for contextmenu.
87815
87828
  */
@@ -89796,13 +89809,13 @@ ids-icon {
89796
89809
  */
89797
89810
  get rowPixelHeight() {
89798
89811
  const rowHeights = {
89799
- xxs: 25,
89812
+ xxs: 24,
89800
89813
  xs: 30,
89801
- sm: 35,
89814
+ sm: 34,
89802
89815
  md: 40,
89803
89816
  lg: 50
89804
89817
  };
89805
- return rowHeights[this.rowHeight] + 1;
89818
+ return rowHeights[this.rowHeight];
89806
89819
  }
89807
89820
  /**
89808
89821
  * Set the card to auto fit to its parent size
@@ -89851,14 +89864,26 @@ ids-icon {
89851
89864
  this.updateActiveCellCache(rowIndex, cellNumber, currentCell?.value);
89852
89865
  let rowNode = this.rowByIndex(rowIndex);
89853
89866
  if (!rowNode && this.virtualScroll) {
89867
+ const setActiveCellData = {
89868
+ row: rowIndex,
89869
+ cell: cellNumber
89870
+ };
89871
+ __privateSet(this, _afterSetActiveCellFn, () => {
89872
+ const rowEl = this.rowByIndex(setActiveCellData.row);
89873
+ const cellNode2 = rowEl?.querySelector(`ids-data-grid-cell[aria-colindex="${setActiveCellData.cell + 1}"]`);
89874
+ if (cellNode2) {
89875
+ cellNode2.activate(Boolean(noFocus), reason);
89876
+ }
89877
+ });
89854
89878
  __privateMethod(this, _IdsDataGrid_instances, scrollRowIntoView_fn).call(this, rowIndex);
89855
89879
  rowNode = this.rowByIndex(rowIndex);
89880
+ return this.activeCell;
89856
89881
  }
89857
- const queriedCells = rowNode?.querySelectorAll("ids-data-grid-cell");
89858
- if (queriedCells && queriedCells.length > 0) {
89859
- const cellNode = queriedCells[cellNumber];
89882
+ const cellNode = rowNode?.querySelector(`ids-data-grid-cell[aria-colindex="${cellNumber + 1}"]`);
89883
+ if (cellNode) {
89860
89884
  cellNode.activate(Boolean(noFocus), reason);
89861
89885
  }
89886
+ this.activeCell.node = rowNode?.querySelector(`ids-data-grid-cell[aria-colindex="${cellNumber + 1}"]`) || null;
89862
89887
  return this.activeCell;
89863
89888
  }
89864
89889
  /**
@@ -90424,6 +90449,7 @@ ids-icon {
90424
90449
  _startSelectionCell = new WeakMap();
90425
90450
  _endSelectionCell = new WeakMap();
90426
90451
  _currentScroll = new WeakMap();
90452
+ _afterSetActiveCellFn = new WeakMap();
90427
90453
  _header = new WeakMap();
90428
90454
  _IdsDataGrid_instances = new WeakSet();
90429
90455
  /**
@@ -90873,13 +90899,18 @@ ids-icon {
90873
90899
  */
90874
90900
  attachKeyboardListeners_fn9 = function() {
90875
90901
  this.listen(["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End"], this, (e) => {
90876
- if (["ArrowDown", "ArrowUp"].includes(e.key) && document.activeElement?.nodeName === "IDS-DATA-GRID" && __privateGet(this, _activeCellCache) && __privateGet(this, _activeCellCache)?.hasLeaveViewport) {
90902
+ if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(e.key) && document.activeElement?.nodeName === "IDS-DATA-GRID" && __privateGet(this, _activeCellCache) && __privateGet(this, _activeCellCache)?.hasLeaveViewport) {
90877
90903
  __privateMethod(this, _IdsDataGrid_instances, scrollRowIntoView_fn).call(this, Math.max(__privateGet(this, _activeCellCache).rowIndex - 3, 0));
90878
90904
  e.preventDefault();
90879
90905
  e.stopPropagation();
90880
- let newIndex = 1;
90881
- if (e.key === "ArrowUp") newIndex = -1;
90882
- __privateGet(this, _activeCellCache).rowIndex = Math.max(__privateGet(this, _activeCellCache).rowIndex + newIndex, 0);
90906
+ let newRowIndex = 0;
90907
+ let newColIndex = 0;
90908
+ if (e.key === "ArrowUp") newRowIndex = -1;
90909
+ if (e.key === "ArrowDown") newRowIndex = 1;
90910
+ if (e.key === "ArrowRight") newColIndex = 1;
90911
+ if (e.key === "ArrowLeft") newColIndex = -1;
90912
+ __privateGet(this, _activeCellCache).rowIndex = Math.max(__privateGet(this, _activeCellCache).rowIndex + newRowIndex, 0);
90913
+ __privateGet(this, _activeCellCache).columnIndex = Math.max(__privateGet(this, _activeCellCache).columnIndex + newColIndex, 0);
90883
90914
  requestAnimationTimeout(() => {
90884
90915
  __privateMethod(this, _IdsDataGrid_instances, restoreActiveCellAfterScroll_fn).call(this);
90885
90916
  });
@@ -91320,6 +91351,10 @@ ids-icon {
91320
91351
  if (document.activeElement?.nodeName === "BODY" && __privateGet(this, _activeCellCache)?.hasLeaveViewport) {
91321
91352
  this.container?.focus({ preventScroll: true });
91322
91353
  }
91354
+ if (__privateGet(this, _afterSetActiveCellFn)) {
91355
+ __privateGet(this, _afterSetActiveCellFn).call(this);
91356
+ __privateSet(this, _afterSetActiveCellFn, void 0);
91357
+ }
91323
91358
  }, { capture: true, passive: true });
91324
91359
  this.offEvent("rowexpanded.data-grid.virtual-scroll", this);
91325
91360
  this.onEvent("rowexpanded.data-grid.virtual-scroll", this, (evt) => {