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