upconta.frontend-utils 2.5.4 → 2.5.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/.dist/cjs/components/Attachments.d.ts +32 -0
- package/.dist/cjs/components/index.d.ts +1 -0
- package/.dist/cjs/index.js +1 -1
- package/.dist/cjs/index.js.map +1 -1
- package/.dist/cjs/libs/hooks/accounting-rules.d.ts +1 -1
- package/.dist/cjs/libs/hooks/vista-insertar.d.ts +2 -1
- package/.dist/cjs/libs/utils.d.ts +1 -0
- package/.dist/esm/index.js +2 -2
- package/.dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Attachment } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Muestra un ícono de clip si la lista de adjuntos no está vacía.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AttachmentsTag: FC<{
|
|
7
|
+
attachments?: Attachment[];
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Componente para cargar, visualizar y eliminar archivos adjuntos de un documento.
|
|
11
|
+
* Utiliza Ant Design para la interfaz de usuario y SWR para la gestión de datos.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AttachmentsUpload: FC<{
|
|
14
|
+
/**
|
|
15
|
+
* ID del documento al que pertenecen los adjuntos.
|
|
16
|
+
*/
|
|
17
|
+
_id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Texto del botón de subida.
|
|
20
|
+
* @default 'Cargar archivo adjunto'
|
|
21
|
+
*/
|
|
22
|
+
uploadText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Endpoint de la API para gestionar los adjuntos.
|
|
25
|
+
*/
|
|
26
|
+
endpoint: string;
|
|
27
|
+
/**
|
|
28
|
+
* Tamaño máximo en bytes permitido para los archivos.
|
|
29
|
+
* @default 5242880 (5MB)
|
|
30
|
+
*/
|
|
31
|
+
maxSize?: number;
|
|
32
|
+
}>;
|
|
@@ -8,6 +8,7 @@ export { default as FiltroFechas } from './FiltrosFechas';
|
|
|
8
8
|
export { default as Tutoriales } from './Tutoriales';
|
|
9
9
|
export { default as Autocompletado } from './Autocompletado';
|
|
10
10
|
export { default as FormDirecciones } from './mx/administrative/FormDirecciones';
|
|
11
|
+
export * from './Attachments';
|
|
11
12
|
export { initSeeker } from './Seeker.utils';
|
|
12
13
|
export { default as Seeker } from './Seeker';
|
|
13
14
|
export { default as SeekerMx } from './SeekerMx';
|