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