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