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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
package/GridComponent.mjs CHANGED
@@ -5,95 +5,95 @@
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 it, uGrid as ot, getter as Z, classNames as m, canUseDOM as dt } from "@progress/kendo-react-common";
11
- import { process as ct } from "@progress/kendo-data-query";
12
- import { getDetailExpandableOptions as st, getGroupExpandableOptions as mt, tableKeyboardNavigationTools as q, Pager as ut, tableKeyboardNavigationBodyAttributes as ft, tableKeyboardNavigationScopeAttributes as Ge, tableColumnsVirtualization as gt } from "@progress/kendo-react-data-tools";
13
- import { GridSelectionCell as bt } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as yt } from "./cells/GridHierarchyCell.mjs";
15
- import { GridEditCell as Ct } from "./cells/GridEditCell.mjs";
16
- import { Header as ht } from "./header/Header.mjs";
17
- import { HeaderRow as wt } from "./header/HeaderRow.mjs";
18
- import { FilterRow as Et } from "./header/FilterRow.mjs";
19
- import { GroupPanel as Rt } from "./header/GroupPanel.mjs";
20
- import { Footer as It } from "./footer/Footer.mjs";
21
- import { getColumnWidth as p, isSorted as ke, flatData as xt, autoGenerateColumns as vt, mapColumns as St, clientColumn as Gt, getNestedValue as Ne, getColSpan as Fe, resolveCells as kt, isClientReference as Nt, sanitizeColumns as Ft, readColumns as Dt } from "./utils/index.mjs";
22
- import { GridCell as Tt } from "./cells/GridCell.mjs";
23
- import { GridGroupCell as De } from "./cells/GridGroupCell.mjs";
24
- import { GridRow as Ht } from "./rows/GridRow.mjs";
25
- import { GridHeaderSelectionCell as At } from "./header/GridHeaderSelectionCell.mjs";
26
- import { GridNoRecords as Te } from "./components/noRecords/GridNoRecords.mjs";
9
+ import { validatePackage as ct, uGrid as st, getter as F, classNames as m, canUseDOM as mt } from "@progress/kendo-react-common";
10
+ import { process as ut } from "@progress/kendo-data-query";
11
+ import { combineFilters as ft, getDetailExpandableOptions as gt, getGroupExpandableOptions as bt, getSelectionOptions as yt, tableKeyboardNavigationTools as q, Pager as ht, tableKeyboardNavigationBodyAttributes as Ct, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as wt } from "@progress/kendo-react-data-tools";
12
+ import { GridSelectionCell as Et } from "./cells/GridSelectionCell.mjs";
13
+ import { GridHierarchyCell as It } from "./cells/GridHierarchyCell.mjs";
14
+ import { GridEditCell as Rt } from "./cells/GridEditCell.mjs";
15
+ import { Header as vt } from "./header/Header.mjs";
16
+ import { HeaderRow as xt } from "./header/HeaderRow.mjs";
17
+ import { FilterRow as St } from "./header/FilterRow.mjs";
18
+ import { GroupPanel as Gt } from "./header/GroupPanel.mjs";
19
+ import { Footer as kt } from "./footer/Footer.mjs";
20
+ import { getColumnWidth as p, isSorted as Ne, flatData as Nt, autoGenerateColumns as Ft, mapColumns as Dt, clientColumn as Tt, getNestedValue as Fe, getColSpan as De, resolveCells as Kt, isClientReference as Ht, sanitizeColumns as At, readColumns as Pt } from "./utils/index.mjs";
21
+ import { GridCell as Bt } from "./cells/GridCell.mjs";
22
+ import { GridGroupCell as Te } from "./cells/GridGroupCell.mjs";
23
+ import { GridRow as Vt } from "./rows/GridRow.mjs";
24
+ import { GridHeaderSelectionCell as Lt } from "./header/GridHeaderSelectionCell.mjs";
25
+ import { GridNoRecords as Ke } from "./components/noRecords/GridNoRecords.mjs";
27
26
  import { operators as He } from "./filterCommon.mjs";
28
- import { FooterRow as Pt } from "./footer/FooterRow.mjs";
29
- import { normalize as Bt } from "./paging/GridPagerSettings.mjs";
30
- import { packageMetadata as Kt } from "./package-metadata.mjs";
31
- import { GridDetailCell as Vt } from "./cells/GridDetailCell.mjs";
32
- import { GridDetailHierarchyCell as zt } from "./cells/GridDetailHierarchyCell.mjs";
27
+ import { FooterRow as zt } from "./footer/FooterRow.mjs";
28
+ import { normalize as Ot } from "./paging/GridPagerSettings.mjs";
29
+ import { packageMetadata as _t } from "./package-metadata.mjs";
30
+ import { GridDetailCell as Mt } from "./cells/GridDetailCell.mjs";
31
+ import { GridDetailHierarchyCell as Wt } from "./cells/GridDetailHierarchyCell.mjs";
33
32
  import { GridNoRecordsContainer as Ae } from "./components/noRecords/GridNoRecordsContainer.mjs";
34
- import { GridWatermarkOverlay as Ot } from "./GridWatermarkOverlay.mjs";
33
+ import { GridWatermarkOverlay as jt } from "./GridWatermarkOverlay.mjs";
35
34
  import { GridClientWrapper as Pe } from "./GridClientWrapper.mjs";
36
- import { GridColGroup as _t } from "./components/colGroup/GridColGroup.mjs";
37
- import { GridTable as Lt } from "./components/table/GridTable.mjs";
35
+ import { GridColGroup as $t } from "./components/colGroup/GridColGroup.mjs";
36
+ import { GridTable as Ut } from "./components/table/GridTable.mjs";
38
37
  import { GridDropClue as Be } from "./components/GridDropClue.mjs";
39
- import { GridDragClue as Ke } from "./components/GridDragClue.mjs";
40
- import { GridTableBody as Ve } from "./components/table/GridTableBody.mjs";
41
- import { PagerContainer as Mt } from "./components/PagerContainer.mjs";
42
- import { GridTableScrollable as jt } from "./components/table/GridTableScrollable.mjs";
38
+ import { GridDragClue as Ve } from "./components/GridDragClue.mjs";
39
+ import { GridTableBody as Le } from "./components/table/GridTableBody.mjs";
40
+ import { PagerContainer as Jt } from "./components/PagerContainer.mjs";
41
+ import { GridTableScrollable as Qt } from "./components/table/GridTableScrollable.mjs";
43
42
  import { GridElementContainer as ze } from "./components/GridElementContainer.mjs";
44
- import { GridContainerElementContainer as Wt } from "./components/GridContainerElementContainer.mjs";
45
- import { VirtualScrollHeightContainer as $t } from "./components/VirtualScrollHeightContainer.mjs";
46
- import { LocalizationService as Ut } from "@progress/kendo-react-intl";
47
- import { gridAriaLabel as Oe, messages as Jt } from "./messages/index.mjs";
48
- import { VirtualScrollFixed as M } from "./VirtualScrollFixed.mjs";
49
- import { VirtualScroll as Qt } from "./VirtualScroll.mjs";
50
- import { GridCustomCellClientContainer as Xt } from "./components/GridCustomCellClientContainer.mjs";
51
- import { GridReorderableRowsContainer as Yt } from "./components/GridDraggableRowsContainer.mjs";
52
- import { GridRowReorderCell as Zt } from "./cells/GridRowReorderCell.mjs";
53
- import { GridHeaderRowReorderCell as qt } from "./header/client/GridHeaderRowReorderCell.mjs";
54
- const pt = l.forwardRef((e, ee) => {
55
- var he, we, Ee, Re, Ie, xe, ve;
56
- const I = e.id + "-role-element-id", x = e.navigatable ? I : "";
57
- it(Kt);
58
- const _e = (t, r, o, d, i, a, c) => {
59
- const f = [], g = xt(
43
+ import { GridContainerElementContainer as Xt } from "./components/GridContainerElementContainer.mjs";
44
+ import { VirtualScrollHeightContainer as Yt } from "./components/VirtualScrollHeightContainer.mjs";
45
+ import { LocalizationService as Zt, IntlService as qt } from "@progress/kendo-react-intl";
46
+ import { gridAriaLabel as Oe, messages as pt } from "./messages/index.mjs";
47
+ import { VirtualScrollFixed as j } from "./VirtualScrollFixed.mjs";
48
+ import { VirtualScroll as el } from "./VirtualScroll.mjs";
49
+ import { GridCustomCellClientContainer as tl } from "./components/GridCustomCellClientContainer.mjs";
50
+ import { GridReorderableRowsContainer as ll } from "./components/GridDraggableRowsContainer.mjs";
51
+ import { GridRowReorderCell as al } from "./cells/GridRowReorderCell.mjs";
52
+ import { GridHeaderRowReorderCell as rl } from "./header/client/GridHeaderRowReorderCell.mjs";
53
+ import { GridLoader as _e } from "./components/GridLoader.mjs";
54
+ const nl = l.forwardRef((e, ee) => {
55
+ var we, Ee, Ie, Re, ve, xe, Se;
56
+ const R = e.id + "-role-element-id", v = e.navigatable ? R : "";
57
+ ct(_t);
58
+ const Me = (t, r, o, d, i, a, c) => {
59
+ const f = [], g = Nt(
60
60
  f,
61
- h,
61
+ C,
62
62
  t,
63
63
  { index: r },
64
64
  o !== void 0,
65
65
  d,
66
66
  i,
67
67
  a,
68
- Xe.defaultExpand,
68
+ qe.defaultExpand,
69
69
  c
70
70
  );
71
71
  return { flattedData: f, resolvedGroupsCount: g };
72
- }, Le = (t) => {
72
+ }, We = (t) => {
73
73
  const r = t.filter(
74
74
  (i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
75
- ), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Ft(o);
76
- return Dt(r, d, { prevId: 0, idPrefix: x });
77
- }, Me = (t) => t.filter((r) => dt && r && r.media ? window.matchMedia(r.media).matches : r), je = (t, r) => {
75
+ ), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = At(o);
76
+ return Pt(r, d, { prevId: 0, idPrefix: v });
77
+ }, je = (t) => t.filter((r) => mt && r && r.media ? window.matchMedia(r.media).matches : r), $e = (t, r) => {
78
78
  var i;
79
- const o = Le(t), d = Me(o);
80
- u.current = d, u.current.length === 0 && (u.current = vt(
81
- h,
79
+ const o = We(t), d = je(o);
80
+ u.current = d, u.current.length === 0 && (u.current = Ft(
81
+ C,
82
82
  e.group,
83
83
  {
84
- column: (i = D.column) != null ? i : e.expandField
84
+ column: (i = T.column) != null ? i : e.expandField
85
85
  },
86
86
  {
87
87
  prevId: 0,
88
- idPrefix: x
88
+ idPrefix: v
89
89
  }
90
- )), We(u.current, r), v = St(u.current, !0), le.current = u.current.map(Gt);
91
- }, We = (t, r) => {
90
+ )), Ue(u.current, r), x = Dt(u.current, !0), le.current = u.current.map(Tt);
91
+ }, Ue = (t, r) => {
92
92
  var i;
93
- e.selectedField && t.filter((a) => a.field === e.selectedField).forEach((a) => {
94
- a.width = a.width || "50px", a.cell = a.cell || bt, a._type = "edit", a.headerCell = a.headerCell || At;
93
+ t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
94
+ a.width = a.width || "50px", a.cell = a.cell || Et, a._type = "edit", a.headerCell = a.headerCell || Lt;
95
95
  }), G !== void 0 && t.filter((a) => a.columnType === "reorder").forEach((a) => {
96
- a.width = a.width || "50px", a.cell = a.cell || Zt, a.headerCell = a.headerCell || qt, a.sortable = !1, a.filterable = !1, a.editable = !1;
96
+ a.width = a.width || "50px", a.cell = a.cell || al, a.headerCell = a.headerCell || rl, a.sortable = !1, a.filterable = !1, a.editable = !1;
97
97
  });
98
98
  const o = {
99
99
  id: "",
@@ -116,58 +116,62 @@ const pt = l.forwardRef((e, ee) => {
116
116
  isAccessible: !0
117
117
  };
118
118
  let d = 0;
119
- (e.expandField || D.enabled) && e.detail && (t.unshift({
119
+ (e.expandField || T.enabled) && e.detail && (t.unshift({
120
120
  ...o,
121
121
  _type: "expand",
122
- cell: yt,
123
- field: (i = D.column) != null ? i : e.expandField,
122
+ cell: It,
123
+ field: (i = T.column) != null ? i : e.expandField,
124
124
  headerClassName: m(s.hierarchyCell({}))
125
125
  }), d++);
126
126
  for (let a = 0; a < r; a++)
127
127
  t.unshift({
128
128
  ...o,
129
129
  isAccessible: !1,
130
- cell: De,
130
+ cell: Te,
131
131
  field: "value",
132
132
  locked: e.lockGroups
133
133
  }), d++;
134
134
  t.slice(d).forEach((a) => a.parentIndex >= 0 && (a.parentIndex += d));
135
- }, te = () => h.length === e.total, $e = () => {
135
+ }, te = () => C.length === e.total, Je = () => {
136
136
  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 || F && !i || !!(o && d) && (!c || !i) ? Qt : M;
138
- }, j = () => e.isClient ? u : le, Ue = (t, r, o, d, i, a) => {
139
- let c = Fe(t, r);
137
+ return !a || D && !i || !!(o && d) && (!c || !i) ? el : j;
138
+ }, $ = () => e.isClient ? u : le, Qe = (t, r, o, d, i, a) => {
139
+ let c = De(t, r);
140
140
  if (e.columnVirtualization && t.colSpan === 1)
141
141
  return { colSpan: a, colsToSkip: i };
142
142
  let f = o.length - 1 === d, g = o.length - d;
143
- return e.columnVirtualization && (f = b.length - 1 === d, g = b.length - d), c > 1 && !f ? i = c - 1 : c = 1, g <= c && !f && (c = g), { colSpan: c, colsToSkip: i };
143
+ 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
144
  };
145
- let W, C = [], K;
145
+ let U, b = [], V;
146
146
  const u = e.columnsRef || { current: [] }, le = { current: [] };
147
- let v = [[]];
148
- const Je = e.scrollLeftRef || { current: 0 }, $ = e.localization || new Ut(), S = e.unstyled, s = S && S.uGrid ? S.uGrid : ot, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, N = e.autoProcessData === !0 ? {
147
+ let x = [[]];
148
+ const Xe = e.scrollLeftRef || { current: 0 }, L = e.localization || new Zt(), Ye = e.intl || new qt("en"), S = e.unstyled, s = S && S.uGrid ? S.uGrid : st, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, k = e.autoProcessData === !0 ? {
149
149
  group: !0,
150
150
  sort: !0,
151
151
  filter: !0,
152
+ search: !0,
152
153
  page: !0
153
154
  } : e.autoProcessData;
154
- let h, w;
155
- if (Array.isArray(e.data) ? (h = e.data, w = (he = e.total) != null ? he : h.length) : (h = ((we = e.data) == null ? void 0 : we.data) || [], w = (Ie = (Re = e.total) != null ? Re : (Ee = e.data) == null ? void 0 : Ee.total) != null ? Ie : h.length), N) {
156
- const { data: t, total: r } = ct(h, {
157
- group: N.group ? e.group : void 0,
158
- sort: N.sort ? e.sort : void 0,
159
- filter: N.filter ? e.filter : void 0,
160
- ...N.page ? {
155
+ let C, I;
156
+ if (Array.isArray(e.data) ? (C = e.data, I = (we = e.total) != null ? we : C.length) : (C = ((Ee = e.data) == null ? void 0 : Ee.data) || [], I = (ve = (Re = e.total) != null ? Re : (Ie = e.data) == null ? void 0 : Ie.total) != null ? ve : C.length), k) {
157
+ const { data: t, total: r } = ut(C, {
158
+ group: k.group ? e.group : void 0,
159
+ sort: k.sort ? e.sort : void 0,
160
+ filter: ft(
161
+ k.filter ? e.filter : void 0,
162
+ k.search ? e.search : void 0
163
+ ),
164
+ ...k.page ? {
161
165
  take: e.take,
162
166
  skip: e.skip
163
167
  } : {}
164
168
  });
165
- h = t, w = (xe = e.total) != null ? xe : r;
169
+ C = t, I = (xe = e.total) != null ? xe : r;
166
170
  }
167
- const { size: E = "medium" } = e, Qe = typeof e.groupable == "object" && e.groupable.footer || "none", k = e.scrollable === "virtual", F = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, D = st(!!e.detail), Xe = mt(
171
+ const { size: w = "medium" } = e, Ze = typeof e.groupable == "object" && e.groupable.footer || "none", N = e.scrollable === "virtual", D = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, T = gt(!!e.detail), qe = bt(
168
172
  typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
169
- ), { resolvedGroupsCount: Ye, flattedData: Ze } = _e(
170
- Qe,
173
+ ), { resolvedGroupsCount: pe, flattedData: et } = Me(
174
+ Ze,
171
175
  e.skip || 0,
172
176
  e.group,
173
177
  e.expandField,
@@ -175,100 +179,102 @@ const pt = l.forwardRef((e, ee) => {
175
179
  e.groupExpand,
176
180
  e.dataItemKey
177
181
  );
178
- C = Ze;
179
- const U = $e();
180
- U === M && te() && (K = C.slice(
182
+ b = et;
183
+ const J = Je();
184
+ J === j && te() && (V = b.slice(
181
185
  e.skip || 0,
182
186
  (e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
183
187
  ));
184
- const qe = e.selectable && e.selectable.drag ? "none" : void 0, V = l.Children.toArray(e.children);
185
- je(V, Ye);
186
- const ae = V.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: I }) : null), z = V.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), re = V.filter(
188
+ const ae = yt(e.selectable || !!e.selectedField), tt = ae && ae.drag ? "none" : void 0, z = l.Children.toArray(e.children);
189
+ $e(z, pe);
190
+ 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(
187
191
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
188
- ), b = u.current.filter((t) => t.children.length === 0), ne = F && /* @__PURE__ */ l.createElement(Rt, { columns: j().current, group: e.group || [], ariaControls: I }), ie = /* @__PURE__ */ l.createElement(
189
- ht,
192
+ ), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(Gt, { columns: $().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
193
+ vt,
190
194
  {
191
- size: E,
195
+ size: w,
192
196
  staticHeaders: e.scrollable !== "none",
193
- draggable: e.reorderable || F,
197
+ draggable: e.reorderable || D,
194
198
  headerRow: /* @__PURE__ */ l.createElement(
195
- wt,
199
+ xt,
196
200
  {
197
201
  cells: e.cells,
198
202
  sort: e.sort,
199
203
  sortable: e.sortable,
200
204
  group: e.group || [],
201
- groupable: F,
205
+ groupable: D,
202
206
  filter: e.filter,
203
207
  filterable: e.filterable,
204
208
  filterOperators: e.filterOperators || He,
205
209
  columnMenu: e.columnMenu,
206
210
  columnMenuIcon: e.columnMenuIcon,
207
211
  columns: u.current,
208
- columnsMap: v,
212
+ columnsMap: x,
209
213
  cellRender: e.headerCellRender,
210
214
  navigatable: !!e.navigatable,
211
- localization: $,
215
+ localization: L,
212
216
  unstyled: S,
213
- headerSelectionValue: !!(e.select && h && Object.keys(e.select).length === w)
217
+ headerSelectionValue: !!(e.select && b.filter((t) => t.rowType === "data").every(
218
+ (t) => e.select && e.dataItemKey && F(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[F(e.dataItemKey)(t.dataItem)] : void 0
219
+ ))
214
220
  }
215
221
  ),
216
222
  filterRow: e.filterable && /* @__PURE__ */ l.createElement(
217
- Et,
223
+ St,
218
224
  {
219
225
  cells: e.cells,
220
- size: E,
226
+ size: w,
221
227
  columns: u.current,
222
228
  filter: e.filter,
223
229
  filterOperators: e.filterOperators || He,
224
230
  sort: e.sort,
225
231
  cellRender: e.filterCellRender,
226
232
  navigatable: !!e.navigatable,
227
- ariaRowIndex: v.length + 1,
228
- localization: $
233
+ ariaRowIndex: x.length + 1,
234
+ localization: L
229
235
  }
230
236
  ) || void 0,
231
- cols: b.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
237
+ cols: y.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
232
238
  }
233
- ), pe = Je.current || 0, et = parseFloat(((e.style || {}).width || "").toString()), tt = (t, r, o, d) => {
239
+ ), lt = Xe.current || 0, at = parseFloat(((e.style || {}).width || "").toString()), rt = (t, r, o, d) => {
234
240
  let i = !1;
235
- const a = e.selectedField ? Ne(e.selectedField, t.dataItem) : e.select && e.dataItemKey ? e.select[Z(e.dataItemKey)(t.dataItem)] : void 0;
241
+ const a = e.selectedField ? Fe(e.selectedField, t.dataItem) : e.select && e.dataItemKey && F(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[F(e.dataItemKey)(t.dataItem)] : void 0;
236
242
  let c = 0;
237
- const { colSpans: f, hiddenColumns: g } = gt({
243
+ const { colSpans: f, hiddenColumns: g } = wt({
238
244
  enabled: e.columnVirtualization,
239
- columns: b,
240
- tableViewPortWidth: et,
241
- scrollLeft: pe,
242
- getColSpan: Fe,
245
+ columns: y,
246
+ tableViewPortWidth: at,
247
+ scrollLeft: lt,
248
+ getColSpan: De,
243
249
  dataItem: t.dataItem
244
- }), R = b.filter((n, y) => !g[y]);
250
+ }), E = y.filter((n, h) => !g[h]);
245
251
  return {
246
- row: b.map((n, y) => {
247
- if (g[y])
252
+ row: y.map((n, h) => {
253
+ if (g[h])
248
254
  return null;
249
255
  if (c > 0)
250
256
  return c--, null;
251
- const { colSpan: H, colsToSkip: A } = Ue(
257
+ const { colSpan: H, colsToSkip: A } = Qe(
252
258
  n,
253
259
  t.dataItem,
254
- R,
255
- y,
260
+ E,
261
+ h,
256
262
  c,
257
- f[y]
263
+ f[h]
258
264
  );
259
265
  c = A;
260
- const _ = n.id ? n.id : y, L = m(s.contentSticky({ locked: n.locked }), n.className), rt = n.left !== void 0 ? { left: n.left, right: n.right } : {};
261
- let Se = !1;
266
+ const M = n.id ? n.id : h, W = m(s.contentSticky({ locked: n.locked }), n.className), ot = n.left !== void 0 ? { left: n.left, right: n.right } : {};
267
+ let Ge = !1;
262
268
  if (n.editable && (e.editable || e.editField)) {
263
- const B = e.editField ? Ne(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[Z(e.dataItemKey)(t.dataItem)] : void 0, Y = typeof B == "boolean" ? B : Array.isArray(B) ? B.indexOf(n.field) > -1 : n.field !== void 0 && B === n.field;
264
- Y && n.columnType === "data" && (Y === !0 || Y === n.field) && (i = !0, Se = !0);
269
+ const B = e.editField ? Fe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[F(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;
270
+ Z && n.columnType === "data" && (Z === !0 || Z === n.field) && (i = !0, Ge = !0);
265
271
  }
266
- const X = n.cell || Se && Ct || Tt, nt = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
272
+ const Y = n.cell || Ge && Rt || Bt, dt = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
267
273
  locked: e.lockGroups,
268
274
  id: q.generateNavigatableId(
269
- `${r}-${String(y)}`,
270
- x,
271
- nt || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
275
+ `${r}-${String(h)}`,
276
+ v,
277
+ dt || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
272
278
  ),
273
279
  colSpan: H,
274
280
  dataItem: t.dataItem,
@@ -277,110 +283,112 @@ const pt = l.forwardRef((e, ee) => {
277
283
  format: n.format,
278
284
  columnType: n.columnType,
279
285
  rowReorderable: G,
280
- className: L,
286
+ className: W,
281
287
  render: e.cellRender,
282
- cells: kt(e.cells, n.cells),
283
- columnIndex: y,
284
- columnsCount: b.length,
288
+ cells: Kt(e.cells, n.cells),
289
+ columnIndex: h,
290
+ columnsCount: y.length,
285
291
  rowType: t.rowType,
286
292
  level: t.level,
287
293
  expanded: t.expanded,
288
294
  dataIndex: t.dataIndex,
289
295
  rowDataIndex: o,
290
- columnPosition: rt,
296
+ columnPosition: ot,
291
297
  style: {},
292
298
  ariaColumnIndex: n.ariaColumnIndex,
293
- isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(y) > -1,
294
- isSorted: !!ke(n.field, e.sort),
299
+ isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(h) > -1,
300
+ isSorted: !!Ne(n.field, e.sort),
295
301
  isInEdit: i,
296
302
  isAlt: d,
297
303
  unstyled: S,
298
- group: t.group
304
+ group: t.group,
305
+ localization: L,
306
+ intl: Ye
299
307
  };
300
308
  return n.cell ? /* @__PURE__ */ l.createElement(
301
- Xt,
309
+ tl,
302
310
  {
303
- key: _,
304
- isClient: Nt(X),
311
+ key: M,
312
+ isClient: Ht(Y),
305
313
  dataItem: P.dataItem,
306
314
  rowDataIndex: P.rowDataIndex,
307
315
  columnIndex: P.columnIndex
308
316
  },
309
- /* @__PURE__ */ l.createElement(X, { ...P })
310
- ) : /* @__PURE__ */ l.createElement(X, { key: _, ...P });
317
+ /* @__PURE__ */ l.createElement(Y, { ...P })
318
+ ) : /* @__PURE__ */ l.createElement(Y, { key: M, ...P });
311
319
  }),
312
320
  isInEdit: i,
313
321
  isSelected: typeof a == "boolean" && a
314
322
  };
315
323
  };
316
- let oe = 0;
317
- if (k && W)
318
- for (let t = 0; t < W.topCacheCount + W.attendedSkip - (e.skip || 0); t++) {
319
- const r = C.shift();
324
+ let de = 0;
325
+ if (N && U)
326
+ for (let t = 0; t < U.topCacheCount + U.attendedSkip - (e.skip || 0); t++) {
327
+ const r = b.shift();
320
328
  if (r)
321
- C.push(r), oe++, r.rowType === "groupHeader" && t--;
329
+ b.push(r), de++, r.rowType === "groupHeader" && t--;
322
330
  else
323
331
  break;
324
332
  }
325
- const de = (t) => t >= C.length - oe;
326
- let ce = e.skip || 0;
327
- const J = [], se = !C.length, me = v.length + (e.filterable ? 1 : 0) + 1;
328
- let T = 0;
329
- if (C.length) {
333
+ const ce = (t) => t >= b.length - de;
334
+ let se = e.skip || 0;
335
+ const Q = [], me = !b.length, ue = x.length + (e.filterable ? 1 : 0) + 1;
336
+ let K = 0;
337
+ if (b.length) {
330
338
  let t = -1, r = 0;
331
- (K || C).forEach((o, d) => {
332
- o.rowType === "data" && (ce++, t++);
333
- const i = ce % 2 === 0, a = e.dataItemKey && Z(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", R = tt(o, f, t, i);
334
- if (T = c + me + r, J.push(
339
+ (V || b).forEach((o, d) => {
340
+ o.rowType === "data" && (se++, t++);
341
+ const i = se % 2 === 0, a = e.dataItemKey && F(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E = rt(o, f, t, i);
342
+ if (K = c + ue + r, Q.push(
335
343
  /* @__PURE__ */ l.createElement(
336
- Ht,
344
+ Vt,
337
345
  {
338
346
  key: f,
339
347
  dataItem: o.dataItem,
340
348
  isAltRow: i,
341
- isInEdit: R.isInEdit,
349
+ isInEdit: E.isInEdit,
342
350
  rowType: o.rowType,
343
351
  isRowReorderable: G,
344
- isHidden: de(d),
352
+ isHidden: ce(d),
345
353
  onClick: null,
346
354
  onDoubleClick: null,
347
355
  selectedField: e.selectedField,
348
356
  rowHeight: e.rowHeight,
349
357
  render: e.rowRender,
350
- ariaRowIndex: T,
358
+ ariaRowIndex: K,
351
359
  absoluteRowIndex: c,
352
- dataIndex: k && !e.groupable ? c : t,
353
- isSelected: R.isSelected
360
+ dataIndex: N && !e.groupable ? c : t,
361
+ isSelected: E.isSelected
354
362
  },
355
- R.row
363
+ E.row
356
364
  )
357
365
  ), e.detail && o.rowType === "data" && o.expanded) {
358
- const n = b.length - (e.expandField || D.enabled ? 1 : 0) - (e.group ? e.group.length : 0) || 1;
359
- r++, T = c + me + r, J.push(
366
+ const n = y.length - (e.expandField || T.enabled ? 1 : 0) - (e.group ? e.group.length : 0) || 1;
367
+ r++, K = c + ue + r, Q.push(
360
368
  /* @__PURE__ */ l.createElement(
361
369
  "tr",
362
370
  {
363
371
  key: g,
364
372
  className: m(s.detailTr({ isAlt: i })),
365
373
  style: {
366
- visibility: de(d) ? "hidden" : "",
374
+ visibility: ce(d) ? "hidden" : "",
367
375
  height: e.detailRowHeight
368
376
  },
369
377
  role: "row",
370
- "aria-rowindex": T
378
+ "aria-rowindex": K
371
379
  },
372
- e.group && e.group.map((y, H) => {
373
- var L;
374
- const A = (L = R == null ? void 0 : R.row[H]) == null ? void 0 : L.props.style, _ = A ? { left: A.left, right: A.right } : {};
380
+ e.group && e.group.map((h, H) => {
381
+ var W;
382
+ const A = (W = E == null ? void 0 : E.row[H]) == null ? void 0 : W.props.style, M = A ? { left: A.left, right: A.right } : {};
375
383
  return /* @__PURE__ */ l.createElement(
376
- De,
384
+ Te,
377
385
  {
378
386
  id: "",
379
387
  dataIndex: o.dataIndex,
380
- field: y.field,
388
+ field: h.field,
381
389
  dataItem: o.dataItem,
382
390
  key: H,
383
- columnPosition: _,
391
+ columnPosition: M,
384
392
  style: {},
385
393
  ariaColumnIndex: 1 + H,
386
394
  isSelected: !1,
@@ -390,22 +398,22 @@ const pt = l.forwardRef((e, ee) => {
390
398
  }
391
399
  );
392
400
  }),
393
- (e.expandField || D.enabled) && /* @__PURE__ */ l.createElement(
394
- zt,
401
+ (e.expandField || T.enabled) && /* @__PURE__ */ l.createElement(
402
+ Wt,
395
403
  {
396
404
  unstyled: S,
397
- id: q.generateNavigatableId(`${g}-dhcell`, x)
405
+ id: q.generateNavigatableId(`${g}-dhcell`, v)
398
406
  }
399
407
  ),
400
408
  /* @__PURE__ */ l.createElement(
401
- Vt,
409
+ Mt,
402
410
  {
403
411
  dataItem: o.dataItem,
404
412
  dataIndex: o.dataIndex,
405
413
  colSpan: n,
406
414
  ariaColIndex: 2 + (e.group ? e.group.length : 0),
407
415
  detail: e.detail,
408
- id: q.generateNavigatableId(`${g}-dcell`, x)
416
+ id: q.generateNavigatableId(`${g}-dcell`, v)
409
417
  }
410
418
  )
411
419
  )
@@ -413,50 +421,50 @@ const pt = l.forwardRef((e, ee) => {
413
421
  }
414
422
  });
415
423
  }
416
- const ue = {
417
- size: E,
418
- total: w,
424
+ const fe = {
425
+ size: w,
426
+ total: I,
419
427
  skip: e.skip || 0,
420
428
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
421
- ...Bt(e.pageable || {})
422
- }, fe = /* @__PURE__ */ l.createElement(Mt, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...ue }) : /* @__PURE__ */ l.createElement(ut, { className: m(s.pager({})), ...ue })), lt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), at = (ve = e.cells) != null && ve.footerCell || u.current.some((t) => {
429
+ ...Ot(e.pageable || {})
430
+ }, ge = /* @__PURE__ */ l.createElement(Jt, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(ht, { className: m(s.pager({})), ...fe })), nt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), it = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
423
431
  var r;
424
432
  return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
425
433
  }) ? /* @__PURE__ */ l.createElement(
426
- It,
434
+ kt,
427
435
  {
428
- size: E,
436
+ size: w,
429
437
  staticHeaders: e.scrollable !== "none",
430
438
  row: /* @__PURE__ */ l.createElement(
431
- Pt,
439
+ zt,
432
440
  {
433
441
  cells: e.cells,
434
- idPrefix: x,
442
+ idPrefix: v,
435
443
  columns: u.current,
436
- ariaRowIndex: T + 1
444
+ ariaRowIndex: K + 1
437
445
  }
438
446
  ),
439
- cols: b.map(lt)
447
+ cols: y.map(nt)
440
448
  }
441
- ) : null, ge = /* @__PURE__ */ l.createElement(_t, null, b.map((t, r) => /* @__PURE__ */ l.createElement(
449
+ ) : null, be = /* @__PURE__ */ l.createElement($t, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
442
450
  "col",
443
451
  {
444
452
  key: r.toString(),
445
- className: ke(t.field, e.sort) ? m(s.sorted({})) : void 0,
453
+ className: Ne(t.field, e.sort) ? m(s.sorted({})) : void 0,
446
454
  width: p(t)
447
455
  }
448
- ))), be = e.reorderable || F, { detail: el, cells: tl, ...ye } = e, Ce = /* @__PURE__ */ l.createElement(
456
+ ))), ye = e.reorderable || D, { detail: il, cells: ol, ...he } = e, Ce = /* @__PURE__ */ l.createElement(
449
457
  "tbody",
450
458
  {
451
459
  role: "rowgroup",
452
460
  className: m(s.tbody({})),
453
- ...ft
461
+ ...Ct
454
462
  },
455
- J
463
+ Q
456
464
  );
457
- let Q = Ce;
458
- if (G && (Q = /* @__PURE__ */ l.createElement(
459
- Yt,
465
+ let X = Ce;
466
+ if (G && (X = /* @__PURE__ */ l.createElement(
467
+ ll,
460
468
  {
461
469
  unstyled: s,
462
470
  columns: u.current,
@@ -468,14 +476,14 @@ const pt = l.forwardRef((e, ee) => {
468
476
  Pe,
469
477
  {
470
478
  gridRef: ee,
471
- gridProps: ye,
472
- columnsRef: j(),
473
- columnsMapRef: v,
474
- dataRef: C,
475
- slicedData: K,
476
- isFixedVirtualScroll: U === M,
477
- id: I,
478
- total: w,
479
+ gridProps: he,
480
+ columnsRef: $(),
481
+ columnsMapRef: x,
482
+ dataRef: b,
483
+ slicedData: V,
484
+ isFixedVirtualScroll: J === j,
485
+ id: R,
486
+ total: I,
479
487
  detailExpandable: !!e.detail
480
488
  },
481
489
  /* @__PURE__ */ l.createElement(ze, null, /* @__PURE__ */ l.createElement(
@@ -483,102 +491,104 @@ const pt = l.forwardRef((e, ee) => {
483
491
  {
484
492
  id: e.id,
485
493
  style: e.style,
486
- className: m(s.wrapper({ size: E }), e.className),
494
+ className: m(s.wrapper({ size: w }), e.className),
487
495
  "aria-label": e.ariaLabel,
488
- ...Ge
496
+ ...ke
489
497
  },
490
- ae,
491
- ne,
498
+ re,
499
+ ie,
492
500
  /* @__PURE__ */ l.createElement(
493
- Lt,
501
+ Ut,
494
502
  {
495
503
  selectable: e.selectable,
496
- className: m(s.table({ size: E }))
504
+ className: m(s.table({ size: w }))
497
505
  },
498
- ge,
499
- ie,
500
- /* @__PURE__ */ l.createElement(Ve, { rowReorderable: G }, Q)
506
+ be,
507
+ oe,
508
+ /* @__PURE__ */ l.createElement(Le, { rowReorderable: G }, X)
501
509
  ),
502
- se && /* @__PURE__ */ l.createElement(Ae, null, z.length ? z : /* @__PURE__ */ l.createElement(Te, null)),
503
- be && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ke, null))
510
+ me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null)),
511
+ ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null))
504
512
  )),
505
- re,
506
- e.pageable && fe
513
+ ne,
514
+ e.pageable && ge,
515
+ /* @__PURE__ */ l.createElement(_e, { loader: e.loader, showLoader: e.showLoader })
507
516
  );
508
- let O = e.style || {};
509
- return k && (O.height || (O = Object.assign({}, O, { height: "450px" }))), /* @__PURE__ */ l.createElement(
517
+ let _ = e.style || {};
518
+ return N && (_.height || (_ = Object.assign({}, _, { height: "450px" }))), /* @__PURE__ */ l.createElement(
510
519
  Pe,
511
520
  {
512
521
  gridRef: ee,
513
- gridProps: ye,
514
- columnsRef: j(),
515
- columnsMapRef: v,
516
- dataRef: C,
517
- slicedData: K,
518
- isFixedVirtualScroll: U === M,
519
- id: I,
520
- total: w,
522
+ gridProps: he,
523
+ columnsRef: $(),
524
+ columnsMapRef: x,
525
+ dataRef: b,
526
+ slicedData: V,
527
+ isFixedVirtualScroll: J === j,
528
+ id: R,
529
+ total: I,
521
530
  detailExpandable: !!e.detail
522
531
  },
523
532
  /* @__PURE__ */ l.createElement(ze, null, /* @__PURE__ */ l.createElement(
524
533
  "div",
525
534
  {
526
535
  id: e.id,
527
- style: O,
536
+ style: _,
528
537
  className: m(
529
538
  s.wrapper({
530
- size: E,
531
- virtual: k
539
+ size: w,
540
+ virtual: N
532
541
  }),
533
542
  e.className
534
543
  ),
535
544
  "aria-label": e.ariaLabel,
536
- ...Ge
545
+ ...ke
537
546
  },
538
- ae,
539
- ne,
547
+ re,
548
+ ie,
540
549
  /* @__PURE__ */ l.createElement(
541
550
  "div",
542
551
  {
543
552
  className: m(s.ariaRoot({})),
544
553
  role: "grid",
545
- "aria-colcount": b.length,
546
- "aria-rowcount": w,
547
- id: I,
548
- "aria-label": $.toLanguageString(Oe, Jt[Oe])
554
+ "aria-colcount": y.length,
555
+ "aria-rowcount": I,
556
+ id: R,
557
+ "aria-label": L.toLanguageString(Oe, pt[Oe])
549
558
  },
550
- ie,
551
- /* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Wt, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
552
- jt,
559
+ oe,
560
+ /* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Xt, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
561
+ Qt,
553
562
  {
554
563
  selectable: e.selectable,
555
564
  tableClassName: m(
556
565
  s.table({
557
- size: E
566
+ size: w
558
567
  })
559
568
  ),
560
- tableStyle: { userSelect: qe }
569
+ tableStyle: { userSelect: tt }
561
570
  },
562
- ge,
563
- /* @__PURE__ */ l.createElement(Ve, { rowReorderable: G }, Q)
564
- ), se && /* @__PURE__ */ l.createElement(Ae, null, z.length ? z : /* @__PURE__ */ l.createElement(Te, null))), k && /* @__PURE__ */ l.createElement(
571
+ be,
572
+ /* @__PURE__ */ l.createElement(Le, { rowReorderable: G }, X)
573
+ ), me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null))), N && /* @__PURE__ */ l.createElement(
565
574
  "div",
566
575
  {
567
576
  className: m(s.heightContainer({})),
568
577
  role: "presentation"
569
578
  },
570
- /* @__PURE__ */ l.createElement($t, { isVirtualScroll: k })
579
+ /* @__PURE__ */ l.createElement(Yt, { isVirtualScroll: N })
571
580
  )))),
572
- at,
573
- be && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ke, null)),
574
- /* @__PURE__ */ l.createElement(Ot, null)
581
+ it,
582
+ ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null)),
583
+ /* @__PURE__ */ l.createElement(jt, null)
575
584
  ),
576
- re,
577
- e.pageable && fe
585
+ ne,
586
+ e.pageable && ge,
587
+ /* @__PURE__ */ l.createElement(_e, { loader: e.loader, showLoader: e.showLoader })
578
588
  ))
579
589
  );
580
590
  });
581
- pt.displayName = "KendoReactGridComponent";
591
+ nl.displayName = "KendoReactGridComponent";
582
592
  export {
583
- pt as GridComponent
593
+ nl as GridComponent
584
594
  };