@progress/kendo-react-grid 10.3.0-develop.1 → 11.0.0-develop.10
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +16 -13
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +419 -421
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +402 -395
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -107
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +4 -4
- package/cells/datacell/GridCell.js +9 -0
- package/cells/datacell/GridCell.mjs +29 -0
- package/cells/datacell/GridCellServer.js +8 -0
- package/cells/datacell/GridCellServer.mjs +27 -0
- package/cells/datacell/GridCellServerContainer.js +9 -0
- package/cells/datacell/GridCellServerContainer.mjs +26 -0
- package/cells/datacell/useCellClientTdProps.js +9 -0
- package/cells/datacell/useCellClientTdProps.mjs +30 -0
- package/cells/datacell/utils.js +8 -0
- package/cells/datacell/utils.mjs +47 -0
- package/cells/detailcell/GridDetailCell.js +9 -0
- package/cells/detailcell/GridDetailCell.mjs +18 -0
- package/cells/detailcell/GridDetailCellServer.js +8 -0
- package/cells/detailcell/GridDetailCellServer.mjs +17 -0
- package/cells/detailcell/GridDetailCellServerContainer.js +9 -0
- package/cells/detailcell/GridDetailCellServerContainer.mjs +19 -0
- package/cells/detailcell/useDetailCellClientTdProps.js +9 -0
- package/cells/detailcell/useDetailCellClientTdProps.mjs +20 -0
- package/cells/detailcell/utils.js +8 -0
- package/cells/detailcell/utils.mjs +20 -0
- package/cells/editcell/GridEditCell.js +9 -0
- package/cells/editcell/GridEditCell.mjs +26 -0
- package/cells/editcell/GridEditCellServer.js +8 -0
- package/cells/editcell/GridEditCellServer.mjs +32 -0
- package/cells/editcell/GridEditCellServerContainer.js +9 -0
- package/cells/editcell/GridEditCellServerContainer.mjs +26 -0
- package/cells/editcell/useEditCellClientTdProps.js +9 -0
- package/cells/editcell/useEditCellClientTdProps.mjs +21 -0
- package/cells/editcell/utils.js +8 -0
- package/cells/editcell/utils.mjs +29 -0
- package/cells/groupcell/GridGroupCell.js +9 -0
- package/cells/groupcell/GridGroupCell.mjs +24 -0
- package/cells/groupcell/GridGroupCellServer.js +8 -0
- package/cells/groupcell/GridGroupCellServer.mjs +44 -0
- package/cells/groupcell/GridGroupCellServerContainer.js +9 -0
- package/cells/groupcell/GridGroupCellServerContainer.mjs +38 -0
- package/cells/groupcell/useGroupCellClientTdProps.js +9 -0
- package/cells/groupcell/useGroupCellClientTdProps.mjs +44 -0
- package/cells/groupcell/utils.js +8 -0
- package/cells/groupcell/utils.mjs +48 -0
- package/cells/hierarchycell/GridHierarchyCell.js +9 -0
- package/cells/hierarchycell/GridHierarchyCell.mjs +25 -0
- package/cells/hierarchycell/GridHierarchyCellServer.js +8 -0
- package/cells/hierarchycell/GridHierarchyCellServer.mjs +32 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.js +9 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +26 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.js +9 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +35 -0
- package/cells/hierarchycell/utils.js +8 -0
- package/cells/hierarchycell/utils.mjs +30 -0
- package/cells/hooks.js +9 -0
- package/cells/hooks.mjs +41 -0
- package/cells/rowreordercell/GridRowReorderCell.js +9 -0
- package/cells/rowreordercell/GridRowReorderCell.mjs +19 -0
- package/cells/rowreordercell/GridRowReorderCellServer.js +8 -0
- package/cells/rowreordercell/GridRowReorderCellServer.mjs +18 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.js +9 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.mjs +19 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.js +9 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +26 -0
- package/cells/rowreordercell/utils.js +8 -0
- package/cells/rowreordercell/utils.mjs +30 -0
- package/cells/selectioncell/GridSelectionCell.js +9 -0
- package/cells/selectioncell/GridSelectionCell.mjs +26 -0
- package/cells/selectioncell/GridSelectionCellServer.js +8 -0
- package/cells/selectioncell/GridSelectionCellServer.mjs +33 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.js +9 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.mjs +26 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.js +9 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.mjs +21 -0
- package/cells/selectioncell/utils.js +8 -0
- package/cells/selectioncell/utils.mjs +25 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +126 -97
- package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +103 -58
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +122 -101
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +47 -44
- package/columnMenu/GridColumnMenuFilterUI.js +1 -1
- package/columnMenu/GridColumnMenuFilterUI.mjs +28 -14
- package/columnMenu/GridColumnMenuItem.js +1 -1
- package/columnMenu/GridColumnMenuItem.mjs +9 -6
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +68 -71
- package/columnMenu/adaptiveContent/GridActionSheetFooter.js +9 -0
- package/columnMenu/adaptiveContent/GridActionSheetFooter.mjs +24 -0
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +9 -0
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +79 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +9 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +90 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +9 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +66 -0
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +9 -0
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +74 -0
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.js +9 -0
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.mjs +17 -0
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +71 -67
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +4 -4
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +16 -15
- package/components/utils.js +1 -1
- package/components/utils.mjs +9 -10
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +75 -10
- package/index.d.ts +75 -10
- package/index.js +1 -1
- package/index.mjs +5 -5
- package/messages/index.js +1 -1
- package/messages/index.mjs +78 -62
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +17 -13
- package/utils/index.js +1 -1
- package/utils/index.mjs +112 -104
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -52
- package/cells/GridCell.js +0 -8
- package/cells/GridCell.mjs +0 -52
- package/cells/GridDetailCell.js +0 -8
- package/cells/GridDetailCell.mjs +0 -26
- package/cells/GridEditCell.js +0 -8
- package/cells/GridEditCell.mjs +0 -35
- package/cells/GridGroupCell.js +0 -8
- package/cells/GridGroupCell.mjs +0 -74
- package/cells/GridHierarchyCell.js +0 -8
- package/cells/GridHierarchyCell.mjs +0 -33
- package/cells/GridRowReorderCell.js +0 -8
- package/cells/GridRowReorderCell.mjs +0 -42
- package/cells/GridSelectionCell.js +0 -8
- package/cells/GridSelectionCell.mjs +0 -30
- package/cells/client/DetailCellContainer.js +0 -9
- package/cells/client/DetailCellContainer.mjs +0 -27
- package/cells/client/GridCellContainer.js +0 -9
- package/cells/client/GridCellContainer.mjs +0 -69
- package/cells/client/GridEditCellContainer.js +0 -9
- package/cells/client/GridEditCellContainer.mjs +0 -61
- package/cells/client/GridGroupCellContainer.js +0 -9
- package/cells/client/GridGroupCellContainer.mjs +0 -88
- package/cells/client/GridHierarchyCellContainer.js +0 -9
- package/cells/client/GridHierarchyCellContainer.mjs +0 -64
- package/cells/client/GridRowReorderContainer.js +0 -9
- package/cells/client/GridRowReorderContainer.mjs +0 -31
- package/cells/client/GridSelectionCellContainer.js +0 -9
- package/cells/client/GridSelectionCellContainer.mjs +0 -61
- /package/cells/{client → editcell}/GridEditCellEditor.js +0 -0
- /package/cells/{client → editcell}/GridEditCellEditor.mjs +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.js +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.mjs +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.js +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.mjs +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.js +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.mjs +0 -0
|
@@ -6,100 +6,97 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { Popup as
|
|
11
|
-
import { TABBABLE_ELEMENTS as
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { Popup as F } from "@progress/kendo-react-popup";
|
|
11
|
+
import { TABBABLE_ELEMENTS as G, Navigation as L, IconWrap as k, getActiveElement as P, Keys as W } from "@progress/kendo-react-common";
|
|
12
12
|
import { moreVerticalIcon as V } from "@progress/kendo-svg-icons";
|
|
13
|
-
import { columnMenu as
|
|
13
|
+
import { columnMenu as p, messages as _ } from "../messages/index.mjs";
|
|
14
14
|
import { useLocalization as H } from "@progress/kendo-react-intl";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
import { GridContext as O } from "../GridClientWrapper.mjs";
|
|
16
|
+
import { GridColumnMenuAdaptiveProvider as j } from "./adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
17
|
+
import { GridAdaptiveColumnMenu as q } from "./adaptiveContent/GridAdaptiveColumnMenu.mjs";
|
|
18
|
+
const J = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((t) => G.map((i) => `${t} ${i}`)), Q = [[".k-tabstrip-items"], [".k-columnmenu-item"], ...J], ce = (t) => {
|
|
19
|
+
const i = n.useContext(O), [m, d] = n.useState(!1), l = n.useRef(null), u = n.useRef(null), c = n.useRef(null), E = n.useRef(0), { columnMenu: s, ...g } = t, { column: v, columnMenuIcon: h, navigatable: w } = t, b = H(), C = v.title || v.field, D = C ? `${C} ` : "", y = "#", T = (e) => {
|
|
20
|
+
const o = P(document);
|
|
21
|
+
clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
22
|
+
!i.mobileMode && o && e.relatedTarget !== l.current && u.current && !u.current.contains(o) && a();
|
|
20
23
|
});
|
|
21
|
-
},
|
|
22
|
-
clearTimeout(
|
|
23
|
-
}, S = (e) => {
|
|
24
|
-
e.preventDefault(), u && t.onCloseMenu && t.onCloseMenu(), a(!u);
|
|
25
|
-
}, f = () => {
|
|
26
|
-
t.onCloseMenu && t.onCloseMenu(), a(!1), !t.navigatable && l.current && l.current.focus();
|
|
27
|
-
}, K = (e) => {
|
|
28
|
-
var n;
|
|
29
|
-
if (e.keyCode === P.tab) {
|
|
30
|
-
const c = e.target, h = c && ((n = c.closest(".k-grid")) == null ? void 0 : n.getElementsByClassName("k-grid-content")[0]);
|
|
31
|
-
h && h.scrollWidth > h.clientWidth && c.scrollIntoView({ inline: "center" });
|
|
32
|
-
}
|
|
33
|
-
}, d = o.useMemo(() => t.show !== void 0 ? t.show : u, [t.show, u]), B = (e) => {
|
|
34
|
-
var n;
|
|
35
|
-
(n = r.current) == null || n.triggerKeyboardEvent(e);
|
|
36
|
-
}, I = (e) => {
|
|
37
|
-
var n;
|
|
38
|
-
(n = r.current) == null || n.triggerMouseEvent(e);
|
|
39
|
-
}, A = (e, n, c) => {
|
|
40
|
-
c.preventDefault(), c.shiftKey ? n.focusPrevious(e) : n.focusNext(e);
|
|
41
|
-
}, N = (e, n, c) => {
|
|
42
|
-
e && e.click();
|
|
43
|
-
}, R = (e, n, c) => {
|
|
44
|
-
c.preventDefault(), f();
|
|
45
|
-
}, $ = (e, n, c) => {
|
|
46
|
-
n.focusElement(e);
|
|
24
|
+
}, S = () => {
|
|
25
|
+
clearTimeout(E.current);
|
|
47
26
|
}, x = (e) => {
|
|
48
|
-
|
|
27
|
+
e.preventDefault(), m && t.onCloseMenu && t.onCloseMenu(), d(!m);
|
|
28
|
+
}, a = () => {
|
|
29
|
+
t.onCloseMenu && t.onCloseMenu(), d(!1), !t.navigatable && l.current && l.current.focus();
|
|
30
|
+
}, A = (e) => {
|
|
31
|
+
var o;
|
|
32
|
+
if (e.keyCode === W.tab) {
|
|
33
|
+
const r = e.target, M = r && ((o = r.closest(".k-grid")) == null ? void 0 : o.getElementsByClassName("k-grid-content")[0]);
|
|
34
|
+
M && M.scrollWidth > M.clientWidth && r.scrollIntoView({ inline: "center" });
|
|
35
|
+
}
|
|
36
|
+
}, f = n.useMemo(() => t.show !== void 0 ? t.show : m, [t.show, m]), K = (e) => {
|
|
37
|
+
var o;
|
|
38
|
+
(o = c.current) == null || o.triggerKeyboardEvent(e);
|
|
39
|
+
}, B = (e) => {
|
|
40
|
+
var o;
|
|
41
|
+
(o = c.current) == null || o.triggerMouseEvent(e);
|
|
42
|
+
}, I = (e, o, r) => {
|
|
43
|
+
r.preventDefault(), r.shiftKey ? o.focusPrevious(e) : o.focusNext(e);
|
|
44
|
+
}, N = (e, o, r) => {
|
|
45
|
+
e && (r.preventDefault(), e.click());
|
|
46
|
+
}, R = (e, o, r) => {
|
|
47
|
+
r.preventDefault(), a();
|
|
48
|
+
}, $ = (e, o, r) => {
|
|
49
|
+
o.focusElement(e);
|
|
50
|
+
}, z = (e) => {
|
|
51
|
+
!e.isAnchorClicked && d(!1);
|
|
49
52
|
};
|
|
50
|
-
return
|
|
53
|
+
return n.useEffect(() => (f && u.current && (c.current = new L({
|
|
51
54
|
tabIndex: 0,
|
|
52
|
-
root:
|
|
53
|
-
selectors:
|
|
55
|
+
root: u,
|
|
56
|
+
selectors: Q,
|
|
54
57
|
keyboardEvents: {
|
|
55
|
-
keydown: {
|
|
56
|
-
Tab: A,
|
|
57
|
-
Enter: N,
|
|
58
|
-
Escape: R
|
|
59
|
-
}
|
|
58
|
+
keydown: { Tab: I, Enter: N, Escape: R }
|
|
60
59
|
},
|
|
61
|
-
mouseEvents: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
r.current && (r.current = null);
|
|
66
|
-
}), [d]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
60
|
+
mouseEvents: { mousedown: $ }
|
|
61
|
+
}), c.current.focusElement(c.current.first, null)), () => {
|
|
62
|
+
c.current && (c.current = null);
|
|
63
|
+
}), [f]), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
|
|
67
64
|
"a",
|
|
68
65
|
{
|
|
69
66
|
className: "k-grid-header-menu k-grid-column-menu",
|
|
70
67
|
ref: l,
|
|
71
|
-
onClick:
|
|
72
|
-
onKeyDown:
|
|
68
|
+
onClick: x,
|
|
69
|
+
onKeyDown: A,
|
|
73
70
|
href: y,
|
|
74
71
|
tabIndex: w ? -1 : void 0,
|
|
75
|
-
"aria-label": `${w ? "" :
|
|
76
|
-
|
|
77
|
-
_[
|
|
72
|
+
"aria-label": `${w ? "" : D}${b.toLanguageString(
|
|
73
|
+
p,
|
|
74
|
+
_[p]
|
|
78
75
|
)}`
|
|
79
76
|
},
|
|
80
|
-
|
|
81
|
-
), /* @__PURE__ */
|
|
82
|
-
|
|
77
|
+
h ? /* @__PURE__ */ n.createElement(k, { name: h.name, icon: h }) : /* @__PURE__ */ n.createElement(k, { name: "more-vertical", icon: V })
|
|
78
|
+
), /* @__PURE__ */ n.createElement(j, null, i.mobileMode ? /* @__PURE__ */ n.createElement(q, { computedShow: f, ColumnMenu: s, closeMenu: a }, s && /* @__PURE__ */ n.createElement(s, { ...g, onCloseMenu: a })) : /* @__PURE__ */ n.createElement(
|
|
79
|
+
F,
|
|
83
80
|
{
|
|
84
81
|
anchor: l.current,
|
|
85
|
-
show:
|
|
86
|
-
popupClass: "k-
|
|
87
|
-
onMouseDownOutside:
|
|
82
|
+
show: f,
|
|
83
|
+
popupClass: "k-grid-columnmenu-popup",
|
|
84
|
+
onMouseDownOutside: z
|
|
88
85
|
},
|
|
89
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ n.createElement(
|
|
90
87
|
"div",
|
|
91
88
|
{
|
|
92
|
-
ref:
|
|
93
|
-
onBlur:
|
|
94
|
-
onFocus:
|
|
95
|
-
onMouseDown:
|
|
96
|
-
onKeyDown:
|
|
97
|
-
|
|
89
|
+
ref: u,
|
|
90
|
+
onBlur: T,
|
|
91
|
+
onFocus: S,
|
|
92
|
+
onMouseDown: B,
|
|
93
|
+
onKeyDown: K,
|
|
94
|
+
className: "k-column-menu k-column-menu-md"
|
|
98
95
|
},
|
|
99
|
-
|
|
96
|
+
s && /* @__PURE__ */ n.createElement(s, { ...g, onCloseMenu: a })
|
|
100
97
|
)
|
|
101
|
-
));
|
|
98
|
+
)));
|
|
102
99
|
};
|
|
103
100
|
export {
|
|
104
|
-
|
|
101
|
+
ce as GridColumnMenuWrapper
|
|
105
102
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 t=require("react"),n=require("@progress/kendo-react-buttons"),o=e=>t.createElement("form",{onSubmit:e.onApply,onReset:e.onReset},t.createElement("div",{className:"k-actions k-actions-stretched"},t.createElement(n.Button,{svgIcon:e.resetIcon,size:"large",type:"reset"},e.resetMessage),t.createElement(n.Button,{disabled:e.submitDisabled,svgIcon:e.submitIcon,type:"submit",size:"large",themeColor:"primary"},e.submitMessage)));exports.GridActionSheetFooterContent=o;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 t from "react";
|
|
10
|
+
import { Button as n } from "@progress/kendo-react-buttons";
|
|
11
|
+
const a = (e) => /* @__PURE__ */ t.createElement("form", { onSubmit: e.onApply, onReset: e.onReset }, /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(n, { svgIcon: e.resetIcon, size: "large", type: "reset" }, e.resetMessage), /* @__PURE__ */ t.createElement(
|
|
12
|
+
n,
|
|
13
|
+
{
|
|
14
|
+
disabled: e.submitDisabled,
|
|
15
|
+
svgIcon: e.submitIcon,
|
|
16
|
+
type: "submit",
|
|
17
|
+
size: "large",
|
|
18
|
+
themeColor: "primary"
|
|
19
|
+
},
|
|
20
|
+
e.submitMessage
|
|
21
|
+
)));
|
|
22
|
+
export {
|
|
23
|
+
a as GridActionSheetFooterContent
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e=require("react"),f=require("react-dom"),t=require("../../messages/index.js"),S=require("../../GridClientWrapper.js"),i=require("@progress/kendo-react-layout"),s=require("@progress/kendo-react-buttons"),o=require("@progress/kendo-svg-icons"),v=require("@progress/kendo-react-intl"),u=require("@progress/kendo-react-inputs"),b=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),E=require("./GridActionSheetFooter.js"),x=n=>{const a=e.useContext(S.GridContext),l=v.useLocalization(),{actionSheetRef:r,secondViewRef:m}=e.useContext(b.GridColumnMenuAdaptiveContext),d=a.dir==="rtl"?o.chevronRightIcon:o.chevronLeftIcon,h=l.toLanguageString(t.adaptiveColumnMenuCheckboxFilterTitle,t.messages[t.adaptiveColumnMenuCheckboxFilterTitle]);e.useEffect(()=>{a!=null&&a.mobileMode&&r.current.element.style.setProperty("--kendo-actionsheet-view-current",2)},[]);const k=()=>{n.onBackView&&n.onBackView(),a!=null&&a.mobileMode&&r.current.element.style.setProperty("--kendo-actionsheet-view-current",1)};return e.createElement(e.Fragment,null,f.createPortal(e.createElement(e.Fragment,null,e.createElement(i.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(s.Button,{type:"button",onClick:k,svgIcon:d,fillMode:"flat"})),e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},h)),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(s.Button,{type:"button",svgIcon:o.xIcon,onClick:n.handleClose,fillMode:"flat"})))),e.createElement(i.ActionSheetContent,null,e.createElement("div",{className:"k-filter-menu"},e.createElement("div",{className:"k-filter-menu-container"},n.searchBox,e.createElement("ul",{className:"k-reset k-multicheck-wrap"},e.createElement("li",{className:"k-item k-check-all-wrap"},e.createElement(u.Checkbox,{size:a.mobileMode?"large":"medium",label:l.toLanguageString(t.filterCheckAll,t.messages[t.filterCheckAll]),onChange:c=>n.handleCheckBoxChange(c,"all"),checked:n.isAllSelected()})),n.currentData.map((c,g)=>e.createElement("li",{className:"k-item",key:`colmenu-checkbox-item-${g}`},e.createElement(u.Checkbox,{size:a.mobileMode?"large":"medium",label:String(c),onChange:C=>n.handleCheckBoxChange(C,c),checked:n.uniqueFilterValues.includes(c)})))),e.createElement("div",{className:"k-filter-selected-items"},n.uniqueFilterValues.length+" "+l.toLanguageString(t.filterSelectedItems,t.messages[t.filterSelectedItems]))))),e.createElement(i.ActionSheetFooter,null,e.createElement(E.GridActionSheetFooterContent,{onApply:n.submit,onReset:n.clear,submitMessage:l.toLanguageString(t.filterSubmitButton,t.messages[t.filterSubmitButton]),resetMessage:l.toLanguageString(t.filterClearButton,t.messages[t.filterClearButton])}))),m.current.current))};exports.GridAdaptiveCheckboxFilter=x;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e from "react";
|
|
10
|
+
import S from "react-dom";
|
|
11
|
+
import { adaptiveColumnMenuCheckboxFilterTitle as i, messages as c, filterCheckAll as r, filterSelectedItems as m, filterSubmitButton as s, filterClearButton as u } from "../../messages/index.mjs";
|
|
12
|
+
import { GridContext as b } from "../../GridClientWrapper.mjs";
|
|
13
|
+
import { ActionSheetHeader as x, ActionSheetContent as M, ActionSheetFooter as N } from "@progress/kendo-react-layout";
|
|
14
|
+
import { Button as h } from "@progress/kendo-react-buttons";
|
|
15
|
+
import { chevronRightIcon as A, chevronLeftIcon as w, xIcon as B } from "@progress/kendo-svg-icons";
|
|
16
|
+
import { useLocalization as y } from "@progress/kendo-react-intl";
|
|
17
|
+
import { Checkbox as d } from "@progress/kendo-react-inputs";
|
|
18
|
+
import { GridColumnMenuAdaptiveContext as F } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
19
|
+
import { GridActionSheetFooterContent as I } from "./GridActionSheetFooter.mjs";
|
|
20
|
+
const H = (t) => {
|
|
21
|
+
const n = e.useContext(b), l = y(), { actionSheetRef: o, secondViewRef: k } = e.useContext(F), f = n.dir === "rtl" ? A : w, g = l.toLanguageString(
|
|
22
|
+
i,
|
|
23
|
+
c[i]
|
|
24
|
+
);
|
|
25
|
+
e.useEffect(() => {
|
|
26
|
+
n != null && n.mobileMode && o.current.element.style.setProperty("--kendo-actionsheet-view-current", 2);
|
|
27
|
+
}, []);
|
|
28
|
+
const E = () => {
|
|
29
|
+
t.onBackView && t.onBackView(), n != null && n.mobileMode && o.current.element.style.setProperty("--kendo-actionsheet-view-current", 1);
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, S.createPortal(
|
|
32
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(
|
|
33
|
+
h,
|
|
34
|
+
{
|
|
35
|
+
type: "button",
|
|
36
|
+
onClick: E,
|
|
37
|
+
svgIcon: f,
|
|
38
|
+
fillMode: "flat"
|
|
39
|
+
}
|
|
40
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, g)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(h, { type: "button", svgIcon: B, onClick: t.handleClose, fillMode: "flat" })))), /* @__PURE__ */ e.createElement(M, null, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu" }, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu-container" }, t.searchBox, /* @__PURE__ */ e.createElement("ul", { className: "k-reset k-multicheck-wrap" }, /* @__PURE__ */ e.createElement("li", { className: "k-item k-check-all-wrap" }, /* @__PURE__ */ e.createElement(
|
|
41
|
+
d,
|
|
42
|
+
{
|
|
43
|
+
size: n.mobileMode ? "large" : "medium",
|
|
44
|
+
label: l.toLanguageString(
|
|
45
|
+
r,
|
|
46
|
+
c[r]
|
|
47
|
+
),
|
|
48
|
+
onChange: (a) => t.handleCheckBoxChange(a, "all"),
|
|
49
|
+
checked: t.isAllSelected()
|
|
50
|
+
}
|
|
51
|
+
)), t.currentData.map((a, C) => /* @__PURE__ */ e.createElement("li", { className: "k-item", key: `colmenu-checkbox-item-${C}` }, /* @__PURE__ */ e.createElement(
|
|
52
|
+
d,
|
|
53
|
+
{
|
|
54
|
+
size: n.mobileMode ? "large" : "medium",
|
|
55
|
+
label: String(a),
|
|
56
|
+
onChange: (v) => t.handleCheckBoxChange(v, a),
|
|
57
|
+
checked: t.uniqueFilterValues.includes(a)
|
|
58
|
+
}
|
|
59
|
+
)))), /* @__PURE__ */ e.createElement("div", { className: "k-filter-selected-items" }, t.uniqueFilterValues.length + " " + l.toLanguageString(
|
|
60
|
+
m,
|
|
61
|
+
c[m]
|
|
62
|
+
))))), /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(
|
|
63
|
+
I,
|
|
64
|
+
{
|
|
65
|
+
onApply: t.submit,
|
|
66
|
+
onReset: t.clear,
|
|
67
|
+
submitMessage: l.toLanguageString(
|
|
68
|
+
s,
|
|
69
|
+
c[s]
|
|
70
|
+
),
|
|
71
|
+
resetMessage: l.toLanguageString(u, c[u])
|
|
72
|
+
}
|
|
73
|
+
))),
|
|
74
|
+
k.current.current
|
|
75
|
+
));
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
H as GridAdaptiveCheckboxFilter
|
|
79
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e=require("react"),S=require("react-dom"),E=require("../../GridClientWrapper.js"),c=require("@progress/kendo-svg-icons"),t=require("../../messages/index.js"),m=require("@progress/kendo-react-buttons"),b=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-inputs"),r=require("@progress/kendo-react-layout"),x=require("@progress/kendo-react-common"),M=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),A=require("./GridActionSheetFooter.js"),y=n=>{const l=b.useLocalization(),a=e.useContext(E.GridContext),{actionSheetRef:s,secondViewRef:d}=e.useContext(M.GridColumnMenuAdaptiveContext),h=a.dir==="rtl"?c.chevronRightIcon:c.chevronLeftIcon,g=l.toLanguageString(t.adaptiveColumnMenuChooserTitle,t.messages[t.adaptiveColumnMenuChooserTitle]),C=l.toLanguageString(t.adaptiveColumnMenuChooserSubTitle,t.messages[t.adaptiveColumnMenuChooserSubTitle]);e.useEffect(()=>{a.mobileMode&&s.current.element.style.setProperty("--kendo-actionsheet-view-current",2)},[]);const k=()=>{a.mobileMode&&s.current.element.style.setProperty("--kendo-actionsheet-view-current",1),n.onBackView&&n.onBackView()},f=()=>e.createElement(i.InputPrefix,null,e.createElement(x.IconWrap,{name:"search",icon:c.searchIcon}));return e.createElement(e.Fragment,null,S.createPortal(e.createElement(e.Fragment,null,e.createElement(r.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(m.Button,{type:"button",onClick:k,svgIcon:h,fillMode:"flat"})),e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},g),e.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},C)),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(m.Button,{type:"button",svgIcon:c.xIcon,onClick:n.handleClose,fillMode:"flat"})))),e.createElement(r.ActionSheetContent,null,e.createElement("div",{className:"k-filter-menu"},e.createElement("div",{className:"k-filter-menu-container"},e.createElement(i.TextBox,{size:a.mobileMode?"large":"medium",className:"k-searchbox",value:n.filter,onChange:n.onFilter,prefix:f}),e.createElement("ul",{className:"k-reset k-multicheck-wrap"},!n.filter&&e.createElement("li",{className:"k-item k-check-all-wrap"},e.createElement(i.Checkbox,{size:a.mobileMode?"large":"medium",checked:n.allSelected,onChange:n.onSelectAll,label:l.toLanguageString(t.filterSelectAll,t.messages[t.filterSelectAll])})),n.filtered.map((o,I)=>e.createElement("li",{key:o.id,className:"k-item"},e.createElement(i.Checkbox,{size:a.mobileMode?"large":"medium",disabled:n.selectedColumns[o.id||""]&&n.checkedCount===1,checked:n.selectedColumns[o.id||""],onChange:v=>{var u;return n.onCheckChange(!!((u=v.target.element)!=null&&u.checked),o.id)},label:o.title||o.field})))),e.createElement("div",{className:"k-filter-selected-items"},n.checkedCount," ",l.toLanguageString(t.columnMenuColumnChooserSelectedItems,t.messages[t.columnMenuColumnChooserSelectedItems]))))),e.createElement(r.ActionSheetFooter,null,e.createElement(A.GridActionSheetFooterContent,{onApply:n.onApply,onReset:n.onReset,resetMessage:l.toLanguageString(t.filterResetButton,t.messages[t.filterResetButton]),submitMessage:l.toLanguageString(t.filterApplyButton,t.messages[t.filterApplyButton])}))),d.current.current))};exports.GridAdaptiveColumnChooser=y;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e from "react";
|
|
10
|
+
import M from "react-dom";
|
|
11
|
+
import { GridContext as N } from "../../GridClientWrapper.mjs";
|
|
12
|
+
import { chevronRightIcon as A, chevronLeftIcon as y, xIcon as I, searchIcon as w } from "@progress/kendo-svg-icons";
|
|
13
|
+
import { adaptiveColumnMenuChooserTitle as r, messages as a, adaptiveColumnMenuChooserSubTitle as m, filterSelectAll as s, columnMenuColumnChooserSelectedItems as u, filterResetButton as d, filterApplyButton as h } from "../../messages/index.mjs";
|
|
14
|
+
import { Button as f } from "@progress/kendo-react-buttons";
|
|
15
|
+
import { useLocalization as B } from "@progress/kendo-react-intl";
|
|
16
|
+
import { TextBox as L, Checkbox as g, InputPrefix as R } from "@progress/kendo-react-inputs";
|
|
17
|
+
import { ActionSheetHeader as p, ActionSheetContent as F, ActionSheetFooter as P } from "@progress/kendo-react-layout";
|
|
18
|
+
import { IconWrap as T } from "@progress/kendo-react-common";
|
|
19
|
+
import { GridColumnMenuAdaptiveContext as z } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
20
|
+
import { GridActionSheetFooterContent as G } from "./GridActionSheetFooter.mjs";
|
|
21
|
+
const Y = (t) => {
|
|
22
|
+
const o = B(), l = e.useContext(N), { actionSheetRef: c, secondViewRef: k } = e.useContext(z), C = l.dir === "rtl" ? A : y, E = o.toLanguageString(
|
|
23
|
+
r,
|
|
24
|
+
a[r]
|
|
25
|
+
), v = o.toLanguageString(
|
|
26
|
+
m,
|
|
27
|
+
a[m]
|
|
28
|
+
);
|
|
29
|
+
e.useEffect(() => {
|
|
30
|
+
l.mobileMode && c.current.element.style.setProperty("--kendo-actionsheet-view-current", 2);
|
|
31
|
+
}, []);
|
|
32
|
+
const S = () => {
|
|
33
|
+
l.mobileMode && c.current.element.style.setProperty("--kendo-actionsheet-view-current", 1), t.onBackView && t.onBackView();
|
|
34
|
+
}, x = () => /* @__PURE__ */ e.createElement(R, null, /* @__PURE__ */ e.createElement(T, { name: "search", icon: w }));
|
|
35
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, M.createPortal(
|
|
36
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(
|
|
37
|
+
f,
|
|
38
|
+
{
|
|
39
|
+
type: "button",
|
|
40
|
+
onClick: S,
|
|
41
|
+
svgIcon: C,
|
|
42
|
+
fillMode: "flat"
|
|
43
|
+
}
|
|
44
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, E), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, v)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(f, { type: "button", svgIcon: I, onClick: t.handleClose, fillMode: "flat" })))), /* @__PURE__ */ e.createElement(F, null, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu" }, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ e.createElement(
|
|
45
|
+
L,
|
|
46
|
+
{
|
|
47
|
+
size: l.mobileMode ? "large" : "medium",
|
|
48
|
+
className: "k-searchbox",
|
|
49
|
+
value: t.filter,
|
|
50
|
+
onChange: t.onFilter,
|
|
51
|
+
prefix: x
|
|
52
|
+
}
|
|
53
|
+
), /* @__PURE__ */ e.createElement("ul", { className: "k-reset k-multicheck-wrap" }, !t.filter && /* @__PURE__ */ e.createElement("li", { className: "k-item k-check-all-wrap" }, /* @__PURE__ */ e.createElement(
|
|
54
|
+
g,
|
|
55
|
+
{
|
|
56
|
+
size: l.mobileMode ? "large" : "medium",
|
|
57
|
+
checked: t.allSelected,
|
|
58
|
+
onChange: t.onSelectAll,
|
|
59
|
+
label: o.toLanguageString(s, a[s])
|
|
60
|
+
}
|
|
61
|
+
)), t.filtered.map((n, V) => /* @__PURE__ */ e.createElement("li", { key: n.id, className: "k-item" }, /* @__PURE__ */ e.createElement(
|
|
62
|
+
g,
|
|
63
|
+
{
|
|
64
|
+
size: l.mobileMode ? "large" : "medium",
|
|
65
|
+
disabled: t.selectedColumns[n.id || ""] && t.checkedCount === 1,
|
|
66
|
+
checked: t.selectedColumns[n.id || ""],
|
|
67
|
+
onChange: (b) => {
|
|
68
|
+
var i;
|
|
69
|
+
return t.onCheckChange(!!((i = b.target.element) != null && i.checked), n.id);
|
|
70
|
+
},
|
|
71
|
+
label: n.title || n.field
|
|
72
|
+
}
|
|
73
|
+
)))), /* @__PURE__ */ e.createElement("div", { className: "k-filter-selected-items" }, t.checkedCount, " ", o.toLanguageString(
|
|
74
|
+
u,
|
|
75
|
+
a[u]
|
|
76
|
+
))))), /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(
|
|
77
|
+
G,
|
|
78
|
+
{
|
|
79
|
+
onApply: t.onApply,
|
|
80
|
+
onReset: t.onReset,
|
|
81
|
+
resetMessage: o.toLanguageString(d, a[d]),
|
|
82
|
+
submitMessage: o.toLanguageString(h, a[h])
|
|
83
|
+
}
|
|
84
|
+
))),
|
|
85
|
+
k.current.current
|
|
86
|
+
));
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
Y as GridAdaptiveColumnChooser
|
|
90
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e=require("react"),t=require("@progress/kendo-react-layout"),m=require("@progress/kendo-react-common"),d=require("../../GridClientWrapper.js"),v=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-svg-icons"),C=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),f=require("@progress/kendo-react-intl"),i=require("../../messages/index.js"),k=n=>{const a=e.useContext(d.GridContext),{actionSheetRef:c,firstViewRef:s,secondViewRef:r}=e.useContext(C.GridColumnMenuAdaptiveContext),o=m.useAdaptiveModeContext(),l=f.useLocalization(),u={animation:!0,navigatable:!1,navigatableElements:[],expand:n.computedShow,animationStyles:o&&a.adaptiveColumnMenuRef<=o.small?{top:0,width:"100%",height:"100%"}:void 0,className:"k-adaptive-actionsheet",position:o&&a.adaptiveColumnMenuRef<=o.small?"fullscreen":void 0};return e.createElement(t.ActionSheet,{...u,ref:c,style:{"--kendo-actionsheet-view-current":1},onClose:()=>{n.closeMenu()}},e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:s,style:{transitionDuration:"500ms",transitionProperty:"transform"}},e.createElement(t.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},a.adpativeTitle||l.toLanguageString(i.columnMenu,i.messages[i.columnMenu]))),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(v.Button,{svgIcon:h.xIcon,onClick:n.closeMenu,fillMode:"flat"})))),e.createElement(t.ActionSheetContent,null,e.createElement("div",{className:"k-column-menu k-column-menu-lg"},n.children))),e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:r,style:{transitionDuration:"500ms",transitionProperty:"transform"}}))};exports.GridAdaptiveColumnMenu=k;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e from "react";
|
|
10
|
+
import { ActionSheet as u, ActionSheetView as a, ActionSheetHeader as d, ActionSheetContent as f } from "@progress/kendo-react-layout";
|
|
11
|
+
import { useAdaptiveModeContext as v } from "@progress/kendo-react-common";
|
|
12
|
+
import { GridContext as p } from "../../GridClientWrapper.mjs";
|
|
13
|
+
import { Button as h } from "@progress/kendo-react-buttons";
|
|
14
|
+
import { xIcon as C } from "@progress/kendo-svg-icons";
|
|
15
|
+
import { GridColumnMenuAdaptiveContext as E } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
16
|
+
import { useLocalization as g } from "@progress/kendo-react-intl";
|
|
17
|
+
import { columnMenu as i, messages as k } from "../../messages/index.mjs";
|
|
18
|
+
const G = (t) => {
|
|
19
|
+
const o = e.useContext(p), { actionSheetRef: r, firstViewRef: l, secondViewRef: m } = e.useContext(E), n = v(), s = g(), c = {
|
|
20
|
+
animation: !0,
|
|
21
|
+
navigatable: !1,
|
|
22
|
+
navigatableElements: [],
|
|
23
|
+
expand: t.computedShow,
|
|
24
|
+
animationStyles: n && o.adaptiveColumnMenuRef <= n.small ? { top: 0, width: "100%", height: "100%" } : void 0,
|
|
25
|
+
className: "k-adaptive-actionsheet",
|
|
26
|
+
position: n && o.adaptiveColumnMenuRef <= n.small ? "fullscreen" : void 0
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ e.createElement(
|
|
29
|
+
u,
|
|
30
|
+
{
|
|
31
|
+
...c,
|
|
32
|
+
ref: r,
|
|
33
|
+
style: { "--kendo-actionsheet-view-current": 1 },
|
|
34
|
+
onClose: () => {
|
|
35
|
+
t.closeMenu();
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
/* @__PURE__ */ e.createElement(
|
|
39
|
+
a,
|
|
40
|
+
{
|
|
41
|
+
className: "k-actionsheet-view-animated",
|
|
42
|
+
ref: l,
|
|
43
|
+
style: {
|
|
44
|
+
transitionDuration: "500ms",
|
|
45
|
+
transitionProperty: "transform"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
/* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, o.adpativeTitle || s.toLanguageString(i, k[i]))), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(h, { svgIcon: C, onClick: t.closeMenu, fillMode: "flat" })))),
|
|
49
|
+
/* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-column-menu k-column-menu-lg" }, t.children))
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e.createElement(
|
|
52
|
+
a,
|
|
53
|
+
{
|
|
54
|
+
className: "k-actionsheet-view-animated",
|
|
55
|
+
ref: m,
|
|
56
|
+
style: {
|
|
57
|
+
transitionDuration: "500ms",
|
|
58
|
+
transitionProperty: "transform"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
G as GridAdaptiveColumnMenu
|
|
66
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e=require("react"),f=require("react-dom"),o=require("@progress/kendo-react-layout"),a=require("@progress/kendo-react-buttons"),g=require("@progress/kendo-react-intl"),h=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),r=require("@progress/kendo-svg-icons"),v=require("../GridColumnMenuFilterUI.js"),n=require("../../messages/index.js"),C=require("../../GridClientWrapper.js"),E=require("./GridActionSheetFooter.js"),k=t=>{const c=g.useLocalization(),i=e.useContext(C.GridContext),{actionSheetRef:l,secondViewRef:s}=e.useContext(h.GridColumnMenuAdaptiveContext),u=i.dir==="rtl"?r.chevronRightIcon:r.chevronLeftIcon;e.useEffect(()=>{i.mobileMode&&l.current.element.style.setProperty("--kendo-actionsheet-view-current",2)},[]);const m=()=>{i.mobileMode&&l.current.element.style.setProperty("--kendo-actionsheet-view-current",1),t.onBackView&&t.onBackView()};return e.createElement(e.Fragment,null,f.createPortal(e.createElement(e.Fragment,null,t.FilterUI?e.createElement(t.FilterUI,{...t.filterUIProps}):e.createElement(e.Fragment,null,e.createElement(o.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(a.Button,{type:"button",onClick:m,svgIcon:u,fillMode:"flat"})),e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},t.adaptiveTitle)),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(a.Button,{type:"button",svgIcon:r.xIcon,onClick:t.handleClose,fillMode:"flat"})))),e.createElement(o.ActionSheetContent,null,e.createElement("div",{className:"k-filter-menu"},e.createElement("div",{className:"k-filter-menu-container"},e.createElement(v.GridColumnMenuFilterUI,{...t.filterUIProps})))),e.createElement(o.ActionSheetFooter,null,e.createElement(E.GridActionSheetFooterContent,{onApply:t.submit,onReset:t.clear,resetIcon:r.filterClearIcon,submitIcon:r.filterIcon,submitMessage:c.toLanguageString(n.filterSubmitButton,n.messages[n.filterSubmitButton]),resetMessage:c.toLanguageString(n.filterClearButton,n.messages[n.filterClearButton]),submitDisabled:!t.isFilterValid})))),s.current.current))};exports.GridAdaptiveFilterMenu=k;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e from "react";
|
|
10
|
+
import d from "react-dom";
|
|
11
|
+
import { ActionSheetHeader as h, ActionSheetContent as E, ActionSheetFooter as g } from "@progress/kendo-react-layout";
|
|
12
|
+
import { Button as i } from "@progress/kendo-react-buttons";
|
|
13
|
+
import { useLocalization as v } from "@progress/kendo-react-intl";
|
|
14
|
+
import { GridColumnMenuAdaptiveContext as I } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
15
|
+
import { chevronRightIcon as k, chevronLeftIcon as C, xIcon as S, filterClearIcon as b, filterIcon as F } from "@progress/kendo-svg-icons";
|
|
16
|
+
import { GridColumnMenuFilterUI as M } from "../GridColumnMenuFilterUI.mjs";
|
|
17
|
+
import { filterSubmitButton as a, messages as c, filterClearButton as l } from "../../messages/index.mjs";
|
|
18
|
+
import { GridContext as x } from "../../GridClientWrapper.mjs";
|
|
19
|
+
import { GridActionSheetFooterContent as A } from "./GridActionSheetFooter.mjs";
|
|
20
|
+
const z = (t) => {
|
|
21
|
+
const o = v(), n = e.useContext(x), { actionSheetRef: r, secondViewRef: m } = e.useContext(I), s = n.dir === "rtl" ? k : C;
|
|
22
|
+
e.useEffect(() => {
|
|
23
|
+
n.mobileMode && r.current.element.style.setProperty("--kendo-actionsheet-view-current", 2);
|
|
24
|
+
}, []);
|
|
25
|
+
const u = () => {
|
|
26
|
+
n.mobileMode && r.current.element.style.setProperty("--kendo-actionsheet-view-current", 1), t.onBackView && t.onBackView();
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, d.createPortal(
|
|
29
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
30
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, t.FilterUI ? /* @__PURE__ */ e.createElement(t.FilterUI, { ...t.filterUIProps }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(
|
|
31
|
+
i,
|
|
32
|
+
{
|
|
33
|
+
type: "button",
|
|
34
|
+
onClick: u,
|
|
35
|
+
svgIcon: s,
|
|
36
|
+
fillMode: "flat"
|
|
37
|
+
}
|
|
38
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, t.adaptiveTitle)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(
|
|
39
|
+
i,
|
|
40
|
+
{
|
|
41
|
+
type: "button",
|
|
42
|
+
svgIcon: S,
|
|
43
|
+
onClick: t.handleClose,
|
|
44
|
+
fillMode: "flat"
|
|
45
|
+
}
|
|
46
|
+
)))), /* @__PURE__ */ e.createElement(E, null, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu" }, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ e.createElement(
|
|
47
|
+
M,
|
|
48
|
+
{
|
|
49
|
+
...t.filterUIProps
|
|
50
|
+
}
|
|
51
|
+
)))), /* @__PURE__ */ e.createElement(g, null, /* @__PURE__ */ e.createElement(
|
|
52
|
+
A,
|
|
53
|
+
{
|
|
54
|
+
onApply: t.submit,
|
|
55
|
+
onReset: t.clear,
|
|
56
|
+
resetIcon: b,
|
|
57
|
+
submitIcon: F,
|
|
58
|
+
submitMessage: o.toLanguageString(
|
|
59
|
+
a,
|
|
60
|
+
c[a]
|
|
61
|
+
),
|
|
62
|
+
resetMessage: o.toLanguageString(
|
|
63
|
+
l,
|
|
64
|
+
c[l]
|
|
65
|
+
),
|
|
66
|
+
submitDisabled: !t.isFilterValid
|
|
67
|
+
}
|
|
68
|
+
)))),
|
|
69
|
+
m.current.current
|
|
70
|
+
));
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
z as GridAdaptiveFilterMenu
|
|
74
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e=require("react"),t=e.createContext(void 0),d=n=>{const o=e.useRef(null),r=e.useRef(null),u=e.useRef(null),i=e.useMemo(()=>({actionSheetRef:o,firstViewRef:r,secondViewRef:u}),[]);return e.createElement(t.Provider,{value:i},n.children)};exports.GridColumnMenuAdaptiveContext=t;exports.GridColumnMenuAdaptiveProvider=d;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 e from "react";
|
|
10
|
+
const i = e.createContext(void 0), c = (t) => {
|
|
11
|
+
const n = e.useRef(null), o = e.useRef(null), r = e.useRef(null), u = e.useMemo(() => ({ actionSheetRef: n, firstViewRef: o, secondViewRef: r }), []);
|
|
12
|
+
return /* @__PURE__ */ e.createElement(i.Provider, { value: u }, t.children);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
i as GridColumnMenuAdaptiveContext,
|
|
16
|
+
c as GridColumnMenuAdaptiveProvider
|
|
17
|
+
};
|