@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
|
@@ -4,13 +4,28 @@ import { ContainerSize } from '../../utils/types';
|
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
5
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
6
6
|
import { DragResizeWindowSlots } from './slots/slots';
|
|
7
|
-
import {
|
|
7
|
+
import { COMPONENT_KEY_COMPONENT } from './constants';
|
|
8
8
|
import { ResizeCallbackData, ResizeHandle } from '../extended/React-Resizable';
|
|
9
|
+
/**
|
|
10
|
+
* Tipo que define la corrección de la posición
|
|
11
|
+
* - nCorrection: Cantidad de corrección
|
|
12
|
+
* - x: Coordenada x
|
|
13
|
+
* - y: Coordenada y
|
|
14
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
15
|
+
*/
|
|
9
16
|
export type CorrectionPosition = {
|
|
10
17
|
nCorrection: number;
|
|
11
18
|
x: number;
|
|
12
19
|
y: number;
|
|
13
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Tipo que representa la posición de la ventana (o cualquier otro elemento arrastrable/redimensionable).
|
|
23
|
+
* - left: Coordenada x
|
|
24
|
+
* - top: Coordenada y
|
|
25
|
+
* - width: Ancho
|
|
26
|
+
* - height: Alto
|
|
27
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
28
|
+
*/
|
|
14
29
|
export type Position = {
|
|
15
30
|
left: number;
|
|
16
31
|
top: number;
|
|
@@ -20,6 +35,7 @@ export type Position = {
|
|
|
20
35
|
export interface CurrentState extends Position {
|
|
21
36
|
/**
|
|
22
37
|
* "dragging" indica la posición actual cuando se está moviendo el ventana
|
|
38
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
23
39
|
*/
|
|
24
40
|
dragging?: {
|
|
25
41
|
top: number;
|
|
@@ -27,6 +43,7 @@ export interface CurrentState extends Position {
|
|
|
27
43
|
};
|
|
28
44
|
/**
|
|
29
45
|
* "resizing" indica el tamaño actual cuando se está redimensionando el ventana
|
|
46
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
30
47
|
*/
|
|
31
48
|
resizing?: {
|
|
32
49
|
width: number;
|
|
@@ -34,43 +51,84 @@ export interface CurrentState extends Position {
|
|
|
34
51
|
handle: ResizeHandle;
|
|
35
52
|
};
|
|
36
53
|
/**
|
|
37
|
-
*
|
|
54
|
+
* Posición inicial antes de comenzar el dragging o resizing
|
|
55
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
38
56
|
*/
|
|
39
|
-
|
|
57
|
+
initialPosition?: Position;
|
|
40
58
|
/**
|
|
41
59
|
* "shrinkLeftAt" Indica en que valor estaba el left antes de compactar padre en un resize
|
|
60
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
42
61
|
*/
|
|
43
62
|
shrinkLeftAt?: number;
|
|
44
63
|
/**
|
|
45
64
|
* "shrinkTopAt" Indica en que valor estaba el top antes de compactar padre en un resize
|
|
65
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
46
66
|
*/
|
|
47
67
|
shrinkTopAt?: number;
|
|
48
68
|
/**
|
|
49
69
|
* "overflowWidthAt" Indica en que valor estaba el width antes de compactar padre en un resize
|
|
70
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
50
71
|
*/
|
|
51
72
|
overflowWidthAt?: number;
|
|
52
73
|
/**
|
|
53
|
-
* "
|
|
74
|
+
* "overflowHeightAt" Indica en que valor estaba el Height antes de compactar padre en un resize
|
|
75
|
+
* @createdAt 2024-11-07 08:06:15 - automatic
|
|
54
76
|
*/
|
|
55
77
|
overflowHeightAt?: number;
|
|
56
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Representa una posición parcial, solo incluye las propiedades left y top.
|
|
81
|
+
* - left: Coordenada x
|
|
82
|
+
* - top: Coordenada y
|
|
83
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
84
|
+
*/
|
|
57
85
|
export type PartialPosition = {
|
|
58
86
|
left: number;
|
|
59
87
|
top: number;
|
|
60
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Tipo que define los límites de movimiento de la ventana arrastrable.
|
|
91
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
92
|
+
*/
|
|
61
93
|
export type DraggableWindowBounds = {
|
|
62
94
|
left?: number;
|
|
63
95
|
right?: number;
|
|
64
96
|
top?: number;
|
|
65
97
|
bottom?: number;
|
|
66
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Tipo de callback para el evento de redimensionamiento.
|
|
101
|
+
* @author cesar - automatic
|
|
102
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
103
|
+
* @updatedAt 2024-11-13 10:42:04 - automatic
|
|
104
|
+
* @updatedUser cesar - automatic
|
|
105
|
+
*/
|
|
67
106
|
export type ResizeCallback = ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Tipo para el componente o la función que define el handle para redimensionar la ventana.
|
|
109
|
+
* @author cesar - automatic
|
|
110
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
111
|
+
* @updatedAt 2024-11-13 10:42:04 - automatic
|
|
112
|
+
* @updatedUser cesar - automatic
|
|
113
|
+
*/
|
|
68
114
|
export type ResizeHandleComponente = React.ReactNode | ((resizeHandle: ResizeHandle, ref: React.RefObject<any>) => React.ReactNode) | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Parámetros relacionados con el tamaño del contenedor, usado en la posición y redimensionamiento.
|
|
117
|
+
*/
|
|
69
118
|
export type PositionParams = ContainerSize;
|
|
119
|
+
/**
|
|
120
|
+
* Acción que se realiza en el contenedor (igual, encogiéndose o expandiéndose).
|
|
121
|
+
*/
|
|
70
122
|
export type ContainerAction = 'equals' | 'shrinking' | 'expanding';
|
|
123
|
+
/**
|
|
124
|
+
* Referencia para el componente DragResizeWindow.
|
|
125
|
+
*/
|
|
71
126
|
export type DraggableWindowRefProps = {
|
|
72
127
|
current: HTMLDivElement | null;
|
|
73
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Tipo que representa las posiciones predeterminadas (vertical y horizontal) de la ventana.
|
|
131
|
+
*/
|
|
74
132
|
export interface DefaultPosition {
|
|
75
133
|
vertical: {
|
|
76
134
|
top: number;
|
|
@@ -93,7 +151,10 @@ export interface DefaultPosition {
|
|
|
93
151
|
width: number;
|
|
94
152
|
};
|
|
95
153
|
}
|
|
96
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Propiedades del componente DragResizeWindow, que incluye tanto los controles de arrastre como de redimensionamiento.
|
|
156
|
+
*/
|
|
157
|
+
export interface DragResizeWindowProps extends Partial<Omit<DraggableCoreProps, 'onStart' | 'onDrag' | 'onStop' | 'disabled' | 'handle' | 'cancel'>> {
|
|
97
158
|
children: ReactNode;
|
|
98
159
|
/**
|
|
99
160
|
* "className" permite identificar si es placeHolder y estilar
|
|
@@ -117,7 +178,7 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
117
178
|
minWindowHeight?: number;
|
|
118
179
|
/**
|
|
119
180
|
* defaultPosition permite definir la posición inicial de la ventana
|
|
120
|
-
* TODO: Debe
|
|
181
|
+
* TODO: Debe también recibir anchorEl y anchorPosition y calcular la posición en base a este
|
|
121
182
|
*/
|
|
122
183
|
defaultPosition?: DefaultPosition;
|
|
123
184
|
/**
|
|
@@ -126,7 +187,7 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
126
187
|
bounds?: DraggableWindowBounds;
|
|
127
188
|
/**
|
|
128
189
|
*
|
|
129
|
-
* we should set scale coefficient to avoid render
|
|
190
|
+
* we should set scale coefficient to avoid render artifacts while dragging.
|
|
130
191
|
*/
|
|
131
192
|
transformScale?: number | undefined;
|
|
132
193
|
/**
|
|
@@ -138,7 +199,7 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
138
199
|
*/
|
|
139
200
|
containerSize?: ContainerSize | undefined;
|
|
140
201
|
/**
|
|
141
|
-
* "draggable" permite definir si la ventana es "
|
|
202
|
+
* "draggable" permite definir si la ventana es "draggable" o no. Por defecto es "true
|
|
142
203
|
*/
|
|
143
204
|
draggable?: boolean;
|
|
144
205
|
/**
|
|
@@ -166,7 +227,7 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
166
227
|
/**
|
|
167
228
|
* "resizable" permite definir si la ventana es "resizable" o no. Por defecto es "true
|
|
168
229
|
*/
|
|
169
|
-
|
|
230
|
+
resizable?: boolean;
|
|
170
231
|
/**
|
|
171
232
|
* "resizeHandles" permite definir de donde se va a poder redimensionar la ventana
|
|
172
233
|
*/
|
|
@@ -192,15 +253,23 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
192
253
|
*/
|
|
193
254
|
hidden?: boolean;
|
|
194
255
|
}
|
|
195
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Referencia del estado del componente DragResizeWindow.
|
|
258
|
+
*/
|
|
259
|
+
export interface StateRef extends Pick<DragResizeWindowProps, 'bounds'>, CurrentState {
|
|
196
260
|
data?: DraggableData;
|
|
197
261
|
/**
|
|
198
262
|
* containerSize: Tamaño del contenedor padre la ultima vez que se actualizó
|
|
199
263
|
*/
|
|
200
264
|
containerSize?: ContainerSize | undefined;
|
|
201
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Tipos para los slots del componente DragResizeWindow.
|
|
268
|
+
*/
|
|
202
269
|
export type DragResizeWindowSlotsType = keyof typeof DragResizeWindowSlots;
|
|
203
|
-
|
|
270
|
+
/**
|
|
271
|
+
* Propiedades del estado propietario del componente DragResizeWindow.
|
|
272
|
+
*/
|
|
204
273
|
export type DragResizeWindowOwnerState = {
|
|
205
274
|
/**
|
|
206
275
|
* "isMobile" cuando el navegador está corriendo en dispositivo móvil
|
|
@@ -211,4 +280,7 @@ export type DragResizeWindowOwnerState = {
|
|
|
211
280
|
*/
|
|
212
281
|
hidden?: boolean;
|
|
213
282
|
};
|
|
214
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Tipo de reglas de estilo para el componente DragResizeWindow.
|
|
285
|
+
*/
|
|
286
|
+
export type DragResizeWindowStyles = Partial<OverridesStyleRules<DragResizeWindowSlotsType, typeof COMPONENT_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { Position } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Generates a style object with transform properties to position an element.
|
|
4
|
+
*
|
|
5
|
+
* This function returns a style object that positions an element absolutely at the
|
|
6
|
+
* specified `top` and `left` coordinates, and sets its `width` and `height`.
|
|
7
|
+
* It uses the `translate` transform to apply the positioning for smooth rendering
|
|
8
|
+
* across browsers.
|
|
9
|
+
* @param {Position} position - An object containing `top`, `left`, `width`, and `height` properties.
|
|
10
|
+
* @returns {Record<string, any>} A style object with applied transform, dimension, and positioning properties.
|
|
11
|
+
* @author cesar - automatic
|
|
12
|
+
* @createdAt 2024-11-08 12:13:10 - automatic
|
|
13
|
+
* @updatedAt 2024-11-13 10:42:04 - automatic
|
|
14
|
+
* @updatedUser cesar - automatic
|
|
4
15
|
*/
|
|
5
16
|
export declare function setTransform({ top, left, width, height }: Position): Record<string, any>;
|
|
@@ -57,7 +57,7 @@ export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponen
|
|
|
57
57
|
}, {}, {}>;
|
|
58
58
|
export declare const PopoverMenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
59
59
|
ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
|
|
60
|
-
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
60
|
+
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
61
61
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
62
62
|
}, {}, {}>;
|
|
63
63
|
export declare const PopoverMenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
@@ -81,6 +81,6 @@ export declare const PopoverHeaderIconStyled: import('@emotion/styled').StyledCo
|
|
|
81
81
|
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
82
82
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
83
83
|
}, {}, {}>;
|
|
84
|
-
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer
|
|
84
|
+
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
85
85
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
86
86
|
}, {}, {}>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
5
|
+
* @updatedAt 2024-11-12 12:57:56 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
declare function PopoverFilter(): import("react/jsx-runtime").JSX.Element | null;
|
|
5
9
|
export default PopoverFilter;
|
|
@@ -3,8 +3,8 @@ import { u as usePopoverFilter } from "./usePopoverFilter.js";
|
|
|
3
3
|
import { D as DataTypeComponent } from "../FieldTypes/DataTypeComponent.js";
|
|
4
4
|
import { P as PopoverStyled, p as PopoverHeaderStyled, q as PopoverHeaderIconStyled, r as PopoverHeaderTitleStyled, s as PopoverContainerFieldsStyled, t as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots.js";
|
|
5
5
|
import { R as RHFormProvider } from "../../../hook-form/RHFormContext/index.js";
|
|
6
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/
|
|
7
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/
|
|
6
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
7
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
8
8
|
function PopoverFilter() {
|
|
9
9
|
const {
|
|
10
10
|
field,
|
|
@@ -54,7 +54,7 @@ export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponen
|
|
|
54
54
|
}, {}, {}>;
|
|
55
55
|
export declare const PopoverMenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
56
56
|
ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
|
|
57
|
-
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
57
|
+
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
58
58
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
59
59
|
}, {}, {}>;
|
|
60
60
|
export declare const PopoverMenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
@@ -78,6 +78,6 @@ export declare const PopoverHeaderIconStyled: import('@emotion/styled').StyledCo
|
|
|
78
78
|
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
79
79
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
80
80
|
}, {}, {}>;
|
|
81
|
-
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer
|
|
81
|
+
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
82
82
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
83
83
|
}, {}, {}>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
5
|
+
* @updatedAt 2024-11-12 12:57:56 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
declare function PopoverSort(): import("react/jsx-runtime").JSX.Element | null;
|
|
5
9
|
export default PopoverSort;
|
|
@@ -8,7 +8,7 @@ import { TooltipProps } from '../mui_extended';
|
|
|
8
8
|
/**
|
|
9
9
|
* Define la lista de posibles colores que se pueden aplicar al componente icono.
|
|
10
10
|
*/
|
|
11
|
-
export type IconColors = 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | 'success.main' | 'error.main' | 'warning.main';
|
|
11
|
+
export type IconColors = 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | 'success.main' | 'error.main' | 'warning.main' | string;
|
|
12
12
|
export interface IconProps extends Pick<TooltipProps, 'placement'> {
|
|
13
13
|
/**
|
|
14
14
|
* URL o ruta de la imagen que se va a mostrar.
|
|
@@ -12,6 +12,6 @@ export declare const IconHelperMessageStyled: import('@emotion/styled').StyledCo
|
|
|
12
12
|
}, {}, {}>;
|
|
13
13
|
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
14
14
|
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;
|
|
15
|
-
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
15
|
+
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').LabelOwnerState> & Record<string, unknown> & {
|
|
16
16
|
ownerState: Partial<import('../types').LabelOwnerState> & Record<string, unknown>;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -10,8 +10,13 @@ import { AreasLoadingErrorProps } from './types';
|
|
|
10
10
|
* @param {string} props.introMessage - Es una cadena de texto que proporciona un mensaje introductorio adicional. Este mensaje se mostrará en el componente antes de mostrar el título, la descripción y la recomendación del error.
|
|
11
11
|
* @param {string} props.errorIcon - Es una cadena de texto que representa la ruta o el identificador del ícono que se mostrará junto al mensaje de error.
|
|
12
12
|
* @returns {JSX.Element} Elemento JSX que representa el componente.
|
|
13
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
13
14
|
*/
|
|
14
15
|
/**
|
|
15
16
|
* TODO: Documentar
|
|
17
|
+
* @author SebastianM - automatic
|
|
18
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
19
|
+
* @updatedAt 2024-11-06 09:00:05 - automatic
|
|
20
|
+
* @updatedUser SebastianM - automatic
|
|
16
21
|
*/
|
|
17
22
|
export declare const LoadingError: (props: AreasLoadingErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -42,7 +42,13 @@ const LoadingError = (props) => {
|
|
|
42
42
|
children: recommendation ? recommendation : getLabel("loading_error.label_error_recommendation")
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
Button,
|
|
47
|
+
{
|
|
48
|
+
onClick: action,
|
|
49
|
+
label: introMessage ? introMessage : getLabel("loading_error.label_error_intro")
|
|
50
|
+
}
|
|
51
|
+
)
|
|
46
52
|
] }) });
|
|
47
53
|
};
|
|
48
54
|
export {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PDFViewerPros } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @author SebastianM - automatic
|
|
5
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
6
|
+
* @updatedAt 2024-11-06 09:00:05 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
4
8
|
*/
|
|
5
9
|
export declare const PDFViewer: (props: PDFViewerPros) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,7 +22,7 @@ const PDFViewer = (props) => {
|
|
|
22
22
|
const classes = pdfviewerUtilityClasses();
|
|
23
23
|
return /* @__PURE__ */ jsxs(PDFVeiwerRoot, { className: classes.root, children: [
|
|
24
24
|
/* @__PURE__ */ jsx("embed", { src: pdfUrl, type: "application/pdf", width: "100%", height: "100%" }),
|
|
25
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleDownload, variant: "contained",
|
|
25
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleDownload, variant: "contained", label: "Descargar PDF" })
|
|
26
26
|
] });
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
@@ -37,6 +37,10 @@ import { ToastContainer } from './ToastContainer';
|
|
|
37
37
|
* }
|
|
38
38
|
*
|
|
39
39
|
* ```
|
|
40
|
+
* @author SebastianM - automatic
|
|
41
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
42
|
+
* @updatedAt 2024-11-06 09:00:05 - automatic
|
|
43
|
+
* @updatedUser SebastianM - automatic
|
|
40
44
|
*/
|
|
41
45
|
declare const meta: Meta<typeof ToastContainer>;
|
|
42
46
|
export default meta;
|
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
import { AreaChipProps } from './types';
|
|
2
2
|
/**
|
|
3
|
+
* <<<<<<< HEAD
|
|
3
4
|
* Componente de chip de área.
|
|
5
|
+
* <<<<<<< HEAD
|
|
4
6
|
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
7
|
+
* =======
|
|
8
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
9
|
+
* >>>>>>> 2cb88276 (refactor(PGK-552): refactor button)
|
|
10
|
+
* =======
|
|
11
|
+
* AreaChip component for rendering a chip with area details.
|
|
12
|
+
*
|
|
13
|
+
* Props:
|
|
14
|
+
* - areaId: string - The ID of the area.
|
|
15
|
+
* - selected: boolean - Indicates if the chip is selected.
|
|
16
|
+
* - disabled: boolean - Indicates if the chip is disabled.
|
|
17
|
+
* - setAnchorMenuAreas: (element: HTMLElement) => void - Function to set the anchor element for the menu.
|
|
18
|
+
*
|
|
19
|
+
* Constants:
|
|
20
|
+
* - host_static_assets: string - The host for static assets.
|
|
21
|
+
* - environment_assets: string - The environment-specific assets.
|
|
22
|
+
* - deleteArea: (areaId: string) => void - Function to delete an area.
|
|
23
|
+
* - selectArea: (areaId: string) => void - Function to select an area.
|
|
24
|
+
* - editArea: (areaId: string, data: any) => void - Function to edit an area.
|
|
25
|
+
* - setFocus: (focus: boolean) => void - Function to set focus.
|
|
26
|
+
* - areaName: string - The name of the area.
|
|
27
|
+
* - listAreas: string[] - List of area IDs.
|
|
28
|
+
* - open: boolean - State to control the open/close state of the popover.
|
|
29
|
+
* - getLabel: (key: string) => string - Function to get a label from the dictionary.
|
|
30
|
+
* - isDesktop: boolean - Indicates if the current view is desktop.
|
|
31
|
+
* - anchorRef: React.RefObject<null> - Reference to the anchor element.
|
|
32
|
+
* - theme: Theme - The current theme.
|
|
33
|
+
* - initialValues: { inputEditArea: string } - Initial values for the form.
|
|
34
|
+
* - validationSchema: Yup.ObjectSchema - Validation schema for the form.
|
|
35
|
+
* - rippleRef: React.RefObject<any> - Reference to the ripple effect.
|
|
36
|
+
* @createdAt 2024-11-06 11:07:59 - automatic
|
|
37
|
+
* >>>>>>> 32caab70 (refactor(PGK-552): resolve TODO documentar and styles to slots)
|
|
5
38
|
*/
|
|
6
39
|
/**
|
|
7
|
-
*
|
|
40
|
+
* Propiedades del componente de chip de área.
|
|
8
41
|
* @author SebastianM - automatic
|
|
42
|
+
* <<<<<<< HEAD
|
|
43
|
+
* <<<<<<< HEAD
|
|
9
44
|
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
10
45
|
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
46
|
+
* =======
|
|
47
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
48
|
+
* @updatedAt 2024-11-06 10:39:53 - automatic
|
|
49
|
+
* =======
|
|
50
|
+
* @createdAt 2024-11-06 11:07:59 - automatic
|
|
51
|
+
* @updatedAt 2024-11-06 11:07:59 - automatic
|
|
52
|
+
* >>>>>>> 32caab70 (refactor(PGK-552): resolve TODO documentar and styles to slots)
|
|
11
53
|
* @updatedUser SebastianM - automatic
|
|
12
54
|
*/
|
|
13
55
|
export declare const AreaChip: {
|
|
@@ -17,9 +17,9 @@ import { R as RHFormProvider } from "../../../../../hook-form/RHFormContext/inde
|
|
|
17
17
|
import { T as Typography } from "../../../../../mui_extended/Typography/Typography.js";
|
|
18
18
|
import { R as RHFTextField } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
19
19
|
import { A as ActionsContainer } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
20
|
-
import { A as ActionCancel } from "../../../../../CommonActions/components/ActionCancel/index.js";
|
|
21
|
-
import { A as ActionIntro } from "../../../../../CommonActions/components/ActionIntro/index.js";
|
|
22
20
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
21
|
+
import { A as ActionCancel } from "../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
22
|
+
import { A as ActionIntro } from "../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
23
23
|
const AreaChip = (props) => {
|
|
24
24
|
const { areaId, selected, disabled, setAnchorMenuAreas } = props;
|
|
25
25
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -190,11 +190,10 @@ const AreaChip = (props) => {
|
|
|
190
190
|
setOpen(false);
|
|
191
191
|
setFocus(false);
|
|
192
192
|
},
|
|
193
|
-
variant: "outlined"
|
|
194
|
-
skeletonWidth: "100%"
|
|
193
|
+
variant: "outlined"
|
|
195
194
|
}
|
|
196
195
|
),
|
|
197
|
-
/* @__PURE__ */ jsx(ActionIntro, {
|
|
196
|
+
/* @__PURE__ */ jsx(ActionIntro, {})
|
|
198
197
|
] })
|
|
199
198
|
]
|
|
200
199
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
5
|
+
* @updatedAt 2024-11-06 17:18:27 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
export declare const AreaChipMobile: () => import("react/jsx-runtime").JSX.Element;
|