@m4l/layouts 9.4.2 → 9.4.3-beta-feature-701-create-extended-library.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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "@emotion/react/jsx-runtime";
2
2
  import { unstable_HistoryRouter as T } from "react-router-dom";
3
3
  import { EnvironmentProvider as f, HostToolsProvider as H, NetworkProvider as b, AuthProvider as g, DomainCountryProvider as E } from "@m4l/core";
4
- import { DeviceTypeProvider as D, LocalesProvider as R, HostThemeProvider as _, FormatterProvider as w } from "@m4l/graphics";
5
- import { projectMFHostRuntimeTools as A, BaseModule as S, WindowToolsMFProvider as x, MFHostRuntimeToolsProvider as j, DynamicMFParmsProvider as k, AppearanceComponentProvider as C } from "@m4l/components";
4
+ import { DeviceTypeProvider as D, LocalesProvider as R, HostThemeProvider as _, FormatterProvider as w, AppearanceComponentProvider as A } from "@m4l/graphics";
5
+ import { projectMFHostRuntimeTools as S, BaseModule as x, WindowToolsMFProvider as j, MFHostRuntimeToolsProvider as k, DynamicMFParmsProvider as C } from "@m4l/components";
6
6
  function U(t) {
7
7
  const {
8
8
  children: n,
@@ -23,7 +23,7 @@ function U(t) {
23
23
  hostRuntime: p,
24
24
  // overrideContainerStyles,
25
25
  loggedUser: P
26
- } = t, M = A(p);
26
+ } = t, M = S(p);
27
27
  return /* @__PURE__ */ r(f, { ...c, children: /* @__PURE__ */ r(H, { ...e, children: /* @__PURE__ */ r(b, { axiosOperation: m, children: /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(g, { isMicroFrontEnd: !0, loggedUser: P, children: /* @__PURE__ */ r(R, { isMicroFrontEnd: !0, localeHost: d, children: /* @__PURE__ */ r(_, { isMicroFrontEnd: !0, ...s, children: /* @__PURE__ */ r(
28
28
  T,
29
29
  {
@@ -38,7 +38,7 @@ function U(t) {
38
38
  decimal_symbol: o.numberFormatter.decimalSymbol,
39
39
  thousands_symbol: o.numberFormatter.thousandsSymbol,
40
40
  children: /* @__PURE__ */ r(
41
- S,
41
+ x,
42
42
  {
43
43
  isAuth: l,
44
44
  moduleId: a,
@@ -46,11 +46,11 @@ function U(t) {
46
46
  componentsDictionary: v,
47
47
  skeletonFlags: h,
48
48
  privileges: F,
49
- children: /* @__PURE__ */ r(w, { isMicroFrontEnd: !0, ...o, children: /* @__PURE__ */ r(x, { ...y, children: /* @__PURE__ */ r(
50
- j,
49
+ children: /* @__PURE__ */ r(w, { isMicroFrontEnd: !0, ...o, children: /* @__PURE__ */ r(j, { ...y, children: /* @__PURE__ */ r(
50
+ k,
51
51
  {
52
52
  value: M,
53
- children: /* @__PURE__ */ r(k, { store: i, children: /* @__PURE__ */ r(C, { children: n }) })
53
+ children: /* @__PURE__ */ r(C, { store: i, children: /* @__PURE__ */ r(A, { children: n }) })
54
54
  }
55
55
  ) }) })
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useModuleDatailTabs.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/ModuleDetailTabs/useModuleDatailTabs.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjE,KAAK,yBAAyB,CAC5B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACjD;IACF,0BAA0B,EAAE,OAAO,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,GAAG,SAAS,CAAC;IAC1B,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,KAAK,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,CAsJrE"}
1
+ {"version":3,"file":"useModuleDatailTabs.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/ModuleDetailTabs/useModuleDatailTabs.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjE,KAAK,yBAAyB,CAC5B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACjD;IACF,0BAA0B,EAAE,OAAO,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,GAAG,SAAS,CAAC;IAC1B,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,KAAK,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,CAsJrE"}
@@ -2,16 +2,17 @@ import { jsx as S } from "@emotion/react/jsx-runtime";
2
2
  import { useState as r, useCallback as L, useMemo as O, useEffect as m } from "react";
3
3
  import { useMasterDetail as k } from "../../hooks/useMasterDetail/index.js";
4
4
  import { useModuleDictionary as w, useNetwork as N } from "@m4l/core";
5
- import { useWindowToolsMF as $, ObjectLogs as A, Icon as F } from "@m4l/components";
6
- function B(I) {
7
- const { tabs: b, defaultTab: i, urlAssetsPrefix: p, objectLogsProps: s, getEndPoint: c } = I, [u, l] = r(i), [d, P] = r(void 0), [f, C] = r(void 0), [j, g] = r(!0), [_, h] = r(0), { masterSelection: e } = k(), { getLabel: v } = w(), { startProgress: T, stopProgress: y } = $(), { networkOperation: D } = N(), x = (o) => {
5
+ import { useWindowToolsMF as $, ObjectLogs as A } from "@m4l/components";
6
+ import { Icon as F } from "@m4l/base";
7
+ function G(I) {
8
+ const { tabs: p, defaultTab: i, urlAssetsPrefix: b, objectLogsProps: s, getEndPoint: c } = I, [u, l] = r(i), [d, P] = r(void 0), [f, C] = r(void 0), [j, g] = r(!0), [_, h] = r(0), { masterSelection: e } = k(), { getLabel: v } = w(), { startProgress: T, stopProgress: y } = $(), { networkOperation: D } = N(), x = (o) => {
8
9
  l(o);
9
10
  }, E = L(() => {
10
11
  h((o) => o + 1);
11
12
  }, [h]), n = O(() => {
12
13
  if (e === void 0 || e.length === 0)
13
14
  return [];
14
- const o = [...b];
15
+ const o = [...p];
15
16
  if (s) {
16
17
  const t = {
17
18
  ...s.type === "other" ? {
@@ -36,10 +37,10 @@ function B(I) {
36
37
  return o.map((t) => ({
37
38
  ...t,
38
39
  unmountable: t.unmountable === void 0 ? !0 : t.unmountable,
39
- icon: typeof t.icon == "string" ? /* @__PURE__ */ S(F, { src: `${p}${t.icon}` }) : t.icon,
40
+ icon: typeof t.icon == "string" ? /* @__PURE__ */ S(F, { src: `${b}${t.icon}` }) : t.icon,
40
41
  label: t.dictionaryId ? v(t.dictionaryId) : void 0
41
42
  })).filter((t) => t.visibilityCondition ? t.visibilityCondition(d, f) : !0);
42
- }, [e, b, s, p, v, d, f]);
43
+ }, [e, p, s, b, v, d, f]);
43
44
  m(() => {
44
45
  e === void 0 || e.length === 0 || P(e[0]);
45
46
  }, [e]), m(() => {
@@ -75,5 +76,5 @@ function B(I) {
75
76
  };
76
77
  }
77
78
  export {
78
- B as useModuleDetailTabs
79
+ G as useModuleDetailTabs
79
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,qDAoElD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,qDAoElD,CAAC"}
@@ -1,18 +1,20 @@
1
1
  import { jsxs as t, Fragment as C, jsx as e } from "@emotion/react/jsx-runtime";
2
- import { useComponentSize as _, LanguagePopover as v, IconButton as L, Typography as s, Stack as k } from "@m4l/components";
3
- import { DesktopBackgroundStyled as f, WrapperFormContentStyled as O, HeaderContainerStyled as U, ButtonHomeNavigationStyled as b, ContainerLanguageAndSettingsStyled as N, ContainerCompanyLogoStyled as A, ImageComponayLogoStyled as I, FormContentStyled as T, ContainerModuleNameStyled as B } from "../../../../slots/NoAuthModuleLayoutSlots.js";
2
+ import { LanguagePopover as _, IconButton as v, Stack as L } from "@m4l/components";
3
+ import { useComponentSize as f } from "@m4l/graphics";
4
+ import { Typography as s } from "@m4l/base";
5
+ import { DesktopBackgroundStyled as k, WrapperFormContentStyled as O, HeaderContainerStyled as U, ButtonHomeNavigationStyled as b, ContainerLanguageAndSettingsStyled as N, ContainerCompanyLogoStyled as A, ImageComponayLogoStyled as I, FormContentStyled as T, ContainerModuleNameStyled as B } from "../../../../slots/NoAuthModuleLayoutSlots.js";
4
6
  import { useLocation as $, useNavigate as x } from "react-router-dom";
5
7
  import { useEnvironment as D, useBase as E, useModuleDictionary as H } from "@m4l/core";
6
8
  import { NO_AUTH_MODULE_LAYOUT_CLASSES as M, NOT_AUTH_MODULE_LAYOUT_ICONS as l, DICTIONARY_KEYS as Y } from "../../../../constants.js";
7
- const K = (c) => {
8
- const { children: m, backgroundLoginUrl: d } = c, { host_static_assets: n, environment_assets: r } = D(), { currentSize: h } = _(), u = $(), { handleSetting: g, companyLogoUrl: p, footerComponent: a, homePath: i } = E(), S = x(), y = {
9
+ const q = (c) => {
10
+ const { children: m, backgroundLoginUrl: d } = c, { host_static_assets: n, environment_assets: r } = D(), { currentSize: h } = f(), p = $(), { handleSetting: u, companyLogoUrl: g, footerComponent: a, homePath: i } = E(), S = x(), y = {
9
11
  size: h
10
12
  }, { getLabel: o } = H();
11
13
  return /* @__PURE__ */ t(C, { children: [
12
- /* @__PURE__ */ e(f, { enableIntersectionObserver: !1, src: d, className: M.desktopBackground }),
14
+ /* @__PURE__ */ e(k, { enableIntersectionObserver: !1, src: d, className: M.desktopBackground }),
13
15
  /* @__PURE__ */ t(O, { children: [
14
16
  /* @__PURE__ */ t(U, { children: [
15
- u.pathname !== i && /* @__PURE__ */ e(
17
+ p.pathname !== i && /* @__PURE__ */ e(
16
18
  b,
17
19
  {
18
20
  variant: "text",
@@ -25,20 +27,20 @@ const K = (c) => {
25
27
  }
26
28
  ),
27
29
  /* @__PURE__ */ t(N, { children: [
28
- /* @__PURE__ */ e(v, {}),
30
+ /* @__PURE__ */ e(_, {}),
29
31
  /* @__PURE__ */ e(
30
- L,
32
+ v,
31
33
  {
32
34
  icon: `${n}/${r}/${l.themeSettings}`,
33
35
  variant: "text",
34
36
  onClick: () => {
35
- g?.();
37
+ u?.();
36
38
  }
37
39
  }
38
40
  )
39
41
  ] })
40
42
  ] }),
41
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(I, { src: p }) }),
43
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(I, { src: g }) }),
42
44
  /* @__PURE__ */ t(T, { children: [
43
45
  /* @__PURE__ */ t(B, { children: [
44
46
  /* @__PURE__ */ e(s, { variant: "h5", skeletonWidth: "20%", children: o("module_name") }),
@@ -51,12 +53,12 @@ const K = (c) => {
51
53
  }
52
54
  )
53
55
  ] }),
54
- /* @__PURE__ */ e(k, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children: m })
56
+ /* @__PURE__ */ e(L, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children: m })
55
57
  ] }),
56
58
  a && a
57
59
  ] })
58
60
  ] });
59
61
  };
60
62
  export {
61
- K as BaseContent
63
+ q as BaseContent
62
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.4.2",
3
+ "version": "9.4.3-beta-feature-701-create-extended-library.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1 +1 @@
1
- {"version":3,"file":"TestAppWrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/TestAppWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAsB,MAAM,eAAe,CAAC;AAK/D,UAAU,mBAAmB;IAC3B,gBAAgB,CAAC,EAAC,UAAU,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AACD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAYlD,CAAC;AACF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TestAppWrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/TestAppWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAA+B,UAAU,EAAsB,MAAM,eAAe,CAAC;AAI5F,UAAU,mBAAmB;IAC3B,gBAAgB,CAAC,EAAC,UAAU,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AACD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAYlD,CAAC;AACF,eAAe,cAAc,CAAC"}