@ishibashi0112/spreadsheet-grid-core 1.12.0 → 1.14.0
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/controllers/changeTracker.cjs +1 -1
- package/dist/controllers/changeTracker.d.ts +9 -0
- package/dist/controllers/changeTracker.js +205 -145
- package/dist/controllers/debouncedValueStore.cjs +1 -1
- package/dist/controllers/debouncedValueStore.d.ts +2 -1
- package/dist/controllers/debouncedValueStore.js +10 -9
- package/dist/controllers/historyController.cjs +1 -1
- package/dist/controllers/historyController.js +1 -0
- package/dist/controllers/keyboardController.cjs +1 -1
- package/dist/controllers/keyboardController.d.ts +1 -0
- package/dist/controllers/keyboardController.js +9 -1
- package/dist/controllers/rowDiffer.cjs +2 -0
- package/dist/controllers/rowDiffer.d.ts +19 -0
- package/dist/controllers/rowDiffer.js +131 -0
- package/dist/controllers/serverSideRowModel.cjs +1 -1
- package/dist/controllers/serverSideRowModel.d.ts +2 -1
- package/dist/controllers/serverSideRowModel.js +37 -36
- package/dist/engine/createGridEngine.cjs +1 -1
- package/dist/engine/createGridEngine.js +44 -37
- package/dist/engine/diffStage.cjs +1 -0
- package/dist/engine/diffStage.d.ts +26 -0
- package/dist/engine/diffStage.js +117 -0
- package/dist/engine/exportCommands.cjs +2 -2
- package/dist/engine/exportCommands.js +75 -54
- package/dist/engine/features.d.ts +8 -0
- package/dist/engine/fullFeatures.cjs +1 -1
- package/dist/engine/fullFeatures.js +33 -25
- package/dist/engine/gridApi.cjs +11 -10
- package/dist/engine/gridApi.d.ts +9 -1
- package/dist/engine/gridApi.js +464 -216
- package/dist/engine/newRowController.cjs +1 -1
- package/dist/engine/newRowController.d.ts +4 -1
- package/dist/engine/newRowController.js +24 -1
- package/dist/engine/rowPipeline.cjs +1 -1
- package/dist/engine/rowPipeline.d.ts +8 -1
- package/dist/engine/rowPipeline.js +32 -22
- package/dist/engine/treeStage.cjs +1 -1
- package/dist/engine/treeStage.d.ts +1 -0
- package/dist/engine/treeStage.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -4
- package/dist/locales/en.cjs +1 -1
- package/dist/locales/en.js +13 -0
- package/dist/logic/cellValueWrites.cjs +1 -0
- package/dist/logic/cellValueWrites.d.ts +21 -0
- package/dist/logic/cellValueWrites.js +70 -0
- package/dist/logic/changeNavigation.cjs +1 -0
- package/dist/logic/changeNavigation.d.ts +25 -0
- package/dist/logic/changeNavigation.js +62 -0
- package/dist/logic/changeTracking.cjs +1 -1
- package/dist/logic/changeTracking.d.ts +1 -0
- package/dist/logic/changeTracking.js +8 -5
- package/dist/logic/diffView.cjs +1 -0
- package/dist/logic/diffView.d.ts +20 -0
- package/dist/logic/diffView.js +51 -0
- package/dist/logic/exportData.cjs +1 -1
- package/dist/logic/exportData.d.ts +8 -2
- package/dist/logic/exportData.js +45 -27
- package/dist/logic/gridAgentTools.cjs +2 -0
- package/dist/logic/gridAgentTools.d.ts +125 -0
- package/dist/logic/gridAgentTools.js +673 -0
- package/dist/logic/gridAsk.cjs +3 -3
- package/dist/logic/gridAsk.d.ts +10 -0
- package/dist/logic/gridAsk.js +169 -156
- package/dist/logic/gridAskLocaleText.cjs +1 -1
- package/dist/logic/gridAskLocaleText.d.ts +5 -0
- package/dist/logic/gridAskLocaleText.js +1 -0
- package/dist/logic/grouping.cjs +1 -1
- package/dist/logic/grouping.d.ts +1 -0
- package/dist/logic/grouping.js +16 -2
- package/dist/logic/localeTextFeatures.cjs +1 -1
- package/dist/logic/localeTextFeatures.d.ts +14 -0
- package/dist/logic/localeTextFeatures.js +21 -8
- package/dist/logic/multiSelect.cjs +1 -1
- package/dist/logic/multiSelect.js +1 -1
- package/dist/logic/rangeDecorations.cjs +4 -0
- package/dist/logic/rangeDecorations.d.ts +78 -0
- package/dist/logic/rangeDecorations.js +223 -0
- package/dist/logic/rowDiff.cjs +1 -0
- package/dist/logic/rowDiff.d.ts +57 -0
- package/dist/logic/rowDiff.js +169 -0
- package/dist/logic/sorting.cjs +1 -1
- package/dist/logic/sorting.d.ts +1 -0
- package/dist/logic/sorting.js +42 -27
- package/dist/model/gridStore.d.ts +4 -1
- package/dist/model/gridTypes.core.d.ts +242 -24
- package/package.json +1 -1
package/dist/engine/gridApi.js
CHANGED
|
@@ -1,61 +1,71 @@
|
|
|
1
1
|
import { gridActions as e } from "../model/gridActions.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
2
|
+
import { createCellWriteDraft as t, isViewCellEditable as n, writeCellValue as r } from "../utils/permissions.js";
|
|
3
|
+
import { collectAllGroupKeys as i, collectAllGroupRows as a, findGroupKeyPath as o } from "../logic/grouping.js";
|
|
4
|
+
import { findDetailRowIndex as s, findViewRowIndexByKey as c, resolveFirstDataColIndex as l } from "../logic/detailRow.js";
|
|
5
|
+
import { normalizeCellRange as u, normalizeRowRange as d } from "../model/gridSelectors.js";
|
|
6
|
+
import { computeSinglePaneColumnExtent as f } from "../logic/geometry.js";
|
|
7
|
+
import { scanInvalidCells as p } from "../logic/validation.js";
|
|
8
|
+
import { resolveDataRowNumber as m } from "../logic/labelRows.js";
|
|
9
|
+
import { resolveFirstEditableColIndex as h } from "../logic/newRow.js";
|
|
10
|
+
import { logicalToPhysicalScrollTop as g, physicalToLogicalScrollTop as _ } from "../logic/verticalGeometry.js";
|
|
11
|
+
import { isScrolledToBottom as v } from "../utils/scrollBottom.js";
|
|
12
|
+
import { clearRowSelection as y, countSelectedRows as b, resolveIsRowSelected as x, rowSelectionFromModel as ee, rowSelectionToModel as te, selectAllRows as ne } from "../logic/rowSelection.js";
|
|
13
|
+
import { applyColumnState as re, buildGridState as ie, dropUnknownColumnKeys as ae, extractColumnState as oe, isSameColumnLayout as se, migrateGridStatePatch as ce, resolveClosedColumnGroupsForState as le } from "../logic/gridState.js";
|
|
14
|
+
import { createInertExportCommands as ue } from "./features.js";
|
|
15
|
+
import { resolveChangeTargetIndex as de } from "../logic/changeNavigation.js";
|
|
16
|
+
import { markUrgentFilters as fe } from "../logic/urgentFilters.js";
|
|
17
|
+
import { computeHorizontalScrollTarget as pe, computeVerticalScrollTarget as me } from "../logic/scrollTargets.js";
|
|
18
|
+
import { resolveCellValueWrite as he } from "../logic/cellValueWrites.js";
|
|
16
19
|
//#region src/engine/gridApi.ts
|
|
17
|
-
var
|
|
20
|
+
var ge = (e) => {
|
|
18
21
|
if (process.env.NODE_ENV === "production") return;
|
|
19
22
|
let t = e.map((e) => `\`${e}\``).join(", ");
|
|
20
23
|
console.warn(`[spreadsheet-grid] applyState: 今の列定義(columns)に無い列 ${t} の列幅 / フィルター / 並べ替えを捨てました。列定義を読み込む前なら、列定義を渡してから applyState を呼んでください。列を消した後の古い保存状態なら、applyState の後の getState() の値を保存し直すと出なくなります。
|
|
21
24
|
[spreadsheet-grid] applyState: dropped the widths / filters / sort of ${t}, which are not in the current columns. If the columns are not loaded yet, pass them before calling applyState. If the saved state is from before those columns were removed, save getState() again after applyState to stop this warning.`);
|
|
22
|
-
},
|
|
25
|
+
}, S = (e, t) => {
|
|
23
26
|
process.env.NODE_ENV === "production" || e.has(t) || (e.add(t), console.warn(`[spreadsheet-grid] ${t}: trackChanges が効いていないので、何もしません(trackChanges と rowKeyGetter を指定し、clientSide の rows + onRowsChange で使ってください。/lite では機能セットに changeTracking: changeTrackingFeature も要ります)。
|
|
24
27
|
[spreadsheet-grid] ${t}: does nothing because trackChanges is not active (set trackChanges and rowKeyGetter, and use clientSide rows with onRowsChange. With /lite, also add changeTracking: changeTrackingFeature to the features).`));
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
}, _e = (e, t) => {
|
|
29
|
+
process.env.NODE_ENV === "production" || e.has(t) || (e.add(t), console.warn(`[spreadsheet-grid] ${t}: trackChanges の baseline が効いていないので、何もしません(trackChanges={{ baseline }} と rowKeyGetter を指定し、clientSide で使ってください。createSpreadsheetGrid で組み立てるときは機能セットに changeTracking と diffView: diffViewFeature も要ります)。
|
|
30
|
+
[spreadsheet-grid] ${t}: does nothing because trackChanges.baseline is not active (set trackChanges={{ baseline }} and rowKeyGetter on a client-side grid. With createSpreadsheetGrid, also add changeTracking and diffView: diffViewFeature to the features).`));
|
|
31
|
+
}, ve = /^(get|is|can|export|download)/, ye = 1e3, C = (C = {}, be = () => !1) => {
|
|
32
|
+
let w = null, T = !1, E = /* @__PURE__ */ new Set(), D = !1, O = null, k = (e) => O !== null && O.base === e.columns ? O.next : e.columns, A = (C.export?.createExportCommands ?? ue)(() => w, C.grouping), j = null, M = null, N = null, P = /* @__PURE__ */ new Set(), F = (e) => {
|
|
33
|
+
process.env.NODE_ENV === "production" || P.has(e) || (P.add(e), console.warn(`[spreadsheet-grid] ${e}: ツリーデータが効いていません(treeData と rowKeyGetter が要り、clientSide だけです。/lite では treeData: treeDataFeature を組み込みます)。
|
|
28
34
|
[spreadsheet-grid] ${e}: tree data is not active (it needs treeData and rowKeyGetter, works only on the client side, and needs treeData: treeDataFeature in /lite).`));
|
|
29
|
-
},
|
|
30
|
-
let n = t.getOpenResolver?.(
|
|
35
|
+
}, xe = (e, t) => {
|
|
36
|
+
let n = t.getOpenResolver?.(J(e).treeOpen);
|
|
31
37
|
if (n) return n;
|
|
32
38
|
let r = t.stage.display.open;
|
|
33
39
|
return (e) => r[e] === 1;
|
|
34
|
-
},
|
|
35
|
-
let r =
|
|
40
|
+
}, I = (t, n) => {
|
|
41
|
+
let r = w, i = r?.treeData;
|
|
36
42
|
if (!r || !i) return [];
|
|
37
|
-
let { structure: a, layout: o } = i.stage, s =
|
|
43
|
+
let { structure: a, layout: o } = i.stage, s = xe(r, i), c = t.filter((e) => {
|
|
38
44
|
let t = a.keyToIndex.get(e);
|
|
39
45
|
return t !== void 0 && o.childStart[t + 1] > o.childStart[t] && s(t) !== n;
|
|
40
46
|
});
|
|
41
47
|
if (c.length === 0) return [];
|
|
42
|
-
let l =
|
|
43
|
-
return r.dispatch(e.setTreeRowsOpen(c, n, i.filterSignature)),
|
|
44
|
-
},
|
|
45
|
-
let n =
|
|
46
|
-
n && (
|
|
48
|
+
let l = J(r).treeOpen;
|
|
49
|
+
return r.dispatch(e.setTreeRowsOpen(c, n, i.filterSignature)), J(r).treeOpen === l ? [] : c;
|
|
50
|
+
}, Se = (e, t) => {
|
|
51
|
+
let n = w;
|
|
52
|
+
n && (M = {
|
|
47
53
|
rowKey: e,
|
|
48
54
|
colIndex: t,
|
|
49
55
|
rowModel: n.rowModel,
|
|
50
56
|
until: Date.now() + 1e3
|
|
51
57
|
});
|
|
52
58
|
}, L = () => {
|
|
53
|
-
let e =
|
|
59
|
+
let e = w, t = j;
|
|
54
60
|
if (!e || t === null) return;
|
|
55
|
-
|
|
56
|
-
let n =
|
|
61
|
+
j = null;
|
|
62
|
+
let n = c(e.rowModel, t.rowKey, /* @__PURE__ */ new Map());
|
|
57
63
|
if (n < 0) {
|
|
58
|
-
|
|
64
|
+
Se(t.rowKey, t.colIndex);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (e.rowModel.getRemovedRow?.(n) !== void 0) {
|
|
68
|
+
H(U(n, "auto"), null, "auto"), e.setChangeNavRow?.(t.rowKey);
|
|
59
69
|
return;
|
|
60
70
|
}
|
|
61
71
|
if (t.colIndex !== null) {
|
|
@@ -64,58 +74,69 @@ var de = (e) => {
|
|
|
64
74
|
}
|
|
65
75
|
let r = "auto";
|
|
66
76
|
H(U(n, r), null, r);
|
|
67
|
-
}, R = (
|
|
68
|
-
let
|
|
69
|
-
if (!
|
|
70
|
-
let
|
|
71
|
-
if (
|
|
72
|
-
let
|
|
73
|
-
if (
|
|
74
|
-
if (
|
|
75
|
-
let a =
|
|
76
|
-
for (let e of s)
|
|
77
|
-
if (s.length > 0) return
|
|
78
|
-
rowKey:
|
|
79
|
-
colIndex:
|
|
77
|
+
}, R = (t, n) => {
|
|
78
|
+
let r = w;
|
|
79
|
+
if (!r) return [];
|
|
80
|
+
let i = r.treeData;
|
|
81
|
+
if (i && C.treeData) {
|
|
82
|
+
let e = i.stage.structure.keyToIndex.get(t);
|
|
83
|
+
if (e === void 0) return Se(t, n), [];
|
|
84
|
+
if (i.stage.visibility.included !== null && i.stage.visibility.included[e] !== 1) return [];
|
|
85
|
+
let a = xe(r, i), o = C.treeData.collectTreeAncestors(i.stage.structure, e).reverse().filter((e) => !a(e)).map((e) => i.stage.structure.keys[e]), s = I(o, !0);
|
|
86
|
+
for (let e of s) i.notifyOpenChange(e, !0);
|
|
87
|
+
if (s.length > 0) return j = {
|
|
88
|
+
rowKey: t,
|
|
89
|
+
colIndex: n
|
|
80
90
|
}, s;
|
|
81
91
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
if (r.groupTree && J(r).collapsedGroupKeys.size > 0 && c(r.rowModel, t, /* @__PURE__ */ new Map()) < 0) {
|
|
93
|
+
let i = r.rows.findIndex((e, n) => r.resolvedRowKeyGetter(e, n) === t), a = J(r).collapsedGroupKeys, s = i < 0 ? [] : o(r.groupTree, i).filter((e) => a.has(e));
|
|
94
|
+
if (s.length > 0) {
|
|
95
|
+
let i = new Set(a);
|
|
96
|
+
for (let e of s) i.delete(e);
|
|
97
|
+
return r.dispatch(e.setCollapsedGroupKeys(i)), j = {
|
|
98
|
+
rowKey: t,
|
|
99
|
+
colIndex: n
|
|
100
|
+
}, [];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return j = {
|
|
104
|
+
rowKey: t,
|
|
105
|
+
colIndex: n
|
|
85
106
|
}, L(), [];
|
|
86
107
|
}, z = null, B = !1, V = (e, t, n = "auto") => {
|
|
87
|
-
let r = Math.max(e.scrollHeight - e.clientHeight, 0), i = Math.max(e.scrollWidth - e.clientWidth, 0), a = Math.min(Math.max(t.top, 0), r), o = Math.min(Math.max(t.left, 0), i), s = e.scrollTop, c = e.scrollLeft, l = Math.round(a) !== Math.round(s) || Math.round(o) !== Math.round(c) ?
|
|
108
|
+
let r = Math.max(e.scrollHeight - e.clientHeight, 0), i = Math.max(e.scrollWidth - e.clientWidth, 0), a = Math.min(Math.max(t.top, 0), r), o = Math.min(Math.max(t.left, 0), i), s = e.scrollTop, c = e.scrollLeft, l = Math.round(a) !== Math.round(s) || Math.round(o) !== Math.round(c) ? w?.markApiScroll() : void 0;
|
|
88
109
|
e.scrollTo({
|
|
89
110
|
top: a,
|
|
90
111
|
left: o,
|
|
91
112
|
behavior: n
|
|
92
113
|
}), l && n === "auto" && e.scrollTop === s && e.scrollLeft === c && getComputedStyle(e).scrollBehavior !== "smooth" && l();
|
|
93
114
|
}, H = (e, t, n) => {
|
|
94
|
-
let r =
|
|
115
|
+
let r = w?.scrollContainerRef.current ?? null, i = w;
|
|
95
116
|
if (!r || !i) return;
|
|
96
|
-
let a =
|
|
117
|
+
let a = _(r.scrollTop, i.verticalScaleFactor), o = e ?? a, s = o === a ? r.scrollTop : g(o, i.verticalScaleFactor);
|
|
97
118
|
V(r, {
|
|
98
119
|
top: n === "end" || n === "auto" && o > a ? Math.ceil(s) : s,
|
|
99
120
|
left: t === null ? r.scrollLeft : t
|
|
100
121
|
});
|
|
101
122
|
}, U = (e, t) => {
|
|
102
|
-
let n =
|
|
123
|
+
let n = w?.scrollContainerRef.current ?? null, r = w;
|
|
103
124
|
if (!n || !r || r.viewRowCount === 0) return null;
|
|
104
125
|
let i = Math.min(Math.max(e, 0), r.viewRowCount - 1);
|
|
105
|
-
return
|
|
126
|
+
return me({
|
|
106
127
|
rowTop: r.rowMetrics.rowTop(i),
|
|
107
128
|
rowHeight: r.rowMetrics.cellHeight(i),
|
|
108
129
|
headerHeight: r.headerHeight,
|
|
109
130
|
viewportHeight: n.clientHeight - (r.footerHeight ?? 0),
|
|
110
|
-
currentScrollTop:
|
|
131
|
+
currentScrollTop: _(n.scrollTop, r.verticalScaleFactor),
|
|
111
132
|
align: t,
|
|
112
133
|
stickyTopInset: r.stickyTopInset
|
|
113
134
|
});
|
|
114
|
-
},
|
|
115
|
-
let n =
|
|
135
|
+
}, Ce = (e, t) => {
|
|
136
|
+
let n = w?.scrollContainerRef.current ?? null, r = w;
|
|
116
137
|
if (!n || !r) return null;
|
|
117
|
-
let i =
|
|
118
|
-
return !i || i.pane !== "center" ? null :
|
|
138
|
+
let i = f(r.paneLayout, e);
|
|
139
|
+
return !i || i.pane !== "center" ? null : pe({
|
|
119
140
|
cellLeft: r.leftPaneTotalWidth + r.centerLeadingWidth + i.extent.start,
|
|
120
141
|
cellWidth: i.extent.width,
|
|
121
142
|
leftPaneWidth: r.leftPaneTotalWidth,
|
|
@@ -124,20 +145,61 @@ var de = (e) => {
|
|
|
124
145
|
currentScrollLeft: n.scrollLeft,
|
|
125
146
|
align: t
|
|
126
147
|
});
|
|
127
|
-
},
|
|
128
|
-
H(U(e, n),
|
|
129
|
-
},
|
|
130
|
-
let t =
|
|
148
|
+
}, W = (e, t, n) => {
|
|
149
|
+
H(U(e, n), Ce(t, n), n);
|
|
150
|
+
}, G = (e) => e.viewRowCount <= 0 || e.orderedColumns.length === 0, K = (e) => {
|
|
151
|
+
let t = w;
|
|
131
152
|
return t ? {
|
|
132
153
|
row: Math.min(Math.max(e.row, 0), Math.max(t.viewRowCount - 1, 0)),
|
|
133
154
|
col: Math.min(Math.max(e.col, 0), Math.max(t.orderedColumns.length - 1, 0))
|
|
134
155
|
} : e;
|
|
135
|
-
},
|
|
156
|
+
}, q = (e, t, n = 1) => {
|
|
136
157
|
let r = (t) => e.rowModel.getLabelRow?.(t) !== void 0;
|
|
137
158
|
if (!r(t)) return t;
|
|
138
159
|
for (let i of [n, -n]) for (let n = t + i; n >= 0 && n < e.viewRowCount; n += i) if (!r(n)) return n;
|
|
139
160
|
return t;
|
|
140
|
-
},
|
|
161
|
+
}, J = (e) => e.getUiState?.() ?? e.uiState, Y = (e) => e.pendingRowSelection?.() ?? J(e).rowSelection, X = null, we = /* @__PURE__ */ new Set(), Te = (t) => {
|
|
162
|
+
let n = w, r = C.diffView?.collectChangeTargets;
|
|
163
|
+
if (!n?.diffActive || !n.changeTracker || !r) return _e(we, t === 1 ? "goToNextChange" : "goToPrevChange"), !1;
|
|
164
|
+
if (T) return !1;
|
|
165
|
+
let i = n.changeTracker, a = r(n.rowModel, n.orderedColumns, i);
|
|
166
|
+
if (a.length === 0) return !1;
|
|
167
|
+
let o = J(n).activeCell, s = null, u = X, d = u !== null && (u.active === null ? o === null : o !== null && o.row === u.active.row && o.col === u.active.col);
|
|
168
|
+
if (u !== null && d) {
|
|
169
|
+
let e = c(n.rowModel, u.rowKey, /* @__PURE__ */ new Map());
|
|
170
|
+
e >= 0 && (s = {
|
|
171
|
+
row: e,
|
|
172
|
+
col: u.columnKey === null ? -1 : n.orderedColumns.findIndex((e) => e.key === u.columnKey)
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
if (s === null && o !== null) {
|
|
176
|
+
let e = n.rowModel.getRow(o.row) == null ? void 0 : n.rowModel.getRowKey(o.row);
|
|
177
|
+
s = {
|
|
178
|
+
row: o.row,
|
|
179
|
+
col: e !== void 0 && i.isAddedRow(e) ? -1 : o.col
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
let f = de(a, s, t), p = a[f];
|
|
183
|
+
if (p === void 0) return !1;
|
|
184
|
+
let m = n.rowModel.getRowKey(p.row), h = l(n.orderedColumns);
|
|
185
|
+
if (p.kind === "removed") return W(p.row, o?.col ?? h, "auto"), n.setChangeNavRow?.(m), X = {
|
|
186
|
+
rowKey: m,
|
|
187
|
+
columnKey: null,
|
|
188
|
+
active: o === null ? null : { ...o }
|
|
189
|
+
}, n.announceChangeNav?.(p, f + 1, a.length), !0;
|
|
190
|
+
let g = o !== null && o.col >= h && o.col < n.orderedColumns.length, _ = p.col >= 0 ? p.col : g ? o.col : h;
|
|
191
|
+
return n.setChangeNavRow?.(null), n.dispatch(e.startSelection({
|
|
192
|
+
row: p.row,
|
|
193
|
+
col: _
|
|
194
|
+
})), n.dispatch(e.endSelection()), W(p.row, _, "auto"), X = {
|
|
195
|
+
rowKey: m,
|
|
196
|
+
columnKey: p.col >= 0 ? n.orderedColumns[p.col]?.key ?? null : null,
|
|
197
|
+
active: {
|
|
198
|
+
row: p.row,
|
|
199
|
+
col: _
|
|
200
|
+
}
|
|
201
|
+
}, n.focusGrid?.(), n.announceChangeNav?.(p, f + 1, a.length), !0;
|
|
202
|
+
}, Z = {
|
|
141
203
|
model: null,
|
|
142
204
|
map: /* @__PURE__ */ new Map()
|
|
143
205
|
}, Q = {
|
|
@@ -145,125 +207,152 @@ var de = (e) => {
|
|
|
145
207
|
let n = t?.align ?? "auto";
|
|
146
208
|
H(U(e, n), null, n);
|
|
147
209
|
},
|
|
148
|
-
scrollToCell: (e, t, n) =>
|
|
210
|
+
scrollToCell: (e, t, n) => W(e, t, n?.align ?? "auto"),
|
|
149
211
|
scrollToTop: () => {
|
|
150
|
-
let e =
|
|
212
|
+
let e = w?.scrollContainerRef.current ?? null;
|
|
151
213
|
e && V(e, {
|
|
152
214
|
top: 0,
|
|
153
215
|
left: e.scrollLeft
|
|
154
216
|
});
|
|
155
217
|
},
|
|
156
218
|
scrollToBottom: () => {
|
|
157
|
-
let e =
|
|
219
|
+
let e = w?.scrollContainerRef.current ?? null, t = w;
|
|
158
220
|
!e || !t || (V(e, {
|
|
159
221
|
top: Math.max(t.headerHeight + t.physicalBodyHeight + (t.footerHeight ?? 0) - e.clientHeight, 0),
|
|
160
222
|
left: e.scrollLeft
|
|
161
223
|
}), z = t.measuredRowHeights ? {
|
|
162
224
|
pinnedTop: e.scrollTop,
|
|
163
|
-
until: Date.now() +
|
|
225
|
+
until: Date.now() + ye
|
|
164
226
|
} : null, B = !1);
|
|
165
227
|
},
|
|
166
228
|
getScrollPosition: () => {
|
|
167
|
-
let e =
|
|
229
|
+
let e = w?.scrollContainerRef.current ?? null;
|
|
168
230
|
return e ? {
|
|
169
231
|
top: e.scrollTop,
|
|
170
232
|
left: e.scrollLeft
|
|
171
233
|
} : null;
|
|
172
234
|
},
|
|
173
235
|
isAtBottom: () => {
|
|
174
|
-
let e =
|
|
175
|
-
return e ?
|
|
236
|
+
let e = w?.scrollContainerRef.current ?? null;
|
|
237
|
+
return e ? v(e) : !1;
|
|
176
238
|
},
|
|
177
239
|
setScrollPosition: (e, t) => {
|
|
178
|
-
let n =
|
|
240
|
+
let n = w?.scrollContainerRef.current ?? null;
|
|
179
241
|
n && V(n, {
|
|
180
242
|
top: e.top ?? n.scrollTop,
|
|
181
243
|
left: e.left ?? n.scrollLeft
|
|
182
244
|
}, t?.behavior ?? "auto");
|
|
183
245
|
},
|
|
184
246
|
getVisibleRowRange: () => {
|
|
185
|
-
let e =
|
|
247
|
+
let e = w;
|
|
186
248
|
return !e || e.windowLastRow < e.windowFirstRow ? null : {
|
|
187
249
|
startIndex: e.windowFirstRow,
|
|
188
250
|
endIndex: e.windowLastRow + 1
|
|
189
251
|
};
|
|
190
252
|
},
|
|
191
253
|
getActiveCell: () => {
|
|
192
|
-
let e =
|
|
254
|
+
let e = w ? J(w).activeCell : null;
|
|
193
255
|
return e ? {
|
|
194
256
|
row: e.row,
|
|
195
257
|
col: e.col
|
|
196
258
|
} : null;
|
|
197
259
|
},
|
|
198
260
|
setActiveCell: (t, n) => {
|
|
199
|
-
let r =
|
|
200
|
-
if (!r || t &&
|
|
201
|
-
let i = t ?
|
|
202
|
-
row:
|
|
261
|
+
let r = w;
|
|
262
|
+
if (!r || t && G(r)) return;
|
|
263
|
+
let i = t ? K(t) : null, a = i ? {
|
|
264
|
+
row: q(r, i.row),
|
|
203
265
|
col: i.col
|
|
204
266
|
} : null;
|
|
205
|
-
a !== null && a.row === r.rowModel.newRow?.index && (r.dispatch(e.startSelection(a)), r.dispatch(e.endSelection())), r.dispatch(e.activateCell(a)), a && n?.scrollIntoView &&
|
|
267
|
+
a !== null && a.row === r.rowModel.newRow?.index && (r.dispatch(e.startSelection(a)), r.dispatch(e.endSelection())), r.dispatch(e.activateCell(a)), a && n?.scrollIntoView && W(a.row, a.col, "auto");
|
|
206
268
|
},
|
|
207
|
-
getSelection: () =>
|
|
269
|
+
getSelection: () => w ? J(w).selection : null,
|
|
208
270
|
focus: () => {
|
|
209
|
-
|
|
271
|
+
w?.focusGrid?.();
|
|
210
272
|
},
|
|
211
273
|
startEditing: (t, n) => {
|
|
212
|
-
let r =
|
|
274
|
+
let r = w;
|
|
213
275
|
if (!r || !r.startEditCell || t === void 0 != (n === void 0)) return !1;
|
|
214
|
-
let i =
|
|
276
|
+
let i = J(r);
|
|
215
277
|
if (i.editingCell !== null) return !1;
|
|
216
278
|
let a = t === void 0 || n === void 0 ? i.activeCell : {
|
|
217
279
|
row: t,
|
|
218
280
|
col: n
|
|
219
281
|
};
|
|
220
|
-
return !a || !Number.isInteger(a.row) || !Number.isInteger(a.col) || a.row < 0 || a.row >= r.viewRowCount || a.col < 0 || a.col >= r.orderedColumns.length || !r.startEditCell(a) ? !1 : (r.dispatch(e.startSelection(a)), r.dispatch(e.endSelection()),
|
|
282
|
+
return !a || !Number.isInteger(a.row) || !Number.isInteger(a.col) || a.row < 0 || a.row >= r.viewRowCount || a.col < 0 || a.col >= r.orderedColumns.length || !r.startEditCell(a) ? !1 : (r.dispatch(e.startSelection(a)), r.dispatch(e.endSelection()), W(a.row, a.col, "auto"), r.focusGrid?.(), !0);
|
|
221
283
|
},
|
|
222
284
|
focusNewRow: () => {
|
|
223
|
-
let t =
|
|
285
|
+
let t = w, n = t?.rowModel.newRow;
|
|
224
286
|
if (!t || !n) return !1;
|
|
225
|
-
let r =
|
|
287
|
+
let r = h(t.orderedColumns, t.readOnly);
|
|
226
288
|
if (r < 0) return !1;
|
|
227
289
|
let i = {
|
|
228
290
|
row: n.index,
|
|
229
291
|
col: r
|
|
230
292
|
};
|
|
231
|
-
return t.dispatch(e.startSelection(i)), t.dispatch(e.endSelection()), t.dispatch(e.activateCell(i)),
|
|
293
|
+
return t.dispatch(e.startSelection(i)), t.dispatch(e.endSelection()), t.dispatch(e.activateCell(i)), W(i.row, i.col, "auto"), t.focusGrid?.(), !0;
|
|
232
294
|
},
|
|
233
295
|
commitNewRow: () => {
|
|
234
|
-
let e =
|
|
296
|
+
let e = w, t = e?.rowModel.newRow;
|
|
235
297
|
if (!e || !t) return !1;
|
|
236
|
-
let n =
|
|
298
|
+
let n = J(e).editingCell;
|
|
237
299
|
return n !== null && n.row === t.index && e.focusGrid?.(), t.hasDraft() ? t.commit() : !1;
|
|
238
300
|
},
|
|
239
301
|
getViewRowIndex: (e) => {
|
|
240
|
-
let t =
|
|
302
|
+
let t = w;
|
|
241
303
|
return t ? (Z.model !== t.rowModel && (Z = {
|
|
242
304
|
model: t.rowModel,
|
|
243
305
|
map: /* @__PURE__ */ new Map()
|
|
244
|
-
}),
|
|
306
|
+
}), c(t.rowModel, e, Z.map)) : -1;
|
|
245
307
|
},
|
|
246
|
-
getColIndex: (e) =>
|
|
308
|
+
getColIndex: (e) => w?.orderedColumns.findIndex((t) => t.key === e) ?? -1,
|
|
247
309
|
getRowNumber: (e) => {
|
|
248
|
-
let t =
|
|
249
|
-
return !t || n < 0 || t.rowModel.getLabelRow?.(n) !== void 0 ? null : t.labelViewIndexes ?
|
|
310
|
+
let t = w, n = Q.getViewRowIndex(e);
|
|
311
|
+
return !t || n < 0 || t.rowModel.getLabelRow?.(n) !== void 0 ? null : t.labelViewIndexes ? m(t.labelViewIndexes, n) : n + 1;
|
|
312
|
+
},
|
|
313
|
+
getRowKey: (e) => {
|
|
314
|
+
let t = w;
|
|
315
|
+
return !t || !Number.isInteger(e) || e < 0 || e >= t.viewRowCount || t.rowModel.newRow?.index === e || !t.isServerSide && t.rowModel.getSourceIndex(e) === void 0 || t.isServerSide && t.rowModel.getRow(e) == null && t.rowModel.getLabelRow?.(e) === void 0 ? null : t.rowModel.getRowKey(e) ?? null;
|
|
316
|
+
},
|
|
317
|
+
getRowCounts: () => {
|
|
318
|
+
let e = w;
|
|
319
|
+
if (!e) return {
|
|
320
|
+
shown: 0,
|
|
321
|
+
total: 0,
|
|
322
|
+
loading: !1
|
|
323
|
+
};
|
|
324
|
+
if (e.isServerSide) {
|
|
325
|
+
let t = be() || (e.serverSideLoading?.() ?? !1);
|
|
326
|
+
return {
|
|
327
|
+
shown: e.viewRowCount,
|
|
328
|
+
total: e.viewRowCount,
|
|
329
|
+
loading: t
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
let t = e.labelRowExport, n = e.rows.length;
|
|
333
|
+
if (t) for (let r = 0; r < e.rows.length; r += 1) t.isLabelRow(e.rows[r], r) && --n;
|
|
334
|
+
return {
|
|
335
|
+
shown: e.leafRowCount,
|
|
336
|
+
total: n,
|
|
337
|
+
loading: !1
|
|
338
|
+
};
|
|
250
339
|
},
|
|
251
340
|
selectCell: (t, n, r) => {
|
|
252
|
-
let i =
|
|
253
|
-
if (!i ||
|
|
254
|
-
let a =
|
|
341
|
+
let i = w;
|
|
342
|
+
if (!i || G(i)) return;
|
|
343
|
+
let a = K({
|
|
255
344
|
row: t,
|
|
256
345
|
col: n
|
|
257
346
|
}), o = {
|
|
258
|
-
row:
|
|
347
|
+
row: q(i, a.row),
|
|
259
348
|
col: a.col
|
|
260
349
|
};
|
|
261
|
-
i.dispatch(e.startSelection(o)), i.dispatch(e.endSelection()), r?.scrollIntoView &&
|
|
350
|
+
i.dispatch(e.startSelection(o)), i.dispatch(e.endSelection()), r?.scrollIntoView && W(o.row, o.col, "auto");
|
|
262
351
|
},
|
|
263
352
|
selectRange: (t, n) => {
|
|
264
|
-
let r =
|
|
265
|
-
if (!r ||
|
|
266
|
-
let i =
|
|
353
|
+
let r = w;
|
|
354
|
+
if (!r || G(r)) return;
|
|
355
|
+
let i = K(t.start), a = K(t.end), o = q(r, i.row, a.row < i.row ? -1 : 1);
|
|
267
356
|
(o < Math.min(i.row, a.row) || o > Math.max(i.row, a.row)) && (i = {
|
|
268
357
|
row: o,
|
|
269
358
|
col: i.col
|
|
@@ -273,50 +362,50 @@ var de = (e) => {
|
|
|
273
362
|
}), r.dispatch(e.startSelection(i)), r.dispatch(e.updateSelection(a)), r.dispatch(e.endSelection()), o !== i.row && r.dispatch(e.activateCell({
|
|
274
363
|
row: o,
|
|
275
364
|
col: i.col
|
|
276
|
-
})), n?.scrollIntoView &&
|
|
365
|
+
})), n?.scrollIntoView && W(a.row, a.col, "auto");
|
|
277
366
|
},
|
|
278
367
|
clearSelection: () => {
|
|
279
|
-
|
|
368
|
+
w?.dispatch(e.clearSelection());
|
|
280
369
|
},
|
|
281
370
|
getSelectedRows: () => {
|
|
282
|
-
let e =
|
|
371
|
+
let e = w;
|
|
283
372
|
if (!e) return [];
|
|
284
|
-
let t =
|
|
373
|
+
let t = J(e).selection;
|
|
285
374
|
if (!t) return [];
|
|
286
375
|
let n = [], r = (t) => {
|
|
287
376
|
let r = e.rowModel.getRow(t);
|
|
288
377
|
r && n.push(r);
|
|
289
378
|
};
|
|
290
379
|
if (t.type === "cell") {
|
|
291
|
-
let e =
|
|
380
|
+
let e = u(t.range);
|
|
292
381
|
for (let t = e.start.row; t <= e.end.row; t += 1) r(t);
|
|
293
382
|
} else if (t.type === "row") {
|
|
294
|
-
let e =
|
|
383
|
+
let e = d(t.startRow, t.endRow);
|
|
295
384
|
for (let t = e.startRow; t <= e.endRow; t += 1) r(t);
|
|
296
385
|
} else for (let t = 0; t < e.viewRowCount; t += 1) r(t);
|
|
297
386
|
return n;
|
|
298
387
|
},
|
|
299
|
-
exportCsv: (e) =>
|
|
300
|
-
downloadCsv: (e, t) =>
|
|
301
|
-
getExportData: (e) =>
|
|
388
|
+
exportCsv: (e) => A.exportCsv(e),
|
|
389
|
+
downloadCsv: (e, t) => A.downloadCsv(e, t),
|
|
390
|
+
getExportData: (e) => A.getExportData(e),
|
|
302
391
|
getState: () => {
|
|
303
|
-
let e =
|
|
304
|
-
if (!e) return
|
|
392
|
+
let e = w;
|
|
393
|
+
if (!e) return ie({}, {
|
|
305
394
|
globalText: "",
|
|
306
395
|
columnFilters: {}
|
|
307
396
|
}, [], []);
|
|
308
|
-
let t =
|
|
309
|
-
return
|
|
397
|
+
let t = J(e), n = e.includeGroupingInState === !0;
|
|
398
|
+
return ie(t.columnWidths, t.filters, t.sort, oe(k(e), n), void 0, n ? t.collapsedGroupKeys : void 0, le(e.columnGroupTree, t.closedColumnGroupKeys), e.treeData?.getClosedRowKeys(t.treeOpen) ?? void 0);
|
|
310
399
|
},
|
|
311
400
|
applyState: (t) => {
|
|
312
|
-
let n =
|
|
401
|
+
let n = w;
|
|
313
402
|
if (!n) return;
|
|
314
|
-
let { patch: r, dropped: i } =
|
|
315
|
-
i.length > 0 &&
|
|
316
|
-
let a =
|
|
403
|
+
let { patch: r, dropped: i } = ae(ce(t), new Set(n.columns.map((e) => e.key)));
|
|
404
|
+
i.length > 0 && ge(i);
|
|
405
|
+
let a = J(n);
|
|
317
406
|
if (n.onColumnsChange && r.columns) {
|
|
318
|
-
let e =
|
|
319
|
-
|
|
407
|
+
let e = k(n), t = re(e, r.columns, r.columnWidths ?? a.columnWidths);
|
|
408
|
+
se(e, t) || (O = {
|
|
320
409
|
base: n.columns,
|
|
321
410
|
next: t
|
|
322
411
|
}, n.onColumnsChange(t));
|
|
@@ -326,12 +415,12 @@ var de = (e) => {
|
|
|
326
415
|
globalText: r.filters.globalText ?? a.filters.globalText,
|
|
327
416
|
columnFilters: r.filters.columnFilters ?? a.filters.columnFilters
|
|
328
417
|
};
|
|
329
|
-
|
|
418
|
+
fe(t), n.dispatch(e.setAllFilters(t));
|
|
330
419
|
}
|
|
331
420
|
r.sort && n.dispatch(e.setSort(r.sort)), r.collapsedGroups && n.dispatch(e.setCollapsedGroupKeys(new Set(r.collapsedGroups))), r.closedColumnGroups && n.dispatch(e.setClosedColumnGroupKeys(new Set(r.closedColumnGroups))), r.closedTreeRows && n.dispatch(e.setClosedTreeRowKeys(r.closedTreeRows));
|
|
332
421
|
},
|
|
333
422
|
setColumnGroupOpen: (t, n) => {
|
|
334
|
-
let r =
|
|
423
|
+
let r = w;
|
|
335
424
|
if (r) {
|
|
336
425
|
if (!r.columnGroupTree?.groups.get(t)?.collapsible) {
|
|
337
426
|
process.env.NODE_ENV !== "production" && !r.columnGroupTree ? console.warn("[spreadsheet-grid] setColumnGroupOpen: 列のグループがありません(columnGroups を渡していないか、/lite で columnGroups: columnGroupsFeature を組み込んでいません)。\n[spreadsheet-grid] setColumnGroupOpen: there are no column groups (columnGroups is not passed, or columnGroups: columnGroupsFeature is not registered in /lite).") : process.env.NODE_ENV !== "production" && console.warn(`[spreadsheet-grid] setColumnGroupOpen: 開閉できる列のグループ \`${t}\` がありません(columnGroups の collapsible)。\n[spreadsheet-grid] setColumnGroupOpen: there is no collapsible column group \`${t}\` (collapsible in columnGroups).`);
|
|
@@ -341,25 +430,25 @@ var de = (e) => {
|
|
|
341
430
|
}
|
|
342
431
|
},
|
|
343
432
|
setTreeRowOpen: (e, t) => {
|
|
344
|
-
let n =
|
|
433
|
+
let n = w;
|
|
345
434
|
if (!n?.treeData) {
|
|
346
|
-
|
|
435
|
+
F("setTreeRowOpen");
|
|
347
436
|
return;
|
|
348
437
|
}
|
|
349
|
-
for (let r of
|
|
438
|
+
for (let r of I([e], t)) n.treeData.notifyOpenChange(r, t);
|
|
350
439
|
},
|
|
351
440
|
expandAllTreeRows: () => {
|
|
352
|
-
let t =
|
|
441
|
+
let t = w;
|
|
353
442
|
if (!t?.treeData) {
|
|
354
|
-
|
|
443
|
+
F("expandAllTreeRows");
|
|
355
444
|
return;
|
|
356
445
|
}
|
|
357
446
|
t.dispatch(e.setAllTreeRowsOpen(!0, t.treeData.filterSignature));
|
|
358
447
|
},
|
|
359
448
|
collapseAllTreeRows: () => {
|
|
360
|
-
let t =
|
|
449
|
+
let t = w;
|
|
361
450
|
if (!t?.treeData) {
|
|
362
|
-
|
|
451
|
+
F("collapseAllTreeRows");
|
|
363
452
|
return;
|
|
364
453
|
}
|
|
365
454
|
t.dispatch(e.setAllTreeRowsOpen(!1, t.treeData.filterSignature));
|
|
@@ -369,19 +458,19 @@ var de = (e) => {
|
|
|
369
458
|
R(e, n >= 0 ? n : null);
|
|
370
459
|
},
|
|
371
460
|
getRowSelection: () => {
|
|
372
|
-
let e =
|
|
373
|
-
return e ?
|
|
461
|
+
let e = w;
|
|
462
|
+
return e ? te(Y(e)) : {
|
|
374
463
|
type: "include",
|
|
375
464
|
rowKeys: []
|
|
376
465
|
};
|
|
377
466
|
},
|
|
378
467
|
setRowSelection: (e) => {
|
|
379
|
-
|
|
468
|
+
w?.commitRowSelection(ee(e));
|
|
380
469
|
},
|
|
381
470
|
getSelectedRowKeys: () => {
|
|
382
|
-
let e =
|
|
471
|
+
let e = w;
|
|
383
472
|
if (!e) return [];
|
|
384
|
-
let t =
|
|
473
|
+
let t = Y(e);
|
|
385
474
|
if (t.mode === "include") return Array.from(t.keys);
|
|
386
475
|
let n = [], r = e.rowModel.getRowCount();
|
|
387
476
|
for (let i = 0; i < r; i += 1) {
|
|
@@ -392,42 +481,42 @@ var de = (e) => {
|
|
|
392
481
|
return n;
|
|
393
482
|
},
|
|
394
483
|
getSelectedRowData: () => {
|
|
395
|
-
let e =
|
|
484
|
+
let e = w;
|
|
396
485
|
if (!e) return [];
|
|
397
|
-
let t =
|
|
486
|
+
let t = Y(e), n = [], r = e.rowModel.getRowCount();
|
|
398
487
|
for (let i = 0; i < r; i += 1) {
|
|
399
488
|
let r = e.rowModel.getRow(i);
|
|
400
|
-
r &&
|
|
489
|
+
r && x(t, e.rowModel.getRowKey(i) ?? i) && n.push(r);
|
|
401
490
|
}
|
|
402
491
|
return n;
|
|
403
492
|
},
|
|
404
493
|
getSelectedRowCount: () => {
|
|
405
|
-
let e =
|
|
406
|
-
return e ?
|
|
494
|
+
let e = w;
|
|
495
|
+
return e ? b(Y(e), e.leafRowCount) : 0;
|
|
407
496
|
},
|
|
408
497
|
isRowSelected: (e) => {
|
|
409
|
-
let t =
|
|
410
|
-
return t ?
|
|
498
|
+
let t = w;
|
|
499
|
+
return t ? x(Y(t), e) : !1;
|
|
411
500
|
},
|
|
412
501
|
selectAllRows: () => {
|
|
413
|
-
|
|
502
|
+
w?.commitRowSelection(ne());
|
|
414
503
|
},
|
|
415
504
|
clearRowSelection: () => {
|
|
416
|
-
|
|
505
|
+
w?.commitRowSelection(y());
|
|
417
506
|
},
|
|
418
507
|
undo: () => {
|
|
419
|
-
|
|
508
|
+
w?.undoRows();
|
|
420
509
|
},
|
|
421
510
|
redo: () => {
|
|
422
|
-
|
|
511
|
+
w?.redoRows();
|
|
423
512
|
},
|
|
424
|
-
canUndo: () =>
|
|
425
|
-
canRedo: () =>
|
|
513
|
+
canUndo: () => w?.canUndoRows() ?? !1,
|
|
514
|
+
canRedo: () => w?.canRedoRows() ?? !1,
|
|
426
515
|
clearUndoHistory: () => {
|
|
427
|
-
|
|
516
|
+
w?.clearUndoHistory();
|
|
428
517
|
},
|
|
429
518
|
applyRows: (e, t) => {
|
|
430
|
-
let n =
|
|
519
|
+
let n = w;
|
|
431
520
|
if (n) {
|
|
432
521
|
if (!n.applyRowsChange || n.isServerSide) {
|
|
433
522
|
process.env.NODE_ENV !== "production" && console.warn("[spreadsheet-grid] applyRows: onRowsChange が無いか serverSide なので、何もしません(serverSide の行はサーバーで変えて refreshServerSide() で取り直してください)。\n[spreadsheet-grid] applyRows: does nothing without onRowsChange or with serverSide (change serverSide rows on the server and reload them with refreshServerSide()).");
|
|
@@ -441,95 +530,249 @@ var de = (e) => {
|
|
|
441
530
|
n.applyRowsChange(e, t);
|
|
442
531
|
}
|
|
443
532
|
},
|
|
533
|
+
setCellValues: (e, i) => {
|
|
534
|
+
let a = w, o = i?.dryRun === !0, s = [], c = [];
|
|
535
|
+
if (!a || !Array.isArray(e) || e.length === 0) return {
|
|
536
|
+
written: 0,
|
|
537
|
+
skipped: s,
|
|
538
|
+
marked: c
|
|
539
|
+
};
|
|
540
|
+
let l = a.isServerSide ? a.applyServerSideCellEdits : void 0, u = a.isServerSide ? void 0 : a.applyRowsChange, d = l !== void 0 || u !== void 0, f = {
|
|
541
|
+
readOnly: a.readOnly,
|
|
542
|
+
canEditCell: a.canEditCell
|
|
543
|
+
}, p = /* @__PURE__ */ new Map();
|
|
544
|
+
a.orderedColumns.forEach((e, t) => {
|
|
545
|
+
p.has(e.key) || p.set(e.key, t);
|
|
546
|
+
});
|
|
547
|
+
let m = [], h = /* @__PURE__ */ new Map(), g = (e, t, n) => {
|
|
548
|
+
s.push({
|
|
549
|
+
rowKey: e.edit.rowKey,
|
|
550
|
+
columnKey: e.edit.columnKey,
|
|
551
|
+
reason: t,
|
|
552
|
+
message: n
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
for (let t of e) {
|
|
556
|
+
let e = t?.rowKey, n = typeof t?.columnKey == "string" ? t.columnKey : String(t?.columnKey), r = e == null ? -1 : Q.getViewRowIndex(e);
|
|
557
|
+
if (!((r >= 0 ? a.rowModel.getRow(r) : void 0) !== void 0 && a.rowModel.getLabelRow?.(r) === void 0 && a.rowModel.newRow?.index !== r && (a.isServerSide || a.rowModel.getSourceIndex(r) !== void 0))) {
|
|
558
|
+
s.push({
|
|
559
|
+
rowKey: e,
|
|
560
|
+
columnKey: n,
|
|
561
|
+
reason: "notShown"
|
|
562
|
+
});
|
|
563
|
+
continue;
|
|
564
|
+
}
|
|
565
|
+
let i = p.get(n);
|
|
566
|
+
if (i === void 0) {
|
|
567
|
+
s.push({
|
|
568
|
+
rowKey: e,
|
|
569
|
+
columnKey: n,
|
|
570
|
+
reason: "noColumn"
|
|
571
|
+
});
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
let o = `${r}\u0000${i}`, c = h.get(o);
|
|
575
|
+
if (c !== void 0) {
|
|
576
|
+
m[c] = {
|
|
577
|
+
viewIndex: r,
|
|
578
|
+
colIndex: i,
|
|
579
|
+
edit: t
|
|
580
|
+
};
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
583
|
+
h.set(o, m.length), m.push({
|
|
584
|
+
viewIndex: r,
|
|
585
|
+
colIndex: i,
|
|
586
|
+
edit: t
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
let _ = (e, t) => {
|
|
590
|
+
let r = a.orderedColumns[t.colIndex];
|
|
591
|
+
return he({
|
|
592
|
+
column: r,
|
|
593
|
+
row: e,
|
|
594
|
+
value: t.edit.value,
|
|
595
|
+
editable: d && n(f, a.rowModel, t.viewIndex, t.colIndex, e, r),
|
|
596
|
+
validationTexts: a.localeTexts
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
if (l) {
|
|
600
|
+
let e = [], t = [];
|
|
601
|
+
for (let n of m) {
|
|
602
|
+
let r = _(a.rowModel.getRow(n.viewIndex), n);
|
|
603
|
+
r.action === "skip" ? g(n, r.reason, r.message) : (e.push({
|
|
604
|
+
viewIndex: n.viewIndex,
|
|
605
|
+
column: a.orderedColumns[n.colIndex],
|
|
606
|
+
value: r.value
|
|
607
|
+
}), t.push(n), r.invalidMessage !== void 0 && c.push({
|
|
608
|
+
rowKey: n.edit.rowKey,
|
|
609
|
+
columnKey: n.edit.columnKey,
|
|
610
|
+
message: r.invalidMessage
|
|
611
|
+
}));
|
|
612
|
+
}
|
|
613
|
+
if (e.length === 0 || o) return {
|
|
614
|
+
written: e.length,
|
|
615
|
+
skipped: s,
|
|
616
|
+
marked: c
|
|
617
|
+
};
|
|
618
|
+
let n = () => {}, r = new Promise((e) => {
|
|
619
|
+
n = e;
|
|
620
|
+
});
|
|
621
|
+
return l(e, (e) => n(e)) === 0 ? (t.forEach((e) => g(e, "readOnly")), {
|
|
622
|
+
written: 0,
|
|
623
|
+
skipped: s,
|
|
624
|
+
marked: []
|
|
625
|
+
}) : {
|
|
626
|
+
written: e.length,
|
|
627
|
+
skipped: s,
|
|
628
|
+
marked: c,
|
|
629
|
+
saved: r
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
if (!u) return m.forEach((e) => g(e, "readOnly")), {
|
|
633
|
+
written: 0,
|
|
634
|
+
skipped: s,
|
|
635
|
+
marked: c
|
|
636
|
+
};
|
|
637
|
+
let v = 0, y = (e) => {
|
|
638
|
+
let n = /* @__PURE__ */ new Map(), i = (t) => {
|
|
639
|
+
let n = a.rowModel.getSourceIndex(t.viewIndex);
|
|
640
|
+
if (n === void 0) return;
|
|
641
|
+
if (e === a.rows) return n;
|
|
642
|
+
let r = t.edit.rowKey;
|
|
643
|
+
if (e[n] !== void 0 && a.resolvedRowKeyGetter(e[n], n) === r) return n;
|
|
644
|
+
let i = e.findIndex((e, t) => a.resolvedRowKeyGetter(e, t) === r);
|
|
645
|
+
return i < 0 ? void 0 : i;
|
|
646
|
+
};
|
|
647
|
+
for (let o of m) {
|
|
648
|
+
let s = i(o), l = s === void 0 ? void 0 : e[s];
|
|
649
|
+
if (s === void 0 || l === void 0) {
|
|
650
|
+
g(o, "notShown");
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
let u = n.get(s), d = _(u ? u.row : l, o);
|
|
654
|
+
if (d.action === "skip") {
|
|
655
|
+
g(o, d.reason, d.message);
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
u || (u = t(l), n.set(s, u)), r(u, a.orderedColumns[o.colIndex], d.value), v += 1, d.invalidMessage !== void 0 && c.push({
|
|
659
|
+
rowKey: o.edit.rowKey,
|
|
660
|
+
columnKey: o.edit.columnKey,
|
|
661
|
+
message: d.invalidMessage
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
if (n.size === 0) return e;
|
|
665
|
+
let o = [...e];
|
|
666
|
+
for (let [e, t] of n) o[e] = t.row;
|
|
667
|
+
return o;
|
|
668
|
+
};
|
|
669
|
+
if (o) return y(a.rows), {
|
|
670
|
+
written: v,
|
|
671
|
+
skipped: s,
|
|
672
|
+
marked: c
|
|
673
|
+
};
|
|
674
|
+
let b = !1;
|
|
675
|
+
return u((e) => (b = !0, y(e))), b ? {
|
|
676
|
+
written: v,
|
|
677
|
+
skipped: s,
|
|
678
|
+
marked: c
|
|
679
|
+
} : (m.forEach((e) => g(e, "readOnly")), {
|
|
680
|
+
written: 0,
|
|
681
|
+
skipped: s,
|
|
682
|
+
marked: []
|
|
683
|
+
});
|
|
684
|
+
},
|
|
444
685
|
setGroupCollapsed: (t, n) => {
|
|
445
|
-
|
|
686
|
+
w?.dispatch(e.setGroupCollapsed(t, n));
|
|
446
687
|
},
|
|
447
688
|
expandAllGroups: () => {
|
|
448
|
-
|
|
689
|
+
w?.dispatch(e.setCollapsedGroupKeys(/* @__PURE__ */ new Set()));
|
|
449
690
|
},
|
|
450
691
|
collapseAllGroups: () => {
|
|
451
|
-
let
|
|
452
|
-
!
|
|
692
|
+
let t = w;
|
|
693
|
+
!t || !t.groupTree || t.dispatch(e.setCollapsedGroupKeys(new Set(i(t.groupTree))));
|
|
453
694
|
},
|
|
454
695
|
getGroupRows: () => {
|
|
455
|
-
let e =
|
|
696
|
+
let e = w;
|
|
456
697
|
if (!e?.groupTree) return [];
|
|
457
|
-
let t =
|
|
458
|
-
return
|
|
698
|
+
let t = J(e).collapsedGroupKeys;
|
|
699
|
+
return a(e.groupTree).map((e) => ({
|
|
459
700
|
...e,
|
|
460
701
|
collapsed: t.has(e.groupKey)
|
|
461
702
|
}));
|
|
462
703
|
},
|
|
463
704
|
setDetailRowExpanded: (t, n) => {
|
|
464
|
-
let
|
|
465
|
-
if (!(!
|
|
466
|
-
if (n &&
|
|
467
|
-
let e = r
|
|
705
|
+
let r = w;
|
|
706
|
+
if (!(!r || !r.detailRowEnabled)) {
|
|
707
|
+
if (n && r.detailIsExpandable) {
|
|
708
|
+
let e = s(r.rowModel, t, r.detailIndexCacheRef.current, !r.isServerSide);
|
|
468
709
|
if (e >= 0) {
|
|
469
|
-
let n =
|
|
470
|
-
if (n != null && !
|
|
710
|
+
let n = r.rowModel.getRow(e);
|
|
711
|
+
if (n != null && !r.detailIsExpandable(n, {
|
|
471
712
|
rowKey: t,
|
|
472
|
-
sourceRowIndex:
|
|
713
|
+
sourceRowIndex: r.rowModel.getSourceIndex(e)
|
|
473
714
|
})) return;
|
|
474
715
|
}
|
|
475
716
|
}
|
|
476
|
-
if (!n &&
|
|
477
|
-
let e = r
|
|
478
|
-
e >= 0 &&
|
|
717
|
+
if (!n && r.beforeDetailRowsCollapse && J(r).expandedDetailRowKeys.has(t)) {
|
|
718
|
+
let e = s(r.rowModel, t, r.detailIndexCacheRef.current, !r.isServerSide);
|
|
719
|
+
e >= 0 && r.beforeDetailRowsCollapse([e]);
|
|
479
720
|
}
|
|
480
|
-
|
|
721
|
+
r.dispatch(e.setDetailRowExpanded(t, n));
|
|
481
722
|
}
|
|
482
723
|
},
|
|
483
724
|
getExpandedDetailRowKeys: () => {
|
|
484
|
-
let e =
|
|
485
|
-
return e && e.detailRowEnabled ? Array.from(
|
|
725
|
+
let e = w;
|
|
726
|
+
return e && e.detailRowEnabled ? Array.from(J(e).expandedDetailRowKeys) : [];
|
|
486
727
|
},
|
|
487
728
|
collapseAllDetailRows: () => {
|
|
488
|
-
let t =
|
|
729
|
+
let t = w;
|
|
489
730
|
if (!(!t || !t.detailRowEnabled)) {
|
|
490
731
|
if (t.beforeDetailRowsCollapse) {
|
|
491
|
-
let e = Array.from(
|
|
732
|
+
let e = Array.from(J(t).expandedDetailRowKeys, (e) => s(t.rowModel, e, t.detailIndexCacheRef.current, !t.isServerSide)).filter((e) => e >= 0);
|
|
492
733
|
e.length > 0 && t.beforeDetailRowsCollapse(e);
|
|
493
734
|
}
|
|
494
735
|
t.dispatch(e.setExpandedDetailRowKeys(/* @__PURE__ */ new Set()));
|
|
495
736
|
}
|
|
496
737
|
},
|
|
497
738
|
moveRow: (e, t) => {
|
|
498
|
-
|
|
739
|
+
w?.moveRowByKey(e, t);
|
|
499
740
|
},
|
|
741
|
+
goToNextChange: () => Te(1),
|
|
742
|
+
goToPrevChange: () => Te(-1),
|
|
500
743
|
getChanges: () => {
|
|
501
|
-
let e =
|
|
502
|
-
return !e?.changeTrackingActive || !e.changeTracker ? (
|
|
744
|
+
let e = w;
|
|
745
|
+
return !e?.changeTrackingActive || !e.changeTracker ? (S(E, "getChanges"), {
|
|
503
746
|
rows: [],
|
|
504
747
|
rowCount: 0,
|
|
505
748
|
cellCount: 0
|
|
506
749
|
}) : e.changeTracker.getChanges();
|
|
507
750
|
},
|
|
508
751
|
markChangesSaved: (e) => {
|
|
509
|
-
let t =
|
|
752
|
+
let t = w;
|
|
510
753
|
if (!t?.changeTrackingActive || !t.changeTracker) {
|
|
511
|
-
|
|
754
|
+
S(E, "markChangesSaved");
|
|
512
755
|
return;
|
|
513
756
|
}
|
|
514
757
|
t.changeTracker.markChangesSaved(e);
|
|
515
758
|
},
|
|
516
759
|
revertChanges: (e) => {
|
|
517
|
-
let t =
|
|
760
|
+
let t = w;
|
|
518
761
|
if (!t?.changeTrackingActive || !t.changeTracker) {
|
|
519
|
-
|
|
762
|
+
S(E, "revertChanges");
|
|
520
763
|
return;
|
|
521
764
|
}
|
|
522
765
|
t.changeTracker.revertChanges(e);
|
|
523
766
|
},
|
|
524
767
|
getInvalidCells: () => {
|
|
525
|
-
let e =
|
|
768
|
+
let e = w;
|
|
526
769
|
if (!e) return [];
|
|
527
770
|
if (e.isServerSide) return process.env.NODE_ENV !== "production" && console.warn("[SpreadsheetGrid] getInvalidCells は serverSide モードでは利用できません(空配列を返します)。\n[SpreadsheetGrid] getInvalidCells is not available with serverSide (returns an empty array)."), [];
|
|
528
771
|
let t = e.treeData, n = t?.stage.structure.childCount, r = t?.columnKey;
|
|
529
|
-
return
|
|
772
|
+
return p(e.rows, e.columns, e.resolvedRowKeyGetter, e.labelRowExport?.isLabelRow, e.localeTexts, n ? (e, t) => t.aggFunc != null && t.key !== r && (n[e] ?? 0) > 0 : void 0);
|
|
530
773
|
},
|
|
531
774
|
refreshServerSide: () => {
|
|
532
|
-
let e =
|
|
775
|
+
let e = w;
|
|
533
776
|
if (e) {
|
|
534
777
|
if (!e.isServerSide) {
|
|
535
778
|
process.env.NODE_ENV !== "production" && console.warn("[SpreadsheetGrid] refreshServerSide は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。\n[SpreadsheetGrid] refreshServerSide does nothing with clientSide rows. It works only when dataSource is passed (with createSpreadsheetGrid, features also needs serverSide: serverSideFeature).");
|
|
@@ -539,7 +782,7 @@ var de = (e) => {
|
|
|
539
782
|
}
|
|
540
783
|
},
|
|
541
784
|
retryServerSideLoads: () => {
|
|
542
|
-
let e =
|
|
785
|
+
let e = w;
|
|
543
786
|
if (e) {
|
|
544
787
|
if (!e.isServerSide) {
|
|
545
788
|
process.env.NODE_ENV !== "production" && console.warn("[SpreadsheetGrid] retryServerSideLoads は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。\n[SpreadsheetGrid] retryServerSideLoads does nothing with clientSide rows. It works only when dataSource is passed (with createSpreadsheetGrid, features also needs serverSide: serverSideFeature).");
|
|
@@ -549,14 +792,14 @@ var de = (e) => {
|
|
|
549
792
|
}
|
|
550
793
|
},
|
|
551
794
|
openFilterManager: () => {
|
|
552
|
-
|
|
795
|
+
w?.openToolPanel("filter");
|
|
553
796
|
},
|
|
554
797
|
closeFilterManager: () => {
|
|
555
|
-
let e =
|
|
798
|
+
let e = w;
|
|
556
799
|
e && e.activeToolPanelTab === "filter" && e.closeToolPanel();
|
|
557
800
|
},
|
|
558
801
|
openFind: (e) => {
|
|
559
|
-
let t =
|
|
802
|
+
let t = w?.find;
|
|
560
803
|
if (!t) return;
|
|
561
804
|
let n = typeof e == "object" && e ? e : null, r = n ? n.query : e;
|
|
562
805
|
if (t.replace) {
|
|
@@ -565,27 +808,27 @@ var de = (e) => {
|
|
|
565
808
|
}
|
|
566
809
|
t.open(typeof r == "string" ? r : void 0);
|
|
567
810
|
},
|
|
568
|
-
replaceNext: (e) =>
|
|
811
|
+
replaceNext: (e) => w?.find.replace?.replaceCurrent(e) ?? {
|
|
569
812
|
replaced: 0,
|
|
570
813
|
skipped: 0
|
|
571
814
|
},
|
|
572
|
-
replaceAll: (e) =>
|
|
815
|
+
replaceAll: (e) => w?.find.replace?.replaceAll(e) ?? Promise.resolve({
|
|
573
816
|
replaced: 0,
|
|
574
817
|
skipped: 0
|
|
575
818
|
}),
|
|
576
819
|
closeFind: () => {
|
|
577
|
-
|
|
820
|
+
w?.find.close();
|
|
578
821
|
},
|
|
579
822
|
findNext: () => {
|
|
580
|
-
|
|
823
|
+
w?.find.next();
|
|
581
824
|
},
|
|
582
825
|
findPrev: () => {
|
|
583
|
-
|
|
826
|
+
w?.find.prev();
|
|
584
827
|
}
|
|
585
828
|
}, $ = () => {
|
|
586
829
|
if (!B) return;
|
|
587
830
|
B = !1;
|
|
588
|
-
let e =
|
|
831
|
+
let e = w;
|
|
589
832
|
if (z === null || e === null) return;
|
|
590
833
|
let t = e.scrollContainerRef.current;
|
|
591
834
|
if (!t || !e.measuredRowHeights || Date.now() > z.until || t.scrollTop < z.pinnedTop - 1) {
|
|
@@ -602,14 +845,19 @@ var de = (e) => {
|
|
|
602
845
|
};
|
|
603
846
|
for (let e of Object.keys(Q)) {
|
|
604
847
|
let t = Q[e];
|
|
605
|
-
typeof t != "function" ||
|
|
606
|
-
if (!
|
|
607
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
608
|
-
[spreadsheet-grid] ${e}() on the handle of an unmounted grid does nothing (the handle was kept in a variable and called after the grid was removed, e.g. by conditional rendering). Reading methods (getState() and so on) return the values from when it was removed.`)), e === "startEditing" || e === "focusNewRow" || e === "commitNewRow") return !1;
|
|
848
|
+
typeof t != "function" || ve.test(e) || (Q[e] = (...n) => {
|
|
849
|
+
if (!T) return t(...n);
|
|
850
|
+
if (process.env.NODE_ENV !== "production" && !D && (D = !0, console.warn(`[spreadsheet-grid] 外したグリッドのハンドルの ${e}() は何もしません(ハンドルを変数に持ったまま、グリッドを条件付きの描画などで外した後に呼んだ)。読むメソッド(getState() など)は外したときの値を返します。
|
|
851
|
+
[spreadsheet-grid] ${e}() on the handle of an unmounted grid does nothing (the handle was kept in a variable and called after the grid was removed, e.g. by conditional rendering). Reading methods (getState() and so on) return the values from when it was removed.`)), e === "startEditing" || e === "focusNewRow" || e === "commitNewRow" || e === "goToNextChange" || e === "goToPrevChange") return !1;
|
|
609
852
|
if (e === "replaceNext") return {
|
|
610
853
|
replaced: 0,
|
|
611
854
|
skipped: 0
|
|
612
855
|
};
|
|
856
|
+
if (e === "setCellValues") return {
|
|
857
|
+
written: 0,
|
|
858
|
+
skipped: [],
|
|
859
|
+
marked: []
|
|
860
|
+
};
|
|
613
861
|
if (e === "replaceAll") return Promise.resolve({
|
|
614
862
|
replaced: 0,
|
|
615
863
|
skipped: 0
|
|
@@ -618,48 +866,48 @@ var de = (e) => {
|
|
|
618
866
|
}
|
|
619
867
|
return {
|
|
620
868
|
update: (e) => {
|
|
621
|
-
let t =
|
|
622
|
-
|
|
623
|
-
let n =
|
|
624
|
-
if (n !== null && n.rowModel !== e.rowModel && (
|
|
869
|
+
let t = w?.physicalBodyHeight;
|
|
870
|
+
T = !1, w = e, O = null, t !== e.physicalBodyHeight && (B = !0);
|
|
871
|
+
let n = M;
|
|
872
|
+
if (n !== null && n.rowModel !== e.rowModel && (M = null, Date.now() <= n.until)) {
|
|
625
873
|
R(n.rowKey, n.colIndex);
|
|
626
|
-
let t =
|
|
627
|
-
t !== null && t.rowKey === n.rowKey && t.rowModel === e.rowModel && (
|
|
874
|
+
let t = M;
|
|
875
|
+
t !== null && t.rowKey === n.rowKey && t.rowModel === e.rowModel && (M = null);
|
|
628
876
|
}
|
|
629
877
|
e.deferBottomPin || (L(), $());
|
|
630
878
|
},
|
|
631
879
|
handle: Q,
|
|
632
880
|
applyScroll: H,
|
|
633
881
|
verticalTargetFor: U,
|
|
634
|
-
horizontalTargetFor:
|
|
635
|
-
scrollToCellInternal:
|
|
882
|
+
horizontalTargetFor: Ce,
|
|
883
|
+
scrollToCellInternal: W,
|
|
636
884
|
settleBottomPin: $,
|
|
637
885
|
flushPendingReveal: L,
|
|
638
886
|
revealCell: (e, t, n) => {
|
|
639
|
-
let r =
|
|
640
|
-
|
|
887
|
+
let r = w, i = N;
|
|
888
|
+
N = null;
|
|
641
889
|
let a = r?.treeData;
|
|
642
|
-
if (n === !0 && r && a &&
|
|
643
|
-
let t = a.stage.structure.keyToIndex.get(e), n = new Set(t === void 0 ? [] :
|
|
644
|
-
for (let e of
|
|
890
|
+
if (n === !0 && r && a && C.treeData && i && J(r).treeOpen === i.state) {
|
|
891
|
+
let t = a.stage.structure.keyToIndex.get(e), n = new Set(t === void 0 ? [] : C.treeData.collectTreeAncestors(a.stage.structure, t).map((e) => a.stage.structure.keys[e])), r = i.keys.filter((e) => !n.has(e)).reverse();
|
|
892
|
+
for (let e of I(r, !1)) a.notifyOpenChange(e, !1);
|
|
645
893
|
}
|
|
646
894
|
let o = R(e, t);
|
|
647
|
-
n === !0 && r && o.length > 0 && (
|
|
895
|
+
n === !0 && r && o.length > 0 && (N = {
|
|
648
896
|
keys: o,
|
|
649
|
-
state:
|
|
897
|
+
state: J(r).treeOpen
|
|
650
898
|
});
|
|
651
899
|
},
|
|
652
900
|
toggleTreeCell: (e, t) => {
|
|
653
|
-
let n =
|
|
901
|
+
let n = w, r = n?.treeData;
|
|
654
902
|
if (!n || !r || n.orderedColumns[e.col]?.key !== r.columnKey) return !1;
|
|
655
903
|
let i = n.rowModel.getRowKey(e.row);
|
|
656
|
-
if (i !== void 0) for (let e of
|
|
904
|
+
if (i !== void 0) for (let e of I([i], t)) r.notifyOpenChange(e, t);
|
|
657
905
|
return !0;
|
|
658
906
|
},
|
|
659
907
|
dispose: () => {
|
|
660
|
-
|
|
908
|
+
T = !0, z = null;
|
|
661
909
|
}
|
|
662
910
|
};
|
|
663
911
|
};
|
|
664
912
|
//#endregion
|
|
665
|
-
export {
|
|
913
|
+
export { C as createGridApi };
|