@progress/kendo-react-grid 9.4.0-develop.19 → 9.4.0-develop.2

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