@m4l/components 0.1.17 → 0.1.18

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 (21) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.62a3aacc.js → index.7e947996.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.66469642.js → index.63405f6c.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.8872533f.js → index.bac90f39.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.4ba034cb.js → index.6b25caed.js} +7 -7
  5. package/components/DataGrid/{index.5ba34dbc.js → index.091572bf.js} +3 -3
  6. package/components/DynamicFilter/{index.e354ae5a.js → index.7efecd5d.js} +8 -8
  7. package/components/LanguagePopover/{index.df601ffe.js → index.15f7dea7.js} +3 -3
  8. package/components/ModalDialog/{index.8788743f.js → index.0ddffae6.js} +2 -2
  9. package/components/ObjectLogs/{index.c5a9747b.js → index.64f06b3d.js} +3 -3
  10. package/components/Period/{index.342dc416.js → index.8423f865.js} +3 -3
  11. package/components/formatters/index.55856d65.js +106 -0
  12. package/components/hook-form/FormProvider/index.936cbb98.js +55 -0
  13. package/components/hook-form/RHFPeriod/{index.fe3f3681.js → index.0b982ae8.js} +1 -1
  14. package/components/mui_extended/Button/{index.42f24e7d.js → index.3debb608.js} +1 -1
  15. package/components/mui_extended/Pager/{index.171ce39d.js → index.f0911163.js} +1 -1
  16. package/contexts/ModalContext/{index.7113cfd8.js → index.1688a07c.js} +3 -3
  17. package/hooks/useModal/{index.ab22798b.js → index.cdd84702.js} +1 -1
  18. package/index.js +17 -17
  19. package/package.json +1 -2
  20. package/components/formatters/index.a563fe5d.js +0 -106
  21. package/components/hook-form/FormProvider/index.4c9289e1.js +0 -55
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary as n } from "@m4l/core";
2
- import { B as r } from "../../../mui_extended/Button/index.42f24e7d.js";
2
+ import { B as r } from "../../../mui_extended/Button/index.3debb608.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.42f24e7d.js";
5
+ import { B as _ } from "../../../mui_extended/Button/index.3debb608.js";
6
6
  import { useCallback as v } from "react";
7
- import { u as h } from "../../../../hooks/useModal/index.ab22798b.js";
7
+ import { u as h } from "../../../../hooks/useModal/index.cdd84702.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.42f24e7d.js";
2
+ import { B as n } from "../../../mui_extended/Button/index.3debb608.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  const e = (o) => {
5
5
  const {
@@ -2,20 +2,20 @@ import { jsx as e, jsxs as b, Fragment as W } from "react/jsx-runtime";
2
2
  import { styled as p } from "@mui/material/styles";
3
3
  import { useEnvironment as k, useModuleDictionary as T } from "@m4l/core";
4
4
  import "@mui/material/Button";
5
- import "../../../mui_extended/Button/index.42f24e7d.js";
5
+ import "../../../mui_extended/Button/index.3debb608.js";
6
6
  import "react-hook-form";
7
7
  import "react-router-dom";
8
8
  import { IconButton as nt, Tooltip as et, MenuItem as it, Skeleton as S, Checkbox as ot } from "@mui/material";
9
9
  import { useState as L, useMemo as w, forwardRef as st, useRef as B, useImperativeHandle as rt, useEffect as at, useCallback as j } from "react";
10
- import "../../../../contexts/ModalContext/index.7113cfd8.js";
10
+ import "../../../../contexts/ModalContext/index.1688a07c.js";
11
11
  import "@mui/lab";
12
12
  import { I as v } from "../../../mui_extended/IconButton/index.88f3aadb.js";
13
- import { u as I, a as lt, O as ct } from "../../../DataGrid/index.5ba34dbc.js";
14
- import { P as dt } from "../../../mui_extended/Pager/index.171ce39d.js";
13
+ import { u as I, a as lt, O as ct } from "../../../DataGrid/index.091572bf.js";
14
+ import { P as dt } from "../../../mui_extended/Pager/index.f0911163.js";
15
15
  import { D as pt } from "../../../../react-data-grid.d46d625e.js";
16
- import { u as gt } from "../../../../hooks/useModal/index.ab22798b.js";
17
- import { A as ft } from "../ActionCancel/index.62a3aacc.js";
18
- import { A as ut } from "../ActionIntro/index.8872533f.js";
16
+ import { u as gt } from "../../../../hooks/useModal/index.cdd84702.js";
17
+ import { A as ft } from "../ActionCancel/index.7e947996.js";
18
+ import { A as ut } from "../ActionIntro/index.bac90f39.js";
19
19
  import { M as mt } from "../../../mui_extended/MenuPopover/index.488fc536.js";
20
20
  import { I as N } from "../../../Icon/index.cbca79b0.js";
21
21
  import { useResponsiveDesktop as ht } from "@m4l/graphics";
@@ -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.4ba034cb.js";
10
- import { g as be, d as ve } from "../ModalDialog/index.8788743f.js";
11
- import { g as xe, d as Re } from "../mui_extended/Pager/index.171ce39d.js";
9
+ import { A as ye, a as Ce } from "../CommonActions/components/Actions/index.6b25caed.js";
10
+ import { g as be, d as ve } from "../ModalDialog/index.0ddffae6.js";
11
+ import { g as xe, d as Re } from "../mui_extended/Pager/index.f0911163.js";
12
12
  const Se = A("div")(() => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
@@ -4,7 +4,7 @@ import { useRef as me, useState as S, useMemo as E, useCallback as _, useEffect
4
4
  import { useModuleDictionary as $, useHostTools as z, useEnvironment as j, voidFunction as V, useFlagsPresent as He } from "@m4l/core";
5
5
  import * as w from "yup";
6
6
  import { useFormContext as M, useWatch as ge } from "react-hook-form";
7
- import { F as Ke } from "../hook-form/FormProvider/index.4c9289e1.js";
7
+ import { F as Ke } from "../hook-form/FormProvider/index.936cbb98.js";
8
8
  import { jsx as r, jsxs as C, Fragment as A } from "react/jsx-runtime";
9
9
  import { R } from "../hook-form/RHFAutocomplete/index.6ed76d4c.js";
10
10
  import { alpha as ze, styled as be, Skeleton as Fe, MenuItem as Ye, useTheme as Ge, Popper as Ue } from "@mui/material";
@@ -13,15 +13,15 @@ import "../hook-form/RHFCheckbox/index.f9ce6c39.js";
13
13
  import { R as ee } from "../hook-form/RHFDateTime/index.fc5cbafe.js";
14
14
  import "@mui/x-date-pickers";
15
15
  import { R as Y } from "../hook-form/RHFTextField/index.4c455f75.js";
16
- import "../hook-form/RHFPeriod/index.fe3f3681.js";
16
+ import "../hook-form/RHFPeriod/index.0b982ae8.js";
17
17
  import "../ErrorLabel/index.c8615f16.js";
18
- import "../Period/index.342dc416.js";
18
+ import "../Period/index.8423f865.js";
19
19
  import { I as he } from "../Icon/index.cbca79b0.js";
20
- import { L as Je, b as Qe, g as Xe } from "../CommonActions/components/Actions/index.4ba034cb.js";
20
+ import { L as Je, b as Qe, g as Xe } from "../CommonActions/components/Actions/index.6b25caed.js";
21
21
  import "@mui/material/Button";
22
- import { F as te } from "../mui_extended/Button/index.42f24e7d.js";
22
+ import { F as te } from "../mui_extended/Button/index.3debb608.js";
23
23
  import "react-router-dom";
24
- import "../../contexts/ModalContext/index.7113cfd8.js";
24
+ import "../../contexts/ModalContext/index.1688a07c.js";
25
25
  import "@mui/lab";
26
26
  import "../../lodash.e09401f0.js";
27
27
  import "react-dropzone";
@@ -31,8 +31,8 @@ import "../hook-form/RHFUpload/index.ed3d739f.js";
31
31
  import { I as G } from "../mui_extended/IconButton/index.88f3aadb.js";
32
32
  import "simplebar/dist/simplebar.min.css";
33
33
  import { M as Ze } from "../mui_extended/MenuPopover/index.488fc536.js";
34
- import { A as et } from "../CommonActions/components/ActionCancel/index.62a3aacc.js";
35
- import { A as tt } from "../CommonActions/components/ActionIntro/index.8872533f.js";
34
+ import { A as et } from "../CommonActions/components/ActionCancel/index.7e947996.js";
35
+ import { A as tt } from "../CommonActions/components/ActionIntro/index.bac90f39.js";
36
36
  import { useResponsiveDesktop as rt } from "@m4l/graphics";
37
37
  const re = h("div")(({
38
38
  theme: e
@@ -10,11 +10,11 @@ import "../mui_extended/Accordion/index.2116e423.js";
10
10
  import "../mui_extended/Avatar/index.0a2a4523.js";
11
11
  import "react-router-dom";
12
12
  import "@mui/material/Button";
13
- import "../mui_extended/Button/index.42f24e7d.js";
13
+ import "../mui_extended/Button/index.3debb608.js";
14
14
  import "@mui/lab";
15
15
  import { M as k } from "../mui_extended/MenuPopover/index.488fc536.js";
16
- import "../CommonActions/components/Actions/index.4ba034cb.js";
17
- import "../mui_extended/Pager/index.171ce39d.js";
16
+ import "../CommonActions/components/Actions/index.6b25caed.js";
17
+ import "../mui_extended/Pager/index.f0911163.js";
18
18
  import "../mui_extended/Tab/index.e0653a0a.js";
19
19
  const I = d("div")(({
20
20
  theme: t
@@ -1,6 +1,6 @@
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.ab22798b.js";
3
+ import { u as $ } from "../../hooks/useModal/index.cdd84702.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";
@@ -8,7 +8,7 @@ import { useResponsiveDesktop as H } from "@m4l/graphics";
8
8
  import { useEnvironment as I } from "@m4l/core";
9
9
  import { I as C } from "../Icon/index.cbca79b0.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.4ba034cb.js";
11
+ import { b as W, g as _ } from "../CommonActions/components/Actions/index.6b25caed.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.5ba34dbc.js";
4
+ import { D as R, g as I } from "../DataGrid/index.091572bf.js";
5
5
  import { D as L } from "../formatters/DateFormatter/index.ad8d9b8e.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.ab22798b.js";
9
+ import { u as T } from "../../hooks/useModal/index.cdd84702.js";
10
10
  import { I as u } from "../Icon/index.cbca79b0.js";
11
- import { D as E, g as K } from "../DynamicFilter/index.e354ae5a.js";
11
+ import { D as E, g as K } from "../DynamicFilter/index.7efecd5d.js";
12
12
  const q = g("div")(() => ({
13
13
  height: "100%",
14
14
  width: "100%",
@@ -3,12 +3,12 @@ import { styled as a, Skeleton as d, Autocomplete as $, TextField as x } from "@
3
3
  import { useMemo as D } from "react";
4
4
  import { I as v } from "../Icon/index.cbca79b0.js";
5
5
  import { jsxs as u, jsx as n } from "react/jsx-runtime";
6
- import { g as O } from "../CommonActions/components/Actions/index.4ba034cb.js";
6
+ import { g as O } from "../CommonActions/components/Actions/index.6b25caed.js";
7
7
  import "@mui/material/Button";
8
- import "../mui_extended/Button/index.42f24e7d.js";
8
+ import "../mui_extended/Button/index.3debb608.js";
9
9
  import "react-hook-form";
10
10
  import "react-router-dom";
11
- import "../../contexts/ModalContext/index.7113cfd8.js";
11
+ import "../../contexts/ModalContext/index.1688a07c.js";
12
12
  import "@mui/lab";
13
13
  const S = a("div")(({
14
14
  theme: t,
@@ -0,0 +1,106 @@
1
+ import l from "react";
2
+ import { jsx as m, Fragment as u } from "react/jsx-runtime";
3
+ import { getPropertyByString as i } from "@m4l/core";
4
+ import "../Icon/index.cbca79b0.js";
5
+ import "@mui/material/styles";
6
+ function _(e) {
7
+ const {
8
+ value: n,
9
+ unit: t,
10
+ symbol: c,
11
+ Component: o = l.Fragment
12
+ } = e;
13
+ if (n == null || !Array.isArray(n))
14
+ return /* @__PURE__ */ m(u, {
15
+ children: ""
16
+ });
17
+ let r = "";
18
+ return n.map((a, s) => {
19
+ const f = a.cmc_min_closed != !0 ? "<" : "\u2264", d = a.cmc_max_closed != !0 ? "<" : "\u2264";
20
+ r = r.concat(`${s > 0 ? " " : ""}`, a.cmc_min !== a.cmc_max ? `[${a.cmc_min}${t} ${f} ${c} ${d} ${a.cmc_max}${t} \xB1 ${a.cmc_uncertainty}]` : `[${a.cmc_min}${t} \xB1 ${a.cmc_uncertainty}]`);
21
+ }), /* @__PURE__ */ m(o, {
22
+ children: r
23
+ });
24
+ }
25
+ function y(e) {
26
+ const {
27
+ value: n,
28
+ unit: t,
29
+ Component: c = l.Fragment
30
+ } = e;
31
+ if (console.log("points", n), n == null || !Array.isArray(n))
32
+ return /* @__PURE__ */ m(u, {
33
+ children: "[]"
34
+ });
35
+ let o = "";
36
+ return n.map((r) => {
37
+ r && (console.log("point", r), o = o.concat(`[${r}${t}]`));
38
+ }), /* @__PURE__ */ m(c, {
39
+ children: o
40
+ });
41
+ }
42
+ function C(e) {
43
+ const {
44
+ value: n,
45
+ Component: t = l.Fragment
46
+ } = e;
47
+ return /* @__PURE__ */ m(t, {
48
+ children: `${n}$Cop`
49
+ });
50
+ }
51
+ function v() {
52
+ return ["formatters"];
53
+ }
54
+ const h = {
55
+ pager: {
56
+ boolean_yes: "Yes",
57
+ boolean_no: "No",
58
+ boolean_true: "True",
59
+ boolean_false: "False"
60
+ }
61
+ };
62
+ function U(e) {
63
+ const {
64
+ fieldUnit: n,
65
+ fieldValue: t,
66
+ fieldSymbol: c,
67
+ Component: o
68
+ } = e;
69
+ return (r) => /* @__PURE__ */ m(_, {
70
+ Component: o,
71
+ value: i(r, t),
72
+ unit: i(r, n),
73
+ symbol: i(r, c)
74
+ });
75
+ }
76
+ function A(e) {
77
+ const {
78
+ fieldUnit: n,
79
+ fieldValue: t,
80
+ Component: c
81
+ } = e;
82
+ return (o) => /* @__PURE__ */ m(y, {
83
+ Component: c,
84
+ value: i(o, t),
85
+ unit: i(o, n)
86
+ });
87
+ }
88
+ function V(e) {
89
+ const {
90
+ fieldValue: n,
91
+ Component: t = l.Fragment
92
+ } = e;
93
+ return (c) => /* @__PURE__ */ m(t, {
94
+ children: i(c, n) + ""
95
+ });
96
+ }
97
+ export {
98
+ y as P,
99
+ _ as U,
100
+ C as a,
101
+ A as b,
102
+ U as c,
103
+ h as d,
104
+ V as e,
105
+ v as g
106
+ };
@@ -0,0 +1,55 @@
1
+ import { useEffect as l } from "react";
2
+ import { useForm as f, FormProvider as m } from "react-hook-form";
3
+ import { o as c } from "../../../node_modules.168cb897.js";
4
+ import { styled as n } from "@mui/material/styles";
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ const h = n("form")(({
7
+ theme: e
8
+ }) => ({
9
+ display: "flex",
10
+ marginBottom: e.spacing(1),
11
+ flexDirection: "column",
12
+ width: "100%",
13
+ overflow: "scroll",
14
+ maxWidth: e.stretch ? "unset" : "900px"
15
+ }));
16
+ function V(e) {
17
+ const {
18
+ children: d,
19
+ onSubmit: i,
20
+ values: s,
21
+ validationSchema: u,
22
+ statusLoad: o = "ready"
23
+ } = e, r = f({
24
+ resolver: c(u),
25
+ defaultValues: s
26
+ });
27
+ return l(() => {
28
+ if (console.log("useEffect FormProvider reload_values_provider===", o), o === "reload_values_provider") {
29
+ Object.keys(s).forEach((t) => {
30
+ r.setValue(t, s[t], {
31
+ shouldValidate: !1,
32
+ shouldDirty: !1,
33
+ shouldTouch: !1
34
+ });
35
+ });
36
+ return;
37
+ }
38
+ }, [r, o, s]), l(() => {
39
+ o === "ready" && (console.log("useEffect FormProvider Ready", o), r.setValue("statusLoad", "ready", {
40
+ shouldValidate: !1,
41
+ shouldDirty: !1,
42
+ shouldTouch: !1
43
+ }));
44
+ }, [o]), /* @__PURE__ */ a(m, {
45
+ ...r,
46
+ children: /* @__PURE__ */ a(h, {
47
+ id: "formProvider",
48
+ onSubmit: r.handleSubmit(i),
49
+ children: d
50
+ })
51
+ });
52
+ }
53
+ export {
54
+ V as F
55
+ };
@@ -1,7 +1,7 @@
1
1
  import { styled as m } from "@mui/material";
2
2
  import { useFormContext as a, Controller as l } from "react-hook-form";
3
3
  import { E as f } from "../../ErrorLabel/index.c8615f16.js";
4
- import { P as p } from "../../Period/index.342dc416.js";
4
+ import { P as p } from "../../Period/index.8423f865.js";
5
5
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
6
6
  const d = m("div")(({
7
7
  theme: e
@@ -5,7 +5,7 @@ import { jsx as i } from "react/jsx-runtime";
5
5
  import { LoadingButton as h } from "@mui/lab";
6
6
  import { styled as s, alpha as g } from "@mui/material/styles";
7
7
  import { I as y } from "../IconButton/index.88f3aadb.js";
8
- import { u as B } from "../../DynamicFilter/index.e354ae5a.js";
8
+ import { u as B } from "../../DynamicFilter/index.7efecd5d.js";
9
9
  import { useMemo as v } from "react";
10
10
  const S = f(a)(({
11
11
  theme: t
@@ -1,6 +1,6 @@
1
1
  import { useMemo as y } from "react";
2
2
  import { Skeleton as i, TablePagination as R } from "@mui/material";
3
- import { P as S } from "../../CommonActions/components/Actions/index.4ba034cb.js";
3
+ import { P as S } from "../../CommonActions/components/Actions/index.6b25caed.js";
4
4
  import { styled as a } from "@mui/material/styles";
5
5
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
6
6
  a("div")(() => ({
@@ -4,9 +4,9 @@ import { Typography as I } from "@mui/material";
4
4
  import { styled as c } from "@mui/material/styles";
5
5
  import { B as _ } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
6
6
  import { jsx as t, jsxs as f, Fragment as k } from "react/jsx-runtime";
7
- import { M as $ } from "../../components/ModalDialog/index.8788743f.js";
8
- import { A as b } from "../../components/CommonActions/components/ActionIntro/index.8872533f.js";
9
- import { A } from "../../components/CommonActions/components/ActionCancel/index.62a3aacc.js";
7
+ import { M as $ } from "../../components/ModalDialog/index.0ddffae6.js";
8
+ import { A as b } from "../../components/CommonActions/components/ActionIntro/index.bac90f39.js";
9
+ import { A } from "../../components/CommonActions/components/ActionCancel/index.7e947996.js";
10
10
  import { b as j } from "../../utils/index.214d9542.js";
11
11
  const D = c("div")(() => ({
12
12
  display: "flex",
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../contexts/ModalContext/index.7113cfd8.js";
2
+ import { M as t } from "../../contexts/ModalContext/index.1688a07c.js";
3
3
  const s = () => o(t);
4
4
  export {
5
5
  s as u
package/index.js CHANGED
@@ -5,7 +5,7 @@ import "react/jsx-runtime";
5
5
  import { L as U } from "./components/animate/LoadingScreen/index.f1cec7db.js";
6
6
  import "react";
7
7
  import "react-hook-form";
8
- import { F as k } from "./components/hook-form/FormProvider/index.4c9289e1.js";
8
+ import { F as k } from "./components/hook-form/FormProvider/index.936cbb98.js";
9
9
  import "@m4l/core";
10
10
  import { R as z } from "./components/hook-form/RHFAutocomplete/index.6ed76d4c.js";
11
11
  import { R as W } from "./components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js";
@@ -13,16 +13,16 @@ import { R as w } from "./components/hook-form/RHFCheckbox/index.f9ce6c39.js";
13
13
  import { R as K } from "./components/hook-form/RHFDateTime/index.fc5cbafe.js";
14
14
  import "@mui/x-date-pickers";
15
15
  import { R as X } from "./components/hook-form/RHFTextField/index.4c455f75.js";
16
- import { R as Z } from "./components/hook-form/RHFPeriod/index.fe3f3681.js";
16
+ import { R as Z } from "./components/hook-form/RHFPeriod/index.0b982ae8.js";
17
17
  import { E as $ } from "./components/ErrorLabel/index.c8615f16.js";
18
- import { P as ro, g as to } from "./components/Period/index.342dc416.js";
18
+ import { P as ro, g as to } from "./components/Period/index.8423f865.js";
19
19
  import { I as eo } from "./components/Icon/index.cbca79b0.js";
20
20
  import "@mui/material/styles";
21
- import { b as so, M as po, d as io, g as no } from "./components/CommonActions/components/Actions/index.4ba034cb.js";
21
+ import { b as so, M as po, d as io, g as no } from "./components/CommonActions/components/Actions/index.6b25caed.js";
22
22
  import "@mui/material/Button";
23
- import { B as fo, L as co } from "./components/mui_extended/Button/index.42f24e7d.js";
23
+ import { B as fo, L as co } from "./components/mui_extended/Button/index.3debb608.js";
24
24
  import "react-router-dom";
25
- import { M as go, a as uo } from "./contexts/ModalContext/index.7113cfd8.js";
25
+ import { M as go, a as uo } from "./contexts/ModalContext/index.1688a07c.js";
26
26
  import "@mui/lab";
27
27
  import "./lodash.e09401f0.js";
28
28
  import "react-dropzone";
@@ -32,23 +32,23 @@ import { R as Ro } from "./components/hook-form/RHFUpload/index.ed3d739f.js";
32
32
  import { A as Po } from "./components/mui_extended/Accordion/index.2116e423.js";
33
33
  import { A as Lo } from "./components/mui_extended/Avatar/index.0a2a4523.js";
34
34
  import { M as vo } from "./components/mui_extended/MenuPopover/index.488fc536.js";
35
- import { P as Bo, g as Io } from "./components/mui_extended/Pager/index.171ce39d.js";
35
+ import { P as Bo, g as Io } from "./components/mui_extended/Pager/index.f0911163.js";
36
36
  import { T as Ho } from "./components/mui_extended/Tab/index.e0653a0a.js";
37
37
  import "@m4l/graphics";
38
38
  import { C as Eo } from "./components/CompanyLogo/index.f81c179c.js";
39
- import { D as ho, N as Oo, T as Uo, g as jo } from "./components/DataGrid/index.5ba34dbc.js";
39
+ import { D as ho, N as Oo, T as Uo, g as jo } from "./components/DataGrid/index.091572bf.js";
40
40
  import "react-dnd";
41
41
  import "react-dnd-html5-backend";
42
42
  import { S as Go } from "./components/ScrollBar/index.39eeb2de.js";
43
- import { D as Vo, d as Wo, g as qo } from "./components/DynamicFilter/index.e354ae5a.js";
43
+ import { D as Vo, d as Wo, g as qo } from "./components/DynamicFilter/index.7efecd5d.js";
44
44
  import "simplebar/dist/simplebar.min.css";
45
45
  import "yup";
46
- import { L as Jo } from "./components/LanguagePopover/index.df601ffe.js";
46
+ import { L as Jo } from "./components/LanguagePopover/index.15f7dea7.js";
47
47
  import "./react-draggable.20e95c61.js";
48
- import { M as Qo, d as Xo, g as Yo } from "./components/ModalDialog/index.8788743f.js";
48
+ import { M as Qo, d as Xo, g as Yo } from "./components/ModalDialog/index.0ddffae6.js";
49
49
  import { R as _o } from "./components/Resizeable/index.45995d2b.js";
50
50
  import { N as or, d as rr, g as tr } from "./components/NoItemSelected/index.12f0ca67.js";
51
- import { O as er, d as mr, g as sr } from "./components/ObjectLogs/index.c5a9747b.js";
51
+ import { O as er, d as mr, g as sr } from "./components/ObjectLogs/index.64f06b3d.js";
52
52
  import "./react-json-view.f56a7f8e.js";
53
53
  import { P as ir } from "./components/PaperForm/index.d7c74064.js";
54
54
  import { P as xr } from "./components/Page/index.6d69977e.js";
@@ -70,15 +70,15 @@ import { L as Gr } from "./components/mui_extended/LinkWithRoute/index.d4b263de.
70
70
  import { T as Vr } from "./components/mui_extended/Typography/index.0c4604b3.js";
71
71
  import { B as qr, c as wr } from "./components/formatters/BooleanFormatter/index.cca53b7f.js";
72
72
  import { D as Kr, c as Qr } from "./components/formatters/DateFormatter/index.ad8d9b8e.js";
73
- import { P as Yr, a as Zr, U as _r, e as $r, b as ot, c as rt, d as tt, g as at } from "./components/formatters/index.a563fe5d.js";
74
- import { A as mt } from "./components/CommonActions/components/ActionCancel/index.62a3aacc.js";
75
- import { A as pt } from "./components/CommonActions/components/ActionIntro/index.8872533f.js";
76
- import { A as nt } from "./components/CommonActions/components/ActionFormCancel/index.66469642.js";
73
+ import { P as Yr, a as Zr, U as _r, e as $r, b as ot, c as rt, d as tt, g as at } from "./components/formatters/index.55856d65.js";
74
+ import { A as mt } from "./components/CommonActions/components/ActionCancel/index.7e947996.js";
75
+ import { A as pt } from "./components/CommonActions/components/ActionIntro/index.bac90f39.js";
76
+ import { A as nt } from "./components/CommonActions/components/ActionFormCancel/index.63405f6c.js";
77
77
  import { A as ft } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
78
78
  import { L as lt } from "./components/Loadable/index.f5518558.js";
79
79
  import { S as gt } from "./components/ScrollToTop/index.e06f98f6.js";
80
80
  import { u as Ft } from "./hooks/useFormAddEdit/index.d4845f1a.js";
81
- import { u as yt } from "./hooks/useModal/index.ab22798b.js";
81
+ import { u as yt } from "./hooks/useModal/index.cdd84702.js";
82
82
  import { L as At } from "./assets/Logo/index.228dcb5a.js";
83
83
  import "./node_modules.168cb897.js";
84
84
  import "./utils/index.214d9542.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/core": "*",
@@ -17,7 +17,6 @@
17
17
  "@types/react": "^17.0.0 || ^18.0.0",
18
18
  "@types/react-dom": "^17.0.0 || ^18.0.0",
19
19
  "framer-motion": "^6.5.0",
20
- "react": "^17.0.0 || ^18.0.0",
21
20
  "react-dom": "^17.0.0 || ^18.0.0",
22
21
  "react-dropzone": "^14.2.2",
23
22
  "react-helmet-async": "^1.3.0",
@@ -1,106 +0,0 @@
1
- import u from "react";
2
- import { jsx as m, Fragment as l } from "react/jsx-runtime";
3
- import { getPropertyByString as i } from "@m4l/core";
4
- import "../Icon/index.cbca79b0.js";
5
- import "@mui/material/styles";
6
- function _(e) {
7
- const {
8
- value: t,
9
- unit: n,
10
- symbol: o,
11
- Component: r = u.Fragment
12
- } = e;
13
- if (t == null || !Array.isArray(t))
14
- return /* @__PURE__ */ m(l, {
15
- children: ""
16
- });
17
- let c = "";
18
- return t.map((a, s) => {
19
- const f = a.cmc_min_closed != !0 ? "<" : "\u2264", d = a.cmc_max_closed != !0 ? "<" : "\u2264";
20
- c = c.concat(`${s > 0 ? " " : ""}`, a.cmc_min !== a.cmc_max ? `[${a.cmc_min}${n} ${f} ${o} ${d} ${a.cmc_max}${n} \xB1 ${a.cmc_uncertainty}]` : `[${a.cmc_min}${n} \xB1 ${a.cmc_uncertainty}]`);
21
- }), /* @__PURE__ */ m(r, {
22
- children: c
23
- });
24
- }
25
- function y(e) {
26
- const {
27
- value: t,
28
- unit: n,
29
- Component: o = u.Fragment
30
- } = e;
31
- if (t == null || !Array.isArray(t))
32
- return /* @__PURE__ */ m(l, {
33
- children: "[]"
34
- });
35
- let r = "";
36
- return t.map((c) => {
37
- c && (r = r.concat(`[${c}${n}]`));
38
- }), /* @__PURE__ */ m(o, {
39
- children: r
40
- });
41
- }
42
- function C(e) {
43
- const {
44
- value: t,
45
- Component: n = u.Fragment
46
- } = e;
47
- return /* @__PURE__ */ m(n, {
48
- children: `${t}$Cop`
49
- });
50
- }
51
- function v() {
52
- return ["formatters"];
53
- }
54
- const h = {
55
- pager: {
56
- boolean_yes: "Yes",
57
- boolean_no: "No",
58
- boolean_true: "True",
59
- boolean_false: "False"
60
- }
61
- };
62
- function U(e) {
63
- const {
64
- fieldUnit: t,
65
- fieldValue: n,
66
- fieldSymbol: o,
67
- Component: r
68
- } = e;
69
- return (c) => /* @__PURE__ */ m(_, {
70
- Component: r,
71
- value: i(c, n),
72
- unit: i(c, t),
73
- symbol: i(c, o)
74
- });
75
- }
76
- function A(e) {
77
- const {
78
- fieldUnit: t,
79
- fieldValue: n,
80
- Component: o
81
- } = e;
82
- return (r) => /* @__PURE__ */ m(y, {
83
- Component: o,
84
- value: i(r, n),
85
- unit: i(r, t)
86
- });
87
- }
88
- function V(e) {
89
- const {
90
- fieldValue: t,
91
- Component: n = u.Fragment
92
- } = e;
93
- return (o) => /* @__PURE__ */ m(n, {
94
- children: i(o, t) + ""
95
- });
96
- }
97
- export {
98
- y as P,
99
- _ as U,
100
- C as a,
101
- A as b,
102
- U as c,
103
- h as d,
104
- V as e,
105
- v as g
106
- };
@@ -1,55 +0,0 @@
1
- import { useEffect as a } from "react";
2
- import { useForm as m, FormProvider as f } from "react-hook-form";
3
- import { o as n } from "../../../node_modules.168cb897.js";
4
- import { styled as c } from "@mui/material/styles";
5
- import { jsx as l } from "react/jsx-runtime";
6
- const h = c("form")(({
7
- theme: r
8
- }) => ({
9
- display: "flex",
10
- marginBottom: r.spacing(1),
11
- flexDirection: "column",
12
- width: "100%",
13
- overflow: "scroll",
14
- maxWidth: r.stretch ? "unset" : "900px"
15
- }));
16
- function V(r) {
17
- const {
18
- children: i,
19
- onSubmit: d,
20
- values: e,
21
- validationSchema: u,
22
- statusLoad: s = "ready"
23
- } = r, o = m({
24
- resolver: n(u),
25
- defaultValues: e
26
- });
27
- return a(() => {
28
- if (s === "reload_values_provider") {
29
- Object.keys(e).forEach((t) => {
30
- o.setValue(t, e[t], {
31
- shouldValidate: !1,
32
- shouldDirty: !1,
33
- shouldTouch: !1
34
- });
35
- });
36
- return;
37
- }
38
- }, [o, s, e]), a(() => {
39
- s === "ready" && o.setValue("statusLoad", "ready", {
40
- shouldValidate: !1,
41
- shouldDirty: !1,
42
- shouldTouch: !1
43
- });
44
- }, [s]), /* @__PURE__ */ l(f, {
45
- ...o,
46
- children: /* @__PURE__ */ l(h, {
47
- id: "formProvider",
48
- onSubmit: o.handleSubmit(d),
49
- children: i
50
- })
51
- });
52
- }
53
- export {
54
- V as F
55
- };