@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeSettingsHostToolsBridge.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,4BAA4B,SAe3C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
import { useHostTools as r } from "@m4l/core";
|
|
3
|
+
import { useThemeSettingsStore as i } from "@m4l/graphics";
|
|
4
|
+
function f() {
|
|
5
|
+
const { events_emit: e } = r(), t = i(
|
|
6
|
+
(o) => o.settingsActions.registerHostToolsEventsEmit
|
|
7
|
+
);
|
|
8
|
+
return s(() => (t(e), () => {
|
|
9
|
+
t(void 0);
|
|
10
|
+
}), [e, t]), null;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as ThemeSettingsHostToolsBridge
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAehD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAkP5C;AACD,eAAe,QAAQ,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as _, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useRef as d, useEffect as ee } from "react";
|
|
3
|
-
import { useNetwork as te, useEnvironment as oe, useHostTools as re } from "@m4l/core";
|
|
4
|
-
import { useHostTheme as
|
|
5
|
-
import { ProggessLoadingMF as
|
|
6
|
-
import { LoadingError as
|
|
7
|
-
import { useHostRuntime as
|
|
8
|
-
import { useShellObservability as
|
|
9
|
-
import { projectMFHostRuntimeTools as
|
|
10
|
-
import { useMFTelemetry as
|
|
11
|
-
import { useMFSwap as
|
|
12
|
-
import { useMFLifecycle as
|
|
13
|
-
import { useMFRender as
|
|
14
|
-
import { MFLoaderRootStyled as
|
|
15
|
-
function
|
|
3
|
+
import { useNetwork as te, useEnvironment as oe, useHostTools as re, resolveLocalLoopbackOrigin as ne } from "@m4l/core";
|
|
4
|
+
import { useHostTheme as se, useFormatter as ie, useLocales as de } from "@m4l/graphics";
|
|
5
|
+
import { ProggessLoadingMF as ce } from "./subcomponents/ProggessLoadingMF/index.js";
|
|
6
|
+
import { LoadingError as ae } from "../LoadingError/LoadingError.js";
|
|
7
|
+
import { useHostRuntime as le } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
|
|
8
|
+
import { useShellObservability as me } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
|
|
9
|
+
import { projectMFHostRuntimeTools as ue } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
|
|
10
|
+
import { useMFTelemetry as pe } from "./hooks/useMFTelemetry/useMFTelemetry.js";
|
|
11
|
+
import { useMFSwap as fe } from "./hooks/useMFSwap/useMFSwap.js";
|
|
12
|
+
import { useMFLifecycle as Le } from "./hooks/useMFLifecycle/useMFLifecycle.js";
|
|
13
|
+
import { useMFRender as Se } from "./hooks/useMFRender/useMFRender.js";
|
|
14
|
+
import { MFLoaderRootStyled as he, MFLoaderMountContainerStyled as T, MFLoaderOverlayStyled as O } from "./slots/MFLoaderSlots.js";
|
|
15
|
+
function qe(I) {
|
|
16
16
|
const {
|
|
17
17
|
prefix: r,
|
|
18
18
|
moduleId: C,
|
|
@@ -24,31 +24,31 @@ function Ee(O) {
|
|
|
24
24
|
windowTools: q,
|
|
25
25
|
emergeType: P,
|
|
26
26
|
loggedUser: j
|
|
27
|
-
} =
|
|
27
|
+
} = I, k = le(), G = me(), V = ue(H ?? k), A = x ?? G, { hostThemeOptions: B, fnComponentsOverrides: N } = se(), { networkOperation: $ } = te(), s = oe(), D = re(), U = ie(), z = { hostThemeOptions: B, fnComponentsOverrides: N }, p = d(null), f = d(null), L = d("progress"), S = d(
|
|
28
28
|
null
|
|
29
|
-
), { currentLocale: J } =
|
|
30
|
-
activeSwapRef:
|
|
29
|
+
), { currentLocale: J } = de(), K = !s.isLocalhost || Number.isInteger(n) && n > 0, {
|
|
30
|
+
activeSwapRef: h,
|
|
31
31
|
createTelemetryContext: a,
|
|
32
32
|
emitAbandonedLoadTelemetry: Q,
|
|
33
33
|
emitSwapStartedTelemetry: g,
|
|
34
34
|
emitSwapFailedTelemetry: l,
|
|
35
|
-
reportLoaderError:
|
|
36
|
-
} =
|
|
35
|
+
reportLoaderError: v
|
|
36
|
+
} = pe({
|
|
37
37
|
cache: c,
|
|
38
38
|
prefix: r,
|
|
39
39
|
mountedScriptRefBridge: p,
|
|
40
40
|
requestedScriptRefBridge: f,
|
|
41
41
|
setStatusLoaderRef: S,
|
|
42
|
-
statusLoaderRef:
|
|
42
|
+
statusLoaderRef: L
|
|
43
43
|
}), {
|
|
44
44
|
mountedScript: m,
|
|
45
45
|
requestedScript: e,
|
|
46
46
|
isSwappingModule: W,
|
|
47
|
-
mountedScriptRef:
|
|
47
|
+
mountedScriptRef: R,
|
|
48
48
|
requestedScriptRef: y,
|
|
49
49
|
promoteRequestedScript: b
|
|
50
|
-
} =
|
|
51
|
-
activeSwapRef:
|
|
50
|
+
} = fe({
|
|
51
|
+
activeSwapRef: h,
|
|
52
52
|
cache: c,
|
|
53
53
|
createTelemetryContext: a,
|
|
54
54
|
emitAbandonedLoadTelemetry: Q,
|
|
@@ -56,10 +56,10 @@ function Ee(O) {
|
|
|
56
56
|
emitSwapStartedTelemetry: g,
|
|
57
57
|
moduleId: C,
|
|
58
58
|
prefix: r,
|
|
59
|
-
reportLoaderError:
|
|
59
|
+
reportLoaderError: v
|
|
60
60
|
});
|
|
61
|
-
p.current =
|
|
62
|
-
const X = s.isLocalhost ?
|
|
61
|
+
p.current = R, f.current = y;
|
|
62
|
+
const X = s.isLocalhost ? ne(n) : `https://${window.location.host}/mf/${e.moduleId}`, {
|
|
63
63
|
statusLoader: t,
|
|
64
64
|
setStatusLoader: F,
|
|
65
65
|
loadingProgress: Y,
|
|
@@ -67,23 +67,23 @@ function Ee(O) {
|
|
|
67
67
|
loadGeneration: i,
|
|
68
68
|
completedGeneration: M,
|
|
69
69
|
renderedGeneration: u
|
|
70
|
-
} =
|
|
70
|
+
} = Le({
|
|
71
71
|
activeHost: X,
|
|
72
72
|
cache: c,
|
|
73
73
|
createTelemetryContext: a,
|
|
74
74
|
environmentIsLocalhost: s.isLocalhost,
|
|
75
75
|
hasValidLocalDebugPort: K,
|
|
76
|
-
mountedScriptRef:
|
|
77
|
-
networkOperation:
|
|
76
|
+
mountedScriptRef: R,
|
|
77
|
+
networkOperation: $,
|
|
78
78
|
prefix: r,
|
|
79
79
|
requestedScript: e,
|
|
80
80
|
requestedScriptRef: y,
|
|
81
|
-
activeSwapRef:
|
|
81
|
+
activeSwapRef: h,
|
|
82
82
|
emitSwapFailedTelemetry: l,
|
|
83
83
|
emitSwapStartedTelemetry: g
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
const { renderMicroFrontend: w } =
|
|
85
|
+
L.current = t, S.current = F;
|
|
86
|
+
const { renderMicroFrontend: w } = Se({
|
|
87
87
|
prefix: r,
|
|
88
88
|
debugPort: n,
|
|
89
89
|
dynamicMFStore: E,
|
|
@@ -95,9 +95,9 @@ function Ee(O) {
|
|
|
95
95
|
currentLocale: J,
|
|
96
96
|
hostTheme: z,
|
|
97
97
|
formatter: U,
|
|
98
|
-
resolvedHostRuntime:
|
|
99
|
-
resolvedObservability:
|
|
100
|
-
reportLoaderError:
|
|
98
|
+
resolvedHostRuntime: V,
|
|
99
|
+
resolvedObservability: A,
|
|
100
|
+
reportLoaderError: v,
|
|
101
101
|
emitSwapFailedTelemetry: l,
|
|
102
102
|
setStatusLoader: F,
|
|
103
103
|
createTelemetryContext: a
|
|
@@ -118,7 +118,7 @@ function Ee(O) {
|
|
|
118
118
|
u,
|
|
119
119
|
e,
|
|
120
120
|
t
|
|
121
|
-
]), /* @__PURE__ */ _(
|
|
121
|
+
]), /* @__PURE__ */ _(he, { children: [
|
|
122
122
|
/* @__PURE__ */ o(
|
|
123
123
|
T,
|
|
124
124
|
{
|
|
@@ -135,11 +135,11 @@ function Ee(O) {
|
|
|
135
135
|
},
|
|
136
136
|
e.divContainerId
|
|
137
137
|
) : null,
|
|
138
|
-
t === "progress" ? /* @__PURE__ */ o(
|
|
139
|
-
t === "error" ? /* @__PURE__ */ o(
|
|
138
|
+
t === "progress" ? /* @__PURE__ */ o(O, { children: /* @__PURE__ */ o(ce, { loadingProgress: Y }) }) : null,
|
|
139
|
+
t === "error" ? /* @__PURE__ */ o(O, { children: /* @__PURE__ */ o(ae, { status: t, action: Z }) }) : null
|
|
140
140
|
] });
|
|
141
141
|
}
|
|
142
142
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
qe as MFLoader,
|
|
144
|
+
qe as default
|
|
145
145
|
};
|
|
@@ -39,6 +39,14 @@ export interface MFRealtimeProducerToolsContract {
|
|
|
39
39
|
* sin enseñarle a `@m4l/components` los tipos de parámetros concretos de cada paquete realtime.
|
|
40
40
|
*/
|
|
41
41
|
subscribe: (...args: never[]) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Subscribe to recovered transport events through one host-owned realtime engine.
|
|
44
|
+
* Se suscribe a eventos de transporte recuperado a través de un motor realtime propiedad del host.
|
|
45
|
+
*
|
|
46
|
+
* The `never[]` rest shape is intentional for the same reason as `subscribe`.
|
|
47
|
+
* La forma rest `never[]` es intencional por la misma razón que en `subscribe`.
|
|
48
|
+
*/
|
|
49
|
+
subscribeTransportReconnect: (...args: never[]) => void;
|
|
42
50
|
/**
|
|
43
51
|
* Unsubscribe through one host-owned realtime engine.
|
|
44
52
|
* Cancela la suscripción a través de un motor realtime propiedad del host.
|
|
@@ -47,6 +55,14 @@ export interface MFRealtimeProducerToolsContract {
|
|
|
47
55
|
* La forma rest `never[]` es intencional por la misma razón que en `subscribe`.
|
|
48
56
|
*/
|
|
49
57
|
unsubscribe: (...args: never[]) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Unsubscribe from recovered transport events through one host-owned realtime engine.
|
|
60
|
+
* Cancela la suscripción a eventos de transporte recuperado a través de un motor realtime propiedad del host.
|
|
61
|
+
*
|
|
62
|
+
* The `never[]` rest shape is intentional for the same reason as `unsubscribe`.
|
|
63
|
+
* La forma rest `never[]` es intencional por la misma razón que en `unsubscribe`.
|
|
64
|
+
*/
|
|
65
|
+
unsubscribeTransportReconnect: (...args: never[]) => void;
|
|
50
66
|
/**
|
|
51
67
|
* Publish one synthetic realtime batch through the shared producer pipeline.
|
|
52
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,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AAc,EAC9B,WAAW,EAAE,aAAa,EAC1B,OAAO,EAAE,qBAAqB,KAC3B,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,KACpB,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;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file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/context/sideBarContext/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/context/sideBarContext/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6BrE;;;;GAIG;AACH,QAAA,MAAM,cAAc,+CAA8B,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,qDAsDnD,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { getComponentClasses as
|
|
1
|
+
import { jsx as e, Fragment as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as x } from "react";
|
|
3
|
+
import { getComponentClasses as L } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { ALL_SIDEBAR_SLOTS as I, SIDEBAR_KEY_COMPONENT as T } from "../../constants.js";
|
|
5
|
-
const
|
|
5
|
+
const a = L(T, I), b = {
|
|
6
6
|
anchored: !1,
|
|
7
7
|
visible: !0,
|
|
8
8
|
onToggleAnchored: (o) => {
|
|
@@ -12,16 +12,17 @@ const t = _(T, I), b = {
|
|
|
12
12
|
menuData: [],
|
|
13
13
|
companyLogoUrl: "",
|
|
14
14
|
companyLogoSmallUrl: "",
|
|
15
|
-
|
|
15
|
+
/** Ignore menu clicks until a real sidebar provider is mounted. */
|
|
16
|
+
onMenuItemClick: (o, n) => {
|
|
16
17
|
},
|
|
17
18
|
expandedWidth: "",
|
|
18
19
|
companyName: "",
|
|
19
20
|
companySlogan: "",
|
|
20
|
-
classes:
|
|
21
|
-
headerComponent: /* @__PURE__ */ e(
|
|
22
|
-
footerComponent: /* @__PURE__ */ e(
|
|
23
|
-
}, A =
|
|
24
|
-
const { value:
|
|
21
|
+
classes: a,
|
|
22
|
+
headerComponent: /* @__PURE__ */ e(t, {}),
|
|
23
|
+
footerComponent: /* @__PURE__ */ e(t, {})
|
|
24
|
+
}, A = x(b), P = (o) => {
|
|
25
|
+
const { value: n, children: r } = o, {
|
|
25
26
|
anchored: m,
|
|
26
27
|
visible: l,
|
|
27
28
|
onToggleAnchored: i,
|
|
@@ -37,8 +38,8 @@ const t = _(T, I), b = {
|
|
|
37
38
|
urlIconPrefix: f,
|
|
38
39
|
headerComponent: v,
|
|
39
40
|
footerComponent: y,
|
|
40
|
-
variant:
|
|
41
|
-
} =
|
|
41
|
+
variant: _
|
|
42
|
+
} = n;
|
|
42
43
|
return (
|
|
43
44
|
// Proporcionar el contexto con las propiedades desestructuradas
|
|
44
45
|
/* @__PURE__ */ e(
|
|
@@ -58,10 +59,10 @@ const t = _(T, I), b = {
|
|
|
58
59
|
companyName: h,
|
|
59
60
|
companySlogan: u,
|
|
60
61
|
urlIconPrefix: f,
|
|
61
|
-
classes:
|
|
62
|
+
classes: a,
|
|
62
63
|
headerComponent: v,
|
|
63
64
|
footerComponent: y,
|
|
64
|
-
variant:
|
|
65
|
+
variant: _
|
|
65
66
|
},
|
|
66
67
|
children: r
|
|
67
68
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IMenuDataWithState } from '../../types';
|
|
2
|
+
import { MouseEvent } from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* Manage the expanded state for one sidebar menu item.
|
|
4
5
|
* @param {IMenuDataWithState} item - Sidebar item to control.
|
|
@@ -6,7 +7,7 @@ import { IMenuDataWithState } from '../../types';
|
|
|
6
7
|
*/
|
|
7
8
|
export declare const useCollapse: (item: IMenuDataWithState, defaultOpen?: boolean) => {
|
|
8
9
|
isOpen: boolean;
|
|
9
|
-
handlerClick: () => void;
|
|
10
|
+
handlerClick: (event?: MouseEvent<HTMLElement>) => void;
|
|
10
11
|
hasChildren: boolean | undefined;
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=useCollapse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCollapse.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/hooks/useCollapse/useCollapse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useCollapse.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/hooks/useCollapse/useCollapse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,kBAAkB,EAAE,qBAAmB;;2BASzC,UAAU,CAAC,WAAW,CAAC;;CAiBtD,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import
|
|
1
|
+
import { useState as h, useEffect as a } from "react";
|
|
2
|
+
import u from "../useSideBar/index.js";
|
|
3
3
|
import { useIsMobile as d } from "@m4l/graphics";
|
|
4
|
-
const
|
|
5
|
-
const { onMenuItemClick:
|
|
6
|
-
|
|
4
|
+
const b = (e, s = !1) => {
|
|
5
|
+
const { onMenuItemClick: r, onToggleVisible: l } = u(), [i, n] = h(s), t = d(), o = e.children && Array.isArray(e.children) && e.children.length > 0, c = (f) => {
|
|
6
|
+
f?.shiftKey ? r(e, { shiftKey: !0 }) : r(e), n(!i), t && (!o || o === void 0) && l(!1);
|
|
7
7
|
};
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
}, [
|
|
8
|
+
return a(() => {
|
|
9
|
+
n(s);
|
|
10
|
+
}, [s]), { isOpen: i, handlerClick: c, hasChildren: o };
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
b as useCollapse
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -15,6 +15,13 @@ export interface MenuDataType extends Record<string, any> {
|
|
|
15
15
|
debugPort?: number;
|
|
16
16
|
children?: Array<MenuDataType>;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Optional click metadata forwarded by sidebar emitters when modifier keys
|
|
20
|
+
* should influence how the host opens the selected module.
|
|
21
|
+
*/
|
|
22
|
+
export interface MenuItemClickOptions {
|
|
23
|
+
shiftKey?: boolean;
|
|
24
|
+
}
|
|
18
25
|
/**
|
|
19
26
|
* Propiedades para el componente SideBar.
|
|
20
27
|
*/
|
|
@@ -52,7 +59,7 @@ export interface SideBarProps {
|
|
|
52
59
|
*/
|
|
53
60
|
companySlogan?: string;
|
|
54
61
|
moduleSelectedId?: string | undefined;
|
|
55
|
-
onMenuItemClick: (item: MenuDataType) => void;
|
|
62
|
+
onMenuItemClick: (item: MenuDataType, options?: MenuItemClickOptions) => void;
|
|
56
63
|
/**
|
|
57
64
|
* Función para alternar el estado colapsado de la barra lateral.
|
|
58
65
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components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AAe,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjK,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IA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a,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACzG,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,mBAAmB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACnH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACjH,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACnH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACjH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA;AACjH,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaGridLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAa1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"AreaGridLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAa1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDA4JpD,CAAC"}
|
|
@@ -1,83 +1,97 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { shallow as
|
|
1
|
+
import { jsx as m, Fragment as v } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { shallow as r } from "zustand/shallow";
|
|
3
3
|
import { Window as N } from "../Window/Window.js";
|
|
4
4
|
import { useAreasStore as a } from "../../../../../../hooks/useAreas/index.js";
|
|
5
|
-
import { areasViewerClasses as
|
|
5
|
+
import { areasViewerClasses as u } from "../../../../classes/index.js";
|
|
6
6
|
import D from "clsx";
|
|
7
|
-
import { PADDING_GRIDLAYOUT as g, MARGIN_GRIDLAYOUT as p, RESPONSIVE_ROW_HEIGHTS as
|
|
8
|
-
import { MemonizePopupsViewer as
|
|
9
|
-
import { useState as
|
|
10
|
-
import { dragResizeWindowRNDClasses as
|
|
11
|
-
import { useTheme as
|
|
12
|
-
import { useComponentSize as
|
|
13
|
-
import { withSizeProvider as
|
|
14
|
-
import { Responsive as
|
|
15
|
-
const
|
|
16
|
-
const { areaId:
|
|
7
|
+
import { PADDING_GRIDLAYOUT as g, MARGIN_GRIDLAYOUT as p, RESPONSIVE_ROW_HEIGHTS as M } from "../../../../../../contexts/AreasContext/helpers/helper.js";
|
|
8
|
+
import { MemonizePopupsViewer as O } from "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
|
|
9
|
+
import { useState as P, useMemo as T, useEffect as V } from "react";
|
|
10
|
+
import { dragResizeWindowRNDClasses as s } from "../../../../../../../DragResizeWindowRND/classes/index.js";
|
|
11
|
+
import { useTheme as _ } from "@mui/material";
|
|
12
|
+
import { useComponentSize as k } from "../../../../../../../../hooks/useComponentSize/index.js";
|
|
13
|
+
import { withSizeProvider as $ } from "../../../../../../../GridLayout/subcomponents/withSizeProvider/index.js";
|
|
14
|
+
import { Responsive as F } from "../../../../../../../GridLayout/subcomponents/Responsive/index.js";
|
|
15
|
+
const U = $(F), ae = (f) => {
|
|
16
|
+
const { areaId: t, size: h } = f, I = a((e) => e.hashAreas[t].layoutItemsIds, r), y = a((e) => e.hashAreas[t].layouts, r), L = a((e) => e.hashAreas[t].breakpoints, r), c = a((e) => e.hashAreas[t].currentLayoutId, r), S = a((e) => e.hashAreas[t].maximizedId, r), z = a((e) => e.hashAreas[t].cols, r), { onBreakpointsLayoutsChange: A, onContainerChange: w } = a(
|
|
17
17
|
(e) => e.areaActions,
|
|
18
|
-
|
|
19
|
-
),
|
|
20
|
-
|
|
18
|
+
r
|
|
19
|
+
), d = _(), { currentSize: l } = k(h), [o, C] = P(void 0), R = () => {
|
|
20
|
+
o && o.classList.add(s.resizing);
|
|
21
21
|
}, H = () => {
|
|
22
|
-
|
|
22
|
+
o && o.classList.remove(s.resizing);
|
|
23
23
|
}, G = () => {
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
e && e !==
|
|
29
|
-
},
|
|
30
|
-
const e =
|
|
24
|
+
o && o.classList.add(s.dragging);
|
|
25
|
+
}, x = () => {
|
|
26
|
+
o && o.classList.remove(s.dragging);
|
|
27
|
+
}, E = (e) => {
|
|
28
|
+
e && e !== o && C(e);
|
|
29
|
+
}, b = T(() => {
|
|
30
|
+
const e = d?.size?.[d?.generalSettings?.isMobile ? "mobile" : "desktop"]?.[l]?.container, i = parseInt(e), n = isNaN(i) ? 32 : i;
|
|
31
31
|
return {
|
|
32
|
-
xxs:
|
|
33
|
-
xs:
|
|
34
|
-
sm:
|
|
35
|
-
md:
|
|
36
|
-
lg:
|
|
32
|
+
xxs: n,
|
|
33
|
+
xs: n,
|
|
34
|
+
sm: n,
|
|
35
|
+
md: n,
|
|
36
|
+
lg: n
|
|
37
37
|
};
|
|
38
|
-
}, [
|
|
39
|
-
return
|
|
40
|
-
|
|
38
|
+
}, [d, l]);
|
|
39
|
+
return V(() => {
|
|
40
|
+
if (!o || !c)
|
|
41
|
+
return;
|
|
42
|
+
const e = window.requestAnimationFrame(() => {
|
|
43
|
+
o.querySelector(
|
|
44
|
+
`[data-grid-item-id="${c}"]`
|
|
45
|
+
)?.scrollIntoView?.({
|
|
46
|
+
block: "nearest",
|
|
47
|
+
inline: "nearest"
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
return () => {
|
|
51
|
+
window.cancelAnimationFrame(e);
|
|
52
|
+
};
|
|
53
|
+
}, [c, o]), /* @__PURE__ */ m(
|
|
54
|
+
U,
|
|
41
55
|
{
|
|
42
|
-
ref:
|
|
56
|
+
ref: E,
|
|
43
57
|
autoSize: !1,
|
|
44
58
|
compactType: "vertical",
|
|
45
59
|
measureBeforeMount: !0,
|
|
46
60
|
resizeHandles: ["nw", "se"],
|
|
47
61
|
className: D(
|
|
48
|
-
|
|
49
|
-
`${
|
|
62
|
+
u.areaGridLayout,
|
|
63
|
+
`${u.areaGridLayout}-${t}`
|
|
50
64
|
),
|
|
51
|
-
layouts:
|
|
52
|
-
onLayoutChange: (e,
|
|
53
|
-
draggableHandle: `.${
|
|
54
|
-
draggableCancel: `.${
|
|
55
|
-
layoutItemRender: (e) =>
|
|
56
|
-
breakpoints:
|
|
57
|
-
colapsedHeight:
|
|
58
|
-
rowHeight:
|
|
65
|
+
layouts: y,
|
|
66
|
+
onLayoutChange: (e, i) => A(t, e, i),
|
|
67
|
+
draggableHandle: `.${s.draggableHandle}`,
|
|
68
|
+
draggableCancel: `.${s.draggableCancel}`,
|
|
69
|
+
layoutItemRender: (e) => I.indexOf(e.i) === -1 ? /* @__PURE__ */ m(v, {}) : e.type === "placeholder" ? /* @__PURE__ */ m("div", {}) : /* @__PURE__ */ m(N, { windowId: e.i, areaId: t }),
|
|
70
|
+
breakpoints: L,
|
|
71
|
+
colapsedHeight: b,
|
|
72
|
+
rowHeight: M,
|
|
59
73
|
cols: z,
|
|
60
74
|
containerMargin: [p, p],
|
|
61
75
|
containerPadding: [g, g],
|
|
62
76
|
onContainerChange: (e) => {
|
|
63
|
-
|
|
77
|
+
w(t, e);
|
|
64
78
|
},
|
|
65
79
|
preventCollision: !1,
|
|
66
|
-
maximizeId:
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
-
|
|
80
|
+
maximizeId: S,
|
|
81
|
+
children: /* @__PURE__ */ m(
|
|
82
|
+
O,
|
|
69
83
|
{
|
|
70
|
-
groupId:
|
|
71
|
-
containerElement:
|
|
72
|
-
onResizeStart:
|
|
84
|
+
groupId: t,
|
|
85
|
+
containerElement: o,
|
|
86
|
+
onResizeStart: R,
|
|
73
87
|
onResizeStop: H,
|
|
74
88
|
onDragStart: G,
|
|
75
|
-
onDragStop:
|
|
89
|
+
onDragStop: x
|
|
76
90
|
}
|
|
77
91
|
)
|
|
78
92
|
}
|
|
79
93
|
);
|
|
80
94
|
};
|
|
81
95
|
export {
|
|
82
|
-
|
|
96
|
+
ae as AreaGridLayout
|
|
83
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAiEjB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,sBAAsB,EACjC,8BAA4B;;;;;;;;
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAiEjB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,sBAAsB,EACjC,8BAA4B;;;;;;;;CA6yC7B,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|