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