@progress/kendo-react-grid 9.4.0-develop.7 → 9.4.0-develop.9
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/GridComponent.js +1 -1
- package/GridComponent.mjs +135 -132
- package/components/GridLoader.js +9 -0
- package/components/GridLoader.mjs +22 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +8 -0
- package/index.d.ts +8 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -12
package/GridComponent.mjs
CHANGED
|
@@ -6,78 +6,79 @@
|
|
|
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 p, isSorted as Ne, flatData as
|
|
21
|
-
import { GridCell as
|
|
9
|
+
import { validatePackage as ct, uGrid as st, getter as N, classNames as m, canUseDOM as mt } from "@progress/kendo-react-common";
|
|
10
|
+
import { process as ut } from "@progress/kendo-data-query";
|
|
11
|
+
import { getDetailExpandableOptions as ft, getGroupExpandableOptions as gt, getSelectionOptions as bt, tableKeyboardNavigationTools as q, Pager as yt, tableKeyboardNavigationBodyAttributes as ht, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as Ct } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { GridSelectionCell as wt } from "./cells/GridSelectionCell.mjs";
|
|
13
|
+
import { GridHierarchyCell as Et } from "./cells/GridHierarchyCell.mjs";
|
|
14
|
+
import { GridEditCell as It } from "./cells/GridEditCell.mjs";
|
|
15
|
+
import { Header as Rt } from "./header/Header.mjs";
|
|
16
|
+
import { HeaderRow as xt } from "./header/HeaderRow.mjs";
|
|
17
|
+
import { FilterRow as vt } from "./header/FilterRow.mjs";
|
|
18
|
+
import { GroupPanel as St } from "./header/GroupPanel.mjs";
|
|
19
|
+
import { Footer as Gt } from "./footer/Footer.mjs";
|
|
20
|
+
import { getColumnWidth as p, isSorted as Ne, flatData as kt, autoGenerateColumns as Nt, mapColumns as Ft, clientColumn as Dt, getNestedValue as Fe, getColSpan as De, resolveCells as Tt, isClientReference as Kt, sanitizeColumns as Ht, readColumns as At } from "./utils/index.mjs";
|
|
21
|
+
import { GridCell as Pt } from "./cells/GridCell.mjs";
|
|
22
22
|
import { GridGroupCell as Te } from "./cells/GridGroupCell.mjs";
|
|
23
|
-
import { GridRow as
|
|
24
|
-
import { GridHeaderSelectionCell as
|
|
23
|
+
import { GridRow as Bt } from "./rows/GridRow.mjs";
|
|
24
|
+
import { GridHeaderSelectionCell as Vt } from "./header/GridHeaderSelectionCell.mjs";
|
|
25
25
|
import { GridNoRecords as Ke } from "./components/noRecords/GridNoRecords.mjs";
|
|
26
26
|
import { operators as He } from "./filterCommon.mjs";
|
|
27
|
-
import { FooterRow as
|
|
27
|
+
import { FooterRow as Lt } from "./footer/FooterRow.mjs";
|
|
28
28
|
import { normalize as zt } from "./paging/GridPagerSettings.mjs";
|
|
29
29
|
import { packageMetadata as Ot } from "./package-metadata.mjs";
|
|
30
30
|
import { GridDetailCell as _t } from "./cells/GridDetailCell.mjs";
|
|
31
|
-
import { GridDetailHierarchyCell as
|
|
31
|
+
import { GridDetailHierarchyCell as Mt } from "./cells/GridDetailHierarchyCell.mjs";
|
|
32
32
|
import { GridNoRecordsContainer as Ae } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
33
|
-
import { GridWatermarkOverlay as
|
|
33
|
+
import { GridWatermarkOverlay as Wt } from "./GridWatermarkOverlay.mjs";
|
|
34
34
|
import { GridClientWrapper as Pe } from "./GridClientWrapper.mjs";
|
|
35
|
-
import { GridColGroup as
|
|
36
|
-
import { GridTable as
|
|
35
|
+
import { GridColGroup as jt } from "./components/colGroup/GridColGroup.mjs";
|
|
36
|
+
import { GridTable as $t } from "./components/table/GridTable.mjs";
|
|
37
37
|
import { GridDropClue as Be } from "./components/GridDropClue.mjs";
|
|
38
38
|
import { GridDragClue as Ve } from "./components/GridDragClue.mjs";
|
|
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
|
|
39
|
+
import { GridTableBody as Le } from "./components/table/GridTableBody.mjs";
|
|
40
|
+
import { PagerContainer as Ut } from "./components/PagerContainer.mjs";
|
|
41
|
+
import { GridTableScrollable as Jt } from "./components/table/GridTableScrollable.mjs";
|
|
42
|
+
import { GridElementContainer as ze } from "./components/GridElementContainer.mjs";
|
|
43
|
+
import { GridContainerElementContainer as Qt } from "./components/GridContainerElementContainer.mjs";
|
|
44
|
+
import { VirtualScrollHeightContainer as Xt } from "./components/VirtualScrollHeightContainer.mjs";
|
|
45
|
+
import { LocalizationService as Yt, IntlService as Zt } from "@progress/kendo-react-intl";
|
|
46
|
+
import { gridAriaLabel as Oe, messages as qt } 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
|
-
|
|
48
|
+
import { VirtualScroll as pt } from "./VirtualScroll.mjs";
|
|
49
|
+
import { GridCustomCellClientContainer as el } from "./components/GridCustomCellClientContainer.mjs";
|
|
50
|
+
import { GridReorderableRowsContainer as tl } from "./components/GridDraggableRowsContainer.mjs";
|
|
51
|
+
import { GridRowReorderCell as ll } from "./cells/GridRowReorderCell.mjs";
|
|
52
|
+
import { GridHeaderRowReorderCell as al } from "./header/client/GridHeaderRowReorderCell.mjs";
|
|
53
|
+
import { GridLoader as _e } from "./components/GridLoader.mjs";
|
|
54
|
+
const rl = l.forwardRef((e, ee) => {
|
|
54
55
|
var we, Ee, Ie, Re, xe, ve, Se;
|
|
55
56
|
const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const f = [], g =
|
|
57
|
+
ct(Ot);
|
|
58
|
+
const Me = (t, r, o, d, i, a, c) => {
|
|
59
|
+
const f = [], g = kt(
|
|
59
60
|
f,
|
|
60
|
-
|
|
61
|
+
C,
|
|
61
62
|
t,
|
|
62
63
|
{ index: r },
|
|
63
64
|
o !== void 0,
|
|
64
65
|
d,
|
|
65
66
|
i,
|
|
66
67
|
a,
|
|
67
|
-
|
|
68
|
+
qe.defaultExpand,
|
|
68
69
|
c
|
|
69
70
|
);
|
|
70
71
|
return { flattedData: f, resolvedGroupsCount: g };
|
|
71
|
-
},
|
|
72
|
+
}, We = (t) => {
|
|
72
73
|
const r = t.filter(
|
|
73
74
|
(i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
|
|
74
|
-
), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d =
|
|
75
|
-
return
|
|
76
|
-
},
|
|
75
|
+
), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Ht(o);
|
|
76
|
+
return At(r, d, { prevId: 0, idPrefix: x });
|
|
77
|
+
}, je = (t) => t.filter((r) => mt && r && r.media ? window.matchMedia(r.media).matches : r), $e = (t, r) => {
|
|
77
78
|
var i;
|
|
78
|
-
const o =
|
|
79
|
-
u.current = d, u.current.length === 0 && (u.current =
|
|
80
|
-
|
|
79
|
+
const o = We(t), d = je(o);
|
|
80
|
+
u.current = d, u.current.length === 0 && (u.current = Nt(
|
|
81
|
+
C,
|
|
81
82
|
e.group,
|
|
82
83
|
{
|
|
83
84
|
column: (i = T.column) != null ? i : e.expandField
|
|
@@ -86,13 +87,13 @@ const al = l.forwardRef((e, ee) => {
|
|
|
86
87
|
prevId: 0,
|
|
87
88
|
idPrefix: x
|
|
88
89
|
}
|
|
89
|
-
)),
|
|
90
|
-
},
|
|
90
|
+
)), Ue(u.current, r), v = Ft(u.current, !0), le.current = u.current.map(Dt);
|
|
91
|
+
}, Ue = (t, r) => {
|
|
91
92
|
var i;
|
|
92
93
|
t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
|
|
93
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
94
|
+
a.width = a.width || "50px", a.cell = a.cell || wt, a._type = "edit", a.headerCell = a.headerCell || Vt;
|
|
94
95
|
}), G !== void 0 && t.filter((a) => a.columnType === "reorder").forEach((a) => {
|
|
95
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
96
|
+
a.width = a.width || "50px", a.cell = a.cell || ll, a.headerCell = a.headerCell || al, a.sortable = !1, a.filterable = !1, a.editable = !1;
|
|
96
97
|
});
|
|
97
98
|
const o = {
|
|
98
99
|
id: "",
|
|
@@ -118,7 +119,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
118
119
|
(e.expandField || T.enabled) && e.detail && (t.unshift({
|
|
119
120
|
...o,
|
|
120
121
|
_type: "expand",
|
|
121
|
-
cell:
|
|
122
|
+
cell: Et,
|
|
122
123
|
field: (i = T.column) != null ? i : e.expandField,
|
|
123
124
|
headerClassName: m(s.hierarchyCell({}))
|
|
124
125
|
}), d++);
|
|
@@ -131,10 +132,10 @@ const al = l.forwardRef((e, ee) => {
|
|
|
131
132
|
locked: e.lockGroups
|
|
132
133
|
}), d++;
|
|
133
134
|
t.slice(d).forEach((a) => a.parentIndex >= 0 && (a.parentIndex += d));
|
|
134
|
-
}, te = () =>
|
|
135
|
+
}, te = () => C.length === e.total, Je = () => {
|
|
135
136
|
const { rowHeight: t, detailRowHeight: r, detail: o, expandField: d } = e, i = te(), a = t !== void 0 && t > 0, c = r !== void 0 && r > 0;
|
|
136
|
-
return !a || D && !i || !!(o && d) && (!c || !i) ?
|
|
137
|
-
}, $ = () => e.isClient ? u : le,
|
|
137
|
+
return !a || D && !i || !!(o && d) && (!c || !i) ? pt : j;
|
|
138
|
+
}, $ = () => e.isClient ? u : le, Qe = (t, r, o, d, i, a) => {
|
|
138
139
|
let c = De(t, r);
|
|
139
140
|
if (e.columnVirtualization && t.colSpan === 1)
|
|
140
141
|
return { colSpan: a, colsToSkip: i };
|
|
@@ -144,15 +145,15 @@ const al = l.forwardRef((e, ee) => {
|
|
|
144
145
|
let U, b = [], V;
|
|
145
146
|
const u = e.columnsRef || { current: [] }, le = { current: [] };
|
|
146
147
|
let v = [[]];
|
|
147
|
-
const
|
|
148
|
+
const Xe = e.scrollLeftRef || { current: 0 }, L = e.localization || new Yt(), Ye = e.intl || new Zt("en"), S = e.unstyled, s = S && S.uGrid ? S.uGrid : st, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
|
|
148
149
|
group: !0,
|
|
149
150
|
sort: !0,
|
|
150
151
|
filter: !0,
|
|
151
152
|
page: !0
|
|
152
153
|
} : e.autoProcessData;
|
|
153
|
-
let
|
|
154
|
-
if (Array.isArray(e.data) ? (
|
|
155
|
-
const { data: t, total: r } =
|
|
154
|
+
let C, I;
|
|
155
|
+
if (Array.isArray(e.data) ? (C = e.data, I = (we = e.total) != null ? we : C.length) : (C = ((Ee = e.data) == null ? void 0 : Ee.data) || [], I = (xe = (Re = e.total) != null ? Re : (Ie = e.data) == null ? void 0 : Ie.total) != null ? xe : C.length), F) {
|
|
156
|
+
const { data: t, total: r } = ut(C, {
|
|
156
157
|
group: F.group ? e.group : void 0,
|
|
157
158
|
sort: F.sort ? e.sort : void 0,
|
|
158
159
|
filter: F.filter ? e.filter : void 0,
|
|
@@ -161,12 +162,12 @@ const al = l.forwardRef((e, ee) => {
|
|
|
161
162
|
skip: e.skip
|
|
162
163
|
} : {}
|
|
163
164
|
});
|
|
164
|
-
|
|
165
|
+
C = t, I = (ve = e.total) != null ? ve : r;
|
|
165
166
|
}
|
|
166
|
-
const { size: w = "medium" } = e,
|
|
167
|
+
const { size: w = "medium" } = e, Ze = typeof e.groupable == "object" && e.groupable.footer || "none", k = e.scrollable === "virtual", D = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, T = ft(!!e.detail), qe = gt(
|
|
167
168
|
typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
|
|
168
|
-
), { resolvedGroupsCount:
|
|
169
|
-
|
|
169
|
+
), { resolvedGroupsCount: pe, flattedData: et } = Me(
|
|
170
|
+
Ze,
|
|
170
171
|
e.skip || 0,
|
|
171
172
|
e.group,
|
|
172
173
|
e.expandField,
|
|
@@ -174,24 +175,24 @@ const al = l.forwardRef((e, ee) => {
|
|
|
174
175
|
e.groupExpand,
|
|
175
176
|
e.dataItemKey
|
|
176
177
|
);
|
|
177
|
-
b =
|
|
178
|
-
const J =
|
|
178
|
+
b = et;
|
|
179
|
+
const J = Je();
|
|
179
180
|
J === j && te() && (V = b.slice(
|
|
180
181
|
e.skip || 0,
|
|
181
182
|
(e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
|
|
182
183
|
));
|
|
183
|
-
const ae =
|
|
184
|
-
|
|
185
|
-
const re =
|
|
184
|
+
const ae = bt(e.selectable || !!e.selectedField), tt = ae && ae.drag ? "none" : void 0, z = l.Children.toArray(e.children);
|
|
185
|
+
$e(z, pe);
|
|
186
|
+
const re = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), O = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ne = z.filter(
|
|
186
187
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
187
|
-
), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(
|
|
188
|
-
|
|
188
|
+
), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(St, { columns: $().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
|
|
189
|
+
Rt,
|
|
189
190
|
{
|
|
190
191
|
size: w,
|
|
191
192
|
staticHeaders: e.scrollable !== "none",
|
|
192
193
|
draggable: e.reorderable || D,
|
|
193
194
|
headerRow: /* @__PURE__ */ l.createElement(
|
|
194
|
-
|
|
195
|
+
xt,
|
|
195
196
|
{
|
|
196
197
|
cells: e.cells,
|
|
197
198
|
sort: e.sort,
|
|
@@ -207,7 +208,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
207
208
|
columnsMap: v,
|
|
208
209
|
cellRender: e.headerCellRender,
|
|
209
210
|
navigatable: !!e.navigatable,
|
|
210
|
-
localization:
|
|
211
|
+
localization: L,
|
|
211
212
|
unstyled: S,
|
|
212
213
|
headerSelectionValue: !!(e.select && b.filter((t) => t.rowType === "data").every(
|
|
213
214
|
(t) => e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0
|
|
@@ -215,7 +216,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
215
216
|
}
|
|
216
217
|
),
|
|
217
218
|
filterRow: e.filterable && /* @__PURE__ */ l.createElement(
|
|
218
|
-
|
|
219
|
+
vt,
|
|
219
220
|
{
|
|
220
221
|
cells: e.cells,
|
|
221
222
|
size: w,
|
|
@@ -226,50 +227,50 @@ const al = l.forwardRef((e, ee) => {
|
|
|
226
227
|
cellRender: e.filterCellRender,
|
|
227
228
|
navigatable: !!e.navigatable,
|
|
228
229
|
ariaRowIndex: v.length + 1,
|
|
229
|
-
localization:
|
|
230
|
+
localization: L
|
|
230
231
|
}
|
|
231
232
|
) || void 0,
|
|
232
233
|
cols: y.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
|
|
233
234
|
}
|
|
234
|
-
),
|
|
235
|
+
), lt = Xe.current || 0, at = parseFloat(((e.style || {}).width || "").toString()), rt = (t, r, o, d) => {
|
|
235
236
|
let i = !1;
|
|
236
237
|
const a = e.selectedField ? Fe(e.selectedField, t.dataItem) : e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0;
|
|
237
238
|
let c = 0;
|
|
238
239
|
const { colSpans: f, hiddenColumns: g } = Ct({
|
|
239
240
|
enabled: e.columnVirtualization,
|
|
240
241
|
columns: y,
|
|
241
|
-
tableViewPortWidth:
|
|
242
|
-
scrollLeft:
|
|
242
|
+
tableViewPortWidth: at,
|
|
243
|
+
scrollLeft: lt,
|
|
243
244
|
getColSpan: De,
|
|
244
245
|
dataItem: t.dataItem
|
|
245
|
-
}), E = y.filter((n,
|
|
246
|
+
}), E = y.filter((n, h) => !g[h]);
|
|
246
247
|
return {
|
|
247
|
-
row: y.map((n,
|
|
248
|
-
if (g[
|
|
248
|
+
row: y.map((n, h) => {
|
|
249
|
+
if (g[h])
|
|
249
250
|
return null;
|
|
250
251
|
if (c > 0)
|
|
251
252
|
return c--, null;
|
|
252
|
-
const { colSpan: H, colsToSkip: A } =
|
|
253
|
+
const { colSpan: H, colsToSkip: A } = Qe(
|
|
253
254
|
n,
|
|
254
255
|
t.dataItem,
|
|
255
256
|
E,
|
|
256
|
-
|
|
257
|
+
h,
|
|
257
258
|
c,
|
|
258
|
-
f[
|
|
259
|
+
f[h]
|
|
259
260
|
);
|
|
260
261
|
c = A;
|
|
261
|
-
const M = n.id ? n.id :
|
|
262
|
+
const M = n.id ? n.id : h, W = m(s.contentSticky({ locked: n.locked }), n.className), ot = n.left !== void 0 ? { left: n.left, right: n.right } : {};
|
|
262
263
|
let Ge = !1;
|
|
263
264
|
if (n.editable && (e.editable || e.editField)) {
|
|
264
265
|
const B = e.editField ? Fe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[N(e.dataItemKey)(t.dataItem)] : void 0, Z = typeof B == "boolean" ? B : Array.isArray(B) ? B.indexOf(n.field) > -1 : n.field !== void 0 && B === n.field;
|
|
265
266
|
Z && n.columnType === "data" && (Z === !0 || Z === n.field) && (i = !0, Ge = !0);
|
|
266
267
|
}
|
|
267
|
-
const Y = n.cell || Ge &&
|
|
268
|
+
const Y = n.cell || Ge && It || Pt, dt = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
|
|
268
269
|
locked: e.lockGroups,
|
|
269
270
|
id: q.generateNavigatableId(
|
|
270
|
-
`${r}-${String(
|
|
271
|
+
`${r}-${String(h)}`,
|
|
271
272
|
x,
|
|
272
|
-
|
|
273
|
+
dt || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
|
|
273
274
|
),
|
|
274
275
|
colSpan: H,
|
|
275
276
|
dataItem: t.dataItem,
|
|
@@ -280,31 +281,31 @@ const al = l.forwardRef((e, ee) => {
|
|
|
280
281
|
rowReorderable: G,
|
|
281
282
|
className: W,
|
|
282
283
|
render: e.cellRender,
|
|
283
|
-
cells:
|
|
284
|
-
columnIndex:
|
|
284
|
+
cells: Tt(e.cells, n.cells),
|
|
285
|
+
columnIndex: h,
|
|
285
286
|
columnsCount: y.length,
|
|
286
287
|
rowType: t.rowType,
|
|
287
288
|
level: t.level,
|
|
288
289
|
expanded: t.expanded,
|
|
289
290
|
dataIndex: t.dataIndex,
|
|
290
291
|
rowDataIndex: o,
|
|
291
|
-
columnPosition:
|
|
292
|
+
columnPosition: ot,
|
|
292
293
|
style: {},
|
|
293
294
|
ariaColumnIndex: n.ariaColumnIndex,
|
|
294
|
-
isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(
|
|
295
|
+
isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(h) > -1,
|
|
295
296
|
isSorted: !!Ne(n.field, e.sort),
|
|
296
297
|
isInEdit: i,
|
|
297
298
|
isAlt: d,
|
|
298
299
|
unstyled: S,
|
|
299
300
|
group: t.group,
|
|
300
|
-
localization:
|
|
301
|
-
intl:
|
|
301
|
+
localization: L,
|
|
302
|
+
intl: Ye
|
|
302
303
|
};
|
|
303
304
|
return n.cell ? /* @__PURE__ */ l.createElement(
|
|
304
|
-
|
|
305
|
+
el,
|
|
305
306
|
{
|
|
306
307
|
key: M,
|
|
307
|
-
isClient:
|
|
308
|
+
isClient: Kt(Y),
|
|
308
309
|
dataItem: P.dataItem,
|
|
309
310
|
rowDataIndex: P.rowDataIndex,
|
|
310
311
|
columnIndex: P.columnIndex
|
|
@@ -333,10 +334,10 @@ const al = l.forwardRef((e, ee) => {
|
|
|
333
334
|
let t = -1, r = 0;
|
|
334
335
|
(V || b).forEach((o, d) => {
|
|
335
336
|
o.rowType === "data" && (se++, t++);
|
|
336
|
-
const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E =
|
|
337
|
+
const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E = rt(o, f, t, i);
|
|
337
338
|
if (K = c + ue + r, Q.push(
|
|
338
339
|
/* @__PURE__ */ l.createElement(
|
|
339
|
-
|
|
340
|
+
Bt,
|
|
340
341
|
{
|
|
341
342
|
key: f,
|
|
342
343
|
dataItem: o.dataItem,
|
|
@@ -372,7 +373,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
372
373
|
role: "row",
|
|
373
374
|
"aria-rowindex": K
|
|
374
375
|
},
|
|
375
|
-
e.group && e.group.map((
|
|
376
|
+
e.group && e.group.map((h, H) => {
|
|
376
377
|
var W;
|
|
377
378
|
const A = (W = E == null ? void 0 : E.row[H]) == null ? void 0 : W.props.style, M = A ? { left: A.left, right: A.right } : {};
|
|
378
379
|
return /* @__PURE__ */ l.createElement(
|
|
@@ -380,7 +381,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
380
381
|
{
|
|
381
382
|
id: "",
|
|
382
383
|
dataIndex: o.dataIndex,
|
|
383
|
-
field:
|
|
384
|
+
field: h.field,
|
|
384
385
|
dataItem: o.dataItem,
|
|
385
386
|
key: H,
|
|
386
387
|
columnPosition: M,
|
|
@@ -394,7 +395,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
394
395
|
);
|
|
395
396
|
}),
|
|
396
397
|
(e.expandField || T.enabled) && /* @__PURE__ */ l.createElement(
|
|
397
|
-
|
|
398
|
+
Mt,
|
|
398
399
|
{
|
|
399
400
|
unstyled: S,
|
|
400
401
|
id: q.generateNavigatableId(`${g}-dhcell`, x)
|
|
@@ -422,16 +423,16 @@ const al = l.forwardRef((e, ee) => {
|
|
|
422
423
|
skip: e.skip || 0,
|
|
423
424
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
424
425
|
...zt(e.pageable || {})
|
|
425
|
-
}, ge = /* @__PURE__ */ l.createElement(
|
|
426
|
+
}, ge = /* @__PURE__ */ l.createElement(Ut, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(yt, { className: m(s.pager({})), ...fe })), nt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), it = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
|
|
426
427
|
var r;
|
|
427
428
|
return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
|
|
428
429
|
}) ? /* @__PURE__ */ l.createElement(
|
|
429
|
-
|
|
430
|
+
Gt,
|
|
430
431
|
{
|
|
431
432
|
size: w,
|
|
432
433
|
staticHeaders: e.scrollable !== "none",
|
|
433
434
|
row: /* @__PURE__ */ l.createElement(
|
|
434
|
-
|
|
435
|
+
Lt,
|
|
435
436
|
{
|
|
436
437
|
cells: e.cells,
|
|
437
438
|
idPrefix: x,
|
|
@@ -439,39 +440,39 @@ const al = l.forwardRef((e, ee) => {
|
|
|
439
440
|
ariaRowIndex: K + 1
|
|
440
441
|
}
|
|
441
442
|
),
|
|
442
|
-
cols: y.map(
|
|
443
|
+
cols: y.map(nt)
|
|
443
444
|
}
|
|
444
|
-
) : null, be = /* @__PURE__ */ l.createElement(
|
|
445
|
+
) : null, be = /* @__PURE__ */ l.createElement(jt, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
|
|
445
446
|
"col",
|
|
446
447
|
{
|
|
447
448
|
key: r.toString(),
|
|
448
449
|
className: Ne(t.field, e.sort) ? m(s.sorted({})) : void 0,
|
|
449
450
|
width: p(t)
|
|
450
451
|
}
|
|
451
|
-
))), ye = e.reorderable || D, { detail:
|
|
452
|
+
))), ye = e.reorderable || D, { detail: nl, cells: il, ...he } = e, Ce = /* @__PURE__ */ l.createElement(
|
|
452
453
|
"tbody",
|
|
453
454
|
{
|
|
454
455
|
role: "rowgroup",
|
|
455
456
|
className: m(s.tbody({})),
|
|
456
|
-
...
|
|
457
|
+
...ht
|
|
457
458
|
},
|
|
458
459
|
Q
|
|
459
460
|
);
|
|
460
|
-
let X =
|
|
461
|
+
let X = Ce;
|
|
461
462
|
if (G && (X = /* @__PURE__ */ l.createElement(
|
|
462
|
-
|
|
463
|
+
tl,
|
|
463
464
|
{
|
|
464
465
|
unstyled: s,
|
|
465
466
|
columns: u.current,
|
|
466
467
|
rowReorderSettings: e.rowReorderable
|
|
467
468
|
},
|
|
468
|
-
|
|
469
|
+
Ce
|
|
469
470
|
)), e.scrollable === "none")
|
|
470
471
|
return /* @__PURE__ */ l.createElement(
|
|
471
472
|
Pe,
|
|
472
473
|
{
|
|
473
474
|
gridRef: ee,
|
|
474
|
-
gridProps:
|
|
475
|
+
gridProps: he,
|
|
475
476
|
columnsRef: $(),
|
|
476
477
|
columnsMapRef: v,
|
|
477
478
|
dataRef: b,
|
|
@@ -481,7 +482,7 @@ const al = l.forwardRef((e, ee) => {
|
|
|
481
482
|
total: I,
|
|
482
483
|
detailExpandable: !!e.detail
|
|
483
484
|
},
|
|
484
|
-
/* @__PURE__ */ l.createElement(
|
|
485
|
+
/* @__PURE__ */ l.createElement(ze, null, /* @__PURE__ */ l.createElement(
|
|
485
486
|
"div",
|
|
486
487
|
{
|
|
487
488
|
id: e.id,
|
|
@@ -493,27 +494,28 @@ const al = l.forwardRef((e, ee) => {
|
|
|
493
494
|
re,
|
|
494
495
|
ie,
|
|
495
496
|
/* @__PURE__ */ l.createElement(
|
|
496
|
-
|
|
497
|
+
$t,
|
|
497
498
|
{
|
|
498
499
|
selectable: e.selectable,
|
|
499
500
|
className: m(s.table({ size: w }))
|
|
500
501
|
},
|
|
501
502
|
be,
|
|
502
503
|
oe,
|
|
503
|
-
/* @__PURE__ */ l.createElement(
|
|
504
|
+
/* @__PURE__ */ l.createElement(Le, { rowReorderable: G }, X)
|
|
504
505
|
),
|
|
505
|
-
me && /* @__PURE__ */ l.createElement(Ae, null,
|
|
506
|
+
me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null)),
|
|
506
507
|
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null))
|
|
507
508
|
)),
|
|
508
509
|
ne,
|
|
509
|
-
e.pageable && ge
|
|
510
|
+
e.pageable && ge,
|
|
511
|
+
/* @__PURE__ */ l.createElement(_e, { loader: e.loader, showLoader: e.showLoader })
|
|
510
512
|
);
|
|
511
|
-
let
|
|
512
|
-
return k && (
|
|
513
|
+
let _ = e.style || {};
|
|
514
|
+
return k && (_.height || (_ = Object.assign({}, _, { height: "450px" }))), /* @__PURE__ */ l.createElement(
|
|
513
515
|
Pe,
|
|
514
516
|
{
|
|
515
517
|
gridRef: ee,
|
|
516
|
-
gridProps:
|
|
518
|
+
gridProps: he,
|
|
517
519
|
columnsRef: $(),
|
|
518
520
|
columnsMapRef: v,
|
|
519
521
|
dataRef: b,
|
|
@@ -523,11 +525,11 @@ const al = l.forwardRef((e, ee) => {
|
|
|
523
525
|
total: I,
|
|
524
526
|
detailExpandable: !!e.detail
|
|
525
527
|
},
|
|
526
|
-
/* @__PURE__ */ l.createElement(
|
|
528
|
+
/* @__PURE__ */ l.createElement(ze, null, /* @__PURE__ */ l.createElement(
|
|
527
529
|
"div",
|
|
528
530
|
{
|
|
529
531
|
id: e.id,
|
|
530
|
-
style:
|
|
532
|
+
style: _,
|
|
531
533
|
className: m(
|
|
532
534
|
s.wrapper({
|
|
533
535
|
size: w,
|
|
@@ -548,11 +550,11 @@ const al = l.forwardRef((e, ee) => {
|
|
|
548
550
|
"aria-colcount": y.length,
|
|
549
551
|
"aria-rowcount": I,
|
|
550
552
|
id: R,
|
|
551
|
-
"aria-label":
|
|
553
|
+
"aria-label": L.toLanguageString(Oe, qt[Oe])
|
|
552
554
|
},
|
|
553
555
|
oe,
|
|
554
|
-
/* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
|
|
555
|
-
|
|
556
|
+
/* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Qt, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
|
|
557
|
+
Jt,
|
|
556
558
|
{
|
|
557
559
|
selectable: e.selectable,
|
|
558
560
|
tableClassName: m(
|
|
@@ -560,28 +562,29 @@ const al = l.forwardRef((e, ee) => {
|
|
|
560
562
|
size: w
|
|
561
563
|
})
|
|
562
564
|
),
|
|
563
|
-
tableStyle: { userSelect:
|
|
565
|
+
tableStyle: { userSelect: tt }
|
|
564
566
|
},
|
|
565
567
|
be,
|
|
566
|
-
/* @__PURE__ */ l.createElement(
|
|
567
|
-
), me && /* @__PURE__ */ l.createElement(Ae, null,
|
|
568
|
+
/* @__PURE__ */ l.createElement(Le, { rowReorderable: G }, X)
|
|
569
|
+
), me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null))), k && /* @__PURE__ */ l.createElement(
|
|
568
570
|
"div",
|
|
569
571
|
{
|
|
570
572
|
className: m(s.heightContainer({})),
|
|
571
573
|
role: "presentation"
|
|
572
574
|
},
|
|
573
|
-
/* @__PURE__ */ l.createElement(
|
|
575
|
+
/* @__PURE__ */ l.createElement(Xt, { isVirtualScroll: k })
|
|
574
576
|
)))),
|
|
575
|
-
|
|
577
|
+
it,
|
|
576
578
|
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null)),
|
|
577
|
-
/* @__PURE__ */ l.createElement(
|
|
579
|
+
/* @__PURE__ */ l.createElement(Wt, null)
|
|
578
580
|
),
|
|
579
581
|
ne,
|
|
580
|
-
e.pageable && ge
|
|
582
|
+
e.pageable && ge,
|
|
583
|
+
/* @__PURE__ */ l.createElement(_e, { loader: e.loader, showLoader: e.showLoader })
|
|
581
584
|
))
|
|
582
585
|
);
|
|
583
586
|
});
|
|
584
|
-
|
|
587
|
+
rl.displayName = "KendoReactGridComponent";
|
|
585
588
|
export {
|
|
586
|
-
|
|
589
|
+
rl as GridComponent
|
|
587
590
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("@progress/kendo-react-indicators");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=l(o),i={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},s=e=>{var t;return n.createElement(n.Fragment,null,e.showLoader?(t=e.loader)!=null?t:n.createElement("div",{className:"k-loading-mask"},n.createElement("div",{className:"k-loading-color"}),n.createElement("div",{style:i},n.createElement(c.Loader,{size:"large",type:"converging-spinner"}))):null)};exports.GridLoader=s;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import { Loader as a } from "@progress/kendo-react-indicators";
|
|
11
|
+
const n = {
|
|
12
|
+
height: "100%",
|
|
13
|
+
display: "flex",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
}, o = (t) => {
|
|
17
|
+
var r;
|
|
18
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, t.showLoader ? (r = t.loader) != null ? r : /* @__PURE__ */ e.createElement("div", { className: "k-loading-mask" }, /* @__PURE__ */ e.createElement("div", { className: "k-loading-color" }), /* @__PURE__ */ e.createElement("div", { style: n }, /* @__PURE__ */ e.createElement(a, { size: "large", type: "converging-spinner" }))) : null);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
o as GridLoader
|
|
22
|
+
};
|