@progress/kendo-react-grid 13.3.0-develop.1 → 13.3.0-develop.3

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