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