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