@m4l/layouts 0.1.31 → 0.1.33

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/MFIsolationApp/index.fb96bc5d.js +150 -0
  2. package/components/{index.c736d03d.js → index.80a2abab.js} +1 -1
  3. package/hooks/index.43202c4e.js +4 -0
  4. package/hooks/useMasterDetail/{index.9e7fc609.js → index.dd9cb927.js} +1 -1
  5. package/hooks/useModule/{index.0533b6b0.js → index.97184469.js} +1 -1
  6. package/index.js +5 -5
  7. package/layouts/MasterDetailLayout/{index.4872d95e.js → index.793884be.js} +24 -25
  8. package/layouts/ModuleLayout/index.c673a65f.js +100 -0
  9. package/layouts/{index.4c3a8243.js → index.8748e200.js} +2 -2
  10. package/m4l_layouts/types.d.ts +0 -0
  11. package/package.json +3 -2
  12. package/components/MFIsolationApp/index.c250368a.js +0 -152
  13. package/hooks/index.d50ae1d2.js +0 -4
  14. package/layouts/ModuleLayout/index.de97329e.js +0 -104
  15. package/layouts/ModuleLayout/subcomponents/InnerModule/styles.d.ts +0 -3
  16. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/styles.d.ts +0 -2
  17. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/styles.d.ts +0 -2
  18. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/AppBar/styles.d.ts +0 -2
  19. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/styles.d.ts +0 -3
  20. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/subcomponents/NameDescription/styles.d.ts +0 -2
  21. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/LogoLeyend/styles.d.ts +0 -2
@@ -0,0 +1,150 @@
1
+ import { useEffect as x, useMemo as _, useCallback as f } from "react";
2
+ import { unstable_HistoryRouter as C } from "react-router-dom";
3
+ import { ToastContainer as D, toast as N } from "react-toastify";
4
+ import { HostThemeProvider as H, FormatterProvider as O, LocalesProvider as B, getLocaleFromNetwork as I } from "@m4l/graphics";
5
+ import { A as j } from "../../contexts/AuthContext/index.6f966215.js";
6
+ import { DomainCountryProvider as S, EnvironmentProvider as U, HostToolsProvider as z, NetworkProvider as R, axiosOperation as q } from "@m4l/core";
7
+ import { createBrowserHistory as G } from "history";
8
+ import J from "eventemitter3";
9
+ import { format as K } from "date-fns";
10
+ import { defaultThemeOptions as Q, fnComponentsOverrides as V } from "@m4l/styles";
11
+ import { u as W } from "../../hooks/useAuth/index.cb6a3420.js";
12
+ import { jsx as o, jsxs as X } from "react/jsx-runtime";
13
+ import h from "nprogress";
14
+ import { B as Y } from "../BaseModule/index.6309486a.js";
15
+ import { AreasProvider as Z } from "@m4l/components";
16
+ function $(m) {
17
+ const {
18
+ children: a,
19
+ user: d,
20
+ pwd: l
21
+ } = m, {
22
+ isAuthenticated: s,
23
+ isInitialized: c,
24
+ login: u,
25
+ user: e
26
+ } = W();
27
+ if (x(() => {
28
+ c && s === !1 && u(d, l, !1);
29
+ }, [c, s]), !s)
30
+ return /* @__PURE__ */ o("div", {
31
+ children: "Pendiente x atenticar"
32
+ });
33
+ const r = {
34
+ id: 1,
35
+ currency: "USD",
36
+ currency_decimal_digits: 2,
37
+ decimal_symbol: ".",
38
+ thousands_symbol: ","
39
+ };
40
+ 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__ */ X(H, {
41
+ hostThemeOptions: Q,
42
+ fnComponentsOverrides: V,
43
+ isMicroFrontEnd: !0,
44
+ children: [/* @__PURE__ */ o(D, {}), /* @__PURE__ */ o(S, {
45
+ ...r,
46
+ isMicroFrontEnd: !1,
47
+ children: /* @__PURE__ */ o(O, {
48
+ isMicroFrontEnd: !1,
49
+ dateFormatter: {
50
+ formatDate: K
51
+ },
52
+ currencyFormatter: {
53
+ code: r.currency,
54
+ decimalDigits: r.currency_decimal_digits
55
+ },
56
+ children: a
57
+ })
58
+ })]
59
+ });
60
+ }
61
+ const p = G({
62
+ window
63
+ });
64
+ function hr(m) {
65
+ const {
66
+ children: a,
67
+ user: d,
68
+ pwd: l,
69
+ host_api_local: s,
70
+ host_api_remote: c,
71
+ host_static_assets: u,
72
+ environment_assets: e,
73
+ moduleId: r,
74
+ skeletonFlags: y,
75
+ moduleNameField: v,
76
+ privileges: g,
77
+ componentsDictionary: F,
78
+ onLoad: P,
79
+ activeAreasNetwork: b = !1
80
+ } = m, t = _(() => new J(), []), w = f((i, n) => {
81
+ t.on(i, n);
82
+ }, [t]), A = f((i, n) => {
83
+ if (n === null) {
84
+ t.removeListener(i);
85
+ return;
86
+ }
87
+ t.removeListener(i, n);
88
+ }, [t]), E = f((i, n) => {
89
+ t.emit(i, n);
90
+ }, [t]), M = () => {
91
+ h.configure({
92
+ showSpinner: !0
93
+ }), h.start();
94
+ }, k = () => {
95
+ h.done();
96
+ }, L = _(() => ({
97
+ host: "",
98
+ isLocalhost: !0,
99
+ domain_token: "lab1",
100
+ host_api_local: s,
101
+ host_api_remote: c,
102
+ host_static_assets: u,
103
+ environment_assets: e
104
+ }), []), T = _(() => ({
105
+ history: p,
106
+ toast: N,
107
+ startProgress: M,
108
+ stopProgress: k,
109
+ events_add_listener: w,
110
+ events_remove_listener: A,
111
+ events_emit: E
112
+ }), []);
113
+ return /* @__PURE__ */ o(U, {
114
+ ...L,
115
+ children: /* @__PURE__ */ o(z, {
116
+ ...T,
117
+ children: /* @__PURE__ */ o(R, {
118
+ axiosOperation: q,
119
+ children: /* @__PURE__ */ o(C, {
120
+ history: p,
121
+ children: /* @__PURE__ */ o(B, {
122
+ isMicroFrontEnd: !1,
123
+ getLocaleFromNetwork: I,
124
+ children: /* @__PURE__ */ o(j, {
125
+ children: /* @__PURE__ */ o($, {
126
+ user: d,
127
+ pwd: l,
128
+ children: /* @__PURE__ */ o(Y, {
129
+ moduleId: r,
130
+ privileges: g,
131
+ skeletonFlags: y,
132
+ componentsDictionary: F,
133
+ moduleNameField: v,
134
+ children: /* @__PURE__ */ o(Z, {
135
+ onLoad: P,
136
+ loadAreasFromNetwork: b,
137
+ children: a
138
+ })
139
+ })
140
+ })
141
+ })
142
+ })
143
+ })
144
+ })
145
+ })
146
+ });
147
+ }
148
+ export {
149
+ hr as M
150
+ };
@@ -1,4 +1,4 @@
1
- import "./MFIsolationApp/index.c250368a.js";
1
+ import "./MFIsolationApp/index.fb96bc5d.js";
2
2
  import "react-router-dom";
3
3
  import "@m4l/core";
4
4
  import "@m4l/graphics";
@@ -0,0 +1,4 @@
1
+ import "react";
2
+ import "../layouts/MasterDetailLayout/index.793884be.js";
3
+ import "../contexts/AuthContext/index.6f966215.js";
4
+ import "../layouts/ModuleLayout/index.c673a65f.js";
@@ -1,5 +1,5 @@
1
1
  import { useContext as t } from "react";
2
- import { M as e } from "../../layouts/MasterDetailLayout/index.4872d95e.js";
2
+ import { M as e } from "../../layouts/MasterDetailLayout/index.793884be.js";
3
3
  const s = () => t(e);
4
4
  export {
5
5
  s as u
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../layouts/ModuleLayout/index.de97329e.js";
2
+ import { M as t } from "../../layouts/ModuleLayout/index.c673a65f.js";
3
3
  const n = () => {
4
4
  const e = o(t);
5
5
  if (!e)
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { M as f } from "./components/MFIsolationApp/index.c250368a.js";
1
+ import { M as f } from "./components/MFIsolationApp/index.fb96bc5d.js";
2
2
  import { M as D } from "./components/MFHostApp/index.420c2626.js";
3
3
  import { B as L } from "./components/BaseModule/index.6309486a.js";
4
4
  import { a as g, A as h } from "./contexts/AuthContext/index.6f966215.js";
5
- import { a as N, d as B, g as F } from "./layouts/ModuleLayout/index.de97329e.js";
6
- import { a as H, d as I, g as P } from "./layouts/MasterDetailLayout/index.4872d95e.js";
5
+ import { a as N, d as B, g as F } from "./layouts/ModuleLayout/index.c673a65f.js";
6
+ import { a as H, d as I, g as P } from "./layouts/MasterDetailLayout/index.793884be.js";
7
7
  import { N as j, d as k, g as q } from "./layouts/NoAuthModuleLayout/index.5d946846.js";
8
- import { u as z } from "./hooks/useMasterDetail/index.9e7fc609.js";
8
+ import { u as z } from "./hooks/useMasterDetail/index.dd9cb927.js";
9
9
  import { u as G } from "./hooks/useAuth/index.cb6a3420.js";
10
- import { u as K } from "./hooks/useModule/index.0533b6b0.js";
10
+ import { u as K } from "./hooks/useModule/index.97184469.js";
11
11
  import "react";
12
12
  import "react-router-dom";
13
13
  import "react-toastify";
@@ -1,18 +1,18 @@
1
- import { createContext as $, useState as y, useRef as k, useMemo as p, useCallback as C } from "react";
2
- import { voidFunction as I, useEnvironment as P } from "@m4l/core";
3
- import { SplitLayout as w } from "@m4l/components";
4
- import { a as z, g as L } from "../ModuleLayout/index.de97329e.js";
5
- import { jsx as d } from "react/jsx-runtime";
1
+ import { createContext as $, useState as y, useRef as k, useMemo as p, useCallback as g } from "react";
2
+ import { voidFunction as w, useEnvironment as P } from "@m4l/core";
3
+ import { SplitLayout as z } from "@m4l/components";
4
+ import { a as I, g as L } from "../ModuleLayout/index.c673a65f.js";
5
+ import { jsx as c } from "react/jsx-runtime";
6
6
  import { useResponsiveDesktop as F } from "@m4l/graphics";
7
7
  const N = {
8
8
  masterSelection: void 0,
9
- onChangeMasterSelection: I
9
+ onChangeMasterSelection: w
10
10
  }, x = $(N);
11
11
  function R(o) {
12
12
  const {
13
13
  children: e
14
14
  } = o, [n, t] = y(void 0);
15
- return /* @__PURE__ */ d(x.Provider, {
15
+ return /* @__PURE__ */ c(x.Provider, {
16
16
  value: {
17
17
  masterSelection: n,
18
18
  onChangeMasterSelection: t
@@ -33,9 +33,9 @@ function H(o) {
33
33
  } = o, {
34
34
  host_static_assets: r,
35
35
  environment_assets: s
36
- } = P(), [h, M] = y("vertical"), u = F(), S = k(null), b = p(() => [{
36
+ } = P(), [C, h] = y("vertical"), d = F(), M = k(null), S = p(() => [{
37
37
  urlIcon: `${r}/${s}/frontend/components/masterdetaillayout/assets/icons/split_vertical.svg`,
38
- onClick: () => m("vertical"),
38
+ onClick: () => u("vertical"),
39
39
  disabled: !0,
40
40
  visibility: "main",
41
41
  dictionaryField: "master_detail_layout.split_vertical",
@@ -43,7 +43,7 @@ function H(o) {
43
43
  className: "splitactions"
44
44
  }, {
45
45
  urlIcon: `${r}/${s}/frontend/components/masterdetaillayout/assets/icons/split_horizontal.svg`,
46
- onClick: () => m("horizontal"),
46
+ onClick: () => u("horizontal"),
47
47
  disabled: !1,
48
48
  visibility: "main",
49
49
  dictionaryField: "master_detail_layout.split_horizontal",
@@ -51,21 +51,20 @@ function H(o) {
51
51
  className: "splitactions"
52
52
  }, {
53
53
  urlIcon: `${r}/${s}/frontend/components/masterdetaillayout/assets/icons/no_split.svg`,
54
- onClick: () => m("none"),
54
+ onClick: () => u("none"),
55
55
  disabled: !1,
56
56
  visibility: "main",
57
57
  dictionaryField: "master_detail_layout.no_split",
58
58
  tag: "none",
59
59
  className: "splitactions"
60
- }], []), [v, D] = y(b), m = C((c) => {
61
- D((g) => {
62
- console.log("onChangePostionInternal", c, g);
63
- const a = [...g];
60
+ }], []), [v, b] = y(S), u = g((m) => {
61
+ b((A) => {
62
+ const a = [...A];
64
63
  for (let l = 0; l < a.length; l++)
65
- a[l].disabled = !1, a[l].tag === c && (a[l].disabled = !0);
64
+ a[l].disabled = !1, a[l].tag === m && (a[l].disabled = !0);
66
65
  return a;
67
- }), M(c);
68
- }, []), _ = C(() => {
66
+ }), h(m);
67
+ }, []), _ = g(() => {
69
68
  }, [t]), f = p(() => ({
70
69
  urlIcon: `${r}/${s}/frontend/components/masterdetaillayout/assets/icons/view_detail.svg`,
71
70
  onClick: _,
@@ -74,14 +73,14 @@ function H(o) {
74
73
  dictionaryField: "master_detail_layout.view_detail",
75
74
  tag: "none",
76
75
  className: ""
77
- }), [s, _]), A = p(() => V(v, i, f, u), [v, i, u, f]);
78
- return /* @__PURE__ */ d(R, {
79
- children: /* @__PURE__ */ d(z, {
80
- ref: S,
76
+ }), [s, _]), D = p(() => V(v, i, f, d), [v, i, d, f]);
77
+ return /* @__PURE__ */ c(R, {
78
+ children: /* @__PURE__ */ c(I, {
79
+ ref: M,
81
80
  moduleId: e,
82
- moduleActions: A,
83
- children: /* @__PURE__ */ d(w, {
84
- splitPosition: u ? h : "none",
81
+ moduleActions: D,
82
+ children: /* @__PURE__ */ c(z, {
83
+ splitPosition: d ? C : "none",
85
84
  firstPart: n,
86
85
  secondPart: t
87
86
  })
@@ -0,0 +1,100 @@
1
+ import { useModal as y, useWindowToolsMF as x, ModalProvider as v, getModalDialogComponentsDictionary as g } from "@m4l/components";
2
+ import { forwardRef as a, useRef as p, useImperativeHandle as m, createContext as h, useState as s, useMemo as I, useEffect as C } from "react";
3
+ import { styled as f } from "@mui/material/styles";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ const A = f("div")(() => ({
6
+ display: "flex",
7
+ flexDirection: "column",
8
+ position: "absolute",
9
+ margin: "0px 12px 12px 12px",
10
+ left: "0px",
11
+ right: "0px",
12
+ top: "0px",
13
+ bottom: "0px",
14
+ overflow: "hidden"
15
+ })), D = f("div")(({
16
+ theme: o
17
+ }) => ({
18
+ display: "flex",
19
+ position: "relative",
20
+ marginTop: o.spacing(1),
21
+ justifyContent: "center",
22
+ flexGrow: "1",
23
+ overflow: "hidden"
24
+ })), M = a((o, r) => {
25
+ const {
26
+ children: e
27
+ } = o, {
28
+ openModal: l
29
+ } = y(), n = p(null);
30
+ return m(r, () => ({
31
+ openModal: l,
32
+ current: n.current
33
+ })), /* @__PURE__ */ t(A, {
34
+ id: "WrapperInnerModule",
35
+ className: "m4l_module_layout",
36
+ ref: n,
37
+ children: /* @__PURE__ */ t(D, {
38
+ id: "ModuleContent",
39
+ children: e
40
+ })
41
+ });
42
+ });
43
+ M.displayName = "InnerModule";
44
+ const w = h(null);
45
+ function L(o) {
46
+ const {
47
+ children: r,
48
+ moduleActions: e,
49
+ moduleId: l
50
+ } = o, [n] = s(() => ({
51
+ moduleId: l,
52
+ dictionary: void 0
53
+ })), {
54
+ setActions: d
55
+ } = x(), [i, u] = s([]), c = I(() => (e || []).concat(i), [e, i]);
56
+ return C(() => {
57
+ d(c);
58
+ }, [c]), /* @__PURE__ */ t(w.Provider, {
59
+ value: {
60
+ setDynamicActions: u,
61
+ moduleId: n.moduleId
62
+ },
63
+ children: r
64
+ });
65
+ }
66
+ const R = a((o, r) => {
67
+ const {
68
+ moduleId: e,
69
+ moduleActions: l,
70
+ children: n
71
+ } = o, d = p(null), i = (u) => {
72
+ d.current?.openModal(u);
73
+ };
74
+ return m(r, () => ({
75
+ openModal: i,
76
+ current: d.current
77
+ })), /* @__PURE__ */ t(L, {
78
+ moduleId: e,
79
+ moduleActions: l,
80
+ children: /* @__PURE__ */ t(v, {
81
+ children: /* @__PURE__ */ t(M, {
82
+ ref: d,
83
+ children: n
84
+ })
85
+ })
86
+ });
87
+ });
88
+ R.displayName = "ModuleLayout";
89
+ function b() {
90
+ return ["module_layout"].concat(g());
91
+ }
92
+ const j = {
93
+ module_layout: {}
94
+ };
95
+ export {
96
+ w as M,
97
+ R as a,
98
+ j as d,
99
+ b as g
100
+ };
@@ -1,8 +1,8 @@
1
- import "./ModuleLayout/index.de97329e.js";
1
+ import "./ModuleLayout/index.c673a65f.js";
2
2
  import "@m4l/components";
3
3
  import "react";
4
4
  import "@m4l/core";
5
- import "./MasterDetailLayout/index.4872d95e.js";
5
+ import "./MasterDetailLayout/index.793884be.js";
6
6
  import "@m4l/graphics";
7
7
  import "react/jsx-runtime";
8
8
  import "./NoAuthModuleLayout/index.5d946846.js";
File without changes
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/components": "*",
7
7
  "@m4l/core": "*",
8
- "@m4l/graphics": "*"
8
+ "@m4l/graphics": "*",
9
+ "@m4l/styles": "*"
9
10
  },
10
11
  "peerDependencies": {
11
12
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -1,152 +0,0 @@
1
- import { useEffect as y, useMemo as f, useCallback as _ } from "react";
2
- import { unstable_HistoryRouter as C } from "react-router-dom";
3
- import { ToastContainer as D, toast as N } from "react-toastify";
4
- import { HostThemeProvider as H, FormatterProvider as I, LocalesProvider as O, getLocaleFromNetwork as B } from "@m4l/graphics";
5
- import { A as j } from "../../contexts/AuthContext/index.6f966215.js";
6
- import { DomainCountryProvider as S, EnvironmentProvider as U, HostToolsProvider as z, NetworkProvider as R, axiosOperation as q } from "@m4l/core";
7
- import { createBrowserHistory as G } from "history";
8
- import J from "eventemitter3";
9
- import { format as K } from "date-fns";
10
- import { defaultThemeOptions as Q, fnComponentsOverrides as V } from "@m4l/styles";
11
- import { u as W } from "../../hooks/useAuth/index.cb6a3420.js";
12
- import { jsx as r, jsxs as X } from "react/jsx-runtime";
13
- import p from "nprogress";
14
- import { B as Y } from "../BaseModule/index.6309486a.js";
15
- import { AreasProvider as Z } from "@m4l/components";
16
- function $(m) {
17
- const {
18
- children: a,
19
- user: d,
20
- pwd: l
21
- } = m, {
22
- isAuthenticated: n,
23
- isInitialized: c,
24
- login: u,
25
- user: e
26
- } = W();
27
- if (y(() => {
28
- c && n === !1 && (console.log("useEffect MFAuthApp Login"), u(d, l, !1));
29
- }, [c, n]), !n)
30
- return /* @__PURE__ */ r("div", {
31
- children: "Pendiente x atenticar"
32
- });
33
- const o = {
34
- id: 1,
35
- currency: "USD",
36
- currency_decimal_digits: 2,
37
- decimal_symbol: ".",
38
- thousands_symbol: ","
39
- };
40
- return e?.domain_country && (o.id = e?.domain_country.id ?? o.id, o.currency = e?.domain_country.currency ?? o.currency, o.currency_decimal_digits = e?.domain_country.currency_decimal_digits ?? o.currency_decimal_digits, o.decimal_symbol = e?.domain_country.decimal_symbol ?? o.decimal_symbol, o.thousands_symbol = e?.domain_country?.thousands_symbol ?? o.thousands_symbol), /* @__PURE__ */ X(H, {
41
- hostThemeOptions: Q,
42
- fnComponentsOverrides: V,
43
- isMicroFrontEnd: !0,
44
- children: [/* @__PURE__ */ r(D, {}), /* @__PURE__ */ r(S, {
45
- ...o,
46
- isMicroFrontEnd: !1,
47
- children: /* @__PURE__ */ r(I, {
48
- isMicroFrontEnd: !1,
49
- dateFormatter: {
50
- formatDate: K
51
- },
52
- currencyFormatter: {
53
- code: o.currency,
54
- decimalDigits: o.currency_decimal_digits
55
- },
56
- children: a
57
- })
58
- })]
59
- });
60
- }
61
- const h = G({
62
- window
63
- });
64
- function ho(m) {
65
- const {
66
- children: a,
67
- user: d,
68
- pwd: l,
69
- host_api_local: n,
70
- host_api_remote: c,
71
- host_static_assets: u,
72
- environment_assets: e,
73
- moduleId: o,
74
- skeletonFlags: v,
75
- moduleNameField: g,
76
- privileges: F,
77
- componentsDictionary: A,
78
- onLoad: P,
79
- activeAreasNetwork: b = !1
80
- } = m, t = f(() => new J(), []), w = _((i, s) => {
81
- t.on(i, s);
82
- }, [t]), E = _((i, s) => {
83
- if (s === null) {
84
- t.removeListener(i);
85
- return;
86
- }
87
- t.removeListener(i, s);
88
- }, [t]), M = _((i, s) => {
89
- t.emit(i, s);
90
- }, [t]), k = () => {
91
- p.configure({
92
- showSpinner: !0
93
- }), p.start();
94
- }, L = () => {
95
- p.done();
96
- }, T = f(() => ({
97
- host: "",
98
- isLocalhost: !0,
99
- domain_token: "lab1",
100
- host_api_local: n,
101
- host_api_remote: c,
102
- host_static_assets: u,
103
- environment_assets: e
104
- }), []), x = f(() => ({
105
- history: h,
106
- toast: N,
107
- startProgress: k,
108
- stopProgress: L,
109
- events_add_listener: w,
110
- events_remove_listener: E,
111
- events_emit: M
112
- }), []);
113
- return y(() => {
114
- console.log("useEffect IsolationApp");
115
- }, []), /* @__PURE__ */ r(U, {
116
- ...T,
117
- children: /* @__PURE__ */ r(z, {
118
- ...x,
119
- children: /* @__PURE__ */ r(R, {
120
- axiosOperation: q,
121
- children: /* @__PURE__ */ r(C, {
122
- history: h,
123
- children: /* @__PURE__ */ r(O, {
124
- isMicroFrontEnd: !1,
125
- getLocaleFromNetwork: B,
126
- children: /* @__PURE__ */ r(j, {
127
- children: /* @__PURE__ */ r($, {
128
- user: d,
129
- pwd: l,
130
- children: /* @__PURE__ */ r(Y, {
131
- moduleId: o,
132
- privileges: F,
133
- skeletonFlags: v,
134
- componentsDictionary: A,
135
- moduleNameField: g,
136
- children: /* @__PURE__ */ r(Z, {
137
- onLoad: P,
138
- loadAreasFromNetwork: b,
139
- children: a
140
- })
141
- })
142
- })
143
- })
144
- })
145
- })
146
- })
147
- })
148
- });
149
- }
150
- export {
151
- ho as M
152
- };
@@ -1,4 +0,0 @@
1
- import "react";
2
- import "../layouts/MasterDetailLayout/index.4872d95e.js";
3
- import "../contexts/AuthContext/index.6f966215.js";
4
- import "../layouts/ModuleLayout/index.de97329e.js";
@@ -1,104 +0,0 @@
1
- import { useModal as x, useWindowToolsMF as v, ModalProvider as g, getModalDialogComponentsDictionary as h } from "@m4l/components";
2
- import { forwardRef as m, useRef as p, useImperativeHandle as f, createContext as I, useState as a, useMemo as A, useEffect as s } from "react";
3
- import { styled as M } from "@mui/material/styles";
4
- import { jsx as t } from "react/jsx-runtime";
5
- const C = M("div")(() => ({
6
- display: "flex",
7
- flexDirection: "column",
8
- position: "absolute",
9
- margin: "0px 12px 12px 12px",
10
- left: "0px",
11
- right: "0px",
12
- top: "0px",
13
- bottom: "0px",
14
- overflow: "hidden"
15
- })), D = M("div")(({
16
- theme: o
17
- }) => ({
18
- display: "flex",
19
- position: "relative",
20
- marginTop: o.spacing(1),
21
- justifyContent: "center",
22
- flexGrow: "1",
23
- overflow: "hidden"
24
- })), y = m((o, l) => {
25
- const {
26
- children: e
27
- } = o, {
28
- openModal: r
29
- } = x(), n = p(null);
30
- return f(l, () => ({
31
- openModal: r,
32
- current: n.current
33
- })), /* @__PURE__ */ t(C, {
34
- id: "WrapperInnerModule",
35
- className: "m4l_module_layout",
36
- ref: n,
37
- children: /* @__PURE__ */ t(D, {
38
- id: "ModuleContent",
39
- children: e
40
- })
41
- });
42
- });
43
- y.displayName = "InnerModule";
44
- const w = I(null);
45
- function L(o) {
46
- const {
47
- children: l,
48
- moduleActions: e,
49
- moduleId: r
50
- } = o, [n] = a(() => ({
51
- moduleId: r,
52
- dictionary: void 0
53
- })), {
54
- setActions: d
55
- } = v(), [i, u] = a([]), c = A(() => (console.log("useMemo finalModuleActions, ", e, i), (e || []).concat(i)), [e, i]);
56
- return s(() => {
57
- console.log("useEffect ModuleProvider load", c);
58
- }, []), s(() => {
59
- d(c);
60
- }, [c]), /* @__PURE__ */ t(w.Provider, {
61
- value: {
62
- setDynamicActions: u,
63
- moduleId: n.moduleId
64
- },
65
- children: l
66
- });
67
- }
68
- const P = m((o, l) => {
69
- const {
70
- moduleId: e,
71
- moduleActions: r,
72
- children: n
73
- } = o, d = p(null), i = (u) => {
74
- d.current?.openModal(u);
75
- };
76
- return f(l, () => ({
77
- openModal: i,
78
- current: d.current
79
- })), s(() => {
80
- console.log("useEffect ModuleLayout");
81
- }, []), /* @__PURE__ */ t(L, {
82
- moduleId: e,
83
- moduleActions: r,
84
- children: /* @__PURE__ */ t(g, {
85
- children: /* @__PURE__ */ t(y, {
86
- ref: d,
87
- children: n
88
- })
89
- })
90
- });
91
- });
92
- P.displayName = "ModuleLayout";
93
- function W() {
94
- return ["module_layout"].concat(h());
95
- }
96
- const b = {
97
- module_layout: {}
98
- };
99
- export {
100
- w as M,
101
- P as a,
102
- b as d,
103
- W as g
104
- };
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperInnerModule: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const ModuleContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperMain: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperAppBarForm: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperAppBar: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperFormScroll: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const WrapperForm: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperNameDescription: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperLogoLeyend: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;