@progress/kendo-react-grid 11.0.0-develop.5 → 11.0.0-develop.6
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/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 +6 -1
- package/index.d.ts +6 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
|
@@ -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
|
};
|