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