@progress/kendo-react-grid 10.2.0-develop.1 → 10.2.0-develop.10

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