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