@progress/kendo-react-grid 11.0.0-develop.5 → 11.0.0-develop.7

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 (136) hide show
  1. package/GridComponent.js +1 -1
  2. package/GridComponent.mjs +317 -303
  3. package/cells/GridDetailHierarchyCell.js +1 -1
  4. package/cells/GridDetailHierarchyCell.mjs +4 -4
  5. package/cells/datacell/GridCell.js +9 -0
  6. package/cells/datacell/GridCell.mjs +29 -0
  7. package/cells/datacell/GridCellServer.js +8 -0
  8. package/cells/datacell/GridCellServer.mjs +27 -0
  9. package/cells/datacell/GridCellServerContainer.js +9 -0
  10. package/cells/datacell/GridCellServerContainer.mjs +26 -0
  11. package/cells/datacell/useCellClientTdProps.js +9 -0
  12. package/cells/datacell/useCellClientTdProps.mjs +30 -0
  13. package/cells/datacell/utils.js +8 -0
  14. package/cells/datacell/utils.mjs +47 -0
  15. package/cells/detailcell/GridDetailCell.js +9 -0
  16. package/cells/detailcell/GridDetailCell.mjs +18 -0
  17. package/cells/detailcell/GridDetailCellServer.js +8 -0
  18. package/cells/detailcell/GridDetailCellServer.mjs +17 -0
  19. package/cells/detailcell/GridDetailCellServerContainer.js +9 -0
  20. package/cells/detailcell/GridDetailCellServerContainer.mjs +19 -0
  21. package/cells/detailcell/useDetailCellClientTdProps.js +9 -0
  22. package/cells/detailcell/useDetailCellClientTdProps.mjs +20 -0
  23. package/cells/detailcell/utils.js +8 -0
  24. package/cells/detailcell/utils.mjs +20 -0
  25. package/cells/editcell/GridEditCell.js +9 -0
  26. package/cells/editcell/GridEditCell.mjs +26 -0
  27. package/cells/editcell/GridEditCellServer.js +8 -0
  28. package/cells/editcell/GridEditCellServer.mjs +32 -0
  29. package/cells/editcell/GridEditCellServerContainer.js +9 -0
  30. package/cells/editcell/GridEditCellServerContainer.mjs +26 -0
  31. package/cells/editcell/useEditCellClientTdProps.js +9 -0
  32. package/cells/editcell/useEditCellClientTdProps.mjs +21 -0
  33. package/cells/editcell/utils.js +8 -0
  34. package/cells/editcell/utils.mjs +29 -0
  35. package/cells/groupcell/GridGroupCell.js +9 -0
  36. package/cells/groupcell/GridGroupCell.mjs +24 -0
  37. package/cells/groupcell/GridGroupCellServer.js +8 -0
  38. package/cells/groupcell/GridGroupCellServer.mjs +44 -0
  39. package/cells/groupcell/GridGroupCellServerContainer.js +9 -0
  40. package/cells/groupcell/GridGroupCellServerContainer.mjs +38 -0
  41. package/cells/groupcell/useGroupCellClientTdProps.js +9 -0
  42. package/cells/groupcell/useGroupCellClientTdProps.mjs +44 -0
  43. package/cells/groupcell/utils.js +8 -0
  44. package/cells/groupcell/utils.mjs +48 -0
  45. package/cells/hierarchycell/GridHierarchyCell.js +9 -0
  46. package/cells/hierarchycell/GridHierarchyCell.mjs +25 -0
  47. package/cells/hierarchycell/GridHierarchyCellServer.js +8 -0
  48. package/cells/hierarchycell/GridHierarchyCellServer.mjs +32 -0
  49. package/cells/hierarchycell/GridHierarchyCellServerContainer.js +9 -0
  50. package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +26 -0
  51. package/cells/hierarchycell/useHierarchyCellClientTdProps.js +9 -0
  52. package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +35 -0
  53. package/cells/hierarchycell/utils.js +8 -0
  54. package/cells/hierarchycell/utils.mjs +30 -0
  55. package/cells/hooks.js +9 -0
  56. package/cells/hooks.mjs +41 -0
  57. package/cells/rowreordercell/GridRowReorderCell.js +9 -0
  58. package/cells/rowreordercell/GridRowReorderCell.mjs +19 -0
  59. package/cells/rowreordercell/GridRowReorderCellServer.js +8 -0
  60. package/cells/rowreordercell/GridRowReorderCellServer.mjs +18 -0
  61. package/cells/rowreordercell/GridRowReorderCellServerContainer.js +9 -0
  62. package/cells/rowreordercell/GridRowReorderCellServerContainer.mjs +19 -0
  63. package/cells/rowreordercell/useRowReorderCellClientTdProps.js +9 -0
  64. package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +26 -0
  65. package/cells/rowreordercell/utils.js +8 -0
  66. package/cells/rowreordercell/utils.mjs +30 -0
  67. package/cells/selectioncell/GridSelectionCell.js +9 -0
  68. package/cells/selectioncell/GridSelectionCell.mjs +26 -0
  69. package/cells/selectioncell/GridSelectionCellServer.js +8 -0
  70. package/cells/selectioncell/GridSelectionCellServer.mjs +33 -0
  71. package/cells/selectioncell/GridSelectionCellServerContainer.js +9 -0
  72. package/cells/selectioncell/GridSelectionCellServerContainer.mjs +26 -0
  73. package/cells/selectioncell/useSelectionCellClientTdProps.js +9 -0
  74. package/cells/selectioncell/useSelectionCellClientTdProps.mjs +21 -0
  75. package/cells/selectioncell/utils.js +8 -0
  76. package/cells/selectioncell/utils.mjs +25 -0
  77. package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
  78. package/columnMenu/GridColumnMenuCheckboxFilter.mjs +83 -84
  79. package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
  80. package/columnMenu/GridColumnMenuColumnsChooser.mjs +71 -72
  81. package/columnMenu/GridColumnMenuFilter.js +1 -1
  82. package/columnMenu/GridColumnMenuFilter.mjs +83 -84
  83. package/columnMenu/GridColumnMenuItem.js +1 -1
  84. package/columnMenu/GridColumnMenuItem.mjs +8 -8
  85. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
  86. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +40 -34
  87. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
  88. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +51 -45
  89. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
  90. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +40 -33
  91. package/dist/cdn/js/kendo-react-grid.js +1 -1
  92. package/index.d.mts +25 -6
  93. package/index.d.ts +25 -6
  94. package/index.js +1 -1
  95. package/index.mjs +5 -5
  96. package/package-metadata.js +1 -1
  97. package/package-metadata.mjs +2 -2
  98. package/package.json +16 -16
  99. package/utils/index.js +1 -1
  100. package/utils/index.mjs +40 -40
  101. package/cells/GridCell.js +0 -8
  102. package/cells/GridCell.mjs +0 -52
  103. package/cells/GridDetailCell.js +0 -8
  104. package/cells/GridDetailCell.mjs +0 -26
  105. package/cells/GridEditCell.js +0 -8
  106. package/cells/GridEditCell.mjs +0 -35
  107. package/cells/GridGroupCell.js +0 -8
  108. package/cells/GridGroupCell.mjs +0 -74
  109. package/cells/GridHierarchyCell.js +0 -8
  110. package/cells/GridHierarchyCell.mjs +0 -33
  111. package/cells/GridRowReorderCell.js +0 -8
  112. package/cells/GridRowReorderCell.mjs +0 -42
  113. package/cells/GridSelectionCell.js +0 -8
  114. package/cells/GridSelectionCell.mjs +0 -30
  115. package/cells/client/DetailCellContainer.js +0 -9
  116. package/cells/client/DetailCellContainer.mjs +0 -27
  117. package/cells/client/GridCellContainer.js +0 -9
  118. package/cells/client/GridCellContainer.mjs +0 -69
  119. package/cells/client/GridEditCellContainer.js +0 -9
  120. package/cells/client/GridEditCellContainer.mjs +0 -61
  121. package/cells/client/GridGroupCellContainer.js +0 -9
  122. package/cells/client/GridGroupCellContainer.mjs +0 -88
  123. package/cells/client/GridHierarchyCellContainer.js +0 -9
  124. package/cells/client/GridHierarchyCellContainer.mjs +0 -64
  125. package/cells/client/GridRowReorderContainer.js +0 -9
  126. package/cells/client/GridRowReorderContainer.mjs +0 -31
  127. package/cells/client/GridSelectionCellContainer.js +0 -9
  128. package/cells/client/GridSelectionCellContainer.mjs +0 -61
  129. /package/cells/{client → editcell}/GridEditCellEditor.js +0 -0
  130. /package/cells/{client → editcell}/GridEditCellEditor.mjs +0 -0
  131. /package/cells/{client → groupcell}/GridGroupCellToggle.js +0 -0
  132. /package/cells/{client → groupcell}/GridGroupCellToggle.mjs +0 -0
  133. /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.js +0 -0
  134. /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.mjs +0 -0
  135. /package/cells/{client → selectioncell}/GridSelectionCellInput.js +0 -0
  136. /package/cells/{client → selectioncell}/GridSelectionCellInput.mjs +0 -0
@@ -7,67 +7,73 @@
7
7
  */
8
8
  "use client";
9
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";
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
17
  import { Checkbox as d } from "@progress/kendo-react-inputs";
18
- import { GridColumnMenuAdaptiveContext as B } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
18
+ import { GridColumnMenuAdaptiveContext as F } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
19
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]
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
24
  );
25
- return /* @__PURE__ */ e.createElement(e.Fragment, null, E.createPortal(
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(
26
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(
27
- u,
33
+ h,
28
34
  {
29
35
  type: "button",
30
- onClick: t.onBackView,
31
- svgIcon: h,
36
+ onClick: E,
37
+ svgIcon: f,
32
38
  fillMode: "flat"
33
39
  }
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(
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(
35
41
  d,
36
42
  {
37
- size: c.mobileMode ? "large" : "medium",
38
- label: n.toLanguageString(
39
- o,
40
- l[o]
43
+ size: n.mobileMode ? "large" : "medium",
44
+ label: l.toLanguageString(
45
+ r,
46
+ c[r]
41
47
  ),
42
48
  onChange: (a) => t.handleCheckBoxChange(a, "all"),
43
49
  checked: t.isAllSelected()
44
50
  }
45
- )), t.currentData.map((a, f) => /* @__PURE__ */ e.createElement("li", { className: "k-item", key: `colmenu-checkbox-item-${f}` }, /* @__PURE__ */ e.createElement(
51
+ )), t.currentData.map((a, C) => /* @__PURE__ */ e.createElement("li", { className: "k-item", key: `colmenu-checkbox-item-${C}` }, /* @__PURE__ */ e.createElement(
46
52
  d,
47
53
  {
48
- size: c.mobileMode ? "large" : "medium",
54
+ size: n.mobileMode ? "large" : "medium",
49
55
  label: String(a),
50
- onChange: (C) => t.handleCheckBoxChange(C, a),
56
+ onChange: (v) => t.handleCheckBoxChange(v, a),
51
57
  checked: t.uniqueFilterValues.includes(a)
52
58
  }
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(
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(
57
63
  I,
58
64
  {
59
65
  onApply: t.submit,
60
66
  onReset: t.clear,
61
- submitMessage: n.toLanguageString(
62
- m,
63
- l[m]
67
+ submitMessage: l.toLanguageString(
68
+ s,
69
+ c[s]
64
70
  ),
65
- resetMessage: n.toLanguageString(s, l[s])
71
+ resetMessage: l.toLanguageString(u, c[u])
66
72
  }
67
73
  ))),
68
- g.current.current
74
+ k.current.current
69
75
  ));
70
76
  };
71
77
  export {
72
- _ as GridAdaptiveCheckboxFilter
78
+ H as GridAdaptiveCheckboxFilter
73
79
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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;
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;
@@ -7,78 +7,84 @@
7
7
  */
8
8
  "use client";
9
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(
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
23
  r,
24
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(
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(
30
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(
31
- g,
37
+ f,
32
38
  {
33
39
  type: "button",
34
- onClick: t.onBackView,
35
- svgIcon: k,
40
+ onClick: S,
41
+ svgIcon: C,
36
42
  fillMode: "flat"
37
43
  }
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,
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,
40
46
  {
41
- size: o.mobileMode ? "large" : "medium",
47
+ size: l.mobileMode ? "large" : "medium",
42
48
  className: "k-searchbox",
43
49
  value: t.filter,
44
50
  onChange: t.onFilter,
45
- prefix: v
51
+ prefix: x
46
52
  }
47
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(
48
- h,
54
+ g,
49
55
  {
50
- size: o.mobileMode ? "large" : "medium",
56
+ size: l.mobileMode ? "large" : "medium",
51
57
  checked: t.allSelected,
52
58
  onChange: t.onSelectAll,
53
- label: n.toLanguageString(m, a[m])
59
+ label: o.toLanguageString(s, a[s])
54
60
  }
55
- )), t.filtered.map((l, G) => /* @__PURE__ */ e.createElement("li", { key: l.id, className: "k-item" }, /* @__PURE__ */ e.createElement(
56
- h,
61
+ )), t.filtered.map((n, V) => /* @__PURE__ */ e.createElement("li", { key: n.id, className: "k-item" }, /* @__PURE__ */ e.createElement(
62
+ g,
57
63
  {
58
- size: o.mobileMode ? "large" : "medium",
59
- disabled: t.selectedColumns[l.id || ""] && t.checkedCount === 1,
60
- checked: t.selectedColumns[l.id || ""],
61
- onChange: (x) => {
64
+ size: l.mobileMode ? "large" : "medium",
65
+ disabled: t.selectedColumns[n.id || ""] && t.checkedCount === 1,
66
+ checked: t.selectedColumns[n.id || ""],
67
+ onChange: (b) => {
62
68
  var i;
63
- return t.onCheckChange(!!((i = x.target.element) != null && i.checked), l.id);
69
+ return t.onCheckChange(!!((i = b.target.element) != null && i.checked), n.id);
64
70
  },
65
- label: l.title || l.field
71
+ label: n.title || n.field
66
72
  }
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,
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,
72
78
  {
73
79
  onApply: t.onApply,
74
80
  onReset: t.onReset,
75
- resetMessage: n.toLanguageString(u, a[u]),
76
- submitMessage: n.toLanguageString(d, a[d])
81
+ resetMessage: o.toLanguageString(d, a[d]),
82
+ submitMessage: o.toLanguageString(h, a[h])
77
83
  }
78
84
  ))),
79
- f.current.current
85
+ k.current.current
80
86
  ));
81
87
  };
82
88
  export {
83
- U as GridAdaptiveColumnChooser
89
+ Y as GridAdaptiveColumnChooser
84
90
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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;
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;
@@ -7,61 +7,68 @@
7
7
  */
8
8
  "use client";
9
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,
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,
25
32
  {
26
33
  type: "button",
27
- onClick: t.onBackView,
28
- svgIcon: m,
34
+ onClick: u,
35
+ svgIcon: s,
29
36
  fillMode: "flat"
30
37
  }
31
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(
32
- r,
39
+ i,
33
40
  {
34
41
  type: "button",
35
- svgIcon: C,
42
+ svgIcon: S,
36
43
  onClick: t.handleClose,
37
44
  fillMode: "flat"
38
45
  }
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,
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,
41
48
  {
42
49
  ...t.filterUIProps
43
50
  }
44
- )))), /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(
45
- x,
51
+ )))), /* @__PURE__ */ e.createElement(g, null, /* @__PURE__ */ e.createElement(
52
+ A,
46
53
  {
47
54
  onApply: t.submit,
48
55
  onReset: t.clear,
49
- resetIcon: h,
50
- submitIcon: k,
51
- submitMessage: n.toLanguageString(
52
- o,
53
- l[o]
56
+ resetIcon: b,
57
+ submitIcon: F,
58
+ submitMessage: o.toLanguageString(
59
+ a,
60
+ c[a]
54
61
  ),
55
- resetMessage: n.toLanguageString(
56
- i,
57
- l[i]
62
+ resetMessage: o.toLanguageString(
63
+ l,
64
+ c[l]
58
65
  ),
59
66
  submitDisabled: !t.isFilterValid
60
67
  }
61
68
  )))),
62
- c.current.current
69
+ m.current.current
63
70
  ));
64
71
  };
65
72
  export {
66
- y as GridAdaptiveFilterMenu
73
+ z as GridAdaptiveFilterMenu
67
74
  };