@m4l/layouts 0.1.22 → 0.1.23
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/MFHostApp/{index.b3c15ec3.js → index.55a1f3a4.js} +13 -13
- package/components/MFIsolationApp/index.eaf655eb.js +116 -0
- package/contexts/AuthContext/types.d.ts +1 -1
- package/index.js +4 -4
- package/{node_modules.26043cf4.js → node_modules.d8c1c0ec.js} +1 -1
- package/package.json +1 -1
- package/{vendor.95e38403.js → vendor.172dc010.js} +2 -2
- package/components/MFIsolationApp/index.28f538a3.js +0 -106
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { unstable_HistoryRouter as
|
|
2
|
-
import { EnvironmentProvider as
|
|
3
|
-
import { LocalesProvider as F, HostThemeProvider as v, FormatterProvider as
|
|
1
|
+
import { unstable_HistoryRouter as a } from "react-router-dom";
|
|
2
|
+
import { EnvironmentProvider as l, HostToolsProvider as u, NetworkProvider as h, DomainCountryProvider as y } from "@m4l/core";
|
|
3
|
+
import { LocalesProvider as F, HostThemeProvider as v, FormatterProvider as p } from "@m4l/graphics";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
function E(t) {
|
|
6
6
|
const {
|
|
7
7
|
children: i,
|
|
8
8
|
currentLocale: n,
|
|
9
|
-
hostTheme:
|
|
10
|
-
environment:
|
|
9
|
+
hostTheme: c,
|
|
10
|
+
environment: m,
|
|
11
11
|
hostTools: e,
|
|
12
|
-
axiosOperation:
|
|
12
|
+
axiosOperation: s,
|
|
13
13
|
formatters: o,
|
|
14
14
|
dynamicMFParameters: d
|
|
15
15
|
} = t;
|
|
16
|
-
return /* @__PURE__ */ r(
|
|
17
|
-
...
|
|
16
|
+
return /* @__PURE__ */ r(l, {
|
|
17
|
+
...m,
|
|
18
18
|
children: /* @__PURE__ */ r(u, {
|
|
19
19
|
...e,
|
|
20
20
|
children: /* @__PURE__ */ r(h, {
|
|
21
|
-
axiosOperation:
|
|
21
|
+
axiosOperation: s,
|
|
22
22
|
children: /* @__PURE__ */ r(F, {
|
|
23
23
|
isMicroFrontEnd: !0,
|
|
24
24
|
localeHost: n,
|
|
25
25
|
children: /* @__PURE__ */ r(v, {
|
|
26
26
|
isMicroFrontEnd: !0,
|
|
27
|
-
...
|
|
28
|
-
children: /* @__PURE__ */ r(
|
|
27
|
+
...c,
|
|
28
|
+
children: /* @__PURE__ */ r(a, {
|
|
29
29
|
history: e.history,
|
|
30
30
|
children: /* @__PURE__ */ r(y, {
|
|
31
31
|
isMicroFrontEnd: !0,
|
|
32
32
|
id: d?.id || 1,
|
|
33
|
-
currency: o.currencyFormatter.
|
|
33
|
+
currency: o.currencyFormatter.code,
|
|
34
34
|
currency_decimal_digits: o.currencyFormatter.decimalDigits,
|
|
35
35
|
decimal_symbol: o.numberFormatter.decimalSymbol,
|
|
36
36
|
thousands_symbol: o.numberFormatter.thousandsSymbol,
|
|
37
|
-
children: /* @__PURE__ */ r(
|
|
37
|
+
children: /* @__PURE__ */ r(p, {
|
|
38
38
|
isMicroFrontEnd: !0,
|
|
39
39
|
...o,
|
|
40
40
|
children: i
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { useEffect as p, useMemo as u } from "react";
|
|
2
|
+
import { unstable_HistoryRouter as v } from "react-router-dom";
|
|
3
|
+
import { ToastContainer as g, toast as P } from "react-toastify";
|
|
4
|
+
import { HostThemeProvider as F, defaultThemeOptions as b, fnComponentsOverrides as w, FormatterProvider as A, LocalesProvider as M, getLocaleFromNetwork as E } from "@m4l/graphics";
|
|
5
|
+
import { A as T } from "../../contexts/AuthContext/index.6f966215.js";
|
|
6
|
+
import { DomainCountryProvider as x, voidFunction as m, EnvironmentProvider as C, HostToolsProvider as D, NetworkProvider as H, axiosOperation as N } from "@m4l/core";
|
|
7
|
+
import { f as O, c as k, N as l } from "../../node_modules.d8c1c0ec.js";
|
|
8
|
+
import { u as L } from "../../hooks/useAuth/index.cb6a3420.js";
|
|
9
|
+
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
10
|
+
function I(s) {
|
|
11
|
+
const {
|
|
12
|
+
children: n,
|
|
13
|
+
user: c,
|
|
14
|
+
pwd: d
|
|
15
|
+
} = s, {
|
|
16
|
+
isAuthenticated: t,
|
|
17
|
+
isInitialized: i,
|
|
18
|
+
login: a,
|
|
19
|
+
user: e
|
|
20
|
+
} = L();
|
|
21
|
+
if (p(() => {
|
|
22
|
+
i && t === !1 && a(c, d, !1);
|
|
23
|
+
}, [i, t]), !t)
|
|
24
|
+
return /* @__PURE__ */ o("div", {
|
|
25
|
+
children: "Pendiente x atenticar"
|
|
26
|
+
});
|
|
27
|
+
const r = {
|
|
28
|
+
id: 1,
|
|
29
|
+
currency: "USD",
|
|
30
|
+
currency_decimal_digits: 2,
|
|
31
|
+
decimal_symbol: ".",
|
|
32
|
+
thousands_symbol: ","
|
|
33
|
+
};
|
|
34
|
+
return e?.domain_country && (r.id = e?.domain_country.id ?? r.id, r.currency = e?.domain_country.currency ?? r.currency, r.currency_decimal_digits = e?.domain_country.currency_decimal_digits ?? r.currency_decimal_digits, r.decimal_symbol = e?.domain_country.decimal_symbol ?? r.decimal_symbol, r.thousands_symbol = e?.domain_country?.thousands_symbol ?? r.thousands_symbol), /* @__PURE__ */ j(F, {
|
|
35
|
+
hostThemeOptions: b,
|
|
36
|
+
fnComponentsOverrides: w,
|
|
37
|
+
isMicroFrontEnd: !0,
|
|
38
|
+
children: [/* @__PURE__ */ o(g, {}), /* @__PURE__ */ o(x, {
|
|
39
|
+
...r,
|
|
40
|
+
isMicroFrontEnd: !1,
|
|
41
|
+
children: /* @__PURE__ */ o(A, {
|
|
42
|
+
isMicroFrontEnd: !1,
|
|
43
|
+
dateFormatter: {
|
|
44
|
+
formatDate: O
|
|
45
|
+
},
|
|
46
|
+
currencyFormatter: {
|
|
47
|
+
code: r.currency,
|
|
48
|
+
decimalDigits: r.currency_decimal_digits
|
|
49
|
+
},
|
|
50
|
+
children: n
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const _ = k({
|
|
56
|
+
window
|
|
57
|
+
});
|
|
58
|
+
function Q(s) {
|
|
59
|
+
const {
|
|
60
|
+
children: n,
|
|
61
|
+
user: c,
|
|
62
|
+
pwd: d,
|
|
63
|
+
host_api_local: t,
|
|
64
|
+
host_api_remote: i,
|
|
65
|
+
host_static_assets: a,
|
|
66
|
+
environment_assets: e
|
|
67
|
+
} = s, r = () => {
|
|
68
|
+
l.configure({
|
|
69
|
+
showSpinner: !0
|
|
70
|
+
}), l.start();
|
|
71
|
+
}, h = () => {
|
|
72
|
+
l.done();
|
|
73
|
+
}, y = u(() => ({
|
|
74
|
+
host: "",
|
|
75
|
+
isLocalhost: !0,
|
|
76
|
+
domain_token: "lab1",
|
|
77
|
+
host_api_local: t,
|
|
78
|
+
host_api_remote: i,
|
|
79
|
+
host_static_assets: a,
|
|
80
|
+
environment_assets: e
|
|
81
|
+
}), []), f = u(() => ({
|
|
82
|
+
history: _,
|
|
83
|
+
toast: P,
|
|
84
|
+
startProgress: r,
|
|
85
|
+
stopProgress: h,
|
|
86
|
+
events_add_listener: m,
|
|
87
|
+
events_remove_listener: m,
|
|
88
|
+
events_emit: m
|
|
89
|
+
}), []);
|
|
90
|
+
return /* @__PURE__ */ o(C, {
|
|
91
|
+
...y,
|
|
92
|
+
children: /* @__PURE__ */ o(D, {
|
|
93
|
+
...f,
|
|
94
|
+
children: /* @__PURE__ */ o(H, {
|
|
95
|
+
axiosOperation: N,
|
|
96
|
+
children: /* @__PURE__ */ o(v, {
|
|
97
|
+
history: _,
|
|
98
|
+
children: /* @__PURE__ */ o(M, {
|
|
99
|
+
isMicroFrontEnd: !1,
|
|
100
|
+
getLocaleFromNetwork: E,
|
|
101
|
+
children: /* @__PURE__ */ o(T, {
|
|
102
|
+
children: /* @__PURE__ */ o(I, {
|
|
103
|
+
user: c,
|
|
104
|
+
pwd: d,
|
|
105
|
+
children: n
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
Q as M
|
|
116
|
+
};
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as n } from "./components/MFIsolationApp/index.
|
|
2
|
-
import { M as f } from "./components/MFHostApp/index.
|
|
1
|
+
import { M as n } from "./components/MFIsolationApp/index.eaf655eb.js";
|
|
2
|
+
import { M as f } from "./components/MFHostApp/index.55a1f3a4.js";
|
|
3
3
|
import { a as D, A } from "./contexts/AuthContext/index.6f966215.js";
|
|
4
4
|
import { a as c, d as g, g as h } from "./layouts/ModuleLayout/index.842072c5.js";
|
|
5
5
|
import { a as N, d as F, g as v } from "./layouts/MasterDetailLayout/index.71de0dc7.js";
|
|
@@ -12,8 +12,8 @@ import "react-router-dom";
|
|
|
12
12
|
import "react-toastify";
|
|
13
13
|
import "@m4l/graphics";
|
|
14
14
|
import "@m4l/core";
|
|
15
|
-
import "./node_modules.
|
|
16
|
-
import "./vendor.
|
|
15
|
+
import "./node_modules.d8c1c0ec.js";
|
|
16
|
+
import "./vendor.172dc010.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "@m4l/components";
|
|
19
19
|
import "@mui/material";
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./components/MFIsolationApp/index.
|
|
1
|
+
import "./components/MFIsolationApp/index.eaf655eb.js";
|
|
2
2
|
import "react-router-dom";
|
|
3
3
|
import "@m4l/core";
|
|
4
4
|
import "@m4l/graphics";
|
|
@@ -10,7 +10,7 @@ import "react";
|
|
|
10
10
|
import "./layouts/MasterDetailLayout/index.71de0dc7.js";
|
|
11
11
|
import "@mui/material";
|
|
12
12
|
import "./layouts/NoAuthModuleLayout/index.5d1098ef.js";
|
|
13
|
-
import "./components/MFHostApp/index.
|
|
13
|
+
import "./components/MFHostApp/index.55a1f3a4.js";
|
|
14
14
|
import "./hooks/useMasterDetail/index.8e9e900b.js";
|
|
15
15
|
import "./hooks/useAuth/index.cb6a3420.js";
|
|
16
16
|
import "./hooks/useModule/index.096d7d13.js";
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { useEffect as _, useMemo as m } from "react";
|
|
2
|
-
import { unstable_HistoryRouter as P } from "react-router-dom";
|
|
3
|
-
import { ToastContainer as F, toast as y } from "react-toastify";
|
|
4
|
-
import { HostThemeProvider as g, defaultThemeOptions as w, fnComponentsOverrides as M, ProgressBarStyle as A, LocalesProvider as E, getLocaleFromNetwork as T, FormatterProvider as x } from "@m4l/graphics";
|
|
5
|
-
import { A as b } from "../../contexts/AuthContext/index.6f966215.js";
|
|
6
|
-
import { voidFunction as c, EnvironmentProvider as H, HostToolsProvider as N, NetworkProvider as O, axiosOperation as k, DomainCountryProvider as C } from "@m4l/core";
|
|
7
|
-
import { c as L, f as j, N as d } from "../../node_modules.26043cf4.js";
|
|
8
|
-
import { u as B } from "../../hooks/useAuth/index.cb6a3420.js";
|
|
9
|
-
import { jsx as r, jsxs as D } from "react/jsx-runtime";
|
|
10
|
-
function I(t) {
|
|
11
|
-
const {
|
|
12
|
-
children: s,
|
|
13
|
-
user: i,
|
|
14
|
-
pwd: n
|
|
15
|
-
} = t, {
|
|
16
|
-
isAuthenticated: o,
|
|
17
|
-
isInitialized: e,
|
|
18
|
-
login: a
|
|
19
|
-
} = B();
|
|
20
|
-
return _(() => {
|
|
21
|
-
e && o === !1 && a(i, n, !1);
|
|
22
|
-
}, [e, o]), o ? /* @__PURE__ */ D(g, {
|
|
23
|
-
hostThemeOptions: w,
|
|
24
|
-
fnComponentsOverrides: M,
|
|
25
|
-
isMicroFrontEnd: !0,
|
|
26
|
-
children: [/* @__PURE__ */ r(A, {}), /* @__PURE__ */ r(F, {}), s]
|
|
27
|
-
}) : /* @__PURE__ */ r("div", {
|
|
28
|
-
children: "Pendiente x atenticar"
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
const l = L({
|
|
32
|
-
window
|
|
33
|
-
});
|
|
34
|
-
function U(t) {
|
|
35
|
-
const {
|
|
36
|
-
children: s,
|
|
37
|
-
user: i,
|
|
38
|
-
pwd: n,
|
|
39
|
-
host_api_local: o,
|
|
40
|
-
host_api_remote: e,
|
|
41
|
-
host_static_assets: a,
|
|
42
|
-
environment_assets: h
|
|
43
|
-
} = t, u = () => {
|
|
44
|
-
d.configure({
|
|
45
|
-
showSpinner: !0
|
|
46
|
-
}), d.start();
|
|
47
|
-
}, f = () => {
|
|
48
|
-
d.done();
|
|
49
|
-
}, p = m(() => ({
|
|
50
|
-
host: "",
|
|
51
|
-
isLocalhost: !0,
|
|
52
|
-
domain_token: "lab1",
|
|
53
|
-
host_api_local: o,
|
|
54
|
-
host_api_remote: e,
|
|
55
|
-
host_static_assets: a,
|
|
56
|
-
environment_assets: h
|
|
57
|
-
}), []), v = m(() => ({
|
|
58
|
-
history: l,
|
|
59
|
-
toast: y,
|
|
60
|
-
startProgress: u,
|
|
61
|
-
stopProgress: f,
|
|
62
|
-
events_add_listener: c,
|
|
63
|
-
events_remove_listener: c,
|
|
64
|
-
events_emit: c
|
|
65
|
-
}), []);
|
|
66
|
-
return /* @__PURE__ */ r(H, {
|
|
67
|
-
...p,
|
|
68
|
-
children: /* @__PURE__ */ r(N, {
|
|
69
|
-
...v,
|
|
70
|
-
children: /* @__PURE__ */ r(O, {
|
|
71
|
-
axiosOperation: k,
|
|
72
|
-
children: /* @__PURE__ */ r(P, {
|
|
73
|
-
history: l,
|
|
74
|
-
children: /* @__PURE__ */ r(E, {
|
|
75
|
-
isMicroFrontEnd: !1,
|
|
76
|
-
getLocaleFromNetwork: T,
|
|
77
|
-
children: /* @__PURE__ */ r(C, {
|
|
78
|
-
id: 1,
|
|
79
|
-
isMicroFrontEnd: !1,
|
|
80
|
-
currency: "$",
|
|
81
|
-
currency_decimal_digits: 0,
|
|
82
|
-
decimal_symbol: ".",
|
|
83
|
-
thousands_symbol: ",",
|
|
84
|
-
children: /* @__PURE__ */ r(x, {
|
|
85
|
-
isMicroFrontEnd: !1,
|
|
86
|
-
dateFormatter: {
|
|
87
|
-
formatDate: j
|
|
88
|
-
},
|
|
89
|
-
children: /* @__PURE__ */ r(b, {
|
|
90
|
-
children: /* @__PURE__ */ r(I, {
|
|
91
|
-
user: i,
|
|
92
|
-
pwd: n,
|
|
93
|
-
children: s
|
|
94
|
-
})
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
})
|
|
98
|
-
})
|
|
99
|
-
})
|
|
100
|
-
})
|
|
101
|
-
})
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
export {
|
|
105
|
-
U as M
|
|
106
|
-
};
|