@progress/kendo-react-grid 11.4.0-develop.6 → 11.4.0-develop.8

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