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