@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.
Files changed (55) hide show
  1. package/components/AppBar/AppBar.d.ts.map +1 -1
  2. package/components/AppBar/AppBar.js +36 -29
  3. package/components/AppBar/types.d.ts +2 -2
  4. package/components/AppBar/types.d.ts.map +1 -1
  5. package/components/GridLayout/subcomponents/GridItem/index.d.ts.map +1 -1
  6. package/components/GridLayout/subcomponents/GridItem/index.js +21 -20
  7. package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
  8. package/components/MFIsolationApp/MFIsolationApp.js +91 -88
  9. package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.d.ts.map +1 -1
  10. package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +35 -24
  11. package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts +5 -0
  12. package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts.map +1 -0
  13. package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js +14 -0
  14. package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts +2 -0
  15. package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts.map +1 -0
  16. package/components/MFLoader/MFLoader.d.ts.map +1 -1
  17. package/components/MFLoader/MFLoader.js +39 -39
  18. package/components/MFLoader/types.d.ts +16 -0
  19. package/components/MFLoader/types.d.ts.map +1 -1
  20. package/components/SideBar/context/sideBarContext/index.d.ts.map +1 -1
  21. package/components/SideBar/context/sideBarContext/index.js +15 -14
  22. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +2 -1
  23. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts.map +1 -1
  24. package/components/SideBar/hooks/useCollapse/useCollapse.js +9 -9
  25. package/components/SideBar/index.d.ts +1 -1
  26. package/components/SideBar/index.d.ts.map +1 -1
  27. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
  28. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +1 -1
  29. package/components/SideBar/types.d.ts +8 -1
  30. package/components/SideBar/types.d.ts.map +1 -1
  31. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  32. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +66 -52
  33. package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
  34. package/components/areas/contexts/AreasContext/store.js +142 -141
  35. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -1
  36. package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +372 -230
  37. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -1
  38. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +175 -116
  39. package/components/extended/ReactSimpleCodeEditor/constants.d.ts +2 -1
  40. package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -1
  41. package/components/extended/ReactSimpleCodeEditor/constants.js +18 -17
  42. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +1 -0
  43. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -1
  44. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +1 -1
  45. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +4 -0
  46. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -1
  47. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +33 -27
  48. package/components/extended/ReactSimpleCodeEditor/types.d.ts +13 -0
  49. package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -1
  50. package/package.json +9 -9
  51. package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts +0 -10
  52. package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts.map +0 -1
  53. package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js +0 -19
  54. package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts +0 -2
  55. 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":"AAaA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAaxD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,qDAwExC,CAAC"}
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 p, jsx as a } from "@emotion/react/jsx-runtime";
2
- import { useEnvironment as T, useModuleDictionary as M } from "@m4l/core";
3
- import { useIsMobile as S } from "@m4l/graphics";
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 C } from "../../utils/getComponentSlotRoot.js";
6
- import { PATH_IMG_HAMBURGUER as y, APP_BAR_KEY as R } from "./constants.js";
7
- import { AppBarRootStyled as I, PrimarySectionStyled as N, MenuIconButtonStyled as P, ContentStyled as D, EndContentStyled as x } from "./slots/AppBarSlots.js";
8
- import { getNameDataTestId as u } from "./tests/utils.js";
9
- function O(e, n) {
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 w = (e) => {
12
+ const K = (e) => {
13
13
  const {
14
14
  onToggleVisible: n,
15
- onToggleAnchored: g,
15
+ onToggleAnchored: f,
16
16
  sidebarAnchored: r,
17
- children: b,
18
- content: h,
17
+ children: h,
18
+ content: b,
19
19
  endContent: i,
20
20
  dataTestid: _,
21
21
  orientation: l = "vertical",
22
22
  size: s,
23
- hasExpandedModule: f = !1
24
- } = e, o = S(), { host_static_assets: v, environment_assets: A } = T(), { getLabel: E } = M(), B = C(R), d = O(E, o), c = h ?? b, t = {
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: f,
26
+ hasExpandedModule: v,
27
27
  isMobile: o,
28
28
  orientation: l,
29
29
  sidebarAnchored: r,
30
30
  size: s
31
31
  };
32
- return /* @__PURE__ */ p(
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]: u(_) } : {},
45
+ ...process.env.NODE_ENV !== "production" ? { [m]: g(_) } : {},
39
46
  children: [
40
- /* @__PURE__ */ p(N, { ownerState: t, children: [
47
+ /* @__PURE__ */ u(N, { ownerState: t, children: [
41
48
  /* @__PURE__ */ a(
42
- P,
49
+ x,
43
50
  {
44
- "aria-label": d,
51
+ "aria-label": c,
45
52
  dataTestId: o ? "AppBarMobileMenuButton" : "AppBarAnchoredButton",
46
- onClick: o ? n : g,
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: `${v}/${A}/${y}`,
52
- tooltip: d,
58
+ src: `${A}/${E}/${R}`,
59
+ tooltip: c,
53
60
  variant: "outline",
54
61
  color: "default"
55
62
  }
56
63
  ),
57
- c ? /* @__PURE__ */ a(
58
- D,
64
+ d ? /* @__PURE__ */ a(
65
+ O,
59
66
  {
60
67
  ownerState: t,
61
- ...process.env.NODE_ENV !== "production" ? { [m]: u("containerChilds") } : {},
62
- children: c
68
+ ...process.env.NODE_ENV !== "production" ? { [m]: g("containerChilds") } : {},
69
+ children: d
63
70
  }
64
71
  ) : null
65
72
  ] }),
66
- i ? /* @__PURE__ */ a(x, { ownerState: t, children: i }) : null
73
+ i ? /* @__PURE__ */ a(L, { ownerState: t, children: i }) : null
67
74
  ]
68
75
  }
69
76
  );
70
77
  };
71
78
  export {
72
- w as AppBar
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,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;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
+ {"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,oDAskB5C;AACD,eAAO,MAAM,iBAAiB,4CAE5B,CAAC"}
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: p,
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: f = Qe,
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 / f, l = o.left / f, E = i.top / f, I = o.top / f;
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: h, y: q } = V(
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(p, h, q, {
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: h } = t;
156
- if (h) {
157
- const q = h.clientHeight - le(
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, _((h) => ({ ...h, 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(p, E, I, {
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(p, i, s, {
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
- _((h) => ({
217
- ...h,
216
+ _((p) => ({
217
+ ...p,
218
218
  resizing: I
219
- })), u.current.resizing = I, o(p, i, s, { e: n, node: t, size: r });
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(p);
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: f,
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
- f,
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: f,
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, f, k, m]
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: p }), [N, p]), We = De(Te(/* @__PURE__ */ L(
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,oDAmLxD"}
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 w } from "@emotion/react/jsx-runtime";
2
- import { useMemo as h, useCallback as A, useId as X } from "react";
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 _ from "nprogress";
7
- import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as io, getLocaleFromNetwork as so, AppearanceComponentProvider as no } from "@m4l/graphics";
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 { MFIsolationThemeBridge as bo } from "./subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js";
14
- import { MFAuthApp as yo } from "./subcomponents/MFAuthApp/MFAuthApp.js";
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 Fo } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
19
- import { AreasProvider as Ro } from "../areas/contexts/AreasContext/index.js";
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 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(), {
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(() => s ? s({
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
- }) ?? i : i, [
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: i,
53
- pwd: s,
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: R,
62
+ host_static_assets: F,
63
63
  environment_assets: L,
64
- moduleId: P,
64
+ moduleId: I,
65
65
  skeletonFlags: S,
66
- moduleNameField: C,
67
- privileges: E,
68
- componentsDictionary: M,
69
- onLoad: T,
70
- activeAreasNetwork: x = !1,
71
- activeCookiesFromNetwork: B = !1,
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: H,
73
+ moduleDictionaryLoaded: B,
74
74
  forcedDeviceType: N,
75
- areasStoreId: I,
76
- areasStoreDevtoolsEnabled: b,
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: y,
81
+ observability: g,
82
82
  resolveHostRuntime: $
83
- } = u, g = a ?? m ?? "", c = d ?? f ?? "", K = l ?? p ?? `${c}/main/icons`, e = h(() => new eo(), []), Z = A(
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 = A(
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 = A(
97
+ ), z = _(
98
98
  (t, r) => {
99
99
  e.emit(t, r);
100
100
  },
101
101
  [e]
102
102
  ), G = () => {
103
- _.configure({
103
+ P.configure({
104
104
  showSpinner: !0
105
- }), _.start();
105
+ }), P.start();
106
106
  }, J = () => {
107
- _.done();
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: g,
116
- hostApiLocal: g,
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: R,
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
- ), k = X(), U = Po(k), V = h(
127
+ ), w = X(), U = Po(w), V = h(
128
128
  () => ({
129
- history: F,
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: y, children: /* @__PURE__ */ o(Co, { 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: g, children: /* @__PURE__ */ o(To, { value: g, children: /* @__PURE__ */ o(
141
141
  Y,
142
142
  {
143
- history: F,
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(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,
147
- {
148
- moduleId: P,
149
- privileges: E,
150
- skeletonFlags: S,
151
- componentsDictionary: M,
152
- moduleNameField: C,
153
- moduleDictionaryLoaded: H,
154
- children: /* @__PURE__ */ o(_o, { moduleId: P, children: /* @__PURE__ */ w(no, { children: [
155
- /* @__PURE__ */ o(ko, {}),
156
- /* @__PURE__ */ o(wo, { containerId: k }),
157
- " ",
158
- /* @__PURE__ */ o(
159
- Eo,
160
- {
161
- hostRuntime: W,
162
- resolveHostRuntime: $,
163
- children: /* @__PURE__ */ o(
164
- Fo,
165
- {
166
- baseZindex: 1e3,
167
- storeId: I,
168
- storeDevtoolsEnabled: b,
169
- children: /* @__PURE__ */ o(
170
- Ro,
171
- {
172
- storeId: I,
173
- storeDevtoolsEnabled: b,
174
- onLoad: T,
175
- loadAreasFromNetwork: x,
176
- loadCookiesFromNetwork: B,
177
- children: /* @__PURE__ */ w(fo, { children: [
178
- D && /* @__PURE__ */ o(Lo, {}),
179
- /* @__PURE__ */ o(Ao, { children: v })
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":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDA6C9C"}
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 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" });
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
- 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
- _,
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
- isMicroFrontEnd: !1,
23
- dateFormatter: {
24
- formatDate: u
25
- },
26
- currencyFormatter: {
27
- code: r.currency,
28
- decimalDigits: r.currency_decimal_digits
29
- },
30
- children: c
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
- g as MFAuthApp
46
+ D as MFAuthApp
36
47
  };