@progress/kendo-react-grid 10.0.0-develop.3 → 10.0.0-develop.5

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