corekit-ui 0.2.46 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -42
- package/dist/_dependencias/scrim.cjs.map +1 -1
- package/dist/_dependencias/scrim.js.map +1 -1
- package/dist/audio_recorder/AudioRecorder.cjs +1 -1
- package/dist/audio_recorder/AudioRecorder.cjs.map +1 -1
- package/dist/audio_recorder/AudioRecorder.js +105 -96
- package/dist/audio_recorder/AudioRecorder.js.map +1 -1
- package/dist/audio_recorder/funciones/constantes.cjs.map +1 -1
- package/dist/audio_recorder/funciones/constantes.js.map +1 -1
- package/dist/audio_recorder/hooks/useAudioRecorder.cjs.map +1 -1
- package/dist/audio_recorder/hooks/useAudioRecorder.js.map +1 -1
- package/dist/audio_recorder/hooks/usePreviewGrabacion.cjs.map +1 -1
- package/dist/audio_recorder/hooks/usePreviewGrabacion.js.map +1 -1
- package/dist/audio_recorder/hooks/useTiempoSuave.cjs.map +1 -1
- package/dist/audio_recorder/hooks/useTiempoSuave.js.map +1 -1
- package/dist/audio_recorder/secciones/AccionesRecorder.cjs +1 -1
- package/dist/audio_recorder/secciones/AccionesRecorder.cjs.map +1 -1
- package/dist/audio_recorder/secciones/AccionesRecorder.js +30 -27
- package/dist/audio_recorder/secciones/AccionesRecorder.js.map +1 -1
- package/dist/audio_recorder/secciones/Consentimiento.cjs.map +1 -1
- package/dist/audio_recorder/secciones/Consentimiento.js.map +1 -1
- package/dist/audio_recorder/secciones/ControlVolumen.cjs.map +1 -1
- package/dist/audio_recorder/secciones/ControlVolumen.js.map +1 -1
- package/dist/audio_recorder/secciones/Waveform.cjs.map +1 -1
- package/dist/audio_recorder/secciones/Waveform.js.map +1 -1
- package/dist/audio_recorder/secciones/ZonaGrabando.cjs.map +1 -1
- package/dist/audio_recorder/secciones/ZonaGrabando.js.map +1 -1
- package/dist/audio_recorder/secciones/ZonaIdle.cjs +1 -1
- package/dist/audio_recorder/secciones/ZonaIdle.cjs.map +1 -1
- package/dist/audio_recorder/secciones/ZonaIdle.js +25 -23
- package/dist/audio_recorder/secciones/ZonaIdle.js.map +1 -1
- package/dist/audio_recorder/secciones/ZonaRevision.cjs.map +1 -1
- package/dist/audio_recorder/secciones/ZonaRevision.js.map +1 -1
- package/dist/audio_recorder/secciones/icons.cjs.map +1 -1
- package/dist/audio_recorder/secciones/icons.js.map +1 -1
- package/dist/boton/Boton.cjs +1 -1
- package/dist/boton/Boton.cjs.map +1 -1
- package/dist/boton/Boton.js +83 -77
- package/dist/boton/Boton.js.map +1 -1
- package/dist/boton/Boton.module.css.cjs +1 -1
- package/dist/boton/Boton.module.css.js +17 -15
- package/dist/boton/Boton.module.css.js.map +1 -1
- package/dist/boton/funciones.cjs +2 -0
- package/dist/boton/funciones.cjs.map +1 -0
- package/dist/boton/funciones.js +9 -0
- package/dist/boton/funciones.js.map +1 -0
- package/dist/buscador_informacion/BuscadorInformacion.cjs.map +1 -1
- package/dist/buscador_informacion/BuscadorInformacion.js.map +1 -1
- package/dist/buscador_informacion/Ilustracion.cjs.map +1 -1
- package/dist/buscador_informacion/Ilustracion.js.map +1 -1
- package/dist/buscador_informacion/hooks/useBusqueda.cjs.map +1 -1
- package/dist/buscador_informacion/hooks/useBusqueda.js.map +1 -1
- package/dist/buscador_informacion/hooks/useRecientes.cjs.map +1 -1
- package/dist/buscador_informacion/hooks/useRecientes.js.map +1 -1
- package/dist/buscador_informacion/iconos.cjs.map +1 -1
- package/dist/buscador_informacion/iconos.js.map +1 -1
- package/dist/buscador_informacion/utils.cjs.map +1 -1
- package/dist/buscador_informacion/utils.js.map +1 -1
- package/dist/checkbox/Checkbox.cjs +1 -1
- package/dist/checkbox/Checkbox.cjs.map +1 -1
- package/dist/checkbox/Checkbox.js +52 -49
- package/dist/checkbox/Checkbox.js.map +1 -1
- package/dist/checkbox/CheckboxGroup.cjs +1 -1
- package/dist/checkbox/CheckboxGroup.cjs.map +1 -1
- package/dist/checkbox/CheckboxGroup.js +78 -63
- package/dist/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/corekit-ui.css +1 -1
- package/dist/drawer/Drawer.cjs.map +1 -1
- package/dist/drawer/Drawer.js.map +1 -1
- package/dist/dropdown/DropdownMenu.cjs +1 -1
- package/dist/dropdown/DropdownMenu.cjs.map +1 -1
- package/dist/dropdown/DropdownMenu.js +121 -116
- package/dist/dropdown/DropdownMenu.js.map +1 -1
- package/dist/dropdown/DropdownMenu.module.css.cjs +1 -1
- package/dist/dropdown/DropdownMenu.module.css.js +40 -38
- package/dist/dropdown/DropdownMenu.module.css.js.map +1 -1
- package/dist/dropdown/MenuItem.cjs +1 -1
- package/dist/dropdown/MenuItem.cjs.map +1 -1
- package/dist/dropdown/MenuItem.js +55 -52
- package/dist/dropdown/MenuItem.js.map +1 -1
- package/dist/dropdown/Submenu.cjs +1 -1
- package/dist/dropdown/Submenu.cjs.map +1 -1
- package/dist/dropdown/Submenu.js +89 -87
- package/dist/dropdown/Submenu.js.map +1 -1
- package/dist/excel_import/ExcelImport.cjs +1 -1
- package/dist/excel_import/ExcelImport.cjs.map +1 -1
- package/dist/excel_import/ExcelImport.js +45 -43
- package/dist/excel_import/ExcelImport.js.map +1 -1
- package/dist/file_upload/FileStage.cjs +1 -1
- package/dist/file_upload/FileStage.cjs.map +1 -1
- package/dist/file_upload/FileStage.js +151 -136
- package/dist/file_upload/FileStage.js.map +1 -1
- package/dist/file_upload/FileStage.module.css.cjs +1 -1
- package/dist/file_upload/FileStage.module.css.js +58 -56
- package/dist/file_upload/FileStage.module.css.js.map +1 -1
- package/dist/file_upload/funciones/archivos.cjs +1 -1
- package/dist/file_upload/funciones/archivos.cjs.map +1 -1
- package/dist/file_upload/funciones/archivos.js +24 -13
- package/dist/file_upload/funciones/archivos.js.map +1 -1
- package/dist/file_upload/hooks/useArchivosStage.cjs +1 -1
- package/dist/file_upload/hooks/useArchivosStage.cjs.map +1 -1
- package/dist/file_upload/hooks/useArchivosStage.js +17 -16
- package/dist/file_upload/hooks/useArchivosStage.js.map +1 -1
- package/dist/file_upload/icons.cjs.map +1 -1
- package/dist/file_upload/icons.js.map +1 -1
- package/dist/file_upload/secciones/FilaArchivo.cjs +1 -1
- package/dist/file_upload/secciones/FilaArchivo.cjs.map +1 -1
- package/dist/file_upload/secciones/FilaArchivo.js +62 -48
- package/dist/file_upload/secciones/FilaArchivo.js.map +1 -1
- package/dist/group_button/GroupButton.cjs +1 -1
- package/dist/group_button/GroupButton.cjs.map +1 -1
- package/dist/group_button/GroupButton.js +54 -50
- package/dist/group_button/GroupButton.js.map +1 -1
- package/dist/hooks/useSoltarFocoAlDeshabilitar.cjs +2 -0
- package/dist/hooks/useSoltarFocoAlDeshabilitar.cjs.map +1 -0
- package/dist/hooks/useSoltarFocoAlDeshabilitar.js +11 -0
- package/dist/hooks/useSoltarFocoAlDeshabilitar.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +260 -96
- package/dist/index.js +94 -80
- package/dist/index.js.map +1 -1
- package/dist/input_date/InputDate.cjs +1 -1
- package/dist/input_date/InputDate.cjs.map +1 -1
- package/dist/input_date/InputDate.js +98 -92
- package/dist/input_date/InputDate.js.map +1 -1
- package/dist/input_numeric/InputNumeric.cjs +1 -1
- package/dist/input_numeric/InputNumeric.cjs.map +1 -1
- package/dist/input_numeric/InputNumeric.js +137 -131
- package/dist/input_numeric/InputNumeric.js.map +1 -1
- package/dist/input_text/InputText.cjs +1 -1
- package/dist/input_text/InputText.cjs.map +1 -1
- package/dist/input_text/InputText.js +129 -120
- package/dist/input_text/InputText.js.map +1 -1
- package/dist/input_types_compartidos/PieCampo.cjs +2 -0
- package/dist/input_types_compartidos/PieCampo.cjs.map +1 -0
- package/dist/input_types_compartidos/PieCampo.js +26 -0
- package/dist/input_types_compartidos/PieCampo.js.map +1 -0
- package/dist/input_types_compartidos/PieCampo.module.css.cjs +2 -0
- package/dist/input_types_compartidos/PieCampo.module.css.cjs.map +1 -0
- package/dist/input_types_compartidos/PieCampo.module.css.js +12 -0
- package/dist/input_types_compartidos/PieCampo.module.css.js.map +1 -0
- package/dist/modal/Modal.cjs.map +1 -1
- package/dist/modal/Modal.js.map +1 -1
- package/dist/modal/hooks/useAnimarRedimension.cjs.map +1 -1
- package/dist/modal/hooks/useAnimarRedimension.js.map +1 -1
- package/dist/modal_aviso/ModalAviso.cjs.map +1 -1
- package/dist/modal_aviso/ModalAviso.js.map +1 -1
- package/dist/panel_filtros/PanelFiltros.cjs.map +1 -1
- package/dist/panel_filtros/PanelFiltros.js.map +1 -1
- package/dist/permisos/Autorizado.cjs +2 -0
- package/dist/permisos/Autorizado.cjs.map +1 -0
- package/dist/permisos/Autorizado.js +10 -0
- package/dist/permisos/Autorizado.js.map +1 -0
- package/dist/permisos/AvisoSinPermiso.cjs +2 -0
- package/dist/permisos/AvisoSinPermiso.cjs.map +1 -0
- package/dist/permisos/AvisoSinPermiso.js +14 -0
- package/dist/permisos/AvisoSinPermiso.js.map +1 -0
- package/dist/permisos/ModuloPermisos.cjs +2 -0
- package/dist/permisos/ModuloPermisos.cjs.map +1 -0
- package/dist/permisos/ModuloPermisos.js +7 -0
- package/dist/permisos/ModuloPermisos.js.map +1 -0
- package/dist/permisos/Permisos.module.css.cjs +2 -0
- package/dist/permisos/Permisos.module.css.cjs.map +1 -0
- package/dist/permisos/Permisos.module.css.js +20 -0
- package/dist/permisos/Permisos.module.css.js.map +1 -0
- package/dist/permisos/acciones.cjs +2 -0
- package/dist/permisos/acciones.cjs.map +1 -0
- package/dist/permisos/acciones.js +17 -0
- package/dist/permisos/acciones.js.map +1 -0
- package/dist/permisos/almacen.cjs +2 -0
- package/dist/permisos/almacen.cjs.map +1 -0
- package/dist/permisos/almacen.js +50 -0
- package/dist/permisos/almacen.js.map +1 -0
- package/dist/permisos/baseDatos.cjs +2 -0
- package/dist/permisos/baseDatos.cjs.map +1 -0
- package/dist/permisos/baseDatos.js +14 -0
- package/dist/permisos/baseDatos.js.map +1 -0
- package/dist/permisos/constantes.cjs +2 -0
- package/dist/permisos/constantes.cjs.map +1 -0
- package/dist/permisos/constantes.js +13 -0
- package/dist/permisos/constantes.js.map +1 -0
- package/dist/permisos/contexto.cjs +2 -0
- package/dist/permisos/contexto.cjs.map +1 -0
- package/dist/permisos/contexto.js +6 -0
- package/dist/permisos/contexto.js.map +1 -0
- package/dist/permisos/funciones.cjs +2 -0
- package/dist/permisos/funciones.cjs.map +1 -0
- package/dist/permisos/funciones.js +51 -0
- package/dist/permisos/funciones.js.map +1 -0
- package/dist/permisos/hooks/useControlPermiso.cjs +2 -0
- package/dist/permisos/hooks/useControlPermiso.cjs.map +1 -0
- package/dist/permisos/hooks/useControlPermiso.js +18 -0
- package/dist/permisos/hooks/useControlPermiso.js.map +1 -0
- package/dist/permisos/hooks/useFaseCandado.cjs +2 -0
- package/dist/permisos/hooks/useFaseCandado.cjs.map +1 -0
- package/dist/permisos/hooks/useFaseCandado.js +20 -0
- package/dist/permisos/hooks/useFaseCandado.js.map +1 -0
- package/dist/permisos/hooks/useFiltrarPorPermiso.cjs +2 -0
- package/dist/permisos/hooks/useFiltrarPorPermiso.cjs.map +1 -0
- package/dist/permisos/hooks/useFiltrarPorPermiso.js +11 -0
- package/dist/permisos/hooks/useFiltrarPorPermiso.js.map +1 -0
- package/dist/permisos/hooks/usePermiso.cjs +2 -0
- package/dist/permisos/hooks/usePermiso.cjs.map +1 -0
- package/dist/permisos/hooks/usePermiso.js +28 -0
- package/dist/permisos/hooks/usePermiso.js.map +1 -0
- package/dist/permisos/secciones/CandadoPermiso.cjs +2 -0
- package/dist/permisos/secciones/CandadoPermiso.cjs.map +1 -0
- package/dist/permisos/secciones/CandadoPermiso.js +56 -0
- package/dist/permisos/secciones/CandadoPermiso.js.map +1 -0
- package/dist/permisos/secciones/CandadoSegunEstado.cjs +2 -0
- package/dist/permisos/secciones/CandadoSegunEstado.cjs.map +1 -0
- package/dist/permisos/secciones/CandadoSegunEstado.js +11 -0
- package/dist/permisos/secciones/CandadoSegunEstado.js.map +1 -0
- package/dist/radio/Radio.cjs +1 -1
- package/dist/radio/Radio.cjs.map +1 -1
- package/dist/radio/Radio.js +35 -31
- package/dist/radio/Radio.js.map +1 -1
- package/dist/radio/RadioContext.js +2 -2
- package/dist/radio/RadioGroup.cjs +1 -1
- package/dist/radio/RadioGroup.cjs.map +1 -1
- package/dist/radio/RadioGroup.js +90 -77
- package/dist/radio/RadioGroup.js.map +1 -1
- package/dist/select/Select.cjs.map +1 -1
- package/dist/select/Select.js.map +1 -1
- package/dist/select/Select.module.css.cjs +1 -1
- package/dist/select/Select.module.css.js +84 -82
- package/dist/select/Select.module.css.js.map +1 -1
- package/dist/select/SelectBase.cjs +1 -1
- package/dist/select/SelectBase.cjs.map +1 -1
- package/dist/select/SelectBase.js +341 -320
- package/dist/select/SelectBase.js.map +1 -1
- package/dist/select/SelectNativo.cjs +1 -1
- package/dist/select/SelectNativo.cjs.map +1 -1
- package/dist/select/SelectNativo.js +31 -27
- package/dist/select/SelectNativo.js.map +1 -1
- package/dist/select/funciones.cjs +1 -1
- package/dist/select/funciones.cjs.map +1 -1
- package/dist/select/funciones.js +14 -14
- package/dist/select/funciones.js.map +1 -1
- package/dist/select/hooks/useOpcionesSelect.cjs +1 -1
- package/dist/select/hooks/useOpcionesSelect.cjs.map +1 -1
- package/dist/select/hooks/useOpcionesSelect.js +13 -12
- package/dist/select/hooks/useOpcionesSelect.js.map +1 -1
- package/dist/select/hooks/useSelectSeleccion.cjs +1 -1
- package/dist/select/hooks/useSelectSeleccion.cjs.map +1 -1
- package/dist/select/hooks/useSelectSeleccion.js +47 -46
- package/dist/select/hooks/useSelectSeleccion.js.map +1 -1
- package/dist/signature/Iconografia.cjs +1 -1
- package/dist/signature/Iconografia.cjs.map +1 -1
- package/dist/signature/Iconografia.js +30 -65
- package/dist/signature/Iconografia.js.map +1 -1
- package/dist/signature/Signature.cjs +1 -1
- package/dist/signature/Signature.cjs.map +1 -1
- package/dist/signature/Signature.js +222 -225
- package/dist/signature/Signature.js.map +1 -1
- package/dist/signature/Signature.module.css.cjs +1 -1
- package/dist/signature/Signature.module.css.js +36 -34
- package/dist/signature/Signature.module.css.js.map +1 -1
- package/dist/slider/Slider.cjs +1 -1
- package/dist/slider/Slider.cjs.map +1 -1
- package/dist/slider/Slider.js +161 -156
- package/dist/slider/Slider.js.map +1 -1
- package/dist/slider/Slider.module.css.cjs +1 -1
- package/dist/slider/Slider.module.css.js +46 -44
- package/dist/slider/Slider.module.css.js.map +1 -1
- package/dist/slider/hooks/useSlider.cjs +1 -1
- package/dist/slider/hooks/useSlider.cjs.map +1 -1
- package/dist/slider/hooks/useSlider.js +142 -138
- package/dist/slider/hooks/useSlider.js.map +1 -1
- package/dist/tabla_datos/TablaDatos.cjs +1 -1
- package/dist/tabla_datos/TablaDatos.cjs.map +1 -1
- package/dist/tabla_datos/TablaDatos.js +53 -30
- package/dist/tabla_datos/TablaDatos.js.map +1 -1
- package/dist/tabla_datos/components/tabla/BarraHerramientas.cjs +1 -1
- package/dist/tabla_datos/components/tabla/BarraHerramientas.cjs.map +1 -1
- package/dist/tabla_datos/components/tabla/BarraHerramientas.js +66 -63
- package/dist/tabla_datos/components/tabla/BarraHerramientas.js.map +1 -1
- package/dist/tabla_datos/components/tabla/CeldaAcciones.cjs +1 -1
- package/dist/tabla_datos/components/tabla/CeldaAcciones.cjs.map +1 -1
- package/dist/tabla_datos/components/tabla/CeldaAcciones.js +19 -19
- package/dist/tabla_datos/components/tabla/CeldaAcciones.js.map +1 -1
- package/dist/tabla_datos/components/tabla/PanelVacio.cjs +2 -0
- package/dist/tabla_datos/components/tabla/PanelVacio.cjs.map +1 -0
- package/dist/tabla_datos/components/tabla/PanelVacio.js +20 -0
- package/dist/tabla_datos/components/tabla/PanelVacio.js.map +1 -0
- package/dist/tabla_datos/components/tabla/SinDatos.cjs +1 -1
- package/dist/tabla_datos/components/tabla/SinDatos.cjs.map +1 -1
- package/dist/tabla_datos/components/tabla/SinDatos.js +21 -34
- package/dist/tabla_datos/components/tabla/SinDatos.js.map +1 -1
- package/dist/tabla_datos/components/tabla/SinPermiso.cjs +2 -0
- package/dist/tabla_datos/components/tabla/SinPermiso.cjs.map +1 -0
- package/dist/tabla_datos/components/tabla/SinPermiso.js +19 -0
- package/dist/tabla_datos/components/tabla/SinPermiso.js.map +1 -0
- package/dist/tabla_datos/constantes/ConstGenerales.cjs +1 -1
- package/dist/tabla_datos/constantes/ConstGenerales.cjs.map +1 -1
- package/dist/tabla_datos/constantes/ConstGenerales.js +11 -9
- package/dist/tabla_datos/constantes/ConstGenerales.js.map +1 -1
- package/dist/tabla_datos/styles/EstTablaDatos.module.css.cjs +1 -1
- package/dist/tabla_datos/styles/EstTablaDatos.module.css.js +32 -36
- package/dist/tabla_datos/styles/EstTablaDatos.module.css.js.map +1 -1
- package/dist/tabla_datos/styles/SinDatos.module.css.cjs +1 -1
- package/dist/tabla_datos/styles/SinDatos.module.css.js +14 -12
- package/dist/tabla_datos/styles/SinDatos.module.css.js.map +1 -1
- package/dist/tabs/ContenidoTab.cjs.map +1 -1
- package/dist/tabs/ContenidoTab.js.map +1 -1
- package/dist/tabs/MenuMas.cjs +1 -1
- package/dist/tabs/MenuMas.cjs.map +1 -1
- package/dist/tabs/MenuMas.js +82 -75
- package/dist/tabs/MenuMas.js.map +1 -1
- package/dist/tabs/Tabs.cjs +1 -1
- package/dist/tabs/Tabs.cjs.map +1 -1
- package/dist/tabs/Tabs.js +224 -209
- package/dist/tabs/Tabs.js.map +1 -1
- package/dist/tabs/Tabs.module.css.cjs +1 -1
- package/dist/tabs/Tabs.module.css.js +28 -26
- package/dist/tabs/Tabs.module.css.js.map +1 -1
- package/dist/tabs/hooks/useHoverTab.cjs.map +1 -1
- package/dist/tabs/hooks/useHoverTab.js.map +1 -1
- package/dist/tabs/hooks/useIndicador.cjs.map +1 -1
- package/dist/tabs/hooks/useIndicador.js.map +1 -1
- package/dist/tabs/hooks/useOverflowLista.cjs.map +1 -1
- package/dist/tabs/hooks/useOverflowLista.js.map +1 -1
- package/dist/tabs/utils.cjs.map +1 -1
- package/dist/tabs/utils.js.map +1 -1
- package/dist/text_area/TextArea.cjs +1 -1
- package/dist/text_area/TextArea.cjs.map +1 -1
- package/dist/text_area/TextArea.js +166 -151
- package/dist/text_area/TextArea.js.map +1 -1
- package/dist/text_area/TextArea.module.css.cjs +1 -1
- package/dist/text_area/TextArea.module.css.js +20 -18
- package/dist/text_area/TextArea.module.css.js.map +1 -1
- package/dist/toggle/Toggle.cjs +1 -1
- package/dist/toggle/Toggle.cjs.map +1 -1
- package/dist/toggle/Toggle.js +65 -79
- package/dist/toggle/Toggle.js.map +1 -1
- package/dist/toggle/Toggle.module.css.cjs +1 -1
- package/dist/toggle/Toggle.module.css.js +46 -44
- package/dist/toggle/Toggle.module.css.js.map +1 -1
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,11 @@ import { UIEventHandler } from 'react';
|
|
|
40
40
|
import { useSonner } from 'sonner';
|
|
41
41
|
import { WheelEventHandler } from 'react';
|
|
42
42
|
|
|
43
|
-
declare type
|
|
43
|
+
declare type AccesosPorModulo = Record<string, readonly string[]>;
|
|
44
|
+
|
|
45
|
+
declare type AccionDe<P extends string> = P extends `${string}:${infer Accion}` ? Accion : never;
|
|
46
|
+
|
|
47
|
+
declare type AccionFila<TData> = PermisoProps & {
|
|
44
48
|
/** Identificador único de la acción */
|
|
45
49
|
id: string;
|
|
46
50
|
/**
|
|
@@ -53,6 +57,8 @@ declare type AccionFila<TData> = {
|
|
|
53
57
|
|
|
54
58
|
export { Action }
|
|
55
59
|
|
|
60
|
+
export declare const actualizarPermisos: (cambios: CambiosPermisos) => Promise<void>;
|
|
61
|
+
|
|
56
62
|
declare type ActualizarTablaConfig = {
|
|
57
63
|
cargando: boolean;
|
|
58
64
|
onClick: () => void;
|
|
@@ -163,9 +169,9 @@ export declare type AudioPlayerProps = {
|
|
|
163
169
|
* />
|
|
164
170
|
* ```
|
|
165
171
|
*/
|
|
166
|
-
export declare function AudioRecorder({ headerLabel, title, subtitle, meta, storagePath, firebaseStorage, fileNameBuilder, maxDurationSec, requireConsent, consentText, onRecordingComplete, onUploadComplete, onUploadError, onDeleted, onPermissionError, onClose, className, id, 'data-testid': dataTestId, }: AudioRecorderProps): JSX.Element;
|
|
172
|
+
export declare function AudioRecorder({ headerLabel, title, subtitle, meta, storagePath, firebaseStorage, fileNameBuilder, maxDurationSec, requireConsent, consentText, onRecordingComplete, onUploadComplete, onUploadError, onDeleted, onPermissionError, onClose, className, permiso, id, 'data-testid': dataTestId, }: AudioRecorderProps): JSX.Element;
|
|
167
173
|
|
|
168
|
-
export declare type AudioRecorderProps = {
|
|
174
|
+
export declare type AudioRecorderProps = PermisoProps & {
|
|
169
175
|
/** Etiqueta de la barra superior de la tarjeta @default 'Grabadora' */
|
|
170
176
|
headerLabel?: string;
|
|
171
177
|
/** Título principal (ej. nombre del registro que se está grabando) */
|
|
@@ -232,6 +238,23 @@ export declare type AudioSubido = {
|
|
|
232
238
|
duracionSeg: number;
|
|
233
239
|
};
|
|
234
240
|
|
|
241
|
+
export declare const Autorizado: ({ permiso, alternativa, children }: AutorizadoProps) => JSX.Element | null;
|
|
242
|
+
|
|
243
|
+
declare type AutorizadoProps = PermisoProps & {
|
|
244
|
+
/** Lo que se muestra con permiso. */
|
|
245
|
+
children: ReactNode;
|
|
246
|
+
/** Lo que se muestra sin permiso, por ejemplo `<AvisoSinPermiso />`. Por defecto, nada. */
|
|
247
|
+
alternativa?: ReactNode;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export declare const AvisoSinPermiso: ({ children, className }: AvisoSinPermisoProps) => JSX.Element;
|
|
251
|
+
|
|
252
|
+
declare type AvisoSinPermisoProps = {
|
|
253
|
+
/** Texto del aviso. Por defecto, "No tienes permiso para usar esto". */
|
|
254
|
+
children?: ReactNode;
|
|
255
|
+
className?: string;
|
|
256
|
+
};
|
|
257
|
+
|
|
235
258
|
export declare const Badge: default_2.ForwardRefExoticComponent<{
|
|
236
259
|
variant?: BadgeVariant;
|
|
237
260
|
color?: BadgeColor;
|
|
@@ -254,7 +277,7 @@ export declare const Badge: default_2.ForwardRefExoticComponent<{
|
|
|
254
277
|
className?: string;
|
|
255
278
|
onClick?: () => void;
|
|
256
279
|
'data-testid'?: string;
|
|
257
|
-
} & Omit<default_2.HTMLAttributes<HTMLSpanElement>, "
|
|
280
|
+
} & Omit<default_2.HTMLAttributes<HTMLSpanElement>, "children" | "color" | "onClick"> & default_2.RefAttributes<HTMLSpanElement>>;
|
|
258
281
|
|
|
259
282
|
export declare type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'brand';
|
|
260
283
|
|
|
@@ -408,17 +431,13 @@ export declare type BotonProps = {
|
|
|
408
431
|
spinnerPlacement?: 'start' | 'end';
|
|
409
432
|
/** Sonido al presionar: `false` lo silencia y un perfil (`'soft'`, `'glass'`, `'wood'`…) elige cómo suena. @default true */
|
|
410
433
|
sound?: SoundProp;
|
|
411
|
-
/** Lista de permisos del usuario actual */
|
|
412
|
-
permisos?: string[];
|
|
413
|
-
/** Permiso requerido para habilitar este botón */
|
|
414
|
-
permiso?: string;
|
|
415
434
|
/** Si se define, el botón se renderiza como `<a>` (enlace con apariencia de botón) */
|
|
416
435
|
href?: string;
|
|
417
436
|
/** Target del enlace, solo aplica si `href` está definido */
|
|
418
437
|
target?: string;
|
|
419
438
|
/** Rel del enlace, solo aplica si `href` está definido. Se autocompleta con "noopener noreferrer" si `target="_blank"` */
|
|
420
439
|
rel?: string;
|
|
421
|
-
} & Omit<ComponentPropsWithRef<'button'>, 'href'>;
|
|
440
|
+
} & PermisoProps & Omit<ComponentPropsWithRef<'button'>, 'href'>;
|
|
422
441
|
|
|
423
442
|
export declare type BuscadorClassNames = {
|
|
424
443
|
base?: string;
|
|
@@ -658,6 +677,12 @@ export declare type BuscadorSize = 'sm' | 'md' | 'lg';
|
|
|
658
677
|
/** `filled` (gris), `bordered` (borde) o `underlined` (solo línea inferior). */
|
|
659
678
|
export declare type BuscadorVariante = 'filled' | 'bordered' | 'underlined';
|
|
660
679
|
|
|
680
|
+
declare type CambiosPermisos = {
|
|
681
|
+
agregados?: AccesosPorModulo;
|
|
682
|
+
quitados?: AccesosPorModulo;
|
|
683
|
+
modulosQuitados?: readonly string[];
|
|
684
|
+
};
|
|
685
|
+
|
|
661
686
|
/**
|
|
662
687
|
* Definición de una columna. Mapped type distributivo para que `transformar`
|
|
663
688
|
* quede correlacionado con el tipo real de `campo` en `TRow`.
|
|
@@ -712,7 +737,7 @@ export declare const Checkbox: default_2.ForwardRefExoticComponent<{
|
|
|
712
737
|
classNames?: CheckboxClassNames;
|
|
713
738
|
value?: string;
|
|
714
739
|
name?: string;
|
|
715
|
-
} & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
740
|
+
} & PermisoProps & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
716
741
|
|
|
717
742
|
declare type CheckboxClassNames = {
|
|
718
743
|
base?: string;
|
|
@@ -724,7 +749,7 @@ declare type CheckboxClassNames = {
|
|
|
724
749
|
export declare type CheckboxColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
725
750
|
|
|
726
751
|
export declare const CheckboxGroup: {
|
|
727
|
-
<T extends CheckboxOptionBase>({ label, children, description, errorMessage, isInvalid, orientation, className, value: controlledValue, defaultValue, onChange, isDisabled, isReadOnly, isRequired, minSelection, maxSelection, requiredMessage, name, options, optionValueKey, optionLabelKey, optionDisabledKey, optionDescriptionKey, columns, id, "data-testid": dataTestId, }: CheckboxGroupProps<T>): JSX.Element;
|
|
752
|
+
<T extends CheckboxOptionBase>({ label, children, description, errorMessage, isInvalid, orientation, className, value: controlledValue, defaultValue, onChange, isDisabled: isDisabledProp, isReadOnly, isRequired, minSelection, maxSelection, requiredMessage, name, options, optionValueKey, optionLabelKey, optionDisabledKey, optionDescriptionKey, columns, id, "data-testid": dataTestId, permiso, }: CheckboxGroupProps<T>): JSX.Element;
|
|
728
753
|
displayName: string;
|
|
729
754
|
};
|
|
730
755
|
|
|
@@ -732,7 +757,7 @@ export declare const CheckboxGroup: {
|
|
|
732
757
|
* Props del componente CheckboxGroup con soporte genérico.
|
|
733
758
|
* @template T - Tipo de las opciones (string, number u objeto)
|
|
734
759
|
*/
|
|
735
|
-
export declare type CheckboxGroupProps<T extends CheckboxOptionBase = string> = {
|
|
760
|
+
export declare type CheckboxGroupProps<T extends CheckboxOptionBase = string> = PermisoProps & {
|
|
736
761
|
/** Label del grupo */
|
|
737
762
|
label?: ReactNode;
|
|
738
763
|
/** Children (Checkbox individuales). Si se pasa `options`, children se ignora */
|
|
@@ -838,7 +863,7 @@ export declare type CheckboxProps = {
|
|
|
838
863
|
classNames?: CheckboxClassNames;
|
|
839
864
|
value?: string;
|
|
840
865
|
name?: string;
|
|
841
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
|
|
866
|
+
} & PermisoProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
|
|
842
867
|
|
|
843
868
|
export declare type CheckboxRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
844
869
|
|
|
@@ -900,7 +925,7 @@ export declare type ContextMenuProps = Omit<DropdownMenuProps, 'triggerAction' |
|
|
|
900
925
|
isEnabled?: boolean;
|
|
901
926
|
};
|
|
902
927
|
|
|
903
|
-
declare type Control<TData> = {
|
|
928
|
+
declare type Control<TData> = PermisoProps & {
|
|
904
929
|
id: string;
|
|
905
930
|
nombre: string;
|
|
906
931
|
icono: JSX.Element;
|
|
@@ -910,7 +935,17 @@ declare type Control<TData> = {
|
|
|
910
935
|
|
|
911
936
|
declare type ControlAccionesType<TData> = Control<TData> | ControlPersonalizado<TData>;
|
|
912
937
|
|
|
913
|
-
declare type
|
|
938
|
+
declare type ControlPermiso = {
|
|
939
|
+
estado: EstadoPermiso;
|
|
940
|
+
/** El control no se puede usar: falta el permiso o todavía no se sabe. */
|
|
941
|
+
bloqueado: boolean;
|
|
942
|
+
/** El candado está a la vista: el control esconde sus iconos propios para que no compitan con él. */
|
|
943
|
+
conCandado: boolean;
|
|
944
|
+
/** Nodo del candado, listo para pintar donde el control quiera. */
|
|
945
|
+
candado: ReactNode;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
declare type ControlPersonalizado<TData> = PermisoProps & {
|
|
914
949
|
id: string;
|
|
915
950
|
nombre: string;
|
|
916
951
|
contenido: (data: TData, className?: string) => React.ReactNode;
|
|
@@ -1162,7 +1197,39 @@ declare type DrawerSnapProps = {
|
|
|
1162
1197
|
*/
|
|
1163
1198
|
export declare type DrawerVariant = 'default' | 'floating';
|
|
1164
1199
|
|
|
1165
|
-
export declare const DropdownMenu: ForwardRefExoticComponent<
|
|
1200
|
+
export declare const DropdownMenu: ForwardRefExoticComponent<PermisoProps & {
|
|
1201
|
+
items: DropdownMenuItem[];
|
|
1202
|
+
children: ReactElement;
|
|
1203
|
+
variant?: DropdownMenuVariant;
|
|
1204
|
+
size?: DropdownMenuSize;
|
|
1205
|
+
placement?: Placement;
|
|
1206
|
+
offset?: number;
|
|
1207
|
+
triggerAction?: DropdownTriggerAction;
|
|
1208
|
+
closeOnSelect?: boolean;
|
|
1209
|
+
closeOnClickOutside?: boolean;
|
|
1210
|
+
closeOnEscape?: boolean;
|
|
1211
|
+
radioValue?: string;
|
|
1212
|
+
onRadioChange?: (value: string) => void;
|
|
1213
|
+
isOpen?: boolean;
|
|
1214
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
1215
|
+
onOpen?: () => void;
|
|
1216
|
+
onClose?: () => void;
|
|
1217
|
+
onContextMenu?: (event: React.MouseEvent, position: {
|
|
1218
|
+
x: number;
|
|
1219
|
+
y: number;
|
|
1220
|
+
}) => void;
|
|
1221
|
+
minWidth?: number | string;
|
|
1222
|
+
maxWidth?: number | string;
|
|
1223
|
+
matchTriggerWidth?: boolean;
|
|
1224
|
+
disableAnimation?: boolean;
|
|
1225
|
+
isDisabled?: boolean;
|
|
1226
|
+
className?: string;
|
|
1227
|
+
classNames?: DropdownMenuClassNames;
|
|
1228
|
+
style?: React.CSSProperties;
|
|
1229
|
+
zIndex?: number | string;
|
|
1230
|
+
portalContainer?: HTMLElement | null;
|
|
1231
|
+
'data-testid'?: string;
|
|
1232
|
+
} & RefAttributes<DropdownMenuRef>>;
|
|
1166
1233
|
|
|
1167
1234
|
/** Item tipo checkbox con estado checked */
|
|
1168
1235
|
export declare type DropdownMenuCheckboxItem = ItemCommonProps & {
|
|
@@ -1205,7 +1272,7 @@ export declare type DropdownMenuLabel = {
|
|
|
1205
1272
|
* Props del componente DropdownMenu.
|
|
1206
1273
|
* Menú desplegable con soporte para submenús, checkboxes, radios y navegación por teclado.
|
|
1207
1274
|
*/
|
|
1208
|
-
export declare type DropdownMenuProps = {
|
|
1275
|
+
export declare type DropdownMenuProps = PermisoProps & {
|
|
1209
1276
|
/** Array de items a renderizar en el menú */
|
|
1210
1277
|
items: DropdownMenuItem[];
|
|
1211
1278
|
/** Elemento trigger que abre el menú (debe aceptar ref) */
|
|
@@ -1368,6 +1435,8 @@ export declare function esNumero(mensaje?: string): ValidadorCampo;
|
|
|
1368
1435
|
/** Estado interno de la grabadora de audio */
|
|
1369
1436
|
export declare type EstadoGrabadora = 'idle' | 'grabando' | 'pausado' | 'revision' | 'error';
|
|
1370
1437
|
|
|
1438
|
+
export declare type EstadoPermiso = 'libre' | 'cargando' | 'permitido' | 'denegado';
|
|
1439
|
+
|
|
1371
1440
|
/**
|
|
1372
1441
|
* Modal de importación de Excel/CSV en tres pasos: subir → validar → revisar.
|
|
1373
1442
|
*
|
|
@@ -1391,9 +1460,9 @@ export declare type EstadoGrabadora = 'idle' | 'grabando' | 'pausado' | 'revisio
|
|
|
1391
1460
|
* />
|
|
1392
1461
|
* ```
|
|
1393
1462
|
*/
|
|
1394
|
-
export declare function ExcelImport<TRow extends Record<string, unknown>>({ campos, onImportar, onClose, title, subtitle, plantillaUrl, plantillaFilename, generarPlantilla, onGenerarPlantilla, subirArchivo, filasOmitir, nombreHoja, identificadores, maxFilas, maxTamanoMB, filtroNombre, confirmacion, permitirColumnasExtra, exigirOrdenEncabezados, clavesUnicas, registroExiste, mensajeRegistroExistente, onEncabezadosInvalidos, id, 'data-testid': dataTestId, }: ExcelImportProps<TRow>): JSX.Element;
|
|
1463
|
+
export declare function ExcelImport<TRow extends Record<string, unknown>>({ campos, onImportar, onClose, title, subtitle, plantillaUrl, plantillaFilename, generarPlantilla, onGenerarPlantilla, subirArchivo, filasOmitir, nombreHoja, identificadores, maxFilas, maxTamanoMB, filtroNombre, confirmacion, permitirColumnasExtra, exigirOrdenEncabezados, clavesUnicas, registroExiste, mensajeRegistroExistente, onEncabezadosInvalidos, permiso, id, 'data-testid': dataTestId, }: ExcelImportProps<TRow>): JSX.Element;
|
|
1395
1464
|
|
|
1396
|
-
export declare type ExcelImportProps<TRow extends Record<string, unknown>> = {
|
|
1465
|
+
export declare type ExcelImportProps<TRow extends Record<string, unknown>> = PermisoProps & {
|
|
1397
1466
|
campos: CampoImport<TRow>[];
|
|
1398
1467
|
/** Filas válidas y archivo original al confirmar */
|
|
1399
1468
|
onImportar: (filas: TRow[], archivo: File) => void;
|
|
@@ -1548,9 +1617,9 @@ export declare type FileKind = 'image' | 'pdf' | 'excel' | 'archive' | 'generic'
|
|
|
1548
1617
|
* así que puede agregar y quitar tranquilo antes de decidir. Si le pasas
|
|
1549
1618
|
* `confirmation`, además se le pide confirmar antes de tocar el servidor.
|
|
1550
1619
|
*/
|
|
1551
|
-
export declare function FileStage({ onClose, storagePath, onFilesChange, title, subtitle, savedFiles, fileNameBuilder, maxFiles, allowedTypes, maxSizeMB, confirmation, firebaseStorage, onUploadError, onUploadComplete, disableDeleteSaved, id, 'data-testid': dataTestId, }: FileStageProps): JSX.Element;
|
|
1620
|
+
export declare function FileStage({ onClose, storagePath, onFilesChange, title, subtitle, savedFiles, fileNameBuilder, maxFiles, allowedTypes, maxSizeMB, confirmation, firebaseStorage, onUploadError, onUploadComplete, disableDeleteSaved, disableView, permiso, id, 'data-testid': dataTestId, }: FileStageProps): JSX.Element;
|
|
1552
1621
|
|
|
1553
|
-
export declare type FileStageProps = {
|
|
1622
|
+
export declare type FileStageProps = PermisoProps & {
|
|
1554
1623
|
/** Callback que se llama cuando el modal debe cerrarse */
|
|
1555
1624
|
onClose: () => void;
|
|
1556
1625
|
/** Ruta base en Firebase Storage donde se guardarán los archivos */
|
|
@@ -1585,6 +1654,8 @@ export declare type FileStageProps = {
|
|
|
1585
1654
|
onUploadComplete?: (files: UploadedFile[]) => void;
|
|
1586
1655
|
/** Si es true, los archivos con estado "saved" no muestran el botón de eliminar */
|
|
1587
1656
|
disableDeleteSaved?: boolean;
|
|
1657
|
+
/** Si es true, los archivos no muestran el botón para verlos */
|
|
1658
|
+
disableView?: boolean;
|
|
1588
1659
|
/**
|
|
1589
1660
|
* Id del contenedor con `role="dialog"`.
|
|
1590
1661
|
* Si se omite se genera con `useId()`.
|
|
@@ -1657,11 +1728,32 @@ export declare type Grabadora = {
|
|
|
1657
1728
|
*
|
|
1658
1729
|
* @param {GroupButtonProps} props - Propiedades del componente
|
|
1659
1730
|
*/
|
|
1660
|
-
export declare const GroupButton: ForwardRefExoticComponent<
|
|
1731
|
+
export declare const GroupButton: ForwardRefExoticComponent<PermisoProps & {
|
|
1732
|
+
label: ReactNode;
|
|
1733
|
+
onClick?: () => void;
|
|
1734
|
+
items: DropdownMenuItem[];
|
|
1735
|
+
variant?: GroupButtonVariant;
|
|
1736
|
+
color?: GroupButtonColor;
|
|
1737
|
+
size?: GroupButtonSize;
|
|
1738
|
+
radius?: GroupButtonRadius;
|
|
1739
|
+
isLoading?: boolean;
|
|
1740
|
+
isDisabled?: boolean;
|
|
1741
|
+
dropdownIcon?: ReactNode;
|
|
1742
|
+
className?: string;
|
|
1743
|
+
fullWidth?: boolean;
|
|
1744
|
+
href?: string;
|
|
1745
|
+
target?: string;
|
|
1746
|
+
rel?: string;
|
|
1747
|
+
isOpen?: boolean;
|
|
1748
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
1749
|
+
isDropdownLoading?: boolean;
|
|
1750
|
+
id?: string;
|
|
1751
|
+
'data-testid'?: string;
|
|
1752
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1661
1753
|
|
|
1662
1754
|
export declare type GroupButtonColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1663
1755
|
|
|
1664
|
-
export declare type GroupButtonProps = {
|
|
1756
|
+
export declare type GroupButtonProps = PermisoProps & {
|
|
1665
1757
|
/**
|
|
1666
1758
|
* Acción principal del botón (lado izquierdo)
|
|
1667
1759
|
*/
|
|
@@ -1756,6 +1848,8 @@ export declare type GroupButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
|
1756
1848
|
|
|
1757
1849
|
export declare type GroupButtonVariant = 'solid' | 'bordered' | 'ghost' | 'light-active' | 'faded' | 'shadow' | 'outline' | 'muted' | 'contrast';
|
|
1758
1850
|
|
|
1851
|
+
export declare const guardarPermisos: (accesos: AccesosPorModulo) => Promise<void>;
|
|
1852
|
+
|
|
1759
1853
|
export declare type InputColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
1760
1854
|
|
|
1761
1855
|
/**
|
|
@@ -1824,11 +1918,16 @@ clearButton?: string;
|
|
|
1824
1918
|
};
|
|
1825
1919
|
onChange?: (value: string) => void;
|
|
1826
1920
|
'data-testid'?: string;
|
|
1827
|
-
} & {
|
|
1921
|
+
} & PermisoProps & {
|
|
1922
|
+
name?: string | undefined | undefined;
|
|
1923
|
+
className?: string | undefined | undefined;
|
|
1828
1924
|
form?: string | undefined | undefined;
|
|
1925
|
+
list?: string | undefined | undefined;
|
|
1926
|
+
role?: AriaRole | undefined;
|
|
1927
|
+
title?: string | undefined | undefined;
|
|
1928
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1829
1929
|
slot?: string | undefined | undefined;
|
|
1830
1930
|
style?: CSSProperties | undefined;
|
|
1831
|
-
title?: string | undefined | undefined;
|
|
1832
1931
|
pattern?: string | undefined | undefined;
|
|
1833
1932
|
disabled?: boolean | undefined | undefined;
|
|
1834
1933
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
@@ -1836,15 +1935,13 @@ formEncType?: string | undefined | undefined;
|
|
|
1836
1935
|
formMethod?: string | undefined | undefined;
|
|
1837
1936
|
formNoValidate?: boolean | undefined | undefined;
|
|
1838
1937
|
formTarget?: string | undefined | undefined;
|
|
1839
|
-
name?: string | undefined | undefined;
|
|
1840
1938
|
defaultChecked?: boolean | undefined | undefined;
|
|
1841
1939
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
1842
1940
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
1843
1941
|
accessKey?: string | undefined | undefined;
|
|
1844
1942
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
1845
1943
|
autoFocus?: boolean | undefined | undefined;
|
|
1846
|
-
|
|
1847
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
1944
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
1848
1945
|
contextMenu?: string | undefined | undefined;
|
|
1849
1946
|
dir?: string | undefined | undefined;
|
|
1850
1947
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -1857,7 +1954,6 @@ spellCheck?: (boolean | "true" | "false") | undefined;
|
|
|
1857
1954
|
tabIndex?: number | undefined | undefined;
|
|
1858
1955
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1859
1956
|
radioGroup?: string | undefined | undefined;
|
|
1860
|
-
role?: AriaRole | undefined;
|
|
1861
1957
|
about?: string | undefined | undefined;
|
|
1862
1958
|
content?: string | undefined | undefined;
|
|
1863
1959
|
datatype?: string | undefined | undefined;
|
|
@@ -2096,7 +2192,6 @@ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
|
2096
2192
|
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
2097
2193
|
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2098
2194
|
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2099
|
-
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2100
2195
|
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2101
2196
|
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2102
2197
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
@@ -2111,16 +2206,14 @@ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
|
2111
2206
|
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2112
2207
|
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2113
2208
|
multiple?: boolean | undefined | undefined;
|
|
2114
|
-
list?: string | undefined | undefined;
|
|
2115
2209
|
step?: number | string | undefined | undefined;
|
|
2116
|
-
max?: number | string | undefined | undefined;
|
|
2117
|
-
height?: number | string | undefined | undefined;
|
|
2118
|
-
width?: number | string | undefined | undefined;
|
|
2119
2210
|
accept?: string | undefined | undefined;
|
|
2120
2211
|
alt?: string | undefined | undefined;
|
|
2121
2212
|
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
2122
2213
|
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
2123
2214
|
checked?: boolean | undefined | undefined;
|
|
2215
|
+
height?: number | string | undefined | undefined;
|
|
2216
|
+
max?: number | string | undefined | undefined;
|
|
2124
2217
|
maxLength?: number | undefined | undefined;
|
|
2125
2218
|
min?: number | string | undefined | undefined;
|
|
2126
2219
|
minLength?: number | undefined | undefined;
|
|
@@ -2128,12 +2221,9 @@ placeholder?: string | undefined | undefined;
|
|
|
2128
2221
|
readOnly?: boolean | undefined | undefined;
|
|
2129
2222
|
required?: boolean | undefined | undefined;
|
|
2130
2223
|
src?: string | undefined | undefined;
|
|
2224
|
+
width?: number | string | undefined | undefined;
|
|
2131
2225
|
} & RefAttributes<HTMLInputElement>>;
|
|
2132
2226
|
|
|
2133
|
-
/**
|
|
2134
|
-
* Props del componente InputDate
|
|
2135
|
-
* @description Input de fecha/hora usando el selector nativo del navegador
|
|
2136
|
-
*/
|
|
2137
2227
|
export declare type InputDateProps = {
|
|
2138
2228
|
/** Tipo de input de fecha/hora */
|
|
2139
2229
|
type?: 'date' | 'time' | 'datetime-local' | 'week' | 'month';
|
|
@@ -2200,7 +2290,7 @@ export declare type InputDateProps = {
|
|
|
2200
2290
|
onChange?: (value: string) => void;
|
|
2201
2291
|
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
2202
2292
|
'data-testid'?: string;
|
|
2203
|
-
} & NativeInputProps_3;
|
|
2293
|
+
} & PermisoProps & NativeInputProps_3;
|
|
2204
2294
|
|
|
2205
2295
|
export declare const InputNumeric: ForwardRefExoticComponent< {
|
|
2206
2296
|
variant?: InputVariant;
|
|
@@ -2252,11 +2342,16 @@ errorMessage?: string;
|
|
|
2252
2342
|
onChange?: (value: number | undefined) => void;
|
|
2253
2343
|
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
2254
2344
|
'data-testid'?: string;
|
|
2255
|
-
} & {
|
|
2345
|
+
} & PermisoProps & {
|
|
2346
|
+
name?: string | undefined | undefined;
|
|
2347
|
+
className?: string | undefined | undefined;
|
|
2256
2348
|
form?: string | undefined | undefined;
|
|
2349
|
+
list?: string | undefined | undefined;
|
|
2350
|
+
role?: AriaRole | undefined;
|
|
2351
|
+
title?: string | undefined | undefined;
|
|
2352
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2257
2353
|
slot?: string | undefined | undefined;
|
|
2258
2354
|
style?: CSSProperties | undefined;
|
|
2259
|
-
title?: string | undefined | undefined;
|
|
2260
2355
|
pattern?: string | undefined | undefined;
|
|
2261
2356
|
disabled?: boolean | undefined | undefined;
|
|
2262
2357
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
@@ -2264,15 +2359,13 @@ formEncType?: string | undefined | undefined;
|
|
|
2264
2359
|
formMethod?: string | undefined | undefined;
|
|
2265
2360
|
formNoValidate?: boolean | undefined | undefined;
|
|
2266
2361
|
formTarget?: string | undefined | undefined;
|
|
2267
|
-
name?: string | undefined | undefined;
|
|
2268
2362
|
defaultChecked?: boolean | undefined | undefined;
|
|
2269
2363
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
2270
2364
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
2271
2365
|
accessKey?: string | undefined | undefined;
|
|
2272
2366
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
2273
2367
|
autoFocus?: boolean | undefined | undefined;
|
|
2274
|
-
|
|
2275
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
2368
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
2276
2369
|
contextMenu?: string | undefined | undefined;
|
|
2277
2370
|
dir?: string | undefined | undefined;
|
|
2278
2371
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2285,7 +2378,6 @@ spellCheck?: (boolean | "true" | "false") | undefined;
|
|
|
2285
2378
|
tabIndex?: number | undefined | undefined;
|
|
2286
2379
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2287
2380
|
radioGroup?: string | undefined | undefined;
|
|
2288
|
-
role?: AriaRole | undefined;
|
|
2289
2381
|
about?: string | undefined | undefined;
|
|
2290
2382
|
content?: string | undefined | undefined;
|
|
2291
2383
|
datatype?: string | undefined | undefined;
|
|
@@ -2524,7 +2616,6 @@ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
|
2524
2616
|
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
2525
2617
|
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2526
2618
|
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2527
|
-
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2528
2619
|
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2529
2620
|
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2530
2621
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
@@ -2539,20 +2630,19 @@ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
|
2539
2630
|
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2540
2631
|
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2541
2632
|
multiple?: boolean | undefined | undefined;
|
|
2542
|
-
list?: string | undefined | undefined;
|
|
2543
|
-
height?: number | string | undefined | undefined;
|
|
2544
|
-
width?: number | string | undefined | undefined;
|
|
2545
2633
|
accept?: string | undefined | undefined;
|
|
2546
2634
|
alt?: string | undefined | undefined;
|
|
2547
2635
|
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
2548
2636
|
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
2549
2637
|
checked?: boolean | undefined | undefined;
|
|
2638
|
+
height?: number | string | undefined | undefined;
|
|
2550
2639
|
maxLength?: number | undefined | undefined;
|
|
2551
2640
|
minLength?: number | undefined | undefined;
|
|
2552
2641
|
placeholder?: string | undefined | undefined;
|
|
2553
2642
|
readOnly?: boolean | undefined | undefined;
|
|
2554
2643
|
required?: boolean | undefined | undefined;
|
|
2555
2644
|
src?: string | undefined | undefined;
|
|
2645
|
+
width?: number | string | undefined | undefined;
|
|
2556
2646
|
} & RefAttributes<HTMLInputElement>>;
|
|
2557
2647
|
|
|
2558
2648
|
/**
|
|
@@ -2652,7 +2742,7 @@ export declare type InputNumericProps = {
|
|
|
2652
2742
|
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
2653
2743
|
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
2654
2744
|
'data-testid'?: string;
|
|
2655
|
-
} & NativeInputProps_2;
|
|
2745
|
+
} & PermisoProps & NativeInputProps_2;
|
|
2656
2746
|
|
|
2657
2747
|
export declare type InputRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
2658
2748
|
|
|
@@ -2697,11 +2787,16 @@ onChange?: (value: string) => void;
|
|
|
2697
2787
|
onClear?: () => void;
|
|
2698
2788
|
onValueChange?: (value: string) => void;
|
|
2699
2789
|
'data-testid'?: string;
|
|
2700
|
-
} & {
|
|
2790
|
+
} & PermisoProps & {
|
|
2791
|
+
name?: string | undefined | undefined;
|
|
2792
|
+
className?: string | undefined | undefined;
|
|
2701
2793
|
form?: string | undefined | undefined;
|
|
2794
|
+
list?: string | undefined | undefined;
|
|
2795
|
+
role?: AriaRole | undefined;
|
|
2796
|
+
title?: string | undefined | undefined;
|
|
2797
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2702
2798
|
slot?: string | undefined | undefined;
|
|
2703
2799
|
style?: CSSProperties | undefined;
|
|
2704
|
-
title?: string | undefined | undefined;
|
|
2705
2800
|
pattern?: string | undefined | undefined;
|
|
2706
2801
|
disabled?: boolean | undefined | undefined;
|
|
2707
2802
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
@@ -2709,7 +2804,6 @@ formEncType?: string | undefined | undefined;
|
|
|
2709
2804
|
formMethod?: string | undefined | undefined;
|
|
2710
2805
|
formNoValidate?: boolean | undefined | undefined;
|
|
2711
2806
|
formTarget?: string | undefined | undefined;
|
|
2712
|
-
name?: string | undefined | undefined;
|
|
2713
2807
|
value?: string | number | readonly string[] | undefined;
|
|
2714
2808
|
defaultChecked?: boolean | undefined | undefined;
|
|
2715
2809
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -2718,8 +2812,7 @@ suppressHydrationWarning?: boolean | undefined | undefined;
|
|
|
2718
2812
|
accessKey?: string | undefined | undefined;
|
|
2719
2813
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
2720
2814
|
autoFocus?: boolean | undefined | undefined;
|
|
2721
|
-
|
|
2722
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
2815
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
2723
2816
|
contextMenu?: string | undefined | undefined;
|
|
2724
2817
|
dir?: string | undefined | undefined;
|
|
2725
2818
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2732,7 +2825,6 @@ spellCheck?: (boolean | "true" | "false") | undefined;
|
|
|
2732
2825
|
tabIndex?: number | undefined | undefined;
|
|
2733
2826
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2734
2827
|
radioGroup?: string | undefined | undefined;
|
|
2735
|
-
role?: AriaRole | undefined;
|
|
2736
2828
|
about?: string | undefined | undefined;
|
|
2737
2829
|
content?: string | undefined | undefined;
|
|
2738
2830
|
datatype?: string | undefined | undefined;
|
|
@@ -2971,7 +3063,6 @@ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
|
2971
3063
|
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
2972
3064
|
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2973
3065
|
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2974
|
-
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2975
3066
|
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2976
3067
|
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
2977
3068
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
@@ -2986,16 +3077,14 @@ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
|
2986
3077
|
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2987
3078
|
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
2988
3079
|
multiple?: boolean | undefined | undefined;
|
|
2989
|
-
list?: string | undefined | undefined;
|
|
2990
3080
|
step?: number | string | undefined | undefined;
|
|
2991
|
-
max?: number | string | undefined | undefined;
|
|
2992
|
-
height?: number | string | undefined | undefined;
|
|
2993
|
-
width?: number | string | undefined | undefined;
|
|
2994
3081
|
accept?: string | undefined | undefined;
|
|
2995
3082
|
alt?: string | undefined | undefined;
|
|
2996
3083
|
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
2997
3084
|
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
2998
3085
|
checked?: boolean | undefined | undefined;
|
|
3086
|
+
height?: number | string | undefined | undefined;
|
|
3087
|
+
max?: number | string | undefined | undefined;
|
|
2999
3088
|
maxLength?: number | undefined | undefined;
|
|
3000
3089
|
min?: number | string | undefined | undefined;
|
|
3001
3090
|
minLength?: number | undefined | undefined;
|
|
@@ -3003,6 +3092,7 @@ placeholder?: string | undefined | undefined;
|
|
|
3003
3092
|
readOnly?: boolean | undefined | undefined;
|
|
3004
3093
|
required?: boolean | undefined | undefined;
|
|
3005
3094
|
src?: string | undefined | undefined;
|
|
3095
|
+
width?: number | string | undefined | undefined;
|
|
3006
3096
|
} & RefAttributes<HTMLInputElement>>;
|
|
3007
3097
|
|
|
3008
3098
|
/**
|
|
@@ -3077,7 +3167,7 @@ export declare type InputTextProps = {
|
|
|
3077
3167
|
onValueChange?: (value: string) => void;
|
|
3078
3168
|
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
3079
3169
|
'data-testid'?: string;
|
|
3080
|
-
} & NativeInputProps;
|
|
3170
|
+
} & PermisoProps & NativeInputProps;
|
|
3081
3171
|
|
|
3082
3172
|
/** Tipos de input de texto soportados */
|
|
3083
3173
|
export declare type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';
|
|
@@ -3099,7 +3189,7 @@ export declare type InternalFile = {
|
|
|
3099
3189
|
};
|
|
3100
3190
|
|
|
3101
3191
|
/** Props comunes para items del menú */
|
|
3102
|
-
declare type ItemCommonProps = {
|
|
3192
|
+
declare type ItemCommonProps = PermisoProps & {
|
|
3103
3193
|
/** Identificador único del item */
|
|
3104
3194
|
id: string;
|
|
3105
3195
|
/** Texto principal del item */
|
|
@@ -3126,6 +3216,8 @@ declare type ItemCommonProps = {
|
|
|
3126
3216
|
onSelect?: (event?: React.SyntheticEvent) => void;
|
|
3127
3217
|
};
|
|
3128
3218
|
|
|
3219
|
+
export declare const limpiarPermisos: () => Promise<void>;
|
|
3220
|
+
|
|
3129
3221
|
/**
|
|
3130
3222
|
* Limita la longitud máxima de la celda.
|
|
3131
3223
|
*
|
|
@@ -3384,6 +3476,18 @@ export declare type ModalProps = {
|
|
|
3384
3476
|
*/
|
|
3385
3477
|
export declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'formulario' | 'full' | 'auto';
|
|
3386
3478
|
|
|
3479
|
+
declare type ModuloDe<P extends string> = P extends `${infer Modulo}:${string}` ? Modulo : never;
|
|
3480
|
+
|
|
3481
|
+
declare type ModuloPermiso = [PermisosRegistrados] extends [never] ? string : ModuloDe<PermisosRegistrados>;
|
|
3482
|
+
|
|
3483
|
+
export declare const ModuloPermisos: ({ modulo, children }: ModuloPermisosProps) => JSX.Element;
|
|
3484
|
+
|
|
3485
|
+
declare type ModuloPermisosProps = {
|
|
3486
|
+
/** Módulo con el que se completan los permisos que solo nombran la acción. */
|
|
3487
|
+
modulo: ModuloPermiso;
|
|
3488
|
+
children: ReactNode;
|
|
3489
|
+
};
|
|
3490
|
+
|
|
3387
3491
|
declare type NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type'>;
|
|
3388
3492
|
|
|
3389
3493
|
declare type NativeInputProps_2 = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue' | 'min' | 'max' | 'step'>;
|
|
@@ -3580,6 +3684,21 @@ export declare const PERFIL_POR_DEFECTO: SoundProfile;
|
|
|
3580
3684
|
|
|
3581
3685
|
export declare const PERFILES: Record<SoundProfile, Record<SoundName, Nota[]>>;
|
|
3582
3686
|
|
|
3687
|
+
export declare type Permiso = [PermisosRegistrados] extends [never] ? string : PermisosRegistrados | ModuloDe<PermisosRegistrados> | AccionDe<PermisosRegistrados>;
|
|
3688
|
+
|
|
3689
|
+
declare type PermisoProps = {
|
|
3690
|
+
/**
|
|
3691
|
+
* Permiso que habilita el control (`'modulo:accion'`, `'modulo'` o solo `'accion'` dentro de
|
|
3692
|
+
* `<ModuloPermisos>`). Se lee en vivo de lo guardado con `guardarPermisos`; si falta, el control
|
|
3693
|
+
* se bloquea y muestra un candado. Sin esta prop el control no depende de permisos.
|
|
3694
|
+
*/
|
|
3695
|
+
permiso?: Permiso;
|
|
3696
|
+
};
|
|
3697
|
+
|
|
3698
|
+
declare type PermisosRegistrados = RegistroPermisos extends {
|
|
3699
|
+
permisos: infer P extends string;
|
|
3700
|
+
} ? P : never;
|
|
3701
|
+
|
|
3583
3702
|
/**
|
|
3584
3703
|
* La celda debe quedar vacía cuando otra columna toma cierto valor. Es el
|
|
3585
3704
|
* complemento de `requeridoSi`, para datos que no deben convivir.
|
|
@@ -3599,7 +3718,7 @@ declare type Props = {
|
|
|
3599
3718
|
idioma?: string;
|
|
3600
3719
|
};
|
|
3601
3720
|
|
|
3602
|
-
export declare const Radio: default_2.NamedExoticComponent<{
|
|
3721
|
+
export declare const Radio: default_2.NamedExoticComponent<PermisoProps & {
|
|
3603
3722
|
value: string;
|
|
3604
3723
|
label?: string;
|
|
3605
3724
|
description?: string;
|
|
@@ -3617,16 +3736,11 @@ export declare const Radio: default_2.NamedExoticComponent<{
|
|
|
3617
3736
|
|
|
3618
3737
|
export declare type RadioColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
3619
3738
|
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
*/
|
|
3626
|
-
export declare const RadioGroup: {
|
|
3627
|
-
<T extends OptionBase>({ name, value, defaultValue, onChange, orientation, label, description, isDisabled, isReadOnly, isRequired, isInvalid, errorMessage, size, color, customColor, variant, justifyContent, children, className, options, optionValueKey, optionLabelKey, optionDisabledKey, optionDescriptionKey, id, "data-testid": dataTestId, }: RadioGroupProps<T>): JSX.Element;
|
|
3628
|
-
displayName: string;
|
|
3629
|
-
};
|
|
3739
|
+
export declare const RadioGroup: RadioGroupComponent;
|
|
3740
|
+
|
|
3741
|
+
declare type RadioGroupComponent = <T extends OptionBase = string>(props: RadioGroupProps<T> & {
|
|
3742
|
+
ref?: default_2.Ref<RadioGroupRef>;
|
|
3743
|
+
}) => default_2.ReactElement;
|
|
3630
3744
|
|
|
3631
3745
|
export declare type RadioGroupOrientation = 'vertical' | 'horizontal';
|
|
3632
3746
|
|
|
@@ -3634,7 +3748,7 @@ export declare type RadioGroupOrientation = 'vertical' | 'horizontal';
|
|
|
3634
3748
|
* Props del componente RadioGroup con soporte genérico.
|
|
3635
3749
|
* @template T - Tipo de las opciones (string, number u objeto)
|
|
3636
3750
|
*/
|
|
3637
|
-
export declare type RadioGroupProps<T extends OptionBase = string> = {
|
|
3751
|
+
export declare type RadioGroupProps<T extends OptionBase = string> = PermisoProps & {
|
|
3638
3752
|
/**
|
|
3639
3753
|
* Nombre del grupo, compartido por todos los radios (crítico para HTML:
|
|
3640
3754
|
* agrupa la navegación con flechas y el envío nativo del formulario).
|
|
@@ -3754,7 +3868,12 @@ export declare type RadioGroupProps<T extends OptionBase = string> = {
|
|
|
3754
3868
|
'data-testid'?: string;
|
|
3755
3869
|
};
|
|
3756
3870
|
|
|
3757
|
-
export declare type
|
|
3871
|
+
export declare type RadioGroupRef = {
|
|
3872
|
+
/** Lleva el foco al radio elegido o, si no hay, al primero habilitado. */
|
|
3873
|
+
focus: () => void;
|
|
3874
|
+
};
|
|
3875
|
+
|
|
3876
|
+
export declare type RadioProps = PermisoProps & {
|
|
3758
3877
|
/**
|
|
3759
3878
|
* Valor del radio button
|
|
3760
3879
|
*/
|
|
@@ -3825,6 +3944,9 @@ export declare type RadioVariant = 'default' | 'card';
|
|
|
3825
3944
|
*/
|
|
3826
3945
|
export declare function rangoNumerico(min: number, max: number, mensaje?: string): ValidadorCampo;
|
|
3827
3946
|
|
|
3947
|
+
export declare interface RegistroPermisos {
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3828
3950
|
export declare type ReporteEncabezados = {
|
|
3829
3951
|
valido: boolean;
|
|
3830
3952
|
encontrados: EncabezadoEncontrado[];
|
|
@@ -4003,7 +4125,7 @@ export declare type SelectObjectIdProps<T> = BaseSelectProps<T> & WrapperProps &
|
|
|
4003
4125
|
/** Opción del Select: string simple u objeto con `disabled` opcional */
|
|
4004
4126
|
export declare type SelectOption<T = string> = T extends string ? string : T & {
|
|
4005
4127
|
disabled?: boolean;
|
|
4006
|
-
};
|
|
4128
|
+
} & PermisoProps;
|
|
4007
4129
|
|
|
4008
4130
|
/**
|
|
4009
4131
|
* Estado de una opción para el render personalizado.
|
|
@@ -4534,7 +4656,7 @@ export declare type SelectProps<T = string> = {
|
|
|
4534
4656
|
portalContainer?: HTMLElement | null;
|
|
4535
4657
|
/** Identificador para pruebas. Por defecto se genera como `select-{name}`. */
|
|
4536
4658
|
'data-testid'?: string;
|
|
4537
|
-
};
|
|
4659
|
+
} & PermisoProps;
|
|
4538
4660
|
|
|
4539
4661
|
/**
|
|
4540
4662
|
* Métodos expuestos vía ref del componente Select.
|
|
@@ -4576,9 +4698,47 @@ export declare type SelectStringProps = BaseSelectProps<string> & WrapperProps &
|
|
|
4576
4698
|
isMultiple?: false;
|
|
4577
4699
|
};
|
|
4578
4700
|
|
|
4579
|
-
export declare const Signature: ForwardRefExoticComponent<
|
|
4580
|
-
|
|
4581
|
-
|
|
4701
|
+
export declare const Signature: ForwardRefExoticComponent<PermisoProps & {
|
|
4702
|
+
isOpen?: boolean;
|
|
4703
|
+
firmaInicial?: string | null;
|
|
4704
|
+
closeOnBackdropClick?: boolean;
|
|
4705
|
+
isRequired?: boolean;
|
|
4706
|
+
name?: string;
|
|
4707
|
+
id?: string;
|
|
4708
|
+
'data-testid'?: string;
|
|
4709
|
+
requiredMessage?: string;
|
|
4710
|
+
onClose?: () => void;
|
|
4711
|
+
onConfirm?: (signatureData: string) => void;
|
|
4712
|
+
readonly?: boolean;
|
|
4713
|
+
readonlyPostGuardado?: boolean;
|
|
4714
|
+
titulo?: string;
|
|
4715
|
+
textoGuardar?: string;
|
|
4716
|
+
textoModificar?: string;
|
|
4717
|
+
textoDeshacer?: string;
|
|
4718
|
+
textoEliminarFirma?: string;
|
|
4719
|
+
textoEstadoGuardada?: string;
|
|
4720
|
+
textoEstadoPendiente?: string;
|
|
4721
|
+
textoLimpiar?: string;
|
|
4722
|
+
textoAdjuntar?: string;
|
|
4723
|
+
textoSolicitarFirma?: string;
|
|
4724
|
+
textoReemplazarFirma?: string;
|
|
4725
|
+
tituloBloque?: string;
|
|
4726
|
+
ancho?: number;
|
|
4727
|
+
alto?: number;
|
|
4728
|
+
aspectRatio?: string;
|
|
4729
|
+
className?: string;
|
|
4730
|
+
textoConsentimiento?: string;
|
|
4731
|
+
mostrarBotonSubir?: boolean;
|
|
4732
|
+
mostrarBotonAgregarFirma?: boolean;
|
|
4733
|
+
mostrarBotonEliminarFirma?: boolean;
|
|
4734
|
+
firebasePath?: string;
|
|
4735
|
+
firebaseStorage?: FirebaseStorage;
|
|
4736
|
+
onFirebaseUploadSuccess?: (downloadURL: string) => void;
|
|
4737
|
+
onFirebaseUploadError?: (error: Error) => void;
|
|
4738
|
+
fondoTransparente?: boolean;
|
|
4739
|
+
} & RefAttributes<SignatureRef>>;
|
|
4740
|
+
|
|
4741
|
+
export declare type SignatureProps = PermisoProps & {
|
|
4582
4742
|
isOpen?: boolean;
|
|
4583
4743
|
firmaInicial?: string | null;
|
|
4584
4744
|
closeOnBackdropClick?: boolean;
|
|
@@ -4656,7 +4816,7 @@ declare type SinDatosProps = {
|
|
|
4656
4816
|
*/
|
|
4657
4817
|
export declare function siTieneValor(validador: ValidadorCampo): ValidadorCampo;
|
|
4658
4818
|
|
|
4659
|
-
export declare const Slider: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "
|
|
4819
|
+
export declare const Slider: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "color" | "onChange"> & PermisoProps & {
|
|
4660
4820
|
value?: SliderValue;
|
|
4661
4821
|
defaultValue?: SliderValue;
|
|
4662
4822
|
onChange?: (value: SliderValue) => void;
|
|
@@ -4735,7 +4895,7 @@ export declare type SliderMark = {
|
|
|
4735
4895
|
|
|
4736
4896
|
export declare type SliderOrientation = 'horizontal' | 'vertical';
|
|
4737
4897
|
|
|
4738
|
-
export declare type SliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'color' | 'children'> & {
|
|
4898
|
+
export declare type SliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'color' | 'children'> & PermisoProps & {
|
|
4739
4899
|
/**
|
|
4740
4900
|
* Valor actual (modo controlado). Un arreglo activa el modo rango.
|
|
4741
4901
|
*/
|
|
@@ -5178,9 +5338,9 @@ export declare type TabKey = string;
|
|
|
5178
5338
|
* />
|
|
5179
5339
|
* ```
|
|
5180
5340
|
*/
|
|
5181
|
-
export declare function TablaDatos<TData extends object>({ id, color, ...providerProps }: TablaDatosProps<TData>): JSX.Element;
|
|
5341
|
+
export declare function TablaDatos<TData extends object>({ id, color, controls, selectorFilas, permiso, data, loading, ...providerProps }: TablaDatosProps<TData>): JSX.Element;
|
|
5182
5342
|
|
|
5183
|
-
export declare type TablaDatosProps<TData extends object> = {
|
|
5343
|
+
export declare type TablaDatosProps<TData extends object> = PermisoProps & {
|
|
5184
5344
|
/** Identificador único de la tabla */
|
|
5185
5345
|
id: string;
|
|
5186
5346
|
/**
|
|
@@ -5229,7 +5389,7 @@ export declare type TablaDatosProps<TData extends object> = {
|
|
|
5229
5389
|
maxColumnasVisibles?: number;
|
|
5230
5390
|
};
|
|
5231
5391
|
|
|
5232
|
-
export declare type TabProps = {
|
|
5392
|
+
export declare type TabProps = PermisoProps & {
|
|
5233
5393
|
/** Identificador único del tab. Si se omite se usa la `key` del elemento. */
|
|
5234
5394
|
id?: TabKey;
|
|
5235
5395
|
/** Texto o nodo del botón del tab */
|
|
@@ -5441,13 +5601,16 @@ onChange?: (value: string) => void;
|
|
|
5441
5601
|
onClear?: () => void;
|
|
5442
5602
|
children?: ReactNode;
|
|
5443
5603
|
'data-testid'?: string;
|
|
5444
|
-
} & {
|
|
5604
|
+
} & PermisoProps & {
|
|
5605
|
+
name?: string | undefined | undefined;
|
|
5606
|
+
className?: string | undefined | undefined;
|
|
5445
5607
|
form?: string | undefined | undefined;
|
|
5608
|
+
role?: AriaRole | undefined;
|
|
5609
|
+
title?: string | undefined | undefined;
|
|
5610
|
+
onAnimationEnd?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5446
5611
|
slot?: string | undefined | undefined;
|
|
5447
5612
|
style?: CSSProperties | undefined;
|
|
5448
|
-
title?: string | undefined | undefined;
|
|
5449
5613
|
disabled?: boolean | undefined | undefined;
|
|
5450
|
-
name?: string | undefined | undefined;
|
|
5451
5614
|
value?: string | number | readonly string[] | undefined;
|
|
5452
5615
|
defaultChecked?: boolean | undefined | undefined;
|
|
5453
5616
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -5456,8 +5619,7 @@ suppressHydrationWarning?: boolean | undefined | undefined;
|
|
|
5456
5619
|
accessKey?: string | undefined | undefined;
|
|
5457
5620
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
5458
5621
|
autoFocus?: boolean | undefined | undefined;
|
|
5459
|
-
|
|
5460
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
5622
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
5461
5623
|
contextMenu?: string | undefined | undefined;
|
|
5462
5624
|
dir?: string | undefined | undefined;
|
|
5463
5625
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -5470,7 +5632,6 @@ spellCheck?: (boolean | "true" | "false") | undefined;
|
|
|
5470
5632
|
tabIndex?: number | undefined | undefined;
|
|
5471
5633
|
translate?: "yes" | "no" | undefined | undefined;
|
|
5472
5634
|
radioGroup?: string | undefined | undefined;
|
|
5473
|
-
role?: AriaRole | undefined;
|
|
5474
5635
|
about?: string | undefined | undefined;
|
|
5475
5636
|
content?: string | undefined | undefined;
|
|
5476
5637
|
datatype?: string | undefined | undefined;
|
|
@@ -5709,7 +5870,6 @@ onWheel?: WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
|
5709
5870
|
onWheelCapture?: WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
5710
5871
|
onAnimationStart?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5711
5872
|
onAnimationStartCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5712
|
-
onAnimationEnd?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5713
5873
|
onAnimationEndCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5714
5874
|
onAnimationIteration?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
5715
5875
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
@@ -5808,7 +5968,7 @@ export declare type TextAreaProps = {
|
|
|
5808
5968
|
children?: ReactNode;
|
|
5809
5969
|
/** Identificador para pruebas. Por defecto se genera como `textarea-{name}`. */
|
|
5810
5970
|
'data-testid'?: string;
|
|
5811
|
-
} & NativeTextareaProps;
|
|
5971
|
+
} & PermisoProps & NativeTextareaProps;
|
|
5812
5972
|
|
|
5813
5973
|
/**
|
|
5814
5974
|
* Tipo visual del modal de aviso.
|
|
@@ -5846,7 +6006,7 @@ export { ToastT }
|
|
|
5846
6006
|
|
|
5847
6007
|
export { ToastToDismiss }
|
|
5848
6008
|
|
|
5849
|
-
export declare const Toggle: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "size"> & {
|
|
6009
|
+
export declare const Toggle: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "size"> & PermisoProps & {
|
|
5850
6010
|
isSelected?: boolean;
|
|
5851
6011
|
defaultSelected?: boolean;
|
|
5852
6012
|
onChange?: (isSelected: boolean) => void;
|
|
@@ -5872,7 +6032,7 @@ className?: string;
|
|
|
5872
6032
|
|
|
5873
6033
|
export declare type ToggleColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
5874
6034
|
|
|
5875
|
-
export declare type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange'> & {
|
|
6035
|
+
export declare type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange'> & PermisoProps & {
|
|
5876
6036
|
/**
|
|
5877
6037
|
* Si el toggle está activado (modo controlado)
|
|
5878
6038
|
*/
|
|
@@ -6098,6 +6258,10 @@ export declare type UploadedFile = {
|
|
|
6098
6258
|
*/
|
|
6099
6259
|
export declare function useAudioRecorder(opciones: OpcionesGrabadora): Grabadora;
|
|
6100
6260
|
|
|
6261
|
+
export declare const useControlPermiso: (permiso?: Permiso, claseCandado?: string) => ControlPermiso;
|
|
6262
|
+
|
|
6263
|
+
export declare const usePermiso: (permiso?: Permiso) => EstadoPermiso;
|
|
6264
|
+
|
|
6101
6265
|
export declare function useReconocimientoVoz({ value, onChange, isDisabled, isReadOnly, onDictadoCompleto, idioma, }: Props): {
|
|
6102
6266
|
puedeHablar: boolean;
|
|
6103
6267
|
puedeEscuchar: boolean;
|