@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/utils/index.mjs
CHANGED
|
@@ -5,27 +5,27 @@
|
|
|
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 { gridDefaultProps as
|
|
10
|
-
import { getter as
|
|
11
|
-
import { findGroupExpand as
|
|
12
|
-
import { ServerFragment as
|
|
13
|
-
import { ClientFragment as
|
|
14
|
-
import { GridContextMenuItemNames as
|
|
15
|
-
import { canUseDOM as
|
|
16
|
-
function
|
|
17
|
-
const
|
|
8
|
+
import * as w from "react";
|
|
9
|
+
import { gridDefaultProps as v } from "../GridColumn.mjs";
|
|
10
|
+
import { getter as y } from "@progress/kendo-data-query";
|
|
11
|
+
import { findGroupExpand as F, updateLeft as D, updateRight as E, tableKeyboardNavigationTools as p } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { ServerFragment as M } from "./_serverModule.mjs";
|
|
13
|
+
import { ClientFragment as b } from "./_clientModule.mjs";
|
|
14
|
+
import { GridContextMenuItemNames as f } from "../contextMenu/enums.mjs";
|
|
15
|
+
import { canUseDOM as A } from "@progress/kendo-react-common";
|
|
16
|
+
function J(e, t) {
|
|
17
|
+
const n = (e != null ? e : "").split(".");
|
|
18
18
|
let a = t;
|
|
19
|
-
return
|
|
20
|
-
a = a ? a[
|
|
19
|
+
return n.forEach((d) => {
|
|
20
|
+
a = a ? a[d] : void 0;
|
|
21
21
|
}), a;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
let
|
|
23
|
+
function R(e, t, n, a, d, o, r, i, l, c = 0, s) {
|
|
24
|
+
var x;
|
|
25
|
+
let g = c;
|
|
26
26
|
for (let h = 0; h < t.length; h++) {
|
|
27
|
-
let
|
|
28
|
-
if (!
|
|
27
|
+
let I;
|
|
28
|
+
if (!d || t[h].value === void 0 || t[h].items === void 0) {
|
|
29
29
|
e[e.length] = {
|
|
30
30
|
dataIndex: a.index,
|
|
31
31
|
dataItem: t[h],
|
|
@@ -33,100 +33,94 @@ function F(e, t, r, a, o, l, n, i, d, f, c = 0, s) {
|
|
|
33
33
|
level: c,
|
|
34
34
|
group: s,
|
|
35
35
|
// This is related to detail-row expansion
|
|
36
|
-
expanded: (
|
|
36
|
+
expanded: (x = l ? !!(o != null && o[y(l)(t[h])]) : !1) != null ? x : !1
|
|
37
37
|
}, a.index++;
|
|
38
38
|
continue;
|
|
39
39
|
} else {
|
|
40
|
-
let
|
|
41
|
-
s != null && s.parents ?
|
|
40
|
+
let S;
|
|
41
|
+
s != null && s.parents ? S = [{ field: s.field, value: s.value }, ...s.parents] : s ? S = [s] : S = [], I = {
|
|
42
42
|
field: t[h].field,
|
|
43
43
|
value: t[h].value,
|
|
44
|
-
parents:
|
|
44
|
+
parents: S
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
else {
|
|
52
|
-
const C = b(i || [], w);
|
|
53
|
-
C ? I = C.expanded !== !1 : I = d !== !1;
|
|
54
|
-
}
|
|
55
|
-
e[e.length] = {
|
|
47
|
+
g = Math.max(g, c + 1);
|
|
48
|
+
let C = !1;
|
|
49
|
+
const u = F(r || [], I);
|
|
50
|
+
u ? C = u.expanded !== !1 : C = i !== !1, e[e.length] = {
|
|
56
51
|
dataIndex: -1,
|
|
57
52
|
dataItem: t[h],
|
|
58
53
|
level: c,
|
|
59
|
-
group:
|
|
54
|
+
group: I,
|
|
60
55
|
rowType: "groupHeader",
|
|
61
|
-
expanded:
|
|
62
|
-
},
|
|
63
|
-
|
|
56
|
+
expanded: C
|
|
57
|
+
}, C && (I.expanded = C, g = Math.max(
|
|
58
|
+
R(
|
|
64
59
|
e,
|
|
65
60
|
t[h].items,
|
|
66
|
-
|
|
61
|
+
n,
|
|
67
62
|
a,
|
|
63
|
+
d,
|
|
68
64
|
o,
|
|
69
|
-
|
|
70
|
-
n,
|
|
65
|
+
r,
|
|
71
66
|
i,
|
|
72
|
-
|
|
73
|
-
f,
|
|
67
|
+
l,
|
|
74
68
|
c + 1,
|
|
75
|
-
|
|
69
|
+
I
|
|
76
70
|
),
|
|
77
|
-
|
|
78
|
-
)), (
|
|
71
|
+
g
|
|
72
|
+
)), (n === "always" || C && n === "visible") && (e[e.length] = {
|
|
79
73
|
dataIndex: -1,
|
|
80
74
|
dataItem: t[h],
|
|
81
75
|
rowType: "groupFooter",
|
|
82
76
|
level: c,
|
|
83
|
-
expanded:
|
|
77
|
+
expanded: C
|
|
84
78
|
});
|
|
85
79
|
}
|
|
86
|
-
return
|
|
80
|
+
return g;
|
|
87
81
|
}
|
|
88
82
|
const K = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
|
|
89
83
|
function Q(e, t) {
|
|
90
|
-
const
|
|
84
|
+
const n = [[]];
|
|
91
85
|
let a = 0;
|
|
92
|
-
for (let
|
|
93
|
-
a = Math.max(a, e[
|
|
94
|
-
(i,
|
|
86
|
+
for (let r = e.length - 1; r >= 0; r--)
|
|
87
|
+
a = Math.max(a, e[r].depth), e[r].headerColSpan = e[r].headerColSpan || 1, e[r].children.length > 0 && (e[r].headerColSpan = e[r].children.reduce(
|
|
88
|
+
(i, l) => l.hidden ? i : i + l.headerColSpan,
|
|
95
89
|
0
|
|
96
90
|
));
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
return e.forEach((
|
|
100
|
-
r
|
|
101
|
-
let
|
|
102
|
-
r
|
|
103
|
-
for (let
|
|
104
|
-
|
|
105
|
-
}),
|
|
91
|
+
const d = [];
|
|
92
|
+
let o = 1;
|
|
93
|
+
return e.forEach((r, i) => {
|
|
94
|
+
n[r.depth] = n[r.depth] || [];
|
|
95
|
+
let l = !1;
|
|
96
|
+
n[r.depth].length === 0 && (o <= 1 ? o = 1 + (r.children.length > 0 ? 0 : a - r.depth) : (o--, l = !0)), r.rowSpan = 1 + (r.children.length > 0 ? 0 : a - r.depth), r.kFirst = l, r.index = n[r.depth].length, n[r.depth].push(i), r.ariaColumnIndex = d[r.depth] ? d[r.depth] + 1 : 1;
|
|
97
|
+
for (let c = r.depth; c < r.depth + r.rowSpan; c++)
|
|
98
|
+
d[c] = (d[c] || 0) + r.headerColSpan;
|
|
99
|
+
}), D(n, e, t), E(n, e, t), n;
|
|
106
100
|
}
|
|
107
|
-
function
|
|
108
|
-
const
|
|
101
|
+
function m(e, t, n, a = 0, d = !1) {
|
|
102
|
+
const o = [];
|
|
109
103
|
if (!e)
|
|
110
104
|
return [];
|
|
111
|
-
e && e.length === void 0 && (e = [e]), e.forEach((i,
|
|
105
|
+
e && e.length === void 0 && (e = [e]), e.forEach((i, l) => {
|
|
112
106
|
i = i.props ? i.props : i;
|
|
113
|
-
const
|
|
114
|
-
|
|
107
|
+
const c = i.id ? i.id : p.generateNavigatableId(`${n.prevId++}`, n.idPrefix, "column"), s = A && i.media && window.matchMedia ? !window.matchMedia(i.media).matches : !1, g = d || s || i.hidden, x = t == null ? void 0 : t.find((I) => I.id === c), h = m(i.children, (x == null ? void 0 : x.children) || [], n, a + 1, g);
|
|
108
|
+
o.push(
|
|
115
109
|
Object.assign(
|
|
116
110
|
{ depth: a },
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
v,
|
|
112
|
+
h.length ? { cell: () => null, filterCell: () => null } : {},
|
|
119
113
|
i,
|
|
120
114
|
{
|
|
121
|
-
id:
|
|
122
|
-
declarationIndex:
|
|
123
|
-
children:
|
|
115
|
+
id: c,
|
|
116
|
+
declarationIndex: o.length,
|
|
117
|
+
children: h,
|
|
124
118
|
headerColSpan: 0,
|
|
125
119
|
rowSpan: 0,
|
|
126
120
|
columnType: i.columnType || "data",
|
|
127
121
|
colSpan: i.colSpan || 1,
|
|
128
122
|
isAccessible: !0,
|
|
129
|
-
hidden:
|
|
123
|
+
hidden: g,
|
|
130
124
|
left: null,
|
|
131
125
|
right: null,
|
|
132
126
|
rowSpannable: i.rowSpannable
|
|
@@ -135,28 +129,28 @@ function H(e, t, r, a = 0, o = !1) {
|
|
|
135
129
|
)
|
|
136
130
|
);
|
|
137
131
|
});
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
const i = [],
|
|
141
|
-
|
|
132
|
+
const r = (i, l) => i.orderIndex === l.orderIndex ? i.declarationIndex - l.declarationIndex : (i.orderIndex || 0) - (l.orderIndex || 0);
|
|
133
|
+
if (o.sort(r), a === 0) {
|
|
134
|
+
const i = [], l = (c, s) => c.forEach((g) => {
|
|
135
|
+
g.parentIndex = s, l(g.children, i.push(g) - 1);
|
|
142
136
|
});
|
|
143
|
-
return
|
|
137
|
+
return l(o, -1), i;
|
|
144
138
|
}
|
|
145
|
-
return
|
|
139
|
+
return o;
|
|
146
140
|
}
|
|
147
|
-
const
|
|
148
|
-
function X(e, t,
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
151
|
-
let
|
|
141
|
+
const T = (e) => Array.isArray(e) ? e : e ? e.data : [];
|
|
142
|
+
function X(e, t, n, a) {
|
|
143
|
+
const d = T(e), o = [];
|
|
144
|
+
if (d.length > 0) {
|
|
145
|
+
let r = d[0];
|
|
152
146
|
if (t)
|
|
153
|
-
for (let
|
|
154
|
-
|
|
155
|
-
Object.getOwnPropertyNames(
|
|
156
|
-
|
|
147
|
+
for (let l = 0; l < t.length; l++)
|
|
148
|
+
r = r.items && r.items[0];
|
|
149
|
+
Object.getOwnPropertyNames(r).forEach((l) => {
|
|
150
|
+
l !== n.column && o.push(
|
|
157
151
|
Object.assign(
|
|
158
152
|
{
|
|
159
|
-
id:
|
|
153
|
+
id: p.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
|
|
160
154
|
declarationIndex: -1,
|
|
161
155
|
parentIndex: -1,
|
|
162
156
|
depth: 0,
|
|
@@ -172,60 +166,64 @@ function X(e, t, r, a) {
|
|
|
172
166
|
ariaColumnIndex: 0,
|
|
173
167
|
isAccessible: !0
|
|
174
168
|
},
|
|
175
|
-
|
|
176
|
-
{ field:
|
|
169
|
+
v,
|
|
170
|
+
{ field: l }
|
|
177
171
|
)
|
|
178
172
|
);
|
|
179
173
|
});
|
|
180
174
|
}
|
|
181
|
-
return
|
|
175
|
+
return o;
|
|
182
176
|
}
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
const H = (e, t) => {
|
|
178
|
+
var a;
|
|
179
|
+
let n = e[t.parentIndex];
|
|
180
|
+
for (; n; ) {
|
|
181
|
+
if ((a = n.cells) != null && a.footerCell)
|
|
187
182
|
return !0;
|
|
188
|
-
|
|
183
|
+
n = e[n.parentIndex];
|
|
189
184
|
}
|
|
190
185
|
return !1;
|
|
191
|
-
}, Y = (e) => e.filter((t) =>
|
|
192
|
-
|
|
193
|
-
return
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
186
|
+
}, Y = (e) => e.filter((t) => {
|
|
187
|
+
var n;
|
|
188
|
+
return H(e, t) ? !1 : !!((n = t.cells) != null && n.footerCell) || !(t.children && t.children.length > 0);
|
|
189
|
+
}), Z = (e) => e.width !== void 0 ? Math.floor(parseFloat(e.width.toString())) + "px" : void 0, _ = (e, t) => t && t.filter((n) => n.field === e).length > 0, j = (e) => (e.sort((t, n) => t.declarationIndex - n.declarationIndex), e.map((t) => {
|
|
190
|
+
const { declarationIndex: n, parentIndex: a, depth: d, headerColSpan: o, rowSpan: r, index: i, kFirst: l, children: c, ...s } = t;
|
|
191
|
+
return c.length ? {
|
|
192
|
+
children: j(c),
|
|
193
|
+
...s
|
|
194
|
+
} : s;
|
|
195
|
+
})), B = (e) => {
|
|
196
|
+
const { cells: t, rowSpannable: n, defaultCell: a, ...d } = e;
|
|
199
197
|
return e.children.length ? {
|
|
200
198
|
...d,
|
|
201
|
-
children: e.children.map(
|
|
199
|
+
children: e.children.map(B)
|
|
202
200
|
} : d;
|
|
203
|
-
},
|
|
201
|
+
}, O = (e) => ({
|
|
204
202
|
id: e.id,
|
|
205
203
|
field: e.field,
|
|
206
204
|
title: e.title,
|
|
207
205
|
width: e.width,
|
|
208
206
|
hidden: !1,
|
|
209
|
-
children: e.children ?
|
|
210
|
-
}),
|
|
211
|
-
const t = [],
|
|
212
|
-
t.push(
|
|
207
|
+
children: e.children ? N(e.children) : null
|
|
208
|
+
}), N = (e) => e.map(O), P = (e) => {
|
|
209
|
+
const t = [], n = (a) => a == null ? void 0 : a.forEach((d) => {
|
|
210
|
+
t.push(d), n(d.children);
|
|
213
211
|
});
|
|
214
|
-
return
|
|
215
|
-
},
|
|
212
|
+
return n(e), t;
|
|
213
|
+
}, G = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), ee = 17895697, te = (e) => {
|
|
216
214
|
let t = [];
|
|
217
|
-
return e.sortable && (t = t.concat([
|
|
215
|
+
return e.sortable && (t = t.concat([f.sortAsc, f.sortDesc])), e.pdf && (t.length && (t = t.concat([f.separator])), t = t.concat([f.exportPDF])), t;
|
|
218
216
|
}, ne = (e) => {
|
|
219
217
|
let t = [];
|
|
220
218
|
return e.clipboard && (t = t.concat([
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
])), e.editable && (t.length && (t = t.concat([
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
])), e.selectable && (t.length && (t = t.concat([
|
|
219
|
+
f.copySelection,
|
|
220
|
+
f.copySelectionNoHeaders,
|
|
221
|
+
f.paste
|
|
222
|
+
])), e.editable && (t.length && (t = t.concat([f.separator])), t = t.concat([
|
|
223
|
+
f.create,
|
|
224
|
+
f.edit,
|
|
225
|
+
f.delete
|
|
226
|
+
])), e.selectable && (t.length && (t = t.concat([f.separator])), t = t.concat([f.select])), e.rowReorderable && (t.length && (t = t.concat([f.separator])), t = t.concat([f.reorderRow])), e.pdf && (t.length && (t = t.concat([f.separator])), t = t.concat([f.exportPDF])), t;
|
|
229
227
|
}, re = (e, t) => {
|
|
230
228
|
if (!(!e && !t))
|
|
231
229
|
return t ? e ? {
|
|
@@ -248,10 +246,10 @@ const B = (e, t) => {
|
|
|
248
246
|
...t.edit || {}
|
|
249
247
|
}
|
|
250
248
|
} : t : e;
|
|
251
|
-
},
|
|
252
|
-
var
|
|
253
|
-
return typeof e == "object" ? (
|
|
254
|
-
},
|
|
249
|
+
}, ae = (e) => {
|
|
250
|
+
var n;
|
|
251
|
+
return typeof e == "object" ? (n = e.enabled) != null ? n : !0 : e != null ? e : !1;
|
|
252
|
+
}, ie = () => M === b, de = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), le = (e) => ({
|
|
255
253
|
id: e.id,
|
|
256
254
|
ariaColumnIndex: e.ariaColumnIndex,
|
|
257
255
|
isSelected: e.isSelected,
|
|
@@ -271,57 +269,56 @@ const B = (e, t) => {
|
|
|
271
269
|
rowType: e.rowType,
|
|
272
270
|
level: e.level,
|
|
273
271
|
editor: e.editor,
|
|
274
|
-
render: e.render,
|
|
275
272
|
locked: e.locked,
|
|
276
273
|
isRtl: e.isRtl,
|
|
277
274
|
rowDataIndex: e.rowDataIndex,
|
|
278
275
|
columnPosition: e.columnPosition,
|
|
279
276
|
group: e.group
|
|
280
277
|
}), oe = (e) => {
|
|
281
|
-
var a,
|
|
282
|
-
const t = typeof e == "object" ? (a = e.enabled) != null ? a : !0 : e != null ? e : !1,
|
|
283
|
-
return { enabled: t, valueGetter:
|
|
284
|
-
},
|
|
278
|
+
var a, d;
|
|
279
|
+
const t = typeof e == "object" ? (a = e.enabled) != null ? a : !0 : e != null ? e : !1, n = typeof e == "object" ? (d = e.valueGetter) != null ? d : (o, r) => y(r)(o) : (o, r) => y(r)(o);
|
|
280
|
+
return { enabled: t, valueGetter: n };
|
|
281
|
+
}, k = (e) => {
|
|
285
282
|
var t;
|
|
286
|
-
return
|
|
287
|
-
},
|
|
288
|
-
const
|
|
289
|
-
return
|
|
290
|
-
},
|
|
283
|
+
return w.isValidElement(e) ? e : (t = w.Children.toArray(e)) == null ? void 0 : t[0];
|
|
284
|
+
}, ce = (e, t) => {
|
|
285
|
+
const n = k(e);
|
|
286
|
+
return n ? w.cloneElement(n, t) : null;
|
|
287
|
+
}, fe = (e) => {
|
|
291
288
|
let t = 0;
|
|
292
289
|
if (e) {
|
|
293
|
-
const
|
|
294
|
-
a.textContent = " ", t =
|
|
290
|
+
const n = e.insertRow(0), a = n.insertCell(0);
|
|
291
|
+
a.textContent = " ", t = n.getBoundingClientRect().height, e.deleteRow(0);
|
|
295
292
|
}
|
|
296
293
|
return t;
|
|
297
294
|
};
|
|
298
295
|
export {
|
|
299
296
|
X as autoGenerateColumns,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
fe as calcRowHeight,
|
|
298
|
+
B as clientColumn,
|
|
299
|
+
ce as cloneReactElement,
|
|
300
|
+
G as firefox,
|
|
304
301
|
ee as firefoxMaxHeight,
|
|
305
|
-
|
|
302
|
+
R as flatData,
|
|
306
303
|
Y as footerColumns,
|
|
307
304
|
le as getClientCellProps,
|
|
308
305
|
K as getColSpan,
|
|
309
|
-
|
|
306
|
+
O as getColumnState,
|
|
310
307
|
Z as getColumnWidth,
|
|
311
|
-
|
|
312
|
-
|
|
308
|
+
N as getColumnsState,
|
|
309
|
+
T as getDataAsArray,
|
|
313
310
|
ne as getDefaultBodyContextMenuItems,
|
|
314
311
|
te as getDefaultHeadContextMenuItems,
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
312
|
+
P as getFlatColumnsState,
|
|
313
|
+
J as getNestedValue,
|
|
314
|
+
k as getReactElement,
|
|
318
315
|
oe as getRowSpanOptions,
|
|
319
|
-
|
|
316
|
+
ie as isClient,
|
|
320
317
|
de as isClientReference,
|
|
321
|
-
|
|
318
|
+
ae as isRowReorderEnabled,
|
|
322
319
|
_ as isSorted,
|
|
323
320
|
Q as mapColumns,
|
|
324
|
-
|
|
321
|
+
m as readColumns,
|
|
325
322
|
re as resolveCells,
|
|
326
|
-
|
|
323
|
+
j as sanitizeColumns
|
|
327
324
|
};
|
package/utils/premium.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),a=require("@progress/kendo-react-data-tools"),c=require("../sortCommon.js"),m=require("../paging/GridPagerSettings.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=b(d),y=e=>({lockedColumn:e.some(r=>r.locked)}),g=e=>({multiColumn:e.some(r=>r.children&&r.children.length>0)}),C=e=>({columnCellTemplate:e.some(r=>r.columnType!=="data"?!1:r.cells)}),p=e=>({columnMenu:e.some(r=>r.columnMenu)}),f=e=>o.Children.toArray(e.children).some(t=>t&&t.type&&t.type.displayName==="KendoReactGridColumn"?t.props.hidden:!1),h=e=>o.Children.toArray(e.children).some(t=>t&&t.type&&t.type.displayName==="KendoReactGridToolbar"&&t.props&&t.props.children?o.Children.toArray(t.props.children).some(l=>l.type&&(l.type.displayName==="KendoReactGridToolbarSort"||l.type.displayName==="KendoReactGridToolbarFilter"||l.type.displayName==="KendoReactGridToolbarCheckboxFilter"||l.type.displayName==="KendoReactGridToolbarColumnsChooser")):!1),i=e=>{const r=a.getSelectionOptions(e.selectable),t=a.getEditableOptions(e.editable),n=e.sortable&&c.normalizeSortable(e.sortable),l=e.pageable&&m.normalize(e.pageable);return{cells:!!e.cells,pdf:!!e.pdf,detail:!!e.detail,rows:!!e.rows,editableInline:t.mode==="inline",selectionMultiple:r.enabled&&r.mode==="multiple",selectionDrag:r.enabled&&r.drag,columnMenu:!!e.columnMenu,filterOperators:!!e.filterOperators,groupable:!!e.groupable,group:!!e.group,groupExpand:!!e.groupExpand,customPager:!!e.pager,clipboard:!!e.clipboard,contextMenu:!!e.contextMenu,serverGrid:!e.isClient,scrollableVirtual:e.scrollable==="virtual",pageableInput:!!(e.pageable&&l.type==="input"),sortableMultiple:!!(e.sortable&&n.mode==="multiple"),hiddenColumns:f(e)}},s=e=>({...y(e),...g(e),...C(e),...p(e)}),u=e=>({toolbarTools:h(e)}),P=(e,r)=>{const t={...i(e),...s(r),...u(e)};return Object.keys(t).filter(n=>t[n]===!0)};exports.gridPremiumFeatures=P;exports.isPremiumGridByColumns=s;exports.isPremiumGridByComponents=u;exports.isPremiumGridByProps=i;
|
package/utils/premium.mjs
CHANGED
|
@@ -6,30 +6,27 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
|
-
import { getSelectionOptions as
|
|
10
|
-
import { normalizeSortable as
|
|
11
|
-
import { normalize as
|
|
12
|
-
const
|
|
13
|
-
lockedColumn: e.some((
|
|
14
|
-
}),
|
|
15
|
-
multiColumn: e.some((
|
|
9
|
+
import { getSelectionOptions as o, getEditableOptions as i } from "@progress/kendo-react-data-tools";
|
|
10
|
+
import { normalizeSortable as s } from "../sortCommon.mjs";
|
|
11
|
+
import { normalize as d } from "../paging/GridPagerSettings.mjs";
|
|
12
|
+
const u = (e) => ({
|
|
13
|
+
lockedColumn: e.some((r) => r.locked)
|
|
14
|
+
}), m = (e) => ({
|
|
15
|
+
multiColumn: e.some((r) => r.children && r.children.length > 0)
|
|
16
16
|
}), c = (e) => ({
|
|
17
|
-
columnCellTemplate: e.some((
|
|
17
|
+
columnCellTemplate: e.some((r) => r.columnType !== "data" ? !1 : r.cells)
|
|
18
18
|
}), b = (e) => ({
|
|
19
|
-
columnMenu: e.some((
|
|
20
|
-
}),
|
|
21
|
-
const
|
|
19
|
+
columnMenu: e.some((r) => r.columnMenu)
|
|
20
|
+
}), y = (e) => a.Children.toArray(e.children).some((t) => t && t.type && t.type.displayName === "KendoReactGridColumn" ? t.props.hidden : !1), C = (e) => a.Children.toArray(e.children).some((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" && t.props && t.props.children ? a.Children.toArray(t.props.children).some((l) => l.type && (l.type.displayName === "KendoReactGridToolbarSort" || l.type.displayName === "KendoReactGridToolbarFilter" || l.type.displayName === "KendoReactGridToolbarCheckboxFilter" || l.type.displayName === "KendoReactGridToolbarColumnsChooser")) : !1), g = (e) => {
|
|
21
|
+
const r = o(e.selectable), t = i(e.editable), n = e.sortable && s(e.sortable), l = e.pageable && d(e.pageable);
|
|
22
22
|
return {
|
|
23
23
|
cells: !!e.cells,
|
|
24
|
+
pdf: !!e.pdf,
|
|
24
25
|
detail: !!e.detail,
|
|
25
|
-
cellRender: !!e.cellRender,
|
|
26
26
|
rows: !!e.rows,
|
|
27
|
-
rowRender: !!e.rowRender,
|
|
28
|
-
filterCellRender: !!e.filterCellRender,
|
|
29
|
-
headerCellRender: !!e.headerCellRender,
|
|
30
27
|
editableInline: t.mode === "inline",
|
|
31
|
-
selectionMultiple:
|
|
32
|
-
selectionDrag:
|
|
28
|
+
selectionMultiple: r.enabled && r.mode === "multiple",
|
|
29
|
+
selectionDrag: r.enabled && r.drag,
|
|
33
30
|
columnMenu: !!e.columnMenu,
|
|
34
31
|
filterOperators: !!e.filterOperators,
|
|
35
32
|
groupable: !!e.groupable,
|
|
@@ -40,24 +37,28 @@ const m = (e) => ({
|
|
|
40
37
|
contextMenu: !!e.contextMenu,
|
|
41
38
|
serverGrid: !e.isClient,
|
|
42
39
|
scrollableVirtual: e.scrollable === "virtual",
|
|
43
|
-
pageableInput: !!(e.pageable &&
|
|
44
|
-
sortableMultiple: !!(e.sortable &&
|
|
45
|
-
hiddenColumns:
|
|
40
|
+
pageableInput: !!(e.pageable && l.type === "input"),
|
|
41
|
+
sortableMultiple: !!(e.sortable && n.mode === "multiple"),
|
|
42
|
+
hiddenColumns: y(e)
|
|
46
43
|
};
|
|
47
44
|
}, h = (e) => ({
|
|
45
|
+
...u(e),
|
|
48
46
|
...m(e),
|
|
49
|
-
...s(e),
|
|
50
47
|
...c(e),
|
|
51
48
|
...b(e)
|
|
52
|
-
}),
|
|
49
|
+
}), p = (e) => ({
|
|
50
|
+
toolbarTools: C(e)
|
|
51
|
+
}), G = (e, r) => {
|
|
53
52
|
const t = {
|
|
54
53
|
...g(e),
|
|
55
|
-
...h(
|
|
54
|
+
...h(r),
|
|
55
|
+
...p(e)
|
|
56
56
|
};
|
|
57
|
-
return Object.keys(t).filter((
|
|
57
|
+
return Object.keys(t).filter((n) => t[n] === !0);
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
G as gridPremiumFeatures,
|
|
61
61
|
h as isPremiumGridByColumns,
|
|
62
|
+
p as isPremiumGridByComponents,
|
|
62
63
|
g as isPremiumGridByProps
|
|
63
64
|
};
|
package/utils/virtualColumns.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(u){const{cellModels:l,columns:o=[],tableViewPortWidth:f,scrollLeft:c}=u;let n=0,t=l.length-1,i=0,d=0;for(let e=0;e<l.length;e++)if(!o[l[e].columnIndex].locked&&(i=d,d+=l[e].width||10,d>=c)){n=e;break}for(let e=n;e<l.length;e++)if(!o[l[e].columnIndex].locked)if(i<f+c)i+=l[e].width||10,t=e;else break;n>0&&n--,t<l.length-1&&t++;let r=0,s=0;for(let e=0;e<n;e++)o[l[e].columnIndex].locked||(r+=l[e].colSpan);for(let e=t+1;e<l.length;e++)o[l[e].columnIndex].locked||(s+=l[e].colSpan);l[n].colSpan+=r,l[t].colSpan+=s;const a=l.slice(0,n).filter(e=>o[e.columnIndex].locked),h=l.slice(t+1).filter(e=>o[e.columnIndex].locked);return[...a,...l.slice(n,t+1),...h]}exports.getVirtualCellsToRender=g;
|
package/utils/virtualColumns.mjs
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
function
|
|
9
|
-
const { cellModels: l, columns: o = [], tableViewPortWidth: u, scrollLeft:
|
|
10
|
-
let n = 0, t = l.length - 1, i = 0,
|
|
8
|
+
function k(s) {
|
|
9
|
+
const { cellModels: l, columns: o = [], tableViewPortWidth: u, scrollLeft: c } = s;
|
|
10
|
+
let n = 0, t = l.length - 1, i = 0, d = 0;
|
|
11
11
|
for (let e = 0; e < l.length; e++)
|
|
12
|
-
if (!o[l[e].columnIndex].locked && (i =
|
|
12
|
+
if (!o[l[e].columnIndex].locked && (i = d, d += l[e].width || 10, d >= c)) {
|
|
13
13
|
n = e;
|
|
14
14
|
break;
|
|
15
15
|
}
|
|
16
16
|
for (let e = n; e < l.length; e++)
|
|
17
17
|
if (!o[l[e].columnIndex].locked)
|
|
18
|
-
if (i < u +
|
|
18
|
+
if (i < u + c)
|
|
19
19
|
i += l[e].width || 10, t = e;
|
|
20
20
|
else
|
|
21
21
|
break;
|
|
@@ -25,8 +25,14 @@ function h(a) {
|
|
|
25
25
|
o[l[e].columnIndex].locked || (r += l[e].colSpan);
|
|
26
26
|
for (let e = t + 1; e < l.length; e++)
|
|
27
27
|
o[l[e].columnIndex].locked || (f += l[e].colSpan);
|
|
28
|
-
|
|
28
|
+
l[n].colSpan += r, l[t].colSpan += f;
|
|
29
|
+
const a = l.slice(0, n).filter((e) => o[e.columnIndex].locked), h = l.slice(t + 1).filter((e) => o[e.columnIndex].locked);
|
|
30
|
+
return [
|
|
31
|
+
...a,
|
|
32
|
+
...l.slice(n, t + 1),
|
|
33
|
+
...h
|
|
34
|
+
];
|
|
29
35
|
}
|
|
30
36
|
export {
|
|
31
|
-
|
|
37
|
+
k as getVirtualCellsToRender
|
|
32
38
|
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),l=require("../GridClientWrapper.js"),r=require("../utils/index.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=c(o),u=e=>{const t=a.useContext(l.GridContext);if(t.isClient||e.isClient){const n=t.getCellPositionStyle(e.columnPosition);return e.children&&r.cloneReactElement(e.children,{style:{...e.style,...n},onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:i=>{t.selectionChange({event:i,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}})}return e.children};exports.GridCustomCellClientContainer=u;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
"use client";
|
|
9
|
-
import * as i from "react";
|
|
10
|
-
import { GridContext as l } from "../GridClientWrapper.mjs";
|
|
11
|
-
import { cloneReactElement as a } from "../utils/index.mjs";
|
|
12
|
-
const m = (e) => {
|
|
13
|
-
const t = i.useContext(l);
|
|
14
|
-
if (t.isClient || e.isClient) {
|
|
15
|
-
const n = t.getCellPositionStyle(e.columnPosition);
|
|
16
|
-
return e.children && a(e.children, {
|
|
17
|
-
style: { ...e.style, ...n },
|
|
18
|
-
onContextMenu: t.onContextMenu,
|
|
19
|
-
onChange: t.itemChange,
|
|
20
|
-
selectionChange: (o) => {
|
|
21
|
-
t.selectionChange({
|
|
22
|
-
event: o,
|
|
23
|
-
dataItem: e.dataItem,
|
|
24
|
-
dataIndex: e.rowDataIndex,
|
|
25
|
-
columnIndex: e.columnIndex
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return e.children;
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
m as GridCustomCellClientContainer
|
|
34
|
-
};
|