@progress/kendo-react-grid 11.0.0-develop.9 → 11.0.1-develop.1

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