@progress/kendo-react-grid 11.0.0-develop.7 → 11.0.0-develop.9
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +16 -13
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +419 -421
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +395 -402
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -107
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +71 -67
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +4 -4
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +16 -15
- package/components/utils.js +1 -1
- package/components/utils.mjs +9 -10
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/utils/index.js +1 -1
- package/utils/index.mjs +93 -85
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -52
package/GridClientWrapper.mjs
CHANGED
|
@@ -6,23 +6,22 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { useAdaptiveModeContext as
|
|
11
|
-
import { getSelectionOptions as re, populateClipboardData as
|
|
12
|
-
import { ColumnResize as
|
|
13
|
-
import { CommonDragLogic as
|
|
14
|
-
import { SAFARI_REGEX as
|
|
15
|
-
import { getDefaultHeadContextMenuItems as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
...b,
|
|
9
|
+
import * as a from "react";
|
|
10
|
+
import { useAdaptiveModeContext as Ot, canUseDOM as te, getActiveElement as Bt, useDir as Ut, setScrollbarWidth as Ne, cloneArray as Vt, getter as ne, RowHeightService as Wt } from "@progress/kendo-react-common";
|
|
11
|
+
import { getSelectionOptions as re, populateClipboardData as _t, ClipboardActionType as ve, getEditableOptions as jt, tableKeyboardNavigation as H, ClipboardService as qt, TableKeyboardNavigationContext as Xt, editReducer as $t, EDIT_ACTION as Jt, getDetailExpandableOptions as Yt, detailExpandReducer as Oe, getGroupExpandableOptions as Qt, groupExpandReducer as Zt, DETAIL_EXPAND_ACTION as pt, getSelectedState as Be, getSelectedStateFromKeyDown as en, closestTagName as Ue, getColumnIndex as tn, getRowIndex as nn, updateLeft as rn, updateRight as on } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { ColumnResize as an } from "./drag/ColumnResize.mjs";
|
|
13
|
+
import { CommonDragLogic as dn } from "./drag/CommonDragLogic.mjs";
|
|
14
|
+
import { SAFARI_REGEX as cn } from "./constants/index.mjs";
|
|
15
|
+
import { getDefaultHeadContextMenuItems as ln, getDefaultBodyContextMenuItems as sn, isRowReorderEnabled as un, sanitizeColumns as gn, getDataAsArray as fn, getFlatColumnsState as mn, calcRowHeight as Pn } from "./utils/index.mjs";
|
|
16
|
+
import { VirtualScroll as hn } from "./VirtualScroll.mjs";
|
|
17
|
+
import { GridContextMenu as Rn } from "./contextMenu/GridContextMenu.mjs";
|
|
18
|
+
import { GridContextMenuAnchorPart as Ve } from "./contextMenu/enums.mjs";
|
|
19
|
+
import { normalizeSortable as In, firstLevelSortSeqMap as vn } from "./sortCommon.mjs";
|
|
20
|
+
const bn = a.createContext(void 0), An = (t) => {
|
|
21
|
+
var Le, ze;
|
|
22
|
+
const S = t.gridProps.isClient, [I, be] = a.useState({}), Ce = Ot(), We = (e) => {
|
|
23
|
+
e.event.preventDefault(), be({
|
|
24
|
+
...I,
|
|
26
25
|
show: !0,
|
|
27
26
|
offset: {
|
|
28
27
|
left: e.event.pageX,
|
|
@@ -31,40 +30,40 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
31
30
|
dataItem: e.dataItem,
|
|
32
31
|
field: e.field
|
|
33
32
|
});
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
}, P =
|
|
33
|
+
}, Ee = () => {
|
|
34
|
+
be({});
|
|
35
|
+
}, P = a.useMemo(() => t.columnsRef.find((e) => e.field === I.field), [t.columnsRef, I]), we = a.useMemo(() => {
|
|
37
36
|
const e = t.gridProps.sortable && (P == null ? void 0 : P.sortable);
|
|
38
|
-
return
|
|
37
|
+
return ln({
|
|
39
38
|
sortable: !!e,
|
|
40
39
|
selectable: re(t.gridProps.selectable).enabled,
|
|
41
40
|
clipboard: !!t.gridProps.clipboard
|
|
42
41
|
});
|
|
43
|
-
}, [P, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]),
|
|
42
|
+
}, [P, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]), ye = a.useMemo(() => {
|
|
44
43
|
const e = t.gridProps.sortable && (P == null ? void 0 : P.sortable);
|
|
45
|
-
return
|
|
44
|
+
return sn({
|
|
46
45
|
sortable: !!e,
|
|
47
46
|
selectable: re(t.gridProps.selectable).enabled,
|
|
48
47
|
clipboard: !!t.gridProps.clipboard,
|
|
49
|
-
rowReorderable:
|
|
48
|
+
rowReorderable: un(t.gridProps.rowReorderable)
|
|
50
49
|
});
|
|
51
|
-
}, [P, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]),
|
|
52
|
-
const e = (P == null ? void 0 : P.contextMenu) || t.gridProps.contextMenu, n = typeof e == "function" ? e(
|
|
53
|
-
if (n &&
|
|
54
|
-
const o =
|
|
55
|
-
return r === !1 ? void 0 : r === !0 || r === void 0 ?
|
|
50
|
+
}, [P, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]), _ = a.useMemo(() => {
|
|
51
|
+
const e = (P == null ? void 0 : P.contextMenu) || t.gridProps.contextMenu, n = typeof e == "function" ? e(I) : e;
|
|
52
|
+
if (n && I.offset) {
|
|
53
|
+
const o = I.dataItem ? Ve.body : Ve.head, r = n[o], i = I.dataItem ? ye : we;
|
|
54
|
+
return r === !1 ? void 0 : r === !0 || r === void 0 ? i : r;
|
|
56
55
|
}
|
|
57
|
-
}, [t.gridProps.contextMenu,
|
|
58
|
-
var l,
|
|
56
|
+
}, [t.gridProps.contextMenu, I, ye, we, P]), _e = (e) => {
|
|
57
|
+
var l, s, u, m, b, ee, R, U, V;
|
|
59
58
|
const n = e.event.item, o = {
|
|
60
|
-
target:
|
|
59
|
+
target: v.current,
|
|
61
60
|
syntheticEvent: e.event.syntheticEvent,
|
|
62
61
|
nativeEvent: e.event.nativeEvent,
|
|
63
62
|
menuItem: n,
|
|
64
63
|
...e
|
|
65
64
|
};
|
|
66
|
-
t.gridProps.onContextMenuItemClick &&
|
|
67
|
-
const r =
|
|
65
|
+
t.gridProps.onContextMenuItemClick && c(t.gridProps.onContextMenuItemClick, o);
|
|
66
|
+
const r = C(), i = {
|
|
68
67
|
selectedField: t.gridProps.selectedField || "",
|
|
69
68
|
componentId: t.id,
|
|
70
69
|
dataItems: r,
|
|
@@ -80,192 +79,192 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
80
79
|
isDrag: !1,
|
|
81
80
|
...re(t.gridProps.selectable),
|
|
82
81
|
...o
|
|
83
|
-
}, d = r.findIndex((
|
|
82
|
+
}, d = r.findIndex((W) => W === e.dataItem);
|
|
84
83
|
switch ((l = n.data) == null ? void 0 : l.action) {
|
|
85
84
|
case "SortCommand":
|
|
86
85
|
if (P) {
|
|
87
|
-
const
|
|
88
|
-
Se(e.event.syntheticEvent, P,
|
|
86
|
+
const W = (s = n.name) == null ? void 0 : s.toLowerCase().includes("asc"), Lt = ((u = n.name) == null ? void 0 : u.toLowerCase().includes("desc")) ? "desc" : void 0, zt = W ? "asc" : Lt, Nt = n.name ? zt : void 0;
|
|
87
|
+
Se(e.event.syntheticEvent, P, Nt);
|
|
89
88
|
}
|
|
90
89
|
break;
|
|
91
90
|
case "SelectRowCommand":
|
|
92
|
-
|
|
91
|
+
lt(i);
|
|
93
92
|
break;
|
|
94
93
|
case "SelectAllRowsCommand":
|
|
95
|
-
|
|
94
|
+
ct(i);
|
|
96
95
|
break;
|
|
97
96
|
case "ClearSelectionCommand":
|
|
98
|
-
|
|
97
|
+
st(i);
|
|
99
98
|
break;
|
|
100
99
|
case "ReorderRowCommand":
|
|
101
|
-
|
|
100
|
+
B.current = e.dataItem, (m = n.name) != null && m.toLowerCase().includes("rowup") && d > 0 && G(e.event.syntheticEvent, d - 1, "before"), (b = n.name) != null && b.toLowerCase().includes("rowdown") && d < r.length - 1 && G(e.event.syntheticEvent, d + 1, "after"), (ee = n.name) != null && ee.toLowerCase().includes("rowtop") && G(e.event.syntheticEvent, 0, "before"), (R = n.name) != null && R.toLowerCase().includes("rowbottom") && G(e.event.syntheticEvent, r.length - 1, "after");
|
|
102
101
|
break;
|
|
103
102
|
case "CopySelectionCommand":
|
|
104
|
-
|
|
103
|
+
$(
|
|
105
104
|
ve.copy,
|
|
106
105
|
e.event.nativeEvent,
|
|
107
106
|
{
|
|
108
|
-
copyHeaders: !((
|
|
107
|
+
copyHeaders: !((U = n.name) != null && U.toLowerCase().includes("noheaders"))
|
|
109
108
|
},
|
|
110
109
|
e.dataItem,
|
|
111
110
|
e.field
|
|
112
111
|
);
|
|
113
112
|
break;
|
|
114
113
|
case "PasteCommand":
|
|
115
|
-
|
|
114
|
+
$(
|
|
116
115
|
ve.paste,
|
|
117
116
|
e.event.nativeEvent,
|
|
118
117
|
{
|
|
119
|
-
copyHeaders: !((
|
|
118
|
+
copyHeaders: !((V = n.name) != null && V.toLowerCase().includes("noheaders"))
|
|
120
119
|
},
|
|
121
120
|
e.dataItem,
|
|
122
121
|
e.field
|
|
123
122
|
);
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
126
|
-
|
|
127
|
-
},
|
|
125
|
+
Ee();
|
|
126
|
+
}, j = () => {
|
|
128
127
|
const e = t.columnsRef.filter((n) => n.declarationIndex >= 0 && n.parentIndex === -1);
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
if (t.gridProps.onContextMenu &&
|
|
128
|
+
return gn(e);
|
|
129
|
+
}, je = (e, n, o) => {
|
|
130
|
+
if (t.gridProps.onContextMenu && S) {
|
|
132
131
|
const r = {
|
|
133
|
-
target:
|
|
132
|
+
target: v.current,
|
|
134
133
|
syntheticEvent: e,
|
|
135
134
|
nativeEvent: e.nativeEvent,
|
|
136
135
|
dataItem: n,
|
|
137
136
|
field: o
|
|
138
137
|
};
|
|
139
|
-
|
|
138
|
+
c(t.gridProps.onContextMenu, r);
|
|
140
139
|
}
|
|
141
|
-
t.gridProps.contextMenu &&
|
|
140
|
+
t.gridProps.contextMenu && We({
|
|
142
141
|
event: e,
|
|
143
142
|
dataItem: n,
|
|
144
143
|
field: o
|
|
145
144
|
});
|
|
146
|
-
},
|
|
145
|
+
}, qe = (e) => {
|
|
147
146
|
if (e.target !== e.currentTarget)
|
|
148
147
|
return;
|
|
149
|
-
clearTimeout(
|
|
150
|
-
const n = e.currentTarget.scrollLeft, o = e.currentTarget.scrollTop
|
|
151
|
-
t.gridProps.columnVirtualization && (!
|
|
152
|
-
|
|
153
|
-
}, 0)), t.gridProps.scrollLeftRef && (t.gridProps.scrollLeftRef.current = n),
|
|
154
|
-
...
|
|
155
|
-
}),
|
|
156
|
-
},
|
|
157
|
-
|
|
148
|
+
clearTimeout(Pe.current), f.current && (f.current.table = k.current);
|
|
149
|
+
const n = e.currentTarget.scrollLeft, o = e.currentTarget.scrollTop;
|
|
150
|
+
t.gridProps.columnVirtualization && (!y || o === me.current) && (Pe.current = window.setTimeout(() => {
|
|
151
|
+
L();
|
|
152
|
+
}, 0)), t.gridProps.scrollLeftRef && (t.gridProps.scrollLeftRef.current = n), O.current && O.current.setScrollLeft(n), N.current && N.current.setScrollLeft(n), f.current && o !== me.current && f.current.scrollHandler(e), t.gridProps.onScroll && S && c(t.gridProps.onScroll, {
|
|
153
|
+
...g(e)
|
|
154
|
+
}), me.current = o;
|
|
155
|
+
}, Xe = (e) => {
|
|
156
|
+
H.onKeyDown(e, {
|
|
158
157
|
navigatable: t.gridProps.navigatable || !1,
|
|
159
|
-
contextStateRef:
|
|
160
|
-
navigationStateRef:
|
|
161
|
-
onNavigationAction:
|
|
162
|
-
columns:
|
|
163
|
-
}),
|
|
164
|
-
document:
|
|
165
|
-
contextStateRef:
|
|
166
|
-
navigationStateRef:
|
|
158
|
+
contextStateRef: D,
|
|
159
|
+
navigationStateRef: T,
|
|
160
|
+
onNavigationAction: Je,
|
|
161
|
+
columns: j()
|
|
162
|
+
}), H.onGetSnapshotBeforeUpdate({
|
|
163
|
+
document: E(),
|
|
164
|
+
contextStateRef: D,
|
|
165
|
+
navigationStateRef: T
|
|
167
166
|
});
|
|
168
167
|
const n = {
|
|
169
|
-
dataItems:
|
|
168
|
+
dataItems: C(),
|
|
170
169
|
mode: h.mode,
|
|
171
170
|
cell: h.cell,
|
|
172
171
|
componentId: t.id,
|
|
173
172
|
selectedField: t.gridProps.selectedField,
|
|
174
|
-
...
|
|
173
|
+
...g(e)
|
|
175
174
|
};
|
|
176
|
-
t.gridProps.onKeyDown &&
|
|
177
|
-
},
|
|
178
|
-
|
|
175
|
+
t.gridProps.onKeyDown && S && c(t.gridProps.onKeyDown, n);
|
|
176
|
+
}, $e = (e) => {
|
|
177
|
+
H.onFocus(e, {
|
|
179
178
|
navigatable: !!t.gridProps.navigatable,
|
|
180
|
-
contextStateRef:
|
|
179
|
+
contextStateRef: D
|
|
181
180
|
});
|
|
182
|
-
},
|
|
181
|
+
}, Je = (e) => {
|
|
183
182
|
if (e.action === "moveToNextPage" && mt(e.event), e.action === "moveToPrevPage" && Pt(e.event), e.focusElement && e.action === "reorderToRight") {
|
|
184
183
|
const n = parseInt(e.focusElement.ariaColIndex, 10) - 1;
|
|
185
|
-
n < t.columnsRef.length - 1 &&
|
|
184
|
+
n < t.columnsRef.length - 1 && ae(n, n + 1, e.event);
|
|
186
185
|
}
|
|
187
186
|
if (e.focusElement && e.action === "reorderToLeft") {
|
|
188
187
|
const n = parseInt(e.focusElement.ariaColIndex, 10) - 1;
|
|
189
|
-
n > 0 &&
|
|
188
|
+
n > 0 && ae(n, n - 1, e.event);
|
|
190
189
|
}
|
|
191
|
-
if (e.action === "select" &&
|
|
190
|
+
if (e.action === "select" && it(e.event), t.gridProps.onNavigationAction && S) {
|
|
192
191
|
const n = {
|
|
193
192
|
focusElement: e.focusElement,
|
|
194
|
-
...
|
|
193
|
+
...g(e.event)
|
|
195
194
|
};
|
|
196
|
-
|
|
195
|
+
c(t.gridProps.onNavigationAction, n);
|
|
197
196
|
}
|
|
198
|
-
},
|
|
199
|
-
t.gridProps.onRowClick && e.target.nodeName === "TD" &&
|
|
197
|
+
}, Ye = (e, n) => {
|
|
198
|
+
t.gridProps.onRowClick && e.target.nodeName === "TD" && c(t.gridProps.onRowClick, {
|
|
200
199
|
dataItem: n,
|
|
201
|
-
...
|
|
200
|
+
...g(e)
|
|
202
201
|
});
|
|
203
|
-
},
|
|
204
|
-
t.gridProps.onRowDoubleClick && e.target.nodeName === "TD" &&
|
|
202
|
+
}, Qe = (e, n) => {
|
|
203
|
+
t.gridProps.onRowDoubleClick && e.target.nodeName === "TD" && c(t.gridProps.onRowDoubleClick, {
|
|
205
204
|
dataItem: n,
|
|
206
|
-
...
|
|
205
|
+
...g(e)
|
|
207
206
|
});
|
|
208
|
-
},
|
|
209
|
-
t.gridProps.onItemChange &&
|
|
210
|
-
...
|
|
207
|
+
}, Ze = (e) => {
|
|
208
|
+
t.gridProps.onItemChange && c(t.gridProps.onItemChange, {
|
|
209
|
+
...g(e.syntheticEvent),
|
|
211
210
|
dataItem: e.dataItem,
|
|
212
211
|
field: void 0,
|
|
213
212
|
value: void 0
|
|
214
213
|
});
|
|
215
|
-
},
|
|
216
|
-
t.gridProps.onItemChange && t.gridProps.onEditChange &&
|
|
214
|
+
}, pe = (e) => {
|
|
215
|
+
t.gridProps.onItemChange && t.gridProps.onEditChange && c(t.gridProps.onEditChange, {
|
|
217
216
|
edit: {},
|
|
218
|
-
...
|
|
217
|
+
...g(e.syntheticEvent)
|
|
219
218
|
});
|
|
220
|
-
},
|
|
221
|
-
if (
|
|
222
|
-
const r =
|
|
223
|
-
type:
|
|
219
|
+
}, et = (e, n, o) => {
|
|
220
|
+
if (Ge.enabled && Ge.mode === "incell" && t.gridProps.dataItemKey) {
|
|
221
|
+
const r = $t(t.gridProps.edit, {
|
|
222
|
+
type: Jt.ENTER_FIELD_EDIT,
|
|
224
223
|
payload: { id: n[t.gridProps.dataItemKey], field: o }
|
|
225
224
|
});
|
|
226
|
-
t.gridProps.onEditChange &&
|
|
225
|
+
t.gridProps.onEditChange && c(t.gridProps.onEditChange, {
|
|
227
226
|
edit: r,
|
|
228
|
-
...
|
|
227
|
+
...g(e)
|
|
229
228
|
});
|
|
230
229
|
}
|
|
231
|
-
},
|
|
230
|
+
}, tt = (e, n) => {
|
|
232
231
|
var r;
|
|
233
|
-
if (
|
|
234
|
-
const
|
|
235
|
-
t.gridProps.onDetailExpandChange &&
|
|
236
|
-
...
|
|
237
|
-
detailExpand:
|
|
232
|
+
if (Yt(t.detailExpandable).enabled) {
|
|
233
|
+
const i = Oe((r = t.gridProps.detailExpand) != null ? r : {}, e);
|
|
234
|
+
t.gridProps.onDetailExpandChange && c(t.gridProps.onDetailExpandChange, {
|
|
235
|
+
...g(n),
|
|
236
|
+
detailExpand: i
|
|
238
237
|
});
|
|
239
238
|
}
|
|
240
|
-
},
|
|
239
|
+
}, nt = (e, n) => {
|
|
241
240
|
var r;
|
|
242
|
-
const o =
|
|
241
|
+
const o = Qt(
|
|
243
242
|
typeof t.gridProps.groupable == "object" ? t.gridProps.groupable.expandable !== !1 : t.gridProps.groupable
|
|
244
243
|
);
|
|
245
244
|
if (o.enabled) {
|
|
246
|
-
const
|
|
247
|
-
t.gridProps.onGroupExpandChange &&
|
|
248
|
-
...
|
|
249
|
-
groupExpand:
|
|
245
|
+
const i = Zt((r = t.gridProps.groupExpand) != null ? r : [], e, o);
|
|
246
|
+
t.gridProps.onGroupExpandChange && c(t.gridProps.onGroupExpandChange, {
|
|
247
|
+
...g(n),
|
|
248
|
+
groupExpand: i
|
|
250
249
|
});
|
|
251
250
|
}
|
|
252
251
|
}, Se = (e, n, o) => {
|
|
253
|
-
const { allowUnsort: r, mode:
|
|
252
|
+
const { allowUnsort: r, mode: i } = In(
|
|
254
253
|
t.gridProps.sortable || !1,
|
|
255
254
|
n.sortable || !1
|
|
256
|
-
), d = (t.gridProps.sort || []).filter((
|
|
257
|
-
l !== "" && n.field &&
|
|
258
|
-
},
|
|
255
|
+
), d = (t.gridProps.sort || []).filter((u) => u.field === n.field)[0], l = o || vn[r][d && d.dir || ""], s = i === "single" ? [] : (t.gridProps.sort || []).filter((u) => u.field !== n.field);
|
|
256
|
+
l !== "" && n.field && s.push({ field: n.field, dir: l }), xe(s, e);
|
|
257
|
+
}, rt = (e) => {
|
|
259
258
|
var n;
|
|
260
259
|
if (e.field === t.gridProps.expandField || e._expand || t.gridProps.group && e.field === void 0) {
|
|
261
260
|
if (t.gridProps.onExpandChange) {
|
|
262
|
-
const o = t.gridProps.dataItemKey ?
|
|
263
|
-
type:
|
|
261
|
+
const o = t.gridProps.dataItemKey ? Oe((n = t.gridProps.detailExpand) != null ? n : {}, {
|
|
262
|
+
type: pt.SET,
|
|
264
263
|
id: e.dataItem[t.gridProps.dataItemKey],
|
|
265
264
|
payload: e.value
|
|
266
265
|
}) : t.gridProps.detailExpand;
|
|
267
|
-
|
|
268
|
-
...
|
|
266
|
+
c(t.gridProps.onExpandChange, {
|
|
267
|
+
...g(e.syntheticEvent),
|
|
269
268
|
expand: o,
|
|
270
269
|
dataItem: e.dataItem,
|
|
271
270
|
dataIndex: e.dataIndex,
|
|
@@ -274,24 +273,24 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
274
273
|
}
|
|
275
274
|
return;
|
|
276
275
|
}
|
|
277
|
-
t.gridProps.onItemChange &&
|
|
278
|
-
...
|
|
276
|
+
t.gridProps.onItemChange && c(t.gridProps.onItemChange, {
|
|
277
|
+
...g(e.syntheticEvent),
|
|
279
278
|
dataItem: e.dataItem,
|
|
280
279
|
dataIndex: e.dataIndex,
|
|
281
280
|
field: e.field,
|
|
282
281
|
value: e.value
|
|
283
282
|
});
|
|
284
|
-
},
|
|
283
|
+
}, ot = (e) => {
|
|
285
284
|
var n;
|
|
286
285
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
287
|
-
const { event: o, dataItem: r, dataIndex:
|
|
288
|
-
...
|
|
286
|
+
const { event: o, dataItem: r, dataIndex: i, columnIndex: d } = e, l = {
|
|
287
|
+
...g(o.syntheticEvent),
|
|
289
288
|
dataItem: r,
|
|
290
289
|
startColIndex: d,
|
|
291
290
|
endColIndex: d,
|
|
292
|
-
startRowIndex:
|
|
293
|
-
endRowIndex:
|
|
294
|
-
dataItems:
|
|
291
|
+
startRowIndex: i,
|
|
292
|
+
endRowIndex: i,
|
|
293
|
+
dataItems: C(),
|
|
295
294
|
altKey: !1,
|
|
296
295
|
ctrlKey: !1,
|
|
297
296
|
shiftKey: !1,
|
|
@@ -302,45 +301,45 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
302
301
|
componentId: t.id,
|
|
303
302
|
selectedField: t.gridProps.selectedField || ""
|
|
304
303
|
};
|
|
305
|
-
|
|
304
|
+
c(t.gridProps.onSelectionChange, {
|
|
306
305
|
...l,
|
|
307
|
-
select: t.gridProps.dataItemKey ?
|
|
306
|
+
select: t.gridProps.dataItemKey ? Be({
|
|
308
307
|
event: l,
|
|
309
308
|
selectedState: (n = t.gridProps.select) != null ? n : {},
|
|
310
309
|
dataItemKey: t.gridProps.dataItemKey
|
|
311
310
|
}) : {}
|
|
312
311
|
});
|
|
313
312
|
}
|
|
314
|
-
},
|
|
315
|
-
var
|
|
313
|
+
}, it = (e) => {
|
|
314
|
+
var u, m;
|
|
316
315
|
if (t.gridProps.selectedField || !h.enabled || !t.gridProps.dataItemKey)
|
|
317
316
|
return;
|
|
318
317
|
const n = {
|
|
319
|
-
dataItems:
|
|
318
|
+
dataItems: C(),
|
|
320
319
|
mode: h.mode,
|
|
321
320
|
cell: h.cell,
|
|
322
321
|
componentId: t.id,
|
|
323
322
|
selectedField: t.gridProps.selectedField,
|
|
324
|
-
...
|
|
325
|
-
}, o =
|
|
323
|
+
...g(e)
|
|
324
|
+
}, o = en({
|
|
326
325
|
event: n,
|
|
327
|
-
selectedState: (
|
|
326
|
+
selectedState: (u = t.gridProps.select) != null ? u : {},
|
|
328
327
|
dataItemKey: t.gridProps.dataItemKey
|
|
329
328
|
});
|
|
330
329
|
if (o === t.gridProps.select)
|
|
331
330
|
return;
|
|
332
|
-
const r = e.target,
|
|
333
|
-
if (l !== void 0 &&
|
|
334
|
-
const
|
|
335
|
-
t.gridProps.onSelectionChange &&
|
|
331
|
+
const r = e.target, i = Ue(r, "TD"), d = Ue(r, "TR"), l = tn(i), s = nn(d);
|
|
332
|
+
if (l !== void 0 && s !== void 0) {
|
|
333
|
+
const b = (m = fn(t.gridProps.data)) == null ? void 0 : m[s];
|
|
334
|
+
t.gridProps.onSelectionChange && c(t.gridProps.onSelectionChange, {
|
|
336
335
|
...n,
|
|
337
336
|
select: o,
|
|
338
|
-
dataItem:
|
|
339
|
-
startRowIndex:
|
|
337
|
+
dataItem: b,
|
|
338
|
+
startRowIndex: s,
|
|
340
339
|
startColIndex: l,
|
|
341
|
-
startDataItem:
|
|
342
|
-
endDataItem:
|
|
343
|
-
endRowIndex:
|
|
340
|
+
startDataItem: b,
|
|
341
|
+
endDataItem: b,
|
|
342
|
+
endRowIndex: s,
|
|
344
343
|
endColIndex: l,
|
|
345
344
|
ctrlKey: e.ctrlKey,
|
|
346
345
|
altKey: e.altKey,
|
|
@@ -349,50 +348,50 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
349
348
|
isDrag: !1
|
|
350
349
|
});
|
|
351
350
|
}
|
|
352
|
-
},
|
|
351
|
+
}, at = (e) => {
|
|
353
352
|
var n;
|
|
354
353
|
if (t.gridProps.onHeaderSelectionChange && h.enabled) {
|
|
355
|
-
const o =
|
|
356
|
-
|
|
357
|
-
select: e.syntheticEvent.target.checked ? o.reduce((r,
|
|
354
|
+
const o = C();
|
|
355
|
+
c(t.gridProps.onHeaderSelectionChange, {
|
|
356
|
+
select: e.syntheticEvent.target.checked ? o.reduce((r, i) => (t.gridProps.dataItemKey && ne(t.gridProps.dataItemKey)(i) !== void 0 && (r[ne(t.gridProps.dataItemKey)(i)] = !0), r), {}) : {},
|
|
358
357
|
field: e.field,
|
|
359
358
|
nativeEvent: e.syntheticEvent && e.syntheticEvent.nativeEvent,
|
|
360
359
|
syntheticEvent: e.syntheticEvent,
|
|
361
|
-
target:
|
|
360
|
+
target: v.current,
|
|
362
361
|
dataItems: o,
|
|
363
362
|
selectedField: (n = t.gridProps.selectedField) != null ? n : ""
|
|
364
363
|
});
|
|
365
364
|
}
|
|
366
|
-
},
|
|
367
|
-
t.gridProps.onSelectionChange && h.enabled &&
|
|
365
|
+
}, q = (e, n) => {
|
|
366
|
+
t.gridProps.onSelectionChange && h.enabled && c(t.gridProps.onSelectionChange, {
|
|
368
367
|
...e,
|
|
369
368
|
select: n
|
|
370
369
|
});
|
|
371
|
-
},
|
|
370
|
+
}, dt = (e) => {
|
|
372
371
|
var n;
|
|
373
372
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
374
|
-
const o =
|
|
373
|
+
const o = C()[e.startRowIndex], r = C()[e.endRowIndex], i = {
|
|
375
374
|
syntheticEvent: void 0,
|
|
376
|
-
target:
|
|
375
|
+
target: v.current,
|
|
377
376
|
selectedField: t.gridProps.selectedField || "",
|
|
378
377
|
componentId: t.id,
|
|
379
|
-
dataItems:
|
|
378
|
+
dataItems: C(),
|
|
380
379
|
dataItem: null,
|
|
381
380
|
startDataItem: o,
|
|
382
381
|
endDataItem: r,
|
|
383
382
|
...e
|
|
384
|
-
}, d =
|
|
385
|
-
event:
|
|
383
|
+
}, d = Be({
|
|
384
|
+
event: i,
|
|
386
385
|
selectedState: (n = t.gridProps.select) != null ? n : {},
|
|
387
386
|
// Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
|
|
388
387
|
// it does work correctly even without it
|
|
389
388
|
dataItemKey: t.gridProps.dataItemKey
|
|
390
389
|
});
|
|
391
|
-
|
|
390
|
+
q(i, d);
|
|
392
391
|
}
|
|
393
|
-
},
|
|
392
|
+
}, ct = (e) => {
|
|
394
393
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
395
|
-
const n = e.dataItems[0], o = e.dataItems[e.dataItems.length - 1], r = {},
|
|
394
|
+
const n = e.dataItems[0], o = e.dataItems[e.dataItems.length - 1], r = {}, i = {
|
|
396
395
|
...e,
|
|
397
396
|
startDataItem: n,
|
|
398
397
|
endDataItem: o,
|
|
@@ -402,89 +401,96 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
402
401
|
endColIndex: t.columnsRef.length - 1
|
|
403
402
|
};
|
|
404
403
|
e.dataItems.forEach((d) => {
|
|
405
|
-
const
|
|
406
|
-
r[
|
|
407
|
-
}),
|
|
404
|
+
const s = ne(t.gridProps.dataItemKey)(d);
|
|
405
|
+
r[s] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0;
|
|
406
|
+
}), q(i, r);
|
|
408
407
|
}
|
|
409
|
-
},
|
|
408
|
+
}, lt = (e) => {
|
|
410
409
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
411
|
-
const o = ne(t.gridProps.dataItemKey)(e.dataItem), r = 0,
|
|
412
|
-
(
|
|
413
|
-
),
|
|
410
|
+
const o = ne(t.gridProps.dataItemKey)(e.dataItem), r = 0, i = t.columnsRef.length - 1, d = e.dataItems.findIndex(
|
|
411
|
+
(b) => b[t.gridProps.dataItemKey] === e.dataItem[t.gridProps.dataItemKey]
|
|
412
|
+
), u = {
|
|
414
413
|
...e,
|
|
415
414
|
startDataItem: d,
|
|
416
415
|
endDataItem: d,
|
|
417
416
|
startRowIndex: d,
|
|
418
417
|
endRowIndex: d,
|
|
419
418
|
startColIndex: r,
|
|
420
|
-
endColIndex:
|
|
419
|
+
endColIndex: i
|
|
421
420
|
}, m = e.mode === "multiple" ? t.gridProps.select || {} : {};
|
|
422
|
-
m[o] === !0 || Array.isArray(m[o]) && m[o].length === t.columnsRef.length ? delete m[o] : m[o] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0,
|
|
421
|
+
m[o] === !0 || Array.isArray(m[o]) && m[o].length === t.columnsRef.length ? delete m[o] : m[o] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0, q(u, m);
|
|
423
422
|
}
|
|
424
|
-
},
|
|
425
|
-
t.gridProps.onSelectionChange && h.enabled &&
|
|
426
|
-
},
|
|
423
|
+
}, st = (e) => {
|
|
424
|
+
t.gridProps.onSelectionChange && h.enabled && q(e, {});
|
|
425
|
+
}, F = (e, n, o, r, i) => {
|
|
426
|
+
ft();
|
|
427
427
|
const d = t.gridProps.onDataStateChange;
|
|
428
428
|
if (e) {
|
|
429
|
-
const l = { ...
|
|
430
|
-
|
|
431
|
-
} else d &&
|
|
432
|
-
...
|
|
433
|
-
targetEvent:
|
|
429
|
+
const l = { ...g(r), ...n, targetEvent: i };
|
|
430
|
+
c(e, l);
|
|
431
|
+
} else d && c(d, {
|
|
432
|
+
...g(r),
|
|
433
|
+
targetEvent: i || {},
|
|
434
434
|
dataState: {
|
|
435
|
-
...
|
|
435
|
+
...yt(),
|
|
436
436
|
...o
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
},
|
|
440
|
-
|
|
439
|
+
}, X = (e, n, o) => {
|
|
440
|
+
var r;
|
|
441
|
+
y && t.gridProps.pageable && ((r = f.current) == null || r.reset()), F(
|
|
441
442
|
t.gridProps.onPageChange,
|
|
442
443
|
{ page: e },
|
|
443
444
|
{ skip: e.skip, take: e.take },
|
|
444
445
|
n,
|
|
445
446
|
o
|
|
446
447
|
);
|
|
447
|
-
},
|
|
448
|
+
}, ut = (e, n, o) => {
|
|
449
|
+
var r;
|
|
450
|
+
t.gridProps.pageable || (r = t.gridProps.group) != null && r.length ? t.gridProps.virtualSkipRef && (t.gridProps.virtualSkipRef.current = e.skip, L()) : X(e, n, o);
|
|
451
|
+
}, gt = () => {
|
|
448
452
|
let e = t.gridProps.total || 0;
|
|
449
453
|
return Array.isArray(t.gridProps.data) ? e = e || t.gridProps.data.length : t.gridProps.data && (e = e || t.gridProps.data.total), e;
|
|
454
|
+
}, ft = () => {
|
|
455
|
+
y && t.gridProps.virtualSkipRef && (t.gridProps.virtualSkipRef.current = 0);
|
|
450
456
|
}, mt = (e) => {
|
|
451
|
-
var
|
|
452
|
-
const n = (d = (
|
|
453
|
-
o < r &&
|
|
457
|
+
var i, d;
|
|
458
|
+
const n = (d = (i = t.gridProps.take) != null ? i : t.gridProps.pageSize) != null ? d : 0, o = (t.gridProps.skip || 0) + n, r = gt();
|
|
459
|
+
o < r && X({ skip: o, take: n }, e);
|
|
454
460
|
}, Pt = (e) => {
|
|
455
|
-
var r,
|
|
456
|
-
const n = (
|
|
457
|
-
o >= 0 &&
|
|
461
|
+
var r, i;
|
|
462
|
+
const n = (i = (r = t.gridProps.take) != null ? r : t.gridProps.pageSize) != null ? i : 0, o = (t.gridProps.skip || 0) - n;
|
|
463
|
+
o >= 0 && X({ skip: o, take: n }, e);
|
|
458
464
|
}, ht = (e) => {
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
|
|
465
|
+
X({ skip: e.skip, take: e.take }, e.syntheticEvent, e.targetEvent);
|
|
466
|
+
}, xe = (e, n) => {
|
|
467
|
+
F(
|
|
462
468
|
t.gridProps.onSortChange,
|
|
463
469
|
{ sort: e },
|
|
464
|
-
{ sort: e, ...t.gridProps.
|
|
470
|
+
{ sort: e, ...y && !t.gridProps.pageable ? { skip: 0 } : {} },
|
|
465
471
|
n
|
|
466
472
|
);
|
|
467
|
-
},
|
|
468
|
-
|
|
473
|
+
}, Rt = (e, n) => {
|
|
474
|
+
F(
|
|
469
475
|
t.gridProps.onFilterChange,
|
|
470
476
|
{ filter: e },
|
|
471
477
|
{ filter: e || void 0, skip: 0 },
|
|
472
478
|
n
|
|
473
479
|
);
|
|
474
|
-
},
|
|
475
|
-
const n = t.gridProps.searchFields || t.columnsRef.map((
|
|
480
|
+
}, It = (e) => {
|
|
481
|
+
const n = t.gridProps.searchFields || t.columnsRef.map((i) => i.field) || [], o = e.nativeEvent.target.value, r = {
|
|
476
482
|
logic: "or",
|
|
477
|
-
filters: n.filter((
|
|
483
|
+
filters: n.filter((i) => i !== void 0).map((i) => {
|
|
478
484
|
var d;
|
|
479
|
-
return typeof
|
|
485
|
+
return typeof i == "string" ? { field: i, value: o, operator: "contains" } : {
|
|
480
486
|
value: o,
|
|
481
|
-
operator: (d =
|
|
482
|
-
field:
|
|
483
|
-
ignoreCase:
|
|
487
|
+
operator: (d = i.operator) != null ? d : "contains",
|
|
488
|
+
field: i.field,
|
|
489
|
+
ignoreCase: i.ignoreCase
|
|
484
490
|
};
|
|
485
491
|
})
|
|
486
492
|
};
|
|
487
|
-
|
|
493
|
+
F(
|
|
488
494
|
t.gridProps.onSearchChange,
|
|
489
495
|
{
|
|
490
496
|
search: r
|
|
@@ -494,77 +500,78 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
494
500
|
);
|
|
495
501
|
}, oe = (e, n) => {
|
|
496
502
|
const o = n.nativeEvent ? n : { nativeEvent: n.nativeEvent || n.originalEvent };
|
|
497
|
-
|
|
503
|
+
let r = {};
|
|
504
|
+
t.isVirtualScroll && e.length && !t.gridProps.pageable && (r = { take: void 0 }), e.length === 0 && t.gridProps.navigatable && (ue.current = !0), F(
|
|
498
505
|
t.gridProps.onGroupChange,
|
|
499
506
|
{ group: e },
|
|
500
|
-
{ group: e, skip: 0 },
|
|
507
|
+
{ group: e, skip: 0, ...r },
|
|
501
508
|
o
|
|
502
509
|
);
|
|
503
|
-
},
|
|
510
|
+
}, ie = (e) => {
|
|
504
511
|
if (t.gridProps.onColumnsStateChange) {
|
|
505
512
|
const n = {
|
|
506
|
-
target:
|
|
513
|
+
target: v.current,
|
|
507
514
|
columnsState: e
|
|
508
515
|
};
|
|
509
|
-
|
|
516
|
+
c(t.gridProps.onColumnsStateChange, n);
|
|
510
517
|
}
|
|
511
|
-
},
|
|
512
|
-
const { columnsRef: r, columnsState:
|
|
518
|
+
}, ae = (e, n, o) => {
|
|
519
|
+
const { columnsRef: r, columnsState: i } = t, d = r[e], l = mn(i), s = d.depth, u = (R) => {
|
|
513
520
|
do
|
|
514
|
-
|
|
515
|
-
while (
|
|
516
|
-
return
|
|
517
|
-
}, m = r.splice(e,
|
|
518
|
-
r.splice(e < n ?
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
|
|
521
|
+
R++;
|
|
522
|
+
while (R < r.length && r[R].depth > s);
|
|
523
|
+
return R;
|
|
524
|
+
}, m = r.splice(e, u(e) - e);
|
|
525
|
+
r.splice(e < n ? u(n - m.length) : n, 0, ...m), r.filter((R) => R.declarationIndex >= 0).forEach((R, U) => {
|
|
526
|
+
R.orderIndex = U;
|
|
527
|
+
const V = l.find((W) => W.id === R.id);
|
|
528
|
+
V && (V.orderIndex = U);
|
|
522
529
|
});
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
const ee =
|
|
526
|
-
if (
|
|
527
|
-
const
|
|
528
|
-
target:
|
|
530
|
+
const b = r[e].locked && r[n].locked;
|
|
531
|
+
rn(t.columnsMapRef, r, b || Z.current), on(t.columnsMapRef, r, b || Z.current), se.current && (Z.current = !1, se.current = !1);
|
|
532
|
+
const ee = j();
|
|
533
|
+
if (L(), t.gridProps.onColumnReorder) {
|
|
534
|
+
const R = {
|
|
535
|
+
target: v.current,
|
|
529
536
|
columns: ee,
|
|
530
537
|
columnId: d.id,
|
|
531
538
|
nativeEvent: o
|
|
532
539
|
};
|
|
533
|
-
|
|
540
|
+
c(t.gridProps.onColumnReorder, R);
|
|
534
541
|
}
|
|
535
|
-
|
|
536
|
-
},
|
|
542
|
+
ie(i);
|
|
543
|
+
}, G = (e, n, o) => {
|
|
537
544
|
const r = typeof t.gridProps.rowReorderable == "object" ? t.gridProps.rowReorderable.enabled : t.gridProps.rowReorderable;
|
|
538
|
-
if (o === "forbidden" || !r || !
|
|
545
|
+
if (o === "forbidden" || !r || !B.current)
|
|
539
546
|
return;
|
|
540
|
-
const
|
|
541
|
-
t.gridProps.onRowReorder &&
|
|
542
|
-
draggedDataItems: [
|
|
543
|
-
droppedDataItem:
|
|
547
|
+
const i = t.dataRef[n];
|
|
548
|
+
t.gridProps.onRowReorder && c(t.gridProps.onRowReorder, {
|
|
549
|
+
draggedDataItems: [B.current],
|
|
550
|
+
droppedDataItem: i == null ? void 0 : i.dataItem,
|
|
544
551
|
dropPosition: o,
|
|
545
552
|
nativeEvent: e.originalEvent,
|
|
546
553
|
dragEvent: e,
|
|
547
|
-
target:
|
|
548
|
-
}),
|
|
549
|
-
},
|
|
554
|
+
target: v.current
|
|
555
|
+
}), B.current = null;
|
|
556
|
+
}, vt = (e, n, o) => {
|
|
550
557
|
if (t.gridProps.group === void 0)
|
|
551
558
|
return;
|
|
552
559
|
const r = t.gridProps.group.slice();
|
|
553
560
|
r.splice(n, 0, ...r.splice(e, 1)), oe(r, o);
|
|
554
|
-
},
|
|
561
|
+
}, De = (e, n, o) => {
|
|
555
562
|
const r = t.columnsRef[e].field;
|
|
556
563
|
if (!r)
|
|
557
564
|
return;
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
},
|
|
561
|
-
const o =
|
|
562
|
-
|
|
565
|
+
const i = (t.gridProps.group || []).slice();
|
|
566
|
+
i.splice(n, 0, { field: r }), oe(i, o);
|
|
567
|
+
}, bt = (e, n) => {
|
|
568
|
+
const o = x.current.getCurrentGroupsLength;
|
|
569
|
+
De(e, o, n);
|
|
563
570
|
}, de = () => {
|
|
564
571
|
let e = 0;
|
|
565
|
-
if (!
|
|
572
|
+
if (!w.current.colGroupMain)
|
|
566
573
|
return;
|
|
567
|
-
const n =
|
|
574
|
+
const n = w.current.colGroupMain.children;
|
|
568
575
|
for (let o = 0; o < n.length; o++) {
|
|
569
576
|
const r = n[o].width;
|
|
570
577
|
if (!r) {
|
|
@@ -573,14 +580,23 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
573
580
|
}
|
|
574
581
|
e += parseFloat(r.toString());
|
|
575
582
|
}
|
|
576
|
-
e = Math.round(e),
|
|
583
|
+
e = Math.round(e), O.current && O.current.setWidth(e), N.current && N.current.setWidth(e), k.current && (k.current.style.width = e ? e + "px" : "");
|
|
584
|
+
}, ke = () => {
|
|
585
|
+
var e;
|
|
586
|
+
t.gridProps.widthRef && (t.gridProps.widthRef.current = ((e = K.current) == null ? void 0 : e.offsetWidth) || 0);
|
|
577
587
|
}, Ke = () => {
|
|
578
588
|
var e;
|
|
579
|
-
t.gridProps.
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
589
|
+
t.gridProps.containerHeightRef && (t.gridProps.containerHeightRef.current = ((e = z.current) == null ? void 0 : e.offsetHeight) || 0);
|
|
590
|
+
}, Ct = () => {
|
|
591
|
+
const e = t.gridProps.minRowHeightRef;
|
|
592
|
+
if (e && !e.current && !t.gridProps.rowHeight) {
|
|
593
|
+
const n = Pn(A.current);
|
|
594
|
+
n && (e.current = n, L());
|
|
595
|
+
}
|
|
596
|
+
}, $ = a.useCallback(
|
|
597
|
+
(e, n, o, r, i) => {
|
|
598
|
+
var u;
|
|
599
|
+
if (!Et() && !o || !e)
|
|
584
600
|
return;
|
|
585
601
|
const d = {
|
|
586
602
|
type: e,
|
|
@@ -588,18 +604,18 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
588
604
|
columns: t.columnsRef,
|
|
589
605
|
dataItemKey: t.gridProps.dataItemKey || "",
|
|
590
606
|
dataItem: r,
|
|
591
|
-
field:
|
|
607
|
+
field: i,
|
|
592
608
|
...typeof t.gridProps.clipboard != "boolean" ? t.gridProps.clipboard : {},
|
|
593
609
|
...o
|
|
594
|
-
}, l =
|
|
610
|
+
}, l = C(), s = _t({
|
|
595
611
|
event: d,
|
|
596
612
|
data: l,
|
|
597
|
-
selectedState: (
|
|
598
|
-
previousCopiedItems:
|
|
613
|
+
selectedState: (u = t.gridProps.select) != null ? u : {},
|
|
614
|
+
previousCopiedItems: He.current
|
|
599
615
|
});
|
|
600
|
-
e !== ve.paste && (
|
|
616
|
+
e !== ve.paste && (He.current = s.copiedItems), t.gridProps.onClipboard && S && c(t.gridProps.onClipboard, {
|
|
601
617
|
...d,
|
|
602
|
-
...
|
|
618
|
+
...s
|
|
603
619
|
});
|
|
604
620
|
},
|
|
605
621
|
[
|
|
@@ -609,24 +625,24 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
609
625
|
t.gridProps.clipboard,
|
|
610
626
|
t.gridProps.onClipboard
|
|
611
627
|
]
|
|
612
|
-
),
|
|
613
|
-
var
|
|
628
|
+
), Et = () => {
|
|
629
|
+
var i, d, l;
|
|
614
630
|
if (!te)
|
|
615
631
|
return !1;
|
|
616
|
-
const e =
|
|
632
|
+
const e = Bt(E()), n = e ? e.matches(".k-table-td") ? e : (i = E()) == null ? void 0 : i.body : (d = E()) == null ? void 0 : d.body, o = n.closest(".k-grid-container"), r = n && ((l = K.current) == null ? void 0 : l.contains(n));
|
|
617
633
|
return !!(n && r && o);
|
|
618
|
-
},
|
|
619
|
-
de(),
|
|
620
|
-
columns:
|
|
634
|
+
}, wt = (e, n, o, r, i, d, l) => {
|
|
635
|
+
de(), Z.current = !0, se.current = !0, t.gridProps.onColumnResize && S && c(t.gridProps.onColumnResize, {
|
|
636
|
+
columns: j(),
|
|
621
637
|
nativeEvent: r,
|
|
622
638
|
targetColumnId: l,
|
|
623
639
|
index: e,
|
|
624
640
|
newWidth: n,
|
|
625
641
|
oldWidth: o,
|
|
626
|
-
end:
|
|
627
|
-
target:
|
|
628
|
-
}),
|
|
629
|
-
},
|
|
642
|
+
end: i,
|
|
643
|
+
target: v.current
|
|
644
|
+
}), i && ie(d);
|
|
645
|
+
}, yt = () => {
|
|
630
646
|
var e;
|
|
631
647
|
return {
|
|
632
648
|
filter: t.gridProps.filter,
|
|
@@ -635,249 +651,231 @@ const In = i.createContext(void 0), Tn = (t) => {
|
|
|
635
651
|
take: (e = t.gridProps.take) != null ? e : t.gridProps.pageSize,
|
|
636
652
|
group: t.gridProps.group
|
|
637
653
|
};
|
|
638
|
-
},
|
|
654
|
+
}, g = (e) => ({
|
|
639
655
|
nativeEvent: e && e.nativeEvent,
|
|
640
656
|
syntheticEvent: e,
|
|
641
|
-
target:
|
|
642
|
-
}),
|
|
657
|
+
target: v.current
|
|
658
|
+
}), St = (e) => ({
|
|
643
659
|
...e,
|
|
644
660
|
nativeEvent: void 0,
|
|
645
661
|
syntheticEvent: void 0,
|
|
646
662
|
target: void 0,
|
|
647
663
|
targetEvent: void 0,
|
|
648
664
|
focusElement: void 0
|
|
649
|
-
}),
|
|
665
|
+
}), c = (e, n) => {
|
|
650
666
|
if (t.gridProps.isClient) {
|
|
651
667
|
e(n);
|
|
652
668
|
return;
|
|
653
669
|
}
|
|
654
|
-
e(
|
|
670
|
+
e(St(n));
|
|
655
671
|
}, xt = () => {
|
|
656
672
|
var e, n, o;
|
|
657
|
-
if (
|
|
658
|
-
|
|
659
|
-
const r = Array.from((o =
|
|
660
|
-
r.length >
|
|
661
|
-
(
|
|
662
|
-
)[0] : r.length === 1 && (
|
|
673
|
+
if (A.current && ((e = A.current) == null ? void 0 : e.getElementsByClassName("k-grid-edit-row").length) > 0) {
|
|
674
|
+
fe.current = !1, (n = document.activeElement) != null && n.closest(".k-grid-edit-row") ? ge.current = document.activeElement : ge.current = void 0;
|
|
675
|
+
const r = Array.from((o = A.current) == null ? void 0 : o.getElementsByClassName("k-grid-edit-row"));
|
|
676
|
+
r.length > Re.current.length ? Q.current = r.filter(
|
|
677
|
+
(i) => !Re.current.includes(i)
|
|
678
|
+
)[0] : r.length === 1 && (Q.current = r[0], fe.current = !0), Re.current = r;
|
|
663
679
|
}
|
|
664
|
-
},
|
|
680
|
+
}, C = () => t.dataRef.filter((e) => e.rowType === "data").map((e) => e.dataItem), E = () => {
|
|
665
681
|
var e;
|
|
666
682
|
if (te)
|
|
667
|
-
return ((e =
|
|
668
|
-
},
|
|
683
|
+
return ((e = J()) == null ? void 0 : e.ownerDocument) || document;
|
|
684
|
+
}, J = () => K.current, ce = a.useCallback(
|
|
669
685
|
(e) => {
|
|
670
|
-
var r;
|
|
671
|
-
if (!
|
|
686
|
+
var r, i;
|
|
687
|
+
if (!f.current || !((r = f.current) != null && r.container) || t.gridProps.scrollable === "none")
|
|
672
688
|
return;
|
|
673
|
-
|
|
674
|
-
const { rowIndex: n } = e, o =
|
|
675
|
-
if (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
);
|
|
680
|
-
|
|
681
|
-
const a = n < 1 ? o.querySelector("tbody > tr:nth-child(1)") : o.querySelector(`tbody > tr:nth-child(${n + 1})`);
|
|
682
|
-
a && J.current && (J.current.scrollTop = a.offsetTop);
|
|
689
|
+
M.current && M.current.disconnect();
|
|
690
|
+
const { rowIndex: n } = e, o = J();
|
|
691
|
+
if (y) {
|
|
692
|
+
const d = ((i = f.current.rowHeightService) == null ? void 0 : i.offset(n)) || 0;
|
|
693
|
+
f.current.container.scroll(0, d);
|
|
694
|
+
} else if (o) {
|
|
695
|
+
const d = n < 1 ? o.querySelector("tbody > tr:nth-child(1)") : o.querySelector(`tbody > tr:nth-child(${n + 1})`);
|
|
696
|
+
d && z.current && (z.current.scrollTop = d.offsetTop);
|
|
683
697
|
}
|
|
684
698
|
},
|
|
685
699
|
[t.gridProps.scrollable]
|
|
686
|
-
), Te = (e) => JSON.stringify(e.map((n) => ({ id: n.id, field: n.field, title: n.title, children: n.children }))),
|
|
687
|
-
|
|
688
|
-
},
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
c.current.containerHeight = Ue ? Math.min(Ve, r) : r;
|
|
694
|
-
} else
|
|
695
|
-
c.current.containerHeight = 1533915;
|
|
696
|
-
if (c.current.containerRef = J, c.current.tableBodyRef = F, c.current.table = S.current, c.current instanceof We) {
|
|
697
|
-
const { rowHeight: r = 0, detail: a, expandField: d } = t.gridProps;
|
|
698
|
-
let { detailRowHeight: l = 0 } = t.gridProps;
|
|
699
|
-
l = a && d ? l : r, t.isAllData ? (c.current.total = t.dataRef.length, c.current.rowHeightService = new ze(
|
|
700
|
-
t.dataRef.length,
|
|
701
|
-
r,
|
|
702
|
-
l,
|
|
703
|
-
t.dataRef
|
|
704
|
-
)) : c.current.rowHeightService = new ze(e, r, l);
|
|
705
|
-
const u = c.current.rowHeightService.totalHeight();
|
|
706
|
-
c.current.containerHeight = Ue ? Math.min(Ve, u) : u;
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
}, Me = i.useCallback(
|
|
700
|
+
), Te = (e) => JSON.stringify(e.map((n) => ({ id: n.id, field: n.field, title: n.title, children: n.children }))), Dt = () => Te(Ft) === Te(t.columnsRef), kt = () => {
|
|
701
|
+
p.current = window.innerWidth, Dt() || L();
|
|
702
|
+
}, Kt = () => {
|
|
703
|
+
var d;
|
|
704
|
+
const { virtualTotal: e, virtualPageSize: n, gridProps: o } = t, r = f.current, i = t.gridProps.rowHeight || ((d = o.minRowHeightRef) == null ? void 0 : d.current) || 0;
|
|
705
|
+
r && (r.fixedScroll = o.fixedScroll || !1, r.PageChange = ut, r.pageSize = n, r.scrollableVirtual = y, r.container = z.current, r.tableBody = A.current, r.scrollHeightContainer = Ae.current, r.table = k.current, (!r.rowHeightService || r.total !== e) && i && (r.total = e, r.rowHeightService = new Wt(e, i)));
|
|
706
|
+
}, Me = a.useCallback(
|
|
710
707
|
(e) => {
|
|
711
|
-
const n = { rowIndex:
|
|
708
|
+
const n = { rowIndex: he.current };
|
|
712
709
|
e.forEach((o) => {
|
|
713
710
|
o.isIntersecting || ce(n);
|
|
714
711
|
});
|
|
715
712
|
},
|
|
716
713
|
[ce]
|
|
717
|
-
),
|
|
714
|
+
), L = () => {
|
|
718
715
|
t.gridProps.forceUpdate && t.gridProps.forceUpdate();
|
|
719
|
-
},
|
|
720
|
-
return
|
|
721
|
-
|
|
716
|
+
}, Tt = (e) => e.left !== void 0 ? Ie !== "rtl" ? { left: e.left, right: e.right } : { left: e.right, right: e.left } : {}, v = a.useRef(null), f = a.useRef(void 0), w = a.useRef(void 0), x = a.useRef(void 0), D = a.useRef(void 0), T = a.useRef(void 0), Y = a.useRef(void 0), M = a.useRef(null), A = a.useRef(null), Mt = a.useRef(null), z = a.useRef(null), k = a.useRef(null), le = a.useRef(null), K = a.useRef(null), Ae = a.useRef(null), N = a.useRef(null), O = a.useRef(null), se = a.useRef(!1), ue = a.useRef(!1), Q = a.useRef(void 0), ge = a.useRef(void 0), fe = a.useRef(!1), Z = a.useRef(!0), me = a.useRef(0), Pe = a.useRef(void 0), he = a.useRef(void 0), Re = a.useRef([]), He = a.useRef([]), p = a.useRef(0), B = a.useRef(null), At = a.useRef(null), Ht = a.useRef(null), Ie = Ut(K), y = t.isVirtualScroll, Ft = a.useMemo(() => a.Children.toArray(t.gridProps.children), [t.gridProps.children]), Fe = t.gridProps.groupable === !0 || typeof t.gridProps.groupable == "object" && t.gridProps.groupable.enabled !== !1, h = re((Le = t.gridProps.selectable) != null ? Le : !!t.gridProps.selectedField), Ge = jt((ze = t.gridProps.editable) != null ? ze : !!t.gridProps.editField), Gt = p.current && Ce && p.current <= Ce.medium && t.gridProps.adaptive;
|
|
717
|
+
return a.useMemo(() => {
|
|
718
|
+
H.onConstructor({
|
|
722
719
|
navigatable: !!t.gridProps.navigatable,
|
|
723
|
-
contextStateRef:
|
|
724
|
-
navigationStateRef:
|
|
720
|
+
contextStateRef: D,
|
|
721
|
+
navigationStateRef: T,
|
|
725
722
|
idPrefix: t.id
|
|
726
|
-
});
|
|
727
|
-
}, []),
|
|
728
|
-
var
|
|
729
|
-
(
|
|
730
|
-
const e = t.isFixedVirtualScroll ? We : fn;
|
|
731
|
-
c.current = new e(p || t.gridProps.rowHeight === void 0 || t.gridProps.rowHeight === 0);
|
|
723
|
+
}), f.current = new hn();
|
|
724
|
+
}, []), a.useMemo(() => {
|
|
725
|
+
var e;
|
|
726
|
+
(e = f.current) == null || e.reset();
|
|
732
727
|
}, [
|
|
733
728
|
t.gridProps.scrollable,
|
|
734
729
|
t.gridProps.total,
|
|
735
730
|
t.gridProps.filter,
|
|
736
731
|
t.gridProps.group,
|
|
737
|
-
|
|
732
|
+
Fe,
|
|
738
733
|
t.gridProps.sort,
|
|
739
734
|
t.gridProps.rowHeight
|
|
740
|
-
]),
|
|
741
|
-
|
|
742
|
-
}), [t.gridProps.onClipboard, t.gridProps.clipboard,
|
|
743
|
-
scope:
|
|
744
|
-
contextStateRef:
|
|
745
|
-
navigationStateRef:
|
|
735
|
+
]), a.useEffect(() => (t.gridProps.clipboard && (Y.current = new qt($), Y.current.addEventListeners(E())), () => {
|
|
736
|
+
Y.current && Y.current.removeEventListeners(E());
|
|
737
|
+
}), [t.gridProps.onClipboard, t.gridProps.clipboard, $, E]), a.useEffect(() => (t.gridProps.columnVirtualization && !window.navigator.userAgent.match(cn) && (le.current && (le.current.style.display = "block"), k.current && (k.current.style.display = "block")), ke(), de(), Ne(), H.onComponentDidMount({
|
|
738
|
+
scope: K.current || void 0,
|
|
739
|
+
contextStateRef: D,
|
|
740
|
+
navigationStateRef: T
|
|
746
741
|
}), () => {
|
|
747
|
-
clearTimeout(
|
|
748
|
-
}), []),
|
|
742
|
+
clearTimeout(Pe.current);
|
|
743
|
+
}), []), a.useEffect(() => {
|
|
749
744
|
var e;
|
|
750
|
-
|
|
751
|
-
scope:
|
|
752
|
-
contextStateRef:
|
|
753
|
-
navigationStateRef:
|
|
754
|
-
focusFirst:
|
|
755
|
-
newEditableRow:
|
|
756
|
-
singleEditRow:
|
|
757
|
-
lastActiveElement:
|
|
745
|
+
ke(), de(), Ne(), y && (Ke(), Ct(), (e = f.current) == null || e.update()), xt(), H.onComponentDidUpdate({
|
|
746
|
+
scope: K.current || void 0,
|
|
747
|
+
contextStateRef: D,
|
|
748
|
+
navigationStateRef: T,
|
|
749
|
+
focusFirst: ue.current,
|
|
750
|
+
newEditableRow: Q.current,
|
|
751
|
+
singleEditRow: fe.current,
|
|
752
|
+
lastActiveElement: ge.current,
|
|
758
753
|
navigatable: t.gridProps.navigatable
|
|
759
|
-
}),
|
|
760
|
-
}),
|
|
754
|
+
}), ue.current = !1, Q.current = void 0;
|
|
755
|
+
}), a.useEffect(() => {
|
|
761
756
|
if (te) {
|
|
762
757
|
const e = {
|
|
763
758
|
rootMargin: "0px",
|
|
764
759
|
threshold: 0.9
|
|
765
760
|
};
|
|
766
|
-
|
|
761
|
+
M.current = window.IntersectionObserver && new window.IntersectionObserver(Me, e) || null;
|
|
767
762
|
}
|
|
768
|
-
}, [Me]),
|
|
763
|
+
}, [Me]), a.useEffect(() => {
|
|
769
764
|
var n;
|
|
770
765
|
let e;
|
|
771
|
-
return te && window.ResizeObserver && (e = new window.ResizeObserver(
|
|
766
|
+
return te && window.ResizeObserver && (e = new window.ResizeObserver(() => {
|
|
767
|
+
kt(), y && Ke();
|
|
768
|
+
}), e.observe((n = E()) == null ? void 0 : n.body)), () => {
|
|
772
769
|
e == null || e.disconnect();
|
|
773
770
|
};
|
|
774
|
-
}, []),
|
|
775
|
-
|
|
771
|
+
}, []), a.useImperativeHandle(
|
|
772
|
+
v,
|
|
776
773
|
() => ({
|
|
777
774
|
get element() {
|
|
778
|
-
return
|
|
775
|
+
return J();
|
|
779
776
|
},
|
|
780
777
|
props: t.gridProps,
|
|
781
778
|
get columns() {
|
|
782
|
-
return
|
|
779
|
+
return j();
|
|
783
780
|
},
|
|
784
781
|
scrollIntoView: (e) => {
|
|
785
782
|
var r;
|
|
786
|
-
if (!((r =
|
|
783
|
+
if (!((r = f.current) != null && r.container) || t.gridProps.scrollable === "none")
|
|
787
784
|
return;
|
|
788
785
|
const { rowIndex: n } = e;
|
|
789
|
-
|
|
790
|
-
const o =
|
|
791
|
-
if (
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
|
|
786
|
+
he.current = n;
|
|
787
|
+
const o = J();
|
|
788
|
+
if (M.current && o) {
|
|
789
|
+
M.current.disconnect();
|
|
790
|
+
const i = o.querySelector(`[absolute-row-index="${he.current}"]`);
|
|
791
|
+
i ? M.current.observe(i) : ce(e);
|
|
795
792
|
}
|
|
796
793
|
},
|
|
797
794
|
fitColumns: (e) => {
|
|
798
|
-
|
|
795
|
+
w.current.dblClickHandler(null, e);
|
|
799
796
|
}
|
|
800
797
|
})
|
|
801
|
-
),
|
|
802
|
-
|
|
803
|
-
}, [t.gridProps.onColumnResize, t.columnsRef]),
|
|
804
|
-
|
|
798
|
+
), a.useImperativeHandle(t.gridRef, () => v.current), a.useMemo(() => {
|
|
799
|
+
w.current = new an(wt);
|
|
800
|
+
}, [t.gridProps.onColumnResize, t.columnsRef]), a.useMemo(() => {
|
|
801
|
+
x.current = new dn(ae, vt, De);
|
|
805
802
|
}, [
|
|
806
803
|
t.gridProps.onColumnReorder,
|
|
807
804
|
t.gridProps.onGroupChange,
|
|
808
805
|
t.gridProps.group,
|
|
809
806
|
t.columnsRef,
|
|
810
807
|
t.gridProps.groupable
|
|
811
|
-
]),
|
|
812
|
-
|
|
808
|
+
]), w.current.resizable = t.gridProps.resizable || !1, w.current.columns = t.columnsRef, w.current.columnsState = Vt(t.columnsState), x.current.reorderable = t.gridProps.reorderable || !1, x.current.groupable = Fe, x.current.columns = t.columnsRef, x.current.dir = Ie, Kt(), /* @__PURE__ */ a.createElement(
|
|
809
|
+
bn.Provider,
|
|
813
810
|
{
|
|
814
811
|
value: {
|
|
815
|
-
isClient:
|
|
816
|
-
rowReorder:
|
|
817
|
-
activeDragRowDataItemRef:
|
|
818
|
-
reorderRowDragTargetRef:
|
|
819
|
-
reorderRowDropTargetRef:
|
|
820
|
-
dir:
|
|
821
|
-
getCellPositionStyle:
|
|
812
|
+
isClient: S,
|
|
813
|
+
rowReorder: G,
|
|
814
|
+
activeDragRowDataItemRef: B,
|
|
815
|
+
reorderRowDragTargetRef: At,
|
|
816
|
+
reorderRowDropTargetRef: Ht,
|
|
817
|
+
dir: Ie,
|
|
818
|
+
getCellPositionStyle: Tt,
|
|
822
819
|
dataItemKey: t.gridProps.dataItemKey,
|
|
823
820
|
columnsState: t.columnsState,
|
|
824
|
-
onColumnsStateChange:
|
|
821
|
+
onColumnsStateChange: ie,
|
|
825
822
|
groupChange: oe,
|
|
826
|
-
selectionRelease:
|
|
823
|
+
selectionRelease: dt,
|
|
827
824
|
pagerPageChange: ht,
|
|
828
|
-
onContextMenu:
|
|
829
|
-
rowClick:
|
|
830
|
-
rowDblClick:
|
|
831
|
-
cellClick:
|
|
825
|
+
onContextMenu: je,
|
|
826
|
+
rowClick: Ye,
|
|
827
|
+
rowDblClick: Qe,
|
|
828
|
+
cellClick: et,
|
|
832
829
|
headerCellClick: Se,
|
|
833
|
-
itemChange:
|
|
834
|
-
onDialogEditCancel:
|
|
835
|
-
onDialogEditSubmit:
|
|
836
|
-
sortChange:
|
|
837
|
-
filterChange:
|
|
838
|
-
searchChange:
|
|
839
|
-
onHeaderSelectionChange:
|
|
840
|
-
columnGroupChange:
|
|
841
|
-
onKeyDown:
|
|
842
|
-
onFocus:
|
|
843
|
-
scrollHandler:
|
|
844
|
-
selectionChange:
|
|
845
|
-
mobileMode:
|
|
846
|
-
adaptiveColumnMenuRef:
|
|
830
|
+
itemChange: rt,
|
|
831
|
+
onDialogEditCancel: pe,
|
|
832
|
+
onDialogEditSubmit: Ze,
|
|
833
|
+
sortChange: xe,
|
|
834
|
+
filterChange: Rt,
|
|
835
|
+
searchChange: It,
|
|
836
|
+
onHeaderSelectionChange: at,
|
|
837
|
+
columnGroupChange: bt,
|
|
838
|
+
onKeyDown: Xe,
|
|
839
|
+
onFocus: $e,
|
|
840
|
+
scrollHandler: qe,
|
|
841
|
+
selectionChange: ot,
|
|
842
|
+
mobileMode: Gt,
|
|
843
|
+
adaptiveColumnMenuRef: p.current,
|
|
847
844
|
adpativeTitle: t.gridProps.adaptiveTitle,
|
|
848
845
|
adaptive: t.gridProps.adaptive,
|
|
849
|
-
dispatchDetailExpand:
|
|
850
|
-
dispatchGroupExpand:
|
|
851
|
-
columnResizeRef:
|
|
852
|
-
dragLogicRef:
|
|
853
|
-
navigationStateRef:
|
|
854
|
-
tableElementRef:
|
|
855
|
-
tableBodyElementRef:
|
|
856
|
-
headerElementRef:
|
|
857
|
-
containerElementRef:
|
|
858
|
-
headTableElementRef:
|
|
859
|
-
elementRef:
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
846
|
+
dispatchDetailExpand: tt,
|
|
847
|
+
dispatchGroupExpand: nt,
|
|
848
|
+
columnResizeRef: w,
|
|
849
|
+
dragLogicRef: x,
|
|
850
|
+
navigationStateRef: T,
|
|
851
|
+
tableElementRef: k,
|
|
852
|
+
tableBodyElementRef: A,
|
|
853
|
+
headerElementRef: Mt,
|
|
854
|
+
containerElementRef: z,
|
|
855
|
+
headTableElementRef: le,
|
|
856
|
+
elementRef: K,
|
|
857
|
+
virtualScrollHeightContainerRef: Ae,
|
|
858
|
+
footerRef: N,
|
|
859
|
+
headerRef: O,
|
|
860
|
+
vsRef: f
|
|
863
861
|
}
|
|
864
862
|
},
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
|
|
863
|
+
/* @__PURE__ */ a.createElement(Xt.Provider, { value: D.current }, t.children),
|
|
864
|
+
/* @__PURE__ */ a.createElement(
|
|
865
|
+
Rn,
|
|
868
866
|
{
|
|
869
|
-
show:
|
|
870
|
-
dataItem:
|
|
871
|
-
field:
|
|
872
|
-
items:
|
|
873
|
-
offset:
|
|
874
|
-
onClose:
|
|
875
|
-
onSelect:
|
|
867
|
+
show: I.show && (_ == null ? void 0 : _.length),
|
|
868
|
+
dataItem: I.dataItem,
|
|
869
|
+
field: I.field,
|
|
870
|
+
items: _,
|
|
871
|
+
offset: I.offset,
|
|
872
|
+
onClose: Ee,
|
|
873
|
+
onSelect: _e
|
|
876
874
|
}
|
|
877
875
|
)
|
|
878
876
|
);
|
|
879
877
|
};
|
|
880
878
|
export {
|
|
881
|
-
|
|
882
|
-
|
|
879
|
+
An as GridClientWrapper,
|
|
880
|
+
bn as GridContext
|
|
883
881
|
};
|