@progress/kendo-react-grid 9.3.1 → 9.4.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 +1 -1
- package/Grid.mjs +80 -1042
- package/GridClientContextReader.js +8 -0
- package/GridClientContextReader.mjs +30 -0
- package/GridClientWrapper.js +8 -0
- package/GridClientWrapper.mjs +759 -0
- package/GridComponent.js +8 -0
- package/GridComponent.mjs +584 -0
- package/GridState.js +8 -0
- package/GridState.mjs +93 -0
- package/GridWatermarkOverlay.js +8 -0
- package/GridWatermarkOverlay.mjs +15 -0
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +24 -24
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +23 -33
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +11 -18
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +5 -5
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +22 -130
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +60 -95
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +22 -61
- package/cells/GridRowReorderCell.js +8 -0
- package/cells/GridRowReorderCell.mjs +42 -0
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +17 -35
- package/cells/client/DetailCellContainer.js +8 -0
- package/cells/client/DetailCellContainer.mjs +26 -0
- package/cells/client/GridCellContainer.js +8 -0
- package/cells/client/GridCellContainer.mjs +68 -0
- package/cells/client/GridEditCellContainer.js +8 -0
- package/cells/client/GridEditCellContainer.mjs +60 -0
- package/cells/client/GridEditCellEditor.js +8 -0
- package/cells/client/GridEditCellEditor.mjs +81 -0
- package/cells/client/GridGroupCellContainer.js +8 -0
- package/cells/client/GridGroupCellContainer.mjs +87 -0
- package/cells/client/GridGroupCellToggle.js +8 -0
- package/cells/client/GridGroupCellToggle.mjs +52 -0
- package/cells/client/GridHierarchyCellContainer.js +8 -0
- package/cells/client/GridHierarchyCellContainer.mjs +63 -0
- package/cells/client/GridHierarchyCellToggle.js +8 -0
- package/cells/client/GridHierarchyCellToggle.mjs +43 -0
- package/cells/client/GridRowReorderContainer.js +8 -0
- package/cells/client/GridRowReorderContainer.mjs +24 -0
- package/cells/client/GridSelectionCellContainer.js +8 -0
- package/cells/client/GridSelectionCellContainer.mjs +60 -0
- package/cells/client/GridSelectionCellInput.js +8 -0
- package/cells/client/GridSelectionCellInput.mjs +43 -0
- package/columnMenu/GridColumnMenuSort.js +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +23 -34
- package/components/GridContainerElementContainer.js +8 -0
- package/components/GridContainerElementContainer.mjs +21 -0
- package/components/GridCustomCellClientContainer.js +8 -0
- package/components/GridCustomCellClientContainer.mjs +28 -0
- package/components/GridDragClue.js +8 -0
- package/components/GridDragClue.mjs +18 -0
- package/components/GridDraggableRowsContainer.js +8 -0
- package/components/GridDraggableRowsContainer.mjs +127 -0
- package/components/GridDropClue.js +8 -0
- package/components/GridDropClue.mjs +18 -0
- package/components/GridElementContainer.js +8 -0
- package/components/GridElementContainer.mjs +22 -0
- package/components/PagerContainer.js +8 -0
- package/components/PagerContainer.mjs +23 -0
- package/components/VirtualScrollHeightContainer.js +8 -0
- package/components/VirtualScrollHeightContainer.mjs +17 -0
- package/components/colGroup/GridColGroup.js +8 -0
- package/components/colGroup/GridColGroup.mjs +25 -0
- package/components/icons/reorder-row-svg.js +8 -0
- package/components/icons/reorder-row-svg.mjs +14 -0
- package/{GridNoRecords.js → components/noRecords/GridNoRecords.js} +1 -1
- package/{GridNoRecords.mjs → components/noRecords/GridNoRecords.mjs} +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +8 -0
- package/components/noRecords/GridNoRecordsContainer.mjs +30 -0
- package/components/table/GridTable.js +8 -0
- package/components/table/GridTable.mjs +28 -0
- package/components/table/GridTableBody.js +8 -0
- package/components/table/GridTableBody.mjs +21 -0
- package/components/table/GridTableScrollable.js +8 -0
- package/components/table/GridTableScrollable.mjs +37 -0
- package/components/utils.js +8 -0
- package/components/utils.mjs +26 -0
- package/contextMenu/GridContextMenu.js +8 -0
- package/contextMenu/GridContextMenu.mjs +191 -0
- package/contextMenu/enums.js +8 -0
- package/contextMenu/enums.mjs +13 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +22 -21
- package/footer/FooterCell.js +8 -0
- package/footer/FooterCell.mjs +43 -0
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +10 -39
- package/footer/client/FooterCellContainer.js +8 -0
- package/footer/client/FooterCellContainer.mjs +26 -0
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +58 -54
- package/header/GridHeaderCell.js +1 -1
- package/header/GridHeaderCell.mjs +11 -11
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +10 -9
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +36 -32
- package/header/Header.js +1 -1
- package/header/Header.mjs +35 -33
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +97 -125
- package/header/client/GridFilterCellContainer.js +8 -0
- package/header/client/GridFilterCellContainer.mjs +38 -0
- package/header/client/GridFilterCellElementContainer.js +8 -0
- package/header/client/GridFilterCellElementContainer.mjs +21 -0
- package/header/client/GridHeaderCellContainer.js +8 -0
- package/header/client/GridHeaderCellContainer.mjs +54 -0
- package/header/client/GridHeaderCellElementContainer.js +8 -0
- package/header/client/GridHeaderCellElementContainer.mjs +28 -0
- package/header/client/GridHeaderRowContainer.js +8 -0
- package/header/client/GridHeaderRowContainer.mjs +35 -0
- package/header/client/GridHeaderRowReorderCell.js +8 -0
- package/header/client/GridHeaderRowReorderCell.mjs +13 -0
- package/header/client/HeaderCellResizer.js +8 -0
- package/header/client/HeaderCellResizer.mjs +25 -0
- package/header/client/HeaderRowDraggable.js +8 -0
- package/header/client/HeaderRowDraggable.mjs +30 -0
- package/index.d.mts +543 -24
- package/index.d.ts +543 -24
- package/index.js +1 -1
- package/index.mjs +58 -52
- package/interfaces/GridSortSettings.js +1 -1
- package/interfaces/GridSortSettings.mjs +18 -2
- package/messages/index.js +1 -1
- package/messages/index.mjs +76 -82
- package/messages/messagesMap.js +8 -0
- package/messages/messagesMap.mjs +19 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +42 -20
- package/utils/_clientModule.js +8 -0
- package/utils/_clientModule.mjs +13 -0
- package/utils/_serverModule.js +8 -0
- package/utils/_serverModule.mjs +13 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +213 -101
package/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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./Grid.js"),C=require("./GridColumn.js"),a=require("./columnMenu/GridColumnMenuWrapper.js"),s=require("./columnMenu/GridColumnMenuGroup.js"),l=require("./columnMenu/GridColumnMenuSort.js"),t=require("./columnMenu/GridColumnMenuFilter.js"),m=require("./columnMenu/GridColumnMenuFilterUI.js"),c=require("./columnMenu/GridColumnMenuFilterCell.js"),M=require("./columnMenu/GridColumnMenuCheckboxFilter.js"),g=require("./columnMenu/GridColumnMenuColumnsList.js"),p=require("./cells/GridCell.js"),I=require("./cells/GridEditCell.js"),q=require("./cells/GridGroupCell.js"),S=require("./cells/GridHierarchyCell.js"),F=require("./cells/GridFilterCell.js"),D=require("./header/GridHeaderCell.js"),E=require("./cells/GridSelectionCell.js"),R=require("./rows/GridDetailRow.js"),T=require("./rows/GridRow.js"),P=require("./GridToolbar.js"),_=require("./components/noRecords/GridNoRecords.js"),N=require("./columnMenu/GridColumnMenuItem.js"),b=require("./columnMenu/GridColumnMenuItemContent.js"),x=require("./columnMenu/GridColumnMenuItemGroup.js"),o=require("./constants/index.js"),i=require("@progress/kendo-react-data-tools"),h=require("./drag/CommonDragLogic.js"),r=require("./filterCommon.js"),e=require("./messages/index.js"),n=require("./StatusBar.js"),u=require("./contextMenu/GridContextMenu.js"),d=require("./contextMenu/enums.js");exports.Grid=G.Grid;exports.GridColumn=C.GridColumn;exports.GridColumnMenuWrapper=a.GridColumnMenuWrapper;exports.GridColumnMenuGroup=s.GridColumnMenuGroup;exports.GridColumnMenuSort=l.GridColumnMenuSort;exports.isColumnMenuSortActive=l.isColumnMenuSortActive;exports.GridColumnMenuFilter=t.GridColumnMenuFilter;exports.filterGroupByField=t.filterGroupByField;exports.isColumnMenuFilterActive=t.isColumnMenuFilterActive;exports.rootFilterOrDefault=t.rootFilterOrDefault;exports.GridColumnMenuFilterUI=m.GridColumnMenuFilterUI;exports.GridColumnMenuFilterCell=c.GridColumnMenuFilterCell;exports.GridColumnMenuCheckboxFilter=M.GridColumnMenuCheckboxFilter;exports.GridColumnMenuColumnsList=g.GridColumnMenuColumnsList;exports.GridCell=p.GridCell;exports.GridEditCell=I.GridEditCell;exports.GridGroupCell=q.GridGroupCell;exports.GridHierarchyCell=S.GridHierarchyCell;exports.GridFilterCell=F.GridFilterCell;exports.GridHeaderCell=D.GridHeaderCell;exports.GridSelectionCell=E.GridSelectionCell;exports.GridDetailRow=R.GridDetailRow;exports.GridRow=T.GridRow;exports.GridToolbar=P.GridToolbar;exports.GridNoRecords=_.GridNoRecords;exports.GridColumnMenuItem=N.GridColumnMenuItem;exports.GridColumnMenuItemContent=b.GridColumnMenuItemContent;exports.GridColumnMenuItemGroup=x.GridColumnMenuItemGroup;exports.GRID_COL_INDEX_ATTRIBUTE=o.GRID_COL_INDEX_ATTRIBUTE;exports.GRID_PREVENT_SELECTION_ELEMENT=o.GRID_PREVENT_SELECTION_ELEMENT;exports.GRID_ROW_INDEX_ATTRIBUTE=o.GRID_ROW_INDEX_ATTRIBUTE;Object.defineProperty(exports,"getSelectedState",{enumerable:!0,get:()=>i.getSelectedState});Object.defineProperty(exports,"getSelectedStateFromKeyDown",{enumerable:!0,get:()=>i.getSelectedStateFromKeyDown});Object.defineProperty(exports,"setSelectedState",{enumerable:!0,get:()=>i.setSelectedState});exports.GridCommonDragLogic=h.CommonDragLogic;exports.booleanFilterValues=r.booleanFilterValues;exports.cellBoolDropdownChange=r.cellBoolDropdownChange;exports.cellInputChange=r.cellInputChange;exports.cellOperatorChange=r.cellOperatorChange;exports.operators=r.operators;exports.gridMessages=e.messages;exports.pagerFirstPage=e.pagerFirstPage;exports.pagerInfo=e.pagerInfo;exports.pagerItemPerPage=e.pagerItemPerPage;exports.pagerLastPage=e.pagerLastPage;exports.pagerNextPage=e.pagerNextPage;exports.pagerPreviousPage=e.pagerPreviousPage;exports.StatusBar=n.StatusBar;exports.getStatusData=n.getStatusData;exports.leafColumns=n.leafColumns;exports.GridContextMenu=u.GridContextMenu;exports.contextMenuItemsMap=u.contextMenuItemsMap;exports.GridContextMenuAnchorPart=d.GridContextMenuAnchorPart;exports.GridContextMenuItemNames=d.GridContextMenuItemNames;
|
package/index.mjs
CHANGED
|
@@ -7,84 +7,90 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { Grid as o } from "./Grid.mjs";
|
|
10
|
-
import { GridColumn as
|
|
10
|
+
import { GridColumn as m } from "./GridColumn.mjs";
|
|
11
11
|
import { GridColumnMenuWrapper as i } from "./columnMenu/GridColumnMenuWrapper.mjs";
|
|
12
|
-
import { GridColumnMenuGroup as
|
|
13
|
-
import { GridColumnMenuSort as
|
|
14
|
-
import { GridColumnMenuFilter as
|
|
15
|
-
import { GridColumnMenuFilterUI as
|
|
16
|
-
import { GridColumnMenuFilterCell as
|
|
12
|
+
import { GridColumnMenuGroup as p } from "./columnMenu/GridColumnMenuGroup.mjs";
|
|
13
|
+
import { GridColumnMenuSort as a, isColumnMenuSortActive as x } from "./columnMenu/GridColumnMenuSort.mjs";
|
|
14
|
+
import { GridColumnMenuFilter as f, filterGroupByField as C, isColumnMenuFilterActive as G, rootFilterOrDefault as s } from "./columnMenu/GridColumnMenuFilter.mjs";
|
|
15
|
+
import { GridColumnMenuFilterUI as M } from "./columnMenu/GridColumnMenuFilterUI.mjs";
|
|
16
|
+
import { GridColumnMenuFilterCell as I } from "./columnMenu/GridColumnMenuFilterCell.mjs";
|
|
17
17
|
import { GridColumnMenuCheckboxFilter as E } from "./columnMenu/GridColumnMenuCheckboxFilter.mjs";
|
|
18
18
|
import { GridColumnMenuColumnsList as F } from "./columnMenu/GridColumnMenuColumnsList.mjs";
|
|
19
19
|
import { GridCell as T } from "./cells/GridCell.mjs";
|
|
20
|
-
import { GridEditCell as
|
|
21
|
-
import { GridGroupCell as
|
|
22
|
-
import { GridHierarchyCell as
|
|
23
|
-
import { GridFilterCell as
|
|
20
|
+
import { GridEditCell as _ } from "./cells/GridEditCell.mjs";
|
|
21
|
+
import { GridGroupCell as L } from "./cells/GridGroupCell.mjs";
|
|
22
|
+
import { GridHierarchyCell as A } from "./cells/GridHierarchyCell.mjs";
|
|
23
|
+
import { GridFilterCell as O } from "./cells/GridFilterCell.mjs";
|
|
24
24
|
import { GridHeaderCell as b } from "./header/GridHeaderCell.mjs";
|
|
25
25
|
import { GridSelectionCell as y } from "./cells/GridSelectionCell.mjs";
|
|
26
26
|
import { GridDetailRow as H } from "./rows/GridDetailRow.mjs";
|
|
27
27
|
import { GridRow as W } from "./rows/GridRow.mjs";
|
|
28
28
|
import { GridToolbar as k } from "./GridToolbar.mjs";
|
|
29
|
-
import { GridNoRecords as j } from "./GridNoRecords.mjs";
|
|
29
|
+
import { GridNoRecords as j } from "./components/noRecords/GridNoRecords.mjs";
|
|
30
30
|
import { GridColumnMenuItem as z } from "./columnMenu/GridColumnMenuItem.mjs";
|
|
31
31
|
import { GridColumnMenuItemContent as Q } from "./columnMenu/GridColumnMenuItemContent.mjs";
|
|
32
32
|
import { GridColumnMenuItemGroup as Z } from "./columnMenu/GridColumnMenuItemGroup.mjs";
|
|
33
|
-
import { GRID_COL_INDEX_ATTRIBUTE as
|
|
34
|
-
import { getSelectedState as
|
|
35
|
-
import { CommonDragLogic as
|
|
36
|
-
import { booleanFilterValues as
|
|
37
|
-
import { messages as
|
|
38
|
-
import { StatusBar as
|
|
33
|
+
import { GRID_COL_INDEX_ATTRIBUTE as ee, GRID_PREVENT_SELECTION_ELEMENT as re, GRID_ROW_INDEX_ATTRIBUTE as oe } from "./constants/index.mjs";
|
|
34
|
+
import { getSelectedState as me, getSelectedStateFromKeyDown as le, setSelectedState as ie } from "@progress/kendo-react-data-tools";
|
|
35
|
+
import { CommonDragLogic as pe } from "./drag/CommonDragLogic.mjs";
|
|
36
|
+
import { booleanFilterValues as ae, cellBoolDropdownChange as xe, cellInputChange as de, cellOperatorChange as fe, operators as Ce } from "./filterCommon.mjs";
|
|
37
|
+
import { messages as se, pagerFirstPage as ge, pagerInfo as Me, pagerItemPerPage as ce, pagerLastPage as Ie, pagerNextPage as De, pagerPreviousPage as Ee } from "./messages/index.mjs";
|
|
38
|
+
import { StatusBar as Fe, getStatusData as Re, leafColumns as Te } from "./StatusBar.mjs";
|
|
39
|
+
import { GridContextMenu as _e, contextMenuItemsMap as Ne } from "./contextMenu/GridContextMenu.mjs";
|
|
40
|
+
import { GridContextMenuAnchorPart as he, GridContextMenuItemNames as Ae } from "./contextMenu/enums.mjs";
|
|
39
41
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
ee as GRID_COL_INDEX_ATTRIBUTE,
|
|
43
|
+
re as GRID_PREVENT_SELECTION_ELEMENT,
|
|
44
|
+
oe as GRID_ROW_INDEX_ATTRIBUTE,
|
|
43
45
|
o as Grid,
|
|
44
46
|
T as GridCell,
|
|
45
|
-
|
|
47
|
+
m as GridColumn,
|
|
46
48
|
E as GridColumnMenuCheckboxFilter,
|
|
47
49
|
F as GridColumnMenuColumnsList,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
f as GridColumnMenuFilter,
|
|
51
|
+
I as GridColumnMenuFilterCell,
|
|
52
|
+
M as GridColumnMenuFilterUI,
|
|
53
|
+
p as GridColumnMenuGroup,
|
|
52
54
|
z as GridColumnMenuItem,
|
|
53
55
|
Q as GridColumnMenuItemContent,
|
|
54
56
|
Z as GridColumnMenuItemGroup,
|
|
55
|
-
|
|
57
|
+
a as GridColumnMenuSort,
|
|
56
58
|
i as GridColumnMenuWrapper,
|
|
57
|
-
|
|
59
|
+
pe as GridCommonDragLogic,
|
|
60
|
+
_e as GridContextMenu,
|
|
61
|
+
he as GridContextMenuAnchorPart,
|
|
62
|
+
Ae as GridContextMenuItemNames,
|
|
58
63
|
H as GridDetailRow,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
_ as GridEditCell,
|
|
65
|
+
O as GridFilterCell,
|
|
66
|
+
L as GridGroupCell,
|
|
62
67
|
b as GridHeaderCell,
|
|
63
|
-
|
|
68
|
+
A as GridHierarchyCell,
|
|
64
69
|
j as GridNoRecords,
|
|
65
70
|
W as GridRow,
|
|
66
71
|
y as GridSelectionCell,
|
|
67
72
|
k as GridToolbar,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
Fe as StatusBar,
|
|
74
|
+
ae as booleanFilterValues,
|
|
75
|
+
xe as cellBoolDropdownChange,
|
|
76
|
+
de as cellInputChange,
|
|
77
|
+
fe as cellOperatorChange,
|
|
78
|
+
Ne as contextMenuItemsMap,
|
|
79
|
+
C as filterGroupByField,
|
|
80
|
+
me as getSelectedState,
|
|
81
|
+
le as getSelectedStateFromKeyDown,
|
|
82
|
+
Re as getStatusData,
|
|
83
|
+
se as gridMessages,
|
|
78
84
|
G as isColumnMenuFilterActive,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
x as isColumnMenuSortActive,
|
|
86
|
+
Te as leafColumns,
|
|
87
|
+
Ce as operators,
|
|
88
|
+
ge as pagerFirstPage,
|
|
89
|
+
Me as pagerInfo,
|
|
90
|
+
ce as pagerItemPerPage,
|
|
91
|
+
Ie as pagerLastPage,
|
|
92
|
+
De as pagerNextPage,
|
|
93
|
+
Ee as pagerPreviousPage,
|
|
94
|
+
s as rootFilterOrDefault,
|
|
95
|
+
ie as setSelectedState
|
|
90
96
|
};
|
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=(...s)=>Object.assign({allowUnsort:!0,mode:"single"},...s),c={true:{asc:{asc:"",desc:"desc"},desc:{asc:"asc",desc:""},"":{asc:"asc",desc:"desc"}},false:{asc:{asc:"asc",desc:"desc"},desc:{asc:"asc",desc:"desc"},"":{asc:"asc",desc:"desc"}}},a={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}};exports.firstLevelSortSeqMap=a;exports.normalize=e;exports.sortSeqMap=c;
|
|
@@ -6,7 +6,23 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
const
|
|
9
|
+
const c = (...s) => Object.assign({ allowUnsort: !0, mode: "single" }, ...s), e = {
|
|
10
|
+
true: {
|
|
11
|
+
asc: { asc: "", desc: "desc" },
|
|
12
|
+
desc: { asc: "asc", desc: "" },
|
|
13
|
+
"": { asc: "asc", desc: "desc" }
|
|
14
|
+
},
|
|
15
|
+
false: {
|
|
16
|
+
asc: { asc: "asc", desc: "desc" },
|
|
17
|
+
desc: { asc: "asc", desc: "desc" },
|
|
18
|
+
"": { asc: "asc", desc: "desc" }
|
|
19
|
+
}
|
|
20
|
+
}, a = {
|
|
21
|
+
true: { asc: "desc", desc: "", "": "asc" },
|
|
22
|
+
false: { asc: "desc", desc: "asc", "": "asc" }
|
|
23
|
+
};
|
|
10
24
|
export {
|
|
11
|
-
|
|
25
|
+
a as firstLevelSortSeqMap,
|
|
26
|
+
c as normalize,
|
|
27
|
+
e as sortSeqMap
|
|
12
28
|
};
|
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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"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",p="grid.pagerTotalPages",d="grid.groupPanelEmpty",c="grid.groupColumn",u="grid.ungroupColumn",f="grid.columnMenu",P="grid.filterApplyButton",A="grid.filterClearButton",m="grid.filterResetButton",C="grid.filterSubmitButton",I="grid.filterTitle",h="grid.sortAscending",O="grid.sortDescending",b="grid.searchPlaceholder",L="grid.filterCheckAll",S="grid.filterChooseOperator",E="grid.filterSelectAll",R="grid.filterSelectedItems",B="grid.sortAriaLabel",y="grid.filterAriaLabel",w="grid.groupPanelAriaLabel",x="grid.groupExpand",q="grid.groupCollapse",N="grid.detailExpand",G="grid.detailCollapse",T="grid.selectRow",D="grid.gridAriaLabel",F="grid.gridRowReorderAriaLabel",v={[N]:"Expand detail row",[G]:"Collapse detail row",[x]:"Expand group",[q]:"Collapse Group",[e]:"No records available",[d]:"Drag a column header and drop it here to group by that column",[P]:"Apply",[A]:"Clear",[m]:"Reset",[C]:"Filter",[I]:"Filter",[h]:"Sort Ascending",[O]:"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",[p]:"{0}",[b]:"Search",[L]:"Check All",[S]:"Choose Operator",[R]:"selected items",[E]:"Select All",[y]:"Filter",[w]:"Group panel",[D]:"Table",[F]:"Drag row",[T]:"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=G;exports.detailExpand=N;exports.filterApplyButton=P;exports.filterAriaLabel=y;exports.filterCheckAll=L;exports.filterChooseOperator=S;exports.filterClearButton=A;exports.filterResetButton=m;exports.filterSelectAll=E;exports.filterSelectedItems=R;exports.filterSubmitButton=C;exports.filterTitle=I;exports.gridAriaLabel=D;exports.gridRowReorderAriaLabel=F;exports.groupCollapse=q;exports.groupColumn=c;exports.groupExpand=x;exports.groupPanelAriaLabel=w;exports.groupPanelEmpty=d;exports.messages=v;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=p;exports.searchPlaceholder=b;exports.selectRow=T;exports.sortAriaLabel=B;exports.sortAscending=h;exports.sortDescending=O;exports.ungroupColumn=u;
|
package/messages/index.mjs
CHANGED
|
@@ -6,43 +6,44 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
const
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
9
|
+
const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o = "grid.pagerPreviousPage", i = "grid.pagerNextPage", a = "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", A = "grid.filterApplyButton", m = "grid.filterClearButton", I = "grid.filterResetButton", P = "grid.filterSubmitButton", O = "grid.filterTitle", h = "grid.sortAscending", C = "grid.sortDescending", b = "grid.searchPlaceholder", L = "grid.filterCheckAll", E = "grid.filterChooseOperator", S = "grid.filterSelectAll", R = "grid.filterSelectedItems", B = "grid.sortAriaLabel", q = "grid.filterAriaLabel", w = "grid.groupPanelAriaLabel", x = "grid.groupExpand", y = "grid.groupCollapse", G = "grid.detailExpand", N = "grid.detailCollapse", D = "grid.selectRow", F = "grid.gridAriaLabel", T = "grid.gridRowReorderAriaLabel", v = {
|
|
10
|
+
[G]: "Expand detail row",
|
|
11
|
+
[N]: "Collapse detail row",
|
|
12
|
+
[x]: "Expand group",
|
|
13
|
+
[y]: "Collapse Group",
|
|
14
|
+
[e]: "No records available",
|
|
15
|
+
[p]: "Drag a column header and drop it here to group by that column",
|
|
16
|
+
[A]: "Apply",
|
|
17
|
+
[m]: "Clear",
|
|
18
|
+
[I]: "Reset",
|
|
19
|
+
[P]: "Filter",
|
|
20
|
+
[O]: "Filter",
|
|
21
|
+
[h]: "Sort Ascending",
|
|
22
|
+
[C]: "Sort Descending",
|
|
23
|
+
[B]: "Sortable",
|
|
24
|
+
[c]: "Group Column",
|
|
25
|
+
[u]: "Ungroup Column",
|
|
26
|
+
[f]: "Column menu",
|
|
27
|
+
[l]: "items per page",
|
|
28
|
+
[r]: "{0} - {1} of {2} items",
|
|
29
|
+
[t]: "Go to the first page",
|
|
30
|
+
[o]: "Go to the previous page",
|
|
31
|
+
[i]: "Go to the next page",
|
|
32
|
+
[a]: "Go to the last page",
|
|
33
|
+
[g]: "Page",
|
|
34
|
+
[s]: "Page size",
|
|
35
|
+
[n]: "of",
|
|
36
|
+
[d]: "{0}",
|
|
37
|
+
[b]: "Search",
|
|
38
|
+
[L]: "Check All",
|
|
39
|
+
[E]: "Choose Operator",
|
|
40
|
+
[R]: "selected items",
|
|
41
|
+
[S]: "Select All",
|
|
42
|
+
[q]: "Filter",
|
|
43
|
+
[w]: "Group panel",
|
|
44
|
+
[F]: "Table",
|
|
45
|
+
[T]: "Drag row",
|
|
46
|
+
[D]: "Select Row",
|
|
46
47
|
"grid.filterEqOperator": "Is equal to",
|
|
47
48
|
"grid.filterNotEqOperator": "Is not equal to",
|
|
48
49
|
"grid.filterIsNullOperator": "Is null",
|
|
@@ -67,50 +68,43 @@ const o = "grid.noRecords", a = "grid.pagerInfo", i = "grid.pagerFirstPage", l =
|
|
|
67
68
|
"grid.filterAndLogic": "And",
|
|
68
69
|
"grid.filterOrLogic": "Or"
|
|
69
70
|
};
|
|
70
|
-
function U(r) {
|
|
71
|
-
const e = r.replace(
|
|
72
|
-
/^pager\.([a-z])/,
|
|
73
|
-
(k, t) => "grid.pager" + t.toUpperCase()
|
|
74
|
-
);
|
|
75
|
-
return { messageKey: e, defaultMessage: z[e] };
|
|
76
|
-
}
|
|
77
71
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
72
|
+
f as columnMenu,
|
|
73
|
+
N as detailCollapse,
|
|
74
|
+
G as detailExpand,
|
|
75
|
+
A as filterApplyButton,
|
|
76
|
+
q as filterAriaLabel,
|
|
77
|
+
L as filterCheckAll,
|
|
78
|
+
E as filterChooseOperator,
|
|
79
|
+
m as filterClearButton,
|
|
80
|
+
I as filterResetButton,
|
|
81
|
+
S as filterSelectAll,
|
|
82
|
+
R as filterSelectedItems,
|
|
83
|
+
P as filterSubmitButton,
|
|
84
|
+
O as filterTitle,
|
|
85
|
+
F as gridAriaLabel,
|
|
86
|
+
T as gridRowReorderAriaLabel,
|
|
87
|
+
y as groupCollapse,
|
|
88
|
+
c as groupColumn,
|
|
89
|
+
x as groupExpand,
|
|
90
|
+
w as groupPanelAriaLabel,
|
|
91
|
+
p as groupPanelEmpty,
|
|
92
|
+
v as messages,
|
|
93
|
+
e as noRecords,
|
|
94
|
+
t as pagerFirstPage,
|
|
95
|
+
r as pagerInfo,
|
|
96
|
+
l as pagerItemPerPage,
|
|
97
|
+
a as pagerLastPage,
|
|
98
|
+
i as pagerNextPage,
|
|
99
|
+
n as pagerOf,
|
|
100
|
+
g as pagerPage,
|
|
101
|
+
s as pagerPageSizeAriaLabel,
|
|
102
|
+
o as pagerPreviousPage,
|
|
103
|
+
d as pagerTotalPages,
|
|
104
|
+
b as searchPlaceholder,
|
|
105
|
+
D as selectRow,
|
|
106
|
+
B as sortAriaLabel,
|
|
107
|
+
h as sortAscending,
|
|
108
|
+
C as sortDescending,
|
|
109
|
+
u as ungroupColumn
|
|
116
110
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.js");function t(s){const e=s.replace(/^pager\.([a-z])/,(g,a)=>"grid.pager"+a.toUpperCase());return{messageKey:e,defaultMessage:r.messages[e]}}exports.pagerMessagesMap=t;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { messages as r } from "./index.mjs";
|
|
10
|
+
function g(a) {
|
|
11
|
+
const e = a.replace(
|
|
12
|
+
/^pager\.([a-z])/,
|
|
13
|
+
(p, s) => "grid.pager" + s.toUpperCase()
|
|
14
|
+
);
|
|
15
|
+
return { messageKey: e, defaultMessage: r[e] };
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
g as pagerMessagesMap
|
|
19
|
+
};
|
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 client";"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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1737621494,version:"9.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -11,8 +11,8 @@ const e = {
|
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCode: "KENDOUIREACT",
|
|
13
13
|
productCodes: ["KENDOUIREACT"],
|
|
14
|
-
publishDate:
|
|
15
|
-
version: "9.
|
|
14
|
+
publishDate: 1737621494,
|
|
15
|
+
version: "9.4.0-develop.1",
|
|
16
16
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
17
17
|
};
|
|
18
18
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.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",
|
|
@@ -28,15 +28,16 @@
|
|
|
28
28
|
"@progress/kendo-data-query": "^1.0.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.3.4",
|
|
31
|
-
"@progress/kendo-react-animation": "9.
|
|
32
|
-
"@progress/kendo-react-buttons": "9.
|
|
33
|
-
"@progress/kendo-react-common": "9.
|
|
34
|
-
"@progress/kendo-react-data-tools": "9.
|
|
35
|
-
"@progress/kendo-react-dateinputs": "9.
|
|
36
|
-
"@progress/kendo-react-dropdowns": "9.
|
|
37
|
-
"@progress/kendo-react-inputs": "9.
|
|
38
|
-
"@progress/kendo-react-intl": "9.
|
|
39
|
-
"@progress/kendo-react-popup": "9.
|
|
31
|
+
"@progress/kendo-react-animation": "9.4.0-develop.1",
|
|
32
|
+
"@progress/kendo-react-buttons": "9.4.0-develop.1",
|
|
33
|
+
"@progress/kendo-react-common": "9.4.0-develop.1",
|
|
34
|
+
"@progress/kendo-react-data-tools": "9.4.0-develop.1",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "9.4.0-develop.1",
|
|
36
|
+
"@progress/kendo-react-dropdowns": "9.4.0-develop.1",
|
|
37
|
+
"@progress/kendo-react-inputs": "9.4.0-develop.1",
|
|
38
|
+
"@progress/kendo-react-intl": "9.4.0-develop.1",
|
|
39
|
+
"@progress/kendo-react-popup": "9.4.0-develop.1",
|
|
40
|
+
"@progress/kendo-react-layout": "9.4.0-develop.1",
|
|
40
41
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
41
42
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
42
43
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"package": {
|
|
69
70
|
"productName": "KendoReact",
|
|
70
71
|
"productCode": "KENDOUIREACT",
|
|
71
|
-
"publishDate":
|
|
72
|
+
"publishDate": 1737621494,
|
|
72
73
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
73
74
|
}
|
|
74
75
|
},
|
package/rows/GridRow.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),a=require("@progress/kendo-react-common"),C=require("../constants/index.js"),k=require("../GridClientWrapper.js");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=O(v),T=e=>{var g;const r=d.useContext(k.GridContext),{reorderRowDropTargetRef:o,reorderRowDragTargetRef:t,activeDragRowDataItemRef:R}=r,{rowType:i,isAltRow:w,isInEdit:f,isSelected:b}=e,c=a.useUnstyled(),D=c&&c.uGrid?c.uGrid:a.uGrid,m=a.classNames(D.tr({selected:b,isHeader:i==="groupHeader",isFooter:i==="groupFooter",isMaster:i!=="groupHeader"&&i!=="groupFooter",isAltRow:w,isInEdit:f})),l=d.useRef(null),y=n=>{if(e.isRowReorderable&&R.current){const x=n.originalEvent.target;o.current=x.closest(".k-table-row")}},I=()=>{t.current&&e.isRowReorderable&&(t.current.style.userSelect="")};a.useDroppable(l,{onDragOver:y,onDrop:I});const s={onClick:n=>r.rowClick(n,e.dataItem),onDoubleClick:n=>r.rowDblClick(n,e.dataItem)},u=d.createElement("tr",{ref:l,id:e.id,...s,className:m,style:{height:e.rowHeight?e.rowHeight+"px":"",visibility:e.isHidden?"hidden":"",userSelect:(g=t==null?void 0:t.current)==null?void 0:g.style.userSelect},role:"row","aria-rowindex":e.ariaRowIndex,"absolute-row-index":e.absoluteRowIndex,key:e.absoluteRowIndex,[C.GRID_ROW_INDEX_ATTRIBUTE]:e.rowType==="data"?e.dataIndex:void 0},e.children);return e.render?e.render.call(void 0,u,{...e,...s}):u};exports.GridRow=T;
|
package/rows/GridRow.mjs
CHANGED
|
@@ -6,40 +6,62 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { useUnstyled as
|
|
11
|
-
import { GRID_ROW_INDEX_ATTRIBUTE as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { useUnstyled as x, uGrid as b, classNames as h, useDroppable as v } from "@progress/kendo-react-common";
|
|
11
|
+
import { GRID_ROW_INDEX_ATTRIBUTE as y } from "../constants/index.mjs";
|
|
12
|
+
import { GridContext as C } from "../GridClientWrapper.mjs";
|
|
13
|
+
const O = (e) => {
|
|
14
|
+
var s;
|
|
15
|
+
const a = n.useContext(C), {
|
|
16
|
+
reorderRowDropTargetRef: u,
|
|
17
|
+
reorderRowDragTargetRef: t,
|
|
18
|
+
activeDragRowDataItemRef: R
|
|
19
|
+
} = a, { rowType: o, isAltRow: w, isInEdit: g, isSelected: D } = e, i = x(), m = i && i.uGrid ? i.uGrid : b, f = h(
|
|
20
|
+
m.tr({
|
|
21
|
+
selected: D,
|
|
22
|
+
isHeader: o === "groupHeader",
|
|
23
|
+
isFooter: o === "groupFooter",
|
|
24
|
+
isMaster: o !== "groupHeader" && o !== "groupFooter",
|
|
25
|
+
isAltRow: w,
|
|
26
|
+
isInEdit: g
|
|
21
27
|
})
|
|
22
|
-
), d =
|
|
28
|
+
), d = n.useRef(null);
|
|
29
|
+
v(d, {
|
|
30
|
+
onDragOver: (r) => {
|
|
31
|
+
if (e.isRowReorderable && R.current) {
|
|
32
|
+
const I = r.originalEvent.target;
|
|
33
|
+
u.current = I.closest(".k-table-row");
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
onDrop: () => {
|
|
37
|
+
t.current && e.isRowReorderable && (t.current.style.userSelect = "");
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const l = {
|
|
41
|
+
onClick: (r) => a.rowClick(r, e.dataItem),
|
|
42
|
+
onDoubleClick: (r) => a.rowDblClick(r, e.dataItem)
|
|
43
|
+
}, c = /* @__PURE__ */ n.createElement(
|
|
23
44
|
"tr",
|
|
24
45
|
{
|
|
46
|
+
ref: d,
|
|
25
47
|
id: e.id,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
className: a,
|
|
48
|
+
...l,
|
|
49
|
+
className: f,
|
|
29
50
|
style: {
|
|
30
51
|
height: e.rowHeight ? e.rowHeight + "px" : "",
|
|
31
|
-
visibility: e.isHidden ? "hidden" : ""
|
|
52
|
+
visibility: e.isHidden ? "hidden" : "",
|
|
53
|
+
userSelect: (s = t == null ? void 0 : t.current) == null ? void 0 : s.style.userSelect
|
|
32
54
|
},
|
|
33
55
|
role: "row",
|
|
34
56
|
"aria-rowindex": e.ariaRowIndex,
|
|
35
57
|
"absolute-row-index": e.absoluteRowIndex,
|
|
36
58
|
key: e.absoluteRowIndex,
|
|
37
|
-
[
|
|
59
|
+
[y]: e.rowType === "data" ? e.dataIndex : void 0
|
|
38
60
|
},
|
|
39
61
|
e.children
|
|
40
62
|
);
|
|
41
|
-
return e.render ? e.render.call(void 0,
|
|
63
|
+
return e.render ? e.render.call(void 0, c, { ...e, ...l }) : c;
|
|
42
64
|
};
|
|
43
65
|
export {
|
|
44
|
-
|
|
66
|
+
O as GridRow
|
|
45
67
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./_serverModule.js"),t=e.ServerFragment;exports.ClientFragment=t;
|