@progress/kendo-react-grid 10.2.0-develop.12 → 10.2.0-develop.13
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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +141 -141
- 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 +13 -13
package/GridClientWrapper.mjs
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as i from "react";
|
|
10
|
-
import { canUseDOM as
|
|
11
|
-
import { getSelectionOptions as
|
|
10
|
+
import { canUseDOM as ee, getActiveElement as Ht, useDir as Ft, setScrollbarWidth as Fe, cloneArray as Lt, getter as te, RowHeightService as Le } from "@progress/kendo-react-common";
|
|
11
|
+
import { getSelectionOptions as ne, populateClipboardData as Gt, ClipboardActionType as Re, getEditableOptions as zt, tableKeyboardNavigation as T, ClipboardService as Nt, TableKeyboardNavigationContext as Ot, editReducer as Bt, EDIT_ACTION as Ut, getDetailExpandableOptions as Vt, detailExpandReducer as Ge, getGroupExpandableOptions as Wt, groupExpandReducer as _t, DETAIL_EXPAND_ACTION as jt, getSelectedState as ze, getSelectedStateFromKeyDown as qt, closestTagName as Ne, getColumnIndex as Xt, getRowIndex as $t, updateLeft as Jt, updateRight as Yt } from "@progress/kendo-react-data-tools";
|
|
12
12
|
import { ColumnResize as Qt } from "./drag/ColumnResize.mjs";
|
|
13
13
|
import { CommonDragLogic as Zt } from "./drag/CommonDragLogic.mjs";
|
|
14
14
|
import { SAFARI_REGEX as pt } from "./constants/index.mjs";
|
|
15
|
-
import { getDefaultHeadContextMenuItems as en, getDefaultBodyContextMenuItems as tn, isRowReorderEnabled as nn, sanitizeColumns as rn, getDataAsArray as on, getFlatColumnsState as an, firefox as
|
|
16
|
-
import { VirtualScrollFixed as
|
|
15
|
+
import { getDefaultHeadContextMenuItems as en, getDefaultBodyContextMenuItems as tn, isRowReorderEnabled as nn, sanitizeColumns as rn, getDataAsArray as on, getFlatColumnsState as an, firefox as Oe, firefoxMaxHeight as Be } from "./utils/index.mjs";
|
|
16
|
+
import { VirtualScrollFixed as Ue } from "./VirtualScrollFixed.mjs";
|
|
17
17
|
import { VirtualScroll as dn } from "./VirtualScroll.mjs";
|
|
18
18
|
import { GridContextMenu as cn } from "./contextMenu/GridContextMenu.mjs";
|
|
19
|
-
import { GridContextMenuAnchorPart as
|
|
19
|
+
import { GridContextMenuAnchorPart as Ve } from "./contextMenu/enums.mjs";
|
|
20
20
|
import { normalizeSortable as ln, firstLevelSortSeqMap as sn } from "./sortCommon.mjs";
|
|
21
21
|
const un = i.createContext(void 0), yn = (t) => {
|
|
22
|
-
var
|
|
23
|
-
const w = t.gridProps.isClient, [b,
|
|
24
|
-
e.event.preventDefault(),
|
|
22
|
+
var Ae, He;
|
|
23
|
+
const w = t.gridProps.isClient, [b, Ce] = i.useState({}), We = (e) => {
|
|
24
|
+
e.event.preventDefault(), Ce({
|
|
25
25
|
...b,
|
|
26
26
|
show: !0,
|
|
27
27
|
offset: {
|
|
@@ -31,31 +31,31 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
31
31
|
dataItem: e.dataItem,
|
|
32
32
|
field: e.field
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
}, m = i.useMemo(() => t.columnsRef.find((e) => e.field === b.field), [t.columnsRef, b]),
|
|
34
|
+
}, ve = () => {
|
|
35
|
+
Ce({});
|
|
36
|
+
}, m = i.useMemo(() => t.columnsRef.find((e) => e.field === b.field), [t.columnsRef, b]), Ee = i.useMemo(() => {
|
|
37
37
|
const e = t.gridProps.sortable && (m == null ? void 0 : m.sortable);
|
|
38
38
|
return en({
|
|
39
39
|
sortable: !!e,
|
|
40
|
-
selectable:
|
|
40
|
+
selectable: ne(t.gridProps.selectable).enabled,
|
|
41
41
|
clipboard: !!t.gridProps.clipboard
|
|
42
42
|
});
|
|
43
|
-
}, [m, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]),
|
|
43
|
+
}, [m, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]), we = i.useMemo(() => {
|
|
44
44
|
const e = t.gridProps.sortable && (m == null ? void 0 : m.sortable);
|
|
45
45
|
return tn({
|
|
46
46
|
sortable: !!e,
|
|
47
|
-
selectable:
|
|
47
|
+
selectable: ne(t.gridProps.selectable).enabled,
|
|
48
48
|
clipboard: !!t.gridProps.clipboard,
|
|
49
49
|
rowReorderable: nn(t.gridProps.rowReorderable)
|
|
50
50
|
});
|
|
51
|
-
}, [m, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]),
|
|
51
|
+
}, [m, t.gridProps.sortable, t.gridProps.selectable, t.gridProps.clipboard]), U = i.useMemo(() => {
|
|
52
52
|
const e = (m == null ? void 0 : m.contextMenu) || t.gridProps.contextMenu, n = typeof e == "function" ? e(b) : e;
|
|
53
53
|
if (n && b.offset) {
|
|
54
|
-
const o = b.dataItem ?
|
|
54
|
+
const o = b.dataItem ? Ve.body : Ve.head, r = n[o], a = b.dataItem ? we : Ee;
|
|
55
55
|
return r === !1 ? void 0 : r === !0 || r === void 0 ? a : r;
|
|
56
56
|
}
|
|
57
|
-
}, [t.gridProps.contextMenu, b,
|
|
58
|
-
var l, u, g, f, C,
|
|
57
|
+
}, [t.gridProps.contextMenu, b, we, Ee, m]), _e = (e) => {
|
|
58
|
+
var l, u, g, f, C, p, I, N, O;
|
|
59
59
|
const n = e.event.item, o = {
|
|
60
60
|
target: R.current,
|
|
61
61
|
syntheticEvent: e.event.syntheticEvent,
|
|
@@ -64,7 +64,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
64
64
|
...e
|
|
65
65
|
};
|
|
66
66
|
t.gridProps.onContextMenuItemClick && s(t.gridProps.onContextMenuItemClick, o);
|
|
67
|
-
const r =
|
|
67
|
+
const r = q(), a = {
|
|
68
68
|
selectedField: t.gridProps.selectedField || "",
|
|
69
69
|
componentId: t.id,
|
|
70
70
|
dataItems: r,
|
|
@@ -78,14 +78,14 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
78
78
|
metaKey: !1,
|
|
79
79
|
shiftKey: !1,
|
|
80
80
|
isDrag: !1,
|
|
81
|
-
...
|
|
81
|
+
...ne(t.gridProps.selectable),
|
|
82
82
|
...o
|
|
83
83
|
}, d = r.findIndex((B) => B === e.dataItem);
|
|
84
84
|
switch ((l = n.data) == null ? void 0 : l.action) {
|
|
85
85
|
case "SortCommand":
|
|
86
86
|
if (m) {
|
|
87
87
|
const B = (u = n.name) == null ? void 0 : u.toLowerCase().includes("asc"), Tt = ((g = n.name) == null ? void 0 : g.toLowerCase().includes("desc")) ? "desc" : void 0, Mt = B ? "asc" : Tt, At = n.name ? Mt : void 0;
|
|
88
|
-
|
|
88
|
+
ye(e.event.syntheticEvent, m, At);
|
|
89
89
|
}
|
|
90
90
|
break;
|
|
91
91
|
case "SelectRowCommand":
|
|
@@ -98,11 +98,11 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
98
98
|
ct(a);
|
|
99
99
|
break;
|
|
100
100
|
case "ReorderRowCommand":
|
|
101
|
-
z.current = e.dataItem, (f = n.name) != null && f.toLowerCase().includes("rowup") && d > 0 && A(e.event.syntheticEvent, d - 1, "before"), (C = n.name) != null && C.toLowerCase().includes("rowdown") && d < r.length - 1 && A(e.event.syntheticEvent, d + 1, "after"), (
|
|
101
|
+
z.current = e.dataItem, (f = n.name) != null && f.toLowerCase().includes("rowup") && d > 0 && A(e.event.syntheticEvent, d - 1, "before"), (C = n.name) != null && C.toLowerCase().includes("rowdown") && d < r.length - 1 && A(e.event.syntheticEvent, d + 1, "after"), (p = n.name) != null && p.toLowerCase().includes("rowtop") && A(e.event.syntheticEvent, 0, "before"), (I = n.name) != null && I.toLowerCase().includes("rowbottom") && A(e.event.syntheticEvent, r.length - 1, "after");
|
|
102
102
|
break;
|
|
103
103
|
case "CopySelectionCommand":
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
j(
|
|
105
|
+
Re.copy,
|
|
106
106
|
e.event.nativeEvent,
|
|
107
107
|
{
|
|
108
108
|
copyHeaders: !((N = n.name) != null && N.toLowerCase().includes("noheaders"))
|
|
@@ -112,8 +112,8 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
112
112
|
);
|
|
113
113
|
break;
|
|
114
114
|
case "PasteCommand":
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
j(
|
|
116
|
+
Re.paste,
|
|
117
117
|
e.event.nativeEvent,
|
|
118
118
|
{
|
|
119
119
|
copyHeaders: !((O = n.name) != null && O.toLowerCase().includes("noheaders"))
|
|
@@ -123,8 +123,8 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
123
123
|
);
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
},
|
|
126
|
+
ve();
|
|
127
|
+
}, V = () => {
|
|
128
128
|
const e = t.columnsRef.filter((n) => n.declarationIndex >= 0 && n.parentIndex === -1);
|
|
129
129
|
return rn(e);
|
|
130
130
|
}, je = (e, n, o) => {
|
|
@@ -138,7 +138,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
138
138
|
};
|
|
139
139
|
s(t.gridProps.onContextMenu, r);
|
|
140
140
|
}
|
|
141
|
-
t.gridProps.contextMenu &&
|
|
141
|
+
t.gridProps.contextMenu && We({
|
|
142
142
|
event: e,
|
|
143
143
|
dataItem: n,
|
|
144
144
|
field: o
|
|
@@ -146,20 +146,20 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
146
146
|
}, qe = (e) => {
|
|
147
147
|
if (e.target !== e.currentTarget)
|
|
148
148
|
return;
|
|
149
|
-
clearTimeout(
|
|
149
|
+
clearTimeout(Pe.current), c.current && (c.current.table = S.current);
|
|
150
150
|
const n = e.currentTarget.scrollLeft, o = e.currentTarget.scrollTop, r = t.gridProps.scrollable === "virtual";
|
|
151
|
-
t.gridProps.columnVirtualization && (!r || o ===
|
|
152
|
-
|
|
153
|
-
}, 0)), t.gridProps.scrollLeftRef && (t.gridProps.scrollLeftRef.current = n), G.current && G.current.setScrollLeft(n), L.current && L.current.setScrollLeft(n), c.current && o !==
|
|
151
|
+
t.gridProps.columnVirtualization && (!r || o === me.current) && (Pe.current = window.setTimeout(() => {
|
|
152
|
+
ce();
|
|
153
|
+
}, 0)), t.gridProps.scrollLeftRef && (t.gridProps.scrollLeftRef.current = n), G.current && G.current.setScrollLeft(n), L.current && L.current.setScrollLeft(n), c.current && o !== me.current && c.current.scrollHandler(e), t.gridProps.onScroll && w && s(t.gridProps.onScroll, {
|
|
154
154
|
...P(e)
|
|
155
|
-
}),
|
|
155
|
+
}), me.current = o;
|
|
156
156
|
}, Xe = (e) => {
|
|
157
157
|
T.onKeyDown(e, {
|
|
158
158
|
navigatable: t.gridProps.navigatable || !1,
|
|
159
159
|
contextStateRef: x,
|
|
160
160
|
navigationStateRef: D,
|
|
161
161
|
onNavigationAction: Je,
|
|
162
|
-
columns:
|
|
162
|
+
columns: V()
|
|
163
163
|
}), T.onGetSnapshotBeforeUpdate({
|
|
164
164
|
document: v(),
|
|
165
165
|
contextStateRef: x,
|
|
@@ -182,11 +182,11 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
182
182
|
}, Je = (e) => {
|
|
183
183
|
if (e.action === "moveToNextPage" && st(e.event), e.action === "moveToPrevPage" && ut(e.event), e.focusElement && e.action === "reorderToRight") {
|
|
184
184
|
const n = parseInt(e.focusElement.ariaColIndex, 10) - 1;
|
|
185
|
-
n < t.columnsRef.length - 1 &&
|
|
185
|
+
n < t.columnsRef.length - 1 && ae(n, n + 1, e.event);
|
|
186
186
|
}
|
|
187
187
|
if (e.focusElement && e.action === "reorderToLeft") {
|
|
188
188
|
const n = parseInt(e.focusElement.ariaColIndex, 10) - 1;
|
|
189
|
-
n > 0 &&
|
|
189
|
+
n > 0 && ae(n, n - 1, e.event);
|
|
190
190
|
}
|
|
191
191
|
if (e.action === "select" && rt(e.event), t.gridProps.onNavigationAction && w) {
|
|
192
192
|
const n = {
|
|
@@ -206,7 +206,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
206
206
|
...P(e)
|
|
207
207
|
});
|
|
208
208
|
}, Ze = (e, n, o) => {
|
|
209
|
-
if (
|
|
209
|
+
if (Me.enabled && Me.mode === "incell" && t.gridProps.dataItemKey) {
|
|
210
210
|
const r = Bt(t.gridProps.edit, {
|
|
211
211
|
type: Ut.ENTER_FIELD_EDIT,
|
|
212
212
|
payload: { id: n[t.gridProps.dataItemKey], field: o }
|
|
@@ -219,7 +219,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
219
219
|
}, pe = (e, n) => {
|
|
220
220
|
var r;
|
|
221
221
|
if (Vt(t.detailExpandable).enabled) {
|
|
222
|
-
const a =
|
|
222
|
+
const a = Ge((r = t.gridProps.detailExpand) != null ? r : {}, e);
|
|
223
223
|
t.gridProps.onDetailExpandChange && s(t.gridProps.onDetailExpandChange, {
|
|
224
224
|
...P(n),
|
|
225
225
|
detailExpand: a
|
|
@@ -237,17 +237,17 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
237
237
|
groupExpand: a
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, ye = (e, n, o) => {
|
|
241
241
|
const { allowUnsort: r, mode: a } = ln(
|
|
242
242
|
t.gridProps.sortable || !1,
|
|
243
243
|
n.sortable || !1
|
|
244
244
|
), d = (t.gridProps.sort || []).filter((g) => g.field === n.field)[0], l = o || sn[r][d && d.dir || ""], u = a === "single" ? [] : (t.gridProps.sort || []).filter((g) => g.field !== n.field);
|
|
245
|
-
l !== "" && n.field && u.push({ field: n.field, dir: l }),
|
|
245
|
+
l !== "" && n.field && u.push({ field: n.field, dir: l }), xe(u, e);
|
|
246
246
|
}, tt = (e) => {
|
|
247
247
|
var n;
|
|
248
248
|
if (e.field === t.gridProps.expandField || e._expand || t.gridProps.group && e.field === void 0) {
|
|
249
249
|
if (t.gridProps.onExpandChange) {
|
|
250
|
-
const o = t.gridProps.dataItemKey ?
|
|
250
|
+
const o = t.gridProps.dataItemKey ? Ge((n = t.gridProps.detailExpand) != null ? n : {}, {
|
|
251
251
|
type: jt.SET,
|
|
252
252
|
id: e.dataItem[t.gridProps.dataItemKey],
|
|
253
253
|
payload: e.value
|
|
@@ -292,7 +292,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
292
292
|
};
|
|
293
293
|
s(t.gridProps.onSelectionChange, {
|
|
294
294
|
...l,
|
|
295
|
-
select: t.gridProps.dataItemKey ?
|
|
295
|
+
select: t.gridProps.dataItemKey ? ze({
|
|
296
296
|
event: l,
|
|
297
297
|
selectedState: (n = t.gridProps.select) != null ? n : {},
|
|
298
298
|
dataItemKey: t.gridProps.dataItemKey
|
|
@@ -317,7 +317,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
317
317
|
});
|
|
318
318
|
if (o === t.gridProps.select)
|
|
319
319
|
return;
|
|
320
|
-
const r = e.target, a =
|
|
320
|
+
const r = e.target, a = Ne(r, "TD"), d = Ne(r, "TR"), l = Xt(a), u = $t(d);
|
|
321
321
|
if (l !== void 0 && u !== void 0) {
|
|
322
322
|
const C = (f = on(t.gridProps.data)) == null ? void 0 : f[u];
|
|
323
323
|
t.gridProps.onSelectionChange && s(t.gridProps.onSelectionChange, {
|
|
@@ -342,7 +342,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
342
342
|
if (t.gridProps.onHeaderSelectionChange && h.enabled) {
|
|
343
343
|
const o = H();
|
|
344
344
|
s(t.gridProps.onHeaderSelectionChange, {
|
|
345
|
-
select: e.syntheticEvent.target.checked ? o.reduce((r, a) => (t.gridProps.dataItemKey &&
|
|
345
|
+
select: e.syntheticEvent.target.checked ? o.reduce((r, a) => (t.gridProps.dataItemKey && te(t.gridProps.dataItemKey)(a) !== void 0 && (r[te(t.gridProps.dataItemKey)(a)] = !0), r), {}) : {},
|
|
346
346
|
field: e.field,
|
|
347
347
|
nativeEvent: e.syntheticEvent && e.syntheticEvent.nativeEvent,
|
|
348
348
|
syntheticEvent: e.syntheticEvent,
|
|
@@ -351,7 +351,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
351
351
|
selectedField: (n = t.gridProps.selectedField) != null ? n : ""
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
},
|
|
354
|
+
}, W = (e, n) => {
|
|
355
355
|
t.gridProps.onSelectionChange && h.enabled && s(t.gridProps.onSelectionChange, {
|
|
356
356
|
...e,
|
|
357
357
|
select: n
|
|
@@ -359,7 +359,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
359
359
|
}, at = (e) => {
|
|
360
360
|
var n;
|
|
361
361
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
362
|
-
const o =
|
|
362
|
+
const o = q()[e.startRowIndex], r = q()[e.endRowIndex], a = {
|
|
363
363
|
syntheticEvent: void 0,
|
|
364
364
|
target: R.current,
|
|
365
365
|
selectedField: t.gridProps.selectedField || "",
|
|
@@ -369,14 +369,14 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
369
369
|
startDataItem: o,
|
|
370
370
|
endDataItem: r,
|
|
371
371
|
...e
|
|
372
|
-
}, d =
|
|
372
|
+
}, d = ze({
|
|
373
373
|
event: a,
|
|
374
374
|
selectedState: (n = t.gridProps.select) != null ? n : {},
|
|
375
375
|
// Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
|
|
376
376
|
// it does work correctly even without it
|
|
377
377
|
dataItemKey: t.gridProps.dataItemKey
|
|
378
378
|
});
|
|
379
|
-
|
|
379
|
+
W(a, d);
|
|
380
380
|
}
|
|
381
381
|
}, it = (e) => {
|
|
382
382
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
@@ -390,13 +390,13 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
390
390
|
endColIndex: t.columnsRef.length - 1
|
|
391
391
|
};
|
|
392
392
|
e.dataItems.forEach((d) => {
|
|
393
|
-
const u =
|
|
393
|
+
const u = te(t.gridProps.dataItemKey)(d);
|
|
394
394
|
r[u] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0;
|
|
395
|
-
}),
|
|
395
|
+
}), W(a, r);
|
|
396
396
|
}
|
|
397
397
|
}, dt = (e) => {
|
|
398
398
|
if (t.gridProps.onSelectionChange && h.enabled) {
|
|
399
|
-
const o =
|
|
399
|
+
const o = te(t.gridProps.dataItemKey)(e.dataItem), r = 0, a = t.columnsRef.length - 1, d = e.dataItems.findIndex(
|
|
400
400
|
(C) => C[t.gridProps.dataItemKey] === e.dataItem[t.gridProps.dataItemKey]
|
|
401
401
|
), g = {
|
|
402
402
|
...e,
|
|
@@ -407,10 +407,10 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
407
407
|
startColIndex: r,
|
|
408
408
|
endColIndex: a
|
|
409
409
|
}, f = e.mode === "multiple" ? t.gridProps.select || {} : {};
|
|
410
|
-
f[o] === !0 || Array.isArray(f[o]) && f[o].length === t.columnsRef.length ? delete f[o] : f[o] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0,
|
|
410
|
+
f[o] === !0 || Array.isArray(f[o]) && f[o].length === t.columnsRef.length ? delete f[o] : f[o] = e.cell ? [...Array(t.columnsRef.length).keys()] : !0, W(g, f);
|
|
411
411
|
}
|
|
412
412
|
}, ct = (e) => {
|
|
413
|
-
t.gridProps.onSelectionChange && h.enabled &&
|
|
413
|
+
t.gridProps.onSelectionChange && h.enabled && W(e, {});
|
|
414
414
|
}, M = (e, n, o, r, a) => {
|
|
415
415
|
const d = t.gridProps.onDataStateChange;
|
|
416
416
|
if (e) {
|
|
@@ -424,7 +424,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
424
424
|
...o
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
},
|
|
427
|
+
}, _ = (e, n, o) => {
|
|
428
428
|
M(
|
|
429
429
|
t.gridProps.onPageChange,
|
|
430
430
|
{ page: e },
|
|
@@ -438,14 +438,14 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
438
438
|
}, st = (e) => {
|
|
439
439
|
var a, d;
|
|
440
440
|
const n = (d = (a = t.gridProps.take) != null ? a : t.gridProps.pageSize) != null ? d : 0, o = (t.gridProps.skip || 0) + n, r = lt();
|
|
441
|
-
o < r &&
|
|
441
|
+
o < r && _({ skip: o, take: n }, e);
|
|
442
442
|
}, ut = (e) => {
|
|
443
443
|
var r, a;
|
|
444
444
|
const n = (a = (r = t.gridProps.take) != null ? r : t.gridProps.pageSize) != null ? a : 0, o = (t.gridProps.skip || 0) - n;
|
|
445
|
-
o >= 0 &&
|
|
445
|
+
o >= 0 && _({ skip: o, take: n }, e);
|
|
446
446
|
}, gt = (e) => {
|
|
447
|
-
|
|
448
|
-
},
|
|
447
|
+
_({ skip: e.skip, take: e.take }, e.syntheticEvent, e.targetEvent);
|
|
448
|
+
}, xe = (e, n) => {
|
|
449
449
|
M(
|
|
450
450
|
t.gridProps.onSortChange,
|
|
451
451
|
{ sort: e },
|
|
@@ -480,15 +480,15 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
480
480
|
{},
|
|
481
481
|
e.syntheticEvent
|
|
482
482
|
);
|
|
483
|
-
},
|
|
483
|
+
}, re = (e, n) => {
|
|
484
484
|
const o = n.nativeEvent ? n : { nativeEvent: n.nativeEvent || n.originalEvent };
|
|
485
|
-
e.length === 0 && t.gridProps.navigatable && (
|
|
485
|
+
e.length === 0 && t.gridProps.navigatable && (ue.current = !0), M(
|
|
486
486
|
t.gridProps.onGroupChange,
|
|
487
487
|
{ group: e },
|
|
488
488
|
{ group: e, skip: 0 },
|
|
489
489
|
o
|
|
490
490
|
);
|
|
491
|
-
},
|
|
491
|
+
}, oe = (e) => {
|
|
492
492
|
if (t.gridProps.onColumnsStateChange) {
|
|
493
493
|
const n = {
|
|
494
494
|
target: R.current,
|
|
@@ -496,7 +496,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
496
496
|
};
|
|
497
497
|
s(t.gridProps.onColumnsStateChange, n);
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, ae = (e, n, o) => {
|
|
500
500
|
const { columnsRef: r, columnsState: a } = t, d = r[e], l = an(a), u = d.depth, g = (I) => {
|
|
501
501
|
do
|
|
502
502
|
I++;
|
|
@@ -509,18 +509,18 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
509
509
|
O && (O.orderIndex = N);
|
|
510
510
|
});
|
|
511
511
|
const C = r[e].locked && r[n].locked;
|
|
512
|
-
Jt(t.columnsMapRef, r, C ||
|
|
513
|
-
const
|
|
514
|
-
if (
|
|
512
|
+
Jt(t.columnsMapRef, r, C || Q.current), Yt(t.columnsMapRef, r, C || Q.current), se.current && (Q.current = !1, se.current = !1);
|
|
513
|
+
const p = V();
|
|
514
|
+
if (ce(), t.gridProps.onColumnReorder) {
|
|
515
515
|
const I = {
|
|
516
516
|
target: R.current,
|
|
517
|
-
columns:
|
|
517
|
+
columns: p,
|
|
518
518
|
columnId: d.id,
|
|
519
519
|
nativeEvent: o
|
|
520
520
|
};
|
|
521
521
|
s(t.gridProps.onColumnReorder, I);
|
|
522
522
|
}
|
|
523
|
-
|
|
523
|
+
oe(a);
|
|
524
524
|
}, A = (e, n, o) => {
|
|
525
525
|
const r = typeof t.gridProps.rowReorderable == "object" ? t.gridProps.rowReorderable.enabled : t.gridProps.rowReorderable;
|
|
526
526
|
if (o === "forbidden" || !r || !z.current)
|
|
@@ -538,17 +538,17 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
538
538
|
if (t.gridProps.group === void 0)
|
|
539
539
|
return;
|
|
540
540
|
const r = t.gridProps.group.slice();
|
|
541
|
-
r.splice(n, 0, ...r.splice(e, 1)),
|
|
542
|
-
},
|
|
541
|
+
r.splice(n, 0, ...r.splice(e, 1)), re(r, o);
|
|
542
|
+
}, Se = (e, n, o) => {
|
|
543
543
|
const r = t.columnsRef[e].field;
|
|
544
544
|
if (!r)
|
|
545
545
|
return;
|
|
546
546
|
const a = (t.gridProps.group || []).slice();
|
|
547
|
-
a.splice(n, 0, { field: r }),
|
|
547
|
+
a.splice(n, 0, { field: r }), re(a, o);
|
|
548
548
|
}, ht = (e, n) => {
|
|
549
549
|
const o = y.current.getCurrentGroupsLength;
|
|
550
|
-
|
|
551
|
-
},
|
|
550
|
+
Se(e, o, n);
|
|
551
|
+
}, ie = () => {
|
|
552
552
|
let e = 0;
|
|
553
553
|
if (!E.current.colGroupMain)
|
|
554
554
|
return;
|
|
@@ -562,10 +562,10 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
562
562
|
e += parseFloat(r.toString());
|
|
563
563
|
}
|
|
564
564
|
e = Math.round(e), G.current && G.current.setWidth(e), L.current && L.current.setWidth(e), S.current && (S.current.style.width = e ? e + "px" : "");
|
|
565
|
-
},
|
|
565
|
+
}, ke = () => {
|
|
566
566
|
var e;
|
|
567
567
|
t.gridProps.widthRef && (t.gridProps.widthRef.current = ((e = k.current) == null ? void 0 : e.offsetWidth) || 0);
|
|
568
|
-
},
|
|
568
|
+
}, j = i.useCallback(
|
|
569
569
|
(e, n, o, r, a) => {
|
|
570
570
|
var g;
|
|
571
571
|
if (!It() && !o || !e)
|
|
@@ -579,13 +579,13 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
579
579
|
field: a,
|
|
580
580
|
...typeof t.gridProps.clipboard != "boolean" ? t.gridProps.clipboard : {},
|
|
581
581
|
...o
|
|
582
|
-
}, l =
|
|
582
|
+
}, l = q(), u = Gt({
|
|
583
583
|
event: d,
|
|
584
584
|
data: l,
|
|
585
585
|
selectedState: (g = t.gridProps.select) != null ? g : {},
|
|
586
|
-
previousCopiedItems:
|
|
586
|
+
previousCopiedItems: Te.current
|
|
587
587
|
});
|
|
588
|
-
e !==
|
|
588
|
+
e !== Re.paste && (Te.current = u.copiedItems), t.gridProps.onClipboard && w && s(t.gridProps.onClipboard, {
|
|
589
589
|
...d,
|
|
590
590
|
...u
|
|
591
591
|
});
|
|
@@ -599,13 +599,13 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
599
599
|
]
|
|
600
600
|
), It = () => {
|
|
601
601
|
var a, d, l;
|
|
602
|
-
if (!
|
|
602
|
+
if (!ee)
|
|
603
603
|
return !1;
|
|
604
604
|
const e = Ht(v()), n = e ? e.matches(".k-table-td") ? e : (a = v()) == null ? void 0 : a.body : (d = v()) == null ? void 0 : d.body, o = n.closest(".k-grid-container"), r = n && ((l = k.current) == null ? void 0 : l.contains(n));
|
|
605
605
|
return !!(n && r && o);
|
|
606
606
|
}, bt = (e, n, o, r, a, d, l) => {
|
|
607
|
-
|
|
608
|
-
columns:
|
|
607
|
+
ie(), Q.current = !0, se.current = !0, t.gridProps.onColumnResize && w && s(t.gridProps.onColumnResize, {
|
|
608
|
+
columns: V(),
|
|
609
609
|
nativeEvent: r,
|
|
610
610
|
targetColumnId: l,
|
|
611
611
|
index: e,
|
|
@@ -613,7 +613,7 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
613
613
|
oldWidth: o,
|
|
614
614
|
end: a,
|
|
615
615
|
target: R.current
|
|
616
|
-
}), a &&
|
|
616
|
+
}), a && oe(d);
|
|
617
617
|
}, Rt = () => {
|
|
618
618
|
var e;
|
|
619
619
|
return {
|
|
@@ -643,23 +643,23 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
643
643
|
}, vt = () => {
|
|
644
644
|
var e, n, o;
|
|
645
645
|
if (F.current && ((e = F.current) == null ? void 0 : e.getElementsByClassName("k-grid-edit-row").length) > 0) {
|
|
646
|
-
|
|
646
|
+
fe.current = !1, (n = document.activeElement) != null && n.closest(".k-grid-edit-row") ? ge.current = document.activeElement : ge.current = void 0;
|
|
647
647
|
const r = Array.from((o = F.current) == null ? void 0 : o.getElementsByClassName("k-grid-edit-row"));
|
|
648
|
-
r.length >
|
|
649
|
-
(a) => !
|
|
650
|
-
)[0] : r.length === 1 && (
|
|
648
|
+
r.length > Ie.current.length ? Y.current = r.filter(
|
|
649
|
+
(a) => !Ie.current.includes(a)
|
|
650
|
+
)[0] : r.length === 1 && (Y.current = r[0], fe.current = !0), Ie.current = r;
|
|
651
651
|
}
|
|
652
|
-
}, H = () => t.dataRef.filter((e) => e.rowType === "data").map((e) => e.dataItem),
|
|
652
|
+
}, H = () => t.dataRef.filter((e) => e.rowType === "data").map((e) => e.dataItem), q = () => (t.slicedData || t.dataRef).filter((e) => e.rowType === "data").map((e) => e.dataItem), v = () => {
|
|
653
653
|
var e;
|
|
654
|
-
if (
|
|
655
|
-
return ((e =
|
|
656
|
-
},
|
|
654
|
+
if (ee)
|
|
655
|
+
return ((e = X()) == null ? void 0 : e.ownerDocument) || document;
|
|
656
|
+
}, X = () => k.current, de = i.useCallback(
|
|
657
657
|
(e) => {
|
|
658
658
|
var r;
|
|
659
659
|
if (!c.current || !((r = c.current) != null && r.container) || t.gridProps.scrollable === "none")
|
|
660
660
|
return;
|
|
661
661
|
K.current && K.current.disconnect();
|
|
662
|
-
const { rowIndex: n } = e, o =
|
|
662
|
+
const { rowIndex: n } = e, o = X();
|
|
663
663
|
if (t.gridProps.scrollable === "virtual")
|
|
664
664
|
c.current.askedSkip = n, c.current.container.scroll(
|
|
665
665
|
0,
|
|
@@ -667,44 +667,44 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
667
667
|
);
|
|
668
668
|
else if (o) {
|
|
669
669
|
const a = n < 1 ? o.querySelector("tbody > tr:nth-child(1)") : o.querySelector(`tbody > tr:nth-child(${n + 1})`);
|
|
670
|
-
a &&
|
|
670
|
+
a && J.current && (J.current.scrollTop = a.offsetTop);
|
|
671
671
|
}
|
|
672
672
|
},
|
|
673
673
|
[t.gridProps.scrollable]
|
|
674
|
-
),
|
|
675
|
-
Et() ||
|
|
674
|
+
), De = (e) => JSON.stringify(e.map((n) => ({ id: n.id, field: n.field, title: n.title, children: n.children }))), Et = () => De(Kt) === De(t.columnsRef), wt = () => {
|
|
675
|
+
Et() || ce();
|
|
676
676
|
}, yt = (e) => {
|
|
677
677
|
var n, o;
|
|
678
678
|
if (c.current) {
|
|
679
|
-
if (c.current.fixedScroll = t.gridProps.fixedScroll || !1, c.current.PageChange =
|
|
679
|
+
if (c.current.fixedScroll = t.gridProps.fixedScroll || !1, c.current.PageChange = _, c.current.realSkip = t.gridProps.skip || 0, c.current.pageSize = (o = (n = t.gridProps.take) != null ? n : t.gridProps.pageSize) != null ? o : 0, c.current.scrollableVirtual = t.gridProps.scrollable === "virtual", c.current.total = e, c.current.propsSkip = (t.gridProps.skip || 0) + (t.gridProps.scrollable === "virtual" ? c.current.topCacheCount + (c.current.attendedSkip - (t.gridProps.skip || 0)) : 0), t.gridProps.rowHeight !== void 0 && t.gridProps.rowHeight > 0 && !Z) {
|
|
680
680
|
const r = t.gridProps.rowHeight * e;
|
|
681
|
-
c.current.containerHeight =
|
|
681
|
+
c.current.containerHeight = Oe ? Math.min(Be, r) : r;
|
|
682
682
|
} else
|
|
683
683
|
c.current.containerHeight = 1533915;
|
|
684
|
-
if (c.current.containerRef =
|
|
684
|
+
if (c.current.containerRef = J, c.current.tableBodyRef = F, c.current.table = S.current, c.current instanceof Ue) {
|
|
685
685
|
const { rowHeight: r = 0, detail: a, expandField: d } = t.gridProps;
|
|
686
686
|
let { detailRowHeight: l = 0 } = t.gridProps;
|
|
687
|
-
l = a && d ? l : r, t.isAllData ? (c.current.total = t.dataRef.length, c.current.rowHeightService = new
|
|
687
|
+
l = a && d ? l : r, t.isAllData ? (c.current.total = t.dataRef.length, c.current.rowHeightService = new Le(
|
|
688
688
|
t.dataRef.length,
|
|
689
689
|
r,
|
|
690
690
|
l,
|
|
691
691
|
t.dataRef
|
|
692
|
-
)) : c.current.rowHeightService = new
|
|
692
|
+
)) : c.current.rowHeightService = new Le(e, r, l);
|
|
693
693
|
const u = c.current.rowHeightService.totalHeight();
|
|
694
|
-
c.current.containerHeight =
|
|
694
|
+
c.current.containerHeight = Oe ? Math.min(Be, u) : u;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
},
|
|
697
|
+
}, Ke = i.useCallback(
|
|
698
698
|
(e) => {
|
|
699
|
-
const n = { rowIndex:
|
|
699
|
+
const n = { rowIndex: he.current };
|
|
700
700
|
e.forEach((o) => {
|
|
701
|
-
o.isIntersecting ||
|
|
701
|
+
o.isIntersecting || de(n);
|
|
702
702
|
});
|
|
703
703
|
},
|
|
704
|
-
[
|
|
705
|
-
),
|
|
704
|
+
[de]
|
|
705
|
+
), ce = () => {
|
|
706
706
|
t.gridProps.forceUpdate && t.gridProps.forceUpdate();
|
|
707
|
-
}, xt = (e) => e.left !== void 0 ?
|
|
707
|
+
}, xt = (e) => e.left !== void 0 ? be !== "rtl" ? { left: e.left, right: e.right } : { left: e.right, right: e.left } : {}, R = i.useRef(null), c = i.useRef(void 0), E = i.useRef(void 0), y = i.useRef(void 0), x = i.useRef(void 0), D = i.useRef(void 0), $ = i.useRef(void 0), K = i.useRef(null), F = i.useRef(null), St = i.useRef(null), J = i.useRef(null), S = i.useRef(null), le = i.useRef(null), k = i.useRef(null), L = i.useRef(null), G = i.useRef(null), se = i.useRef(!1), ue = i.useRef(!1), Y = i.useRef(void 0), ge = i.useRef(void 0), fe = i.useRef(!1), Q = i.useRef(!0), me = i.useRef(0), Pe = i.useRef(void 0), he = i.useRef(void 0), Ie = i.useRef([]), Te = i.useRef([]), z = i.useRef(null), kt = i.useRef(null), Dt = i.useRef(null), be = Ft(k), Kt = i.useMemo(() => i.Children.toArray(t.gridProps.children), [t.gridProps.children]), Z = t.gridProps.groupable === !0 || typeof t.gridProps.groupable == "object" && t.gridProps.groupable.enabled !== !1, h = ne((Ae = t.gridProps.selectable) != null ? Ae : !!t.gridProps.selectedField), Me = zt((He = t.gridProps.editable) != null ? He : !!t.gridProps.editField);
|
|
708
708
|
return i.useMemo(() => {
|
|
709
709
|
T.onConstructor({
|
|
710
710
|
navigatable: !!t.gridProps.navigatable,
|
|
@@ -715,71 +715,71 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
715
715
|
}, []), i.useMemo(() => {
|
|
716
716
|
var n;
|
|
717
717
|
(n = c.current) == null || n.reset();
|
|
718
|
-
const e = t.isFixedVirtualScroll ?
|
|
719
|
-
c.current = new e(
|
|
718
|
+
const e = t.isFixedVirtualScroll ? Ue : dn;
|
|
719
|
+
c.current = new e(Z || t.gridProps.rowHeight === void 0 || t.gridProps.rowHeight === 0);
|
|
720
720
|
}, [
|
|
721
721
|
t.gridProps.scrollable,
|
|
722
722
|
t.gridProps.total,
|
|
723
723
|
t.gridProps.filter,
|
|
724
724
|
t.gridProps.group,
|
|
725
|
-
|
|
725
|
+
Z,
|
|
726
726
|
t.gridProps.sort,
|
|
727
727
|
t.gridProps.rowHeight
|
|
728
|
-
]), i.useEffect(() => (t.gridProps.clipboard && (
|
|
729
|
-
|
|
730
|
-
}), [t.gridProps.onClipboard, t.gridProps.clipboard,
|
|
728
|
+
]), i.useEffect(() => (t.gridProps.clipboard && ($.current = new Nt(j), $.current.addEventListeners(v())), () => {
|
|
729
|
+
$.current && $.current.removeEventListeners(v());
|
|
730
|
+
}), [t.gridProps.onClipboard, t.gridProps.clipboard, j, v]), i.useEffect(() => (t.gridProps.columnVirtualization && !window.navigator.userAgent.match(pt) && (le.current && (le.current.style.display = "block"), S.current && (S.current.style.display = "block")), ke(), ie(), Fe(), T.onComponentDidMount({
|
|
731
731
|
scope: k.current || void 0,
|
|
732
732
|
contextStateRef: x,
|
|
733
733
|
navigationStateRef: D
|
|
734
734
|
}), () => {
|
|
735
|
-
clearTimeout(
|
|
735
|
+
clearTimeout(Pe.current);
|
|
736
736
|
}), []), i.useEffect(() => {
|
|
737
737
|
var e;
|
|
738
|
-
|
|
738
|
+
ke(), ie(), Fe(), (e = c.current) != null && e.tableTransform && c.current.table && (c.current.table.style.transform = c.current.tableTransform, c.current.tableTransform = ""), vt(), T.onComponentDidUpdate({
|
|
739
739
|
scope: k.current || void 0,
|
|
740
740
|
contextStateRef: x,
|
|
741
741
|
navigationStateRef: D,
|
|
742
|
-
focusFirst:
|
|
743
|
-
newEditableRow:
|
|
744
|
-
singleEditRow:
|
|
745
|
-
lastActiveElement:
|
|
742
|
+
focusFirst: ue.current,
|
|
743
|
+
newEditableRow: Y.current,
|
|
744
|
+
singleEditRow: fe.current,
|
|
745
|
+
lastActiveElement: ge.current,
|
|
746
746
|
navigatable: t.gridProps.navigatable
|
|
747
|
-
}),
|
|
747
|
+
}), ue.current = !1, Y.current = void 0;
|
|
748
748
|
}), i.useEffect(() => {
|
|
749
|
-
if (
|
|
749
|
+
if (ee) {
|
|
750
750
|
const e = {
|
|
751
751
|
rootMargin: "0px",
|
|
752
752
|
threshold: 0.9
|
|
753
753
|
};
|
|
754
|
-
K.current = window.IntersectionObserver && new window.IntersectionObserver(
|
|
754
|
+
K.current = window.IntersectionObserver && new window.IntersectionObserver(Ke, e) || null;
|
|
755
755
|
}
|
|
756
|
-
}, [
|
|
756
|
+
}, [Ke]), i.useEffect(() => {
|
|
757
757
|
var n;
|
|
758
758
|
let e;
|
|
759
|
-
return
|
|
759
|
+
return ee && window.ResizeObserver && (e = new window.ResizeObserver(wt), e.observe((n = v()) == null ? void 0 : n.body)), () => {
|
|
760
760
|
e == null || e.disconnect();
|
|
761
761
|
};
|
|
762
762
|
}, []), i.useImperativeHandle(
|
|
763
763
|
R,
|
|
764
764
|
() => ({
|
|
765
765
|
get element() {
|
|
766
|
-
return
|
|
766
|
+
return X();
|
|
767
767
|
},
|
|
768
768
|
props: t.gridProps,
|
|
769
769
|
get columns() {
|
|
770
|
-
return
|
|
770
|
+
return V();
|
|
771
771
|
},
|
|
772
772
|
scrollIntoView: (e) => {
|
|
773
773
|
var r;
|
|
774
774
|
if (!((r = c.current) != null && r.container) || t.gridProps.scrollable === "none")
|
|
775
775
|
return;
|
|
776
776
|
const { rowIndex: n } = e;
|
|
777
|
-
|
|
778
|
-
const o =
|
|
777
|
+
he.current = n;
|
|
778
|
+
const o = X();
|
|
779
779
|
if (K.current && o) {
|
|
780
780
|
K.current.disconnect();
|
|
781
|
-
const a = o.querySelector(`[absolute-row-index="${
|
|
782
|
-
a ? K.current.observe(a) :
|
|
781
|
+
const a = o.querySelector(`[absolute-row-index="${he.current}"]`);
|
|
782
|
+
a ? K.current.observe(a) : de(e);
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
785
|
fitColumns: (e) => {
|
|
@@ -789,14 +789,14 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
789
789
|
), i.useImperativeHandle(t.gridRef, () => R.current), i.useMemo(() => {
|
|
790
790
|
E.current = new Qt(bt);
|
|
791
791
|
}, [t.gridProps.onColumnResize, t.columnsRef]), i.useMemo(() => {
|
|
792
|
-
y.current = new Zt(
|
|
792
|
+
y.current = new Zt(ae, Pt, Se);
|
|
793
793
|
}, [
|
|
794
794
|
t.gridProps.onColumnReorder,
|
|
795
795
|
t.gridProps.onGroupChange,
|
|
796
796
|
t.gridProps.group,
|
|
797
797
|
t.columnsRef,
|
|
798
798
|
t.gridProps.groupable
|
|
799
|
-
]), E.current.resizable = t.gridProps.resizable || !1, E.current.columns = t.columnsRef, E.current.columnsState = Lt(t.columnsState), y.current.reorderable = t.gridProps.reorderable || !1, y.current.groupable =
|
|
799
|
+
]), E.current.resizable = t.gridProps.resizable || !1, E.current.columns = t.columnsRef, E.current.columnsState = Lt(t.columnsState), y.current.reorderable = t.gridProps.reorderable || !1, y.current.groupable = Z, y.current.columns = t.columnsRef, y.current.dir = be, yt(t.total), /* @__PURE__ */ i.createElement(
|
|
800
800
|
un.Provider,
|
|
801
801
|
{
|
|
802
802
|
value: {
|
|
@@ -805,21 +805,21 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
805
805
|
activeDragRowDataItemRef: z,
|
|
806
806
|
reorderRowDragTargetRef: kt,
|
|
807
807
|
reorderRowDropTargetRef: Dt,
|
|
808
|
-
dir:
|
|
808
|
+
dir: be,
|
|
809
809
|
getCellPositionStyle: xt,
|
|
810
810
|
dataItemKey: t.gridProps.dataItemKey,
|
|
811
811
|
columnsState: t.columnsState,
|
|
812
|
-
onColumnsStateChange:
|
|
813
|
-
groupChange:
|
|
812
|
+
onColumnsStateChange: oe,
|
|
813
|
+
groupChange: re,
|
|
814
814
|
selectionRelease: at,
|
|
815
815
|
pagerPageChange: gt,
|
|
816
816
|
onContextMenu: je,
|
|
817
817
|
rowClick: Ye,
|
|
818
818
|
rowDblClick: Qe,
|
|
819
819
|
cellClick: Ze,
|
|
820
|
-
headerCellClick:
|
|
820
|
+
headerCellClick: ye,
|
|
821
821
|
itemChange: tt,
|
|
822
|
-
sortChange:
|
|
822
|
+
sortChange: xe,
|
|
823
823
|
filterChange: ft,
|
|
824
824
|
searchChange: mt,
|
|
825
825
|
onHeaderSelectionChange: ot,
|
|
@@ -836,8 +836,8 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
836
836
|
tableElementRef: S,
|
|
837
837
|
tableBodyElementRef: F,
|
|
838
838
|
headerElementRef: St,
|
|
839
|
-
containerElementRef:
|
|
840
|
-
headTableElementRef:
|
|
839
|
+
containerElementRef: J,
|
|
840
|
+
headTableElementRef: le,
|
|
841
841
|
elementRef: k,
|
|
842
842
|
footerRef: L,
|
|
843
843
|
headerRef: G,
|
|
@@ -848,12 +848,12 @@ const un = i.createContext(void 0), yn = (t) => {
|
|
|
848
848
|
/* @__PURE__ */ i.createElement(
|
|
849
849
|
cn,
|
|
850
850
|
{
|
|
851
|
-
show: b.show,
|
|
851
|
+
show: b.show && (U == null ? void 0 : U.length),
|
|
852
852
|
dataItem: b.dataItem,
|
|
853
853
|
field: b.field,
|
|
854
|
-
items:
|
|
854
|
+
items: U,
|
|
855
855
|
offset: b.offset,
|
|
856
|
-
onClose:
|
|
856
|
+
onClose: ve,
|
|
857
857
|
onSelect: _e
|
|
858
858
|
}
|
|
859
859
|
)
|