@progress/kendo-react-grid 11.0.0-develop.11 → 11.0.0-develop.13

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