@progress/kendo-react-grid 15.1.0-develop.1 → 15.1.0-develop.10

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 (46) hide show
  1. package/GridClientWrapper.js +1 -1
  2. package/GridClientWrapper.mjs +411 -407
  3. package/GridComponent.js +1 -1
  4. package/GridComponent.mjs +305 -290
  5. package/VirtualScroll.d.ts +4 -0
  6. package/VirtualScroll.js +1 -1
  7. package/VirtualScroll.mjs +32 -27
  8. package/cells/groupcell/useGroupCellClientTdProps.js +1 -1
  9. package/cells/groupcell/useGroupCellClientTdProps.mjs +7 -7
  10. package/cells/hierarchycell/GridHierarchyCellToggle.js +1 -1
  11. package/cells/hierarchycell/GridHierarchyCellToggle.mjs +15 -15
  12. package/columnMenu/GridColumnMenuWrapper.js +1 -1
  13. package/columnMenu/GridColumnMenuWrapper.mjs +118 -82
  14. package/components/GridEditDialog.js +1 -1
  15. package/components/GridEditDialog.mjs +19 -19
  16. package/components/VirtualScrollOverlay.d.ts +12 -0
  17. package/components/VirtualScrollOverlay.js +16 -0
  18. package/components/VirtualScrollOverlay.mjs +65 -0
  19. package/components/noRecords/GridNoRecordsContainer.js +1 -1
  20. package/components/noRecords/GridNoRecordsContainer.mjs +10 -9
  21. package/dist/cdn/js/kendo-react-grid.js +1 -1
  22. package/drag/ColumnResize.js +1 -1
  23. package/drag/ColumnResize.mjs +84 -84
  24. package/getRowContents.js +1 -1
  25. package/getRowContents.mjs +12 -12
  26. package/index.d.mts +2 -1
  27. package/index.d.ts +2 -1
  28. package/interfaces/GridProps.d.ts +2 -1
  29. package/interfaces/GridScrollableSettings.d.ts +33 -0
  30. package/interfaces/VirtualScrollInterface.d.ts +2 -0
  31. package/package-metadata.js +1 -1
  32. package/package-metadata.mjs +2 -2
  33. package/package.json +17 -17
  34. package/toolbar-tools/GridToolbarColumnsChooser.js +1 -1
  35. package/toolbar-tools/GridToolbarColumnsChooser.mjs +33 -33
  36. package/toolbar-tools/GridToolbarFilter.js +1 -1
  37. package/toolbar-tools/GridToolbarFilter.mjs +207 -194
  38. package/toolbar-tools/GridToolbarSort.js +1 -1
  39. package/toolbar-tools/GridToolbarSort.mjs +84 -101
  40. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.js +1 -1
  41. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.mjs +50 -46
  42. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.d.ts +0 -1
  43. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.js +1 -1
  44. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.mjs +10 -19
  45. package/utils/index.js +1 -1
  46. package/utils/index.mjs +161 -161
package/GridComponent.mjs CHANGED
@@ -6,85 +6,86 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as n from "react";
9
- import { uGrid as At, hasValidLicense as Ft, getLicenseMessage as Ot, validatePackage as _t, getter as p, classNames as c, WatermarkOverlay as Ze } from "@progress/kendo-react-common";
10
- import { getDetailExpandableOptions as Vt, getGroupExpandableOptions as jt, getSelectionOptions as $t, tableKeyboardNavigationTools as j, Pager as Zt, tableKeyboardNavigationBodyAttributes as Ut, tableKeyboardNavigationScopeAttributes as Ue } from "@progress/kendo-react-data-tools";
11
- import { GridHierarchyCell as qt } from "./cells/hierarchycell/GridHierarchyCell.mjs";
12
- import { Header as Jt } from "./header/Header.mjs";
13
- import { HeaderRow as Qt } from "./header/HeaderRow.mjs";
14
- import { FilterRow as Xt } from "./header/FilterRow.mjs";
15
- import { GroupPanel as Yt } from "./header/GroupPanel.mjs";
16
- import { Footer as pt } from "./footer/Footer.mjs";
17
- import { isRowReorderEnabled as ea, getRowSpanOptions as qe, getColumnWidth as ee, isSorted as ta, flatData as aa, autoGenerateColumns as la, mapColumns as na, clientColumn as ia, getColSpan as ra, readColumns as oa, getFlatColumnsState as da, getColumnState as te } from "./utils/index.mjs";
18
- import { normalizeAutoProcessData as sa, processData as ma } from "./utils/dataProcessing.mjs";
19
- import { orderBy as Je } from "@progress/kendo-data-query";
20
- import { GridGroupCell as ca } from "./cells/groupcell/GridGroupCell.mjs";
21
- import { GridHeaderGroupSpacerCell as ua } from "./header/GridHeaderGroupSpacerCell.mjs";
22
- import { GridHeaderSelectionCell as fa } from "./header/GridHeaderSelectionCell.mjs";
23
- import { GridNoRecords as Qe } from "./components/noRecords/GridNoRecords.mjs";
24
- import { operators as Xe } from "./filterCommon.mjs";
25
- import { FooterRow as ga } from "./footer/FooterRow.mjs";
26
- import { normalize as ba } from "./paging/GridPagerSettings.mjs";
27
- import { packageMetadata as ae } from "./package-metadata.mjs";
28
- import { GridDetailCell as ha } from "./cells/detailcell/GridDetailCell.mjs";
29
- import { GridNoRecordsContainer as Ye } from "./components/noRecords/GridNoRecordsContainer.mjs";
30
- import { GridClientWrapper as pe } from "./GridClientWrapper.mjs";
31
- import { GridColGroup as wa } from "./components/colGroup/GridColGroup.mjs";
32
- import { GridTable as Ca } from "./components/table/GridTable.mjs";
33
- import { GridDropClue as et } from "./components/GridDropClue.mjs";
34
- import { GridDragClue as tt } from "./components/GridDragClue.mjs";
35
- import { GridTableBody as at } from "./components/table/GridTableBody.mjs";
36
- import { PagerContainer as Ra } from "./components/PagerContainer.mjs";
37
- import { GridTableScrollable as ya } from "./components/table/GridTableScrollable.mjs";
38
- import { GridElementContainer as lt } from "./components/GridElementContainer.mjs";
39
- import { GridContainerElementContainer as Ea } from "./components/GridContainerElementContainer.mjs";
40
- import { VirtualScrollHeightContainer as Sa } from "./components/VirtualScrollHeightContainer.mjs";
41
- import { gridAriaLabel as $, messages as nt } from "./messages/index.mjs";
42
- import { GridReorderableRowsContainer as va } from "./components/GridDraggableRowsContainer.mjs";
43
- import { GridRowReorderCell as Ga } from "./cells/rowreordercell/GridRowReorderCell.mjs";
44
- import { GridHeaderRowReorderCell as Ia } from "./header/client/GridHeaderRowReorderCell.mjs";
45
- import { GridLoader as it } from "./components/GridLoader.mjs";
46
- import { gridPremiumFeatures as ka } from "./utils/premium.mjs";
47
- import { LocalizationService as xa, IntlService as Ha } from "@progress/kendo-react-intl";
48
- import { getVirtualCellsToRender as La } from "./utils/virtualColumns.mjs";
49
- import { GridEditDialog as Na } from "./components/GridEditDialog.mjs";
50
- import { GridSelectionCellServer as Da } from "./cells/selectioncell/GridSelectionCellServer.mjs";
51
- import { GridSelectionCell as Ta } from "./cells/selectioncell/GridSelectionCell.mjs";
52
- import { GridHierarchyCellServer as Pa } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
53
- import { GridRowReorderCellServer as Ba } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
54
- import { GridDetailCellServer as Ma } from "./cells/detailcell/GridDetailCellServer.mjs";
55
- import { GridGroupCellServer as za } from "./cells/groupcell/GridGroupCellServer.mjs";
56
- import { GridPinCell as Ka } from "./cells/pincell/GridPinCell.mjs";
57
- import { GridPinCellServer as Wa } from "./cells/pincell/GridPinCellServer.mjs";
58
- import { GridHeaderPinCell as Aa } from "./header/client/GridHeaderPinCell.mjs";
59
- import { StackedModeColGroup as Fa } from "./stacked/StackedModeComponents.mjs";
60
- import { GridRowRenderer as Oa } from "./rows/GridRowRenderer.mjs";
61
- import { GridDetailRowRenderer as _a } from "./rows/GridDetailRowRenderer.mjs";
62
- import { StickyGroupTable as rt } from "./components/StickyGroupTable.mjs";
63
- import { PinnedRowsTable as ot } from "./components/PinnedRowsTable.mjs";
64
- import { getRowContents as Va } from "./getRowContents.mjs";
65
- const ja = n.forwardRef((e, dt) => {
66
- var De, Te, Pe, Be, Me, ze, Ke, We, Ae, Fe, Oe, _e, Ve, je;
9
+ import { uGrid as Ot, hasValidLicense as Vt, getLicenseMessage as _t, validatePackage as jt, getter as te, classNames as c, WatermarkOverlay as Ye } from "@progress/kendo-react-common";
10
+ import { getDetailExpandableOptions as $t, getGroupExpandableOptions as Zt, getSelectionOptions as Ut, tableKeyboardNavigationTools as $, Pager as Yt, tableKeyboardNavigationBodyAttributes as qt, tableKeyboardNavigationScopeAttributes as qe } from "@progress/kendo-react-data-tools";
11
+ import { GridHierarchyCell as Jt } from "./cells/hierarchycell/GridHierarchyCell.mjs";
12
+ import { Header as Qt } from "./header/Header.mjs";
13
+ import { HeaderRow as Xt } from "./header/HeaderRow.mjs";
14
+ import { FilterRow as pt } from "./header/FilterRow.mjs";
15
+ import { GroupPanel as ea } from "./header/GroupPanel.mjs";
16
+ import { Footer as ta } from "./footer/Footer.mjs";
17
+ import { isRowReorderEnabled as aa, getRowSpanOptions as Je, getColumnWidth as ae, isSorted as la, flatData as na, autoGenerateColumns as ia, mapColumns as ra, clientColumn as oa, getColSpan as da, readColumns as sa, getFlatColumnsState as ma, getColumnState as le } from "./utils/index.mjs";
18
+ import { normalizeAutoProcessData as ca, processData as ua } from "./utils/dataProcessing.mjs";
19
+ import { orderBy as Qe } from "@progress/kendo-data-query";
20
+ import { GridGroupCell as fa } from "./cells/groupcell/GridGroupCell.mjs";
21
+ import { GridHeaderGroupSpacerCell as ga } from "./header/GridHeaderGroupSpacerCell.mjs";
22
+ import { GridHeaderSelectionCell as ba } from "./header/GridHeaderSelectionCell.mjs";
23
+ import { GridNoRecords as Xe } from "./components/noRecords/GridNoRecords.mjs";
24
+ import { operators as pe } from "./filterCommon.mjs";
25
+ import { FooterRow as ha } from "./footer/FooterRow.mjs";
26
+ import { normalize as wa } from "./paging/GridPagerSettings.mjs";
27
+ import { packageMetadata as ne } from "./package-metadata.mjs";
28
+ import { GridDetailCell as Ca } from "./cells/detailcell/GridDetailCell.mjs";
29
+ import { GridNoRecordsContainer as et } from "./components/noRecords/GridNoRecordsContainer.mjs";
30
+ import { GridClientWrapper as tt } from "./GridClientWrapper.mjs";
31
+ import { GridColGroup as ya } from "./components/colGroup/GridColGroup.mjs";
32
+ import { GridTable as Ra } from "./components/table/GridTable.mjs";
33
+ import { GridDropClue as at } from "./components/GridDropClue.mjs";
34
+ import { GridDragClue as lt } from "./components/GridDragClue.mjs";
35
+ import { GridTableBody as nt } from "./components/table/GridTableBody.mjs";
36
+ import { PagerContainer as Ea } from "./components/PagerContainer.mjs";
37
+ import { GridTableScrollable as Sa } from "./components/table/GridTableScrollable.mjs";
38
+ import { GridElementContainer as it } from "./components/GridElementContainer.mjs";
39
+ import { GridContainerElementContainer as va } from "./components/GridContainerElementContainer.mjs";
40
+ import { VirtualScrollHeightContainer as Ga } from "./components/VirtualScrollHeightContainer.mjs";
41
+ import { VirtualScrollOverlay as ka } from "./components/VirtualScrollOverlay.mjs";
42
+ import { gridAriaLabel as Z, messages as rt } from "./messages/index.mjs";
43
+ import { GridReorderableRowsContainer as Ia } from "./components/GridDraggableRowsContainer.mjs";
44
+ import { GridRowReorderCell as xa } from "./cells/rowreordercell/GridRowReorderCell.mjs";
45
+ import { GridHeaderRowReorderCell as Ha } from "./header/client/GridHeaderRowReorderCell.mjs";
46
+ import { GridLoader as ot } from "./components/GridLoader.mjs";
47
+ import { gridPremiumFeatures as La } from "./utils/premium.mjs";
48
+ import { LocalizationService as Na, IntlService as Da } from "@progress/kendo-react-intl";
49
+ import { getVirtualCellsToRender as Ta } from "./utils/virtualColumns.mjs";
50
+ import { GridEditDialog as Pa } from "./components/GridEditDialog.mjs";
51
+ import { GridSelectionCellServer as Ba } from "./cells/selectioncell/GridSelectionCellServer.mjs";
52
+ import { GridSelectionCell as Ma } from "./cells/selectioncell/GridSelectionCell.mjs";
53
+ import { GridHierarchyCellServer as Wa } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
54
+ import { GridRowReorderCellServer as za } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
55
+ import { GridDetailCellServer as Ka } from "./cells/detailcell/GridDetailCellServer.mjs";
56
+ import { GridGroupCellServer as Aa } from "./cells/groupcell/GridGroupCellServer.mjs";
57
+ import { GridPinCell as Fa } from "./cells/pincell/GridPinCell.mjs";
58
+ import { GridPinCellServer as Oa } from "./cells/pincell/GridPinCellServer.mjs";
59
+ import { GridHeaderPinCell as Va } from "./header/client/GridHeaderPinCell.mjs";
60
+ import { StackedModeColGroup as _a } from "./stacked/StackedModeComponents.mjs";
61
+ import { GridRowRenderer as ja } from "./rows/GridRowRenderer.mjs";
62
+ import { GridDetailRowRenderer as $a } from "./rows/GridDetailRowRenderer.mjs";
63
+ import { StickyGroupTable as dt } from "./components/StickyGroupTable.mjs";
64
+ import { PinnedRowsTable as st } from "./components/PinnedRowsTable.mjs";
65
+ import { getRowContents as Za } from "./getRowContents.mjs";
66
+ const Ua = n.forwardRef((e, mt) => {
67
+ var Pe, Be, Me, We, ze, Ke, Ae, Fe, Oe, Ve, _e, je, $e, Ze;
67
68
  const G = e.id + "-role-element-id", E = e.navigatable ? G : "";
68
- let w = e.columnsState || [];
69
- const st = (t, i, r, o, a, l, d) => {
70
- const h = [], F = aa(
71
- h,
69
+ let C = e.columnsState || [];
70
+ const ct = (t, i, r, o, a, l, d) => {
71
+ const w = [], O = na(
72
+ w,
72
73
  t,
73
74
  i,
74
75
  { index: r },
75
76
  o !== void 0,
76
77
  a,
77
78
  l,
78
- It.defaultExpand,
79
+ xt.defaultExpand,
79
80
  d
80
81
  );
81
- return { flattedData: h, resolvedGroupsCount: F };
82
- }, mt = (t) => {
82
+ return { flattedData: w, resolvedGroupsCount: O };
83
+ }, ut = (t) => {
83
84
  const i = t.filter(
84
85
  (r) => r && r.type && r.type.displayName === "KendoReactGridColumn"
85
86
  );
86
- return oa(i, w, { prevId: 0, idPrefix: E });
87
- }, ct = () => {
87
+ return sa(i, C, { prevId: 0, idPrefix: E });
88
+ }, ft = () => {
88
89
  const t = [], i = (r, o) => r == null ? void 0 : r.forEach((a) => {
89
90
  const l = a.hidden || o;
90
91
  t.push({
@@ -92,9 +93,9 @@ const ja = n.forwardRef((e, dt) => {
92
93
  hidden: l
93
94
  }), i(a.children, l);
94
95
  });
95
- return i(w, !1), t;
96
- }, ut = (t) => {
97
- const i = ct();
96
+ return i(C, !1), t;
97
+ }, gt = (t) => {
98
+ const i = ft();
98
99
  return [
99
100
  t.filter((r) => {
100
101
  var o;
@@ -105,9 +106,9 @@ const ja = n.forwardRef((e, dt) => {
105
106
  return r.hidden || ((o = i.find((a) => a.id === r.id)) == null ? void 0 : o.hidden);
106
107
  })
107
108
  ];
108
- }, ft = (t, i) => {
109
- s = mt(t), s.filter((a) => !a.hidden).length === 0 && (s = la(
110
- C,
109
+ }, bt = (t, i) => {
110
+ s = ut(t), s.filter((a) => !a.hidden).length === 0 && (s = ia(
111
+ y,
111
112
  e.group,
112
113
  {
113
114
  column: v.column
@@ -116,10 +117,10 @@ const ja = n.forwardRef((e, dt) => {
116
117
  prevId: 0,
117
118
  idPrefix: E
118
119
  }
119
- )), bt(s, i);
120
- const [r, o] = ut(s);
121
- s = r, ie = o, N = na(s, w, !0), re = s.map(ia);
122
- }, gt = (t, i) => {
120
+ )), wt(s, i);
121
+ const [r, o] = gt(s);
122
+ s = r, oe = o, N = ra(s, C, !0), de = s.map(oa);
123
+ }, ht = (t, i) => {
123
124
  const r = (o) => {
124
125
  var l;
125
126
  const a = i.find((d) => d.id === o.id);
@@ -127,19 +128,19 @@ const ja = n.forwardRef((e, dt) => {
127
128
  const d = { ...a };
128
129
  return d.children = (l = o.children) == null ? void 0 : l.map(r), d;
129
130
  }
130
- return te(o);
131
+ return le(o);
131
132
  };
132
- w = t.filter((o) => o.parentIndex === -1).map(r);
133
- }, bt = (t, i) => {
133
+ C = t.filter((o) => o.parentIndex === -1).map(r);
134
+ }, wt = (t, i) => {
134
135
  t.filter((l) => l.columnType === "checkbox").forEach((l) => {
135
- l.width = l.width || "50px", l.defaultCell = e.isClient ? Ta : Da, l.defaultHeaderCell = fa, l._type = "edit";
136
- }), k !== void 0 && t.filter((l) => l.columnType === "reorder").forEach((l) => {
137
- l.width = l.width || "50px", l.defaultCell = e.isClient ? Ga : Ba, l.defaultHeaderCell = Ia, l.sortable = !1, l.filterable = !1, l.editable = !1;
136
+ l.width = l.width || "50px", l.defaultCell = e.isClient ? Ma : Ba, l.defaultHeaderCell = ba, l._type = "edit";
137
+ }), I !== void 0 && t.filter((l) => l.columnType === "reorder").forEach((l) => {
138
+ l.width = l.width || "50px", l.defaultCell = e.isClient ? xa : za, l.defaultHeaderCell = Ha, l.sortable = !1, l.filterable = !1, l.editable = !1;
138
139
  }), e.pinnable && t.filter((l) => l.columnType === "pin").forEach((l) => {
139
- l.width = l.width || "48px", l.defaultCell = e.isClient ? Ka : Wa, l.defaultHeaderCell = Aa, l.sortable = !1, l.filterable = !1, l.editable = !1;
140
+ l.width = l.width || "48px", l.defaultCell = e.isClient ? Fa : Oa, l.defaultHeaderCell = Va, l.sortable = !1, l.filterable = !1, l.editable = !1;
140
141
  });
141
- const r = da(w);
142
- gt(t, r);
142
+ const r = ma(C);
143
+ ht(t, r);
143
144
  const o = {
144
145
  id: "",
145
146
  resizable: !0,
@@ -165,46 +166,46 @@ const ja = n.forwardRef((e, dt) => {
165
166
  const l = {
166
167
  ...o,
167
168
  _type: "expand",
168
- id: j.generateNavigatableId(`${a++}`, "expand", "column"),
169
- defaultCell: e.isClient ? qt : Pa,
169
+ id: $.generateNavigatableId(`${a++}`, "expand", "column"),
170
+ defaultCell: e.isClient ? Jt : Wa,
170
171
  field: v.column,
171
172
  headerClassName: c(m.hierarchyCell({}))
172
173
  };
173
- t.unshift(l), w.unshift(r.find((d) => d.id === l.id) || te(l));
174
+ t.unshift(l), C.unshift(r.find((d) => d.id === l.id) || le(l));
174
175
  }
175
176
  for (let l = 0; l < i; l++) {
176
177
  const d = {
177
178
  ...o,
178
179
  isAccessible: !1,
179
- defaultCell: e.isClient ? ca : za,
180
- defaultHeaderCell: ua,
181
- id: j.generateNavigatableId(`${a++}`, "group", "column"),
180
+ defaultCell: e.isClient ? fa : Aa,
181
+ defaultHeaderCell: ga,
182
+ id: $.generateNavigatableId(`${a++}`, "group", "column"),
182
183
  field: "value",
183
184
  locked: e.lockGroups
184
185
  };
185
- t.unshift(d), w.unshift(r.find((h) => h.id === d.id) || te(d));
186
+ t.unshift(d), C.unshift(r.find((w) => w.id === d.id) || le(d));
186
187
  }
187
188
  t.slice(a).forEach((l) => {
188
- l.parentIndex >= 0 && (l.parentIndex += a), l.rowSpannable = l.rowSpannable !== void 0 ? qe(l.rowSpannable) : me;
189
+ l.parentIndex >= 0 && (l.parentIndex += a), l.rowSpannable = l.rowSpannable !== void 0 ? Je(l.rowSpannable) : ue;
189
190
  });
190
- }, le = () => e.isClient ? s : re, ne = (t) => {
191
+ }, ie = () => e.isClient ? s : de, re = (t) => {
191
192
  const i = [];
192
193
  let r = null, o = 0;
193
194
  if (u.forEach((a, l) => {
194
- let d = parseFloat((a.width || "").toString()) || 10;
195
+ let d = parseFloat(((a == null ? void 0 : a.width) || "").toString()) || 10;
195
196
  if (typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.minResizableWidth) && (a == null ? void 0 : a.width) < (a == null ? void 0 : a.minResizableWidth) && (d = a == null ? void 0 : a.minResizableWidth), typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.minWidth) && (a == null ? void 0 : a.width) < (a == null ? void 0 : a.minWidth) ? d = a == null ? void 0 : a.minWidth : typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.maxWidth) && (a == null ? void 0 : a.width) > (a == null ? void 0 : a.maxWidth) && (d = a == null ? void 0 : a.maxWidth), o) {
196
197
  o--, r && (r.width += d);
197
198
  return;
198
199
  }
199
- const h = Math.min(ra(a, t), u.length - l);
200
- o = h - 1, r = {
200
+ const w = Math.min(da(a, t), u.length - l);
201
+ o = w - 1, r = {
201
202
  width: d,
202
- colSpan: h,
203
+ colSpan: w,
203
204
  columnIndex: l
204
205
  }, i.push(r);
205
206
  }), e.columnVirtualization) {
206
- const a = wt.current || 0, l = Ct.current || parseFloat(((e.style || {}).width || "").toString());
207
- return La({
207
+ const a = yt.current || 0, l = Rt.current || parseFloat(((e.style || {}).width || "").toString());
208
+ return Ta({
208
209
  cellModels: i,
209
210
  columns: u,
210
211
  tableViewPortWidth: l,
@@ -212,9 +213,9 @@ const ja = n.forwardRef((e, dt) => {
212
213
  });
213
214
  }
214
215
  return i;
215
- }, ht = () => {
216
+ }, Ct = () => {
216
217
  const { pageable: t, take: i, pageSize: r } = e;
217
- if (!R)
218
+ if (!b)
218
219
  return 0;
219
220
  if (!t) {
220
221
  if (i)
@@ -222,14 +223,14 @@ const ja = n.forwardRef((e, dt) => {
222
223
  if (r)
223
224
  return r;
224
225
  }
225
- const o = e.rowHeight || yt.current, a = Rt.current;
226
+ const o = e.rowHeight || St.current, a = Et.current;
226
227
  return a && o ? Math.ceil(a / o * 1.5) : 0;
227
228
  };
228
- let f = [], Z, s = [], ie = [], re = [], N = [[]];
229
- const wt = e.scrollLeftRef || { current: 0 }, Ct = e.widthRef || { current: 0 }, Rt = e.containerHeightRef || { current: 0 }, yt = e.minRowHeightRef || { current: 0 }, D = e.localization || new xa(e.language), Et = e.intl || new Ha((De = e.locale) != null ? De : "en"), I = e.unstyled, m = I && I.uGrid ? I.uGrid : At, k = ea(e.rowReorderable), R = e.scrollable === "virtual" || e.scrollable === void 0 && e.isClient && Ft(ae) || !1, b = e.dataLayoutMode === "stacked", S = ((Te = e.group) == null ? void 0 : Te.length) || 0, oe = Ot(ae), x = sa(e.autoProcessData);
230
- let C, y;
231
- if (Array.isArray(e.data) ? (C = e.data, y = (Pe = e.total) != null ? Pe : C.length) : (C = ((Be = e.data) == null ? void 0 : Be.data) || [], y = (Ke = (ze = e.total) != null ? ze : (Me = e.data) == null ? void 0 : Me.total) != null ? Ke : C.length), x) {
232
- const t = ma(C, {
229
+ let f = [], U, s = [], oe = [], de = [], N = [[]];
230
+ const yt = e.scrollLeftRef || { current: 0 }, Rt = e.widthRef || { current: 0 }, Et = e.containerHeightRef || { current: 0 }, St = e.minRowHeightRef || { current: 0 }, D = e.localization || new Na(e.language), vt = e.intl || new Da((Pe = e.locale) != null ? Pe : "en"), k = e.unstyled, m = k && k.uGrid ? k.uGrid : Ot, I = aa(e.rowReorderable), T = typeof e.scrollable == "object" ? e.scrollable.mode : e.scrollable, Y = typeof e.scrollable == "object" && e.scrollable.scrollbar === "proxied", b = T === "virtual" || T === void 0 && e.isClient && Vt(ne) || !1, h = e.dataLayoutMode === "stacked", S = ((Be = e.group) == null ? void 0 : Be.length) || 0, se = _t(ne), x = ca(e.autoProcessData);
231
+ let y, R;
232
+ if (Array.isArray(e.data) ? (y = e.data, R = (Me = e.total) != null ? Me : y.length) : (y = ((We = e.data) == null ? void 0 : We.data) || [], R = (Ae = (Ke = e.total) != null ? Ke : (ze = e.data) == null ? void 0 : ze.total) != null ? Ae : y.length), x) {
233
+ const t = ua(y, {
233
234
  autoProcessData: x,
234
235
  group: e.group,
235
236
  sort: e.sort,
@@ -239,191 +240,191 @@ const ja = n.forwardRef((e, dt) => {
239
240
  take: e.take,
240
241
  skip: e.skip,
241
242
  total: e.total,
242
- isVirtualScroll: R,
243
+ isVirtualScroll: b,
243
244
  includePaging: !0
244
245
  });
245
- C = t.data, y = t.total;
246
+ y = t.data, R = t.total;
246
247
  }
247
- const B = C.length === y, { size: g } = e, St = typeof e.groupable == "object" && e.groupable.footer || "none", vt = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, Gt = typeof e.groupable == "object" && !!e.groupable.stickyFooters, M = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, v = Vt(!!e.detail), It = jt(
248
+ const M = y.length === R, { size: g } = e, Gt = typeof e.groupable == "object" && e.groupable.footer || "none", kt = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, It = typeof e.groupable == "object" && !!e.groupable.stickyFooters, W = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, v = $t(!!e.detail), xt = Zt(
248
249
  typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
249
- ), z = !!((We = e.group) != null && We.length), { resolvedGroupsCount: kt, flattedData: xt } = st(
250
- C,
251
- St,
252
- B ? 0 : e.skip || 0,
250
+ ), z = !!((Fe = e.group) != null && Fe.length), { resolvedGroupsCount: Ht, flattedData: Lt } = ct(
251
+ y,
252
+ Gt,
253
+ M ? 0 : e.skip || 0,
253
254
  e.group,
254
255
  e.detailExpand,
255
256
  e.groupExpand,
256
257
  e.dataItemKey
257
258
  );
258
- f = xt;
259
- const U = ht(), K = ((Ae = e.virtualSkipRef) == null ? void 0 : Ae.current) || 0;
260
- let de = y;
261
- if (R) {
259
+ f = Lt;
260
+ const q = Ct(), K = ((Oe = e.virtualSkipRef) == null ? void 0 : Oe.current) || 0;
261
+ let me = R;
262
+ if (b) {
262
263
  let t = e.skip || 0;
263
- if ((z || e.pageable) && (t = K, de = f.length), B || z || e.pageable)
264
- if (U === 0) {
264
+ if ((z || e.pageable) && (t = K, me = f.length), M || z || e.pageable)
265
+ if (q === 0) {
265
266
  const i = Math.min(e.take || e.pageSize || 20, f.length);
266
- Z = f.slice(t, t + i);
267
+ U = f.slice(t, t + i);
267
268
  } else
268
- Z = f.slice(t, t + U);
269
+ U = f.slice(t, t + q);
269
270
  }
270
- const se = $t(e.selectable), me = qe(e.rowSpannable), Ht = se && se.drag ? "none" : void 0, W = n.useMemo(() => n.Children.toArray(e.children), [e.children]);
271
- ft(W, kt);
272
- const q = n.useMemo(() => {
273
- const t = ka(e, s);
271
+ const ce = Ut(e.selectable), ue = Je(e.rowSpannable), Nt = ce && ce.drag ? "none" : void 0, A = n.useMemo(() => n.Children.toArray(e.children), [e.children]);
272
+ bt(A, Ht);
273
+ const J = n.useMemo(() => {
274
+ const t = La(e, s);
274
275
  return {
275
276
  premium: t.length > 0,
276
277
  features: t
277
278
  };
278
- }, [e, s]), ce = n.useMemo(() => q.premium ? !_t(ae, { component: "Grid", features: q.features }) : !1, [q.premium]), ue = W.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? n.cloneElement(t, { ...t.props, _ariaControls: G, ariaLabel: "Top toolbar" }) : null), A = W.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), fe = W.filter(
279
+ }, [e, s]), fe = n.useMemo(() => J.premium ? !jt(ne, { component: "Grid", features: J.features }) : !1, [J.premium]), ge = A.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? n.cloneElement(t, { ...t.props, _ariaControls: G, ariaLabel: "Top toolbar" }) : null), F = A.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), be = A.filter(
279
280
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
280
- ), u = s.filter((t) => t.children.length === 0), ge = M && !b && /* @__PURE__ */ n.createElement(Yt, { columns: le(), group: e.group || [], ariaControls: G }), be = b ? null : /* @__PURE__ */ n.createElement(
281
- Jt,
281
+ ), u = s.filter((t) => t.children.length === 0), he = W && !h && /* @__PURE__ */ n.createElement(ea, { columns: ie(), group: e.group || [], ariaControls: G }), we = h ? null : /* @__PURE__ */ n.createElement(
282
+ Qt,
282
283
  {
283
284
  size: g,
284
- staticHeaders: e.scrollable !== "none",
285
- draggable: e.reorderable || M,
285
+ staticHeaders: T !== "none",
286
+ draggable: e.reorderable || W,
286
287
  headerRow: /* @__PURE__ */ n.createElement(
287
- Qt,
288
+ Xt,
288
289
  {
289
290
  cells: e.cells,
290
291
  sort: e.sort,
291
292
  sortable: e.sortable,
292
293
  group: e.group || [],
293
- groupable: M,
294
+ groupable: W,
294
295
  filter: e.filter,
295
296
  filterable: e.filterable,
296
- filterOperators: e.filterOperators || Xe,
297
+ filterOperators: e.filterOperators || pe,
297
298
  columnMenu: e.columnMenu,
298
299
  columnMenuIcon: e.columnMenuIcon,
299
300
  columns: s,
300
301
  columnsMap: N,
301
302
  navigatable: !!e.navigatable,
302
303
  localization: D,
303
- unstyled: I,
304
- columnsState: w,
304
+ unstyled: k,
305
+ columnsState: C,
305
306
  headerSelectionValue: !!(e.select && f.filter((t) => t.rowType === "data").every(
306
- (t) => e.select && e.dataItemKey && p(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[p(e.dataItemKey)(t.dataItem)] : void 0
307
+ (t) => e.select && e.dataItemKey && te(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[te(e.dataItemKey)(t.dataItem)] : void 0
307
308
  ))
308
309
  }
309
310
  ),
310
311
  filterRow: e.filterable && /* @__PURE__ */ n.createElement(
311
- Xt,
312
+ pt,
312
313
  {
313
314
  cells: e.cells,
314
315
  size: g,
315
316
  columns: s,
316
317
  filter: e.filter,
317
- filterOperators: e.filterOperators || Xe,
318
+ filterOperators: e.filterOperators || pe,
318
319
  sort: e.sort,
319
320
  navigatable: !!e.navigatable,
320
321
  ariaRowIndex: N.length + 1,
321
322
  localization: D
322
323
  }
323
324
  ) || void 0,
324
- cols: u.map((t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: ee(t) }))
325
+ cols: u.map((t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: ae(t) }))
325
326
  }
326
- ), he = u.findIndex((t) => typeof t.colSpan == "function") > -1;
327
- let we;
328
- he || (we = ne(null));
329
- const J = ((Fe = e.editable) == null ? void 0 : Fe.mode) === "dialog", Lt = (Oe = e.editable) == null ? void 0 : Oe.enabled, Ce = (Ve = (_e = e.editZoneRef) == null ? void 0 : _e.current) != null ? Ve : "body", Nt = Ce === "pinned" ? void 0 : e.edit, Re = Ce === "body" ? void 0 : e.edit, T = {
327
+ ), Ce = u.findIndex((t) => typeof t.colSpan == "function") > -1;
328
+ let ye;
329
+ Ce || (ye = re(null));
330
+ const Q = ((Ve = e.editable) == null ? void 0 : Ve.mode) === "dialog", Dt = (_e = e.editable) == null ? void 0 : _e.enabled, Re = ($e = (je = e.editZoneRef) == null ? void 0 : je.current) != null ? $e : "body", Tt = Re === "pinned" ? void 0 : e.edit, Ee = Re === "body" ? void 0 : e.edit, P = {
330
331
  leafColumns: u,
331
- columnsState: w,
332
- cellsToRender: we,
333
- getCellsToRender: ne,
334
- hasDynamicColSpan: he,
332
+ columnsState: C,
333
+ cellsToRender: ye,
334
+ getCellsToRender: re,
335
+ hasDynamicColSpan: Ce,
335
336
  idPrefix: E,
336
337
  gridClasses: m,
337
- unstyled: I,
338
+ unstyled: k,
338
339
  localization: D,
339
- intl: Et,
340
+ intl: vt,
340
341
  cells: e.cells,
341
- isRowReorderable: k,
342
+ isRowReorderable: I,
342
343
  sort: e.sort,
343
344
  editable: e.editable,
344
345
  isClient: e.isClient,
345
- isEditDialog: J,
346
+ isEditDialog: Q,
346
347
  dataItemKey: e.dataItemKey,
347
348
  select: e.select,
348
349
  highlight: e.highlight
349
- }, Dt = 0;
350
- let Q = null;
351
- const ye = (t) => t >= f.length - Dt, X = [], Ee = !f.length, Se = n.useMemo(() => {
350
+ }, Pt = 0;
351
+ let X = null;
352
+ const Se = (t) => t >= f.length - Pt, p = [], ve = !f.length, Ge = n.useMemo(() => {
352
353
  var i;
353
354
  const t = e.pinnedTopRows || [];
354
- return x && ((i = e.sort) != null && i.length) ? Je([...t], e.sort) : t;
355
- }, [e.pinnedTopRows, e.sort, x]), ve = n.useMemo(() => {
355
+ return x && ((i = e.sort) != null && i.length) ? Qe([...t], e.sort) : t;
356
+ }, [e.pinnedTopRows, e.sort, x]), ke = n.useMemo(() => {
356
357
  var i;
357
358
  const t = e.pinnedBottomRows || [];
358
- return x && ((i = e.sort) != null && i.length) ? Je([...t], e.sort) : t;
359
- }, [e.pinnedBottomRows, e.sort, x]), Tt = e.pinnable && Se.length > 0, Pt = e.pinnable && ve.length > 0;
360
- let P = 0;
361
- const Bt = n.useMemo(() => {
359
+ return x && ((i = e.sort) != null && i.length) ? Qe([...t], e.sort) : t;
360
+ }, [e.pinnedBottomRows, e.sort, x]), Bt = e.pinnable && Ge.length > 0, Mt = e.pinnable && ke.length > 0;
361
+ let B = 0;
362
+ const Wt = n.useMemo(() => {
362
363
  const t = /* @__PURE__ */ new Set();
363
364
  return e.pinnedTopRows && e.pinnedTopRows.forEach((i) => t.add(i)), e.pinnedBottomRows && e.pinnedBottomRows.forEach((i) => t.add(i)), t;
364
365
  }, [e.pinnedTopRows, e.pinnedBottomRows]);
365
366
  if (f.length) {
366
367
  const t = N.length + (e.filterable ? 1 : 0) + 1;
367
368
  let i = e.skip || 0, r = -1, o = 0;
368
- const a = me.enabled ? {} : void 0;
369
- if (R) {
369
+ const a = ue.enabled ? {} : void 0;
370
+ if (b) {
370
371
  if (K > 0) {
371
372
  const l = f.slice(0, K).filter((d) => d.rowType === "data").length;
372
373
  r += l, i += K;
373
374
  }
374
- !e.pageable && B && (r += e.skip || 0);
375
+ !e.pageable && M && (r += e.skip || 0);
375
376
  }
376
- (Z || f).forEach((l, d) => {
377
- var $e;
377
+ (U || f).forEach((l, d) => {
378
+ var Ue;
378
379
  l.rowType === "data" && r++;
379
- const h = l.dataIndex % 2 !== 0, F = e.dataItemKey && p(e.dataItemKey)(l.dataItem), O = d + i, _ = F || "ai" + O, L = Va(T, Nt, l, _, r, h, a), Kt = l.rowType === "data" ? Bt.has(l.dataItem) : !1;
380
- if (P = O + t + o, J && Lt && L.isInEdit && (Q = l.dataItem), X.push(
380
+ const w = l.dataIndex % 2 !== 0, O = e.dataItemKey && te(e.dataItemKey)(l.dataItem), V = d + i, _ = O || "ai" + V, L = Za(P, Tt, l, _, r, w, a), At = l.rowType === "data" ? Wt.has(l.dataItem) : !1;
381
+ if (B = V + t + o, Q && Dt && L.isInEdit && (X = l.dataItem), p.push(
381
382
  /* @__PURE__ */ n.createElement(
382
- Oa,
383
+ ja,
383
384
  {
384
385
  key: _,
385
- isStackedMode: b,
386
+ isStackedMode: h,
386
387
  item: l,
387
388
  rowId: _,
388
389
  dataIndex: r,
389
390
  idPrefix: E,
390
- ariaRowIndex: P,
391
- absoluteRowIndex: O,
392
- isAltRow: h,
393
- isHidden: ye(d),
394
- isRowReorderable: k,
391
+ ariaRowIndex: B,
392
+ absoluteRowIndex: V,
393
+ isAltRow: w,
394
+ isHidden: Se(d),
395
+ isRowReorderable: I,
395
396
  rowHeight: e.rowHeight,
396
397
  rows: e.rows,
397
398
  leafColumns: u,
398
399
  groupLevelCount: S,
399
400
  stackedLayoutSettings: e.stackedLayoutSettings,
400
401
  cells: e.cells,
401
- editMode: ($e = e.editable) == null ? void 0 : $e.mode,
402
+ editMode: (Ue = e.editable) == null ? void 0 : Ue.mode,
402
403
  isSelected: L.isSelected,
403
404
  isHighlighted: L.isHighlighted,
404
- isInEdit: L.isInEdit && !J,
405
+ isInEdit: L.isInEdit && !Q,
405
406
  preparedCells: L.row,
406
407
  showDetailToggle: !!e.detail && !!v.enabled,
407
408
  isDetailExpanded: !!l.expanded,
408
409
  detailExpandField: v.column,
409
- isPinned: Kt
410
+ isPinned: At
410
411
  }
411
412
  )
412
413
  ), e.detail && l.rowType === "data" && l.expanded) {
413
414
  o++;
414
- const V = _ + "_1";
415
- P = O + t + o;
416
- const Wt = e.isClient ? ha : Ma;
417
- X.push(
415
+ const j = _ + "_1";
416
+ B = V + t + o;
417
+ const Ft = e.isClient ? Ca : Ka;
418
+ p.push(
418
419
  /* @__PURE__ */ n.createElement(
419
- _a,
420
+ $a,
420
421
  {
421
- key: V,
422
- isStackedMode: b,
423
- detailRowId: V,
424
- isHidden: ye(d),
422
+ key: j,
423
+ isStackedMode: h,
424
+ detailRowId: j,
425
+ isHidden: Se(d),
425
426
  detailRowHeight: e.detailRowHeight,
426
- ariaRowIndex: P,
427
+ ariaRowIndex: B,
427
428
  item: l,
428
429
  groupLevelCount: S,
429
430
  groupDescriptors: e.group,
@@ -432,120 +433,120 @@ const ja = n.forwardRef((e, dt) => {
432
433
  leafColumns: u,
433
434
  detailExpandableEnabled: !!v.enabled,
434
435
  preparedCells: L.row,
435
- DetailCell: Wt,
436
+ DetailCell: Ft,
436
437
  detail: e.detail,
437
- detailCellId: j.generateNavigatableId(`${V}-dcell`, E),
438
- detailHierarchyCellId: v.enabled ? j.generateNavigatableId(`${V}-dhcell`, E) : void 0,
439
- detailTrClassName: c(m.detailTr({ isAlt: h })),
440
- unstyled: I
438
+ detailCellId: $.generateNavigatableId(`${j}-dcell`, E),
439
+ detailHierarchyCellId: v.enabled ? $.generateNavigatableId(`${j}-dhcell`, E) : void 0,
440
+ detailTrClassName: c(m.detailTr({ isAlt: w })),
441
+ unstyled: k
441
442
  }
442
443
  )
443
444
  );
444
445
  }
445
446
  });
446
447
  }
447
- const Ge = {
448
+ const Ie = {
448
449
  size: g,
449
- total: y,
450
+ total: R,
450
451
  skip: e.skip || 0,
451
452
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
452
- ...ba(e.pageable || {})
453
- }, Ie = /* @__PURE__ */ n.createElement(Ra, null, e.pager ? /* @__PURE__ */ n.createElement(e.pager, { ...Ge }) : /* @__PURE__ */ n.createElement(Zt, { className: c(m.pager({})), ...Ge })), Mt = (t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: ee(t) }), ke = (je = e.cells) != null && je.footerCell || s.some((t) => {
453
+ ...wa(e.pageable || {})
454
+ }, xe = /* @__PURE__ */ n.createElement(Ea, null, e.pager ? /* @__PURE__ */ n.createElement(e.pager, { ...Ie }) : /* @__PURE__ */ n.createElement(Yt, { className: c(m.pager({})), ...Ie })), zt = (t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: ae(t) }), He = (Ze = e.cells) != null && Ze.footerCell || s.some((t) => {
454
455
  var i;
455
456
  return !!((i = t.cells) != null && i.footerCell);
456
457
  }) ? /* @__PURE__ */ n.createElement(
457
- pt,
458
+ ta,
458
459
  {
459
460
  size: g,
460
- staticHeaders: e.scrollable !== "none",
461
+ staticHeaders: T !== "none",
461
462
  row: /* @__PURE__ */ n.createElement(
462
- ga,
463
+ ha,
463
464
  {
464
465
  cells: e.cells,
465
466
  idPrefix: E,
466
467
  columns: s,
467
- ariaRowIndex: P + 1
468
+ ariaRowIndex: B + 1
468
469
  }
469
470
  ),
470
- cols: u.map(Mt)
471
+ cols: u.map(zt)
471
472
  }
472
- ) : null, H = b ? /* @__PURE__ */ n.createElement(Fa, { groupLevelCount: S }) : /* @__PURE__ */ n.createElement(wa, null, u.map((t, i) => /* @__PURE__ */ n.createElement(
473
+ ) : null, H = h ? /* @__PURE__ */ n.createElement(_a, { groupLevelCount: S }) : /* @__PURE__ */ n.createElement(ya, null, u.map((t, i) => /* @__PURE__ */ n.createElement(
473
474
  "col",
474
475
  {
475
476
  key: i.toString(),
476
- className: ta(t.field, e.sort) ? c(m.sorted({})) : void 0,
477
- width: ee(t)
477
+ className: la(t.field, e.sort) ? c(m.sorted({})) : void 0,
478
+ width: ae(t)
478
479
  }
479
- ))), xe = e.reorderable || M, { detail: $a, cells: Za, rows: Ua, ...zt } = e, He = /* @__PURE__ */ n.createElement(
480
+ ))), Le = e.reorderable || W, { detail: Ya, cells: qa, rows: Ja, ...Kt } = e, Ne = /* @__PURE__ */ n.createElement(
480
481
  "tbody",
481
482
  {
482
483
  role: "rowgroup",
483
484
  className: c(m.tbody({})),
484
- ...Ut
485
+ ...qt
485
486
  },
486
- X
487
- ), Le = Q ? /* @__PURE__ */ n.createElement(Na, { columns: u, customEditDialog: e.editDialog, dataItem: Q }) : null;
488
- let Y = He;
489
- k && (Y = /* @__PURE__ */ n.createElement(
490
- va,
487
+ p
488
+ ), De = X ? /* @__PURE__ */ n.createElement(Pa, { columns: u, customEditDialog: e.editDialog, dataItem: X }) : null;
489
+ let ee = Ne;
490
+ I && (ee = /* @__PURE__ */ n.createElement(
491
+ Ia,
491
492
  {
492
493
  unstyled: m,
493
494
  columns: s,
494
495
  rowReorderSettings: e.rowReorderable
495
496
  },
496
- He
497
+ Ne
497
498
  ));
498
- const Ne = {
499
- gridRef: dt,
499
+ const Te = {
500
+ gridRef: mt,
500
501
  innerGrid: e.innerGrid,
501
- gridProps: zt,
502
- columnsRef: le(),
503
- hiddenColumnsRef: ie,
502
+ gridProps: Kt,
503
+ columnsRef: ie(),
504
+ hiddenColumnsRef: oe,
504
505
  columnsMapRef: N,
505
- columnsState: w,
506
+ columnsState: C,
506
507
  dataRef: f,
507
508
  id: G,
508
- virtualTotal: de,
509
- isAllData: B,
510
- virtualPageSize: U,
511
- isVirtualScroll: R,
509
+ virtualTotal: me,
510
+ isAllData: M,
511
+ virtualPageSize: q,
512
+ isVirtualScroll: b,
512
513
  detailExpandable: !!e.detail
513
514
  };
514
- return e.scrollable === "none" ? /* @__PURE__ */ n.createElement(pe, { ...Ne }, /* @__PURE__ */ n.createElement(lt, null, /* @__PURE__ */ n.createElement(
515
+ return T === "none" ? /* @__PURE__ */ n.createElement(tt, { ...Te }, /* @__PURE__ */ n.createElement(it, null, /* @__PURE__ */ n.createElement(
515
516
  "div",
516
517
  {
517
518
  id: e.id,
518
519
  style: e.style,
519
- className: c(m.wrapper({ size: g, isStackedMode: b }), e.className),
520
- ...Ue
520
+ className: c(m.wrapper({ size: g, isStackedMode: h }), e.className),
521
+ ...qe
521
522
  },
522
- ue,
523
523
  ge,
524
+ he,
524
525
  /* @__PURE__ */ n.createElement(
525
526
  "div",
526
527
  {
527
528
  className: c(m.ariaRoot({})),
528
529
  role: "grid",
529
530
  "aria-colcount": u.length,
530
- "aria-rowcount": y,
531
+ "aria-rowcount": R,
531
532
  id: G,
532
- "aria-label": D.toLanguageString($, nt[$])
533
+ "aria-label": D.toLanguageString(Z, rt[Z])
533
534
  },
534
535
  /* @__PURE__ */ n.createElement(
535
- Ca,
536
+ Ra,
536
537
  {
537
538
  selectable: e.selectable,
538
539
  tableClassName: c(m.table({ size: g }))
539
540
  },
540
541
  H,
541
- be,
542
- /* @__PURE__ */ n.createElement(at, { rowReorderable: k }, Y),
543
- ke
542
+ we,
543
+ /* @__PURE__ */ n.createElement(nt, { rowReorderable: I }, ee),
544
+ He
544
545
  )
545
546
  ),
546
- Ee && /* @__PURE__ */ n.createElement(Ye, null, A.length ? A : /* @__PURE__ */ n.createElement(Qe, null)),
547
- xe && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(et, null), /* @__PURE__ */ n.createElement(tt, null))
548
- )), fe, e.pageable && Ie, /* @__PURE__ */ n.createElement(it, { loader: e.loader, showLoader: e.showLoader }), Le, ce && /* @__PURE__ */ n.createElement(Ze, { message: oe })) : /* @__PURE__ */ n.createElement(pe, { ...Ne }, /* @__PURE__ */ n.createElement(lt, null, /* @__PURE__ */ n.createElement(
547
+ ve && /* @__PURE__ */ n.createElement(et, null, F.length ? F : /* @__PURE__ */ n.createElement(Xe, null)),
548
+ Le && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(at, null), /* @__PURE__ */ n.createElement(lt, null))
549
+ )), be, e.pageable && xe, /* @__PURE__ */ n.createElement(ot, { loader: e.loader, showLoader: e.showLoader }), De, fe && /* @__PURE__ */ n.createElement(Ye, { message: se })) : /* @__PURE__ */ n.createElement(tt, { ...Te }, /* @__PURE__ */ n.createElement(it, null, /* @__PURE__ */ n.createElement(
549
550
  "div",
550
551
  {
551
552
  id: e.id,
@@ -553,36 +554,36 @@ const ja = n.forwardRef((e, dt) => {
553
554
  className: c(
554
555
  m.wrapper({
555
556
  size: g,
556
- virtual: R,
557
- isStackedMode: b
557
+ virtual: b,
558
+ isStackedMode: h
558
559
  }),
559
560
  e.className
560
561
  ),
561
- ...Ue
562
+ ...qe
562
563
  },
563
- ue,
564
564
  ge,
565
+ he,
565
566
  /* @__PURE__ */ n.createElement(
566
567
  "div",
567
568
  {
568
569
  className: c(m.ariaRoot({})),
569
570
  role: "grid",
570
571
  "aria-colcount": u.length,
571
- "aria-rowcount": y,
572
+ "aria-rowcount": R,
572
573
  id: G,
573
- "aria-label": D.toLanguageString($, nt[$])
574
+ "aria-label": D.toLanguageString(Z, rt[Z])
574
575
  },
575
- be,
576
- e.isClient && Tt && /* @__PURE__ */ n.createElement(
577
- ot,
576
+ we,
577
+ e.isClient && Bt && /* @__PURE__ */ n.createElement(
578
+ st,
578
579
  {
579
580
  size: g,
580
581
  colGroups: H,
581
- dataRowContext: T,
582
- edit: Re,
582
+ dataRowContext: P,
583
+ edit: Ee,
583
584
  position: "top",
584
- pinnedItems: Se,
585
- isStackedMode: b,
585
+ pinnedItems: Ge,
586
+ isStackedMode: h,
586
587
  groupLevelCount: S,
587
588
  stackedLayoutSettings: e.stackedLayoutSettings,
588
589
  rowHeight: e.rowHeight,
@@ -590,61 +591,75 @@ const ja = n.forwardRef((e, dt) => {
590
591
  selectable: e.selectable
591
592
  }
592
593
  ),
593
- /* @__PURE__ */ n.createElement("div", { className: c(m.container({})), role: "presentation" }, e.isClient && z && vt && /* @__PURE__ */ n.createElement(
594
- rt,
594
+ /* @__PURE__ */ n.createElement("div", { className: c(m.container({})), role: "presentation" }, e.isClient && z && kt && /* @__PURE__ */ n.createElement(
595
+ dt,
595
596
  {
596
597
  size: g,
597
598
  colGroups: H,
598
- dataRowContext: T,
599
+ dataRowContext: P,
599
600
  position: "top",
600
- isStackedMode: b,
601
+ isStackedMode: h,
601
602
  groupLevelCount: S,
602
603
  stackedLayoutSettings: e.stackedLayoutSettings,
603
604
  rowHeight: e.rowHeight
604
605
  }
605
- ), /* @__PURE__ */ n.createElement(Ea, null, /* @__PURE__ */ n.createElement("div", { className: c(m.content({})), role: "presentation" }, /* @__PURE__ */ n.createElement("div", { className: c(m.tableWrap({})), role: "presentation" }, /* @__PURE__ */ n.createElement(
606
- ya,
607
- {
608
- selectable: e.selectable,
609
- tableClassName: c(
610
- m.table({
611
- size: g
612
- })
613
- ),
614
- tableStyle: { userSelect: Ht }
615
- },
616
- H,
617
- /* @__PURE__ */ n.createElement(at, { rowReorderable: k }, Y)
618
- ), Ee && /* @__PURE__ */ n.createElement(Ye, null, A.length ? A : /* @__PURE__ */ n.createElement(Qe, null))), R && /* @__PURE__ */ n.createElement(
606
+ ), /* @__PURE__ */ n.createElement(va, null, /* @__PURE__ */ n.createElement(
619
607
  "div",
620
608
  {
621
- className: c(m.heightContainer({})),
609
+ className: c(
610
+ m.content({}),
611
+ b && Y && "k-grid-content--hide-scrollbar"
612
+ ),
613
+ style: {
614
+ ...b && Y && { overflowY: "scroll", scrollbarWidth: "none" }
615
+ },
622
616
  role: "presentation"
623
617
  },
624
- /* @__PURE__ */ n.createElement(Sa, { isVirtualScroll: R })
625
- ))), e.isClient && z && Gt && /* @__PURE__ */ n.createElement(
626
- rt,
618
+ /* @__PURE__ */ n.createElement("div", { className: c(m.tableWrap({})), role: "presentation" }, /* @__PURE__ */ n.createElement(
619
+ Sa,
620
+ {
621
+ selectable: e.selectable,
622
+ tableClassName: c(
623
+ m.table({
624
+ size: g
625
+ })
626
+ ),
627
+ tableStyle: { userSelect: Nt }
628
+ },
629
+ H,
630
+ /* @__PURE__ */ n.createElement(nt, { rowReorderable: I }, ee)
631
+ ), ve && /* @__PURE__ */ n.createElement(et, null, F.length ? F : /* @__PURE__ */ n.createElement(Xe, null))),
632
+ b && /* @__PURE__ */ n.createElement(
633
+ "div",
634
+ {
635
+ className: c(m.heightContainer({})),
636
+ role: "presentation"
637
+ },
638
+ /* @__PURE__ */ n.createElement(Ga, { isVirtualScroll: b })
639
+ )
640
+ )), e.isClient && b && Y && /* @__PURE__ */ n.createElement(ka, null), e.isClient && z && It && /* @__PURE__ */ n.createElement(
641
+ dt,
627
642
  {
628
643
  size: g,
629
644
  colGroups: H,
630
- dataRowContext: T,
645
+ dataRowContext: P,
631
646
  position: "bottom",
632
- isStackedMode: b,
647
+ isStackedMode: h,
633
648
  groupLevelCount: S,
634
649
  stackedLayoutSettings: e.stackedLayoutSettings,
635
650
  rowHeight: e.rowHeight
636
651
  }
637
652
  )),
638
- e.isClient && Pt && /* @__PURE__ */ n.createElement(
639
- ot,
653
+ e.isClient && Mt && /* @__PURE__ */ n.createElement(
654
+ st,
640
655
  {
641
656
  size: g,
642
657
  colGroups: H,
643
- dataRowContext: T,
644
- edit: Re,
658
+ dataRowContext: P,
659
+ edit: Ee,
645
660
  position: "bottom",
646
- pinnedItems: ve,
647
- isStackedMode: b,
661
+ pinnedItems: ke,
662
+ isStackedMode: h,
648
663
  groupLevelCount: S,
649
664
  stackedLayoutSettings: e.stackedLayoutSettings,
650
665
  rowHeight: e.rowHeight,
@@ -652,17 +667,17 @@ const ja = n.forwardRef((e, dt) => {
652
667
  selectable: e.selectable
653
668
  }
654
669
  ),
655
- ke,
656
- xe && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(et, null), /* @__PURE__ */ n.createElement(tt, null)),
657
- ce && /* @__PURE__ */ n.createElement(Ze, { message: oe })
670
+ He,
671
+ Le && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(at, null), /* @__PURE__ */ n.createElement(lt, null)),
672
+ fe && /* @__PURE__ */ n.createElement(Ye, { message: se })
658
673
  ),
659
- fe,
660
- e.pageable && Ie,
661
- /* @__PURE__ */ n.createElement(it, { loader: e.loader, showLoader: e.showLoader }),
662
- Le
674
+ be,
675
+ e.pageable && xe,
676
+ /* @__PURE__ */ n.createElement(ot, { loader: e.loader, showLoader: e.showLoader }),
677
+ De
663
678
  )));
664
679
  });
665
- ja.displayName = "KendoReactGridComponent";
680
+ Ua.displayName = "KendoReactGridComponent";
666
681
  export {
667
- ja as GridComponent
682
+ Ua as GridComponent
668
683
  };