@progress/kendo-react-grid 14.2.2-develop.1 → 14.3.0-develop.10
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 +651 -494
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +418 -379
- 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.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/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 +17 -0
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +107 -100
- package/getRowContents.d.ts +58 -0
- package/getRowContents.js +8 -0
- package/getRowContents.mjs +99 -0
- package/header/GridHeaderGroupSpacerCell.d.ts +13 -0
- package/header/GridHeaderGroupSpacerCell.js +9 -0
- package/header/GridHeaderGroupSpacerCell.mjs +23 -0
- package/header/client/GridHeaderPinCell.d.ts +12 -0
- package/header/client/GridHeaderPinCell.js +9 -0
- package/header/client/GridHeaderPinCell.mjs +14 -0
- package/hooks/useStickyGroups.d.ts +71 -0
- package/hooks/useStickyGroups.js +9 -0
- package/hooks/useStickyGroups.mjs +350 -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/GridGroupableSettings.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 +25 -0
- package/messages/index.js +2 -2
- package/messages/index.mjs +122 -112
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -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/StackedModeComponents.d.ts +1 -0
- package/stacked/StackedModeComponents.js +1 -1
- package/stacked/StackedModeComponents.mjs +14 -14
- 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,136 +5,142 @@
|
|
|
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
|
|
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
11
|
import { GridHierarchyCell as Ut } from "./cells/hierarchycell/GridHierarchyCell.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
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
22
|
import { GridHeaderSelectionCell as ua } from "./header/GridHeaderSelectionCell.mjs";
|
|
23
|
-
import { GridNoRecords as
|
|
24
|
-
import { operators as
|
|
23
|
+
import { GridNoRecords as Je } from "./components/noRecords/GridNoRecords.mjs";
|
|
24
|
+
import { operators as Qe } from "./filterCommon.mjs";
|
|
25
25
|
import { FooterRow as fa } from "./footer/FooterRow.mjs";
|
|
26
26
|
import { normalize as ga } from "./paging/GridPagerSettings.mjs";
|
|
27
|
-
import { packageMetadata as
|
|
27
|
+
import { packageMetadata as te } from "./package-metadata.mjs";
|
|
28
28
|
import { GridDetailCell as ba } from "./cells/detailcell/GridDetailCell.mjs";
|
|
29
|
-
import { GridNoRecordsContainer as
|
|
30
|
-
import { GridClientWrapper as
|
|
29
|
+
import { GridNoRecordsContainer as Xe } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
30
|
+
import { GridClientWrapper as Ye } from "./GridClientWrapper.mjs";
|
|
31
31
|
import { GridColGroup as ha } from "./components/colGroup/GridColGroup.mjs";
|
|
32
|
-
import { GridTable as
|
|
33
|
-
import { GridDropClue as
|
|
34
|
-
import { GridDragClue as
|
|
35
|
-
import { GridTableBody as
|
|
36
|
-
import { PagerContainer as
|
|
37
|
-
import { GridTableScrollable as
|
|
38
|
-
import { GridElementContainer as
|
|
39
|
-
import { GridContainerElementContainer as
|
|
40
|
-
import { VirtualScrollHeightContainer as
|
|
41
|
-
import { gridAriaLabel as
|
|
42
|
-
import { GridReorderableRowsContainer as
|
|
43
|
-
import { GridRowReorderCell as
|
|
44
|
-
import { GridHeaderRowReorderCell as
|
|
45
|
-
import { GridLoader as
|
|
46
|
-
import { gridPremiumFeatures as
|
|
47
|
-
import { LocalizationService as
|
|
48
|
-
import { getVirtualCellsToRender as
|
|
49
|
-
import { GridEditDialog as
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { GridRowReorderCellServer as Ma } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
|
|
56
|
-
import { GridDetailCellServer as Ba } from "./cells/detailcell/GridDetailCellServer.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";
|
|
57
55
|
import { GridGroupCellServer as za } from "./cells/groupcell/GridGroupCellServer.mjs";
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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,
|
|
68
72
|
t,
|
|
69
|
-
|
|
73
|
+
i,
|
|
70
74
|
{ index: r },
|
|
71
|
-
|
|
75
|
+
o !== void 0,
|
|
72
76
|
a,
|
|
73
77
|
l,
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
Gt.defaultExpand,
|
|
79
|
+
d
|
|
76
80
|
);
|
|
77
|
-
return { flattedData:
|
|
81
|
+
return { flattedData: h, resolvedGroupsCount: F };
|
|
78
82
|
}, st = (t) => {
|
|
79
|
-
const
|
|
83
|
+
const i = t.filter(
|
|
80
84
|
(r) => r && r.type && r.type.displayName === "KendoReactGridColumn"
|
|
81
85
|
);
|
|
82
|
-
return ra(
|
|
83
|
-
},
|
|
84
|
-
const t = [],
|
|
85
|
-
const l = a.hidden ||
|
|
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;
|
|
86
90
|
t.push({
|
|
87
91
|
...a,
|
|
88
92
|
hidden: l
|
|
89
|
-
}),
|
|
93
|
+
}), i(a.children, l);
|
|
90
94
|
});
|
|
91
|
-
return
|
|
92
|
-
},
|
|
93
|
-
const
|
|
95
|
+
return i(w, !1), t;
|
|
96
|
+
}, ct = (t) => {
|
|
97
|
+
const i = mt();
|
|
94
98
|
return [
|
|
95
99
|
t.filter((r) => {
|
|
96
|
-
var
|
|
97
|
-
return !r.hidden && !((
|
|
100
|
+
var o;
|
|
101
|
+
return !r.hidden && !((o = i.find((a) => a.id === r.id)) != null && o.hidden);
|
|
98
102
|
}),
|
|
99
103
|
t.filter((r) => {
|
|
100
|
-
var
|
|
101
|
-
return r.hidden || ((
|
|
104
|
+
var o;
|
|
105
|
+
return r.hidden || ((o = i.find((a) => a.id === r.id)) == null ? void 0 : o.hidden);
|
|
102
106
|
})
|
|
103
107
|
];
|
|
104
|
-
},
|
|
105
|
-
s = st(t), s.filter((a) => !a.hidden).length === 0 && (s =
|
|
106
|
-
|
|
108
|
+
}, ut = (t, i) => {
|
|
109
|
+
s = st(t), s.filter((a) => !a.hidden).length === 0 && (s = aa(
|
|
110
|
+
C,
|
|
107
111
|
e.group,
|
|
108
112
|
{
|
|
109
|
-
column:
|
|
113
|
+
column: v.column
|
|
110
114
|
},
|
|
111
115
|
{
|
|
112
116
|
prevId: 0,
|
|
113
|
-
idPrefix:
|
|
117
|
+
idPrefix: y
|
|
114
118
|
}
|
|
115
|
-
)),
|
|
116
|
-
const [r,
|
|
117
|
-
s = r,
|
|
118
|
-
},
|
|
119
|
-
const r = (
|
|
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) => {
|
|
120
124
|
var l;
|
|
121
|
-
const a =
|
|
125
|
+
const a = i.find((d) => d.id === o.id);
|
|
122
126
|
if (a) {
|
|
123
|
-
const
|
|
124
|
-
return
|
|
127
|
+
const d = { ...a };
|
|
128
|
+
return d.children = (l = o.children) == null ? void 0 : l.map(r), d;
|
|
125
129
|
}
|
|
126
|
-
return
|
|
130
|
+
return ee(o);
|
|
127
131
|
};
|
|
128
|
-
|
|
129
|
-
},
|
|
132
|
+
w = t.filter((o) => o.parentIndex === -1).map(r);
|
|
133
|
+
}, gt = (t, i) => {
|
|
130
134
|
t.filter((l) => l.columnType === "checkbox").forEach((l) => {
|
|
131
|
-
l.width = l.width || "50px", l.defaultCell = e.isClient ?
|
|
132
|
-
}),
|
|
133
|
-
l.width = l.width || "50px", l.defaultCell = e.isClient ?
|
|
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;
|
|
134
140
|
});
|
|
135
|
-
const r = oa(
|
|
136
|
-
|
|
137
|
-
const
|
|
141
|
+
const r = oa(w);
|
|
142
|
+
ft(t, r);
|
|
143
|
+
const o = {
|
|
138
144
|
id: "",
|
|
139
145
|
resizable: !0,
|
|
140
146
|
width: "32px",
|
|
@@ -155,75 +161,76 @@ const _a = i.forwardRef((e, dt) => {
|
|
|
155
161
|
isAccessible: !0
|
|
156
162
|
};
|
|
157
163
|
let a = 0;
|
|
158
|
-
if (
|
|
164
|
+
if (v.enabled && e.detail) {
|
|
159
165
|
const l = {
|
|
160
|
-
...
|
|
166
|
+
...o,
|
|
161
167
|
_type: "expand",
|
|
162
|
-
id:
|
|
163
|
-
defaultCell: e.isClient ? Ut :
|
|
164
|
-
field:
|
|
165
|
-
headerClassName:
|
|
168
|
+
id: j.generateNavigatableId(`${a++}`, "expand", "column"),
|
|
169
|
+
defaultCell: e.isClient ? Ut : Pa,
|
|
170
|
+
field: v.column,
|
|
171
|
+
headerClassName: c(m.hierarchyCell({}))
|
|
166
172
|
};
|
|
167
|
-
t.unshift(l),
|
|
173
|
+
t.unshift(l), w.unshift(r.find((d) => d.id === l.id) || ee(l));
|
|
168
174
|
}
|
|
169
|
-
for (let l = 0; l <
|
|
170
|
-
const
|
|
171
|
-
...
|
|
175
|
+
for (let l = 0; l < i; l++) {
|
|
176
|
+
const d = {
|
|
177
|
+
...o,
|
|
172
178
|
isAccessible: !1,
|
|
173
|
-
defaultCell: e.isClient ?
|
|
174
|
-
|
|
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
|
-
t.unshift(
|
|
185
|
+
t.unshift(d), w.unshift(r.find((h) => h.id === d.id) || ee(d));
|
|
179
186
|
}
|
|
180
187
|
t.slice(a).forEach((l) => {
|
|
181
|
-
l.parentIndex >= 0 && (l.parentIndex += a), l.rowSpannable = l.rowSpannable !== void 0 ?
|
|
188
|
+
l.parentIndex >= 0 && (l.parentIndex += a), l.rowSpannable = l.rowSpannable !== void 0 ? Ue(l.rowSpannable) : se;
|
|
182
189
|
});
|
|
183
|
-
},
|
|
184
|
-
const
|
|
185
|
-
let r = null,
|
|
190
|
+
}, ae = () => e.isClient ? s : ie, le = (t) => {
|
|
191
|
+
const i = [];
|
|
192
|
+
let r = null, o = 0;
|
|
186
193
|
if (g.forEach((a, l) => {
|
|
187
|
-
let
|
|
188
|
-
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) && (
|
|
189
|
-
|
|
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
|
-
|
|
194
|
-
width:
|
|
195
|
-
colSpan:
|
|
199
|
+
const h = Math.min(ia(a, t), g.length - l);
|
|
200
|
+
o = h - 1, r = {
|
|
201
|
+
width: d,
|
|
202
|
+
colSpan: h,
|
|
196
203
|
columnIndex: l
|
|
197
|
-
},
|
|
204
|
+
}, i.push(r);
|
|
198
205
|
}), e.columnVirtualization) {
|
|
199
|
-
const a =
|
|
200
|
-
return
|
|
201
|
-
cellModels:
|
|
206
|
+
const a = ht.current || 0, l = wt.current || parseFloat(((e.style || {}).width || "").toString());
|
|
207
|
+
return La({
|
|
208
|
+
cellModels: i,
|
|
202
209
|
columns: g,
|
|
203
210
|
tableViewPortWidth: l,
|
|
204
211
|
scrollLeft: a
|
|
205
212
|
});
|
|
206
213
|
}
|
|
207
|
-
return
|
|
208
|
-
},
|
|
209
|
-
const { pageable: t, take:
|
|
210
|
-
if (!
|
|
214
|
+
return i;
|
|
215
|
+
}, bt = () => {
|
|
216
|
+
const { pageable: t, take: i, pageSize: r } = e;
|
|
217
|
+
if (!R)
|
|
211
218
|
return 0;
|
|
212
219
|
if (!t) {
|
|
213
|
-
if (
|
|
214
|
-
return
|
|
220
|
+
if (i)
|
|
221
|
+
return i;
|
|
215
222
|
if (r)
|
|
216
223
|
return r;
|
|
217
224
|
}
|
|
218
|
-
const
|
|
219
|
-
return a &&
|
|
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
|
|
222
|
-
const
|
|
223
|
-
let
|
|
224
|
-
if (Array.isArray(e.data) ? (
|
|
225
|
-
const t =
|
|
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,231 +239,205 @@ const _a = i.forwardRef((e, dt) => {
|
|
|
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
|
-
|
|
252
|
-
const
|
|
253
|
-
let
|
|
254
|
-
if (
|
|
258
|
+
u = kt;
|
|
259
|
+
const Z = bt(), K = ((We = e.virtualSkipRef) == null ? void 0 : We.current) || 0;
|
|
260
|
+
let oe = S;
|
|
261
|
+
if (R) {
|
|
255
262
|
let t = e.skip || 0;
|
|
256
|
-
if ((
|
|
257
|
-
if (
|
|
258
|
-
const
|
|
259
|
-
|
|
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
|
|
264
|
-
|
|
265
|
-
const U =
|
|
266
|
-
const t =
|
|
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
275
|
premium: t.length > 0,
|
|
269
276
|
features: t
|
|
270
277
|
};
|
|
271
|
-
}, [e, s]),
|
|
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(
|
|
272
279
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
273
|
-
), g = s.filter((t) => t.children.length === 0),
|
|
274
|
-
|
|
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
299
|
columns: s,
|
|
293
|
-
columnsMap:
|
|
300
|
+
columnsMap: N,
|
|
294
301
|
navigatable: !!e.navigatable,
|
|
295
|
-
localization:
|
|
296
|
-
unstyled:
|
|
297
|
-
columnsState:
|
|
298
|
-
headerSelectionValue: !!(e.select &&
|
|
299
|
-
(t) => e.select && e.dataItemKey &&
|
|
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:
|
|
314
|
+
size: f,
|
|
308
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: g.map((t,
|
|
324
|
+
cols: g.map((t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: p(t) }))
|
|
318
325
|
}
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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;
|
|
326
|
+
), be = g.findIndex((t) => typeof t.colSpan == "function") > -1;
|
|
327
|
+
let he;
|
|
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,
|
|
332
|
+
cellsToRender: he,
|
|
333
|
+
getCellsToRender: le,
|
|
334
|
+
hasDynamicColSpan: be,
|
|
335
|
+
idPrefix: y,
|
|
336
|
+
gridClasses: m,
|
|
337
|
+
unstyled: G,
|
|
338
|
+
localization: P,
|
|
339
|
+
intl: yt,
|
|
340
|
+
cells: e.cells,
|
|
341
|
+
isRowReorderable: I,
|
|
342
|
+
sort: e.sort,
|
|
343
|
+
editable: e.editable,
|
|
344
|
+
isClient: e.isClient,
|
|
345
|
+
isEditDialog: q,
|
|
346
|
+
dataItemKey: e.dataItemKey,
|
|
347
|
+
select: e.select,
|
|
348
|
+
highlight: e.highlight
|
|
349
|
+
}, Nt = 0;
|
|
350
|
+
let J = null;
|
|
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]);
|
|
365
|
+
if (u.length) {
|
|
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;
|
|
395
373
|
}
|
|
396
|
-
!e.pageable &&
|
|
374
|
+
!e.pageable && B && (r += e.skip || 0);
|
|
397
375
|
}
|
|
398
|
-
(
|
|
399
|
-
var
|
|
376
|
+
($ || u).forEach((l, d) => {
|
|
377
|
+
var je;
|
|
400
378
|
l.rowType === "data" && r++;
|
|
401
|
-
const
|
|
402
|
-
if (
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
|
|
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,
|
|
405
383
|
{
|
|
406
|
-
key:
|
|
407
|
-
isStackedMode:
|
|
384
|
+
key: _,
|
|
385
|
+
isStackedMode: b,
|
|
408
386
|
item: l,
|
|
409
|
-
rowId:
|
|
387
|
+
rowId: _,
|
|
410
388
|
dataIndex: r,
|
|
411
|
-
idPrefix:
|
|
412
|
-
ariaRowIndex:
|
|
413
|
-
absoluteRowIndex:
|
|
414
|
-
isAltRow:
|
|
415
|
-
isHidden:
|
|
416
|
-
isRowReorderable:
|
|
389
|
+
idPrefix: y,
|
|
390
|
+
ariaRowIndex: T,
|
|
391
|
+
absoluteRowIndex: O,
|
|
392
|
+
isAltRow: h,
|
|
393
|
+
isHidden: Re(d),
|
|
394
|
+
isRowReorderable: I,
|
|
417
395
|
rowHeight: e.rowHeight,
|
|
418
396
|
rows: e.rows,
|
|
419
397
|
leafColumns: g,
|
|
420
|
-
groupLevelCount:
|
|
398
|
+
groupLevelCount: E,
|
|
421
399
|
stackedLayoutSettings: e.stackedLayoutSettings,
|
|
422
400
|
cells: e.cells,
|
|
423
|
-
editMode: (
|
|
424
|
-
isSelected:
|
|
425
|
-
isHighlighted:
|
|
426
|
-
isInEdit:
|
|
427
|
-
preparedCells:
|
|
428
|
-
showDetailToggle: !!e.detail && !!
|
|
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,
|
|
429
407
|
isDetailExpanded: !!l.expanded,
|
|
430
|
-
detailExpandField:
|
|
408
|
+
detailExpandField: v.column,
|
|
409
|
+
isPinned: zt
|
|
431
410
|
}
|
|
432
411
|
)
|
|
433
412
|
), e.detail && l.rowType === "data" && l.expanded) {
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
413
|
+
o++;
|
|
414
|
+
const V = _ + "_1";
|
|
415
|
+
T = O + t + o;
|
|
416
|
+
const Kt = e.isClient ? ba : Ma;
|
|
417
|
+
Q.push(
|
|
418
|
+
/* @__PURE__ */ n.createElement(
|
|
419
|
+
_a,
|
|
439
420
|
{
|
|
440
|
-
key:
|
|
441
|
-
isStackedMode:
|
|
442
|
-
detailRowId:
|
|
443
|
-
isHidden:
|
|
421
|
+
key: V,
|
|
422
|
+
isStackedMode: b,
|
|
423
|
+
detailRowId: V,
|
|
424
|
+
isHidden: Re(d),
|
|
444
425
|
detailRowHeight: e.detailRowHeight,
|
|
445
|
-
ariaRowIndex:
|
|
426
|
+
ariaRowIndex: T,
|
|
446
427
|
item: l,
|
|
447
|
-
groupLevelCount:
|
|
428
|
+
groupLevelCount: E,
|
|
448
429
|
groupDescriptors: e.group,
|
|
449
430
|
lockGroups: e.lockGroups,
|
|
450
431
|
cells: e.cells,
|
|
451
432
|
leafColumns: g,
|
|
452
|
-
detailExpandableEnabled: !!
|
|
453
|
-
preparedCells:
|
|
454
|
-
DetailCell:
|
|
433
|
+
detailExpandableEnabled: !!v.enabled,
|
|
434
|
+
preparedCells: H.row,
|
|
435
|
+
DetailCell: Kt,
|
|
455
436
|
detail: e.detail,
|
|
456
|
-
detailCellId:
|
|
457
|
-
detailHierarchyCellId:
|
|
458
|
-
detailTrClassName:
|
|
459
|
-
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
|
|
460
441
|
}
|
|
461
442
|
)
|
|
462
443
|
);
|
|
@@ -464,155 +445,213 @@ const _a = i.forwardRef((e, dt) => {
|
|
|
464
445
|
});
|
|
465
446
|
}
|
|
466
447
|
const ve = {
|
|
467
|
-
size:
|
|
468
|
-
total:
|
|
448
|
+
size: f,
|
|
449
|
+
total: S,
|
|
469
450
|
skip: e.skip || 0,
|
|
470
451
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
471
452
|
...ga(e.pageable || {})
|
|
472
|
-
},
|
|
473
|
-
var
|
|
474
|
-
return !!((
|
|
475
|
-
}) ? /* @__PURE__ */
|
|
476
|
-
|
|
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,
|
|
477
458
|
{
|
|
478
|
-
size:
|
|
459
|
+
size: f,
|
|
479
460
|
staticHeaders: e.scrollable !== "none",
|
|
480
|
-
row: /* @__PURE__ */
|
|
461
|
+
row: /* @__PURE__ */ n.createElement(
|
|
481
462
|
fa,
|
|
482
463
|
{
|
|
483
464
|
cells: e.cells,
|
|
484
|
-
idPrefix:
|
|
465
|
+
idPrefix: y,
|
|
485
466
|
columns: s,
|
|
486
|
-
ariaRowIndex:
|
|
467
|
+
ariaRowIndex: T + 1
|
|
487
468
|
}
|
|
488
469
|
),
|
|
489
|
-
cols: g.map(
|
|
470
|
+
cols: g.map(Bt)
|
|
490
471
|
}
|
|
491
|
-
) : null,
|
|
472
|
+
) : null, x = b ? /* @__PURE__ */ n.createElement(Fa, { groupLevelCount: E }) : /* @__PURE__ */ n.createElement(ha, null, g.map((t, i) => /* @__PURE__ */ n.createElement(
|
|
492
473
|
"col",
|
|
493
474
|
{
|
|
494
|
-
key:
|
|
495
|
-
className:
|
|
496
|
-
width:
|
|
475
|
+
key: i.toString(),
|
|
476
|
+
className: ea(t.field, e.sort) ? c(m.sorted({})) : void 0,
|
|
477
|
+
width: p(t)
|
|
497
478
|
}
|
|
498
|
-
))),
|
|
479
|
+
))), ke = e.reorderable || M, { detail: $a, cells: Za, rows: Ua, ...Mt } = e, xe = /* @__PURE__ */ n.createElement(
|
|
499
480
|
"tbody",
|
|
500
481
|
{
|
|
501
482
|
role: "rowgroup",
|
|
502
|
-
className:
|
|
503
|
-
...
|
|
483
|
+
className: c(m.tbody({})),
|
|
484
|
+
...Zt
|
|
504
485
|
},
|
|
505
|
-
|
|
506
|
-
),
|
|
507
|
-
let
|
|
508
|
-
|
|
509
|
-
|
|
486
|
+
Q
|
|
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,
|
|
510
491
|
{
|
|
511
|
-
unstyled:
|
|
492
|
+
unstyled: m,
|
|
512
493
|
columns: s,
|
|
513
494
|
rowReorderSettings: e.rowReorderable
|
|
514
495
|
},
|
|
515
|
-
|
|
496
|
+
xe
|
|
516
497
|
));
|
|
517
|
-
const
|
|
518
|
-
gridRef:
|
|
498
|
+
const Le = {
|
|
499
|
+
gridRef: ot,
|
|
519
500
|
innerGrid: e.innerGrid,
|
|
520
|
-
gridProps:
|
|
521
|
-
columnsRef:
|
|
522
|
-
hiddenColumnsRef:
|
|
523
|
-
columnsMapRef:
|
|
524
|
-
columnsState:
|
|
525
|
-
dataRef:
|
|
501
|
+
gridProps: Mt,
|
|
502
|
+
columnsRef: ae(),
|
|
503
|
+
hiddenColumnsRef: ne,
|
|
504
|
+
columnsMapRef: N,
|
|
505
|
+
columnsState: w,
|
|
506
|
+
dataRef: u,
|
|
526
507
|
id: L,
|
|
527
|
-
virtualTotal:
|
|
528
|
-
isAllData:
|
|
529
|
-
virtualPageSize:
|
|
530
|
-
isVirtualScroll:
|
|
508
|
+
virtualTotal: oe,
|
|
509
|
+
isAllData: B,
|
|
510
|
+
virtualPageSize: Z,
|
|
511
|
+
isVirtualScroll: R,
|
|
531
512
|
detailExpandable: !!e.detail
|
|
532
513
|
};
|
|
533
|
-
return e.scrollable === "none" ? /* @__PURE__ */
|
|
514
|
+
return e.scrollable === "none" ? /* @__PURE__ */ n.createElement(Ye, { ...Le }, /* @__PURE__ */ n.createElement(at, null, /* @__PURE__ */ n.createElement(
|
|
534
515
|
"div",
|
|
535
516
|
{
|
|
536
517
|
id: e.id,
|
|
537
518
|
style: e.style,
|
|
538
|
-
className:
|
|
539
|
-
...
|
|
519
|
+
className: c(m.wrapper({ size: f, isStackedMode: b }), e.className),
|
|
520
|
+
...Ze
|
|
540
521
|
},
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
|
|
522
|
+
ce,
|
|
523
|
+
fe,
|
|
524
|
+
/* @__PURE__ */ n.createElement(
|
|
525
|
+
wa,
|
|
545
526
|
{
|
|
546
527
|
selectable: e.selectable,
|
|
547
|
-
className:
|
|
528
|
+
className: c(m.table({ size: f }))
|
|
548
529
|
},
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
/* @__PURE__ */
|
|
530
|
+
x,
|
|
531
|
+
ge,
|
|
532
|
+
/* @__PURE__ */ n.createElement(tt, { rowReorderable: I }, X),
|
|
552
533
|
Ie
|
|
553
534
|
),
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
)),
|
|
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(
|
|
557
538
|
"div",
|
|
558
539
|
{
|
|
559
540
|
id: e.id,
|
|
560
541
|
style: e.style,
|
|
561
|
-
className:
|
|
562
|
-
|
|
563
|
-
size:
|
|
564
|
-
virtual:
|
|
565
|
-
isStackedMode:
|
|
542
|
+
className: c(
|
|
543
|
+
m.wrapper({
|
|
544
|
+
size: f,
|
|
545
|
+
virtual: R,
|
|
546
|
+
isStackedMode: b
|
|
566
547
|
}),
|
|
567
548
|
e.className
|
|
568
549
|
),
|
|
569
|
-
...
|
|
550
|
+
...Ze
|
|
570
551
|
},
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
/* @__PURE__ */
|
|
552
|
+
ce,
|
|
553
|
+
fe,
|
|
554
|
+
/* @__PURE__ */ n.createElement(
|
|
574
555
|
"div",
|
|
575
556
|
{
|
|
576
|
-
className:
|
|
557
|
+
className: c(m.ariaRoot({})),
|
|
577
558
|
role: "grid",
|
|
578
559
|
"aria-colcount": g.length,
|
|
579
|
-
"aria-rowcount":
|
|
560
|
+
"aria-rowcount": S,
|
|
580
561
|
id: L,
|
|
581
|
-
"aria-label":
|
|
562
|
+
"aria-label": P.toLanguageString(lt, Sa[lt])
|
|
582
563
|
},
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
564
|
+
ge,
|
|
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,
|
|
584
|
+
{
|
|
585
|
+
size: f,
|
|
586
|
+
colGroups: x,
|
|
587
|
+
dataRowContext: D,
|
|
588
|
+
position: "top",
|
|
589
|
+
isStackedMode: b,
|
|
590
|
+
groupLevelCount: E,
|
|
591
|
+
stackedLayoutSettings: e.stackedLayoutSettings,
|
|
592
|
+
rowHeight: e.rowHeight
|
|
593
|
+
}
|
|
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,
|
|
586
596
|
{
|
|
587
597
|
selectable: e.selectable,
|
|
588
|
-
tableClassName:
|
|
589
|
-
|
|
590
|
-
size:
|
|
598
|
+
tableClassName: c(
|
|
599
|
+
m.table({
|
|
600
|
+
size: f
|
|
591
601
|
})
|
|
592
602
|
),
|
|
593
603
|
tableStyle: { userSelect: xt }
|
|
594
604
|
},
|
|
595
|
-
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
-
),
|
|
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(
|
|
598
608
|
"div",
|
|
599
609
|
{
|
|
600
|
-
className:
|
|
610
|
+
className: c(m.heightContainer({})),
|
|
601
611
|
role: "presentation"
|
|
602
612
|
},
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
)))
|
|
613
|
+
/* @__PURE__ */ n.createElement(Ea, { isVirtualScroll: R })
|
|
614
|
+
))), e.isClient && z && vt && /* @__PURE__ */ n.createElement(
|
|
615
|
+
it,
|
|
616
|
+
{
|
|
617
|
+
size: f,
|
|
618
|
+
colGroups: x,
|
|
619
|
+
dataRowContext: D,
|
|
620
|
+
position: "bottom",
|
|
621
|
+
isStackedMode: b,
|
|
622
|
+
groupLevelCount: E,
|
|
623
|
+
stackedLayoutSettings: e.stackedLayoutSettings,
|
|
624
|
+
rowHeight: e.rowHeight
|
|
625
|
+
}
|
|
626
|
+
)),
|
|
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
|
+
),
|
|
605
644
|
Ie,
|
|
606
|
-
|
|
607
|
-
|
|
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 })
|
|
608
647
|
),
|
|
609
|
-
|
|
610
|
-
e.pageable &&
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
|
|
648
|
+
ue,
|
|
649
|
+
e.pageable && Ge,
|
|
650
|
+
/* @__PURE__ */ n.createElement(nt, { loader: e.loader, showLoader: e.showLoader }),
|
|
651
|
+
He
|
|
613
652
|
)));
|
|
614
653
|
});
|
|
615
|
-
|
|
654
|
+
ja.displayName = "KendoReactGridComponent";
|
|
616
655
|
export {
|
|
617
|
-
|
|
656
|
+
ja as GridComponent
|
|
618
657
|
};
|