@m4l/layouts 0.1.8 → 0.1.9
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.32172709.js +6 -0
- package/hooks/useModule/index.5ec82e11.js +11 -0
- package/index.js +18 -5
- package/layouts/MasterDetailLayout/index.93d98363.js +139 -0
- package/layouts/ModuleLayout/index.76b867fc.js +356 -0
- package/layouts/NoAuthModuleLayout/ModuleWrapper/styles.d.ts +1 -1
- package/layouts/NoAuthModuleLayout/index.5050b988.js +178 -0
- package/package.json +1 -1
- package/hooks/useMasterDetail/index.js +0 -4
- package/hooks/useModule/index.js +0 -9
- package/layouts/MasterDetailLayout/index.js +0 -160
- package/layouts/ModuleLayout/index.js +0 -390
- package/layouts/NoAuthModuleLayout/index.js +0 -192
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext as o } from "react";
|
|
2
|
+
import { M as t } from "../../layouts/ModuleLayout/index.76b867fc.js";
|
|
3
|
+
const n = () => {
|
|
4
|
+
const e = o(t);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("useModule context must be use inside ModuleContext");
|
|
7
|
+
return e;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as u
|
|
11
|
+
};
|
package/index.js
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as p, d as l, g as y } from "./layouts/ModuleLayout/index.76b867fc.js";
|
|
2
2
|
import "@m4l/components";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
|
|
5
|
+
import { a as n, d as M, g as D } from "./layouts/MasterDetailLayout/index.93d98363.js";
|
|
6
6
|
import "@m4l/graphics";
|
|
7
7
|
import "@mui/material";
|
|
8
8
|
import "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { N as L, d as c, g } from "./layouts/NoAuthModuleLayout/index.5050b988.js";
|
|
10
|
+
import { u as N } from "./hooks/useMasterDetail/index.32172709.js";
|
|
11
|
+
import { u as A } from "./hooks/useModule/index.5ec82e11.js";
|
|
12
12
|
import "@mui/material/styles";
|
|
13
|
+
export {
|
|
14
|
+
n as MasterDetailLayout,
|
|
15
|
+
p as ModuleLayout,
|
|
16
|
+
L as NoAuthModuleLayout,
|
|
17
|
+
M as defaultMasterDetailDictionary,
|
|
18
|
+
l as defaultModuleLayoutDictionary,
|
|
19
|
+
c as defaultNoAuthModuleLayoutDictionary,
|
|
20
|
+
D as getMasterDetailLayoutComponentsDictionary,
|
|
21
|
+
y as getModuleLayoutComponentsDictionary,
|
|
22
|
+
g as getNoAuthModuleLayoutComponentsDictionary,
|
|
23
|
+
N as useMasterDetail,
|
|
24
|
+
A as useModule
|
|
25
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { createContext as L, useState as v, useRef as P, useCallback as z, useMemo as p } from "react";
|
|
2
|
+
import { voidFunction as N, useEnvironment as x } from "@m4l/core";
|
|
3
|
+
import { SplitLayout as R } from "@m4l/components";
|
|
4
|
+
import { g as B, a as V } from "../ModuleLayout/index.76b867fc.js";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import { useResponsiveDesktop as j } from "@m4l/graphics";
|
|
7
|
+
import { Button as E } from "@mui/material";
|
|
8
|
+
import { u as H } from "../../hooks/useMasterDetail/index.32172709.js";
|
|
9
|
+
function T() {
|
|
10
|
+
return ["master_detail_layout"].concat(B());
|
|
11
|
+
}
|
|
12
|
+
const ot = {
|
|
13
|
+
master_detail_layout: {
|
|
14
|
+
split_vertical: "Split vertically",
|
|
15
|
+
split_horizontal: "Split horizontally",
|
|
16
|
+
no_split: "No split",
|
|
17
|
+
view_detail: "View detail"
|
|
18
|
+
}
|
|
19
|
+
}, W = {
|
|
20
|
+
masterSelection: void 0,
|
|
21
|
+
onChangeMasterSelection: N
|
|
22
|
+
}, q = L(W);
|
|
23
|
+
function G(i) {
|
|
24
|
+
const {
|
|
25
|
+
children: o
|
|
26
|
+
} = i, [e, t] = v(void 0);
|
|
27
|
+
return /* @__PURE__ */ r(q.Provider, {
|
|
28
|
+
value: {
|
|
29
|
+
masterSelection: e,
|
|
30
|
+
onChangeMasterSelection: t
|
|
31
|
+
},
|
|
32
|
+
children: o
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function J(i) {
|
|
36
|
+
const {
|
|
37
|
+
masterSelection: o
|
|
38
|
+
} = H(), {
|
|
39
|
+
onClick: e,
|
|
40
|
+
description: t
|
|
41
|
+
} = i;
|
|
42
|
+
return /* @__PURE__ */ r(E, {
|
|
43
|
+
onClick: e,
|
|
44
|
+
variant: "outlined",
|
|
45
|
+
disabled: o === void 0,
|
|
46
|
+
children: t
|
|
47
|
+
}, "miDetail");
|
|
48
|
+
}
|
|
49
|
+
function K(i, o, e, t) {
|
|
50
|
+
let n = t !== void 0 && t ? [...i] : [e];
|
|
51
|
+
return n = o.concat(n), n;
|
|
52
|
+
}
|
|
53
|
+
function et(i) {
|
|
54
|
+
const {
|
|
55
|
+
moduleId: o,
|
|
56
|
+
moduleNameField: e,
|
|
57
|
+
detailComponent: t,
|
|
58
|
+
moduleActions: n,
|
|
59
|
+
urlIcon: D,
|
|
60
|
+
masterComponent: M,
|
|
61
|
+
componentsDictionary: y,
|
|
62
|
+
breadcrumbLinks: S,
|
|
63
|
+
privileges: b,
|
|
64
|
+
skeletonFlags: k
|
|
65
|
+
} = i, {
|
|
66
|
+
host_static_assets: c,
|
|
67
|
+
environment_assets: a
|
|
68
|
+
} = x(), [A, w] = v("vertical"), d = j(), f = P(null), u = (m) => {
|
|
69
|
+
const s = [..._];
|
|
70
|
+
for (let l = 0; l < s.length; l++)
|
|
71
|
+
s[l].disabled = !1, s[l].tag === m && (s[l].disabled = !0);
|
|
72
|
+
$(s), w(m);
|
|
73
|
+
}, _ = [{
|
|
74
|
+
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/split_vertical.svg`,
|
|
75
|
+
onClick: () => u("vertical"),
|
|
76
|
+
disabled: !0,
|
|
77
|
+
visibility: "main",
|
|
78
|
+
dictionaryField: "master_detail_layout.split_vertical",
|
|
79
|
+
tag: "vertical",
|
|
80
|
+
className: "splitactions"
|
|
81
|
+
}, {
|
|
82
|
+
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/split_horizontal.svg`,
|
|
83
|
+
onClick: () => u("horizontal"),
|
|
84
|
+
disabled: !1,
|
|
85
|
+
visibility: "main",
|
|
86
|
+
dictionaryField: "master_detail_layout.split_horizontal",
|
|
87
|
+
tag: "horizontal",
|
|
88
|
+
className: "splitactions"
|
|
89
|
+
}, {
|
|
90
|
+
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/no_split.svg`,
|
|
91
|
+
onClick: () => u("none"),
|
|
92
|
+
disabled: !1,
|
|
93
|
+
visibility: "main",
|
|
94
|
+
dictionaryField: "master_detail_layout.no_split",
|
|
95
|
+
tag: "none",
|
|
96
|
+
className: "splitactions"
|
|
97
|
+
}], g = z(() => {
|
|
98
|
+
f.current?.openModal({
|
|
99
|
+
title: "master_detail_layout.view_detail",
|
|
100
|
+
initialWidth: 500,
|
|
101
|
+
initialHeigth: 680,
|
|
102
|
+
contentComponent: t,
|
|
103
|
+
actions: void 0
|
|
104
|
+
});
|
|
105
|
+
}, [t]), C = p(() => ({
|
|
106
|
+
urlIcon: `${c}/${a}/frontend/components/masterdetaillayout/assets/icons/view_detail.svg`,
|
|
107
|
+
onClick: g,
|
|
108
|
+
disabled: !1,
|
|
109
|
+
visibility: "allways",
|
|
110
|
+
dictionaryField: "master_detail_layout.view_detail",
|
|
111
|
+
tag: "none",
|
|
112
|
+
className: "",
|
|
113
|
+
component: J
|
|
114
|
+
}), [a, g]), [h, $] = v(_), F = p(() => K(h, n, C, d), [h, n, d, C]), I = p(() => y.concat(T()), [y]);
|
|
115
|
+
return /* @__PURE__ */ r(G, {
|
|
116
|
+
children: /* @__PURE__ */ r(V, {
|
|
117
|
+
ref: f,
|
|
118
|
+
moduleId: o,
|
|
119
|
+
moduleNameField: e,
|
|
120
|
+
urlIcon: D,
|
|
121
|
+
moduleActions: F,
|
|
122
|
+
privileges: b,
|
|
123
|
+
skeletonFlags: k,
|
|
124
|
+
componentsDictionary: I,
|
|
125
|
+
breadcrumbLinks: S,
|
|
126
|
+
children: /* @__PURE__ */ r(R, {
|
|
127
|
+
splitPosition: d ? A : "none",
|
|
128
|
+
firstPart: M,
|
|
129
|
+
secondPart: t
|
|
130
|
+
})
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
q as M,
|
|
136
|
+
et as a,
|
|
137
|
+
ot as d,
|
|
138
|
+
T as g
|
|
139
|
+
};
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { BoxIcon as y, Breadcrumbs as T, MenuActions as F, useModal as A, ModalProvider as D, getModalDialogComponentsDictionary as L } from "@m4l/components";
|
|
2
|
+
import { createContext as $, useState as x, useMemo as f, forwardRef as M, useRef as b, useImperativeHandle as w } from "react";
|
|
3
|
+
import { styled as d, useTheme as N } from "@mui/material/styles";
|
|
4
|
+
import { voidFunction as P, useModuleDictionary as R, useFlagsPresent as _, FlagsProvider as B, ModuleDictionaryProvider as S, ModuleSkeletonProvider as G, ModulePrivilegesProvider as H } from "@m4l/core";
|
|
5
|
+
import { Skeleton as l, Typography as O, IconButton as W } from "@mui/material";
|
|
6
|
+
import { useResponsiveDesktop as k } from "@m4l/graphics";
|
|
7
|
+
import { jsxs as p, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
8
|
+
import { u as z } from "../../hooks/useModule/index.5ec82e11.js";
|
|
9
|
+
const q = d("div")(() => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
position: "absolute",
|
|
13
|
+
margin: "12px",
|
|
14
|
+
left: "0px",
|
|
15
|
+
right: "0px",
|
|
16
|
+
top: "0px",
|
|
17
|
+
bottom: "0px",
|
|
18
|
+
overflow: "hidden"
|
|
19
|
+
})), K = d("div")(({
|
|
20
|
+
theme: i
|
|
21
|
+
}) => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
position: "relative",
|
|
24
|
+
marginTop: i.spacing(2),
|
|
25
|
+
flexGrow: "1",
|
|
26
|
+
overflow: "hidden"
|
|
27
|
+
})), E = d("div")(({
|
|
28
|
+
theme: i
|
|
29
|
+
}) => ({
|
|
30
|
+
display: "flex",
|
|
31
|
+
position: "relative",
|
|
32
|
+
paddingTop: i.spacing(2),
|
|
33
|
+
paddingBottom: i.spacing(2),
|
|
34
|
+
borderBottom: `1px solid ${i.palette.divider}`,
|
|
35
|
+
height: "72px",
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
" > span": {
|
|
39
|
+
marginRight: "12px"
|
|
40
|
+
},
|
|
41
|
+
"& > h5": {
|
|
42
|
+
paddingRight: i.spacing(3),
|
|
43
|
+
borderRight: `1px solid ${i.palette.divider}`
|
|
44
|
+
},
|
|
45
|
+
" > nav": {
|
|
46
|
+
marginRight: "12px",
|
|
47
|
+
flexGrow: 1
|
|
48
|
+
},
|
|
49
|
+
"& .splitactions.Mui-disabled": {
|
|
50
|
+
color: i.palette.primary.main
|
|
51
|
+
},
|
|
52
|
+
"& svg ": {
|
|
53
|
+
width: "20px",
|
|
54
|
+
height: "20px"
|
|
55
|
+
}
|
|
56
|
+
})), J = d("div")(({
|
|
57
|
+
theme: i
|
|
58
|
+
}) => ({
|
|
59
|
+
display: "flex",
|
|
60
|
+
justifyContent: "space-between",
|
|
61
|
+
padding: `${i.spacing(2)} 0`,
|
|
62
|
+
borderBottom: `1px solid ${i.palette.divider}`,
|
|
63
|
+
height: "auto",
|
|
64
|
+
[i.breakpoints.up("sm")]: {
|
|
65
|
+
height: i.spacing(9)
|
|
66
|
+
}
|
|
67
|
+
})), Q = d("div")(({
|
|
68
|
+
theme: i
|
|
69
|
+
}) => ({
|
|
70
|
+
display: "grid",
|
|
71
|
+
gridTemplateColumns: "auto",
|
|
72
|
+
gridGap: i.spacing(1.75),
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
width: "auto",
|
|
75
|
+
height: "auto",
|
|
76
|
+
[i.breakpoints.up("sm")]: {
|
|
77
|
+
gridTemplateColumns: "repeat(3, auto)"
|
|
78
|
+
}
|
|
79
|
+
})), U = d("div")(({
|
|
80
|
+
theme: i
|
|
81
|
+
}) => ({
|
|
82
|
+
display: "grid",
|
|
83
|
+
gridTemplateColumns: `${i.spacing(3)} auto`,
|
|
84
|
+
gridGap: i.spacing(2),
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
width: "auto",
|
|
87
|
+
height: "auto"
|
|
88
|
+
})), V = d("div")(({
|
|
89
|
+
theme: i
|
|
90
|
+
}) => ({
|
|
91
|
+
display: "none",
|
|
92
|
+
alignItems: "center",
|
|
93
|
+
width: "1px",
|
|
94
|
+
background: i.palette.divider,
|
|
95
|
+
height: "100%",
|
|
96
|
+
margin: `0 ${i.spacing(2)}`,
|
|
97
|
+
[i.breakpoints.up("sm")]: {
|
|
98
|
+
display: "flex"
|
|
99
|
+
}
|
|
100
|
+
})), X = d("div")(({
|
|
101
|
+
theme: i
|
|
102
|
+
}) => ({
|
|
103
|
+
display: "grid",
|
|
104
|
+
alignItems: "center",
|
|
105
|
+
gridTemplateColumns: "repeat(3, auto)",
|
|
106
|
+
gridGap: i.spacing(2)
|
|
107
|
+
})), Y = d("div")(({
|
|
108
|
+
theme: i
|
|
109
|
+
}) => ({
|
|
110
|
+
display: "grid",
|
|
111
|
+
gridTemplateColumns: "auto",
|
|
112
|
+
alignItems: "center",
|
|
113
|
+
width: "auto",
|
|
114
|
+
height: "auto",
|
|
115
|
+
[i.breakpoints.up("sm")]: {
|
|
116
|
+
gridTemplateColumns: `repeat(3, ${i.spacing(3)})`,
|
|
117
|
+
gridGap: i.spacing(2)
|
|
118
|
+
}
|
|
119
|
+
}));
|
|
120
|
+
function Z() {
|
|
121
|
+
const i = k();
|
|
122
|
+
return /* @__PURE__ */ p(J, {
|
|
123
|
+
children: [/* @__PURE__ */ p(Q, {
|
|
124
|
+
children: [/* @__PURE__ */ p(U, {
|
|
125
|
+
children: [/* @__PURE__ */ e(l, {
|
|
126
|
+
variant: "circular",
|
|
127
|
+
width: 24,
|
|
128
|
+
height: 24
|
|
129
|
+
}), /* @__PURE__ */ e(l, {
|
|
130
|
+
variant: "text",
|
|
131
|
+
width: 120,
|
|
132
|
+
height: 14
|
|
133
|
+
})]
|
|
134
|
+
}), /* @__PURE__ */ e(V, {}), /* @__PURE__ */ p(X, {
|
|
135
|
+
children: [/* @__PURE__ */ e(l, {
|
|
136
|
+
variant: "text",
|
|
137
|
+
width: 68,
|
|
138
|
+
height: 14
|
|
139
|
+
}), /* @__PURE__ */ e(l, {
|
|
140
|
+
variant: "circular",
|
|
141
|
+
width: 4,
|
|
142
|
+
height: 4
|
|
143
|
+
}), /* @__PURE__ */ e(l, {
|
|
144
|
+
variant: "text",
|
|
145
|
+
width: 68,
|
|
146
|
+
height: 14
|
|
147
|
+
})]
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ e(Y, {
|
|
150
|
+
children: i ? /* @__PURE__ */ p(j, {
|
|
151
|
+
children: [/* @__PURE__ */ e(l, {
|
|
152
|
+
variant: "circular",
|
|
153
|
+
width: 24,
|
|
154
|
+
height: 24
|
|
155
|
+
}), /* @__PURE__ */ e(l, {
|
|
156
|
+
variant: "circular",
|
|
157
|
+
width: 24,
|
|
158
|
+
height: 24
|
|
159
|
+
}), /* @__PURE__ */ e(l, {
|
|
160
|
+
variant: "circular",
|
|
161
|
+
width: 24,
|
|
162
|
+
height: 24
|
|
163
|
+
})]
|
|
164
|
+
}) : /* @__PURE__ */ e(l, {
|
|
165
|
+
variant: "circular",
|
|
166
|
+
width: 24,
|
|
167
|
+
height: 24
|
|
168
|
+
})
|
|
169
|
+
})]
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const ii = {
|
|
173
|
+
moduleId: "",
|
|
174
|
+
moduleNameField: "module_name",
|
|
175
|
+
urlIcon: "",
|
|
176
|
+
moduleActions: [],
|
|
177
|
+
dynamicActions: [],
|
|
178
|
+
setDynamicActions: P,
|
|
179
|
+
breadcrumbLinks: []
|
|
180
|
+
}, ei = $(ii);
|
|
181
|
+
function ti(i) {
|
|
182
|
+
const {
|
|
183
|
+
children: n,
|
|
184
|
+
initialModuleActions: t,
|
|
185
|
+
moduleId: o,
|
|
186
|
+
moduleNameField: a,
|
|
187
|
+
urlIcon: g,
|
|
188
|
+
breadcrumbLinks: s
|
|
189
|
+
} = i, [c] = x(() => ({
|
|
190
|
+
moduleId: o,
|
|
191
|
+
urlIcon: g,
|
|
192
|
+
moduleNameField: a,
|
|
193
|
+
dictionary: void 0,
|
|
194
|
+
breadcrumbLinks: s
|
|
195
|
+
})), [u, h] = x([]), r = f(() => t.concat(u), [t, u]);
|
|
196
|
+
return /* @__PURE__ */ e(ei.Provider, {
|
|
197
|
+
value: {
|
|
198
|
+
moduleActions: r,
|
|
199
|
+
dynamicActions: u,
|
|
200
|
+
setDynamicActions: h,
|
|
201
|
+
moduleId: c.moduleId,
|
|
202
|
+
moduleNameField: c.moduleNameField,
|
|
203
|
+
urlIcon: c.urlIcon,
|
|
204
|
+
breadcrumbLinks: c.breadcrumbLinks
|
|
205
|
+
},
|
|
206
|
+
children: n
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function oi(i, n) {
|
|
210
|
+
let t = [...n.filter((o) => o.visibility !== "allways")];
|
|
211
|
+
return i !== void 0 && i && (t = t.filter((o) => o.visibility === "normal")), t;
|
|
212
|
+
}
|
|
213
|
+
function ni(i, n) {
|
|
214
|
+
let t = [];
|
|
215
|
+
return i !== void 0 && i && (t = t.concat(n.filter((o) => o.visibility === "main"))), t = t.concat(n.filter((o) => o.visibility === "allways")), t;
|
|
216
|
+
}
|
|
217
|
+
function ri() {
|
|
218
|
+
const {
|
|
219
|
+
moduleActions: i,
|
|
220
|
+
moduleNameField: n,
|
|
221
|
+
breadcrumbLinks: t,
|
|
222
|
+
urlIcon: o
|
|
223
|
+
} = z(), {
|
|
224
|
+
getLabel: a
|
|
225
|
+
} = R(), g = N(), s = k(), c = !_(["dictionary_loaded"]), u = f(
|
|
226
|
+
() => oi(s, i),
|
|
227
|
+
[i, s]
|
|
228
|
+
), h = f(() => ni(s, i), [i, s]);
|
|
229
|
+
return c ? /* @__PURE__ */ e(Z, {}) : /* @__PURE__ */ p(E, {
|
|
230
|
+
id: "Header",
|
|
231
|
+
children: [/* @__PURE__ */ e(y, {
|
|
232
|
+
src: o,
|
|
233
|
+
sx: {
|
|
234
|
+
color: g.palette.primary.main
|
|
235
|
+
}
|
|
236
|
+
}), /* @__PURE__ */ e(O, {
|
|
237
|
+
variant: "h5",
|
|
238
|
+
sx: {
|
|
239
|
+
maxWidth: 260,
|
|
240
|
+
overflow: "hidden",
|
|
241
|
+
whiteSpace: "nowrap",
|
|
242
|
+
color: "text.primary",
|
|
243
|
+
marginRight: "24px",
|
|
244
|
+
textOverflow: "ellipsis"
|
|
245
|
+
},
|
|
246
|
+
children: a(n)
|
|
247
|
+
}), /* @__PURE__ */ e(T, {
|
|
248
|
+
links: t
|
|
249
|
+
}), h.map((r, m) => {
|
|
250
|
+
const v = a(r.dictionaryField);
|
|
251
|
+
return r.component ? /* @__PURE__ */ e(r.component, {
|
|
252
|
+
description: v,
|
|
253
|
+
onClick: r.onClick
|
|
254
|
+
}, `main_action_${m}`) : /* @__PURE__ */ e(W, {
|
|
255
|
+
className: r.className,
|
|
256
|
+
onClick: r.onClick,
|
|
257
|
+
"aria-label": `${v}`,
|
|
258
|
+
disabled: r.disabled,
|
|
259
|
+
children: /* @__PURE__ */ e(y, {
|
|
260
|
+
src: r.urlIcon,
|
|
261
|
+
sx: {
|
|
262
|
+
width: 18,
|
|
263
|
+
height: 18
|
|
264
|
+
}
|
|
265
|
+
})
|
|
266
|
+
}, `main_action_${m}`);
|
|
267
|
+
}), u.length > 0 && /* @__PURE__ */ e(F, {
|
|
268
|
+
arrow: "right-top",
|
|
269
|
+
marginTop: "-11px",
|
|
270
|
+
anchorOrigin: {
|
|
271
|
+
vertical: "top",
|
|
272
|
+
horizontal: "left"
|
|
273
|
+
},
|
|
274
|
+
transformOrigin: {
|
|
275
|
+
vertical: "top",
|
|
276
|
+
horizontal: "right"
|
|
277
|
+
},
|
|
278
|
+
menuActions: u
|
|
279
|
+
})]
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
const I = M((i, n) => {
|
|
283
|
+
const {
|
|
284
|
+
children: t
|
|
285
|
+
} = i, {
|
|
286
|
+
openModal: o
|
|
287
|
+
} = A(), a = b(null);
|
|
288
|
+
return w(n, () => ({
|
|
289
|
+
openModal: o,
|
|
290
|
+
current: a.current
|
|
291
|
+
})), /* @__PURE__ */ p(q, {
|
|
292
|
+
id: "WrapperModule",
|
|
293
|
+
ref: a,
|
|
294
|
+
children: [/* @__PURE__ */ e(ri, {}), /* @__PURE__ */ e(K, {
|
|
295
|
+
id: "ModuleContent",
|
|
296
|
+
children: t
|
|
297
|
+
})]
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
I.displayName = "Module";
|
|
301
|
+
const ai = M((i, n) => {
|
|
302
|
+
const {
|
|
303
|
+
moduleId: t,
|
|
304
|
+
moduleNameField: o = "module_name",
|
|
305
|
+
moduleActions: a,
|
|
306
|
+
urlIcon: g,
|
|
307
|
+
children: s,
|
|
308
|
+
componentsDictionary: c,
|
|
309
|
+
breadcrumbLinks: u,
|
|
310
|
+
privileges: h,
|
|
311
|
+
skeletonFlags: r
|
|
312
|
+
} = i, m = b(null), v = (C) => {
|
|
313
|
+
m.current?.openModal(C);
|
|
314
|
+
};
|
|
315
|
+
return w(n, () => ({
|
|
316
|
+
openModal: v,
|
|
317
|
+
current: m.current
|
|
318
|
+
})), /* @__PURE__ */ e(B, {
|
|
319
|
+
children: /* @__PURE__ */ e(S, {
|
|
320
|
+
moduleId: t,
|
|
321
|
+
componentsDictionary: c,
|
|
322
|
+
children: /* @__PURE__ */ e(G, {
|
|
323
|
+
flags: r,
|
|
324
|
+
children: /* @__PURE__ */ e(H, {
|
|
325
|
+
queryPrivileges: h,
|
|
326
|
+
children: /* @__PURE__ */ e(ti, {
|
|
327
|
+
moduleId: t,
|
|
328
|
+
urlIcon: g,
|
|
329
|
+
moduleNameField: o,
|
|
330
|
+
initialModuleActions: a,
|
|
331
|
+
breadcrumbLinks: u,
|
|
332
|
+
children: /* @__PURE__ */ e(D, {
|
|
333
|
+
children: /* @__PURE__ */ e(I, {
|
|
334
|
+
ref: m,
|
|
335
|
+
children: s
|
|
336
|
+
})
|
|
337
|
+
})
|
|
338
|
+
})
|
|
339
|
+
})
|
|
340
|
+
})
|
|
341
|
+
})
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
ai.displayName = "ModuleLayout";
|
|
345
|
+
function hi() {
|
|
346
|
+
return ["module_layout"].concat(L());
|
|
347
|
+
}
|
|
348
|
+
const vi = {
|
|
349
|
+
module_layout: {}
|
|
350
|
+
};
|
|
351
|
+
export {
|
|
352
|
+
ei as M,
|
|
353
|
+
ai as a,
|
|
354
|
+
vi as d,
|
|
355
|
+
hi as g
|
|
356
|
+
};
|
|
@@ -7,7 +7,7 @@ export declare const SectionStyle: import("@emotion/styled").StyledComponent<Omi
|
|
|
7
7
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
8
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "translate" | "slot" | "title" | "children" | "ref" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "elevation" | "square" | "variant" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "translate" | "slot" | "title" | "children" | "ref" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "elevation" | "square" | "variant" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
11
|
export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
12
|
export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
export declare const ModuleTitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|