@progress/kendo-react-grid 9.4.0-develop.9 → 9.4.1-develop.1
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 +337 -307
- 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/noRecords/GridNoRecords.js +1 -1
- package/components/noRecords/GridNoRecords.mjs +8 -7
- 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 +289 -48
- package/index.d.ts +289 -48
- 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 -14
- 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,96 +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
|
-
import { GridLoader as
|
|
54
|
-
const
|
|
55
|
-
var
|
|
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;
|
|
56
56
|
const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
|
|
57
|
+
wt(qt);
|
|
58
|
+
const Xe = (t, r, d, o, i, a, c) => {
|
|
59
|
+
const s = [], h = Ot(
|
|
60
|
+
s,
|
|
61
61
|
C,
|
|
62
62
|
t,
|
|
63
63
|
{ index: r },
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
d !== void 0,
|
|
65
|
+
o,
|
|
66
66
|
i,
|
|
67
67
|
a,
|
|
68
|
-
|
|
68
|
+
ot.defaultExpand,
|
|
69
69
|
c
|
|
70
70
|
);
|
|
71
|
-
return { flattedData:
|
|
72
|
-
},
|
|
71
|
+
return { flattedData: s, resolvedGroupsCount: h };
|
|
72
|
+
}, Ye = (t) => {
|
|
73
73
|
const r = t.filter(
|
|
74
74
|
(i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
|
|
75
|
-
),
|
|
76
|
-
return
|
|
77
|
-
},
|
|
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) => {
|
|
78
93
|
var i;
|
|
79
|
-
const
|
|
80
|
-
|
|
94
|
+
const d = Ye(t), o = Ze(d);
|
|
95
|
+
m.current = o, m.current.length === 0 && (m.current = _t(
|
|
81
96
|
C,
|
|
82
97
|
e.group,
|
|
83
98
|
{
|
|
84
|
-
column: (i =
|
|
99
|
+
column: (i = A.column) != null ? i : e.expandField
|
|
85
100
|
},
|
|
86
101
|
{
|
|
87
102
|
prevId: 0,
|
|
88
103
|
idPrefix: x
|
|
89
104
|
}
|
|
90
|
-
)),
|
|
91
|
-
},
|
|
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) => {
|
|
92
107
|
var i;
|
|
93
108
|
t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
|
|
94
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
95
|
-
}),
|
|
96
|
-
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;
|
|
97
112
|
});
|
|
98
|
-
const
|
|
113
|
+
const d = {
|
|
99
114
|
id: "",
|
|
100
115
|
resizable: !0,
|
|
101
116
|
width: "32px",
|
|
@@ -115,59 +130,65 @@ const rl = l.forwardRef((e, ee) => {
|
|
|
115
130
|
ariaColumnIndex: 0,
|
|
116
131
|
isAccessible: !0
|
|
117
132
|
};
|
|
118
|
-
let
|
|
119
|
-
(e.expandField ||
|
|
120
|
-
...
|
|
133
|
+
let o = 0;
|
|
134
|
+
(e.expandField || A.enabled) && e.detail && (t.unshift({
|
|
135
|
+
...d,
|
|
121
136
|
_type: "expand",
|
|
122
|
-
cell:
|
|
123
|
-
field: (i =
|
|
124
|
-
headerClassName:
|
|
125
|
-
}),
|
|
137
|
+
cell: Tt,
|
|
138
|
+
field: (i = A.column) != null ? i : e.expandField,
|
|
139
|
+
headerClassName: f(u.hierarchyCell({}))
|
|
140
|
+
}), o++);
|
|
126
141
|
for (let a = 0; a < r; a++)
|
|
127
142
|
t.unshift({
|
|
128
|
-
...
|
|
143
|
+
...d,
|
|
129
144
|
isAccessible: !1,
|
|
130
|
-
cell:
|
|
145
|
+
cell: Le,
|
|
131
146
|
field: "value",
|
|
132
147
|
locked: e.lockGroups
|
|
133
|
-
}),
|
|
134
|
-
t.slice(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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);
|
|
140
157
|
if (e.columnVirtualization && t.colSpan === 1)
|
|
141
158
|
return { colSpan: a, colsToSkip: i };
|
|
142
|
-
let
|
|
143
|
-
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 };
|
|
144
161
|
};
|
|
145
|
-
let U,
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
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 ? {
|
|
149
166
|
group: !0,
|
|
150
167
|
sort: !0,
|
|
151
168
|
filter: !0,
|
|
169
|
+
search: !0,
|
|
152
170
|
page: !0
|
|
153
171
|
} : e.autoProcessData;
|
|
154
|
-
let C,
|
|
155
|
-
if (Array.isArray(e.data) ? (C = e.data,
|
|
156
|
-
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, {
|
|
157
175
|
group: F.group ? e.group : void 0,
|
|
158
176
|
sort: F.sort ? e.sort : void 0,
|
|
159
|
-
filter:
|
|
177
|
+
filter: vt(
|
|
178
|
+
F.filter ? e.filter : void 0,
|
|
179
|
+
F.search ? e.search : void 0
|
|
180
|
+
),
|
|
160
181
|
...F.page ? {
|
|
161
182
|
take: e.take,
|
|
162
183
|
skip: e.skip
|
|
163
184
|
} : {}
|
|
164
185
|
});
|
|
165
|
-
C = t,
|
|
186
|
+
C = t, v = (ke = e.total) != null ? ke : r;
|
|
166
187
|
}
|
|
167
|
-
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(
|
|
168
189
|
typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
|
|
169
|
-
), { resolvedGroupsCount:
|
|
170
|
-
|
|
190
|
+
), { resolvedGroupsCount: dt, flattedData: ct } = Xe(
|
|
191
|
+
it,
|
|
171
192
|
e.skip || 0,
|
|
172
193
|
e.group,
|
|
173
194
|
e.expandField,
|
|
@@ -175,218 +196,227 @@ const rl = l.forwardRef((e, ee) => {
|
|
|
175
196
|
e.groupExpand,
|
|
176
197
|
e.dataItemKey
|
|
177
198
|
);
|
|
178
|
-
|
|
179
|
-
const J =
|
|
180
|
-
J === j &&
|
|
199
|
+
g = ct;
|
|
200
|
+
const J = lt();
|
|
201
|
+
J === j && ae() && (O = g.slice(
|
|
181
202
|
e.skip || 0,
|
|
182
203
|
(e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
|
|
183
204
|
));
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
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(
|
|
187
208
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
188
|
-
),
|
|
189
|
-
|
|
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,
|
|
190
211
|
{
|
|
191
|
-
size:
|
|
212
|
+
size: E,
|
|
192
213
|
staticHeaders: e.scrollable !== "none",
|
|
193
|
-
draggable: e.reorderable ||
|
|
214
|
+
draggable: e.reorderable || K,
|
|
194
215
|
headerRow: /* @__PURE__ */ l.createElement(
|
|
195
|
-
|
|
216
|
+
At,
|
|
196
217
|
{
|
|
197
218
|
cells: e.cells,
|
|
198
219
|
sort: e.sort,
|
|
199
220
|
sortable: e.sortable,
|
|
200
221
|
group: e.group || [],
|
|
201
|
-
groupable:
|
|
222
|
+
groupable: K,
|
|
202
223
|
filter: e.filter,
|
|
203
224
|
filterable: e.filterable,
|
|
204
|
-
filterOperators: e.filterOperators ||
|
|
225
|
+
filterOperators: e.filterOperators || _e,
|
|
205
226
|
columnMenu: e.columnMenu,
|
|
206
227
|
columnMenuIcon: e.columnMenuIcon,
|
|
207
|
-
columns:
|
|
208
|
-
columnsMap:
|
|
228
|
+
columns: m.current,
|
|
229
|
+
columnsMap: G,
|
|
209
230
|
cellRender: e.headerCellRender,
|
|
210
231
|
navigatable: !!e.navigatable,
|
|
211
|
-
localization:
|
|
212
|
-
unstyled:
|
|
213
|
-
headerSelectionValue: !!(e.select &&
|
|
214
|
-
(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
|
|
215
236
|
))
|
|
216
237
|
}
|
|
217
238
|
),
|
|
218
239
|
filterRow: e.filterable && /* @__PURE__ */ l.createElement(
|
|
219
|
-
|
|
240
|
+
Bt,
|
|
220
241
|
{
|
|
221
242
|
cells: e.cells,
|
|
222
|
-
size:
|
|
223
|
-
columns:
|
|
243
|
+
size: E,
|
|
244
|
+
columns: m.current,
|
|
224
245
|
filter: e.filter,
|
|
225
|
-
filterOperators: e.filterOperators ||
|
|
246
|
+
filterOperators: e.filterOperators || _e,
|
|
226
247
|
sort: e.sort,
|
|
227
248
|
cellRender: e.filterCellRender,
|
|
228
249
|
navigatable: !!e.navigatable,
|
|
229
|
-
ariaRowIndex:
|
|
230
|
-
localization:
|
|
250
|
+
ariaRowIndex: G.length + 1,
|
|
251
|
+
localization: _
|
|
231
252
|
}
|
|
232
253
|
) || void 0,
|
|
233
|
-
cols:
|
|
254
|
+
cols: b.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: te(t) }))
|
|
234
255
|
}
|
|
235
|
-
),
|
|
236
|
-
let
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
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({
|
|
240
261
|
enabled: e.columnVirtualization,
|
|
241
|
-
columns:
|
|
242
|
-
tableViewPortWidth:
|
|
243
|
-
scrollLeft:
|
|
244
|
-
getColSpan:
|
|
262
|
+
columns: b,
|
|
263
|
+
tableViewPortWidth: ut,
|
|
264
|
+
scrollLeft: mt,
|
|
265
|
+
getColSpan: Ve,
|
|
245
266
|
dataItem: t.dataItem
|
|
246
|
-
}),
|
|
267
|
+
}), I = b.filter((n, y) => !T[y]);
|
|
247
268
|
return {
|
|
248
|
-
row:
|
|
249
|
-
|
|
269
|
+
row: b.map((n, y) => {
|
|
270
|
+
var Fe, De, Te, He;
|
|
271
|
+
if (T[y])
|
|
250
272
|
return null;
|
|
251
|
-
if (
|
|
252
|
-
return
|
|
253
|
-
|
|
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(
|
|
254
281
|
n,
|
|
255
282
|
t.dataItem,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
283
|
+
I,
|
|
284
|
+
y,
|
|
285
|
+
s,
|
|
286
|
+
h[y]
|
|
260
287
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
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;
|
|
264
291
|
if (n.editable && (e.editable || e.editField)) {
|
|
265
|
-
const
|
|
266
|
-
|
|
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);
|
|
267
294
|
}
|
|
268
|
-
const
|
|
295
|
+
const q = n.cell || Z && Ht || Jt, Ct = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", L = {
|
|
269
296
|
locked: e.lockGroups,
|
|
270
|
-
id:
|
|
271
|
-
`${r}-${String(
|
|
297
|
+
id: ee.generateNavigatableId(
|
|
298
|
+
`${r}-${String(y)}`,
|
|
272
299
|
x,
|
|
273
|
-
|
|
300
|
+
Ct || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
|
|
274
301
|
),
|
|
275
|
-
colSpan:
|
|
302
|
+
colSpan: P,
|
|
276
303
|
dataItem: t.dataItem,
|
|
277
304
|
field: n.field,
|
|
278
305
|
editor: n.editor,
|
|
279
306
|
format: n.format,
|
|
280
307
|
columnType: n.columnType,
|
|
281
|
-
rowReorderable:
|
|
282
|
-
className:
|
|
308
|
+
rowReorderable: N,
|
|
309
|
+
className: ht,
|
|
283
310
|
render: e.cellRender,
|
|
284
|
-
cells:
|
|
285
|
-
columnIndex:
|
|
286
|
-
columnsCount:
|
|
311
|
+
cells: Wt(e.cells, n.cells),
|
|
312
|
+
columnIndex: y,
|
|
313
|
+
columnsCount: b.length,
|
|
287
314
|
rowType: t.rowType,
|
|
288
315
|
level: t.level,
|
|
289
316
|
expanded: t.expanded,
|
|
290
317
|
dataIndex: t.dataIndex,
|
|
291
|
-
rowDataIndex:
|
|
292
|
-
columnPosition:
|
|
318
|
+
rowDataIndex: d,
|
|
319
|
+
columnPosition: yt,
|
|
293
320
|
style: {},
|
|
294
321
|
ariaColumnIndex: n.ariaColumnIndex,
|
|
295
|
-
isSelected: (n == null ? void 0 : n._type) === "edit" ?
|
|
296
|
-
isSorted: !!
|
|
297
|
-
isInEdit:
|
|
298
|
-
isAlt:
|
|
299
|
-
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,
|
|
300
327
|
group: t.group,
|
|
301
|
-
localization:
|
|
302
|
-
intl:
|
|
328
|
+
localization: _,
|
|
329
|
+
intl: nt,
|
|
330
|
+
_rowSpan: w
|
|
303
331
|
};
|
|
304
332
|
return n.cell ? /* @__PURE__ */ l.createElement(
|
|
305
|
-
|
|
333
|
+
ul,
|
|
306
334
|
{
|
|
307
|
-
key:
|
|
308
|
-
isClient:
|
|
309
|
-
dataItem:
|
|
310
|
-
rowDataIndex:
|
|
311
|
-
columnIndex:
|
|
335
|
+
key: V,
|
|
336
|
+
isClient: jt(q),
|
|
337
|
+
dataItem: L.dataItem,
|
|
338
|
+
rowDataIndex: L.rowDataIndex,
|
|
339
|
+
columnIndex: L.columnIndex
|
|
312
340
|
},
|
|
313
|
-
/* @__PURE__ */ l.createElement(
|
|
314
|
-
) : /* @__PURE__ */ l.createElement(
|
|
341
|
+
/* @__PURE__ */ l.createElement(q, { ...L })
|
|
342
|
+
) : /* @__PURE__ */ l.createElement(q, { key: V, ...L });
|
|
315
343
|
}),
|
|
316
|
-
isInEdit:
|
|
317
|
-
isSelected: typeof
|
|
344
|
+
isInEdit: a,
|
|
345
|
+
isSelected: typeof c == "boolean" && c
|
|
318
346
|
};
|
|
319
347
|
};
|
|
320
|
-
let
|
|
321
|
-
if (
|
|
348
|
+
let me = 0;
|
|
349
|
+
if (D && U)
|
|
322
350
|
for (let t = 0; t < U.topCacheCount + U.attendedSkip - (e.skip || 0); t++) {
|
|
323
|
-
const r =
|
|
351
|
+
const r = g.shift();
|
|
324
352
|
if (r)
|
|
325
|
-
|
|
353
|
+
g.push(r), me++, r.rowType === "groupHeader" && t--;
|
|
326
354
|
else
|
|
327
355
|
break;
|
|
328
356
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
331
|
-
const Q = [],
|
|
332
|
-
let
|
|
333
|
-
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) {
|
|
334
362
|
let t = -1, r = 0;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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(
|
|
339
368
|
/* @__PURE__ */ l.createElement(
|
|
340
|
-
|
|
369
|
+
Qt,
|
|
341
370
|
{
|
|
342
|
-
key:
|
|
371
|
+
key: h,
|
|
343
372
|
dataItem: o.dataItem,
|
|
344
|
-
isAltRow:
|
|
345
|
-
isInEdit:
|
|
373
|
+
isAltRow: a,
|
|
374
|
+
isInEdit: I.isInEdit,
|
|
346
375
|
rowType: o.rowType,
|
|
347
|
-
isRowReorderable:
|
|
348
|
-
isHidden:
|
|
376
|
+
isRowReorderable: N,
|
|
377
|
+
isHidden: ue(i),
|
|
349
378
|
onClick: null,
|
|
350
379
|
onDoubleClick: null,
|
|
351
380
|
selectedField: e.selectedField,
|
|
352
381
|
rowHeight: e.rowHeight,
|
|
353
382
|
render: e.rowRender,
|
|
354
|
-
ariaRowIndex:
|
|
355
|
-
absoluteRowIndex:
|
|
356
|
-
dataIndex:
|
|
357
|
-
isSelected:
|
|
383
|
+
ariaRowIndex: B,
|
|
384
|
+
absoluteRowIndex: s,
|
|
385
|
+
dataIndex: D && !e.groupable ? s : t,
|
|
386
|
+
isSelected: I.isSelected,
|
|
387
|
+
rows: e.rows
|
|
358
388
|
},
|
|
359
|
-
|
|
389
|
+
I.row
|
|
360
390
|
)
|
|
361
391
|
), e.detail && o.rowType === "data" && o.expanded) {
|
|
362
|
-
const n =
|
|
363
|
-
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(
|
|
364
394
|
/* @__PURE__ */ l.createElement(
|
|
365
395
|
"tr",
|
|
366
396
|
{
|
|
367
|
-
key:
|
|
368
|
-
className:
|
|
397
|
+
key: T,
|
|
398
|
+
className: f(u.detailTr({ isAlt: a })),
|
|
369
399
|
style: {
|
|
370
|
-
visibility:
|
|
400
|
+
visibility: ue(i) ? "hidden" : "",
|
|
371
401
|
height: e.detailRowHeight
|
|
372
402
|
},
|
|
373
403
|
role: "row",
|
|
374
|
-
"aria-rowindex":
|
|
404
|
+
"aria-rowindex": B
|
|
375
405
|
},
|
|
376
|
-
e.group && e.group.map((
|
|
377
|
-
var
|
|
378
|
-
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 } : {};
|
|
379
409
|
return /* @__PURE__ */ l.createElement(
|
|
380
|
-
|
|
410
|
+
Le,
|
|
381
411
|
{
|
|
382
412
|
id: "",
|
|
383
413
|
dataIndex: o.dataIndex,
|
|
384
|
-
field:
|
|
414
|
+
field: y.field,
|
|
385
415
|
dataItem: o.dataItem,
|
|
386
|
-
key:
|
|
387
|
-
columnPosition:
|
|
416
|
+
key: w,
|
|
417
|
+
columnPosition: Y,
|
|
388
418
|
style: {},
|
|
389
|
-
ariaColumnIndex: 1 +
|
|
419
|
+
ariaColumnIndex: 1 + w,
|
|
390
420
|
isSelected: !1,
|
|
391
421
|
locked: e.lockGroups,
|
|
392
422
|
cells: e.cells,
|
|
@@ -394,22 +424,22 @@ const rl = l.forwardRef((e, ee) => {
|
|
|
394
424
|
}
|
|
395
425
|
);
|
|
396
426
|
}),
|
|
397
|
-
(e.expandField ||
|
|
398
|
-
|
|
427
|
+
(e.expandField || A.enabled) && /* @__PURE__ */ l.createElement(
|
|
428
|
+
el,
|
|
399
429
|
{
|
|
400
|
-
unstyled:
|
|
401
|
-
id:
|
|
430
|
+
unstyled: k,
|
|
431
|
+
id: ee.generateNavigatableId(`${T}-dhcell`, x)
|
|
402
432
|
}
|
|
403
433
|
),
|
|
404
434
|
/* @__PURE__ */ l.createElement(
|
|
405
|
-
|
|
435
|
+
pt,
|
|
406
436
|
{
|
|
407
437
|
dataItem: o.dataItem,
|
|
408
438
|
dataIndex: o.dataIndex,
|
|
409
439
|
colSpan: n,
|
|
410
440
|
ariaColIndex: 2 + (e.group ? e.group.length : 0),
|
|
411
441
|
detail: e.detail,
|
|
412
|
-
id:
|
|
442
|
+
id: ee.generateNavigatableId(`${T}-dcell`, x)
|
|
413
443
|
}
|
|
414
444
|
)
|
|
415
445
|
)
|
|
@@ -417,174 +447,174 @@ const rl = l.forwardRef((e, ee) => {
|
|
|
417
447
|
}
|
|
418
448
|
});
|
|
419
449
|
}
|
|
420
|
-
const
|
|
421
|
-
size:
|
|
422
|
-
total:
|
|
450
|
+
const he = {
|
|
451
|
+
size: E,
|
|
452
|
+
total: v,
|
|
423
453
|
skip: e.skip || 0,
|
|
424
454
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
425
|
-
...
|
|
426
|
-
},
|
|
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) => {
|
|
427
457
|
var r;
|
|
428
458
|
return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
|
|
429
459
|
}) ? /* @__PURE__ */ l.createElement(
|
|
430
|
-
|
|
460
|
+
Vt,
|
|
431
461
|
{
|
|
432
|
-
size:
|
|
462
|
+
size: E,
|
|
433
463
|
staticHeaders: e.scrollable !== "none",
|
|
434
464
|
row: /* @__PURE__ */ l.createElement(
|
|
435
|
-
|
|
465
|
+
Yt,
|
|
436
466
|
{
|
|
437
467
|
cells: e.cells,
|
|
438
468
|
idPrefix: x,
|
|
439
|
-
columns:
|
|
440
|
-
ariaRowIndex:
|
|
469
|
+
columns: m.current,
|
|
470
|
+
ariaRowIndex: B + 1
|
|
441
471
|
}
|
|
442
472
|
),
|
|
443
|
-
cols:
|
|
473
|
+
cols: b.map(gt)
|
|
444
474
|
}
|
|
445
|
-
) : null,
|
|
475
|
+
) : null, Ce = /* @__PURE__ */ l.createElement(ll, null, b.map((t, r) => /* @__PURE__ */ l.createElement(
|
|
446
476
|
"col",
|
|
447
477
|
{
|
|
448
478
|
key: r.toString(),
|
|
449
|
-
className:
|
|
450
|
-
width:
|
|
479
|
+
className: Be(t.field, e.sort) ? f(u.sorted({})) : void 0,
|
|
480
|
+
width: te(t)
|
|
451
481
|
}
|
|
452
|
-
))),
|
|
482
|
+
))), we = e.reorderable || K, { detail: yl, cells: Cl, rows: wl, ...Ee } = e, Ie = /* @__PURE__ */ l.createElement(
|
|
453
483
|
"tbody",
|
|
454
484
|
{
|
|
455
485
|
role: "rowgroup",
|
|
456
|
-
className:
|
|
457
|
-
...
|
|
486
|
+
className: f(u.tbody({})),
|
|
487
|
+
...Nt
|
|
458
488
|
},
|
|
459
489
|
Q
|
|
460
490
|
);
|
|
461
|
-
let X =
|
|
462
|
-
if (
|
|
463
|
-
|
|
491
|
+
let X = Ie;
|
|
492
|
+
if (N && (X = /* @__PURE__ */ l.createElement(
|
|
493
|
+
fl,
|
|
464
494
|
{
|
|
465
|
-
unstyled:
|
|
466
|
-
columns:
|
|
495
|
+
unstyled: u,
|
|
496
|
+
columns: m.current,
|
|
467
497
|
rowReorderSettings: e.rowReorderable
|
|
468
498
|
},
|
|
469
|
-
|
|
499
|
+
Ie
|
|
470
500
|
)), e.scrollable === "none")
|
|
471
501
|
return /* @__PURE__ */ l.createElement(
|
|
472
|
-
|
|
502
|
+
Me,
|
|
473
503
|
{
|
|
474
|
-
gridRef:
|
|
475
|
-
gridProps:
|
|
504
|
+
gridRef: le,
|
|
505
|
+
gridProps: Ee,
|
|
476
506
|
columnsRef: $(),
|
|
477
|
-
columnsMapRef:
|
|
478
|
-
dataRef:
|
|
479
|
-
slicedData:
|
|
507
|
+
columnsMapRef: G,
|
|
508
|
+
dataRef: g,
|
|
509
|
+
slicedData: O,
|
|
480
510
|
isFixedVirtualScroll: J === j,
|
|
481
511
|
id: R,
|
|
482
|
-
total:
|
|
512
|
+
total: v,
|
|
483
513
|
detailExpandable: !!e.detail
|
|
484
514
|
},
|
|
485
|
-
/* @__PURE__ */ l.createElement(
|
|
515
|
+
/* @__PURE__ */ l.createElement(Ue, null, /* @__PURE__ */ l.createElement(
|
|
486
516
|
"div",
|
|
487
517
|
{
|
|
488
518
|
id: e.id,
|
|
489
519
|
style: e.style,
|
|
490
|
-
className:
|
|
520
|
+
className: f(u.wrapper({ size: E }), e.className),
|
|
491
521
|
"aria-label": e.ariaLabel,
|
|
492
|
-
...
|
|
522
|
+
...Ke
|
|
493
523
|
},
|
|
494
|
-
|
|
495
|
-
|
|
524
|
+
oe,
|
|
525
|
+
ce,
|
|
496
526
|
/* @__PURE__ */ l.createElement(
|
|
497
|
-
|
|
527
|
+
al,
|
|
498
528
|
{
|
|
499
529
|
selectable: e.selectable,
|
|
500
|
-
className:
|
|
530
|
+
className: f(u.table({ size: E }))
|
|
501
531
|
},
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
/* @__PURE__ */ l.createElement(
|
|
532
|
+
Ce,
|
|
533
|
+
se,
|
|
534
|
+
/* @__PURE__ */ l.createElement($e, { rowReorderable: N }, X)
|
|
505
535
|
),
|
|
506
|
-
|
|
507
|
-
|
|
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))
|
|
508
538
|
)),
|
|
509
|
-
|
|
510
|
-
e.pageable &&
|
|
511
|
-
/* @__PURE__ */ l.createElement(
|
|
539
|
+
de,
|
|
540
|
+
e.pageable && ye,
|
|
541
|
+
/* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
|
|
512
542
|
);
|
|
513
|
-
let
|
|
514
|
-
return
|
|
515
|
-
|
|
543
|
+
let W = e.style || {};
|
|
544
|
+
return D && (W.height || (W = Object.assign({}, W, { height: "450px" }))), /* @__PURE__ */ l.createElement(
|
|
545
|
+
Me,
|
|
516
546
|
{
|
|
517
|
-
gridRef:
|
|
518
|
-
gridProps:
|
|
547
|
+
gridRef: le,
|
|
548
|
+
gridProps: Ee,
|
|
519
549
|
columnsRef: $(),
|
|
520
|
-
columnsMapRef:
|
|
521
|
-
dataRef:
|
|
522
|
-
slicedData:
|
|
550
|
+
columnsMapRef: G,
|
|
551
|
+
dataRef: g,
|
|
552
|
+
slicedData: O,
|
|
523
553
|
isFixedVirtualScroll: J === j,
|
|
524
554
|
id: R,
|
|
525
|
-
total:
|
|
555
|
+
total: v,
|
|
526
556
|
detailExpandable: !!e.detail
|
|
527
557
|
},
|
|
528
|
-
/* @__PURE__ */ l.createElement(
|
|
558
|
+
/* @__PURE__ */ l.createElement(Ue, null, /* @__PURE__ */ l.createElement(
|
|
529
559
|
"div",
|
|
530
560
|
{
|
|
531
561
|
id: e.id,
|
|
532
|
-
style:
|
|
533
|
-
className:
|
|
534
|
-
|
|
535
|
-
size:
|
|
536
|
-
virtual:
|
|
562
|
+
style: W,
|
|
563
|
+
className: f(
|
|
564
|
+
u.wrapper({
|
|
565
|
+
size: E,
|
|
566
|
+
virtual: D
|
|
537
567
|
}),
|
|
538
568
|
e.className
|
|
539
569
|
),
|
|
540
570
|
"aria-label": e.ariaLabel,
|
|
541
|
-
...
|
|
571
|
+
...Ke
|
|
542
572
|
},
|
|
543
|
-
|
|
544
|
-
|
|
573
|
+
oe,
|
|
574
|
+
ce,
|
|
545
575
|
/* @__PURE__ */ l.createElement(
|
|
546
576
|
"div",
|
|
547
577
|
{
|
|
548
|
-
className:
|
|
578
|
+
className: f(u.ariaRoot({})),
|
|
549
579
|
role: "grid",
|
|
550
|
-
"aria-colcount":
|
|
551
|
-
"aria-rowcount":
|
|
580
|
+
"aria-colcount": b.length,
|
|
581
|
+
"aria-rowcount": v,
|
|
552
582
|
id: R,
|
|
553
|
-
"aria-label":
|
|
583
|
+
"aria-label": _.toLanguageString(Je, sl[Je])
|
|
554
584
|
},
|
|
555
|
-
|
|
556
|
-
/* @__PURE__ */ l.createElement("div", { className:
|
|
557
|
-
|
|
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,
|
|
558
588
|
{
|
|
559
589
|
selectable: e.selectable,
|
|
560
|
-
tableClassName:
|
|
561
|
-
|
|
562
|
-
size:
|
|
590
|
+
tableClassName: f(
|
|
591
|
+
u.table({
|
|
592
|
+
size: E
|
|
563
593
|
})
|
|
564
594
|
),
|
|
565
|
-
tableStyle: { userSelect:
|
|
595
|
+
tableStyle: { userSelect: st }
|
|
566
596
|
},
|
|
567
|
-
|
|
568
|
-
/* @__PURE__ */ l.createElement(
|
|
569
|
-
),
|
|
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(
|
|
570
600
|
"div",
|
|
571
601
|
{
|
|
572
|
-
className:
|
|
602
|
+
className: f(u.heightContainer({})),
|
|
573
603
|
role: "presentation"
|
|
574
604
|
},
|
|
575
|
-
/* @__PURE__ */ l.createElement(
|
|
605
|
+
/* @__PURE__ */ l.createElement(ol, { isVirtualScroll: D })
|
|
576
606
|
)))),
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
/* @__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)
|
|
580
610
|
),
|
|
581
|
-
|
|
582
|
-
e.pageable &&
|
|
583
|
-
/* @__PURE__ */ l.createElement(
|
|
611
|
+
de,
|
|
612
|
+
e.pageable && ye,
|
|
613
|
+
/* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
|
|
584
614
|
))
|
|
585
615
|
);
|
|
586
616
|
});
|
|
587
|
-
|
|
617
|
+
hl.displayName = "KendoReactGridComponent";
|
|
588
618
|
export {
|
|
589
|
-
|
|
619
|
+
hl as GridComponent
|
|
590
620
|
};
|