@progress/kendo-react-grid 9.4.0-develop.6 → 9.4.0-develop.8

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 (171) 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/GridColumn.js +1 -1
  7. package/GridColumn.mjs +4 -5
  8. package/GridComponent.js +1 -1
  9. package/GridComponent.mjs +120 -119
  10. package/GridState.js +2 -1
  11. package/GridToolbar.js +1 -1
  12. package/GridToolbar.mjs +5 -6
  13. package/GridWatermarkOverlay.js +2 -1
  14. package/GridWatermarkOverlay.mjs +2 -2
  15. package/StatusBar.js +1 -1
  16. package/StatusBar.mjs +0 -1
  17. package/VirtualScroll.js +1 -1
  18. package/VirtualScroll.mjs +0 -1
  19. package/VirtualScrollFixed.js +1 -1
  20. package/VirtualScrollFixed.mjs +9 -10
  21. package/cells/GridCell.js +1 -1
  22. package/cells/GridCell.mjs +15 -17
  23. package/cells/GridDetailCell.js +1 -1
  24. package/cells/GridDetailCell.mjs +5 -6
  25. package/cells/GridDetailHierarchyCell.js +1 -1
  26. package/cells/GridDetailHierarchyCell.mjs +4 -5
  27. package/cells/GridEditCell.js +1 -1
  28. package/cells/GridEditCell.mjs +6 -7
  29. package/cells/GridFilterCell.js +2 -1
  30. package/cells/GridGroupCell.js +1 -1
  31. package/cells/GridGroupCell.mjs +11 -12
  32. package/cells/GridHierarchyCell.js +1 -1
  33. package/cells/GridHierarchyCell.mjs +7 -8
  34. package/cells/GridRowReorderCell.js +1 -1
  35. package/cells/GridRowReorderCell.mjs +3 -4
  36. package/cells/GridSelectionCell.js +1 -1
  37. package/cells/GridSelectionCell.mjs +12 -13
  38. package/cells/client/DetailCellContainer.js +2 -1
  39. package/cells/client/DetailCellContainer.mjs +2 -2
  40. package/cells/client/GridCellContainer.js +2 -1
  41. package/cells/client/GridEditCellContainer.js +2 -1
  42. package/cells/client/GridEditCellEditor.js +2 -1
  43. package/cells/client/GridEditCellEditor.mjs +14 -14
  44. package/cells/client/GridGroupCellContainer.js +2 -1
  45. package/cells/client/GridGroupCellContainer.mjs +39 -39
  46. package/cells/client/GridGroupCellToggle.js +2 -1
  47. package/cells/client/GridGroupCellToggle.mjs +3 -3
  48. package/cells/client/GridHierarchyCellContainer.js +2 -1
  49. package/cells/client/GridHierarchyCellToggle.js +2 -1
  50. package/cells/client/GridHierarchyCellToggle.mjs +15 -15
  51. package/cells/client/GridRowReorderContainer.js +2 -1
  52. package/cells/client/GridRowReorderContainer.mjs +3 -3
  53. package/cells/client/GridSelectionCellContainer.js +2 -1
  54. package/cells/client/GridSelectionCellInput.js +2 -1
  55. package/cells/client/GridSelectionCellInput.mjs +3 -3
  56. package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
  57. package/columnMenu/GridColumnMenuColumnsList.js +2 -1
  58. package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
  59. package/columnMenu/GridColumnMenuFilter.js +2 -1
  60. package/columnMenu/GridColumnMenuFilterCell.js +2 -1
  61. package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
  62. package/columnMenu/GridColumnMenuFilterUI.js +2 -1
  63. package/columnMenu/GridColumnMenuGroup.js +2 -1
  64. package/columnMenu/GridColumnMenuGroup.mjs +5 -5
  65. package/columnMenu/GridColumnMenuItem.js +2 -1
  66. package/columnMenu/GridColumnMenuItem.mjs +2 -2
  67. package/columnMenu/GridColumnMenuItemContent.js +2 -1
  68. package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
  69. package/columnMenu/GridColumnMenuItemGroup.js +2 -1
  70. package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
  71. package/columnMenu/GridColumnMenuSort.js +2 -1
  72. package/columnMenu/GridColumnMenuSort.mjs +7 -7
  73. package/columnMenu/GridColumnMenuWrapper.js +2 -1
  74. package/components/GridContainerElementContainer.js +2 -1
  75. package/components/GridCustomCellClientContainer.js +2 -1
  76. package/components/GridCustomCellClientContainer.mjs +2 -2
  77. package/components/GridDragClue.js +2 -1
  78. package/components/GridDragClue.mjs +5 -5
  79. package/components/GridDraggableRowsContainer.js +2 -1
  80. package/components/GridDropClue.js +2 -1
  81. package/components/GridDropClue.mjs +5 -5
  82. package/components/GridElementContainer.js +2 -1
  83. package/components/GridElementContainer.mjs +6 -6
  84. package/components/PagerContainer.js +2 -1
  85. package/components/PagerContainer.mjs +4 -4
  86. package/components/VirtualScrollHeightContainer.js +2 -1
  87. package/components/VirtualScrollHeightContainer.mjs +2 -2
  88. package/components/colGroup/GridColGroup.js +2 -1
  89. package/components/colGroup/GridColGroup.mjs +5 -5
  90. package/components/icons/reorder-row-svg.js +2 -1
  91. package/components/icons/reorder-row-svg.mjs +2 -2
  92. package/components/noRecords/GridNoRecords.js +2 -1
  93. package/components/noRecords/GridNoRecords.mjs +5 -5
  94. package/components/noRecords/GridNoRecordsContainer.js +2 -1
  95. package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
  96. package/components/table/GridTable.js +2 -1
  97. package/components/table/GridTable.mjs +4 -4
  98. package/components/table/GridTableBody.js +2 -1
  99. package/components/table/GridTableBody.mjs +2 -2
  100. package/components/table/GridTableScrollable.js +2 -1
  101. package/components/table/GridTableScrollable.mjs +6 -6
  102. package/components/utils.js +1 -1
  103. package/components/utils.mjs +0 -1
  104. package/constants/index.js +1 -1
  105. package/constants/index.mjs +0 -1
  106. package/contextMenu/GridContextMenu.js +2 -1
  107. package/contextMenu/GridContextMenu.mjs +3 -3
  108. package/contextMenu/enums.js +1 -1
  109. package/contextMenu/enums.mjs +0 -1
  110. package/dist/cdn/js/kendo-react-grid.js +1 -1
  111. package/drag/ColumnDraggable.js +2 -1
  112. package/drag/ColumnDraggable.mjs +7 -7
  113. package/drag/ColumnResize.js +1 -1
  114. package/drag/ColumnResize.mjs +0 -1
  115. package/drag/CommonDragLogic.js +1 -1
  116. package/drag/CommonDragLogic.mjs +0 -1
  117. package/drag/GroupingIndicator.js +2 -1
  118. package/drag/GroupingIndicator.mjs +12 -12
  119. package/filterCommon.js +1 -1
  120. package/filterCommon.mjs +4 -5
  121. package/footer/Footer.js +2 -1
  122. package/footer/FooterCell.js +1 -1
  123. package/footer/FooterCell.mjs +3 -4
  124. package/footer/FooterRow.js +1 -1
  125. package/footer/FooterRow.mjs +6 -7
  126. package/footer/client/FooterCellContainer.js +2 -1
  127. package/footer/client/FooterCellContainer.mjs +5 -5
  128. package/header/FilterRow.js +1 -1
  129. package/header/FilterRow.mjs +41 -43
  130. package/header/GridHeaderCell.js +2 -1
  131. package/header/GridHeaderCell.mjs +4 -4
  132. package/header/GridHeaderSelectionCell.js +2 -1
  133. package/header/GroupPanel.js +2 -1
  134. package/header/Header.js +2 -1
  135. package/header/HeaderRow.js +1 -1
  136. package/header/HeaderRow.mjs +33 -35
  137. package/header/client/GridFilterCellContainer.js +2 -1
  138. package/header/client/GridFilterCellContainer.mjs +7 -7
  139. package/header/client/GridFilterCellElementContainer.js +2 -1
  140. package/header/client/GridHeaderCellContainer.js +2 -1
  141. package/header/client/GridHeaderCellElementContainer.js +2 -1
  142. package/header/client/GridHeaderCellElementContainer.mjs +10 -10
  143. package/header/client/GridHeaderRowContainer.js +2 -1
  144. package/header/client/GridHeaderRowReorderCell.js +2 -1
  145. package/header/client/GridHeaderRowReorderCell.mjs +2 -2
  146. package/header/client/HeaderCellResizer.js +2 -1
  147. package/header/client/HeaderRowDraggable.js +2 -1
  148. package/index.d.mts +6 -0
  149. package/index.d.ts +6 -0
  150. package/index.js +1 -1
  151. package/index.mjs +13 -14
  152. package/interfaces/GridSortSettings.js +1 -1
  153. package/interfaces/GridSortSettings.mjs +0 -1
  154. package/messages/index.js +1 -1
  155. package/messages/index.mjs +0 -1
  156. package/messages/messagesMap.js +1 -1
  157. package/messages/messagesMap.mjs +2 -3
  158. package/package-metadata.js +1 -1
  159. package/package-metadata.mjs +2 -3
  160. package/package.json +12 -12
  161. package/paging/GridPagerSettings.js +1 -1
  162. package/paging/GridPagerSettings.mjs +6 -7
  163. package/rows/GridDetailRow.js +1 -1
  164. package/rows/GridDetailRow.mjs +2 -3
  165. package/rows/GridRow.js +2 -1
  166. package/utils/_clientModule.js +2 -1
  167. package/utils/_clientModule.mjs +2 -2
  168. package/utils/_serverModule.js +1 -1
  169. package/utils/_serverModule.mjs +0 -1
  170. package/utils/index.js +1 -1
  171. package/utils/index.mjs +38 -39
package/GridComponent.mjs CHANGED
@@ -5,58 +5,57 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as l from "react";
10
- import { validatePackage as ot, uGrid as dt, getter as N, classNames as m, canUseDOM as ct } from "@progress/kendo-react-common";
11
- import { process as st } from "@progress/kendo-data-query";
12
- import { getDetailExpandableOptions as mt, getGroupExpandableOptions as ut, getSelectionOptions as ft, tableKeyboardNavigationTools as q, Pager as gt, tableKeyboardNavigationBodyAttributes as bt, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as yt } from "@progress/kendo-react-data-tools";
13
- import { GridSelectionCell as Ct } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as ht } from "./cells/GridHierarchyCell.mjs";
15
- import { GridEditCell as wt } from "./cells/GridEditCell.mjs";
16
- import { Header as Et } from "./header/Header.mjs";
17
- import { HeaderRow as It } from "./header/HeaderRow.mjs";
18
- import { FilterRow as Rt } from "./header/FilterRow.mjs";
19
- import { GroupPanel as xt } from "./header/GroupPanel.mjs";
20
- import { Footer as vt } from "./footer/Footer.mjs";
21
- import { getColumnWidth as p, isSorted as Ne, flatData as St, autoGenerateColumns as Gt, mapColumns as kt, clientColumn as Nt, getNestedValue as Fe, getColSpan as De, resolveCells as Ft, isClientReference as Dt, sanitizeColumns as Tt, readColumns as Kt } from "./utils/index.mjs";
22
- import { GridCell as Ht } from "./cells/GridCell.mjs";
9
+ import { validatePackage as dt, uGrid as ct, getter as N, classNames as m, canUseDOM as st } from "@progress/kendo-react-common";
10
+ import { process as mt } from "@progress/kendo-data-query";
11
+ import { getDetailExpandableOptions as ut, getGroupExpandableOptions as ft, getSelectionOptions as gt, tableKeyboardNavigationTools as q, Pager as bt, tableKeyboardNavigationBodyAttributes as yt, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as Ct } from "@progress/kendo-react-data-tools";
12
+ import { GridSelectionCell as ht } from "./cells/GridSelectionCell.mjs";
13
+ import { GridHierarchyCell as wt } from "./cells/GridHierarchyCell.mjs";
14
+ import { GridEditCell as Et } from "./cells/GridEditCell.mjs";
15
+ import { Header as It } from "./header/Header.mjs";
16
+ import { HeaderRow as Rt } from "./header/HeaderRow.mjs";
17
+ import { FilterRow as xt } from "./header/FilterRow.mjs";
18
+ import { GroupPanel as vt } from "./header/GroupPanel.mjs";
19
+ import { Footer as St } from "./footer/Footer.mjs";
20
+ import { getColumnWidth as p, isSorted as Ne, flatData as Gt, autoGenerateColumns as kt, mapColumns as Nt, clientColumn as Ft, getNestedValue as Fe, getColSpan as De, resolveCells as Dt, isClientReference as Tt, sanitizeColumns as Kt, readColumns as Ht } from "./utils/index.mjs";
21
+ import { GridCell as At } from "./cells/GridCell.mjs";
23
22
  import { GridGroupCell as Te } from "./cells/GridGroupCell.mjs";
24
- import { GridRow as At } from "./rows/GridRow.mjs";
25
- import { GridHeaderSelectionCell as Pt } from "./header/GridHeaderSelectionCell.mjs";
23
+ import { GridRow as Pt } from "./rows/GridRow.mjs";
24
+ import { GridHeaderSelectionCell as Bt } from "./header/GridHeaderSelectionCell.mjs";
26
25
  import { GridNoRecords as Ke } from "./components/noRecords/GridNoRecords.mjs";
27
26
  import { operators as He } from "./filterCommon.mjs";
28
- import { FooterRow as Bt } from "./footer/FooterRow.mjs";
29
- import { normalize as Vt } from "./paging/GridPagerSettings.mjs";
30
- import { packageMetadata as zt } from "./package-metadata.mjs";
31
- import { GridDetailCell as Ot } from "./cells/GridDetailCell.mjs";
32
- import { GridDetailHierarchyCell as _t } from "./cells/GridDetailHierarchyCell.mjs";
27
+ import { FooterRow as Vt } from "./footer/FooterRow.mjs";
28
+ import { normalize as zt } from "./paging/GridPagerSettings.mjs";
29
+ import { packageMetadata as Ot } from "./package-metadata.mjs";
30
+ import { GridDetailCell as _t } from "./cells/GridDetailCell.mjs";
31
+ import { GridDetailHierarchyCell as Lt } from "./cells/GridDetailHierarchyCell.mjs";
33
32
  import { GridNoRecordsContainer as Ae } from "./components/noRecords/GridNoRecordsContainer.mjs";
34
- import { GridWatermarkOverlay as Lt } from "./GridWatermarkOverlay.mjs";
33
+ import { GridWatermarkOverlay as Mt } from "./GridWatermarkOverlay.mjs";
35
34
  import { GridClientWrapper as Pe } from "./GridClientWrapper.mjs";
36
- import { GridColGroup as Mt } from "./components/colGroup/GridColGroup.mjs";
37
- import { GridTable as Wt } from "./components/table/GridTable.mjs";
35
+ import { GridColGroup as Wt } from "./components/colGroup/GridColGroup.mjs";
36
+ import { GridTable as jt } from "./components/table/GridTable.mjs";
38
37
  import { GridDropClue as Be } from "./components/GridDropClue.mjs";
39
38
  import { GridDragClue as Ve } from "./components/GridDragClue.mjs";
40
39
  import { GridTableBody as ze } from "./components/table/GridTableBody.mjs";
41
- import { PagerContainer as jt } from "./components/PagerContainer.mjs";
42
- import { GridTableScrollable as $t } from "./components/table/GridTableScrollable.mjs";
40
+ import { PagerContainer as $t } from "./components/PagerContainer.mjs";
41
+ import { GridTableScrollable as Ut } from "./components/table/GridTableScrollable.mjs";
43
42
  import { GridElementContainer as Oe } from "./components/GridElementContainer.mjs";
44
- import { GridContainerElementContainer as Ut } from "./components/GridContainerElementContainer.mjs";
45
- import { VirtualScrollHeightContainer as Jt } from "./components/VirtualScrollHeightContainer.mjs";
46
- import { LocalizationService as Qt } from "@progress/kendo-react-intl";
47
- import { gridAriaLabel as _e, messages as Xt } from "./messages/index.mjs";
48
- import { VirtualScrollFixed as W } from "./VirtualScrollFixed.mjs";
49
- import { VirtualScroll as Yt } from "./VirtualScroll.mjs";
50
- import { GridCustomCellClientContainer as Zt } from "./components/GridCustomCellClientContainer.mjs";
51
- import { GridReorderableRowsContainer as qt } from "./components/GridDraggableRowsContainer.mjs";
52
- import { GridRowReorderCell as pt } from "./cells/GridRowReorderCell.mjs";
53
- import { GridHeaderRowReorderCell as el } from "./header/client/GridHeaderRowReorderCell.mjs";
54
- const tl = l.forwardRef((e, ee) => {
43
+ import { GridContainerElementContainer as Jt } from "./components/GridContainerElementContainer.mjs";
44
+ import { VirtualScrollHeightContainer as Qt } from "./components/VirtualScrollHeightContainer.mjs";
45
+ import { LocalizationService as Xt, IntlService as Yt } from "@progress/kendo-react-intl";
46
+ import { gridAriaLabel as _e, messages as Zt } from "./messages/index.mjs";
47
+ import { VirtualScrollFixed as j } from "./VirtualScrollFixed.mjs";
48
+ import { VirtualScroll as qt } from "./VirtualScroll.mjs";
49
+ import { GridCustomCellClientContainer as pt } from "./components/GridCustomCellClientContainer.mjs";
50
+ import { GridReorderableRowsContainer as el } from "./components/GridDraggableRowsContainer.mjs";
51
+ import { GridRowReorderCell as tl } from "./cells/GridRowReorderCell.mjs";
52
+ import { GridHeaderRowReorderCell as ll } from "./header/client/GridHeaderRowReorderCell.mjs";
53
+ const al = l.forwardRef((e, ee) => {
55
54
  var we, Ee, Ie, Re, xe, ve, Se;
56
55
  const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
57
- ot(zt);
56
+ dt(Ot);
58
57
  const Le = (t, r, o, d, i, a, c) => {
59
- const f = [], g = St(
58
+ const f = [], g = Gt(
60
59
  f,
61
60
  h,
62
61
  t,
@@ -65,19 +64,19 @@ const tl = l.forwardRef((e, ee) => {
65
64
  d,
66
65
  i,
67
66
  a,
68
- Ye.defaultExpand,
67
+ Ze.defaultExpand,
69
68
  c
70
69
  );
71
70
  return { flattedData: f, resolvedGroupsCount: g };
72
71
  }, Me = (t) => {
73
72
  const r = t.filter(
74
73
  (i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
75
- ), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Tt(o);
76
- return Kt(r, d, { prevId: 0, idPrefix: x });
77
- }, We = (t) => t.filter((r) => ct && r && r.media ? window.matchMedia(r.media).matches : r), je = (t, r) => {
74
+ ), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Kt(o);
75
+ return Ht(r, d, { prevId: 0, idPrefix: x });
76
+ }, We = (t) => t.filter((r) => st && r && r.media ? window.matchMedia(r.media).matches : r), je = (t, r) => {
78
77
  var i;
79
78
  const o = Me(t), d = We(o);
80
- u.current = d, u.current.length === 0 && (u.current = Gt(
79
+ u.current = d, u.current.length === 0 && (u.current = kt(
81
80
  h,
82
81
  e.group,
83
82
  {
@@ -87,13 +86,13 @@ const tl = l.forwardRef((e, ee) => {
87
86
  prevId: 0,
88
87
  idPrefix: x
89
88
  }
90
- )), $e(u.current, r), v = kt(u.current, !0), le.current = u.current.map(Nt);
89
+ )), $e(u.current, r), v = Nt(u.current, !0), le.current = u.current.map(Ft);
91
90
  }, $e = (t, r) => {
92
91
  var i;
93
92
  t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
94
- a.width = a.width || "50px", a.cell = a.cell || Ct, a._type = "edit", a.headerCell = a.headerCell || Pt;
93
+ a.width = a.width || "50px", a.cell = a.cell || ht, a._type = "edit", a.headerCell = a.headerCell || Bt;
95
94
  }), G !== void 0 && t.filter((a) => a.columnType === "reorder").forEach((a) => {
96
- a.width = a.width || "50px", a.cell = a.cell || pt, a.headerCell = a.headerCell || el, a.sortable = !1, a.filterable = !1, a.editable = !1;
95
+ a.width = a.width || "50px", a.cell = a.cell || tl, a.headerCell = a.headerCell || ll, a.sortable = !1, a.filterable = !1, a.editable = !1;
97
96
  });
98
97
  const o = {
99
98
  id: "",
@@ -119,7 +118,7 @@ const tl = l.forwardRef((e, ee) => {
119
118
  (e.expandField || T.enabled) && e.detail && (t.unshift({
120
119
  ...o,
121
120
  _type: "expand",
122
- cell: ht,
121
+ cell: wt,
123
122
  field: (i = T.column) != null ? i : e.expandField,
124
123
  headerClassName: m(s.hierarchyCell({}))
125
124
  }), d++);
@@ -134,18 +133,18 @@ const tl = l.forwardRef((e, ee) => {
134
133
  t.slice(d).forEach((a) => a.parentIndex >= 0 && (a.parentIndex += d));
135
134
  }, te = () => h.length === e.total, Ue = () => {
136
135
  const { rowHeight: t, detailRowHeight: r, detail: o, expandField: d } = e, i = te(), a = t !== void 0 && t > 0, c = r !== void 0 && r > 0;
137
- return !a || D && !i || !!(o && d) && (!c || !i) ? Yt : W;
138
- }, j = () => e.isClient ? u : le, Je = (t, r, o, d, i, a) => {
136
+ return !a || D && !i || !!(o && d) && (!c || !i) ? qt : j;
137
+ }, $ = () => e.isClient ? u : le, Je = (t, r, o, d, i, a) => {
139
138
  let c = De(t, r);
140
139
  if (e.columnVirtualization && t.colSpan === 1)
141
140
  return { colSpan: a, colsToSkip: i };
142
141
  let f = o.length - 1 === d, g = o.length - d;
143
142
  return e.columnVirtualization && (f = y.length - 1 === d, g = y.length - d), c > 1 && !f ? i = c - 1 : c = 1, g <= c && !f && (c = g), { colSpan: c, colsToSkip: i };
144
143
  };
145
- let $, b = [], V;
144
+ let U, b = [], V;
146
145
  const u = e.columnsRef || { current: [] }, le = { current: [] };
147
146
  let v = [[]];
148
- const Qe = e.scrollLeftRef || { current: 0 }, U = e.localization || new Qt(), S = e.unstyled, s = S && S.uGrid ? S.uGrid : dt, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
147
+ const Qe = e.scrollLeftRef || { current: 0 }, z = e.localization || new Xt(), Xe = e.intl || new Yt("en"), S = e.unstyled, s = S && S.uGrid ? S.uGrid : ct, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
149
148
  group: !0,
150
149
  sort: !0,
151
150
  filter: !0,
@@ -153,7 +152,7 @@ const tl = l.forwardRef((e, ee) => {
153
152
  } : e.autoProcessData;
154
153
  let h, I;
155
154
  if (Array.isArray(e.data) ? (h = e.data, I = (we = e.total) != null ? we : h.length) : (h = ((Ee = e.data) == null ? void 0 : Ee.data) || [], I = (xe = (Re = e.total) != null ? Re : (Ie = e.data) == null ? void 0 : Ie.total) != null ? xe : h.length), F) {
156
- const { data: t, total: r } = st(h, {
155
+ const { data: t, total: r } = mt(h, {
157
156
  group: F.group ? e.group : void 0,
158
157
  sort: F.sort ? e.sort : void 0,
159
158
  filter: F.filter ? e.filter : void 0,
@@ -164,10 +163,10 @@ const tl = l.forwardRef((e, ee) => {
164
163
  });
165
164
  h = t, I = (ve = e.total) != null ? ve : r;
166
165
  }
167
- const { size: w = "medium" } = e, Xe = typeof e.groupable == "object" && e.groupable.footer || "none", k = e.scrollable === "virtual", D = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, T = mt(!!e.detail), Ye = ut(
166
+ const { size: w = "medium" } = e, Ye = typeof e.groupable == "object" && e.groupable.footer || "none", k = e.scrollable === "virtual", D = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, T = ut(!!e.detail), Ze = ft(
168
167
  typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
169
- ), { resolvedGroupsCount: Ze, flattedData: qe } = Le(
170
- Xe,
168
+ ), { resolvedGroupsCount: qe, flattedData: pe } = Le(
169
+ Ye,
171
170
  e.skip || 0,
172
171
  e.group,
173
172
  e.expandField,
@@ -175,24 +174,24 @@ const tl = l.forwardRef((e, ee) => {
175
174
  e.groupExpand,
176
175
  e.dataItemKey
177
176
  );
178
- b = qe;
177
+ b = pe;
179
178
  const J = Ue();
180
- J === W && te() && (V = b.slice(
179
+ J === j && te() && (V = b.slice(
181
180
  e.skip || 0,
182
181
  (e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
183
182
  ));
184
- const ae = ft(e.selectable || !!e.selectedField), pe = ae && ae.drag ? "none" : void 0, z = l.Children.toArray(e.children);
185
- je(z, Ze);
186
- const re = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), O = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ne = z.filter(
183
+ const ae = gt(e.selectable || !!e.selectedField), et = ae && ae.drag ? "none" : void 0, O = l.Children.toArray(e.children);
184
+ je(O, qe);
185
+ const re = O.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), _ = O.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ne = O.filter(
187
186
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
188
- ), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(xt, { columns: j().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
189
- Et,
187
+ ), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(vt, { columns: $().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
188
+ It,
190
189
  {
191
190
  size: w,
192
191
  staticHeaders: e.scrollable !== "none",
193
192
  draggable: e.reorderable || D,
194
193
  headerRow: /* @__PURE__ */ l.createElement(
195
- It,
194
+ Rt,
196
195
  {
197
196
  cells: e.cells,
198
197
  sort: e.sort,
@@ -208,7 +207,7 @@ const tl = l.forwardRef((e, ee) => {
208
207
  columnsMap: v,
209
208
  cellRender: e.headerCellRender,
210
209
  navigatable: !!e.navigatable,
211
- localization: U,
210
+ localization: z,
212
211
  unstyled: S,
213
212
  headerSelectionValue: !!(e.select && b.filter((t) => t.rowType === "data").every(
214
213
  (t) => e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0
@@ -216,7 +215,7 @@ const tl = l.forwardRef((e, ee) => {
216
215
  }
217
216
  ),
218
217
  filterRow: e.filterable && /* @__PURE__ */ l.createElement(
219
- Rt,
218
+ xt,
220
219
  {
221
220
  cells: e.cells,
222
221
  size: w,
@@ -227,20 +226,20 @@ const tl = l.forwardRef((e, ee) => {
227
226
  cellRender: e.filterCellRender,
228
227
  navigatable: !!e.navigatable,
229
228
  ariaRowIndex: v.length + 1,
230
- localization: U
229
+ localization: z
231
230
  }
232
231
  ) || void 0,
233
232
  cols: y.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
234
233
  }
235
- ), et = Qe.current || 0, tt = parseFloat(((e.style || {}).width || "").toString()), lt = (t, r, o, d) => {
234
+ ), tt = Qe.current || 0, lt = parseFloat(((e.style || {}).width || "").toString()), at = (t, r, o, d) => {
236
235
  let i = !1;
237
236
  const a = e.selectedField ? Fe(e.selectedField, t.dataItem) : e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0;
238
237
  let c = 0;
239
- const { colSpans: f, hiddenColumns: g } = yt({
238
+ const { colSpans: f, hiddenColumns: g } = Ct({
240
239
  enabled: e.columnVirtualization,
241
240
  columns: y,
242
- tableViewPortWidth: tt,
243
- scrollLeft: et,
241
+ tableViewPortWidth: lt,
242
+ scrollLeft: tt,
244
243
  getColSpan: De,
245
244
  dataItem: t.dataItem
246
245
  }), E = y.filter((n, C) => !g[C]);
@@ -259,18 +258,18 @@ const tl = l.forwardRef((e, ee) => {
259
258
  f[C]
260
259
  );
261
260
  c = A;
262
- const L = n.id ? n.id : C, M = m(s.contentSticky({ locked: n.locked }), n.className), nt = n.left !== void 0 ? { left: n.left, right: n.right } : {};
261
+ const M = n.id ? n.id : C, W = m(s.contentSticky({ locked: n.locked }), n.className), it = n.left !== void 0 ? { left: n.left, right: n.right } : {};
263
262
  let Ge = !1;
264
263
  if (n.editable && (e.editable || e.editField)) {
265
264
  const B = e.editField ? Fe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[N(e.dataItemKey)(t.dataItem)] : void 0, Z = typeof B == "boolean" ? B : Array.isArray(B) ? B.indexOf(n.field) > -1 : n.field !== void 0 && B === n.field;
266
265
  Z && n.columnType === "data" && (Z === !0 || Z === n.field) && (i = !0, Ge = !0);
267
266
  }
268
- const Y = n.cell || Ge && wt || Ht, it = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
267
+ const Y = n.cell || Ge && Et || At, ot = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
269
268
  locked: e.lockGroups,
270
269
  id: q.generateNavigatableId(
271
270
  `${r}-${String(C)}`,
272
271
  x,
273
- it || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
272
+ ot || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
274
273
  ),
275
274
  colSpan: H,
276
275
  dataItem: t.dataItem,
@@ -279,9 +278,9 @@ const tl = l.forwardRef((e, ee) => {
279
278
  format: n.format,
280
279
  columnType: n.columnType,
281
280
  rowReorderable: G,
282
- className: M,
281
+ className: W,
283
282
  render: e.cellRender,
284
- cells: Ft(e.cells, n.cells),
283
+ cells: Dt(e.cells, n.cells),
285
284
  columnIndex: C,
286
285
  columnsCount: y.length,
287
286
  rowType: t.rowType,
@@ -289,7 +288,7 @@ const tl = l.forwardRef((e, ee) => {
289
288
  expanded: t.expanded,
290
289
  dataIndex: t.dataIndex,
291
290
  rowDataIndex: o,
292
- columnPosition: nt,
291
+ columnPosition: it,
293
292
  style: {},
294
293
  ariaColumnIndex: n.ariaColumnIndex,
295
294
  isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(C) > -1,
@@ -297,27 +296,29 @@ const tl = l.forwardRef((e, ee) => {
297
296
  isInEdit: i,
298
297
  isAlt: d,
299
298
  unstyled: S,
300
- group: t.group
299
+ group: t.group,
300
+ localization: z,
301
+ intl: Xe
301
302
  };
302
303
  return n.cell ? /* @__PURE__ */ l.createElement(
303
- Zt,
304
+ pt,
304
305
  {
305
- key: L,
306
- isClient: Dt(Y),
306
+ key: M,
307
+ isClient: Tt(Y),
307
308
  dataItem: P.dataItem,
308
309
  rowDataIndex: P.rowDataIndex,
309
310
  columnIndex: P.columnIndex
310
311
  },
311
312
  /* @__PURE__ */ l.createElement(Y, { ...P })
312
- ) : /* @__PURE__ */ l.createElement(Y, { key: L, ...P });
313
+ ) : /* @__PURE__ */ l.createElement(Y, { key: M, ...P });
313
314
  }),
314
315
  isInEdit: i,
315
316
  isSelected: typeof a == "boolean" && a
316
317
  };
317
318
  };
318
319
  let de = 0;
319
- if (k && $)
320
- for (let t = 0; t < $.topCacheCount + $.attendedSkip - (e.skip || 0); t++) {
320
+ if (k && U)
321
+ for (let t = 0; t < U.topCacheCount + U.attendedSkip - (e.skip || 0); t++) {
321
322
  const r = b.shift();
322
323
  if (r)
323
324
  b.push(r), de++, r.rowType === "groupHeader" && t--;
@@ -332,10 +333,10 @@ const tl = l.forwardRef((e, ee) => {
332
333
  let t = -1, r = 0;
333
334
  (V || b).forEach((o, d) => {
334
335
  o.rowType === "data" && (se++, t++);
335
- const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E = lt(o, f, t, i);
336
+ const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E = at(o, f, t, i);
336
337
  if (K = c + ue + r, Q.push(
337
338
  /* @__PURE__ */ l.createElement(
338
- At,
339
+ Pt,
339
340
  {
340
341
  key: f,
341
342
  dataItem: o.dataItem,
@@ -372,8 +373,8 @@ const tl = l.forwardRef((e, ee) => {
372
373
  "aria-rowindex": K
373
374
  },
374
375
  e.group && e.group.map((C, H) => {
375
- var M;
376
- const A = (M = E == null ? void 0 : E.row[H]) == null ? void 0 : M.props.style, L = A ? { left: A.left, right: A.right } : {};
376
+ var W;
377
+ const A = (W = E == null ? void 0 : E.row[H]) == null ? void 0 : W.props.style, M = A ? { left: A.left, right: A.right } : {};
377
378
  return /* @__PURE__ */ l.createElement(
378
379
  Te,
379
380
  {
@@ -382,7 +383,7 @@ const tl = l.forwardRef((e, ee) => {
382
383
  field: C.field,
383
384
  dataItem: o.dataItem,
384
385
  key: H,
385
- columnPosition: L,
386
+ columnPosition: M,
386
387
  style: {},
387
388
  ariaColumnIndex: 1 + H,
388
389
  isSelected: !1,
@@ -393,14 +394,14 @@ const tl = l.forwardRef((e, ee) => {
393
394
  );
394
395
  }),
395
396
  (e.expandField || T.enabled) && /* @__PURE__ */ l.createElement(
396
- _t,
397
+ Lt,
397
398
  {
398
399
  unstyled: S,
399
400
  id: q.generateNavigatableId(`${g}-dhcell`, x)
400
401
  }
401
402
  ),
402
403
  /* @__PURE__ */ l.createElement(
403
- Ot,
404
+ _t,
404
405
  {
405
406
  dataItem: o.dataItem,
406
407
  dataIndex: o.dataIndex,
@@ -420,17 +421,17 @@ const tl = l.forwardRef((e, ee) => {
420
421
  total: I,
421
422
  skip: e.skip || 0,
422
423
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
423
- ...Vt(e.pageable || {})
424
- }, ge = /* @__PURE__ */ l.createElement(jt, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(gt, { className: m(s.pager({})), ...fe })), at = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), rt = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
424
+ ...zt(e.pageable || {})
425
+ }, ge = /* @__PURE__ */ l.createElement($t, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(bt, { className: m(s.pager({})), ...fe })), rt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), nt = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
425
426
  var r;
426
427
  return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
427
428
  }) ? /* @__PURE__ */ l.createElement(
428
- vt,
429
+ St,
429
430
  {
430
431
  size: w,
431
432
  staticHeaders: e.scrollable !== "none",
432
433
  row: /* @__PURE__ */ l.createElement(
433
- Bt,
434
+ Vt,
434
435
  {
435
436
  cells: e.cells,
436
437
  idPrefix: x,
@@ -438,27 +439,27 @@ const tl = l.forwardRef((e, ee) => {
438
439
  ariaRowIndex: K + 1
439
440
  }
440
441
  ),
441
- cols: y.map(at)
442
+ cols: y.map(rt)
442
443
  }
443
- ) : null, be = /* @__PURE__ */ l.createElement(Mt, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
444
+ ) : null, be = /* @__PURE__ */ l.createElement(Wt, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
444
445
  "col",
445
446
  {
446
447
  key: r.toString(),
447
448
  className: Ne(t.field, e.sort) ? m(s.sorted({})) : void 0,
448
449
  width: p(t)
449
450
  }
450
- ))), ye = e.reorderable || D, { detail: ll, cells: al, ...Ce } = e, he = /* @__PURE__ */ l.createElement(
451
+ ))), ye = e.reorderable || D, { detail: rl, cells: nl, ...Ce } = e, he = /* @__PURE__ */ l.createElement(
451
452
  "tbody",
452
453
  {
453
454
  role: "rowgroup",
454
455
  className: m(s.tbody({})),
455
- ...bt
456
+ ...yt
456
457
  },
457
458
  Q
458
459
  );
459
460
  let X = he;
460
461
  if (G && (X = /* @__PURE__ */ l.createElement(
461
- qt,
462
+ el,
462
463
  {
463
464
  unstyled: s,
464
465
  columns: u.current,
@@ -471,11 +472,11 @@ const tl = l.forwardRef((e, ee) => {
471
472
  {
472
473
  gridRef: ee,
473
474
  gridProps: Ce,
474
- columnsRef: j(),
475
+ columnsRef: $(),
475
476
  columnsMapRef: v,
476
477
  dataRef: b,
477
478
  slicedData: V,
478
- isFixedVirtualScroll: J === W,
479
+ isFixedVirtualScroll: J === j,
479
480
  id: R,
480
481
  total: I,
481
482
  detailExpandable: !!e.detail
@@ -492,7 +493,7 @@ const tl = l.forwardRef((e, ee) => {
492
493
  re,
493
494
  ie,
494
495
  /* @__PURE__ */ l.createElement(
495
- Wt,
496
+ jt,
496
497
  {
497
498
  selectable: e.selectable,
498
499
  className: m(s.table({ size: w }))
@@ -501,23 +502,23 @@ const tl = l.forwardRef((e, ee) => {
501
502
  oe,
502
503
  /* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
503
504
  ),
504
- me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null)),
505
+ me && /* @__PURE__ */ l.createElement(Ae, null, _.length ? _ : /* @__PURE__ */ l.createElement(Ke, null)),
505
506
  ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null))
506
507
  )),
507
508
  ne,
508
509
  e.pageable && ge
509
510
  );
510
- let _ = e.style || {};
511
- return k && (_.height || (_ = Object.assign({}, _, { height: "450px" }))), /* @__PURE__ */ l.createElement(
511
+ let L = e.style || {};
512
+ return k && (L.height || (L = Object.assign({}, L, { height: "450px" }))), /* @__PURE__ */ l.createElement(
512
513
  Pe,
513
514
  {
514
515
  gridRef: ee,
515
516
  gridProps: Ce,
516
- columnsRef: j(),
517
+ columnsRef: $(),
517
518
  columnsMapRef: v,
518
519
  dataRef: b,
519
520
  slicedData: V,
520
- isFixedVirtualScroll: J === W,
521
+ isFixedVirtualScroll: J === j,
521
522
  id: R,
522
523
  total: I,
523
524
  detailExpandable: !!e.detail
@@ -526,7 +527,7 @@ const tl = l.forwardRef((e, ee) => {
526
527
  "div",
527
528
  {
528
529
  id: e.id,
529
- style: _,
530
+ style: L,
530
531
  className: m(
531
532
  s.wrapper({
532
533
  size: w,
@@ -547,11 +548,11 @@ const tl = l.forwardRef((e, ee) => {
547
548
  "aria-colcount": y.length,
548
549
  "aria-rowcount": I,
549
550
  id: R,
550
- "aria-label": U.toLanguageString(_e, Xt[_e])
551
+ "aria-label": z.toLanguageString(_e, Zt[_e])
551
552
  },
552
553
  oe,
553
- /* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Ut, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
554
- $t,
554
+ /* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Jt, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
555
+ Ut,
555
556
  {
556
557
  selectable: e.selectable,
557
558
  tableClassName: m(
@@ -559,28 +560,28 @@ const tl = l.forwardRef((e, ee) => {
559
560
  size: w
560
561
  })
561
562
  ),
562
- tableStyle: { userSelect: pe }
563
+ tableStyle: { userSelect: et }
563
564
  },
564
565
  be,
565
566
  /* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
566
- ), me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null))), k && /* @__PURE__ */ l.createElement(
567
+ ), me && /* @__PURE__ */ l.createElement(Ae, null, _.length ? _ : /* @__PURE__ */ l.createElement(Ke, null))), k && /* @__PURE__ */ l.createElement(
567
568
  "div",
568
569
  {
569
570
  className: m(s.heightContainer({})),
570
571
  role: "presentation"
571
572
  },
572
- /* @__PURE__ */ l.createElement(Jt, { isVirtualScroll: k })
573
+ /* @__PURE__ */ l.createElement(Qt, { isVirtualScroll: k })
573
574
  )))),
574
- rt,
575
+ nt,
575
576
  ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null)),
576
- /* @__PURE__ */ l.createElement(Lt, null)
577
+ /* @__PURE__ */ l.createElement(Mt, null)
577
578
  ),
578
579
  ne,
579
580
  e.pageable && ge
580
581
  ))
581
582
  );
582
583
  });
583
- tl.displayName = "KendoReactGridComponent";
584
+ al.displayName = "KendoReactGridComponent";
584
585
  export {
585
- tl as GridComponent
586
+ al as GridComponent
586
587
  };
package/GridState.js CHANGED
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),w=o.createContext([{},()=>{},{}]),Y=()=>o.useContext(w),Z=e=>{var S,f,C,k,G,P,D,b,m,y,F,T,j,q,H,M,O,R;const{children:z,onEditChange:r,onFilterChange:l,onSortChange:i,onPageChange:c,onGroupChange:u,onDataStateChange:g,onSelectionChange:h,onDetailExpandChange:s,onGroupExpandChange:x,onHeaderSelectionChange:E}=e,[n,d]=o.useState({edit:(S=e.defaultEdit)!=null?S:e.edit,filter:(f=e.defaultFilter)!=null?f:e.filter,select:(C=e.defaultSelect)!=null?C:e.select,sort:(k=e.defaultSort)!=null?k:e.sort,take:(G=e.defaultTake)!=null?G:e.take,skip:(P=e.defaultSkip)!=null?P:e.skip,group:(D=e.defaultGroup)!=null?D:e.group,detailExpand:(b=e.defaultDetailExpand)!=null?b:e.detailExpand,groupExpand:(m=e.defaultGroupExpand)!=null?m:e.groupExpand}),A={edit:(y=e.edit)!=null?y:n.edit,filter:(F=e.filter)!=null?F:n.filter,sort:(T=e.sort)!=null?T:n.sort,take:(j=e.take)!=null?j:n.take,skip:(q=e.skip)!=null?q:n.skip,group:(H=e.group)!=null?H:n.group,select:(M=e.select)!=null?M:n.select,detailExpand:(O=e.detailExpand)!=null?O:n.detailExpand,groupExpand:(R=e.groupExpand)!=null?R:n.groupExpand},B=t=>{},I=t=>{d(a=>({...a,edit:t.edit})),r==null||r(t)},J=t=>{d(a=>({...a,filter:t.filter})),l==null||l(t)},K=t=>{d(a=>({...a,sort:t.sort})),i==null||i(t)},L=t=>{d(a=>({...a,...t.page})),c==null||c(t)},N=t=>{d(a=>({...a,group:t.group})),u==null||u(t)},Q=t=>{d(a=>({...a,...t.dataState})),g==null||g(t)},U=t=>{d(a=>({...a,select:t.select})),h==null||h(t)},V=t=>{d(a=>({...a,select:t.select})),E==null||E(t)},W=t=>{d(a=>({...a,detailExpand:t.detailExpand})),s==null||s(t)},X=t=>{d(a=>({...a,groupExpand:t.groupExpand})),x==null||x(t)};return o.createElement(w.Provider,{value:[A,B,{onEditChange:I,onFilterChange:l&&J,onSortChange:i&&K,onPageChange:c&&L,onGroupChange:u&&N,onDataStateChange:Q,onSelectionChange:U,onHeaderSelectionChange:V,onDetailExpandChange:W,onGroupExpandChange:X}]},z)};exports.GridClientStateProvider=Z;exports.useGridState=Y;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),w=o.createContext([{},()=>{},{}]),Y=()=>o.useContext(w),Z=e=>{var S,f,C,k,G,P,D,b,m,y,F,T,j,q,H,M,O,R;const{children:z,onEditChange:r,onFilterChange:l,onSortChange:i,onPageChange:c,onGroupChange:u,onDataStateChange:g,onSelectionChange:h,onDetailExpandChange:x,onGroupExpandChange:E,onHeaderSelectionChange:s}=e,[n,d]=o.useState({edit:(S=e.defaultEdit)!=null?S:e.edit,filter:(f=e.defaultFilter)!=null?f:e.filter,select:(C=e.defaultSelect)!=null?C:e.select,sort:(k=e.defaultSort)!=null?k:e.sort,take:(G=e.defaultTake)!=null?G:e.take,skip:(P=e.defaultSkip)!=null?P:e.skip,group:(D=e.defaultGroup)!=null?D:e.group,detailExpand:(b=e.defaultDetailExpand)!=null?b:e.detailExpand,groupExpand:(m=e.defaultGroupExpand)!=null?m:e.groupExpand}),A={edit:(y=e.edit)!=null?y:n.edit,filter:(F=e.filter)!=null?F:n.filter,sort:(T=e.sort)!=null?T:n.sort,take:(j=e.take)!=null?j:n.take,skip:(q=e.skip)!=null?q:n.skip,group:(H=e.group)!=null?H:n.group,select:(M=e.select)!=null?M:n.select,detailExpand:(O=e.detailExpand)!=null?O:n.detailExpand,groupExpand:(R=e.groupExpand)!=null?R:n.groupExpand},B=t=>{},I=t=>{d(a=>({...a,edit:t.edit})),r==null||r(t)},J=t=>{d(a=>({...a,filter:t.filter})),l==null||l(t)},K=t=>{d(a=>({...a,sort:t.sort})),i==null||i(t)},L=t=>{d(a=>({...a,...t.page})),c==null||c(t)},N=t=>{d(a=>({...a,group:t.group})),u==null||u(t)},Q=t=>{d(a=>({...a,...t.dataState})),g==null||g(t)},U=t=>{d(a=>({...a,select:t.select})),h==null||h(t)},V=t=>{d(a=>({...a,select:t.select})),s==null||s(t)},W=t=>{d(a=>({...a,detailExpand:t.detailExpand})),x==null||x(t)},X=t=>{d(a=>({...a,groupExpand:t.groupExpand})),E==null||E(t)};return o.createElement(w.Provider,{value:[A,B,{onEditChange:I,onFilterChange:l&&J,onSortChange:i&&K,onPageChange:c&&L,onGroupChange:u&&N,onDataStateChange:Q,onSelectionChange:U,onHeaderSelectionChange:V,onDetailExpandChange:W,onGroupExpandChange:X}]},z)};exports.GridClientStateProvider=Z;exports.useGridState=Y;
package/GridToolbar.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),r=require("@progress/kendo-react-common");function s(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const b=s(i),l=o=>{const{size:e,className:t,ariaLabel:a,ariaControls:n,children:c}=o;return b.createElement("div",{className:r.classNames("k-toolbar k-grid-toolbar k-toolbar-solid",{"k-toolbar-md":!e,[`k-toolbar-${r.kendoThemeMaps.sizeMap[e]||e}`]:e},t),"aria-label":a,"aria-controls":n,role:"toolbar"},c)};l.displayName="KendoReactGridToolbar";exports.GridToolbar=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),r=require("@progress/kendo-react-common");function s(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const b=s(i),l=o=>{const{size:e,className:t,ariaLabel:a,ariaControls:n,children:c}=o;return b.createElement("div",{className:r.classNames("k-toolbar k-grid-toolbar k-toolbar-solid",{"k-toolbar-md":!e,[`k-toolbar-${r.kendoThemeMaps.sizeMap[e]||e}`]:e},t),"aria-label":a,"aria-controls":n,role:"toolbar"},c)};l.displayName="KendoReactGridToolbar";exports.GridToolbar=l;
package/GridToolbar.mjs CHANGED
@@ -5,10 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as s from "react";
10
- import { classNames as i, kendoThemeMaps as c } from "@progress/kendo-react-common";
11
- const m = (o) => {
9
+ import { classNames as i, kendoThemeMaps as m } from "@progress/kendo-react-common";
10
+ const b = (o) => {
12
11
  const { size: a, className: r, ariaLabel: e, ariaControls: l, children: t } = o;
13
12
  return /* @__PURE__ */ s.createElement(
14
13
  "div",
@@ -17,7 +16,7 @@ const m = (o) => {
17
16
  "k-toolbar k-grid-toolbar k-toolbar-solid",
18
17
  {
19
18
  "k-toolbar-md": !a,
20
- [`k-toolbar-${c.sizeMap[a] || a}`]: a
19
+ [`k-toolbar-${m.sizeMap[a] || a}`]: a
21
20
  },
22
21
  r
23
22
  ),
@@ -28,7 +27,7 @@ const m = (o) => {
28
27
  t
29
28
  );
30
29
  };
31
- m.displayName = "KendoReactGridToolbar";
30
+ b.displayName = "KendoReactGridToolbar";
32
31
  export {
33
- m as GridToolbar
32
+ b as GridToolbar
34
33
  };
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("@progress/kendo-react-common"),c=require("./package-metadata.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=i(o),s=e=>n.shouldShowValidationUI(c.packageMetadata)&&l.createElement(n.WatermarkOverlay,null);exports.GridWatermarkOverlay=s;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("@progress/kendo-react-common"),c=require("./package-metadata.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=i(o),s=e=>n.shouldShowValidationUI(c.packageMetadata)&&l.createElement(n.WatermarkOverlay,null);exports.GridWatermarkOverlay=s;
@@ -7,9 +7,9 @@
7
7
  */
8
8
  "use client";
9
9
  import * as r from "react";
10
- import { shouldShowValidationUI as e, WatermarkOverlay as a } from "@progress/kendo-react-common";
10
+ import { shouldShowValidationUI as a, WatermarkOverlay as e } from "@progress/kendo-react-common";
11
11
  import { packageMetadata as t } from "./package-metadata.mjs";
12
- const n = (o) => e(t) && /* @__PURE__ */ r.createElement(a, null);
12
+ const n = (o) => a(t) && /* @__PURE__ */ r.createElement(e, null);
13
13
  export {
14
14
  n as GridWatermarkOverlay
15
15
  };