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