@progress/kendo-react-grid 11.0.0-develop.6 → 11.0.0-develop.7

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