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

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