@progress/kendo-react-grid 14.0.0-develop.2 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +17 -17
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.d.ts +8 -2
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.js +1 -1
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.mjs +27 -13
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770743002,version:"14.0.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '14.0.0
|
|
11
|
+
version: '14.0.0',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "14.0.0
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"@progress/kendo-data-query": "^1.7.2",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.2",
|
|
31
|
-
"@progress/kendo-react-animation": "14.0.0
|
|
32
|
-
"@progress/kendo-react-buttons": "14.0.0
|
|
33
|
-
"@progress/kendo-react-common": "14.0.0
|
|
34
|
-
"@progress/kendo-react-data-tools": "14.0.0
|
|
35
|
-
"@progress/kendo-react-dateinputs": "14.0.0
|
|
36
|
-
"@progress/kendo-react-indicators": "14.0.0
|
|
37
|
-
"@progress/kendo-react-form": "14.0.0
|
|
38
|
-
"@progress/kendo-react-labels": "14.0.0
|
|
39
|
-
"@progress/kendo-react-dialogs": "14.0.0
|
|
40
|
-
"@progress/kendo-react-dropdowns": "14.0.0
|
|
41
|
-
"@progress/kendo-react-inputs": "14.0.0
|
|
42
|
-
"@progress/kendo-react-intl": "14.0.0
|
|
43
|
-
"@progress/kendo-react-popup": "14.0.0
|
|
44
|
-
"@progress/kendo-react-layout": "14.0.0
|
|
45
|
-
"@progress/kendo-react-conversational-ui": "14.0.0
|
|
31
|
+
"@progress/kendo-react-animation": "14.0.0",
|
|
32
|
+
"@progress/kendo-react-buttons": "14.0.0",
|
|
33
|
+
"@progress/kendo-react-common": "14.0.0",
|
|
34
|
+
"@progress/kendo-react-data-tools": "14.0.0",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "14.0.0",
|
|
36
|
+
"@progress/kendo-react-indicators": "14.0.0",
|
|
37
|
+
"@progress/kendo-react-form": "14.0.0",
|
|
38
|
+
"@progress/kendo-react-labels": "14.0.0",
|
|
39
|
+
"@progress/kendo-react-dialogs": "14.0.0",
|
|
40
|
+
"@progress/kendo-react-dropdowns": "14.0.0",
|
|
41
|
+
"@progress/kendo-react-inputs": "14.0.0",
|
|
42
|
+
"@progress/kendo-react-intl": "14.0.0",
|
|
43
|
+
"@progress/kendo-react-popup": "14.0.0",
|
|
44
|
+
"@progress/kendo-react-layout": "14.0.0",
|
|
45
|
+
"@progress/kendo-react-conversational-ui": "14.0.0",
|
|
46
46
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
47
47
|
"react": "^18.0.0 || ^19.0.0",
|
|
48
48
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"package": {
|
|
148
148
|
"productName": "KendoReact",
|
|
149
149
|
"productCode": "KENDOUIREACT",
|
|
150
|
-
"publishDate":
|
|
150
|
+
"publishDate": 1770743002,
|
|
151
151
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -55,9 +55,13 @@ export interface SmartBoxGridContextType {
|
|
|
55
55
|
*/
|
|
56
56
|
take?: number;
|
|
57
57
|
/**
|
|
58
|
-
* Reference to the grid columns.
|
|
58
|
+
* Reference to the visible grid columns.
|
|
59
59
|
*/
|
|
60
60
|
columnsRef?: any[];
|
|
61
|
+
/**
|
|
62
|
+
* Reference to the hidden grid columns.
|
|
63
|
+
*/
|
|
64
|
+
hiddenColumnsRef?: any[];
|
|
61
65
|
/**
|
|
62
66
|
* The data item key field name.
|
|
63
67
|
*/
|
|
@@ -207,10 +211,12 @@ export interface SmartBoxGridRef {
|
|
|
207
211
|
*/
|
|
208
212
|
export interface UseSmartBoxGridStateResult {
|
|
209
213
|
/**
|
|
210
|
-
* The grid columns with their field names.
|
|
214
|
+
* The grid columns with their field names, IDs, and possible values.
|
|
211
215
|
*/
|
|
212
216
|
columns: Array<{
|
|
217
|
+
id?: string;
|
|
213
218
|
field: string;
|
|
219
|
+
values?: any[];
|
|
214
220
|
}>;
|
|
215
221
|
/**
|
|
216
222
|
* The current grid state snapshot.
|
|
@@ -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 k=require("react");function v(s){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const u in s)if(u!=="default"){const f=Object.getOwnPropertyDescriptor(s,u);Object.defineProperty(c,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}return c.default=s,Object.freeze(c)}const a=v(k);function r(s){const c=a.useMemo(()=>{var l;if(s!=null&&s.columnsRef&&Array.isArray(s.columnsRef)){const e=s.columnsRef,p=(l=s.hiddenColumnsRef)!=null?l:[];return[...e,...p].map(h=>{var m;return{id:h.id,field:h.field,values:(m=h.values)!=null?m:[]}})}return[]},[s==null?void 0:s.columnsRef,s==null?void 0:s.hiddenColumnsRef]),u=a.useMemo(()=>s?{sort:s.sort,filter:s.filter,group:s.group,highlight:s.highlight,select:s.select,columnsState:s.columnsState,skip:s.skip,take:s.take}:void 0,[s]),f=a.useMemo(()=>s?{getTotal:()=>s.getTotal(),getLeafDataItems:()=>s.getLeafDataItems(),exportAsPdf:()=>s.exportAsPdf(),props:{dataItemKey:s.dataItemKey}}:null,[s]),o=a.useCallback(l=>{var e,p;s&&(l.sort!==void 0&&l.sort!==s.sort&&s.sortChange(l.sort,{}),l.filter!==s.filter&&s.filterChange(l.filter,{}),l.group!==void 0&&l.group!==s.group&&s.groupChange(l.group,{}),l.highlight!==void 0&&l.highlight!==s.highlight&&s.applyHighlightDescriptor(l.highlight),l.select!==void 0&&l.select!==s.select&&s.applySelectionDescriptor(l.select),l.columnsState!==void 0&&l.columnsState!==s.columnsState&&s.onColumnsStateChange(l.columnsState),(l.skip!==void 0&&l.skip!==s.skip||l.take!==void 0&&l.take!==s.take)&&s.pagerPageChange({skip:(e=l.skip)!=null?e:0,take:(p=l.take)!=null?p:0,syntheticEvent:{}}))},[s]),i=a.useCallback(()=>{s==null||s.exportAsPdf()},[s]);return{columns:c,gridState:u,gridRef:f,handleStateChange:o,exportAsPdf:i}}exports.useSmartBoxGridState=r;
|
|
@@ -7,8 +7,22 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as u from "react";
|
|
10
|
-
function
|
|
11
|
-
const p = u.useMemo(() =>
|
|
10
|
+
function i(s) {
|
|
11
|
+
const p = u.useMemo(() => {
|
|
12
|
+
var l;
|
|
13
|
+
if (s != null && s.columnsRef && Array.isArray(s.columnsRef)) {
|
|
14
|
+
const f = s.columnsRef, h = (l = s.hiddenColumnsRef) != null ? l : [];
|
|
15
|
+
return [...f, ...h].map((a) => {
|
|
16
|
+
var c;
|
|
17
|
+
return {
|
|
18
|
+
id: a.id,
|
|
19
|
+
field: a.field,
|
|
20
|
+
values: (c = a.values) != null ? c : []
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return [];
|
|
25
|
+
}, [s == null ? void 0 : s.columnsRef, s == null ? void 0 : s.hiddenColumnsRef]), m = u.useMemo(
|
|
12
26
|
() => s ? {
|
|
13
27
|
sort: s.sort,
|
|
14
28
|
filter: s.filter,
|
|
@@ -20,7 +34,7 @@ function v(s) {
|
|
|
20
34
|
take: s.take
|
|
21
35
|
} : void 0,
|
|
22
36
|
[s]
|
|
23
|
-
),
|
|
37
|
+
), k = u.useMemo(
|
|
24
38
|
() => s ? {
|
|
25
39
|
getTotal: () => s.getTotal(),
|
|
26
40
|
getLeafDataItems: () => s.getLeafDataItems(),
|
|
@@ -28,27 +42,27 @@ function v(s) {
|
|
|
28
42
|
props: { dataItemKey: s.dataItemKey }
|
|
29
43
|
} : null,
|
|
30
44
|
[s]
|
|
31
|
-
),
|
|
45
|
+
), v = u.useCallback(
|
|
32
46
|
(l) => {
|
|
33
|
-
var
|
|
47
|
+
var f, h;
|
|
34
48
|
s && (l.sort !== void 0 && l.sort !== s.sort && s.sortChange(l.sort, {}), l.filter !== s.filter && s.filterChange(l.filter, {}), l.group !== void 0 && l.group !== s.group && s.groupChange(l.group, {}), l.highlight !== void 0 && l.highlight !== s.highlight && s.applyHighlightDescriptor(l.highlight), l.select !== void 0 && l.select !== s.select && s.applySelectionDescriptor(l.select), l.columnsState !== void 0 && l.columnsState !== s.columnsState && s.onColumnsStateChange(l.columnsState), (l.skip !== void 0 && l.skip !== s.skip || l.take !== void 0 && l.take !== s.take) && s.pagerPageChange({
|
|
35
|
-
skip: (
|
|
36
|
-
take: (
|
|
49
|
+
skip: (f = l.skip) != null ? f : 0,
|
|
50
|
+
take: (h = l.take) != null ? h : 0,
|
|
37
51
|
syntheticEvent: {}
|
|
38
52
|
}));
|
|
39
53
|
},
|
|
40
54
|
[s]
|
|
41
|
-
),
|
|
55
|
+
), R = u.useCallback(() => {
|
|
42
56
|
s == null || s.exportAsPdf();
|
|
43
57
|
}, [s]);
|
|
44
58
|
return {
|
|
45
59
|
columns: p,
|
|
46
|
-
gridState:
|
|
47
|
-
gridRef:
|
|
48
|
-
handleStateChange:
|
|
49
|
-
exportAsPdf:
|
|
60
|
+
gridState: m,
|
|
61
|
+
gridRef: k,
|
|
62
|
+
handleStateChange: v,
|
|
63
|
+
exportAsPdf: R
|
|
50
64
|
};
|
|
51
65
|
}
|
|
52
66
|
export {
|
|
53
|
-
|
|
67
|
+
i as useSmartBoxGridState
|
|
54
68
|
};
|