@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
@@ -1,6 +1,6 @@
1
1
  import { GetLabelType, NetworkProps } from '@m4l/core';
2
2
  import { ReactNode } from 'react';
3
- import { CookieType, EmmitNewModalProps, EmmitNewPopupProps, EmmitNewWindowProps, AreaWindowProps, EmmitNewLayoutProps } from '../../types';
3
+ import { CookieType, EmmitNewModalProps, AreaPanelSizeUpdate, EmmitNewPopupProps, EmmitNewWindowProps, AreaWindowProps, EmmitNewLayoutProps, EmmitNewPanelProps, WindowQueryCloseHandler, WindowQueryCloseRequest } from '../../types';
4
4
  import { DebouncedFunc } from 'lodash';
5
5
  import { LayoutItem } from '../../../GridLayout';
6
6
  import { ContainerChangeEvent } from '../../../GridLayout/subcomponents/Responsive/types';
@@ -20,134 +20,142 @@ export type ViewAreaMode = 'multiple' | 'single';
20
20
  export type AreaStatus = 'init' | 'loading' | 'load' | 'loaded' | 'error';
21
21
  export interface Area {
22
22
  /**
23
- * "id" Id del area de trabajo
23
+ * Logical identifier for the work area.
24
24
  */
25
25
  id: string;
26
26
  /**
27
- * "name" Nombre del area de trabajo
27
+ * Display name shown for the work area.
28
28
  */
29
29
  name: string;
30
30
  /**
31
- * "status" Estado del area de trabajo
31
+ * Current loading status for the work area.
32
32
  */
33
33
  status: AreaStatus;
34
34
  /**
35
- * "zPopUpIndex" Indice de la ventana emergente
36
- * @deprecated El indice ya es manejado por el PopupsProvider
35
+ * Legacy popup z-index marker kept for compatibility.
36
+ * @deprecated Popup stacking is now owned by PopupsProvider.
37
37
  */
38
38
  zPopUpIndex: number;
39
39
  /**
40
- * Indica si se deben cargar las ventanas de la area de trabajo, por defecto cuando se agrega una area,
41
- * no se cargan las ventanas, ya que no hay, pero cuando se abre un area, se cargan las ventanas.
40
+ * Whether this area should load its windows.
41
+ * Newly created areas start without windows, but existing areas can lazily
42
+ * load their windows the first time they are opened.
42
43
  */
43
44
  loadWindows: boolean;
44
45
  /**
45
- * "containerHeight" Altura del contendor de area, se deja en cada área porque solo llegan en eventos de resize cuando está diferente a display "none"
46
- * Este valor se actualiza en el evento "onContainerChange" que emite el componente ResponsiveGridLayout
47
- * Es necesario para poder calcular el tamaño de las ventanas nuevas que se agregan al area.
46
+ * Height of the rendered area container.
47
+ * This state lives per area because resize events only arrive while the area
48
+ * is visible, and new windows depend on this value to compute their size.
48
49
  */
49
50
  containerHeight?: number;
50
51
  /**
51
- * "currentBreakpoint" Breakpoint actual del area de trabajo
52
+ * Current responsive breakpoint for the work area.
52
53
  */
53
54
  currentBreakpoint?: Breakpoint;
54
55
  /**
55
- * "layouts" Layouts del area de trabajo
56
+ * Grid layouts stored for the work area.
56
57
  */
57
58
  layouts: Layouts;
58
59
  /**
59
- * "maximizedId" Id de la ventana que está maximizada, si es undefined, no hay ninguna ventana maximizada
60
+ * Identifier of the maximized window, if the area currently has one.
60
61
  */
61
62
  maximizedId?: string | undefined;
62
63
  /**
63
- * Son los ids de las ventanas, en el orden en que se agregaron
64
+ * Window ids in insertion order for this area.
64
65
  */
65
66
  layoutItemsIds: string[];
66
67
  /**
67
- * "currentLayoutId" Id de la ventana actual seleccionada
68
+ * Panel window ids in insertion order for this area.
69
+ * The first panel iteration keeps one logical panel per side.
70
+ */
71
+ panelItemsIds: string[];
72
+ /**
73
+ * Identifier of the currently selected layout window.
68
74
  */
69
75
  currentLayoutId: string;
70
76
  /**
71
- * "breakpoints" Breakpoints del area de trabajo, se usa para el responsive son los pixeles que representan cada breakpoint
77
+ * Responsive breakpoint widths for the work area.
72
78
  */
73
79
  breakpoints: Breakpoints;
74
80
  /**
75
- * "cols" numero de columnas por cada breakpoint
81
+ * Number of grid columns available per breakpoint.
76
82
  */
77
83
  cols: Cols;
78
84
  }
79
85
  /**
80
- * estado de carga de las areaS de trabajo.
86
+ * Loading state for the Areas workspace.
81
87
  */
82
88
  export type AreasStatus = 'init' | 'loading' | 'loaded' | 'error';
83
89
  export type OwnerState = {
84
90
  /**
85
- * "isSkeleton" indica si el componente está en skeleton.
91
+ * Current lifecycle status for the Areas provider.
86
92
  */
87
93
  status: AreasStatus;
88
94
  /**
89
- * "readyForHooks" indica si el componente ejecutó el efecto de carga y se suscrubió al eventemitter. Utilizado normalmente en storybook
95
+ * Whether the provider has finished its mount-time effect and subscribed to
96
+ * the event emitter. This is commonly relevant in isolation and Storybook.
90
97
  */
91
98
  readyForHooks: boolean;
92
99
  };
93
100
  /**
94
- * Estados que se actulizan por fuera del store, a través de hooks
101
+ * State owned outside the store and synchronized through React hooks.
95
102
  */
96
103
  export type ExternalOwnerState = Pick<OwnerState, 'readyForHooks'>;
97
104
  /**
98
- * Interface que define el estado del componente (variables y funciones )
105
+ * Store state contract for the Areas runtime.
99
106
  */
100
107
  export interface AreasStoreState {
101
108
  /**
102
- * "storeId" Id del store
109
+ * Optional identifier used to distinguish this store instance.
103
110
  */
104
111
  storeId?: string;
105
112
  /**
106
- * "loadAreasFromNetwork" Indica si se deben cargar/grabar las áreas de trabajo en la API
113
+ * Whether areas should be loaded from and persisted to the API.
107
114
  */
108
115
  loadAreasFromNetwork: boolean;
109
116
  /**
110
- * "loadCookiesFromNetwork" Indica si se deben cargar/grabar las cookies en la API
117
+ * Whether window cookies should be loaded from and persisted to the API.
111
118
  */
112
119
  loadCookiesFromNetwork: boolean;
113
120
  /**
114
- * "currentAreaId" Area de trabajo seleccionada
121
+ * Identifier of the currently selected work area.
115
122
  */
116
123
  currentAreaId: string;
117
124
  /**
118
- * "currentModuleId" Módulo seleccionado
125
+ * Identifier of the currently selected module.
119
126
  */
120
127
  currentModuleId: string;
121
128
  /**
122
- * "ownerState" enfocado al funcionamiento de las clases
129
+ * Owner state consumed by the view layer and styling hooks.
123
130
  */
124
131
  ownerState: OwnerState;
125
132
  /**
126
- * "windowsModalsIds" id de ventans modales abiertas, en el orden en que se agregaron
133
+ * Modal window ids in insertion order.
127
134
  */
128
135
  windowsModalsIds: string[];
129
136
  /**
130
- * "areasIds" Areas de trabajo para saber en que orden se muestran en el AreasAdmin
137
+ * Work-area ids in the order exposed by AreasAdmin.
131
138
  */
132
139
  areasIds: string[];
133
140
  /**
134
- * "hashAreas" Areas de trabajo
141
+ * Normalized area registry.
135
142
  */
136
143
  hashAreas: Record<string, Area>;
137
144
  /**
138
- * "hashWindows" Todas las ventanas de todas las áreas cagadas, incluyendo layouts, popups y modals
145
+ * Normalized logical window registry for layouts, popups, and modals.
139
146
  */
140
147
  hashWindows: Record<string, AreaWindowProps>;
141
148
  /**
142
- * "networkOperation" funcion que usará el Store para enviar las peticiones de red
149
+ * Network implementation used by the store for API calls.
143
150
  */
144
151
  networkOperation: (props: NetworkProps) => Promise<any>;
145
152
  /**
146
- * "getLabel" funcion que usará para traducir las etiquetas de diccionario, cuando se agrega una nueva area, se requier tener acceso al diccionario
153
+ * Dictionary label resolver used by store-side workflows such as area creation.
147
154
  */
148
155
  getLabel: GetLabelType;
149
156
  /**
150
- * Como desde zustand no se puede acceder a meotodos de un contexto de react, se deben proporcionar en el momento de creación.
157
+ * Zustand cannot read React-context methods directly, so popup shell methods
158
+ * must be injected when the Areas store is created.
151
159
  */
152
160
  popupsProviderMethods: {
153
161
  addPopup: PopupsProviderStoreStateWithActions['popupsActions']['addPopup'];
@@ -161,122 +169,131 @@ export interface AreasStoreState {
161
169
  export interface AreasStoreStateWithActions extends AreasStoreState {
162
170
  areasActions: {
163
171
  /**
164
- * inicializa el store cargando las áreas de trabajo.
165
- * Una vez termina el proceso, actualiza el estado de carga (ownerState?.status) a "loaded".
166
- * Normalmente es asyncrono en producción por el llamado al endpoint áreas.
172
+ * Initialize the store by loading work areas.
173
+ * Once the flow finishes it updates `ownerState.status` to `loaded`.
174
+ * In production this is normally asynchronous because it calls the Areas API.
167
175
  */
168
176
  init: () => void;
169
177
  /**
170
- * Arega un area de trabajo y la selecciona. Adiconalmente limpia el currentModuleId
171
- * Si esta habilitado "loadAreasFromNetwork" invoca al endpoint de POST de areas
172
- * @returns id del ara de trabajo
178
+ * Add a work area, select it, and clear `currentModuleId`.
179
+ * When `loadAreasFromNetwork` is enabled, this also triggers the Areas POST endpoint.
180
+ * @returns id of the created work area
173
181
  */
174
182
  addArea: () => string;
175
183
  /**
176
- * Edita el nombre del área de trabajo.
177
- * Si está habilitado y sincroniza los cambios en la API.
178
- * @returns nombre del area de trabajo
184
+ * Update the work-area name and optionally synchronize the change with the API.
179
185
  */
180
186
  editArea: (idArea: string, newName: string) => void;
181
187
  /**
182
- * Selecciona el area y adicionalmente notifica si el camnbio de modulo para que
183
- * Actualiza el currentModuleId por el layout seleccionado que tenga el area actualmente.
184
- * Con el fin de poder lanzar el cambio de módulo y se vea reflejado en el menu.
185
- * Carga adicionalmente las ventanas cuando se seleccione por primera vez si eestá habilitado el uso de API (loadAreasFromNetwork)
186
- * @param newAreaId Id de area a seleccionar
187
- * @returns
188
+ * Select the target area and align `currentModuleId` with the selected layout in that area.
189
+ * This keeps the module switch visible in the menu and can lazily load windows the
190
+ * first time the area is selected when `loadAreasFromNetwork` is enabled.
191
+ * @param newAreaId area id to select
188
192
  */
189
193
  selectArea: (newAreaId: string) => void;
190
194
  /**
191
- * Borra un area de trabajo, si esta activa "loadAreasFromNetwork" llama a la API.
192
- * @param areaId Id de area a borrar
193
- * @returns void
195
+ * Delete a work area and optionally propagate the removal to the API.
196
+ * @param areaId area id to delete
194
197
  */
195
198
  deleteArea: (areaId: string) => void;
196
199
  /**
197
- * Actualiza la variable de estado "getLabel"
198
- * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
199
- * cambia por el useCallback, cuando el diccionario se carga.
200
- * @returns void
200
+ * Refresh the `getLabel` handler stored in Zustand.
201
+ * The callback identity can change after the module dictionary finishes loading,
202
+ * so the store keeps the latest resolver explicitly.
203
+ * @param newHandler dictionary label resolver
201
204
  */
202
205
  setHandlerGetLabel: (newHandler: GetLabelType) => void;
203
206
  /**
204
- * Modifica los estados que se actualizan externamente al Store
205
- * @param newIsMobile
206
- * @returns
207
+ * Update the externally synchronized owner state.
207
208
  */
208
209
  setExternalState: (newExternalState: Partial<ExternalOwnerState>) => void;
209
210
  };
210
211
  areaActions: {
211
212
  /**
212
- * Agrega una ventana aca se deriva de acuerdo al emergeType si va para popup, modal o layout
213
+ * Add a new window and route it to the correct emergence flow: layout, popup, or modal.
213
214
  */
214
215
  addWindow: (newWindow: EmmitNewWindowProps) => void;
215
216
  /**
216
- * Agrega un layout al AreaGridLayout
217
+ * Add a layout window to the Area grid.
217
218
  */
218
219
  addLayout: (areaId: string, windowId: string, newWindow: EmmitNewLayoutProps) => void;
219
220
  /**
220
- * Cierra un layout y lo retira del AreaGridLayout
221
+ * Close a layout window and remove it from the Area grid.
221
222
  */
222
223
  closeLayout: (areaId: string, removePopUpId: string) => void;
223
224
  /**
224
- * Selecciona un layout, para marcarlo como el layout actual
225
+ * Mark a layout as the currently selected one.
225
226
  */
226
227
  selectLayout: (areaId: string, layoutId: string, saveCookie?: boolean) => void;
227
228
  /**
228
- * Colapsa un layout, para que se vea solo la barra de titulo
229
+ * Collapse a layout so only its header remains visible.
229
230
  */
230
231
  colapseLayoutItem: (areaId: string, layoutId: string) => void;
231
232
  /**
232
- * Descolapsa un layout, para que se vea el layout completo
233
+ * Expand a previously collapsed layout back to its full size.
233
234
  */
234
235
  unColapseLayoutItem: (areaId: string, layoutId: string) => void;
235
236
  /**
236
- * Normaliza los layouts, remueve el maximizado
237
- * TODO: Revisar como debe interactuar con popups
237
+ * Return layouts to their normal state and clear the maximized selection.
238
+ * TODO: Revisit how this should coordinate with popups.
238
239
  */
239
240
  normalizeLayouts: (areaId: string) => void;
240
241
  /**
241
- * Maximiza un layout, establece el maximizedId del area
242
+ * Maximize a layout and update the area's `maximizedId`.
242
243
  */
243
244
  maximizeLayout: (areaId: string, layoutId?: string) => void;
244
245
  /**
245
- * Guarda los layouts en la API
246
+ * Persist the current layouts to the API.
246
247
  */
247
248
  saveLayouts: (areaId: string) => void;
248
249
  /**
249
- * Actualiza los layouts en el AreaGridLayout cuando se redimensiona la ventana del navegador
250
- * siempre y cuando no este maximizada una ventana
250
+ * Update Area grid layouts after a browser resize, as long as no window is maximized.
251
251
  */
252
252
  onBreakpointsLayoutsChange: (areaId: string, currentLayout: Layout, newAllLayouts: Layouts) => void;
253
253
  /**
254
- * Agrega un popup al PopupsProvider
254
+ * Register a popup in the Areas logical registry and delegate the visible shell to PopupsProvider.
255
255
  */
256
256
  addPopup: (areaId: string, windowId: string, newWindowProps: EmmitNewPopupProps) => void;
257
257
  /**
258
- * Se remueve de hashWindows y se envia a PopupsProvider que cierr el popup
259
- * TODO: Reivisar si funciona bien
258
+ * Register a panel in the Areas logical registry.
259
+ * Panels render inside the area flow and do not use PopupsProvider.
260
+ */
261
+ addPanel: (areaId: string, windowId: string, newWindowProps: EmmitNewPanelProps) => void;
262
+ /**
263
+ * Remove a panel from the Areas logical registry.
264
+ */
265
+ closePanel: (areaId: string, removePanelId: string) => void;
266
+ /**
267
+ * Toggle whether a panel stays docked in the area flow.
268
+ */
269
+ setPanelPinned: (areaId: string, panelId: string, pinned: boolean) => void;
270
+ /**
271
+ * Persist the current panel size in the axis owned by its emergence side.
272
+ */
273
+ setPanelSize: (areaId: string, panelId: string, nextPanelSize: AreaPanelSizeUpdate) => void;
274
+ /**
275
+ * Remove the popup from the Areas logical registry after the popup-provider teardown path runs.
276
+ * TODO: Revisit this seam if a future popup path can bypass the provider callback.
260
277
  */
261
278
  closePopup: (areaId: string, removePopupId: string) => void;
262
279
  /**
263
- * Agrega un modal a hashWindows y windowsModalsIds
280
+ * Register a modal in `hashWindows` and `windowsModalsIds`.
264
281
  */
265
282
  addWindowModal: (areaId: string, windowId: string, newWindowModalProps: EmmitNewModalProps) => void;
266
283
  /**
267
- * Se remueve de hashWindows, y lo remueve de windowsModalsIds
284
+ * Remove a modal from both `hashWindows` and `windowsModalsIds`.
268
285
  */
269
286
  closeWindowModal: (removeModalId: string) => void;
270
287
  /**
271
- * Actualiza el estado de la ventana cuando cambia el tamaño de la ventana del navegador
288
+ * Update area container state after the browser viewport changes size.
272
289
  */
273
290
  onContainerChange: (areaId: string, e: ContainerChangeEvent) => void;
274
291
  /**
275
- * Guarda los layouts en la API con bounced
292
+ * Debounced wrapper that persists layouts to the API.
276
293
  */
277
294
  bouncedSaveBreakpointsLayouts: DebouncedFunc<(areaId: string) => void>;
278
295
  /**
279
- * Carga las ventanas de la API cuando se selecciona una area por primera vez
296
+ * Load windows from the API the first time an area is selected.
280
297
  */
281
298
  loadWindowsFromApi: (areaId: string) => void;
282
299
  };
@@ -285,13 +302,13 @@ export interface AreasStoreStateWithActions extends AreasStoreState {
285
302
  getCookie: (windowId: string, id: string) => Record<string, any> | undefined;
286
303
  getCookies: (windowId: string, type: CookieType) => Record<string, any>;
287
304
  setCookie: (windowId: string, id: string, type: CookieType, cookie: Record<string, any>) => void;
288
- close: (windowId: string, useFnQueryClose?: boolean) => void;
305
+ close: (windowId: string, useFnQueryClose?: boolean, queryCloseRequest?: WindowQueryCloseRequest) => void;
289
306
  startProgress: (windowId: string) => void;
290
307
  stopProgress: (windowId: string) => void;
291
308
  loadCookiesFromApi: (windowId: string) => void;
292
309
  saveModuleCookies: (windowId: string) => void;
293
310
  resetModuleCookies: (windowId: string) => void;
294
- setFnQueryClose: (windowId: string, fnQueryClose: () => void) => void;
311
+ setFnQueryClose: (windowId: string, fnQueryClose: WindowQueryCloseHandler) => void;
295
312
  setWindowTitle: (windowId: string, title: string) => void;
296
313
  setWindowSubTitle: (windowId: string, subTitle: string) => void;
297
314
  setWindowEditionInfo: (windowId: string, editionInfo: string) => void;
@@ -301,17 +318,24 @@ export type DefaultAreasStoreProps = Omit<AreasStoreState, 'currentArea'>;
301
318
  export type InitialAreasStoreProps = Pick<AreasStoreState, 'networkOperation' | 'loadAreasFromNetwork' | 'loadCookiesFromNetwork' | 'getLabel' | 'ownerState' | 'popupsProviderMethods' | 'storeId'> & Partial<DefaultAreasStoreProps>;
302
319
  export interface AreasProviderProps {
303
320
  /**
304
- * "storeId" identificador del store
321
+ * Optional identifier for the store instance.
305
322
  */
306
323
  storeId?: string;
307
324
  /**
308
- * "storeDevtoolsEnabled" determina si se debe usar devtools para el store
325
+ * Whether store devtools should be enabled for this provider instance.
309
326
  */
310
327
  storeDevtoolsEnabled?: boolean;
311
328
  children: ReactNode;
312
329
  loadAreasFromNetwork: boolean;
313
330
  loadCookiesFromNetwork: boolean;
314
331
  onSelectLayout?: (moduleId: string) => void;
332
+ /**
333
+ * Notify when area data finished loading.
334
+ */
315
335
  onLoad?: () => void;
336
+ /**
337
+ * Notify when the provider is ready to receive host open-window events.
338
+ */
339
+ onReady?: () => void;
316
340
  }
317
341
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,UA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IAAI,KAAK,IAAI,CAAC;QACtE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAC1D,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAChE,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KACvE,CAAC;CACH;AACD,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAE,CAAC;AAC3E,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,eAAe,EACf,kBAAkB,GAAG,sBAAsB,GAAG,wBAAwB,GAAG,UAAU,GAAG,YAAY,GAAG,uBAAuB,GAAG,SAAS,CACzI,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAEpC,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAk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,CAAC,CAAC;AAEpC,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -2,6 +2,7 @@ export declare const AREAS_DICTIONARY_ID = "areas";
2
2
  export declare function getAreasComponentsDictionary(): string[];
3
3
  export declare const LABEL_FILTER_BUTTON = "filter_tooltip";
4
4
  export declare const AREAS_DICCTIONARY: {
5
+ readonly label_no_areas_available: "label_no_areas_available";
5
6
  readonly label_new_area: "label_new_area";
6
7
  readonly label_persist_module_cookies: "label_persist_module_cookies";
7
8
  readonly validation_edit_area: "validation_edit_area";
@@ -20,6 +21,8 @@ export declare const AREAS_DICCTIONARY: {
20
21
  readonly label_minimize_window: "label_minimize_window";
21
22
  readonly label_collapse_window: "label_collapse_window";
22
23
  readonly label_uncollapse_window: "label_uncollapse_window";
24
+ readonly label_pin_panel: "label_pin_panel";
25
+ readonly label_unpin_panel: "label_unpin_panel";
23
26
  readonly label_module_actions: "label_module_actions";
24
27
  readonly label_window: "label_window";
25
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,mBAAmB,WAEhE,CAAC"}
1
+ {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;CAyBpB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,mBAAmB,WAEhE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  const e = "areas";
2
- function _() {
2
+ function l() {
3
3
  return [e];
4
4
  }
5
- const l = "filter_tooltip", o = {
5
+ const _ = "filter_tooltip", o = {
6
+ label_no_areas_available: "label_no_areas_available",
6
7
  label_new_area: "label_new_area",
7
8
  label_persist_module_cookies: "label_persist_module_cookies",
8
9
  validation_edit_area: "validation_edit_area",
@@ -21,13 +22,15 @@ const l = "filter_tooltip", o = {
21
22
  label_minimize_window: "label_minimize_window",
22
23
  label_collapse_window: "label_collapse_window",
23
24
  label_uncollapse_window: "label_uncollapse_window",
25
+ label_pin_panel: "label_pin_panel",
26
+ label_unpin_panel: "label_unpin_panel",
24
27
  label_module_actions: "label_module_actions",
25
28
  label_window: "label_window"
26
- }, r = (a) => `${e}.${a}`;
29
+ }, i = (a) => `${e}.${a}`;
27
30
  export {
28
31
  o as AREAS_DICCTIONARY,
29
32
  e as AREAS_DICTIONARY_ID,
30
- l as LABEL_FILTER_BUTTON,
31
- _ as getAreasComponentsDictionary,
32
- r as getAreasDictionary
33
+ _ as LABEL_FILTER_BUTTON,
34
+ l as getAreasComponentsDictionary,
35
+ i as getAreasDictionary
33
36
  };
@@ -1,6 +1,6 @@
1
1
  import { AreasStoreStateWithActions } from '../../contexts/AreasContext/types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Read the shared Areas Zustand store instance from context.
4
4
  */
5
5
  export declare function useAreas(): Omit<Omit<import('zustand').StoreApi<AreasStoreStateWithActions>, "setState"> & {
6
6
  setState<A extends string | {
@@ -12,7 +12,7 @@ export declare function useAreas(): Omit<Omit<import('zustand').StoreApi<AreasSt
12
12
  } | undefined): void;
13
13
  };
14
14
  /**
15
- * TODO: Documentar
15
+ * Select reactive state from the shared Areas store with an optional equality function.
16
16
  */
17
17
  export declare function useAreasStore<T>(selector: (state: AreasStoreStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
18
18
  export default useAreas;
@@ -1,12 +1,12 @@
1
1
  import { useContext as o } from "react";
2
2
  import { useStore as s } from "zustand";
3
3
  import { AreasContext as n } from "../../contexts/AreasContext/index.js";
4
- function x(t, r) {
4
+ function f(r, t) {
5
5
  const e = o(n);
6
6
  if (!e)
7
- throw new Error("useAreasStore context must be use inside AreasContext");
8
- return s(e, t, r);
7
+ throw new Error("useAreasStore must be used inside AreasContext");
8
+ return s(e, r, t);
9
9
  }
10
10
  export {
11
- x as useAreasStore
11
+ f as useAreasStore
12
12
  };