@m4l/layouts 0.1.12 → 0.1.14
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/hooks/useMasterDetail/{index.d5830f95.js → index.8e9e900b.js} +1 -1
- package/hooks/useModule/{index.f9e8dfff.js → index.096d7d13.js} +1 -1
- package/index.js +5 -5
- package/layouts/MasterDetailLayout/{index.a35e475f.js → index.71de0dc7.js} +56 -54
- package/layouts/ModuleLayout/{index.fe7cec18.js → index.842072c5.js} +82 -80
- package/layouts/ModuleLayout/types.d.ts +1 -0
- package/layouts/NoAuthModuleLayout/{index.798fbe31.js → index.5d1098ef.js} +6 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as p, d as l, g as y } from "./layouts/ModuleLayout/index.
|
|
1
|
+
import { a as p, d as l, g as y } from "./layouts/ModuleLayout/index.842072c5.js";
|
|
2
2
|
import "@m4l/components";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
import { a as n, d as M, g as D } from "./layouts/MasterDetailLayout/index.
|
|
5
|
+
import { a as n, d as M, g as D } from "./layouts/MasterDetailLayout/index.71de0dc7.js";
|
|
6
6
|
import "@m4l/graphics";
|
|
7
7
|
import "@mui/material";
|
|
8
8
|
import "react/jsx-runtime";
|
|
9
|
-
import { N as L, d as c, g } from "./layouts/NoAuthModuleLayout/index.
|
|
10
|
-
import { u as N } from "./hooks/useMasterDetail/index.
|
|
11
|
-
import { u as A } from "./hooks/useModule/index.
|
|
9
|
+
import { N as L, d as c, g } from "./layouts/NoAuthModuleLayout/index.5d1098ef.js";
|
|
10
|
+
import { u as N } from "./hooks/useMasterDetail/index.8e9e900b.js";
|
|
11
|
+
import { u as A } from "./hooks/useModule/index.096d7d13.js";
|
|
12
12
|
import "@mui/material/styles";
|
|
13
13
|
export {
|
|
14
14
|
n as MasterDetailLayout,
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { createContext as
|
|
2
|
-
import { voidFunction as
|
|
3
|
-
import { SplitLayout as
|
|
4
|
-
import { g as
|
|
1
|
+
import { createContext as P, useState as v, useRef as z, useCallback as N, useMemo as p } from "react";
|
|
2
|
+
import { voidFunction as x, useEnvironment as R } from "@m4l/core";
|
|
3
|
+
import { SplitLayout as B } from "@m4l/components";
|
|
4
|
+
import { g as V, a as j } from "../ModuleLayout/index.842072c5.js";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
-
import { useResponsiveDesktop as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { u as
|
|
9
|
-
function
|
|
10
|
-
return ["master_detail_layout"].concat(
|
|
6
|
+
import { useResponsiveDesktop as E } from "@m4l/graphics";
|
|
7
|
+
import { Button as H } from "@mui/material";
|
|
8
|
+
import { u as T } from "../../hooks/useMasterDetail/index.8e9e900b.js";
|
|
9
|
+
function W() {
|
|
10
|
+
return ["master_detail_layout"].concat(V());
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const et = {
|
|
13
13
|
master_detail_layout: {
|
|
14
14
|
split_vertical: "Split vertically",
|
|
15
15
|
split_horizontal: "Split horizontally",
|
|
16
16
|
no_split: "No split",
|
|
17
17
|
view_detail: "View detail"
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, q = {
|
|
20
20
|
masterSelection: void 0,
|
|
21
|
-
onChangeMasterSelection:
|
|
22
|
-
},
|
|
23
|
-
function
|
|
21
|
+
onChangeMasterSelection: x
|
|
22
|
+
}, G = P(q);
|
|
23
|
+
function J(i) {
|
|
24
24
|
const {
|
|
25
25
|
children: o
|
|
26
26
|
} = i, [e, t] = v(void 0);
|
|
27
|
-
return /* @__PURE__ */ r(
|
|
27
|
+
return /* @__PURE__ */ r(G.Provider, {
|
|
28
28
|
value: {
|
|
29
29
|
masterSelection: e,
|
|
30
30
|
onChangeMasterSelection: t
|
|
@@ -32,45 +32,46 @@ function G(i) {
|
|
|
32
32
|
children: o
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function K(i) {
|
|
36
36
|
const {
|
|
37
37
|
masterSelection: o
|
|
38
|
-
} =
|
|
38
|
+
} = T(), {
|
|
39
39
|
onClick: e,
|
|
40
40
|
description: t
|
|
41
41
|
} = i;
|
|
42
|
-
return /* @__PURE__ */ r(
|
|
42
|
+
return /* @__PURE__ */ r(H, {
|
|
43
43
|
onClick: e,
|
|
44
44
|
variant: "outlined",
|
|
45
45
|
disabled: o === void 0,
|
|
46
46
|
children: t
|
|
47
47
|
}, "miDetail");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function O(i, o, e, t) {
|
|
50
50
|
let n = t !== void 0 && t ? [...i] : [e];
|
|
51
51
|
return n = o.concat(n), n;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function nt(i) {
|
|
54
54
|
const {
|
|
55
55
|
moduleId: o,
|
|
56
56
|
moduleNameField: e,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
masterComponent: t,
|
|
58
|
+
detailComponent: n,
|
|
59
|
+
moduleActions: y,
|
|
60
|
+
urlIcon: M,
|
|
61
|
+
currentLang: S,
|
|
62
|
+
componentsDictionary: f,
|
|
63
|
+
breadcrumbLinks: b,
|
|
64
|
+
privileges: k,
|
|
65
|
+
skeletonFlags: A
|
|
65
66
|
} = i, {
|
|
66
67
|
host_static_assets: c,
|
|
67
68
|
environment_assets: a
|
|
68
|
-
} =
|
|
69
|
-
const s = [...
|
|
69
|
+
} = R(), [w, L] = v("vertical"), d = E(), _ = z(null), u = (m) => {
|
|
70
|
+
const s = [...g];
|
|
70
71
|
for (let l = 0; l < s.length; l++)
|
|
71
72
|
s[l].disabled = !1, s[l].tag === m && (s[l].disabled = !0);
|
|
72
|
-
$(s),
|
|
73
|
-
},
|
|
73
|
+
$(s), L(m);
|
|
74
|
+
}, g = [{
|
|
74
75
|
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/split_vertical.svg`,
|
|
75
76
|
onClick: () => u("vertical"),
|
|
76
77
|
disabled: !0,
|
|
@@ -94,46 +95,47 @@ function et(i) {
|
|
|
94
95
|
dictionaryField: "master_detail_layout.no_split",
|
|
95
96
|
tag: "none",
|
|
96
97
|
className: "splitactions"
|
|
97
|
-
}],
|
|
98
|
-
|
|
98
|
+
}], C = N(() => {
|
|
99
|
+
_.current?.openModal({
|
|
99
100
|
title: "master_detail_layout.view_detail",
|
|
100
101
|
initialWidth: 500,
|
|
101
102
|
initialHeigth: 680,
|
|
102
|
-
contentComponent:
|
|
103
|
+
contentComponent: n,
|
|
103
104
|
actions: void 0
|
|
104
105
|
});
|
|
105
|
-
}, [
|
|
106
|
+
}, [n]), h = p(() => ({
|
|
106
107
|
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/view_detail.svg`,
|
|
107
|
-
onClick:
|
|
108
|
+
onClick: C,
|
|
108
109
|
disabled: !1,
|
|
109
110
|
visibility: "allways",
|
|
110
111
|
dictionaryField: "master_detail_layout.view_detail",
|
|
111
112
|
tag: "none",
|
|
112
113
|
className: "",
|
|
113
|
-
component:
|
|
114
|
-
}), [a,
|
|
115
|
-
return /* @__PURE__ */ r(
|
|
116
|
-
children: /* @__PURE__ */ r(
|
|
117
|
-
ref:
|
|
114
|
+
component: K
|
|
115
|
+
}), [a, C]), [D, $] = v(g), F = p(() => O(D, y, h, d), [D, y, d, h]), I = p(() => f.concat(W()), [f]);
|
|
116
|
+
return /* @__PURE__ */ r(J, {
|
|
117
|
+
children: /* @__PURE__ */ r(j, {
|
|
118
|
+
ref: _,
|
|
118
119
|
moduleId: o,
|
|
119
120
|
moduleNameField: e,
|
|
120
|
-
urlIcon:
|
|
121
|
+
urlIcon: M,
|
|
121
122
|
moduleActions: F,
|
|
122
|
-
privileges:
|
|
123
|
-
skeletonFlags:
|
|
123
|
+
privileges: k,
|
|
124
|
+
skeletonFlags: A,
|
|
125
|
+
currentLang: S,
|
|
124
126
|
componentsDictionary: I,
|
|
125
|
-
breadcrumbLinks:
|
|
126
|
-
children: /* @__PURE__ */ r(
|
|
127
|
-
splitPosition: d ?
|
|
128
|
-
firstPart:
|
|
129
|
-
secondPart:
|
|
127
|
+
breadcrumbLinks: b,
|
|
128
|
+
children: /* @__PURE__ */ r(B, {
|
|
129
|
+
splitPosition: d ? w : "none",
|
|
130
|
+
firstPart: t,
|
|
131
|
+
secondPart: n
|
|
130
132
|
})
|
|
131
133
|
})
|
|
132
134
|
});
|
|
133
135
|
}
|
|
134
136
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
G as M,
|
|
138
|
+
nt as a,
|
|
139
|
+
et as d,
|
|
140
|
+
W as g
|
|
139
141
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { createContext as
|
|
1
|
+
import { Icon as T, Breadcrumbs as L, BoxIcon as D, MenuActions as N, useModal as R, ModalProvider as $, getModalDialogComponentsDictionary as F } from "@m4l/components";
|
|
2
|
+
import { createContext as P, useState as y, useMemo as f, forwardRef as x, useRef as M, useImperativeHandle as b } from "react";
|
|
3
3
|
import { styled as s } from "@mui/material/styles";
|
|
4
|
-
import { useModuleDictionary as
|
|
5
|
-
import { Skeleton as d, Typography as
|
|
6
|
-
import { useResponsiveDesktop as
|
|
7
|
-
import { jsxs as p, jsx as i, Fragment as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
4
|
+
import { useModuleDictionary as S, useModuleSkeleton as _, FlagsProvider as A, ModuleDictionaryProvider as B, ModuleSkeletonProvider as H, ModulePrivilegesProvider as G } from "@m4l/core";
|
|
5
|
+
import { Skeleton as d, Typography as j, IconButton as O } from "@mui/material";
|
|
6
|
+
import { useResponsiveDesktop as w } from "@m4l/graphics";
|
|
7
|
+
import { jsxs as p, jsx as i, Fragment as W } from "react/jsx-runtime";
|
|
8
|
+
import { u as z } from "../../hooks/useModule/index.096d7d13.js";
|
|
9
|
+
const q = s("div")(() => ({
|
|
10
10
|
display: "flex",
|
|
11
11
|
flexDirection: "column",
|
|
12
12
|
position: "absolute",
|
|
@@ -16,7 +16,7 @@ const z = s("div")(() => ({
|
|
|
16
16
|
top: "0px",
|
|
17
17
|
bottom: "0px",
|
|
18
18
|
overflow: "hidden"
|
|
19
|
-
})),
|
|
19
|
+
})), K = s("div")(({
|
|
20
20
|
theme: e
|
|
21
21
|
}) => ({
|
|
22
22
|
display: "flex",
|
|
@@ -25,7 +25,7 @@ const z = s("div")(() => ({
|
|
|
25
25
|
justifyContent: "center",
|
|
26
26
|
flexGrow: "1",
|
|
27
27
|
overflow: "hidden"
|
|
28
|
-
})),
|
|
28
|
+
})), E = s("div")(({
|
|
29
29
|
theme: e
|
|
30
30
|
}) => ({
|
|
31
31
|
display: "flex",
|
|
@@ -52,7 +52,7 @@ const z = s("div")(() => ({
|
|
|
52
52
|
width: "20px",
|
|
53
53
|
height: "20px"
|
|
54
54
|
}
|
|
55
|
-
})),
|
|
55
|
+
})), J = s("div")(({
|
|
56
56
|
theme: e
|
|
57
57
|
}) => ({
|
|
58
58
|
display: "flex",
|
|
@@ -60,7 +60,7 @@ const z = s("div")(() => ({
|
|
|
60
60
|
padding: "0 0",
|
|
61
61
|
borderBottom: `1px solid ${e.palette.divider}`,
|
|
62
62
|
minHeight: "60px"
|
|
63
|
-
})),
|
|
63
|
+
})), Q = s("div")(({
|
|
64
64
|
theme: e
|
|
65
65
|
}) => ({
|
|
66
66
|
display: "grid",
|
|
@@ -72,7 +72,7 @@ const z = s("div")(() => ({
|
|
|
72
72
|
[e.breakpoints.up("sm")]: {
|
|
73
73
|
gridTemplateColumns: "repeat(3, auto)"
|
|
74
74
|
}
|
|
75
|
-
})),
|
|
75
|
+
})), U = s("div")(({
|
|
76
76
|
theme: e
|
|
77
77
|
}) => ({
|
|
78
78
|
display: "grid",
|
|
@@ -81,7 +81,7 @@ const z = s("div")(() => ({
|
|
|
81
81
|
alignItems: "center",
|
|
82
82
|
width: "auto",
|
|
83
83
|
height: "auto"
|
|
84
|
-
})),
|
|
84
|
+
})), V = s("div")(({
|
|
85
85
|
theme: e
|
|
86
86
|
}) => ({
|
|
87
87
|
display: "none",
|
|
@@ -93,14 +93,14 @@ const z = s("div")(() => ({
|
|
|
93
93
|
[e.breakpoints.up("sm")]: {
|
|
94
94
|
display: "flex"
|
|
95
95
|
}
|
|
96
|
-
})),
|
|
96
|
+
})), X = s("div")(({
|
|
97
97
|
theme: e
|
|
98
98
|
}) => ({
|
|
99
99
|
display: "grid",
|
|
100
100
|
alignItems: "center",
|
|
101
101
|
gridTemplateColumns: "repeat(3, auto)",
|
|
102
102
|
gridGap: e.spacing(2)
|
|
103
|
-
})),
|
|
103
|
+
})), Y = s("div")(({
|
|
104
104
|
theme: e
|
|
105
105
|
}) => ({
|
|
106
106
|
display: "grid",
|
|
@@ -113,12 +113,12 @@ const z = s("div")(() => ({
|
|
|
113
113
|
gridGap: e.spacing(2)
|
|
114
114
|
}
|
|
115
115
|
}));
|
|
116
|
-
function
|
|
117
|
-
const e =
|
|
118
|
-
return /* @__PURE__ */ p(
|
|
116
|
+
function Z() {
|
|
117
|
+
const e = w();
|
|
118
|
+
return /* @__PURE__ */ p(J, {
|
|
119
119
|
id: "HeaderSkeleton",
|
|
120
|
-
children: [/* @__PURE__ */ p(
|
|
121
|
-
children: [/* @__PURE__ */ p(
|
|
120
|
+
children: [/* @__PURE__ */ p(Q, {
|
|
121
|
+
children: [/* @__PURE__ */ p(U, {
|
|
122
122
|
children: [/* @__PURE__ */ i(d, {
|
|
123
123
|
variant: "circular",
|
|
124
124
|
width: 24,
|
|
@@ -128,7 +128,7 @@ function Y() {
|
|
|
128
128
|
width: 120,
|
|
129
129
|
height: 14
|
|
130
130
|
})]
|
|
131
|
-
}), /* @__PURE__ */ i(
|
|
131
|
+
}), /* @__PURE__ */ i(V, {}), /* @__PURE__ */ p(X, {
|
|
132
132
|
children: [/* @__PURE__ */ i(d, {
|
|
133
133
|
variant: "text",
|
|
134
134
|
width: 68,
|
|
@@ -143,8 +143,8 @@ function Y() {
|
|
|
143
143
|
height: 14
|
|
144
144
|
})]
|
|
145
145
|
})]
|
|
146
|
-
}), /* @__PURE__ */ i(
|
|
147
|
-
children: e ? /* @__PURE__ */ p(
|
|
146
|
+
}), /* @__PURE__ */ i(Y, {
|
|
147
|
+
children: e ? /* @__PURE__ */ p(W, {
|
|
148
148
|
children: [/* @__PURE__ */ i(d, {
|
|
149
149
|
variant: "circular",
|
|
150
150
|
width: 24,
|
|
@@ -166,23 +166,23 @@ function Y() {
|
|
|
166
166
|
})]
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
function
|
|
169
|
+
const ee = P(null);
|
|
170
|
+
function ie(e) {
|
|
171
171
|
const {
|
|
172
172
|
children: n,
|
|
173
173
|
initialModuleActions: t,
|
|
174
174
|
moduleId: o,
|
|
175
175
|
moduleNameField: a,
|
|
176
176
|
urlIcon: c,
|
|
177
|
-
breadcrumbLinks:
|
|
178
|
-
} = e, [l] =
|
|
177
|
+
breadcrumbLinks: g
|
|
178
|
+
} = e, [l] = y(() => ({
|
|
179
179
|
moduleId: o,
|
|
180
180
|
urlIcon: c,
|
|
181
181
|
moduleNameField: a,
|
|
182
182
|
dictionary: void 0,
|
|
183
|
-
breadcrumbLinks:
|
|
184
|
-
})), [u, r] =
|
|
185
|
-
return /* @__PURE__ */ i(
|
|
183
|
+
breadcrumbLinks: g
|
|
184
|
+
})), [u, r] = y([]), m = f(() => t.concat(u), [t, u]);
|
|
185
|
+
return /* @__PURE__ */ i(ee.Provider, {
|
|
186
186
|
value: {
|
|
187
187
|
moduleActions: m,
|
|
188
188
|
dynamicActions: u,
|
|
@@ -195,33 +195,33 @@ function ee(e) {
|
|
|
195
195
|
children: n
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function te(e, n) {
|
|
199
199
|
let t = [...n.filter((o) => o.visibility !== "allways")];
|
|
200
200
|
return e !== void 0 && e && (t = t.filter((o) => o.visibility === "normal")), t;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function oe(e, n) {
|
|
203
203
|
let t = [];
|
|
204
204
|
return e !== void 0 && e && (t = t.concat(n.filter((o) => o.visibility === "main"))), t = t.concat(n.filter((o) => o.visibility === "allways")), t;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ne() {
|
|
207
207
|
const {
|
|
208
208
|
moduleActions: e,
|
|
209
209
|
moduleNameField: n,
|
|
210
210
|
breadcrumbLinks: t,
|
|
211
211
|
urlIcon: o
|
|
212
|
-
} =
|
|
212
|
+
} = z(), {
|
|
213
213
|
getLabel: a
|
|
214
|
-
} =
|
|
215
|
-
() =>
|
|
214
|
+
} = S(), c = w(), g = _(), l = f(
|
|
215
|
+
() => te(c, e),
|
|
216
216
|
[e, c]
|
|
217
|
-
), u =
|
|
218
|
-
return
|
|
217
|
+
), u = f(() => oe(c, e), [e, c]);
|
|
218
|
+
return g ? /* @__PURE__ */ i(Z, {}) : /* @__PURE__ */ p(E, {
|
|
219
219
|
id: "Header",
|
|
220
|
-
children: [/* @__PURE__ */ i(
|
|
220
|
+
children: [/* @__PURE__ */ i(T, {
|
|
221
221
|
src: o,
|
|
222
222
|
bgColor: "primary.main",
|
|
223
223
|
size: "24px"
|
|
224
|
-
}), /* @__PURE__ */ i(
|
|
224
|
+
}), /* @__PURE__ */ i(j, {
|
|
225
225
|
variant: "h5",
|
|
226
226
|
sx: {
|
|
227
227
|
maxWidth: 260,
|
|
@@ -233,19 +233,19 @@ function oe() {
|
|
|
233
233
|
textOverflow: "ellipsis"
|
|
234
234
|
},
|
|
235
235
|
children: a(n)
|
|
236
|
-
}), /* @__PURE__ */ i(
|
|
236
|
+
}), /* @__PURE__ */ i(L, {
|
|
237
237
|
links: t
|
|
238
238
|
}), u.map((r, m) => {
|
|
239
|
-
const
|
|
239
|
+
const h = a(r.dictionaryField);
|
|
240
240
|
return r.component ? /* @__PURE__ */ i(r.component, {
|
|
241
|
-
description:
|
|
241
|
+
description: h,
|
|
242
242
|
onClick: r.onClick
|
|
243
|
-
}, `main_action_${m}`) : /* @__PURE__ */ i(
|
|
243
|
+
}, `main_action_${m}`) : /* @__PURE__ */ i(O, {
|
|
244
244
|
className: r.className,
|
|
245
245
|
onClick: r.onClick,
|
|
246
|
-
"aria-label": `${
|
|
246
|
+
"aria-label": `${h}`,
|
|
247
247
|
disabled: r.disabled,
|
|
248
|
-
children: /* @__PURE__ */ i(
|
|
248
|
+
children: /* @__PURE__ */ i(D, {
|
|
249
249
|
src: r.urlIcon,
|
|
250
250
|
sx: {
|
|
251
251
|
width: 18,
|
|
@@ -253,7 +253,7 @@ function oe() {
|
|
|
253
253
|
}
|
|
254
254
|
})
|
|
255
255
|
}, `main_action_${m}`);
|
|
256
|
-
}), l.length > 0 && /* @__PURE__ */ i(
|
|
256
|
+
}), l.length > 0 && /* @__PURE__ */ i(N, {
|
|
257
257
|
arrowType: "right-top",
|
|
258
258
|
marginTop: "11px",
|
|
259
259
|
anchorOrigin: {
|
|
@@ -268,61 +268,63 @@ function oe() {
|
|
|
268
268
|
})]
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
const
|
|
271
|
+
const I = x((e, n) => {
|
|
272
272
|
const {
|
|
273
273
|
children: t
|
|
274
274
|
} = e, {
|
|
275
275
|
openModal: o
|
|
276
|
-
} =
|
|
277
|
-
return
|
|
276
|
+
} = R(), a = M(null);
|
|
277
|
+
return b(n, () => ({
|
|
278
278
|
openModal: o,
|
|
279
279
|
current: a.current
|
|
280
|
-
})), /* @__PURE__ */ p(
|
|
280
|
+
})), /* @__PURE__ */ p(q, {
|
|
281
281
|
id: "WrapperInnerModule",
|
|
282
282
|
className: "m4l_module_layout",
|
|
283
283
|
ref: a,
|
|
284
|
-
children: [/* @__PURE__ */ i(
|
|
284
|
+
children: [/* @__PURE__ */ i(ne, {}), /* @__PURE__ */ i(K, {
|
|
285
285
|
id: "ModuleContent",
|
|
286
286
|
children: t
|
|
287
287
|
})]
|
|
288
288
|
});
|
|
289
289
|
});
|
|
290
|
-
|
|
291
|
-
const
|
|
290
|
+
I.displayName = "InnerModule";
|
|
291
|
+
const re = x((e, n) => {
|
|
292
292
|
const {
|
|
293
293
|
moduleId: t,
|
|
294
294
|
moduleNameField: o = "module_name",
|
|
295
295
|
moduleActions: a,
|
|
296
296
|
urlIcon: c,
|
|
297
|
-
children:
|
|
297
|
+
children: g,
|
|
298
298
|
componentsDictionary: l,
|
|
299
299
|
breadcrumbLinks: u,
|
|
300
300
|
privileges: r,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
currentLang: m,
|
|
302
|
+
skeletonFlags: h
|
|
303
|
+
} = e, v = M(null), k = (C) => {
|
|
304
|
+
v.current?.openModal(C);
|
|
304
305
|
};
|
|
305
|
-
return
|
|
306
|
-
openModal:
|
|
307
|
-
current:
|
|
308
|
-
})), /* @__PURE__ */ i(
|
|
309
|
-
children: /* @__PURE__ */ i(
|
|
306
|
+
return b(n, () => ({
|
|
307
|
+
openModal: k,
|
|
308
|
+
current: v.current
|
|
309
|
+
})), /* @__PURE__ */ i(A, {
|
|
310
|
+
children: /* @__PURE__ */ i(B, {
|
|
310
311
|
moduleId: t,
|
|
311
312
|
componentsDictionary: l,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
currentLang: m,
|
|
314
|
+
children: /* @__PURE__ */ i(H, {
|
|
315
|
+
flags: h,
|
|
316
|
+
children: /* @__PURE__ */ i(G, {
|
|
315
317
|
queryPrivileges: r,
|
|
316
|
-
children: /* @__PURE__ */ i(
|
|
318
|
+
children: /* @__PURE__ */ i(ie, {
|
|
317
319
|
moduleId: t,
|
|
318
320
|
urlIcon: c,
|
|
319
321
|
moduleNameField: o,
|
|
320
322
|
initialModuleActions: a,
|
|
321
323
|
breadcrumbLinks: u,
|
|
322
|
-
children: /* @__PURE__ */ i(
|
|
323
|
-
children: /* @__PURE__ */ i(
|
|
324
|
-
ref:
|
|
325
|
-
children:
|
|
324
|
+
children: /* @__PURE__ */ i($, {
|
|
325
|
+
children: /* @__PURE__ */ i(I, {
|
|
326
|
+
ref: v,
|
|
327
|
+
children: g
|
|
326
328
|
})
|
|
327
329
|
})
|
|
328
330
|
})
|
|
@@ -331,16 +333,16 @@ const ne = y((e, n) => {
|
|
|
331
333
|
})
|
|
332
334
|
});
|
|
333
335
|
});
|
|
334
|
-
|
|
335
|
-
function
|
|
336
|
-
return ["module_layout"].concat(
|
|
336
|
+
re.displayName = "ModuleLayout";
|
|
337
|
+
function ge() {
|
|
338
|
+
return ["module_layout"].concat(F());
|
|
337
339
|
}
|
|
338
|
-
const
|
|
340
|
+
const he = {
|
|
339
341
|
module_layout: {}
|
|
340
342
|
};
|
|
341
343
|
export {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
ee as M,
|
|
345
|
+
re as a,
|
|
346
|
+
he as d,
|
|
347
|
+
ge as g
|
|
346
348
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useResponsive as h, useLocales as N } from "@m4l/graphics";
|
|
2
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
|
|
3
|
+
import { useModuleDictionary as m, useBase as g, useEnvironment as S, BaseProvider as b, FlagsProvider as I, ModuleDictionaryProvider as F, ModuleSkeletonProvider as A } from "@m4l/core";
|
|
4
4
|
import { styled as t } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
6
6
|
const C = t("div")(({
|
|
@@ -160,23 +160,21 @@ const C = t("div")(({
|
|
|
160
160
|
} = o, {
|
|
161
161
|
host_static_assets: s,
|
|
162
162
|
environment_assets: d
|
|
163
|
-
} =
|
|
164
|
-
|
|
165
|
-
} = N(), 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;
|
|
166
|
-
return c.findIndex((D) => D === "dictionary_loaded") < 0 && c.push("dictionary_loaded"), /* @__PURE__ */ e(I, {
|
|
163
|
+
} = S(), _ = 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(b, {
|
|
167
165
|
value: {
|
|
168
166
|
subtitle: y,
|
|
169
167
|
companyLogoSmallUrl: M,
|
|
170
168
|
companyLogoNormalUrl: w,
|
|
171
169
|
moduleIlustrationUrl: U
|
|
172
170
|
},
|
|
173
|
-
children: /* @__PURE__ */ e(
|
|
174
|
-
children: /* @__PURE__ */ e(
|
|
171
|
+
children: /* @__PURE__ */ e(I, {
|
|
172
|
+
children: /* @__PURE__ */ e(F, {
|
|
175
173
|
isAuth: !1,
|
|
176
174
|
moduleId: n,
|
|
177
175
|
moduleNameField: l,
|
|
178
176
|
componentsDictionary: a,
|
|
179
|
-
currentLang: _
|
|
177
|
+
currentLang: _,
|
|
180
178
|
children: /* @__PURE__ */ e(A, {
|
|
181
179
|
flags: c,
|
|
182
180
|
children: /* @__PURE__ */ e(z, {
|