@progress/kendo-react-grid 9.4.0-develop.1 → 9.4.0-develop.10

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 (179) hide show
  1. package/Grid.js +1 -1
  2. package/Grid.mjs +4 -5
  3. package/GridClientContextReader.js +2 -1
  4. package/GridClientContextReader.mjs +15 -14
  5. package/GridClientWrapper.js +2 -1
  6. package/GridClientWrapper.mjs +425 -391
  7. package/GridColumn.js +1 -1
  8. package/GridColumn.mjs +4 -5
  9. package/GridComponent.js +1 -1
  10. package/GridComponent.mjs +262 -252
  11. package/GridSearchBox.js +8 -0
  12. package/GridSearchBox.mjs +35 -0
  13. package/GridState.js +2 -1
  14. package/GridState.mjs +76 -70
  15. package/GridToolbar.js +1 -1
  16. package/GridToolbar.mjs +5 -6
  17. package/GridWatermarkOverlay.js +2 -1
  18. package/GridWatermarkOverlay.mjs +2 -2
  19. package/StatusBar.js +1 -1
  20. package/StatusBar.mjs +0 -1
  21. package/VirtualScroll.js +1 -1
  22. package/VirtualScroll.mjs +0 -1
  23. package/VirtualScrollFixed.js +1 -1
  24. package/VirtualScrollFixed.mjs +9 -10
  25. package/cells/GridCell.js +1 -1
  26. package/cells/GridCell.mjs +15 -17
  27. package/cells/GridDetailCell.js +1 -1
  28. package/cells/GridDetailCell.mjs +5 -6
  29. package/cells/GridDetailHierarchyCell.js +1 -1
  30. package/cells/GridDetailHierarchyCell.mjs +4 -5
  31. package/cells/GridEditCell.js +1 -1
  32. package/cells/GridEditCell.mjs +6 -7
  33. package/cells/GridFilterCell.js +2 -1
  34. package/cells/GridGroupCell.js +1 -1
  35. package/cells/GridGroupCell.mjs +11 -12
  36. package/cells/GridHierarchyCell.js +1 -1
  37. package/cells/GridHierarchyCell.mjs +7 -8
  38. package/cells/GridRowReorderCell.js +1 -1
  39. package/cells/GridRowReorderCell.mjs +3 -4
  40. package/cells/GridSelectionCell.js +1 -1
  41. package/cells/GridSelectionCell.mjs +12 -13
  42. package/cells/client/DetailCellContainer.js +2 -1
  43. package/cells/client/DetailCellContainer.mjs +2 -2
  44. package/cells/client/GridCellContainer.js +2 -1
  45. package/cells/client/GridEditCellContainer.js +2 -1
  46. package/cells/client/GridEditCellEditor.js +2 -1
  47. package/cells/client/GridEditCellEditor.mjs +14 -14
  48. package/cells/client/GridGroupCellContainer.js +2 -1
  49. package/cells/client/GridGroupCellContainer.mjs +39 -39
  50. package/cells/client/GridGroupCellToggle.js +2 -1
  51. package/cells/client/GridGroupCellToggle.mjs +3 -3
  52. package/cells/client/GridHierarchyCellContainer.js +2 -1
  53. package/cells/client/GridHierarchyCellToggle.js +2 -1
  54. package/cells/client/GridHierarchyCellToggle.mjs +15 -15
  55. package/cells/client/GridRowReorderContainer.js +2 -1
  56. package/cells/client/GridRowReorderContainer.mjs +3 -3
  57. package/cells/client/GridSelectionCellContainer.js +2 -1
  58. package/cells/client/GridSelectionCellInput.js +2 -1
  59. package/cells/client/GridSelectionCellInput.mjs +3 -3
  60. package/codemods/index.js +8 -0
  61. package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
  62. package/columnMenu/GridColumnMenuColumnsList.js +2 -1
  63. package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
  64. package/columnMenu/GridColumnMenuFilter.js +2 -1
  65. package/columnMenu/GridColumnMenuFilterCell.js +2 -1
  66. package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
  67. package/columnMenu/GridColumnMenuFilterUI.js +2 -1
  68. package/columnMenu/GridColumnMenuGroup.js +2 -1
  69. package/columnMenu/GridColumnMenuGroup.mjs +5 -5
  70. package/columnMenu/GridColumnMenuItem.js +2 -1
  71. package/columnMenu/GridColumnMenuItem.mjs +2 -2
  72. package/columnMenu/GridColumnMenuItemContent.js +2 -1
  73. package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
  74. package/columnMenu/GridColumnMenuItemGroup.js +2 -1
  75. package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
  76. package/columnMenu/GridColumnMenuSort.js +2 -1
  77. package/columnMenu/GridColumnMenuSort.mjs +8 -8
  78. package/columnMenu/GridColumnMenuWrapper.js +2 -1
  79. package/components/GridContainerElementContainer.js +2 -1
  80. package/components/GridCustomCellClientContainer.js +2 -1
  81. package/components/GridCustomCellClientContainer.mjs +2 -2
  82. package/components/GridDragClue.js +2 -1
  83. package/components/GridDragClue.mjs +5 -5
  84. package/components/GridDraggableRowsContainer.js +2 -1
  85. package/components/GridDropClue.js +2 -1
  86. package/components/GridDropClue.mjs +5 -5
  87. package/components/GridElementContainer.js +2 -1
  88. package/components/GridElementContainer.mjs +6 -6
  89. package/components/GridLoader.js +9 -0
  90. package/components/GridLoader.mjs +22 -0
  91. package/components/PagerContainer.js +2 -1
  92. package/components/PagerContainer.mjs +4 -4
  93. package/components/VirtualScrollHeightContainer.js +2 -1
  94. package/components/VirtualScrollHeightContainer.mjs +2 -2
  95. package/components/colGroup/GridColGroup.js +2 -1
  96. package/components/colGroup/GridColGroup.mjs +5 -5
  97. package/components/icons/reorder-row-svg.js +2 -1
  98. package/components/icons/reorder-row-svg.mjs +2 -2
  99. package/components/noRecords/GridNoRecords.js +2 -1
  100. package/components/noRecords/GridNoRecords.mjs +5 -5
  101. package/components/noRecords/GridNoRecordsContainer.js +2 -1
  102. package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
  103. package/components/table/GridTable.js +2 -1
  104. package/components/table/GridTable.mjs +4 -4
  105. package/components/table/GridTableBody.js +2 -1
  106. package/components/table/GridTableBody.mjs +2 -2
  107. package/components/table/GridTableScrollable.js +2 -1
  108. package/components/table/GridTableScrollable.mjs +6 -6
  109. package/components/utils.js +1 -1
  110. package/components/utils.mjs +0 -1
  111. package/constants/index.js +1 -1
  112. package/constants/index.mjs +0 -1
  113. package/contextMenu/GridContextMenu.js +2 -1
  114. package/contextMenu/GridContextMenu.mjs +3 -3
  115. package/contextMenu/enums.js +1 -1
  116. package/contextMenu/enums.mjs +0 -1
  117. package/dist/cdn/js/kendo-react-grid.js +8 -1
  118. package/drag/ColumnDraggable.js +2 -1
  119. package/drag/ColumnDraggable.mjs +7 -7
  120. package/drag/ColumnResize.js +1 -1
  121. package/drag/ColumnResize.mjs +0 -1
  122. package/drag/CommonDragLogic.js +1 -1
  123. package/drag/CommonDragLogic.mjs +0 -1
  124. package/drag/GroupingIndicator.js +2 -1
  125. package/drag/GroupingIndicator.mjs +11 -11
  126. package/filterCommon.js +1 -1
  127. package/filterCommon.mjs +4 -5
  128. package/footer/Footer.js +2 -1
  129. package/footer/FooterCell.js +1 -1
  130. package/footer/FooterCell.mjs +3 -4
  131. package/footer/FooterRow.js +1 -1
  132. package/footer/FooterRow.mjs +6 -7
  133. package/footer/client/FooterCellContainer.js +2 -1
  134. package/footer/client/FooterCellContainer.mjs +5 -5
  135. package/header/FilterRow.js +1 -1
  136. package/header/FilterRow.mjs +41 -43
  137. package/header/GridHeaderCell.js +2 -1
  138. package/header/GridHeaderCell.mjs +4 -4
  139. package/header/GridHeaderSelectionCell.js +2 -1
  140. package/header/GroupPanel.js +2 -1
  141. package/header/Header.js +2 -1
  142. package/header/HeaderRow.js +1 -1
  143. package/header/HeaderRow.mjs +33 -35
  144. package/header/client/GridFilterCellContainer.js +2 -1
  145. package/header/client/GridFilterCellContainer.mjs +7 -7
  146. package/header/client/GridFilterCellElementContainer.js +2 -1
  147. package/header/client/GridHeaderCellContainer.js +2 -1
  148. package/header/client/GridHeaderCellElementContainer.js +2 -1
  149. package/header/client/GridHeaderCellElementContainer.mjs +10 -10
  150. package/header/client/GridHeaderRowContainer.js +2 -1
  151. package/header/client/GridHeaderRowReorderCell.js +2 -1
  152. package/header/client/GridHeaderRowReorderCell.mjs +2 -2
  153. package/header/client/HeaderCellResizer.js +2 -1
  154. package/header/client/HeaderRowDraggable.js +2 -1
  155. package/index.d.mts +60 -3
  156. package/index.d.ts +60 -3
  157. package/index.js +1 -1
  158. package/index.mjs +46 -45
  159. package/messages/index.js +1 -1
  160. package/messages/index.mjs +38 -37
  161. package/messages/messagesMap.js +1 -1
  162. package/messages/messagesMap.mjs +2 -3
  163. package/package-metadata.js +1 -1
  164. package/package-metadata.mjs +2 -3
  165. package/package.json +27 -12
  166. package/paging/GridPagerSettings.js +1 -1
  167. package/paging/GridPagerSettings.mjs +6 -7
  168. package/rows/GridDetailRow.js +1 -1
  169. package/rows/GridDetailRow.mjs +2 -3
  170. package/rows/GridRow.js +2 -1
  171. package/sortCommon.js +8 -0
  172. package/{interfaces/GridSortSettings.mjs → sortCommon.mjs} +0 -1
  173. package/utils/_clientModule.js +2 -1
  174. package/utils/_clientModule.mjs +2 -2
  175. package/utils/_serverModule.js +1 -1
  176. package/utils/_serverModule.mjs +0 -1
  177. package/utils/index.js +1 -1
  178. package/utils/index.mjs +38 -39
  179. package/interfaces/GridSortSettings.js +0 -8
@@ -6,22 +6,23 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
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";
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 De, firefoxMaxHeight as Ke } from "./utils/index.mjs";
16
- import { VirtualScrollFixed as Me } from "./VirtualScrollFixed.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";
17
17
  import { VirtualScroll as Jt } from "./VirtualScroll.mjs";
18
18
  import { GridContextMenu as Yt } from "./contextMenu/GridContextMenu.mjs";
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,
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
- }, 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);
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: G(t.gridProps.selectable).enabled,
40
+ selectable: $(t.gridProps.selectable).enabled,
40
41
  clipboard: !!t.gridProps.clipboard
41
42
  });
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);
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: G(t.gridProps.selectable).enabled,
47
+ selectable: $(t.gridProps.selectable).enabled,
47
48
  clipboard: !!t.gridProps.clipboard
48
49
  });
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;
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, b, Pe, me, f]), Ge = (e) => {
56
- var c;
56
+ }, [t.gridProps.contextMenu, h, he, Pe, m]), Ne = (e) => {
57
+ var d;
57
58
  const r = e.event.item, n = {
58
- target: I.current,
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 && s(t.gridProps.onContextMenuItemClick, n);
65
- const o = Y(), i = {
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
- ...G(t.gridProps.selectable),
80
+ ...$(t.gridProps.selectable),
80
81
  ...n
81
82
  };
82
- switch ((c = r.data) == null ? void 0 : c.action) {
83
+ switch ((d = r.data) == null ? void 0 : d.action) {
83
84
  case "SortCommand":
84
- if (f) {
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
- he(e.event.syntheticEvent, f, l);
87
+ be(e.event.syntheticEvent, m, l);
87
88
  }
88
89
  break;
89
90
  case "SelectRowCommand":
90
- Ye(i);
91
+ et(a);
91
92
  break;
92
93
  case "SelectAllRowsCommand":
93
- Je(i);
94
+ pe(a);
94
95
  break;
95
96
  case "ClearSelectionCommand":
96
- Qe(i);
97
+ tt(a);
97
98
  break;
98
99
  }
99
- fe();
100
- }, F = () => {
101
- const e = u.current.filter((r) => r.declarationIndex >= 0 && r.parentIndex === -1);
100
+ me();
101
+ }, z = () => {
102
+ const e = s.current.filter((r) => r.declarationIndex >= 0 && r.parentIndex === -1);
102
103
  return $t(e);
103
- }, Fe = (e, r, n) => {
104
- if (t.gridProps.onContextMenu && R) {
104
+ }, Oe = (e, r, n) => {
105
+ if (t.gridProps.onContextMenu && E) {
105
106
  const o = {
106
- target: I.current,
107
+ target: R.current,
107
108
  syntheticEvent: e,
108
109
  nativeEvent: e.nativeEvent,
109
110
  dataItem: r,
110
111
  field: n
111
112
  };
112
- s(t.gridProps.onContextMenu, o);
113
+ u(t.gridProps.onContextMenu, o);
113
114
  }
114
- t.gridProps.contextMenu && Ae({
115
+ t.gridProps.contextMenu && ze({
115
116
  event: e,
116
117
  dataItem: r,
117
118
  field: n
118
119
  });
119
- }, Le = (e) => {
120
+ }, Be = (e) => {
120
121
  if (e.target !== e.currentTarget)
121
122
  return;
122
- clearTimeout(de.current), d.current && (d.current.table = w.current);
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 === 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, {
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: v,
134
- navigationStateRef: x,
135
- onNavigationAction: Oe,
136
- columns: F()
137
- }), K.onGetSnapshotBeforeUpdate({
138
- document: E(),
139
- contextStateRef: v,
140
- navigationStateRef: x
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 { mode: r, cell: n, enabled: o } = G(t.gridProps.selectable), i = {
143
+ const r = {
143
144
  dataItems: O(),
144
- mode: r,
145
- cell: n,
145
+ mode: b.mode,
146
+ cell: b.cell,
146
147
  componentId: t.id,
147
148
  selectedField: t.gridProps.selectedField,
148
- ...m(e)
149
+ ...P(e)
149
150
  };
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 : {},
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 (g === t.gridProps.select)
157
+ if (l === t.gridProps.select)
157
158
  return;
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,
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
- }, Ne = (e) => {
178
- K.onFocus(e, {
180
+ }, Ve = (e) => {
181
+ M.onFocus(e, {
179
182
  navigatable: !!t.gridProps.navigatable,
180
- contextStateRef: v
183
+ contextStateRef: y
181
184
  });
182
- }, Oe = (e) => {
183
- if (e.action === "moveToNextPage" && pe(e.event), e.action === "moveToPrevPage" && et(e.event), e.focusElement && e.action === "reorderToRight") {
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 < u.current.length - 1 && $(r, r + 1, e.event);
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 && $(r, r - 1, e.event);
192
+ r > 0 && Y(r, r - 1, e.event);
190
193
  }
191
- if (t.gridProps.onNavigationAction && R) {
194
+ if (t.gridProps.onNavigationAction && E) {
192
195
  const r = {
193
196
  focusElement: e.focusElement,
194
- ...m(e.event)
197
+ ...P(e.event)
195
198
  };
196
- s(t.gridProps.onNavigationAction, r);
199
+ u(t.gridProps.onNavigationAction, r);
197
200
  }
198
- }, Ue = (e, r) => {
199
- t.gridProps.onRowClick && e.target.nodeName === "TD" && s(t.gridProps.onRowClick, {
201
+ }, _e = (e, r) => {
202
+ t.gridProps.onRowClick && e.target.nodeName === "TD" && u(t.gridProps.onRowClick, {
200
203
  dataItem: r,
201
- ...m(e)
204
+ ...P(e)
202
205
  });
203
- }, Ve = (e, r) => {
204
- t.gridProps.onRowDoubleClick && e.target.nodeName === "TD" && s(t.gridProps.onRowDoubleClick, {
206
+ }, je = (e, r) => {
207
+ t.gridProps.onRowDoubleClick && e.target.nodeName === "TD" && u(t.gridProps.onRowDoubleClick, {
205
208
  dataItem: r,
206
- ...m(e)
209
+ ...P(e)
207
210
  });
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,
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 && s(t.gridProps.onEditChange, {
217
+ t.gridProps.onEditChange && u(t.gridProps.onEditChange, {
215
218
  edit: o,
216
- ...m(e)
219
+ ...P(e)
217
220
  });
218
221
  }
219
- }, Be = (e, r) => {
222
+ }, Xe = (e, r) => {
220
223
  var o;
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
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
- }, _e = (e, r) => {
231
+ }, $e = (e, r) => {
229
232
  var o;
230
233
  const n = Nt(
231
- typeof t.gridProps.groupable == "object" && t.gridProps.groupable.enabled !== !1 ? t.gridProps.groupable.expandable : t.gridProps.groupable
234
+ typeof t.gridProps.groupable == "object" ? t.gridProps.groupable.expandable !== !1 : t.gridProps.groupable
232
235
  );
233
236
  if (n.enabled) {
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
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
- }, 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) => {
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 ? Se((r = t.gridProps.detailExpand) != null ? r : {}, {
248
- type: Ut.SET,
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
- s(t.gridProps.onExpandChange, {
253
- ...m(e.syntheticEvent),
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 && s(t.gridProps.onItemChange, {
263
- ...m(e.syntheticEvent),
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
- }, qe = (e) => {
272
+ }, Ye = (e) => {
270
273
  var r;
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),
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: c,
276
- endColIndex: c,
277
- startRowIndex: i,
278
- endRowIndex: i,
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: l,
285
- cell: P,
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
- s(t.gridProps.onSelectionChange, {
291
- ...h,
292
- select: t.gridProps.dataItemKey ? ke({
293
- event: h,
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
- }, 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
- });
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 && R && s(t.gridProps.onSelectionChange, {
317
+ t.gridProps.onSelectionChange && E && b.enabled && u(t.gridProps.onSelectionChange, {
312
318
  ...e,
313
319
  select: r
314
320
  });
315
- }, $e = (e) => {
321
+ }, Ze = (e) => {
316
322
  var r;
317
- if (t.gridProps.onSelectionChange) {
318
- const n = Y()[e.startRowIndex], o = Y()[e.endRowIndex], i = {
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: I.current,
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
- }, c = ke({
329
- event: i,
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(i, c);
341
+ L(a, d);
336
342
  }
337
- }, Je = (e) => {
338
- if (t.gridProps.onSelectionChange) {
339
- const r = e.dataItems[0], n = e.dataItems[e.dataItems.length - 1], o = {}, i = {
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: u.current.length - 1
352
+ endColIndex: s.current.length - 1
347
353
  };
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);
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
- }, 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 = {
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: c,
360
- endDataItem: c,
361
- startRowIndex: c,
362
- endRowIndex: c,
365
+ startDataItem: d,
366
+ endDataItem: d,
367
+ startRowIndex: d,
368
+ endRowIndex: d,
363
369
  startColIndex: o,
364
- endColIndex: i
370
+ endColIndex: a
365
371
  }, g = e.mode === "multiple" ? t.gridProps.select || {} : {};
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);
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
- }, Qe = (e) => {
369
- t.gridProps.onSelectionChange && L(e);
370
- }, z = (e, r, n, o, i) => {
371
- const c = t.gridProps.onDataStateChange;
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 = { ...m(o), ...r, targetEvent: i };
374
- s(e, l);
379
+ const l = { ...P(o), ...r, targetEvent: a };
380
+ u(e, l);
375
381
  } else
376
- c && s(c, {
377
- ...m(o),
378
- targetEvent: i || {},
382
+ d && u(d, {
383
+ ...P(o),
384
+ targetEvent: a || {},
379
385
  dataState: {
380
- ...lt(),
386
+ ...mt(),
381
387
  ...n
382
388
  }
383
389
  });
384
390
  }, N = (e, r, n) => {
385
- z(
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
- }, Ze = () => {
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
- }, pe = (e) => {
396
- const r = t.gridProps.take || 0, n = (t.gridProps.skip || 0) + r, o = Ze();
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
- }, et = (e) => {
399
- const r = t.gridProps.take || 0, n = (t.gridProps.skip || 0) - r;
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
- }, tt = (e) => {
409
+ }, at = (e) => {
402
410
  N({ skip: e.skip, take: e.take }, e.syntheticEvent, e.targetEvent);
403
- }, be = (e, r) => {
404
- z(
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
- }, rt = (e, r) => {
411
- z(
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
- }, X = (e, r) => {
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 && (ne.current = !0), z(
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
- }, $ = (e, r, n) => {
426
- const o = u.current[e], i = o.depth, c = (g) => {
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 < u.current.length && u.current[g].depth > i);
458
+ while (g < s.current.length && s.current[g].depth > a);
430
459
  return g;
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) {
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: I.current,
439
- columns: h,
467
+ target: R.current,
468
+ columns: I,
440
469
  columnId: o.id,
441
470
  nativeEvent: n
442
471
  };
443
- s(t.gridProps.onColumnReorder, g);
472
+ u(t.gridProps.onColumnReorder, g);
444
473
  }
445
- }, nt = (e, r, n) => {
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: i, dataRef: c } = t, l = (i || c)[r];
450
- t.gridProps.onRowReorder && s(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: I.current
485
+ target: R.current
457
486
  }), j.current = null;
458
- }, ot = (e, r, n) => {
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)), X(o, n);
463
- }, Ie = (e, r, n) => {
464
- const o = u.current[e].field;
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 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 = () => {
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 (!C.current.colGroupMain)
503
+ if (!v.current.colGroupMain)
475
504
  return;
476
- const r = C.current.colGroupMain.children;
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), 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)
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
- s(t.gridProps.onClipboard, {
517
+ u(t.gridProps.onClipboard, {
489
518
  type: e,
490
519
  nativeEvent: r,
491
- columns: u.current,
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
- }, dt = () => {
497
- var i, c, l;
525
+ }, gt = () => {
526
+ var a, d, l;
498
527
  if (!q)
499
528
  return !1;
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));
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
- }, 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(),
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: c,
535
+ targetColumnId: d,
507
536
  index: e,
508
537
  newWidth: r,
509
538
  oldWidth: n,
510
- end: i,
511
- target: I.current
539
+ end: a,
540
+ target: R.current
512
541
  });
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) => ({
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: I.current
523
- }), st = (e) => ({
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
- }), s = (e, r) => {
562
+ }), u = (e, r) => {
531
563
  if (e.name === "proxy") {
532
- e.call(void 0, st(r));
564
+ e.call(void 0, Pt(r));
533
565
  return;
534
566
  }
535
567
  e.call(void 0, r);
536
- }, ut = () => {
568
+ }, ht = () => {
537
569
  var e, r, n;
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;
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), 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 = () => {
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 = U()) == null ? void 0 : e.ownerDocument) || document;
549
- }, U = () => k.current, Z = a.useCallback(
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 (!d.current || !((o = d.current) != null && o.container) || t.gridProps.scrollable === "none")
584
+ if (!c.current || !((o = c.current) != null && o.container) || t.gridProps.scrollable === "none")
553
585
  return;
554
- S.current && S.current.disconnect();
555
- const { rowIndex: r } = e, n = U();
586
+ D.current && D.current.disconnect();
587
+ const { rowIndex: r } = e, n = B();
556
588
  if (t.gridProps.scrollable === "virtual")
557
- d.current.askedSkip = r, d.current.container.scroll(
589
+ c.current.askedSkip = r, c.current.container.scroll(
558
590
  0,
559
- Math.round(d.current.askedSkip / d.current.total * d.current.container.scrollHeight)
591
+ Math.round(c.current.askedSkip / c.current.total * c.current.container.scrollHeight)
560
592
  );
561
593
  else if (n) {
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);
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
- ), 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 = () => {
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
- }, 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;
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
- 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(
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
- n,
585
- c,
617
+ a,
618
+ f,
586
619
  t.dataRef
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;
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
- }, Ee = a.useCallback(
625
+ }, Ce = i.useCallback(
593
626
  (e) => {
594
- const r = { rowIndex: ce.current };
627
+ const r = { rowIndex: se.current };
595
628
  e.forEach((n) => {
596
- n.isIntersecting || Z(r);
629
+ n.isIntersecting || ee(r);
597
630
  });
598
631
  },
599
- [Z]
600
- ), p = () => {
632
+ [ee]
633
+ ), te = () => {
601
634
  t.gridProps.forceUpdate && t.gridProps.forceUpdate();
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({
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: v,
607
- navigationStateRef: x,
639
+ contextStateRef: y,
640
+ navigationStateRef: k,
608
641
  idPrefix: t.id
609
642
  });
610
- }, []), a.useMemo(() => {
643
+ }, []), i.useMemo(() => {
611
644
  var n;
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);
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
- ]), 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
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(de.current);
631
- }), []), a.useEffect(() => {
663
+ clearTimeout(le.current);
664
+ }), []), i.useEffect(() => {
632
665
  var e;
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,
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
- }), ne.current = !1, B.current = void 0;
643
- }), a.useEffect(() => {
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
- S.current = window.IntersectionObserver && new window.IntersectionObserver(Ee, e) || null;
682
+ D.current = window.IntersectionObserver && new window.IntersectionObserver(Ce, e) || null;
650
683
  }
651
- }, [Ee]), a.useEffect(() => {
684
+ }, [Ce]), i.useEffect(() => {
652
685
  var r;
653
686
  let e;
654
- return q && window.ResizeObserver && (e = new window.ResizeObserver(ft), e.observe((r = E()) == null ? void 0 : r.body)), () => {
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
- }, []), a.useImperativeHandle(
658
- I,
690
+ }, []), i.useImperativeHandle(
691
+ R,
659
692
  () => ({
660
693
  get element() {
661
- return U();
694
+ return B();
662
695
  },
663
696
  props: t.gridProps,
664
697
  get columns() {
665
- return F();
698
+ return z();
666
699
  },
667
700
  scrollIntoView: (e) => {
668
701
  var o;
669
- if (!((o = d.current) != null && o.container) || t.gridProps.scrollable === "none")
702
+ if (!((o = c.current) != null && o.container) || t.gridProps.scrollable === "none")
670
703
  return;
671
704
  const { rowIndex: r } = 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);
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
- C.current.dblClickHandler(null, e);
714
+ v.current.dblClickHandler(null, e);
682
715
  }
683
716
  })
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);
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
- ]), 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(
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: R,
700
- rowReorder: nt,
732
+ isClient: E,
733
+ rowReorder: ct,
701
734
  activeDragRowDataItemRef: j,
702
- reorderRowDragTargetRef: It,
703
- reorderRowDropTargetRef: Rt,
704
- dir: Ce,
705
- getCellPositionStyle: ht,
735
+ reorderRowDragTargetRef: yt,
736
+ reorderRowDropTargetRef: wt,
737
+ dir: ve,
738
+ getCellPositionStyle: Ct,
706
739
  dataItemKey: t.gridProps.dataItemKey,
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,
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: 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
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__ */ a.createElement(Tt.Provider, { value: v.current }, t.children),
742
- /* @__PURE__ */ a.createElement(
775
+ /* @__PURE__ */ i.createElement(Tt.Provider, { value: y.current }, t.children),
776
+ /* @__PURE__ */ i.createElement(
743
777
  Yt,
744
778
  {
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
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
  );