@progress/kendo-react-grid 11.3.1-develop.1 → 11.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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +338 -322
- package/GridState.js +1 -1
- package/GridState.mjs +69 -64
- package/README.md +1 -1
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +325 -5
- package/index.d.ts +325 -5
- package/index.js +1 -1
- package/index.mjs +62 -58
- package/messages/index.js +2 -1
- package/messages/index.mjs +57 -48
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -16
- package/toolbar-tools/GridToolbarAI.js +9 -0
- package/toolbar-tools/GridToolbarAI.mjs +187 -0
- package/toolbar-tools/ai-tool/GridAIPrompt.js +9 -0
- package/toolbar-tools/ai-tool/GridAIPrompt.mjs +90 -0
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +11 -10
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 g=require("react"),L=g.createContext([{},()=>{},{}]),nt=()=>g.useContext(L),it=e=>{var f,k,m,G,P,H,D,b,y,F,T,j,q,M,O,R,w,z,A,B,I,J,K;const{children:N,onEditChange:u,onFilterChange:i,onSortChange:d,onSearchChange:o,onPageChange:h,onGroupChange:c,onDataStateChange:r,onSelectionChange:S,onDetailExpandChange:s,onGroupExpandChange:C,onHeaderSelectionChange:x,onColumnsStateChange:E}=e,[n,l]=g.useState({edit:(f=e.defaultEdit)!=null?f:e.edit,filter:(k=e.defaultFilter)!=null?k:e.filter,highlight:e.highlight,select:(m=e.defaultSelect)!=null?m:e.select,search:(G=e.defaultSearch)!=null?G:e.search,sort:(P=e.defaultSort)!=null?P:e.sort,take:(H=e.defaultTake)!=null?H:e.take,skip:(D=e.defaultSkip)!=null?D:e.skip,group:(b=e.defaultGroup)!=null?b:e.group,detailExpand:(y=e.defaultDetailExpand)!=null?y:e.detailExpand,groupExpand:(F=e.defaultGroupExpand)!=null?F:e.groupExpand,columnsState:(T=e.defaultColumnsState)!=null?T:e.columnsState}),Q={edit:(j=e.edit)!=null?j:n.edit,filter:(q=e.filter)!=null?q:n.filter,highlight:(M=e.highlight)!=null?M:n.highlight,search:(O=e.search)!=null?O:n.search,sort:(R=e.sort)!=null?R:n.sort,take:(w=e.take)!=null?w:n.take,skip:(z=e.skip)!=null?z:n.skip,group:(A=e.group)!=null?A:n.group,select:(B=e.select)!=null?B:n.select,detailExpand:(I=e.detailExpand)!=null?I:n.detailExpand,groupExpand:(J=e.groupExpand)!=null?J:n.groupExpand,columnsState:(K=e.columnsState)!=null?K:n.columnsState},U=t=>{},V=t=>{l(a=>({...a,edit:t.edit})),u==null||u(t)},W=t=>{l(a=>({...a,filter:t.filter})),i==null||i(t)},X=t=>{l(a=>({...a,highlight:t.highlight})),e.onHighlightChange&&e.onHighlightChange(t)},Y=t=>{l(a=>({...a,search:t.search})),o==null||o(t)},Z=t=>{l(a=>({...a,sort:t.sort})),d==null||d(t)},_=t=>{l(a=>({...a,...t.page})),h==null||h(t)},$=t=>{l(a=>({...a,group:t.group})),c==null||c(t)},v=t=>{l(a=>({...a,...t.dataState})),r==null||r(t)},p=t=>{l(a=>({...a,select:t.select})),S==null||S(t)},tt=t=>{l(a=>({...a,select:t.select})),x==null||x(t)},et=t=>{l(a=>({...a,detailExpand:t.detailExpand})),s==null||s(t)},at=t=>{l(a=>({...a,groupExpand:t.groupExpand})),C==null||C(t)},lt=t=>{l(a=>({...a,columnsState:t.columnsState})),E==null||E(t)};return g.createElement(L.Provider,{value:[Q,U,{onEditChange:V,onFilterChange:i&&W,onSearchChange:Y,onHighlightChange:X,onSortChange:d&&Z,onPageChange:h&&_,onGroupChange:c&&$,onDataStateChange:v,onSelectionChange:p,onHeaderSelectionChange:tt,onDetailExpandChange:et,onGroupExpandChange:at,onColumnsStateChange:lt}]},N)};exports.GridClientStateProvider=it;exports.useGridState=nt;
|
package/GridState.mjs
CHANGED
|
@@ -6,100 +6,105 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
}, {}]),
|
|
12
|
-
var
|
|
9
|
+
import g from "react";
|
|
10
|
+
const M = g.createContext([{}, () => {
|
|
11
|
+
}, {}]), ht = () => g.useContext(M), dt = (e) => {
|
|
12
|
+
var E, k, m, G, H, D, P, F, _, R, T, b, j, q, w, y, z, A, B, I, J, K, L;
|
|
13
13
|
const {
|
|
14
|
-
children:
|
|
15
|
-
onEditChange:
|
|
16
|
-
onFilterChange:
|
|
17
|
-
onSortChange:
|
|
18
|
-
onSearchChange:
|
|
14
|
+
children: N,
|
|
15
|
+
onEditChange: u,
|
|
16
|
+
onFilterChange: h,
|
|
17
|
+
onSortChange: d,
|
|
18
|
+
onSearchChange: o,
|
|
19
19
|
onPageChange: i,
|
|
20
|
-
onGroupChange:
|
|
21
|
-
onDataStateChange:
|
|
22
|
-
onSelectionChange:
|
|
23
|
-
onDetailExpandChange:
|
|
20
|
+
onGroupChange: c,
|
|
21
|
+
onDataStateChange: S,
|
|
22
|
+
onSelectionChange: r,
|
|
23
|
+
onDetailExpandChange: s,
|
|
24
24
|
onGroupExpandChange: x,
|
|
25
|
-
onHeaderSelectionChange:
|
|
25
|
+
onHeaderSelectionChange: C,
|
|
26
26
|
onColumnsStateChange: f
|
|
27
|
-
} = e, [
|
|
28
|
-
edit: (
|
|
27
|
+
} = e, [n, l] = g.useState({
|
|
28
|
+
edit: (E = e.defaultEdit) != null ? E : e.edit,
|
|
29
29
|
filter: (k = e.defaultFilter) != null ? k : e.filter,
|
|
30
|
+
highlight: e.highlight,
|
|
30
31
|
select: (m = e.defaultSelect) != null ? m : e.select,
|
|
31
32
|
search: (G = e.defaultSearch) != null ? G : e.search,
|
|
32
|
-
sort: (
|
|
33
|
-
take: (
|
|
34
|
-
skip: (
|
|
35
|
-
group: (
|
|
36
|
-
detailExpand: (
|
|
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: (_ = e.defaultDetailExpand) != null ? _ : e.detailExpand,
|
|
37
38
|
groupExpand: (R = e.defaultGroupExpand) != null ? R : e.groupExpand,
|
|
38
39
|
columnsState: (T = e.defaultColumnsState) != null ? T : e.columnsState
|
|
39
|
-
}),
|
|
40
|
-
edit: (b = e.edit) != null ? b :
|
|
41
|
-
filter: (j = e.filter) != null ? j :
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
}), O = {
|
|
41
|
+
edit: (b = e.edit) != null ? b : n.edit,
|
|
42
|
+
filter: (j = e.filter) != null ? j : n.filter,
|
|
43
|
+
highlight: (q = e.highlight) != null ? q : n.highlight,
|
|
44
|
+
search: (w = e.search) != null ? w : n.search,
|
|
45
|
+
sort: (y = e.sort) != null ? y : n.sort,
|
|
46
|
+
take: (z = e.take) != null ? z : n.take,
|
|
47
|
+
skip: (A = e.skip) != null ? A : n.skip,
|
|
48
|
+
group: (B = e.group) != null ? B : n.group,
|
|
49
|
+
select: (I = e.select) != null ? I : n.select,
|
|
50
|
+
detailExpand: (J = e.detailExpand) != null ? J : n.detailExpand,
|
|
51
|
+
groupExpand: (K = e.groupExpand) != null ? K : n.groupExpand,
|
|
52
|
+
columnsState: (L = e.columnsState) != null ? L : n.columnsState
|
|
52
53
|
}, Q = (t) => {
|
|
53
|
-
n((a) => ({ ...a, edit: t.edit })), o == null || o(t);
|
|
54
54
|
}, U = (t) => {
|
|
55
|
-
|
|
55
|
+
l((a) => ({ ...a, edit: t.edit })), u == null || u(t);
|
|
56
56
|
}, V = (t) => {
|
|
57
|
-
|
|
57
|
+
l((a) => ({ ...a, filter: t.filter })), h == null || h(t);
|
|
58
58
|
}, W = (t) => {
|
|
59
|
-
|
|
59
|
+
l((a) => ({ ...a, highlight: t.highlight })), e.onHighlightChange && e.onHighlightChange(t);
|
|
60
60
|
}, X = (t) => {
|
|
61
|
-
|
|
61
|
+
l((a) => ({ ...a, search: t.search })), o == null || o(t);
|
|
62
62
|
}, Y = (t) => {
|
|
63
|
-
|
|
63
|
+
l((a) => ({ ...a, sort: t.sort })), d == null || d(t);
|
|
64
64
|
}, Z = (t) => {
|
|
65
|
-
|
|
65
|
+
l((a) => ({ ...a, ...t.page })), i == null || i(t);
|
|
66
66
|
}, $ = (t) => {
|
|
67
|
-
|
|
67
|
+
l((a) => ({ ...a, group: t.group })), c == null || c(t);
|
|
68
68
|
}, v = (t) => {
|
|
69
|
-
|
|
69
|
+
l((a) => ({ ...a, ...t.dataState })), S == null || S(t);
|
|
70
70
|
}, p = (t) => {
|
|
71
|
-
|
|
71
|
+
l((a) => ({ ...a, select: t.select })), r == null || r(t);
|
|
72
72
|
}, tt = (t) => {
|
|
73
|
-
|
|
73
|
+
l((a) => ({ ...a, select: t.select })), C == null || C(t);
|
|
74
74
|
}, et = (t) => {
|
|
75
|
-
|
|
75
|
+
l((a) => ({ ...a, detailExpand: t.detailExpand })), s == null || s(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 })), f == null || f(t);
|
|
76
80
|
};
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
|
|
81
|
+
return /* @__PURE__ */ g.createElement(
|
|
82
|
+
M.Provider,
|
|
79
83
|
{
|
|
80
84
|
value: [
|
|
81
|
-
N,
|
|
82
85
|
O,
|
|
86
|
+
Q,
|
|
83
87
|
{
|
|
84
|
-
onEditChange:
|
|
85
|
-
onFilterChange:
|
|
86
|
-
onSearchChange:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
onEditChange: U,
|
|
89
|
+
onFilterChange: h && V,
|
|
90
|
+
onSearchChange: X,
|
|
91
|
+
onHighlightChange: W,
|
|
92
|
+
onSortChange: d && Y,
|
|
93
|
+
onPageChange: i && Z,
|
|
94
|
+
onGroupChange: c && $,
|
|
95
|
+
onDataStateChange: v,
|
|
96
|
+
onSelectionChange: p,
|
|
97
|
+
onHeaderSelectionChange: tt,
|
|
98
|
+
onDetailExpandChange: et,
|
|
99
|
+
onGroupExpandChange: at,
|
|
100
|
+
onColumnsStateChange: lt
|
|
96
101
|
}
|
|
97
102
|
]
|
|
98
103
|
},
|
|
99
|
-
|
|
104
|
+
N
|
|
100
105
|
);
|
|
101
106
|
};
|
|
102
107
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
dt as GridClientStateProvider,
|
|
109
|
+
ht as useGridState
|
|
105
110
|
};
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> **Important**
|
|
6
6
|
>
|
|
7
7
|
> - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—an enterprise-grade UI library with 120+ free and premium components.
|
|
8
|
-
> - This is a free React Data Grid (Table) component with premium features. To use the premium features of the KendoReact Data Grid
|
|
8
|
+
> - This is a free React Data Grid (Table) component with premium features. To use the premium features of the KendoReact Data Grid, you must install a license key file, whether you are on a paid license or a 30-day free trial. To receive a license key, either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing) or start a [free trial](https://www.telerik.com/download-login-v2-kendo-react-ui). You can use the free features even in production, no sign-up or license required.
|
|
9
9
|
> - If you're looking for more free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free).
|
|
10
10
|
> - If you have an active license, visit the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid) to learn how to configure your KendoReact licensing.
|
|
11
11
|
> - Installing and working with this package indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid).
|