ids-enterprise-wc 1.15.9-patch.7 → 1.15.9-patch.8

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.
@@ -5928,7 +5928,7 @@ attachKeyboardListeners_fn = function() {
5928
5928
  if (!activeCell) {
5929
5929
  const firstRow = this.rowByIndex(0);
5930
5930
  activeCell = firstRow?.cellByIndex(0) ?? null;
5931
- activeCell.activate(false, "keyboard");
5931
+ activeCell?.activate(false, "keyboard");
5932
5932
  }
5933
5933
  if (activeCell?.isEditing) return;
5934
5934
  e.preventDefault();
@@ -5972,9 +5972,11 @@ attachKeyboardListeners_fn = function() {
5972
5972
  if (this.virtualScroll && activeCell) {
5973
5973
  __privateMethod(this, _IdsDataGrid_instances, ensureRowInViewport_fn).call(this, activeCell.rowIndex, "down" /* Down */);
5974
5974
  }
5975
- } else if (key === "ArrowLeft" && !e.metaKey) activeCell = this.findNextNavigableCell(activeCell, "left" /* Left */);
5976
- else if (key === "ArrowRight" && !e.metaKey) activeCell = this.findNextNavigableCell(activeCell, "right" /* Right */);
5977
- else if (key === "PageUp") {
5975
+ } else if (key === "ArrowLeft" && !e.metaKey) {
5976
+ activeCell = this.findNextNavigableCell(activeCell, "left" /* Left */);
5977
+ } else if (key === "ArrowRight" && !e.metaKey) {
5978
+ activeCell = this.findNextNavigableCell(activeCell, "right" /* Right */);
5979
+ } else if (key === "PageUp") {
5978
5980
  const columnIndex = activeCell?.columnIndex ?? 0;
5979
5981
  activeCell = this.findCellByLogicalPosition(0, columnIndex);
5980
5982
  } else if (key === "PageDown") {
@@ -6031,7 +6033,7 @@ attachKeyboardListeners_fn = function() {
6031
6033
  if (this.openMenu) return;
6032
6034
  if (activeCell.isEditing) return;
6033
6035
  if (!activeCell.canClose()) return;
6034
- const row = this.rowByIndex(activeCell.row);
6036
+ const row = this.rowByIndex(activeCell.rowIndex);
6035
6037
  if (!row || row.disabled) return;
6036
6038
  const button = activeCell.querySelector("ids-button");
6037
6039
  if (button) {
@@ -6163,6 +6165,13 @@ attachKeyboardListeners_fn = function() {
6163
6165
  });
6164
6166
  this.offEvent("keydown.body", this.header);
6165
6167
  this.onEvent("keydown.body", this.header, (e) => {
6168
+ const path = eventPath(e);
6169
+ const inFilter = findInPath(path, ".ids-data-grid-header-cell-filter-wrapper");
6170
+ const target = e.target;
6171
+ const isEditable = inFilter || target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target?.isContentEditable || findInPath(path, "ids-input");
6172
+ if (isEditable) {
6173
+ return;
6174
+ }
6166
6175
  if (e.key === "ArrowUp") {
6167
6176
  e.preventDefault();
6168
6177
  e.stopPropagation();
@@ -7362,4 +7371,4 @@ IdsDataGrid = __decorateClass([
7362
7371
  export {
7363
7372
  IdsDataGrid
7364
7373
  };
7365
- //# sourceMappingURL=ids-chunk-HZO4QUAW-full.js.map
7374
+ //# sourceMappingURL=ids-chunk-KL2N6T26-full.js.map