@acvl/frontend-components 0.0.128 → 0.0.130

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/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import * as redux from 'redux';
17
17
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
18
18
  import * as _emotion_styled from '@emotion/styled';
19
19
  import * as _mui_system from '@mui/system';
20
- import { Theme as Theme$1, CssVarsTheme, CSSObject } from '@mui/material/styles';
20
+ import { Theme as Theme$1, CssVarsTheme, SxProps as SxProps$1, CSSObject } from '@mui/material/styles';
21
21
  import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
22
22
  import { BaseQueryFn, FetchArgs, EndpointDefinitions, Api, CoreModule } from '@reduxjs/toolkit/query';
23
23
  import { reactHooksModuleName } from '@reduxjs/toolkit/query/react';
@@ -1487,6 +1487,8 @@ declare const es: {
1487
1487
  /** El título de "crear" que arma `PageHeader` a partir del nombre del modelo. */
1488
1488
  crearRegistro: (singular: string) => string;
1489
1489
  cargarPagina: (titulo: string) => string;
1490
+ /** El botón de salida del encabezado, que lleva a la página de la que cuelga el registro. */
1491
+ volverA: (titulo: string) => string;
1490
1492
  };
1491
1493
  notificaciones: {
1492
1494
  titulo: string;
@@ -1641,6 +1643,190 @@ declare const es: {
1641
1643
  errorAlEliminar: string;
1642
1644
  topeDeLote: (tope: number) => string;
1643
1645
  };
1646
+ asistente: {
1647
+ titulo: string;
1648
+ queEs: string;
1649
+ conversacionNueva: string;
1650
+ conversacionesAnteriores: string;
1651
+ sinConversaciones: string;
1652
+ sinTitulo: string;
1653
+ noLeida: string;
1654
+ masOpciones: string;
1655
+ pensando: string;
1656
+ escribe: string;
1657
+ preguntar: string;
1658
+ leyenda: string;
1659
+ noSePudoPreguntar: string;
1660
+ demasiadasPreguntas: string;
1661
+ detener: string;
1662
+ copiar: string;
1663
+ copiado: string;
1664
+ buena: string;
1665
+ mala: string;
1666
+ sugerencias: string;
1667
+ masSugerencias: string;
1668
+ masCategorias: string;
1669
+ regresar: string;
1670
+ buenosDias: string;
1671
+ buenasTardes: string;
1672
+ buenasNoches: string;
1673
+ enQueTeAyudo: string;
1674
+ renombrar: string;
1675
+ renombrarConversacion: string;
1676
+ nombre: string;
1677
+ guardar: string;
1678
+ eliminar: string;
1679
+ eliminarConversacion: string;
1680
+ confirmarEliminar: string;
1681
+ eliminarTodas: string;
1682
+ eliminarTodasLasConversaciones: string;
1683
+ confirmarEliminarTodas: string;
1684
+ seQuedaLaQueContesta: string;
1685
+ };
1686
+ conversaciones: {
1687
+ mensajes: string;
1688
+ volver: string;
1689
+ listas: string;
1690
+ listasAyuda: string;
1691
+ sinListas: string;
1692
+ cambiarListas: string;
1693
+ porLista: string;
1694
+ masOpciones: string;
1695
+ responder: string;
1696
+ editar: string;
1697
+ editando: string;
1698
+ editado: string;
1699
+ eliminarParaMi: string;
1700
+ eliminarParaTodos: string;
1701
+ confirmarEliminarParaTodos: string;
1702
+ confirmarEliminarParaMi: string;
1703
+ seElimino: string;
1704
+ vaciar: string;
1705
+ vaciarBoton: string;
1706
+ confirmarVaciar: string;
1707
+ eliminar: string;
1708
+ eliminarConversacion: string;
1709
+ confirmarEliminar: string;
1710
+ confirmarEliminarGrupo: string;
1711
+ detalles: string;
1712
+ buscar: string;
1713
+ sinLeer: string;
1714
+ todas: string;
1715
+ nadaSinLeer: string;
1716
+ archivadas: string;
1717
+ nadaArchivado: string;
1718
+ archivar: string;
1719
+ desarchivar: string;
1720
+ archivada: string;
1721
+ archivadaAyuda: string;
1722
+ noSeCargo: string;
1723
+ reintentar: string;
1724
+ bandejaVacia: string;
1725
+ sinResultados: string;
1726
+ cargarMas: string;
1727
+ tu: string;
1728
+ sinMensajes: string;
1729
+ sinAcceso: string;
1730
+ noSeCargoElHilo: string;
1731
+ cargarAnteriores: string;
1732
+ hoy: string;
1733
+ ayer: string;
1734
+ visto: string;
1735
+ enviado: string;
1736
+ loVieron: string;
1737
+ faltan: string;
1738
+ escribe: string;
1739
+ enviar: string;
1740
+ adjuntar: string;
1741
+ ligarRegistro: string;
1742
+ grabarNota: string;
1743
+ grabando: string;
1744
+ sinMicrofono: string;
1745
+ noSeEnvio: string;
1746
+ cancelar: string;
1747
+ tipo: string;
1748
+ foto: string;
1749
+ verFoto: string;
1750
+ video: string;
1751
+ verVideo: string;
1752
+ escribiendo: string;
1753
+ mensajesSinLeer: (n: number) => string;
1754
+ estaEscribiendo: (nombres: string[]) => string;
1755
+ videoMuyPesado: (mb: number) => string;
1756
+ archivoMuyPesado: (nombre: string, mb: number) => string;
1757
+ archivoNoAdmitido: (nombre: string) => string;
1758
+ notaMuyCorta: string;
1759
+ topeDeDestinos: (n: number) => string;
1760
+ noSeReproduce: string;
1761
+ archivoVencido: string;
1762
+ notaDeVoz: string;
1763
+ reproducir: string;
1764
+ pausar: string;
1765
+ velocidad: (v: number) => string;
1766
+ archivo: string;
1767
+ descargar: string;
1768
+ verEnElMapa: string;
1769
+ ligaSinAcceso: string;
1770
+ nuevaConversacion: string;
1771
+ directo: string;
1772
+ grupo: string;
1773
+ buscarPersona: string;
1774
+ nombreDelGrupo: string;
1775
+ integrantes: string;
1776
+ agregarIntegrantes: string;
1777
+ crearGrupo: string;
1778
+ noSePudo: string;
1779
+ detallesDelGrupo: string;
1780
+ guardar: string;
1781
+ silenciar: string;
1782
+ quitar: string;
1783
+ admin: string;
1784
+ agregar: string;
1785
+ salirDelGrupo: string;
1786
+ salir: string;
1787
+ reactivar: string;
1788
+ salirPorLista: string;
1789
+ confirmarSalir: string;
1790
+ cerrar: string;
1791
+ integrantesN: (n: number) => string;
1792
+ vistoPor: (vieron: number, total: number) => string;
1793
+ reaccionar: string;
1794
+ reaccionarCon: (emoji: string) => string;
1795
+ clicParaQuitarla: string;
1796
+ reenviado: string;
1797
+ reenviar: string;
1798
+ reenviarA: string;
1799
+ buscarConversacion: string;
1800
+ enviarA: (n: number) => string;
1801
+ reenviadoA: (nombre: string) => string;
1802
+ reenviadoAVarias: (n: number) => string;
1803
+ noSeReenvio: string;
1804
+ abrir: string;
1805
+ buscarEnLaConversacion: string;
1806
+ escribeDosLetras: string;
1807
+ mensajeNoEncontrado: string;
1808
+ fijar: string;
1809
+ desfijar: string;
1810
+ fijada: string;
1811
+ fijadaAyuda: string;
1812
+ mencionar: string;
1813
+ fotosYArchivos: string;
1814
+ general: string;
1815
+ fotos: string;
1816
+ archivos: string;
1817
+ sinFotos: string;
1818
+ sinArchivos: string;
1819
+ /** El separador de día del hilo. */
1820
+ formatoDeDia: string;
1821
+ /** La hora al pie de una burbuja. */
1822
+ formatoDeHora: string;
1823
+ /** Un archivo de los detalles. */
1824
+ formatoDeFecha: string;
1825
+ /** Un resultado de la búsqueda en el hilo. */
1826
+ formatoDeResultado: string;
1827
+ /** Un aviso del sistema en el hilo. */
1828
+ formatoDeAviso: string;
1829
+ };
1644
1830
  };
1645
1831
  /**
1646
1832
  * La forma del diccionario, tomada del español. Cualquier llave que le falte a `en` —o que sobre—
@@ -1984,6 +2170,23 @@ declare const query: (data: any, url: string, type: "grid" | "single" | "simpleF
1984
2170
  declare const tags: (result: any, type: string, invalidate?: {
1985
2171
  request: "post" | "patch";
1986
2172
  }) => any[];
2173
+ /**
2174
+ * The `serializeQueryArgs` of a server grid's list endpoint: **one cache entry per grid**, whatever
2175
+ * page, filters or order it asks for (they travel in the args and `forceRefetch` compares them),
2176
+ * so `manualCacheRefresh` finds it as `{ type: "all" }`.
2177
+ *
2178
+ * Two grids on the same endpoint (a tray and the log of a detail page) pass different `scope`s in
2179
+ * their args, and each gets its own entry; without it the last response to arrive overwrites the
2180
+ * other's rows. `scope` doesn't travel to the backend: `query(…, "grid")` doesn't read it.
2181
+ *
2182
+ * ```ts
2183
+ * getRecibos: builder.query<any, GridArgs & { scope?: string }>({ serializeQueryArgs: llaveDeGrilla, … })
2184
+ * ```
2185
+ */
2186
+ declare const llaveDeGrilla: ({ endpointName, queryArgs, }: {
2187
+ endpointName: string;
2188
+ queryArgs?: unknown;
2189
+ }) => string;
1987
2190
  declare function manualCacheRefresh(api: any, id: any, dispatch: any, queryFulfilled: any, endpoints: {
1988
2191
  single?: string;
1989
2192
  multiple?: string;
@@ -2973,7 +3176,7 @@ interface DefinicionDeCatalogo {
2973
3176
  }
2974
3177
 
2975
3178
  /** Los módulos de un `createApi` de `@reduxjs/toolkit/query/react`: el núcleo y los hooks. */
2976
- type ConHooks$3 = CoreModule | typeof reactHooksModuleName;
3179
+ type ConHooks$5 = CoreModule | typeof reactHooksModuleName;
2977
3180
  /**
2978
3181
  * Los cuatro hooks de un catálogo simple.
2979
3182
  *
@@ -3024,10 +3227,10 @@ type CrearCatalogoAPI = (definicion: DefinicionDeCatalogo) => CatalogoAPI;
3024
3227
  * Se llama al cargar el módulo, una vez por catálogo, y no dentro de un componente: cada llamada
3025
3228
  * inyecta endpoints en el store.
3026
3229
  */
3027
- declare const crearFabricaDeCatalogos: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$3>) => CrearCatalogoAPI;
3230
+ declare const crearFabricaDeCatalogos: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$5>) => CrearCatalogoAPI;
3028
3231
 
3029
3232
  /** Los módulos de un `createApi` de `@reduxjs/toolkit/query/react`: el núcleo y los hooks. */
3030
- type ConHooks$2 = CoreModule | typeof reactHooksModuleName;
3233
+ type ConHooks$4 = CoreModule | typeof reactHooksModuleName;
3031
3234
  /**
3032
3235
  * Lo que identifica un recurso de adjuntos. Es lo mismo que pide un catálogo —su CRUD sale de esa
3033
3236
  * fábrica—, sin los campos extra de su ficha.
@@ -3069,7 +3272,7 @@ interface AdjuntosAPI extends CatalogoAPI {
3069
3272
  * plural: "Archivos",
3070
3273
  * });
3071
3274
  */
3072
- declare const crearAdjuntosAPI: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$2>, definicion: DefinicionDeAdjuntos) => AdjuntosAPI;
3275
+ declare const crearAdjuntosAPI: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$4>, definicion: DefinicionDeAdjuntos) => AdjuntosAPI;
3073
3276
 
3074
3277
  interface AdjuntosProps {
3075
3278
  /** Lo que devuelve `crearAdjuntosAPI`. */
@@ -3162,7 +3365,7 @@ interface GestionDeDocumentos {
3162
3365
  }
3163
3366
 
3164
3367
  /** Los módulos de un `createApi` de `@reduxjs/toolkit/query/react`: el núcleo y los hooks. */
3165
- type ConHooks$1 = CoreModule | typeof reactHooksModuleName;
3368
+ type ConHooks$3 = CoreModule | typeof reactHooksModuleName;
3166
3369
  interface OpcionesDeApiDeDocumentos {
3167
3370
  /**
3168
3371
  * La ruta del recurso titular, tal como está en el `constants.ts` de la app y sin `/` al final:
@@ -3256,7 +3459,7 @@ declare const nombresDeDocumentos: (tag: string) => {
3256
3459
  * El parámetro es genérico por lo mismo que en `crearFabricaDeCatalogos`: `Api` es invariante en
3257
3460
  * sus definiciones, y así el `mainAPI` concreto de una app entra tal cual.
3258
3461
  */
3259
- declare const crearApiDeDocumentos: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$1>, { base, tag }: OpcionesDeApiDeDocumentos) => ApiDeDocumentos;
3462
+ declare const crearApiDeDocumentos: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$3>, { base, tag }: OpcionesDeApiDeDocumentos) => ApiDeDocumentos;
3260
3463
 
3261
3464
  interface DocumentosDelRegistroProps {
3262
3465
  /** El id del titular: el viaje, la orden de envío. */
@@ -3300,6 +3503,181 @@ interface DocumentosDelRegistroProps {
3300
3503
  */
3301
3504
  declare const DocumentosDelRegistro: ({ registro, api, gestionar, pestana, }: DocumentosDelRegistroProps) => react_jsx_runtime.JSX.Element;
3302
3505
 
3506
+ /** Una conversación propia con el asistente, como la lista `conversaciones/` del núcleo
3507
+ * (`acv_core.asistente.paginas`). */
3508
+ interface ConversacionDelAsistente {
3509
+ id: number;
3510
+ /** La primera pregunta, recortada, mientras no se renombre. */
3511
+ titulo: string;
3512
+ /** Si todavía está contestando: no acepta otra pregunta hasta terminar. */
3513
+ respondiendo: boolean;
3514
+ /** Tiene una respuesta que su dueño no ha visto. */
3515
+ no_leida: boolean;
3516
+ creada_en: string;
3517
+ modificada_en: string;
3518
+ }
3519
+ /** Una pregunta o una respuesta, sin las consultas que el asistente hizo en medio. */
3520
+ interface BurbujaDelAsistente {
3521
+ id: number;
3522
+ rol: "usuario" | "asistente";
3523
+ texto: string;
3524
+ creado_en: string;
3525
+ /** 1 (👍), -1 (👎) o `null`. Sólo en las del asistente. */
3526
+ calificacion: 1 | -1 | null;
3527
+ }
3528
+ interface DetalleDeConversacionDelAsistente extends ConversacionDelAsistente {
3529
+ burbujas: BurbujaDelAsistente[];
3530
+ }
3531
+ /** Lo que llega por el socket de la campana bajo la llave `asistente`
3532
+ * (`acv_core.asistente.en_vivo`). */
3533
+ type EventoDelAsistente = {
3534
+ evento: "texto";
3535
+ conversacion: number;
3536
+ texto: string;
3537
+ } | {
3538
+ evento: "herramienta";
3539
+ conversacion: number;
3540
+ nombre: string;
3541
+ } | {
3542
+ evento: "fin";
3543
+ conversacion: number;
3544
+ texto: string;
3545
+ } | {
3546
+ evento: "error";
3547
+ conversacion: number;
3548
+ detalle: string;
3549
+ };
3550
+
3551
+ type ConHooks$2 = CoreModule | typeof reactHooksModuleName;
3552
+ interface OpcionesDeAsistenteAPI {
3553
+ /** Prefijo de los nombres de los endpoints y de la etiqueta de caché. Único en el `createApi`
3554
+ * de la app: un `injectEndpoints` con un nombre repetido se ignora en silencio. */
3555
+ clave?: string;
3556
+ /** Donde cuelgan `PreguntarView` y `ConversacionDelAsistenteView`. */
3557
+ endpointDePreguntar?: string;
3558
+ endpointDeConversaciones?: string;
3559
+ }
3560
+ /** Lo que devuelve `crearAsistenteAPI`. Los hooks van como `any`: sus nombres se arman en tiempo
3561
+ * de ejecución y TypeScript no los puede derivar. */
3562
+ interface AsistenteAPI {
3563
+ /** → `ConversacionDelAsistente[]`, la más reciente primero. */
3564
+ useConversaciones: any;
3565
+ /** `id` → `DetalleDeConversacionDelAsistente`. */
3566
+ useConversacion: any;
3567
+ /** `{ pregunta, conversacion? }` → `ConversacionDelAsistente` (sin `conversacion`, una nueva). */
3568
+ usePreguntar: any;
3569
+ /** `{ id, titulo }`. */
3570
+ useRenombrar: any;
3571
+ /** `id`. */
3572
+ useEliminar: any;
3573
+ /** Todas las propias menos la que se está contestando → `{ eliminadas, conservadas }`. */
3574
+ useEliminarTodas: any;
3575
+ /** `id`: su dueño ya vio la respuesta. */
3576
+ useMarcarLeida: any;
3577
+ /** `id`: corta la respuesta que va saliendo. */
3578
+ useDetener: any;
3579
+ /** `{ conversacion, mensaje, calificacion: 1 | -1 | null }`: 👍, 👎 o quitarla. */
3580
+ useCalificar: any;
3581
+ /** Lo que llega por el socket bajo la llave `asistente`. */
3582
+ aplicarEvento: (dispatch: (accion: any) => any, evento: EventoDelAsistente) => void;
3583
+ /** Al reconectar el socket: un `fin` que no llegó se recupera volviendo a pedir. */
3584
+ refrescar: (dispatch: (accion: any) => any) => void;
3585
+ }
3586
+ /**
3587
+ * Los endpoints del asistente (`acv_core.asistente`), inyectados en el `createApi` de la app para
3588
+ * que viajen con su token y su reautenticación. Se llama una vez, al cargar el módulo:
3589
+ *
3590
+ * export const asistenteAPI = crearAsistenteAPI(mainAPI, { ... });
3591
+ *
3592
+ * **Preguntar no espera la respuesta**: el servidor contesta 202 y la respuesta llega por el
3593
+ * socket de la campana bajo la llave `asistente`; la app se la pasa a `aplicarEvento`. Al `fin`
3594
+ * se vuelve a pedir la conversación, que ya trae la respuesta guardada.
3595
+ */
3596
+ declare const crearAsistenteAPI: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$2>, { clave, endpointDePreguntar, endpointDeConversaciones, }?: OpcionesDeAsistenteAPI) => AsistenteAPI;
3597
+
3598
+ /** Una pregunta que se ofrece en una conversación vacía. */
3599
+ interface SugerenciaDelAsistente {
3600
+ /** Lo que se lee en el renglón. */
3601
+ etiqueta: string;
3602
+ /** Lo que se pregunta. */
3603
+ texto: string;
3604
+ /** Se manda al tocarla. Sin esto va al campo, para completarla —el folio, el nombre— y
3605
+ * mandarla. */
3606
+ completa?: boolean;
3607
+ /** Sin él, el de su categoría. */
3608
+ icono?: ReactNode;
3609
+ }
3610
+ /** Un bloque con título dentro de una categoría: «Un viaje», «Todos los viajes». */
3611
+ interface GrupoDeSugerencias {
3612
+ titulo?: string;
3613
+ sugerencias: SugerenciaDelAsistente[];
3614
+ }
3615
+ /** Una pestaña de «Más sugerencias». */
3616
+ interface CategoriaDeSugerencias {
3617
+ titulo: string;
3618
+ /** El de sus sugerencias que no traen uno. */
3619
+ icono?: ReactNode;
3620
+ grupos: GrupoDeSugerencias[];
3621
+ }
3622
+
3623
+ interface PanelDelAsistenteProps {
3624
+ /** Lo que devuelve `crearAsistenteAPI`. */
3625
+ api: AsistenteAPI;
3626
+ abierto: boolean;
3627
+ /** La conversación a la vista; `null` = una nueva, todavía sin pregunta. */
3628
+ conversacion: number | null;
3629
+ /** Abre una conversación del historial, o una nueva con `null`. También al preguntar en una
3630
+ * nueva (con la que se acaba de crear) y al eliminar la que estaba abierta. */
3631
+ onElegir: (conversacion: number | null) => void;
3632
+ onCerrar: () => void;
3633
+ /** Lo que se enseña mientras corre cada herramienta del proyecto, por su nombre:
3634
+ * `{ buscar_viaje: "Buscando el viaje…" }`. Sin entrada, «Pensando…». */
3635
+ consultas?: Record<string, string>;
3636
+ /** Lo que se enseña en una conversación vacía, bajo el saludo: qué se le puede preguntar. */
3637
+ ayuda?: ReactNode;
3638
+ /** Dónde se recuerda el ancho arrastrado. Propia de cada app. */
3639
+ claveDeAncho?: string;
3640
+ /** De quien pregunta, para el saludo de una conversación vacía («Buenos días, Mario.»). Basta
3641
+ * el completo: se usa el primero. */
3642
+ nombre?: string;
3643
+ /** Las preguntas destacadas de una conversación vacía, bajo el saludo: pocas (tres). */
3644
+ sugerencias?: SugerenciaDelAsistente[];
3645
+ /** Las demás, por categoría: las abre «Más sugerencias». Sin ellas, no se ofrece. */
3646
+ categorias?: CategoriaDeSugerencias[];
3647
+ /** Qué del texto de una respuesta se vuelve liga: `{ patron: /TRP-\d{6}/g, destino: (folio)
3648
+ * => ... }`. El patrón lleva la bandera `g`. */
3649
+ ligas?: LigaDelAsistente[];
3650
+ }
3651
+ interface LigaDelAsistente {
3652
+ patron: RegExp;
3653
+ /** La ruta del portal para lo que coincidió. */
3654
+ destino: (coincidencia: string) => string;
3655
+ }
3656
+ /**
3657
+ * El asistente, acoplado a la derecha como el chat: sus burbujas, sus puntos y su redactor, sin
3658
+ * adjuntos, ligas, notas de voz ni menciones, y con la leyenda de que es una IA.
3659
+ *
3660
+ * La pregunta sale al servidor (202) y la respuesta se pinta mientras llega por el socket
3661
+ * (`enVivo`); al terminar, la conversación se vuelve a pedir ya con la respuesta guardada y la que
3662
+ * se pintaba en vivo se olvida.
3663
+ */
3664
+ declare const PanelDelAsistente: ({ api, abierto, conversacion, onElegir, onCerrar, consultas, ayuda, claveDeAncho, nombre, sugerencias, categorias, ligas, }: PanelDelAsistenteProps) => react_jsx_runtime.JSX.Element;
3665
+ /**
3666
+ * El botón de la barra superior, con un punto rojo si alguna conversación tiene una respuesta sin
3667
+ * leer: se pregunta, se cierra el panel y uno se va a otra cosa. La lista se pone al día con el
3668
+ * `fin` que llega por el socket; el sondeo lento sólo cubre un socket caído.
3669
+ *
3670
+ * Va dentro de una caja centrada, como el del chat: la fila de la barra estira a sus hijos a lo
3671
+ * alto, y un `IconButton` estirado pinta el hover como óvalo. `activo` (el panel abierto) lo pinta
3672
+ * en color.
3673
+ */
3674
+ declare const BotonDelAsistente: ({ api, onClick, activo, }: {
3675
+ /** Lo que devuelve `crearAsistenteAPI`. */
3676
+ api: AsistenteAPI;
3677
+ onClick: () => void;
3678
+ activo?: boolean;
3679
+ }) => react_jsx_runtime.JSX.Element;
3680
+
3303
3681
  /**
3304
3682
  * Las columnas de un catálogo simple: código, nombre, las propias que declare, descripción y
3305
3683
  * activo.
@@ -3777,6 +4155,30 @@ interface PulseDotProps {
3777
4155
  * contrario un color fijo. Se usa para indicar conexión/actividad en vivo. */
3778
4156
  declare function PulseDot({ active, inactiveColor, size, title }: PulseDotProps): react_jsx_runtime.JSX.Element;
3779
4157
 
4158
+ interface InsigniaQueLateProps {
4159
+ children: ReactNode;
4160
+ /** Cuántos hay. Sin él, un punto; con él, la píldora con el número (en 0 no se enseña). */
4161
+ contenido?: number;
4162
+ /** Más que esto se lee «99+». */
4163
+ max?: number;
4164
+ /** Escondida aunque haya algo. Sin él: el punto se enseña, el número si es mayor que 0. */
4165
+ invisible?: boolean;
4166
+ /** Para acomodarla sobre lo que marca (el pie del menú la mueve un poco). */
4167
+ sx?: SxProps$1<Theme$1>;
4168
+ }
4169
+ /**
4170
+ * La insignia de «hay algo nuevo» de la barra y del menú: roja, para que no se confunda con el
4171
+ * primario del tema, y con una onda que se expande y se desvanece cada dos segundos —la que hace
4172
+ * que el ojo la encuentre—. La usan las novedades y el asistente (el punto) y el chat y la campana
4173
+ * (con su número).
4174
+ *
4175
+ * La onda es un `::after` del mismo badge: escala y opacidad, que el navegador anima sin
4176
+ * recalcular el layout. Va **detrás** del número (`isolation` + `z-index: -1`), así que la píldora
4177
+ * no lo tapa. Con `prefers-reduced-motion` no late; se queda la insignia, que ya avisa. Mientras
4178
+ * está invisible, MUI la encoge a escala 0 y la onda se va con ella.
4179
+ */
4180
+ declare const InsigniaQueLate: ({ children, contenido, max, invisible, sx, }: InsigniaQueLateProps) => react_jsx_runtime.JSX.Element;
4181
+
3780
4182
  /**
3781
4183
  * El grupo de botones de alternar sin marco: pastillas sueltas sobre el papel en vez de una caja
3782
4184
  * con borde. Se usa como el `ToggleButtonGroup` de MUI, con los mismos `ToggleButton` adentro.
@@ -4475,6 +4877,289 @@ interface CatalogoItemProps {
4475
4877
  */
4476
4878
  declare const CatalogoItem: ({ definicion, api, type, insignia }: CatalogoItemProps) => react_jsx_runtime.JSX.Element;
4477
4879
 
4880
+ type TipoDeMensaje = "TEXTO" | "IMAGEN" | "ARCHIVO" | "AUDIO" | "VIDEO" | "UBICACION" | "REFERENCIA" | "SISTEMA";
4881
+ /** La liga a un registro, ya resuelta para quien mira. */
4882
+ interface Referencia {
4883
+ tipo: string | null;
4884
+ id: string;
4885
+ /** `false`: quien mira no puede abrir ese registro. Se ve el mensaje, no la liga. */
4886
+ accesible: boolean;
4887
+ etiqueta?: string;
4888
+ /** La ruta del portal. */
4889
+ url?: string | null;
4890
+ /** La ruta de la app (`{pathname, params}`), para la app móvil. */
4891
+ ruta_app?: {
4892
+ pathname: string;
4893
+ params: Record<string, string>;
4894
+ } | null;
4895
+ }
4896
+ /** La cita del mensaje al que contesta otro. */
4897
+ interface Cita {
4898
+ id: number;
4899
+ autor: number;
4900
+ autor_nombre: string;
4901
+ es_mio: boolean;
4902
+ tipo: TipoDeMensaje;
4903
+ resumen: string;
4904
+ eliminado: boolean;
4905
+ }
4906
+ /** Una reacción de un mensaje, agrupada por emoji. Una por persona: otra la cambia. */
4907
+ interface Reaccion {
4908
+ emoji: string;
4909
+ cuantos: number;
4910
+ /** Quiénes la pusieron. */
4911
+ nombres: string[];
4912
+ /** Una de ellas es la de quien mira. */
4913
+ mia: boolean;
4914
+ }
4915
+ /** Alguien mencionado con «@» en el texto de un mensaje. */
4916
+ interface Mencion {
4917
+ id: number;
4918
+ nombre: string;
4919
+ }
4920
+ interface MensajeDeChat {
4921
+ /** Negativo mientras es optimista (todavía no lo confirma el servidor). */
4922
+ id: number;
4923
+ conversacion: number;
4924
+ autor: number;
4925
+ autor_nombre: string;
4926
+ es_mio: boolean;
4927
+ tipo: TipoDeMensaje;
4928
+ texto: string;
4929
+ tiene_archivo: boolean;
4930
+ tiene_miniatura: boolean;
4931
+ nombre_de_archivo: string;
4932
+ tamano: number | null;
4933
+ duracion_ms: number | null;
4934
+ latitud: number | null;
4935
+ longitud: number | null;
4936
+ referencia: Referencia | null;
4937
+ /** El mensaje al que contesta, o `null`. */
4938
+ responde_a: Cita | null;
4939
+ /** Se borró para todos: viene vacío y se pinta «Se eliminó este mensaje». */
4940
+ eliminado: boolean;
4941
+ /** Llegó reenviado de otra conversación. */
4942
+ reenviado: boolean;
4943
+ /** Su autor lo editó: se ve «Editado» junto a la hora. */
4944
+ editado_en: string | null;
4945
+ /** La retención borró su archivo: queda el texto (y la miniatura de una foto o un video). */
4946
+ archivo_vencido: boolean;
4947
+ /** La más usada primero; vacía si nadie reaccionó. */
4948
+ reacciones: Reaccion[];
4949
+ /** Los participantes mencionados con «@» en `texto`. */
4950
+ menciones: Mencion[];
4951
+ uid_cliente: string | null;
4952
+ creado_en: string;
4953
+ /** Sólo en el cliente: el archivo local de un optimista, para pintarlo mientras sube. */
4954
+ vistaLocal?: string;
4955
+ /** Ya no lo pone el portal (un envío que falla se quita y su texto vuelve al redactor). Sigue
4956
+ * aquí porque `lectura.ts`, compartido con la app, lo lee en `vaEnAlbum`. */
4957
+ fallo?: boolean;
4958
+ }
4959
+ interface ReferenciaElegible {
4960
+ tipo: string;
4961
+ id: string;
4962
+ etiqueta: string;
4963
+ }
4964
+ /** El texto del aviso emergente de un mensaje nuevo (el mismo del push). */
4965
+ interface AvisoDeMensaje {
4966
+ titulo: string;
4967
+ cuerpo: string;
4968
+ }
4969
+ /** Lo que llega por el socket de la campana bajo la llave `conversacion`. */
4970
+ type EventoDeConversacion = {
4971
+ evento: "mensaje_nuevo";
4972
+ conversacion: number;
4973
+ mensaje: MensajeDeChat;
4974
+ /** `null` si a quien lo recibe no le toca aviso: es suyo, de sistema o la silenció. */
4975
+ aviso?: AvisoDeMensaje | null;
4976
+ } | {
4977
+ evento: "visto";
4978
+ conversacion: number;
4979
+ usuario: number;
4980
+ visto_hasta: string;
4981
+ } | {
4982
+ evento: "mensaje_actualizado";
4983
+ conversacion: number;
4984
+ mensaje: MensajeDeChat;
4985
+ } | {
4986
+ evento: "mensaje_oculto";
4987
+ conversacion: number;
4988
+ mensaje: number;
4989
+ } | {
4990
+ evento: "escribiendo";
4991
+ conversacion: number;
4992
+ usuario: number;
4993
+ nombre: string;
4994
+ } | {
4995
+ evento: "conversacion_actualizada";
4996
+ conversacion: number;
4997
+ } | {
4998
+ evento: "conversacion_cerrada";
4999
+ conversacion: number;
5000
+ };
5001
+
5002
+ type ConHooks$1 = CoreModule | typeof reactHooksModuleName;
5003
+ interface OpcionesDeConversacionesAPI {
5004
+ /** Prefijo de los nombres de los endpoints y de la etiqueta de caché. Único en el `createApi`
5005
+ * de la app: un `injectEndpoints` con un nombre repetido se ignora en silencio. */
5006
+ clave?: string;
5007
+ /** Donde cuelgan `ConversacionView` y `MensajeView`. */
5008
+ endpointDeConversaciones?: string;
5009
+ endpointDeMensajes?: string;
5010
+ }
5011
+ /** Lo que devuelve `crearConversacionesAPI`. Los hooks van como `any`: sus nombres se arman en
5012
+ * tiempo de ejecución y TypeScript no los puede derivar. */
5013
+ interface ConversacionesAPI {
5014
+ /** `{ q?, soloNoVistos?, archivadas?, page? }` → `PaginaDeBandeja`: lo de las primeras `page`
5015
+ * páginas, siempre desde arriba. */
5016
+ useBandeja: any;
5017
+ /** `id` → `DetalleDeConversacion`. */
5018
+ useConversacion: any;
5019
+ /** `conversacion` → `MensajesDeConversacion`, del más viejo al más nuevo. */
5020
+ useMensajes: any;
5021
+ /** Trae la página anterior y la junta a `useMensajes`: `cargarAnteriores(conversacion)`. */
5022
+ useCargarAnteriores: () => [(conversacion: number) => Promise<void>, {
5023
+ isLoading: boolean;
5024
+ }];
5025
+ /** Trae páginas anteriores hasta que `mensaje` esté en el hilo, a lo más `tope`:
5026
+ * `cargarHasta(conversacion, mensaje, tope?)` → si quedó cargado. */
5027
+ useCargarHasta: () => [
5028
+ (conversacion: number, mensaje: number, tope?: number) => Promise<boolean>,
5029
+ {
5030
+ isLoading: boolean;
5031
+ }
5032
+ ];
5033
+ useEnviar: any;
5034
+ useAbrirDirecta: any;
5035
+ useCrearGrupo: any;
5036
+ useRenombrar: any;
5037
+ useAgregar: any;
5038
+ useQuitar: any;
5039
+ useSalir: any;
5040
+ useMarcarVisto: any;
5041
+ useSilenciar: any;
5042
+ /** `id`: avisa a los demás que se está escribiendo (lo manda el redactor, con pausa). */
5043
+ useEscribiendo: any;
5044
+ /** `{ id, archivada }`: a las archivadas o de regreso (sólo para quien lo hace). */
5045
+ useArchivar: any;
5046
+ /** `{ mensaje, para: "mi" | "todos" }`. */
5047
+ useBorrar: any;
5048
+ /** `{ mensaje, emoji }`: la pone, la cambia o (`""`) la quita. Una por persona. */
5049
+ useReaccionar: any;
5050
+ /** `{ mensaje, texto, menciones? }`: cambia el texto de uno propio. */
5051
+ useEditar: any;
5052
+ /** `{ mensaje: id, conversaciones: ids }` → los mensajes nuevos, uno por conversación. */
5053
+ useReenviar: any;
5054
+ /** `{ conversacion, q }` → `MensajeDeChat[]`, lo más nuevo primero (a lo más 50; `q` de 2 o más). */
5055
+ useBuscar: any;
5056
+ /** `{ conversacion, clase: "fotos" | "archivos", cursor? }` → `PaginaDeMedios` (las páginas se
5057
+ * juntan; sin `cursor`, vuelve a empezar). */
5058
+ useMedios: any;
5059
+ /** `{ id, fijada }`: arriba de la bandeja o de regreso (sólo para quien lo hace). */
5060
+ useFijar: any;
5061
+ /** Las listas de las que un grupo puede tomar integrantes. */
5062
+ useListasDisponibles: any;
5063
+ /** `{ id, listas }`: las listas que sigue el grupo (sólo un administrador). */
5064
+ usePonerListas: any;
5065
+ /** `id` de la conversación: vacía tu lado. */
5066
+ useVaciar: any;
5067
+ /** `id` de la conversación: la saca de tu bandeja (y te sales, si es grupo). */
5068
+ useEliminar: any;
5069
+ useContador: any;
5070
+ useCandidatos: any;
5071
+ useTiposDeReferencia: any;
5072
+ useReferencias: any;
5073
+ /** `{ id, miniatura?, descargar? }` → `Descarga` (URL de objeto del blob). */
5074
+ useArchivo: any;
5075
+ useArchivoLazy: any;
5076
+ /** Lo que llega por el socket bajo la llave `conversacion`: pone al día el caché. */
5077
+ aplicarEvento: (dispatch: (accion: any) => any, evento: EventoDeConversacion) => void;
5078
+ /** Al reconectar el socket: lo que pasó mientras tanto no llegó, así que se vuelve a pedir. */
5079
+ refrescar: (dispatch: (accion: any) => any) => void;
5080
+ }
5081
+ /**
5082
+ * Los endpoints del chat (`acv_core.conversaciones`), inyectados en el `createApi` de la app para
5083
+ * que viajen con su token y su reautenticación. Se llama una vez, al cargar el módulo:
5084
+ *
5085
+ * export const conversacionesAPI = crearConversacionesAPI(mainAPI);
5086
+ *
5087
+ * Lo que pasa en vivo llega por el socket de la campana bajo la llave `conversacion`; la app se lo
5088
+ * pasa a `aplicarEvento` y la fábrica pone al día la bandeja, el hilo y el contador.
5089
+ */
5090
+ declare const crearConversacionesAPI: <BaseQuery extends BaseQueryFn<string | FetchArgs, any, any, any, any>, Definiciones extends EndpointDefinitions, ReducerPath extends string, Tags extends string>(mainAPI: Api<BaseQuery, Definiciones, ReducerPath, Tags, ConHooks$1>, { clave, endpointDeConversaciones, endpointDeMensajes, }?: OpcionesDeConversacionesAPI) => ConversacionesAPI;
5091
+
5092
+ interface ContextoDeConversaciones {
5093
+ /** Lo que devolvió `crearConversacionesAPI`. */
5094
+ api: ConversacionesAPI;
5095
+ /** Abre la liga de un mensaje (en el portal, navegar a `referencia.url`). */
5096
+ abrirReferencia?: (referencia: Referencia) => void;
5097
+ /** Si se ofrece "Nuevo grupo". El servidor lo vuelve a revisar. */
5098
+ puedeCrearGrupos?: boolean;
5099
+ }
5100
+ /**
5101
+ * Lo que comparten las piezas del chat: la API de la app y lo que sólo ella sabe hacer (navegar a
5102
+ * una liga). Va una vez, arriba del panel:
5103
+ *
5104
+ * <ProveedorDeConversaciones api={conversacionesAPI} abrirReferencia={(r) => navigate(r.url)}>
5105
+ * <PanelDeConversaciones ... />
5106
+ * </ProveedorDeConversaciones>
5107
+ */
5108
+ declare const ProveedorDeConversaciones: ({ children, ...valor }: ContextoDeConversaciones & {
5109
+ children: ReactNode;
5110
+ }) => react_jsx_runtime.JSX.Element;
5111
+
5112
+ interface PanelDeConversacionesProps {
5113
+ abierto: boolean;
5114
+ /** La conversación abierta, o `null` para la bandeja. Lo guarda la app (Redux), para que
5115
+ * cualquier pantalla pueda abrir el panel en una conversación. */
5116
+ conversacion: number | null;
5117
+ onAbrir: (conversacion: number | null) => void;
5118
+ onCerrar: () => void;
5119
+ /** Dónde se recuerda el ancho arrastrado. */
5120
+ claveDeAncho?: string;
5121
+ /** Una liga que el redactor de `conversacion` trae puesta al abrirla ("Mensaje al operador"
5122
+ * desde la ficha del viaje). */
5123
+ ligaInicial?: ReferenciaElegible | null;
5124
+ }
5125
+ /**
5126
+ * El chat, acoplado a la derecha: la bandeja y, dentro, cada conversación. Encoge la página en vez
5127
+ * de taparla, así que se puede seguir trabajando mientras se contesta; en pantallas chicas vuelve a
5128
+ * flotar. Con el panel cerrado no se montan ni la bandeja ni el hilo ni se pide el detalle (los
5129
+ * diálogos sí, cerrados, y sin pedir nada).
5130
+ */
5131
+ declare const PanelDeConversaciones: ({ abierto, conversacion, onAbrir, onCerrar, claveDeAncho, ligaInicial, }: PanelDeConversacionesProps) => react_jsx_runtime.JSX.Element;
5132
+ /**
5133
+ * El botón de la barra superior, con cuántas conversaciones tienen algo nuevo. El contador se pone
5134
+ * al día por el socket; el sondeo lento sólo cubre un socket caído.
5135
+ *
5136
+ * Va dentro de una caja centrada porque la fila de la barra estira a sus hijos a lo alto, y un
5137
+ * `IconButton` estirado pinta el hover como óvalo. El icono es el de wms: `Forum`, y
5138
+ * `MarkChatUnread` cuando hay algo sin leer. `activo` (el panel abierto) lo pinta en color.
5139
+ */
5140
+ declare const BotonDeConversaciones: ({ onClick, activo, }: {
5141
+ onClick: () => void;
5142
+ activo?: boolean;
5143
+ }) => react_jsx_runtime.JSX.Element;
5144
+
5145
+ interface AvisoDeMensajesProps {
5146
+ /** La conversación que se está viendo en el panel (`null`: la bandeja). */
5147
+ conversacionAbierta: number | null;
5148
+ /** Si el panel está abierto. */
5149
+ panelAbierto: boolean;
5150
+ /** «Ver»: abre esa conversación. */
5151
+ onAbrir: (conversacion: number) => void;
5152
+ }
5153
+ /**
5154
+ * El aviso emergente de un mensaje nuevo, arriba a la derecha bajo el botón del chat: el título (el
5155
+ * autor, o el grupo) y lo que dijo, con «Ver». Uno a la vez: el nuevo reemplaza al anterior. No
5156
+ * avisa lo que ya se está viendo —la conversación abierta, o la bandeja con el panel abierto—, ni
5157
+ * lo que el backend no manda con `aviso` (lo propio, lo de sistema, lo silenciado).
5158
+ *
5159
+ * Va en teal y no en el color de las notificaciones para distinguirlos de un vistazo.
5160
+ */
5161
+ declare const AvisoDeMensajes: ({ conversacionAbierta, panelAbierto, onAbrir }: AvisoDeMensajesProps) => react_jsx_runtime.JSX.Element;
5162
+
4478
5163
  interface KpiCardProps {
4479
5164
  icon: ReactNode;
4480
5165
  label: string;
@@ -4512,13 +5197,32 @@ interface PanelProps {
4512
5197
  * divisor opcional y contenido. Unifica el aspecto de los paneles del dashboard. */
4513
5198
  declare function Panel({ icon, title, action, tabs, divider, height, sx, children }: PanelProps): react_jsx_runtime.JSX.Element;
4514
5199
 
5200
+ /**
5201
+ * Las opciones de RTK Query para algo que se refresca solo cada `pollingInterval` milisegundos
5202
+ * (un tablero, un contador): `useAlgoQuery(args, opcionesDeSondeo(60_000))`.
5203
+ *
5204
+ * `skipPollingIfUnfocused` detiene el sondeo mientras la pestaña está oculta o sin foco: uno
5205
+ * olvidado en segundo plano no tiene por qué pegarle al backend cada minuto. Como al volver el dato
5206
+ * ya pudo envejecer, `refetchOnFocus` lo refresca de inmediato (pide que el store llame
5207
+ * `setupListeners`, que es lo que emite los eventos de foco). Ese refresco pasa por `isFetching`,
5208
+ * así que `PollingCountdownChip` reinicia su cuenta solo.
5209
+ */
5210
+ declare const opcionesDeSondeo: (pollingInterval: number) => {
5211
+ readonly pollingInterval: number;
5212
+ readonly skipPollingIfUnfocused: true;
5213
+ readonly refetchOnFocus: true;
5214
+ };
5215
+
4515
5216
  interface PollingCountdownChipProps {
4516
5217
  pollingInterval: number;
4517
5218
  isFetching: boolean;
4518
5219
  onRefresh?: () => void;
4519
5220
  }
4520
5221
  /** Chip con cuenta regresiva hasta el próximo refresco de un polling. Al terminar cada
4521
- * fetch reinicia el conteo; opcionalmente refresca al hacer clic. */
5222
+ * fetch reinicia el conteo; opcionalmente refresca al hacer clic.
5223
+ *
5224
+ * La consulta que lo alimenta conviene pedirla con `opcionesDeSondeo(pollingInterval)`: no
5225
+ * sondea con la pestaña oculta y refresca al volver, que es cuando el chip reinicia. */
4522
5226
  declare function PollingCountdownChip({ pollingInterval, isFetching, onRefresh, }: PollingCountdownChipProps): react_jsx_runtime.JSX.Element;
4523
5227
 
4524
5228
  /**
@@ -4756,7 +5460,11 @@ interface UseServerGridOptions {
4756
5460
  query: any;
4757
5461
  /** Extra query args, deep-compared — object literals are safe. */
4758
5462
  args?: any;
4759
- /** Passed to the lazy hook (`{ pollingInterval }`, …). Also deep-compared. */
5463
+ /**
5464
+ * Passed to the lazy hook (`{ pollingInterval }`, …). Also deep-compared. With a
5465
+ * `pollingInterval`, `skipPollingIfUnfocused` defaults to `true`: a grid left in a background
5466
+ * tab stops hitting the backend (pass `false` to keep polling there).
5467
+ */
4760
5468
  queryOptions?: {
4761
5469
  [key: string]: any;
4762
5470
  };
@@ -5423,10 +6131,13 @@ interface ConfirmDialogProps {
5423
6131
  isLoading?: boolean;
5424
6132
  onConfirm: () => void;
5425
6133
  onClose: () => void;
6134
+ /** Ancho del diálogo a lo ancho de `maxWidth` (`"sm"`, `"md"`…). Sin él, el de siempre: lo
6135
+ * que pida el mensaje. Para un mensaje con un campo, que si no queda angosto. */
6136
+ maxWidth?: DialogProps["maxWidth"];
5426
6137
  }
5427
6138
  /** Diálogo de confirmación genérico: título, mensaje y un par de acciones. El botón de
5428
6139
  * confirmar puede mostrar estado de carga mientras se resuelve la acción. */
5429
- declare function ConfirmDialog({ open, titulo, mensaje, confirmLabel, cancelLabel, confirmColor, confirmIcon, isLoading, onConfirm, onClose, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
6140
+ declare function ConfirmDialog({ open, titulo, mensaje, confirmLabel, cancelLabel, confirmColor, confirmIcon, isLoading, onConfirm, onClose, maxWidth, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
5430
6141
 
5431
6142
  /**
5432
6143
  * El aspecto de una subsección: tarjeta con el fondo del papel, borde, sombra leve y esquinas
@@ -6534,6 +7245,37 @@ declare function createLiveSocketSession(options: LiveSocketSessionOptions): {
6534
7245
  };
6535
7246
  };
6536
7247
  type LiveSocketSession = ReturnType<typeof createLiveSocketSession>;
7248
+ /**
7249
+ * Runs `reconcile` on every `open` of `socket` **except the first one**: the socket doesn't replay
7250
+ * what arrived while it was down, so each reconnection has to ask the backend again, but the first
7251
+ * open is born together with the screen's own queries and would only fetch them twice. Returns the
7252
+ * function that removes the listener.
7253
+ *
7254
+ * Pair it with {@link createBatchedInvalidation}: a server that closes right after accepting
7255
+ * makes the socket reopen every few seconds, and each reopen would otherwise be a refetch.
7256
+ */
7257
+ declare function onReconnect(socket: Pick<WebSocket, "addEventListener" | "removeEventListener">, reconcile: () => void): () => void;
7258
+ /**
7259
+ * Collects RTK Query tags and invalidates them **once** after `delayMs` without new ones.
7260
+ *
7261
+ * A burst of socket frames (several notifications in a row, a chat catching up on its queue) used
7262
+ * to invalidate once per frame, and every invalidation refetched the bell, its counter, the threads
7263
+ * and the grid. The same tags are invalidated, only once per burst; repeated tags count once.
7264
+ *
7265
+ * ```ts
7266
+ * const lote = createBatchedInvalidation(dispatch, mainAPI.util.invalidateTags);
7267
+ * lote.add({ type: "notificaciones", id: "LIST" });
7268
+ * // on cacheEntryRemoved:
7269
+ * lote.cancel();
7270
+ * ```
7271
+ */
7272
+ declare function createBatchedInvalidation<Tag extends string | {
7273
+ type: string;
7274
+ id?: string | number;
7275
+ }>(dispatch: LiveSocketDispatch, invalidateTags: (tags: Tag[]) => unknown, delayMs?: number): {
7276
+ add: (...tags: Tag[]) => void;
7277
+ cancel: () => void;
7278
+ };
6537
7279
 
6538
7280
  /**
6539
7281
  * Lo que un lector de pantalla dice al reordenar con `@dnd-kit` (la prop `accessibility` de
@@ -6555,6 +7297,36 @@ declare const accesibilidadDeArrastre: ({ nombre, lugar, total, }: {
6555
7297
  screenReaderInstructions: ScreenReaderInstructions;
6556
7298
  };
6557
7299
 
7300
+ /**
7301
+ * El formato del dinero, en un solo lugar para todos los portales.
7302
+ *
7303
+ * Los importes del API no llegan listos para pintar: el backend los manda como **cadena**
7304
+ * (`DecimalField` de DRF) con la precisión con la que se *calcularon* (cuatro decimales en la
7305
+ * cobranza de wms), y unos cuantos endpoints además localizados, con separador de miles. Redondear
7306
+ * a los dos decimales que ve el usuario es cosa de quien pinta; tres formas de redondear eran tres
7307
+ * formas de enseñar un total distinto.
7308
+ *
7309
+ * `locale` es la etiqueta BCP-47 (`localeDeNumeros(locale)`); por omisión `es-MX`. `es-MX` y `en-US`
7310
+ * usan los mismos separadores, así que el resultado sólo cambia en otro idioma.
7311
+ */
7312
+ /**
7313
+ * Un importe del API a número, o `null` si no hay dato o no es un número.
7314
+ *
7315
+ * Quita las comas antes de convertir: `Number("1,234.5600")` es `NaN`, y así llega un importe
7316
+ * localizado. El punto es el separador decimal con el que localizan los backends (`es-MX`).
7317
+ */
7318
+ declare const aNumero: (valor: unknown) => number | null;
7319
+ /**
7320
+ * Un importe con separador de miles y dos decimales, **sin símbolo**: `1,234.56`; `null` sin dato,
7321
+ * para que cada pantalla decida cómo pintar el hueco. Es la forma de quien lleva la moneda en una
7322
+ * etiqueta aparte, que es lo correcto cuando conviven USD y MXN.
7323
+ */
7324
+ declare const monto: (valor: unknown, locale?: string) => string | null;
7325
+ /** El importe con el símbolo al frente: `$1,234.56`, y una raya cuando no hay dato. */
7326
+ declare const formatMoney: (valor: unknown, locale?: string) => string;
7327
+ /** El importe con símbolo y de cero a dos decimales —`$1,234.5`, `$1,234`—, o una raya. */
7328
+ declare const formatMoneySinCeros: (valor: unknown, locale?: string) => string;
7329
+
6558
7330
  /**
6559
7331
  * El contrato con el backend de reportes (`backend/reportes` en wms).
6560
7332
  *
@@ -8914,6 +9686,15 @@ declare const OPCIONES_DE_REFRESCO: readonly {
8914
9686
  value: string;
8915
9687
  label: string;
8916
9688
  }[];
9689
+ /**
9690
+ * Las opciones de `OPCIONES_DE_REFRESCO` de al menos `minimo` minutos: el piso del proyecto, que su
9691
+ * backend impone con `ACV_REFRESCO_MINIMO_DE_TABLEROS` (rechaza los de menos y sirve los viejos con
9692
+ * el primero permitido). Aquí sólo es para no ofrecer lo que el backend no aceptaría.
9693
+ */
9694
+ declare const opcionesDeRefresco: (minimo?: number) => {
9695
+ value: string;
9696
+ label: string;
9697
+ }[];
8917
9698
  /** Los minutos de `refrescar_cada` tal como llegan —`{value, label}`—, o `null` si es a mano. */
8918
9699
  declare const minutosDeRefresco: (refrescarCada: {
8919
9700
  value: string | number;
@@ -9002,6 +9783,11 @@ interface OpcionesDeSeccionesDeTablero {
9002
9783
  * acepta (`TableroBase.validar_parametros`).
9003
9784
  */
9004
9785
  editorDeParametros?: ControlledInput;
9786
+ /**
9787
+ * El intervalo más corto, en minutos, que se ofrece para refrescar solo: el mismo
9788
+ * `ACV_REFRESCO_MINIMO_DE_TABLEROS` del backend, que es quien lo impone. Por omisión, 1 (todos).
9789
+ */
9790
+ refrescoMinimo?: number;
9005
9791
  }
9006
9792
  /**
9007
9793
  * Las secciones de la ficha de un tablero: nombre, con quién se comparte, cada cuánto se refresca
@@ -9011,7 +9797,7 @@ interface OpcionesDeSeccionesDeTablero {
9011
9797
  * Sin editor de parámetros, su subsección **no se arma** (no se esconde con `display`): una
9012
9798
  * subsección escondida recorre otros hooks y la ficha truena con «Rendered more hooks».
9013
9799
  */
9014
- declare const seccionesDeTablero: ({ endpointDeGrupos, editorDeParametros, }: OpcionesDeSeccionesDeTablero) => {
9800
+ declare const seccionesDeTablero: ({ endpointDeGrupos, editorDeParametros, refrescoMinimo, }: OpcionesDeSeccionesDeTablero) => {
9015
9801
  display: boolean;
9016
9802
  label: string;
9017
9803
  subsections: ({
@@ -9124,7 +9910,7 @@ interface FichaDeTableroProps extends OpcionesDeSeccionesDeTablero {
9124
9910
  * Sólo el propietario lo edita: a los demás el backend les responde 404, que la página enseña como
9125
9911
  * «no encontrado».
9126
9912
  */
9127
- declare function FichaDeTablero({ type, id, api, rutaDeTableros, endpointDeGrupos, editorDeParametros, }: FichaDeTableroProps): react_jsx_runtime.JSX.Element;
9913
+ declare function FichaDeTablero({ type, id, api, rutaDeTableros, endpointDeGrupos, editorDeParametros, refrescoMinimo, }: FichaDeTableroProps): react_jsx_runtime.JSX.Element;
9128
9914
 
9129
9915
  /**
9130
9916
  * Las columnas de la lista de tableros. Sólo lectura, y **ninguna se filtra por columna**: el
@@ -9223,5 +10009,5 @@ declare function AlLlegarColumnas({ columnas, onColumnas, }: {
9223
10009
  onColumnas: (columnas: ColumnaDeReporte[]) => void;
9224
10010
  }): null;
9225
10011
 
9226
- export { ALTO_DE_RENGLON, ANCHO as ANCHO_DE_CONTROL, APIContext, APIProvider, SINGLE_ROW_SX as AUTOCOMPLETE_SINGLE_ROW_SX, AccionesDelTitulo, AccountMenuContent, ActiveCell, ActiveIcon, Adjuntos, AlLlegarColumnas, AvisoDeReporte, Base, BotonesDelArchivo, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, COLUMNAS as COLUMNAS_DEL_TABLERO, CSVUpload, CampoDeFecha, CampoDeParametro, CatalogoItem, CatalogoList, CellLink, ChipCell, ChipDeVisualizacion, CondicionDeReporte, ConfirmDialog, ContentBorderRadiusContext, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, ControlledCorreos, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSelectorDeGrupos, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CorridaDeReporte, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_CONTENT_BORDER_RADIUS, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DRAWER_Z_INDEX, Dato, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DetailPreview, DialogoDeNombre, Documento, DocumentosDelRegistro, DrawerGrid as DrawerGrid_v2, EMPTY_DETAIL_VALUE, ENCABEZADO_DE_CORTE, ENDPOINTS_DEL_REFRESCO, ENDPOINTS_DE_REPORTES, ENDPOINTS_DE_TABLEROS, ETIQUETAS_DE_VISUALIZACION, EXTENSIONES_ADMITIDAS, EditButton, EditorDeAgrupacion, EditorDeVisualizacion, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FILTERS_DRAWER_GAP, FORM_CONTAINER_NAME, FichaDeTablero, Fila as FilaDeReporte, FiltroDeReporte, FormularioDeParametros, GlobalSearch, GraficaDeResultados, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, HistorialDrawer, IconoDeVisualizacion, KpiCard, LAYER_ORDER, ListPage, Lista, ListaDeTableros, Loadable, LoadingComponent, LocaleContext, LocaleProvider, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, OPCIONES_DE_REFRESCO, ObjectProgressStack, Orilla, OverModalContext, OverModalProvider, PAGINA_DE_GRAFICA, PAGINA_INICIAL as PAGINA_INICIAL_DE_RESULTADOS, PESTANA_GENERAL, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, PaginaDeNovedades, PaginaLegal, Panel, Parrafo, PollingCountdownChip, ProgramacionDialog, ProgramacionesDelReporte, PulseDot, RENGLONES_MAXIMOS, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, Seccion$1 as Seccion, SeccionDeCondiciones, SeccionDeFiltros, SeccionDeOrdenYCompartir, Seccion as SeccionDeReporte, SeccionDeVisualizacion, SelectorDeGrupos, SelectorDeOpciones, SelectorDeOrden, SelectorRemoto, SelectorSiNo, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, SubirVariosArchivos, SubsectionCard, Subtitulo, TABLERO_VACIO, TAGS_DE_REPORTES, TAGS_DE_TABLEROS, TEXTOS, TabCounter, TablaDeResultados, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, VisorDeImagen, VistaDeResultados, VistaDeTablero, abrirEnOtraPestana, accesibilidadDeArrastre, agrupacionActiva, aplicarLocaleDeDayjs, avisoDeCorte, deReporte as borradorDeReporte, brightenForDark, buildEstadoTabs, changeTitle, closeProgressSnack, colorDelIcono, columnasDeCatalogo, columnasDeTableros, comoLista, composeGridProps, correosInvalidos, crearAdjuntosAPI, crearApiDeDocumentos, crearApiDeReportes, crearApiDeTableros, crearFabricaDeCatalogos, createLiveSocketSession, definicionDe, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, descargarArchivo, describirValor as describirValorDeParametro, drawerZIndex, editColumn, esCorreo, esGrafica, esRango as esRangoDeFechas, extensionDe, filterQuery, filtersPanelFrameSx, tieneValor as filtroConValor, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, helperTextFor, leerArchivoOAviso, leerDescarga, leerPrevia, llaveDeFiltrosCompartidos, llaveDe as llaveDeResultados, llavesDe as llavesDeFiltro, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, marcarNovedadesVistas, mergeSettings, minutosDeRefresco, mutationData, mutationId, mutationParams, nombreDeDescarga, nombreDePestana, nombresDeDocumentos, normalizarCorreos, openProgressSnack, origenDeOpciones, pageSizeOptions, paginaDeResultados, enOrden as panelesEnOrden, parametroVacio, parametrosFaltantes, porPestana, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, rutasDeDocumentos, schemaDeTablero, seccionesDeTablero, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, subsectionCardStyle, tags, textoDelRefresco, theme, tipoDeArchivo, togglableFields, updateProgressSnackData, useAPI, useAltoDisponible, useBorradorDeReporte, useColorMode, useContentBorderRadius, useDescargaDeReporte, useDetailForm, useHasPermission, useHasPermission_v2, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useNovedadesSinLeer, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useRememberedTab, useServerGrid, useSharedFilters, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, useTituloDePagina, valorInicial as valorInicialDeCondicion, valoresElegidos as valoresElegidosDeParametros, valoresIniciales as valoresInicialesDeParametros, valueLabel, conTipo as visualizacionConTipo, visualizacionDe, withCellLink };
9227
- export type { APIcontextProps, AccionesDelArchivo, AccountMenuContentProps, AccountMenuItem, AddressValue, AdjuntosAPI, AdjuntosProps, AgrupacionDeListado, ApiDeCorrida, ApiDeDocumentos, ApiDeProgramaciones, ApiDeReportes, ApiDeTableros, ApiInyectable, AppTheme, ArchivoDeReporte, AridadDeOperador, AutocompleteOption, AvisoDeExportacion, AvisoDeReporteProps, Borrador as BorradorDeReporte, BuildEstadoTabsOptions, CSVMenuOptionProps, Cambio, CambiosDeDocumento, CampoDeFuente, CampoDeParametroProps, CargarChangelog, CatalogoAPI, CatalogoDeParametros, CatalogoItemProps, CatalogoListProps, CellLinkProps, ChipCellProps, ChipColor, ChipOption, Clasificador, ColorMode, ColumnLink, ColumnaDeReporte, ComoOpcionesProps, CondicionDeListado, CondicionDeReporteProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledCorreosProps, ControlledInput, CorridaDeReporteProps, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeAdjuntos, DefinicionDeCatalogo, DefinicionDeListado, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, Descarga, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailPreviewProps, DetailPreviewRow, DetailRenderProps, DetalleDeDocumento, DialogoDeNombreProps, DocumentoDelRegistro, DocumentosDelRegistroProps, DocumentosElegidos, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EditorDeAgrupacionProps, EditorDeVisualizacionProps, EstadoDeFiltro, EstadoTabConfig, ExportCSVProps as ExportCSVProps_v2, ExtraButtonContext, ExtraCreateOptionProps, FichaDeTableroProps, FieldFilter, FieldPreview, FieldPreviewProps, FieldProps$1 as FieldProps, FieldValidationProps, FilaProps as FilaDeReporteProps, FilterInput, FiltroDeFuente, FiltroDeReporteProps, FormBreakpoint, FormGridSxOptions, FormularioDeParametrosProps, FormularioDeTablero, FuenteDeReporte, FuenteDeReporteResumida, GestionDeDocumentos, GlobalSearchOption, GlobalSearchProps, GraficaDeResultadosProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, ListaProps, LiveNotification, LiveSocketDispatch, LiveSocketSession, LiveSocketSessionOptions, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MensajeDeReporte, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NavegacionDelVisor, NotificationItemProps, NotificationsApi, NotificationsBellProps, OpcionDeClasificador, OpcionDeReporte, OpcionesDeApiDeDocumentos, OpcionesDeApiDeReportes, OpcionesDeApiDeTableros, OpcionesDeSeccionesDeTablero, OperadorDeCondicion, OrigenDeDestinatarios, OrigenDeResultados, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaDeNovedadesProps, PaginaDeResultados, PaginaDelBackend, PaginaLegalProps, PaginacionDeResultados, PanelDeTablero, PanelProps, ParametroDeReporte, PollingCountdownChipProps, ProgramacionDeReporte, ProgramacionDeReporteAGuardar, ProgramacionDialogProps, ProgramacionesDelReporteProps, ProgressStatusProps, PropsDeSeccion, PulseDotProps, RangoDeFechas, Release, ReporteDeListado, ReporteDisponible, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, ResultadosDeReporte, RowsSnapshot, RutasDePaginaLegal, RutasDeReportes, RutasDeTableros, RutasDelPortal, SeccionDeOrdenYCompartirProps, SeccionProps, SelectorDeGruposProps, SelectorDeOrdenProps, SelectorRemotoProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SessionTokens, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, SubidaDeArchivos, SubirVariosArchivosProps, SubsectionCardProps, TabCounterProps, TablaDeResultadosProps, Tablero, TagDeReportes, Textos, TextosDePaginaLegal, ThemeBackground, ThemeBrandColor, ThemeColors, TipoDeArchivo, TipoDeCambio, TipoDeColumna, TipoDeFiltro, TipoDeParametro, TipoDeVisualizacion, TiposDeListado, TiposDeReportes, UseColorModeResult, UseDescargarDocumentos, UseDescargarReporte, UseGuardarProgramacion, UseServerGridOptions, UseSubirArchivos, ValorDeCondicion, ValorDeFiltro, ValorDeParametro, ValoresDeParametros, VisorDeImagenProps, VistaDeResultadosProps, VistaDeTableroProps, VisualizacionDeReporte };
10012
+ export { ALTO_DE_RENGLON, ANCHO as ANCHO_DE_CONTROL, APIContext, APIProvider, SINGLE_ROW_SX as AUTOCOMPLETE_SINGLE_ROW_SX, AccionesDelTitulo, AccountMenuContent, ActiveCell, ActiveIcon, Adjuntos, AlLlegarColumnas, AvisoDeMensajes, AvisoDeReporte, Base, BotonDeConversaciones, BotonDelAsistente, BotonesDelArchivo, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, COLUMNAS as COLUMNAS_DEL_TABLERO, CSVUpload, CampoDeFecha, CampoDeParametro, CatalogoItem, CatalogoList, CellLink, ChipCell, ChipDeVisualizacion, CondicionDeReporte, ConfirmDialog, ContentBorderRadiusContext, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, ControlledCorreos, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSelectorDeGrupos, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CorridaDeReporte, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_CONTENT_BORDER_RADIUS, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DRAWER_Z_INDEX, Dato, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DetailPreview, DialogoDeNombre, Documento, DocumentosDelRegistro, DrawerGrid as DrawerGrid_v2, EMPTY_DETAIL_VALUE, ENCABEZADO_DE_CORTE, ENDPOINTS_DEL_REFRESCO, ENDPOINTS_DE_REPORTES, ENDPOINTS_DE_TABLEROS, ETIQUETAS_DE_VISUALIZACION, EXTENSIONES_ADMITIDAS, EditButton, EditorDeAgrupacion, EditorDeVisualizacion, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FILTERS_DRAWER_GAP, FORM_CONTAINER_NAME, FichaDeTablero, Fila as FilaDeReporte, FiltroDeReporte, FormularioDeParametros, GlobalSearch, GraficaDeResultados, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, HistorialDrawer, IconoDeVisualizacion, InsigniaQueLate, KpiCard, LAYER_ORDER, ListPage, Lista, ListaDeTableros, Loadable, LoadingComponent, LocaleContext, LocaleProvider, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, OPCIONES_DE_REFRESCO, ObjectProgressStack, Orilla, OverModalContext, OverModalProvider, PAGINA_DE_GRAFICA, PAGINA_INICIAL as PAGINA_INICIAL_DE_RESULTADOS, PESTANA_GENERAL, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, PaginaDeNovedades, PaginaLegal, Panel, PanelDeConversaciones, PanelDelAsistente, Parrafo, PollingCountdownChip, ProgramacionDialog, ProgramacionesDelReporte, ProveedorDeConversaciones, PulseDot, RENGLONES_MAXIMOS, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, Seccion$1 as Seccion, SeccionDeCondiciones, SeccionDeFiltros, SeccionDeOrdenYCompartir, Seccion as SeccionDeReporte, SeccionDeVisualizacion, SelectorDeGrupos, SelectorDeOpciones, SelectorDeOrden, SelectorRemoto, SelectorSiNo, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, SubirVariosArchivos, SubsectionCard, Subtitulo, TABLERO_VACIO, TAGS_DE_REPORTES, TAGS_DE_TABLEROS, TEXTOS, TabCounter, TablaDeResultados, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, VisorDeImagen, VistaDeResultados, VistaDeTablero, aNumero, abrirEnOtraPestana, accesibilidadDeArrastre, agrupacionActiva, aplicarLocaleDeDayjs, avisoDeCorte, deReporte as borradorDeReporte, brightenForDark, buildEstadoTabs, changeTitle, closeProgressSnack, colorDelIcono, columnasDeCatalogo, columnasDeTableros, comoLista, composeGridProps, correosInvalidos, crearAdjuntosAPI, crearApiDeDocumentos, crearApiDeReportes, crearApiDeTableros, crearAsistenteAPI, crearConversacionesAPI, crearFabricaDeCatalogos, createBatchedInvalidation, createLiveSocketSession, definicionDe, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, descargarArchivo, describirValor as describirValorDeParametro, drawerZIndex, editColumn, esCorreo, esGrafica, esRango as esRangoDeFechas, extensionDe, filterQuery, filtersPanelFrameSx, tieneValor as filtroConValor, formContainerSx, formGridSx, formParser, formatMoney, formatMoneySinCeros, headerContainerSx, _default as headerReducer, helperTextFor, leerArchivoOAviso, leerDescarga, leerPrevia, llaveDeFiltrosCompartidos, llaveDeGrilla, llaveDe as llaveDeResultados, llavesDe as llavesDeFiltro, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, marcarNovedadesVistas, mergeSettings, minutosDeRefresco, monto, mutationData, mutationId, mutationParams, nombreDeDescarga, nombreDePestana, nombresDeDocumentos, normalizarCorreos, onReconnect, opcionesDeRefresco, opcionesDeSondeo, openProgressSnack, origenDeOpciones, pageSizeOptions, paginaDeResultados, enOrden as panelesEnOrden, parametroVacio, parametrosFaltantes, porPestana, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, rutasDeDocumentos, schemaDeTablero, seccionesDeTablero, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, subsectionCardStyle, tags, textoDelRefresco, theme, tipoDeArchivo, togglableFields, updateProgressSnackData, useAPI, useAltoDisponible, useBorradorDeReporte, useColorMode, useContentBorderRadius, useDescargaDeReporte, useDetailForm, useHasPermission, useHasPermission_v2, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useNovedadesSinLeer, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useRememberedTab, useServerGrid, useSharedFilters, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, useTituloDePagina, valorInicial as valorInicialDeCondicion, valoresElegidos as valoresElegidosDeParametros, valoresIniciales as valoresInicialesDeParametros, valueLabel, conTipo as visualizacionConTipo, visualizacionDe, withCellLink };
10013
+ export type { APIcontextProps, AccionesDelArchivo, AccountMenuContentProps, AccountMenuItem, AddressValue, AdjuntosAPI, AdjuntosProps, AgrupacionDeListado, ApiDeCorrida, ApiDeDocumentos, ApiDeProgramaciones, ApiDeReportes, ApiDeTableros, ApiInyectable, AppTheme, ArchivoDeReporte, AridadDeOperador, AsistenteAPI, AutocompleteOption, AvisoDeExportacion, AvisoDeMensaje, AvisoDeMensajesProps, AvisoDeReporteProps, Borrador as BorradorDeReporte, BuildEstadoTabsOptions, BurbujaDelAsistente, CSVMenuOptionProps, Cambio, CambiosDeDocumento, CampoDeFuente, CampoDeParametroProps, CargarChangelog, CatalogoAPI, CatalogoDeParametros, CatalogoItemProps, CatalogoListProps, CategoriaDeSugerencias, CellLinkProps, ChipCellProps, ChipColor, ChipOption, Clasificador, ColorMode, ColumnLink, ColumnaDeReporte, ComoOpcionesProps, CondicionDeListado, CondicionDeReporteProps, ConfirmDialogProps, ContextoDeConversaciones, ControlledAutocompleteProps, ControlledCorreosProps, ControlledInput, ConversacionDelAsistente, ConversacionesAPI, CorridaDeReporteProps, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeAdjuntos, DefinicionDeCatalogo, DefinicionDeListado, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, Descarga, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailPreviewProps, DetailPreviewRow, DetailRenderProps, DetalleDeConversacionDelAsistente, DetalleDeDocumento, DialogoDeNombreProps, DocumentoDelRegistro, DocumentosDelRegistroProps, DocumentosElegidos, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EditorDeAgrupacionProps, EditorDeVisualizacionProps, EstadoDeFiltro, EstadoTabConfig, EventoDeConversacion, EventoDelAsistente, ExportCSVProps as ExportCSVProps_v2, ExtraButtonContext, ExtraCreateOptionProps, FichaDeTableroProps, FieldFilter, FieldPreview, FieldPreviewProps, FieldProps$1 as FieldProps, FieldValidationProps, FilaProps as FilaDeReporteProps, FilterInput, FiltroDeFuente, FiltroDeReporteProps, FormBreakpoint, FormGridSxOptions, FormularioDeParametrosProps, FormularioDeTablero, FuenteDeReporte, FuenteDeReporteResumida, GestionDeDocumentos, GlobalSearchOption, GlobalSearchProps, GraficaDeResultadosProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, GrupoDeSugerencias, HiddenPageHeaderHost, InsigniaDeCatalogo, InsigniaQueLateProps, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, LigaDelAsistente, ListaProps, LiveNotification, LiveSocketDispatch, LiveSocketSession, LiveSocketSessionOptions, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MensajeDeChat, MensajeDeReporte, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NavegacionDelVisor, NotificationItemProps, NotificationsApi, NotificationsBellProps, OpcionDeClasificador, OpcionDeReporte, OpcionesDeApiDeDocumentos, OpcionesDeApiDeReportes, OpcionesDeApiDeTableros, OpcionesDeAsistenteAPI, OpcionesDeConversacionesAPI, OpcionesDeSeccionesDeTablero, OperadorDeCondicion, OrigenDeDestinatarios, OrigenDeResultados, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaDeNovedadesProps, PaginaDeResultados, PaginaDelBackend, PaginaLegalProps, PaginacionDeResultados, PanelDeConversacionesProps, PanelDeTablero, PanelDelAsistenteProps, PanelProps, ParametroDeReporte, PollingCountdownChipProps, ProgramacionDeReporte, ProgramacionDeReporteAGuardar, ProgramacionDialogProps, ProgramacionesDelReporteProps, ProgressStatusProps, PropsDeSeccion, PulseDotProps, RangoDeFechas, Referencia, ReferenciaElegible, Release, ReporteDeListado, ReporteDisponible, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, ResultadosDeReporte, RowsSnapshot, RutasDePaginaLegal, RutasDeReportes, RutasDeTableros, RutasDelPortal, SeccionDeOrdenYCompartirProps, SeccionProps, SelectorDeGruposProps, SelectorDeOrdenProps, SelectorRemotoProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SessionTokens, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, SubidaDeArchivos, SubirVariosArchivosProps, SubsectionCardProps, SugerenciaDelAsistente, TabCounterProps, TablaDeResultadosProps, Tablero, TagDeReportes, Textos, TextosDePaginaLegal, ThemeBackground, ThemeBrandColor, ThemeColors, TipoDeArchivo, TipoDeCambio, TipoDeColumna, TipoDeFiltro, TipoDeParametro, TipoDeVisualizacion, TiposDeListado, TiposDeReportes, UseColorModeResult, UseDescargarDocumentos, UseDescargarReporte, UseGuardarProgramacion, UseServerGridOptions, UseSubirArchivos, ValorDeCondicion, ValorDeFiltro, ValorDeParametro, ValoresDeParametros, VisorDeImagenProps, VistaDeResultadosProps, VistaDeTableroProps, VisualizacionDeReporte };