@ishibashi0112/spreadsheet-grid-core 0.61.0 → 0.63.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/autoHeightMeasurer.cjs +1 -1
- package/dist/controllers/autoHeightMeasurer.d.ts +1 -0
- package/dist/controllers/autoHeightMeasurer.js +59 -48
- package/dist/controllers/columnHeaderDragController.cjs +1 -1
- package/dist/controllers/columnHeaderDragController.js +119 -115
- package/dist/controllers/columnMenuController.cjs +1 -1
- package/dist/controllers/columnMenuController.d.ts +2 -0
- package/dist/controllers/columnMenuController.js +74 -60
- package/dist/controllers/contextMenuController.cjs +1 -1
- package/dist/controllers/contextMenuController.js +42 -32
- package/dist/controllers/detailTabOrder.cjs +1 -0
- package/dist/controllers/detailTabOrder.d.ts +4 -0
- package/dist/controllers/detailTabOrder.js +33 -0
- package/dist/controllers/fillHandleController.cjs +1 -1
- package/dist/controllers/fillHandleController.js +119 -117
- package/dist/controllers/filterPopoverController.cjs +1 -1
- package/dist/controllers/filterPopoverController.d.ts +1 -0
- package/dist/controllers/filterPopoverController.js +4 -2
- package/dist/controllers/imeInputController.cjs +1 -1
- package/dist/controllers/imeInputController.js +1 -1
- package/dist/controllers/keyboardController.cjs +1 -1
- package/dist/controllers/keyboardController.d.ts +5 -0
- package/dist/controllers/keyboardController.js +182 -86
- package/dist/controllers/pointerInteractionsController.cjs +1 -1
- package/dist/controllers/pointerInteractionsController.d.ts +1 -0
- package/dist/controllers/pointerInteractionsController.js +33 -17
- package/dist/controllers/popoverSupport.cjs +1 -1
- package/dist/controllers/popoverSupport.d.ts +3 -0
- package/dist/controllers/popoverSupport.js +25 -5
- package/dist/controllers/rowDragController.cjs +1 -1
- package/dist/controllers/rowDragController.js +166 -121
- package/dist/controllers/saveStatusController.cjs +1 -1
- package/dist/controllers/saveStatusController.js +71 -25
- package/dist/controllers/serverSideRowModel.cjs +1 -1
- package/dist/controllers/serverSideRowModel.d.ts +1 -0
- package/dist/controllers/serverSideRowModel.js +180 -133
- package/dist/controllers/toolPanelController.cjs +1 -1
- package/dist/controllers/toolPanelController.js +2 -0
- package/dist/controllers/tooltipController.cjs +1 -1
- package/dist/controllers/tooltipController.js +54 -53
- package/dist/controllers/viewportSyncController.cjs +1 -1
- package/dist/controllers/viewportSyncController.d.ts +3 -1
- package/dist/controllers/viewportSyncController.js +4 -4
- package/dist/engine/columnCommands.cjs +1 -1
- package/dist/engine/columnCommands.d.ts +2 -0
- package/dist/engine/columnCommands.js +71 -31
- package/dist/engine/columnLayout.cjs +1 -1
- package/dist/engine/columnLayout.js +15 -14
- package/dist/engine/createGridEngine.cjs +1 -1
- package/dist/engine/createGridEngine.d.ts +3 -1
- package/dist/engine/createGridEngine.js +71 -49
- package/dist/engine/exportCommands.cjs +1 -1
- package/dist/engine/exportCommands.d.ts +2 -1
- package/dist/engine/exportCommands.js +117 -92
- package/dist/engine/features.d.ts +3 -1
- package/dist/engine/fullFeatures.cjs +1 -1
- package/dist/engine/fullFeatures.js +23 -21
- package/dist/engine/gridApi.cjs +1 -1
- package/dist/engine/gridApi.d.ts +10 -2
- package/dist/engine/gridApi.js +389 -297
- package/dist/engine/notifiers.cjs +1 -1
- package/dist/engine/notifiers.d.ts +1 -0
- package/dist/engine/notifiers.js +10 -5
- package/dist/engine/rowPipeline.cjs +1 -1
- package/dist/engine/rowPipeline.d.ts +2 -0
- package/dist/engine/rowPipeline.js +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -6
- package/dist/logic/columnAutosize.cjs +1 -1
- package/dist/logic/columnAutosize.js +84 -84
- package/dist/logic/columnWidthState.cjs +1 -1
- package/dist/logic/columnWidthState.js +25 -20
- package/dist/logic/detailRow.cjs +1 -1
- package/dist/logic/detailRow.d.ts +12 -0
- package/dist/logic/detailRow.js +42 -4
- package/dist/logic/editorValues.cjs +1 -1
- package/dist/logic/editorValues.js +14 -13
- package/dist/logic/exportCsv.cjs +2 -2
- package/dist/logic/exportCsv.d.ts +3 -1
- package/dist/logic/exportCsv.js +15 -10
- package/dist/logic/exportData.cjs +1 -1
- package/dist/logic/exportData.d.ts +3 -1
- package/dist/logic/exportData.js +23 -15
- package/dist/logic/filterSummary.cjs +1 -1
- package/dist/logic/filterSummary.d.ts +9 -3
- package/dist/logic/filterSummary.js +39 -13
- package/dist/logic/gridAsk.cjs +1 -1
- package/dist/logic/gridAsk.js +106 -106
- package/dist/logic/gridState.cjs +1 -1
- package/dist/logic/gridState.d.ts +19 -0
- package/dist/logic/gridState.js +93 -53
- package/dist/logic/groupExport.cjs +1 -0
- package/dist/logic/groupExport.d.ts +15 -0
- package/dist/logic/groupExport.js +40 -0
- package/dist/logic/grouping.cjs +1 -1
- package/dist/logic/grouping.d.ts +2 -2
- package/dist/logic/grouping.js +58 -40
- package/dist/logic/localeText.cjs +1 -0
- package/dist/logic/localeText.d.ts +4 -0
- package/dist/logic/localeText.js +45 -0
- package/dist/logic/numberFilterCondition.cjs +1 -1
- package/dist/logic/numberFilterCondition.d.ts +1 -1
- package/dist/logic/numberFilterCondition.js +12 -9
- package/dist/logic/scrollTargets.cjs +1 -1
- package/dist/logic/scrollTargets.d.ts +6 -1
- package/dist/logic/scrollTargets.js +8 -8
- package/dist/logic/theme.cjs +1 -1
- package/dist/logic/theme.d.ts +2 -0
- package/dist/logic/theme.js +2 -2
- package/dist/logic/urgentFilters.cjs +1 -0
- package/dist/logic/urgentFilters.d.ts +3 -0
- package/dist/logic/urgentFilters.js +6 -0
- package/dist/logic/validation.cjs +1 -1
- package/dist/logic/validation.d.ts +1 -1
- package/dist/logic/validation.js +10 -10
- package/dist/logic/valueFormatters.d.ts +2 -1
- package/dist/model/gridActions.cjs +1 -1
- package/dist/model/gridActions.d.ts +4 -2
- package/dist/model/gridActions.js +12 -4
- package/dist/model/gridReducer.cjs +1 -1
- package/dist/model/gridReducer.js +2 -2
- package/dist/model/gridStore.cjs +1 -1
- package/dist/model/gridStore.d.ts +1 -0
- package/dist/model/gridStore.js +2 -1
- package/dist/model/gridTypes.core.d.ts +244 -40
- package/dist/utils/permissions.cjs +1 -1
- package/dist/utils/permissions.js +5 -3
- package/dist/utils/portalTokens.cjs +1 -0
- package/dist/utils/portalTokens.d.ts +3 -0
- package/dist/utils/portalTokens.js +65 -0
- package/package.json +1 -1
package/dist/engine/gridApi.js
CHANGED
|
@@ -1,340 +1,432 @@
|
|
|
1
1
|
import { collectAllGroupKeys as e, collectAllGroupRows as t } from "../logic/grouping.js";
|
|
2
|
-
import { findDetailRowIndex as n } from "../logic/detailRow.js";
|
|
3
|
-
import { gridActions as
|
|
4
|
-
import { computeSinglePaneColumnExtent as
|
|
5
|
-
import { normalizeCellRange as
|
|
6
|
-
import { scanInvalidCells as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { findDetailRowIndex as n, findViewRowIndexByKey as r } from "../logic/detailRow.js";
|
|
3
|
+
import { gridActions as i } from "../model/gridActions.js";
|
|
4
|
+
import { computeSinglePaneColumnExtent as a } from "../logic/geometry.js";
|
|
5
|
+
import { normalizeCellRange as o, normalizeRowRange as s } from "../model/gridSelectors.js";
|
|
6
|
+
import { scanInvalidCells as c } from "../logic/validation.js";
|
|
7
|
+
import { resolveDataRowNumber as l } from "../logic/labelRows.js";
|
|
8
|
+
import { logicalToPhysicalScrollTop as u, physicalToLogicalScrollTop as d } from "../logic/verticalGeometry.js";
|
|
9
|
+
import { clearRowSelection as f, countSelectedRows as p, resolveIsRowSelected as m, rowSelectionFromModel as h, rowSelectionToModel as g, selectAllRows as _ } from "../logic/rowSelection.js";
|
|
10
|
+
import { applyColumnState as v, buildGridState as y, dropUnknownColumnKeys as b, extractColumnState as x, migrateGridStatePatch as S } from "../logic/gridState.js";
|
|
11
|
+
import { createInertExportCommands as C } from "./features.js";
|
|
12
|
+
import { markUrgentFilters as w } from "../logic/urgentFilters.js";
|
|
13
|
+
import { computeHorizontalScrollTarget as T, computeVerticalScrollTarget as E } from "../logic/scrollTargets.js";
|
|
12
14
|
//#region src/engine/gridApi.ts
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
+
var D = (e) => {
|
|
16
|
+
process.env.NODE_ENV !== "production" && console.warn(`[spreadsheet-grid] applyState: 今の列定義(columns)に無い列 ${e.map((e) => `\`${e}\``).join(", ")} の列幅 / フィルター / 並べ替えを捨てました。列定義を読み込む前なら、列定義を渡してから applyState を呼んでください。列を消した後の古い保存状態なら、applyState の後の getState() の値を保存し直すと出なくなります。`);
|
|
17
|
+
}, O = 1e3, k = (k = {}) => {
|
|
18
|
+
let A = null, j = null, M = (e) => j !== null && j.base === e.columns ? j.next : e.columns, N = (k.export?.createExportCommands ?? C)(() => A, k.grouping), P = null, F = (e, t, n = "auto") => {
|
|
15
19
|
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);
|
|
16
|
-
(Math.round(a) !== Math.round(e.scrollTop) || Math.round(o) !== Math.round(e.scrollLeft)) &&
|
|
20
|
+
(Math.round(a) !== Math.round(e.scrollTop) || Math.round(o) !== Math.round(e.scrollLeft)) && A?.markApiScroll(), e.scrollTo({
|
|
17
21
|
top: a,
|
|
18
22
|
left: o,
|
|
19
23
|
behavior: n
|
|
20
24
|
});
|
|
21
|
-
},
|
|
22
|
-
let r =
|
|
25
|
+
}, I = (e, t, n) => {
|
|
26
|
+
let r = A?.scrollContainerRef.current ?? null, i = A;
|
|
23
27
|
if (!r || !i) return;
|
|
24
|
-
let a =
|
|
25
|
-
|
|
28
|
+
let a = d(r.scrollTop, i.verticalScaleFactor), o = e ?? a, s = o === a ? r.scrollTop : u(o, i.verticalScaleFactor);
|
|
29
|
+
F(r, {
|
|
26
30
|
top: n === "end" || n === "auto" && o > a ? Math.ceil(s) : s,
|
|
27
31
|
left: t === null ? r.scrollLeft : t
|
|
28
32
|
});
|
|
29
|
-
},
|
|
30
|
-
let n =
|
|
33
|
+
}, L = (e, t) => {
|
|
34
|
+
let n = A?.scrollContainerRef.current ?? null, r = A;
|
|
31
35
|
if (!n || !r || r.viewRowCount === 0) return null;
|
|
32
36
|
let i = Math.min(Math.max(e, 0), r.viewRowCount - 1);
|
|
33
|
-
return
|
|
37
|
+
return E({
|
|
34
38
|
rowTop: r.rowMetrics.rowTop(i),
|
|
35
39
|
rowHeight: r.rowMetrics.cellHeight(i),
|
|
36
40
|
headerHeight: r.headerHeight,
|
|
37
41
|
viewportHeight: n.clientHeight - (r.footerHeight ?? 0),
|
|
38
|
-
currentScrollTop:
|
|
39
|
-
align: t
|
|
42
|
+
currentScrollTop: d(n.scrollTop, r.verticalScaleFactor),
|
|
43
|
+
align: t,
|
|
44
|
+
stickyTopInset: r.stickyTopInset
|
|
40
45
|
});
|
|
41
|
-
},
|
|
42
|
-
let n =
|
|
46
|
+
}, R = (e, t) => {
|
|
47
|
+
let n = A?.scrollContainerRef.current ?? null, r = A;
|
|
43
48
|
if (!n || !r) return null;
|
|
44
|
-
let
|
|
45
|
-
return !
|
|
46
|
-
cellLeft: r.leftPaneTotalWidth + r.centerLeadingWidth +
|
|
47
|
-
cellWidth:
|
|
49
|
+
let i = a(r.paneLayout, e);
|
|
50
|
+
return !i || i.pane !== "center" ? null : T({
|
|
51
|
+
cellLeft: r.leftPaneTotalWidth + r.centerLeadingWidth + i.extent.start,
|
|
52
|
+
cellWidth: i.extent.width,
|
|
48
53
|
leftPaneWidth: r.leftPaneTotalWidth,
|
|
49
54
|
rightPaneWidth: r.rightPaneTotalWidth,
|
|
50
55
|
viewportWidth: n.clientWidth,
|
|
51
56
|
currentScrollLeft: n.scrollLeft,
|
|
52
57
|
align: t
|
|
53
58
|
});
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
let t =
|
|
59
|
+
}, z = (e, t, n) => {
|
|
60
|
+
I(L(e, n), R(t, n), n);
|
|
61
|
+
}, B = (e) => {
|
|
62
|
+
let t = A;
|
|
58
63
|
return t ? {
|
|
59
64
|
row: Math.min(Math.max(e.row, 0), Math.max(t.viewRowCount - 1, 0)),
|
|
60
65
|
col: Math.min(Math.max(e.col, 0), Math.max(t.orderedColumns.length - 1, 0))
|
|
61
66
|
} : e;
|
|
67
|
+
}, V = (e, t, n = 1) => {
|
|
68
|
+
let r = (t) => e.rowModel.getLabelRow?.(t) !== void 0;
|
|
69
|
+
if (!r(t)) return t;
|
|
70
|
+
for (let i of [n, -n]) for (let n = t + i; n >= 0 && n < e.viewRowCount; n += i) if (!r(n)) return n;
|
|
71
|
+
return t;
|
|
72
|
+
}, H = (e) => e.getUiState?.() ?? e.uiState, U = {
|
|
73
|
+
model: null,
|
|
74
|
+
map: /* @__PURE__ */ new Map()
|
|
75
|
+
}, W = {
|
|
76
|
+
scrollToRow: (e, t) => {
|
|
77
|
+
let n = t?.align ?? "auto";
|
|
78
|
+
I(L(e, n), null, n);
|
|
79
|
+
},
|
|
80
|
+
scrollToCell: (e, t, n) => z(e, t, n?.align ?? "auto"),
|
|
81
|
+
scrollToTop: () => {
|
|
82
|
+
let e = A?.scrollContainerRef.current ?? null;
|
|
83
|
+
e && F(e, {
|
|
84
|
+
top: 0,
|
|
85
|
+
left: e.scrollLeft
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
scrollToBottom: () => {
|
|
89
|
+
let e = A?.scrollContainerRef.current ?? null, t = A;
|
|
90
|
+
!e || !t || (F(e, {
|
|
91
|
+
top: Math.max(t.headerHeight + t.physicalBodyHeight + (t.footerHeight ?? 0) - e.clientHeight, 0),
|
|
92
|
+
left: e.scrollLeft
|
|
93
|
+
}), P = t.measuredRowHeights ? {
|
|
94
|
+
pinnedTop: e.scrollTop,
|
|
95
|
+
until: Date.now() + O
|
|
96
|
+
} : null);
|
|
97
|
+
},
|
|
98
|
+
getScrollPosition: () => {
|
|
99
|
+
let e = A?.scrollContainerRef.current ?? null;
|
|
100
|
+
return e ? {
|
|
101
|
+
top: e.scrollTop,
|
|
102
|
+
left: e.scrollLeft
|
|
103
|
+
} : null;
|
|
104
|
+
},
|
|
105
|
+
setScrollPosition: (e, t) => {
|
|
106
|
+
let n = A?.scrollContainerRef.current ?? null;
|
|
107
|
+
n && F(n, {
|
|
108
|
+
top: e.top ?? n.scrollTop,
|
|
109
|
+
left: e.left ?? n.scrollLeft
|
|
110
|
+
}, t?.behavior ?? "auto");
|
|
111
|
+
},
|
|
112
|
+
getVisibleRowRange: () => {
|
|
113
|
+
let e = A;
|
|
114
|
+
return !e || e.windowLastRow < e.windowFirstRow ? null : {
|
|
115
|
+
startIndex: e.windowFirstRow,
|
|
116
|
+
endIndex: e.windowLastRow + 1
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
getActiveCell: () => {
|
|
120
|
+
let e = A ? H(A).activeCell : null;
|
|
121
|
+
return e ? {
|
|
122
|
+
row: e.row,
|
|
123
|
+
col: e.col
|
|
124
|
+
} : null;
|
|
125
|
+
},
|
|
126
|
+
setActiveCell: (e, t) => {
|
|
127
|
+
let n = A;
|
|
128
|
+
if (!n) return;
|
|
129
|
+
let r = e ? B(e) : null, a = r ? {
|
|
130
|
+
row: V(n, r.row),
|
|
131
|
+
col: r.col
|
|
132
|
+
} : null;
|
|
133
|
+
n.dispatch(i.activateCell(a)), a && t?.scrollIntoView && z(a.row, a.col, "auto");
|
|
134
|
+
},
|
|
135
|
+
getSelection: () => A ? H(A).selection : null,
|
|
136
|
+
focus: () => {
|
|
137
|
+
A?.focusGrid?.();
|
|
138
|
+
},
|
|
139
|
+
startEditing: (e, t) => {
|
|
140
|
+
let n = A;
|
|
141
|
+
if (!n || !n.startEditCell || e === void 0 != (t === void 0)) return !1;
|
|
142
|
+
let r = H(n);
|
|
143
|
+
if (r.editingCell !== null) return !1;
|
|
144
|
+
let a = e === void 0 || t === void 0 ? r.activeCell : {
|
|
145
|
+
row: e,
|
|
146
|
+
col: t
|
|
147
|
+
};
|
|
148
|
+
return !a || !Number.isInteger(a.row) || !Number.isInteger(a.col) || a.row < 0 || a.row >= n.viewRowCount || a.col < 0 || a.col >= n.orderedColumns.length || !n.startEditCell(a) ? !1 : (n.dispatch(i.startSelection(a)), n.dispatch(i.endSelection()), z(a.row, a.col, "auto"), n.focusGrid?.(), !0);
|
|
149
|
+
},
|
|
150
|
+
getViewRowIndex: (e) => {
|
|
151
|
+
let t = A;
|
|
152
|
+
return t ? (U.model !== t.rowModel && (U = {
|
|
153
|
+
model: t.rowModel,
|
|
154
|
+
map: /* @__PURE__ */ new Map()
|
|
155
|
+
}), r(t.rowModel, e, U.map)) : -1;
|
|
156
|
+
},
|
|
157
|
+
getColIndex: (e) => A?.orderedColumns.findIndex((t) => t.key === e) ?? -1,
|
|
158
|
+
getRowNumber: (e) => {
|
|
159
|
+
let t = A, n = W.getViewRowIndex(e);
|
|
160
|
+
return !t || n < 0 || t.rowModel.getLabelRow?.(n) !== void 0 ? null : t.labelViewIndexes ? l(t.labelViewIndexes, n) : n + 1;
|
|
161
|
+
},
|
|
162
|
+
selectCell: (e, t, n) => {
|
|
163
|
+
let r = A;
|
|
164
|
+
if (!r) return;
|
|
165
|
+
let a = B({
|
|
166
|
+
row: e,
|
|
167
|
+
col: t
|
|
168
|
+
}), o = {
|
|
169
|
+
row: V(r, a.row),
|
|
170
|
+
col: a.col
|
|
171
|
+
};
|
|
172
|
+
r.dispatch(i.startSelection(o)), r.dispatch(i.endSelection()), n?.scrollIntoView && z(o.row, o.col, "auto");
|
|
173
|
+
},
|
|
174
|
+
selectRange: (e, t) => {
|
|
175
|
+
let n = A;
|
|
176
|
+
if (!n) return;
|
|
177
|
+
let r = B(e.start), a = B(e.end), o = V(n, r.row, a.row < r.row ? -1 : 1);
|
|
178
|
+
(o < Math.min(r.row, a.row) || o > Math.max(r.row, a.row)) && (r = {
|
|
179
|
+
row: o,
|
|
180
|
+
col: r.col
|
|
181
|
+
}, a = {
|
|
182
|
+
row: o,
|
|
183
|
+
col: a.col
|
|
184
|
+
}), n.dispatch(i.startSelection(r)), n.dispatch(i.updateSelection(a)), n.dispatch(i.endSelection()), o !== r.row && n.dispatch(i.activateCell({
|
|
185
|
+
row: o,
|
|
186
|
+
col: r.col
|
|
187
|
+
})), t?.scrollIntoView && z(a.row, a.col, "auto");
|
|
188
|
+
},
|
|
189
|
+
clearSelection: () => {
|
|
190
|
+
A?.dispatch(i.clearSelection());
|
|
191
|
+
},
|
|
192
|
+
getSelectedRows: () => {
|
|
193
|
+
let e = A;
|
|
194
|
+
if (!e) return [];
|
|
195
|
+
let t = H(e).selection;
|
|
196
|
+
if (!t) return [];
|
|
197
|
+
let n = [], r = (t) => {
|
|
198
|
+
let r = e.rowModel.getRow(t);
|
|
199
|
+
r && n.push(r);
|
|
200
|
+
};
|
|
201
|
+
if (t.type === "cell") {
|
|
202
|
+
let e = o(t.range);
|
|
203
|
+
for (let t = e.start.row; t <= e.end.row; t += 1) r(t);
|
|
204
|
+
} else if (t.type === "row") {
|
|
205
|
+
let e = s(t.startRow, t.endRow);
|
|
206
|
+
for (let t = e.startRow; t <= e.endRow; t += 1) r(t);
|
|
207
|
+
} else for (let t = 0; t < e.viewRowCount; t += 1) r(t);
|
|
208
|
+
return n;
|
|
209
|
+
},
|
|
210
|
+
exportCsv: (e) => N.exportCsv(e),
|
|
211
|
+
downloadCsv: (e, t) => N.downloadCsv(e, t),
|
|
212
|
+
getExportData: (e) => N.getExportData(e),
|
|
213
|
+
getState: () => {
|
|
214
|
+
let e = A;
|
|
215
|
+
if (!e) return y({}, {
|
|
216
|
+
globalText: "",
|
|
217
|
+
columnFilters: {}
|
|
218
|
+
}, [], []);
|
|
219
|
+
let t = H(e);
|
|
220
|
+
return y(t.columnWidths, t.filters, t.sort, x(M(e)));
|
|
221
|
+
},
|
|
222
|
+
applyState: (e) => {
|
|
223
|
+
let t = A;
|
|
224
|
+
if (!t) return;
|
|
225
|
+
let { patch: n, dropped: r } = b(S(e), new Set(t.columns.map((e) => e.key)));
|
|
226
|
+
r.length > 0 && D(r);
|
|
227
|
+
let a = H(t);
|
|
228
|
+
if (t.onColumnsChange && n.columns) {
|
|
229
|
+
let e = v(M(t), n.columns, n.columnWidths ?? a.columnWidths);
|
|
230
|
+
j = {
|
|
231
|
+
base: t.columns,
|
|
232
|
+
next: e
|
|
233
|
+
}, t.onColumnsChange(e);
|
|
234
|
+
}
|
|
235
|
+
if (n.columnWidths && t.dispatch(i.resetColumnWidths(n.columnWidths)), n.filters) {
|
|
236
|
+
let e = {
|
|
237
|
+
globalText: n.filters.globalText ?? a.filters.globalText,
|
|
238
|
+
columnFilters: n.filters.columnFilters ?? a.filters.columnFilters
|
|
239
|
+
};
|
|
240
|
+
w(e), t.dispatch(i.setAllFilters(e));
|
|
241
|
+
}
|
|
242
|
+
n.sort && t.dispatch(i.setSort(n.sort));
|
|
243
|
+
},
|
|
244
|
+
getRowSelection: () => {
|
|
245
|
+
let e = A;
|
|
246
|
+
return e ? g(H(e).rowSelection) : {
|
|
247
|
+
type: "include",
|
|
248
|
+
rowKeys: []
|
|
249
|
+
};
|
|
250
|
+
},
|
|
251
|
+
setRowSelection: (e) => {
|
|
252
|
+
A?.commitRowSelection(h(e));
|
|
253
|
+
},
|
|
254
|
+
getSelectedRowKeys: () => {
|
|
255
|
+
let e = A;
|
|
256
|
+
if (!e) return [];
|
|
257
|
+
let t = H(e).rowSelection;
|
|
258
|
+
if (t.mode === "include") return Array.from(t.keys);
|
|
259
|
+
let n = [], r = e.rowModel.getRowCount();
|
|
260
|
+
for (let i = 0; i < r; i += 1) {
|
|
261
|
+
if (!e.rowModel.getRow(i)) continue;
|
|
262
|
+
let r = e.rowModel.getRowKey(i) ?? i;
|
|
263
|
+
t.keys.has(r) || n.push(r);
|
|
264
|
+
}
|
|
265
|
+
return n;
|
|
266
|
+
},
|
|
267
|
+
getSelectedRowData: () => {
|
|
268
|
+
let e = A;
|
|
269
|
+
if (!e) return [];
|
|
270
|
+
let t = H(e).rowSelection, n = [], r = e.rowModel.getRowCount();
|
|
271
|
+
for (let i = 0; i < r; i += 1) {
|
|
272
|
+
let r = e.rowModel.getRow(i);
|
|
273
|
+
r && m(t, e.rowModel.getRowKey(i) ?? i) && n.push(r);
|
|
274
|
+
}
|
|
275
|
+
return n;
|
|
276
|
+
},
|
|
277
|
+
getSelectedRowCount: () => {
|
|
278
|
+
let e = A;
|
|
279
|
+
return e ? p(H(e).rowSelection, e.leafRowCount) : 0;
|
|
280
|
+
},
|
|
281
|
+
isRowSelected: (e) => {
|
|
282
|
+
let t = A;
|
|
283
|
+
return t ? m(H(t).rowSelection, e) : !1;
|
|
284
|
+
},
|
|
285
|
+
selectAllRows: () => {
|
|
286
|
+
A?.commitRowSelection(_());
|
|
287
|
+
},
|
|
288
|
+
clearRowSelection: () => {
|
|
289
|
+
A?.commitRowSelection(f());
|
|
290
|
+
},
|
|
291
|
+
undo: () => {
|
|
292
|
+
A?.undoRows();
|
|
293
|
+
},
|
|
294
|
+
redo: () => {
|
|
295
|
+
A?.redoRows();
|
|
296
|
+
},
|
|
297
|
+
canUndo: () => A?.canUndoRows() ?? !1,
|
|
298
|
+
canRedo: () => A?.canRedoRows() ?? !1,
|
|
299
|
+
clearUndoHistory: () => {
|
|
300
|
+
A?.clearUndoHistory();
|
|
301
|
+
},
|
|
302
|
+
applyRows: (e) => {
|
|
303
|
+
let t = A;
|
|
304
|
+
if (t) {
|
|
305
|
+
if (!t.applyRowsChange || t.isServerSide) {
|
|
306
|
+
process.env.NODE_ENV !== "production" && console.warn("[spreadsheet-grid] applyRows: onRowsChange が無いか serverSide なので、何もしません(serverSide の行はサーバーで変えて refreshServerSide() で取り直してください)。");
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
t.applyRowsChange(e);
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
setGroupCollapsed: (e, t) => {
|
|
313
|
+
A?.dispatch(i.setGroupCollapsed(e, t));
|
|
314
|
+
},
|
|
315
|
+
expandAllGroups: () => {
|
|
316
|
+
A?.dispatch(i.setCollapsedGroupKeys(/* @__PURE__ */ new Set()));
|
|
317
|
+
},
|
|
318
|
+
collapseAllGroups: () => {
|
|
319
|
+
let t = A;
|
|
320
|
+
!t || !t.groupTree || t.dispatch(i.setCollapsedGroupKeys(new Set(e(t.groupTree))));
|
|
321
|
+
},
|
|
322
|
+
getGroupRows: () => {
|
|
323
|
+
let e = A;
|
|
324
|
+
return e?.groupTree ? t(e.groupTree) : [];
|
|
325
|
+
},
|
|
326
|
+
setDetailRowExpanded: (e, t) => {
|
|
327
|
+
let r = A;
|
|
328
|
+
if (!(!r || !r.detailRowEnabled)) {
|
|
329
|
+
if (t && r.detailIsExpandable) {
|
|
330
|
+
let t = n(r.rowModel, e, r.detailIndexCacheRef.current, !r.isServerSide);
|
|
331
|
+
if (t >= 0) {
|
|
332
|
+
let n = r.rowModel.getRow(t);
|
|
333
|
+
if (n != null && !r.detailIsExpandable(n, {
|
|
334
|
+
rowKey: e,
|
|
335
|
+
sourceRowIndex: r.rowModel.getSourceIndex(t)
|
|
336
|
+
})) return;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (!t && r.beforeDetailRowsCollapse && H(r).expandedDetailRowKeys.has(e)) {
|
|
340
|
+
let t = n(r.rowModel, e, r.detailIndexCacheRef.current, !r.isServerSide);
|
|
341
|
+
t >= 0 && r.beforeDetailRowsCollapse([t]);
|
|
342
|
+
}
|
|
343
|
+
r.dispatch(i.setDetailRowExpanded(e, t));
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
getExpandedDetailRowKeys: () => {
|
|
347
|
+
let e = A;
|
|
348
|
+
return e && e.detailRowEnabled ? Array.from(H(e).expandedDetailRowKeys) : [];
|
|
349
|
+
},
|
|
350
|
+
collapseAllDetailRows: () => {
|
|
351
|
+
let e = A;
|
|
352
|
+
if (!(!e || !e.detailRowEnabled)) {
|
|
353
|
+
if (e.beforeDetailRowsCollapse) {
|
|
354
|
+
let t = Array.from(H(e).expandedDetailRowKeys, (t) => n(e.rowModel, t, e.detailIndexCacheRef.current, !e.isServerSide)).filter((e) => e >= 0);
|
|
355
|
+
t.length > 0 && e.beforeDetailRowsCollapse(t);
|
|
356
|
+
}
|
|
357
|
+
e.dispatch(i.setExpandedDetailRowKeys(/* @__PURE__ */ new Set()));
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
moveRow: (e, t) => {
|
|
361
|
+
A?.moveRowByKey(e, t);
|
|
362
|
+
},
|
|
363
|
+
getInvalidCells: () => {
|
|
364
|
+
let e = A;
|
|
365
|
+
return e ? e.isServerSide ? (console.warn("[SpreadsheetGrid] getInvalidCells は serverSide モードでは利用できません(空配列を返します)。"), []) : c(e.rows, e.columns, e.resolvedRowKeyGetter, e.labelRowExport?.isLabelRow) : [];
|
|
366
|
+
},
|
|
367
|
+
refreshServerSide: () => {
|
|
368
|
+
let e = A;
|
|
369
|
+
if (e) {
|
|
370
|
+
if (!e.isServerSide) {
|
|
371
|
+
console.warn("[SpreadsheetGrid] refreshServerSide は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(/lite の createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。");
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
e.serverSideRefresh();
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
retryServerSideLoads: () => {
|
|
378
|
+
let e = A;
|
|
379
|
+
if (e) {
|
|
380
|
+
if (!e.isServerSide) {
|
|
381
|
+
console.warn("[SpreadsheetGrid] retryServerSideLoads は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(/lite の createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。");
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
e.serverSideRetryFailed();
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
openFilterManager: () => {
|
|
388
|
+
A?.openToolPanel("filter");
|
|
389
|
+
},
|
|
390
|
+
closeFilterManager: () => {
|
|
391
|
+
let e = A;
|
|
392
|
+
e && e.activeToolPanelTab === "filter" && e.closeToolPanel();
|
|
393
|
+
},
|
|
394
|
+
openFind: (e) => {
|
|
395
|
+
A?.find.open(e);
|
|
396
|
+
},
|
|
397
|
+
closeFind: () => {
|
|
398
|
+
A?.find.close();
|
|
399
|
+
},
|
|
400
|
+
findNext: () => {
|
|
401
|
+
A?.find.next();
|
|
402
|
+
},
|
|
403
|
+
findPrev: () => {
|
|
404
|
+
A?.find.prev();
|
|
405
|
+
}
|
|
62
406
|
};
|
|
63
407
|
return {
|
|
64
408
|
update: (e) => {
|
|
65
|
-
let t =
|
|
66
|
-
if (
|
|
409
|
+
let t = A?.physicalBodyHeight;
|
|
410
|
+
if (A = e, j = null, P === null || t === e.physicalBodyHeight) return;
|
|
67
411
|
let n = e.scrollContainerRef.current;
|
|
68
|
-
if (!n || !e.measuredRowHeights || Date.now() >
|
|
69
|
-
|
|
412
|
+
if (!n || !e.measuredRowHeights || Date.now() > P.until || n.scrollTop < P.pinnedTop - 1) {
|
|
413
|
+
P = null;
|
|
70
414
|
return;
|
|
71
415
|
}
|
|
72
|
-
|
|
416
|
+
F(n, {
|
|
73
417
|
top: Math.max(e.headerHeight + e.physicalBodyHeight + (e.footerHeight ?? 0) - n.clientHeight, 0),
|
|
74
418
|
left: n.scrollLeft
|
|
75
|
-
}),
|
|
76
|
-
...
|
|
419
|
+
}), P = {
|
|
420
|
+
...P,
|
|
77
421
|
pinnedTop: n.scrollTop
|
|
78
422
|
};
|
|
79
423
|
},
|
|
80
|
-
handle:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
scrollToCell: (e, t, n) => M(e, t, n?.align ?? "auto"),
|
|
86
|
-
scrollToTop: () => {
|
|
87
|
-
let e = T?.scrollContainerRef.current ?? null;
|
|
88
|
-
e && O(e, {
|
|
89
|
-
top: 0,
|
|
90
|
-
left: e.scrollLeft
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
scrollToBottom: () => {
|
|
94
|
-
let e = T?.scrollContainerRef.current ?? null, t = T;
|
|
95
|
-
!e || !t || (O(e, {
|
|
96
|
-
top: Math.max(t.headerHeight + t.physicalBodyHeight + (t.footerHeight ?? 0) - e.clientHeight, 0),
|
|
97
|
-
left: e.scrollLeft
|
|
98
|
-
}), D = t.measuredRowHeights ? {
|
|
99
|
-
pinnedTop: e.scrollTop,
|
|
100
|
-
until: Date.now() + C
|
|
101
|
-
} : null);
|
|
102
|
-
},
|
|
103
|
-
getScrollPosition: () => {
|
|
104
|
-
let e = T?.scrollContainerRef.current ?? null;
|
|
105
|
-
return e ? {
|
|
106
|
-
top: e.scrollTop,
|
|
107
|
-
left: e.scrollLeft
|
|
108
|
-
} : null;
|
|
109
|
-
},
|
|
110
|
-
setScrollPosition: (e, t) => {
|
|
111
|
-
let n = T?.scrollContainerRef.current ?? null;
|
|
112
|
-
n && O(n, {
|
|
113
|
-
top: e.top ?? n.scrollTop,
|
|
114
|
-
left: e.left ?? n.scrollLeft
|
|
115
|
-
}, t?.behavior ?? "auto");
|
|
116
|
-
},
|
|
117
|
-
getVisibleRowRange: () => {
|
|
118
|
-
let e = T;
|
|
119
|
-
return !e || e.windowLastRow < e.windowFirstRow ? null : {
|
|
120
|
-
startIndex: e.windowFirstRow,
|
|
121
|
-
endIndex: e.windowLastRow + 1
|
|
122
|
-
};
|
|
123
|
-
},
|
|
124
|
-
getActiveCell: () => {
|
|
125
|
-
let e = T?.uiState.activeCell;
|
|
126
|
-
return e ? {
|
|
127
|
-
row: e.row,
|
|
128
|
-
col: e.col
|
|
129
|
-
} : null;
|
|
130
|
-
},
|
|
131
|
-
setActiveCell: (e, t) => {
|
|
132
|
-
let n = T;
|
|
133
|
-
if (!n) return;
|
|
134
|
-
let i = e ? N(e) : null;
|
|
135
|
-
n.dispatch(r.activateCell(i)), i && t?.scrollIntoView && M(i.row, i.col, "auto");
|
|
136
|
-
},
|
|
137
|
-
getSelection: () => T?.uiState.selection ?? null,
|
|
138
|
-
selectCell: (e, t, n) => {
|
|
139
|
-
let i = T;
|
|
140
|
-
if (!i) return;
|
|
141
|
-
let a = N({
|
|
142
|
-
row: e,
|
|
143
|
-
col: t
|
|
144
|
-
});
|
|
145
|
-
i.dispatch(r.startSelection(a)), i.dispatch(r.endSelection()), n?.scrollIntoView && M(a.row, a.col, "auto");
|
|
146
|
-
},
|
|
147
|
-
selectRange: (e, t) => {
|
|
148
|
-
let n = T;
|
|
149
|
-
if (!n) return;
|
|
150
|
-
let i = N(e.start), a = N(e.end);
|
|
151
|
-
n.dispatch(r.startSelection(i)), n.dispatch(r.updateSelection(a)), n.dispatch(r.endSelection()), t?.scrollIntoView && M(a.row, a.col, "auto");
|
|
152
|
-
},
|
|
153
|
-
clearSelection: () => {
|
|
154
|
-
T?.dispatch(r.clearSelection());
|
|
155
|
-
},
|
|
156
|
-
getSelectedRows: () => {
|
|
157
|
-
let e = T;
|
|
158
|
-
if (!e) return [];
|
|
159
|
-
let t = e.uiState.selection;
|
|
160
|
-
if (!t) return [];
|
|
161
|
-
let n = [], r = (t) => {
|
|
162
|
-
let r = e.rowModel.getRow(t);
|
|
163
|
-
r && n.push(r);
|
|
164
|
-
};
|
|
165
|
-
if (t.type === "cell") {
|
|
166
|
-
let e = a(t.range);
|
|
167
|
-
for (let t = e.start.row; t <= e.end.row; t += 1) r(t);
|
|
168
|
-
} else if (t.type === "row") {
|
|
169
|
-
let e = o(t.startRow, t.endRow);
|
|
170
|
-
for (let t = e.startRow; t <= e.endRow; t += 1) r(t);
|
|
171
|
-
} else for (let t = 0; t < e.viewRowCount; t += 1) r(t);
|
|
172
|
-
return n;
|
|
173
|
-
},
|
|
174
|
-
exportCsv: (e) => E.exportCsv(e),
|
|
175
|
-
downloadCsv: (e, t) => E.downloadCsv(e, t),
|
|
176
|
-
getExportData: (e) => E.getExportData(e),
|
|
177
|
-
getState: () => {
|
|
178
|
-
let e = T;
|
|
179
|
-
return e ? _(e.uiState.columnWidths, e.uiState.filters, e.uiState.sort, v(e.columns)) : _({}, {
|
|
180
|
-
globalText: "",
|
|
181
|
-
columnFilters: {}
|
|
182
|
-
}, [], []);
|
|
183
|
-
},
|
|
184
|
-
applyState: (e) => {
|
|
185
|
-
let t = T;
|
|
186
|
-
if (!t) return;
|
|
187
|
-
let n = y(e);
|
|
188
|
-
t.onColumnsChange && n.columns && t.onColumnsChange(g(t.columns, n.columns, n.columnWidths)), t.dispatch(r.resetColumnWidths(n.columnWidths)), t.dispatch(r.setAllFilters(n.filters)), t.dispatch(r.setSort(n.sort));
|
|
189
|
-
},
|
|
190
|
-
getRowSelection: () => {
|
|
191
|
-
let e = T;
|
|
192
|
-
return e ? m(e.uiState.rowSelection) : {
|
|
193
|
-
type: "include",
|
|
194
|
-
rowKeys: []
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
setRowSelection: (e) => {
|
|
198
|
-
T?.commitRowSelection(p(e));
|
|
199
|
-
},
|
|
200
|
-
getSelectedRowKeys: () => {
|
|
201
|
-
let e = T;
|
|
202
|
-
if (!e) return [];
|
|
203
|
-
let t = e.uiState.rowSelection;
|
|
204
|
-
if (t.mode === "include") return Array.from(t.keys);
|
|
205
|
-
let n = [], r = e.rowModel.getRowCount();
|
|
206
|
-
for (let i = 0; i < r; i += 1) {
|
|
207
|
-
if (!e.rowModel.getRow(i)) continue;
|
|
208
|
-
let r = e.rowModel.getRowKey(i) ?? i;
|
|
209
|
-
t.keys.has(r) || n.push(r);
|
|
210
|
-
}
|
|
211
|
-
return n;
|
|
212
|
-
},
|
|
213
|
-
getSelectedRowData: () => {
|
|
214
|
-
let e = T;
|
|
215
|
-
if (!e) return [];
|
|
216
|
-
let t = e.uiState.rowSelection, n = [], r = e.rowModel.getRowCount();
|
|
217
|
-
for (let i = 0; i < r; i += 1) {
|
|
218
|
-
let r = e.rowModel.getRow(i);
|
|
219
|
-
r && f(t, e.rowModel.getRowKey(i) ?? i) && n.push(r);
|
|
220
|
-
}
|
|
221
|
-
return n;
|
|
222
|
-
},
|
|
223
|
-
getSelectedRowCount: () => {
|
|
224
|
-
let e = T;
|
|
225
|
-
return e ? d(e.uiState.rowSelection, e.leafRowCount) : 0;
|
|
226
|
-
},
|
|
227
|
-
isRowSelected: (e) => {
|
|
228
|
-
let t = T;
|
|
229
|
-
return t ? f(t.uiState.rowSelection, e) : !1;
|
|
230
|
-
},
|
|
231
|
-
selectAllRows: () => {
|
|
232
|
-
T?.commitRowSelection(h());
|
|
233
|
-
},
|
|
234
|
-
clearRowSelection: () => {
|
|
235
|
-
T?.commitRowSelection(u());
|
|
236
|
-
},
|
|
237
|
-
undo: () => {
|
|
238
|
-
T?.undoRows();
|
|
239
|
-
},
|
|
240
|
-
redo: () => {
|
|
241
|
-
T?.redoRows();
|
|
242
|
-
},
|
|
243
|
-
canUndo: () => T?.canUndoRows() ?? !1,
|
|
244
|
-
canRedo: () => T?.canRedoRows() ?? !1,
|
|
245
|
-
clearUndoHistory: () => {
|
|
246
|
-
T?.clearUndoHistory();
|
|
247
|
-
},
|
|
248
|
-
setGroupCollapsed: (e, t) => {
|
|
249
|
-
T?.dispatch(r.setGroupCollapsed(e, t));
|
|
250
|
-
},
|
|
251
|
-
expandAllGroups: () => {
|
|
252
|
-
T?.dispatch(r.setCollapsedGroupKeys(/* @__PURE__ */ new Set()));
|
|
253
|
-
},
|
|
254
|
-
collapseAllGroups: () => {
|
|
255
|
-
let t = T;
|
|
256
|
-
!t || !t.groupTree || t.dispatch(r.setCollapsedGroupKeys(new Set(e(t.groupTree))));
|
|
257
|
-
},
|
|
258
|
-
getGroupRows: () => {
|
|
259
|
-
let e = T;
|
|
260
|
-
return e?.groupTree ? t(e.groupTree) : [];
|
|
261
|
-
},
|
|
262
|
-
setDetailRowExpanded: (e, t) => {
|
|
263
|
-
let i = T;
|
|
264
|
-
if (!(!i || !i.detailRowEnabled)) {
|
|
265
|
-
if (t && i.detailIsExpandable) {
|
|
266
|
-
let t = n(i.rowModel, e, i.detailIndexCacheRef.current, !i.isServerSide);
|
|
267
|
-
if (t >= 0) {
|
|
268
|
-
let n = i.rowModel.getRow(t);
|
|
269
|
-
if (n != null && !i.detailIsExpandable(n, {
|
|
270
|
-
rowKey: e,
|
|
271
|
-
sourceRowIndex: i.rowModel.getSourceIndex(t)
|
|
272
|
-
})) return;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
i.dispatch(r.setDetailRowExpanded(e, t));
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
getExpandedDetailRowKeys: () => {
|
|
279
|
-
let e = T;
|
|
280
|
-
return e && e.detailRowEnabled ? Array.from(e.uiState.expandedDetailRowKeys) : [];
|
|
281
|
-
},
|
|
282
|
-
collapseAllDetailRows: () => {
|
|
283
|
-
let e = T;
|
|
284
|
-
!e || !e.detailRowEnabled || e.dispatch(r.setExpandedDetailRowKeys(/* @__PURE__ */ new Set()));
|
|
285
|
-
},
|
|
286
|
-
moveRow: (e, t) => {
|
|
287
|
-
T?.moveRowByKey(e, t);
|
|
288
|
-
},
|
|
289
|
-
getInvalidCells: () => {
|
|
290
|
-
let e = T;
|
|
291
|
-
return e ? e.isServerSide ? (console.warn("[SpreadsheetGrid] getInvalidCells は serverSide モードでは利用できません(空配列を返します)。"), []) : s(e.rows, e.columns, e.resolvedRowKeyGetter) : [];
|
|
292
|
-
},
|
|
293
|
-
refreshServerSide: () => {
|
|
294
|
-
let e = T;
|
|
295
|
-
if (e) {
|
|
296
|
-
if (!e.isServerSide) {
|
|
297
|
-
console.warn("[SpreadsheetGrid] refreshServerSide は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(/lite の createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。");
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
e.serverSideRefresh();
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
retryServerSideLoads: () => {
|
|
304
|
-
let e = T;
|
|
305
|
-
if (e) {
|
|
306
|
-
if (!e.isServerSide) {
|
|
307
|
-
console.warn("[SpreadsheetGrid] retryServerSideLoads は clientSide(rows)モードでは何もしません。dataSource を渡したときだけ有効です(/lite の createSpreadsheetGrid では features に serverSide: serverSideFeature も要ります)。");
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
e.serverSideRetryFailed();
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
openFilterManager: () => {
|
|
314
|
-
T?.openToolPanel("filter");
|
|
315
|
-
},
|
|
316
|
-
closeFilterManager: () => {
|
|
317
|
-
let e = T;
|
|
318
|
-
e && e.activeToolPanelTab === "filter" && e.closeToolPanel();
|
|
319
|
-
},
|
|
320
|
-
openFind: (e) => {
|
|
321
|
-
T?.find.open(e);
|
|
322
|
-
},
|
|
323
|
-
closeFind: () => {
|
|
324
|
-
T?.find.close();
|
|
325
|
-
},
|
|
326
|
-
findNext: () => {
|
|
327
|
-
T?.find.next();
|
|
328
|
-
},
|
|
329
|
-
findPrev: () => {
|
|
330
|
-
T?.find.prev();
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
applyScroll: k,
|
|
334
|
-
verticalTargetFor: A,
|
|
335
|
-
horizontalTargetFor: j,
|
|
336
|
-
scrollToCellInternal: M
|
|
424
|
+
handle: W,
|
|
425
|
+
applyScroll: I,
|
|
426
|
+
verticalTargetFor: L,
|
|
427
|
+
horizontalTargetFor: R,
|
|
428
|
+
scrollToCellInternal: z
|
|
337
429
|
};
|
|
338
430
|
};
|
|
339
431
|
//#endregion
|
|
340
|
-
export {
|
|
432
|
+
export { k as createGridApi };
|