@m4l/components 9.1.4 → 9.1.6

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 (163) hide show
  1. package/@types/types.d.ts +27 -3
  2. package/components/CommonActions/components/ActionCancel/ActionCancel.d.ts +11 -0
  3. package/components/CommonActions/components/ActionCancel/ActionCancel.js +52 -0
  4. package/components/CommonActions/components/ActionCancel/ActionCancel.test.d.ts +1 -0
  5. package/components/CommonActions/components/ActionCancel/ActionCancelStyles.d.ts +2 -0
  6. package/components/CommonActions/components/ActionCancel/ActionCancelStyles.js +6 -0
  7. package/components/CommonActions/components/ActionCancel/constants.d.ts +8 -0
  8. package/components/CommonActions/components/ActionCancel/constants.js +4 -0
  9. package/components/CommonActions/components/ActionCancel/index.d.ts +2 -5
  10. package/components/CommonActions/components/ActionCancel/index.js +1 -12
  11. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.d.ts +3 -0
  12. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.js +7 -0
  13. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +4 -0
  14. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.js +12 -0
  15. package/components/CommonActions/components/ActionCancel/slots/index.d.ts +2 -0
  16. package/components/CommonActions/components/ActionCancel/slots/index.js +1 -0
  17. package/components/CommonActions/components/ActionCancel/types.d.ts +33 -0
  18. package/components/CommonActions/components/ActionCancel/types.js +1 -0
  19. package/components/CommonActions/components/ActionFormCancel/index.d.ts +4 -0
  20. package/components/CommonActions/components/ActionFormCancel/index.js +2 -2
  21. package/components/CommonActions/components/ActionIntro/ActionIntro.d.ts +12 -0
  22. package/components/CommonActions/components/ActionIntro/ActionIntro.integration.test.d.ts +1 -0
  23. package/components/CommonActions/components/ActionIntro/ActionIntro.js +51 -0
  24. package/components/CommonActions/components/ActionIntro/ActionIntro.test.d.ts +1 -0
  25. package/components/CommonActions/components/ActionIntro/ActionIntroStyles.d.ts +2 -0
  26. package/components/CommonActions/components/ActionIntro/ActionIntroStyles.js +6 -0
  27. package/components/CommonActions/components/ActionIntro/constants.d.ts +8 -0
  28. package/components/CommonActions/components/ActionIntro/constants.js +4 -0
  29. package/components/CommonActions/components/ActionIntro/index.d.ts +2 -5
  30. package/components/CommonActions/components/ActionIntro/index.js +1 -25
  31. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.d.ts +3 -0
  32. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.js +7 -0
  33. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +4 -0
  34. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.js +12 -0
  35. package/components/CommonActions/components/ActionIntro/slots/index.d.ts +2 -0
  36. package/components/CommonActions/components/ActionIntro/slots/index.js +1 -0
  37. package/components/CommonActions/components/ActionIntro/types.d.ts +33 -0
  38. package/components/CommonActions/components/ActionIntro/types.js +1 -0
  39. package/components/CommonActions/components/ActionsContainer/index.d.ts +2 -0
  40. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  41. package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +1 -1
  42. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +2 -2
  43. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
  44. package/components/DragResizeWindow/DragResizeWindow.d.ts +9 -5
  45. package/components/DragResizeWindow/DragResizeWindow.js +6 -5
  46. package/components/DragResizeWindow/DragResizeWindow.styles.d.ts +4 -0
  47. package/components/DragResizeWindow/DragResizeWindow.styles.js +20 -3
  48. package/components/DragResizeWindow/classes/index.js +2 -2
  49. package/components/DragResizeWindow/constants.d.ts +1 -1
  50. package/components/DragResizeWindow/constants.js +2 -2
  51. package/components/DragResizeWindow/helpers/index.d.ts +14 -1
  52. package/components/DragResizeWindow/helpers/index.js +0 -2
  53. package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +4 -0
  54. package/components/DragResizeWindow/hooks/useDimensionEffects.js +128 -50
  55. package/components/DragResizeWindow/hooks/useDragOptions.d.ts +3 -3
  56. package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +20 -1
  57. package/components/DragResizeWindow/hooks/useResizeOptions.js +1 -1
  58. package/components/DragResizeWindow/slots/DragResizeWindowSlots.js +3 -3
  59. package/components/DragResizeWindow/tests/DragResizeWindow.test.d.ts +1 -0
  60. package/components/DragResizeWindow/types.d.ts +84 -12
  61. package/components/DragResizeWindow/utils.d.ts +12 -1
  62. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  63. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +4 -0
  64. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +2 -2
  65. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  66. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +4 -0
  67. package/components/Icon/types.d.ts +1 -1
  68. package/components/Label/slots/LabelSlots.d.ts +1 -1
  69. package/components/LoadingError/LoadingError.d.ts +5 -0
  70. package/components/LoadingError/LoadingError.js +7 -1
  71. package/components/PDFViewer/PDFViewer.d.ts +4 -0
  72. package/components/PDFViewer/PDFViewer.js +1 -1
  73. package/components/ToastContainer/ToastContainer.stories.d.ts +4 -0
  74. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +43 -1
  75. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +4 -5
  76. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +4 -0
  77. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +6 -8
  78. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +27 -3
  79. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -5
  80. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +4 -0
  81. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +7 -6
  82. package/components/extended/React-Resizable/Resizable/Resizable.d.ts +4 -0
  83. package/components/extended/React-Resizable/Resizable/Resizable.js +13 -1
  84. package/components/extended/React-Resizable/Resizable/constants.d.ts +1 -0
  85. package/components/extended/React-Resizable/Resizable/constants.js +3 -1
  86. package/components/extended/React-Resizable/ResizableBox/ResizableBox.d.ts +6 -2
  87. package/components/extended/React-Resizable/ResizableBox/ResizableBox.js +14 -2
  88. package/components/extended/React-Resizable/ResizableBox/ResizeableBox.styles.d.ts +1 -1
  89. package/components/extended/React-Resizable/ResizableBox/ResizeableBox.styles.js +7 -3
  90. package/components/extended/React-Resizable/ResizableBox/tests/ResizableBox.integration.test.d.ts +1 -0
  91. package/components/extended/React-Resizable/ResizableBox/tests/ResizableBox.test.d.ts +1 -0
  92. package/components/extended/React-Resizable/ResizableBox/types.d.ts +35 -4
  93. package/components/extended/React-Resizable/helpers.d.ts +151 -34
  94. package/components/extended/React-Resizable/helpers.js +106 -85
  95. package/components/extended/React-Resizable/hooks/useResizable.d.ts +16 -0
  96. package/components/extended/React-Resizable/hooks/useResizable.js +24 -0
  97. package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +4 -0
  98. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
  99. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  100. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
  101. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +1 -1
  102. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +2 -2
  103. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +7 -1
  104. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -2
  105. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
  106. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +2 -2
  107. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +1 -1
  108. package/components/modal/ModalDialog/index.d.ts +4 -0
  109. package/components/modal/ModalDialog/index.js +2 -2
  110. package/components/modal/WindowConfirm/index.d.ts +3 -3
  111. package/components/modal/WindowConfirm/index.js +2 -2
  112. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  113. package/components/mui_extended/Button/Button.d.ts +8 -6
  114. package/components/mui_extended/Button/Button.integration.test.d.ts +1 -0
  115. package/components/mui_extended/Button/Button.js +70 -34
  116. package/components/mui_extended/Button/Button.test.d.ts +1 -0
  117. package/components/mui_extended/Button/ButtonStyles.d.ts +2 -0
  118. package/components/mui_extended/Button/ButtonStyles.js +223 -0
  119. package/components/mui_extended/Button/classes/index.d.ts +5 -2
  120. package/components/mui_extended/Button/classes/index.js +5 -29
  121. package/components/mui_extended/Button/classes/types.d.ts +10 -0
  122. package/components/mui_extended/Button/constans.d.ts +8 -0
  123. package/components/mui_extended/Button/constans.js +4 -0
  124. package/components/mui_extended/Button/slots/ButtonEnum.d.ts +6 -0
  125. package/components/mui_extended/Button/slots/ButtonEnum.js +10 -0
  126. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +15 -0
  127. package/components/mui_extended/Button/slots/ButtonSlots.js +30 -0
  128. package/components/mui_extended/Button/slots/index.d.ts +3 -0
  129. package/components/mui_extended/Button/slots/index.js +1 -0
  130. package/components/mui_extended/Button/types.d.ts +45 -8
  131. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
  132. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
  133. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  134. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  135. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  136. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +2 -2
  137. package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
  138. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  139. package/components/mui_extended/Typography/types.d.ts +5 -1
  140. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +63 -2
  141. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +1 -1
  142. package/contexts/ModalContext/index.d.ts +4 -0
  143. package/contexts/ModalContext/types.d.ts +1 -1
  144. package/index.js +2 -2
  145. package/package.json +1 -1
  146. package/storybook/components/DragResizeWindow/stories/DragResizeWindow.stories.d.ts +7 -0
  147. package/storybook/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +8 -0
  148. package/{components → storybook/components}/DragResizeWindow/stories/subcomponents/WithExtendedContainer.d.ts +4 -0
  149. package/{components → storybook/components}/DragResizeWindow/stories/types.d.ts +1 -1
  150. package/storybook/components/commonActions/components/ActionCancel/ActionCancel.stories.d.ts +22 -0
  151. package/storybook/components/commonActions/components/ActionIntro/ActionIntro.stories.d.ts +22 -0
  152. package/storybook/components/extended/mui/Button/Button.stories.d.ts +26 -0
  153. package/storybook/components/extended/react-resizable/ResizableBox/resizableBox.stories.d.ts +13 -0
  154. package/components/CommonActions/components/ActionIntro/test/contants.js +0 -4
  155. package/components/DragResizeWindow/stories/basic.stories.d.ts +0 -13
  156. package/components/DragResizeWindow/stories/dictionary.d.ts +0 -0
  157. package/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +0 -4
  158. package/components/extended/React-Resizable/Resizable/stories/basic.stories.d.ts +0 -9
  159. package/components/extended/React-Resizable/ResizableBox/stories/basic.stories.d.ts +0 -9
  160. package/components/mui_extended/Button/styles.d.ts +0 -4
  161. package/components/mui_extended/Button/styles.js +0 -12
  162. /package/components/{mui_extended/Button/index.test.d.ts → CommonActions/components/ActionCancel/ActionCancel.integration.test.d.ts} +0 -0
  163. /package/{components → storybook/components}/DragResizeWindow/stories/constants.d.ts +0 -0
@@ -1,91 +1,118 @@
1
1
  import { GetLabelType } from '@m4l/core';
2
2
  import { ReactNode } from 'react';
3
- import { DraggableWindowProps } from '../../../../../DragResizeWindow/types';
3
+ import { DragResizeWindowProps } from '../../../../../DragResizeWindow/types';
4
4
  import { PopupStatus } from '../../../PopupsViewer/types';
5
5
  export type PopupVariantType = 'normal' | 'small' | 'large';
6
- export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | 'defaultPosition'> {
6
+ export interface PopupStoreProps extends Pick<DragResizeWindowProps, 'bounds' | 'defaultPosition'> {
7
7
  /**
8
8
  * "popupId" Indetificador del popupId
9
+ * @createdAt 2024-11-07 08:06:15 - automatic
9
10
  */
10
11
  popupId: string;
11
12
  /**
12
13
  * "status" Estado del popup
14
+ * @createdAt 2024-11-07 08:06:15 - automatic
13
15
  */
14
16
  status: PopupStatus;
15
17
  /**
16
18
  * "variant" Variante del popup
19
+ * @createdAt 2024-11-07 08:06:15 - automatic
17
20
  */
18
21
  variant?: PopupVariantType;
19
22
  /**
20
23
  * "iconUrl" Icono de la ventan
24
+ * @createdAt 2024-11-07 08:06:15 - automatic
21
25
  */
22
26
  iconUrl: string;
23
27
  /**
24
28
  * "title" Titulo de la ventan
29
+ * @createdAt 2024-11-07 08:06:15 - automatic
25
30
  */
26
31
  title: string;
27
32
  /**
28
33
  * "subTitle" Subtitulo de la ventan
34
+ * @createdAt 2024-11-07 08:06:15 - automatic
29
35
  */
30
36
  subTitle?: string;
31
37
  /**
32
38
  * "editionInfo" Mensaje que muestra el registro que se está editando.
39
+ * @createdAt 2024-11-07 08:06:15 - automatic
33
40
  */
34
41
  editionInfo?: string;
35
42
  /**
36
43
  * draggable Indica si el popup es arrastrable, default true
44
+ * @createdAt 2024-11-07 08:06:15 - automatic
37
45
  */
38
46
  draggable?: boolean;
39
47
  /**
40
48
  * resizable Indica si el popup es redimensionable, default true
49
+ * @createdAt 2024-11-07 08:06:15 - automatic
41
50
  */
42
51
  resizable?: boolean;
43
52
  /**
44
53
  * "zIndex" Zindex del popup, tener en cuenta que se usa el baseZindex como offset para el zIndex
54
+ * @createdAt 2024-11-07 08:06:15 - automatic
45
55
  */
46
56
  zIndex: number;
47
57
  /**
48
58
  * "componentProps" Propiedades que se le pasan al componente que se va a mostrar en el popup.
59
+ * @createdAt 2024-11-07 08:06:15 - automatic
49
60
  */
50
61
  componentProps?: Record<string, any>;
51
62
  /**
52
63
  * functionComponent retorna el componente que se va a mostrar en el popup.
53
64
  *
54
65
  * Lo unico que necesita es guardar la referencia la función que retorna el componente.
66
+ * @createdAt 2024-11-07 08:06:15 - automatic
55
67
  */
56
68
  functionComponent?: React.FC<Record<string, any>>;
57
69
  /**
58
70
  * "onMouseDown" Evento nativo del Draggable, para tomar acciones externamente
71
+ * @author cesar - automatic
72
+ * @createdAt 2024-11-07 08:06:15 - automatic
73
+ * @updatedAt 2024-11-07 08:06:15 - automatic
74
+ * @updatedUser cesar - automatic
59
75
  */
60
76
  onMouseDown?: (e: MouseEvent) => void;
61
77
  }
62
78
  /**
63
79
  * Interface que define el store del componente (variables y funciones )
80
+ * @createdAt 2024-11-07 08:06:15 - automatic
64
81
  */
65
82
  export interface PopupsStore {
66
83
  /**
67
84
  * Id del store, para identificarlo en las herramientas de redux.
85
+ * @createdAt 2024-11-07 08:06:15 - automatic
68
86
  */
69
87
  storeId?: string;
70
88
  /**
71
89
  * "poupsIds" Poups para saber en que orden se muestran
90
+ * @createdAt 2024-11-07 08:06:15 - automatic
72
91
  */
73
92
  popupsIds: string[];
74
93
  /**
75
94
  * "hashPoups" Poups
95
+ * @createdAt 2024-11-07 08:06:15 - automatic
76
96
  */
77
97
  hashPopups: Record<string, PopupStoreProps>;
78
98
  /**
79
99
  * "baseZindex" zIndex donde empieza el primer popup
100
+ * @createdAt 2024-11-07 08:06:15 - automatic
80
101
  */
81
102
  baseZindex: number;
82
103
  /**
83
104
  * "currentZindex" Zindex actual, cada vez que se lance un popup se incrementa en 1,
84
105
  * si se cierran todos, vuelve a baseZindex.
106
+ * @createdAt 2024-11-07 08:06:15 - automatic
85
107
  */
86
108
  currentZindex: number;
87
109
  /**
88
110
  * "getLabel" funcion que usará para traducir las etiquetas de diccionario
111
+ * @updatedUser cesar - automatic
112
+ * @updatedAt 2024-11-07 08:06:15 - automatic
113
+ * @createdAt 2024-11-07 08:06:15 - automatic
114
+ * @author cesar - automatic
115
+ * @createdAt 2024-11-07 08:06:15 - automatic
89
116
  */
90
117
  getLabel: GetLabelType;
91
118
  /**
@@ -96,6 +123,7 @@ export interface PopupsStore {
96
123
  export type OpenPopupOptions = {
97
124
  /**
98
125
  * Indica si se deben cerrar primero los otros propus.
126
+ * @createdAt 2024-11-07 08:06:15 - automatic
99
127
  */
100
128
  closeOthers: boolean;
101
129
  };
@@ -103,34 +131,63 @@ export interface PopupsStateWithActions extends PopupsStore {
103
131
  popupsActions: {
104
132
  /**
105
133
  * @description
134
+ * @createdAt 2024-11-07 08:06:15 - automatic
106
135
  */
107
136
  init(layersStore: PopupStoreProps[]): void;
108
137
  /**
109
138
  * Agrega una un poupup nuevo al hash de popups y al array de ids,
139
+ * @author cesar - automatic
140
+ * @createdAt 2024-11-07 08:06:15 - automatic
141
+ * @updatedAt 2024-11-07 08:06:15 - automatic
142
+ * @updatedUser cesar - automatic
110
143
  */
111
144
  addPopup: (popupProps: Omit<PopupStoreProps, 'status' | 'zIndex'>, options?: OpenPopupOptions) => void;
112
145
  /**
113
146
  * Remueve el poupup del hash de poups y de arrays de ids
147
+ * @author cesar - automatic
148
+ * @createdAt 2024-11-07 08:06:15 - automatic
149
+ * @updatedAt 2024-11-07 08:06:15 - automatic
150
+ * @updatedUser cesar - automatic
114
151
  */
115
152
  removePopup: (popupId: string) => void;
116
153
  /**
117
154
  * pasa el status a closing para que las las transiciones se ejecuten.
155
+ * @author cesar - automatic
156
+ * @createdAt 2024-11-07 08:06:15 - automatic
157
+ * @updatedAt 2024-11-07 08:06:15 - automatic
158
+ * @updatedUser cesar - automatic
118
159
  */
119
160
  closePopup: (popupId: string) => void;
120
161
  /**
121
162
  * Modifica un popup espeficio
163
+ * @author cesar - automatic
164
+ * @createdAt 2024-11-07 08:06:15 - automatic
165
+ * @updatedAt 2024-11-07 08:06:15 - automatic
166
+ * @updatedUser cesar - automatic
122
167
  */
123
168
  updatePopup: (popupId: string, popupProps: Partial<Omit<PopupStoreProps, 'status'>>) => void;
124
169
  /**
125
170
  * pasa el status a init, no se ejecutan las transiciones, porque el popup viene de estar hide .
171
+ * @author cesar - automatic
172
+ * @createdAt 2024-11-07 08:06:15 - automatic
173
+ * @updatedAt 2024-11-07 08:06:15 - automatic
174
+ * @updatedUser cesar - automatic
126
175
  */
127
176
  showPopup: (popupId: string) => void;
128
177
  /**
129
178
  * pasa el status a hide, no se ejecutan las transiciones, porque el popup se esconde inmediatamente.
179
+ * @author cesar - automatic
180
+ * @createdAt 2024-11-07 08:06:15 - automatic
181
+ * @updatedAt 2024-11-07 08:06:15 - automatic
182
+ * @updatedUser cesar - automatic
130
183
  */
131
184
  hidePopup: (popupId: string) => void;
132
185
  /**
133
186
  * Pone el popup con zIndex igual a currentIndex y lo amuneta en uno.
187
+ * @author cesar - automatic
188
+ * @createdAt 2024-11-07 08:06:15 - automatic
189
+ * @updatedAt 2024-11-07 08:06:15 - automatic
190
+ * @updatedUser cesar - automatic
134
191
  */
135
192
  setPopupOnFront: (popupId: string) => void;
136
193
  /**
@@ -138,6 +195,10 @@ export interface PopupsStateWithActions extends PopupsStore {
138
195
  * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
139
196
  * cambia por el useCallback, cuando el diccionario se carga.
140
197
  * @returns void
198
+ * @author cesar - automatic
199
+ * @createdAt 2024-11-07 08:06:15 - automatic
200
+ * @updatedAt 2024-11-07 08:06:15 - automatic
201
+ * @updatedUser cesar - automatic
141
202
  */
142
203
  setHandlerGetLabel: (newHandler: GetLabelType) => void;
143
204
  };
@@ -1,7 +1,7 @@
1
1
  export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown>;
3
3
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
4
- export declare const PopupDragWindowRootStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../DragResizeWindow/types').DraggableWindowProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../../DragResizeWindow/types').DraggableWindowProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown> & {
4
+ export declare const PopupDragWindowRootStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../DragResizeWindow/types').DragResizeWindowProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../../DragResizeWindow/types').DragResizeWindowProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
7
  export declare const PopupHeaderContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PopupsViewerOwnerState> & Record<string, unknown> & {
@@ -2,6 +2,10 @@ import { ModalContextProps, ModalProviderProps } from './types';
2
2
  declare const ModalContext: import('react').Context<ModalContextProps | null>;
3
3
  /**
4
4
  * TODO: Documentar
5
+ * @author cesar - automatic
6
+ * @createdAt 2024-11-01 16:56:18 - automatic
7
+ * @updatedAt 2024-11-01 16:56:18 - automatic
8
+ * @updatedUser cesar - automatic
5
9
  */
6
10
  declare function ModalProvider({ children }: ModalProviderProps): import("react/jsx-runtime").JSX.Element;
7
11
  export { ModalProvider, ModalContext };
@@ -12,7 +12,7 @@ export interface ModalOpenOptions {
12
12
  initialWidth?: number;
13
13
  initialHeigth?: number;
14
14
  maxWidth?: number;
15
- maxHeigth?: number;
15
+ maxHeight?: number;
16
16
  fullScreen?: boolean;
17
17
  window?: ((props?: any) => JSX.Element) | ReactNode;
18
18
  variant?: StateColors;
package/index.js CHANGED
@@ -66,8 +66,8 @@ import { D as D4 } from "./components/DynamicFilter/DynamicFilter.js";
66
66
  import { H } from "./components/HelperError/HelperError.js";
67
67
  import { L as L3 } from "./components/Label/Label.js";
68
68
  import { A as A6 } from "./components/CommonActions/components/ActionsContainer/ActionsContainer.js";
69
- import { A as A7 } from "./components/CommonActions/components/ActionCancel/index.js";
70
- import { A as A8 } from "./components/CommonActions/components/ActionIntro/index.js";
69
+ import { A as A7 } from "./components/CommonActions/components/ActionCancel/ActionCancel.js";
70
+ import { A as A8 } from "./components/CommonActions/components/ActionIntro/ActionIntro.js";
71
71
  import { A as A9 } from "./components/CommonActions/components/ActionFormCancel/index.js";
72
72
  import { A as A10 } from "./components/CommonActions/components/ActionFormIntro/index.js";
73
73
  import { d, g as g14 } from "./components/CommonActions/dictionary.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.4",
3
+ "version": "9.1.6",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { DragResizeWindow } from '../../../../src/components/DragResizeWindow/DragResizeWindow';
3
+ declare const meta: Meta<typeof DragResizeWindow>;
4
+ type Story = StoryObj<typeof DragResizeWindow>;
5
+ export declare const Default: Story;
6
+ export declare const Hidden: Story;
7
+ export default meta;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * TODO: Documentar
3
+ * @author cesar - automatic
4
+ * @createdAt 2024-11-08 15:55:16 - automatic
5
+ * @updatedAt 2024-11-12 16:37:07 - automatic
6
+ * @updatedUser cesar - automatic
7
+ */
8
+ export declare const ContentExample: React.FC<Record<string, any>>;
@@ -1,5 +1,9 @@
1
1
  import { StoryContext, StoryFn } from '@storybook/react';
2
2
  /**
3
3
  * TODO: Documentar
4
+ * @author cesar - automatic
5
+ * @createdAt 2024-11-08 15:55:16 - automatic
6
+ * @updatedAt 2024-11-08 15:55:16 - automatic
7
+ * @updatedUser cesar - automatic
4
8
  */
5
9
  export declare const WithExtendedContainer: (MyStory: StoryFn, context: StoryContext) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { DragResizeWindow } from '../DragResizeWindow';
2
+ import { DragResizeWindow } from '../../../../src/components/DragResizeWindow/DragResizeWindow';
3
3
  export type StoryDragResizeWindowType = StoryObj<typeof DragResizeWindow>;
@@ -0,0 +1,22 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ActionCancel } from '../../../../../src/components/CommonActions/components/ActionCancel/ActionCancel';
3
+ declare const meta: Meta<typeof ActionCancel>;
4
+ type Story = StoryObj<typeof ActionCancel>;
5
+ /**
6
+ * Base story for `ActionCancel` in standard mode.
7
+ */
8
+ export declare const Default: Story;
9
+ /**
10
+ * Base story for `ActionCancel` with start icon.
11
+ */
12
+ export declare const WithStartIcon: Story;
13
+ /**
14
+ * Base story for `ActionCancel` with end icon.
15
+ */
16
+ export declare const WithEndIcon: Story;
17
+ /**
18
+ * Base story for `ActionCancel` with start and end icon.
19
+ */
20
+ export declare const WithStartAndEndIcon: Story;
21
+ export declare const Skeleton: Story;
22
+ export default meta;
@@ -0,0 +1,22 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ActionIntro } from '../../../../../src/components/CommonActions/components/ActionIntro';
3
+ declare const meta: Meta<typeof ActionIntro>;
4
+ type Story = StoryObj<typeof ActionIntro>;
5
+ /**
6
+ * Base story for `ActionIntro` in standard mode.
7
+ */
8
+ export declare const Default: Story;
9
+ /**
10
+ * Base story for `ActionIntro` with start icon.
11
+ */
12
+ export declare const WithStartIcon: Story;
13
+ /**
14
+ * Base story for `ActionIntro` with end icon.
15
+ */
16
+ export declare const WithEndIcon: Story;
17
+ /**
18
+ * Base story for `ActionIntro` with start and end icon.
19
+ */
20
+ export declare const WithStartAndEndIcon: Story;
21
+ export declare const Skeleton: Story;
22
+ export default meta;
@@ -0,0 +1,26 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { Button } from '../../../../../src/components/mui_extended/Button/Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ type Story = StoryObj<typeof Button>;
5
+ /**
6
+ * Base story for `Button` in standard mode.
7
+ */
8
+ export declare const Default: Story;
9
+ /**
10
+ * Base story for `Button` with start icon.
11
+ */
12
+ export declare const WithStartIcon: Story;
13
+ /**
14
+ * Base story for `Button` with end icon.
15
+ */
16
+ export declare const WithEndIcon: Story;
17
+ /**
18
+ * Base story for `Button` with start and end icon.
19
+ */
20
+ export declare const WithStartAndEndIcon: Story;
21
+ /**
22
+ * Base story for `Button` with disabled state.
23
+ */
24
+ export declare const Disabled: Story;
25
+ export declare const Skeleton: Story;
26
+ export default meta;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ResizableBox } from '../../../../../src/components/extended/React-Resizable/ResizableBox';
3
+ declare const meta: Meta<typeof ResizableBox>;
4
+ type Story = StoryObj<typeof ResizableBox>;
5
+ /**
6
+ * Base story for ResizableBox
7
+ */
8
+ export declare const Base: Story;
9
+ /**
10
+ * Story for ResizableBox in a disabled state
11
+ */
12
+ export declare const DisabledState: Story;
13
+ export default meta;
@@ -1,4 +0,0 @@
1
- const ACTIONINTRO_TEST_ID = "m4lactions";
2
- export {
3
- ACTIONINTRO_TEST_ID as A
4
- };
@@ -1,13 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { DragResizeWindow } from '../DragResizeWindow';
3
- import { StoryDragResizeWindowType } from './types';
4
- declare const meta: Meta<typeof DragResizeWindow>;
5
- export default meta;
6
- /**
7
- * DragResizeWindow con los resize nodes por defecto
8
- */
9
- export declare const Base: StoryDragResizeWindowType;
10
- /**
11
- * DragResizeWindow oculto
12
- */
13
- export declare const Hidden: StoryDragResizeWindowType;
@@ -1,4 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare const ContentExample: React.FC<Record<string, any>>;
@@ -1,9 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { Resizable } from '../Resizable';
3
- import { StoryResizableType } from './types';
4
- declare const meta: Meta<typeof Resizable>;
5
- export default meta;
6
- /**
7
- * Resizable
8
- */
9
- export declare const Base: StoryResizableType;
@@ -1,9 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ResizableBox } from '../ResizableBox';
3
- import { StoryResizableBoxType } from './types';
4
- declare const meta: Meta<typeof ResizableBox>;
5
- export default meta;
6
- /**
7
- * ResizableBox
8
- */
9
- export declare const Base: StoryResizableBoxType;
@@ -1,4 +0,0 @@
1
- export declare const ButtonRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
- export declare const SKTButton: import('@emotion/styled').StyledComponent<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
- ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
4
- }, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,12 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- import { Skeleton } from "@mui/material";
3
- const ButtonRoot = styled("div")(({ theme }) => ({
4
- /* Styles overrides of m4l_styles */
5
- ...theme.components?.M4LButton?.styleOverrides || {}
6
- }));
7
- styled(Skeleton)(({ theme }) => ({
8
- borderRadius: theme.spacing(0.5)
9
- }));
10
- export {
11
- ButtonRoot as B
12
- };