ids-enterprise-wc 1.15.9-patch.16 → 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.
@@ -83938,29 +83938,39 @@ ids-loading-indicator[stopped] {
83938
83938
  let startIndex = 0;
83939
83939
  let dragInitiated = false;
83940
83940
  let dragParent;
83941
+ let wasDraggable = false;
83941
83942
  this.offEvent("focusin.reorder", this);
83942
83943
  this.onEvent("focusin.reorder", this, (e) => {
83943
83944
  const target = e.target;
83944
83945
  if (target?.nodeName === "IDS-INPUT") {
83945
83946
  const wrapper = target.parentElement;
83946
83947
  dragParent = wrapper?.parentElement;
83947
- dragParent?.setAttribute(attributes.DRAGGABLE, "false");
83948
+ wasDraggable = dragParent?.getAttribute(attributes.DRAGGABLE) === "true";
83949
+ if (wasDraggable) {
83950
+ dragParent?.setAttribute(attributes.DRAGGABLE, "false");
83951
+ }
83948
83952
  }
83949
83953
  });
83950
83954
  this.offEvent("focusout.reorder", this);
83951
83955
  this.onEvent("focusout.reorder", this, (e) => {
83952
83956
  const target = e.target;
83953
83957
  if (target?.nodeName === "IDS-INPUT") {
83954
- dragParent?.setAttribute(attributes.DRAGGABLE, "true");
83958
+ if (wasDraggable) {
83959
+ dragParent?.setAttribute(attributes.DRAGGABLE, "true");
83960
+ }
83955
83961
  dragParent = null;
83962
+ wasDraggable = false;
83956
83963
  }
83957
83964
  });
83958
83965
  this.offEvent("mouseover.reorder", this);
83959
83966
  this.onEvent("mouseover.reorder", this, (e) => {
83960
83967
  const target = e.target;
83961
83968
  if (target?.closest(".reorderer") && dragParent) {
83962
- dragParent.setAttribute(attributes.DRAGGABLE, "true");
83969
+ if (wasDraggable) {
83970
+ dragParent.setAttribute(attributes.DRAGGABLE, "true");
83971
+ }
83963
83972
  dragParent = null;
83973
+ wasDraggable = false;
83964
83974
  }
83965
83975
  });
83966
83976
  this.offEvent("dragstart.reorder", this);
@@ -84043,9 +84053,10 @@ ids-loading-indicator[stopped] {
84043
84053
  };
84044
84054
  this.offEvent("dragend.reorder", this);
84045
84055
  this.onEvent("dragend.reorder", this, (e) => {
84046
- if (dragParent) {
84056
+ if (dragParent && wasDraggable) {
84047
84057
  dragParent.setAttribute(attributes.DRAGGABLE, "true");
84048
84058
  dragParent = null;
84059
+ wasDraggable = false;
84049
84060
  }
84050
84061
  if (!dragInitiated) {
84051
84062
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
@@ -84058,9 +84069,10 @@ ids-loading-indicator[stopped] {
84058
84069
  });
84059
84070
  this.offEvent("drop.reorder", this);
84060
84071
  this.onEvent("drop.reorder", this, (e) => {
84061
- if (dragParent) {
84072
+ if (dragParent && wasDraggable) {
84062
84073
  dragParent.setAttribute(attributes.DRAGGABLE, "true");
84063
84074
  dragParent = null;
84075
+ wasDraggable = false;
84064
84076
  }
84065
84077
  if (!dragInitiated) {
84066
84078
  if (e.target?.getAttribute("color-variant") === "alternate-formatter") {
@@ -91788,7 +91800,7 @@ ids-icon {
91788
91800
  e.stopImmediatePropagation();
91789
91801
  e.stopPropagation();
91790
91802
  e.preventDefault();
91791
- nextCell.activate(false, "keyboard");
91803
+ this.setActiveCell(nextCell.columnIndex, nextCell.rowIndex, false, "keyboard");
91792
91804
  if (this.editNextOnEnterPress) {
91793
91805
  setTimeout(() => {
91794
91806
  nextCell.startCellEdit?.();