@progress/kendo-react-grid 7.2.4-develop.3 → 7.3.0-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/Grid.js +8 -0
- package/Grid.mjs +1111 -0
- package/GridColumn.js +8 -0
- package/GridColumn.mjs +53 -0
- package/GridNoRecords.js +8 -0
- package/GridNoRecords.mjs +25 -0
- package/GridToolbar.js +8 -0
- package/GridToolbar.mjs +39 -0
- package/StatusBar.js +8 -0
- package/StatusBar.mjs +53 -0
- package/VirtualScroll.js +8 -0
- package/VirtualScroll.mjs +128 -0
- package/VirtualScrollFixed.js +8 -0
- package/VirtualScrollFixed.mjs +86 -0
- package/cells/GridCell.js +8 -0
- package/cells/GridCell.mjs +57 -0
- package/cells/GridDetailCell.js +8 -0
- package/cells/GridDetailCell.mjs +30 -0
- package/cells/GridDetailHierarchyCell.js +8 -0
- package/cells/GridDetailHierarchyCell.mjs +17 -0
- package/cells/GridEditCell.js +8 -0
- package/cells/GridEditCell.mjs +172 -0
- package/cells/GridFilterCell.js +8 -0
- package/cells/GridFilterCell.mjs +145 -0
- package/cells/GridGroupCell.js +8 -0
- package/cells/GridGroupCell.mjs +115 -0
- package/cells/GridHierarchyCell.js +8 -0
- package/cells/GridHierarchyCell.mjs +84 -0
- package/cells/GridSelectionCell.js +8 -0
- package/cells/GridSelectionCell.mjs +54 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +8 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +199 -0
- package/columnMenu/GridColumnMenuColumnsList.js +8 -0
- package/columnMenu/GridColumnMenuColumnsList.mjs +60 -0
- package/columnMenu/GridColumnMenuFilter.js +8 -0
- package/columnMenu/GridColumnMenuFilter.mjs +188 -0
- package/columnMenu/GridColumnMenuFilterCell.js +8 -0
- package/columnMenu/GridColumnMenuFilterCell.mjs +96 -0
- package/columnMenu/GridColumnMenuFilterUI.js +8 -0
- package/columnMenu/GridColumnMenuFilterUI.mjs +36 -0
- package/columnMenu/GridColumnMenuGroup.js +8 -0
- package/columnMenu/GridColumnMenuGroup.mjs +50 -0
- package/columnMenu/GridColumnMenuItem.js +8 -0
- package/columnMenu/GridColumnMenuItem.mjs +22 -0
- package/columnMenu/GridColumnMenuItemContent.js +8 -0
- package/columnMenu/GridColumnMenuItemContent.mjs +30 -0
- package/columnMenu/GridColumnMenuItemGroup.js +8 -0
- package/columnMenu/GridColumnMenuItemGroup.mjs +30 -0
- package/columnMenu/GridColumnMenuSort.js +8 -0
- package/columnMenu/GridColumnMenuSort.mjs +75 -0
- package/columnMenu/GridColumnMenuWrapper.js +8 -0
- package/columnMenu/GridColumnMenuWrapper.mjs +91 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +15 -0
- package/dist/cdn/js/kendo-react-grid.js +8 -5
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +43 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +128 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +104 -0
- package/drag/GroupingIndicator.js +8 -0
- package/drag/GroupingIndicator.mjs +91 -0
- package/filterCommon.js +8 -0
- package/filterCommon.mjs +103 -0
- package/footer/Footer.js +8 -0
- package/footer/Footer.mjs +76 -0
- package/footer/FooterRow.js +8 -0
- package/footer/FooterRow.mjs +46 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +96 -0
- package/header/GridHeaderCell.js +8 -0
- package/header/GridHeaderCell.mjs +38 -0
- package/header/GridHeaderSelectionCell.js +8 -0
- package/header/GridHeaderSelectionCell.mjs +44 -0
- package/header/GroupPanel.js +8 -0
- package/header/GroupPanel.mjs +60 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +107 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +155 -0
- package/index.d.mts +2777 -5
- package/index.d.ts +2777 -57
- package/index.js +8 -5
- package/index.mjs +89 -3845
- package/interfaces/GridSortSettings.js +8 -0
- package/interfaces/GridSortSettings.mjs +12 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +107 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +10 -10
- package/paging/GridPagerSettings.js +8 -0
- package/paging/GridPagerSettings.mjs +28 -0
- package/rows/GridDetailRow.js +8 -0
- package/rows/GridDetailRow.mjs +20 -0
- package/rows/GridRow.js +8 -0
- package/rows/GridRow.mjs +51 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +180 -0
- package/Grid.d.ts +0 -267
- package/GridColumn.d.ts +0 -28
- package/GridNoRecords.d.ts +0 -40
- package/GridToolbar.d.ts +0 -54
- package/ScrollMode.d.ts +0 -5
- package/StatusBar.d.ts +0 -51
- package/VirtualScroll.d.ts +0 -51
- package/VirtualScrollFixed.d.ts +0 -53
- package/cells/GridCell.d.ts +0 -6
- package/cells/GridDetailCell.d.ts +0 -18
- package/cells/GridDetailHierarchyCell.d.ts +0 -10
- package/cells/GridEditCell.d.ts +0 -9
- package/cells/GridFilterCell.d.ts +0 -20
- package/cells/GridGroupCell.d.ts +0 -9
- package/cells/GridHierarchyCell.d.ts +0 -9
- package/cells/GridSelectionCell.d.ts +0 -9
- package/columnMenu/GridColumnMenuCheckboxFilter.d.ts +0 -122
- package/columnMenu/GridColumnMenuColumnsList.d.ts +0 -31
- package/columnMenu/GridColumnMenuFilter.d.ts +0 -165
- package/columnMenu/GridColumnMenuFilterCell.d.ts +0 -37
- package/columnMenu/GridColumnMenuFilterUI.d.ts +0 -12
- package/columnMenu/GridColumnMenuGroup.d.ts +0 -77
- package/columnMenu/GridColumnMenuItem.d.ts +0 -40
- package/columnMenu/GridColumnMenuItemContent.d.ts +0 -24
- package/columnMenu/GridColumnMenuItemGroup.d.ts +0 -20
- package/columnMenu/GridColumnMenuSort.d.ts +0 -89
- package/columnMenu/GridColumnMenuWrapper.d.ts +0 -49
- package/constants/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -38
- package/drag/ColumnResize.d.ts +0 -37
- package/drag/CommonDragLogic.d.ts +0 -44
- package/drag/GroupingIndicator.d.ts +0 -41
- package/filterCommon.d.ts +0 -73
- package/footer/Footer.d.ts +0 -38
- package/footer/FooterRow.d.ts +0 -25
- package/header/FilterRow.d.ts +0 -38
- package/header/GridHeaderCell.d.ts +0 -56
- package/header/GridHeaderSelectionCell.d.ts +0 -10
- package/header/GroupPanel.d.ts +0 -26
- package/header/Header.d.ts +0 -46
- package/header/HeaderRow.d.ts +0 -51
- package/interfaces/GridCellProps.d.ts +0 -73
- package/interfaces/GridCellsSettings.d.ts +0 -115
- package/interfaces/GridColumnMenuBaseProps.d.ts +0 -18
- package/interfaces/GridColumnMenuColumnProps.d.ts +0 -29
- package/interfaces/GridColumnMenuFilterBaseProps.d.ts +0 -28
- package/interfaces/GridColumnMenuFilterUIProps.d.ts +0 -35
- package/interfaces/GridColumnMenuGroupBaseProps.d.ts +0 -23
- package/interfaces/GridColumnMenuProps.d.ts +0 -12
- package/interfaces/GridColumnMenuSortBaseProps.d.ts +0 -24
- package/interfaces/GridColumnProps.d.ts +0 -92
- package/interfaces/GridDetailRowProps.d.ts +0 -17
- package/interfaces/GridFilterCellProps.d.ts +0 -68
- package/interfaces/GridFilterOperator.d.ts +0 -10
- package/interfaces/GridFilterOperators.d.ts +0 -53
- package/interfaces/GridFooterCellProps.d.ts +0 -26
- package/interfaces/GridGroupableSettings.d.ts +0 -17
- package/interfaces/GridHeaderCellProps.d.ts +0 -24
- package/interfaces/GridNoRecordsProps.d.ts +0 -13
- package/interfaces/GridProps.d.ts +0 -333
- package/interfaces/GridRowProps.d.ts +0 -67
- package/interfaces/GridRowType.d.ts +0 -13
- package/interfaces/GridSelectableSettings.d.ts +0 -22
- package/interfaces/GridSortSettings.d.ts +0 -17
- package/interfaces/GridToolbarProps.d.ts +0 -37
- package/interfaces/VirtualScrollInterface.d.ts +0 -31
- package/interfaces/events.d.ts +0 -232
- package/messages/index.d.ts +0 -199
- package/package-metadata.d.ts +0 -9
- package/paging/GridPagerSettings.d.ts +0 -71
- package/paging/Page.d.ts +0 -17
- package/rows/GridDetailRow.d.ts +0 -55
- package/rows/GridRow.d.ts +0 -15
- package/utils/index.d.ts +0 -73
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=(...e)=>Object.assign({allowUnsort:!0,mode:"single"},...e);exports.normalize=t;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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
|
+
const n = (...e) => Object.assign({ allowUnsort: !0, mode: "single" }, ...e);
|
|
10
|
+
export {
|
|
11
|
+
n as normalize
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r="grid.noRecords",t="grid.pagerInfo",a="grid.pagerFirstPage",o="grid.pagerPreviousPage",i="grid.pagerNextPage",l="grid.pagerLastPage",g="grid.pagerItemsPerPage",s="grid.pagerPage",n="grid.pagerPageSizeAriaLabel",p="grid.pagerOf",d="grid.pagerTotalPages",c="grid.groupPanelEmpty",u="grid.groupColumn",f="grid.ungroupColumn",P="grid.columnMenu",m="grid.filterClearButton",C="grid.filterSubmitButton",h="grid.filterTitle",I="grid.sortAscending",O="grid.sortDescending",A="grid.searchPlaceholder",b="grid.filterCheckAll",L="grid.filterChooseOperator",E="grid.filterSelectedItems",S="grid.sortAriaLabel",x="grid.filterAriaLabel",y="grid.groupPanelAriaLabel",q="grid.groupExpand",N="grid.groupCollapse",B="grid.detailExpand",G="grid.detailCollapse",M="grid.selectRow",T="grid.gridAriaLabel",w={[B]:"Expand detail row",[G]:"Collapse detail row",[q]:"Expand group",[N]:"Collapse Group",[r]:"No records available",[c]:"Drag a column header and drop it here to group by that column",[m]:"Clear",[C]:"Filter",[h]:"Filter",[I]:"Sort Ascending",[O]:"Sort Descending",[S]:"Sortable",[u]:"Group Column",[f]:"Ungroup Column",[P]:"Column menu",[g]:"items per page",[t]:"{0} - {1} of {2} items",[a]:"Go to the first page",[o]:"Go to the previous page",[i]:"Go to the next page",[l]:"Go to the last page",[s]:"Page",[n]:"Page size",[p]:"of",[d]:"{0}",[A]:"Search",[b]:"Check All",[L]:"Choose Operator",[E]:"selected items",[x]:"Filter",[y]:"Group panel",[T]:"Table",[M]:"Select Row","grid.filterEqOperator":"Is equal to","grid.filterNotEqOperator":"Is not equal to","grid.filterIsNullOperator":"Is null","grid.filterIsNotNullOperator":"Is not null","grid.filterIsEmptyOperator":"Is empty","grid.filterIsNotEmptyOperator":"Is not empty","grid.filterStartsWithOperator":"Starts with","grid.filterContainsOperator":"Contains","grid.filterNotContainsOperator":"Does not contain","grid.filterEndsWithOperator":"Ends with","grid.filterGteOperator":"Is greater than or equal to","grid.filterGtOperator":"Is greater than","grid.filterLteOperator":"Is less than or equal to","grid.filterLtOperator":"Is less than","grid.filterIsTrue":"Is true","grid.filterIsFalse":"Is false","grid.filterBooleanAll":"(All)","grid.filterAfterOrEqualOperator":"Is after or equal to","grid.filterAfterOperator":"Is after","grid.filterBeforeOperator":"Is before","grid.filterBeforeOrEqualOperator":"Is before or equal to","grid.filterAndLogic":"And","grid.filterOrLogic":"Or"};function v(F){const e=F.replace(/^pager\.([a-z])/,(D,R)=>"grid.pager"+R.toUpperCase());return{messageKey:e,defaultMessage:w[e]}}exports.columnMenu=P;exports.detailCollapse=G;exports.detailExpand=B;exports.filterAriaLabel=x;exports.filterCheckAll=b;exports.filterChooseOperator=L;exports.filterClearButton=m;exports.filterSelectedItems=E;exports.filterSubmitButton=C;exports.filterTitle=h;exports.gridAriaLabel=T;exports.groupCollapse=N;exports.groupColumn=u;exports.groupExpand=q;exports.groupPanelAriaLabel=y;exports.groupPanelEmpty=c;exports.messages=w;exports.noRecords=r;exports.pagerFirstPage=a;exports.pagerInfo=t;exports.pagerItemPerPage=g;exports.pagerLastPage=l;exports.pagerMessagesMap=v;exports.pagerNextPage=i;exports.pagerOf=p;exports.pagerPage=s;exports.pagerPageSizeAriaLabel=n;exports.pagerPreviousPage=o;exports.pagerTotalPages=d;exports.searchPlaceholder=A;exports.selectRow=M;exports.sortAriaLabel=S;exports.sortAscending=I;exports.sortDescending=O;exports.ungroupColumn=f;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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
|
+
const o = "grid.noRecords", a = "grid.pagerInfo", i = "grid.pagerFirstPage", l = "grid.pagerPreviousPage", g = "grid.pagerNextPage", s = "grid.pagerLastPage", n = "grid.pagerItemsPerPage", p = "grid.pagerPage", d = "grid.pagerPageSizeAriaLabel", c = "grid.pagerOf", u = "grid.pagerTotalPages", f = "grid.groupPanelEmpty", m = "grid.groupColumn", I = "grid.ungroupColumn", P = "grid.columnMenu", h = "grid.filterClearButton", O = "grid.filterSubmitButton", C = "grid.filterTitle", A = "grid.sortAscending", b = "grid.sortDescending", E = "grid.searchPlaceholder", L = "grid.filterCheckAll", S = "grid.filterChooseOperator", q = "grid.filterSelectedItems", x = "grid.sortAriaLabel", G = "grid.filterAriaLabel", N = "grid.groupPanelAriaLabel", y = "grid.groupExpand", w = "grid.groupCollapse", B = "grid.detailExpand", F = "grid.detailCollapse", T = "grid.selectRow", D = "grid.gridAriaLabel", M = {
|
|
10
|
+
[B]: "Expand detail row",
|
|
11
|
+
[F]: "Collapse detail row",
|
|
12
|
+
[y]: "Expand group",
|
|
13
|
+
[w]: "Collapse Group",
|
|
14
|
+
[o]: "No records available",
|
|
15
|
+
[f]: "Drag a column header and drop it here to group by that column",
|
|
16
|
+
[h]: "Clear",
|
|
17
|
+
[O]: "Filter",
|
|
18
|
+
[C]: "Filter",
|
|
19
|
+
[A]: "Sort Ascending",
|
|
20
|
+
[b]: "Sort Descending",
|
|
21
|
+
[x]: "Sortable",
|
|
22
|
+
[m]: "Group Column",
|
|
23
|
+
[I]: "Ungroup Column",
|
|
24
|
+
[P]: "Column menu",
|
|
25
|
+
[n]: "items per page",
|
|
26
|
+
[a]: "{0} - {1} of {2} items",
|
|
27
|
+
[i]: "Go to the first page",
|
|
28
|
+
[l]: "Go to the previous page",
|
|
29
|
+
[g]: "Go to the next page",
|
|
30
|
+
[s]: "Go to the last page",
|
|
31
|
+
[p]: "Page",
|
|
32
|
+
[d]: "Page size",
|
|
33
|
+
[c]: "of",
|
|
34
|
+
[u]: "{0}",
|
|
35
|
+
[E]: "Search",
|
|
36
|
+
[L]: "Check All",
|
|
37
|
+
[S]: "Choose Operator",
|
|
38
|
+
[q]: "selected items",
|
|
39
|
+
[G]: "Filter",
|
|
40
|
+
[N]: "Group panel",
|
|
41
|
+
[D]: "Table",
|
|
42
|
+
[T]: "Select Row",
|
|
43
|
+
"grid.filterEqOperator": "Is equal to",
|
|
44
|
+
"grid.filterNotEqOperator": "Is not equal to",
|
|
45
|
+
"grid.filterIsNullOperator": "Is null",
|
|
46
|
+
"grid.filterIsNotNullOperator": "Is not null",
|
|
47
|
+
"grid.filterIsEmptyOperator": "Is empty",
|
|
48
|
+
"grid.filterIsNotEmptyOperator": "Is not empty",
|
|
49
|
+
"grid.filterStartsWithOperator": "Starts with",
|
|
50
|
+
"grid.filterContainsOperator": "Contains",
|
|
51
|
+
"grid.filterNotContainsOperator": "Does not contain",
|
|
52
|
+
"grid.filterEndsWithOperator": "Ends with",
|
|
53
|
+
"grid.filterGteOperator": "Is greater than or equal to",
|
|
54
|
+
"grid.filterGtOperator": "Is greater than",
|
|
55
|
+
"grid.filterLteOperator": "Is less than or equal to",
|
|
56
|
+
"grid.filterLtOperator": "Is less than",
|
|
57
|
+
"grid.filterIsTrue": "Is true",
|
|
58
|
+
"grid.filterIsFalse": "Is false",
|
|
59
|
+
"grid.filterBooleanAll": "(All)",
|
|
60
|
+
"grid.filterAfterOrEqualOperator": "Is after or equal to",
|
|
61
|
+
"grid.filterAfterOperator": "Is after",
|
|
62
|
+
"grid.filterBeforeOperator": "Is before",
|
|
63
|
+
"grid.filterBeforeOrEqualOperator": "Is before or equal to",
|
|
64
|
+
"grid.filterAndLogic": "And",
|
|
65
|
+
"grid.filterOrLogic": "Or"
|
|
66
|
+
};
|
|
67
|
+
function v(r) {
|
|
68
|
+
const e = r.replace(/^pager\.([a-z])/, (R, t) => "grid.pager" + t.toUpperCase());
|
|
69
|
+
return { messageKey: e, defaultMessage: M[e] };
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
P as columnMenu,
|
|
73
|
+
F as detailCollapse,
|
|
74
|
+
B as detailExpand,
|
|
75
|
+
G as filterAriaLabel,
|
|
76
|
+
L as filterCheckAll,
|
|
77
|
+
S as filterChooseOperator,
|
|
78
|
+
h as filterClearButton,
|
|
79
|
+
q as filterSelectedItems,
|
|
80
|
+
O as filterSubmitButton,
|
|
81
|
+
C as filterTitle,
|
|
82
|
+
D as gridAriaLabel,
|
|
83
|
+
w as groupCollapse,
|
|
84
|
+
m as groupColumn,
|
|
85
|
+
y as groupExpand,
|
|
86
|
+
N as groupPanelAriaLabel,
|
|
87
|
+
f as groupPanelEmpty,
|
|
88
|
+
M as messages,
|
|
89
|
+
o as noRecords,
|
|
90
|
+
i as pagerFirstPage,
|
|
91
|
+
a as pagerInfo,
|
|
92
|
+
n as pagerItemPerPage,
|
|
93
|
+
s as pagerLastPage,
|
|
94
|
+
v as pagerMessagesMap,
|
|
95
|
+
g as pagerNextPage,
|
|
96
|
+
c as pagerOf,
|
|
97
|
+
p as pagerPage,
|
|
98
|
+
d as pagerPageSizeAriaLabel,
|
|
99
|
+
l as pagerPreviousPage,
|
|
100
|
+
u as pagerTotalPages,
|
|
101
|
+
E as searchPlaceholder,
|
|
102
|
+
T as selectRow,
|
|
103
|
+
x as sortAriaLabel,
|
|
104
|
+
A as sortAscending,
|
|
105
|
+
b as sortDescending,
|
|
106
|
+
I as ungroupColumn
|
|
107
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-grid",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709715456,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-develop.1",
|
|
4
4
|
"description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@progress/kendo-data-query": "^1.0.0",
|
|
26
26
|
"@progress/kendo-drawing": "^1.19.0",
|
|
27
27
|
"@progress/kendo-licensing": "^1.3.4",
|
|
28
|
-
"@progress/kendo-react-animation": "7.
|
|
29
|
-
"@progress/kendo-react-buttons": "7.
|
|
30
|
-
"@progress/kendo-react-common": "7.
|
|
31
|
-
"@progress/kendo-react-data-tools": "7.
|
|
32
|
-
"@progress/kendo-react-dateinputs": "7.
|
|
33
|
-
"@progress/kendo-react-dropdowns": "7.
|
|
34
|
-
"@progress/kendo-react-inputs": "7.
|
|
35
|
-
"@progress/kendo-react-intl": "7.
|
|
36
|
-
"@progress/kendo-react-popup": "7.
|
|
28
|
+
"@progress/kendo-react-animation": "7.3.0-develop.1",
|
|
29
|
+
"@progress/kendo-react-buttons": "7.3.0-develop.1",
|
|
30
|
+
"@progress/kendo-react-common": "7.3.0-develop.1",
|
|
31
|
+
"@progress/kendo-react-data-tools": "7.3.0-develop.1",
|
|
32
|
+
"@progress/kendo-react-dateinputs": "7.3.0-develop.1",
|
|
33
|
+
"@progress/kendo-react-dropdowns": "7.3.0-develop.1",
|
|
34
|
+
"@progress/kendo-react-inputs": "7.3.0-develop.1",
|
|
35
|
+
"@progress/kendo-react-intl": "7.3.0-develop.1",
|
|
36
|
+
"@progress/kendo-react-popup": "7.3.0-develop.1",
|
|
37
37
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
38
38
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
39
39
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=({buttonCount:e=10,info:r=!0,type:t="numeric",pageSizes:o=void 0,previousNext:i=!0,responsive:n=void 0,pageSizeValue:u=void 0})=>({buttonCount:e,info:r,pageSizes:o===!0?[5,10,20]:o||void 0,previousNext:i,responsive:n!==!1,type:t,pageSizeValue:u}),s=e=>l(e===!0?{}:e);exports.normalize=s;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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
|
+
const s = ({
|
|
10
|
+
buttonCount: e = 10,
|
|
11
|
+
info: r = !0,
|
|
12
|
+
type: i = "numeric",
|
|
13
|
+
pageSizes: o = void 0,
|
|
14
|
+
previousNext: t = !0,
|
|
15
|
+
responsive: n = void 0,
|
|
16
|
+
pageSizeValue: u = void 0
|
|
17
|
+
}) => ({
|
|
18
|
+
buttonCount: e,
|
|
19
|
+
info: r,
|
|
20
|
+
pageSizes: o === !0 ? [5, 10, 20] : o || void 0,
|
|
21
|
+
previousNext: t,
|
|
22
|
+
responsive: n !== !1,
|
|
23
|
+
type: i,
|
|
24
|
+
pageSizeValue: u
|
|
25
|
+
}), l = (e) => s(e === !0 ? {} : e);
|
|
26
|
+
export {
|
|
27
|
+
l as normalize
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(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 a=c(o);class l extends a.Component{render(){return null}}exports.GridDetailRow=l;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 e from "react";
|
|
10
|
+
class t extends e.Component {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
render() {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
t as GridDetailRow
|
|
20
|
+
};
|
package/rows/GridRow.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),p=require("@progress/kendo-react-common"),n=require("../constants/index.js");function a(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:()=>o[e]})}}return r.default=o,Object.freeze(r)}const s=a(i);class d extends s.Component{render(){const r=p.classNames("k-table-row",{"k-table-group-row k-grouping-row":this.props.rowType==="groupHeader","k-group-footer":this.props.rowType==="groupFooter","k-master-row":this.props.rowType!=="groupHeader"&&this.props.rowType!=="groupFooter","k-table-alt-row k-alt":this.props.rowType!=="groupHeader"&&this.props.rowType!=="groupFooter"&&this.props.isAltRow,"k-selected":this.props.isSelected,"k-grid-edit-row":this.props.isInEdit}),e=s.createElement("tr",{id:this.props.id,onClick:this.props.onClick,onDoubleClick:this.props.onDoubleClick,className:r,style:{height:this.props.rowHeight?this.props.rowHeight+"px":"",visibility:this.props.isHidden?"hidden":""},role:"row","aria-rowindex":this.props.ariaRowIndex,"absolute-row-index":this.props.absoluteRowIndex,key:this.props.absoluteRowIndex,[n.GRID_ROW_INDEX_ATTRIBUTE]:this.props.rowType==="data"?this.props.dataIndex:void 0},this.props.children);return this.props.render?this.props.render.call(void 0,e,this.props):e}}exports.GridRow=d;
|
package/rows/GridRow.mjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 r from "react";
|
|
10
|
+
import { classNames as s } from "@progress/kendo-react-common";
|
|
11
|
+
import { GRID_ROW_INDEX_ATTRIBUTE as p } from "../constants/index.mjs";
|
|
12
|
+
class a extends r.Component {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
render() {
|
|
17
|
+
const e = s(
|
|
18
|
+
"k-table-row",
|
|
19
|
+
{
|
|
20
|
+
"k-table-group-row k-grouping-row": this.props.rowType === "groupHeader",
|
|
21
|
+
"k-group-footer": this.props.rowType === "groupFooter",
|
|
22
|
+
"k-master-row": this.props.rowType !== "groupHeader" && this.props.rowType !== "groupFooter",
|
|
23
|
+
"k-table-alt-row k-alt": this.props.rowType !== "groupHeader" && this.props.rowType !== "groupFooter" && this.props.isAltRow,
|
|
24
|
+
"k-selected": this.props.isSelected,
|
|
25
|
+
"k-grid-edit-row": this.props.isInEdit
|
|
26
|
+
}
|
|
27
|
+
), o = /* @__PURE__ */ r.createElement(
|
|
28
|
+
"tr",
|
|
29
|
+
{
|
|
30
|
+
id: this.props.id,
|
|
31
|
+
onClick: this.props.onClick,
|
|
32
|
+
onDoubleClick: this.props.onDoubleClick,
|
|
33
|
+
className: e,
|
|
34
|
+
style: {
|
|
35
|
+
height: this.props.rowHeight ? this.props.rowHeight + "px" : "",
|
|
36
|
+
visibility: this.props.isHidden ? "hidden" : ""
|
|
37
|
+
},
|
|
38
|
+
role: "row",
|
|
39
|
+
"aria-rowindex": this.props.ariaRowIndex,
|
|
40
|
+
"absolute-row-index": this.props.absoluteRowIndex,
|
|
41
|
+
key: this.props.absoluteRowIndex,
|
|
42
|
+
[p]: this.props.rowType === "data" ? this.props.dataIndex : void 0
|
|
43
|
+
},
|
|
44
|
+
this.props.children
|
|
45
|
+
);
|
|
46
|
+
return this.props.render ? this.props.render.call(void 0, o, this.props) : o;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
a as GridRow
|
|
51
|
+
};
|
package/utils/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../GridColumn.js"),x=require("@progress/kendo-react-data-tools");function f(e,t){const a=(e||"").split(".");let o=t;return a.forEach(i=>{o=o?o[i]:void 0}),o}function g(e,t,a,o,i,l,n=0){let d=n;for(let r=0;r<t.length;r++){if(!i||t[r].value===void 0||t[r].items===void 0){e[e.length]={dataIndex:o.index,dataItem:t[r],rowType:"data",level:n,expanded:l===void 0||f(l,t[r])},o.index++;continue}d=Math.max(d,n+1);const s=l===void 0||f(l,t[r])===void 0||f(l,t[r]);e[e.length]={dataIndex:-1,dataItem:t[r],level:n,rowType:"groupHeader",expanded:s},s&&(d=Math.max(g(e,t[r].items,a,o,i,l,n+1),d)),(a==="always"||s&&a==="visible")&&(e[e.length]={dataIndex:-1,dataItem:t[r],rowType:"groupFooter",level:n,expanded:s})}return d}function u(e,t,a,o=0){let i=[];if(!e)return[];e&&e.length===void 0&&(e=[e]),e.forEach((n,d)=>{n=n.props?n.props:n;const r=t[d]||null,s=u(n.children,r&&r.children||[],a,o+1);i.push(Object.assign({depth:o},c.GridColumn.defaultProps,s.length?{cell:()=>null,filterCell:()=>null}:{},r?{width:r.width,orderIndex:r.orderIndex}:{},n,{id:n.id?n.id:x.tableKeyboardNavigationTools.generateNavigatableId(`${a.prevId++}`,a.idPrefix,"column"),declarationIndex:i.length,children:s,rowSpan:0,colSpan:0,isAccessible:!0,left:r&&Math.floor(r.left),right:r&&Math.floor(r.right)}))});const l=(n,d)=>n.orderIndex===d.orderIndex?n.declarationIndex-d.declarationIndex:(n.orderIndex||0)-(d.orderIndex||0);if(i.sort(l),o===0){let n=[];const d=(r,s)=>r.forEach(h=>{h.parentIndex=s,d(h.children,n.push(h)-1)});return d(i,-1),n}return i}function p(e,t,a,o){let i=[];Array.isArray(e)?i=e:e&&(i=e.data);const l=[];if(i.length>0){let n=i[0];if(t)for(let r=0;r<t.length;r++)n=n.items&&n.items[0];Object.getOwnPropertyNames(n).forEach(r=>{r!==a&&l.push(Object.assign({id:x.tableKeyboardNavigationTools.generateNavigatableId(`${o.prevId++}`,o.idPrefix,"column"),declarationIndex:-1,parentIndex:-1,depth:0,colSpan:0,rowSpan:0,index:0,left:0,right:0,rightBorder:!1,children:[],ariaColumnIndex:0,isAccessible:!0},c.GridColumn.defaultProps,{field:r}))})}return l}const v=(e,t)=>{let a=e[t.parentIndex];for(;a;){if(a.footerCell)return!0;a=e[a.parentIndex]}return!1},w=e=>e.filter(t=>v(e,t)?!1:!!t.footerCell||!(t.children&&t.children.length>0)),y=e=>e.width!==void 0?Math.floor(parseFloat(e.width.toString()))+"px":void 0,I=e=>(e.sort((t,a)=>t.declarationIndex-a.declarationIndex),e.map(t=>{const{declarationIndex:a,parentIndex:o,depth:i,colSpan:l,rowSpan:n,index:d,kFirst:r,children:s,...h}=t;return s.length?{children:I(s),...h}:h})),b=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),m=17895697,S=(e,t)=>{if(!(!e&&!t))return t?e?{...e,...t,select:{...e.select||{},...t.select||{}},hierarchy:{...e.hierarchy||{},...t.hierarchy||{}},group:{...e.group||{},...t.group||{}},edit:{...e.edit||{},...t.edit||{}}}:t:e};exports.autoGenerateColumns=p;exports.firefox=b;exports.firefoxMaxHeight=m;exports.flatData=g;exports.footerColumns=w;exports.getColumnWidth=y;exports.getNestedValue=f;exports.readColumns=u;exports.resolveCells=S;exports.sanitizeColumns=I;
|
package/utils/index.mjs
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 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 { GridColumn as l } from "../GridColumn.mjs";
|
|
10
|
+
import { tableKeyboardNavigationTools as x } from "@progress/kendo-react-data-tools";
|
|
11
|
+
function c(e, r) {
|
|
12
|
+
const a = (e || "").split(".");
|
|
13
|
+
let i = r;
|
|
14
|
+
return a.forEach((o) => {
|
|
15
|
+
i = i ? i[o] : void 0;
|
|
16
|
+
}), i;
|
|
17
|
+
}
|
|
18
|
+
function g(e, r, a, i, o, h, n = 0) {
|
|
19
|
+
let d = n;
|
|
20
|
+
for (let t = 0; t < r.length; t++) {
|
|
21
|
+
if (!o || r[t].value === void 0 || r[t].items === void 0) {
|
|
22
|
+
e[e.length] = {
|
|
23
|
+
dataIndex: i.index,
|
|
24
|
+
dataItem: r[t],
|
|
25
|
+
rowType: "data",
|
|
26
|
+
level: n,
|
|
27
|
+
expanded: h === void 0 || c(h, r[t])
|
|
28
|
+
}, i.index++;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
d = Math.max(d, n + 1);
|
|
32
|
+
const f = h === void 0 || c(h, r[t]) === void 0 || c(h, r[t]);
|
|
33
|
+
e[e.length] = {
|
|
34
|
+
dataIndex: -1,
|
|
35
|
+
dataItem: r[t],
|
|
36
|
+
level: n,
|
|
37
|
+
rowType: "groupHeader",
|
|
38
|
+
expanded: f
|
|
39
|
+
}, f && (d = Math.max(
|
|
40
|
+
g(e, r[t].items, a, i, o, h, n + 1),
|
|
41
|
+
d
|
|
42
|
+
)), (a === "always" || f && a === "visible") && (e[e.length] = {
|
|
43
|
+
dataIndex: -1,
|
|
44
|
+
dataItem: r[t],
|
|
45
|
+
rowType: "groupFooter",
|
|
46
|
+
level: n,
|
|
47
|
+
expanded: f
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return d;
|
|
51
|
+
}
|
|
52
|
+
function p(e, r, a, i = 0) {
|
|
53
|
+
let o = [];
|
|
54
|
+
if (!e)
|
|
55
|
+
return [];
|
|
56
|
+
e && e.length === void 0 && (e = [e]), e.forEach((n, d) => {
|
|
57
|
+
n = n.props ? n.props : n;
|
|
58
|
+
const t = r[d] || null, f = p(n.children, t && t.children || [], a, i + 1);
|
|
59
|
+
o.push(
|
|
60
|
+
Object.assign(
|
|
61
|
+
{ depth: i },
|
|
62
|
+
l.defaultProps,
|
|
63
|
+
f.length ? { cell: () => null, filterCell: () => null } : {},
|
|
64
|
+
t ? { width: t.width, orderIndex: t.orderIndex } : {},
|
|
65
|
+
n,
|
|
66
|
+
{
|
|
67
|
+
id: n.id ? n.id : x.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
|
|
68
|
+
declarationIndex: o.length,
|
|
69
|
+
children: f,
|
|
70
|
+
rowSpan: 0,
|
|
71
|
+
colSpan: 0,
|
|
72
|
+
isAccessible: !0,
|
|
73
|
+
left: t && Math.floor(t.left),
|
|
74
|
+
right: t && Math.floor(t.right)
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
});
|
|
79
|
+
const h = (n, d) => n.orderIndex === d.orderIndex ? n.declarationIndex - d.declarationIndex : (n.orderIndex || 0) - (d.orderIndex || 0);
|
|
80
|
+
if (o.sort(h), i === 0) {
|
|
81
|
+
let n = [];
|
|
82
|
+
const d = (t, f) => t.forEach((s) => {
|
|
83
|
+
s.parentIndex = f, d(s.children, n.push(s) - 1);
|
|
84
|
+
});
|
|
85
|
+
return d(o, -1), n;
|
|
86
|
+
}
|
|
87
|
+
return o;
|
|
88
|
+
}
|
|
89
|
+
function y(e, r, a, i) {
|
|
90
|
+
let o = [];
|
|
91
|
+
Array.isArray(e) ? o = e : e && (o = e.data);
|
|
92
|
+
const h = [];
|
|
93
|
+
if (o.length > 0) {
|
|
94
|
+
let n = o[0];
|
|
95
|
+
if (r)
|
|
96
|
+
for (let t = 0; t < r.length; t++)
|
|
97
|
+
n = n.items && n.items[0];
|
|
98
|
+
Object.getOwnPropertyNames(n).forEach((t) => {
|
|
99
|
+
t !== a && h.push(Object.assign(
|
|
100
|
+
{
|
|
101
|
+
id: x.generateNavigatableId(`${i.prevId++}`, i.idPrefix, "column"),
|
|
102
|
+
declarationIndex: -1,
|
|
103
|
+
parentIndex: -1,
|
|
104
|
+
depth: 0,
|
|
105
|
+
colSpan: 0,
|
|
106
|
+
rowSpan: 0,
|
|
107
|
+
index: 0,
|
|
108
|
+
left: 0,
|
|
109
|
+
right: 0,
|
|
110
|
+
rightBorder: !1,
|
|
111
|
+
children: [],
|
|
112
|
+
ariaColumnIndex: 0,
|
|
113
|
+
isAccessible: !0
|
|
114
|
+
},
|
|
115
|
+
l.defaultProps,
|
|
116
|
+
{ field: t }
|
|
117
|
+
));
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return h;
|
|
121
|
+
}
|
|
122
|
+
const I = (e, r) => {
|
|
123
|
+
let a = e[r.parentIndex];
|
|
124
|
+
for (; a; ) {
|
|
125
|
+
if (a.footerCell)
|
|
126
|
+
return !0;
|
|
127
|
+
a = e[a.parentIndex];
|
|
128
|
+
}
|
|
129
|
+
return !1;
|
|
130
|
+
}, b = (e) => e.filter((r) => I(e, r) ? !1 : !!r.footerCell || !(r.children && r.children.length > 0)), S = (e) => e.width !== void 0 ? Math.floor(parseFloat(e.width.toString())) + "px" : void 0, w = (e) => (e.sort((r, a) => r.declarationIndex - a.declarationIndex), e.map((r) => {
|
|
131
|
+
const {
|
|
132
|
+
declarationIndex: a,
|
|
133
|
+
parentIndex: i,
|
|
134
|
+
depth: o,
|
|
135
|
+
colSpan: h,
|
|
136
|
+
rowSpan: n,
|
|
137
|
+
index: d,
|
|
138
|
+
kFirst: t,
|
|
139
|
+
children: f,
|
|
140
|
+
...s
|
|
141
|
+
} = r;
|
|
142
|
+
return f.length ? {
|
|
143
|
+
children: w(f),
|
|
144
|
+
...s
|
|
145
|
+
} : s;
|
|
146
|
+
})), F = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), M = 17895697, m = (e, r) => {
|
|
147
|
+
if (!(!e && !r))
|
|
148
|
+
return r ? e ? {
|
|
149
|
+
...e,
|
|
150
|
+
...r,
|
|
151
|
+
select: {
|
|
152
|
+
...e.select || {},
|
|
153
|
+
...r.select || {}
|
|
154
|
+
},
|
|
155
|
+
hierarchy: {
|
|
156
|
+
...e.hierarchy || {},
|
|
157
|
+
...r.hierarchy || {}
|
|
158
|
+
},
|
|
159
|
+
group: {
|
|
160
|
+
...e.group || {},
|
|
161
|
+
...r.group || {}
|
|
162
|
+
},
|
|
163
|
+
edit: {
|
|
164
|
+
...e.edit || {},
|
|
165
|
+
...r.edit || {}
|
|
166
|
+
}
|
|
167
|
+
} : r : e;
|
|
168
|
+
};
|
|
169
|
+
export {
|
|
170
|
+
y as autoGenerateColumns,
|
|
171
|
+
F as firefox,
|
|
172
|
+
M as firefoxMaxHeight,
|
|
173
|
+
g as flatData,
|
|
174
|
+
b as footerColumns,
|
|
175
|
+
S as getColumnWidth,
|
|
176
|
+
c as getNestedValue,
|
|
177
|
+
p as readColumns,
|
|
178
|
+
m as resolveCells,
|
|
179
|
+
w as sanitizeColumns
|
|
180
|
+
};
|