@progress/kendo-react-grid 10.0.0-develop.4 → 10.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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +21 -19
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +117 -116
- package/README.md +7 -11
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +1 -1
- package/header/Header.js +1 -1
- package/header/Header.mjs +16 -16
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -14
package/footer/Footer.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 s=require("react"),l=require("@progress/kendo-react-common"),i=require("../GridClientWrapper.js");function u(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),l=require("@progress/kendo-react-common"),i=require("../GridClientWrapper.js");function u(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const t=u(s),c=e=>{const o=t.useRef(null),r=t.useRef(null),n=t.useContext(i.GridContext);return t.useImperativeHandle(n.footerRef,()=>({setScrollLeft:a=>{o.current&&(o.current.scrollLeft=a)},setWidth:a=>{r.current&&(r.current.style.width=a?a+"px":"")}})),e.staticHeaders?t.createElement("div",{className:"k-grid-footer",role:"presentation"},t.createElement("div",{ref:o,className:"k-grid-footer-wrap",role:"presentation"},t.createElement("table",{ref:r,className:l.classNames("k-table k-grid-footer-table",{"k-table-md":!e.size,[`k-table-${l.kendoThemeMaps.sizeMap[e.size]||e.size}`]:e.size},e.className),role:"presentation"},t.createElement("colgroup",{ref:a=>{n.columnResizeRef.current.colGroupFooter=a},role:"presentation"},e.cols),t.createElement("tfoot",{className:"k-table-tfoot",role:"presentation"},e.row)))):t.createElement("tfoot",{className:"k-table-tfoot"},e.row)};c.displayName="KendoReactFooter";exports.Footer=c;
|
package/footer/Footer.mjs
CHANGED
|
@@ -16,7 +16,7 @@ const i = (t) => {
|
|
|
16
16
|
o.current && (o.current.scrollLeft = r);
|
|
17
17
|
},
|
|
18
18
|
setWidth: (r) => {
|
|
19
|
-
a.current && (a.current.style.width = r + "px");
|
|
19
|
+
a.current && (a.current.style.width = r ? r + "px" : "");
|
|
20
20
|
}
|
|
21
21
|
})), t.staticHeaders ? /* @__PURE__ */ e.createElement("div", { className: "k-grid-footer", role: "presentation" }, /* @__PURE__ */ e.createElement("div", { ref: o, className: "k-grid-footer-wrap", role: "presentation" }, /* @__PURE__ */ e.createElement(
|
|
22
22
|
"table",
|
package/header/Header.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 h=require("react"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),c=require("@progress/kendo-react-common"),m=require("@progress/kendo-react-data-tools"),y=require("../GridClientWrapper.js");function v(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=v(h),R=e=>{const r=t.useRef(null),a=t.useRef(null),s=t.useRef(!1),l=t.useContext(y.GridContext),b=c.useRtl(l.headerElementRef);l.columnResizeRef.current&&l.columnResizeRef.current.setIsRtl(b==="rtl"),t.useImperativeHandle(l.headerRef,()=>({setScrollLeft:n=>{r.current&&r.current.scrollLeft!==n&&(s.current=!0,r.current.scrollLeft=n)},setWidth:n=>{a.current&&(a.current.style.width=n?n+"px":"")},table:()=>a.current}));const g=n=>{var f;if(s.current){s.current=!1;return}if(!r.current)return;const d=r.current.scrollLeft,i=((f=l.vsRef.current)==null?void 0:f.container)||null;i&&i.scrollLeft!==d&&(i.scrollLeft=d)},u=c.useUnstyled(),o=u&&u.uGrid?u.uGrid:c.uGrid,{size:N="md"}=e;return e.staticHeaders?t.createElement("div",{ref:l.headerElementRef,className:c.classNames(o.header({draggable:e.draggable}),e.className),role:"presentation"},t.createElement("div",{ref:r,className:c.classNames(o.headerWrap({})),onScroll:g,role:"presentation"},t.createElement("table",{ref:a,className:c.classNames(o.headerTable({size:N}),e.className),role:"presentation"},t.createElement("colgroup",{ref:n=>{l.columnResizeRef.current&&(l.columnResizeRef.current.colGroupHeader=n)}},e.cols),t.createElement("thead",{className:c.classNames(o.tableThead({})),role:"rowgroup",...m.tableKeyboardNavigationHeaderAttributes},e.headerRow,e.filterRow)))):t.createElement("thead",{role:"presentation",className:c.classNames(o.thead({draggable:e.draggable}),e.className),...m.tableKeyboardNavigationHeaderAttributes},e.headerRow,e.filterRow)};R.displayName="KendoReactHeader";exports.Header=R;
|
package/header/Header.mjs
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as r from "react";
|
|
10
10
|
import { useRtl as g, useUnstyled as N, uGrid as E, classNames as c } from "@progress/kendo-react-common";
|
|
11
11
|
import { tableKeyboardNavigationHeaderAttributes as m } from "@progress/kendo-react-data-tools";
|
|
12
12
|
import { GridContext as v } from "../GridClientWrapper.mjs";
|
|
13
|
-
const
|
|
14
|
-
const l =
|
|
15
|
-
|
|
13
|
+
const y = (e) => {
|
|
14
|
+
const l = r.useRef(null), s = r.useRef(null), o = r.useRef(!1), t = r.useContext(v), R = g(t.headerElementRef);
|
|
15
|
+
t.columnResizeRef.current && t.columnResizeRef.current.setIsRtl(R === "rtl"), r.useImperativeHandle(t.headerRef, () => ({
|
|
16
16
|
setScrollLeft: (a) => {
|
|
17
17
|
l.current && l.current.scrollLeft !== a && (o.current = !0, l.current.scrollLeft = a);
|
|
18
18
|
},
|
|
19
19
|
setWidth: (a) => {
|
|
20
|
-
s.current && (s.current.style.width = a + "px");
|
|
20
|
+
s.current && (s.current.style.width = a ? a + "px" : "");
|
|
21
21
|
},
|
|
22
22
|
table: () => s.current
|
|
23
23
|
}));
|
|
@@ -29,17 +29,17 @@ const w = (e) => {
|
|
|
29
29
|
}
|
|
30
30
|
if (!l.current)
|
|
31
31
|
return;
|
|
32
|
-
const d = l.current.scrollLeft, i = ((f =
|
|
32
|
+
const d = l.current.scrollLeft, i = ((f = t.vsRef.current) == null ? void 0 : f.container) || null;
|
|
33
33
|
i && i.scrollLeft !== d && (i.scrollLeft = d);
|
|
34
34
|
}, u = N(), n = u && u.uGrid ? u.uGrid : E, { size: b = "md" } = e;
|
|
35
|
-
return e.staticHeaders ? /* @__PURE__ */
|
|
35
|
+
return e.staticHeaders ? /* @__PURE__ */ r.createElement(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
ref:
|
|
38
|
+
ref: t.headerElementRef,
|
|
39
39
|
className: c(n.header({ draggable: e.draggable }), e.className),
|
|
40
40
|
role: "presentation"
|
|
41
41
|
},
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ r.createElement(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
ref: l,
|
|
@@ -47,23 +47,23 @@ const w = (e) => {
|
|
|
47
47
|
onScroll: h,
|
|
48
48
|
role: "presentation"
|
|
49
49
|
},
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ r.createElement(
|
|
51
51
|
"table",
|
|
52
52
|
{
|
|
53
53
|
ref: s,
|
|
54
54
|
className: c(n.headerTable({ size: b }), e.className),
|
|
55
55
|
role: "presentation"
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ r.createElement(
|
|
58
58
|
"colgroup",
|
|
59
59
|
{
|
|
60
60
|
ref: (a) => {
|
|
61
|
-
|
|
61
|
+
t.columnResizeRef.current && (t.columnResizeRef.current.colGroupHeader = a);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
e.cols
|
|
65
65
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ r.createElement(
|
|
67
67
|
"thead",
|
|
68
68
|
{
|
|
69
69
|
className: c(n.tableThead({})),
|
|
@@ -75,7 +75,7 @@ const w = (e) => {
|
|
|
75
75
|
)
|
|
76
76
|
)
|
|
77
77
|
)
|
|
78
|
-
) : /* @__PURE__ */
|
|
78
|
+
) : /* @__PURE__ */ r.createElement(
|
|
79
79
|
"thead",
|
|
80
80
|
{
|
|
81
81
|
role: "presentation",
|
|
@@ -86,7 +86,7 @@ const w = (e) => {
|
|
|
86
86
|
e.filterRow
|
|
87
87
|
);
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
y.displayName = "KendoReactHeader";
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
y as Header
|
|
92
92
|
};
|
package/index.d.mts
CHANGED
|
@@ -2610,11 +2610,11 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2610
2610
|
*/
|
|
2611
2611
|
rowSpannable?: boolean | GridRowSpannableSettings;
|
|
2612
2612
|
/**
|
|
2613
|
-
*
|
|
2613
|
+
* The collection of column states of the grid.
|
|
2614
2614
|
*/
|
|
2615
2615
|
columnsState?: GridColumnState[];
|
|
2616
2616
|
/**
|
|
2617
|
-
*
|
|
2617
|
+
* The default columns state, used only for the initial load.
|
|
2618
2618
|
*/
|
|
2619
2619
|
defaultColumnsState?: GridColumnState[];
|
|
2620
2620
|
/**
|
package/index.d.ts
CHANGED
|
@@ -2610,11 +2610,11 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2610
2610
|
*/
|
|
2611
2611
|
rowSpannable?: boolean | GridRowSpannableSettings;
|
|
2612
2612
|
/**
|
|
2613
|
-
*
|
|
2613
|
+
* The collection of column states of the grid.
|
|
2614
2614
|
*/
|
|
2615
2615
|
columnsState?: GridColumnState[];
|
|
2616
2616
|
/**
|
|
2617
|
-
*
|
|
2617
|
+
* The default columns state, used only for the initial load.
|
|
2618
2618
|
*/
|
|
2619
2619
|
defaultColumnsState?: GridColumnState[];
|
|
2620
2620
|
/**
|
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={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1741695521,version:"10.0.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "KendoReact",
|
|
11
11
|
productCode: "KENDOUIREACT",
|
|
12
12
|
productCodes: ["KENDOUIREACT"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "10.0.0
|
|
13
|
+
publishDate: 1741695521,
|
|
14
|
+
version: "10.0.0",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.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",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-data-query": "^1.0.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
|
-
"@progress/kendo-licensing": "^1.5.
|
|
31
|
-
"@progress/kendo-react-animation": "10.0.0
|
|
32
|
-
"@progress/kendo-react-buttons": "10.0.0
|
|
33
|
-
"@progress/kendo-react-common": "10.0.0
|
|
34
|
-
"@progress/kendo-react-data-tools": "10.0.0
|
|
35
|
-
"@progress/kendo-react-dateinputs": "10.0.0
|
|
36
|
-
"@progress/kendo-react-indicators": "10.0.0
|
|
37
|
-
"@progress/kendo-react-dropdowns": "10.0.0
|
|
38
|
-
"@progress/kendo-react-inputs": "10.0.0
|
|
39
|
-
"@progress/kendo-react-intl": "10.0.0
|
|
40
|
-
"@progress/kendo-react-popup": "10.0.0
|
|
41
|
-
"@progress/kendo-react-layout": "10.0.0
|
|
30
|
+
"@progress/kendo-licensing": "^1.5.1",
|
|
31
|
+
"@progress/kendo-react-animation": "10.0.0",
|
|
32
|
+
"@progress/kendo-react-buttons": "10.0.0",
|
|
33
|
+
"@progress/kendo-react-common": "10.0.0",
|
|
34
|
+
"@progress/kendo-react-data-tools": "10.0.0",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "10.0.0",
|
|
36
|
+
"@progress/kendo-react-indicators": "10.0.0",
|
|
37
|
+
"@progress/kendo-react-dropdowns": "10.0.0",
|
|
38
|
+
"@progress/kendo-react-inputs": "10.0.0",
|
|
39
|
+
"@progress/kendo-react-intl": "10.0.0",
|
|
40
|
+
"@progress/kendo-react-popup": "10.0.0",
|
|
41
|
+
"@progress/kendo-react-layout": "10.0.0",
|
|
42
42
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
43
43
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
44
44
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"package": {
|
|
85
85
|
"productName": "KendoReact",
|
|
86
86
|
"productCode": "KENDOUIREACT",
|
|
87
|
-
"publishDate":
|
|
87
|
+
"publishDate": 1741695521,
|
|
88
88
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
89
89
|
}
|
|
90
90
|
},
|