@progress/kendo-react-grid 9.4.0-develop.23 → 9.4.0-develop.3

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