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