@m4l/components 9.80.1-beta-docs-autocomplete-async-with-add-mf-sync.0 → 9.81.0-beta-fix-reports-viewer-chart-tab-resize.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 (113) hide show
  1. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -1
  2. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -1
  3. package/components/MFLoader/MFLoader.d.ts.map +1 -1
  4. package/components/MFLoader/MFLoader.js +112 -124
  5. package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -1
  6. package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js +4 -9
  7. package/components/MFLoader/index.d.ts +1 -0
  8. package/components/MFLoader/index.d.ts.map +1 -1
  9. package/components/MFLoader/reportTypes.d.ts +19 -0
  10. package/components/MFLoader/reportTypes.d.ts.map +1 -0
  11. package/components/MFLoader/types.d.ts +3 -0
  12. package/components/MFLoader/types.d.ts.map +1 -1
  13. package/components/WindowBase/icons.d.ts +6 -0
  14. package/components/WindowBase/icons.d.ts.map +1 -1
  15. package/components/WindowBase/icons.js +20 -13
  16. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  17. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +47 -49
  18. package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
  19. package/components/areas/contexts/AreasContext/index.js +28 -29
  20. package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
  21. package/components/extended/mui/Autocomplete/Autocomplete.js +54 -55
  22. package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
  23. package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +72 -81
  24. package/components/extended/mui/Autocomplete/types.d.ts +1 -1
  25. package/components/extended/mui/Autocomplete/types.d.ts.map +1 -1
  26. package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts +9 -5
  27. package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts.map +1 -1
  28. package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.js +56 -87
  29. package/components/extended/mui/AutocompleteAsync/constants.d.ts +1 -4
  30. package/components/extended/mui/AutocompleteAsync/constants.d.ts.map +1 -1
  31. package/components/extended/mui/AutocompleteAsync/constants.js +12 -24
  32. package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.d.ts.map +1 -1
  33. package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.js +46 -47
  34. package/components/extended/mui/AutocompleteAsync/index.d.ts +1 -1
  35. package/components/extended/mui/AutocompleteAsync/index.d.ts.map +1 -1
  36. package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.d.ts.map +1 -1
  37. package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.js +28 -50
  38. package/components/extended/mui/AutocompleteAsync/types.d.ts +0 -47
  39. package/components/extended/mui/AutocompleteAsync/types.d.ts.map +1 -1
  40. package/components/extended/mui/AutocompleteAsync/types.js +2 -4
  41. package/components/extended/mui/MenuItem/MenuItem.d.ts.map +1 -1
  42. package/components/extended/mui/MenuItem/MenuItem.js +15 -13
  43. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +1 -1
  44. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -1
  45. package/components/hook-form/RHFAutocompleteAsync/index.d.ts.map +1 -1
  46. package/components/hook-form/index.d.ts +0 -1
  47. package/components/hook-form/index.d.ts.map +1 -1
  48. package/index.d.ts +0 -1
  49. package/index.d.ts.map +1 -1
  50. package/index.js +222 -235
  51. package/package.json +8 -8
  52. package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts +0 -6
  53. package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts.map +0 -1
  54. package/components/MFLoader/hooks/useMFCallbackLifecycle.js +0 -25
  55. package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts +0 -4
  56. package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts.map +0 -1
  57. package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts +0 -22
  58. package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts.map +0 -1
  59. package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts +0 -4
  60. package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts.map +0 -1
  61. package/components/areas/contexts/AreasContext/useMFActionLifecycle.js +0 -49
  62. package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts +0 -4
  63. package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts.map +0 -1
  64. package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.js +0 -23
  65. package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts +0 -9
  66. package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts.map +0 -1
  67. package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.js +0 -97
  68. package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts +0 -6
  69. package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts.map +0 -1
  70. package/components/extended/mui/AutocompleteAsync/slots/addStyled.js +0 -19
  71. package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts +0 -5
  72. package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts.map +0 -1
  73. package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts +0 -8
  74. package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts.map +0 -1
  75. package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts +0 -20
  76. package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts.map +0 -1
  77. package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts +0 -4
  78. package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts.map +0 -1
  79. package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts +0 -8
  80. package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts.map +0 -1
  81. package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts +0 -4
  82. package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts.map +0 -1
  83. package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts +0 -3
  84. package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts.map +0 -1
  85. package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts +0 -21
  86. package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts.map +0 -1
  87. package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts +0 -3
  88. package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts.map +0 -1
  89. package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts +0 -4
  90. package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts.map +0 -1
  91. package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts +0 -12
  92. package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts.map +0 -1
  93. package/utils/mfActions/constants.d.ts +0 -6
  94. package/utils/mfActions/constants.d.ts.map +0 -1
  95. package/utils/mfActions/constants.js +0 -8
  96. package/utils/mfActions/index.d.ts +0 -5
  97. package/utils/mfActions/index.d.ts.map +0 -1
  98. package/utils/mfActions/mfActions.d.ts +0 -10
  99. package/utils/mfActions/mfActions.d.ts.map +0 -1
  100. package/utils/mfActions/mfActions.js +0 -47
  101. package/utils/mfActions/openMFCallbackAction.d.ts +0 -4
  102. package/utils/mfActions/openMFCallbackAction.d.ts.map +0 -1
  103. package/utils/mfActions/openMFCallbackAction.js +0 -36
  104. package/utils/mfActions/tests/callbackHelpers.d.ts +0 -9
  105. package/utils/mfActions/tests/callbackHelpers.d.ts.map +0 -1
  106. package/utils/mfActions/tests/constants.d.ts +0 -6
  107. package/utils/mfActions/tests/constants.d.ts.map +0 -1
  108. package/utils/mfActions/tests/helpers.d.ts +0 -4
  109. package/utils/mfActions/tests/helpers.d.ts.map +0 -1
  110. package/utils/mfActions/tests/types.d.ts +0 -8
  111. package/utils/mfActions/tests/types.d.ts.map +0 -1
  112. package/utils/mfActions/types.d.ts +0 -47
  113. package/utils/mfActions/types.d.ts.map +0 -1
@@ -17,7 +17,7 @@ declare function usePopoverFilter(): {
17
17
  filterFormValue: FormFilterValue;
18
18
  formFilter: FormFilterFieldApplied;
19
19
  popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormFilterValueBoolean> | undefined;
20
- statusLoad: "initial" | "reload_values_provider" | "ready";
20
+ statusLoad: "initial" | "ready" | "reload_values_provider";
21
21
  };
22
22
  export default usePopoverFilter;
23
23
  //# sourceMappingURL=usePopoverFilter.d.ts.map
@@ -17,7 +17,7 @@ declare function usePopoverSort(): {
17
17
  sortFormValue: import('../../types').FormSortValueBase;
18
18
  formSort: FormSortFieldApplied;
19
19
  popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormSortValueBase> | undefined;
20
- statusLoad: "initial" | "reload_values_provider" | "ready";
20
+ statusLoad: "initial" | "ready" | "reload_values_provider";
21
21
  };
22
22
  export default usePopoverSort;
23
23
  //# sourceMappingURL=usePopoverSort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAiBhD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAgQ5C;AACD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAehD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAoP5C;AACD,eAAe,QAAQ,CAAC"}
@@ -1,158 +1,146 @@
1
- import { jsxs as te, jsx as t } from "@emotion/react/jsx-runtime";
2
- import { useRef as d, useEffect as I } from "react";
3
- import { useNetwork as oe, useEnvironment as se, useHostTools as ne, useUserPreferences as ie, resolveLocalLoopbackOrigin as ce } from "@m4l/core";
4
- import { useHostTheme as ae, useFormatter as de, useLocales as le } from "@m4l/graphics";
5
- import { ProggessLoadingMF as me } from "./subcomponents/ProggessLoadingMF/index.js";
1
+ import { jsxs as ee, jsx as r } from "@emotion/react/jsx-runtime";
2
+ import { useRef as c, useEffect as te } from "react";
3
+ import { useNetwork as re, useEnvironment as oe, useHostTools as se, useUserPreferences as ne, resolveLocalLoopbackOrigin as ie } from "@m4l/core";
4
+ import { useHostTheme as ce, useFormatter as de, useLocales as ae } from "@m4l/graphics";
5
+ import { ProggessLoadingMF as le } from "./subcomponents/ProggessLoadingMF/index.js";
6
6
  import { LoadingError as ue } from "../LoadingError/LoadingError.js";
7
- import { useMFCallbackLifecycle as fe } from "./hooks/useMFCallbackLifecycle.js";
8
- import { useHostRuntime as pe } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
9
- import { useShellObservability as Se } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
10
- import { projectMFHostRuntimeTools as Le } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
11
- import { useMFTelemetry as Me } from "./hooks/useMFTelemetry/useMFTelemetry.js";
12
- import { useMFSwap as Re } from "./hooks/useMFSwap/useMFSwap.js";
13
- import { useMFLifecycle as ge } from "./hooks/useMFLifecycle/useMFLifecycle.js";
14
- import { MF_ACTION_CALLBACKS_PARAM as he, MF_ACTION_REQUEST_PARAM as Fe } from "../../utils/mfActions/constants.js";
15
- import { useMFRender as ye } from "./hooks/useMFRender/useMFRender.js";
16
- import { MFLoaderRootStyled as ve, MFLoaderMountContainerStyled as P, MFLoaderOverlayStyled as _ } from "./slots/MFLoaderSlots.js";
17
- import { isMFActionRequest as be, completeMFAction as Te } from "../../utils/mfActions/mfActions.js";
18
- function Ve(E) {
7
+ import { useHostRuntime as me } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
8
+ import { useShellObservability as pe } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
9
+ import { projectMFHostRuntimeTools as fe } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
10
+ import { useMFTelemetry as Le } from "./hooks/useMFTelemetry/useMFTelemetry.js";
11
+ import { useMFSwap as Se } from "./hooks/useMFSwap/useMFSwap.js";
12
+ import { useMFLifecycle as he } from "./hooks/useMFLifecycle/useMFLifecycle.js";
13
+ import { useMFRender as ge } from "./hooks/useMFRender/useMFRender.js";
14
+ import { MFLoaderRootStyled as ve, MFLoaderMountContainerStyled as T, MFLoaderOverlayStyled as O } from "./slots/MFLoaderSlots.js";
15
+ function je(I) {
19
16
  const {
20
17
  prefix: o,
21
- moduleId: H,
22
- cache: l = !0,
18
+ moduleId: C,
19
+ cache: d = !0,
23
20
  debugPort: s,
24
- hostRuntime: q,
25
- observability: x,
26
- dynamicMFStore: n,
27
- windowTools: i,
28
- emergeType: k,
29
- loggedUser: N
30
- } = E, j = pe(), B = Se(), G = Le(q ?? j), U = x ?? B, { hostThemeOptions: V, fnComponentsOverrides: $ } = ae(), { networkOperation: D } = oe(), c = se(), m = ne(), K = ie(), Q = de(), z = { hostThemeOptions: V, fnComponentsOverrides: $ }, M = d(null), R = d(null), g = d("progress"), h = d(
21
+ hostRuntime: H,
22
+ observability: P,
23
+ dynamicMFStore: x,
24
+ windowTools: E,
25
+ emergeType: q,
26
+ loggedUser: j
27
+ } = I, k = me(), G = pe(), V = fe(H ?? k), A = P ?? G, { hostThemeOptions: B, fnComponentsOverrides: N } = ce(), { networkOperation: U } = re(), n = oe(), $ = se(), D = ne(), z = de(), J = { hostThemeOptions: B, fnComponentsOverrides: N }, p = c(null), f = c(null), L = c("progress"), S = c(
31
28
  null
32
- ), { currentLocale: J } = le(), W = !c.isLocalhost || Number.isInteger(s) && s > 0, {
33
- activeSwapRef: F,
34
- createTelemetryContext: u,
35
- emitAbandonedLoadTelemetry: X,
36
- emitSwapStartedTelemetry: y,
37
- emitSwapFailedTelemetry: f,
29
+ ), { currentLocale: K } = ae(), Q = !n.isLocalhost || Number.isInteger(s) && s > 0, {
30
+ activeSwapRef: h,
31
+ createTelemetryContext: a,
32
+ emitAbandonedLoadTelemetry: W,
33
+ emitSwapStartedTelemetry: g,
34
+ emitSwapFailedTelemetry: l,
38
35
  reportLoaderError: v
39
- } = Me({
40
- cache: l,
36
+ } = Le({
37
+ cache: d,
41
38
  prefix: o,
42
- mountedScriptRefBridge: M,
43
- requestedScriptRefBridge: R,
44
- setStatusLoaderRef: h,
45
- statusLoaderRef: g
39
+ mountedScriptRefBridge: p,
40
+ requestedScriptRefBridge: f,
41
+ setStatusLoaderRef: S,
42
+ statusLoaderRef: L
46
43
  }), {
47
- mountedScript: p,
48
- requestedScript: r,
49
- isSwappingModule: Y,
50
- mountedScriptRef: b,
51
- requestedScriptRef: T,
52
- promoteRequestedScript: w
53
- } = Re({
54
- activeSwapRef: F,
55
- cache: l,
56
- createTelemetryContext: u,
57
- emitAbandonedLoadTelemetry: X,
58
- emitSwapFailedTelemetry: f,
59
- emitSwapStartedTelemetry: y,
60
- moduleId: H,
44
+ mountedScript: u,
45
+ requestedScript: e,
46
+ isSwappingModule: X,
47
+ mountedScriptRef: R,
48
+ requestedScriptRef: y,
49
+ promoteRequestedScript: b
50
+ } = Se({
51
+ activeSwapRef: h,
52
+ cache: d,
53
+ createTelemetryContext: a,
54
+ emitAbandonedLoadTelemetry: W,
55
+ emitSwapFailedTelemetry: l,
56
+ emitSwapStartedTelemetry: g,
57
+ moduleId: C,
61
58
  prefix: o,
62
59
  reportLoaderError: v
63
60
  });
64
- M.current = b, R.current = T;
65
- const Z = c.isLocalhost ? ce(s) : `https://${window.location.host}/mf/${r.moduleId}`, {
66
- statusLoader: e,
67
- setStatusLoader: C,
68
- loadingProgress: ee,
69
- tryAgainOnError: re,
70
- loadGeneration: a,
71
- completedGeneration: A,
72
- renderedGeneration: S
73
- } = ge({
74
- activeHost: Z,
75
- cache: l,
76
- createTelemetryContext: u,
77
- environmentIsLocalhost: c.isLocalhost,
78
- hasValidLocalDebugPort: W,
79
- mountedScriptRef: b,
80
- networkOperation: D,
61
+ p.current = R, f.current = y;
62
+ const Y = n.isLocalhost ? ie(s) : `https://${window.location.host}/mf/${e.moduleId}`, {
63
+ statusLoader: t,
64
+ setStatusLoader: F,
65
+ loadingProgress: Z,
66
+ tryAgainOnError: _,
67
+ loadGeneration: i,
68
+ completedGeneration: M,
69
+ renderedGeneration: m
70
+ } = he({
71
+ activeHost: Y,
72
+ cache: d,
73
+ createTelemetryContext: a,
74
+ environmentIsLocalhost: n.isLocalhost,
75
+ hasValidLocalDebugPort: Q,
76
+ mountedScriptRef: R,
77
+ networkOperation: U,
81
78
  prefix: o,
82
- requestedScript: r,
83
- requestedScriptRef: T,
84
- activeSwapRef: F,
85
- emitSwapFailedTelemetry: f,
86
- emitSwapStartedTelemetry: y
79
+ requestedScript: e,
80
+ requestedScriptRef: y,
81
+ activeSwapRef: h,
82
+ emitSwapFailedTelemetry: l,
83
+ emitSwapStartedTelemetry: g
87
84
  });
88
- g.current = e, h.current = C, fe(
89
- n?.getState().dynamicMFParameters?.[he],
90
- e === "error",
91
- i.close
92
- ), I(() => {
93
- if (e !== "error")
94
- return;
95
- const L = n?.getState().dynamicMFParameters?.[Fe];
96
- be(L) && (Te(m, L, { status: "failed", errorCode: "mf_load_failed" }), i?.close(!1));
97
- }, [e, n, m, i]);
98
- const { renderMicroFrontend: O } = ye({
85
+ L.current = t, S.current = F;
86
+ const { renderMicroFrontend: w } = ge({
99
87
  prefix: o,
100
88
  debugPort: s,
101
- dynamicMFStore: n,
102
- windowTools: i,
103
- emergeType: k,
104
- loggedUser: N,
105
- environment: c,
106
- hostTools: m,
107
- currentLocale: J,
108
- hostTheme: z,
109
- formatter: Q,
110
- userPreferences: K,
111
- resolvedHostRuntime: G,
112
- resolvedObservability: U,
89
+ dynamicMFStore: x,
90
+ windowTools: E,
91
+ emergeType: q,
92
+ loggedUser: j,
93
+ environment: n,
94
+ hostTools: $,
95
+ currentLocale: K,
96
+ hostTheme: J,
97
+ formatter: z,
98
+ userPreferences: D,
99
+ resolvedHostRuntime: V,
100
+ resolvedObservability: A,
113
101
  reportLoaderError: v,
114
- emitSwapFailedTelemetry: f,
115
- setStatusLoader: C,
116
- createTelemetryContext: u
102
+ emitSwapFailedTelemetry: l,
103
+ setStatusLoader: F,
104
+ createTelemetryContext: a
117
105
  });
118
- return I(() => {
119
- if (e === "complete" && A.current === a.current && S.current !== a.current) {
120
- if (!O(r))
106
+ return te(() => {
107
+ if (t === "complete" && M.current === i.current && m.current !== i.current) {
108
+ if (!w(e))
121
109
  return;
122
- S.current = a.current, w();
110
+ m.current = i.current, b();
123
111
  }
124
112
  }, [
125
- A,
126
- a,
127
- p,
113
+ M,
114
+ i,
115
+ u,
128
116
  o,
117
+ b,
129
118
  w,
130
- O,
131
- S,
132
- r,
133
- e
134
- ]), /* @__PURE__ */ te(ve, { children: [
135
- /* @__PURE__ */ t(
136
- P,
119
+ m,
120
+ e,
121
+ t
122
+ ]), /* @__PURE__ */ ee(ve, { children: [
123
+ /* @__PURE__ */ r(
124
+ T,
137
125
  {
138
- id: p.divContainerId,
126
+ id: u.divContainerId,
139
127
  ownerState: { isVisible: !0 }
140
128
  },
141
- p.divContainerId
129
+ u.divContainerId
142
130
  ),
143
- Y ? /* @__PURE__ */ t(
144
- P,
131
+ X ? /* @__PURE__ */ r(
132
+ T,
145
133
  {
146
- id: r.divContainerId,
134
+ id: e.divContainerId,
147
135
  ownerState: { isVisible: !1 }
148
136
  },
149
- r.divContainerId
137
+ e.divContainerId
150
138
  ) : null,
151
- e === "progress" ? /* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(me, { loadingProgress: ee }) }) : null,
152
- e === "error" ? /* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(ue, { status: e, action: re }) }) : null
139
+ t === "progress" ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(le, { loadingProgress: Z }) }) : null,
140
+ t === "error" ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(ue, { status: t, action: _ }) }) : null
153
141
  ] });
154
142
  }
155
143
  export {
156
- Ve as MFLoader,
157
- Ve as default
144
+ je as MFLoader,
145
+ je as default
158
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"projectMFHostRuntimeTools.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,CAAC,EAAE,aAAa,GAC1B,kBAAkB,GAAG,SAAS,CAqBhC"}
1
+ {"version":3,"file":"projectMFHostRuntimeTools.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,CAAC,EAAE,aAAa,GAC1B,kBAAkB,GAAG,SAAS,CAiBhC"}
@@ -1,12 +1,7 @@
1
- function r(e) {
2
- const o = e?.realtime?.producerTools;
3
- if (!(typeof o?.subscribe != "function" || typeof o?.unsubscribe != "function"))
4
- return {
5
- realtime: {
6
- producerTools: o
7
- }
8
- };
1
+ function t(r) {
2
+ const e = r?.realtime?.producerTools, o = {};
3
+ return typeof e?.subscribe == "function" && typeof e?.unsubscribe == "function" && (o.realtime = { producerTools: e }), typeof r?.reports?.observe == "function" && (o.reports = r.reports), o.realtime || o.reports ? o : void 0;
9
4
  }
10
5
  export {
11
- r as projectMFHostRuntimeTools
6
+ t as projectMFHostRuntimeTools
12
7
  };
@@ -1,5 +1,6 @@
1
1
  export { MFLoader } from './MFLoader';
2
2
  export { getMFLoaderComponentsDictionary } from './dictionary';
3
3
  export { projectMFHostRuntimeTools } from './helpers/projectMFHostRuntimeTools';
4
+ export type { MFReportRecord, MFReportObservation, MFReportWatchOptions, MFReportTools } from './reportTypes';
4
5
  export type { MFBaseProps, MFHostRuntime, MFHostRuntimeTools, MFLegacyRenderOptions, MFRealtimeProducerToolsContract, MFLoaderProps, MFRenderContract, MFRenderEnvironment, MFRenderV1Function, MFRenderV2Function, } from './types';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9G,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ /** Minimal report status data passed through the host capability boundary. */
2
+ export interface MFReportRecord {
3
+ uuid: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export interface MFReportObservation {
7
+ state: 'loading' | 'pending' | 'ready' | 'failed' | 'unavailable' | 'timeout';
8
+ percentage: number | null;
9
+ report?: MFReportRecord;
10
+ }
11
+ export interface MFReportWatchOptions {
12
+ uuid: string;
13
+ format: 'raw' | 'xls' | 'csv' | 'pdf' | 'json' | 'kml';
14
+ }
15
+ /** Host-owned monitoring; the MF receives observations, never its own polling timer. */
16
+ export interface MFReportTools {
17
+ observe: (options: MFReportWatchOptions, listener: (value: MFReportObservation) => void) => () => void;
18
+ }
19
+ //# sourceMappingURL=reportTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportTypes.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/reportTypes.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAC9E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;CACxD;AAED,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;CACxG"}
@@ -8,6 +8,7 @@ import { WebTelemetryContext, MFObservabilityService } from '../../../../../out-
8
8
  import { M4LOverridesStyleRules } from '../../@types/augmentations';
9
9
  import { MF_LOADER_KEY_COMPONENT } from './constants';
10
10
  import { MFLoaderSlots } from './slots/MFLoaderEnum';
11
+ import { MFReportTools } from './reportTypes';
11
12
  declare global {
12
13
  interface Window {
13
14
  [key: string]: unknown;
@@ -90,6 +91,8 @@ export interface MFHostRealtimeCapabilities {
90
91
  * Herramientas mínimas orientadas al MF proyectadas desde un runtime más rico propiedad del shell.
91
92
  */
92
93
  export interface MFHostRuntimeTools {
94
+ /** Host-owned report monitoring. / Seguimiento de reportes propiedad del host. */
95
+ reports?: MFReportTools;
93
96
  /**
94
97
  * Known realtime capabilities shared by the host or mini-host.
95
98
  * Capacidades realtime conocidas compartidas por el host o mini-host.
@@ -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,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,EACb,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,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,cAAc,EAAE,cAAc,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,mBAAmB,GAAG;IACzB,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,EACb,eAAe,EAChB,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,mBAAmB,EACnB,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;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,CAAC,MA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MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -8,6 +8,9 @@ export declare const WINDOW_BASE_ICON_IDS: {
8
8
  readonly SPLIT_HORIZONTAL: "m4l:layout:split-horizontal";
9
9
  readonly NO_SPLIT: "m4l:layout:no-split";
10
10
  readonly FILE_FOLDER_VIEW: "m4l:file-folder:view";
11
+ readonly DOWNLOAD: "m4l:actions:download";
12
+ readonly FILE_XLSX: "m4l:file:xlsx";
13
+ readonly FILE_PDF: "m4l:file:pdf";
11
14
  };
12
15
  export declare const WINDOW_BASE_ICON_COMPONENTS: {
13
16
  readonly [ICONS.CLOSE]: import("@emotion/react/jsx-runtime").JSX.Element;
@@ -17,5 +20,8 @@ export declare const WINDOW_BASE_ICON_COMPONENTS: {
17
20
  readonly "m4l:layout:split-horizontal": import("@emotion/react/jsx-runtime").JSX.Element;
18
21
  readonly "m4l:layout:no-split": import("@emotion/react/jsx-runtime").JSX.Element;
19
22
  readonly "m4l:file-folder:view": import("@emotion/react/jsx-runtime").JSX.Element;
23
+ readonly "m4l:actions:download": import("@emotion/react/jsx-runtime").JSX.Element;
24
+ readonly "m4l:file:xlsx": import("@emotion/react/jsx-runtime").JSX.Element;
25
+ readonly "m4l:file:pdf": import("@emotion/react/jsx-runtime").JSX.Element;
20
26
  };
21
27
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/icons.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AAEX,eAAO,MAAM,2BAA2B;IACtC,SAAA,CAAC,KAAK,CAAC,KAAK,CAAC,mDAA+C;IAC5D,SAAA,CAAC,KAAK,CAAC,OAAO,CAAC,mDAAiD;IAChE,SAAA,CAAC,KAAK,CAAC,aAAa,CAAC,mDAA+C;;;;;CAK5D,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/icons.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQvB,CAAC;AAEX,eAAO,MAAM,2BAA2B;IACtC,SAAA,CAAC,KAAK,CAAC,KAAK,CAAC,mDAA+C;IAC5D,SAAA,CAAC,KAAK,CAAC,OAAO,CAAC,mDAAiD;IAChE,SAAA,CAAC,KAAK,CAAC,aAAa,CAAC,mDAA+C;;;;;;;;CAS5D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "@emotion/react/jsx-runtime";
2
- import { FileFolderViewOutlined as O, LayoutFullOutlined as i, LayoutSplitHorizontalOutlined as r, LayoutSplitVerticalOutlined as I, MenuMoreHorizontalOutlined as n, DevDevelopmentBranchOutlined as s, ActionsCloseSmBoldOutlined as L } from "@m4l/icons";
2
+ import { FilePdf as e, FileXlsx as r, ActionsDownloadOutlined as O, FileFolderViewOutlined as n, LayoutFullOutlined as I, LayoutSplitHorizontalOutlined as L, LayoutSplitVerticalOutlined as s, MenuMoreHorizontalOutlined as _, DevDevelopmentBranchOutlined as E, ActionsCloseSmBoldOutlined as c } from "@m4l/icons";
3
3
  import { Icon as o } from "@m4l/base";
4
- const e = {
4
+ const i = {
5
5
  CLOSE: "header_close.svg",
6
6
  VERSION: "branch.svg",
7
7
  MORE_VERTICAL: "header_menu_options.svg"
@@ -9,18 +9,25 @@ const e = {
9
9
  SPLIT_VERTICAL: "m4l:layout:split-vertical",
10
10
  SPLIT_HORIZONTAL: "m4l:layout:split-horizontal",
11
11
  NO_SPLIT: "m4l:layout:no-split",
12
- FILE_FOLDER_VIEW: "m4l:file-folder:view"
13
- }, c = {
14
- [e.CLOSE]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(L, {}) }),
15
- [e.VERSION]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(s, {}) }),
16
- [e.MORE_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(n, {}) }),
17
- [t.SPLIT_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(I, {}) }),
18
- [t.SPLIT_HORIZONTAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(r, {}) }),
19
- [t.NO_SPLIT]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(i, {}) }),
20
- [t.FILE_FOLDER_VIEW]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(O, {}) })
12
+ FILE_FOLDER_VIEW: "m4l:file-folder:view",
13
+ DOWNLOAD: "m4l:actions:download",
14
+ FILE_XLSX: "m4l:file:xlsx",
15
+ FILE_PDF: "m4l:file:pdf"
16
+ }, d = {
17
+ [i.CLOSE]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(c, {}) }),
18
+ [i.VERSION]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(E, {}) }),
19
+ [i.MORE_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(_, {}) }),
20
+ [t.SPLIT_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(s, {}) }),
21
+ [t.SPLIT_HORIZONTAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(L, {}) }),
22
+ [t.NO_SPLIT]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(I, {}) }),
23
+ [t.FILE_FOLDER_VIEW]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(n, {}) }),
24
+ [t.DOWNLOAD]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(O, {}) }),
25
+ // Original-color Icons keep the file artwork while inheriting MenuItem's icon sizing.
26
+ [t.FILE_XLSX]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(r, {}), originalColor: !0 }),
27
+ [t.FILE_PDF]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(e, {}), originalColor: !0 })
21
28
  };
22
29
  export {
23
- e as ICONS,
24
- c as WINDOW_BASE_ICON_COMPONENTS,
30
+ i as ICONS,
31
+ d as WINDOW_BASE_ICON_COMPONENTS,
25
32
  t as WINDOW_BASE_ICON_IDS
26
33
  };
@@ -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":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAc1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDAgLpD,CAAC"}
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;AAc1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDA8KpD,CAAC"}
@@ -1,33 +1,32 @@
1
- import { jsx as m, Fragment as M } from "@emotion/react/jsx-runtime";
2
- import { shallow as s } from "zustand/shallow";
3
- import { useAuth as N } from "@m4l/core";
4
- import { Window as O } from "../Window/Window.js";
5
- import { useAreasStore as i } from "../../../../../../hooks/useAreas/index.js";
1
+ import { jsx as m, Fragment as b } from "@emotion/react/jsx-runtime";
2
+ import { shallow as i } from "zustand/shallow";
3
+ import { Window as M } from "../Window/Window.js";
4
+ import { useAreasStore as n } from "../../../../../../hooks/useAreas/index.js";
6
5
  import { areasViewerClasses as g } from "../../../../classes/index.js";
7
- import T from "clsx";
8
- import { PADDING_GRIDLAYOUT as p, MARGIN_GRIDLAYOUT as f, RESPONSIVE_ROW_HEIGHTS as D } from "../../../../../../contexts/AreasContext/helpers/helper.js";
9
- import { MemonizePopupsViewer as F } from "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
10
- import { useState as P, useMemo as U, useEffect as V } from "react";
11
- import { dragResizeWindowRNDClasses as n } from "../../../../../../../DragResizeWindowRND/classes/index.js";
12
- import { useTheme as k } from "@mui/material";
13
- import { useComponentSize as $ } from "../../../../../../../../hooks/useComponentSize/index.js";
14
- import { withSizeProvider as Y } from "../../../../../../../GridLayout/subcomponents/withSizeProvider/index.js";
15
- import { Responsive as q } from "../../../../../../../GridLayout/subcomponents/Responsive/index.js";
16
- const W = Y(q), B = 10, ce = (h) => {
17
- const { areaId: r, size: I } = h, { user: A } = N(), y = i((e) => e.hashAreas[r].layoutItemsIds, s), L = i((e) => e.hashAreas[r].layouts, s), S = i((e) => e.hashAreas[r].breakpoints, s), c = i((e) => e.hashAreas[r].currentLayoutId, s), w = i((e) => e.hashAreas[r].maximizedId, s), R = i((e) => e.hashAreas[r].cols, s), { onBreakpointsLayoutsChange: z, onContainerChange: C } = i(
6
+ import N from "clsx";
7
+ import { PADDING_GRIDLAYOUT as p, MARGIN_GRIDLAYOUT as f, RESPONSIVE_ROW_HEIGHTS as O } from "../../../../../../contexts/AreasContext/helpers/helper.js";
8
+ import { MemonizePopupsViewer as T } from "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
9
+ import { useState as D, useMemo as F, useEffect as P } from "react";
10
+ import { dragResizeWindowRNDClasses as s } from "../../../../../../../DragResizeWindowRND/classes/index.js";
11
+ import { useTheme as V } from "@mui/material";
12
+ import { useComponentSize as k } from "../../../../../../../../hooks/useComponentSize/index.js";
13
+ import { withSizeProvider as U } from "../../../../../../../GridLayout/subcomponents/withSizeProvider/index.js";
14
+ import { Responsive as $ } from "../../../../../../../GridLayout/subcomponents/Responsive/index.js";
15
+ const Y = U($), q = 10, ne = (h) => {
16
+ const { areaId: r, size: I } = h, y = n((e) => e.hashAreas[r].layoutItemsIds, i), A = n((e) => e.hashAreas[r].layouts, i), L = n((e) => e.hashAreas[r].breakpoints, i), c = n((e) => e.hashAreas[r].currentLayoutId, i), S = n((e) => e.hashAreas[r].maximizedId, i), w = n((e) => e.hashAreas[r].cols, i), { onBreakpointsLayoutsChange: R, onContainerChange: z } = n(
18
17
  (e) => e.areaActions,
19
- s
20
- ), d = k(), { currentSize: l } = $(I), [t, H] = P(void 0), E = () => {
21
- t && t.classList.add(n.resizing);
18
+ i
19
+ ), d = V(), { currentSize: l } = k(I), [t, C] = D(void 0), H = () => {
20
+ t && t.classList.add(s.resizing);
21
+ }, E = () => {
22
+ t && t.classList.remove(s.resizing);
22
23
  }, G = () => {
23
- t && t.classList.remove(n.resizing);
24
+ t && t.classList.add(s.dragging);
24
25
  }, v = () => {
25
- t && t.classList.add(n.dragging);
26
- }, x = () => {
27
- t && t.classList.remove(n.dragging);
28
- }, _ = (e) => {
29
- e && e !== t && H(e);
30
- }, b = U(() => {
26
+ t && t.classList.remove(s.dragging);
27
+ }, x = (e) => {
28
+ e && e !== t && C(e);
29
+ }, _ = F(() => {
31
30
  const e = d?.size?.[d?.generalSettings?.isMobile ? "mobile" : "desktop"]?.[l]?.container, a = parseInt(e), o = isNaN(a) ? 32 : a;
32
31
  return {
33
32
  xxs: o,
@@ -37,10 +36,10 @@ const W = Y(q), B = 10, ce = (h) => {
37
36
  lg: o
38
37
  };
39
38
  }, [d, l]);
40
- return V(() => {
39
+ return P(() => {
41
40
  if (!t || !c)
42
41
  return;
43
- let e = 0, a = B;
42
+ let e = 0, a = q;
44
43
  const o = () => {
45
44
  const u = t.querySelector(
46
45
  `[data-grid-item-id="${c}"]`
@@ -58,48 +57,47 @@ const W = Y(q), B = 10, ce = (h) => {
58
57
  window.cancelAnimationFrame(e);
59
58
  };
60
59
  }, [c, t]), /* @__PURE__ */ m(
61
- W,
60
+ Y,
62
61
  {
63
- ref: _,
62
+ ref: x,
64
63
  autoSize: !1,
65
64
  compactType: "vertical",
66
65
  measureBeforeMount: !0,
67
66
  resizeHandles: ["nw", "se"],
68
- className: T(
67
+ className: N(
69
68
  g.areaGridLayout,
70
69
  `${g.areaGridLayout}-${r}`
71
70
  ),
72
- layouts: L,
73
- onLayoutChange: (e, a) => z(r, e, a),
74
- draggableHandle: `.${n.draggableHandle}`,
75
- draggableCancel: `.${n.draggableCancel}`,
76
- layoutItemRender: (e) => y.indexOf(e.i) === -1 ? /* @__PURE__ */ m(M, {}) : e.type === "placeholder" ? /* @__PURE__ */ m("div", {}) : /* @__PURE__ */ m(O, { windowId: e.i, areaId: r }),
77
- breakpoints: S,
78
- colapsedHeight: b,
79
- rowHeight: D,
80
- cols: R,
71
+ layouts: A,
72
+ onLayoutChange: (e, a) => R(r, e, a),
73
+ draggableHandle: `.${s.draggableHandle}`,
74
+ draggableCancel: `.${s.draggableCancel}`,
75
+ layoutItemRender: (e) => y.indexOf(e.i) === -1 ? /* @__PURE__ */ m(b, {}) : e.type === "placeholder" ? /* @__PURE__ */ m("div", {}) : /* @__PURE__ */ m(M, { windowId: e.i, areaId: r }),
76
+ breakpoints: L,
77
+ colapsedHeight: _,
78
+ rowHeight: O,
79
+ cols: w,
81
80
  containerMargin: [f, f],
82
81
  containerPadding: [p, p],
83
82
  onContainerChange: (e) => {
84
- C(r, e);
83
+ z(r, e);
85
84
  },
86
85
  preventCollision: !1,
87
- maximizeId: w,
86
+ maximizeId: S,
88
87
  children: /* @__PURE__ */ m(
89
- F,
88
+ T,
90
89
  {
91
90
  groupId: r,
92
- loggedUser: A,
93
91
  containerElement: t,
94
- onResizeStart: E,
95
- onResizeStop: G,
96
- onDragStart: v,
97
- onDragStop: x
92
+ onResizeStart: H,
93
+ onResizeStop: E,
94
+ onDragStart: G,
95
+ onDragStop: v
98
96
  }
99
97
  )
100
98
  }
101
99
  );
102
100
  };
103
101
  export {
104
- ce as AreaGridLayout
102
+ ne as AreaGridLayout
105
103
  };