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