@progress/kendo-react-grid 14.2.2-develop.1 → 14.3.0-develop.1

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