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

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