@progress/kendo-react-grid 12.3.0-develop.1 → 12.3.0-develop.10
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 +498 -416
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +326 -311
- 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,121 +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 =
|
|
113
|
-
|
|
120
|
+
const o = i.find((c) => c.id === d.id);
|
|
121
|
+
if (o) {
|
|
122
|
+
const c = { ...o };
|
|
123
|
+
return c.children = (l = d.children) == null ? void 0 : l.map(r), c;
|
|
124
|
+
}
|
|
125
|
+
return ie(d);
|
|
114
126
|
};
|
|
115
|
-
|
|
116
|
-
},
|
|
127
|
+
C = t.filter((d) => d.parentIndex === -1).map(r);
|
|
128
|
+
}, wt = (t, i) => {
|
|
117
129
|
t.filter((l) => l.columnType === "checkbox").forEach((l) => {
|
|
118
|
-
l.width = l.width || "50px", l.defaultCell = e.isClient ?
|
|
119
|
-
}),
|
|
120
|
-
l.width = l.width || "50px", l.defaultCell = e.isClient ?
|
|
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;
|
|
121
133
|
});
|
|
122
|
-
const
|
|
123
|
-
|
|
134
|
+
const r = rl(C);
|
|
135
|
+
yt(t, r);
|
|
124
136
|
const d = {
|
|
125
137
|
id: "",
|
|
126
138
|
resizable: !0,
|
|
@@ -142,270 +154,272 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
142
154
|
isAccessible: !0
|
|
143
155
|
};
|
|
144
156
|
let o = 0;
|
|
145
|
-
if (
|
|
157
|
+
if (L.enabled && e.detail) {
|
|
146
158
|
const l = {
|
|
147
159
|
...d,
|
|
148
160
|
_type: "expand",
|
|
149
|
-
id:
|
|
150
|
-
defaultCell: e.isClient ?
|
|
151
|
-
field:
|
|
161
|
+
id: F.generateNavigatableId(`${o++}`, "expand", "column"),
|
|
162
|
+
defaultCell: e.isClient ? qt : Ll,
|
|
163
|
+
field: L.column,
|
|
152
164
|
headerClassName: f(u.hierarchyCell({}))
|
|
153
165
|
};
|
|
154
|
-
t.unshift(l),
|
|
166
|
+
t.unshift(l), C.unshift(r.find((c) => c.id === l.id) || ie(l));
|
|
155
167
|
}
|
|
156
|
-
for (let l = 0; l <
|
|
168
|
+
for (let l = 0; l < i; l++) {
|
|
157
169
|
const c = {
|
|
158
170
|
...d,
|
|
159
171
|
isAccessible: !1,
|
|
160
|
-
defaultCell: e.isClient ?
|
|
161
|
-
id:
|
|
172
|
+
defaultCell: e.isClient ? tt : Fl,
|
|
173
|
+
id: F.generateNavigatableId(`${o++}`, "group", "column"),
|
|
162
174
|
field: "value",
|
|
163
175
|
locked: e.lockGroups
|
|
164
176
|
};
|
|
165
|
-
t.unshift(c),
|
|
177
|
+
t.unshift(c), C.unshift(r.find((m) => m.id === c.id) || ie(c));
|
|
166
178
|
}
|
|
167
179
|
t.slice(o).forEach((l) => {
|
|
168
|
-
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;
|
|
169
181
|
});
|
|
170
|
-
},
|
|
171
|
-
const
|
|
172
|
-
let
|
|
182
|
+
}, de = () => e.isClient ? s : me, ce = (t) => {
|
|
183
|
+
const i = [];
|
|
184
|
+
let r = null, d = 0;
|
|
173
185
|
if (b.forEach((o, l) => {
|
|
174
186
|
const c = parseFloat((o.width || "").toString()) || 10;
|
|
175
187
|
if (d) {
|
|
176
|
-
d--,
|
|
188
|
+
d--, r && (r.width += c);
|
|
177
189
|
return;
|
|
178
190
|
}
|
|
179
|
-
const
|
|
180
|
-
d =
|
|
191
|
+
const m = Math.min(il(o, t), b.length - l);
|
|
192
|
+
d = m - 1, r = {
|
|
181
193
|
width: c,
|
|
182
|
-
colSpan:
|
|
194
|
+
colSpan: m,
|
|
183
195
|
columnIndex: l
|
|
184
|
-
},
|
|
196
|
+
}, i.push(r);
|
|
185
197
|
}), e.columnVirtualization) {
|
|
186
|
-
const o =
|
|
187
|
-
return
|
|
188
|
-
cellModels:
|
|
198
|
+
const o = It.current || 0, l = St.current || parseFloat(((e.style || {}).width || "").toString());
|
|
199
|
+
return Dl({
|
|
200
|
+
cellModels: i,
|
|
189
201
|
columns: b,
|
|
190
202
|
tableViewPortWidth: l,
|
|
191
203
|
scrollLeft: o
|
|
192
204
|
});
|
|
193
205
|
}
|
|
194
|
-
return
|
|
195
|
-
},
|
|
196
|
-
const { pageable: t, take:
|
|
206
|
+
return i;
|
|
207
|
+
}, Et = () => {
|
|
208
|
+
const { pageable: t, take: i, pageSize: r } = e;
|
|
197
209
|
if (!E)
|
|
198
210
|
return 0;
|
|
199
211
|
if (!t) {
|
|
200
|
-
if (n)
|
|
201
|
-
return n;
|
|
202
212
|
if (i)
|
|
203
213
|
return i;
|
|
214
|
+
if (r)
|
|
215
|
+
return r;
|
|
204
216
|
}
|
|
205
|
-
const d = e.rowHeight ||
|
|
217
|
+
const d = e.rowHeight || Rt.current, o = vt.current;
|
|
206
218
|
return o && d ? Math.ceil(o / d * 1.5) : 0;
|
|
207
219
|
};
|
|
208
|
-
let g = [], j,
|
|
209
|
-
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 ? {
|
|
210
222
|
group: !0,
|
|
211
223
|
sort: !0,
|
|
212
224
|
filter: !0,
|
|
213
225
|
search: !0,
|
|
214
226
|
page: !0
|
|
215
227
|
} : e.autoProcessData;
|
|
216
|
-
let
|
|
217
|
-
if (Array.isArray(e.data) ? (
|
|
218
|
-
const t =
|
|
219
|
-
group:
|
|
220
|
-
sort:
|
|
221
|
-
filter:
|
|
222
|
-
|
|
223
|
-
|
|
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
|
|
224
236
|
),
|
|
225
237
|
...t ? {
|
|
226
238
|
take: e.pageable ? e.take || 10 : e.take,
|
|
227
239
|
skip: e.skip || 0
|
|
228
240
|
} : {}
|
|
229
241
|
});
|
|
230
|
-
|
|
242
|
+
w = i, G = (ze = e.total) != null ? ze : r;
|
|
231
243
|
}
|
|
232
|
-
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(
|
|
233
245
|
typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
|
|
234
|
-
),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
246
|
+
), fe = !!((Oe = e.group) != null && Oe.length), { resolvedGroupsCount: Nt, flattedData: Dt } = ft(
|
|
247
|
+
w,
|
|
248
|
+
xt,
|
|
249
|
+
O ? 0 : e.skip || 0,
|
|
238
250
|
e.group,
|
|
239
251
|
e.detailExpand,
|
|
240
252
|
e.groupExpand,
|
|
241
253
|
e.dataItemKey
|
|
242
254
|
);
|
|
243
|
-
g =
|
|
244
|
-
const U =
|
|
245
|
-
let
|
|
255
|
+
g = Dt;
|
|
256
|
+
const U = Et(), q = ((_e = e.virtualSkipRef) == null ? void 0 : _e.current) || 0;
|
|
257
|
+
let ge = G;
|
|
246
258
|
if (E) {
|
|
247
259
|
let t = e.skip || 0;
|
|
248
|
-
if ((
|
|
260
|
+
if ((fe || e.pageable) && (t = q, ge = g.length), O || fe || e.pageable)
|
|
249
261
|
if (U === 0) {
|
|
250
|
-
const
|
|
251
|
-
j = g.slice(t, t +
|
|
262
|
+
const i = Math.min(e.take || e.pageSize || 20, g.length);
|
|
263
|
+
j = g.slice(t, t + i);
|
|
252
264
|
} else
|
|
253
265
|
j = g.slice(t, t + U);
|
|
254
266
|
}
|
|
255
|
-
const
|
|
256
|
-
|
|
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);
|
|
257
269
|
const J = a.useMemo(() => {
|
|
258
|
-
const t =
|
|
270
|
+
const t = xl(e, s);
|
|
259
271
|
return {
|
|
260
272
|
premium: t.length > 0,
|
|
261
273
|
features: t
|
|
262
274
|
};
|
|
263
|
-
}, [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(
|
|
264
276
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
265
|
-
), b =
|
|
266
|
-
|
|
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,
|
|
267
279
|
{
|
|
268
280
|
size: I,
|
|
269
281
|
staticHeaders: e.scrollable !== "none",
|
|
270
|
-
draggable: e.reorderable ||
|
|
282
|
+
draggable: e.reorderable || _,
|
|
271
283
|
headerRow: /* @__PURE__ */ a.createElement(
|
|
272
|
-
|
|
284
|
+
Xt,
|
|
273
285
|
{
|
|
274
286
|
cells: e.cells,
|
|
275
287
|
sort: e.sort,
|
|
276
288
|
sortable: e.sortable,
|
|
277
289
|
group: e.group || [],
|
|
278
|
-
groupable:
|
|
290
|
+
groupable: _,
|
|
279
291
|
filter: e.filter,
|
|
280
292
|
filterable: e.filterable,
|
|
281
|
-
filterOperators: e.filterOperators ||
|
|
293
|
+
filterOperators: e.filterOperators || at,
|
|
282
294
|
columnMenu: e.columnMenu,
|
|
283
295
|
columnMenuIcon: e.columnMenuIcon,
|
|
284
|
-
columns:
|
|
285
|
-
columnsMap:
|
|
296
|
+
columns: s,
|
|
297
|
+
columnsMap: A,
|
|
286
298
|
navigatable: !!e.navigatable,
|
|
287
|
-
localization:
|
|
288
|
-
unstyled:
|
|
299
|
+
localization: z,
|
|
300
|
+
unstyled: D,
|
|
301
|
+
columnsState: C,
|
|
289
302
|
headerSelectionValue: !!(e.select && g.filter((t) => t.rowType === "data").every(
|
|
290
|
-
(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
|
|
291
304
|
))
|
|
292
305
|
}
|
|
293
306
|
),
|
|
294
307
|
filterRow: e.filterable && /* @__PURE__ */ a.createElement(
|
|
295
|
-
|
|
308
|
+
Yt,
|
|
296
309
|
{
|
|
297
310
|
cells: e.cells,
|
|
298
311
|
size: I,
|
|
299
|
-
columns:
|
|
312
|
+
columns: s,
|
|
300
313
|
filter: e.filter,
|
|
301
|
-
filterOperators: e.filterOperators ||
|
|
314
|
+
filterOperators: e.filterOperators || at,
|
|
302
315
|
sort: e.sort,
|
|
303
316
|
navigatable: !!e.navigatable,
|
|
304
|
-
ariaRowIndex:
|
|
305
|
-
localization:
|
|
317
|
+
ariaRowIndex: A.length + 1,
|
|
318
|
+
localization: z
|
|
306
319
|
}
|
|
307
320
|
) || void 0,
|
|
308
|
-
cols: b.map((t,
|
|
321
|
+
cols: b.map((t, i) => /* @__PURE__ */ a.createElement("col", { key: i.toString(), width: re(t) }))
|
|
309
322
|
}
|
|
310
|
-
),
|
|
323
|
+
), Se = b.findIndex((t) => typeof t.colSpan == "function") > -1;
|
|
311
324
|
let Q;
|
|
312
|
-
|
|
313
|
-
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) => {
|
|
314
327
|
let l = !1;
|
|
315
|
-
const c = e.select && e.dataItemKey &&
|
|
316
|
-
return
|
|
317
|
-
row: Q.map(({ columnIndex: h, colSpan:
|
|
318
|
-
var
|
|
319
|
-
const
|
|
320
|
-
let
|
|
321
|
-
if ((
|
|
322
|
-
const
|
|
323
|
-
|
|
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;
|
|
324
337
|
}
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
if (
|
|
328
|
-
const
|
|
329
|
-
|
|
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));
|
|
330
343
|
}
|
|
331
|
-
const B =
|
|
344
|
+
const B = n._type === "expand", ae = {
|
|
332
345
|
locked: e.lockGroups,
|
|
333
|
-
id:
|
|
334
|
-
`${
|
|
335
|
-
|
|
336
|
-
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"
|
|
337
350
|
),
|
|
338
|
-
colSpan:
|
|
351
|
+
colSpan: P,
|
|
339
352
|
dataItem: t.dataItem,
|
|
340
|
-
field:
|
|
341
|
-
editor:
|
|
342
|
-
format:
|
|
343
|
-
columnType:
|
|
344
|
-
rowReorderable:
|
|
345
|
-
className:
|
|
346
|
-
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),
|
|
347
360
|
columnIndex: h,
|
|
348
361
|
columnsCount: b.length,
|
|
349
362
|
rowType: t.rowType,
|
|
350
363
|
level: t.level,
|
|
351
364
|
expanded: t.expanded,
|
|
352
365
|
dataIndex: t.dataIndex,
|
|
353
|
-
rowDataIndex:
|
|
354
|
-
columnPosition:
|
|
366
|
+
rowDataIndex: r,
|
|
367
|
+
columnPosition: le,
|
|
355
368
|
style: {},
|
|
356
|
-
ariaColumnIndex:
|
|
357
|
-
isSelected: !!((
|
|
358
|
-
isHighlighted: !!((
|
|
359
|
-
isSorted: !!
|
|
360
|
-
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,
|
|
361
374
|
isAlt: d,
|
|
362
|
-
unstyled:
|
|
375
|
+
unstyled: D,
|
|
363
376
|
group: t.group,
|
|
364
|
-
localization:
|
|
365
|
-
intl:
|
|
366
|
-
_rowSpan:
|
|
367
|
-
},
|
|
368
|
-
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 });
|
|
369
382
|
}),
|
|
370
383
|
isInEdit: l,
|
|
371
384
|
isSelected: typeof c == "boolean" && c,
|
|
372
|
-
isHighlighted: typeof
|
|
385
|
+
isHighlighted: typeof m == "boolean" && m
|
|
373
386
|
};
|
|
374
387
|
};
|
|
375
|
-
let
|
|
376
|
-
const
|
|
377
|
-
let
|
|
388
|
+
let Kt = 0, Y = null;
|
|
389
|
+
const ve = (t) => t >= g.length - Kt, Z = [], Re = !g.length;
|
|
390
|
+
let M = 0;
|
|
378
391
|
if (g.length) {
|
|
379
|
-
const t =
|
|
380
|
-
let
|
|
381
|
-
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;
|
|
382
395
|
if (E) {
|
|
383
396
|
if (q > 0) {
|
|
384
397
|
const l = g.slice(0, q).filter((c) => c.rowType === "data").length;
|
|
385
|
-
|
|
398
|
+
r += l, i += l;
|
|
386
399
|
}
|
|
387
|
-
!e.pageable &&
|
|
400
|
+
!e.pageable && O && (r += e.skip || 0);
|
|
388
401
|
}
|
|
389
402
|
(j || g).forEach((l, c) => {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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(
|
|
393
407
|
/* @__PURE__ */ a.createElement(
|
|
394
|
-
|
|
408
|
+
sl,
|
|
395
409
|
{
|
|
396
|
-
key:
|
|
410
|
+
key: n,
|
|
397
411
|
dataItem: l.dataItem,
|
|
398
|
-
isAltRow:
|
|
412
|
+
isAltRow: m,
|
|
399
413
|
isInEdit: y.isInEdit && !X,
|
|
400
414
|
rowType: l.rowType,
|
|
401
|
-
isRowReorderable:
|
|
402
|
-
isHidden:
|
|
415
|
+
isRowReorderable: H,
|
|
416
|
+
isHidden: ve(c),
|
|
403
417
|
onClick: null,
|
|
404
418
|
onDoubleClick: null,
|
|
405
419
|
rowHeight: e.rowHeight,
|
|
406
|
-
ariaRowIndex:
|
|
407
|
-
absoluteRowIndex:
|
|
408
|
-
dataIndex:
|
|
420
|
+
ariaRowIndex: M,
|
|
421
|
+
absoluteRowIndex: P,
|
|
422
|
+
dataIndex: r,
|
|
409
423
|
isSelected: y.isSelected,
|
|
410
424
|
isHighlighted: y.isHighlighted,
|
|
411
425
|
rows: e.rows
|
|
@@ -413,37 +427,37 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
413
427
|
y.row
|
|
414
428
|
)
|
|
415
429
|
), e.detail && l.rowType === "data" && l.expanded) {
|
|
416
|
-
const ee = b.length - (
|
|
417
|
-
d++,
|
|
418
|
-
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;
|
|
419
433
|
Z.push(
|
|
420
434
|
/* @__PURE__ */ a.createElement(
|
|
421
435
|
"tr",
|
|
422
436
|
{
|
|
423
|
-
key:
|
|
424
|
-
className: f(u.detailTr({ isAlt:
|
|
437
|
+
key: x,
|
|
438
|
+
className: f(u.detailTr({ isAlt: m })),
|
|
425
439
|
style: {
|
|
426
|
-
visibility:
|
|
440
|
+
visibility: ve(c) ? "hidden" : "",
|
|
427
441
|
height: e.detailRowHeight
|
|
428
442
|
},
|
|
429
443
|
role: "row",
|
|
430
|
-
"aria-rowindex":
|
|
444
|
+
"aria-rowindex": M
|
|
431
445
|
},
|
|
432
|
-
e
|
|
433
|
-
var
|
|
434
|
-
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 } : {};
|
|
435
449
|
return /* @__PURE__ */ a.createElement(
|
|
436
|
-
|
|
450
|
+
tt,
|
|
437
451
|
{
|
|
438
|
-
key:
|
|
452
|
+
key: k,
|
|
439
453
|
cellProps: {
|
|
440
454
|
id: "",
|
|
441
455
|
dataItem: l.dataItem,
|
|
442
|
-
field:
|
|
456
|
+
field: le.field,
|
|
443
457
|
dataIndex: l.dataIndex,
|
|
444
|
-
columnPosition:
|
|
458
|
+
columnPosition: ae,
|
|
445
459
|
style: {},
|
|
446
|
-
ariaColumnIndex: 1 +
|
|
460
|
+
ariaColumnIndex: 1 + k,
|
|
447
461
|
isSelected: !1,
|
|
448
462
|
locked: e.lockGroups,
|
|
449
463
|
cells: e.cells,
|
|
@@ -452,11 +466,11 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
452
466
|
}
|
|
453
467
|
);
|
|
454
468
|
}),
|
|
455
|
-
|
|
456
|
-
|
|
469
|
+
L.enabled && /* @__PURE__ */ a.createElement(
|
|
470
|
+
bl,
|
|
457
471
|
{
|
|
458
|
-
unstyled:
|
|
459
|
-
id:
|
|
472
|
+
unstyled: D,
|
|
473
|
+
id: F.generateNavigatableId(`${x}-dhcell`, N)
|
|
460
474
|
}
|
|
461
475
|
),
|
|
462
476
|
/* @__PURE__ */ a.createElement(
|
|
@@ -467,7 +481,7 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
467
481
|
colSpan: ee,
|
|
468
482
|
ariaColIndex: 2 + (e.group ? e.group.length : 0),
|
|
469
483
|
detail: e.detail,
|
|
470
|
-
id:
|
|
484
|
+
id: F.generateNavigatableId(`${x}-dcell`, N)
|
|
471
485
|
}
|
|
472
486
|
)
|
|
473
487
|
)
|
|
@@ -475,96 +489,97 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
475
489
|
}
|
|
476
490
|
});
|
|
477
491
|
}
|
|
478
|
-
const
|
|
492
|
+
const Ge = {
|
|
479
493
|
size: I,
|
|
480
494
|
total: G,
|
|
481
495
|
skip: e.skip || 0,
|
|
482
496
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
483
|
-
...
|
|
484
|
-
},
|
|
485
|
-
var
|
|
486
|
-
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);
|
|
487
501
|
}) ? /* @__PURE__ */ a.createElement(
|
|
488
|
-
|
|
502
|
+
pt,
|
|
489
503
|
{
|
|
490
504
|
size: I,
|
|
491
505
|
staticHeaders: e.scrollable !== "none",
|
|
492
506
|
row: /* @__PURE__ */ a.createElement(
|
|
493
|
-
|
|
507
|
+
ul,
|
|
494
508
|
{
|
|
495
509
|
cells: e.cells,
|
|
496
|
-
idPrefix:
|
|
497
|
-
columns:
|
|
498
|
-
ariaRowIndex:
|
|
510
|
+
idPrefix: N,
|
|
511
|
+
columns: s,
|
|
512
|
+
ariaRowIndex: M + 1
|
|
499
513
|
}
|
|
500
514
|
),
|
|
501
|
-
cols: b.map(
|
|
515
|
+
cols: b.map(At)
|
|
502
516
|
}
|
|
503
|
-
) : null,
|
|
517
|
+
) : null, Ne = /* @__PURE__ */ a.createElement(hl, null, b.map((t, i) => /* @__PURE__ */ a.createElement(
|
|
504
518
|
"col",
|
|
505
519
|
{
|
|
506
|
-
key:
|
|
507
|
-
className:
|
|
520
|
+
key: i.toString(),
|
|
521
|
+
className: et(t.field, e.sort) ? f(u.sorted({})) : void 0,
|
|
508
522
|
width: re(t)
|
|
509
523
|
}
|
|
510
|
-
))),
|
|
524
|
+
))), De = e.reorderable || _, { detail: Ol, cells: _l, rows: Vl, ...Lt } = e, He = /* @__PURE__ */ a.createElement(
|
|
511
525
|
"tbody",
|
|
512
526
|
{
|
|
513
527
|
role: "rowgroup",
|
|
514
528
|
className: f(u.tbody({})),
|
|
515
|
-
...
|
|
529
|
+
...Ut
|
|
516
530
|
},
|
|
517
531
|
Z
|
|
518
|
-
),
|
|
519
|
-
let p =
|
|
520
|
-
|
|
521
|
-
|
|
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,
|
|
522
536
|
{
|
|
523
537
|
unstyled: u,
|
|
524
|
-
columns:
|
|
538
|
+
columns: s,
|
|
525
539
|
rowReorderSettings: e.rowReorderable
|
|
526
540
|
},
|
|
527
|
-
|
|
541
|
+
He
|
|
528
542
|
));
|
|
529
|
-
const
|
|
530
|
-
gridRef:
|
|
543
|
+
const Pe = {
|
|
544
|
+
gridRef: ut,
|
|
531
545
|
innerGrid: e.innerGrid,
|
|
532
|
-
gridProps:
|
|
533
|
-
columnsRef:
|
|
534
|
-
|
|
535
|
-
|
|
546
|
+
gridProps: Lt,
|
|
547
|
+
columnsRef: de(),
|
|
548
|
+
hiddenColumnsRef: se,
|
|
549
|
+
columnsMapRef: A,
|
|
550
|
+
columnsState: C,
|
|
536
551
|
dataRef: g,
|
|
537
|
-
id:
|
|
538
|
-
virtualTotal:
|
|
539
|
-
isAllData:
|
|
552
|
+
id: K,
|
|
553
|
+
virtualTotal: ge,
|
|
554
|
+
isAllData: O,
|
|
540
555
|
virtualPageSize: U,
|
|
541
556
|
isVirtualScroll: E,
|
|
542
557
|
detailExpandable: !!e.detail
|
|
543
558
|
};
|
|
544
|
-
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(
|
|
545
560
|
"div",
|
|
546
561
|
{
|
|
547
562
|
id: e.id,
|
|
548
563
|
style: e.style,
|
|
549
564
|
className: f(u.wrapper({ size: I }), e.className),
|
|
550
|
-
...
|
|
565
|
+
...Ze
|
|
551
566
|
},
|
|
552
|
-
|
|
553
|
-
|
|
567
|
+
ye,
|
|
568
|
+
Ee,
|
|
554
569
|
/* @__PURE__ */ a.createElement(
|
|
555
|
-
|
|
570
|
+
Cl,
|
|
556
571
|
{
|
|
557
572
|
selectable: e.selectable,
|
|
558
573
|
className: f(u.table({ size: I }))
|
|
559
574
|
},
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
/* @__PURE__ */ a.createElement(
|
|
563
|
-
|
|
575
|
+
Ne,
|
|
576
|
+
Ie,
|
|
577
|
+
/* @__PURE__ */ a.createElement(dt, { rowReorderable: H }, p),
|
|
578
|
+
ke
|
|
564
579
|
),
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
)),
|
|
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(
|
|
568
583
|
"div",
|
|
569
584
|
{
|
|
570
585
|
id: e.id,
|
|
@@ -576,10 +591,10 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
576
591
|
}),
|
|
577
592
|
e.className
|
|
578
593
|
),
|
|
579
|
-
...
|
|
594
|
+
...Ze
|
|
580
595
|
},
|
|
581
|
-
|
|
582
|
-
|
|
596
|
+
ye,
|
|
597
|
+
Ee,
|
|
583
598
|
/* @__PURE__ */ a.createElement(
|
|
584
599
|
"div",
|
|
585
600
|
{
|
|
@@ -587,12 +602,12 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
587
602
|
role: "grid",
|
|
588
603
|
"aria-colcount": b.length,
|
|
589
604
|
"aria-rowcount": G,
|
|
590
|
-
id:
|
|
591
|
-
"aria-label":
|
|
605
|
+
id: K,
|
|
606
|
+
"aria-label": z.toLanguageString(st, Sl[st])
|
|
592
607
|
},
|
|
593
|
-
|
|
594
|
-
/* @__PURE__ */ a.createElement("div", { className: f(u.container({})), role: "presentation" }, /* @__PURE__ */ a.createElement(
|
|
595
|
-
|
|
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,
|
|
596
611
|
{
|
|
597
612
|
selectable: e.selectable,
|
|
598
613
|
tableClassName: f(
|
|
@@ -600,29 +615,29 @@ const Al = a.forwardRef((e, ot) => {
|
|
|
600
615
|
size: I
|
|
601
616
|
})
|
|
602
617
|
),
|
|
603
|
-
tableStyle: { userSelect:
|
|
618
|
+
tableStyle: { userSelect: Ht }
|
|
604
619
|
},
|
|
605
|
-
|
|
606
|
-
/* @__PURE__ */ a.createElement(
|
|
607
|
-
),
|
|
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(
|
|
608
623
|
"div",
|
|
609
624
|
{
|
|
610
625
|
className: f(u.heightContainer({})),
|
|
611
626
|
role: "presentation"
|
|
612
627
|
},
|
|
613
|
-
/* @__PURE__ */ a.createElement(
|
|
628
|
+
/* @__PURE__ */ a.createElement(Il, { isVirtualScroll: E })
|
|
614
629
|
)))),
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
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 })
|
|
618
633
|
),
|
|
619
|
-
|
|
620
|
-
e.pageable &&
|
|
621
|
-
/* @__PURE__ */ a.createElement(
|
|
622
|
-
|
|
634
|
+
we,
|
|
635
|
+
e.pageable && xe,
|
|
636
|
+
/* @__PURE__ */ a.createElement(mt, { loader: e.loader, showLoader: e.showLoader }),
|
|
637
|
+
Te
|
|
623
638
|
)));
|
|
624
639
|
});
|
|
625
|
-
|
|
640
|
+
zl.displayName = "KendoReactGridComponent";
|
|
626
641
|
export {
|
|
627
|
-
|
|
642
|
+
zl as GridComponent
|
|
628
643
|
};
|