@progress/kendo-react-grid 11.0.0-develop.12 → 11.0.0-develop.14
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 +14 -16
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +309 -285
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +138 -136
- package/GridPdfExportButton.js +8 -0
- package/GridPdfExportButton.mjs +35 -0
- package/GridSearchBox.js +1 -1
- package/GridSearchBox.mjs +1 -1
- 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/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/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/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 +7 -7
- 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/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/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/client/FooterCellContainer.js +1 -1
- package/footer/client/FooterCellContainer.mjs +1 -1
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +1 -1
- 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/client/GridFilterCellContainer.js +1 -1
- package/header/client/GridFilterCellContainer.mjs +1 -1
- 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 +1 -1
- 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 +40 -0
- package/index.d.ts +40 -0
- package/index.js +1 -1
- package/index.mjs +23 -21
- package/messages/index.js +1 -1
- package/messages/index.mjs +60 -58
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -17
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +1 -1
- package/utils/GridContext.js +9 -0
- package/utils/GridContext.mjs +13 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +91 -91
package/utils/index.mjs
CHANGED
|
@@ -8,72 +8,72 @@
|
|
|
8
8
|
import * as w from "react";
|
|
9
9
|
import { gridDefaultProps as v } from "../GridColumn.mjs";
|
|
10
10
|
import { getter as y } from "@progress/kendo-data-query";
|
|
11
|
-
import { findGroupExpand as
|
|
12
|
-
import { ServerFragment as
|
|
13
|
-
import { ClientFragment as
|
|
14
|
-
import { GridContextMenuItemNames as
|
|
15
|
-
import { canUseDOM as
|
|
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
16
|
function J(e, t) {
|
|
17
17
|
const n = (e != null ? e : "").split(".");
|
|
18
|
-
let
|
|
18
|
+
let a = t;
|
|
19
19
|
return n.forEach((d) => {
|
|
20
|
-
|
|
21
|
-
}),
|
|
20
|
+
a = a ? a[d] : void 0;
|
|
21
|
+
}), a;
|
|
22
22
|
}
|
|
23
|
-
function R(e, t, n,
|
|
23
|
+
function R(e, t, n, a, d, o, r, i, l, c = 0, s) {
|
|
24
24
|
var x;
|
|
25
|
-
let g =
|
|
26
|
-
for (let
|
|
25
|
+
let g = c;
|
|
26
|
+
for (let h = 0; h < t.length; h++) {
|
|
27
27
|
let I;
|
|
28
|
-
if (!d || t[
|
|
28
|
+
if (!d || t[h].value === void 0 || t[h].items === void 0) {
|
|
29
29
|
e[e.length] = {
|
|
30
|
-
dataIndex:
|
|
31
|
-
dataItem: t[
|
|
30
|
+
dataIndex: a.index,
|
|
31
|
+
dataItem: t[h],
|
|
32
32
|
rowType: "data",
|
|
33
|
-
level:
|
|
34
|
-
group:
|
|
33
|
+
level: c,
|
|
34
|
+
group: s,
|
|
35
35
|
// This is related to detail-row expansion
|
|
36
|
-
expanded: (x = l ? !!(o != null && o[y(l)(t[
|
|
37
|
-
},
|
|
36
|
+
expanded: (x = l ? !!(o != null && o[y(l)(t[h])]) : !1) != null ? x : !1
|
|
37
|
+
}, a.index++;
|
|
38
38
|
continue;
|
|
39
39
|
} else {
|
|
40
40
|
let S;
|
|
41
|
-
|
|
42
|
-
field: t[
|
|
43
|
-
value: t[
|
|
41
|
+
s != null && s.parents ? S = [{ field: s.field, value: s.value }, ...s.parents] : s ? S = [s] : S = [], I = {
|
|
42
|
+
field: t[h].field,
|
|
43
|
+
value: t[h].value,
|
|
44
44
|
parents: S
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
g = Math.max(g,
|
|
47
|
+
g = Math.max(g, c + 1);
|
|
48
48
|
let C = !1;
|
|
49
|
-
const u =
|
|
50
|
-
u ? C = u.expanded !== !1 : C =
|
|
49
|
+
const u = F(r || [], I);
|
|
50
|
+
u ? C = u.expanded !== !1 : C = i !== !1, e[e.length] = {
|
|
51
51
|
dataIndex: -1,
|
|
52
|
-
dataItem: t[
|
|
53
|
-
level:
|
|
52
|
+
dataItem: t[h],
|
|
53
|
+
level: c,
|
|
54
54
|
group: I,
|
|
55
55
|
rowType: "groupHeader",
|
|
56
56
|
expanded: C
|
|
57
57
|
}, C && (I.expanded = C, g = Math.max(
|
|
58
58
|
R(
|
|
59
59
|
e,
|
|
60
|
-
t[
|
|
60
|
+
t[h].items,
|
|
61
61
|
n,
|
|
62
|
-
|
|
62
|
+
a,
|
|
63
63
|
d,
|
|
64
64
|
o,
|
|
65
65
|
r,
|
|
66
|
-
|
|
66
|
+
i,
|
|
67
67
|
l,
|
|
68
|
-
|
|
68
|
+
c + 1,
|
|
69
69
|
I
|
|
70
70
|
),
|
|
71
71
|
g
|
|
72
72
|
)), (n === "always" || C && n === "visible") && (e[e.length] = {
|
|
73
73
|
dataIndex: -1,
|
|
74
|
-
dataItem: t[
|
|
74
|
+
dataItem: t[h],
|
|
75
75
|
rowType: "groupFooter",
|
|
76
|
-
level:
|
|
76
|
+
level: c,
|
|
77
77
|
expanded: C
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -82,64 +82,64 @@ function R(e, t, n, i, d, o, r, a, l, s = 0, f) {
|
|
|
82
82
|
const K = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
|
|
83
83
|
function Q(e, t) {
|
|
84
84
|
const n = [[]];
|
|
85
|
-
let
|
|
85
|
+
let a = 0;
|
|
86
86
|
for (let r = e.length - 1; r >= 0; r--)
|
|
87
|
-
|
|
88
|
-
(
|
|
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,
|
|
89
89
|
0
|
|
90
90
|
));
|
|
91
91
|
const d = [];
|
|
92
92
|
let o = 1;
|
|
93
|
-
return e.forEach((r,
|
|
93
|
+
return e.forEach((r, i) => {
|
|
94
94
|
n[r.depth] = n[r.depth] || [];
|
|
95
95
|
let l = !1;
|
|
96
|
-
n[r.depth].length === 0 && (o <= 1 ? o = 1 + (r.children.length > 0 ? 0 :
|
|
97
|
-
for (let
|
|
98
|
-
d[
|
|
99
|
-
}),
|
|
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;
|
|
100
100
|
}
|
|
101
|
-
function m(e, t, n,
|
|
101
|
+
function m(e, t, n, a = 0, d = !1) {
|
|
102
102
|
const o = [];
|
|
103
103
|
if (!e)
|
|
104
104
|
return [];
|
|
105
|
-
e && e.length === void 0 && (e = [e]), e.forEach((
|
|
106
|
-
|
|
107
|
-
const
|
|
105
|
+
e && e.length === void 0 && (e = [e]), e.forEach((i, l) => {
|
|
106
|
+
i = i.props ? i.props : i;
|
|
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
108
|
o.push(
|
|
109
109
|
Object.assign(
|
|
110
|
-
{ depth:
|
|
110
|
+
{ depth: a },
|
|
111
111
|
v,
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
h.length ? { cell: () => null, filterCell: () => null } : {},
|
|
113
|
+
i,
|
|
114
114
|
{
|
|
115
|
-
id:
|
|
115
|
+
id: c,
|
|
116
116
|
declarationIndex: o.length,
|
|
117
|
-
children:
|
|
117
|
+
children: h,
|
|
118
118
|
headerColSpan: 0,
|
|
119
119
|
rowSpan: 0,
|
|
120
|
-
columnType:
|
|
121
|
-
colSpan:
|
|
120
|
+
columnType: i.columnType || "data",
|
|
121
|
+
colSpan: i.colSpan || 1,
|
|
122
122
|
isAccessible: !0,
|
|
123
123
|
hidden: g,
|
|
124
124
|
left: null,
|
|
125
125
|
right: null,
|
|
126
|
-
rowSpannable:
|
|
126
|
+
rowSpannable: i.rowSpannable
|
|
127
127
|
},
|
|
128
128
|
x ? { width: x.width, orderIndex: x.orderIndex } : {}
|
|
129
129
|
)
|
|
130
130
|
);
|
|
131
131
|
});
|
|
132
|
-
const r = (
|
|
133
|
-
if (o.sort(r),
|
|
134
|
-
const
|
|
135
|
-
g.parentIndex =
|
|
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);
|
|
136
136
|
});
|
|
137
|
-
return l(o, -1),
|
|
137
|
+
return l(o, -1), i;
|
|
138
138
|
}
|
|
139
139
|
return o;
|
|
140
140
|
}
|
|
141
141
|
const T = (e) => Array.isArray(e) ? e : e ? e.data : [];
|
|
142
|
-
function X(e, t, n,
|
|
142
|
+
function X(e, t, n, a) {
|
|
143
143
|
const d = T(e), o = [];
|
|
144
144
|
if (d.length > 0) {
|
|
145
145
|
let r = d[0];
|
|
@@ -150,7 +150,7 @@ function X(e, t, n, i) {
|
|
|
150
150
|
l !== n.column && o.push(
|
|
151
151
|
Object.assign(
|
|
152
152
|
{
|
|
153
|
-
id: p.generateNavigatableId(`${
|
|
153
|
+
id: p.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
|
|
154
154
|
declarationIndex: -1,
|
|
155
155
|
parentIndex: -1,
|
|
156
156
|
depth: 0,
|
|
@@ -175,10 +175,10 @@ function X(e, t, n, i) {
|
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
177
|
const H = (e, t) => {
|
|
178
|
-
var
|
|
178
|
+
var a;
|
|
179
179
|
let n = e[t.parentIndex];
|
|
180
180
|
for (; n; ) {
|
|
181
|
-
if ((
|
|
181
|
+
if ((a = n.cells) != null && a.footerCell)
|
|
182
182
|
return !0;
|
|
183
183
|
n = e[n.parentIndex];
|
|
184
184
|
}
|
|
@@ -187,13 +187,13 @@ const H = (e, t) => {
|
|
|
187
187
|
var n;
|
|
188
188
|
return H(e, t) ? !1 : !!((n = t.cells) != null && n.footerCell) || !(t.children && t.children.length > 0);
|
|
189
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:
|
|
191
|
-
return
|
|
192
|
-
children: j(
|
|
193
|
-
...
|
|
194
|
-
} :
|
|
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
195
|
})), B = (e) => {
|
|
196
|
-
const { cells: t, rowSpannable: n, defaultCell:
|
|
196
|
+
const { cells: t, rowSpannable: n, defaultCell: a, ...d } = e;
|
|
197
197
|
return e.children.length ? {
|
|
198
198
|
...d,
|
|
199
199
|
children: e.children.map(B)
|
|
@@ -205,25 +205,25 @@ const H = (e, t) => {
|
|
|
205
205
|
width: e.width,
|
|
206
206
|
hidden: !1,
|
|
207
207
|
children: e.children ? N(e.children) : null
|
|
208
|
-
}), N = (e) => e.map(O),
|
|
209
|
-
const t = [], n = (
|
|
208
|
+
}), N = (e) => e.map(O), P = (e) => {
|
|
209
|
+
const t = [], n = (a) => a == null ? void 0 : a.forEach((d) => {
|
|
210
210
|
t.push(d), n(d.children);
|
|
211
211
|
});
|
|
212
212
|
return n(e), t;
|
|
213
|
-
},
|
|
213
|
+
}, G = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), ee = 17895697, te = (e) => {
|
|
214
214
|
let t = [];
|
|
215
|
-
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;
|
|
216
216
|
}, ne = (e) => {
|
|
217
217
|
let t = [];
|
|
218
218
|
return e.clipboard && (t = t.concat([
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
])), e.editable && (t.length && (t = t.concat([
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
])), 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;
|
|
227
227
|
}, re = (e, t) => {
|
|
228
228
|
if (!(!e && !t))
|
|
229
229
|
return t ? e ? {
|
|
@@ -246,10 +246,10 @@ const H = (e, t) => {
|
|
|
246
246
|
...t.edit || {}
|
|
247
247
|
}
|
|
248
248
|
} : t : e;
|
|
249
|
-
},
|
|
249
|
+
}, ae = (e) => {
|
|
250
250
|
var n;
|
|
251
251
|
return typeof e == "object" ? (n = e.enabled) != null ? n : !0 : e != null ? e : !1;
|
|
252
|
-
},
|
|
252
|
+
}, ie = () => M === b, de = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), le = (e) => ({
|
|
253
253
|
id: e.id,
|
|
254
254
|
ariaColumnIndex: e.ariaColumnIndex,
|
|
255
255
|
isSelected: e.isSelected,
|
|
@@ -275,20 +275,20 @@ const H = (e, t) => {
|
|
|
275
275
|
columnPosition: e.columnPosition,
|
|
276
276
|
group: e.group
|
|
277
277
|
}), oe = (e) => {
|
|
278
|
-
var
|
|
279
|
-
const t = typeof e == "object" ? (
|
|
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
280
|
return { enabled: t, valueGetter: n };
|
|
281
281
|
}, k = (e) => {
|
|
282
282
|
var t;
|
|
283
283
|
return w.isValidElement(e) ? e : (t = w.Children.toArray(e)) == null ? void 0 : t[0];
|
|
284
|
-
},
|
|
284
|
+
}, ce = (e, t) => {
|
|
285
285
|
const n = k(e);
|
|
286
286
|
return n ? w.cloneElement(n, t) : null;
|
|
287
287
|
}, fe = (e) => {
|
|
288
288
|
let t = 0;
|
|
289
289
|
if (e) {
|
|
290
|
-
const n = e.insertRow(0),
|
|
291
|
-
|
|
290
|
+
const n = e.insertRow(0), a = n.insertCell(0);
|
|
291
|
+
a.textContent = " ", t = n.getBoundingClientRect().height, e.deleteRow(0);
|
|
292
292
|
}
|
|
293
293
|
return t;
|
|
294
294
|
};
|
|
@@ -296,8 +296,8 @@ export {
|
|
|
296
296
|
X as autoGenerateColumns,
|
|
297
297
|
fe as calcRowHeight,
|
|
298
298
|
B as clientColumn,
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
ce as cloneReactElement,
|
|
300
|
+
G as firefox,
|
|
301
301
|
ee as firefoxMaxHeight,
|
|
302
302
|
R as flatData,
|
|
303
303
|
Y as footerColumns,
|
|
@@ -309,13 +309,13 @@ export {
|
|
|
309
309
|
T as getDataAsArray,
|
|
310
310
|
ne as getDefaultBodyContextMenuItems,
|
|
311
311
|
te as getDefaultHeadContextMenuItems,
|
|
312
|
-
|
|
312
|
+
P as getFlatColumnsState,
|
|
313
313
|
J as getNestedValue,
|
|
314
314
|
k as getReactElement,
|
|
315
315
|
oe as getRowSpanOptions,
|
|
316
|
-
|
|
316
|
+
ie as isClient,
|
|
317
317
|
de as isClientReference,
|
|
318
|
-
|
|
318
|
+
ae as isRowReorderEnabled,
|
|
319
319
|
_ as isSorted,
|
|
320
320
|
Q as mapColumns,
|
|
321
321
|
m as readColumns,
|