@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.
Files changed (170) hide show
  1. package/@types/types.d.ts +0 -11
  2. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
  3. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
  4. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
  5. package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
  6. package/components/CommonActions/index.d.ts +1 -0
  7. package/components/CommonActions/index.d.ts.map +1 -1
  8. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
  9. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
  10. package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
  11. package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
  12. package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
  13. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
  14. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
  15. package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
  16. package/components/DragResizeWindowRND/types.d.ts +3 -1
  17. package/components/DragResizeWindowRND/types.d.ts.map +1 -1
  18. package/components/WindowBase/WindowBase.d.ts.map +1 -1
  19. package/components/WindowBase/WindowBase.js +49 -49
  20. package/components/WindowBase/WindowBase.styles.d.ts +1 -1
  21. package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
  22. package/components/WindowBase/WindowBase.styles.js +37 -12
  23. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
  24. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
  25. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
  26. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
  27. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
  28. package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
  29. package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
  30. package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
  31. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
  32. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
  33. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
  34. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
  35. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
  36. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
  37. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
  38. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
  39. package/components/areas/components/AreasAdmin/types.d.ts +9 -9
  40. package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
  41. package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
  42. package/components/areas/components/AreasViewer/constants.d.ts +12 -0
  43. package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
  44. package/components/areas/components/AreasViewer/constants.js +5 -2
  45. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
  46. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
  47. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
  48. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
  49. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
  50. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
  51. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
  52. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
  53. package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
  58. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
  60. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
  61. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
  62. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
  63. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
  64. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
  65. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
  66. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
  67. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
  68. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
  69. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
  70. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
  71. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
  72. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
  73. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
  74. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
  75. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
  76. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
  77. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
  78. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
  79. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
  80. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
  81. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
  82. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
  83. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
  84. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
  85. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
  86. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
  87. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
  88. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
  89. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
  90. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
  91. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
  92. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
  93. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
  94. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
  95. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
  96. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
  97. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
  98. package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
  99. package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
  100. package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
  101. package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
  102. package/components/areas/contexts/AreasContext/index.js +51 -48
  103. package/components/areas/contexts/AreasContext/store.d.ts +2 -3
  104. package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
  105. package/components/areas/contexts/AreasContext/store.js +397 -290
  106. package/components/areas/contexts/AreasContext/types.d.ts +109 -85
  107. package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
  108. package/components/areas/dictionary.d.ts +3 -0
  109. package/components/areas/dictionary.d.ts.map +1 -1
  110. package/components/areas/dictionary.js +9 -6
  111. package/components/areas/hooks/useAreas/index.d.ts +2 -2
  112. package/components/areas/hooks/useAreas/index.js +4 -4
  113. package/components/areas/types.d.ts +173 -47
  114. package/components/areas/types.d.ts.map +1 -1
  115. package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
  116. package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
  117. package/components/areas/utils/useOnClickOutside/index.js +15 -0
  118. package/components/extended/index.d.ts +0 -1
  119. package/components/extended/index.d.ts.map +1 -1
  120. package/components/hook-form/index.d.ts +0 -1
  121. package/components/hook-form/index.d.ts.map +1 -1
  122. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
  123. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
  124. package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
  125. package/hooks/index.d.ts +1 -0
  126. package/hooks/index.d.ts.map +1 -1
  127. package/hooks/useWindowCloseGuard/index.d.ts +18 -0
  128. package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
  129. package/hooks/useWindowCloseGuard/index.js +56 -0
  130. package/index.js +664 -675
  131. package/package.json +7 -10
  132. package/test/mocks/dictionary-mock.d.ts +2 -0
  133. package/test/mocks/dictionary-mock.d.ts.map +1 -1
  134. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
  135. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
  136. package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
  137. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
  138. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
  139. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
  140. package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
  141. package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
  142. package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
  143. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
  144. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
  145. package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
  146. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
  147. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
  148. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
  149. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
  150. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
  151. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
  152. package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
  153. package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
  154. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
  155. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
  156. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
  157. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
  158. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
  159. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
  160. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
  161. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
  162. package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
  163. package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
  164. package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
  165. package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
  166. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
  167. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
  168. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
  169. package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
  170. 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
- * Clase CSS personalizada que se aplicará al componente
9
+ * Component color variant.
10
10
  */
11
11
  color?: Extract<ComponentPalletColor, 'primary'>;
12
12
  /**
13
- * Opciones de tamaño del componente.
13
+ * Supported component sizes.
14
14
  */
15
15
  size?: Extract<Sizes, 'small' | 'medium'>;
16
16
  /**
17
- * data-testid para pruebas unitarias.
17
+ * Optional `data-testid` override for tests.
18
18
  */
19
19
  dataTestId?: string;
20
20
  /**
21
- * Clase CSS para sobrescribir los estilos predeterminados del loader.
21
+ * Optional custom CSS class applied to the root slot.
22
22
  */
23
23
  className?: string;
24
24
  /**
25
- * Props adicionales que se pueden pasar al loader.
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
- * Indica si el dispositivo es móvil.
31
+ * Whether the current device layout is mobile.
32
32
  */
33
33
  isMobile: boolean;
34
34
  /**
35
- * Tamaño del campo de texto.
35
+ * Effective component size.
36
36
  */
37
37
  size: AreasAdminProps['size'];
38
38
  /**
39
- * Color del componente.
39
+ * Effective color variant.
40
40
  */
41
41
  color: AreasAdminProps['color'];
42
42
  /**
43
- * Props adicionales que se pueden pasar al loader.
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,eAAO,MAAM,iBAAiB,EAAE,iBAqE/B,CAAC"}
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 i } from "../../../DragResizeWindowRND/classes/index.js";
2
- const r = {
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: o }) => ({
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
- [`&.${i.dragging}, &.${i.resizing}`]: {
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
- ...o?.maximized ? {
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
- r as areasViewerStyles
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;IAIrB,kBAAkB,uBAAuB;IAEzC,UAAU,eAAe;CAC1B"}
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 o = /* @__PURE__ */ ((a) => (a.root = "root", a.areaRoot = "areaRoot", a.baseArea = "baseArea", a.wrapperWindowModal = "wrapperWindowModal", a.windowBase = "windowBase", a))(o || {});
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
- o as AreasViewerSlots
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;AAGhC,eAAO,MAAM,wBAAwB;;6NAGI,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;UAGI,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 o } from "@mui/material/styles";
2
- import { AREAS_VIEWER_KEY_COMPONENT as e } from "../constants.js";
3
- import { AreasViewerSlots as r } from "./AreasViewerEnum.js";
4
- import { areasViewerStyles as a } from "../AreasViewer.styles.js";
5
- import { WindowBase as t } from "../../../../WindowBase/WindowBase.js";
6
- const m = o("div", {
7
- name: e,
8
- slot: r.root
9
- })(a?.root), w = o("div", {
10
- name: e,
11
- slot: r.areaRoot
12
- })(a?.areaRoot), p = o("div", {
13
- name: e,
14
- slot: r.baseArea
15
- })(a?.baseArea), A = o("div", {
16
- name: e,
17
- slot: r.wrapperWindowModal
18
- })(a?.wrapperWindowModal), S = o(t, {
19
- name: e,
20
- slot: r.windowBase
21
- })(a?.windowBase);
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
- w as AreaRootStyled,
52
+ p as AreaRootStyled,
24
53
  m as AreasViewerRootStyled,
25
- p as BaseAreaStyled,
26
- S as WindowBaseStyled,
27
- A as WrapperWindowModalStyled
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
- * Funcion encargada de renderizar un área completa.
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;;;;;GAKG;AACH,eAAO,MAAM,IAAI;YAAW,SAAS;;CAWpC,CAAC"}
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 t } from "@emotion/react/jsx-runtime";
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 = (e) => {
6
- const { selected: s, areaId: r, size: a } = e;
7
- return m((o) => o.hashAreas[r].status) === "init" ? null : /* @__PURE__ */ t(n, { ownerState: { selected: s }, children: /* @__PURE__ */ t(i, { areaId: r, size: a }) });
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
- * Retorna el componente GridLayout con las ventanas (layouts) y popups tomados del área de trabajo.
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;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDAsIpD,CAAC"}
1
+ {"version":3,"file":"AreaGridLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAa1C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,qDAsIpD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { InnerForHooksProps } from './types';
2
2
  /**
3
- * Componente encargado de renderizar el área de trabajo.
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":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAK7C;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,kBAAkB,qDAmBjD,CAAC"}
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 a } from "@emotion/react/jsx-runtime";
2
- import { AreaGridLayout as d } from "../AreaGridLayout/AreaGridLayout.js";
3
- import { useAreasStore as e } from "../../../../../../hooks/useAreas/index.js";
4
- import { LoadingError as n } from "../../../../../../../LoadingError/LoadingError.js";
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 c } from "zustand/shallow";
7
- const z = (s) => {
8
- const { areaId: r, size: i } = s, t = e((o) => o.hashAreas[r].status), m = e(
9
- (o) => r ? o.hashAreas[r]?.maximizedId : void 0,
10
- c
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__ */ a(p, { ownerState: { maximizedId: m }, children: t === "loaded" ? /* @__PURE__ */ a(d, { areaId: r, size: i }) : /* @__PURE__ */ a(n, { status: t, action: () => {
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
- z as BaseArea
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