@progress/kendo-react-grid 14.3.0-develop.6 → 14.3.0-develop.8

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.
Files changed (78) hide show
  1. package/GridClientContextReader.js +1 -1
  2. package/GridClientContextReader.mjs +10 -9
  3. package/GridClientWrapper.js +1 -1
  4. package/GridClientWrapper.mjs +672 -589
  5. package/GridComponent.js +1 -1
  6. package/GridComponent.mjs +427 -374
  7. package/GridState.d.ts +2 -0
  8. package/GridState.js +1 -1
  9. package/GridState.mjs +98 -90
  10. package/cells/pincell/GridPinCell.d.ts +15 -0
  11. package/cells/pincell/GridPinCell.js +9 -0
  12. package/cells/pincell/GridPinCell.mjs +19 -0
  13. package/cells/pincell/GridPinCellServer.d.ts +15 -0
  14. package/cells/pincell/GridPinCellServer.js +8 -0
  15. package/cells/pincell/GridPinCellServer.mjs +32 -0
  16. package/cells/pincell/GridPinCellServerContainer.d.ts +11 -0
  17. package/cells/pincell/GridPinCellServerContainer.js +9 -0
  18. package/cells/pincell/GridPinCellServerContainer.mjs +26 -0
  19. package/cells/pincell/GridPinDropdownButton.d.ts +21 -0
  20. package/cells/pincell/GridPinDropdownButton.js +9 -0
  21. package/cells/pincell/GridPinDropdownButton.mjs +58 -0
  22. package/cells/pincell/useGridPinCellClientTdProps.d.ts +24 -0
  23. package/cells/pincell/useGridPinCellClientTdProps.js +9 -0
  24. package/cells/pincell/useGridPinCellClientTdProps.mjs +21 -0
  25. package/cells/pincell/utils.d.ts +20 -0
  26. package/cells/pincell/utils.js +8 -0
  27. package/cells/pincell/utils.mjs +47 -0
  28. package/components/PinnedRowsTable.d.ts +48 -0
  29. package/components/PinnedRowsTable.js +9 -0
  30. package/components/PinnedRowsTable.mjs +133 -0
  31. package/components/StickyGroupTable.js +1 -1
  32. package/components/StickyGroupTable.mjs +1 -1
  33. package/contextMenu/GridContextMenu.d.ts +42 -0
  34. package/contextMenu/GridContextMenu.js +1 -1
  35. package/contextMenu/GridContextMenu.mjs +101 -51
  36. package/contextMenu/enums.d.ts +5 -1
  37. package/contextMenu/enums.js +1 -1
  38. package/contextMenu/enums.mjs +2 -2
  39. package/dist/cdn/js/kendo-react-grid.js +1 -1
  40. package/drag/ColumnResize.d.ts +9 -0
  41. package/drag/ColumnResize.js +1 -1
  42. package/drag/ColumnResize.mjs +105 -115
  43. package/getRowContents.d.ts +2 -2
  44. package/getRowContents.js +1 -1
  45. package/getRowContents.mjs +13 -14
  46. package/header/client/GridHeaderPinCell.d.ts +12 -0
  47. package/header/client/GridHeaderPinCell.js +9 -0
  48. package/header/client/GridHeaderPinCell.mjs +14 -0
  49. package/index.d.mts +5 -2
  50. package/index.d.ts +5 -2
  51. package/index.js +1 -1
  52. package/index.mjs +99 -95
  53. package/interfaces/ColumnType.d.ts +1 -1
  54. package/interfaces/GridCellsSettings.d.ts +23 -0
  55. package/interfaces/GridProps.d.ts +70 -1
  56. package/interfaces/GridRowProps.d.ts +4 -0
  57. package/interfaces/GridRowsSettings.d.ts +11 -0
  58. package/interfaces/events.d.ts +17 -0
  59. package/messages/index.d.ts +20 -0
  60. package/messages/index.js +2 -2
  61. package/messages/index.mjs +110 -102
  62. package/package-metadata.js +1 -1
  63. package/package-metadata.mjs +2 -2
  64. package/package.json +17 -17
  65. package/rows/GridRow.js +1 -1
  66. package/rows/GridRow.mjs +25 -24
  67. package/rows/GridRowRenderer.d.ts +1 -0
  68. package/rows/GridRowRenderer.js +1 -1
  69. package/rows/GridRowRenderer.mjs +39 -36
  70. package/stacked/GridStackedRow.d.ts +5 -0
  71. package/stacked/GridStackedRow.js +1 -1
  72. package/stacked/GridStackedRow.mjs +118 -116
  73. package/stacked/StackedModeRow.d.ts +1 -0
  74. package/stacked/StackedModeRow.js +1 -1
  75. package/stacked/StackedModeRow.mjs +13 -11
  76. package/utils/index.d.ts +1 -0
  77. package/utils/index.js +1 -1
  78. package/utils/index.mjs +44 -44
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 lt=require("react");function it(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const d=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(c,i,d.get?d:{enumerable:!0,get:()=>t[i]})}}return c.default=t,Object.freeze(c)}const o=it(lt),K=o.createContext([{},()=>{},{}]),dt=()=>o.useContext(K),ct=t=>{var m,k,G,b,P,D,O,j,y,H,T,_,F,M,R,q,w,z,N,A,B,I,J;const{children:c,onEditChange:i,onFilterChange:d,onSortChange:h,onSearchChange:r,onPageChange:g,onGroupChange:u,onDataStateChange:s,onSelectionChange:S,onDetailExpandChange:f,onGroupExpandChange:C,onHeaderSelectionChange:x,onColumnsStateChange:E}=t,[l,n]=o.useState({edit:(m=t.defaultEdit)!=null?m:t.edit,filter:(k=t.defaultFilter)!=null?k:t.filter,highlight:t.highlight,select:(G=t.defaultSelect)!=null?G:t.select,search:(b=t.defaultSearch)!=null?b:t.search,sort:(P=t.defaultSort)!=null?P:t.sort,take:(D=t.defaultTake)!=null?D:t.take,skip:(O=t.defaultSkip)!=null?O:t.skip,group:(j=t.defaultGroup)!=null?j:t.group,detailExpand:(y=t.defaultDetailExpand)!=null?y:t.detailExpand,groupExpand:(H=t.defaultGroupExpand)!=null?H:t.groupExpand,columnsState:(T=t.defaultColumnsState)!=null?T:t.columnsState}),L={edit:(_=t.edit)!=null?_:l.edit,filter:(F=t.filter)!=null?F:l.filter,highlight:(M=t.highlight)!=null?M:l.highlight,search:(R=t.search)!=null?R:l.search,sort:(q=t.sort)!=null?q:l.sort,take:(w=t.take)!=null?w:l.take,skip:(z=t.skip)!=null?z:l.skip,group:(N=t.group)!=null?N:l.group,select:(A=t.select)!=null?A:l.select,detailExpand:(B=t.detailExpand)!=null?B:l.detailExpand,groupExpand:(I=t.groupExpand)!=null?I:l.groupExpand,columnsState:(J=t.columnsState)!=null?J:l.columnsState},Q=e=>{},U=e=>{n(a=>({...a,edit:e.edit})),i==null||i(e)},V=e=>{n(a=>({...a,filter:e.filter})),d==null||d(e)},W=e=>{n(a=>({...a,highlight:e.highlight})),t.onHighlightChange&&t.onHighlightChange(e)},X=e=>{n(a=>({...a,search:e.search,skip:0})),r==null||r(e)},Y=e=>{n(a=>({...a,sort:e.sort})),h==null||h(e)},Z=e=>{n(a=>({...a,...e.page})),g==null||g(e)},$=e=>{n(a=>({...a,group:e.group})),u==null||u(e)},v=e=>{n(a=>({...a,...e.dataState})),s==null||s(e)},p=e=>{n(a=>({...a,select:e.select})),S==null||S(e)},tt=e=>{n(a=>({...a,select:e.select})),x==null||x(e)},et=e=>{n(a=>({...a,detailExpand:e.detailExpand})),f==null||f(e)},at=e=>{n(a=>({...a,groupExpand:e.groupExpand})),C==null||C(e)},nt=e=>{n(a=>({...a,columnsState:e.columnsState})),E==null||E(e)};return o.createElement(K.Provider,{value:[L,Q,{onEditChange:U,onFilterChange:d&&V,onSearchChange:X,onHighlightChange:W,onSortChange:h&&Y,onPageChange:g&&Z,onGroupChange:u&&$,onDataStateChange:v,onSelectionChange:p,onHeaderSelectionChange:tt,onDetailExpandChange:et,onGroupExpandChange:at,onColumnsStateChange:nt}]},c)};exports.GridClientStateProvider=ct;exports.useGridState=dt;
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 g from "react";
10
- const N = g.createContext([{}, () => {
11
- }, {}]), nt = () => g.useContext(N), ht = (e) => {
12
- var f, k, m, G, H, D, P, F, R, T, b, j, q, w, y, z, A, B, I, J, K, L, M;
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: O,
15
- onEditChange: u,
16
- onFilterChange: h,
17
- onSortChange: i,
18
- onSearchChange: o,
19
- onPageChange: d,
20
- onGroupChange: c,
21
- onDataStateChange: S,
22
- onSelectionChange: s,
23
- onDetailExpandChange: r,
24
- onGroupExpandChange: x,
25
- onHeaderSelectionChange: C,
26
- onColumnsStateChange: E
27
- } = e, [n, l] = g.useState({
28
- edit: (f = e.defaultEdit) != null ? f : e.edit,
29
- filter: (k = e.defaultFilter) != null ? k : e.filter,
30
- highlight: e.highlight,
31
- select: (m = e.defaultSelect) != null ? m : e.select,
32
- search: (G = e.defaultSearch) != null ? G : e.search,
33
- sort: (H = e.defaultSort) != null ? H : e.sort,
34
- take: (D = e.defaultTake) != null ? D : e.take,
35
- skip: (P = e.defaultSkip) != null ? P : e.skip,
36
- group: (F = e.defaultGroup) != null ? F : e.group,
37
- detailExpand: (R = e.defaultDetailExpand) != null ? R : e.detailExpand,
38
- groupExpand: (T = e.defaultGroupExpand) != null ? T : e.groupExpand,
39
- columnsState: (b = e.defaultColumnsState) != null ? b : e.columnsState
40
- }), Q = {
41
- edit: (j = e.edit) != null ? j : n.edit,
42
- filter: (q = e.filter) != null ? q : n.filter,
43
- highlight: (w = e.highlight) != null ? w : n.highlight,
44
- search: (y = e.search) != null ? y : n.search,
45
- sort: (z = e.sort) != null ? z : n.sort,
46
- take: (A = e.take) != null ? A : n.take,
47
- skip: (B = e.skip) != null ? B : n.skip,
48
- group: (I = e.group) != null ? I : n.group,
49
- select: (J = e.select) != null ? J : n.select,
50
- detailExpand: (K = e.detailExpand) != null ? K : n.detailExpand,
51
- groupExpand: (L = e.groupExpand) != null ? L : n.groupExpand,
52
- columnsState: (M = e.columnsState) != null ? M : n.columnsState
53
- }, U = (t) => {
54
- }, V = (t) => {
55
- l((a) => ({ ...a, edit: t.edit })), u == null || u(t);
56
- }, W = (t) => {
57
- l((a) => ({ ...a, filter: t.filter })), h == null || h(t);
58
- }, X = (t) => {
59
- l((a) => ({ ...a, highlight: t.highlight })), e.onHighlightChange && e.onHighlightChange(t);
60
- }, Y = (t) => {
61
- l((a) => ({ ...a, search: t.search, skip: 0 })), o == null || o(t);
62
- }, Z = (t) => {
63
- l((a) => ({ ...a, sort: t.sort })), i == null || i(t);
64
- }, _ = (t) => {
65
- l((a) => ({ ...a, ...t.page })), d == null || d(t);
66
- }, $ = (t) => {
67
- l((a) => ({ ...a, group: t.group })), c == null || c(t);
68
- }, v = (t) => {
69
- l((a) => ({ ...a, ...t.dataState })), S == null || S(t);
70
- }, p = (t) => {
71
- l((a) => ({ ...a, select: t.select })), s == null || s(t);
72
- }, tt = (t) => {
73
- l((a) => ({ ...a, select: t.select })), C == null || C(t);
74
- }, et = (t) => {
75
- l((a) => ({ ...a, detailExpand: t.detailExpand })), r == null || r(t);
76
- }, at = (t) => {
77
- l((a) => ({ ...a, groupExpand: t.groupExpand })), x == null || x(t);
78
- }, lt = (t) => {
79
- l((a) => ({ ...a, columnsState: t.columnsState })), E == null || E(t);
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__ */ g.createElement(
82
- N.Provider,
88
+ return /* @__PURE__ */ c.createElement(
89
+ W.Provider,
83
90
  {
84
91
  value: [
85
- Q,
86
- U,
92
+ Y,
93
+ Z,
87
94
  {
88
- onEditChange: V,
89
- onFilterChange: h && W,
90
- onSearchChange: Y,
91
- onHighlightChange: X,
92
- onSortChange: i && Z,
93
- onPageChange: d && _,
94
- onGroupChange: c && $,
95
- onDataStateChange: v,
96
- onSelectionChange: p,
97
- onHeaderSelectionChange: tt,
98
- onDetailExpandChange: et,
99
- onGroupExpandChange: at,
100
- onColumnsStateChange: lt
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
- O
112
+ X
105
113
  );
106
114
  };
107
115
  export {
108
- ht as GridClientStateProvider,
109
- nt as useGridState
116
+ ut as GridClientStateProvider,
117
+ gt as useGridState
110
118
  };
@@ -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 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;