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