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