@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.
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +317 -303
- 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 +83 -84
- package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +71 -72
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +83 -84
- package/columnMenu/GridColumnMenuItem.js +1 -1
- package/columnMenu/GridColumnMenuItem.mjs +8 -8
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +40 -34
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +51 -45
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +40 -33
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +25 -6
- package/index.d.ts +25 -6
- package/index.js +1 -1
- package/index.mjs +5 -5
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/utils/index.js +1 -1
- package/utils/index.mjs +40 -40
- 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
|
@@ -7,67 +7,73 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import e from "react";
|
|
10
|
-
import
|
|
11
|
-
import { adaptiveColumnMenuCheckboxFilterTitle as
|
|
12
|
-
import { GridContext as
|
|
13
|
-
import { ActionSheetHeader as x, ActionSheetContent as
|
|
14
|
-
import { Button as
|
|
15
|
-
import { chevronRightIcon as
|
|
16
|
-
import { useLocalization as
|
|
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
|
|
18
|
+
import { GridColumnMenuAdaptiveContext as F } from "../adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
19
19
|
import { GridActionSheetFooterContent as I } from "./GridActionSheetFooter.mjs";
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
+
h,
|
|
28
34
|
{
|
|
29
35
|
type: "button",
|
|
30
|
-
onClick:
|
|
31
|
-
svgIcon:
|
|
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" },
|
|
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:
|
|
38
|
-
label:
|
|
39
|
-
|
|
40
|
-
|
|
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,
|
|
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:
|
|
54
|
+
size: n.mobileMode ? "large" : "medium",
|
|
49
55
|
label: String(a),
|
|
50
|
-
onChange: (
|
|
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 + " " +
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
))))), /* @__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:
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
submitMessage: l.toLanguageString(
|
|
68
|
+
s,
|
|
69
|
+
c[s]
|
|
64
70
|
),
|
|
65
|
-
resetMessage:
|
|
71
|
+
resetMessage: l.toLanguageString(u, c[u])
|
|
66
72
|
}
|
|
67
73
|
))),
|
|
68
|
-
|
|
74
|
+
k.current.current
|
|
69
75
|
));
|
|
70
76
|
};
|
|
71
77
|
export {
|
|
72
|
-
|
|
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"),
|
|
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
|
|
11
|
-
import { GridContext as
|
|
12
|
-
import { chevronRightIcon as
|
|
13
|
-
import { adaptiveColumnMenuChooserTitle as r, messages as a, adaptiveColumnMenuChooserSubTitle as
|
|
14
|
-
import { Button as
|
|
15
|
-
import { useLocalization as
|
|
16
|
-
import { TextBox as
|
|
17
|
-
import { ActionSheetHeader as p, ActionSheetContent as
|
|
18
|
-
import { IconWrap as
|
|
19
|
-
import { GridColumnMenuAdaptiveContext as
|
|
20
|
-
import { GridActionSheetFooterContent as
|
|
21
|
-
const
|
|
22
|
-
const
|
|
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
|
-
),
|
|
26
|
-
|
|
27
|
-
a[
|
|
28
|
-
)
|
|
29
|
-
|
|
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
|
-
|
|
37
|
+
f,
|
|
32
38
|
{
|
|
33
39
|
type: "button",
|
|
34
|
-
onClick:
|
|
35
|
-
svgIcon:
|
|
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" },
|
|
39
|
-
|
|
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:
|
|
47
|
+
size: l.mobileMode ? "large" : "medium",
|
|
42
48
|
className: "k-searchbox",
|
|
43
49
|
value: t.filter,
|
|
44
50
|
onChange: t.onFilter,
|
|
45
|
-
prefix:
|
|
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
|
-
|
|
54
|
+
g,
|
|
49
55
|
{
|
|
50
|
-
size:
|
|
56
|
+
size: l.mobileMode ? "large" : "medium",
|
|
51
57
|
checked: t.allSelected,
|
|
52
58
|
onChange: t.onSelectAll,
|
|
53
|
-
label:
|
|
59
|
+
label: o.toLanguageString(s, a[s])
|
|
54
60
|
}
|
|
55
|
-
)), t.filtered.map((
|
|
56
|
-
|
|
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:
|
|
59
|
-
disabled: t.selectedColumns[
|
|
60
|
-
checked: t.selectedColumns[
|
|
61
|
-
onChange: (
|
|
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 =
|
|
69
|
+
return t.onCheckChange(!!((i = b.target.element) != null && i.checked), n.id);
|
|
64
70
|
},
|
|
65
|
-
label:
|
|
71
|
+
label: n.title || n.field
|
|
66
72
|
}
|
|
67
|
-
)))), /* @__PURE__ */ e.createElement("div", { className: "k-filter-selected-items" }, t.checkedCount, " ",
|
|
68
|
-
|
|
69
|
-
a[
|
|
70
|
-
))))), /* @__PURE__ */ e.createElement(
|
|
71
|
-
|
|
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:
|
|
76
|
-
submitMessage:
|
|
81
|
+
resetMessage: o.toLanguageString(d, a[d]),
|
|
82
|
+
submitMessage: o.toLanguageString(h, a[h])
|
|
77
83
|
}
|
|
78
84
|
))),
|
|
79
|
-
|
|
85
|
+
k.current.current
|
|
80
86
|
));
|
|
81
87
|
};
|
|
82
88
|
export {
|
|
83
|
-
|
|
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"),
|
|
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
|
|
11
|
-
import { ActionSheetHeader as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { useLocalization as
|
|
14
|
-
import { GridColumnMenuAdaptiveContext as
|
|
15
|
-
import { chevronRightIcon as
|
|
16
|
-
import { GridColumnMenuFilterUI as
|
|
17
|
-
import { filterSubmitButton as
|
|
18
|
-
import { GridContext as
|
|
19
|
-
import { GridActionSheetFooterContent as
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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:
|
|
28
|
-
svgIcon:
|
|
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
|
-
|
|
39
|
+
i,
|
|
33
40
|
{
|
|
34
41
|
type: "button",
|
|
35
|
-
svgIcon:
|
|
42
|
+
svgIcon: S,
|
|
36
43
|
onClick: t.handleClose,
|
|
37
44
|
fillMode: "flat"
|
|
38
45
|
}
|
|
39
|
-
)))), /* @__PURE__ */ e.createElement(
|
|
40
|
-
|
|
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(
|
|
45
|
-
|
|
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:
|
|
50
|
-
submitIcon:
|
|
51
|
-
submitMessage:
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
resetIcon: b,
|
|
57
|
+
submitIcon: F,
|
|
58
|
+
submitMessage: o.toLanguageString(
|
|
59
|
+
a,
|
|
60
|
+
c[a]
|
|
54
61
|
),
|
|
55
|
-
resetMessage:
|
|
56
|
-
|
|
57
|
-
l
|
|
62
|
+
resetMessage: o.toLanguageString(
|
|
63
|
+
l,
|
|
64
|
+
c[l]
|
|
58
65
|
),
|
|
59
66
|
submitDisabled: !t.isFilterValid
|
|
60
67
|
}
|
|
61
68
|
)))),
|
|
62
|
-
|
|
69
|
+
m.current.current
|
|
63
70
|
));
|
|
64
71
|
};
|
|
65
72
|
export {
|
|
66
|
-
|
|
73
|
+
z as GridAdaptiveFilterMenu
|
|
67
74
|
};
|