@progress/kendo-react-grid 9.0.0-develop.9 → 9.0.1-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/Grid.js +1 -1
- package/Grid.mjs +927 -1042
- package/GridNoRecords.js +1 -1
- package/GridNoRecords.mjs +7 -14
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +23 -28
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +53 -51
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +16 -14
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +99 -113
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +132 -178
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +123 -156
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +42 -53
- package/columnMenu/GridColumnMenuFilterUI.js +1 -1
- package/columnMenu/GridColumnMenuFilterUI.mjs +15 -17
- package/columnMenu/GridColumnMenuGroup.js +1 -1
- package/columnMenu/GridColumnMenuGroup.mjs +29 -40
- package/columnMenu/GridColumnMenuItemContent.js +1 -1
- package/columnMenu/GridColumnMenuItemContent.mjs +7 -20
- package/columnMenu/GridColumnMenuItemGroup.js +1 -1
- package/columnMenu/GridColumnMenuItemGroup.mjs +7 -20
- package/columnMenu/GridColumnMenuSort.js +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +42 -53
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnDraggable.js +1 -1
- package/drag/ColumnDraggable.mjs +34 -45
- package/drag/GroupingIndicator.js +1 -1
- package/drag/GroupingIndicator.mjs +51 -69
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +40 -57
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +70 -78
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +28 -37
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +43 -49
- package/header/Header.js +1 -1
- package/header/Header.mjs +70 -89
- package/index.d.mts +261 -725
- package/index.d.ts +261 -725
- package/index.js +1 -1
- package/index.mjs +78 -80
- package/package-metadata.mjs +1 -1
- package/package.json +11 -11
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +2 -10
|
@@ -6,42 +6,33 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { GridColumnMenuWrapper as
|
|
11
|
-
import { selectRow as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
t.columnMenu && /* @__PURE__ */ e.createElement(c, { ...t })
|
|
37
|
-
];
|
|
38
|
-
return this.props.render ? this.props.render.call(void 0, r, this.props) : r;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
p(i);
|
|
42
|
-
const C = d(
|
|
43
|
-
h(i)
|
|
44
|
-
);
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { GridColumnMenuWrapper as d } from "../columnMenu/GridColumnMenuWrapper.mjs";
|
|
11
|
+
import { selectRow as a, messages as m } from "../messages/index.mjs";
|
|
12
|
+
import { useLocalization as u } from "@progress/kendo-react-intl";
|
|
13
|
+
import { useId as s } from "@progress/kendo-react-common";
|
|
14
|
+
const b = (e) => {
|
|
15
|
+
const l = s(), o = u(), i = e.id || l, { columnMenuWrapperProps: t } = e, c = [
|
|
16
|
+
/* @__PURE__ */ n.createElement("span", { key: 0, className: "k-checkbox-wrap" }, /* @__PURE__ */ n.createElement(
|
|
17
|
+
"input",
|
|
18
|
+
{
|
|
19
|
+
id: i,
|
|
20
|
+
type: "checkbox",
|
|
21
|
+
tabIndex: -1,
|
|
22
|
+
className: "k-checkbox k-checkbox-md k-rounded-md",
|
|
23
|
+
"aria-label": o.toLanguageString(a, m[a]),
|
|
24
|
+
"aria-checked": e.selectionValue,
|
|
25
|
+
checked: e.selectionValue,
|
|
26
|
+
onChange: (r) => e.selectionChange({
|
|
27
|
+
field: e.field,
|
|
28
|
+
syntheticEvent: r
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
)),
|
|
32
|
+
t.columnMenu && /* @__PURE__ */ n.createElement(d, { ...t })
|
|
33
|
+
];
|
|
34
|
+
return e.render ? e.render.call(void 0, c, e) : c;
|
|
35
|
+
};
|
|
45
36
|
export {
|
|
46
|
-
|
|
37
|
+
b as GridHeaderSelectionCell
|
|
47
38
|
};
|
package/header/GroupPanel.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),p=require("../drag/GroupingIndicator.js"),b=require("@progress/kendo-react-intl"),a=require("../messages/index.js");function f(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(l,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const i=f(m),P=e=>{const l=(o,n)=>{const t=e.group.slice();t.splice(n,1),e.groupChange(t,o)},r=(o,n,t,s)=>{const d=Object.assign({},t,{dir:s}),g=e.group.slice();g.splice(n,1,d),e.groupChange(g,o)},c=b.useLocalization(),u=(e.group||[]).map((o,n)=>i.createElement(p.GroupingIndicator,{key:n,index:n,dir:o.dir||"asc",title:e.resolveTitle(o.field),onRemove:t=>{l(t,n)},onSortChange:(t,s)=>{r(t,n,o,s)},onPress:e.pressHandler,onDrag:e.dragHandler,onRelease:e.releaseHandler,onContextMenu:e.onContextMenu}));return i.createElement("div",{ref:e.refCallback,className:"k-grouping-header",role:"toolbar","aria-label":c.toLanguageString(a.groupPanelAriaLabel,a.messages[a.groupPanelAriaLabel]),"aria-controls":e.ariaControls||""},i.createElement("div",{className:"k-chip-list k-chip-list-md",role:"none"},u),i.createElement("div",{className:"k-grouping-drop-container"},!u.length&&c.toLanguageString(a.groupPanelEmpty,a.messages[a.groupPanelEmpty])," "))};exports.GroupPanel=P;
|
package/header/GroupPanel.mjs
CHANGED
|
@@ -6,55 +6,49 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { GroupingIndicator as
|
|
11
|
-
import {
|
|
12
|
-
import { groupPanelAriaLabel as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
dir: o.dir || "asc",
|
|
30
|
-
title: this.props.resolveTitle(o.field),
|
|
31
|
-
onRemove: (s) => {
|
|
32
|
-
this.onGroupRemove(s, e);
|
|
33
|
-
},
|
|
34
|
-
onSortChange: (s, n) => {
|
|
35
|
-
this.onGroupSortChange(s, e, o, n);
|
|
36
|
-
},
|
|
37
|
-
onPress: this.props.pressHandler,
|
|
38
|
-
onDrag: this.props.dragHandler,
|
|
39
|
-
onRelease: this.props.releaseHandler,
|
|
40
|
-
onContextMenu: this.props.onContextMenu
|
|
41
|
-
}
|
|
42
|
-
));
|
|
43
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
ref: this.props.refCallback,
|
|
47
|
-
className: "k-grouping-header",
|
|
48
|
-
role: "toolbar",
|
|
49
|
-
"aria-label": a(this).toLanguageString(i, l[i]),
|
|
50
|
-
"aria-controls": this.props.ariaControls || ""
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { GroupingIndicator as h } from "../drag/GroupingIndicator.mjs";
|
|
11
|
+
import { useLocalization as C } from "@progress/kendo-react-intl";
|
|
12
|
+
import { groupPanelAriaLabel as c, messages as g, groupPanelEmpty as u } from "../messages/index.mjs";
|
|
13
|
+
const P = (e) => {
|
|
14
|
+
const m = (a, o) => {
|
|
15
|
+
const n = e.group.slice();
|
|
16
|
+
n.splice(o, 1), e.groupChange(n, a);
|
|
17
|
+
}, d = (a, o, n, t) => {
|
|
18
|
+
const p = Object.assign({}, n, { dir: t }), s = e.group.slice();
|
|
19
|
+
s.splice(o, 1, p), e.groupChange(s, a);
|
|
20
|
+
}, l = C(), i = (e.group || []).map((a, o) => /* @__PURE__ */ r.createElement(
|
|
21
|
+
h,
|
|
22
|
+
{
|
|
23
|
+
key: o,
|
|
24
|
+
index: o,
|
|
25
|
+
dir: a.dir || "asc",
|
|
26
|
+
title: e.resolveTitle(a.field),
|
|
27
|
+
onRemove: (n) => {
|
|
28
|
+
m(n, o);
|
|
51
29
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
onSortChange: (n, t) => {
|
|
31
|
+
d(n, o, a, t);
|
|
32
|
+
},
|
|
33
|
+
onPress: e.pressHandler,
|
|
34
|
+
onDrag: e.dragHandler,
|
|
35
|
+
onRelease: e.releaseHandler,
|
|
36
|
+
onContextMenu: e.onContextMenu
|
|
37
|
+
}
|
|
38
|
+
));
|
|
39
|
+
return /* @__PURE__ */ r.createElement(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
ref: e.refCallback,
|
|
43
|
+
className: "k-grouping-header",
|
|
44
|
+
role: "toolbar",
|
|
45
|
+
"aria-label": l.toLanguageString(c, g[c]),
|
|
46
|
+
"aria-controls": e.ariaControls || ""
|
|
47
|
+
},
|
|
48
|
+
/* @__PURE__ */ r.createElement("div", { className: "k-chip-list k-chip-list-md", role: "none" }, i),
|
|
49
|
+
/* @__PURE__ */ r.createElement("div", { className: "k-grouping-drop-container" }, !i.length && l.toLanguageString(u, g[u]), " ")
|
|
50
|
+
);
|
|
51
|
+
};
|
|
58
52
|
export {
|
|
59
|
-
|
|
53
|
+
P as GroupPanel
|
|
60
54
|
};
|
package/header/Header.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),r=require("@progress/kendo-react-common"),f=require("@progress/kendo-react-data-tools");function h(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=h(N),m=a.forwardRef((e,n)=>{const t=a.useRef(null),l=a.useRef(null),o=a.useRef(!1),b=r.useRtl(e.elemRef);e.columnResize&&e.columnResize.setIsRtl(b==="rtl"),a.useImperativeHandle(n,()=>({setScrollLeft:c=>{t.current&&t.current.scrollLeft!==c&&(o.current=!0,t.current.scrollLeft=c)},setWidth:c=>{l.current&&(l.current.style.width=c+"px")},table:()=>l.current}));const g=c=>{if(o.current){o.current=!1;return}if(!t.current)return;const d=t.current.scrollLeft,i=e.scrollableDataElement();i&&i.scrollLeft!==d&&(i.scrollLeft=d)},u=r.useUnstyled(),s=u&&u.uGrid?u.uGrid:r.uGrid,{size:R="md"}=e;return e.staticHeaders?a.createElement("div",{ref:e.elemRef,className:r.classNames(s.header({draggable:e.draggable}),e.className),role:"presentation"},a.createElement("div",{ref:t,className:r.classNames(s.headerWrap({})),style:e.hasScrollbarWidth?{}:{borderWidth:0},onScroll:g,role:"presentation"},a.createElement("table",{ref:l,className:r.classNames(s.headerTable({size:R}),e.className),role:"presentation"},a.createElement("colgroup",{ref:c=>{e.columnResize.colGroupHeader=c}},e.cols),a.createElement("thead",{className:r.classNames(s.tableThead({})),role:"rowgroup",...f.tableKeyboardNavigationHeaderAttributes},e.headerRow,e.filterRow)))):a.createElement("thead",{role:"presentation",className:r.classNames(s.thead({draggable:e.draggable}),e.className),...f.tableKeyboardNavigationHeaderAttributes},e.headerRow,e.filterRow)});m.displayName="KendoReactHeader";exports.Header=m;
|
package/header/Header.mjs
CHANGED
|
@@ -6,105 +6,86 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* @param width - Scrolls the width (in pixels).
|
|
42
|
-
*/
|
|
43
|
-
setWidth(e) {
|
|
44
|
-
this.table && (this.table.style.width = e + "px");
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
const e = this.context && this.context.uGrid ? this.context.uGrid : i, { size: l = "md" } = this.props;
|
|
48
|
-
return this.props.staticHeaders ? /* @__PURE__ */ s.createElement(
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { useRtl as h, useUnstyled as g, uGrid as N, classNames as c } from "@progress/kendo-react-common";
|
|
11
|
+
import { tableKeyboardNavigationHeaderAttributes as u } from "@progress/kendo-react-data-tools";
|
|
12
|
+
const E = t.forwardRef((e, f) => {
|
|
13
|
+
const l = t.useRef(null), n = t.useRef(null), s = t.useRef(!1), m = h(e.elemRef);
|
|
14
|
+
e.columnResize && e.columnResize.setIsRtl(m === "rtl"), t.useImperativeHandle(f, () => ({
|
|
15
|
+
setScrollLeft: (r) => {
|
|
16
|
+
l.current && l.current.scrollLeft !== r && (s.current = !0, l.current.scrollLeft = r);
|
|
17
|
+
},
|
|
18
|
+
setWidth: (r) => {
|
|
19
|
+
n.current && (n.current.style.width = r + "px");
|
|
20
|
+
},
|
|
21
|
+
table: () => n.current
|
|
22
|
+
}));
|
|
23
|
+
const R = (r) => {
|
|
24
|
+
if (s.current) {
|
|
25
|
+
s.current = !1;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (!l.current)
|
|
29
|
+
return;
|
|
30
|
+
const i = l.current.scrollLeft, d = e.scrollableDataElement();
|
|
31
|
+
d && d.scrollLeft !== i && (d.scrollLeft = i);
|
|
32
|
+
}, o = g(), a = o && o.uGrid ? o.uGrid : N, { size: b = "md" } = e;
|
|
33
|
+
return e.staticHeaders ? /* @__PURE__ */ t.createElement(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
ref: e.elemRef,
|
|
37
|
+
className: c(a.header({ draggable: e.draggable }), e.className),
|
|
38
|
+
role: "presentation"
|
|
39
|
+
},
|
|
40
|
+
/* @__PURE__ */ t.createElement(
|
|
49
41
|
"div",
|
|
50
42
|
{
|
|
51
|
-
ref:
|
|
52
|
-
className:
|
|
43
|
+
ref: l,
|
|
44
|
+
className: c(a.headerWrap({})),
|
|
45
|
+
style: e.hasScrollbarWidth ? {} : { borderWidth: 0 },
|
|
46
|
+
onScroll: R,
|
|
53
47
|
role: "presentation"
|
|
54
48
|
},
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
"
|
|
49
|
+
/* @__PURE__ */ t.createElement(
|
|
50
|
+
"table",
|
|
57
51
|
{
|
|
58
|
-
ref:
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
className: r(e.headerWrap({})),
|
|
62
|
-
style: this.props.hasScrollbarWidth ? {} : { borderWidth: 0 },
|
|
63
|
-
onScroll: this.onScroll,
|
|
52
|
+
ref: n,
|
|
53
|
+
className: c(a.headerTable({ size: b }), e.className),
|
|
64
54
|
role: "presentation"
|
|
65
55
|
},
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
"
|
|
56
|
+
/* @__PURE__ */ t.createElement(
|
|
57
|
+
"colgroup",
|
|
58
|
+
{
|
|
59
|
+
ref: (r) => {
|
|
60
|
+
e.columnResize.colGroupHeader = r;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
e.cols
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ t.createElement(
|
|
66
|
+
"thead",
|
|
68
67
|
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
className: r(e.headerTable({ size: l }), this.props.className),
|
|
73
|
-
role: "presentation"
|
|
68
|
+
className: c(a.tableThead({})),
|
|
69
|
+
role: "rowgroup",
|
|
70
|
+
...u
|
|
74
71
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
{
|
|
78
|
-
ref: (t) => {
|
|
79
|
-
this.props.columnResize.colGroupHeader = t;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
this.props.cols
|
|
83
|
-
),
|
|
84
|
-
/* @__PURE__ */ s.createElement(
|
|
85
|
-
"thead",
|
|
86
|
-
{
|
|
87
|
-
className: r(e.tableThead({})),
|
|
88
|
-
role: "rowgroup",
|
|
89
|
-
...a
|
|
90
|
-
},
|
|
91
|
-
this.props.headerRow,
|
|
92
|
-
this.props.filterRow
|
|
93
|
-
)
|
|
72
|
+
e.headerRow,
|
|
73
|
+
e.filterRow
|
|
94
74
|
)
|
|
95
75
|
)
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
76
|
+
)
|
|
77
|
+
) : /* @__PURE__ */ t.createElement(
|
|
78
|
+
"thead",
|
|
79
|
+
{
|
|
80
|
+
role: "presentation",
|
|
81
|
+
className: c(a.thead({ draggable: e.draggable }), e.className),
|
|
82
|
+
...u
|
|
83
|
+
},
|
|
84
|
+
e.headerRow,
|
|
85
|
+
e.filterRow
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
E.displayName = "KendoReactHeader";
|
|
108
89
|
export {
|
|
109
|
-
|
|
90
|
+
E as Header
|
|
110
91
|
};
|