@m4l/components 9.24.0-beta-feature-731-m4l-components-code-editor.7 → 9.24.0-beta-feature-731-m4l-components-code-editor.8
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/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +44 -43
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.d.ts.map +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +24 -35
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts +10 -0
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts.map +1 -0
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js +19 -0
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts +2 -0
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts.map +1 -0
- package/package.json +6 -6
|
@@ -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;
|
|
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,oDAmLxD"}
|
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as h, useCallback as A, 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
6
|
import _ from "nprogress";
|
|
7
|
-
import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as
|
|
7
|
+
import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as io, getLocaleFromNetwork as so, 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 { MFIsolationThemeBridge as bo } from "./subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js";
|
|
14
|
+
import { MFAuthApp as yo } from "./subcomponents/MFAuthApp/MFAuthApp.js";
|
|
15
|
+
import { BaseModule as go } from "../BaseModule/BaseModule.js";
|
|
15
16
|
import { SettingsLayout as ko } from "../SettingsLayout/SettingsLayout.js";
|
|
16
17
|
import { ToastContainer as wo } from "../ToastContainer/ToastContainer.js";
|
|
17
|
-
import { PopupsProvider as
|
|
18
|
+
import { PopupsProvider as Fo } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
18
19
|
import { AreasProvider as Ro } from "../areas/contexts/AreasContext/index.js";
|
|
19
|
-
import { AppBarSettings as
|
|
20
|
-
import { HostRuntimeProvider as
|
|
21
|
-
import { MFObservabilityProvider as
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const { children: v, hostRuntime:
|
|
20
|
+
import { AppBarSettings as Lo } from "./subcomponents/AppBarSettings/AppBarSettings.js";
|
|
21
|
+
import { HostRuntimeProvider as So } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
|
|
22
|
+
import { MFObservabilityProvider as Co } from "../WindowBase/contexts/MFObservabilityContext/MFObservabilityContext.js";
|
|
23
|
+
const F = oo({ window });
|
|
24
|
+
function Eo(u) {
|
|
25
|
+
const { children: v, hostRuntime: i, resolveHostRuntime: s } = u, { user: n } = ho(), {
|
|
25
26
|
database: a,
|
|
26
27
|
hostApiIcons: m,
|
|
27
28
|
hostApiLocal: l,
|
|
28
29
|
hostApiRemote: p
|
|
29
|
-
} = uo(), { networkOperation: d } = vo(), f = h(() =>
|
|
30
|
+
} = uo(), { networkOperation: d } = vo(), f = h(() => s ? s({
|
|
30
31
|
database: a,
|
|
31
32
|
hostApiIcons: m,
|
|
32
33
|
hostApiLocal: l,
|
|
33
34
|
hostApiRemote: p,
|
|
34
35
|
networkOperation: d,
|
|
35
36
|
sessionId: n?.sessionId
|
|
36
|
-
}) ??
|
|
37
|
+
}) ?? i : i, [
|
|
37
38
|
a,
|
|
38
39
|
m,
|
|
39
40
|
l,
|
|
40
41
|
p,
|
|
41
|
-
s,
|
|
42
|
-
d,
|
|
43
42
|
i,
|
|
43
|
+
d,
|
|
44
|
+
s,
|
|
44
45
|
n?.sessionId
|
|
45
46
|
]);
|
|
46
|
-
return /* @__PURE__ */ o(
|
|
47
|
+
return /* @__PURE__ */ o(So, { value: f, children: v });
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function oe(u) {
|
|
49
50
|
const {
|
|
50
51
|
children: v,
|
|
51
|
-
user:
|
|
52
|
-
pwd:
|
|
52
|
+
user: i,
|
|
53
|
+
pwd: s,
|
|
53
54
|
database: n = "domain",
|
|
54
55
|
// 'domain
|
|
55
56
|
hostApiLocal: a,
|
|
@@ -58,7 +59,7 @@ function Xo(u) {
|
|
|
58
59
|
host_api_icons: p,
|
|
59
60
|
hostApiRemote: d,
|
|
60
61
|
host_api_remote: f,
|
|
61
|
-
host_static_assets:
|
|
62
|
+
host_static_assets: R,
|
|
62
63
|
environment_assets: L,
|
|
63
64
|
moduleId: P,
|
|
64
65
|
skeletonFlags: S,
|
|
@@ -67,10 +68,10 @@ function Xo(u) {
|
|
|
67
68
|
componentsDictionary: M,
|
|
68
69
|
onLoad: T,
|
|
69
70
|
activeAreasNetwork: x = !1,
|
|
70
|
-
activeCookiesFromNetwork:
|
|
71
|
+
activeCookiesFromNetwork: B = !1,
|
|
71
72
|
// observedDivRef,
|
|
72
|
-
moduleDictionaryLoaded:
|
|
73
|
-
forcedDeviceType:
|
|
73
|
+
moduleDictionaryLoaded: H,
|
|
74
|
+
forcedDeviceType: N,
|
|
74
75
|
areasStoreId: I,
|
|
75
76
|
areasStoreDevtoolsEnabled: b,
|
|
76
77
|
appBarSettings: D = !0,
|
|
@@ -79,7 +80,7 @@ function Xo(u) {
|
|
|
79
80
|
hostRuntime: W,
|
|
80
81
|
observability: y,
|
|
81
82
|
resolveHostRuntime: $
|
|
82
|
-
} = u,
|
|
83
|
+
} = u, g = a ?? m ?? "", c = d ?? f ?? "", K = l ?? p ?? `${c}/main/icons`, e = h(() => new eo(), []), Z = A(
|
|
83
84
|
(t, r) => {
|
|
84
85
|
e.on(t, r);
|
|
85
86
|
},
|
|
@@ -111,21 +112,21 @@ function Xo(u) {
|
|
|
111
112
|
domain_token: "lab1",
|
|
112
113
|
domainToken: "lab1",
|
|
113
114
|
database: n,
|
|
114
|
-
host_api_local:
|
|
115
|
-
hostApiLocal:
|
|
115
|
+
host_api_local: g,
|
|
116
|
+
hostApiLocal: g,
|
|
116
117
|
host_api_remote: c,
|
|
117
118
|
hostApiRemote: c,
|
|
118
119
|
hostRemote: c,
|
|
119
|
-
host_static_assets:
|
|
120
|
+
host_static_assets: R,
|
|
120
121
|
environment_assets: L,
|
|
121
122
|
hostApiIcons: K,
|
|
122
123
|
googleMapsApiKey: j
|
|
123
124
|
}),
|
|
124
125
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
125
126
|
[]
|
|
126
|
-
),
|
|
127
|
+
), k = X(), U = Po(k), V = h(
|
|
127
128
|
() => ({
|
|
128
|
-
history:
|
|
129
|
+
history: F,
|
|
129
130
|
toast: U,
|
|
130
131
|
startProgress: G,
|
|
131
132
|
stopProgress: J,
|
|
@@ -136,31 +137,31 @@ function Xo(u) {
|
|
|
136
137
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
137
138
|
[]
|
|
138
139
|
);
|
|
139
|
-
return /* @__PURE__ */ o(mo, { ...Q, children: /* @__PURE__ */ o(lo, { ...V, children: /* @__PURE__ */ o(po, { axiosOperation: O, children: /* @__PURE__ */ o(Io, { value: y, children: /* @__PURE__ */ o(
|
|
140
|
+
return /* @__PURE__ */ o(mo, { ...Q, children: /* @__PURE__ */ o(lo, { ...V, children: /* @__PURE__ */ o(po, { axiosOperation: O, children: /* @__PURE__ */ o(Io, { value: y, children: /* @__PURE__ */ o(Co, { value: y, children: /* @__PURE__ */ o(
|
|
140
141
|
Y,
|
|
141
142
|
{
|
|
142
|
-
history:
|
|
143
|
+
history: F,
|
|
143
144
|
future: { v7_startTransition: !0, v7_relativeSplatPath: !0 },
|
|
144
|
-
children: /* @__PURE__ */ o(to, { forcedDeviceType:
|
|
145
|
-
|
|
145
|
+
children: /* @__PURE__ */ o(to, { forcedDeviceType: N, children: /* @__PURE__ */ o(co, { children: /* @__PURE__ */ o(ro, { children: /* @__PURE__ */ o(bo, { children: /* @__PURE__ */ o(yo, { user: i, pwd: s, children: /* @__PURE__ */ o(io, { isMicroFrontEnd: !1, getLocaleFromNetwork: so, children: /* @__PURE__ */ o(
|
|
146
|
+
go,
|
|
146
147
|
{
|
|
147
148
|
moduleId: P,
|
|
148
149
|
privileges: E,
|
|
149
150
|
skeletonFlags: S,
|
|
150
151
|
componentsDictionary: M,
|
|
151
152
|
moduleNameField: C,
|
|
152
|
-
moduleDictionaryLoaded:
|
|
153
|
-
children: /* @__PURE__ */ o(_o, { moduleId: P, children: /* @__PURE__ */
|
|
153
|
+
moduleDictionaryLoaded: H,
|
|
154
|
+
children: /* @__PURE__ */ o(_o, { moduleId: P, children: /* @__PURE__ */ w(no, { children: [
|
|
154
155
|
/* @__PURE__ */ o(ko, {}),
|
|
155
|
-
/* @__PURE__ */ o(wo, { containerId:
|
|
156
|
+
/* @__PURE__ */ o(wo, { containerId: k }),
|
|
156
157
|
" ",
|
|
157
158
|
/* @__PURE__ */ o(
|
|
158
|
-
|
|
159
|
+
Eo,
|
|
159
160
|
{
|
|
160
161
|
hostRuntime: W,
|
|
161
162
|
resolveHostRuntime: $,
|
|
162
163
|
children: /* @__PURE__ */ o(
|
|
163
|
-
|
|
164
|
+
Fo,
|
|
164
165
|
{
|
|
165
166
|
baseZindex: 1e3,
|
|
166
167
|
storeId: I,
|
|
@@ -172,9 +173,9 @@ function Xo(u) {
|
|
|
172
173
|
storeDevtoolsEnabled: b,
|
|
173
174
|
onLoad: T,
|
|
174
175
|
loadAreasFromNetwork: x,
|
|
175
|
-
loadCookiesFromNetwork:
|
|
176
|
-
children: /* @__PURE__ */
|
|
177
|
-
D && /* @__PURE__ */ o(
|
|
176
|
+
loadCookiesFromNetwork: B,
|
|
177
|
+
children: /* @__PURE__ */ w(fo, { children: [
|
|
178
|
+
D && /* @__PURE__ */ o(Lo, {}),
|
|
178
179
|
/* @__PURE__ */ o(Ao, { children: v })
|
|
179
180
|
] })
|
|
180
181
|
}
|
|
@@ -185,10 +186,10 @@ function Xo(u) {
|
|
|
185
186
|
)
|
|
186
187
|
] }) })
|
|
187
188
|
}
|
|
188
|
-
) }) }) }) }) })
|
|
189
|
+
) }) }) }) }) }) })
|
|
189
190
|
}
|
|
190
191
|
) }) }) }) }) });
|
|
191
192
|
}
|
|
192
193
|
export {
|
|
193
|
-
|
|
194
|
+
oe as MFIsolationApp
|
|
194
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":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDA6C9C"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { format as
|
|
4
|
-
import { useAuth as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ o("div", { children: "Pendiente por autenticarse" });
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as a } from "react";
|
|
3
|
+
import { format as u } from "date-fns";
|
|
4
|
+
import { useAuth as l, DomainCountryProvider as y } from "@m4l/core";
|
|
5
|
+
import { FormatterProvider as _ } from "@m4l/graphics";
|
|
6
|
+
function g(n) {
|
|
7
|
+
const { children: c, user: d, pwd: m } = n, { isAuthenticated: o, isInitialized: t, login: s, user: i } = l();
|
|
8
|
+
if (a(() => {
|
|
9
|
+
t && o === !1 && s(d, m, !1);
|
|
10
|
+
}, [t, o]), !o)
|
|
11
|
+
return /* @__PURE__ */ e("div", { children: "Pendiente por autenticarse" });
|
|
13
12
|
const r = {
|
|
14
13
|
id: 1,
|
|
15
14
|
currency: "USD",
|
|
@@ -17,31 +16,21 @@ function D(s) {
|
|
|
17
16
|
decimal_symbol: ".",
|
|
18
17
|
thousands_symbol: ","
|
|
19
18
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return /* @__PURE__ */ o(
|
|
23
|
-
C,
|
|
19
|
+
return i?.domainCountry && (r.id = i?.domainCountry.id ?? r.id, r.currency = i?.domainCountry.currency ?? r.currency, r.currency_decimal_digits = i?.domainCountry.currency_decimal_digits ?? r.currency_decimal_digits, r.decimal_symbol = i?.domainCountry.decimal_symbol ?? r.decimal_symbol, r.thousands_symbol = i?.domainCountry?.thousands_symbol ?? r.thousands_symbol), /* @__PURE__ */ e(y, { ...r, isMicroFrontEnd: !1, children: /* @__PURE__ */ e(
|
|
20
|
+
_,
|
|
24
21
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
currencyFormatter: {
|
|
36
|
-
code: r.currency,
|
|
37
|
-
decimalDigits: r.currency_decimal_digits
|
|
38
|
-
},
|
|
39
|
-
children: m
|
|
40
|
-
}
|
|
41
|
-
) })
|
|
22
|
+
isMicroFrontEnd: !1,
|
|
23
|
+
dateFormatter: {
|
|
24
|
+
formatDate: u
|
|
25
|
+
},
|
|
26
|
+
currencyFormatter: {
|
|
27
|
+
code: r.currency,
|
|
28
|
+
decimalDigits: r.currency_decimal_digits
|
|
29
|
+
},
|
|
30
|
+
children: c
|
|
42
31
|
}
|
|
43
|
-
);
|
|
32
|
+
) });
|
|
44
33
|
}
|
|
45
34
|
export {
|
|
46
|
-
|
|
35
|
+
g as MFAuthApp
|
|
47
36
|
};
|
package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type MFIsolationThemeBridgeProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Bridge the isolation theme-settings store into the shared host theme provider.
|
|
7
|
+
*/
|
|
8
|
+
export declare function MFIsolationThemeBridge(props: MFIsolationThemeBridgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MFIsolationThemeBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MFIsolationThemeBridge.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,oDAaxE"}
|
package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { shallow as n } from "zustand/shallow";
|
|
3
|
+
import { useThemeSettingsStore as m, HostThemeProvider as s } from "@m4l/graphics";
|
|
4
|
+
import { fnComponentsOverrides as h } from "@m4l/styles";
|
|
5
|
+
function l(o) {
|
|
6
|
+
const { children: e } = o, t = m((r) => r.themeOptions, n);
|
|
7
|
+
return /* @__PURE__ */ i(
|
|
8
|
+
s,
|
|
9
|
+
{
|
|
10
|
+
isMicroFrontEnd: !0,
|
|
11
|
+
hostThemeOptions: t,
|
|
12
|
+
fnComponentsOverrides: h,
|
|
13
|
+
children: e
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
l as MFIsolationThemeBridge
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.24.0-beta-feature-731-m4l-components-code-editor.
|
|
3
|
+
"version": "9.24.0-beta-feature-731-m4l-components-code-editor.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"nprogress": "0.2.0",
|
|
55
55
|
"react-transition-group": "4.4.5",
|
|
56
56
|
"react-color": "2.19.3",
|
|
57
|
-
"@mui/x-date-pickers": "6.20.2",
|
|
58
57
|
"react-rnd": "10.5.2",
|
|
58
|
+
"@mui/x-date-pickers": "6.20.2",
|
|
59
59
|
"react-draggable": "4.5.0",
|
|
60
|
-
"react-dropzone": "14.4.1",
|
|
61
60
|
"react-spinners": "0.13.8",
|
|
62
61
|
"date-fns": "2.30.0",
|
|
62
|
+
"react-dropzone": "14.4.1",
|
|
63
|
+
"simplebar-react": "3.2.6",
|
|
64
|
+
"react-simple-code-editor": "0.14.1",
|
|
65
|
+
"react-resizable-panels": "2.1.9",
|
|
63
66
|
"chart.js": "4.5.1",
|
|
64
67
|
"chartjs-chart-error-bars": "4.4.5",
|
|
65
68
|
"qrcode.react": "3.2.0",
|
|
66
|
-
"simplebar-react": "3.2.6",
|
|
67
|
-
"react-resizable-panels": "2.1.9",
|
|
68
|
-
"react-simple-code-editor": "0.14.1",
|
|
69
69
|
"react-data-grid": "7.0.0-beta.47",
|
|
70
70
|
"react-dnd": "16.0.1",
|
|
71
71
|
"react-dnd-html5-backend": "16.0.1",
|