@taocompany/magic-grid 0.10.4 → 0.10.5
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/core/api/gridApi.d.ts +7 -0
- package/dist/core/api/gridApi.d.ts.map +1 -1
- package/dist/core/grid/cellEditing/gridCellEditing.d.ts +7 -0
- package/dist/core/grid/cellEditing/gridCellEditing.d.ts.map +1 -1
- package/dist/core/grid/grid.d.ts +2 -0
- package/dist/core/grid/grid.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -0
- package/dist/index.es.js.map +1 -1
- package/dist/types/core.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2647,6 +2647,7 @@ function oo(e) {
|
|
|
2647
2647
|
refreshCellStyles: (t) => e.refreshCellStyles(t),
|
|
2648
2648
|
startEditingCell: (t) => e.startEditingCell(t),
|
|
2649
2649
|
stopEditing: (t) => e.stopEditing(t),
|
|
2650
|
+
commit: (t) => e.commit(t),
|
|
2650
2651
|
isEditing: () => e.isEditing(),
|
|
2651
2652
|
isCommitting: () => e.isCommitting(),
|
|
2652
2653
|
awaitCommitIdle: () => e.awaitCommitIdle(),
|
|
@@ -16105,6 +16106,10 @@ var eS = class {
|
|
|
16105
16106
|
stopEditing(e = !1) {
|
|
16106
16107
|
return this.deps.rowEditingService.isEditing() ? this.deps.rowEditingService.stopRowEditing(!e).then((e) => e ? { committed: e.committed } : null) : this.deps.editingService.isEditing() ? this.deps.editingService.stopEditing(!e).then((e) => e ? { committed: e.committed } : null) : Promise.resolve(null);
|
|
16107
16108
|
}
|
|
16109
|
+
async commit(e = !1) {
|
|
16110
|
+
let t = await this.stopEditing(e);
|
|
16111
|
+
return t === null ? !this.isEditing() : e ? !0 : t.committed === !0;
|
|
16112
|
+
}
|
|
16108
16113
|
isCommitting() {
|
|
16109
16114
|
return this.deps.editingService.isCommitting() || this.deps.rowEditingService.isCommitting();
|
|
16110
16115
|
}
|
|
@@ -25704,6 +25709,10 @@ var lO = class {
|
|
|
25704
25709
|
stopEditing(e = !1) {
|
|
25705
25710
|
return this.cellEditing.stopEditing(e).then(() => void 0);
|
|
25706
25711
|
}
|
|
25712
|
+
async commit(e = !1) {
|
|
25713
|
+
let t = await this.cellEditing.commit(e);
|
|
25714
|
+
return e || await this.awaitCommitIdle(), e ? t : t && !this.cellEditing.isEditing();
|
|
25715
|
+
}
|
|
25707
25716
|
isCommitting() {
|
|
25708
25717
|
return this.cellEditing.isCommitting() || this.inlineCellEditorService.isCommitting();
|
|
25709
25718
|
}
|