@taocompany/magic-grid 0.13.0 → 0.13.1

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.
package/dist/index.es.js CHANGED
@@ -17808,7 +17808,7 @@ function fT(e, t) {
17808
17808
  oldValue: e.oldValue,
17809
17809
  newValue: e.newValue
17810
17810
  })) : void 0;
17811
- e.deps.eventBus.emit("rowEditingStopped", {
17811
+ if (e.deps.eventBus.emit("rowEditingStopped", {
17812
17812
  rowId: t.rowId,
17813
17813
  rowIndex: t.rowIndex,
17814
17814
  committed: t.committed,
@@ -17819,10 +17819,17 @@ function fT(e, t) {
17819
17819
  rowIndex: t.rowIndex,
17820
17820
  rowNode: n,
17821
17821
  changes: r
17822
- }), e.deps.syncPinnedRows(), t.committed || e.deps.refreshCells({
17822
+ }), e.deps.syncPinnedRows(), t.committed) {
17823
+ let n = t.cells.filter((e) => e.committed && e.oldValue !== e.newValue).map((e) => e.colId);
17824
+ n.length > 0 && e.deps.refreshCells({
17825
+ rowIds: [t.rowId],
17826
+ colIds: n
17827
+ });
17828
+ } else e.deps.refreshCells({
17823
17829
  rowIds: [t.rowId],
17824
17830
  force: !0
17825
- }), e.deps.applyFocusVisuals(), queueMicrotask(() => {
17831
+ });
17832
+ e.deps.applyFocusVisuals(), queueMicrotask(() => {
17826
17833
  !e.deps.isDestroyed() && !e.isEditing() && e.deps.viewportEl.focus({ preventScroll: !0 });
17827
17834
  }), aT(e.validationCtx(), t.rowId, t.cells.map((e) => e.colId)), e.validationCtx().persistedValidationScheduler.notifyEditSessionIdle();
17828
17835
  }
@@ -17836,7 +17843,10 @@ function pT(e, t) {
17836
17843
  oldValue: t.oldValue,
17837
17844
  newValue: t.newValue,
17838
17845
  rowNode: n
17839
- }), e.deps.syncPinnedRows(), t.committed || e.deps.refreshCells({
17846
+ }), e.deps.syncPinnedRows(), t.committed ? t.oldValue !== t.newValue && e.deps.refreshCells({
17847
+ rowIds: [t.rowId],
17848
+ colIds: [t.colId]
17849
+ }) : e.deps.refreshCells({
17840
17850
  rowIds: [t.rowId],
17841
17851
  colIds: [t.colId],
17842
17852
  force: !0