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