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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GridComponent.mjs CHANGED
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as l from "react";
9
- import { uGrid as ua, hasValidLicense as ma, getLicenseMessage as ca, validatePackage as fa, getter as we, classNames as b, WatermarkOverlay as gt } from "@progress/kendo-react-common";
9
+ import { uGrid as ua, hasValidLicense as ma, getLicenseMessage as ca, validatePackage as fa, getter as Ce, classNames as b, WatermarkOverlay as gt } from "@progress/kendo-react-common";
10
10
  import { getDetailExpandableOptions as ga, getGroupExpandableOptions as ba, getSelectionOptions as ha, tableKeyboardNavigationTools as de, Pager as Ca, tableKeyboardNavigationBodyAttributes as wa, tableKeyboardNavigationScopeAttributes as bt } from "@progress/kendo-react-data-tools";
11
11
  import { GridHierarchyCell as ya } from "./cells/hierarchycell/GridHierarchyCell.mjs";
12
12
  import { Header as Ra } from "./header/Header.mjs";
@@ -14,56 +14,57 @@ import { HeaderRow as Ea } from "./header/HeaderRow.mjs";
14
14
  import { FilterRow as Ga } from "./header/FilterRow.mjs";
15
15
  import { GroupPanel as va } from "./header/GroupPanel.mjs";
16
16
  import { Footer as Sa } from "./footer/Footer.mjs";
17
- import { isRowReorderEnabled as ka, getRowSpanOptions as ht, mapColumns as Ct, getColumnWidth as ye, isSorted as xa, flatData as Ia, autoGenerateColumns as Ha, clientColumn as Na, getColSpan as Ma, readColumns as Ta, getFlatColumnsState as Pa, getColumnState as Re } from "./utils/index.mjs";
18
- import { normalizeAutoProcessData as Da, processData as Wa } from "./utils/dataProcessing.mjs";
17
+ import { isRowReorderEnabled as ka, getRowSpanOptions as ht, mapColumns as Ct, getColumnWidth as we, isSorted as xa, flatData as Ia, autoGenerateColumns as Ha, clientColumn as Na, getColSpan as Ma, readColumns as Ta, getFlatColumnsState as Pa, getColumnState as ye } from "./utils/index.mjs";
18
+ import { getScrollableOverlaySettings as Da } from "./utils/proxiedScrollOverlay.mjs";
19
+ import { normalizeAutoProcessData as Ba, processData as Wa } from "./utils/dataProcessing.mjs";
19
20
  import { orderBy as wt } from "@progress/kendo-data-query";
20
- import { GridGroupCell as Ba } from "./cells/groupcell/GridGroupCell.mjs";
21
+ import { GridGroupCell as La } from "./cells/groupcell/GridGroupCell.mjs";
21
22
  import { GridHeaderGroupSpacerCell as yt } from "./header/GridHeaderGroupSpacerCell.mjs";
22
- import { GridHeaderSelectionCell as La } from "./header/GridHeaderSelectionCell.mjs";
23
+ import { GridHeaderSelectionCell as za } from "./header/GridHeaderSelectionCell.mjs";
23
24
  import { GridNoRecords as Rt } from "./components/noRecords/GridNoRecords.mjs";
24
25
  import { operators as Et } from "./filterCommon.mjs";
25
- import { FooterRow as za } from "./footer/FooterRow.mjs";
26
- import { normalize as Fa } from "./paging/GridPagerSettings.mjs";
27
- import { packageMetadata as Ee } from "./package-metadata.mjs";
28
- import { GridDetailCell as Ka } from "./cells/detailcell/GridDetailCell.mjs";
26
+ import { FooterRow as Fa } from "./footer/FooterRow.mjs";
27
+ import { normalize as Ka } from "./paging/GridPagerSettings.mjs";
28
+ import { packageMetadata as Re } from "./package-metadata.mjs";
29
+ import { GridDetailCell as Aa } from "./cells/detailcell/GridDetailCell.mjs";
29
30
  import { GridNoRecordsContainer as Gt } from "./components/noRecords/GridNoRecordsContainer.mjs";
30
31
  import { GridClientWrapper as vt } from "./GridClientWrapper.mjs";
31
- import { GridColGroup as Aa } from "./components/colGroup/GridColGroup.mjs";
32
- import { GridTable as Oa } from "./components/table/GridTable.mjs";
32
+ import { GridColGroup as Oa } from "./components/colGroup/GridColGroup.mjs";
33
+ import { GridTable as ja } from "./components/table/GridTable.mjs";
33
34
  import { GridDropClue as St } from "./components/GridDropClue.mjs";
34
35
  import { GridDragClue as kt } from "./components/GridDragClue.mjs";
35
36
  import { GridTableBody as xt } from "./components/table/GridTableBody.mjs";
36
- import { PagerContainer as ja } from "./components/PagerContainer.mjs";
37
- import { GridTableScrollable as Va } from "./components/table/GridTableScrollable.mjs";
37
+ import { PagerContainer as Va } from "./components/PagerContainer.mjs";
38
+ import { GridTableScrollable as _a } from "./components/table/GridTableScrollable.mjs";
38
39
  import { GridElementContainer as It } from "./components/GridElementContainer.mjs";
39
- import { GridContainerElementContainer as _a } from "./components/GridContainerElementContainer.mjs";
40
- import { VirtualScrollHeightContainer as $a } from "./components/VirtualScrollHeightContainer.mjs";
41
- import { VirtualScrollOverlay as Za } from "./components/VirtualScrollOverlay.mjs";
42
- import { gridAriaLabel as se, messages as Ge, groupColumnTitle as Ht } from "./messages/index.mjs";
43
- import { GridReorderableRowsContainer as Ua } from "./components/GridDraggableRowsContainer.mjs";
44
- import { GridRowReorderCell as Ya } from "./cells/rowreordercell/GridRowReorderCell.mjs";
45
- import { GridHeaderRowReorderCell as qa } from "./header/client/GridHeaderRowReorderCell.mjs";
40
+ import { GridContainerElementContainer as $a } from "./components/GridContainerElementContainer.mjs";
41
+ import { VirtualScrollHeightContainer as Za } from "./components/VirtualScrollHeightContainer.mjs";
42
+ import { VirtualScrollOverlay as Ua } from "./components/VirtualScrollOverlay.mjs";
43
+ import { gridAriaLabel as se, messages as Ee, groupColumnTitle as Ht } from "./messages/index.mjs";
44
+ import { GridReorderableRowsContainer as Ya } from "./components/GridDraggableRowsContainer.mjs";
45
+ import { GridRowReorderCell as qa } from "./cells/rowreordercell/GridRowReorderCell.mjs";
46
+ import { GridHeaderRowReorderCell as Ja } from "./header/client/GridHeaderRowReorderCell.mjs";
46
47
  import { GridLoader as Nt } from "./components/GridLoader.mjs";
47
- import { gridPremiumFeatures as Ja } from "./utils/premium.mjs";
48
- import { LocalizationService as Qa, IntlService as Xa } from "@progress/kendo-react-intl";
49
- import { getVirtualCellsToRender as pa } from "./utils/virtualColumns.mjs";
50
- import { GridEditDialog as el } from "./components/GridEditDialog.mjs";
51
- import { GridSelectionCellServer as tl } from "./cells/selectioncell/GridSelectionCellServer.mjs";
52
- import { GridSelectionCell as al } from "./cells/selectioncell/GridSelectionCell.mjs";
53
- import { GridHierarchyCellServer as ll } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
54
- import { GridRowReorderCellServer as nl } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
55
- import { GridDetailCellServer as il } from "./cells/detailcell/GridDetailCellServer.mjs";
56
- import { GridGroupCellServer as ol } from "./cells/groupcell/GridGroupCellServer.mjs";
57
- import { GridPinCell as rl } from "./cells/pincell/GridPinCell.mjs";
58
- import { GridPinCellServer as dl } from "./cells/pincell/GridPinCellServer.mjs";
59
- import { GridHeaderPinCell as sl } from "./header/client/GridHeaderPinCell.mjs";
60
- import { StackedModeColGroup as ul } from "./stacked/StackedModeComponents.mjs";
61
- import { GridRowRenderer as ml } from "./rows/GridRowRenderer.mjs";
62
- import { GridDetailRowRenderer as cl } from "./rows/GridDetailRowRenderer.mjs";
48
+ import { gridPremiumFeatures as Qa } from "./utils/premium.mjs";
49
+ import { LocalizationService as Xa, IntlService as pa } from "@progress/kendo-react-intl";
50
+ import { getVirtualCellsToRender as el } from "./utils/virtualColumns.mjs";
51
+ import { GridEditDialog as tl } from "./components/GridEditDialog.mjs";
52
+ import { GridSelectionCellServer as al } from "./cells/selectioncell/GridSelectionCellServer.mjs";
53
+ import { GridSelectionCell as ll } from "./cells/selectioncell/GridSelectionCell.mjs";
54
+ import { GridHierarchyCellServer as nl } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
55
+ import { GridRowReorderCellServer as il } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
56
+ import { GridDetailCellServer as ol } from "./cells/detailcell/GridDetailCellServer.mjs";
57
+ import { GridGroupCellServer as rl } from "./cells/groupcell/GridGroupCellServer.mjs";
58
+ import { GridPinCell as dl } from "./cells/pincell/GridPinCell.mjs";
59
+ import { GridPinCellServer as sl } from "./cells/pincell/GridPinCellServer.mjs";
60
+ import { GridHeaderPinCell as ul } from "./header/client/GridHeaderPinCell.mjs";
61
+ import { StackedModeColGroup as ml } from "./stacked/StackedModeComponents.mjs";
62
+ import { GridRowRenderer as cl } from "./rows/GridRowRenderer.mjs";
63
+ import { GridDetailRowRenderer as fl } from "./rows/GridDetailRowRenderer.mjs";
63
64
  import { StickyGroupTable as Mt } from "./components/StickyGroupTable.mjs";
64
65
  import { PinnedRowsTable as Tt } from "./components/PinnedRowsTable.mjs";
65
- import { getRowContents as fl } from "./getRowContents.mjs";
66
- const gl = l.forwardRef((e, Pt) => {
66
+ import { getRowContents as gl } from "./getRowContents.mjs";
67
+ const bl = l.forwardRef((e, Pt) => {
67
68
  var Qe, Xe, pe, et, tt, at, lt, nt, it, ot, rt, dt, st, ut, mt, ct;
68
69
  const D = e.id + "-role-element-id", N = e.navigatable ? D : "";
69
70
  let w = e.columnsState || [];
@@ -80,12 +81,12 @@ const gl = l.forwardRef((e, Pt) => {
80
81
  u
81
82
  );
82
83
  return { flattedData: f, resolvedGroupsCount: x };
83
- }, Wt = (t) => {
84
+ }, Bt = (t) => {
84
85
  const i = t.filter(
85
86
  (o) => o && o.type && o.type.displayName === "KendoReactGridColumn"
86
87
  );
87
88
  return Ta(i, w, { prevId: 0, idPrefix: N });
88
- }, Bt = () => {
89
+ }, Wt = () => {
89
90
  const t = [], i = (o, r) => o == null ? void 0 : o.forEach((a) => {
90
91
  const d = a.hidden || r;
91
92
  t.push({
@@ -95,7 +96,7 @@ const gl = l.forwardRef((e, Pt) => {
95
96
  });
96
97
  return i(w, !1), t;
97
98
  }, Lt = (t) => {
98
- const i = Bt();
99
+ const i = Wt();
99
100
  return [
100
101
  t.filter((o) => {
101
102
  var r;
@@ -107,7 +108,7 @@ const gl = l.forwardRef((e, Pt) => {
107
108
  })
108
109
  ];
109
110
  }, zt = (t, i) => {
110
- m = Wt(t), m.filter((a) => !a.hidden).length === 0 && (m = Ha(
111
+ m = Bt(t), m.filter((a) => !a.hidden).length === 0 && (m = Ha(
111
112
  k,
112
113
  e.group,
113
114
  {
@@ -128,7 +129,7 @@ const gl = l.forwardRef((e, Pt) => {
128
129
  const u = { ...a };
129
130
  return u.children = (d = r.children) == null ? void 0 : d.map(o), u;
130
131
  }
131
- return Re(r);
132
+ return ye(r);
132
133
  };
133
134
  w = t.filter((r) => r.parentIndex === -1).map(o);
134
135
  }, Kt = (t, i) => {
@@ -140,11 +141,11 @@ const gl = l.forwardRef((e, Pt) => {
140
141
  });
141
142
  }
142
143
  t.filter((n) => n.columnType === "checkbox").forEach((n) => {
143
- n.width = n.width || "50px", n.defaultCell = e.isClient ? al : tl, n.defaultHeaderCell = La, n._type = "edit", n.sortable = !1, n.filterable = !1, n.editable = !1;
144
+ n.width = n.width || "50px", n.defaultCell = e.isClient ? ll : al, n.defaultHeaderCell = za, n._type = "edit", n.sortable = !1, n.filterable = !1, n.editable = !1;
144
145
  }), L !== void 0 && t.filter((n) => n.columnType === "reorder").forEach((n) => {
145
- n.width = n.width || "50px", n.defaultCell = e.isClient ? Ya : nl, n.defaultHeaderCell = qa, n.sortable = !1, n.filterable = !1, n.editable = !1;
146
+ n.width = n.width || "50px", n.defaultCell = e.isClient ? qa : il, n.defaultHeaderCell = Ja, n.sortable = !1, n.filterable = !1, n.editable = !1;
146
147
  }), e.pinnable && t.filter((n) => n.columnType === "pin").forEach((n) => {
147
- n.width = n.width || "48px", n.defaultCell = e.isClient ? rl : dl, n.defaultHeaderCell = sl, n.sortable = !1, n.filterable = !1, n.editable = !1;
148
+ n.width = n.width || "48px", n.defaultCell = e.isClient ? dl : sl, n.defaultHeaderCell = ul, n.sortable = !1, n.filterable = !1, n.editable = !1;
148
149
  });
149
150
  const r = Pa(w);
150
151
  Ft(t, r);
@@ -174,38 +175,38 @@ const gl = l.forwardRef((e, Pt) => {
174
175
  ...a,
175
176
  _type: "expand",
176
177
  id: de.generateNavigatableId(`${d++}`, "expand", "column"),
177
- defaultCell: e.isClient ? ya : ll,
178
+ defaultCell: e.isClient ? ya : nl,
178
179
  field: T.column,
179
180
  headerClassName: b(c.hierarchyCell({}))
180
181
  };
181
- t.unshift(n), w.unshift(r.find((g) => g.id === n.id) || Re(n));
182
+ t.unshift(n), w.unshift(r.find((g) => g.id === n.id) || ye(n));
182
183
  }
183
- const u = E === "compact", f = E === "singleColumn", x = E === "multipleColumns", A = u || f ? Math.min(i, 1) : i, O = (n, g) => {
184
- var v, s, V, re;
184
+ const u = R === "compact", f = R === "singleColumn", x = R === "multipleColumns", A = u || f ? Math.min(i, 1) : i, O = (n, g) => {
185
+ var G, s, V, re;
185
186
  if (n === "singleColumn")
186
- return W.toLanguageString(Ht, Ge[Ht]);
187
+ return B.toLanguageString(Ht, Ee[Ht]);
187
188
  if (n !== "multipleColumns")
188
189
  return a.title;
189
- const j = (s = (v = e.group) == null ? void 0 : v[g]) == null ? void 0 : s.field, I = t.find((ft) => ft.field === j && ft.declarationIndex >= 0);
190
+ const j = (s = (G = e.group) == null ? void 0 : G[g]) == null ? void 0 : s.field, I = t.find((ft) => ft.field === j && ft.declarationIndex >= 0);
190
191
  return (re = (V = I == null ? void 0 : I.title) != null ? V : j) != null ? re : a.title;
191
- }, G = typeof e.groupable == "object" ? e.groupable.groupColumn : void 0;
192
+ }, E = typeof e.groupable == "object" ? e.groupable.groupColumn : void 0;
192
193
  for (let n = A - 1; n >= 0; n--) {
193
194
  const g = f || x;
194
195
  let j = a.width;
195
196
  u ? j = "0px" : g && (j = void 0);
196
197
  const I = (ie = e.group) == null ? void 0 : ie[n];
197
- let v;
198
- G !== void 0 && (typeof G == "function" ? I !== void 0 && (v = G(I)) : v = G);
199
- const s = g ? v : void 0, V = {
198
+ let G;
199
+ E !== void 0 && (typeof E == "function" ? I !== void 0 && (G = E(I)) : G = E);
200
+ const s = g ? G : void 0, V = {
200
201
  ...a,
201
202
  isAccessible: g,
202
203
  isGroupColumn: g,
203
- defaultCell: e.isClient ? Ba : ol,
204
+ defaultCell: e.isClient ? La : rl,
204
205
  defaultHeaderCell: g ? void 0 : yt,
205
206
  id: de.generateNavigatableId(`${d++}`, "group", "column"),
206
207
  field: "value",
207
208
  groupField: I == null ? void 0 : I.field,
208
- title: (q = s == null ? void 0 : s.title) != null ? q : O(E, n),
209
+ title: (q = s == null ? void 0 : s.title) != null ? q : O(R, n),
209
210
  width: (P = s == null ? void 0 : s.width) != null ? P : j,
210
211
  locked: (oe = s == null ? void 0 : s.locked) != null ? oe : e.lockGroups,
211
212
  sortable: !1,
@@ -229,23 +230,23 @@ const gl = l.forwardRef((e, Pt) => {
229
230
  ...f ? { disableColumnMenu: !0 } : (s == null ? void 0 : s.columnMenu) !== void 0 && {
230
231
  columnMenu: s.columnMenu
231
232
  },
232
- ...(v == null ? void 0 : v.cells) !== void 0 && {
233
+ ...(G == null ? void 0 : G.cells) !== void 0 && {
233
234
  cells: {
234
235
  group: {
235
- groupHeader: v.cells.groupHeader,
236
- groupFooter: v.cells.groupFooter
236
+ groupHeader: G.cells.groupHeader,
237
+ groupFooter: G.cells.groupFooter
237
238
  }
238
239
  }
239
240
  }
240
241
  };
241
242
  t.unshift(V), w.unshift(
242
- r.find((re) => re.id === V.id) || Re(V)
243
+ r.find((re) => re.id === V.id) || ye(V)
243
244
  );
244
245
  }
245
246
  t.slice(d).forEach((n) => {
246
247
  n.parentIndex >= 0 && (n.parentIndex += d), n.rowSpannable = n.rowSpannable !== void 0 ? ht(n.rowSpannable) : He;
247
248
  });
248
- }, ve = () => e.isClient ? m : Q, Se = (t) => {
249
+ }, Ge = () => e.isClient ? m : Q, ve = (t) => {
249
250
  const i = [];
250
251
  let o = null, r = 0;
251
252
  if (S.forEach((a, d) => {
@@ -263,7 +264,7 @@ const gl = l.forwardRef((e, Pt) => {
263
264
  }, i.push(o);
264
265
  }), e.columnVirtualization) {
265
266
  const a = Ot.current || 0, d = jt.current || parseFloat(((e.style || {}).width || "").toString());
266
- return pa({
267
+ return el({
267
268
  cellModels: i,
268
269
  columns: S,
269
270
  tableViewPortWidth: d,
@@ -273,7 +274,7 @@ const gl = l.forwardRef((e, Pt) => {
273
274
  return i;
274
275
  }, At = () => {
275
276
  const { pageable: t, take: i, pageSize: o } = e;
276
- if (!y)
277
+ if (!v)
277
278
  return 0;
278
279
  if (!t) {
279
280
  if (i)
@@ -285,7 +286,7 @@ const gl = l.forwardRef((e, Pt) => {
285
286
  return a && r ? Math.ceil(a / r * 1.5) : 0;
286
287
  };
287
288
  let h = [], ue, m = [], J = [], Q = [], X = [[]];
288
- const Ot = e.scrollLeftRef || { current: 0 }, jt = e.widthRef || { current: 0 }, Vt = e.containerHeightRef || { current: 0 }, _t = e.minRowHeightRef || { current: 0 }, W = e.localization || new Qa(e.language), $t = e.intl || new Xa((Qe = e.locale) != null ? Qe : "en"), B = e.unstyled, c = B && B.uGrid ? B.uGrid : ua, L = ka(e.rowReorderable), _ = typeof e.scrollable == "object" ? e.scrollable.mode : e.scrollable, me = typeof e.scrollable == "object" && e.scrollable.scrollbar === "proxied", y = _ === "virtual" || _ === void 0 && e.isClient && ma(Ee) || !1, R = e.dataLayoutMode === "stacked", E = typeof e.groupable == "object" && e.groupable.displayMode || "default", M = E === "compact" ? 0 : ((Xe = e.group) == null ? void 0 : Xe.length) || 0, ke = ca(Ee), z = Da(e.autoProcessData);
289
+ const Ot = e.scrollLeftRef || { current: 0 }, jt = e.widthRef || { current: 0 }, Vt = e.containerHeightRef || { current: 0 }, _t = e.minRowHeightRef || { current: 0 }, B = e.localization || new Xa(e.language), $t = e.intl || new pa((Qe = e.locale) != null ? Qe : "en"), W = e.unstyled, c = W && W.uGrid ? W.uGrid : ua, L = ka(e.rowReorderable), _ = typeof e.scrollable == "object" ? e.scrollable.mode : e.scrollable, { overlayScrollbar: Se } = Da(e.scrollable), v = _ === "virtual" || _ === void 0 && e.isClient && ma(Re) || !1, y = e.dataLayoutMode === "stacked", R = typeof e.groupable == "object" && e.groupable.displayMode || "default", M = R === "compact" ? 0 : ((Xe = e.group) == null ? void 0 : Xe.length) || 0, ke = ca(Re), z = Ba(e.autoProcessData);
289
290
  let k, H;
290
291
  if (Array.isArray(e.data) ? (k = e.data, H = (pe = e.total) != null ? pe : k.length) : (k = ((et = e.data) == null ? void 0 : et.data) || [], H = (lt = (at = e.total) != null ? at : (tt = e.data) == null ? void 0 : tt.total) != null ? lt : k.length), z) {
291
292
  const t = Wa(k, {
@@ -298,7 +299,7 @@ const gl = l.forwardRef((e, Pt) => {
298
299
  take: e.take,
299
300
  skip: e.skip,
300
301
  total: e.total,
301
- isVirtualScroll: y,
302
+ isVirtualScroll: v,
302
303
  includePaging: !0
303
304
  });
304
305
  k = t.data, H = t.total;
@@ -315,37 +316,37 @@ const gl = l.forwardRef((e, Pt) => {
315
316
  e.dataItemKey
316
317
  );
317
318
  h = Qt;
318
- const ce = At(), ae = ((it = e.virtualSkipRef) == null ? void 0 : it.current) || 0;
319
+ const me = At(), ae = ((it = e.virtualSkipRef) == null ? void 0 : it.current) || 0;
319
320
  let xe = H;
320
- if (y) {
321
+ if (v) {
321
322
  let t = e.skip || 0;
322
323
  if ((te || e.pageable) && (t = ae, xe = h.length), p || te || e.pageable)
323
- if (ce === 0) {
324
+ if (me === 0) {
324
325
  const i = Math.min(e.take || e.pageSize || 20, h.length);
325
326
  ue = h.slice(t, t + i);
326
327
  } else
327
- ue = h.slice(t, t + ce);
328
+ ue = h.slice(t, t + me);
328
329
  }
329
330
  const Ie = ha(e.selectable), He = ht(e.rowSpannable), Xt = Ie && Ie.drag ? "none" : void 0, le = l.useMemo(() => l.Children.toArray(e.children), [e.children]), pt = Math.max(Jt, (rt = (ot = e.group) == null ? void 0 : ot.length) != null ? rt : 0);
330
331
  zt(le, pt);
331
- const fe = l.useMemo(() => {
332
- const t = Ja(e, m);
332
+ const ce = l.useMemo(() => {
333
+ const t = Qa(e, m);
333
334
  return {
334
335
  premium: t.length > 0,
335
336
  features: t
336
337
  };
337
- }, [e, m]), Ne = l.useMemo(() => fe.premium ? !fa(Ee, { component: "Grid", features: fe.features }) : !1, [fe.premium]), Me = le.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, _ariaControls: D, ariaLabel: "Top toolbar" }) : null), ne = le.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), Te = le.filter(
338
+ }, [e, m]), Ne = l.useMemo(() => ce.premium ? !fa(Re, { component: "Grid", features: ce.features }) : !1, [ce.premium]), Me = le.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, _ariaControls: D, ariaLabel: "Top toolbar" }) : null), ne = le.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), Te = le.filter(
338
339
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
339
- ), S = m.filter((t) => t.children.length === 0), $ = E === "compact", Pe = (t) => $ && t.children.length === 0 && t.defaultHeaderCell === yt, Z = $ ? m.filter((t) => !Pe(t)) : m, ea = $ ? Q.filter((t) => !Pe(t)) : Q, De = $ ? Ct(Z, w) : X, F = Z.filter((t) => t.children.length === 0), ta = ($ || E === "singleColumn" || E === "multipleColumns") && F.some((t) => t.columnType === "checkbox"), We = ee && !R && /* @__PURE__ */ l.createElement(
340
+ ), S = m.filter((t) => t.children.length === 0), $ = R === "compact", Pe = (t) => $ && t.children.length === 0 && t.defaultHeaderCell === yt, Z = $ ? m.filter((t) => !Pe(t)) : m, ea = $ ? Q.filter((t) => !Pe(t)) : Q, De = $ ? Ct(Z, w) : X, F = Z.filter((t) => t.children.length === 0), ta = ($ || R === "singleColumn" || R === "multipleColumns") && F.some((t) => t.columnType === "checkbox"), Be = ee && !y && /* @__PURE__ */ l.createElement(
340
341
  va,
341
342
  {
342
- columns: ve(),
343
+ columns: Ge(),
343
344
  hiddenColumns: J,
344
345
  group: e.group || [],
345
346
  ariaControls: D,
346
- mode: E
347
+ mode: R
347
348
  }
348
- ), Be = R ? null : /* @__PURE__ */ l.createElement(
349
+ ), We = y ? null : /* @__PURE__ */ l.createElement(
349
350
  Ra,
350
351
  {
351
352
  size: C,
@@ -367,11 +368,11 @@ const gl = l.forwardRef((e, Pt) => {
367
368
  columns: Z,
368
369
  columnsMap: De,
369
370
  navigatable: !!e.navigatable,
370
- localization: W,
371
- unstyled: B,
371
+ localization: B,
372
+ unstyled: W,
372
373
  columnsState: w,
373
374
  headerSelectionValue: !!(e.select && h.filter((t) => t.rowType === "data").every(
374
- (t) => e.select && e.dataItemKey && we(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[we(e.dataItemKey)(t.dataItem)] : void 0
375
+ (t) => e.select && e.dataItemKey && Ce(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[Ce(e.dataItemKey)(t.dataItem)] : void 0
375
376
  ))
376
377
  }
377
378
  ),
@@ -386,41 +387,41 @@ const gl = l.forwardRef((e, Pt) => {
386
387
  sort: e.sort,
387
388
  navigatable: !!e.navigatable,
388
389
  ariaRowIndex: De.length + 1,
389
- localization: W
390
+ localization: B
390
391
  }
391
392
  ) || void 0,
392
- cols: F.map((t, i) => /* @__PURE__ */ l.createElement("col", { key: i.toString(), width: ye(t) }))
393
+ cols: F.map((t, i) => /* @__PURE__ */ l.createElement("col", { key: i.toString(), width: we(t) }))
393
394
  }
394
395
  ), Le = S.findIndex((t) => typeof t.colSpan == "function") > -1;
395
396
  let ze;
396
- Le || (ze = Se(null));
397
- const ge = ((dt = e.editable) == null ? void 0 : dt.mode) === "dialog", aa = (st = e.editable) == null ? void 0 : st.enabled, Fe = (mt = (ut = e.editZoneRef) == null ? void 0 : ut.current) != null ? mt : "body", la = Fe === "pinned" ? void 0 : e.edit, Ke = Fe === "body" ? void 0 : e.edit, U = {
397
+ Le || (ze = ve(null));
398
+ const fe = ((dt = e.editable) == null ? void 0 : dt.mode) === "dialog", aa = (st = e.editable) == null ? void 0 : st.enabled, Fe = (mt = (ut = e.editZoneRef) == null ? void 0 : ut.current) != null ? mt : "body", la = Fe === "pinned" ? void 0 : e.edit, Ke = Fe === "body" ? void 0 : e.edit, U = {
398
399
  leafColumns: S,
399
400
  renderedColumnsCount: F.length,
400
401
  columnsState: w,
401
402
  cellsToRender: ze,
402
- getCellsToRender: Se,
403
+ getCellsToRender: ve,
403
404
  hasDynamicColSpan: Le,
404
405
  idPrefix: N,
405
406
  gridClasses: c,
406
- unstyled: B,
407
- localization: W,
407
+ unstyled: W,
408
+ localization: B,
408
409
  intl: $t,
409
410
  cells: e.cells,
410
411
  isRowReorderable: L,
411
412
  sort: e.sort,
412
413
  editable: e.editable,
413
414
  isClient: e.isClient,
414
- isEditDialog: ge,
415
+ isEditDialog: fe,
415
416
  dataItemKey: e.dataItemKey,
416
417
  select: e.select,
417
418
  highlight: e.highlight,
418
419
  hiddenColumns: J,
419
- groupingMode: E,
420
+ groupingMode: R,
420
421
  hasCheckboxColumn: ta
421
422
  }, na = 0;
422
- let be = null;
423
- const Ae = (t) => t >= h.length - na, he = [], Oe = !h.length, je = l.useMemo(() => {
423
+ let ge = null;
424
+ const Ae = (t) => t >= h.length - na, be = [], Oe = !h.length, je = l.useMemo(() => {
424
425
  var i;
425
426
  const t = e.pinnedTopRows || [];
426
427
  return z && ((i = e.sort) != null && i.length) ? wt([...t], e.sort) : t;
@@ -438,7 +439,7 @@ const gl = l.forwardRef((e, Pt) => {
438
439
  const t = X.length + (e.filterable ? 1 : 0) + 1;
439
440
  let i = e.skip || 0, o = -1, r = 0;
440
441
  const a = He.enabled ? {} : void 0;
441
- if (y) {
442
+ if (v) {
442
443
  if (ae > 0) {
443
444
  const d = h.slice(0, ae).filter((u) => u.rowType === "data").length;
444
445
  o += d, i += ae;
@@ -448,13 +449,13 @@ const gl = l.forwardRef((e, Pt) => {
448
449
  (ue || h).forEach((d, u) => {
449
450
  var q;
450
451
  d.rowType === "data" && o++;
451
- const f = d.dataIndex % 2 !== 0, x = e.dataItemKey && we(e.dataItemKey)(d.dataItem), A = u + i, O = x || "ai" + A, G = fl(U, la, d, O, o, f, a), ie = d.rowType === "data" ? ra.has(d.dataItem) : !1;
452
- if (Y = A + t + r, ge && aa && G.isInEdit && (be = d.dataItem), he.push(
452
+ const f = d.dataIndex % 2 !== 0, x = e.dataItemKey && Ce(e.dataItemKey)(d.dataItem), A = u + i, O = x || "ai" + A, E = gl(U, la, d, O, o, f, a), ie = d.rowType === "data" ? ra.has(d.dataItem) : !1;
453
+ if (Y = A + t + r, fe && aa && E.isInEdit && (ge = d.dataItem), be.push(
453
454
  /* @__PURE__ */ l.createElement(
454
- ml,
455
+ cl,
455
456
  {
456
457
  key: O,
457
- isStackedMode: R,
458
+ isStackedMode: y,
458
459
  item: d,
459
460
  rowId: O,
460
461
  dataIndex: o,
@@ -468,14 +469,14 @@ const gl = l.forwardRef((e, Pt) => {
468
469
  rows: e.rows,
469
470
  leafColumns: S,
470
471
  groupLevelCount: M,
471
- groupingMode: E,
472
+ groupingMode: R,
472
473
  stackedLayoutSettings: e.stackedLayoutSettings,
473
474
  cells: e.cells,
474
475
  editMode: (q = e.editable) == null ? void 0 : q.mode,
475
- isSelected: G.isSelected,
476
- isHighlighted: G.isHighlighted,
477
- isInEdit: G.isInEdit && !ge,
478
- preparedCells: G.row,
476
+ isSelected: E.isSelected,
477
+ isHighlighted: E.isHighlighted,
478
+ isInEdit: E.isInEdit && !fe,
479
+ preparedCells: E.row,
479
480
  showDetailToggle: !!e.detail && !!T.enabled,
480
481
  isDetailExpanded: !!d.expanded,
481
482
  detailExpandField: T.column,
@@ -486,13 +487,13 @@ const gl = l.forwardRef((e, Pt) => {
486
487
  r++;
487
488
  const P = O + "_1";
488
489
  Y = A + t + r;
489
- const oe = e.isClient ? Ka : il;
490
- he.push(
490
+ const oe = e.isClient ? Aa : ol;
491
+ be.push(
491
492
  /* @__PURE__ */ l.createElement(
492
- cl,
493
+ fl,
493
494
  {
494
495
  key: P,
495
- isStackedMode: R,
496
+ isStackedMode: y,
496
497
  detailRowId: P,
497
498
  isHidden: Ae(u),
498
499
  detailRowHeight: e.detailRowHeight,
@@ -504,13 +505,13 @@ const gl = l.forwardRef((e, Pt) => {
504
505
  cells: e.cells,
505
506
  leafColumns: S,
506
507
  detailExpandableEnabled: !!T.enabled,
507
- preparedCells: G.row,
508
+ preparedCells: E.row,
508
509
  DetailCell: oe,
509
510
  detail: e.detail,
510
511
  detailCellId: de.generateNavigatableId(`${P}-dcell`, N),
511
512
  detailHierarchyCellId: T.enabled ? de.generateNavigatableId(`${P}-dhcell`, N) : void 0,
512
513
  detailTrClassName: b(c.detailTr({ isAlt: f })),
513
- unstyled: B
514
+ unstyled: W
514
515
  }
515
516
  )
516
517
  );
@@ -522,8 +523,8 @@ const gl = l.forwardRef((e, Pt) => {
522
523
  total: H,
523
524
  skip: e.skip || 0,
524
525
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
525
- ...Fa(e.pageable || {})
526
- }, $e = /* @__PURE__ */ l.createElement(ja, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ..._e }) : /* @__PURE__ */ l.createElement(Ca, { className: b(c.pager({})), ..._e })), da = (t, i) => /* @__PURE__ */ l.createElement("col", { key: i.toString(), width: ye(t) }), Ze = (ct = e.cells) != null && ct.footerCell || m.some((t) => {
526
+ ...Ka(e.pageable || {})
527
+ }, $e = /* @__PURE__ */ l.createElement(Va, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ..._e }) : /* @__PURE__ */ l.createElement(Ca, { className: b(c.pager({})), ..._e })), da = (t, i) => /* @__PURE__ */ l.createElement("col", { key: i.toString(), width: we(t) }), Ze = (ct = e.cells) != null && ct.footerCell || m.some((t) => {
527
528
  var i;
528
529
  return !!((i = t.cells) != null && i.footerCell);
529
530
  }) ? /* @__PURE__ */ l.createElement(
@@ -532,7 +533,7 @@ const gl = l.forwardRef((e, Pt) => {
532
533
  size: C,
533
534
  staticHeaders: _ !== "none",
534
535
  row: /* @__PURE__ */ l.createElement(
535
- za,
536
+ Fa,
536
537
  {
537
538
  cells: e.cells,
538
539
  idPrefix: N,
@@ -542,25 +543,25 @@ const gl = l.forwardRef((e, Pt) => {
542
543
  ),
543
544
  cols: S.map(da)
544
545
  }
545
- ) : null, K = R ? /* @__PURE__ */ l.createElement(ul, { groupLevelCount: M }) : /* @__PURE__ */ l.createElement(Aa, null, F.map((t, i) => /* @__PURE__ */ l.createElement(
546
+ ) : null, K = y ? /* @__PURE__ */ l.createElement(ml, { groupLevelCount: M }) : /* @__PURE__ */ l.createElement(Oa, null, F.map((t, i) => /* @__PURE__ */ l.createElement(
546
547
  "col",
547
548
  {
548
549
  key: i.toString(),
549
550
  className: xa(t.field, e.sort) ? b(c.sorted({})) : void 0,
550
- width: ye(t)
551
+ width: we(t)
551
552
  }
552
- ))), Ue = e.reorderable || ee, { detail: Cl, cells: wl, rows: yl, ...sa } = e, Ye = /* @__PURE__ */ l.createElement(
553
+ ))), Ue = e.reorderable || ee, { detail: wl, cells: yl, rows: Rl, ...sa } = e, Ye = /* @__PURE__ */ l.createElement(
553
554
  "tbody",
554
555
  {
555
556
  role: "rowgroup",
556
557
  className: b(c.tbody({})),
557
558
  ...wa
558
559
  },
559
- he
560
- ), qe = be ? /* @__PURE__ */ l.createElement(el, { columns: S, customEditDialog: e.editDialog, dataItem: be }) : null;
561
- let Ce = Ye;
562
- L && (Ce = /* @__PURE__ */ l.createElement(
563
- Ua,
560
+ be
561
+ ), qe = ge ? /* @__PURE__ */ l.createElement(tl, { columns: S, customEditDialog: e.editDialog, dataItem: ge }) : null;
562
+ let he = Ye;
563
+ L && (he = /* @__PURE__ */ l.createElement(
564
+ Ya,
564
565
  {
565
566
  unstyled: c,
566
567
  columns: m,
@@ -572,7 +573,7 @@ const gl = l.forwardRef((e, Pt) => {
572
573
  gridRef: Pt,
573
574
  innerGrid: e.innerGrid,
574
575
  gridProps: sa,
575
- columnsRef: ve(),
576
+ columnsRef: Ge(),
576
577
  renderedColumnsRef: e.isClient ? Z : ea,
577
578
  hiddenColumnsRef: J,
578
579
  columnsMapRef: X,
@@ -581,8 +582,8 @@ const gl = l.forwardRef((e, Pt) => {
581
582
  id: D,
582
583
  virtualTotal: xe,
583
584
  isAllData: p,
584
- virtualPageSize: ce,
585
- isVirtualScroll: y,
585
+ virtualPageSize: me,
586
+ isVirtualScroll: v,
586
587
  detailExpandable: !!e.detail
587
588
  };
588
589
  return _ === "none" ? /* @__PURE__ */ l.createElement(vt, { ...Je }, /* @__PURE__ */ l.createElement(It, null, /* @__PURE__ */ l.createElement(
@@ -590,11 +591,11 @@ const gl = l.forwardRef((e, Pt) => {
590
591
  {
591
592
  id: e.id,
592
593
  style: e.style,
593
- className: b(c.wrapper({ size: C, isStackedMode: R }), e.className),
594
+ className: b(c.wrapper({ size: C, isStackedMode: y }), e.className),
594
595
  ...bt
595
596
  },
596
597
  Me,
597
- We,
598
+ Be,
598
599
  /* @__PURE__ */ l.createElement(
599
600
  "div",
600
601
  {
@@ -603,17 +604,17 @@ const gl = l.forwardRef((e, Pt) => {
603
604
  "aria-colcount": S.length,
604
605
  "aria-rowcount": H,
605
606
  id: D,
606
- "aria-label": W.toLanguageString(se, Ge[se])
607
+ "aria-label": B.toLanguageString(se, Ee[se])
607
608
  },
608
609
  /* @__PURE__ */ l.createElement(
609
- Oa,
610
+ ja,
610
611
  {
611
612
  selectable: e.selectable,
612
613
  tableClassName: b(c.table({ size: C }))
613
614
  },
614
615
  K,
615
- Be,
616
- /* @__PURE__ */ l.createElement(xt, { rowReorderable: L }, Ce),
616
+ We,
617
+ /* @__PURE__ */ l.createElement(xt, { rowReorderable: L }, he),
617
618
  Ze
618
619
  )
619
620
  ),
@@ -627,15 +628,15 @@ const gl = l.forwardRef((e, Pt) => {
627
628
  className: b(
628
629
  c.wrapper({
629
630
  size: C,
630
- virtual: y,
631
- isStackedMode: R
631
+ virtual: v,
632
+ isStackedMode: y
632
633
  }),
633
634
  e.className
634
635
  ),
635
636
  ...bt
636
637
  },
637
638
  Me,
638
- We,
639
+ Be,
639
640
  /* @__PURE__ */ l.createElement(
640
641
  "div",
641
642
  {
@@ -644,9 +645,9 @@ const gl = l.forwardRef((e, Pt) => {
644
645
  "aria-colcount": F.length,
645
646
  "aria-rowcount": H,
646
647
  id: D,
647
- "aria-label": W.toLanguageString(se, Ge[se])
648
+ "aria-label": B.toLanguageString(se, Ee[se])
648
649
  },
649
- Be,
650
+ We,
650
651
  e.isClient && ia && /* @__PURE__ */ l.createElement(
651
652
  Tt,
652
653
  {
@@ -656,7 +657,7 @@ const gl = l.forwardRef((e, Pt) => {
656
657
  edit: Ke,
657
658
  position: "top",
658
659
  pinnedItems: je,
659
- isStackedMode: R,
660
+ isStackedMode: y,
660
661
  groupLevelCount: M,
661
662
  stackedLayoutSettings: e.stackedLayoutSettings,
662
663
  rowHeight: e.rowHeight,
@@ -671,26 +672,27 @@ const gl = l.forwardRef((e, Pt) => {
671
672
  colGroups: K,
672
673
  dataRowContext: U,
673
674
  position: "top",
674
- isStackedMode: R,
675
+ isStackedMode: y,
675
676
  groupLevelCount: M,
676
677
  stackedLayoutSettings: e.stackedLayoutSettings,
677
678
  rowHeight: e.rowHeight,
678
679
  rows: e.rows
679
680
  }
680
- ), /* @__PURE__ */ l.createElement(_a, null, /* @__PURE__ */ l.createElement(
681
+ ), /* @__PURE__ */ l.createElement($a, null, /* @__PURE__ */ l.createElement(
681
682
  "div",
682
683
  {
683
- className: b(
684
- c.content({}),
685
- y && me && "k-grid-content--hide-scrollbar"
686
- ),
687
- style: {
688
- ...y && me && { overflowY: "scroll", scrollbarWidth: "none" }
689
- },
684
+ className: b(c.content({})),
685
+ style: v && Se ? {
686
+ overflowY: "hidden",
687
+ // Zero when the native scrollbar is an invisible macOS overlay (nothing
688
+ // to reserve for); the real measured width otherwise, so classic
689
+ // scrollbars don't cover the last column, matching AG Grid's default.
690
+ paddingInlineEnd: "var(--kendo-scrollbar-width, 0px)"
691
+ } : void 0,
690
692
  role: "presentation"
691
693
  },
692
694
  /* @__PURE__ */ l.createElement("div", { className: b(c.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
693
- Va,
695
+ _a,
694
696
  {
695
697
  selectable: e.selectable,
696
698
  tableClassName: b(
@@ -701,25 +703,25 @@ const gl = l.forwardRef((e, Pt) => {
701
703
  tableStyle: { userSelect: Xt }
702
704
  },
703
705
  K,
704
- /* @__PURE__ */ l.createElement(xt, { rowReorderable: L }, Ce)
706
+ /* @__PURE__ */ l.createElement(xt, { rowReorderable: L }, he)
705
707
  ), Oe && /* @__PURE__ */ l.createElement(Gt, null, ne.length ? ne : /* @__PURE__ */ l.createElement(Rt, null))),
706
- y && /* @__PURE__ */ l.createElement(
708
+ v && /* @__PURE__ */ l.createElement(
707
709
  "div",
708
710
  {
709
711
  className: b(c.heightContainer({})),
710
712
  "aria-colcount": F.length,
711
713
  role: "presentation"
712
714
  },
713
- /* @__PURE__ */ l.createElement($a, { isVirtualScroll: y })
715
+ /* @__PURE__ */ l.createElement(Za, { isVirtualScroll: v })
714
716
  )
715
- )), e.isClient && y && me && /* @__PURE__ */ l.createElement(Za, null), e.isClient && te && Yt && /* @__PURE__ */ l.createElement(
717
+ )), e.isClient && v && Se && /* @__PURE__ */ l.createElement(Ua, null), e.isClient && te && Yt && /* @__PURE__ */ l.createElement(
716
718
  Mt,
717
719
  {
718
720
  size: C,
719
721
  colGroups: K,
720
722
  dataRowContext: U,
721
723
  position: "bottom",
722
- isStackedMode: R,
724
+ isStackedMode: y,
723
725
  groupLevelCount: M,
724
726
  stackedLayoutSettings: e.stackedLayoutSettings,
725
727
  rowHeight: e.rowHeight,
@@ -735,7 +737,7 @@ const gl = l.forwardRef((e, Pt) => {
735
737
  edit: Ke,
736
738
  position: "bottom",
737
739
  pinnedItems: Ve,
738
- isStackedMode: R,
740
+ isStackedMode: y,
739
741
  groupLevelCount: M,
740
742
  stackedLayoutSettings: e.stackedLayoutSettings,
741
743
  rowHeight: e.rowHeight,
@@ -753,7 +755,7 @@ const gl = l.forwardRef((e, Pt) => {
753
755
  qe
754
756
  )));
755
757
  });
756
- gl.displayName = "KendoReactGridComponent";
758
+ bl.displayName = "KendoReactGridComponent";
757
759
  export {
758
- gl as GridComponent
760
+ bl as GridComponent
759
761
  };