@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.
- package/components/CommonActions/components/ActionCancel/{index.9cfffe65.js → index.431160ba.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.6a0f34aa.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.85557b90.js} +1 -1
- package/components/CommonActions/components/Actions/{index.309d3b6f.js → index.edeb05c2.js} +9 -9
- package/components/DataGrid/{index.fe073438.js → index.2ce9da7d.js} +3 -3
- package/components/DynamicFilter/{index.d0753667.js → index.e1d4a948.js} +12 -12
- package/components/Icon/{index.f569765b.js → index.619c31c4.js} +27 -25
- package/components/Icon/types.d.ts +2 -1
- package/components/LanguagePopover/styles.d.ts +2 -0
- package/components/ModalDialog/{index.a24ca508.js → index.ad61757f.js} +3 -3
- package/components/ObjectLogs/{index.a7d36267.js → index.6ebaec71.js} +5 -5
- package/components/Page/index.4237c241.js +25 -0
- package/components/PaperForm/{index.3f8c7ef2.js → index.ec9cb8c9.js} +1 -1
- package/components/Period/{index.080a987d.js → index.81de7941.js} +24 -24
- package/components/PropertyValue/{index.ab3dd7e9.js → index.dfcfe1ba.js} +26 -25
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/formatters/BooleanFormatter/{index.3ec56305.js → index.8da35c9c.js} +1 -1
- package/components/formatters/DateFormatter/{index.08d8823b.js → index.1b9baacc.js} +1 -1
- package/components/formatters/{index.6959c2de.js → index.c2a9b55d.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.067790c9.js → index.e08fb1ab.js} +1 -1
- package/components/hook-form/RHFTextField/{index.ba2a8f67.js → index.f9aaaa90.js} +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
- package/components/hook-form/RHFUpload/{index.6347159a.js → index.ec4d5326.js} +79 -73
- package/components/mui_extended/Accordion/{index.49f5df8e.js → index.a02ac6ae.js} +2 -2
- package/components/mui_extended/Avatar/index.fe06afd7.js +41 -0
- package/components/mui_extended/Button/{index.2afaa420.js → index.51dae0bb.js} +2 -2
- package/components/mui_extended/IconButton/index.a321e5cb.js +105 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/Pager/{index.a23cf8de.js → index.1dc45f5e.js} +1 -1
- package/components/mui_extended/Popover/index.cb2ccc66.js +252 -0
- package/contexts/ModalContext/{index.f17b3653.js → index.9ebc793c.js} +3 -3
- package/hooks/useModal/{index.b1f96279.js → index.34f5978e.js} +1 -1
- package/index.js +27 -27
- package/package.json +1 -1
- package/components/Page/index.fc660ee5.js +0 -27
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Popover/index.12b0ab55.js +0 -218
package/components/CommonActions/components/ActionCancel/{index.9cfffe65.js → index.431160ba.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary as n } from "@m4l/core";
|
|
2
|
-
import { B as r } from "../../../mui_extended/Button/index.
|
|
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 {
|
package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.6a0f34aa.js}
RENAMED
|
@@ -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.
|
|
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.
|
|
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 {
|
package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.85557b90.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary as r } from "@m4l/core";
|
|
2
|
-
import { B as n } from "../../../mui_extended/Button/index.
|
|
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.
|
|
9
|
+
import "../../../../contexts/ModalContext/index.9ebc793c.js";
|
|
10
10
|
import "@mui/lab";
|
|
11
|
-
import { I as y } from "../../../mui_extended/IconButton/index.
|
|
12
|
-
import { u as I, a as lt, O as ct } from "../../../DataGrid/index.
|
|
13
|
-
import { P as dt } from "../../../mui_extended/Pager/index.
|
|
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.
|
|
16
|
-
import { A as ft } from "../ActionCancel/index.
|
|
17
|
-
import { A as ut } from "../ActionIntro/index.
|
|
18
|
-
import { P as mt } from "../../../mui_extended/Popover/index.
|
|
19
|
-
import { I as N } from "../../../Icon/index.
|
|
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.
|
|
10
|
-
import { g as be, d as ve } from "../ModalDialog/index.
|
|
11
|
-
import { g as xe, d as Re } from "../mui_extended/Pager/index.
|
|
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.
|
|
15
|
-
import { I as he } from "../Icon/index.
|
|
16
|
-
import "../hook-form/RHFPeriod/index.
|
|
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.
|
|
19
|
-
import { L as Ue, b as Je, g as Qe } from "../CommonActions/components/Actions/index.
|
|
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.
|
|
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.
|
|
28
|
-
import { I as G } from "../mui_extended/IconButton/index.
|
|
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.
|
|
31
|
-
import { P as Xe } from "../mui_extended/Popover/index.
|
|
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.
|
|
34
|
-
import { A as tt } from "../CommonActions/components/ActionIntro/index.
|
|
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
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useTheme as
|
|
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 =
|
|
7
|
-
shouldForwardProp: (t) => t !== "src" && t !== "
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
...i && {
|
|
27
|
-
|
|
23
|
+
...s && {
|
|
24
|
+
transform: `rotate(${s}deg)`
|
|
25
|
+
},
|
|
26
|
+
...i && s && {
|
|
27
|
+
transition: `transform ${i}s ease-in-out`
|
|
28
28
|
}
|
|
29
|
-
})),
|
|
29
|
+
})), N = r("div")(() => ({
|
|
30
30
|
display: "flex",
|
|
31
31
|
justifyContent: "center",
|
|
32
32
|
alignItems: "center"
|
|
33
33
|
}));
|
|
34
|
-
function
|
|
34
|
+
function T(t) {
|
|
35
35
|
const {
|
|
36
36
|
src: L,
|
|
37
37
|
size: e = "small",
|
|
38
|
-
bgColor:
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
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 &&
|
|
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(
|
|
66
|
+
}, [L]), /* @__PURE__ */ o(N, {
|
|
66
67
|
className: "m4l_icon",
|
|
67
|
-
children:
|
|
68
|
-
src:
|
|
68
|
+
children: c ? /* @__PURE__ */ o(d, {
|
|
69
|
+
src: c,
|
|
69
70
|
size: u,
|
|
70
|
-
bgColor: I(
|
|
71
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
5
|
-
import { D as L } from "../formatters/DateFormatter/index.
|
|
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.
|
|
10
|
-
import { I as u } from "../Icon/index.
|
|
11
|
-
import { D as E, g as K } from "../DynamicFilter/index.
|
|
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.
|
|
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
|
|
2
|
-
import { styled as a, Skeleton as u, Autocomplete as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { I as A } from "../Icon/index.
|
|
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
|
|
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.
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
|
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
|
-
} =
|
|
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
|
-
},
|
|
98
|
+
}, _ = (e) => {
|
|
99
99
|
e && m(e.id, x);
|
|
100
100
|
}, {
|
|
101
101
|
host_static_assets: y,
|
|
102
102
|
environment_assets: v
|
|
103
|
-
} =
|
|
103
|
+
} = P(), b = T(() => [{
|
|
104
104
|
id: 0,
|
|
105
|
-
label: d("period.
|
|
105
|
+
label: d("period.label_days")
|
|
106
106
|
}, {
|
|
107
107
|
id: 1,
|
|
108
|
-
label: d("period.
|
|
108
|
+
label: d("period.label_months")
|
|
109
109
|
}, {
|
|
110
110
|
id: 2,
|
|
111
|
-
label: d("period.
|
|
111
|
+
label: d("period.label_years")
|
|
112
112
|
}], [d]);
|
|
113
|
-
return Y ? /* @__PURE__ */ c(
|
|
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(
|
|
135
|
-
options:
|
|
136
|
-
value:
|
|
134
|
+
children: [/* @__PURE__ */ n(R, {
|
|
135
|
+
options: b,
|
|
136
|
+
value: b[f],
|
|
137
137
|
disableClearable: !0,
|
|
138
138
|
onChange: (e, o) => {
|
|
139
|
-
|
|
139
|
+
_(o);
|
|
140
140
|
},
|
|
141
|
-
renderInput: (e) => /* @__PURE__ */ n(
|
|
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(
|
|
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(
|
|
170
|
+
return ["period"].concat($());
|
|
171
171
|
}
|
|
172
172
|
export {
|
|
173
173
|
J as P,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { styled as
|
|
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 =
|
|
6
|
+
const y = a("div", {
|
|
7
7
|
shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
|
|
8
8
|
})(({
|
|
9
9
|
propertyWidth: r,
|
|
10
|
-
isForm:
|
|
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:
|
|
19
|
+
backgroundColor: o ? "unset" : t.palette.grid?.rowHover
|
|
20
20
|
},
|
|
21
|
-
borderBottom:
|
|
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 =
|
|
28
|
+
})), x = a("div", {
|
|
29
29
|
shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
|
|
30
30
|
})(({
|
|
31
31
|
propertyWidth: r,
|
|
32
|
-
isForm:
|
|
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:
|
|
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 =
|
|
54
|
+
})), v = a("div", {
|
|
55
55
|
shouldForwardProp: (r) => r !== "valueWidth" && r !== "valueHeight" && r !== "withGrid"
|
|
56
56
|
})(({
|
|
57
57
|
valueWidth: r,
|
|
58
|
-
valueHeight:
|
|
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:
|
|
68
|
+
height: o,
|
|
69
69
|
marginTop: t.spacing(1),
|
|
70
70
|
[t.breakpoints.up("sm")]: {
|
|
71
71
|
marginTop: "0px"
|
|
72
72
|
},
|
|
73
|
-
overflow: "
|
|
73
|
+
overflow: "auto",
|
|
74
74
|
overflowWrap: "break-word"
|
|
75
|
-
})), m =
|
|
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:
|
|
90
|
+
property: o,
|
|
91
91
|
value: t,
|
|
92
|
-
propertyWidth:
|
|
93
|
-
valueHeight:
|
|
92
|
+
propertyWidth: l = 200,
|
|
93
|
+
valueHeight: s = "auto",
|
|
94
94
|
valueWidth: e = "100",
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
valueWidthMobile: p,
|
|
96
|
+
isForm: d
|
|
97
|
+
} = r, i = c(), u = h();
|
|
97
98
|
return /* @__PURE__ */ f(y, {
|
|
98
99
|
id: "WrapperPropertyValue",
|
|
99
|
-
isForm:
|
|
100
|
-
propertyWidth:
|
|
100
|
+
isForm: d,
|
|
101
|
+
propertyWidth: l,
|
|
101
102
|
children: [/* @__PURE__ */ n(x, {
|
|
102
103
|
id: "Property",
|
|
103
|
-
isForm:
|
|
104
|
-
propertyWidth:
|
|
105
|
-
children:
|
|
104
|
+
isForm: d,
|
|
105
|
+
propertyWidth: l,
|
|
106
|
+
children: u ? /* @__PURE__ */ n(w, {}) : o
|
|
106
107
|
}), /* @__PURE__ */ n(v, {
|
|
107
108
|
id: "Value",
|
|
108
|
-
valueWidth:
|
|
109
|
-
valueHeight:
|
|
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> &
|
|
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?:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|