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