@m4l/layouts 0.1.35 → 0.1.38

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 (38) hide show
  1. package/components/BaseModule/index.d.ts +0 -1
  2. package/components/MFHostApp/index.d.ts +0 -1
  3. package/components/MFIsolationApp/index.d.ts +0 -1
  4. package/components/MFIsolationApp/index.ed197bc0.js +152 -0
  5. package/components/MFIsolationApp/subcomponents/MFAuthApp/index.d.ts +0 -1
  6. package/components/MFIsolationApp/types.d.ts +1 -0
  7. package/components/{index.80a2abab.js → index.604759d6.js} +1 -1
  8. package/hooks/index.18c6b299.js +4 -0
  9. package/hooks/useMasterDetail/{index.dd9cb927.js → index.50331312.js} +1 -1
  10. package/hooks/useModule/{index.97184469.js → index.35cc5fe0.js} +1 -1
  11. package/index.js +6 -6
  12. package/layouts/MasterDetailLayout/index.2c363c7a.js +109 -0
  13. package/layouts/MasterDetailLayout/index.d.ts +0 -1
  14. package/layouts/ModuleLayout/contexts/ModuleContext/types.d.ts +1 -0
  15. package/layouts/ModuleLayout/index.90b4dc8e.js +103 -0
  16. package/layouts/ModuleLayout/types.d.ts +1 -0
  17. package/layouts/NoAuthModuleLayout/index.d.ts +0 -1
  18. package/layouts/NoAuthModuleLayout/index.eabf38c1.js +345 -0
  19. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/index.d.ts +1 -3
  20. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/index.d.ts +1 -0
  21. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/index.d.ts +1 -0
  22. package/layouts/NoAuthModuleLayout/types.d.ts +1 -1
  23. package/layouts/index.3e2d546f.js +8 -0
  24. package/package.json +1 -1
  25. package/components/MFIsolationApp/index.fb96bc5d.js +0 -150
  26. package/hooks/index.43202c4e.js +0 -4
  27. package/layouts/MasterDetailLayout/index.793884be.js +0 -106
  28. package/layouts/ModuleLayout/index.c673a65f.js +0 -100
  29. package/layouts/NoAuthModuleLayout/index.5d946846.js +0 -198
  30. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/index.d.ts +0 -3
  31. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/AppBar/index.d.ts +0 -2
  32. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/index.d.ts +0 -3
  33. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/subcomponents/NameDescription/index.d.ts +0 -2
  34. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/types.d.ts +0 -4
  35. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/types.d.ts +0 -4
  36. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/LogoLeyend/index.d.ts +0 -2
  37. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/types.d.ts +0 -4
  38. package/layouts/index.8748e200.js +0 -8
@@ -1,100 +0,0 @@
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,198 +0,0 @@
1
- import { useResponsive as h, useLocales as N } from "@m4l/graphics";
2
- import { Image as p, Typography as u, LanguagePopover as W, HelmetPage as k } from "@m4l/components";
3
- import { useModuleDictionary as m, useBase as g, useEnvironment as b, BaseProvider as I, FlagsProvider as S, ModuleDictionaryProvider as F, ModuleSkeletonProvider as A } from "@m4l/core";
4
- import { styled as t } from "@mui/material/styles";
5
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
6
- const C = t("div")(({
7
- theme: o
8
- }) => ({
9
- boxShadow: o.shadows[1],
10
- borderRadius: o.spacing(2),
11
- width: "100%",
12
- maxWidth: "464px",
13
- display: "flex",
14
- flexDirection: "column",
15
- justifyContent: "flex-start",
16
- alignItems: "center",
17
- margin: o.spacing(2, 0, 2, 2),
18
- padding: o.spacing(4, 3),
19
- gap: o.spacing(3),
20
- overflow: "hidden"
21
- })), j = () => {
22
- const {
23
- getLabel: o
24
- } = m(), {
25
- companyLogoNormalUrl: n,
26
- moduleIlustrationUrl: l
27
- } = g();
28
- return /* @__PURE__ */ i(C, {
29
- children: [/* @__PURE__ */ e(p, {
30
- width: "400px",
31
- height: "400px",
32
- src: n,
33
- alt: "logo"
34
- }, "Logo"), l ? /* @__PURE__ */ e(p, {
35
- src: l,
36
- width: "100%",
37
- height: "300px"
38
- }) : null, /* @__PURE__ */ e(u, {
39
- variant: "h3",
40
- skeletonWidth: "30%",
41
- skeletongHeight: "18px",
42
- children: o("module_leyend")
43
- }, "Leyend")]
44
- });
45
- }, B = t("div")(() => ({
46
- flexGrow: "1",
47
- display: "flex",
48
- flexDirection: "column"
49
- })), P = t("header")(({
50
- theme: o
51
- }) => ({
52
- width: "100%",
53
- display: "flex",
54
- justifyContent: "space-between",
55
- padding: o.spacing(1, 3),
56
- [o.breakpoints.up("md")]: {
57
- justifyContent: "flex-end"
58
- }
59
- })), $ = () => {
60
- const {
61
- companyLogoSmallUrl: o
62
- } = g(), n = h("down", "md");
63
- return /* @__PURE__ */ i(P, {
64
- children: [n ? /* @__PURE__ */ e(p, {
65
- src: o,
66
- width: "40px",
67
- height: "40px",
68
- skeletonVariant: "circle"
69
- }, "Isotipo") : null, /* @__PURE__ */ e(W, {})]
70
- });
71
- }, H = t("div")(() => ({
72
- display: "flex",
73
- overflow: "auto",
74
- width: "100%",
75
- height: "100%",
76
- justifyContent: "center"
77
- })), R = t("div")(({
78
- theme: o
79
- }) => ({
80
- display: "flex",
81
- width: "100%",
82
- height: "auto",
83
- margin: "auto",
84
- maxWidth: "480px",
85
- flexDirection: "column",
86
- gap: o.spacing(3)
87
- })), E = t("div")(({
88
- theme: o
89
- }) => ({
90
- display: "flex",
91
- flexDirection: "column",
92
- gap: o.spacing(2),
93
- padding: o.spacing(0, 3)
94
- })), G = () => {
95
- const {
96
- getModuleLabel: o,
97
- getLabel: n
98
- } = m();
99
- return /* @__PURE__ */ i(E, {
100
- children: [/* @__PURE__ */ e(u, {
101
- variant: "h4",
102
- skeletonWidth: "35%",
103
- skeletongHeight: "36px",
104
- children: o()
105
- }, "ModuleName"), /* @__PURE__ */ e(u, {
106
- skeletonWidth: "60%",
107
- skeletongHeight: "21px",
108
- children: n("module_description")
109
- }, "ModuleDescription")]
110
- });
111
- }, T = (o) => {
112
- const {
113
- children: n
114
- } = o;
115
- return /* @__PURE__ */ e(H, {
116
- children: /* @__PURE__ */ i(R, {
117
- children: [/* @__PURE__ */ e(G, {}), n]
118
- })
119
- });
120
- }, V = (o) => {
121
- const {
122
- children: n
123
- } = o;
124
- return /* @__PURE__ */ i(B, {
125
- children: [/* @__PURE__ */ e($, {}), /* @__PURE__ */ e(T, {
126
- children: n
127
- })]
128
- });
129
- }, q = t("div")(() => ({
130
- display: "flex",
131
- height: "100vh"
132
- })), z = (o) => {
133
- const {
134
- children: n
135
- } = o, {
136
- getModuleLabel: l
137
- } = m(), r = h("up", "md"), {
138
- subtitle: a
139
- } = g();
140
- return /* @__PURE__ */ e(k, {
141
- title: l(),
142
- subtitle: a,
143
- children: /* @__PURE__ */ i(q, {
144
- children: [r ? /* @__PURE__ */ e(j, {}) : null, /* @__PURE__ */ e(V, {
145
- children: n
146
- })]
147
- })
148
- });
149
- }, Y = (o) => {
150
- const {
151
- moduleId: n,
152
- moduleNameField: l,
153
- children: r,
154
- componentsDictionary: a,
155
- skeletonFlags: f,
156
- subtitle: y,
157
- companyLogoSmallUrl: x,
158
- companyLogoNormalUrl: L,
159
- moduleIlustrationUrl: v
160
- } = o, {
161
- host_static_assets: s,
162
- environment_assets: d
163
- } = b(), _ = N().currentLocale?.localeString, w = L || `${s}/${d}/frontend/commons/assets/icons/logotipo_m4l.svg`, M = x || `${s}/${d}/frontend/commons/assets/icons/isotipo_m4l.svg`, U = v || `${s}/${d}/frontend/domain/host/commons/assets/img/illustration_noauth.png`, c = f;
164
- return c.findIndex((D) => D === "dictionary_loaded") < 0 && c.push("dictionary_loaded"), /* @__PURE__ */ e(I, {
165
- value: {
166
- subtitle: y,
167
- companyLogoSmallUrl: M,
168
- companyLogoNormalUrl: w,
169
- moduleIlustrationUrl: U
170
- },
171
- children: /* @__PURE__ */ e(S, {
172
- children: /* @__PURE__ */ e(F, {
173
- isAuth: !1,
174
- moduleId: n,
175
- moduleNameField: l,
176
- componentsDictionary: a,
177
- currentLang: _,
178
- children: /* @__PURE__ */ e(A, {
179
- flags: c,
180
- children: /* @__PURE__ */ e(z, {
181
- children: r
182
- })
183
- })
184
- })
185
- })
186
- });
187
- };
188
- function Z() {
189
- return ["no_auth_module_layout"];
190
- }
191
- const oo = {
192
- no_auth_module_layout: {}
193
- };
194
- export {
195
- Y as N,
196
- oo as d,
197
- Z as g
198
- };
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WrapperAppBarFormProps } from './types';
3
- export declare const AppBarForm: (props: WrapperAppBarFormProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const AppBar: () => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WrapperFormScrollProps } from './types';
3
- export declare const Form: (props: WrapperFormScrollProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const NameDescription: () => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface WrapperFormScrollProps {
3
- children: ReactNode;
4
- }
@@ -1,4 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface WrapperAppBarFormProps {
3
- children: ReactNode;
4
- }
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LogoLeyend: () => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface ModuleProps {
3
- children: ReactNode;
4
- }
@@ -1,8 +0,0 @@
1
- import "./ModuleLayout/index.c673a65f.js";
2
- import "@m4l/components";
3
- import "react";
4
- import "@m4l/core";
5
- import "./MasterDetailLayout/index.793884be.js";
6
- import "@m4l/graphics";
7
- import "react/jsx-runtime";
8
- import "./NoAuthModuleLayout/index.5d946846.js";