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