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

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