@ishibashi0112/spreadsheet-grid-core 0.48.0 → 0.49.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.js +4 -2
- package/dist/controllers/clipboardController.cjs +1 -1
- package/dist/controllers/clipboardController.d.ts +2 -1
- package/dist/controllers/clipboardController.js +67 -61
- package/dist/controllers/columnAutosizeRunner.cjs +1 -1
- package/dist/controllers/columnAutosizeRunner.d.ts +3 -0
- package/dist/controllers/columnAutosizeRunner.js +40 -24
- package/dist/controllers/columnHeaderDragController.cjs +1 -1
- package/dist/controllers/columnHeaderDragController.js +5 -2
- package/dist/controllers/editController.cjs +1 -1
- package/dist/controllers/editController.js +2 -2
- package/dist/controllers/fillHandleController.cjs +1 -0
- package/dist/controllers/fillHandleController.d.ts +87 -0
- package/dist/controllers/fillHandleController.js +346 -0
- package/dist/controllers/filterPopoverController.cjs +1 -1
- package/dist/controllers/filterPopoverController.js +55 -46
- package/dist/controllers/globalFilteredOrder.cjs +1 -1
- package/dist/controllers/globalFilteredOrder.js +5 -5
- package/dist/controllers/historyController.cjs +1 -1
- package/dist/controllers/historyController.d.ts +1 -0
- package/dist/controllers/historyController.js +8 -5
- package/dist/controllers/keyboardController.cjs +1 -1
- package/dist/controllers/keyboardController.js +2 -2
- package/dist/controllers/pointerInteractionsController.cjs +1 -1
- package/dist/controllers/pointerInteractionsController.d.ts +2 -0
- package/dist/controllers/pointerInteractionsController.js +136 -132
- package/dist/controllers/rowDragController.cjs +1 -1
- package/dist/controllers/rowDragController.d.ts +1 -0
- package/dist/controllers/rowDragController.js +104 -97
- package/dist/controllers/scrollSyncController.cjs +1 -1
- package/dist/controllers/scrollSyncController.d.ts +1 -0
- package/dist/controllers/scrollSyncController.js +32 -21
- package/dist/controllers/selectOptionsCollector.cjs +1 -1
- package/dist/controllers/selectOptionsCollector.js +5 -5
- package/dist/controllers/selectionAggregatesRunner.cjs +1 -0
- package/dist/controllers/selectionAggregatesRunner.d.ts +27 -0
- package/dist/controllers/selectionAggregatesRunner.js +65 -0
- package/dist/controllers/serverSideRowModel.cjs +1 -1
- package/dist/controllers/serverSideRowModel.js +75 -69
- package/dist/controllers/tooltipController.cjs +1 -1
- package/dist/controllers/tooltipController.js +44 -43
- package/dist/controllers/viewportSyncController.cjs +1 -1
- package/dist/controllers/viewportSyncController.d.ts +3 -2
- package/dist/controllers/viewportSyncController.js +6 -4
- package/dist/engine/columnCommands.cjs +1 -1
- package/dist/engine/columnCommands.js +1 -1
- package/dist/engine/columnLayout.cjs +1 -1
- package/dist/engine/columnLayout.js +1 -1
- package/dist/engine/createGridEngine.cjs +1 -1
- package/dist/engine/createGridEngine.d.ts +2 -0
- package/dist/engine/createGridEngine.js +43 -41
- package/dist/engine/gridApi.cjs +1 -1
- package/dist/engine/gridApi.d.ts +6 -0
- package/dist/engine/gridApi.js +134 -123
- package/dist/logic/aggregation.cjs +1 -1
- package/dist/logic/aggregation.d.ts +1 -0
- package/dist/logic/aggregation.js +16 -7
- package/dist/logic/autoScrollGeometry.cjs +1 -1
- package/dist/logic/autoScrollGeometry.d.ts +1 -0
- package/dist/logic/autoScrollGeometry.js +3 -3
- package/dist/logic/clearCells.cjs +1 -1
- package/dist/logic/clearCells.d.ts +1 -1
- package/dist/logic/clearCells.js +7 -7
- package/dist/logic/columnAutosize.cjs +1 -1
- package/dist/logic/columnAutosize.d.ts +6 -0
- package/dist/logic/columnAutosize.js +60 -39
- package/dist/logic/exportCsv.cjs +2 -2
- package/dist/logic/exportCsv.d.ts +5 -1
- package/dist/logic/exportCsv.js +16 -15
- package/dist/logic/exportData.cjs +1 -1
- package/dist/logic/exportData.d.ts +2 -1
- package/dist/logic/exportData.js +27 -21
- package/dist/logic/fillHandle.cjs +1 -0
- package/dist/logic/fillHandle.d.ts +69 -0
- package/dist/logic/fillHandle.js +254 -0
- package/dist/logic/fillSeries.cjs +1 -0
- package/dist/logic/fillSeries.d.ts +11 -0
- package/dist/logic/fillSeries.js +239 -0
- package/dist/logic/filtering.cjs +1 -1
- package/dist/logic/filtering.js +37 -37
- package/dist/logic/gridState.cjs +1 -1
- package/dist/logic/gridState.js +1 -1
- package/dist/logic/imeInput.cjs +1 -1
- package/dist/logic/imeInput.js +2 -2
- package/dist/logic/labelRows.cjs +1 -1
- package/dist/logic/labelRows.js +1 -1
- package/dist/logic/selectOptions.cjs +1 -1
- package/dist/logic/selectOptions.js +1 -1
- package/dist/logic/selectionAggregates.cjs +1 -0
- package/dist/logic/selectionAggregates.d.ts +25 -0
- package/dist/logic/selectionAggregates.js +74 -0
- package/dist/logic/totalRow.cjs +1 -0
- package/dist/logic/totalRow.d.ts +25 -0
- package/dist/logic/totalRow.js +90 -0
- package/dist/model/gridReducer.cjs +1 -1
- package/dist/model/gridReducer.js +1 -1
- package/dist/model/gridTypes.core.d.ts +202 -16
- package/dist/model/gridTypes.unbound.d.ts +4 -0
- package/dist/utils/clipboard.cjs +1 -1
- package/dist/utils/clipboard.d.ts +1 -1
- package/dist/utils/clipboard.js +9 -9
- package/dist/utils/permissions.cjs +1 -1
- package/dist/utils/permissions.d.ts +6 -2
- package/dist/utils/permissions.js +8 -2
- package/package.json +1 -1
package/dist/engine/gridApi.js
CHANGED
|
@@ -6,43 +6,44 @@ import { normalizeCellRange as c, normalizeColumnRange as l, normalizeRowRange a
|
|
|
6
6
|
import { scanInvalidCells as d } from "../logic/validation.js";
|
|
7
7
|
import { logicalToPhysicalScrollTop as f, physicalToLogicalScrollTop as p } from "../logic/verticalGeometry.js";
|
|
8
8
|
import { clearRowSelection as m, countSelectedRows as h, resolveIsRowSelected as g, rowSelectionFromModel as _, rowSelectionToModel as v, selectAllRows as y } from "../logic/rowSelection.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { buildTotalRowExportLine as b } from "../logic/totalRow.js";
|
|
10
|
+
import { applyColumnState as x, buildGridState as S, extractColumnState as C, migrateGridState as w } from "../logic/gridState.js";
|
|
11
|
+
import { computeHorizontalScrollTarget as T, computeVerticalScrollTarget as E } from "../logic/scrollTargets.js";
|
|
12
|
+
import { serializeRowsToCsv as D } from "../logic/exportCsv.js";
|
|
13
|
+
import { buildGridExportData as O } from "../logic/exportData.js";
|
|
14
|
+
import { normalizeExportScope as k } from "../logic/exportScope.js";
|
|
14
15
|
//#region src/engine/gridApi.ts
|
|
15
|
-
var
|
|
16
|
-
let
|
|
16
|
+
var A = 1e3, j = /* @__PURE__ */ new Set(), M = () => {
|
|
17
|
+
let M = null, N = null, P = (e, t, n = "auto") => {
|
|
17
18
|
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);
|
|
18
|
-
(Math.round(a) !== Math.round(e.scrollTop) || Math.round(o) !== Math.round(e.scrollLeft)) &&
|
|
19
|
+
(Math.round(a) !== Math.round(e.scrollTop) || Math.round(o) !== Math.round(e.scrollLeft)) && M?.markApiScroll(), e.scrollTo({
|
|
19
20
|
top: a,
|
|
20
21
|
left: o,
|
|
21
22
|
behavior: n
|
|
22
23
|
});
|
|
23
|
-
},
|
|
24
|
-
let n =
|
|
25
|
-
!n || !r ||
|
|
24
|
+
}, F = (e, t) => {
|
|
25
|
+
let n = M?.scrollContainerRef.current ?? null, r = M;
|
|
26
|
+
!n || !r || P(n, {
|
|
26
27
|
top: e === null ? n.scrollTop : f(e, r.verticalScaleFactor),
|
|
27
28
|
left: t === null ? n.scrollLeft : t
|
|
28
29
|
});
|
|
29
|
-
},
|
|
30
|
-
let n =
|
|
30
|
+
}, I = (e, t) => {
|
|
31
|
+
let n = M?.scrollContainerRef.current ?? null, r = M;
|
|
31
32
|
if (!n || !r || r.viewRowCount === 0) return null;
|
|
32
33
|
let i = Math.min(Math.max(e, 0), r.viewRowCount - 1);
|
|
33
|
-
return
|
|
34
|
+
return E({
|
|
34
35
|
rowTop: r.rowMetrics.rowTop(i),
|
|
35
36
|
rowHeight: r.rowMetrics.cellHeight(i),
|
|
36
37
|
headerHeight: r.headerHeight,
|
|
37
|
-
viewportHeight: n.clientHeight,
|
|
38
|
+
viewportHeight: n.clientHeight - (r.footerHeight ?? 0),
|
|
38
39
|
currentScrollTop: p(n.scrollTop, r.verticalScaleFactor),
|
|
39
40
|
align: t
|
|
40
41
|
});
|
|
41
|
-
},
|
|
42
|
-
let n =
|
|
42
|
+
}, L = (e, t) => {
|
|
43
|
+
let n = M?.scrollContainerRef.current ?? null, r = M;
|
|
43
44
|
if (!n || !r) return null;
|
|
44
45
|
let i = s(r.paneLayout, e);
|
|
45
|
-
return !i || i.pane !== "center" ? null :
|
|
46
|
+
return !i || i.pane !== "center" ? null : T({
|
|
46
47
|
cellLeft: r.leftPaneTotalWidth + r.centerLeadingWidth + i.extent.start,
|
|
47
48
|
cellWidth: i.extent.width,
|
|
48
49
|
leftPaneWidth: r.leftPaneTotalWidth,
|
|
@@ -51,16 +52,16 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
51
52
|
currentScrollLeft: n.scrollLeft,
|
|
52
53
|
align: t
|
|
53
54
|
});
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
let t =
|
|
55
|
+
}, R = (e, t, n) => {
|
|
56
|
+
F(I(e, n), L(t, n));
|
|
57
|
+
}, z = (e) => {
|
|
58
|
+
let t = M;
|
|
58
59
|
return t ? {
|
|
59
60
|
row: Math.min(Math.max(e.row, 0), Math.max(t.viewRowCount - 1, 0)),
|
|
60
61
|
col: Math.min(Math.max(e.col, 0), Math.max(t.orderedColumns.length - 1, 0))
|
|
61
62
|
} : e;
|
|
62
|
-
},
|
|
63
|
-
let i =
|
|
63
|
+
}, B = (e, t = !1) => {
|
|
64
|
+
let i = M;
|
|
64
65
|
if (!i) return null;
|
|
65
66
|
let a = (e) => i.rowModel.getRow(e), o = i.labelRowExport, s = (e) => {
|
|
66
67
|
if (!o) return [];
|
|
@@ -75,7 +76,7 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
75
76
|
}) : void 0, m = f ? (e, t) => f(e, {
|
|
76
77
|
viewRowIndex: t,
|
|
77
78
|
rowKey: i.resolvedRowKeyGetter(e, t)
|
|
78
|
-
}) : void 0, h =
|
|
79
|
+
}) : void 0, h = k(e);
|
|
79
80
|
if (h === "raw") {
|
|
80
81
|
if (i.isServerSide) return console.warn("SpreadsheetGrid: scope 'raw' は serverSide では未ロード行を取得できないため、'view'(ロード済みビュー行)として扱います。全件エクスポートはサーバ側での実施を推奨します。"), {
|
|
81
82
|
getRow: a,
|
|
@@ -138,7 +139,7 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
141
|
if (i.groupTree) {
|
|
141
|
-
let e = n(i.groupTree,
|
|
142
|
+
let e = n(i.groupTree, j).displayOrder;
|
|
142
143
|
return {
|
|
143
144
|
getRow: (t) => {
|
|
144
145
|
let n = e[t];
|
|
@@ -161,125 +162,135 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
161
162
|
isRowIncluded: p,
|
|
162
163
|
getLabelLine: d
|
|
163
164
|
};
|
|
164
|
-
},
|
|
165
|
-
let
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
}, V = (e) => e.filter((e) => !a(e.key)), H = (e, t, n) => {
|
|
166
|
+
let r = M?.totalRowExport;
|
|
167
|
+
if (!(t !== !0 || !r || k(e) !== "view")) return b(n, r.cells, r.label);
|
|
168
|
+
}, U = (e) => {
|
|
169
|
+
let t = e?.scope ?? "view", n = B(t, e?.includeLabelRows === !0);
|
|
170
|
+
if (!n) return e?.bom ? "" : "";
|
|
171
|
+
let r = V(n.columns);
|
|
172
|
+
return D({
|
|
173
|
+
getRow: n.getRow,
|
|
174
|
+
startRow: n.startRow,
|
|
175
|
+
endRow: n.endRow,
|
|
176
|
+
columns: r,
|
|
171
177
|
delimiter: e?.delimiter,
|
|
172
178
|
includeHeaders: e?.includeHeaders,
|
|
173
179
|
bom: e?.bom,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
endRow: t.endRow,
|
|
183
|
-
columns: B(t.columns),
|
|
184
|
-
isRowIncluded: t.isRowIncluded,
|
|
185
|
-
getLabelLine: t.getLabelLine
|
|
186
|
-
}) : {
|
|
180
|
+
escapeFormulas: e?.escapeFormulas,
|
|
181
|
+
isRowIncluded: n.isRowIncluded,
|
|
182
|
+
getLabelLine: n.getLabelLine,
|
|
183
|
+
totalLine: H(t, e?.includeTotalRow, r)
|
|
184
|
+
});
|
|
185
|
+
}, W = (e) => {
|
|
186
|
+
let t = e?.scope ?? "view", n = B(t, e?.includeLabelRows === !0);
|
|
187
|
+
if (!n) return {
|
|
187
188
|
columns: [],
|
|
188
189
|
rows: []
|
|
189
190
|
};
|
|
191
|
+
let r = V(n.columns);
|
|
192
|
+
return O({
|
|
193
|
+
getRow: n.getRow,
|
|
194
|
+
startRow: n.startRow,
|
|
195
|
+
endRow: n.endRow,
|
|
196
|
+
columns: r,
|
|
197
|
+
isRowIncluded: n.isRowIncluded,
|
|
198
|
+
getLabelLine: n.getLabelLine,
|
|
199
|
+
totalLine: H(t, e?.includeTotalRow, r)
|
|
200
|
+
});
|
|
190
201
|
};
|
|
191
202
|
return {
|
|
192
203
|
update: (e) => {
|
|
193
|
-
let t =
|
|
194
|
-
if (
|
|
204
|
+
let t = M?.physicalBodyHeight;
|
|
205
|
+
if (M = e, N === null || t === e.physicalBodyHeight) return;
|
|
195
206
|
let n = e.scrollContainerRef.current;
|
|
196
|
-
if (!n || !e.measuredRowHeights || Date.now() >
|
|
197
|
-
|
|
207
|
+
if (!n || !e.measuredRowHeights || Date.now() > N.until || n.scrollTop < N.pinnedTop - 1) {
|
|
208
|
+
N = null;
|
|
198
209
|
return;
|
|
199
210
|
}
|
|
200
|
-
|
|
201
|
-
top: Math.max(e.headerHeight + e.physicalBodyHeight - n.clientHeight, 0),
|
|
211
|
+
P(n, {
|
|
212
|
+
top: Math.max(e.headerHeight + e.physicalBodyHeight + (e.footerHeight ?? 0) - n.clientHeight, 0),
|
|
202
213
|
left: n.scrollLeft
|
|
203
|
-
}),
|
|
204
|
-
...
|
|
214
|
+
}), N = {
|
|
215
|
+
...N,
|
|
205
216
|
pinnedTop: n.scrollTop
|
|
206
217
|
};
|
|
207
218
|
},
|
|
208
219
|
handle: {
|
|
209
|
-
scrollToRow: (e, t) =>
|
|
210
|
-
scrollToCell: (e, t, n) =>
|
|
220
|
+
scrollToRow: (e, t) => F(I(e, t?.align ?? "auto"), null),
|
|
221
|
+
scrollToCell: (e, t, n) => R(e, t, n?.align ?? "auto"),
|
|
211
222
|
scrollToTop: () => {
|
|
212
|
-
let e =
|
|
213
|
-
e &&
|
|
223
|
+
let e = M?.scrollContainerRef.current ?? null;
|
|
224
|
+
e && P(e, {
|
|
214
225
|
top: 0,
|
|
215
226
|
left: e.scrollLeft
|
|
216
227
|
});
|
|
217
228
|
},
|
|
218
229
|
scrollToBottom: () => {
|
|
219
|
-
let e =
|
|
220
|
-
!e || !t || (
|
|
221
|
-
top: Math.max(t.headerHeight + t.physicalBodyHeight - e.clientHeight, 0),
|
|
230
|
+
let e = M?.scrollContainerRef.current ?? null, t = M;
|
|
231
|
+
!e || !t || (P(e, {
|
|
232
|
+
top: Math.max(t.headerHeight + t.physicalBodyHeight + (t.footerHeight ?? 0) - e.clientHeight, 0),
|
|
222
233
|
left: e.scrollLeft
|
|
223
|
-
}),
|
|
234
|
+
}), N = t.measuredRowHeights ? {
|
|
224
235
|
pinnedTop: e.scrollTop,
|
|
225
|
-
until: Date.now() +
|
|
236
|
+
until: Date.now() + A
|
|
226
237
|
} : null);
|
|
227
238
|
},
|
|
228
239
|
getScrollPosition: () => {
|
|
229
|
-
let e =
|
|
240
|
+
let e = M?.scrollContainerRef.current ?? null;
|
|
230
241
|
return e ? {
|
|
231
242
|
top: e.scrollTop,
|
|
232
243
|
left: e.scrollLeft
|
|
233
244
|
} : null;
|
|
234
245
|
},
|
|
235
246
|
setScrollPosition: (e, t) => {
|
|
236
|
-
let n =
|
|
237
|
-
n &&
|
|
247
|
+
let n = M?.scrollContainerRef.current ?? null;
|
|
248
|
+
n && P(n, {
|
|
238
249
|
top: e.top ?? n.scrollTop,
|
|
239
250
|
left: e.left ?? n.scrollLeft
|
|
240
251
|
}, t?.behavior ?? "auto");
|
|
241
252
|
},
|
|
242
253
|
getVisibleRowRange: () => {
|
|
243
|
-
let e =
|
|
254
|
+
let e = M;
|
|
244
255
|
return !e || e.windowLastRow < e.windowFirstRow ? null : {
|
|
245
256
|
startIndex: e.windowFirstRow,
|
|
246
257
|
endIndex: e.windowLastRow + 1
|
|
247
258
|
};
|
|
248
259
|
},
|
|
249
260
|
getActiveCell: () => {
|
|
250
|
-
let e =
|
|
261
|
+
let e = M?.uiState.activeCell;
|
|
251
262
|
return e ? {
|
|
252
263
|
row: e.row,
|
|
253
264
|
col: e.col
|
|
254
265
|
} : null;
|
|
255
266
|
},
|
|
256
267
|
setActiveCell: (e, t) => {
|
|
257
|
-
let n =
|
|
268
|
+
let n = M;
|
|
258
269
|
if (!n) return;
|
|
259
|
-
let r = e ?
|
|
260
|
-
n.dispatch(o.activateCell(r)), r && t?.scrollIntoView &&
|
|
270
|
+
let r = e ? z(e) : null;
|
|
271
|
+
n.dispatch(o.activateCell(r)), r && t?.scrollIntoView && R(r.row, r.col, "auto");
|
|
261
272
|
},
|
|
262
|
-
getSelection: () =>
|
|
273
|
+
getSelection: () => M?.uiState.selection ?? null,
|
|
263
274
|
selectCell: (e, t, n) => {
|
|
264
|
-
let r =
|
|
275
|
+
let r = M;
|
|
265
276
|
if (!r) return;
|
|
266
|
-
let i =
|
|
277
|
+
let i = z({
|
|
267
278
|
row: e,
|
|
268
279
|
col: t
|
|
269
280
|
});
|
|
270
|
-
r.dispatch(o.startSelection(i)), r.dispatch(o.endSelection()), n?.scrollIntoView &&
|
|
281
|
+
r.dispatch(o.startSelection(i)), r.dispatch(o.endSelection()), n?.scrollIntoView && R(i.row, i.col, "auto");
|
|
271
282
|
},
|
|
272
283
|
selectRange: (e, t) => {
|
|
273
|
-
let n =
|
|
284
|
+
let n = M;
|
|
274
285
|
if (!n) return;
|
|
275
|
-
let r =
|
|
276
|
-
n.dispatch(o.startSelection(r)), n.dispatch(o.updateSelection(i)), n.dispatch(o.endSelection()), t?.scrollIntoView &&
|
|
286
|
+
let r = z(e.start), i = z(e.end);
|
|
287
|
+
n.dispatch(o.startSelection(r)), n.dispatch(o.updateSelection(i)), n.dispatch(o.endSelection()), t?.scrollIntoView && R(i.row, i.col, "auto");
|
|
277
288
|
},
|
|
278
289
|
clearSelection: () => {
|
|
279
|
-
|
|
290
|
+
M?.dispatch(o.clearSelection());
|
|
280
291
|
},
|
|
281
292
|
getSelectedRows: () => {
|
|
282
|
-
let e =
|
|
293
|
+
let e = M;
|
|
283
294
|
if (!e) return [];
|
|
284
295
|
let t = e.uiState.selection;
|
|
285
296
|
if (!t) return [];
|
|
@@ -296,41 +307,41 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
296
307
|
} else for (let t = 0; t < e.viewRowCount; t += 1) r(t);
|
|
297
308
|
return n;
|
|
298
309
|
},
|
|
299
|
-
exportCsv: (e) =>
|
|
310
|
+
exportCsv: (e) => U(e),
|
|
300
311
|
downloadCsv: (e, t) => {
|
|
301
312
|
if (typeof document > "u") return;
|
|
302
|
-
let n =
|
|
313
|
+
let n = U({
|
|
303
314
|
...t,
|
|
304
315
|
bom: t?.bom ?? !0
|
|
305
316
|
}), r = new Blob([n], { type: "text/csv;charset=utf-8;" }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
306
317
|
a.href = i, a.download = e ?? "export.csv", document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(i);
|
|
307
318
|
},
|
|
308
|
-
getExportData: (e) =>
|
|
319
|
+
getExportData: (e) => W(e),
|
|
309
320
|
getState: () => {
|
|
310
|
-
let e =
|
|
311
|
-
return e ?
|
|
321
|
+
let e = M;
|
|
322
|
+
return e ? S(e.uiState.columnWidths, e.uiState.filters, e.uiState.sort, C(e.columns)) : S({}, {
|
|
312
323
|
globalText: "",
|
|
313
324
|
columnFilters: {}
|
|
314
325
|
}, [], []);
|
|
315
326
|
},
|
|
316
327
|
applyState: (e) => {
|
|
317
|
-
let t =
|
|
328
|
+
let t = M;
|
|
318
329
|
if (!t) return;
|
|
319
|
-
let n =
|
|
320
|
-
t.onColumnsChange && n.columns && t.onColumnsChange(
|
|
330
|
+
let n = w(e);
|
|
331
|
+
t.onColumnsChange && n.columns && t.onColumnsChange(x(t.columns, n.columns, n.columnWidths)), t.dispatch(o.resetColumnWidths(n.columnWidths)), t.dispatch(o.setAllFilters(n.filters)), t.dispatch(o.setSort(n.sort));
|
|
321
332
|
},
|
|
322
333
|
getRowSelection: () => {
|
|
323
|
-
let e =
|
|
334
|
+
let e = M;
|
|
324
335
|
return e ? v(e.uiState.rowSelection) : {
|
|
325
336
|
type: "include",
|
|
326
337
|
rowKeys: []
|
|
327
338
|
};
|
|
328
339
|
},
|
|
329
340
|
setRowSelection: (e) => {
|
|
330
|
-
|
|
341
|
+
M?.commitRowSelection(_(e));
|
|
331
342
|
},
|
|
332
343
|
getSelectedRowKeys: () => {
|
|
333
|
-
let e =
|
|
344
|
+
let e = M;
|
|
334
345
|
if (!e) return [];
|
|
335
346
|
let t = e.uiState.rowSelection;
|
|
336
347
|
if (t.mode === "include") return Array.from(t.keys);
|
|
@@ -343,7 +354,7 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
343
354
|
return n;
|
|
344
355
|
},
|
|
345
356
|
getSelectedRowData: () => {
|
|
346
|
-
let e =
|
|
357
|
+
let e = M;
|
|
347
358
|
if (!e) return [];
|
|
348
359
|
let t = e.uiState.rowSelection, n = [], r = e.rowModel.getRowCount();
|
|
349
360
|
for (let i = 0; i < r; i += 1) {
|
|
@@ -353,46 +364,46 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
353
364
|
return n;
|
|
354
365
|
},
|
|
355
366
|
getSelectedRowCount: () => {
|
|
356
|
-
let e =
|
|
367
|
+
let e = M;
|
|
357
368
|
return e ? h(e.uiState.rowSelection, e.leafRowCount) : 0;
|
|
358
369
|
},
|
|
359
370
|
isRowSelected: (e) => {
|
|
360
|
-
let t =
|
|
371
|
+
let t = M;
|
|
361
372
|
return t ? g(t.uiState.rowSelection, e) : !1;
|
|
362
373
|
},
|
|
363
374
|
selectAllRows: () => {
|
|
364
|
-
|
|
375
|
+
M?.commitRowSelection(y());
|
|
365
376
|
},
|
|
366
377
|
clearRowSelection: () => {
|
|
367
|
-
|
|
378
|
+
M?.commitRowSelection(m());
|
|
368
379
|
},
|
|
369
380
|
undo: () => {
|
|
370
|
-
|
|
381
|
+
M?.undoRows();
|
|
371
382
|
},
|
|
372
383
|
redo: () => {
|
|
373
|
-
|
|
384
|
+
M?.redoRows();
|
|
374
385
|
},
|
|
375
|
-
canUndo: () =>
|
|
376
|
-
canRedo: () =>
|
|
386
|
+
canUndo: () => M?.canUndoRows() ?? !1,
|
|
387
|
+
canRedo: () => M?.canRedoRows() ?? !1,
|
|
377
388
|
clearUndoHistory: () => {
|
|
378
|
-
|
|
389
|
+
M?.clearUndoHistory();
|
|
379
390
|
},
|
|
380
391
|
setGroupCollapsed: (e, t) => {
|
|
381
|
-
|
|
392
|
+
M?.dispatch(o.setGroupCollapsed(e, t));
|
|
382
393
|
},
|
|
383
394
|
expandAllGroups: () => {
|
|
384
|
-
|
|
395
|
+
M?.dispatch(o.setCollapsedGroupKeys(/* @__PURE__ */ new Set()));
|
|
385
396
|
},
|
|
386
397
|
collapseAllGroups: () => {
|
|
387
|
-
let t =
|
|
398
|
+
let t = M;
|
|
388
399
|
!t || !t.groupTree || t.dispatch(o.setCollapsedGroupKeys(new Set(e(t.groupTree))));
|
|
389
400
|
},
|
|
390
401
|
getGroupRows: () => {
|
|
391
|
-
let e =
|
|
402
|
+
let e = M;
|
|
392
403
|
return e?.groupTree ? t(e.groupTree) : [];
|
|
393
404
|
},
|
|
394
405
|
setDetailRowExpanded: (e, t) => {
|
|
395
|
-
let n =
|
|
406
|
+
let n = M;
|
|
396
407
|
if (!(!n || !n.detailRowEnabled)) {
|
|
397
408
|
if (t && n.detailIsExpandable) {
|
|
398
409
|
let t = i(n.rowModel, e, n.detailIndexCacheRef.current, !n.isServerSide);
|
|
@@ -408,22 +419,22 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
408
419
|
}
|
|
409
420
|
},
|
|
410
421
|
getExpandedDetailRowKeys: () => {
|
|
411
|
-
let e =
|
|
422
|
+
let e = M;
|
|
412
423
|
return e && e.detailRowEnabled ? Array.from(e.uiState.expandedDetailRowKeys) : [];
|
|
413
424
|
},
|
|
414
425
|
collapseAllDetailRows: () => {
|
|
415
|
-
let e =
|
|
426
|
+
let e = M;
|
|
416
427
|
!e || !e.detailRowEnabled || e.dispatch(o.setExpandedDetailRowKeys(/* @__PURE__ */ new Set()));
|
|
417
428
|
},
|
|
418
429
|
moveRow: (e, t) => {
|
|
419
|
-
|
|
430
|
+
M?.moveRowByKey(e, t);
|
|
420
431
|
},
|
|
421
432
|
getInvalidCells: () => {
|
|
422
|
-
let e =
|
|
433
|
+
let e = M;
|
|
423
434
|
return e ? e.isServerSide ? (console.warn("[SpreadsheetGrid] getInvalidCells は serverSide モードでは利用できません(空配列を返します)。"), []) : d(e.rows, e.columns, e.resolvedRowKeyGetter) : [];
|
|
424
435
|
},
|
|
425
436
|
refreshServerSide: () => {
|
|
426
|
-
let e =
|
|
437
|
+
let e = M;
|
|
427
438
|
if (e) {
|
|
428
439
|
if (!e.isServerSide) {
|
|
429
440
|
console.warn("[SpreadsheetGrid] refreshServerSide は clientSide(rows)モードでは何もしません(dataSource 指定時のみ有効です)。");
|
|
@@ -433,7 +444,7 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
433
444
|
}
|
|
434
445
|
},
|
|
435
446
|
retryServerSideLoads: () => {
|
|
436
|
-
let e =
|
|
447
|
+
let e = M;
|
|
437
448
|
if (e) {
|
|
438
449
|
if (!e.isServerSide) {
|
|
439
450
|
console.warn("[SpreadsheetGrid] retryServerSideLoads は clientSide(rows)モードでは何もしません(dataSource 指定時のみ有効です)。");
|
|
@@ -443,30 +454,30 @@ var k = 1e3, A = /* @__PURE__ */ new Set(), j = () => {
|
|
|
443
454
|
}
|
|
444
455
|
},
|
|
445
456
|
openFilterManager: () => {
|
|
446
|
-
|
|
457
|
+
M?.openToolPanel("filter");
|
|
447
458
|
},
|
|
448
459
|
closeFilterManager: () => {
|
|
449
|
-
let e =
|
|
460
|
+
let e = M;
|
|
450
461
|
e && e.activeToolPanelTab === "filter" && e.closeToolPanel();
|
|
451
462
|
},
|
|
452
463
|
openFind: (e) => {
|
|
453
|
-
|
|
464
|
+
M?.find.open(e);
|
|
454
465
|
},
|
|
455
466
|
closeFind: () => {
|
|
456
|
-
|
|
467
|
+
M?.find.close();
|
|
457
468
|
},
|
|
458
469
|
findNext: () => {
|
|
459
|
-
|
|
470
|
+
M?.find.next();
|
|
460
471
|
},
|
|
461
472
|
findPrev: () => {
|
|
462
|
-
|
|
473
|
+
M?.find.prev();
|
|
463
474
|
}
|
|
464
475
|
},
|
|
465
|
-
applyScroll:
|
|
466
|
-
verticalTargetFor:
|
|
467
|
-
horizontalTargetFor:
|
|
468
|
-
scrollToCellInternal:
|
|
476
|
+
applyScroll: F,
|
|
477
|
+
verticalTargetFor: I,
|
|
478
|
+
horizontalTargetFor: L,
|
|
479
|
+
scrollToCellInternal: R
|
|
469
480
|
};
|
|
470
481
|
};
|
|
471
482
|
//#endregion
|
|
472
|
-
export {
|
|
483
|
+
export { M as createGridApi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=[`sum`,`min`,`max`,`avg`,`count`],t=t=>typeof t==`string`&&e.includes(t),n=()=>({count:0,numericCount:0,sum:0,min:1/0,max:-1/0}),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=[`sum`,`min`,`max`,`avg`,`count`],t=t=>typeof t==`string`&&e.includes(t),n=e=>{let t;if(typeof e==`number`)t=e;else if(typeof e==`string`){if(e.trim()===``)return;t=Number(e)}else if(typeof e==`bigint`)t=Number(e);else return;return Number.isFinite(t)?t:void 0},r=()=>({count:0,numericCount:0,sum:0,min:1/0,max:-1/0}),i=(e,t)=>{e.count+=1;let r=n(t);r!==void 0&&(e.numericCount+=1,e.sum+=r,r<e.min&&(e.min=r),r>e.max&&(e.max=r))},a=(e,t)=>{switch(e){case`count`:return t.count;case`sum`:return t.numericCount>0?t.sum:void 0;case`avg`:return t.numericCount>0?t.sum/t.numericCount:void 0;case`min`:return t.numericCount>0?t.min:void 0;case`max`:return t.numericCount>0?t.max:void 0}};exports.BUILTIN_AGG_FUNC_NAMES=e,exports.accumulateBuiltinAgg=i,exports.createBuiltinAggAccumulator=r,exports.finalizeBuiltinAgg=a,exports.isBuiltinAggFuncName=t,exports.toAggregatableNumber=n;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GridAggFuncName } from '../model/gridTypes.unbound.js';
|
|
2
2
|
export declare const BUILTIN_AGG_FUNC_NAMES: readonly GridAggFuncName[];
|
|
3
3
|
export declare const isBuiltinAggFuncName: (value: unknown) => value is GridAggFuncName;
|
|
4
|
+
export declare const toAggregatableNumber: (value: unknown) => number | undefined;
|
|
4
5
|
export type BuiltinAggAccumulator = {
|
|
5
6
|
count: number;
|
|
6
7
|
numericCount: number;
|
|
@@ -5,17 +5,26 @@ var e = [
|
|
|
5
5
|
"max",
|
|
6
6
|
"avg",
|
|
7
7
|
"count"
|
|
8
|
-
], t = (t) => typeof t == "string" && e.includes(t), n = () =>
|
|
8
|
+
], t = (t) => typeof t == "string" && e.includes(t), n = (e) => {
|
|
9
|
+
let t;
|
|
10
|
+
if (typeof e == "number") t = e;
|
|
11
|
+
else if (typeof e == "string") {
|
|
12
|
+
if (e.trim() === "") return;
|
|
13
|
+
t = Number(e);
|
|
14
|
+
} else if (typeof e == "bigint") t = Number(e);
|
|
15
|
+
else return;
|
|
16
|
+
return Number.isFinite(t) ? t : void 0;
|
|
17
|
+
}, r = () => ({
|
|
9
18
|
count: 0,
|
|
10
19
|
numericCount: 0,
|
|
11
20
|
sum: 0,
|
|
12
21
|
min: Infinity,
|
|
13
22
|
max: -Infinity
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
},
|
|
23
|
+
}), i = (e, t) => {
|
|
24
|
+
e.count += 1;
|
|
25
|
+
let r = n(t);
|
|
26
|
+
r !== void 0 && (e.numericCount += 1, e.sum += r, r < e.min && (e.min = r), r > e.max && (e.max = r));
|
|
27
|
+
}, a = (e, t) => {
|
|
19
28
|
switch (e) {
|
|
20
29
|
case "count": return t.count;
|
|
21
30
|
case "sum": return t.numericCount > 0 ? t.sum : void 0;
|
|
@@ -25,4 +34,4 @@ var e = [
|
|
|
25
34
|
}
|
|
26
35
|
};
|
|
27
36
|
//#endregion
|
|
28
|
-
export { e as BUILTIN_AGG_FUNC_NAMES,
|
|
37
|
+
export { e as BUILTIN_AGG_FUNC_NAMES, i as accumulateBuiltinAgg, r as createBuiltinAggAccumulator, a as finalizeBuiltinAgg, t as isBuiltinAggFuncName, n as toAggregatableNumber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=24,t=18,n=6,r=({rectLeft:e,rectTop:t,clientLeft:n,clientTop:r,clientWidth:i,clientHeight:a})=>{let o=e+n,s=t+r;return{left:o,top:s,right:o+i,bottom:s+a}},i=(e,t,n,r)=>e<t+r?-1:+(e>n-r),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=24,t=18,n=6,r=({rectLeft:e,rectTop:t,clientLeft:n,clientTop:r,clientWidth:i,clientHeight:a})=>{let o=e+n,s=t+r;return{left:o,top:s,right:o+i,bottom:s+a}},i=(e,t,n)=>n>0?Math.min(e,t-n-1):e,a=(e,t,n,r)=>e<t+r?-1:+(e>n-r),o=(e,t,n,r)=>{if(t===0)return e;let i=Math.max(r,0),a=e+t*n;return a<0?0:a>i?i:a},s=(e,t,n)=>{let r=t.x-e.x,i=t.y-e.y;return r*r+i*i>=n*n};exports.AUTO_SCROLL_ACTIVATION_DISTANCE=n,exports.AUTO_SCROLL_EDGE_THRESHOLD=e,exports.AUTO_SCROLL_STEP=t,exports.clampClientYAboveFooter=i,exports.computeNextScrollPosition=o,exports.hasPointerLeftActivationRadius=s,exports.resolveAutoScrollAxisDirection=a,exports.resolveScrollContentBox=r;
|
|
@@ -16,6 +16,7 @@ export declare const resolveScrollContentBox: ({ rectLeft, rectTop, clientLeft,
|
|
|
16
16
|
clientWidth: number;
|
|
17
17
|
clientHeight: number;
|
|
18
18
|
}) => AutoScrollContentBox;
|
|
19
|
+
export declare const clampClientYAboveFooter: (clientY: number, contentBottom: number, footerHeight: number) => number;
|
|
19
20
|
export declare const resolveAutoScrollAxisDirection: (pointer: number, start: number, end: number, edgeThreshold: number) => AutoScrollAxisDirection;
|
|
20
21
|
export declare const computeNextScrollPosition: (current: number, direction: AutoScrollAxisDirection, step: number, max: number) => number;
|
|
21
22
|
export declare const hasPointerLeftActivationRadius: (origin: {
|
|
@@ -7,13 +7,13 @@ var e = 24, t = 18, n = 6, r = ({ rectLeft: e, rectTop: t, clientLeft: n, client
|
|
|
7
7
|
right: o + i,
|
|
8
8
|
bottom: s + a
|
|
9
9
|
};
|
|
10
|
-
}, i = (e, t, n, r) => e < t + r ? -1 : +(e > n - r),
|
|
10
|
+
}, i = (e, t, n) => n > 0 ? Math.min(e, t - n - 1) : e, a = (e, t, n, r) => e < t + r ? -1 : +(e > n - r), o = (e, t, n, r) => {
|
|
11
11
|
if (t === 0) return e;
|
|
12
12
|
let i = Math.max(r, 0), a = e + t * n;
|
|
13
13
|
return a < 0 ? 0 : a > i ? i : a;
|
|
14
|
-
},
|
|
14
|
+
}, s = (e, t, n) => {
|
|
15
15
|
let r = t.x - e.x, i = t.y - e.y;
|
|
16
16
|
return r * r + i * i >= n * n;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { n as AUTO_SCROLL_ACTIVATION_DISTANCE, e as AUTO_SCROLL_EDGE_THRESHOLD, t as AUTO_SCROLL_STEP,
|
|
19
|
+
export { n as AUTO_SCROLL_ACTIVATION_DISTANCE, e as AUTO_SCROLL_EDGE_THRESHOLD, t as AUTO_SCROLL_STEP, i as clampClientYAboveFooter, o as computeNextScrollPosition, s as hasPointerLeftActivationRadius, a as resolveAutoScrollAxisDirection, r as resolveScrollContentBox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../utils/permissions.cjs"),t=require("./geometry.cjs"),n=require("../model/gridSelectors.cjs"),r=require("./editorValues.cjs"),i=require("./validation.cjs");var a=(e,r,i,a)=>{if(i===0||a===0)return null;let o=i-1,s=a-1;if(e?.type===`cell`){let r=n.normalizeCellRange(e.range);return{startRow:t.clamp(r.start.row,0,o),endRow:t.clamp(r.end.row,0,o),startCol:t.clamp(r.start.col,0,s),endCol:t.clamp(r.end.col,0,s)}}if(e?.type===`row`){let r=n.normalizeRowRange(e.startRow,e.endRow);return{startRow:t.clamp(r.startRow,0,o),endRow:t.clamp(r.endRow,0,o),startCol:0,endCol:s}}if(e?.type===`col`){let r=n.normalizeColumnRange(e.startCol,e.endCol);return{startRow:0,endRow:o,startCol:t.clamp(r.startCol,0,s),endCol:t.clamp(r.endCol,0,s)}}return r?r.row>o||r.col>s?null:{startRow:r.row,endRow:r.row,startCol:r.col,endCol:r.col}:null},o=({rows:t,resolveSourceIndex:n,columns:o,selection:s,activeCell:c,viewRowCount:l,canWriteCell:u})=>{let d=a(s,c,l,o.length);if(!d)return{nextRows:t,changed:!1};let f=[...t],p=!1;for(let t=d.startRow;t<=d.endRow;t+=1){let a=n(t);if(a===void 0)continue;let s=f[a];if(!s)continue;let c=s,l=!1;for(let
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../utils/permissions.cjs"),t=require("./geometry.cjs"),n=require("../model/gridSelectors.cjs"),r=require("./editorValues.cjs"),i=require("./validation.cjs");var a=(e,r,i,a)=>{if(i===0||a===0)return null;let o=i-1,s=a-1;if(e?.type===`cell`){let r=n.normalizeCellRange(e.range);return{startRow:t.clamp(r.start.row,0,o),endRow:t.clamp(r.end.row,0,o),startCol:t.clamp(r.start.col,0,s),endCol:t.clamp(r.end.col,0,s)}}if(e?.type===`row`){let r=n.normalizeRowRange(e.startRow,e.endRow);return{startRow:t.clamp(r.startRow,0,o),endRow:t.clamp(r.endRow,0,o),startCol:0,endCol:s}}if(e?.type===`col`){let r=n.normalizeColumnRange(e.startCol,e.endCol);return{startRow:0,endRow:o,startCol:t.clamp(r.startCol,0,s),endCol:t.clamp(r.endCol,0,s)}}return r?r.row>o||r.col>s?null:{startRow:r.row,endRow:r.row,startCol:r.col,endCol:r.col}:null},o=({rows:t,resolveSourceIndex:n,columns:o,selection:s,activeCell:c,viewRowCount:l,canWriteCell:u})=>{let d=a(s,c,l,o.length);if(!d)return{nextRows:t,changed:!1};let f=[...t],p=!1;for(let t=d.startRow;t<=d.endRow;t+=1){let a=n(t);if(a===void 0)continue;let s=f[a];if(!s)continue;let c=s,l=!1;for(let n=d.startCol;n<=d.endCol;n+=1){let d=o[n];if(!d||!u(a,n,s,d,t))continue;let f=r.resolveCellParser(d)(``,s),p=e.getCellValue(c,d);Object.is(p,f)||p==null&&f==null||i.decideCellWrite(d,s,f).action!==`reject`&&(c=e.setCellValue(c,d,f),l=!0)}l&&(f[a]=c,p=!0)}return p?{nextRows:f,changed:p}:{nextRows:t,changed:!1}},s=({getRow:t,columns:n,selection:o,activeCell:s,viewRowCount:c,canWriteCell:l})=>{let u=a(o,s,c,n.length);if(!u)return[];let d=[];for(let a=u.startRow;a<=u.endRow;a+=1){let o=t(a);if(o)for(let t=u.startCol;t<=u.endCol;t+=1){let s=n[t];if(!s||!l(a,t,o,s))continue;let c=r.resolveCellParser(s)(``,o),u=e.getCellValue(o,s);Object.is(u,c)||u==null&&c==null||i.decideCellWrite(s,o,c).action!==`reject`&&d.push({viewIndex:a,column:s,value:c})}}return d};exports.buildClearCellEdits=s,exports.clearCellsInSelection=o,exports.resolveClearTarget=a;
|
|
@@ -14,7 +14,7 @@ type ClearCellsArgs<T extends object> = {
|
|
|
14
14
|
selection: GridSelection;
|
|
15
15
|
activeCell: CellCoord | null;
|
|
16
16
|
viewRowCount: number;
|
|
17
|
-
canWriteCell: (originalRowIndex: number, colIndex: number, row: T, column: GridColumn<T
|
|
17
|
+
canWriteCell: (originalRowIndex: number, colIndex: number, row: T, column: GridColumn<T>, viewIndex: number) => boolean;
|
|
18
18
|
};
|
|
19
19
|
export declare const clearCellsInSelection: <T extends object>({ rows, resolveSourceIndex, columns, selection, activeCell, viewRowCount, canWriteCell, }: ClearCellsArgs<T>) => {
|
|
20
20
|
nextRows: T[];
|
package/dist/logic/clearCells.js
CHANGED
|
@@ -53,11 +53,11 @@ var c = (e, t, o, s) => {
|
|
|
53
53
|
let c = p[a];
|
|
54
54
|
if (!c) continue;
|
|
55
55
|
let l = c, u = !1;
|
|
56
|
-
for (let
|
|
57
|
-
let
|
|
58
|
-
if (!
|
|
59
|
-
let
|
|
60
|
-
Object.is(
|
|
56
|
+
for (let r = f.startCol; r <= f.endCol; r += 1) {
|
|
57
|
+
let f = i[r];
|
|
58
|
+
if (!f || !d(a, r, c, f, n)) continue;
|
|
59
|
+
let p = o(f)("", c), m = e(l, f);
|
|
60
|
+
Object.is(m, p) || m == null && p == null || s(f, c, p).action !== "reject" && (l = t(l, f, p), u = !0);
|
|
61
61
|
}
|
|
62
62
|
u && (p[a] = l, m = !0);
|
|
63
63
|
}
|
|
@@ -77,8 +77,8 @@ var c = (e, t, o, s) => {
|
|
|
77
77
|
if (i) for (let t = u.startCol; t <= u.endCol; t += 1) {
|
|
78
78
|
let a = n[t];
|
|
79
79
|
if (!a || !l(r, t, i, a)) continue;
|
|
80
|
-
let c = o(a)("", i);
|
|
81
|
-
Object.is(
|
|
80
|
+
let c = o(a)("", i), u = e(i, a);
|
|
81
|
+
Object.is(u, c) || u == null && c == null || s(a, i, c).action !== "reject" && d.push({
|
|
82
82
|
viewIndex: r,
|
|
83
83
|
column: a,
|
|
84
84
|
value: c
|