@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.
- package/@types/types.d.ts +27 -3
- package/components/CommonActions/components/ActionCancel/ActionCancel.d.ts +11 -0
- package/components/CommonActions/components/ActionCancel/ActionCancel.js +52 -0
- package/components/CommonActions/components/ActionCancel/ActionCancel.test.d.ts +1 -0
- package/components/CommonActions/components/ActionCancel/ActionCancelStyles.d.ts +2 -0
- package/components/CommonActions/components/ActionCancel/ActionCancelStyles.js +6 -0
- package/components/CommonActions/components/ActionCancel/constants.d.ts +8 -0
- package/components/CommonActions/components/ActionCancel/constants.js +4 -0
- package/components/CommonActions/components/ActionCancel/index.d.ts +2 -5
- package/components/CommonActions/components/ActionCancel/index.js +1 -12
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.d.ts +3 -0
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.js +7 -0
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +4 -0
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.js +12 -0
- package/components/CommonActions/components/ActionCancel/slots/index.d.ts +2 -0
- package/components/CommonActions/components/ActionCancel/slots/index.js +1 -0
- package/components/CommonActions/components/ActionCancel/types.d.ts +33 -0
- package/components/CommonActions/components/ActionCancel/types.js +1 -0
- package/components/CommonActions/components/ActionFormCancel/index.d.ts +4 -0
- package/components/CommonActions/components/ActionFormCancel/index.js +2 -2
- package/components/CommonActions/components/ActionIntro/ActionIntro.d.ts +12 -0
- package/components/CommonActions/components/ActionIntro/ActionIntro.integration.test.d.ts +1 -0
- package/components/CommonActions/components/ActionIntro/ActionIntro.js +51 -0
- package/components/CommonActions/components/ActionIntro/ActionIntro.test.d.ts +1 -0
- package/components/CommonActions/components/ActionIntro/ActionIntroStyles.d.ts +2 -0
- package/components/CommonActions/components/ActionIntro/ActionIntroStyles.js +6 -0
- package/components/CommonActions/components/ActionIntro/constants.d.ts +8 -0
- package/components/CommonActions/components/ActionIntro/constants.js +4 -0
- package/components/CommonActions/components/ActionIntro/index.d.ts +2 -5
- package/components/CommonActions/components/ActionIntro/index.js +1 -25
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.d.ts +3 -0
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.js +7 -0
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +4 -0
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.js +12 -0
- package/components/CommonActions/components/ActionIntro/slots/index.d.ts +2 -0
- package/components/CommonActions/components/ActionIntro/slots/index.js +1 -0
- package/components/CommonActions/components/ActionIntro/types.d.ts +33 -0
- package/components/CommonActions/components/ActionIntro/types.js +1 -0
- package/components/CommonActions/components/ActionsContainer/index.d.ts +2 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +2 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
- package/components/DragResizeWindow/DragResizeWindow.d.ts +9 -5
- package/components/DragResizeWindow/DragResizeWindow.js +6 -5
- package/components/DragResizeWindow/DragResizeWindow.styles.d.ts +4 -0
- package/components/DragResizeWindow/DragResizeWindow.styles.js +20 -3
- package/components/DragResizeWindow/classes/index.js +2 -2
- package/components/DragResizeWindow/constants.d.ts +1 -1
- package/components/DragResizeWindow/constants.js +2 -2
- package/components/DragResizeWindow/helpers/index.d.ts +14 -1
- package/components/DragResizeWindow/helpers/index.js +0 -2
- package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +4 -0
- package/components/DragResizeWindow/hooks/useDimensionEffects.js +128 -50
- package/components/DragResizeWindow/hooks/useDragOptions.d.ts +3 -3
- package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +20 -1
- package/components/DragResizeWindow/hooks/useResizeOptions.js +1 -1
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.js +3 -3
- package/components/DragResizeWindow/tests/DragResizeWindow.test.d.ts +1 -0
- package/components/DragResizeWindow/types.d.ts +84 -12
- package/components/DragResizeWindow/utils.d.ts +12 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +4 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +4 -0
- package/components/Icon/types.d.ts +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LoadingError/LoadingError.d.ts +5 -0
- package/components/LoadingError/LoadingError.js +7 -1
- package/components/PDFViewer/PDFViewer.d.ts +4 -0
- package/components/PDFViewer/PDFViewer.js +1 -1
- package/components/ToastContainer/ToastContainer.stories.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +43 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +4 -5
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +6 -8
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +27 -3
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -5
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +4 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +7 -6
- package/components/extended/React-Resizable/Resizable/Resizable.d.ts +4 -0
- package/components/extended/React-Resizable/Resizable/Resizable.js +13 -1
- package/components/extended/React-Resizable/Resizable/constants.d.ts +1 -0
- package/components/extended/React-Resizable/Resizable/constants.js +3 -1
- package/components/extended/React-Resizable/ResizableBox/ResizableBox.d.ts +6 -2
- package/components/extended/React-Resizable/ResizableBox/ResizableBox.js +14 -2
- package/components/extended/React-Resizable/ResizableBox/ResizeableBox.styles.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/ResizeableBox.styles.js +7 -3
- package/components/extended/React-Resizable/ResizableBox/tests/ResizableBox.integration.test.d.ts +1 -0
- package/components/extended/React-Resizable/ResizableBox/tests/ResizableBox.test.d.ts +1 -0
- package/components/extended/React-Resizable/ResizableBox/types.d.ts +35 -4
- package/components/extended/React-Resizable/helpers.d.ts +151 -34
- package/components/extended/React-Resizable/helpers.js +106 -85
- package/components/extended/React-Resizable/hooks/useResizable.d.ts +16 -0
- package/components/extended/React-Resizable/hooks/useResizable.js +24 -0
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +4 -0
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +2 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +7 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +1 -1
- package/components/modal/ModalDialog/index.d.ts +4 -0
- package/components/modal/ModalDialog/index.js +2 -2
- package/components/modal/WindowConfirm/index.d.ts +3 -3
- package/components/modal/WindowConfirm/index.js +2 -2
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/Button.d.ts +8 -6
- package/components/mui_extended/Button/Button.integration.test.d.ts +1 -0
- package/components/mui_extended/Button/Button.js +70 -34
- package/components/mui_extended/Button/Button.test.d.ts +1 -0
- package/components/mui_extended/Button/ButtonStyles.d.ts +2 -0
- package/components/mui_extended/Button/ButtonStyles.js +223 -0
- package/components/mui_extended/Button/classes/index.d.ts +5 -2
- package/components/mui_extended/Button/classes/index.js +5 -29
- package/components/mui_extended/Button/classes/types.d.ts +10 -0
- package/components/mui_extended/Button/constans.d.ts +8 -0
- package/components/mui_extended/Button/constans.js +4 -0
- package/components/mui_extended/Button/slots/ButtonEnum.d.ts +6 -0
- package/components/mui_extended/Button/slots/ButtonEnum.js +10 -0
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +15 -0
- package/components/mui_extended/Button/slots/ButtonSlots.js +30 -0
- package/components/mui_extended/Button/slots/index.d.ts +3 -0
- package/components/mui_extended/Button/slots/index.js +1 -0
- package/components/mui_extended/Button/types.d.ts +45 -8
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +2 -2
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/types.d.ts +5 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +63 -2
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +1 -1
- package/contexts/ModalContext/index.d.ts +4 -0
- package/contexts/ModalContext/types.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/storybook/components/DragResizeWindow/stories/DragResizeWindow.stories.d.ts +7 -0
- package/storybook/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +8 -0
- package/{components → storybook/components}/DragResizeWindow/stories/subcomponents/WithExtendedContainer.d.ts +4 -0
- package/{components → storybook/components}/DragResizeWindow/stories/types.d.ts +1 -1
- package/storybook/components/commonActions/components/ActionCancel/ActionCancel.stories.d.ts +22 -0
- package/storybook/components/commonActions/components/ActionIntro/ActionIntro.stories.d.ts +22 -0
- package/storybook/components/extended/mui/Button/Button.stories.d.ts +26 -0
- package/storybook/components/extended/react-resizable/ResizableBox/resizableBox.stories.d.ts +13 -0
- package/components/CommonActions/components/ActionIntro/test/contants.js +0 -4
- package/components/DragResizeWindow/stories/basic.stories.d.ts +0 -13
- package/components/DragResizeWindow/stories/dictionary.d.ts +0 -0
- package/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +0 -4
- package/components/extended/React-Resizable/Resizable/stories/basic.stories.d.ts +0 -9
- package/components/extended/React-Resizable/ResizableBox/stories/basic.stories.d.ts +0 -9
- package/components/mui_extended/Button/styles.d.ts +0 -4
- package/components/mui_extended/Button/styles.js +0 -12
- /package/components/{mui_extended/Button/index.test.d.ts → CommonActions/components/ActionCancel/ActionCancel.integration.test.d.ts} +0 -0
- /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 {
|
|
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<
|
|
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').
|
|
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
|
-
|
|
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/
|
|
70
|
-
import { A as A8 } from "./components/CommonActions/components/ActionIntro/
|
|
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
|
@@ -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;
|
|
@@ -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 '
|
|
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,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;
|
|
File without changes
|
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|