@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/README.md +4288 -4288
- package/dist/components/MagicGrid/MagicGrid.vue.d.ts.map +1 -1
- package/dist/components/MagicGrid/useMagicGrid.d.ts.map +1 -1
- package/dist/core/grid/cellEditing/lifecycle.d.ts.map +1 -1
- package/dist/getRowDragCommitHierarchy-DoMf_SY8.cjs.map +1 -1
- package/dist/getRowDragCommitHierarchy-pWgukMAX.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +14 -4
- package/dist/index.es.js.map +1 -1
- package/dist/token-catalog.json +2 -2
- package/dist/validation-BHqm5Flb.js.map +1 -1
- package/dist/validation-CD6lt5wS.cjs.map +1 -1
- package/package.json +105 -105
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
|
|
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
|
-
})
|
|
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
|
|
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
|