@m4l/components 0.1.25 → 0.1.27

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 (43) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.9cfffe65.js → index.431160ba.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.6a0f34aa.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.85557b90.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.309d3b6f.js → index.edeb05c2.js} +9 -9
  5. package/components/DataGrid/{index.fe073438.js → index.2ce9da7d.js} +3 -3
  6. package/components/DynamicFilter/{index.d0753667.js → index.e1d4a948.js} +12 -12
  7. package/components/Icon/{index.f569765b.js → index.619c31c4.js} +27 -25
  8. package/components/Icon/types.d.ts +2 -1
  9. package/components/LanguagePopover/styles.d.ts +2 -0
  10. package/components/ModalDialog/{index.a24ca508.js → index.ad61757f.js} +3 -3
  11. package/components/ObjectLogs/{index.a7d36267.js → index.6ebaec71.js} +5 -5
  12. package/components/Page/index.4237c241.js +25 -0
  13. package/components/PaperForm/{index.3f8c7ef2.js → index.ec9cb8c9.js} +1 -1
  14. package/components/Period/{index.080a987d.js → index.81de7941.js} +24 -24
  15. package/components/PropertyValue/{index.ab3dd7e9.js → index.dfcfe1ba.js} +26 -25
  16. package/components/PropertyValue/styles.d.ts +2 -1
  17. package/components/PropertyValue/types.d.ts +3 -3
  18. package/components/formatters/BooleanFormatter/{index.3ec56305.js → index.8da35c9c.js} +1 -1
  19. package/components/formatters/DateFormatter/{index.08d8823b.js → index.1b9baacc.js} +1 -1
  20. package/components/formatters/{index.6959c2de.js → index.c2a9b55d.js} +1 -1
  21. package/components/hook-form/RHFPeriod/{index.067790c9.js → index.e08fb1ab.js} +1 -1
  22. package/components/hook-form/RHFTextField/{index.ba2a8f67.js → index.f9aaaa90.js} +1 -1
  23. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
  24. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
  25. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
  26. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
  27. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
  28. package/components/hook-form/RHFUpload/{index.6347159a.js → index.ec4d5326.js} +79 -73
  29. package/components/mui_extended/Accordion/{index.49f5df8e.js → index.a02ac6ae.js} +2 -2
  30. package/components/mui_extended/Avatar/index.fe06afd7.js +41 -0
  31. package/components/mui_extended/Button/{index.2afaa420.js → index.51dae0bb.js} +2 -2
  32. package/components/mui_extended/IconButton/index.a321e5cb.js +105 -0
  33. package/components/mui_extended/IconButton/index.d.ts +1 -1
  34. package/components/mui_extended/Pager/{index.a23cf8de.js → index.1dc45f5e.js} +1 -1
  35. package/components/mui_extended/Popover/index.cb2ccc66.js +252 -0
  36. package/contexts/ModalContext/{index.f17b3653.js → index.9ebc793c.js} +3 -3
  37. package/hooks/useModal/{index.b1f96279.js → index.34f5978e.js} +1 -1
  38. package/index.js +27 -27
  39. package/package.json +1 -1
  40. package/components/Page/index.fc660ee5.js +0 -27
  41. package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
  42. package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
  43. package/components/mui_extended/Popover/index.12b0ab55.js +0 -218
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary as n } from "@m4l/core";
2
- import { B as r } from "../../../mui_extended/Button/index.2afaa420.js";
2
+ import { B as r } from "../../../mui_extended/Button/index.51dae0bb.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  const m = (o) => {
5
5
  const {
@@ -2,9 +2,9 @@ import { useFormContext as f, useFormState as p } from "react-hook-form";
2
2
  import { useNavigate as C } from "react-router-dom";
3
3
  import { useModuleDictionary as g, useModuleSkeleton as d } from "@m4l/core";
4
4
  import { Skeleton as k } from "@mui/material";
5
- import { B as _ } from "../../../mui_extended/Button/index.2afaa420.js";
5
+ import { B as _ } from "../../../mui_extended/Button/index.51dae0bb.js";
6
6
  import { useCallback as v } from "react";
7
- import { u as h } from "../../../../hooks/useModal/index.b1f96279.js";
7
+ import { u as h } from "../../../../hooks/useModal/index.34f5978e.js";
8
8
  import { jsx as r } from "react/jsx-runtime";
9
9
  function A(n) {
10
10
  const {
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary as r } from "@m4l/core";
2
- import { B as n } from "../../../mui_extended/Button/index.2afaa420.js";
2
+ import { B as n } from "../../../mui_extended/Button/index.51dae0bb.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  const e = (o) => {
5
5
  const {
@@ -6,17 +6,17 @@ import "@mui/material/Button";
6
6
  import "react-hook-form";
7
7
  import "react-router-dom";
8
8
  import { useState as W, useMemo as w, forwardRef as st, useRef as B, useImperativeHandle as rt, useEffect as at, useCallback as j } from "react";
9
- import "../../../../contexts/ModalContext/index.f17b3653.js";
9
+ import "../../../../contexts/ModalContext/index.9ebc793c.js";
10
10
  import "@mui/lab";
11
- import { I as y } from "../../../mui_extended/IconButton/index.4b5ce8b5.js";
12
- import { u as I, a as lt, O as ct } from "../../../DataGrid/index.fe073438.js";
13
- import { P as dt } from "../../../mui_extended/Pager/index.a23cf8de.js";
11
+ import { I as y } from "../../../mui_extended/IconButton/index.a321e5cb.js";
12
+ import { u as I, a as lt, O as ct } from "../../../DataGrid/index.2ce9da7d.js";
13
+ import { P as dt } from "../../../mui_extended/Pager/index.1dc45f5e.js";
14
14
  import { D as pt } from "../../../../react-data-grid.d46d625e.js";
15
- import { u as gt } from "../../../../hooks/useModal/index.b1f96279.js";
16
- import { A as ft } from "../ActionCancel/index.9cfffe65.js";
17
- import { A as ut } from "../ActionIntro/index.f8403e8e.js";
18
- import { P as mt } from "../../../mui_extended/Popover/index.12b0ab55.js";
19
- import { I as N } from "../../../Icon/index.f569765b.js";
15
+ import { u as gt } from "../../../../hooks/useModal/index.34f5978e.js";
16
+ import { A as ft } from "../ActionCancel/index.431160ba.js";
17
+ import { A as ut } from "../ActionIntro/index.85557b90.js";
18
+ import { P as mt } from "../../../mui_extended/Popover/index.cb2ccc66.js";
19
+ import { I as N } from "../../../Icon/index.619c31c4.js";
20
20
  import { useResponsiveDesktop as ht } from "@m4l/graphics";
21
21
  const _t = p("div")(({
22
22
  theme: t
@@ -6,9 +6,9 @@ import { HTML5Backend as ge } from "react-dnd-html5-backend";
6
6
  import { SvgIcon as B, Checkbox as fe, InputBase as he, Skeleton as pe } from "@mui/material";
7
7
  import { jsx as d, jsxs as Q } from "react/jsx-runtime";
8
8
  import { voidFunction as I, useModuleDictionary as we, useModuleSkeleton as me } from "@m4l/core";
9
- import { A as ye, a as Ce } from "../CommonActions/components/Actions/index.309d3b6f.js";
10
- import { g as be, d as ve } from "../ModalDialog/index.a24ca508.js";
11
- import { g as xe, d as Re } from "../mui_extended/Pager/index.a23cf8de.js";
9
+ import { A as ye, a as Ce } from "../CommonActions/components/Actions/index.edeb05c2.js";
10
+ import { g as be, d as ve } from "../ModalDialog/index.ad61757f.js";
11
+ import { g as xe, d as Re } from "../mui_extended/Pager/index.1dc45f5e.js";
12
12
  const Se = A("div")(() => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
@@ -11,27 +11,27 @@ import "../hook-form/RHFCheckbox/index.6dcec9e2.js";
11
11
  import { alpha as Ke, styled as be, Skeleton as Fe, MenuItem as ze, useTheme as Ye, Popper as Ge } from "@mui/material";
12
12
  import "@mui/x-date-pickers";
13
13
  import { R as ee } from "../hook-form/RHFDateTime/index.9231a7c7.js";
14
- import { R as Y } from "../hook-form/RHFTextField/index.ba2a8f67.js";
15
- import { I as he } from "../Icon/index.f569765b.js";
16
- import "../hook-form/RHFPeriod/index.067790c9.js";
14
+ import { R as Y } from "../hook-form/RHFTextField/index.f9aaaa90.js";
15
+ import { I as he } from "../Icon/index.619c31c4.js";
16
+ import "../hook-form/RHFPeriod/index.e08fb1ab.js";
17
17
  import "../ErrorLabel/index.c8615f16.js";
18
- import "../Period/index.080a987d.js";
19
- import { L as Ue, b as Je, g as Qe } from "../CommonActions/components/Actions/index.309d3b6f.js";
18
+ import "../Period/index.81de7941.js";
19
+ import { L as Ue, b as Je, g as Qe } from "../CommonActions/components/Actions/index.edeb05c2.js";
20
20
  import "@mui/material/Button";
21
21
  import "react-router-dom";
22
- import "../../contexts/ModalContext/index.f17b3653.js";
22
+ import "../../contexts/ModalContext/index.9ebc793c.js";
23
23
  import "@mui/lab";
24
24
  import "lodash/isString";
25
25
  import "react-dropzone";
26
26
  import "../Image/index.c9da2d5a.js";
27
- import "../hook-form/RHFUpload/index.6347159a.js";
28
- import { I as G } from "../mui_extended/IconButton/index.4b5ce8b5.js";
27
+ import "../hook-form/RHFUpload/index.ec4d5326.js";
28
+ import { I as G } from "../mui_extended/IconButton/index.a321e5cb.js";
29
29
  import "simplebar/dist/simplebar.min.css";
30
- import { F as te } from "../mui_extended/Button/index.2afaa420.js";
31
- import { P as Xe } from "../mui_extended/Popover/index.12b0ab55.js";
30
+ import { F as te } from "../mui_extended/Button/index.51dae0bb.js";
31
+ import { P as Xe } from "../mui_extended/Popover/index.cb2ccc66.js";
32
32
  import { R as Ze } from "../contexts/RHFormContext/index.33dba822.js";
33
- import { A as et } from "../CommonActions/components/ActionCancel/index.9cfffe65.js";
34
- import { A as tt } from "../CommonActions/components/ActionIntro/index.f8403e8e.js";
33
+ import { A as et } from "../CommonActions/components/ActionCancel/index.431160ba.js";
34
+ import { A as tt } from "../CommonActions/components/ActionIntro/index.85557b90.js";
35
35
  import { useResponsiveDesktop as rt } from "@m4l/graphics";
36
36
  const re = h("div")(({
37
37
  theme: e
@@ -1,16 +1,16 @@
1
- import { styled as c } from "@mui/material";
2
- import { useState as C, useMemo as l, useEffect as g } from "react";
3
- import { useTheme as m } from "@mui/material/styles";
1
+ import { styled as r } from "@mui/material";
2
+ import { useState as l, useMemo as g, useEffect as m } from "react";
3
+ import { useTheme as D } from "@mui/material/styles";
4
4
  import { g as I } from "../../utils/index.214d9542.js";
5
5
  import { jsx as o } from "react/jsx-runtime";
6
- const d = c("div", {
7
- shouldForwardProp: (t) => t !== "src" && t !== "sizeIcon" && t !== "bgColor" && t !== "rotate"
6
+ const d = r("div", {
7
+ shouldForwardProp: (t) => t !== "src" && t !== "size" && t !== "bgColor" && t !== "rotationAngle" && t !== "angleTransition"
8
8
  })(({
9
9
  size: t,
10
10
  src: L,
11
11
  bgColor: e,
12
- rotate: i,
13
- theme: s
12
+ rotationAngle: s,
13
+ angleTransition: i
14
14
  }) => ({
15
15
  maskPosition: "center!important",
16
16
  maskRepeat: "no-repeat!important",
@@ -20,24 +20,25 @@ const d = c("div", {
20
20
  backgroundColor: e,
21
21
  mask: `url('data:image/svg+xml;base64,${L}')`,
22
22
  WebkitMask: `url('data:image/svg+xml;base64,${L}')`,
23
- transition: s.transitions.create("transform", {
24
- duration: s.transitions.duration.shorter
25
- }),
26
- ...i && {
27
- transform: "rotate(180deg)"
23
+ ...s && {
24
+ transform: `rotate(${s}deg)`
25
+ },
26
+ ...i && s && {
27
+ transition: `transform ${i}s ease-in-out`
28
28
  }
29
- })), D = c("div")(() => ({
29
+ })), N = r("div")(() => ({
30
30
  display: "flex",
31
31
  justifyContent: "center",
32
32
  alignItems: "center"
33
33
  }));
34
- function b(t) {
34
+ function T(t) {
35
35
  const {
36
36
  src: L,
37
37
  size: e = "small",
38
- bgColor: i = "action.active",
39
- rotate: s = !1
40
- } = t, [r, n] = C(void 0), w = m(), u = l(() => {
38
+ bgColor: s = "action.active",
39
+ rotationAngle: i,
40
+ angleTransition: n
41
+ } = t, [c, w] = l(void 0), j = D(), u = g(() => {
41
42
  switch (e) {
42
43
  case "extra-small":
43
44
  return "12px";
@@ -50,25 +51,26 @@ function b(t) {
50
51
  }
51
52
  return e;
52
53
  }, [e]);
53
- return g(() => {
54
+ return m(() => {
54
55
  let a = !0;
55
56
  return async function() {
56
57
  await fetch(L).then((M) => M.text() || "").then((M) => {
57
58
  M = M.match(
58
59
  /(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
59
- )?.toString() || "", a && n(window.btoa(M));
60
+ )?.toString() || "", a && w(window.btoa(M));
60
61
  }).catch((M) => {
61
62
  });
62
63
  }(), function() {
63
64
  a = !1;
64
65
  };
65
- }, [L]), /* @__PURE__ */ o(D, {
66
+ }, [L]), /* @__PURE__ */ o(N, {
66
67
  className: "m4l_icon",
67
- children: r ? /* @__PURE__ */ o(d, {
68
- src: r,
68
+ children: c ? /* @__PURE__ */ o(d, {
69
+ src: c,
69
70
  size: u,
70
- bgColor: I(w.palette, i),
71
- rotate: s
71
+ bgColor: I(j.palette, s),
72
+ rotationAngle: i,
73
+ angleTransition: n
72
74
  }) : /* @__PURE__ */ o("img", {
73
75
  src: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
74
76
  alt: "icon_svg",
@@ -78,5 +80,5 @@ function b(t) {
78
80
  });
79
81
  }
80
82
  export {
81
- b as I
83
+ T as I
82
84
  };
@@ -3,7 +3,8 @@ export interface IconProps {
3
3
  src: string;
4
4
  bgColor?: string | 'info' | 'warning' | 'error' | 'active' | 'selected' | 'disabled';
5
5
  size?: SizeIcon;
6
- rotate?: boolean;
6
+ rotationAngle?: number;
7
+ angleTransition?: number;
7
8
  }
8
9
  export declare type WrapperPlaceHolderProps = {
9
10
  size: string;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LabelItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
+ export declare const ContainerProgress: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const ContainerMenuItems: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,14 +1,14 @@
1
1
  import { Dialog as b, IconButton as w, Paper as v } from "@mui/material";
2
2
  import { c as D } from "../../react-draggable.20e95c61.js";
3
- import { u as $ } from "../../hooks/useModal/index.b1f96279.js";
3
+ import { u as $ } from "../../hooks/useModal/index.34f5978e.js";
4
4
  import { styled as s } from "@mui/material/styles";
5
5
  import { a as x } from "../../utils/index.214d9542.js";
6
6
  import { R as M } from "../Resizeable/index.45995d2b.js";
7
7
  import { useResponsiveDesktop as H } from "@m4l/graphics";
8
8
  import { useEnvironment as I } from "@m4l/core";
9
- import { I as C } from "../Icon/index.f569765b.js";
9
+ import { I as C } from "../Icon/index.619c31c4.js";
10
10
  import { jsxs as h, jsx as n } from "react/jsx-runtime";
11
- import { b as W, g as _ } from "../CommonActions/components/Actions/index.309d3b6f.js";
11
+ import { b as W, g as _ } from "../CommonActions/components/Actions/index.edeb05c2.js";
12
12
  const j = s(b)(() => ({})), k = s("div")(({ theme: o }) => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
@@ -1,14 +1,14 @@
1
1
  import { useState as _, useEffect as f, useCallback as d, useMemo as $ } from "react";
2
2
  import { useNetwork as k, useModuleDictionary as y, useEnvironment as h, usePaginate as O } from "@m4l/core";
3
3
  import { styled as g } from "@mui/material/styles";
4
- import { D as R, g as I } from "../DataGrid/index.fe073438.js";
5
- import { D as L } from "../formatters/DateFormatter/index.08d8823b.js";
4
+ import { D as R, g as I } from "../DataGrid/index.2ce9da7d.js";
5
+ import { D as L } from "../formatters/DateFormatter/index.1b9baacc.js";
6
6
  import { Tooltip as G, IconButton as M } from "@mui/material";
7
7
  import { R as S } from "../../react-json-view.f56a7f8e.js";
8
8
  import { jsx as t, jsxs as A } from "react/jsx-runtime";
9
- import { u as T } from "../../hooks/useModal/index.b1f96279.js";
10
- import { I as u } from "../Icon/index.f569765b.js";
11
- import { D as E, g as K } from "../DynamicFilter/index.d0753667.js";
9
+ import { u as T } from "../../hooks/useModal/index.34f5978e.js";
10
+ import { I as u } from "../Icon/index.619c31c4.js";
11
+ import { D as E, g as K } from "../DynamicFilter/index.e1d4a948.js";
12
12
  const q = g("div")(() => ({
13
13
  height: "100%",
14
14
  width: "100%",
@@ -0,0 +1,25 @@
1
+ import { Helmet as c } from "react-helmet-async";
2
+ import { useLocales as a } from "@m4l/graphics";
3
+ import { useModuleSkeleton as d } from "@m4l/core";
4
+ import { jsxs as t, Fragment as g, jsx as l } from "react/jsx-runtime";
5
+ const p = (o) => {
6
+ const {
7
+ children: r,
8
+ title: n,
9
+ meta: i,
10
+ subtitle: e
11
+ } = o, m = a().currentLocale?.localeString, s = d();
12
+ return /* @__PURE__ */ t(g, {
13
+ children: [!s && /* @__PURE__ */ t(c, {
14
+ children: [/* @__PURE__ */ l("title", {
15
+ children: `${n}${e ? ` | ${e}` : ""} `
16
+ }), /* @__PURE__ */ l("html", {
17
+ lang: m
18
+ }), i]
19
+ }), r]
20
+ });
21
+ };
22
+ p.displayName = "Page";
23
+ export {
24
+ p as H
25
+ };
@@ -1,7 +1,7 @@
1
1
  import { styled as r } from "@mui/material/styles";
2
2
  import { useModuleSkeleton as s } from "@m4l/core";
3
3
  import { Skeleton as d } from "@mui/material";
4
- import { I as l } from "../Icon/index.f569765b.js";
4
+ import { I as l } from "../Icon/index.619c31c4.js";
5
5
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
6
6
  const c = r("div")(({
7
7
  theme: i
@@ -1,13 +1,13 @@
1
- import { useModuleDictionary as O, useModuleSkeleton as P, useEnvironment as R } from "@m4l/core";
2
- import { styled as a, Skeleton as u, Autocomplete as T, TextField as b } from "@mui/material";
3
- import { useMemo as $ } from "react";
4
- import { I as A } from "../Icon/index.f569765b.js";
1
+ import { useModuleDictionary as k, useModuleSkeleton as O, useEnvironment as P } from "@m4l/core";
2
+ import { styled as a, Skeleton as u, Autocomplete as R, TextField as S } from "@mui/material";
3
+ import { useMemo as T } from "react";
4
+ import { I as A } from "../Icon/index.619c31c4.js";
5
5
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
6
- import { g as w } from "../CommonActions/components/Actions/index.309d3b6f.js";
6
+ import { g as $ } from "../CommonActions/components/Actions/index.edeb05c2.js";
7
7
  import "@mui/material/Button";
8
8
  import "react-hook-form";
9
9
  import "react-router-dom";
10
- import "../../contexts/ModalContext/index.f17b3653.js";
10
+ import "../../contexts/ModalContext/index.9ebc793c.js";
11
11
  import "@mui/lab";
12
12
  const M = a("div")(({
13
13
  theme: t,
@@ -40,7 +40,7 @@ const M = a("div")(({
40
40
  width: "1px",
41
41
  height: "20px",
42
42
  backgroundColor: t.palette.divider
43
- })), D = a("div", {
43
+ })), w = a("div", {
44
44
  shouldForwardProp: (t) => t !== "readOnly"
45
45
  })(({
46
46
  theme: t,
@@ -57,7 +57,7 @@ const M = a("div")(({
57
57
  },
58
58
  padding: t.spacing(0.5, 1),
59
59
  borderRadius: "4px"
60
- })), F = a("div")(({
60
+ })), D = a("div")(({
61
61
  theme: t
62
62
  }) => ({
63
63
  ...t.typography.body2,
@@ -67,7 +67,7 @@ const M = a("div")(({
67
67
  overflow: "hidden",
68
68
  padding: "5px",
69
69
  textAlign: "left"
70
- })), H = a("div")(({
70
+ })), F = a("div")(({
71
71
  theme: t
72
72
  }) => ({
73
73
  ...t.typography.body2,
@@ -79,7 +79,7 @@ const M = a("div")(({
79
79
  textAlign: "left"
80
80
  }));
81
81
  var r = /* @__PURE__ */ ((t) => (t[t.YEARS = 0] = "YEARS", t[t.MONTHS = 1] = "MONTHS", t[t.DAYS = 2] = "DAYS", t))(r || {});
82
- const _ = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0 ? r.YEARS : t.months && t.months > 0 ? r.MONTHS : t.days && t.days > 0 ? r.DAYS : r.YEARS : r.YEARS, N = (t) => t ? t.singleValue !== void 0 ? t.singleValue : t.years && t.years > 0 ? t.years : t.months && t.months > 0 ? t.months : t.days && t.days > 0 ? t.days : "" : "", J = (t) => {
82
+ const H = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0 ? r.YEARS : t.months && t.months > 0 ? r.MONTHS : t.days && t.days > 0 ? r.DAYS : r.YEARS : r.YEARS, N = (t) => t ? t.singleValue !== void 0 ? t.singleValue : t.years && t.years > 0 ? t.years : t.months && t.months > 0 ? t.months : t.days && t.days > 0 ? t.days : "" : "", J = (t) => {
83
83
  const {
84
84
  value: i,
85
85
  onChange: p,
@@ -89,28 +89,28 @@ const _ = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0
89
89
  skeletonHeight: h = "18px"
90
90
  } = t, {
91
91
  getLabel: d
92
- } = O(), Y = P(), f = _(i), x = N(i), m = (e, o) => {
92
+ } = k(), Y = O(), f = H(i), x = N(i), m = (e, o) => {
93
93
  const s = {
94
94
  selPeriodTime: e,
95
95
  singleValue: o
96
96
  };
97
97
  o !== "" && o > 0 && (s.years = 0, s.months = 0, s.days = 0, e === r.YEARS && (s.years = o), e === r.MONTHS && (s.months = o), e === r.DAYS && (s.days = o)), p(s);
98
- }, k = (e) => {
98
+ }, _ = (e) => {
99
99
  e && m(e.id, x);
100
100
  }, {
101
101
  host_static_assets: y,
102
102
  environment_assets: v
103
- } = R(), S = $(() => [{
103
+ } = P(), b = T(() => [{
104
104
  id: 0,
105
- label: d("period.years")
105
+ label: d("period.label_days")
106
106
  }, {
107
107
  id: 1,
108
- label: d("period.months")
108
+ label: d("period.label_months")
109
109
  }, {
110
110
  id: 2,
111
- label: d("period.days")
111
+ label: d("period.label_years")
112
112
  }], [d]);
113
- return Y ? /* @__PURE__ */ c(D, {
113
+ return Y ? /* @__PURE__ */ c(w, {
114
114
  readOnly: l,
115
115
  children: [/* @__PURE__ */ n(u, {
116
116
  variant: "text",
@@ -131,14 +131,14 @@ const _ = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0
131
131
  }) : (l && (i.selPeriodTime, i.singleValue, A, `${y}${v}`), /* @__PURE__ */ c(M, {
132
132
  error: C,
133
133
  readOnly: l,
134
- children: [/* @__PURE__ */ n(T, {
135
- options: S,
136
- value: S[f],
134
+ children: [/* @__PURE__ */ n(R, {
135
+ options: b,
136
+ value: b[f],
137
137
  disableClearable: !0,
138
138
  onChange: (e, o) => {
139
- k(o);
139
+ _(o);
140
140
  },
141
- renderInput: (e) => /* @__PURE__ */ n(b, {
141
+ renderInput: (e) => /* @__PURE__ */ n(S, {
142
142
  ...e,
143
143
  fullWidth: !0,
144
144
  variant: "standard",
@@ -151,7 +151,7 @@ const _ = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0
151
151
  },
152
152
  autoComplete: "off"
153
153
  }, `tx_async_${e.id}`)
154
- }), /* @__PURE__ */ n(g, {}), /* @__PURE__ */ n(b, {
154
+ }), /* @__PURE__ */ n(g, {}), /* @__PURE__ */ n(S, {
155
155
  type: "number",
156
156
  variant: "standard",
157
157
  value: x,
@@ -167,7 +167,7 @@ const _ = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0
167
167
  }));
168
168
  };
169
169
  function Q() {
170
- return ["period"].concat(w());
170
+ return ["period"].concat($());
171
171
  }
172
172
  export {
173
173
  J as P,
@@ -1,13 +1,13 @@
1
- import { styled as p } from "@mui/material/styles";
1
+ import { styled as a } from "@mui/material/styles";
2
2
  import { Skeleton as g } from "@mui/material";
3
3
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
4
4
  import { useResponsiveDesktop as c } from "@m4l/graphics";
5
5
  import { useModuleSkeleton as h } from "@m4l/core";
6
- const y = p("div", {
6
+ const y = a("div", {
7
7
  shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
8
8
  })(({
9
9
  propertyWidth: r,
10
- isForm: i,
10
+ isForm: o,
11
11
  theme: t
12
12
  }) => ({
13
13
  display: "grid",
@@ -16,20 +16,20 @@ const y = p("div", {
16
16
  width: "100%",
17
17
  padding: `${t.spacing(1)} ${t.spacing(2)}`,
18
18
  ":hover": {
19
- backgroundColor: i ? "unset" : t.palette.grid?.rowHover
19
+ backgroundColor: o ? "unset" : t.palette.grid?.rowHover
20
20
  },
21
- borderBottom: i ? "none" : `1px solid ${t.palette.divider}`,
21
+ borderBottom: o ? "none" : `1px solid ${t.palette.divider}`,
22
22
  flexDirection: "column",
23
23
  [t.breakpoints.up("sm")]: {
24
24
  gridTemplateColumns: r ? `${r}px 1fr` : "150px 1fr",
25
25
  gap: t.spacing(2),
26
26
  alignItems: "center"
27
27
  }
28
- })), x = p("div", {
28
+ })), x = a("div", {
29
29
  shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
30
30
  })(({
31
31
  propertyWidth: r,
32
- isForm: i,
32
+ isForm: o,
33
33
  theme: t
34
34
  }) => ({
35
35
  width: "100%",
@@ -42,7 +42,7 @@ const y = p("div", {
42
42
  justifyContent: "flex-start",
43
43
  position: "relative",
44
44
  [t.breakpoints.up("sm")]: {
45
- borderRight: i ? "none" : `1px solid ${t.palette.divider}`,
45
+ borderRight: o ? "none" : `1px solid ${t.palette.divider}`,
46
46
  paddingRight: t.spacing(2),
47
47
  textAlign: "right",
48
48
  width: r || "150px",
@@ -51,11 +51,11 @@ const y = p("div", {
51
51
  },
52
52
  overflow: "hidden",
53
53
  overflowWrap: "break-word"
54
- })), v = p("div", {
54
+ })), v = a("div", {
55
55
  shouldForwardProp: (r) => r !== "valueWidth" && r !== "valueHeight" && r !== "withGrid"
56
56
  })(({
57
57
  valueWidth: r,
58
- valueHeight: i,
58
+ valueHeight: o,
59
59
  theme: t
60
60
  }) => ({
61
61
  flexGrow: "1",
@@ -65,14 +65,14 @@ const y = p("div", {
65
65
  padding: "1px",
66
66
  maxWidth: `${r}%`,
67
67
  width: `${r}%`,
68
- height: i,
68
+ height: o,
69
69
  marginTop: t.spacing(1),
70
70
  [t.breakpoints.up("sm")]: {
71
71
  marginTop: "0px"
72
72
  },
73
- overflow: "hidden",
73
+ overflow: "auto",
74
74
  overflowWrap: "break-word"
75
- })), m = p("div")(() => ({
75
+ })), m = a("div")(() => ({
76
76
  display: "flex",
77
77
  justifyContent: "flex-end"
78
78
  }));
@@ -87,26 +87,27 @@ function w() {
87
87
  }
88
88
  function C(r) {
89
89
  const {
90
- property: i,
90
+ property: o,
91
91
  value: t,
92
- propertyWidth: a = 200,
93
- valueHeight: d = "auto",
92
+ propertyWidth: l = 200,
93
+ valueHeight: s = "auto",
94
94
  valueWidth: e = "100",
95
- isForm: l
96
- } = r, o = c(), s = h(), u = (() => e === "75" && o ? "75" : e === "75" && !o ? "100" : e === "50" && o ? "50" : e === "50" && !o ? "100" : e === "25" && o || e === "12.5" && o ? `${e}` : e === "25" && !o ? "50" : e === "12.5" && !o ? "25" : "100")();
95
+ valueWidthMobile: p,
96
+ isForm: d
97
+ } = r, i = c(), u = h();
97
98
  return /* @__PURE__ */ f(y, {
98
99
  id: "WrapperPropertyValue",
99
- isForm: l,
100
- propertyWidth: a,
100
+ isForm: d,
101
+ propertyWidth: l,
101
102
  children: [/* @__PURE__ */ n(x, {
102
103
  id: "Property",
103
- isForm: l,
104
- propertyWidth: a,
105
- children: s ? /* @__PURE__ */ n(w, {}) : i
104
+ isForm: d,
105
+ propertyWidth: l,
106
+ children: u ? /* @__PURE__ */ n(w, {}) : o
106
107
  }), /* @__PURE__ */ n(v, {
107
108
  id: "Value",
108
- valueWidth: u,
109
- valueHeight: d,
109
+ valueWidth: (() => p && !i ? p : e === 75 && i ? 75 : e === 75 && !i ? 100 : e === 50 && i ? 50 : e === 50 && !i ? 100 : e === 25 && i || e === 12.5 && i ? e : e === 25 && !i ? 50 : e === 12.5 && !i ? 25 : 100)(),
110
+ valueHeight: s,
110
111
  children: t
111
112
  })]
112
113
  });
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { WrapperValueProps } from './types';
2
3
  export declare const WrapperPropertyValue: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").PropertyProps & Pick<import("./types").PropertyValueProps, "isForm">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
4
  export declare const Property: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").PropertyProps & Pick<import("./types").PropertyValueProps, "isForm">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").ValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
6
  export declare const SKTWrapperProperty: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -4,9 +4,9 @@ export interface PropertyProps {
4
4
  }
5
5
  export interface ValueProps {
6
6
  valueHeight?: number | string;
7
- valueWidth?: valueWidthType;
7
+ valueWidth?: number;
8
+ valueWidthMobile?: number;
8
9
  }
9
- export declare type valueWidthType = '100' | '75' | '50' | '25' | '12.5';
10
10
  export interface PropertyValueProps extends PropertyProps, ValueProps {
11
11
  property: string;
12
12
  value: number | string | ReactNode;
@@ -14,4 +14,4 @@ export interface PropertyValueProps extends PropertyProps, ValueProps {
14
14
  }
15
15
  export declare type WrapperProps = PropertyProps & Pick<PropertyValueProps, 'isForm'>;
16
16
  export declare type WrapperPropertyProps = WrapperProps;
17
- export declare type WrapperValueProps = ValueProps;
17
+ export declare type WrapperValueProps = Omit<ValueProps, 'valueWidthMobile'>;
@@ -1,6 +1,6 @@
1
1
  import { useModuleDictionary as u, useEnvironment as _, getPropertyByString as p } from "@m4l/core";
2
2
  import l from "react";
3
- import { I as d } from "../../Icon/index.f569765b.js";
3
+ import { I as d } from "../../Icon/index.619c31c4.js";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  function g(r) {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import c from "react";
2
2
  import { useEnvironment as p, useHostTools as u, getPropertyByString as d } from "@m4l/core";
3
- import "../../Icon/index.f569765b.js";
3
+ import "../../Icon/index.619c31c4.js";
4
4
  import "@mui/material/styles";
5
5
  import { jsx as f, Fragment as y } from "react/jsx-runtime";
6
6
  function g(a) {
@@ -1,7 +1,7 @@
1
1
  import l from "react";
2
2
  import { jsx as m, Fragment as u } from "react/jsx-runtime";
3
3
  import { getPropertyByString as i } from "@m4l/core";
4
- import "../Icon/index.f569765b.js";
4
+ import "../Icon/index.619c31c4.js";
5
5
  import "@mui/material/styles";
6
6
  function _(e) {
7
7
  const {
@@ -1,7 +1,7 @@
1
1
  import { styled as d } from "@mui/material";
2
2
  import { useFormContext as f, Controller as p } from "react-hook-form";
3
3
  import { E as c } from "../../ErrorLabel/index.c8615f16.js";
4
- import { P as x } from "../../Period/index.080a987d.js";
4
+ import { P as x } from "../../Period/index.81de7941.js";
5
5
  import { jsx as r, jsxs as g } from "react/jsx-runtime";
6
6
  const u = d("div")(({
7
7
  theme: e