@progress/kendo-react-grid 14.3.0-develop.1 → 14.3.0-develop.11
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +10 -9
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +711 -624
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +427 -374
- package/GridState.d.ts +2 -0
- package/GridState.js +1 -1
- package/GridState.mjs +98 -90
- package/{toolbar-tools/smartbox/SegmentedControl.d.ts → cells/pincell/GridPinCell.d.ts} +4 -2
- package/cells/pincell/GridPinCell.js +9 -0
- package/cells/pincell/GridPinCell.mjs +19 -0
- package/cells/pincell/GridPinCellServer.d.ts +15 -0
- package/cells/pincell/GridPinCellServer.js +8 -0
- package/cells/pincell/GridPinCellServer.mjs +32 -0
- package/cells/pincell/GridPinCellServerContainer.d.ts +11 -0
- package/cells/pincell/GridPinCellServerContainer.js +9 -0
- package/cells/pincell/GridPinCellServerContainer.mjs +26 -0
- package/cells/pincell/GridPinDropdownButton.d.ts +21 -0
- package/cells/pincell/GridPinDropdownButton.js +9 -0
- package/cells/pincell/GridPinDropdownButton.mjs +58 -0
- package/cells/pincell/useGridPinCellClientTdProps.d.ts +24 -0
- package/cells/pincell/useGridPinCellClientTdProps.js +9 -0
- package/cells/pincell/useGridPinCellClientTdProps.mjs +21 -0
- package/cells/pincell/utils.d.ts +20 -0
- package/cells/pincell/utils.js +8 -0
- package/cells/pincell/utils.mjs +47 -0
- package/components/PinnedRowsTable.d.ts +48 -0
- package/components/PinnedRowsTable.js +9 -0
- package/components/PinnedRowsTable.mjs +133 -0
- package/components/StickyGroupTable.js +1 -1
- package/components/StickyGroupTable.mjs +1 -1
- package/contextMenu/GridContextMenu.d.ts +42 -0
- package/contextMenu/GridContextMenu.js +1 -1
- package/contextMenu/GridContextMenu.mjs +101 -51
- package/contextMenu/enums.d.ts +5 -1
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +2 -2
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnResize.d.ts +9 -0
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +105 -115
- package/getRowContents.d.ts +2 -2
- package/getRowContents.js +1 -1
- package/getRowContents.mjs +13 -14
- package/header/client/GridHeaderPinCell.d.ts +12 -0
- package/header/client/GridHeaderPinCell.js +9 -0
- package/header/client/GridHeaderPinCell.mjs +14 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.js +1 -1
- package/index.mjs +97 -95
- package/interfaces/ColumnType.d.ts +1 -1
- package/interfaces/GridCellsSettings.d.ts +23 -0
- package/interfaces/GridProps.d.ts +70 -1
- package/interfaces/GridRowProps.d.ts +4 -0
- package/interfaces/GridRowsSettings.d.ts +11 -0
- package/interfaces/events.d.ts +17 -0
- package/messages/index.d.ts +20 -0
- package/messages/index.js +2 -2
- package/messages/index.mjs +110 -102
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +18 -17
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +25 -24
- package/rows/GridRowRenderer.d.ts +1 -0
- package/rows/GridRowRenderer.js +1 -1
- package/rows/GridRowRenderer.mjs +39 -36
- package/stacked/GridStackedRow.d.ts +5 -0
- package/stacked/GridStackedRow.js +1 -1
- package/stacked/GridStackedRow.mjs +118 -116
- package/stacked/StackedModeRow.d.ts +1 -0
- package/stacked/StackedModeRow.js +1 -1
- package/stacked/StackedModeRow.mjs +13 -11
- package/toolbar-tools/smartbox/SmartBox.js +1 -1
- package/toolbar-tools/smartbox/SmartBox.mjs +102 -94
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +12 -3
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +1 -1
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +42 -41
- package/toolbar-tools/smartbox/index.d.ts +0 -1
- package/toolbar-tools/smartbox/interfaces/index.d.ts +0 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +44 -44
- package/toolbar-tools/smartbox/SegmentedControl.js +0 -8
- package/toolbar-tools/smartbox/SegmentedControl.mjs +0 -109
- package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +0 -66
package/GridState.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type GridState = {
|
|
|
23
23
|
detailExpand?: GridProps['detailExpand'];
|
|
24
24
|
groupExpand?: GridProps['groupExpand'];
|
|
25
25
|
columnsState?: GridProps['columnsState'];
|
|
26
|
+
pinnedTopRows?: GridProps['pinnedTopRows'];
|
|
27
|
+
pinnedBottomRows?: GridProps['pinnedBottomRows'];
|
|
26
28
|
};
|
|
27
29
|
/** @hidden */
|
|
28
30
|
export type GridStateAction = any;
|
package/GridState.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
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("react");function gt(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const d in t)if(d!=="default"){const l=Object.getOwnPropertyDescriptor(t,d);Object.defineProperty(o,d,l.get?l:{enumerable:!0,get:()=>t[d]})}}return o.default=t,Object.freeze(o)}const g=gt(ut),W=g.createContext([{},()=>{},{}]),st=()=>g.useContext(W),rt=t=>{var R,w,k,P,T,G,b,B,D,O,j,y,H,_,F,M,q,z,N,A,I,J,K,L,Q,U,V;const{children:o,onEditChange:d,onFilterChange:l,onSortChange:c,onSearchChange:s,onPageChange:h,onGroupChange:u,onDataStateChange:r,onSelectionChange:S,onDetailExpandChange:f,onGroupExpandChange:C,onHeaderSelectionChange:m,onColumnsStateChange:x,onRowPinChange:E}=t,[a,i]=g.useState({edit:(R=t.defaultEdit)!=null?R:t.edit,filter:(w=t.defaultFilter)!=null?w:t.filter,highlight:t.highlight,select:(k=t.defaultSelect)!=null?k:t.select,search:(P=t.defaultSearch)!=null?P:t.search,sort:(T=t.defaultSort)!=null?T:t.sort,take:(G=t.defaultTake)!=null?G:t.take,skip:(b=t.defaultSkip)!=null?b:t.skip,group:(B=t.defaultGroup)!=null?B:t.group,detailExpand:(D=t.defaultDetailExpand)!=null?D:t.detailExpand,groupExpand:(O=t.defaultGroupExpand)!=null?O:t.groupExpand,columnsState:(j=t.defaultColumnsState)!=null?j:t.columnsState,pinnedTopRows:(y=t.defaultPinnedTopRows)!=null?y:t.pinnedTopRows,pinnedBottomRows:(H=t.defaultPinnedBottomRows)!=null?H:t.pinnedBottomRows}),X={edit:(_=t.edit)!=null?_:a.edit,filter:(F=t.filter)!=null?F:a.filter,highlight:(M=t.highlight)!=null?M:a.highlight,search:(q=t.search)!=null?q:a.search,sort:(z=t.sort)!=null?z:a.sort,take:(N=t.take)!=null?N:a.take,skip:(A=t.skip)!=null?A:a.skip,group:(I=t.group)!=null?I:a.group,select:(J=t.select)!=null?J:a.select,detailExpand:(K=t.detailExpand)!=null?K:a.detailExpand,groupExpand:(L=t.groupExpand)!=null?L:a.groupExpand,columnsState:(Q=t.columnsState)!=null?Q:a.columnsState,pinnedTopRows:(U=t.pinnedTopRows)!=null?U:a.pinnedTopRows,pinnedBottomRows:(V=t.pinnedBottomRows)!=null?V:a.pinnedBottomRows},Y=e=>{},Z=e=>{i(n=>({...n,edit:e.edit})),d==null||d(e)},$=e=>{i(n=>({...n,filter:e.filter})),l==null||l(e)},v=e=>{i(n=>({...n,highlight:e.highlight})),t.onHighlightChange&&t.onHighlightChange(e)},p=e=>{i(n=>({...n,search:e.search,skip:0})),s==null||s(e)},tt=e=>{i(n=>({...n,sort:e.sort})),c==null||c(e)},et=e=>{i(n=>({...n,...e.page})),h==null||h(e)},nt=e=>{i(n=>({...n,group:e.group})),u==null||u(e)},at=e=>{i(n=>({...n,...e.dataState})),r==null||r(e)},it=e=>{i(n=>({...n,select:e.select})),S==null||S(e)},dt=e=>{i(n=>({...n,select:e.select})),m==null||m(e)},lt=e=>{i(n=>({...n,detailExpand:e.detailExpand})),f==null||f(e)},ot=e=>{i(n=>({...n,groupExpand:e.groupExpand})),C==null||C(e)},ct=e=>{i(n=>({...n,columnsState:e.columnsState})),x==null||x(e)},ht=e=>{i(n=>({...n,pinnedTopRows:e.pinnedTopRows,pinnedBottomRows:e.pinnedBottomRows})),E==null||E(e)};return g.createElement(W.Provider,{value:[X,Y,{onEditChange:Z,onFilterChange:l&&$,onSearchChange:p,onHighlightChange:v,onSortChange:c&&tt,onPageChange:h&&et,onGroupChange:u&&nt,onDataStateChange:at,onSelectionChange:it,onHeaderSelectionChange:dt,onDetailExpandChange:lt,onGroupExpandChange:ot,onColumnsStateChange:ct,onRowPinChange:ht}]},o)};exports.GridClientStateProvider=rt;exports.useGridState=st;
|
package/GridState.mjs
CHANGED
|
@@ -6,105 +6,113 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
const
|
|
11
|
-
}, {}]),
|
|
12
|
-
var
|
|
9
|
+
import * as c from "react";
|
|
10
|
+
const W = c.createContext([{}, () => {
|
|
11
|
+
}, {}]), gt = () => c.useContext(W), ut = (t) => {
|
|
12
|
+
var R, r, w, k, T, B, G, P, H, D, F, b, j, q, y, z, A, I, J, K, L, M, N, O, Q, U, V;
|
|
13
13
|
const {
|
|
14
|
-
children:
|
|
15
|
-
onEditChange:
|
|
16
|
-
onFilterChange:
|
|
17
|
-
onSortChange:
|
|
18
|
-
onSearchChange:
|
|
19
|
-
onPageChange:
|
|
20
|
-
onGroupChange:
|
|
21
|
-
onDataStateChange:
|
|
22
|
-
onSelectionChange:
|
|
23
|
-
onDetailExpandChange:
|
|
24
|
-
onGroupExpandChange:
|
|
25
|
-
onHeaderSelectionChange:
|
|
26
|
-
onColumnsStateChange: E
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
14
|
+
children: X,
|
|
15
|
+
onEditChange: g,
|
|
16
|
+
onFilterChange: i,
|
|
17
|
+
onSortChange: l,
|
|
18
|
+
onSearchChange: u,
|
|
19
|
+
onPageChange: h,
|
|
20
|
+
onGroupChange: o,
|
|
21
|
+
onDataStateChange: s,
|
|
22
|
+
onSelectionChange: S,
|
|
23
|
+
onDetailExpandChange: C,
|
|
24
|
+
onGroupExpandChange: f,
|
|
25
|
+
onHeaderSelectionChange: x,
|
|
26
|
+
onColumnsStateChange: E,
|
|
27
|
+
onRowPinChange: m
|
|
28
|
+
} = t, [n, d] = c.useState({
|
|
29
|
+
edit: (R = t.defaultEdit) != null ? R : t.edit,
|
|
30
|
+
filter: (r = t.defaultFilter) != null ? r : t.filter,
|
|
31
|
+
highlight: t.highlight,
|
|
32
|
+
select: (w = t.defaultSelect) != null ? w : t.select,
|
|
33
|
+
search: (k = t.defaultSearch) != null ? k : t.search,
|
|
34
|
+
sort: (T = t.defaultSort) != null ? T : t.sort,
|
|
35
|
+
take: (B = t.defaultTake) != null ? B : t.take,
|
|
36
|
+
skip: (G = t.defaultSkip) != null ? G : t.skip,
|
|
37
|
+
group: (P = t.defaultGroup) != null ? P : t.group,
|
|
38
|
+
detailExpand: (H = t.defaultDetailExpand) != null ? H : t.detailExpand,
|
|
39
|
+
groupExpand: (D = t.defaultGroupExpand) != null ? D : t.groupExpand,
|
|
40
|
+
columnsState: (F = t.defaultColumnsState) != null ? F : t.columnsState,
|
|
41
|
+
pinnedTopRows: (b = t.defaultPinnedTopRows) != null ? b : t.pinnedTopRows,
|
|
42
|
+
pinnedBottomRows: (j = t.defaultPinnedBottomRows) != null ? j : t.pinnedBottomRows
|
|
43
|
+
}), Y = {
|
|
44
|
+
edit: (q = t.edit) != null ? q : n.edit,
|
|
45
|
+
filter: (y = t.filter) != null ? y : n.filter,
|
|
46
|
+
highlight: (z = t.highlight) != null ? z : n.highlight,
|
|
47
|
+
search: (A = t.search) != null ? A : n.search,
|
|
48
|
+
sort: (I = t.sort) != null ? I : n.sort,
|
|
49
|
+
take: (J = t.take) != null ? J : n.take,
|
|
50
|
+
skip: (K = t.skip) != null ? K : n.skip,
|
|
51
|
+
group: (L = t.group) != null ? L : n.group,
|
|
52
|
+
select: (M = t.select) != null ? M : n.select,
|
|
53
|
+
detailExpand: (N = t.detailExpand) != null ? N : n.detailExpand,
|
|
54
|
+
groupExpand: (O = t.groupExpand) != null ? O : n.groupExpand,
|
|
55
|
+
columnsState: (Q = t.columnsState) != null ? Q : n.columnsState,
|
|
56
|
+
pinnedTopRows: (U = t.pinnedTopRows) != null ? U : n.pinnedTopRows,
|
|
57
|
+
pinnedBottomRows: (V = t.pinnedBottomRows) != null ? V : n.pinnedBottomRows
|
|
58
|
+
}, Z = (e) => {
|
|
59
|
+
}, _ = (e) => {
|
|
60
|
+
d((a) => ({ ...a, edit: e.edit })), g == null || g(e);
|
|
61
|
+
}, $ = (e) => {
|
|
62
|
+
d((a) => ({ ...a, filter: e.filter })), i == null || i(e);
|
|
63
|
+
}, v = (e) => {
|
|
64
|
+
d((a) => ({ ...a, highlight: e.highlight })), t.onHighlightChange && t.onHighlightChange(e);
|
|
65
|
+
}, p = (e) => {
|
|
66
|
+
d((a) => ({ ...a, search: e.search, skip: 0 })), u == null || u(e);
|
|
67
|
+
}, tt = (e) => {
|
|
68
|
+
d((a) => ({ ...a, sort: e.sort })), l == null || l(e);
|
|
69
|
+
}, et = (e) => {
|
|
70
|
+
d((a) => ({ ...a, ...e.page })), h == null || h(e);
|
|
71
|
+
}, at = (e) => {
|
|
72
|
+
d((a) => ({ ...a, group: e.group })), o == null || o(e);
|
|
73
|
+
}, nt = (e) => {
|
|
74
|
+
d((a) => ({ ...a, ...e.dataState })), s == null || s(e);
|
|
75
|
+
}, dt = (e) => {
|
|
76
|
+
d((a) => ({ ...a, select: e.select })), S == null || S(e);
|
|
77
|
+
}, it = (e) => {
|
|
78
|
+
d((a) => ({ ...a, select: e.select })), x == null || x(e);
|
|
79
|
+
}, lt = (e) => {
|
|
80
|
+
d((a) => ({ ...a, detailExpand: e.detailExpand })), C == null || C(e);
|
|
81
|
+
}, ht = (e) => {
|
|
82
|
+
d((a) => ({ ...a, groupExpand: e.groupExpand })), f == null || f(e);
|
|
83
|
+
}, ot = (e) => {
|
|
84
|
+
d((a) => ({ ...a, columnsState: e.columnsState })), E == null || E(e);
|
|
85
|
+
}, ct = (e) => {
|
|
86
|
+
d((a) => ({ ...a, pinnedTopRows: e.pinnedTopRows, pinnedBottomRows: e.pinnedBottomRows })), m == null || m(e);
|
|
80
87
|
};
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
|
|
88
|
+
return /* @__PURE__ */ c.createElement(
|
|
89
|
+
W.Provider,
|
|
83
90
|
{
|
|
84
91
|
value: [
|
|
85
|
-
|
|
86
|
-
|
|
92
|
+
Y,
|
|
93
|
+
Z,
|
|
87
94
|
{
|
|
88
|
-
onEditChange:
|
|
89
|
-
onFilterChange:
|
|
90
|
-
onSearchChange:
|
|
91
|
-
onHighlightChange:
|
|
92
|
-
onSortChange:
|
|
93
|
-
onPageChange:
|
|
94
|
-
onGroupChange:
|
|
95
|
-
onDataStateChange:
|
|
96
|
-
onSelectionChange:
|
|
97
|
-
onHeaderSelectionChange:
|
|
98
|
-
onDetailExpandChange:
|
|
99
|
-
onGroupExpandChange:
|
|
100
|
-
onColumnsStateChange:
|
|
95
|
+
onEditChange: _,
|
|
96
|
+
onFilterChange: i && $,
|
|
97
|
+
onSearchChange: p,
|
|
98
|
+
onHighlightChange: v,
|
|
99
|
+
onSortChange: l && tt,
|
|
100
|
+
onPageChange: h && et,
|
|
101
|
+
onGroupChange: o && at,
|
|
102
|
+
onDataStateChange: nt,
|
|
103
|
+
onSelectionChange: dt,
|
|
104
|
+
onHeaderSelectionChange: it,
|
|
105
|
+
onDetailExpandChange: lt,
|
|
106
|
+
onGroupExpandChange: ht,
|
|
107
|
+
onColumnsStateChange: ot,
|
|
108
|
+
onRowPinChange: ct
|
|
101
109
|
}
|
|
102
110
|
]
|
|
103
111
|
},
|
|
104
|
-
|
|
112
|
+
X
|
|
105
113
|
);
|
|
106
114
|
};
|
|
107
115
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
116
|
+
ut as GridClientStateProvider,
|
|
117
|
+
gt as useGridState
|
|
110
118
|
};
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { GridCellProps } from '../../interfaces/GridCellProps.js';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const GridPinCell: (props: {
|
|
14
|
+
cellProps: GridCellProps;
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),s=require("./utils.js"),a=require("./useGridPinCellClientTdProps.js"),d=require("../hooks.js");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const c=p(u),P=t=>{const{cellProps:e}=t,{tdProps:r,content:n}=s.getPinCellTdProps(e),{...o}=a.useGridPinCellClientTdProps(e),i=d.useLegacyCellProps(e),l=s.getCustomCell(e);return l?c.createElement(l,{...e,...i,tdProps:{...r,...o}},n):e.rowType!=="groupHeader"?c.createElement("td",{...r,...o},n):null};exports.GridPinCell=P;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 s from "react";
|
|
10
|
+
import { getPinCellTdProps as c, getCustomCell as i } from "./utils.mjs";
|
|
11
|
+
import { useGridPinCellClientTdProps as m } from "./useGridPinCellClientTdProps.mjs";
|
|
12
|
+
import { useLegacyCellProps as P } from "../hooks.mjs";
|
|
13
|
+
const a = (n) => {
|
|
14
|
+
const { cellProps: e } = n, { tdProps: t, content: o } = c(e), { ...r } = m(e), p = P(e), l = i(e);
|
|
15
|
+
return l ? /* @__PURE__ */ s.createElement(l, { ...e, ...p, tdProps: { ...t, ...r } }, o) : e.rowType !== "groupHeader" ? /* @__PURE__ */ s.createElement("td", { ...t, ...r }, o) : null;
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
a as GridPinCell
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridCellProps } from '../../interfaces/GridCellProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const GridPinCellServer: (props: {
|
|
14
|
+
cellProps: GridCellProps;
|
|
15
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),c=require("./GridPinCellServerContainer.js"),s=require("./utils.js"),u=require("../../utils/index.js");function p(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const l=p(C),P=r=>{const{cellProps:t}=r,{tdProps:e,content:n}=s.getPinCellTdProps(t),o=u.getClientCellProps(t),i=s.getCustomCell(t);if(i){const d=u.isClientReference(i);return l.createElement(c.GridPinCellServerContainer,{cellProps:o,tdProps:e,isCustom:!0,isClient:d},l.createElement(i,{...o,tdProps:e},n))}const a=t.rowType!=="groupHeader"?l.createElement("td",{...e},n):null;return l.createElement(c.GridPinCellServerContainer,{cellProps:o,tdProps:e},a)};exports.GridPinCellServer=P;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as r from "react";
|
|
9
|
+
import { GridPinCellServerContainer as s } from "./GridPinCellServerContainer.mjs";
|
|
10
|
+
import { getPinCellTdProps as p, getCustomCell as C } from "./utils.mjs";
|
|
11
|
+
import { getClientCellProps as P, isClientReference as a } from "../../utils/index.mjs";
|
|
12
|
+
const g = (i) => {
|
|
13
|
+
const { cellProps: e } = i, { tdProps: t, content: n } = p(e), l = P(e), o = C(e);
|
|
14
|
+
if (o) {
|
|
15
|
+
const m = a(o);
|
|
16
|
+
return /* @__PURE__ */ r.createElement(
|
|
17
|
+
s,
|
|
18
|
+
{
|
|
19
|
+
cellProps: l,
|
|
20
|
+
tdProps: t,
|
|
21
|
+
isCustom: !0,
|
|
22
|
+
isClient: m
|
|
23
|
+
},
|
|
24
|
+
/* @__PURE__ */ r.createElement(o, { ...l, tdProps: t }, n)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
const c = e.rowType !== "groupHeader" ? /* @__PURE__ */ r.createElement("td", { ...t }, n) : null;
|
|
28
|
+
return /* @__PURE__ */ r.createElement(s, { cellProps: l, tdProps: t }, c);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
g as GridPinCellServer
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const GridPinCellServerContainer: (props: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("../../utils/GridContext.js"),i=require("../../utils/index.js"),c=require("./useGridPinCellClientTdProps.js"),s=require("../hooks.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const d=u(l),a=e=>{const n=d.useContext(o.GridContext),t=c.useGridPinCellClientTdProps(e.cellProps),r=s.useLegacyCellProps(e.cellProps);return e.isCustom&&(n.isClient||e.isClient)?i.cloneReactElement(e.children,{tdProps:{...e.tdProps,...t},...r}):e.children&&i.cloneReactElement(e.children,{...t})};exports.GridPinCellServerContainer=a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 n from "react";
|
|
10
|
+
import { GridContext as o } from "../../utils/GridContext.mjs";
|
|
11
|
+
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
12
|
+
import { useGridPinCellClientTdProps as c } from "./useGridPinCellClientTdProps.mjs";
|
|
13
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const i = n.useContext(o), t = c(e.cellProps), l = s(e.cellProps);
|
|
16
|
+
return e.isCustom && (i.isClient || e.isClient) ? r(e.children, {
|
|
17
|
+
// pass down to tdProps for client templates
|
|
18
|
+
tdProps: { ...e.tdProps, ...t },
|
|
19
|
+
...l
|
|
20
|
+
}) : e.children && r(e.children, {
|
|
21
|
+
...t
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
f as GridPinCellServerContainer
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface GridPinDropdownButtonProps {
|
|
13
|
+
/**
|
|
14
|
+
* The current dataItem.
|
|
15
|
+
*/
|
|
16
|
+
dataItem: any;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const GridPinDropdownButton: (props: GridPinDropdownButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),v=require("@progress/kendo-react-common"),q=require("@progress/kendo-react-popup"),B=require("@progress/kendo-react-intl"),r=require("@progress/kendo-svg-icons"),o=require("../../messages/index.js"),x=require("../../utils/GridContext.js"),y=require("@progress/kendo-react-layout");function C(i){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(c,e,a.get?a:{enumerable:!0,get:()=>i[e]})}}return c.default=i,Object.freeze(c)}const n=C(w),D=i=>{const{dataItem:c}=i,e=n.useContext(x.GridContext),a=B.useLocalization(),b="#",u=e!=null&&e.getRowPinPosition?e.getRowPinPosition(c):"none",s=u!=="none",[I,l]=n.useState(!1),g=n.useRef(null),k=n.useCallback(t=>{t.preventDefault(),l(d=>!d)},[]),O=n.useCallback(t=>{!t.isAnchorClicked&&l(!1)},[]),p=a.toLanguageString(o.gridPinToTop,o.messages[o.gridPinToTop]),f=a.toLanguageString(o.gridPinToBottom,o.messages[o.gridPinToBottom]),m=a.toLanguageString(o.gridUnpin,o.messages[o.gridUnpin]),S=n.useMemo(()=>{const t=[];return s&&t.push({text:m,svgIcon:r.unpinOutlineIcon,data:{action:"unpin"}}),u!=="top"&&t.push({text:p,svgIcon:r.pinOutlineTopIcon,data:{action:"pinTop"}}),u!=="bottom"&&t.push({text:f,svgIcon:r.pinOutlineBottomIcon,data:{action:"pinBottom"}}),t},[s,m,u,p,f]),R=n.useCallback(t=>{var P,h,T;const d=(h=(P=t.item)==null?void 0:P.data)==null?void 0:h.action;(T=e==null?void 0:e.onRowPin)==null||T.call(e,d,c),l(!1)},[e,c]);return n.createElement(n.Fragment,null,n.createElement("a",{className:"k-pin-cell",ref:g,href:b,tabIndex:-1,onClick:k,"aria-label":s?m:p},n.createElement(v.IconWrap,{name:s?"unpin":"pin",icon:s?r.unpinOutlineIcon:r.pinOutlineIcon})),n.createElement(q.Popup,{anchor:g.current,show:I,anchorAlign:{vertical:"bottom",horizontal:"right"},popupClass:"k-menu-popup",onMouseDownOutside:O},n.createElement(y.Menu,{vertical:!0,items:S,onSelect:R})))};exports.GridPinDropdownButton=D;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 o from "react";
|
|
10
|
+
import { IconWrap as E } from "@progress/kendo-react-common";
|
|
11
|
+
import { Popup as O } from "@progress/kendo-react-popup";
|
|
12
|
+
import { useLocalization as C } from "@progress/kendo-react-intl";
|
|
13
|
+
import { unpinOutlineIcon as P, pinOutlineTopIcon as L, pinOutlineBottomIcon as M, pinOutlineIcon as z } from "@progress/kendo-svg-icons";
|
|
14
|
+
import { gridPinToTop as T, messages as u, gridPinToBottom as I, gridUnpin as w } from "../../messages/index.mjs";
|
|
15
|
+
import { GridContext as D } from "../../utils/GridContext.mjs";
|
|
16
|
+
import { Menu as A } from "@progress/kendo-react-layout";
|
|
17
|
+
const q = (b) => {
|
|
18
|
+
const { dataItem: a } = b, n = o.useContext(D), s = C(), k = "#", i = n != null && n.getRowPinPosition ? n.getRowPinPosition(a) : "none", e = i !== "none", [S, c] = o.useState(!1), m = o.useRef(null), v = o.useCallback((t) => {
|
|
19
|
+
t.preventDefault(), c((l) => !l);
|
|
20
|
+
}, []), R = o.useCallback((t) => {
|
|
21
|
+
!t.isAnchorClicked && c(!1);
|
|
22
|
+
}, []), r = s.toLanguageString(T, u[T]), f = s.toLanguageString(I, u[I]), p = s.toLanguageString(w, u[w]), x = o.useMemo(() => {
|
|
23
|
+
const t = [];
|
|
24
|
+
return e && t.push({ text: p, svgIcon: P, data: { action: "unpin" } }), i !== "top" && t.push({ text: r, svgIcon: L, data: { action: "pinTop" } }), i !== "bottom" && t.push({ text: f, svgIcon: M, data: { action: "pinBottom" } }), t;
|
|
25
|
+
}, [e, p, i, r, f]), B = o.useCallback(
|
|
26
|
+
(t) => {
|
|
27
|
+
var g, h, d;
|
|
28
|
+
const l = (h = (g = t.item) == null ? void 0 : g.data) == null ? void 0 : h.action;
|
|
29
|
+
(d = n == null ? void 0 : n.onRowPin) == null || d.call(n, l, a), c(!1);
|
|
30
|
+
},
|
|
31
|
+
[n, a]
|
|
32
|
+
);
|
|
33
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
34
|
+
"a",
|
|
35
|
+
{
|
|
36
|
+
className: "k-pin-cell",
|
|
37
|
+
ref: m,
|
|
38
|
+
href: k,
|
|
39
|
+
tabIndex: -1,
|
|
40
|
+
onClick: v,
|
|
41
|
+
"aria-label": e ? p : r
|
|
42
|
+
},
|
|
43
|
+
/* @__PURE__ */ o.createElement(E, { name: e ? "unpin" : "pin", icon: e ? P : z })
|
|
44
|
+
), /* @__PURE__ */ o.createElement(
|
|
45
|
+
O,
|
|
46
|
+
{
|
|
47
|
+
anchor: m.current,
|
|
48
|
+
show: S,
|
|
49
|
+
anchorAlign: { vertical: "bottom", horizontal: "right" },
|
|
50
|
+
popupClass: "k-menu-popup",
|
|
51
|
+
onMouseDownOutside: R
|
|
52
|
+
},
|
|
53
|
+
/* @__PURE__ */ o.createElement(A, { vertical: !0, items: x, onSelect: B })
|
|
54
|
+
));
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
q as GridPinDropdownButton
|
|
58
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridCellProps } from '../../interfaces/GridCellProps.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const useGridPinCellClientTdProps: (props: GridCellProps) => {
|
|
13
|
+
onContextMenu: (event: import('react').MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
14
|
+
style: any;
|
|
15
|
+
tabIndex?: undefined;
|
|
16
|
+
"data-keyboardnavlevel"?: undefined;
|
|
17
|
+
"data-keyboardnavid"?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
onContextMenu: (event: import('react').MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
20
|
+
style: any;
|
|
21
|
+
tabIndex: number;
|
|
22
|
+
"data-keyboardnavlevel": number;
|
|
23
|
+
"data-keyboardnavid": string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@progress/kendo-react-data-tools"),t=require("../hooks.js"),l=e=>{const n=s.useTableKeyboardNavigation(e.id),o=t.useContextMenuHandler(e.dataItem,e.field),i=t.usePositionStyle(e);return{...n,onContextMenu:o,style:i}};exports.useGridPinCellClientTdProps=l;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { useTableKeyboardNavigation as i } from "@progress/kendo-react-data-tools";
|
|
10
|
+
import { useContextMenuHandler as a, usePositionStyle as r } from "../hooks.mjs";
|
|
11
|
+
const u = (t) => {
|
|
12
|
+
const e = i(t.id), n = a(t.dataItem, t.field), o = r(t);
|
|
13
|
+
return {
|
|
14
|
+
...e,
|
|
15
|
+
onContextMenu: n,
|
|
16
|
+
style: o
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as useGridPinCellClientTdProps
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridCellProps } from '../../interfaces/GridCellProps.js';
|
|
9
|
+
import { GridTdAttributes } from '../../index.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const getPinCellTdProps: (props: GridCellProps) => {
|
|
14
|
+
tdProps: GridTdAttributes | null;
|
|
15
|
+
content: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const getCustomCell: (props: GridCellProps) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),s=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),d=require("./GridPinDropdownButton.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const g=u(r),m=e=>{var n;let t=null,l=null;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){const a=e.unstyled,i=(n=a==null?void 0:a.uGrid)!=null?n:c.uGrid,o=c.classNames(i.td({selected:e.isSelected,highlighted:e.isHighlighted,sorted:e.isSorted,alt:e.isAlt}),e.className);t={colSpan:e.colSpan,style:e.style,className:o,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[s.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},l=g.createElement(d.GridPinDropdownButton,{dataItem:e.dataItem})}return{tdProps:t,content:l}},f=e=>{var t,l;return(l=(t=e.cells)==null?void 0:t.pin)==null?void 0:l[e.rowType||"data"]};exports.getCustomCell=f;exports.getPinCellTdProps=m;
|