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