@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.
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -1
- package/components/MFLoader/MFLoader.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.js +112 -124
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -1
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js +4 -9
- package/components/MFLoader/index.d.ts +1 -0
- package/components/MFLoader/index.d.ts.map +1 -1
- package/components/MFLoader/reportTypes.d.ts +19 -0
- package/components/MFLoader/reportTypes.d.ts.map +1 -0
- package/components/MFLoader/types.d.ts +3 -0
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/WindowBase/icons.d.ts +6 -0
- package/components/WindowBase/icons.d.ts.map +1 -1
- package/components/WindowBase/icons.js +20 -13
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +47 -49
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +28 -29
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +54 -55
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +72 -81
- package/components/extended/mui/Autocomplete/types.d.ts +1 -1
- package/components/extended/mui/Autocomplete/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts +9 -5
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.js +56 -87
- package/components/extended/mui/AutocompleteAsync/constants.d.ts +1 -4
- package/components/extended/mui/AutocompleteAsync/constants.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/constants.js +12 -24
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.js +46 -47
- package/components/extended/mui/AutocompleteAsync/index.d.ts +1 -1
- package/components/extended/mui/AutocompleteAsync/index.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.js +28 -50
- package/components/extended/mui/AutocompleteAsync/types.d.ts +0 -47
- package/components/extended/mui/AutocompleteAsync/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/types.js +2 -4
- package/components/extended/mui/MenuItem/MenuItem.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +15 -13
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +0 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.js +222 -235
- package/package.json +8 -8
- package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts +0 -6
- package/components/MFLoader/hooks/useMFCallbackLifecycle.d.ts.map +0 -1
- package/components/MFLoader/hooks/useMFCallbackLifecycle.js +0 -25
- package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts +0 -4
- package/components/areas/components/AreasViewer/test/popupAuthenticationConstants.d.ts.map +0 -1
- package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts +0 -22
- package/components/areas/contexts/AreasContext/tests/mfActionSupport.d.ts.map +0 -1
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts +0 -4
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.d.ts.map +0 -1
- package/components/areas/contexts/AreasContext/useMFActionLifecycle.js +0 -49
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.js +0 -23
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts +0 -9
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.js +0 -97
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts +0 -6
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.js +0 -19
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts +0 -5
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts +0 -8
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts +0 -20
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts +0 -8
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts +0 -3
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts +0 -21
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts +0 -3
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts +0 -12
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts.map +0 -1
- package/utils/mfActions/constants.d.ts +0 -6
- package/utils/mfActions/constants.d.ts.map +0 -1
- package/utils/mfActions/constants.js +0 -8
- package/utils/mfActions/index.d.ts +0 -5
- package/utils/mfActions/index.d.ts.map +0 -1
- package/utils/mfActions/mfActions.d.ts +0 -10
- package/utils/mfActions/mfActions.d.ts.map +0 -1
- package/utils/mfActions/mfActions.js +0 -47
- package/utils/mfActions/openMFCallbackAction.d.ts +0 -4
- package/utils/mfActions/openMFCallbackAction.d.ts.map +0 -1
- package/utils/mfActions/openMFCallbackAction.js +0 -36
- package/utils/mfActions/tests/callbackHelpers.d.ts +0 -9
- package/utils/mfActions/tests/callbackHelpers.d.ts.map +0 -1
- package/utils/mfActions/tests/constants.d.ts +0 -6
- package/utils/mfActions/tests/constants.d.ts.map +0 -1
- package/utils/mfActions/tests/helpers.d.ts +0 -4
- package/utils/mfActions/tests/helpers.d.ts.map +0 -1
- package/utils/mfActions/tests/types.d.ts +0 -8
- package/utils/mfActions/tests/types.d.ts.map +0 -1
- package/utils/mfActions/types.d.ts +0 -47
- 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" | "
|
|
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" | "
|
|
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;
|
|
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
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useNetwork as
|
|
4
|
-
import { useHostTheme as
|
|
5
|
-
import { ProggessLoadingMF as
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
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:
|
|
22
|
-
cache:
|
|
18
|
+
moduleId: C,
|
|
19
|
+
cache: d = !0,
|
|
23
20
|
debugPort: s,
|
|
24
|
-
hostRuntime:
|
|
25
|
-
observability:
|
|
26
|
-
dynamicMFStore:
|
|
27
|
-
windowTools:
|
|
28
|
-
emergeType:
|
|
29
|
-
loggedUser:
|
|
30
|
-
} =
|
|
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:
|
|
33
|
-
activeSwapRef:
|
|
34
|
-
createTelemetryContext:
|
|
35
|
-
emitAbandonedLoadTelemetry:
|
|
36
|
-
emitSwapStartedTelemetry:
|
|
37
|
-
emitSwapFailedTelemetry:
|
|
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
|
-
} =
|
|
40
|
-
cache:
|
|
36
|
+
} = Le({
|
|
37
|
+
cache: d,
|
|
41
38
|
prefix: o,
|
|
42
|
-
mountedScriptRefBridge:
|
|
43
|
-
requestedScriptRefBridge:
|
|
44
|
-
setStatusLoaderRef:
|
|
45
|
-
statusLoaderRef:
|
|
39
|
+
mountedScriptRefBridge: p,
|
|
40
|
+
requestedScriptRefBridge: f,
|
|
41
|
+
setStatusLoaderRef: S,
|
|
42
|
+
statusLoaderRef: L
|
|
46
43
|
}), {
|
|
47
|
-
mountedScript:
|
|
48
|
-
requestedScript:
|
|
49
|
-
isSwappingModule:
|
|
50
|
-
mountedScriptRef:
|
|
51
|
-
requestedScriptRef:
|
|
52
|
-
promoteRequestedScript:
|
|
53
|
-
} =
|
|
54
|
-
activeSwapRef:
|
|
55
|
-
cache:
|
|
56
|
-
createTelemetryContext:
|
|
57
|
-
emitAbandonedLoadTelemetry:
|
|
58
|
-
emitSwapFailedTelemetry:
|
|
59
|
-
emitSwapStartedTelemetry:
|
|
60
|
-
moduleId:
|
|
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
|
-
|
|
65
|
-
const
|
|
66
|
-
statusLoader:
|
|
67
|
-
setStatusLoader:
|
|
68
|
-
loadingProgress:
|
|
69
|
-
tryAgainOnError:
|
|
70
|
-
loadGeneration:
|
|
71
|
-
completedGeneration:
|
|
72
|
-
renderedGeneration:
|
|
73
|
-
} =
|
|
74
|
-
activeHost:
|
|
75
|
-
cache:
|
|
76
|
-
createTelemetryContext:
|
|
77
|
-
environmentIsLocalhost:
|
|
78
|
-
hasValidLocalDebugPort:
|
|
79
|
-
mountedScriptRef:
|
|
80
|
-
networkOperation:
|
|
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:
|
|
83
|
-
requestedScriptRef:
|
|
84
|
-
activeSwapRef:
|
|
85
|
-
emitSwapFailedTelemetry:
|
|
86
|
-
emitSwapStartedTelemetry:
|
|
79
|
+
requestedScript: e,
|
|
80
|
+
requestedScriptRef: y,
|
|
81
|
+
activeSwapRef: h,
|
|
82
|
+
emitSwapFailedTelemetry: l,
|
|
83
|
+
emitSwapStartedTelemetry: g
|
|
87
84
|
});
|
|
88
|
-
|
|
89
|
-
|
|
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:
|
|
102
|
-
windowTools:
|
|
103
|
-
emergeType:
|
|
104
|
-
loggedUser:
|
|
105
|
-
environment:
|
|
106
|
-
hostTools:
|
|
107
|
-
currentLocale:
|
|
108
|
-
hostTheme:
|
|
109
|
-
formatter:
|
|
110
|
-
userPreferences:
|
|
111
|
-
resolvedHostRuntime:
|
|
112
|
-
resolvedObservability:
|
|
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:
|
|
115
|
-
setStatusLoader:
|
|
116
|
-
createTelemetryContext:
|
|
102
|
+
emitSwapFailedTelemetry: l,
|
|
103
|
+
setStatusLoader: F,
|
|
104
|
+
createTelemetryContext: a
|
|
117
105
|
});
|
|
118
|
-
return
|
|
119
|
-
if (
|
|
120
|
-
if (!
|
|
106
|
+
return te(() => {
|
|
107
|
+
if (t === "complete" && M.current === i.current && m.current !== i.current) {
|
|
108
|
+
if (!w(e))
|
|
121
109
|
return;
|
|
122
|
-
|
|
110
|
+
m.current = i.current, b();
|
|
123
111
|
}
|
|
124
112
|
}, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
M,
|
|
114
|
+
i,
|
|
115
|
+
u,
|
|
128
116
|
o,
|
|
117
|
+
b,
|
|
129
118
|
w,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
P,
|
|
119
|
+
m,
|
|
120
|
+
e,
|
|
121
|
+
t
|
|
122
|
+
]), /* @__PURE__ */ ee(ve, { children: [
|
|
123
|
+
/* @__PURE__ */ r(
|
|
124
|
+
T,
|
|
137
125
|
{
|
|
138
|
-
id:
|
|
126
|
+
id: u.divContainerId,
|
|
139
127
|
ownerState: { isVisible: !0 }
|
|
140
128
|
},
|
|
141
|
-
|
|
129
|
+
u.divContainerId
|
|
142
130
|
),
|
|
143
|
-
|
|
144
|
-
|
|
131
|
+
X ? /* @__PURE__ */ r(
|
|
132
|
+
T,
|
|
145
133
|
{
|
|
146
|
-
id:
|
|
134
|
+
id: e.divContainerId,
|
|
147
135
|
ownerState: { isVisible: !1 }
|
|
148
136
|
},
|
|
149
|
-
|
|
137
|
+
e.divContainerId
|
|
150
138
|
) : null,
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
157
|
-
|
|
144
|
+
je as MFLoader,
|
|
145
|
+
je as default
|
|
158
146
|
};
|
package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
|
2
|
-
const
|
|
3
|
-
|
|
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
|
-
|
|
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,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;
|
|
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,oD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UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,aAAa,CAAC,EAAE,sBAAsB,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,mBAAmB,EAChC,SAAS,EAAE,aAAa,EACxB,aAAa,EAAE,UAAU,EACzB,SAAS,EAAE,aAAa,EACxB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,EACrB,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"}
|
|
@@ -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":"
|
|
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 {
|
|
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
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[t.
|
|
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
|
-
|
|
24
|
-
|
|
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":"
|
|
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
|
|
2
|
-
import { shallow as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
8
|
-
import { PADDING_GRIDLAYOUT as p, MARGIN_GRIDLAYOUT as f, RESPONSIVE_ROW_HEIGHTS as
|
|
9
|
-
import { MemonizePopupsViewer as
|
|
10
|
-
import { useState as
|
|
11
|
-
import { dragResizeWindowRNDClasses as
|
|
12
|
-
import { useTheme as
|
|
13
|
-
import { useComponentSize as
|
|
14
|
-
import { withSizeProvider as
|
|
15
|
-
import { Responsive as
|
|
16
|
-
const
|
|
17
|
-
const { areaId: r, size: I } = h,
|
|
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
|
-
|
|
20
|
-
), d =
|
|
21
|
-
t && t.classList.add(
|
|
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.
|
|
24
|
+
t && t.classList.add(s.dragging);
|
|
24
25
|
}, v = () => {
|
|
25
|
-
t && t.classList.
|
|
26
|
-
}, x = () => {
|
|
27
|
-
t &&
|
|
28
|
-
}, _ = (
|
|
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
|
|
39
|
+
return P(() => {
|
|
41
40
|
if (!t || !c)
|
|
42
41
|
return;
|
|
43
|
-
let e = 0, a =
|
|
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
|
-
|
|
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:
|
|
67
|
+
className: N(
|
|
69
68
|
g.areaGridLayout,
|
|
70
69
|
`${g.areaGridLayout}-${r}`
|
|
71
70
|
),
|
|
72
|
-
layouts:
|
|
73
|
-
onLayoutChange: (e, a) =>
|
|
74
|
-
draggableHandle: `.${
|
|
75
|
-
draggableCancel: `.${
|
|
76
|
-
layoutItemRender: (e) => y.indexOf(e.i) === -1 ? /* @__PURE__ */ m(
|
|
77
|
-
breakpoints:
|
|
78
|
-
colapsedHeight:
|
|
79
|
-
rowHeight:
|
|
80
|
-
cols:
|
|
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
|
-
|
|
83
|
+
z(r, e);
|
|
85
84
|
},
|
|
86
85
|
preventCollision: !1,
|
|
87
|
-
maximizeId:
|
|
86
|
+
maximizeId: S,
|
|
88
87
|
children: /* @__PURE__ */ m(
|
|
89
|
-
|
|
88
|
+
T,
|
|
90
89
|
{
|
|
91
90
|
groupId: r,
|
|
92
|
-
loggedUser: A,
|
|
93
91
|
containerElement: t,
|
|
94
|
-
onResizeStart:
|
|
95
|
-
onResizeStop:
|
|
96
|
-
onDragStart:
|
|
97
|
-
onDragStop:
|
|
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
|
-
|
|
102
|
+
ne as AreaGridLayout
|
|
105
103
|
};
|