@progress/kendo-react-grid 10.3.0-develop.1 → 11.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
  2. package/columnMenu/GridColumnMenuCheckboxFilter.mjs +125 -95
  3. package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
  4. package/columnMenu/GridColumnMenuColumnsChooser.mjs +104 -58
  5. package/columnMenu/GridColumnMenuFilter.js +1 -1
  6. package/columnMenu/GridColumnMenuFilter.mjs +119 -97
  7. package/columnMenu/GridColumnMenuFilterCell.js +1 -1
  8. package/columnMenu/GridColumnMenuFilterCell.mjs +47 -44
  9. package/columnMenu/GridColumnMenuFilterUI.js +1 -1
  10. package/columnMenu/GridColumnMenuFilterUI.mjs +28 -14
  11. package/columnMenu/GridColumnMenuItem.js +1 -1
  12. package/columnMenu/GridColumnMenuItem.mjs +9 -6
  13. package/columnMenu/GridColumnMenuWrapper.js +1 -1
  14. package/columnMenu/GridColumnMenuWrapper.mjs +68 -71
  15. package/columnMenu/adaptiveContent/GridActionSheetFooter.js +9 -0
  16. package/columnMenu/adaptiveContent/GridActionSheetFooter.mjs +24 -0
  17. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +9 -0
  18. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +73 -0
  19. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +9 -0
  20. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +84 -0
  21. package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +9 -0
  22. package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +66 -0
  23. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +9 -0
  24. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +67 -0
  25. package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.js +9 -0
  26. package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.mjs +17 -0
  27. package/dist/cdn/js/kendo-react-grid.js +1 -1
  28. package/index.d.mts +34 -3
  29. package/index.d.ts +34 -3
  30. package/messages/index.js +1 -1
  31. package/messages/index.mjs +78 -62
  32. package/package-metadata.js +1 -1
  33. package/package-metadata.mjs +2 -2
  34. package/package.json +16 -16
@@ -6,100 +6,97 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as o from "react";
10
- import { Popup as z } from "@progress/kendo-react-popup";
11
- import { TABBABLE_ELEMENTS as F, Navigation as L, IconWrap as v, getActiveElement as W, Keys as P } from "@progress/kendo-react-common";
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 k, messages as _ } from "../messages/index.mjs";
13
+ import { columnMenu as p, messages as _ } from "../messages/index.mjs";
14
14
  import { useLocalization as H } from "@progress/kendo-react-intl";
15
- const O = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((t) => F.map((u) => `${t} ${u}`)), G = [[".k-tabstrip-items"], [".k-columnmenu-item"], ...O], Y = (t) => {
16
- const [u, a] = o.useState(!1), l = o.useRef(null), s = o.useRef(null), r = o.useRef(null), i = o.useRef(0), { columnMenu: E, ...p } = t, { column: g, columnMenuIcon: m, navigatable: w } = t, b = H(), M = g.title || g.field, C = M ? `${M} ` : "", y = "#", D = (e) => {
17
- const n = W(document);
18
- clearTimeout(i.current), i.current = window.setTimeout(() => {
19
- n && e.relatedTarget !== l.current && s.current && !s.current.contains(n) && f();
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
- }, T = () => {
22
- clearTimeout(i.current);
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
- !e.isAnchorClicked && a(!1);
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 o.useEffect(() => (d && s.current && (r.current = new L({
53
+ return n.useEffect(() => (f && u.current && (c.current = new L({
51
54
  tabIndex: 0,
52
- root: s,
53
- selectors: G,
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
- mousedown: $
63
- }
64
- }), r.current.focusElement(r.current.first, null)), () => {
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: S,
72
- onKeyDown: K,
68
+ onClick: x,
69
+ onKeyDown: A,
73
70
  href: y,
74
71
  tabIndex: w ? -1 : void 0,
75
- "aria-label": `${w ? "" : C}${b.toLanguageString(
76
- k,
77
- _[k]
72
+ "aria-label": `${w ? "" : D}${b.toLanguageString(
73
+ p,
74
+ _[p]
78
75
  )}`
79
76
  },
80
- m ? /* @__PURE__ */ o.createElement(v, { name: m.name, icon: m }) : /* @__PURE__ */ o.createElement(v, { name: "more-vertical", icon: V })
81
- ), /* @__PURE__ */ o.createElement(
82
- z,
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: d,
86
- popupClass: "k-column-menu k-column-menu-popup k-grid-columnmenu-popup",
87
- onMouseDownOutside: x
82
+ show: f,
83
+ popupClass: "k-grid-columnmenu-popup",
84
+ onMouseDownOutside: z
88
85
  },
89
- /* @__PURE__ */ o.createElement(
86
+ /* @__PURE__ */ n.createElement(
90
87
  "div",
91
88
  {
92
- ref: s,
93
- onBlur: D,
94
- onFocus: T,
95
- onMouseDown: I,
96
- onKeyDown: B,
97
- style: { outline: "none" }
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
- E && /* @__PURE__ */ o.createElement(E, { ...p, onCloseMenu: f })
96
+ s && /* @__PURE__ */ n.createElement(s, { ...g, onCloseMenu: a })
100
97
  )
101
- ));
98
+ )));
102
99
  };
103
100
  export {
104
- Y as GridColumnMenuWrapper
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"),k=require("react-dom"),t=require("../../messages/index.js"),C=require("../../GridClientWrapper.js"),i=require("@progress/kendo-react-layout"),o=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-svg-icons"),v=require("@progress/kendo-react-intl"),s=require("@progress/kendo-react-inputs"),E=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),b=require("./GridActionSheetFooter.js"),x=n=>{const c=e.useContext(C.GridContext),a=v.useLocalization(),{secondViewRef:u}=e.useContext(E.GridColumnMenuAdaptiveContext),m=c.dir==="rtl"?r.chevronRightIcon:r.chevronLeftIcon,d=a.toLanguageString(t.adaptiveColumnMenuCheckboxFilterTitle,t.messages[t.adaptiveColumnMenuCheckboxFilterTitle]);return e.createElement(e.Fragment,null,k.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(o.Button,{type:"button",onClick:n.onBackView,svgIcon:m,fillMode:"flat"})),e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},d)),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(o.Button,{type:"button",svgIcon:r.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(s.Checkbox,{size:c.mobileMode?"large":"medium",label:a.toLanguageString(t.filterCheckAll,t.messages[t.filterCheckAll]),onChange:l=>n.handleCheckBoxChange(l,"all"),checked:n.isAllSelected()})),n.currentData.map((l,g)=>e.createElement("li",{className:"k-item",key:`colmenu-checkbox-item-${g}`},e.createElement(s.Checkbox,{size:c.mobileMode?"large":"medium",label:String(l),onChange:h=>n.handleCheckBoxChange(h,l),checked:n.uniqueFilterValues.includes(l)})))),e.createElement("div",{className:"k-filter-selected-items"},n.uniqueFilterValues.length+" "+a.toLanguageString(t.filterSelectedItems,t.messages[t.filterSelectedItems]))))),e.createElement(i.ActionSheetFooter,null,e.createElement(b.GridActionSheetFooterContent,{onApply:n.submit,onReset:n.clear,submitMessage:a.toLanguageString(t.filterSubmitButton,t.messages[t.filterSubmitButton]),resetMessage:a.toLanguageString(t.filterClearButton,t.messages[t.filterClearButton])}))),u.current.current))};exports.GridAdaptiveCheckboxFilter=x;
@@ -0,0 +1,73 @@
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 E from "react-dom";
11
+ import { adaptiveColumnMenuCheckboxFilterTitle as r, messages as l, filterCheckAll as o, filterSelectedItems as i, filterSubmitButton as m, filterClearButton as s } from "../../messages/index.mjs";
12
+ import { GridContext as v } from "../../GridClientWrapper.mjs";
13
+ import { ActionSheetHeader as x, ActionSheetContent as b, ActionSheetFooter as S } from "@progress/kendo-react-layout";
14
+ import { Button as u } from "@progress/kendo-react-buttons";
15
+ import { chevronRightIcon as N, chevronLeftIcon as A, xIcon as M } from "@progress/kendo-svg-icons";
16
+ import { useLocalization as F } from "@progress/kendo-react-intl";
17
+ import { Checkbox as d } from "@progress/kendo-react-inputs";
18
+ import { GridColumnMenuAdaptiveContext as B } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
19
+ import { GridActionSheetFooterContent as I } from "./GridActionSheetFooter.mjs";
20
+ const _ = (t) => {
21
+ const c = e.useContext(v), n = F(), { secondViewRef: g } = e.useContext(B), h = c.dir === "rtl" ? N : A, k = n.toLanguageString(
22
+ r,
23
+ l[r]
24
+ );
25
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, E.createPortal(
26
+ /* @__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(
27
+ u,
28
+ {
29
+ type: "button",
30
+ onClick: t.onBackView,
31
+ svgIcon: h,
32
+ fillMode: "flat"
33
+ }
34
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, k)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(u, { type: "button", svgIcon: M, onClick: t.handleClose, fillMode: "flat" })))), /* @__PURE__ */ e.createElement(b, 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(
35
+ d,
36
+ {
37
+ size: c.mobileMode ? "large" : "medium",
38
+ label: n.toLanguageString(
39
+ o,
40
+ l[o]
41
+ ),
42
+ onChange: (a) => t.handleCheckBoxChange(a, "all"),
43
+ checked: t.isAllSelected()
44
+ }
45
+ )), t.currentData.map((a, f) => /* @__PURE__ */ e.createElement("li", { className: "k-item", key: `colmenu-checkbox-item-${f}` }, /* @__PURE__ */ e.createElement(
46
+ d,
47
+ {
48
+ size: c.mobileMode ? "large" : "medium",
49
+ label: String(a),
50
+ onChange: (C) => t.handleCheckBoxChange(C, a),
51
+ checked: t.uniqueFilterValues.includes(a)
52
+ }
53
+ )))), /* @__PURE__ */ e.createElement("div", { className: "k-filter-selected-items" }, t.uniqueFilterValues.length + " " + n.toLanguageString(
54
+ i,
55
+ l[i]
56
+ ))))), /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement(
57
+ I,
58
+ {
59
+ onApply: t.submit,
60
+ onReset: t.clear,
61
+ submitMessage: n.toLanguageString(
62
+ m,
63
+ l[m]
64
+ ),
65
+ resetMessage: n.toLanguageString(s, l[s])
66
+ }
67
+ ))),
68
+ g.current.current
69
+ ));
70
+ };
71
+ export {
72
+ _ as GridAdaptiveCheckboxFilter
73
+ };
@@ -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"),v=require("react-dom"),E=require("../../GridClientWrapper.js"),c=require("@progress/kendo-svg-icons"),t=require("../../messages/index.js"),u=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-inputs"),r=require("@progress/kendo-react-layout"),S=require("@progress/kendo-react-common"),x=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),b=require("./GridActionSheetFooter.js"),A=n=>{const l=f.useLocalization(),o=e.useContext(E.GridContext),{secondViewRef:m}=e.useContext(x.GridColumnMenuAdaptiveContext),d=o.dir==="rtl"?c.chevronRightIcon:c.chevronLeftIcon,g=l.toLanguageString(t.adaptiveColumnMenuChooserTitle,t.messages[t.adaptiveColumnMenuChooserTitle]),C=l.toLanguageString(t.adaptiveColumnMenuChooserSubTitle,t.messages[t.adaptiveColumnMenuChooserSubTitle]),h=()=>e.createElement(i.InputPrefix,null,e.createElement(S.IconWrap,{name:"search",icon:c.searchIcon}));return e.createElement(e.Fragment,null,v.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(u.Button,{type:"button",onClick:n.onBackView,svgIcon:d,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(u.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:o.mobileMode?"large":"medium",className:"k-searchbox",value:n.filter,onChange:n.onFilter,prefix:h}),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:o.mobileMode?"large":"medium",checked:n.allSelected,onChange:n.onSelectAll,label:l.toLanguageString(t.filterSelectAll,t.messages[t.filterSelectAll])})),n.filtered.map((a,M)=>e.createElement("li",{key:a.id,className:"k-item"},e.createElement(i.Checkbox,{size:o.mobileMode?"large":"medium",disabled:n.selectedColumns[a.id||""]&&n.checkedCount===1,checked:n.selectedColumns[a.id||""],onChange:k=>{var s;return n.onCheckChange(!!((s=k.target.element)!=null&&s.checked),a.id)},label:a.title||a.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(b.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])}))),m.current.current))};exports.GridAdaptiveColumnChooser=A;
@@ -0,0 +1,84 @@
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 { GridContext as b } from "../../GridClientWrapper.mjs";
12
+ import { chevronRightIcon as N, chevronLeftIcon as A, xIcon as M, searchIcon as I } from "@progress/kendo-svg-icons";
13
+ import { adaptiveColumnMenuChooserTitle as r, messages as a, adaptiveColumnMenuChooserSubTitle as c, filterSelectAll as m, columnMenuColumnChooserSelectedItems as s, filterResetButton as u, filterApplyButton as d } from "../../messages/index.mjs";
14
+ import { Button as g } from "@progress/kendo-react-buttons";
15
+ import { useLocalization as L } from "@progress/kendo-react-intl";
16
+ import { TextBox as B, Checkbox as h, InputPrefix as R } from "@progress/kendo-react-inputs";
17
+ import { ActionSheetHeader as p, ActionSheetContent as y, ActionSheetFooter as w } from "@progress/kendo-react-layout";
18
+ import { IconWrap as F } from "@progress/kendo-react-common";
19
+ import { GridColumnMenuAdaptiveContext as T } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
20
+ import { GridActionSheetFooterContent as z } from "./GridActionSheetFooter.mjs";
21
+ const U = (t) => {
22
+ const n = L(), o = e.useContext(b), { secondViewRef: f } = e.useContext(T), k = o.dir === "rtl" ? N : A, C = n.toLanguageString(
23
+ r,
24
+ a[r]
25
+ ), E = n.toLanguageString(
26
+ c,
27
+ a[c]
28
+ ), v = () => /* @__PURE__ */ e.createElement(R, null, /* @__PURE__ */ e.createElement(F, { name: "search", icon: I }));
29
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, S.createPortal(
30
+ /* @__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(
31
+ g,
32
+ {
33
+ type: "button",
34
+ onClick: t.onBackView,
35
+ svgIcon: k,
36
+ fillMode: "flat"
37
+ }
38
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, C), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, E)), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(g, { type: "button", svgIcon: M, onClick: t.handleClose, fillMode: "flat" })))), /* @__PURE__ */ e.createElement(y, null, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu" }, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ e.createElement(
39
+ B,
40
+ {
41
+ size: o.mobileMode ? "large" : "medium",
42
+ className: "k-searchbox",
43
+ value: t.filter,
44
+ onChange: t.onFilter,
45
+ prefix: v
46
+ }
47
+ ), /* @__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(
48
+ h,
49
+ {
50
+ size: o.mobileMode ? "large" : "medium",
51
+ checked: t.allSelected,
52
+ onChange: t.onSelectAll,
53
+ label: n.toLanguageString(m, a[m])
54
+ }
55
+ )), t.filtered.map((l, G) => /* @__PURE__ */ e.createElement("li", { key: l.id, className: "k-item" }, /* @__PURE__ */ e.createElement(
56
+ h,
57
+ {
58
+ size: o.mobileMode ? "large" : "medium",
59
+ disabled: t.selectedColumns[l.id || ""] && t.checkedCount === 1,
60
+ checked: t.selectedColumns[l.id || ""],
61
+ onChange: (x) => {
62
+ var i;
63
+ return t.onCheckChange(!!((i = x.target.element) != null && i.checked), l.id);
64
+ },
65
+ label: l.title || l.field
66
+ }
67
+ )))), /* @__PURE__ */ e.createElement("div", { className: "k-filter-selected-items" }, t.checkedCount, " ", n.toLanguageString(
68
+ s,
69
+ a[s]
70
+ ))))), /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(
71
+ z,
72
+ {
73
+ onApply: t.onApply,
74
+ onReset: t.onReset,
75
+ resetMessage: n.toLanguageString(u, a[u]),
76
+ submitMessage: n.toLanguageString(d, a[d])
77
+ }
78
+ ))),
79
+ f.current.current
80
+ ));
81
+ };
82
+ export {
83
+ U as GridAdaptiveColumnChooser
84
+ };
@@ -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"),u=require("react-dom"),i=require("@progress/kendo-react-layout"),o=require("@progress/kendo-react-buttons"),m=require("@progress/kendo-react-intl"),d=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),r=require("@progress/kendo-svg-icons"),g=require("../GridColumnMenuFilterUI.js"),n=require("../../messages/index.js"),C=require("../../GridClientWrapper.js"),v=require("./GridActionSheetFooter.js"),E=t=>{const l=m.useLocalization(),a=e.useContext(C.GridContext),{secondViewRef:c}=e.useContext(d.GridColumnMenuAdaptiveContext),s=a.dir==="rtl"?r.chevronRightIcon:r.chevronLeftIcon;return e.createElement(e.Fragment,null,u.createPortal(e.createElement(e.Fragment,null,t.FilterUI?e.createElement(t.FilterUI,{...t.filterUIProps}):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(o.Button,{type:"button",onClick:t.onBackView,svgIcon:s,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(o.Button,{type:"button",svgIcon:r.xIcon,onClick:t.handleClose,fillMode:"flat"})))),e.createElement(i.ActionSheetContent,null,e.createElement("div",{className:"k-filter-menu"},e.createElement("div",{className:"k-filter-menu-container"},e.createElement(g.GridColumnMenuFilterUI,{...t.filterUIProps})))),e.createElement(i.ActionSheetFooter,null,e.createElement(v.GridActionSheetFooterContent,{onApply:t.submit,onReset:t.clear,resetIcon:r.filterClearIcon,submitIcon:r.filterIcon,submitMessage:l.toLanguageString(n.filterSubmitButton,n.messages[n.filterSubmitButton]),resetMessage:l.toLanguageString(n.filterClearButton,n.messages[n.filterClearButton]),submitDisabled:!t.isFilterValid})))),c.current.current))};exports.GridAdaptiveFilterMenu=E;
@@ -0,0 +1,67 @@
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 { ActionSheetHeader as u, ActionSheetContent as d, ActionSheetFooter as f } from "@progress/kendo-react-layout";
12
+ import { Button as r } from "@progress/kendo-react-buttons";
13
+ import { useLocalization as E } from "@progress/kendo-react-intl";
14
+ import { GridColumnMenuAdaptiveContext as g } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
15
+ import { chevronRightIcon as I, chevronLeftIcon as v, xIcon as C, filterClearIcon as h, filterIcon as k } from "@progress/kendo-svg-icons";
16
+ import { GridColumnMenuFilterUI as F } from "../GridColumnMenuFilterUI.mjs";
17
+ import { filterSubmitButton as o, messages as l, filterClearButton as i } from "../../messages/index.mjs";
18
+ import { GridContext as b } from "../../GridClientWrapper.mjs";
19
+ import { GridActionSheetFooterContent as x } from "./GridActionSheetFooter.mjs";
20
+ const y = (t) => {
21
+ const n = E(), a = e.useContext(b), { secondViewRef: c } = e.useContext(g), m = a.dir === "rtl" ? I : v;
22
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, s.createPortal(
23
+ /* @__PURE__ */ e.createElement(e.Fragment, null, t.FilterUI ? /* @__PURE__ */ e.createElement(t.FilterUI, { ...t.filterUIProps }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(
24
+ r,
25
+ {
26
+ type: "button",
27
+ onClick: t.onBackView,
28
+ svgIcon: m,
29
+ fillMode: "flat"
30
+ }
31
+ )), /* @__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(
32
+ r,
33
+ {
34
+ type: "button",
35
+ svgIcon: C,
36
+ onClick: t.handleClose,
37
+ fillMode: "flat"
38
+ }
39
+ )))), /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu" }, /* @__PURE__ */ e.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ e.createElement(
40
+ F,
41
+ {
42
+ ...t.filterUIProps
43
+ }
44
+ )))), /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(
45
+ x,
46
+ {
47
+ onApply: t.submit,
48
+ onReset: t.clear,
49
+ resetIcon: h,
50
+ submitIcon: k,
51
+ submitMessage: n.toLanguageString(
52
+ o,
53
+ l[o]
54
+ ),
55
+ resetMessage: n.toLanguageString(
56
+ i,
57
+ l[i]
58
+ ),
59
+ submitDisabled: !t.isFilterValid
60
+ }
61
+ )))),
62
+ c.current.current
63
+ ));
64
+ };
65
+ export {
66
+ y as GridAdaptiveFilterMenu
67
+ };
@@ -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
+ };