@progress/kendo-react-grid 11.0.0-develop.4 → 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.
@@ -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
  };