@ishibashi0112/spreadsheet-grid-core 1.0.2 → 1.2.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/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 +4 -0
- package/dist/controllers/clipboardController.js +82 -54
- package/dist/controllers/columnAutosizeRunner.cjs +1 -1
- package/dist/controllers/columnAutosizeRunner.d.ts +1 -0
- package/dist/controllers/columnAutosizeRunner.js +17 -16
- package/dist/controllers/columnHeaderDragController.cjs +1 -1
- package/dist/controllers/columnHeaderDragController.js +169 -168
- package/dist/controllers/columnMenuController.cjs +1 -1
- package/dist/controllers/columnMenuController.js +71 -69
- package/dist/controllers/contextMenuController.cjs +1 -1
- package/dist/controllers/contextMenuController.d.ts +5 -1
- package/dist/controllers/contextMenuController.js +62 -40
- 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.d.ts +1 -0
- package/dist/controllers/fillHandleController.js +157 -157
- 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/historyController.cjs +1 -1
- package/dist/controllers/historyController.d.ts +6 -0
- package/dist/controllers/historyController.js +79 -37
- 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 +46 -42
- package/dist/controllers/pointerInteractionsController.cjs +1 -1
- package/dist/controllers/pointerInteractionsController.d.ts +1 -0
- package/dist/controllers/pointerInteractionsController.js +172 -172
- package/dist/controllers/popoverSupport.cjs +1 -1
- package/dist/controllers/popoverSupport.d.ts +1 -0
- package/dist/controllers/popoverSupport.js +9 -4
- package/dist/controllers/rowDragController.cjs +1 -1
- package/dist/controllers/rowDragController.d.ts +2 -0
- package/dist/controllers/rowDragController.js +160 -146
- 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/toolPanelController.cjs +1 -1
- package/dist/controllers/toolPanelController.js +26 -14
- package/dist/controllers/tooltipController.cjs +1 -1
- package/dist/controllers/tooltipController.js +74 -72
- package/dist/controllers/viewportSyncController.cjs +1 -1
- package/dist/controllers/viewportSyncController.d.ts +4 -1
- package/dist/controllers/viewportSyncController.js +66 -28
- 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 +18 -9
- 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 +8 -2
- package/dist/engine/gridApi.js +197 -187
- 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 +3 -1
- package/dist/index.js +7 -6
- package/dist/locales/en.cjs +1 -1
- package/dist/locales/en.js +5 -0
- package/dist/logic/autoScrollGeometry.cjs +1 -1
- package/dist/logic/autoScrollGeometry.d.ts +2 -0
- package/dist/logic/autoScrollGeometry.js +3 -3
- package/dist/logic/editorValues.cjs +1 -1
- package/dist/logic/editorValues.js +37 -34
- package/dist/logic/exportCsv.cjs +3 -3
- package/dist/logic/exportCsv.d.ts +4 -1
- package/dist/logic/exportCsv.js +22 -20
- package/dist/logic/exportData.cjs +1 -1
- package/dist/logic/exportData.d.ts +4 -1
- package/dist/logic/exportData.js +40 -36
- package/dist/logic/filtering.cjs +1 -1
- package/dist/logic/filtering.d.ts +2 -1
- package/dist/logic/filtering.js +16 -3
- 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/gridState.cjs +1 -1
- package/dist/logic/gridState.d.ts +3 -2
- package/dist/logic/gridState.js +32 -23
- package/dist/logic/groupExport.cjs +1 -1
- package/dist/logic/groupExport.js +28 -27
- package/dist/logic/grouping.cjs +1 -1
- package/dist/logic/grouping.d.ts +1 -0
- package/dist/logic/grouping.js +52 -41
- package/dist/logic/historyRebase.cjs +1 -0
- package/dist/logic/historyRebase.d.ts +5 -0
- package/dist/logic/historyRebase.js +36 -0
- 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 +8 -0
- package/dist/logic/localeTextFeatures.js +11 -5
- package/dist/logic/localeTextPopups.cjs +1 -1
- package/dist/logic/localeTextPopups.d.ts +1 -0
- package/dist/logic/localeTextPopups.js +1 -0
- 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 +4 -1
- package/dist/logic/selectEditorState.js +14 -14
- package/dist/logic/selectLabels.cjs +1 -0
- package/dist/logic/selectLabels.d.ts +3 -0
- package/dist/logic/selectLabels.js +41 -0
- 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/logic/valueParsers.cjs +1 -0
- package/dist/logic/valueParsers.d.ts +14 -0
- package/dist/logic/valueParsers.js +23 -0
- 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 +345 -43
- package/dist/utils/clipboard.cjs +4 -4
- package/dist/utils/clipboard.d.ts +14 -2
- package/dist/utils/clipboard.js +101 -49
- 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/popupContainer.cjs +1 -0
- package/dist/utils/popupContainer.d.ts +8 -0
- package/dist/utils/popupContainer.js +60 -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 = (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
|
+
}, L = (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
|
+
I(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
|
+
}, R = (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
|
+
}, z = (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
|
+
}, B = (e, t, n) => {
|
|
64
|
+
L(R(e, n), z(t, n), n);
|
|
65
|
+
}, V = (e) => e.viewRowCount <= 0 || e.orderedColumns.length === 0, H = (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
|
+
}, U = (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
|
+
}, W = (e) => e.getUiState?.() ?? e.uiState, G = (e) => e.pendingRowSelection?.() ?? W(e).rowSelection, K = {
|
|
76
77
|
model: null,
|
|
77
78
|
map: /* @__PURE__ */ new Map()
|
|
78
|
-
},
|
|
79
|
+
}, q = {
|
|
79
80
|
scrollToRow: (e, t) => {
|
|
80
81
|
let n = t?.align ?? "auto";
|
|
81
|
-
|
|
82
|
+
L(R(e, n), null, n);
|
|
82
83
|
},
|
|
83
|
-
scrollToCell: (e, t, n) =>
|
|
84
|
+
scrollToCell: (e, t, n) => B(e, t, n?.align ?? "auto"),
|
|
84
85
|
scrollToTop: () => {
|
|
85
|
-
let e =
|
|
86
|
-
e &&
|
|
86
|
+
let e = j?.scrollContainerRef.current ?? null;
|
|
87
|
+
e && I(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 || (I(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
|
+
until: Date.now() + k
|
|
99
100
|
} : null);
|
|
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 && I(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 ? W(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 && V(r)) return;
|
|
137
|
+
let i = t ? H(t) : null, a = i ? {
|
|
138
|
+
row: U(r, i.row),
|
|
139
|
+
col: i.col
|
|
135
140
|
} : null;
|
|
136
|
-
|
|
141
|
+
r.dispatch(e.activateCell(a)), a && n?.scrollIntoView && B(a.row, a.col, "auto");
|
|
137
142
|
},
|
|
138
|
-
getSelection: () =>
|
|
143
|
+
getSelection: () => j ? W(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 = W(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()), B(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 ? (K.model !== t.rowModel && (K = {
|
|
156
161
|
model: t.rowModel,
|
|
157
162
|
map: /* @__PURE__ */ new Map()
|
|
158
|
-
}),
|
|
163
|
+
}), i(t.rowModel, e, K.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 = q.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 || V(i)) return;
|
|
173
|
+
let a = H({
|
|
174
|
+
row: t,
|
|
175
|
+
col: n
|
|
171
176
|
}), o = {
|
|
172
|
-
row:
|
|
177
|
+
row: U(i, a.row),
|
|
173
178
|
col: a.col
|
|
174
179
|
};
|
|
175
|
-
|
|
180
|
+
i.dispatch(e.startSelection(o)), i.dispatch(e.endSelection()), r?.scrollIntoView && B(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 || V(r)) return;
|
|
185
|
+
let i = H(t.start), a = H(t.end), o = U(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 && B(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 = W(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 = W(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 = W(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 ? _(G(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 = G(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,107 +273,112 @@ 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 = G(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(G(e), e.leafRowCount) : 0;
|
|
283
288
|
},
|
|
284
289
|
isRowSelected: (e) => {
|
|
285
|
-
let t =
|
|
286
|
-
return t ?
|
|
290
|
+
let t = j;
|
|
291
|
+
return t ? h(G(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
|
-
applyRows: (e) => {
|
|
306
|
-
let
|
|
307
|
-
if (
|
|
308
|
-
if (!
|
|
310
|
+
applyRows: (e, t) => {
|
|
311
|
+
let n = j;
|
|
312
|
+
if (n) {
|
|
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()).");
|
|
310
315
|
return;
|
|
311
316
|
}
|
|
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 = W(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 && W(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(W(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(W(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,48 @@ 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();
|
|
408
418
|
}
|
|
409
419
|
};
|
|
410
420
|
return {
|
|
411
421
|
update: (e) => {
|
|
412
|
-
let t =
|
|
413
|
-
if (
|
|
422
|
+
let t = j?.physicalBodyHeight;
|
|
423
|
+
if (j = e, M = null, F === null || t === e.physicalBodyHeight) return;
|
|
414
424
|
let n = e.scrollContainerRef.current;
|
|
415
|
-
if (!n || !e.measuredRowHeights || Date.now() >
|
|
416
|
-
|
|
425
|
+
if (!n || !e.measuredRowHeights || Date.now() > F.until || n.scrollTop < F.pinnedTop - 1) {
|
|
426
|
+
F = null;
|
|
417
427
|
return;
|
|
418
428
|
}
|
|
419
|
-
|
|
429
|
+
I(n, {
|
|
420
430
|
top: Math.max(e.headerHeight + e.physicalBodyHeight + (e.footerHeight ?? 0) - n.clientHeight, 0),
|
|
421
431
|
left: n.scrollLeft
|
|
422
|
-
}),
|
|
423
|
-
...
|
|
432
|
+
}), F = {
|
|
433
|
+
...F,
|
|
424
434
|
pinnedTop: n.scrollTop
|
|
425
435
|
};
|
|
426
436
|
},
|
|
427
|
-
handle:
|
|
428
|
-
applyScroll:
|
|
429
|
-
verticalTargetFor:
|
|
430
|
-
horizontalTargetFor:
|
|
431
|
-
scrollToCellInternal:
|
|
437
|
+
handle: q,
|
|
438
|
+
applyScroll: L,
|
|
439
|
+
verticalTargetFor: R,
|
|
440
|
+
horizontalTargetFor: z,
|
|
441
|
+
scrollToCellInternal: B
|
|
432
442
|
};
|
|
433
443
|
};
|
|
434
444
|
//#endregion
|
|
435
|
-
export {
|
|
445
|
+
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;
|