@m4l/components 9.78.0 → 9.78.1-beta-pkg-806-ajustes-mf-55.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 +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;AAuEjB;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,oDAkLxD"}
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;AAuEjB;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,oDAoLxD"}
@@ -4,69 +4,69 @@ 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 P from "nprogress";
7
- import { DeviceTypeProvider as to, ThemeSettingsProvider as ro, LocalesProvider as so, getLocaleFromNetwork as io, AppearanceComponentProvider as no } from "@m4l/graphics";
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 { MFAuthApp as bo } from "./subcomponents/MFAuthApp/MFAuthApp.js";
14
- import { ThemeSettingsHostToolsBridge as go } from "./subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js";
15
- import { BaseModule as yo } from "../BaseModule/BaseModule.js";
13
+ import { MFAuthApp as go } from "./subcomponents/MFAuthApp/MFAuthApp.js";
14
+ import { ThemeSettingsHostToolsBridge as yo } from "./subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js";
15
+ import { BaseModule as bo } 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
18
  import { PopupsProvider as Ro } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
19
19
  import { AreasProvider as So } from "../areas/contexts/AreasContext/index.js";
20
- import { AppBarSettings as Fo } from "./subcomponents/AppBarSettings/AppBarSettings.js";
21
- import { HostRuntimeProvider as Lo } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
22
- import { MFObservabilityProvider as To } from "../WindowBase/contexts/MFObservabilityContext/MFObservabilityContext.js";
20
+ import { AppBarSettings as Co } from "./subcomponents/AppBarSettings/AppBarSettings.js";
21
+ import { HostRuntimeProvider as Fo } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
22
+ import { MFObservabilityProvider as Lo } from "../WindowBase/contexts/MFObservabilityContext/MFObservabilityContext.js";
23
23
  const R = oo({ window });
24
- function Co(u) {
25
- const { children: v, hostRuntime: i, resolveHostRuntime: n } = u, { user: t } = ho(), {
24
+ function To(u) {
25
+ const { children: v, hostRuntime: s, resolveHostRuntime: n } = u, { user: t } = ho(), {
26
26
  database: a,
27
27
  hostApiIcons: m,
28
28
  hostApiLocal: l,
29
- hostApiRemote: p
30
- } = uo(), { networkOperation: c } = vo(), f = h(() => n ? n({
29
+ hostApiRemote: d
30
+ } = uo(), { networkOperation: p } = vo(), f = h(() => n ? n({
31
31
  accountId: t?.accountId?.toString(),
32
32
  database: a,
33
33
  hostApiIcons: m,
34
34
  hostApiLocal: l,
35
- hostApiRemote: p,
36
- networkOperation: c,
35
+ hostApiRemote: d,
36
+ networkOperation: p,
37
37
  sessionId: t?.sessionId
38
- }) ?? i : i, [
38
+ }) ?? s : s, [
39
39
  a,
40
40
  m,
41
41
  l,
42
+ d,
43
+ s,
42
44
  p,
43
- i,
44
- c,
45
45
  n,
46
46
  t?.accountId,
47
47
  t?.sessionId
48
48
  ]);
49
- return /* @__PURE__ */ o(Lo, { value: f, children: v });
49
+ return /* @__PURE__ */ o(Fo, { value: f, children: v });
50
50
  }
51
51
  function oe(u) {
52
52
  const {
53
53
  children: v,
54
- user: i,
54
+ user: s,
55
55
  pwd: n,
56
56
  database: t = "domain",
57
57
  // 'domain
58
58
  hostApiLocal: a,
59
59
  host_api_local: m,
60
60
  hostApiIcons: l,
61
- host_api_icons: p,
62
- hostApiRemote: c,
61
+ host_api_icons: d,
62
+ hostApiRemote: p,
63
63
  host_api_remote: f,
64
64
  host_static_assets: S,
65
- environment_assets: F,
65
+ environment_assets: C,
66
66
  moduleId: I,
67
- skeletonFlags: L,
68
- moduleNameField: T,
69
- privileges: C,
67
+ skeletonFlags: F,
68
+ moduleNameField: L,
69
+ privileges: T,
70
70
  componentsDictionary: E,
71
71
  onLoad: H,
72
72
  activeAreasNetwork: M = !1,
@@ -74,31 +74,31 @@ function oe(u) {
74
74
  // observedDivRef,
75
75
  moduleDictionaryLoaded: B,
76
76
  forcedDeviceType: N,
77
- areasStoreId: b,
78
- areasStoreDevtoolsEnabled: g,
77
+ areasStoreId: g,
78
+ areasStoreDevtoolsEnabled: y,
79
79
  appBarSettings: D = !0,
80
80
  axiosOperation: O = ao,
81
81
  googleMapsApiKey: j,
82
82
  hostRuntime: W,
83
- observability: y,
83
+ observability: b,
84
84
  resolveHostRuntime: $
85
- } = u, k = a ?? m ?? "", d = c ?? f ?? "", K = l ?? p ?? `${d}/main/icons`, e = h(() => new eo(), []), Z = _(
86
- (r, s) => {
87
- e.on(r, s);
85
+ } = u, k = a ?? m ?? "", c = p ?? f ?? "", K = l ?? d ?? `${c}/main/icons`, e = h(() => new eo(), []), Z = _(
86
+ (r, i) => {
87
+ e.on(r, i);
88
88
  },
89
89
  [e]
90
90
  ), q = _(
91
- (r, s) => {
92
- if (s === null) {
91
+ (r, i) => {
92
+ if (i === null) {
93
93
  e.removeListener(r);
94
94
  return;
95
95
  }
96
- e.removeListener(r, s);
96
+ e.removeListener(r, i);
97
97
  },
98
98
  [e]
99
99
  ), z = _(
100
- (r, s) => {
101
- e.emit(r, s);
100
+ (r, i) => {
101
+ e.emit(r, i);
102
102
  },
103
103
  [e]
104
104
  ), G = () => {
@@ -116,11 +116,11 @@ function oe(u) {
116
116
  database: t,
117
117
  host_api_local: k,
118
118
  hostApiLocal: k,
119
- host_api_remote: d,
120
- hostApiRemote: d,
121
- hostRemote: d,
119
+ host_api_remote: c,
120
+ hostApiRemote: c,
121
+ hostRemote: c,
122
122
  host_static_assets: S,
123
- environment_assets: F,
123
+ environment_assets: C,
124
124
  hostApiIcons: K,
125
125
  googleMapsApiKey: j
126
126
  }),
@@ -134,33 +134,37 @@ function oe(u) {
134
134
  stopProgress: J,
135
135
  events_add_listener: Z,
136
136
  events_remove_listener: q,
137
+ getCookie: async () => {
138
+ },
139
+ setCookie: () => {
140
+ },
137
141
  events_emit: z
138
142
  }),
139
143
  // eslint-disable-next-line react-hooks/exhaustive-deps
140
144
  []
141
145
  );
142
- 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(To, { value: y, children: /* @__PURE__ */ o(
146
+ return /* @__PURE__ */ o(mo, { ...Q, children: /* @__PURE__ */ o(lo, { ...V, children: /* @__PURE__ */ o(po, { axiosOperation: O, children: /* @__PURE__ */ o(Io, { value: b, children: /* @__PURE__ */ o(Lo, { value: b, children: /* @__PURE__ */ o(
143
147
  Y,
144
148
  {
145
149
  history: R,
146
150
  future: { v7_startTransition: !0, v7_relativeSplatPath: !0 },
147
- children: /* @__PURE__ */ o(to, { forcedDeviceType: N, children: /* @__PURE__ */ o(co, { children: /* @__PURE__ */ o(bo, { user: i, pwd: n, children: /* @__PURE__ */ A(ro, { children: [
148
- /* @__PURE__ */ o(go, {}),
149
- /* @__PURE__ */ o(so, { isMicroFrontEnd: !1, getLocaleFromNetwork: io, children: /* @__PURE__ */ o(
150
- yo,
151
+ children: /* @__PURE__ */ o(to, { forcedDeviceType: N, children: /* @__PURE__ */ o(co, { children: /* @__PURE__ */ o(go, { user: s, pwd: n, children: /* @__PURE__ */ A(ro, { children: [
152
+ /* @__PURE__ */ o(yo, {}),
153
+ /* @__PURE__ */ o(io, { isMicroFrontEnd: !1, getLocaleFromNetwork: so, children: /* @__PURE__ */ o(
154
+ bo,
151
155
  {
152
156
  moduleId: I,
153
- privileges: C,
154
- skeletonFlags: L,
157
+ privileges: T,
158
+ skeletonFlags: F,
155
159
  componentsDictionary: E,
156
- moduleNameField: T,
160
+ moduleNameField: L,
157
161
  moduleDictionaryLoaded: B,
158
162
  children: /* @__PURE__ */ o(_o, { moduleId: I, children: /* @__PURE__ */ A(no, { children: [
159
163
  /* @__PURE__ */ o(ko, {}),
160
164
  /* @__PURE__ */ o(wo, { containerId: w }),
161
165
  " ",
162
166
  /* @__PURE__ */ o(
163
- Co,
167
+ To,
164
168
  {
165
169
  hostRuntime: W,
166
170
  resolveHostRuntime: $,
@@ -168,18 +172,18 @@ function oe(u) {
168
172
  Ro,
169
173
  {
170
174
  baseZindex: 1e3,
171
- storeId: b,
172
- storeDevtoolsEnabled: g,
175
+ storeId: g,
176
+ storeDevtoolsEnabled: y,
173
177
  children: /* @__PURE__ */ o(
174
178
  So,
175
179
  {
176
- storeId: b,
177
- storeDevtoolsEnabled: g,
180
+ storeId: g,
181
+ storeDevtoolsEnabled: y,
178
182
  onLoad: H,
179
183
  loadAreasFromNetwork: M,
180
184
  loadCookiesFromNetwork: x,
181
185
  children: /* @__PURE__ */ A(fo, { children: [
182
- D && /* @__PURE__ */ o(Fo, {}),
186
+ D && /* @__PURE__ */ o(Co, {}),
183
187
  /* @__PURE__ */ o(Ao, { children: v })
184
188
  ] })
185
189
  }
@@ -1,7 +1,7 @@
1
1
  import { createStore as D } from "zustand";
2
2
  import { devtools as N } from "zustand/middleware";
3
3
  import { immer as b } from "zustand/middleware/immer";
4
- import { getCookiesContainer as E, getDataFromResponse as R, getParmsFromValue as $, setColapsedLayoutBreakPoints as M, COOKIE_BREAKPOINT_LAYOUTS as B, DEBOUCED_SAVE_TIME as H, DEFAULT_WINDOW as O, MARGIN_GRIDLAYOUT as y, COOKIE_WINDOWS as U, deleteLayoutFromBreakPoints as G, RESPONSIVE_ROW_HEIGHTS as K, PADDING_GRIDLAYOUT as F, NORMALIZED_COLS as z, addArea as S, DEFAULT_AREA as Q, getSelectedAreaIdFromCookies as V, COOKIE_WINDOW_SELECTED as Y, COOKIE_AREAS_ADMIN_CONTAINER_ID as T, COOKIE_AREAS_ADMIN_ID as x } from "./helpers/helper.js";
4
+ import { getCookiesContainer as E, getDataFromResponse as R, getParmsFromValue as $, setColapsedLayoutBreakPoints as M, COOKIE_BREAKPOINT_LAYOUTS as B, DEBOUCED_SAVE_TIME as H, DEFAULT_WINDOW as O, MARGIN_GRIDLAYOUT as y, COOKIE_WINDOWS as U, deleteLayoutFromBreakPoints as G, RESPONSIVE_ROW_HEIGHTS as K, PADDING_GRIDLAYOUT as F, NORMALIZED_COLS as z, COOKIE_AREAS_ADMIN_CONTAINER_ID as S, COOKIE_AREAS_ADMIN_ID as T, addArea as x, DEFAULT_AREA as Q, getSelectedAreaIdFromCookies as V, COOKIE_WINDOW_SELECTED as Y } from "./helpers/helper.js";
5
5
  import { createDynamicMFStore as v } from "../../../WindowBase/contexts/DynamicMFParmsContext/store.js";
6
6
  import j from "lodash-es/cloneDeep";
7
7
  import q from "lodash-es/debounce";
@@ -48,8 +48,8 @@ const ee = (k, W) => {
48
48
  networkOperation: a().networkOperation,
49
49
  params: {
50
50
  f: [
51
- { n: "container_id", o: "e", o1: T },
52
- { n: "id", o: "e", o1: x }
51
+ { n: "container_id", o: "e", o1: S },
52
+ { n: "id", o: "e", o1: T }
53
53
  ]
54
54
  }
55
55
  }), o = a().networkOperation({
@@ -74,7 +74,7 @@ const ee = (k, W) => {
74
74
  d.hashAreas[l.id] = l, d.areasIds.push(l.id);
75
75
  }
76
76
  else
77
- S(d);
77
+ x(d);
78
78
  });
79
79
  }
80
80
  i.status === "fulfilled" && (s = V(i?.value));
@@ -93,7 +93,7 @@ const ee = (k, W) => {
93
93
  addArea: () => {
94
94
  let e = "";
95
95
  return n((o) => {
96
- e = S(o);
96
+ e = x(o);
97
97
  }), a().areasActions.selectArea(e), e;
98
98
  },
99
99
  /**
@@ -148,7 +148,7 @@ const ee = (k, W) => {
148
148
  o.hashAreas[e].status = "loaded";
149
149
  })), a().loadCookiesFromNetwork && I({
150
150
  networkOperation: a().networkOperation,
151
- endPoint: `${T}/${x}`,
151
+ endPoint: `${S}/${T}`,
152
152
  value: { selectedAreaId: e }
153
153
  }).catch(() => {
154
154
  });
package/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export * from './contexts/form';
9
9
  export * from './hooks';
10
10
  export * from './hocs';
11
11
  export * from './utils';
12
+ export { getCookie, setCookie } from './helpers/cookies';
13
+ export type { CookieParams, CookiesGetProps, CookiesPutProps } from './helpers/cookies/types';
12
14
  export * from './@types/types.d';
13
15
  export type { M4LOverridesStyleRules } from './@types/augmentations';
14
16
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/components/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/components/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC9F,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}