@progress/kendo-react-grid 9.4.0-develop.8 → 9.4.0
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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +463 -374
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +339 -306
- package/GridSearchBox.js +8 -0
- package/GridSearchBox.mjs +35 -0
- package/GridState.js +1 -1
- package/GridState.mjs +79 -67
- package/NOTICE.txt +40 -51
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +24 -20
- package/cells/client/GridRowReorderContainer.js +1 -1
- package/cells/client/GridRowReorderContainer.mjs +15 -9
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +56 -55
- package/columnMenu/GridColumnMenuColumnsChooser.js +9 -0
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +82 -0
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +19 -19
- package/columnMenu/GridColumnMenuSort.js +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +1 -1
- package/components/GridLoader.js +9 -0
- package/components/GridLoader.mjs +22 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/header/client/GridHeaderCellContainer.js +1 -1
- package/header/client/GridHeaderCellContainer.mjs +20 -18
- package/index.d.mts +297 -36
- package/index.d.ts +297 -36
- package/index.js +1 -1
- package/index.mjs +76 -72
- package/messages/index.js +1 -1
- package/messages/index.mjs +38 -36
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -13
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +45 -45
- package/utils/index.js +1 -1
- package/utils/index.mjs +156 -146
- /package/{interfaces/GridSortSettings.js → sortCommon.js} +0 -0
- /package/{interfaces/GridSortSettings.mjs → sortCommon.mjs} +0 -0
package/index.mjs
CHANGED
|
@@ -9,87 +9,91 @@ import { Grid as o } from "./Grid.mjs";
|
|
|
9
9
|
import { GridColumn as m } from "./GridColumn.mjs";
|
|
10
10
|
import { GridColumnMenuWrapper as i } from "./columnMenu/GridColumnMenuWrapper.mjs";
|
|
11
11
|
import { GridColumnMenuGroup as p } from "./columnMenu/GridColumnMenuGroup.mjs";
|
|
12
|
-
import { GridColumnMenuSort as
|
|
13
|
-
import { GridColumnMenuFilter as
|
|
12
|
+
import { GridColumnMenuSort as a, isColumnMenuSortActive as x } from "./columnMenu/GridColumnMenuSort.mjs";
|
|
13
|
+
import { GridColumnMenuFilter as C, filterGroupByField as f, isColumnMenuFilterActive as G, rootFilterOrDefault as s } from "./columnMenu/GridColumnMenuFilter.mjs";
|
|
14
14
|
import { GridColumnMenuFilterUI as M } from "./columnMenu/GridColumnMenuFilterUI.mjs";
|
|
15
|
-
import { GridColumnMenuFilterCell as
|
|
16
|
-
import { GridColumnMenuCheckboxFilter as
|
|
15
|
+
import { GridColumnMenuFilterCell as I } from "./columnMenu/GridColumnMenuFilterCell.mjs";
|
|
16
|
+
import { GridColumnMenuCheckboxFilter as D } from "./columnMenu/GridColumnMenuCheckboxFilter.mjs";
|
|
17
17
|
import { GridColumnMenuColumnsList as F } from "./columnMenu/GridColumnMenuColumnsList.mjs";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
18
|
+
import { GridColumnMenuColumnsChooser as T } from "./columnMenu/GridColumnMenuColumnsChooser.mjs";
|
|
19
|
+
import { GridCell as _ } from "./cells/GridCell.mjs";
|
|
20
|
+
import { GridEditCell as N } from "./cells/GridEditCell.mjs";
|
|
21
|
+
import { GridGroupCell as B } from "./cells/GridGroupCell.mjs";
|
|
22
|
+
import { GridHierarchyCell as O } from "./cells/GridHierarchyCell.mjs";
|
|
23
|
+
import { GridFilterCell as b } from "./cells/GridFilterCell.mjs";
|
|
24
|
+
import { GridHeaderCell as y } from "./header/GridHeaderCell.mjs";
|
|
25
|
+
import { GridSelectionCell as H } from "./cells/GridSelectionCell.mjs";
|
|
26
|
+
import { GridDetailRow as W } from "./rows/GridDetailRow.mjs";
|
|
27
|
+
import { GridRow as k } from "./rows/GridRow.mjs";
|
|
28
|
+
import { GridToolbar as j } from "./GridToolbar.mjs";
|
|
29
|
+
import { GridNoRecords as z } from "./components/noRecords/GridNoRecords.mjs";
|
|
30
|
+
import { GridColumnMenuItem as Q } from "./columnMenu/GridColumnMenuItem.mjs";
|
|
31
|
+
import { GridColumnMenuItemContent as Z } from "./columnMenu/GridColumnMenuItemContent.mjs";
|
|
32
|
+
import { GridColumnMenuItemGroup as rr } from "./columnMenu/GridColumnMenuItemGroup.mjs";
|
|
33
|
+
import { GRID_COL_INDEX_ATTRIBUTE as or, GRID_PREVENT_SELECTION_ELEMENT as tr, GRID_ROW_INDEX_ATTRIBUTE as mr } from "./constants/index.mjs";
|
|
34
|
+
import { getSelectedState as ir, getSelectedStateFromKeyDown as nr, setSelectedState as pr } from "@progress/kendo-react-data-tools";
|
|
35
|
+
import { CommonDragLogic as ar } from "./drag/CommonDragLogic.mjs";
|
|
36
|
+
import { booleanFilterValues as dr, cellBoolDropdownChange as Cr, cellInputChange as fr, cellOperatorChange as Gr, operators as sr } from "./filterCommon.mjs";
|
|
37
|
+
import { messages as Mr, pagerFirstPage as cr, pagerInfo as Ir, pagerItemPerPage as Sr, pagerLastPage as Dr, pagerNextPage as Er, pagerPreviousPage as Fr } from "./messages/index.mjs";
|
|
38
|
+
import { StatusBar as Tr, getStatusData as Pr, leafColumns as _r } from "./StatusBar.mjs";
|
|
39
|
+
import { GridContextMenu as Nr, contextMenuItemsMap as Lr } from "./contextMenu/GridContextMenu.mjs";
|
|
40
|
+
import { GridContextMenuAnchorPart as Ar, GridContextMenuItemNames as Or } from "./contextMenu/enums.mjs";
|
|
41
|
+
import { GridSearchBox as br } from "./GridSearchBox.mjs";
|
|
40
42
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
or as GRID_COL_INDEX_ATTRIBUTE,
|
|
44
|
+
tr as GRID_PREVENT_SELECTION_ELEMENT,
|
|
45
|
+
mr as GRID_ROW_INDEX_ATTRIBUTE,
|
|
44
46
|
o as Grid,
|
|
45
|
-
|
|
47
|
+
_ as GridCell,
|
|
46
48
|
m as GridColumn,
|
|
47
|
-
|
|
49
|
+
D as GridColumnMenuCheckboxFilter,
|
|
50
|
+
T as GridColumnMenuColumnsChooser,
|
|
48
51
|
F as GridColumnMenuColumnsList,
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
C as GridColumnMenuFilter,
|
|
53
|
+
I as GridColumnMenuFilterCell,
|
|
51
54
|
M as GridColumnMenuFilterUI,
|
|
52
55
|
p as GridColumnMenuGroup,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
Q as GridColumnMenuItem,
|
|
57
|
+
Z as GridColumnMenuItemContent,
|
|
58
|
+
rr as GridColumnMenuItemGroup,
|
|
59
|
+
a as GridColumnMenuSort,
|
|
57
60
|
i as GridColumnMenuWrapper,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
ar as GridCommonDragLogic,
|
|
62
|
+
Nr as GridContextMenu,
|
|
63
|
+
Ar as GridContextMenuAnchorPart,
|
|
64
|
+
Or as GridContextMenuItemNames,
|
|
65
|
+
W as GridDetailRow,
|
|
66
|
+
N as GridEditCell,
|
|
67
|
+
b as GridFilterCell,
|
|
68
|
+
B as GridGroupCell,
|
|
69
|
+
y as GridHeaderCell,
|
|
70
|
+
O as GridHierarchyCell,
|
|
71
|
+
z as GridNoRecords,
|
|
72
|
+
k as GridRow,
|
|
73
|
+
br as GridSearchBox,
|
|
74
|
+
H as GridSelectionCell,
|
|
75
|
+
j as GridToolbar,
|
|
76
|
+
Tr as StatusBar,
|
|
77
|
+
dr as booleanFilterValues,
|
|
78
|
+
Cr as cellBoolDropdownChange,
|
|
79
|
+
fr as cellInputChange,
|
|
80
|
+
Gr as cellOperatorChange,
|
|
81
|
+
Lr as contextMenuItemsMap,
|
|
82
|
+
f as filterGroupByField,
|
|
83
|
+
ir as getSelectedState,
|
|
84
|
+
nr as getSelectedStateFromKeyDown,
|
|
85
|
+
Pr as getStatusData,
|
|
86
|
+
Mr as gridMessages,
|
|
83
87
|
G as isColumnMenuFilterActive,
|
|
84
88
|
x as isColumnMenuSortActive,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
_r as leafColumns,
|
|
90
|
+
sr as operators,
|
|
91
|
+
cr as pagerFirstPage,
|
|
92
|
+
Ir as pagerInfo,
|
|
93
|
+
Sr as pagerItemPerPage,
|
|
94
|
+
Dr as pagerLastPage,
|
|
95
|
+
Er as pagerNextPage,
|
|
96
|
+
Fr as pagerPreviousPage,
|
|
97
|
+
s as rootFilterOrDefault,
|
|
98
|
+
pr as setSelectedState
|
|
95
99
|
};
|
package/messages/index.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 e="grid.noRecords",r="grid.pagerInfo",t="grid.pagerFirstPage",o="grid.pagerPreviousPage",a="grid.pagerNextPage",l="grid.pagerLastPage",i="grid.pagerItemsPerPage",g="grid.pagerPage",s="grid.pagerPageSizeAriaLabel",n="grid.pagerOf",
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="grid.noRecords",r="grid.pagerInfo",t="grid.pagerFirstPage",o="grid.pagerPreviousPage",a="grid.pagerNextPage",l="grid.pagerLastPage",i="grid.pagerItemsPerPage",g="grid.pagerPage",s="grid.pagerPageSizeAriaLabel",n="grid.pagerOf",d="grid.pagerTotalPages",p="grid.groupPanelEmpty",c="grid.groupColumn",u="grid.ungroupColumn",f="grid.columnMenu",P="grid.filterApplyButton",A="grid.filterClearButton",h="grid.filterResetButton",m="grid.filterSubmitButton",b="grid.filterTitle",C="grid.sortAscending",I="grid.sortDescending",O="grid.searchPlaceholder",L="grid.searchboxPlaceholder",S="grid.filterCheckAll",E="grid.filterChooseOperator",R="grid.filterSelectAll",x="grid.filterSelectedItems",B="grid.sortAriaLabel",y="grid.filterAriaLabel",w="grid.groupPanelAriaLabel",q="grid.groupExpand",N="grid.groupCollapse",G="grid.detailExpand",T="grid.detailCollapse",D="grid.selectRow",F="grid.gridAriaLabel",v="grid.gridRowReorderAriaLabel",k={[G]:"Expand detail row",[T]:"Collapse detail row",[q]:"Expand group",[N]:"Collapse Group",[e]:"No records available",[p]:"Drag a column header and drop it here to group by that column",[P]:"Apply",[A]:"Clear",[h]:"Reset",[m]:"Filter",[b]:"Filter",[C]:"Sort Ascending",[I]:"Sort Descending",[B]:"Sortable",[c]:"Group Column",[u]:"Ungroup Column",[f]:"Column menu",[i]:"items per page",[r]:"{0} - {1} of {2} items",[t]:"Go to the first page",[o]:"Go to the previous page",[a]:"Go to the next page",[l]:"Go to the last page",[g]:"Page",[s]:"Page size",[n]:"of",[d]:"{0}",[O]:"Search",[L]:"Search...",[S]:"Check All",[E]:"Choose Operator",[x]:"selected items",[R]:"Select All",[y]:"Filter",[w]:"Group panel",[F]:"Table",[v]:"Drag row",[D]:"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"};exports.columnMenu=f;exports.detailCollapse=T;exports.detailExpand=G;exports.filterApplyButton=P;exports.filterAriaLabel=y;exports.filterCheckAll=S;exports.filterChooseOperator=E;exports.filterClearButton=A;exports.filterResetButton=h;exports.filterSelectAll=R;exports.filterSelectedItems=x;exports.filterSubmitButton=m;exports.filterTitle=b;exports.gridAriaLabel=F;exports.gridRowReorderAriaLabel=v;exports.groupCollapse=N;exports.groupColumn=c;exports.groupExpand=q;exports.groupPanelAriaLabel=w;exports.groupPanelEmpty=p;exports.messages=k;exports.noRecords=e;exports.pagerFirstPage=t;exports.pagerInfo=r;exports.pagerItemPerPage=i;exports.pagerLastPage=l;exports.pagerNextPage=a;exports.pagerOf=n;exports.pagerPage=g;exports.pagerPageSizeAriaLabel=s;exports.pagerPreviousPage=o;exports.pagerTotalPages=d;exports.searchPlaceholder=O;exports.searchboxPlaceholder=L;exports.selectRow=D;exports.sortAriaLabel=B;exports.sortAscending=C;exports.sortDescending=I;exports.ungroupColumn=u;
|
package/messages/index.mjs
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o = "grid.pagerPreviousPage",
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
8
|
+
const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o = "grid.pagerPreviousPage", a = "grid.pagerNextPage", i = "grid.pagerLastPage", l = "grid.pagerItemsPerPage", g = "grid.pagerPage", s = "grid.pagerPageSizeAriaLabel", n = "grid.pagerOf", d = "grid.pagerTotalPages", p = "grid.groupPanelEmpty", c = "grid.groupColumn", u = "grid.ungroupColumn", f = "grid.columnMenu", h = "grid.filterApplyButton", A = "grid.filterClearButton", P = "grid.filterResetButton", m = "grid.filterSubmitButton", I = "grid.filterTitle", O = "grid.sortAscending", C = "grid.sortDescending", b = "grid.searchPlaceholder", L = "grid.searchboxPlaceholder", S = "grid.filterCheckAll", E = "grid.filterChooseOperator", x = "grid.filterSelectAll", R = "grid.filterSelectedItems", B = "grid.sortAriaLabel", q = "grid.filterAriaLabel", w = "grid.groupPanelAriaLabel", y = "grid.groupExpand", G = "grid.groupCollapse", N = "grid.detailExpand", D = "grid.detailCollapse", F = "grid.selectRow", T = "grid.gridAriaLabel", v = "grid.gridRowReorderAriaLabel", k = {
|
|
9
|
+
[N]: "Expand detail row",
|
|
10
|
+
[D]: "Collapse detail row",
|
|
11
|
+
[y]: "Expand group",
|
|
12
|
+
[G]: "Collapse Group",
|
|
13
13
|
[e]: "No records available",
|
|
14
14
|
[p]: "Drag a column header and drop it here to group by that column",
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
15
|
+
[h]: "Apply",
|
|
16
|
+
[A]: "Clear",
|
|
17
|
+
[P]: "Reset",
|
|
18
|
+
[m]: "Filter",
|
|
19
|
+
[I]: "Filter",
|
|
20
|
+
[O]: "Sort Ascending",
|
|
21
21
|
[C]: "Sort Descending",
|
|
22
22
|
[B]: "Sortable",
|
|
23
23
|
[c]: "Group Column",
|
|
@@ -27,22 +27,23 @@ const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o =
|
|
|
27
27
|
[r]: "{0} - {1} of {2} items",
|
|
28
28
|
[t]: "Go to the first page",
|
|
29
29
|
[o]: "Go to the previous page",
|
|
30
|
-
[
|
|
31
|
-
[
|
|
30
|
+
[a]: "Go to the next page",
|
|
31
|
+
[i]: "Go to the last page",
|
|
32
32
|
[g]: "Page",
|
|
33
33
|
[s]: "Page size",
|
|
34
34
|
[n]: "of",
|
|
35
35
|
[d]: "{0}",
|
|
36
36
|
[b]: "Search",
|
|
37
|
-
[L]: "
|
|
37
|
+
[L]: "Search...",
|
|
38
|
+
[S]: "Check All",
|
|
38
39
|
[E]: "Choose Operator",
|
|
39
40
|
[R]: "selected items",
|
|
40
|
-
[
|
|
41
|
+
[x]: "Select All",
|
|
41
42
|
[q]: "Filter",
|
|
42
43
|
[w]: "Group panel",
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
44
|
+
[T]: "Table",
|
|
45
|
+
[v]: "Drag row",
|
|
46
|
+
[F]: "Select Row",
|
|
46
47
|
"grid.filterEqOperator": "Is equal to",
|
|
47
48
|
"grid.filterNotEqOperator": "Is not equal to",
|
|
48
49
|
"grid.filterIsNullOperator": "Is null",
|
|
@@ -69,41 +70,42 @@ const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o =
|
|
|
69
70
|
};
|
|
70
71
|
export {
|
|
71
72
|
f as columnMenu,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
D as detailCollapse,
|
|
74
|
+
N as detailExpand,
|
|
75
|
+
h as filterApplyButton,
|
|
75
76
|
q as filterAriaLabel,
|
|
76
|
-
|
|
77
|
+
S as filterCheckAll,
|
|
77
78
|
E as filterChooseOperator,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
A as filterClearButton,
|
|
80
|
+
P as filterResetButton,
|
|
81
|
+
x as filterSelectAll,
|
|
81
82
|
R as filterSelectedItems,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
m as filterSubmitButton,
|
|
84
|
+
I as filterTitle,
|
|
85
|
+
T as gridAriaLabel,
|
|
86
|
+
v as gridRowReorderAriaLabel,
|
|
87
|
+
G as groupCollapse,
|
|
87
88
|
c as groupColumn,
|
|
88
|
-
|
|
89
|
+
y as groupExpand,
|
|
89
90
|
w as groupPanelAriaLabel,
|
|
90
91
|
p as groupPanelEmpty,
|
|
91
|
-
|
|
92
|
+
k as messages,
|
|
92
93
|
e as noRecords,
|
|
93
94
|
t as pagerFirstPage,
|
|
94
95
|
r as pagerInfo,
|
|
95
96
|
l as pagerItemPerPage,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
i as pagerLastPage,
|
|
98
|
+
a as pagerNextPage,
|
|
98
99
|
n as pagerOf,
|
|
99
100
|
g as pagerPage,
|
|
100
101
|
s as pagerPageSizeAriaLabel,
|
|
101
102
|
o as pagerPreviousPage,
|
|
102
103
|
d as pagerTotalPages,
|
|
103
104
|
b as searchPlaceholder,
|
|
104
|
-
|
|
105
|
+
L as searchboxPlaceholder,
|
|
106
|
+
F as selectRow,
|
|
105
107
|
B as sortAriaLabel,
|
|
106
|
-
|
|
108
|
+
O as sortAscending,
|
|
107
109
|
C as sortDescending,
|
|
108
110
|
u as ungroupColumn
|
|
109
111
|
};
|
package/package-metadata.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 e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1739279959,version:"9.4.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "KendoReact",
|
|
11
11
|
productCode: "KENDOUIREACT",
|
|
12
12
|
productCodes: ["KENDOUIREACT"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "9.4.0
|
|
13
|
+
publishDate: 1739279959,
|
|
14
|
+
version: "9.4.0",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "9.4.0
|
|
3
|
+
"version": "9.4.0",
|
|
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",
|
|
@@ -27,17 +27,18 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-data-query": "^1.0.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
|
-
"@progress/kendo-licensing": "^1.
|
|
31
|
-
"@progress/kendo-react-animation": "9.4.0
|
|
32
|
-
"@progress/kendo-react-buttons": "9.4.0
|
|
33
|
-
"@progress/kendo-react-common": "9.4.0
|
|
34
|
-
"@progress/kendo-react-data-tools": "9.4.0
|
|
35
|
-
"@progress/kendo-react-dateinputs": "9.4.0
|
|
36
|
-
"@progress/kendo-react-
|
|
37
|
-
"@progress/kendo-react-
|
|
38
|
-
"@progress/kendo-react-
|
|
39
|
-
"@progress/kendo-react-
|
|
40
|
-
"@progress/kendo-react-
|
|
30
|
+
"@progress/kendo-licensing": "^1.4.0",
|
|
31
|
+
"@progress/kendo-react-animation": "9.4.0",
|
|
32
|
+
"@progress/kendo-react-buttons": "9.4.0",
|
|
33
|
+
"@progress/kendo-react-common": "9.4.0",
|
|
34
|
+
"@progress/kendo-react-data-tools": "9.4.0",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "9.4.0",
|
|
36
|
+
"@progress/kendo-react-indicators": "9.4.0",
|
|
37
|
+
"@progress/kendo-react-dropdowns": "9.4.0",
|
|
38
|
+
"@progress/kendo-react-inputs": "9.4.0",
|
|
39
|
+
"@progress/kendo-react-intl": "9.4.0",
|
|
40
|
+
"@progress/kendo-react-popup": "9.4.0",
|
|
41
|
+
"@progress/kendo-react-layout": "9.4.0",
|
|
41
42
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
42
43
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
43
44
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"package": {
|
|
84
85
|
"productName": "KendoReact",
|
|
85
86
|
"productCode": "KENDOUIREACT",
|
|
86
|
-
"publishDate":
|
|
87
|
+
"publishDate": 1739279959,
|
|
87
88
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
88
89
|
}
|
|
89
90
|
},
|
package/rows/GridRow.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),a=require("@progress/kendo-react-common"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),a=require("@progress/kendo-react-common"),h=require("../constants/index.js"),O=require("../GridClientWrapper.js");function S(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const c=S(v),G=e=>{var f;const r=c.useContext(O.GridContext),{reorderRowDropTargetRef:n,reorderRowDragTargetRef:t,activeDragRowDataItemRef:b}=r,{rowType:i,isAltRow:m,isInEdit:y,isSelected:D}=e,d=a.useUnstyled(),I=d&&d.uGrid?d.uGrid:a.uGrid,x=a.classNames(I.tr({selected:D,isHeader:i==="groupHeader",isFooter:i==="groupFooter",isMaster:i!=="groupHeader"&&i!=="groupFooter",isAltRow:m,isInEdit:y})),s=c.useRef(null),C=o=>{if(e.isRowReorderable&&b.current){const k=o.originalEvent.target;n.current=k.closest(".k-table-row")}},T=()=>{t.current&&e.isRowReorderable&&(t.current.style.userSelect="")};a.useDroppable(s,{onDragOver:C,onDrop:T});const u={onClick:o=>r.rowClick(o,e.dataItem),onDoubleClick:o=>r.rowDblClick(o,e.dataItem)},w={ref:s,id:e.id,...u,className:x,style:{height:e.rowHeight?e.rowHeight+"px":"",visibility:e.isHidden?"hidden":"",userSelect:(f=t==null?void 0:t.current)==null?void 0:f.style.userSelect},role:"row","aria-rowindex":e.ariaRowIndex,"absolute-row-index":e.absoluteRowIndex,[h.GRID_ROW_INDEX_ATTRIBUTE]:e.rowType==="data"?e.dataIndex:void 0},R=e.rowType||"data",l=e.rows;if(l&&l[R]){const o=l[R];return c.createElement(o,{key:e.absoluteRowIndex,...e,trProps:w},e.children)}const g=c.createElement("tr",{key:e.absoluteRowIndex,...w},e.children);return e.render?e.render.call(void 0,g,{...e,...u}):g};exports.GridRow=G;
|
package/rows/GridRow.mjs
CHANGED
|
@@ -7,61 +7,61 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
|
-
import { useUnstyled as
|
|
11
|
-
import { GRID_ROW_INDEX_ATTRIBUTE as
|
|
12
|
-
import { GridContext as
|
|
13
|
-
const
|
|
14
|
-
var
|
|
15
|
-
const a = n.useContext(
|
|
16
|
-
reorderRowDropTargetRef:
|
|
17
|
-
reorderRowDragTargetRef:
|
|
18
|
-
activeDragRowDataItemRef:
|
|
19
|
-
} = a, { rowType: o, isAltRow:
|
|
20
|
-
|
|
21
|
-
selected:
|
|
10
|
+
import { useUnstyled as h, uGrid as v, classNames as C, useDroppable as T } from "@progress/kendo-react-common";
|
|
11
|
+
import { GRID_ROW_INDEX_ATTRIBUTE as k } from "../constants/index.mjs";
|
|
12
|
+
import { GridContext as E } from "../GridClientWrapper.mjs";
|
|
13
|
+
const N = (e) => {
|
|
14
|
+
var R;
|
|
15
|
+
const a = n.useContext(E), {
|
|
16
|
+
reorderRowDropTargetRef: g,
|
|
17
|
+
reorderRowDragTargetRef: r,
|
|
18
|
+
activeDragRowDataItemRef: m
|
|
19
|
+
} = a, { rowType: o, isAltRow: D, isInEdit: f, isSelected: I } = e, i = h(), x = i && i.uGrid ? i.uGrid : v, y = C(
|
|
20
|
+
x.tr({
|
|
21
|
+
selected: I,
|
|
22
22
|
isHeader: o === "groupHeader",
|
|
23
23
|
isFooter: o === "groupFooter",
|
|
24
24
|
isMaster: o !== "groupHeader" && o !== "groupFooter",
|
|
25
|
-
isAltRow:
|
|
26
|
-
isInEdit:
|
|
25
|
+
isAltRow: D,
|
|
26
|
+
isInEdit: f
|
|
27
27
|
})
|
|
28
|
-
),
|
|
29
|
-
|
|
30
|
-
onDragOver: (
|
|
31
|
-
if (e.isRowReorderable &&
|
|
32
|
-
const
|
|
33
|
-
|
|
28
|
+
), l = n.useRef(null);
|
|
29
|
+
T(l, {
|
|
30
|
+
onDragOver: (t) => {
|
|
31
|
+
if (e.isRowReorderable && m.current) {
|
|
32
|
+
const b = t.originalEvent.target;
|
|
33
|
+
g.current = b.closest(".k-table-row");
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
onDrop: () => {
|
|
37
|
-
|
|
37
|
+
r.current && e.isRowReorderable && (r.current.style.userSelect = "");
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const
|
|
41
|
-
onClick: (
|
|
42
|
-
onDoubleClick: (
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
visibility: e.isHidden ? "hidden" : "",
|
|
53
|
-
userSelect: (s = t == null ? void 0 : t.current) == null ? void 0 : s.style.userSelect
|
|
54
|
-
},
|
|
55
|
-
role: "row",
|
|
56
|
-
"aria-rowindex": e.ariaRowIndex,
|
|
57
|
-
"absolute-row-index": e.absoluteRowIndex,
|
|
58
|
-
key: e.absoluteRowIndex,
|
|
59
|
-
[y]: e.rowType === "data" ? e.dataIndex : void 0
|
|
40
|
+
const c = {
|
|
41
|
+
onClick: (t) => a.rowClick(t, e.dataItem),
|
|
42
|
+
onDoubleClick: (t) => a.rowDblClick(t, e.dataItem)
|
|
43
|
+
}, s = {
|
|
44
|
+
ref: l,
|
|
45
|
+
id: e.id,
|
|
46
|
+
...c,
|
|
47
|
+
className: y,
|
|
48
|
+
style: {
|
|
49
|
+
height: e.rowHeight ? e.rowHeight + "px" : "",
|
|
50
|
+
visibility: e.isHidden ? "hidden" : "",
|
|
51
|
+
userSelect: (R = r == null ? void 0 : r.current) == null ? void 0 : R.style.userSelect
|
|
60
52
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
role: "row",
|
|
54
|
+
"aria-rowindex": e.ariaRowIndex,
|
|
55
|
+
"absolute-row-index": e.absoluteRowIndex,
|
|
56
|
+
[k]: e.rowType === "data" ? e.dataIndex : void 0
|
|
57
|
+
}, u = e.rowType || "data", d = e.rows;
|
|
58
|
+
if (d && d[u]) {
|
|
59
|
+
const t = d[u];
|
|
60
|
+
return /* @__PURE__ */ n.createElement(t, { key: e.absoluteRowIndex, ...e, trProps: s }, e.children);
|
|
61
|
+
}
|
|
62
|
+
const w = /* @__PURE__ */ n.createElement("tr", { key: e.absoluteRowIndex, ...s }, e.children);
|
|
63
|
+
return e.render ? e.render.call(void 0, w, { ...e, ...c }) : w;
|
|
64
64
|
};
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
N as GridRow
|
|
67
67
|
};
|
package/utils/index.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 v=require("../GridColumn.js"),y=require("@progress/kendo-data-query"),S=require("@progress/kendo-react-data-tools"),T=require("./_serverModule.js"),G=require("./_clientModule.js"),g=require("../contextMenu/enums.js");function m(e,t){const a=(e!=null?e:"").split(".");let i=t;return a.forEach(o=>{i=i?i[o]:void 0}),i}function b(e,t,a,i,o,s,n,r,d,l,f=0,c){var M;let C=f;for(let h=0;h<t.length;h++){let I;if(!o||t[h].value===void 0||t[h].items===void 0){e[e.length]={dataIndex:i.index,dataItem:t[h],rowType:"data",level:f,group:c,expanded:(M=s?m(s,t[h]):l&&!!(n!=null&&n[y.getter(l)(t[h])]))!=null?M:!1},i.index++;continue}else{let u;c!=null&&c.parents?u=[{field:c.field,value:c.value},...c.parents]:c?u=[c]:u=[],I={field:t[h].field,value:t[h].value,parents:u}}C=Math.max(C,f+1);let x=!1;if(s)x=m(s,t[h])!==!1;else{const u=S.findGroupExpand(r||[],I);u?x=u.expanded!==!1:x=d!==!1}e[e.length]={dataIndex:-1,dataItem:t[h],level:f,group:I,rowType:"groupHeader",expanded:x},x&&(I.expanded=x,C=Math.max(b(e,t[h].items,a,i,o,s,n,r,d,l,f+1,I),C)),(a==="always"||x&&a==="visible")&&(e[e.length]={dataIndex:-1,dataItem:t[h],rowType:"groupFooter",level:f,expanded:x})}return C}const k=(e,t)=>typeof e.colSpan=="function"?e.colSpan({dataItem:t,column:e}):e.colSpan||1;function B(e,t){const a=[[]];let i=0;for(let n=e.length-1;n>=0;n--)i=Math.max(i,e[n].depth),e[n].headerColSpan=e[n].headerColSpan||1,e[n].children.length>0&&(e[n].headerColSpan=e[n].children.reduce((r,d)=>d.hidden?r:r+d.headerColSpan,0));const o=[];let s=1;return e.forEach((n,r)=>{a[n.depth]=a[n.depth]||[];let d=!1;a[n.depth].length===0&&(s<=1?s=1+(n.children.length>0?0:i-n.depth):(s--,d=!0)),n.rowSpan=1+(n.children.length>0?0:i-n.depth),n.kFirst=d,n.index=a[n.depth].length,a[n.depth].push(r),n.ariaColumnIndex=o[n.depth]?o[n.depth]+1:1;for(let l=n.depth;l<n.depth+n.rowSpan;l++)o[l]=(o[l]||0)+n.headerColSpan}),S.updateLeft(a,e,t),S.updateRight(a,e,t),a}function w(e,t,a,i=0){const o=[];if(!e)return[];e&&e.length===void 0&&(e=[e]),e.filter(r=>r&&r.props?!r.props.hidden:!r.hidden).forEach((r,d)=>{r=r.props?r.props:r;const l=t[d]||null,f=w(r.children,l&&l.children||[],a,i+1);o.push(Object.assign({depth:i},v.gridDefaultProps,f.length?{cell:()=>null,filterCell:()=>null}:{},l?{width:l.width,orderIndex:l.orderIndex}:{},r,{id:r.id?r.id:S.tableKeyboardNavigationTools.generateNavigatableId(`${a.prevId++}`,a.idPrefix,"column"),declarationIndex:o.length,children:f,headerColSpan:r.headerColSpan,rowSpan:0,columnType:r.columnType||"data",colSpan:r.colSpan||1,isAccessible:!0,left:r.lockedColumn?l&&Math.floor(l.left):null,right:r.lockedColumn?l&&Math.floor(l.right):null,rowSpannable:r.rowSpannable}))});const n=(r,d)=>r.orderIndex===d.orderIndex?r.declarationIndex-d.declarationIndex:(r.orderIndex||0)-(d.orderIndex||0);if(o.sort(n),i===0){const r=[],d=(l,f)=>l.forEach(c=>{c.parentIndex=f,d(c.children,r.push(c)-1)});return d(o,-1),r}return o}const N=e=>Array.isArray(e)?e:e?e.data:[];function E(e,t,a,i){const o=N(e),s=[];if(o.length>0){let n=o[0];if(t)for(let d=0;d<t.length;d++)n=n.items&&n.items[0];Object.getOwnPropertyNames(n).forEach(d=>{d!==a.column&&s.push(Object.assign({id:S.tableKeyboardNavigationTools.generateNavigatableId(`${i.prevId++}`,i.idPrefix,"column"),declarationIndex:-1,parentIndex:-1,depth:0,colSpan:0,headerColSpan:0,rowSpan:0,index:0,columnType:"data",left:0,right:0,rightBorder:!1,children:[],ariaColumnIndex:0,isAccessible:!0},v.gridDefaultProps,{field:d}))})}return s}const R=(e,t)=>{let a=e[t.parentIndex];for(;a;){if(a.footerCell)return!0;a=e[a.parentIndex]}return!1},j=e=>e.filter(t=>R(e,t)?!1:!!t.footerCell||!(t.children&&t.children.length>0)),q=e=>e.width!==void 0?Math.floor(parseFloat(e.width.toString()))+"px":void 0,O=(e,t)=>t&&t.filter(a=>a.field===e).length>0,D=e=>(e.sort((t,a)=>t.declarationIndex-a.declarationIndex),e.map(t=>{const{declarationIndex:a,parentIndex:i,depth:o,headerColSpan:s,rowSpan:n,index:r,kFirst:d,children:l,...f}=t;return l.length?{children:D(l),...f}:f})),A=e=>{const{filterCell:t,headerCell:a,footerCell:i,cells:o,cell:s,rowSpannable:n,...r}=e;return e.children.length?{...r,children:e.children.map(A)}:r},F=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),H=17895697,p=e=>{let t=[];return e.sortable&&(t=t.concat([g.GridContextMenuItemNames.sortAsc,g.GridContextMenuItemNames.sortDesc])),t},$=e=>{let t=[];return e.clipboard&&(t=t.concat([g.GridContextMenuItemNames.copySelection,g.GridContextMenuItemNames.copySelectionNoHeaders,g.GridContextMenuItemNames.paste])),e.editable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.create,g.GridContextMenuItemNames.edit,g.GridContextMenuItemNames.delete])),e.selectable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.select])),e.rowReorderable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.reorderRow])),t},z=(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},L=e=>{var a;return typeof e=="object"?(a=e.enabled)!=null?a:!0:e!=null?e:!1},V=()=>T.ServerFragment===G.ClientFragment,W=e=>!!(e&&e.$$typeof===Symbol.for("react.client.reference")),_=e=>({id:e.id,ariaColumnIndex:e.ariaColumnIndex,isSelected:e.isSelected,isInEdit:e.isInEdit,isSorted:e.isSorted,isAlt:e.isAlt,expanded:e.expanded,className:e.className,style:e.style,field:e.field,dataItem:e.dataItem,format:e.format,colSpan:e.colSpan,dataIndex:e.dataIndex,columnIndex:e.columnIndex,columnsCount:e.columnsCount,rowType:e.rowType,level:e.level,editor:e.editor,render:e.render,locked:e.locked,isRtl:e.isRtl,rowDataIndex:e.rowDataIndex,columnPosition:e.columnPosition,group:e.group}),K=e=>{var i,o;const t=typeof e=="object"?(i=e.enabled)!=null?i:!0:e!=null?e:!1,a=typeof e=="object"?(o=e.valueGetter)!=null?o:(s,n)=>y.getter(n)(s):(s,n)=>y.getter(n)(s);return{enabled:t,valueGetter:a}};exports.autoGenerateColumns=E;exports.clientColumn=A;exports.firefox=F;exports.firefoxMaxHeight=H;exports.flatData=b;exports.footerColumns=j;exports.getClientCellProps=_;exports.getColSpan=k;exports.getColumnWidth=q;exports.getDataAsArray=N;exports.getDefaultBodyContextMenuItems=$;exports.getDefaultHeadContextMenuItems=p;exports.getNestedValue=m;exports.getRowSpanOptions=K;exports.isClient=V;exports.isClientReference=W;exports.isRowReorderEnabled=L;exports.isSorted=O;exports.mapColumns=B;exports.readColumns=w;exports.resolveCells=z;exports.sanitizeColumns=D;
|