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