@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
|
@@ -6,41 +6,41 @@ import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
|
|
|
6
6
|
export type AreasAdminType = keyof typeof AreasAdminSlots;
|
|
7
7
|
export interface AreasAdminProps {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Component color variant.
|
|
10
10
|
*/
|
|
11
11
|
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Supported component sizes.
|
|
14
14
|
*/
|
|
15
15
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
16
16
|
/**
|
|
17
|
-
* data-testid
|
|
17
|
+
* Optional `data-testid` override for tests.
|
|
18
18
|
*/
|
|
19
19
|
dataTestId?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Optional custom CSS class applied to the root slot.
|
|
22
22
|
*/
|
|
23
23
|
className?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Additional props forwarded to the root slot.
|
|
26
26
|
*/
|
|
27
27
|
[key: string]: unknown;
|
|
28
28
|
}
|
|
29
29
|
export interface AreasAdminOwnerState {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Whether the current device layout is mobile.
|
|
32
32
|
*/
|
|
33
33
|
isMobile: boolean;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Effective component size.
|
|
36
36
|
*/
|
|
37
37
|
size: AreasAdminProps['size'];
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Effective color variant.
|
|
40
40
|
*/
|
|
41
41
|
color: AreasAdminProps['color'];
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Additional owner-state fields consumed by styled slots.
|
|
44
44
|
*/
|
|
45
45
|
[key: string]: unknown;
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreasViewer.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasViewer/AreasViewer.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AreasViewer.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasViewer/AreasViewer.styles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,eAAO,MAAM,iBAAiB,EAAE,iBA8O/B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { dragResizeWindowRNDClasses as
|
|
2
|
-
|
|
1
|
+
import { dragResizeWindowRNDClasses as t } from "../../../DragResizeWindowRND/classes/index.js";
|
|
2
|
+
import { AREAS_VIEWER_PANEL_INTERACTION_LAYER_OFFSET as n, AREAS_VIEWER_PANEL_RESIZE_RAIL_OFFSET as l, AREAS_VIEWER_PANEL_STACKING_OFFSET as o } from "./constants.js";
|
|
3
|
+
const d = {
|
|
3
4
|
/**
|
|
4
5
|
* Root areas viewer Styles
|
|
5
6
|
*/
|
|
6
|
-
root: ({ theme: e, ownerState:
|
|
7
|
+
root: ({ theme: e, ownerState: i }) => ({
|
|
7
8
|
width: "100%",
|
|
8
9
|
height: "100%",
|
|
9
10
|
overflow: "hidden",
|
|
@@ -14,13 +15,14 @@ const r = {
|
|
|
14
15
|
height: "100% !important",
|
|
15
16
|
overflow: "auto",
|
|
16
17
|
flexGrow: 1,
|
|
17
|
-
[`&.${
|
|
18
|
+
[`&.${t.dragging}, &.${t.resizing}`]: {
|
|
19
|
+
// Prevent nested window gestures from competing with panel-resize gestures.
|
|
18
20
|
pointerEvents: "none",
|
|
19
21
|
userSelect: "none",
|
|
20
22
|
touchAction: "none"
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
|
-
...
|
|
25
|
+
...i?.maximized ? {
|
|
24
26
|
background: e.vars.palette.background.default
|
|
25
27
|
} : {}
|
|
26
28
|
}),
|
|
@@ -51,6 +53,172 @@ const r = {
|
|
|
51
53
|
width: "100%",
|
|
52
54
|
overflow: "hidden"
|
|
53
55
|
}),
|
|
56
|
+
/**
|
|
57
|
+
* Panel-aware layout wrapper for one area body.
|
|
58
|
+
*/
|
|
59
|
+
panelLayout: () => ({
|
|
60
|
+
display: "flex",
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
width: "100%",
|
|
63
|
+
height: "100%",
|
|
64
|
+
minWidth: 0,
|
|
65
|
+
minHeight: 0,
|
|
66
|
+
overflow: "hidden",
|
|
67
|
+
position: "relative"
|
|
68
|
+
}),
|
|
69
|
+
/**
|
|
70
|
+
* Horizontal row that holds docked left/right panels plus the main layout flow.
|
|
71
|
+
*/
|
|
72
|
+
panelMiddleRow: () => ({
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexDirection: "row",
|
|
75
|
+
flexGrow: 1,
|
|
76
|
+
minWidth: 0,
|
|
77
|
+
minHeight: 0,
|
|
78
|
+
overflow: "hidden"
|
|
79
|
+
}),
|
|
80
|
+
/**
|
|
81
|
+
* Central column that keeps top/bottom docked panels aligned with the grid width.
|
|
82
|
+
*/
|
|
83
|
+
panelCenterColumn: () => ({
|
|
84
|
+
display: "flex",
|
|
85
|
+
flexDirection: "column",
|
|
86
|
+
flexGrow: 1,
|
|
87
|
+
minWidth: 0,
|
|
88
|
+
minHeight: 0,
|
|
89
|
+
overflow: "hidden"
|
|
90
|
+
}),
|
|
91
|
+
/**
|
|
92
|
+
* Main layout flow that keeps the responsive grid and overlay panels together.
|
|
93
|
+
*/
|
|
94
|
+
mainLayoutFlow: ({ ownerState: e }) => ({
|
|
95
|
+
position: "relative",
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexGrow: 1,
|
|
98
|
+
minWidth: 0,
|
|
99
|
+
minHeight: 0,
|
|
100
|
+
overflow: "hidden",
|
|
101
|
+
...e?.isResizingPanel ? {
|
|
102
|
+
// Let the temporary panel interaction layer own the pointer while a pinned panel resizes.
|
|
103
|
+
pointerEvents: "none"
|
|
104
|
+
} : {}
|
|
105
|
+
}),
|
|
106
|
+
/**
|
|
107
|
+
* Overlay root used by unpinned panels so they sit above the main layout flow.
|
|
108
|
+
*/
|
|
109
|
+
overlayPanels: ({ ownerState: e }) => ({
|
|
110
|
+
position: "absolute",
|
|
111
|
+
inset: 0,
|
|
112
|
+
zIndex: (e?.panelZIndexBase ?? 0) + o,
|
|
113
|
+
pointerEvents: "none",
|
|
114
|
+
"& > *": {
|
|
115
|
+
// Overlay children recover pointer events normally, except during an active pinned resize session.
|
|
116
|
+
pointerEvents: e?.isResizingPanel ? "none" : "auto"
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
/**
|
|
120
|
+
* Shared slot used by docked and overlay panels.
|
|
121
|
+
*/
|
|
122
|
+
panelSlot: ({ ownerState: e, theme: i }) => ({
|
|
123
|
+
display: "flex",
|
|
124
|
+
flexShrink: 0,
|
|
125
|
+
minWidth: 0,
|
|
126
|
+
minHeight: 0,
|
|
127
|
+
overflow: "hidden",
|
|
128
|
+
...e?.overlay ? {
|
|
129
|
+
position: "absolute",
|
|
130
|
+
zIndex: (e?.panelZIndexBase ?? 0) + o
|
|
131
|
+
} : {
|
|
132
|
+
position: "relative",
|
|
133
|
+
zIndex: (e?.panelZIndexBase ?? 0) + o
|
|
134
|
+
},
|
|
135
|
+
...e?.side === "left" && {
|
|
136
|
+
left: 0,
|
|
137
|
+
top: 0,
|
|
138
|
+
bottom: 0,
|
|
139
|
+
height: "100%",
|
|
140
|
+
...e?.overlay ? {
|
|
141
|
+
boxShadow: `12px 0 16px 0 ${i.vars.palette.background.neutral} !important`
|
|
142
|
+
} : {}
|
|
143
|
+
},
|
|
144
|
+
...e?.side === "right" && {
|
|
145
|
+
right: 0,
|
|
146
|
+
top: 0,
|
|
147
|
+
bottom: 0,
|
|
148
|
+
height: "100%",
|
|
149
|
+
...e?.overlay ? {
|
|
150
|
+
boxShadow: `-12px 0 16px 0 ${i.vars.palette.background.neutral} !important`
|
|
151
|
+
} : {}
|
|
152
|
+
},
|
|
153
|
+
...e?.side === "top" && {
|
|
154
|
+
top: 0,
|
|
155
|
+
left: 0,
|
|
156
|
+
right: 0,
|
|
157
|
+
width: "100%",
|
|
158
|
+
...e?.overlay ? {
|
|
159
|
+
boxShadow: `0 12px 16px 0 ${i.vars.palette.background.neutral} !important`
|
|
160
|
+
} : {}
|
|
161
|
+
},
|
|
162
|
+
...e?.side === "bottom" && {
|
|
163
|
+
bottom: 0,
|
|
164
|
+
left: 0,
|
|
165
|
+
right: 0,
|
|
166
|
+
width: "100%",
|
|
167
|
+
...e?.overlay ? {
|
|
168
|
+
boxShadow: `0 -12px 16px 0 ${i.vars.palette.background.neutral} !important`
|
|
169
|
+
} : {}
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
/**
|
|
173
|
+
* Full-size host that lets the Window shell occupy the resolved panel slot
|
|
174
|
+
* without depending on DragResizeWindowRND as an extra wrapper.
|
|
175
|
+
*/
|
|
176
|
+
panelWindowHost: () => ({
|
|
177
|
+
position: "relative",
|
|
178
|
+
display: "flex",
|
|
179
|
+
flexGrow: 1,
|
|
180
|
+
width: "100%",
|
|
181
|
+
height: "100%",
|
|
182
|
+
minWidth: 0,
|
|
183
|
+
minHeight: 0,
|
|
184
|
+
overflow: "hidden"
|
|
185
|
+
}),
|
|
186
|
+
/**
|
|
187
|
+
* Stable sibling rail used by pinned panels so the resize gesture does not
|
|
188
|
+
* depend on the shrinking panel slot itself.
|
|
189
|
+
*/
|
|
190
|
+
panelResizeRail: ({ ownerState: e }) => ({
|
|
191
|
+
position: "relative",
|
|
192
|
+
flexShrink: 0,
|
|
193
|
+
overflow: "visible",
|
|
194
|
+
pointerEvents: "none",
|
|
195
|
+
zIndex: (e?.panelZIndexBase ?? 0) + l,
|
|
196
|
+
...e?.side === "left" || e?.side === "right" ? {
|
|
197
|
+
width: 0,
|
|
198
|
+
minWidth: 0,
|
|
199
|
+
height: "100%",
|
|
200
|
+
alignSelf: "stretch"
|
|
201
|
+
} : {
|
|
202
|
+
height: 0,
|
|
203
|
+
minHeight: 0,
|
|
204
|
+
width: "100%"
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
207
|
+
/**
|
|
208
|
+
* Transparent layer mounted only while a pinned-panel resize session is active.
|
|
209
|
+
* It owns the gesture after the rail mousedown so the user can move quickly
|
|
210
|
+
* across the whole viewer without depending on the narrow rail hit area.
|
|
211
|
+
*/
|
|
212
|
+
panelResizeInteractionLayer: ({ ownerState: e }) => ({
|
|
213
|
+
position: "absolute",
|
|
214
|
+
inset: 0,
|
|
215
|
+
zIndex: (e?.panelZIndexBase ?? 0) + n,
|
|
216
|
+
background: "transparent",
|
|
217
|
+
pointerEvents: "auto",
|
|
218
|
+
userSelect: "none",
|
|
219
|
+
touchAction: "none",
|
|
220
|
+
cursor: e?.side === "left" || e?.side === "right" ? "col-resize" : "row-resize"
|
|
221
|
+
}),
|
|
54
222
|
/**
|
|
55
223
|
* Wrapper window modal Styles
|
|
56
224
|
*/
|
|
@@ -65,5 +233,5 @@ const r = {
|
|
|
65
233
|
windowBase: () => ({})
|
|
66
234
|
};
|
|
67
235
|
export {
|
|
68
|
-
|
|
236
|
+
d as areasViewerStyles
|
|
69
237
|
};
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
export declare const AREAS_VIEWER_KEY_COMPONENT = "M4LAreasViewer";
|
|
2
|
+
/**
|
|
3
|
+
* Keep panel shells one layer above the highest popup z-index currently in use.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AREAS_VIEWER_PANEL_STACKING_OFFSET = 1;
|
|
6
|
+
/**
|
|
7
|
+
* Keep the pinned-panel resize rail above the panel shell it controls.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AREAS_VIEWER_PANEL_RESIZE_RAIL_OFFSET = 2;
|
|
10
|
+
/**
|
|
11
|
+
* Keep the temporary interaction layer above every panel shell and resize rail.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AREAS_VIEWER_PANEL_INTERACTION_LAYER_OFFSET = 3;
|
|
2
14
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasViewer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasViewer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,qCAAqC,IAAI,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,2CAA2C,IAAI,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
const E = "M4LAreasViewer";
|
|
1
|
+
const E = "M4LAreasViewer", _ = 1, A = 2, R = 3;
|
|
2
2
|
export {
|
|
3
|
-
E as AREAS_VIEWER_KEY_COMPONENT
|
|
3
|
+
E as AREAS_VIEWER_KEY_COMPONENT,
|
|
4
|
+
R as AREAS_VIEWER_PANEL_INTERACTION_LAYER_OFFSET,
|
|
5
|
+
A as AREAS_VIEWER_PANEL_RESIZE_RAIL_OFFSET,
|
|
6
|
+
_ as AREAS_VIEWER_PANEL_STACKING_OFFSET
|
|
4
7
|
};
|
|
@@ -2,6 +2,15 @@ export declare enum AreasViewerSlots {
|
|
|
2
2
|
root = "root",
|
|
3
3
|
areaRoot = "areaRoot",
|
|
4
4
|
baseArea = "baseArea",
|
|
5
|
+
panelLayout = "panelLayout",
|
|
6
|
+
panelMiddleRow = "panelMiddleRow",
|
|
7
|
+
panelCenterColumn = "panelCenterColumn",
|
|
8
|
+
mainLayoutFlow = "mainLayoutFlow",
|
|
9
|
+
overlayPanels = "overlayPanels",
|
|
10
|
+
panelSlot = "panelSlot",
|
|
11
|
+
panelWindowHost = "panelWindowHost",
|
|
12
|
+
panelResizeRail = "panelResizeRail",
|
|
13
|
+
panelResizeInteractionLayer = "panelResizeInteractionLayer",
|
|
5
14
|
wrapperWindowModal = "wrapperWindowModal",
|
|
6
15
|
windowBase = "windowBase"
|
|
7
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreasViewerEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/slots/AreasViewerEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAE1B,IAAI,SAAS;IAEb,QAAQ,aAAa;IAErB,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"file":"AreasViewerEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/slots/AreasViewerEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAE1B,IAAI,SAAS;IAEb,QAAQ,aAAa;IAErB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,2BAA2B,gCAAgC;IAE3D,kBAAkB,uBAAuB;IAEzC,UAAU,eAAe;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((n) => (n.root = "root", n.areaRoot = "areaRoot", n.baseArea = "baseArea", n.panelLayout = "panelLayout", n.panelMiddleRow = "panelMiddleRow", n.panelCenterColumn = "panelCenterColumn", n.mainLayoutFlow = "mainLayoutFlow", n.overlayPanels = "overlayPanels", n.panelSlot = "panelSlot", n.panelWindowHost = "panelWindowHost", n.panelResizeRail = "panelResizeRail", n.panelResizeInteractionLayer = "panelResizeInteractionLayer", n.wrapperWindowModal = "wrapperWindowModal", n.windowBase = "windowBase", n))(a || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as AreasViewerSlots
|
|
4
4
|
};
|
|
@@ -7,6 +7,33 @@ export declare const AreaRootStyled: import('@emotion/styled').StyledComponent<i
|
|
|
7
7
|
export declare const BaseAreaStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
8
|
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const PanelLayoutStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
12
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const PanelMiddleRowStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const PanelCenterColumnStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
18
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const MainLayoutFlowStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
+
export declare const OverlayPanelsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
23
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
24
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
25
|
+
export declare const PanelSlotStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
26
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
27
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
28
|
+
export declare const PanelWindowHostStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
29
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
30
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
31
|
+
export declare const PanelResizeRailStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
32
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
33
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
34
|
+
export declare const PanelResizeInteractionLayerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
35
|
+
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
36
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
37
|
export declare const WrapperWindowModalStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
38
|
ownerState?: (Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>) | undefined;
|
|
12
39
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreasViewerSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/slots/AreasViewerSlots.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;6NAGP,CAAC;AAC5B,eAAO,MAAM,cAAc;;6NAGI,CAAC;AAChC,eAAO,MAAM,cAAc;;6NAGI,CAAC;
|
|
1
|
+
{"version":3,"file":"AreasViewerSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/slots/AreasViewerSlots.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;6NAGP,CAAC;AAC5B,eAAO,MAAM,cAAc;;6NAGI,CAAC;AAChC,eAAO,MAAM,cAAc;;6NAGI,CAAC;AAChC,eAAO,MAAM,iBAAiB;;6NAGI,CAAC;AACnC,eAAO,MAAM,oBAAoB;;6NAGI,CAAC;AACtC,eAAO,MAAM,uBAAuB;;6NAGI,CAAC;AACzC,eAAO,MAAM,oBAAoB;;6NAGI,CAAC;AACtC,eAAO,MAAM,mBAAmB;;6NAGI,CAAC;AACrC,eAAO,MAAM,eAAe;;6NAGI,CAAC;AACjC,eAAO,MAAM,qBAAqB;;6NAGI,CAAC;AACvC,eAAO,MAAM,qBAAqB;;6NAGI,CAAC;AACvC,eAAO,MAAM,iCAAiC;;6NAGI,CAAC;AAGnD,eAAO,MAAM,wBAAwB;;6NAGI,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;UAGI,CAAC"}
|
|
@@ -1,28 +1,65 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import { AREAS_VIEWER_KEY_COMPONENT as
|
|
3
|
-
import { AreasViewerSlots as
|
|
4
|
-
import { areasViewerStyles as
|
|
5
|
-
import { WindowBase as
|
|
6
|
-
const m =
|
|
7
|
-
name:
|
|
8
|
-
slot:
|
|
9
|
-
})(
|
|
10
|
-
name:
|
|
11
|
-
slot:
|
|
12
|
-
})(
|
|
13
|
-
name:
|
|
14
|
-
slot:
|
|
15
|
-
})(
|
|
16
|
-
name:
|
|
17
|
-
slot:
|
|
18
|
-
})(
|
|
19
|
-
name:
|
|
20
|
-
slot:
|
|
21
|
-
})(
|
|
1
|
+
import { styled as e } from "@mui/material/styles";
|
|
2
|
+
import { AREAS_VIEWER_KEY_COMPONENT as o } from "../constants.js";
|
|
3
|
+
import { AreasViewerSlots as a } from "./AreasViewerEnum.js";
|
|
4
|
+
import { areasViewerStyles as t } from "../AreasViewer.styles.js";
|
|
5
|
+
import { WindowBase as n } from "../../../../WindowBase/WindowBase.js";
|
|
6
|
+
const m = e("div", {
|
|
7
|
+
name: o,
|
|
8
|
+
slot: a.root
|
|
9
|
+
})(t?.root), p = e("div", {
|
|
10
|
+
name: o,
|
|
11
|
+
slot: a.areaRoot
|
|
12
|
+
})(t?.areaRoot), y = e("div", {
|
|
13
|
+
name: o,
|
|
14
|
+
slot: a.baseArea
|
|
15
|
+
})(t?.baseArea), w = e("div", {
|
|
16
|
+
name: o,
|
|
17
|
+
slot: a.panelLayout
|
|
18
|
+
})(t?.panelLayout), S = e("div", {
|
|
19
|
+
name: o,
|
|
20
|
+
slot: a.panelMiddleRow
|
|
21
|
+
})(t?.panelMiddleRow), R = e("div", {
|
|
22
|
+
name: o,
|
|
23
|
+
slot: a.panelCenterColumn
|
|
24
|
+
})(t?.panelCenterColumn), c = e("div", {
|
|
25
|
+
name: o,
|
|
26
|
+
slot: a.mainLayoutFlow
|
|
27
|
+
})(t?.mainLayoutFlow);
|
|
28
|
+
e("div", {
|
|
29
|
+
name: o,
|
|
30
|
+
slot: a.overlayPanels
|
|
31
|
+
})(t?.overlayPanels);
|
|
32
|
+
const v = e("div", {
|
|
33
|
+
name: o,
|
|
34
|
+
slot: a.panelSlot
|
|
35
|
+
})(t?.panelSlot), P = e("div", {
|
|
36
|
+
name: o,
|
|
37
|
+
slot: a.panelWindowHost
|
|
38
|
+
})(t?.panelWindowHost), W = e("div", {
|
|
39
|
+
name: o,
|
|
40
|
+
slot: a.panelResizeRail
|
|
41
|
+
})(t?.panelResizeRail), u = e("div", {
|
|
42
|
+
name: o,
|
|
43
|
+
slot: a.panelResizeInteractionLayer
|
|
44
|
+
})(t?.panelResizeInteractionLayer), L = e("div", {
|
|
45
|
+
name: o,
|
|
46
|
+
slot: a.wrapperWindowModal
|
|
47
|
+
})(t?.wrapperWindowModal), A = e(n, {
|
|
48
|
+
name: o,
|
|
49
|
+
slot: a.windowBase
|
|
50
|
+
})(t?.windowBase);
|
|
22
51
|
export {
|
|
23
|
-
|
|
52
|
+
p as AreaRootStyled,
|
|
24
53
|
m as AreasViewerRootStyled,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
54
|
+
y as BaseAreaStyled,
|
|
55
|
+
c as MainLayoutFlowStyled,
|
|
56
|
+
R as PanelCenterColumnStyled,
|
|
57
|
+
w as PanelLayoutStyled,
|
|
58
|
+
S as PanelMiddleRowStyled,
|
|
59
|
+
u as PanelResizeInteractionLayerStyled,
|
|
60
|
+
W as PanelResizeRailStyled,
|
|
61
|
+
v as PanelSlotStyled,
|
|
62
|
+
P as PanelWindowHostStyled,
|
|
63
|
+
A as WindowBaseStyled,
|
|
64
|
+
L as WrapperWindowModalStyled
|
|
28
65
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AreaProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* El AreaProvider crea el store del área, por medio del cual se controla todo el estado y almacenamiento del área
|
|
5
|
-
* @param props AreaProps
|
|
6
|
-
* @returns JSX
|
|
3
|
+
* Render one complete Areas workspace once its area-level state has initialized.
|
|
7
4
|
*/
|
|
8
5
|
export declare const Area: {
|
|
9
6
|
(props: AreaProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Area.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/Area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"Area.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/Area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;YAAW,SAAS;;CAWpC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { BaseArea as i } from "./subcomponents/BaseArea/BaseArea.js";
|
|
3
3
|
import { useAreasStore as m } from "../../../../hooks/useAreas/index.js";
|
|
4
4
|
import { AreaRootStyled as n } from "../../slots/AreasViewerSlots.js";
|
|
5
|
-
const u = (
|
|
6
|
-
const { selected:
|
|
7
|
-
return m((o) => o.hashAreas[
|
|
5
|
+
const u = (s) => {
|
|
6
|
+
const { selected: r, areaId: t, size: a } = s;
|
|
7
|
+
return m((o) => o.hashAreas[t].status) === "init" ? null : /* @__PURE__ */ e(n, { ownerState: { selected: r }, children: /* @__PURE__ */ e(i, { areaId: t, selected: r, size: a }) });
|
|
8
8
|
};
|
|
9
9
|
u.displayName = "Area";
|
|
10
10
|
export {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GridLayoutProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @returns JSX
|
|
3
|
+
* Render the responsive grid for one area together with its popup overlay layer.
|
|
5
4
|
*/
|
|
6
5
|
export declare const AreaGridLayout: (props: GridLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
6
|
//# sourceMappingURL=AreaGridLayout.d.ts.map
|
|
@@ -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":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAa1C
|
|
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;AAa1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDAsIpD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InnerForHooksProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Render the current work area body or its loading/error state.
|
|
4
4
|
*/
|
|
5
5
|
export declare const BaseArea: (props: InnerForHooksProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=BaseArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseArea.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseArea.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAK7C;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,kBAAkB,qDAqBjD,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { AreaGridLayout as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { AreaGridLayout as n } from "../AreaGridLayout/AreaGridLayout.js";
|
|
3
|
+
import { AreaPanels as c } from "./subcomponents/AreaPanels/AreaPanels.js";
|
|
4
|
+
import { useAreasStore as s } from "../../../../../../hooks/useAreas/index.js";
|
|
5
|
+
import { LoadingError as l } from "../../../../../../../LoadingError/LoadingError.js";
|
|
5
6
|
import { BaseAreaStyled as p } from "../../../../slots/AreasViewerSlots.js";
|
|
6
|
-
import { shallow as
|
|
7
|
-
const
|
|
8
|
-
const { areaId: r, size:
|
|
9
|
-
(
|
|
10
|
-
|
|
7
|
+
import { shallow as f } from "zustand/shallow";
|
|
8
|
+
const w = (i) => {
|
|
9
|
+
const { areaId: r, selected: m, size: a } = i, t = s((e) => e.hashAreas[r].status), d = s(
|
|
10
|
+
(e) => r ? e.hashAreas[r]?.maximizedId : void 0,
|
|
11
|
+
f
|
|
11
12
|
);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ o(p, { ownerState: { maximizedId: d }, children: t === "loaded" ? /* @__PURE__ */ o(c, { areaId: r, selected: m, size: a, children: /* @__PURE__ */ o(n, { areaId: r, size: a }) }) : /* @__PURE__ */ o(l, { status: t, action: () => {
|
|
13
14
|
} }) });
|
|
14
15
|
};
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
w as BaseArea
|
|
17
18
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { PanelSide } from '../../../../../../../types';
|
|
3
|
+
import { PanelRuntimeDescriptor } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Default runtime width applied when a side panel does not persist a custom size yet.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PANEL_DEFAULT_WIDTH = 360;
|
|
8
|
+
/**
|
|
9
|
+
* Default runtime height applied when a top/bottom panel does not persist a custom size yet.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PANEL_DEFAULT_HEIGHT = 280;
|
|
12
|
+
/**
|
|
13
|
+
* Hard minimum width used to avoid collapsing left/right panels into unusable shells.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PANEL_MIN_WIDTH = 200;
|
|
16
|
+
/**
|
|
17
|
+
* Hard minimum height used to avoid collapsing top/bottom panels into unusable shells.
|
|
18
|
+
*/
|
|
19
|
+
export declare const PANEL_MIN_HEIGHT = 100;
|
|
20
|
+
/**
|
|
21
|
+
* Invisible hit-area thickness for resize affordances.
|
|
22
|
+
*/
|
|
23
|
+
export declare const PANEL_RESIZE_HANDLE_SIZE = 10;
|
|
24
|
+
/**
|
|
25
|
+
* Canonical side order used to render and group panel windows.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PANEL_SIDES: PanelSide[];
|
|
28
|
+
/**
|
|
29
|
+
* Detect whether a panel grows along the horizontal axis.
|
|
30
|
+
*/
|
|
31
|
+
export declare const isHorizontalPanelSide: (side: PanelSide) => side is "left" | "right";
|
|
32
|
+
/**
|
|
33
|
+
* Resolve the edge that should expose the resize affordance for a panel side.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getResizeHandleSide: (side: PanelSide) => "left" | "right" | "top" | "bottom";
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the resize cursor that matches the panel growth axis.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getResizeCursor: (side: PanelSide) => "col-resize" | "row-resize";
|
|
40
|
+
/**
|
|
41
|
+
* Resolve whether the stable rail should render before the panel slot in DOM order.
|
|
42
|
+
*/
|
|
43
|
+
export declare const shouldRenderResizeRailBeforePanel: (side: PanelSide) => side is "bottom" | "right";
|
|
44
|
+
/**
|
|
45
|
+
* Build the inline overlay handle style for panels that still own their local resize affordance.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getInlineResizeHandleStyle: (side: PanelSide) => CSSProperties;
|
|
48
|
+
/**
|
|
49
|
+
* Build the pinned-panel rail handle style so the hit area sits on the actual layout boundary.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getRailResizeHandleStyle: (side: PanelSide) => CSSProperties;
|
|
52
|
+
/**
|
|
53
|
+
* Clamp a panel size to the allowed runtime limits for its emergence side.
|
|
54
|
+
*/
|
|
55
|
+
export declare const clampPanelSize: (side: PanelSide, nextSize: number, parentElement: HTMLElement | null, panel: PanelRuntimeDescriptor) => number;
|
|
56
|
+
/**
|
|
57
|
+
* Read the pointer coordinate that belongs to the resize axis for one panel side.
|
|
58
|
+
*/
|
|
59
|
+
export declare const getPointerPositionForPanelSide: (side: PanelSide, pointerEvent: Pick<MouseEvent, "clientX" | "clientY">) => number;
|
|
60
|
+
/**
|
|
61
|
+
* Compute the slot dimensions that should be reserved for a panel side.
|
|
62
|
+
*/
|
|
63
|
+
export declare const getPanelSlotStyle: (panel: PanelRuntimeDescriptor) => {
|
|
64
|
+
width: string;
|
|
65
|
+
minWidth: string;
|
|
66
|
+
maxWidth: string;
|
|
67
|
+
height: string;
|
|
68
|
+
minHeight?: undefined;
|
|
69
|
+
maxHeight?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
width: string;
|
|
72
|
+
height: string;
|
|
73
|
+
minHeight: string;
|
|
74
|
+
maxHeight: string;
|
|
75
|
+
minWidth?: undefined;
|
|
76
|
+
maxWidth?: undefined;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=panelRuntime.d.ts.map
|