@m4l/components 9.17.1-beta-feature-731-m4l-components-code-editor.0 → 9.18.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/@types/types.d.ts +0 -11
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
- package/components/CommonActions/index.d.ts +1 -0
- package/components/CommonActions/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
- package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
- package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
- package/components/DragResizeWindowRND/types.d.ts +3 -1
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +49 -49
- package/components/WindowBase/WindowBase.styles.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +37 -12
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
- package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
- package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
- package/components/areas/components/AreasAdmin/types.d.ts +9 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
- package/components/areas/components/AreasViewer/constants.d.ts +12 -0
- package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/constants.js +5 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +51 -48
- package/components/areas/contexts/AreasContext/store.d.ts +2 -3
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +397 -290
- package/components/areas/contexts/AreasContext/types.d.ts +109 -85
- package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +9 -6
- package/components/areas/hooks/useAreas/index.d.ts +2 -2
- package/components/areas/hooks/useAreas/index.js +4 -4
- package/components/areas/types.d.ts +173 -47
- package/components/areas/types.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.js +15 -0
- package/components/extended/index.d.ts +0 -1
- package/components/extended/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/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/index.d.ts.map +1 -1
- package/hooks/useWindowCloseGuard/index.d.ts +18 -0
- package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
- package/hooks/useWindowCloseGuard/index.js +56 -0
- package/index.js +664 -675
- package/package.json +7 -10
- package/test/mocks/dictionary-mock.d.ts +2 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
- package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PanelWindowProps } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Render one panel inside a dedicated slot so the Window shell can occupy the
|
|
4
|
+
* whole panel region without inheriting popup drag/resize contracts.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PanelWindow: ({ areaId, selected, overlay, panel, panelZIndexBase, onPinnedResizeStart, }: PanelWindowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PanelWindow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelWindow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,6EAOzB,gBAAgB,qDA0DlB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { PanelSlotStyled as h, PanelWindowHostStyled as P } from "../../../../../../../slots/AreasViewerSlots.js";
|
|
3
|
+
import { Window as y } from "../../../../Window/Window.js";
|
|
4
|
+
import { useOverlayPanelResize as W } from "../../../hooks/useOverlayPanelResize.js";
|
|
5
|
+
import { shouldRenderResizeRailBeforePanel as m } from "../../../helpers/panelRuntime.js";
|
|
6
|
+
import { PanelResizeRail as f } from "./PanelResizeRail.js";
|
|
7
|
+
const D = ({
|
|
8
|
+
areaId: r,
|
|
9
|
+
selected: w,
|
|
10
|
+
overlay: i,
|
|
11
|
+
panel: e,
|
|
12
|
+
panelZIndexBase: s,
|
|
13
|
+
onPinnedResizeStart: l
|
|
14
|
+
}) => {
|
|
15
|
+
const { containerRef: R, handleResizeStart: c, resizeHandleStyle: S, slotStyle: a } = W({
|
|
16
|
+
areaId: r,
|
|
17
|
+
overlay: i,
|
|
18
|
+
panel: e,
|
|
19
|
+
selected: w
|
|
20
|
+
}), u = /* @__PURE__ */ n(
|
|
21
|
+
h,
|
|
22
|
+
{
|
|
23
|
+
ref: R,
|
|
24
|
+
ownerState: { side: e.side, overlay: i, panelZIndexBase: s },
|
|
25
|
+
style: a,
|
|
26
|
+
"data-testid": `areas-panel-slot-${e.side}-${i ? "overlay" : "docked"}`,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(y, { windowId: e.windowId, areaId: r }) }),
|
|
29
|
+
i ? /* @__PURE__ */ t(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
"data-testid": `areas-panel-resize-handle-${e.side}`,
|
|
33
|
+
onMouseDown: c,
|
|
34
|
+
style: S
|
|
35
|
+
}
|
|
36
|
+
) : null
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
return /* @__PURE__ */ n(z, { children: [
|
|
41
|
+
!i && m(e.side) ? /* @__PURE__ */ t(
|
|
42
|
+
f,
|
|
43
|
+
{
|
|
44
|
+
panel: e,
|
|
45
|
+
side: e.side,
|
|
46
|
+
panelZIndexBase: s,
|
|
47
|
+
onResizeStart: (o, d) => {
|
|
48
|
+
l?.(o, d);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
) : null,
|
|
52
|
+
u,
|
|
53
|
+
!i && !m(e.side) ? /* @__PURE__ */ t(
|
|
54
|
+
f,
|
|
55
|
+
{
|
|
56
|
+
panel: e,
|
|
57
|
+
side: e.side,
|
|
58
|
+
panelZIndexBase: s,
|
|
59
|
+
onResizeStart: (o, d) => {
|
|
60
|
+
l?.(o, d);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
) : null
|
|
64
|
+
] });
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
D as PanelWindow
|
|
68
|
+
};
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
|
+
import { MouseEvent as ReactMouseEvent, ReactNode } from 'react';
|
|
1
2
|
import { AreasViewerProps } from '../../../../types';
|
|
3
|
+
import { PanelSide } from '../../../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Shared props used by the BaseArea subtree to identify the rendered area.
|
|
6
|
+
*/
|
|
2
7
|
export type InnerForHooksProps = {
|
|
3
8
|
areaId: string;
|
|
9
|
+
selected: boolean;
|
|
4
10
|
size: AreasViewerProps['size'];
|
|
5
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Props required to render the panel-aware body for one area.
|
|
14
|
+
*/
|
|
15
|
+
export type AreaPanelsProps = InnerForHooksProps & {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Normalized panel model consumed by the runtime layout layer.
|
|
20
|
+
*/
|
|
21
|
+
export type PanelRuntimeDescriptor = {
|
|
22
|
+
windowId: string;
|
|
23
|
+
side: PanelSide;
|
|
24
|
+
pinned: boolean;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
maxWidth?: number;
|
|
28
|
+
maxHeight?: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Props used by one concrete panel slot instance.
|
|
32
|
+
*/
|
|
33
|
+
export type PanelWindowProps = {
|
|
34
|
+
areaId: string;
|
|
35
|
+
selected: boolean;
|
|
36
|
+
overlay: boolean;
|
|
37
|
+
panel: PanelRuntimeDescriptor;
|
|
38
|
+
panelZIndexBase: number;
|
|
39
|
+
onPinnedResizeStart?: (panel: PanelRuntimeDescriptor, event: ReactMouseEvent<HTMLDivElement>) => void;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Transient resize state for overlay panels, tracked locally inside their slot.
|
|
43
|
+
*/
|
|
44
|
+
export type ResizeSession = {
|
|
45
|
+
pointerStart: number;
|
|
46
|
+
sizeStart: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Transient resize state for pinned panels, tracked at the area layout level.
|
|
50
|
+
*/
|
|
51
|
+
export type PinnedResizeSession = {
|
|
52
|
+
pointerStart: number;
|
|
53
|
+
sizeStart: number;
|
|
54
|
+
panel: PanelRuntimeDescriptor;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Live width/height override used while a pinned panel is being resized.
|
|
58
|
+
*/
|
|
59
|
+
export type PanelLiveSize = Partial<Pick<PanelRuntimeDescriptor, 'width' | 'height'>>;
|
|
60
|
+
/**
|
|
61
|
+
* Grouped panel collections split by side and by docked/overlay mode.
|
|
62
|
+
*/
|
|
63
|
+
export type PanelsByArea = {
|
|
64
|
+
pinned: Record<PanelSide, PanelRuntimeDescriptor[]>;
|
|
65
|
+
overlay: Record<PanelSide, PanelRuntimeDescriptor[]>;
|
|
66
|
+
};
|
|
6
67
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,eAAe,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,sBAAsB,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,eAAe,CAAC,cAAc,CAAC,KACnC,IAAI,CAAC;CACX,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,QAAQ,CAAC,CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,sBAAsB,EAAE,CAAC,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,sBAAsB,EAAE,CAAC,CAAC;CACtD,CAAC"}
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts
CHANGED
|
@@ -7,12 +7,9 @@ export type WindowProps = {
|
|
|
7
7
|
areaId?: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Lee los datos y configuraciones de la ventana desde el store de Zustand,
|
|
14
|
-
* crea herramientas para el microfrontend o componente y utiliza un hook
|
|
15
|
-
* personalizado para definir las acciones del header.
|
|
10
|
+
* Render one Areas window shell inside the viewer.
|
|
11
|
+
* The component reads its runtime state from the shared store and then mounts either
|
|
12
|
+
* a microfrontend host or a local component inside the shared WindowBase chrome.
|
|
16
13
|
*/
|
|
17
14
|
export declare const Window: (props: WindowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
18
15
|
export declare const MemonizedWindow: React.MemoExoticComponent<(props: WindowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF
|
|
1
|
+
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,4DAiGxC,CAAC;AACF,eAAO,MAAM,eAAe,oCAlGE,WAAW,6DAkGQ,CAAC"}
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js
CHANGED
|
@@ -7,56 +7,56 @@ import { getNameDataTestId as $ } from "../../../../../../../../test/getNameData
|
|
|
7
7
|
import { AREAS_VIEWER_CLASS_NAME as k } from "../../../../../../constants.js";
|
|
8
8
|
import { useWindow as P } from "./hooks/useWindow.js";
|
|
9
9
|
import { WindowBaseStyled as b } from "../../../../slots/AreasViewerSlots.js";
|
|
10
|
-
import { shallow as
|
|
11
|
-
import { useAreasStore as
|
|
12
|
-
const F = (
|
|
13
|
-
const { areaId: e, windowId: r } =
|
|
10
|
+
import { shallow as u } from "zustand/shallow";
|
|
11
|
+
import { useAreasStore as f } from "../../../../../../hooks/useAreas/index.js";
|
|
12
|
+
const F = (w) => {
|
|
13
|
+
const { areaId: e, windowId: r } = w, {
|
|
14
14
|
emergeType: i,
|
|
15
|
-
moduleId:
|
|
16
|
-
winType:
|
|
17
|
-
title:
|
|
18
|
-
subTitle:
|
|
19
|
-
editionInfo:
|
|
20
|
-
iconUrl:
|
|
21
|
-
version:
|
|
22
|
-
buildTime:
|
|
23
|
-
moduleCount:
|
|
24
|
-
selected:
|
|
25
|
-
mfProps:
|
|
26
|
-
component:
|
|
15
|
+
moduleId: I,
|
|
16
|
+
winType: d,
|
|
17
|
+
title: T,
|
|
18
|
+
subTitle: A,
|
|
19
|
+
editionInfo: h,
|
|
20
|
+
iconUrl: y,
|
|
21
|
+
version: E,
|
|
22
|
+
buildTime: S,
|
|
23
|
+
moduleCount: s,
|
|
24
|
+
selected: g,
|
|
25
|
+
mfProps: a,
|
|
26
|
+
component: l,
|
|
27
27
|
loading: B,
|
|
28
|
-
status:
|
|
29
|
-
dynamicMFStore:
|
|
30
|
-
windowTools:
|
|
28
|
+
status: c,
|
|
29
|
+
dynamicMFStore: p,
|
|
30
|
+
windowTools: n,
|
|
31
31
|
onTouch: W,
|
|
32
32
|
memoizedActions: _,
|
|
33
33
|
loggedUser: v
|
|
34
|
-
} = P(r, e), x =
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
), z =
|
|
38
|
-
(
|
|
39
|
-
const o = e ?
|
|
34
|
+
} = P(r, e), x = f(
|
|
35
|
+
(t) => e ? t.hashAreas[e]?.maximizedId : void 0,
|
|
36
|
+
u
|
|
37
|
+
), z = f(
|
|
38
|
+
(t) => {
|
|
39
|
+
const o = e ? t.hashAreas[e] : void 0;
|
|
40
40
|
return o && o.currentBreakpoint && o.layouts && o.layouts[o.currentBreakpoint] && o.layouts[o.currentBreakpoint].find(
|
|
41
41
|
(M) => M.i === r
|
|
42
42
|
)?.colapsed || !1;
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
u
|
|
45
45
|
);
|
|
46
|
-
return
|
|
46
|
+
return c === void 0 ? null : /* @__PURE__ */ m(
|
|
47
47
|
b,
|
|
48
48
|
{
|
|
49
|
-
title: `${
|
|
50
|
-
subTitle:
|
|
51
|
-
editionInfo:
|
|
52
|
-
iconUrl:
|
|
49
|
+
title: `${T}${s ? `:${s}` : ""}`,
|
|
50
|
+
subTitle: A,
|
|
51
|
+
editionInfo: h,
|
|
52
|
+
iconUrl: y,
|
|
53
53
|
isLoading: B,
|
|
54
|
-
onClose: () =>
|
|
55
|
-
version:
|
|
56
|
-
buildTime:
|
|
54
|
+
onClose: () => n.close(),
|
|
55
|
+
version: E,
|
|
56
|
+
buildTime: S,
|
|
57
57
|
actions: _,
|
|
58
58
|
windowId: r,
|
|
59
|
-
selected:
|
|
59
|
+
selected: g,
|
|
60
60
|
maximized: !!x,
|
|
61
61
|
onMouseDown: W,
|
|
62
62
|
emergeType: i,
|
|
@@ -68,26 +68,26 @@ const F = (p) => {
|
|
|
68
68
|
`${i}`
|
|
69
69
|
)
|
|
70
70
|
} : {},
|
|
71
|
-
children:
|
|
71
|
+
children: c === "loaded" ? d === "microfrontend" && a ? /* @__PURE__ */ m(
|
|
72
72
|
C,
|
|
73
73
|
{
|
|
74
74
|
emergeType: i,
|
|
75
|
-
moduleId:
|
|
76
|
-
dynamicMFStore:
|
|
77
|
-
windowTools:
|
|
75
|
+
moduleId: I,
|
|
76
|
+
dynamicMFStore: p,
|
|
77
|
+
windowTools: n,
|
|
78
78
|
loggedUser: v,
|
|
79
|
-
...
|
|
79
|
+
...a
|
|
80
80
|
}
|
|
81
|
-
) : /* @__PURE__ */ m(
|
|
81
|
+
) : d === "component" && l ? /* @__PURE__ */ m(
|
|
82
82
|
D,
|
|
83
83
|
{
|
|
84
84
|
id: r,
|
|
85
85
|
emergeType: i,
|
|
86
|
-
dynamicMFStore:
|
|
87
|
-
windowTools:
|
|
88
|
-
component:
|
|
86
|
+
dynamicMFStore: p,
|
|
87
|
+
windowTools: n,
|
|
88
|
+
component: l
|
|
89
89
|
}
|
|
90
|
-
) : null
|
|
90
|
+
) : null : null
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { WindowBaseAction } from '../../../../../../../../WindowBase/types';
|
|
2
2
|
import { UseHeaderActionsParams } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Retorna las acciones del header de una ventana. Izquierda, derecha y dentro del menu.
|
|
4
|
+
* Build the three WindowBase header action lanes for the current Areas window.
|
|
7
5
|
*/
|
|
8
6
|
export declare const useHeaderActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => {
|
|
9
7
|
leftActions: WindowBaseAction[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeaderActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD
|
|
1
|
+
{"version":3,"file":"useHeaderActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,mCAI9B,sBAAsB,KAAG;IAC1B,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,YAAY,EAAE,gBAAgB,EAAE,CAAC;CAkDlC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WindowBaseAction } from '../../../../../../../../WindowBase/types';
|
|
2
2
|
import { UseHeaderActionsParams } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Build the right-side WindowBase actions for collapse/expand and maximize/normalize.
|
|
5
5
|
*/
|
|
6
6
|
export declare const useRightActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => WindowBaseAction[];
|
|
7
7
|
//# sourceMappingURL=useRightActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRightActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAG5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,mCAI7B,sBAAsB,KAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useRightActions.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAG5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,mCAI7B,sBAAsB,KAAG,gBAAgB,EAiJ3C,CAAC"}
|
|
@@ -1,77 +1,105 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { useEnvironment as
|
|
3
|
-
import { useAreasStore as
|
|
4
|
-
import { shallow as
|
|
5
|
-
import { ICONS as
|
|
6
|
-
import { getAreasDictionary as
|
|
7
|
-
const
|
|
8
|
-
windowId:
|
|
1
|
+
import { useMemo as k } from "react";
|
|
2
|
+
import { useEnvironment as C, useModuleDictionary as v } from "@m4l/core";
|
|
3
|
+
import { useAreasStore as f } from "../../../../../../../hooks/useAreas/index.js";
|
|
4
|
+
import { shallow as d } from "zustand/shallow";
|
|
5
|
+
import { ICONS as u } from "../../../../../../../icons.js";
|
|
6
|
+
import { getAreasDictionary as a, AREAS_DICCTIONARY as c } from "../../../../../../../dictionary.js";
|
|
7
|
+
const S = ({
|
|
8
|
+
windowId: e,
|
|
9
9
|
areaId: o,
|
|
10
|
-
emergeType:
|
|
10
|
+
emergeType: g
|
|
11
11
|
}) => {
|
|
12
|
-
const { host_static_assets:
|
|
13
|
-
(
|
|
14
|
-
const s = o ?
|
|
12
|
+
const { host_static_assets: t, environment_assets: i } = C(), { getLabel: l } = v(), h = `${t}/${i}/frontend/components/data_grid/assets/icons/pin.svg`, _ = `${t}/${i}/frontend/components/data_grid/assets/icons/pin-off.svg`, p = f(
|
|
13
|
+
(n) => {
|
|
14
|
+
const s = o ? n.hashAreas[o] : void 0;
|
|
15
15
|
return s && s.currentBreakpoint && s.layouts && s.layouts[s.currentBreakpoint] && s.layouts[s.currentBreakpoint].find(
|
|
16
|
-
(
|
|
16
|
+
(P) => P.i === e
|
|
17
17
|
)?.colapsed || !1;
|
|
18
18
|
},
|
|
19
|
-
|
|
20
|
-
),
|
|
21
|
-
(
|
|
22
|
-
|
|
23
|
-
),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
d
|
|
20
|
+
), r = f(
|
|
21
|
+
(n) => o ? n.hashAreas[o]?.maximizedId : void 0,
|
|
22
|
+
d
|
|
23
|
+
), m = f(
|
|
24
|
+
(n) => {
|
|
25
|
+
const s = n.hashWindows[e];
|
|
26
|
+
return s?.emergeType === "panel" ? !!s.panelProps.pinned : !1;
|
|
27
|
+
},
|
|
28
|
+
d
|
|
29
|
+
), { maximizeLayout: b, normalizeLayouts: $, colapseLayoutItem: A, unColapseLayoutItem: y, setPanelPinned: L } = f((n) => n.areaActions);
|
|
30
|
+
return k(() => {
|
|
31
|
+
const n = [];
|
|
32
|
+
return g === "layout" && (n.push({
|
|
27
33
|
place: "right",
|
|
28
34
|
key: "collapseToggle",
|
|
29
|
-
iconUrl:
|
|
30
|
-
label:
|
|
35
|
+
iconUrl: p ? `${t}/${i}/frontend/components/areas/assets/icons/${u.UNCOLLPASE}` : `${t}/${i}/frontend/components/areas/assets/icons/${u.COLLAPSE}`,
|
|
36
|
+
label: l(p ? a(c.label_uncollapse_window) : a(c.label_collapse_window)),
|
|
31
37
|
tooltipProps: {
|
|
32
38
|
placement: "bottom-end"
|
|
33
39
|
},
|
|
34
40
|
/**
|
|
35
|
-
*
|
|
41
|
+
* Toggle the collapsed state for the current layout window.
|
|
36
42
|
*/
|
|
37
43
|
onClick: () => {
|
|
38
|
-
o && (
|
|
44
|
+
o && (p ? y(o, e) : A(o, e));
|
|
39
45
|
},
|
|
40
|
-
disabled:
|
|
46
|
+
disabled: r !== void 0,
|
|
41
47
|
color: "warning",
|
|
42
48
|
className: "collapse-toggle window-actions"
|
|
43
|
-
}),
|
|
49
|
+
}), n.push({
|
|
44
50
|
place: "right",
|
|
45
51
|
key: "maximize",
|
|
46
|
-
iconUrl:
|
|
47
|
-
label:
|
|
52
|
+
iconUrl: r ? `${t}/${i}/frontend/components/areas/assets/icons/${u.NORMALIZE}` : `${t}/${i}/frontend/components/areas/assets/icons/${u.MAXIMIZE}`,
|
|
53
|
+
label: l(r ? a(c.label_minimize_window) : a(c.label_maximize_window)),
|
|
48
54
|
tooltipProps: {
|
|
49
55
|
placement: "bottom-end"
|
|
50
56
|
},
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Toggle the maximized state for the current layout window.
|
|
53
59
|
*/
|
|
54
60
|
onClick: () => {
|
|
55
|
-
o && (
|
|
61
|
+
o && (r ? $(o) : b(o, e));
|
|
56
62
|
},
|
|
57
63
|
disabled: !1,
|
|
58
64
|
color: "info",
|
|
59
65
|
className: "expand-toggle window-actions"
|
|
60
|
-
})),
|
|
66
|
+
})), g === "panel" && o && n.push({
|
|
67
|
+
place: "right",
|
|
68
|
+
key: "pinToggle",
|
|
69
|
+
iconUrl: m ? _ : h,
|
|
70
|
+
label: l(m ? a(c.label_unpin_panel) : a(c.label_pin_panel)),
|
|
71
|
+
tooltipProps: {
|
|
72
|
+
placement: "bottom-end"
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Toggle whether the current panel stays docked in the area flow.
|
|
76
|
+
*/
|
|
77
|
+
onClick: () => {
|
|
78
|
+
L(o, e, !m);
|
|
79
|
+
},
|
|
80
|
+
disabled: !1,
|
|
81
|
+
color: "info",
|
|
82
|
+
className: "pin-toggle window-actions"
|
|
83
|
+
}), n;
|
|
61
84
|
}, [
|
|
85
|
+
p,
|
|
62
86
|
r,
|
|
63
|
-
|
|
64
|
-
n,
|
|
65
|
-
i,
|
|
66
|
-
a,
|
|
67
|
-
o,
|
|
87
|
+
m,
|
|
68
88
|
t,
|
|
69
|
-
|
|
89
|
+
i,
|
|
70
90
|
h,
|
|
91
|
+
_,
|
|
92
|
+
l,
|
|
93
|
+
o,
|
|
94
|
+
e,
|
|
71
95
|
A,
|
|
72
|
-
|
|
96
|
+
y,
|
|
97
|
+
$,
|
|
98
|
+
b,
|
|
99
|
+
L,
|
|
100
|
+
g
|
|
73
101
|
]);
|
|
74
102
|
};
|
|
75
103
|
export {
|
|
76
|
-
|
|
104
|
+
S as useRightActions
|
|
77
105
|
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { WindowToolsMF } from '../../../../../../../../WindowBase/contexts';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* para el componente Window. Retorna un objeto con el estado, las acciones y las herramientas
|
|
7
|
-
* de la ventana.
|
|
8
|
-
* @param {string} windowId - Identificador de la ventana.
|
|
9
|
-
* @param {string} areaId - Identificador del área.
|
|
10
|
-
* @returns {Object} Un objeto con el estado, las acciones y las herramientas de la ventana.
|
|
3
|
+
* Encapsulate the runtime state, actions, and shell tools required by the Areas window viewer.
|
|
4
|
+
* This keeps the render component focused on presentation while the hook coordinates store reads,
|
|
5
|
+
* popup/layout selection behavior, cookie bootstrapping, and the `windowTools` bridge exposed to content.
|
|
11
6
|
*/
|
|
12
7
|
export declare const useWindow: (windowId: string, areaId?: string) => {
|
|
13
|
-
emergeType: "popup" | "layout" | "modal";
|
|
8
|
+
emergeType: "popup" | "layout" | "modal" | "panel";
|
|
14
9
|
moduleId: string;
|
|
15
10
|
winType: "component" | "microfrontend";
|
|
16
11
|
title: string;
|
|
@@ -21,8 +16,8 @@ export declare const useWindow: (windowId: string, areaId?: string) => {
|
|
|
21
16
|
buildTime: string | undefined;
|
|
22
17
|
moduleCount: number | undefined;
|
|
23
18
|
selected: boolean;
|
|
24
|
-
mfProps:
|
|
25
|
-
component:
|
|
19
|
+
mfProps: import('../../../../../../../..').MFBaseProps | undefined;
|
|
20
|
+
component: import('../../../../../../../..').JSX_REACT_NODE | undefined;
|
|
26
21
|
loading: boolean;
|
|
27
22
|
status: import('../../../../../../../types').WindowStatus;
|
|
28
23
|
dynamicMFStore: Omit<import('zustand').StoreApi<import('../../../../../../../../WindowBase/contexts/DynamicMFParmsContext/store').DynamicMFStateWithActions>, "setState"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWindow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAG5E
|
|
1
|
+
{"version":3,"file":"useWindow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAG5E;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAK,UAAU,MAAM,EAAE,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAoH3D,CAAC"}
|