@m4l/components 9.24.0-beta-feature-731-m4l-components-code-editor.8 → 9.24.1-beta-feature-731-code-editor.0
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/AppBar/AppBar.d.ts.map +1 -1
- package/components/AppBar/AppBar.js +36 -29
- package/components/AppBar/types.d.ts +2 -2
- package/components/AppBar/types.d.ts.map +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.d.ts.map +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +21 -20
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +91 -88
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.d.ts.map +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +35 -24
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts +5 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts.map +1 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js +14 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts +2 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts.map +1 -0
- package/components/MFLoader/MFLoader.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.js +39 -39
- package/components/MFLoader/types.d.ts +16 -0
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/SideBar/context/sideBarContext/index.d.ts.map +1 -1
- package/components/SideBar/context/sideBarContext/index.js +15 -14
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +2 -1
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts.map +1 -1
- package/components/SideBar/hooks/useCollapse/useCollapse.js +9 -9
- package/components/SideBar/index.d.ts +1 -1
- package/components/SideBar/index.d.ts.map +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +1 -1
- package/components/SideBar/types.d.ts +8 -1
- package/components/SideBar/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +66 -52
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +142 -141
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +372 -230
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +175 -116
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +2 -1
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +18 -17
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +4 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +33 -27
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +13 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts +0 -10
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts.map +0 -1
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js +0 -19
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts +0 -2
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/AppBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/AppBar.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAaxD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,qDAuFxC,CAAC"}
|
|
@@ -1,73 +1,80 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEnvironment as
|
|
3
|
-
import { useIsMobile as
|
|
1
|
+
import { jsxs as u, jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEnvironment as M, useModuleDictionary as S } from "@m4l/core";
|
|
3
|
+
import { useIsMobile as y } from "@m4l/graphics";
|
|
4
4
|
import { TEST_PROP_ID as m } from "../../test/constants_no_mock.js";
|
|
5
|
-
import { getComponentSlotRoot as
|
|
6
|
-
import { PATH_IMG_HAMBURGUER as
|
|
7
|
-
import { AppBarRootStyled as I, PrimarySectionStyled as N, MenuIconButtonStyled as
|
|
8
|
-
import { getNameDataTestId as
|
|
9
|
-
function
|
|
5
|
+
import { getComponentSlotRoot as P } from "../../utils/getComponentSlotRoot.js";
|
|
6
|
+
import { PATH_IMG_HAMBURGUER as R, APP_BAR_KEY as D } from "./constants.js";
|
|
7
|
+
import { AppBarRootStyled as I, PrimarySectionStyled as N, MenuIconButtonStyled as x, ContentStyled as O, EndContentStyled as L } from "./slots/AppBarSlots.js";
|
|
8
|
+
import { getNameDataTestId as g } from "./tests/utils.js";
|
|
9
|
+
function V(e, n) {
|
|
10
10
|
return n ? e("appbar.tooltip_toogle_menu") || "Open navigation menu" : "Toggle navigation sidebar";
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const K = (e) => {
|
|
13
13
|
const {
|
|
14
14
|
onToggleVisible: n,
|
|
15
|
-
onToggleAnchored:
|
|
15
|
+
onToggleAnchored: f,
|
|
16
16
|
sidebarAnchored: r,
|
|
17
|
-
children:
|
|
18
|
-
content:
|
|
17
|
+
children: h,
|
|
18
|
+
content: b,
|
|
19
19
|
endContent: i,
|
|
20
20
|
dataTestid: _,
|
|
21
21
|
orientation: l = "vertical",
|
|
22
22
|
size: s,
|
|
23
|
-
hasExpandedModule:
|
|
24
|
-
} = e, o =
|
|
23
|
+
hasExpandedModule: v = !1
|
|
24
|
+
} = e, o = y(), { host_static_assets: A, environment_assets: E } = M(), { getLabel: T } = S(), B = P(D), c = V(T, o), d = b ?? h, t = {
|
|
25
25
|
hasEndContent: !!i,
|
|
26
|
-
hasExpandedModule:
|
|
26
|
+
hasExpandedModule: v,
|
|
27
27
|
isMobile: o,
|
|
28
28
|
orientation: l,
|
|
29
29
|
sidebarAnchored: r,
|
|
30
30
|
size: s
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
function C(p) {
|
|
33
|
+
if (o) {
|
|
34
|
+
p.preventDefault(), p.stopPropagation(), n();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
f();
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ u(
|
|
33
40
|
I,
|
|
34
41
|
{
|
|
35
42
|
className: B,
|
|
36
43
|
"data-orientation": l,
|
|
37
44
|
ownerState: t,
|
|
38
|
-
...process.env.NODE_ENV !== "production" ? { [m]:
|
|
45
|
+
...process.env.NODE_ENV !== "production" ? { [m]: g(_) } : {},
|
|
39
46
|
children: [
|
|
40
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ u(N, { ownerState: t, children: [
|
|
41
48
|
/* @__PURE__ */ a(
|
|
42
|
-
|
|
49
|
+
x,
|
|
43
50
|
{
|
|
44
|
-
"aria-label":
|
|
51
|
+
"aria-label": c,
|
|
45
52
|
dataTestId: o ? "AppBarMobileMenuButton" : "AppBarAnchoredButton",
|
|
46
|
-
onClick:
|
|
53
|
+
onClick: C,
|
|
47
54
|
role: o ? "button" : "anchored-button",
|
|
48
55
|
rotationAngle: o ? void 0 : r ? 0 : 180,
|
|
49
56
|
selected: o ? void 0 : r,
|
|
50
57
|
size: s,
|
|
51
|
-
src: `${
|
|
52
|
-
tooltip:
|
|
58
|
+
src: `${A}/${E}/${R}`,
|
|
59
|
+
tooltip: c,
|
|
53
60
|
variant: "outline",
|
|
54
61
|
color: "default"
|
|
55
62
|
}
|
|
56
63
|
),
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
d ? /* @__PURE__ */ a(
|
|
65
|
+
O,
|
|
59
66
|
{
|
|
60
67
|
ownerState: t,
|
|
61
|
-
...process.env.NODE_ENV !== "production" ? { [m]:
|
|
62
|
-
children:
|
|
68
|
+
...process.env.NODE_ENV !== "production" ? { [m]: g("containerChilds") } : {},
|
|
69
|
+
children: d
|
|
63
70
|
}
|
|
64
71
|
) : null
|
|
65
72
|
] }),
|
|
66
|
-
i ? /* @__PURE__ */ a(
|
|
73
|
+
i ? /* @__PURE__ */ a(L, { ownerState: t, children: i }) : null
|
|
67
74
|
]
|
|
68
75
|
}
|
|
69
76
|
);
|
|
70
77
|
};
|
|
71
78
|
export {
|
|
72
|
-
|
|
79
|
+
K as AppBar
|
|
73
80
|
};
|
|
@@ -29,11 +29,11 @@ export interface AppBarProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* Toggle handler for the temporary mobile sidebar drawer.
|
|
31
31
|
*/
|
|
32
|
-
onToggleVisible: () => void;
|
|
32
|
+
onToggleVisible: (nextVisible?: boolean) => void;
|
|
33
33
|
/**
|
|
34
34
|
* Toggle handler for the anchored desktop sidebar state.
|
|
35
35
|
*/
|
|
36
|
-
onToggleAnchored: () => void;
|
|
36
|
+
onToggleAnchored: (nextAnchored?: boolean) => void;
|
|
37
37
|
/**
|
|
38
38
|
* Primary content rendered after the internal toggle control.
|
|
39
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;OAEG;IACH,gBAAgB,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,WAAW,EAClB,KAAK,CACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/GridLayout/subcomponents/GridItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,aAAa,EAA2B,MAAM,SAAS,CAAC;AAcjE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/GridLayout/subcomponents/GridItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,aAAa,EAA2B,MAAM,SAAS,CAAC;AAcjE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAukB5C;AACD,eAAO,MAAM,iBAAiB,4CAE5B,CAAC"}
|
|
@@ -12,7 +12,7 @@ function et(z) {
|
|
|
12
12
|
const {
|
|
13
13
|
layoutItemRender: P,
|
|
14
14
|
type: N,
|
|
15
|
-
i:
|
|
15
|
+
i: f,
|
|
16
16
|
x: w,
|
|
17
17
|
y: W,
|
|
18
18
|
w: A,
|
|
@@ -23,7 +23,7 @@ function et(z) {
|
|
|
23
23
|
containerHeight: O = qe,
|
|
24
24
|
margin: G = Je,
|
|
25
25
|
containerPadding: U = Ke,
|
|
26
|
-
transformScale:
|
|
26
|
+
transformScale: h = Qe,
|
|
27
27
|
colapsedHeight: T = Ve,
|
|
28
28
|
isBounded: de,
|
|
29
29
|
maxRows: B = 1 / 0,
|
|
@@ -131,16 +131,16 @@ function et(z) {
|
|
|
131
131
|
const r = { top: 0, left: 0 }, { offsetParent: c } = t;
|
|
132
132
|
if (!c)
|
|
133
133
|
return;
|
|
134
|
-
const o = c.getBoundingClientRect(), i = t.getBoundingClientRect(), s = i.left /
|
|
134
|
+
const o = c.getBoundingClientRect(), i = t.getBoundingClientRect(), s = i.left / h, l = o.left / h, E = i.top / h, I = o.top / h;
|
|
135
135
|
r.left = s - l + c.scrollLeft, r.top = E - I + c.scrollTop, u.current.dragging = r, _((J) => ({ ...J, dragging: r }));
|
|
136
|
-
const { x:
|
|
136
|
+
const { x: p, y: q } = V(
|
|
137
137
|
H(),
|
|
138
138
|
r.top,
|
|
139
139
|
r.left,
|
|
140
140
|
e.current.w,
|
|
141
141
|
e.current.h
|
|
142
142
|
);
|
|
143
|
-
re(
|
|
143
|
+
re(f, p, q, {
|
|
144
144
|
e: n,
|
|
145
145
|
node: t,
|
|
146
146
|
newPosition: r
|
|
@@ -152,9 +152,9 @@ function et(z) {
|
|
|
152
152
|
let o = u.current.dragging.top + c, i = u.current.dragging.left + r;
|
|
153
153
|
const s = H();
|
|
154
154
|
if (de) {
|
|
155
|
-
const { offsetParent:
|
|
156
|
-
if (
|
|
157
|
-
const q =
|
|
155
|
+
const { offsetParent: p } = t;
|
|
156
|
+
if (p) {
|
|
157
|
+
const q = p.clientHeight - le(
|
|
158
158
|
e.current.h,
|
|
159
159
|
e.current.rowHeight,
|
|
160
160
|
e.current.margin[1]
|
|
@@ -165,7 +165,7 @@ function et(z) {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
const l = { top: o, left: i };
|
|
168
|
-
u.current.dragging = l, _((
|
|
168
|
+
u.current.dragging = l, _((p) => ({ ...p, dragging: l }));
|
|
169
169
|
const { x: E, y: I } = V(
|
|
170
170
|
s,
|
|
171
171
|
o,
|
|
@@ -173,7 +173,7 @@ function et(z) {
|
|
|
173
173
|
e.current.w,
|
|
174
174
|
e.current.h
|
|
175
175
|
);
|
|
176
|
-
ie(
|
|
176
|
+
ie(f, E, I, {
|
|
177
177
|
e: n,
|
|
178
178
|
node: t,
|
|
179
179
|
newPosition: l
|
|
@@ -193,7 +193,7 @@ function et(z) {
|
|
|
193
193
|
e.current.w,
|
|
194
194
|
e.current.h
|
|
195
195
|
);
|
|
196
|
-
return oe(
|
|
196
|
+
return oe(f, i, s, {
|
|
197
197
|
e: n,
|
|
198
198
|
node: t,
|
|
199
199
|
newPosition: o
|
|
@@ -213,10 +213,10 @@ function et(z) {
|
|
|
213
213
|
const l = Math.max(e.current.minW, 1), E = Math.min(e.current.maxW, e.current.cols - e.current.x);
|
|
214
214
|
i = v(i, l, E), s = v(s, e.current.minH, e.current.maxH);
|
|
215
215
|
const I = c === "onResizeStop" ? void 0 : r;
|
|
216
|
-
_((
|
|
217
|
-
...
|
|
216
|
+
_((p) => ({
|
|
217
|
+
...p,
|
|
218
218
|
resizing: I
|
|
219
|
-
})), u.current.resizing = I, o(
|
|
219
|
+
})), u.current.resizing = I, o(f, i, s, { e: n, node: t, size: r });
|
|
220
220
|
},
|
|
221
221
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
222
222
|
[]
|
|
@@ -225,7 +225,7 @@ function et(z) {
|
|
|
225
225
|
}, []), ze = d((n, t) => {
|
|
226
226
|
j(n, t, "onResizeStart");
|
|
227
227
|
}, []), Se = d(() => {
|
|
228
|
-
ce && ce(
|
|
228
|
+
ce && ce(f);
|
|
229
229
|
}, []), Te = d(
|
|
230
230
|
(n, t, r) => {
|
|
231
231
|
const c = F(r, 0, 0, S - w, 0, m).width, o = F(r, 0, 0, y, D, m), i = F(r, 0, 0, b, C, m), s = [o.width, o.height], l = [
|
|
@@ -246,7 +246,7 @@ function et(z) {
|
|
|
246
246
|
onResizeStop: Ie,
|
|
247
247
|
onResizeStart: ze,
|
|
248
248
|
onResize: ye,
|
|
249
|
-
transformScale:
|
|
249
|
+
transformScale: h,
|
|
250
250
|
resizeHandles: ee,
|
|
251
251
|
handle: te,
|
|
252
252
|
children: n
|
|
@@ -262,7 +262,7 @@ function et(z) {
|
|
|
262
262
|
b,
|
|
263
263
|
C,
|
|
264
264
|
X,
|
|
265
|
-
|
|
265
|
+
h,
|
|
266
266
|
ee,
|
|
267
267
|
te,
|
|
268
268
|
m,
|
|
@@ -278,13 +278,13 @@ function et(z) {
|
|
|
278
278
|
onStop: He,
|
|
279
279
|
handle: Z,
|
|
280
280
|
cancel: ".react-resizable-handle" + (k ? "," + k : ""),
|
|
281
|
-
scale:
|
|
281
|
+
scale: h,
|
|
282
282
|
nodeRef: ae,
|
|
283
283
|
children: n
|
|
284
284
|
}
|
|
285
285
|
),
|
|
286
286
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
287
|
-
[Y, Z,
|
|
287
|
+
[Y, Z, h, k, m]
|
|
288
288
|
), ye = d((n, t) => {
|
|
289
289
|
j(n, t, "onResize");
|
|
290
290
|
}, []), Ce = H(R, O), se = F(
|
|
@@ -315,9 +315,10 @@ function et(z) {
|
|
|
315
315
|
...fe,
|
|
316
316
|
...Re(se)
|
|
317
317
|
//TODO: Delegar el estilo en el ItemRender
|
|
318
|
-
}, Le = Fe(() => /* @__PURE__ */ L(P, { type: N, i:
|
|
318
|
+
}, Le = Fe(() => /* @__PURE__ */ L(P, { type: N, i: f }), [N, f]), We = De(Te(/* @__PURE__ */ L(
|
|
319
319
|
"div",
|
|
320
320
|
{
|
|
321
|
+
"data-grid-item-id": f,
|
|
321
322
|
className: be,
|
|
322
323
|
ref: ae,
|
|
323
324
|
style: Ee,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFIsolationApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/MFIsolationApp.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAqEjB;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"MFIsolationApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/MFIsolationApp.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAqEjB;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,oDAkLxD"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useMemo as h, useCallback as
|
|
1
|
+
import { jsx as o, jsxs as A } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as h, useCallback as _, useId as X } from "react";
|
|
3
3
|
import { unstable_HistoryRouter as Y } from "react-router-dom";
|
|
4
4
|
import { createBrowserHistory as oo } from "history";
|
|
5
5
|
import eo from "eventemitter3";
|
|
6
|
-
import
|
|
7
|
-
import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as
|
|
6
|
+
import P from "nprogress";
|
|
7
|
+
import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as so, getLocaleFromNetwork as io, AppearanceComponentProvider as no } from "@m4l/graphics";
|
|
8
8
|
import { axiosOperation as ao, EnvironmentProvider as mo, HostToolsProvider as lo, NetworkProvider as po, AuthProvider as co, useAuth as ho, useEnvironment as uo, useNetwork as vo } from "@m4l/core";
|
|
9
9
|
import { WrapperAppBarContentChildrenStyled as fo, WrapperContentChildrenStyled as Ao } from "./slots/MFIsolationAppSlots.js";
|
|
10
10
|
import { MFIsolationAppErrorBoundary as _o } from "./MFIsolationAppErrorBoundary.js";
|
|
11
11
|
import Po from "../ToastContainer/helpers/toaster.js";
|
|
12
12
|
import { ShellObservabilityProvider as Io } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { MFAuthApp as bo } from "./subcomponents/MFAuthApp/MFAuthApp.js";
|
|
14
|
+
import { ThemeSettingsHostToolsBridge as yo } from "./subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js";
|
|
15
15
|
import { BaseModule as go } from "../BaseModule/BaseModule.js";
|
|
16
16
|
import { SettingsLayout as ko } from "../SettingsLayout/SettingsLayout.js";
|
|
17
17
|
import { ToastContainer as wo } from "../ToastContainer/ToastContainer.js";
|
|
18
|
-
import { PopupsProvider as
|
|
19
|
-
import { AreasProvider as
|
|
18
|
+
import { PopupsProvider as Ro } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
19
|
+
import { AreasProvider as Fo } from "../areas/contexts/AreasContext/index.js";
|
|
20
20
|
import { AppBarSettings as Lo } from "./subcomponents/AppBarSettings/AppBarSettings.js";
|
|
21
21
|
import { HostRuntimeProvider as So } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
|
|
22
|
-
import { MFObservabilityProvider as
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
const { children: v, hostRuntime:
|
|
22
|
+
import { MFObservabilityProvider as To } from "../WindowBase/contexts/MFObservabilityContext/MFObservabilityContext.js";
|
|
23
|
+
const R = oo({ window });
|
|
24
|
+
function Co(u) {
|
|
25
|
+
const { children: v, hostRuntime: s, resolveHostRuntime: i } = u, { user: n } = ho(), {
|
|
26
26
|
database: a,
|
|
27
27
|
hostApiIcons: m,
|
|
28
28
|
hostApiLocal: l,
|
|
29
29
|
hostApiRemote: p
|
|
30
|
-
} = uo(), { networkOperation: d } = vo(), f = h(() =>
|
|
30
|
+
} = uo(), { networkOperation: d } = vo(), f = h(() => i ? i({
|
|
31
31
|
database: a,
|
|
32
32
|
hostApiIcons: m,
|
|
33
33
|
hostApiLocal: l,
|
|
34
34
|
hostApiRemote: p,
|
|
35
35
|
networkOperation: d,
|
|
36
36
|
sessionId: n?.sessionId
|
|
37
|
-
}) ??
|
|
37
|
+
}) ?? s : s, [
|
|
38
38
|
a,
|
|
39
39
|
m,
|
|
40
40
|
l,
|
|
41
41
|
p,
|
|
42
|
-
i,
|
|
43
|
-
d,
|
|
44
42
|
s,
|
|
43
|
+
d,
|
|
44
|
+
i,
|
|
45
45
|
n?.sessionId
|
|
46
46
|
]);
|
|
47
47
|
return /* @__PURE__ */ o(So, { value: f, children: v });
|
|
@@ -49,8 +49,8 @@ function Eo(u) {
|
|
|
49
49
|
function oe(u) {
|
|
50
50
|
const {
|
|
51
51
|
children: v,
|
|
52
|
-
user:
|
|
53
|
-
pwd:
|
|
52
|
+
user: s,
|
|
53
|
+
pwd: i,
|
|
54
54
|
database: n = "domain",
|
|
55
55
|
// 'domain
|
|
56
56
|
hostApiLocal: a,
|
|
@@ -59,33 +59,33 @@ function oe(u) {
|
|
|
59
59
|
host_api_icons: p,
|
|
60
60
|
hostApiRemote: d,
|
|
61
61
|
host_api_remote: f,
|
|
62
|
-
host_static_assets:
|
|
62
|
+
host_static_assets: F,
|
|
63
63
|
environment_assets: L,
|
|
64
|
-
moduleId:
|
|
64
|
+
moduleId: I,
|
|
65
65
|
skeletonFlags: S,
|
|
66
|
-
moduleNameField:
|
|
67
|
-
privileges:
|
|
68
|
-
componentsDictionary:
|
|
69
|
-
onLoad:
|
|
70
|
-
activeAreasNetwork:
|
|
71
|
-
activeCookiesFromNetwork:
|
|
66
|
+
moduleNameField: T,
|
|
67
|
+
privileges: C,
|
|
68
|
+
componentsDictionary: E,
|
|
69
|
+
onLoad: H,
|
|
70
|
+
activeAreasNetwork: M = !1,
|
|
71
|
+
activeCookiesFromNetwork: x = !1,
|
|
72
72
|
// observedDivRef,
|
|
73
|
-
moduleDictionaryLoaded:
|
|
73
|
+
moduleDictionaryLoaded: B,
|
|
74
74
|
forcedDeviceType: N,
|
|
75
|
-
areasStoreId:
|
|
76
|
-
areasStoreDevtoolsEnabled:
|
|
75
|
+
areasStoreId: b,
|
|
76
|
+
areasStoreDevtoolsEnabled: y,
|
|
77
77
|
appBarSettings: D = !0,
|
|
78
78
|
axiosOperation: O = ao,
|
|
79
79
|
googleMapsApiKey: j,
|
|
80
80
|
hostRuntime: W,
|
|
81
|
-
observability:
|
|
81
|
+
observability: g,
|
|
82
82
|
resolveHostRuntime: $
|
|
83
|
-
} = u,
|
|
83
|
+
} = u, k = a ?? m ?? "", c = d ?? f ?? "", K = l ?? p ?? `${c}/main/icons`, e = h(() => new eo(), []), Z = _(
|
|
84
84
|
(t, r) => {
|
|
85
85
|
e.on(t, r);
|
|
86
86
|
},
|
|
87
87
|
[e]
|
|
88
|
-
), q =
|
|
88
|
+
), q = _(
|
|
89
89
|
(t, r) => {
|
|
90
90
|
if (r === null) {
|
|
91
91
|
e.removeListener(t);
|
|
@@ -94,17 +94,17 @@ function oe(u) {
|
|
|
94
94
|
e.removeListener(t, r);
|
|
95
95
|
},
|
|
96
96
|
[e]
|
|
97
|
-
), z =
|
|
97
|
+
), z = _(
|
|
98
98
|
(t, r) => {
|
|
99
99
|
e.emit(t, r);
|
|
100
100
|
},
|
|
101
101
|
[e]
|
|
102
102
|
), G = () => {
|
|
103
|
-
|
|
103
|
+
P.configure({
|
|
104
104
|
showSpinner: !0
|
|
105
|
-
}),
|
|
105
|
+
}), P.start();
|
|
106
106
|
}, J = () => {
|
|
107
|
-
|
|
107
|
+
P.done();
|
|
108
108
|
}, Q = h(
|
|
109
109
|
() => ({
|
|
110
110
|
host: "",
|
|
@@ -112,21 +112,21 @@ function oe(u) {
|
|
|
112
112
|
domain_token: "lab1",
|
|
113
113
|
domainToken: "lab1",
|
|
114
114
|
database: n,
|
|
115
|
-
host_api_local:
|
|
116
|
-
hostApiLocal:
|
|
115
|
+
host_api_local: k,
|
|
116
|
+
hostApiLocal: k,
|
|
117
117
|
host_api_remote: c,
|
|
118
118
|
hostApiRemote: c,
|
|
119
119
|
hostRemote: c,
|
|
120
|
-
host_static_assets:
|
|
120
|
+
host_static_assets: F,
|
|
121
121
|
environment_assets: L,
|
|
122
122
|
hostApiIcons: K,
|
|
123
123
|
googleMapsApiKey: j
|
|
124
124
|
}),
|
|
125
125
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
126
126
|
[]
|
|
127
|
-
),
|
|
127
|
+
), w = X(), U = Po(w), V = h(
|
|
128
128
|
() => ({
|
|
129
|
-
history:
|
|
129
|
+
history: R,
|
|
130
130
|
toast: U,
|
|
131
131
|
startProgress: G,
|
|
132
132
|
stopProgress: J,
|
|
@@ -137,56 +137,59 @@ function oe(u) {
|
|
|
137
137
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
138
138
|
[]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ o(mo, { ...Q, children: /* @__PURE__ */ o(lo, { ...V, children: /* @__PURE__ */ o(po, { axiosOperation: O, children: /* @__PURE__ */ o(Io, { value:
|
|
140
|
+
return /* @__PURE__ */ o(mo, { ...Q, children: /* @__PURE__ */ o(lo, { ...V, children: /* @__PURE__ */ o(po, { axiosOperation: O, children: /* @__PURE__ */ o(Io, { value: g, children: /* @__PURE__ */ o(To, { value: g, children: /* @__PURE__ */ o(
|
|
141
141
|
Y,
|
|
142
142
|
{
|
|
143
|
-
history:
|
|
143
|
+
history: R,
|
|
144
144
|
future: { v7_startTransition: !0, v7_relativeSplatPath: !0 },
|
|
145
|
-
children: /* @__PURE__ */ o(to, { forcedDeviceType: N, children: /* @__PURE__ */ o(co, { children: /* @__PURE__ */ o(
|
|
146
|
-
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/* @__PURE__ */ o(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
145
|
+
children: /* @__PURE__ */ o(to, { forcedDeviceType: N, children: /* @__PURE__ */ o(co, { children: /* @__PURE__ */ o(bo, { user: s, pwd: i, children: /* @__PURE__ */ A(ro, { children: [
|
|
146
|
+
/* @__PURE__ */ o(yo, {}),
|
|
147
|
+
/* @__PURE__ */ o(so, { isMicroFrontEnd: !1, getLocaleFromNetwork: io, children: /* @__PURE__ */ o(
|
|
148
|
+
go,
|
|
149
|
+
{
|
|
150
|
+
moduleId: I,
|
|
151
|
+
privileges: C,
|
|
152
|
+
skeletonFlags: S,
|
|
153
|
+
componentsDictionary: E,
|
|
154
|
+
moduleNameField: T,
|
|
155
|
+
moduleDictionaryLoaded: B,
|
|
156
|
+
children: /* @__PURE__ */ o(_o, { moduleId: I, children: /* @__PURE__ */ A(no, { children: [
|
|
157
|
+
/* @__PURE__ */ o(ko, {}),
|
|
158
|
+
/* @__PURE__ */ o(wo, { containerId: w }),
|
|
159
|
+
" ",
|
|
160
|
+
/* @__PURE__ */ o(
|
|
161
|
+
Co,
|
|
162
|
+
{
|
|
163
|
+
hostRuntime: W,
|
|
164
|
+
resolveHostRuntime: $,
|
|
165
|
+
children: /* @__PURE__ */ o(
|
|
166
|
+
Ro,
|
|
167
|
+
{
|
|
168
|
+
baseZindex: 1e3,
|
|
169
|
+
storeId: b,
|
|
170
|
+
storeDevtoolsEnabled: y,
|
|
171
|
+
children: /* @__PURE__ */ o(
|
|
172
|
+
Fo,
|
|
173
|
+
{
|
|
174
|
+
storeId: b,
|
|
175
|
+
storeDevtoolsEnabled: y,
|
|
176
|
+
onLoad: H,
|
|
177
|
+
loadAreasFromNetwork: M,
|
|
178
|
+
loadCookiesFromNetwork: x,
|
|
179
|
+
children: /* @__PURE__ */ A(fo, { children: [
|
|
180
|
+
D && /* @__PURE__ */ o(Lo, {}),
|
|
181
|
+
/* @__PURE__ */ o(Ao, { children: v })
|
|
182
|
+
] })
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] }) })
|
|
190
|
+
}
|
|
191
|
+
) })
|
|
192
|
+
] }) }) }) })
|
|
190
193
|
}
|
|
191
194
|
) }) }) }) }) });
|
|
192
195
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFAuthApp.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MFAuthApp.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDAsD9C"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { format as
|
|
4
|
-
import { useAuth as
|
|
5
|
-
import { FormatterProvider as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as l } from "react";
|
|
3
|
+
import { format as y } from "date-fns";
|
|
4
|
+
import { useAuth as _, useLocalStorage as f, DomainCountryProvider as h } from "@m4l/core";
|
|
5
|
+
import { KEY_LOCAL_STORAGE_THEME_SETTINGS as p, defaultThemeSettings as g, HostThemeProvider as C, FormatterProvider as E } from "@m4l/graphics";
|
|
6
|
+
import { getUserThemeOptions as b, fnComponentsOverrides as T } from "@m4l/styles";
|
|
7
|
+
function D(s) {
|
|
8
|
+
const { children: m, user: c, pwd: d } = s, { isAuthenticated: t, isInitialized: i, login: a, user: e } = _(), [n] = f(p, g);
|
|
9
|
+
if (l(() => {
|
|
10
|
+
i && t === !1 && a(c, d, !1);
|
|
11
|
+
}, [i, t]), !t)
|
|
12
|
+
return /* @__PURE__ */ o("div", { children: "Pendiente por autenticarse" });
|
|
12
13
|
const r = {
|
|
13
14
|
id: 1,
|
|
14
15
|
currency: "USD",
|
|
@@ -16,21 +17,31 @@ function g(n) {
|
|
|
16
17
|
decimal_symbol: ".",
|
|
17
18
|
thousands_symbol: ","
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
e?.domainCountry && (r.id = e?.domainCountry.id ?? r.id, r.currency = e?.domainCountry.currency ?? r.currency, r.currency_decimal_digits = e?.domainCountry.currency_decimal_digits ?? r.currency_decimal_digits, r.decimal_symbol = e?.domainCountry.decimal_symbol ?? r.decimal_symbol, r.thousands_symbol = e?.domainCountry?.thousands_symbol ?? r.thousands_symbol);
|
|
21
|
+
const u = b(n.themeMode, n.themeColor);
|
|
22
|
+
return /* @__PURE__ */ o(
|
|
23
|
+
C,
|
|
21
24
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
hostThemeOptions: u,
|
|
26
|
+
fnComponentsOverrides: T,
|
|
27
|
+
isMicroFrontEnd: !0,
|
|
28
|
+
children: /* @__PURE__ */ o(h, { ...r, isMicroFrontEnd: !1, children: /* @__PURE__ */ o(
|
|
29
|
+
E,
|
|
30
|
+
{
|
|
31
|
+
isMicroFrontEnd: !1,
|
|
32
|
+
dateFormatter: {
|
|
33
|
+
formatDate: y
|
|
34
|
+
},
|
|
35
|
+
currencyFormatter: {
|
|
36
|
+
code: r.currency,
|
|
37
|
+
decimalDigits: r.currency_decimal_digits
|
|
38
|
+
},
|
|
39
|
+
children: m
|
|
40
|
+
}
|
|
41
|
+
) })
|
|
31
42
|
}
|
|
32
|
-
)
|
|
43
|
+
);
|
|
33
44
|
}
|
|
34
45
|
export {
|
|
35
|
-
|
|
46
|
+
D as MFAuthApp
|
|
36
47
|
};
|