@progress/kendo-react-grid 12.3.0-develop.9 → 13.0.0

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