@acvl/frontend-components 0.0.124 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +2193 -105
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
|
-
import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, ToggleButtonGroupProps, GridProps, DrawerProps, SxProps, Theme, StackProps, TypographyProps, MenuProps, PaletteColorOptions, TextFieldProps as TextFieldProps$1, DialogProps, DialogContentProps } from '@mui/material';
|
|
2
|
+
import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, ToggleButtonGroupProps, GridProps, DrawerProps, SxProps, Theme, StackProps, TypographyProps, MenuProps, PaletteColorOptions, TextFieldProps as TextFieldProps$1, DialogProps, DialogContentProps, ChipProps, SvgIconProps } from '@mui/material';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject, FC,
|
|
4
|
+
import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject, FC, ComponentType, ReactElement, BaseSyntheticEvent, JSXElementConstructor, ElementType } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { GridRowId,
|
|
6
|
+
import { GridRowId, GridSortModel, GridFilterModel, GridRowSelectionModel, GridRowModesModel, GridRenderEditCellParams, GridToolbarProps, DataGridProps as DataGridProps$1, GridColDef, GridPaginationModel, GridColumnVisibilityModel, GridApi, useGridApiRef } from '@mui/x-data-grid';
|
|
7
7
|
import { DataGridProps, GridBaseColDef } from '@mui/x-data-grid/internals';
|
|
8
8
|
import { NavigateOptions } from 'react-router-dom';
|
|
9
9
|
import * as zod_v4_core from 'zod/v4/core';
|
|
@@ -18,14 +18,16 @@ 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
20
|
import { Theme as Theme$1, CssVarsTheme, CSSObject } from '@mui/material/styles';
|
|
21
|
+
import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
|
|
21
22
|
import { BaseQueryFn, FetchArgs, EndpointDefinitions, Api, CoreModule } from '@reduxjs/toolkit/query';
|
|
22
23
|
import { reactHooksModuleName } from '@reduxjs/toolkit/query/react';
|
|
23
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
24
|
+
import { Control, UseFormReturn } from 'react-hook-form';
|
|
24
25
|
import { DebouncedFunc } from 'lodash';
|
|
25
26
|
import { Breadcrumb, PageHeaderProps, Navigation, Branding, Session, Authentication, DashboardHeaderProps } from '@toolpad/core';
|
|
26
27
|
import { SidebarFooterProps } from '@toolpad/core/DashboardLayout';
|
|
27
28
|
import { Mutex } from 'async-mutex';
|
|
28
29
|
import ReconnectingWebSocket from 'reconnecting-websocket';
|
|
30
|
+
import { UniqueIdentifier, Announcements, ScreenReaderInstructions } from '@dnd-kit/core';
|
|
29
31
|
|
|
30
32
|
interface NormalOrIconProps {
|
|
31
33
|
buttonProps: ButtonProps;
|
|
@@ -2410,6 +2412,49 @@ interface ControlledColorProps {
|
|
|
2410
2412
|
*/
|
|
2411
2413
|
declare const ControlledColor: ControlledInput<ControlledColorProps>;
|
|
2412
2414
|
|
|
2415
|
+
declare const esCorreo: (correo: string) => boolean;
|
|
2416
|
+
/**
|
|
2417
|
+
* La lista que queda: cada texto partido por sus separadores, sin espacios, en minúsculas y sin
|
|
2418
|
+
* repetidos (el primero gana su lugar). Así un pegado de «a@x.com, B@x.com» son dos chips, y
|
|
2419
|
+
* escribir el mismo correo dos veces no lo manda dos veces.
|
|
2420
|
+
*/
|
|
2421
|
+
declare const normalizarCorreos: (textos: readonly string[]) => string[];
|
|
2422
|
+
/** Los que no parecen correos, para decirlos en la ayuda y pintar su chip en rojo. */
|
|
2423
|
+
declare const correosInvalidos: (correos: readonly string[]) => string[];
|
|
2424
|
+
|
|
2425
|
+
interface ControlledCorreosProps {
|
|
2426
|
+
name: string;
|
|
2427
|
+
/** Etiqueta en el borde del campo (la pasa el `Field` contenedor, ver `labelInside`). */
|
|
2428
|
+
label?: string;
|
|
2429
|
+
/** Control de react-hook-form; lo inyecta el `EditField`. */
|
|
2430
|
+
control?: Control<any>;
|
|
2431
|
+
fieldProps?: {
|
|
2432
|
+
helperText?: string;
|
|
2433
|
+
placeholder?: string;
|
|
2434
|
+
disabled?: boolean;
|
|
2435
|
+
required?: boolean;
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Una lista de correos escritos a mano —de fuera del sistema: clientes, proveedores—, cada uno
|
|
2440
|
+
* en su chip. El valor es `string[]`.
|
|
2441
|
+
*
|
|
2442
|
+
* - Se confirman con Enter, y lo que se quedó escrito al salir del campo también entra: no se
|
|
2443
|
+
* pierde un correo por no haber pulsado Enter.
|
|
2444
|
+
* - Se pueden pegar varios de una vez, separados por coma, punto y coma, espacios o renglones.
|
|
2445
|
+
* - Se guardan sin espacios, en minúsculas y sin repetidos (`normalizarCorreos`).
|
|
2446
|
+
* - Uno que no parece correo se pinta en rojo y la ayuda dice cuál. **No lo bloquea**: eso es del
|
|
2447
|
+
* esquema del formulario (`esCorreo`), que decide si lo deja guardar.
|
|
2448
|
+
*
|
|
2449
|
+
* {
|
|
2450
|
+
* name: "correos_externos",
|
|
2451
|
+
* label: "Correos de fuera del sistema",
|
|
2452
|
+
* type: ControlledCorreos,
|
|
2453
|
+
* fieldProps: { helperText: "Cada quien recibe su propio correo." },
|
|
2454
|
+
* }
|
|
2455
|
+
*/
|
|
2456
|
+
declare const ControlledCorreos: ControlledInput<ControlledCorreosProps>;
|
|
2457
|
+
|
|
2413
2458
|
/**
|
|
2414
2459
|
* `ControlledDate` de v2. Reutiliza el renderizado de edición de v1 (no se
|
|
2415
2460
|
* duplica su lógica) y añade el renderizado de detalle mediante `formatDetail`,
|
|
@@ -2440,6 +2485,59 @@ declare const ControlledSelect: ControlledInput;
|
|
|
2440
2485
|
*/
|
|
2441
2486
|
declare const ControlledFileField: ControlledInput;
|
|
2442
2487
|
|
|
2488
|
+
/**
|
|
2489
|
+
* Lo que recibe el `preview` de un campo de detalle: el FK al que apunta el campo.
|
|
2490
|
+
*
|
|
2491
|
+
* - `value`: el id del registro relacionado (el `value` de la opción).
|
|
2492
|
+
* - `option`: la opción completa (`{value, label, …}`), por si el label ya basta para algo.
|
|
2493
|
+
* - `data`: el registro completo de la página, para leer valores hermanos.
|
|
2494
|
+
*/
|
|
2495
|
+
interface FieldPreviewProps {
|
|
2496
|
+
value: string | number;
|
|
2497
|
+
option: any;
|
|
2498
|
+
data?: any;
|
|
2499
|
+
}
|
|
2500
|
+
/**
|
|
2501
|
+
* La vista previa de un FK: un componente, no un nodo, para que el consumidor pida el registro con
|
|
2502
|
+
* su propio hook. Sólo se monta cuando el tooltip se abre, así que la petición sale al primer hover.
|
|
2503
|
+
*/
|
|
2504
|
+
type FieldPreview = ComponentType<FieldPreviewProps>;
|
|
2505
|
+
interface DetailPreviewRow {
|
|
2506
|
+
label: string;
|
|
2507
|
+
value?: ReactNode;
|
|
2508
|
+
}
|
|
2509
|
+
interface DetailPreviewProps {
|
|
2510
|
+
/** Encabezado de la tarjeta; normalmente el nombre del registro. */
|
|
2511
|
+
title?: ReactNode;
|
|
2512
|
+
/** Renglones etiqueta/valor. Los vacíos (`null`, `undefined`, `""`) no se pintan. */
|
|
2513
|
+
rows?: DetailPreviewRow[];
|
|
2514
|
+
/** Mientras llega el registro, la tarjeta enseña esqueletos en lugar de los renglones. */
|
|
2515
|
+
loading?: boolean;
|
|
2516
|
+
/** Texto en lugar de los renglones, p. ej. cuando el registro no se pudo leer. */
|
|
2517
|
+
message?: ReactNode;
|
|
2518
|
+
/** Contenido libre debajo de los renglones. */
|
|
2519
|
+
children?: ReactNode;
|
|
2520
|
+
}
|
|
2521
|
+
/**
|
|
2522
|
+
* Tarjeta para el contenido del tooltip de vista previa de un campo de detalle. Da a todas las
|
|
2523
|
+
* vistas previas el mismo aspecto: título, y renglones con la etiqueta en el estilo de las de
|
|
2524
|
+
* `Field` (caption en mayúsculas) y el valor debajo.
|
|
2525
|
+
*
|
|
2526
|
+
* ```tsx
|
|
2527
|
+
* const InfoFacturacionPreview = ({ value }: FieldPreviewProps) => {
|
|
2528
|
+
* const { data, isFetching } = useGetInfoFacturacionItemQuery({ id: value });
|
|
2529
|
+
* return (
|
|
2530
|
+
* <DetailPreview
|
|
2531
|
+
* title={data?.razon_social}
|
|
2532
|
+
* loading={isFetching && !data}
|
|
2533
|
+
* rows={[{ label: "RFC / Tax ID", value: data?.rfc_tax_id }]}
|
|
2534
|
+
* />
|
|
2535
|
+
* );
|
|
2536
|
+
* };
|
|
2537
|
+
* ```
|
|
2538
|
+
*/
|
|
2539
|
+
declare const DetailPreview: ({ title, rows, loading, message, children }: DetailPreviewProps) => react_jsx_runtime.JSX.Element;
|
|
2540
|
+
|
|
2443
2541
|
interface FieldProps {
|
|
2444
2542
|
pageType?: PageType;
|
|
2445
2543
|
fieldData?: any;
|
|
@@ -2463,6 +2561,19 @@ interface FieldProps {
|
|
|
2463
2561
|
url: string;
|
|
2464
2562
|
permission: string;
|
|
2465
2563
|
};
|
|
2564
|
+
/**
|
|
2565
|
+
* Vista previa del registro al que apunta un FK (`{value, label}`): al pasar el puntero por el
|
|
2566
|
+
* valor en detalle se abre un tooltip con `component`, que recibe el `value`. Sólo se monta
|
|
2567
|
+
* al abrirse, así que puede pedir el registro con su propio hook. Convive con `navigation`.
|
|
2568
|
+
* Para el contenido, `DetailPreview` da el aspecto común.
|
|
2569
|
+
*
|
|
2570
|
+
* Como en `navigation`, `permission` es la ruta del permiso del registro relacionado: el
|
|
2571
|
+
* tooltip sólo aparece con `${permission}.view`, que es lo que pide leerlo.
|
|
2572
|
+
*/
|
|
2573
|
+
preview?: {
|
|
2574
|
+
component: FieldPreview;
|
|
2575
|
+
permission: string;
|
|
2576
|
+
};
|
|
2466
2577
|
permission?: string;
|
|
2467
2578
|
display?: boolean;
|
|
2468
2579
|
}
|
|
@@ -2573,7 +2684,7 @@ interface DefinicionDeCatalogo {
|
|
|
2573
2684
|
}
|
|
2574
2685
|
|
|
2575
2686
|
/** Los módulos de un `createApi` de `@reduxjs/toolkit/query/react`: el núcleo y los hooks. */
|
|
2576
|
-
type ConHooks = CoreModule | typeof reactHooksModuleName;
|
|
2687
|
+
type ConHooks$1 = CoreModule | typeof reactHooksModuleName;
|
|
2577
2688
|
/**
|
|
2578
2689
|
* Los cuatro hooks de un catálogo simple.
|
|
2579
2690
|
*
|
|
@@ -2624,7 +2735,7 @@ type CrearCatalogoAPI = (definicion: DefinicionDeCatalogo) => CatalogoAPI;
|
|
|
2624
2735
|
* Se llama al cargar el módulo, una vez por catálogo, y no dentro de un componente: cada llamada
|
|
2625
2736
|
* inyecta endpoints en el store.
|
|
2626
2737
|
*/
|
|
2627
|
-
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>) => CrearCatalogoAPI;
|
|
2738
|
+
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$1>) => CrearCatalogoAPI;
|
|
2628
2739
|
|
|
2629
2740
|
/**
|
|
2630
2741
|
* Las columnas de un catálogo simple: código, nombre, las propias que declare, descripción y
|
|
@@ -4969,6 +5080,82 @@ interface ListaProps extends ConHijos {
|
|
|
4969
5080
|
/** Una lista de `<li>`. */
|
|
4970
5081
|
declare const Lista: ({ children, numerada }: ListaProps) => react_jsx_runtime.JSX.Element;
|
|
4971
5082
|
|
|
5083
|
+
/**
|
|
5084
|
+
* La forma del changelog que cada portal escribe a mano y le pasa a `PaginaDeNovedades` y a
|
|
5085
|
+
* `useNovedadesSinLeer`. El contenido es del portal; la librería sólo lo pinta.
|
|
5086
|
+
*
|
|
5087
|
+
* Tres reglas que la página y el aviso de no leídas dan por hechas:
|
|
5088
|
+
*
|
|
5089
|
+
* 1. La lista va **de más nueva a más vieja**. La primera entrada es la que se marca como "Más
|
|
5090
|
+
* reciente", la que arranca desplegada y la que decide si el punto de aviso del pie del menú se
|
|
5091
|
+
* enciende (ver `novedadesVistas.ts`).
|
|
5092
|
+
* 2. `fecha` identifica la entrada y tiene que ser **única**: es el valor que se guarda como "ya lo
|
|
5093
|
+
* vio" en `localStorage`. Dos publicaciones el mismo día van en la misma entrada.
|
|
5094
|
+
* 3. `cambios` va plano; la página lo agrupa sola por módulo y por tipo. El orden de los módulos
|
|
5095
|
+
* sale del orden en que aparecen escritos, así que lo más importante de cada fecha va primero.
|
|
5096
|
+
*
|
|
5097
|
+
* Se agrupa por fecha y no por número de versión porque es lo que le sirve al usuario ("qué cambió
|
|
5098
|
+
* desde la última vez que entré"); el tag `vX.Y.Z` sigue siendo la referencia interna del release.
|
|
5099
|
+
**/
|
|
5100
|
+
/** Naturaleza del cambio; define el icono y el color con el que se pinta. */
|
|
5101
|
+
type TipoDeCambio = "nuevo" | "mejora" | "correccion";
|
|
5102
|
+
interface Cambio {
|
|
5103
|
+
tipo: TipoDeCambio;
|
|
5104
|
+
/** Módulo del portal al que pertenece (Órdenes de envío, Viajes, General, ...). */
|
|
5105
|
+
modulo: string;
|
|
5106
|
+
/** Redacción para el usuario final, no el mensaje del commit. */
|
|
5107
|
+
texto: string;
|
|
5108
|
+
}
|
|
5109
|
+
interface Release {
|
|
5110
|
+
/** Fecha de publicación en ISO (`YYYY-MM-DD`). Identifica la entrada. */
|
|
5111
|
+
fecha: string;
|
|
5112
|
+
/** Titular de la publicación; se muestra al desplegarla. */
|
|
5113
|
+
resumen?: string;
|
|
5114
|
+
cambios: Cambio[];
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
/**
|
|
5118
|
+
* Notas de versión de un portal, una tarjeta desplegable por fecha de publicación (de la más nueva
|
|
5119
|
+
* a la más vieja) y dentro agrupadas por módulo y por tipo de cambio. El contenido es del portal:
|
|
5120
|
+
* llega entero por `changelog` (ver `tipos.ts` para sus reglas).
|
|
5121
|
+
*
|
|
5122
|
+
* Al abrir la página se marca la última publicación como leída, que es lo que apaga el punto de
|
|
5123
|
+
* aviso del pie del menú de navegación (`useNovedadesSinLeer`).
|
|
5124
|
+
*
|
|
5125
|
+
* Va dentro del `MainLayout`: el título y las migas los pone el layout a partir de la navigation
|
|
5126
|
+
* del portal, así que la página no pinta encabezado propio.
|
|
5127
|
+
**/
|
|
5128
|
+
interface PaginaDeNovedadesProps {
|
|
5129
|
+
/** Las publicaciones, de la más nueva a la más vieja. */
|
|
5130
|
+
changelog: readonly Release[];
|
|
5131
|
+
}
|
|
5132
|
+
declare const PaginaDeNovedades: ({ changelog }: PaginaDeNovedadesProps) => react_jsx_runtime.JSX.Element;
|
|
5133
|
+
|
|
5134
|
+
/** Deja registrado que el usuario ya abrió las novedades de `fecha`. */
|
|
5135
|
+
declare const marcarNovedadesVistas: (fecha: string) => void;
|
|
5136
|
+
/** Cómo pide el portal su changelog: un `import()` dinámico, para que no viaje en el bundle principal. */
|
|
5137
|
+
type CargarChangelog = () => Promise<readonly Release[]>;
|
|
5138
|
+
/**
|
|
5139
|
+
* `true` mientras la última publicación del changelog no coincida con la que el usuario abrió
|
|
5140
|
+
* por última vez. Se apaga sola cuando `PaginaDeNovedades` se monta, sin recargar.
|
|
5141
|
+
*
|
|
5142
|
+
* **Recibe cómo cargar el changelog, no el changelog.** Lo usa el `MainLayout`, que está en el
|
|
5143
|
+
* bundle principal: con el arreglo importado de forma estática, todo el historial (cientos de KB
|
|
5144
|
+
* con el tiempo) viajaría en la primera carga de cada pantalla sólo para leer una fecha. Con un
|
|
5145
|
+
* `import()`, el bundler lo saca a su propio chunk —el mismo que usa la página de Novedades— y se
|
|
5146
|
+
* pide después del primer render; el punto aparece un instante más tarde, nada más.
|
|
5147
|
+
*
|
|
5148
|
+
* `cargar` tiene que ser estable: declárala a nivel de módulo, no dentro del componente, o se
|
|
5149
|
+
* volvería a pedir en cada render. Si la carga falla, el punto se queda apagado.
|
|
5150
|
+
*
|
|
5151
|
+
* @example
|
|
5152
|
+
* const cargarChangelog = () => import("../novedades/changelog.ts").then((m) => m.CHANGELOG);
|
|
5153
|
+
* // dentro del layout:
|
|
5154
|
+
* const hayNovedades = useNovedadesSinLeer(cargarChangelog);
|
|
5155
|
+
* <MainLayout footer={{ releaseNotesUrl: "/novedades", hasUnreadReleaseNotes: hayNovedades }} />
|
|
5156
|
+
**/
|
|
5157
|
+
declare const useNovedadesSinLeer: (cargar: CargarChangelog) => boolean;
|
|
5158
|
+
|
|
4972
5159
|
/**
|
|
4973
5160
|
* Encabezado por defecto del `PageContainer`: resuelve título y breadcrumbs a
|
|
4974
5161
|
* partir de `useActivePage`, con soporte para páginas "sueltas" (rutas que ya no
|
|
@@ -5785,6 +5972,26 @@ declare function createLiveSocketSession(options: LiveSocketSessionOptions): {
|
|
|
5785
5972
|
};
|
|
5786
5973
|
type LiveSocketSession = ReturnType<typeof createLiveSocketSession>;
|
|
5787
5974
|
|
|
5975
|
+
/**
|
|
5976
|
+
* Lo que un lector de pantalla dice al reordenar con `@dnd-kit` (la prop `accessibility` de
|
|
5977
|
+
* `DndContext`), en español: los textos de la librería vienen en inglés y nombran los elementos por
|
|
5978
|
+
* su id («Draggable item 12 was dropped over droppable area 7»).
|
|
5979
|
+
*
|
|
5980
|
+
* `nombre` dice cómo se llama cada elemento tal como se lee en una oración («el panel «Ventas»»);
|
|
5981
|
+
* con `lugar` y `total`, también en qué posición queda.
|
|
5982
|
+
*
|
|
5983
|
+
* <DndContext accessibility={accesibilidadDeArrastre({ nombre: (id) => … })} …>
|
|
5984
|
+
*/
|
|
5985
|
+
declare const accesibilidadDeArrastre: ({ nombre, lugar, total, }: {
|
|
5986
|
+
nombre: (id: UniqueIdentifier) => string;
|
|
5987
|
+
/** La posición de un elemento, desde 1. */
|
|
5988
|
+
lugar?: (id: UniqueIdentifier) => number;
|
|
5989
|
+
total?: number;
|
|
5990
|
+
}) => {
|
|
5991
|
+
announcements: Announcements;
|
|
5992
|
+
screenReaderInstructions: ScreenReaderInstructions;
|
|
5993
|
+
};
|
|
5994
|
+
|
|
5788
5995
|
/**
|
|
5789
5996
|
* El contrato con el backend de reportes (`backend/reportes` en wms).
|
|
5790
5997
|
*
|
|
@@ -6045,6 +6252,334 @@ interface ReporteDeListado extends DefinicionDeListado {
|
|
|
6045
6252
|
actualizado_en: string;
|
|
6046
6253
|
}
|
|
6047
6254
|
|
|
6255
|
+
/**
|
|
6256
|
+
* Un reporte en pantalla: columnas y renglones, sea cual sea el tipo de reporte que los produjo.
|
|
6257
|
+
*
|
|
6258
|
+
* No pide nada: pinta los `resultados` que le dan. Con `paginacion` pagina en el servidor (quien
|
|
6259
|
+
* la usa pide la página que la tabla le dice); sin ella, pagina en el navegador lo que llegó
|
|
6260
|
+
* —una vista previa con tope de renglones, por ejemplo—. Para correr un reporte guardado o una
|
|
6261
|
+
* vista previa con los endpoints de la app está `CorridaDeReporte`.
|
|
6262
|
+
*
|
|
6263
|
+
* Si los resultados traen `totales` (un resumen agrupado), la fila de «Total general» va al pie,
|
|
6264
|
+
* con las columnas de totales (`m0`, `m1`…).
|
|
6265
|
+
*/
|
|
6266
|
+
interface PaginacionDeResultados {
|
|
6267
|
+
modelo: GridPaginationModel;
|
|
6268
|
+
onChange: (modelo: GridPaginationModel) => void;
|
|
6269
|
+
}
|
|
6270
|
+
interface TablaDeResultadosProps {
|
|
6271
|
+
resultados: ResultadosDeReporte | undefined;
|
|
6272
|
+
cargando?: boolean;
|
|
6273
|
+
/** El error de RTK Query al correrlo; se enseña en lugar de la tabla. */
|
|
6274
|
+
error?: unknown;
|
|
6275
|
+
/** Lo que se dice si el error no trae mensaje. */
|
|
6276
|
+
textoDeError?: string;
|
|
6277
|
+
/** Lo que se dice sin renglones. */
|
|
6278
|
+
textoSinRenglones?: string;
|
|
6279
|
+
/** Paginación en el servidor. Sin ella, la tabla pagina en el navegador. */
|
|
6280
|
+
paginacion?: PaginacionDeResultados;
|
|
6281
|
+
/** Lo demás del `DataGrid`: una barra con exportación, otra densidad… */
|
|
6282
|
+
dataGridProps?: Partial<DataGridProps$1>;
|
|
6283
|
+
}
|
|
6284
|
+
declare function TablaDeResultados({ resultados, cargando, error, textoDeError, textoSinRenglones, paginacion, dataGridProps, }: TablaDeResultadosProps): react_jsx_runtime.JSX.Element;
|
|
6285
|
+
|
|
6286
|
+
/**
|
|
6287
|
+
* Corre un reporte con los endpoints de la app y lo pinta en una `TablaDeResultados` paginada en
|
|
6288
|
+
* el servidor.
|
|
6289
|
+
*
|
|
6290
|
+
* Corre de dos maneras (ver `OrigenDeResultados`): un reporte **guardado** pide sus resultados
|
|
6291
|
+
* por id, y uno que se está editando pide la vista previa con su definición, sin guardarla. Las
|
|
6292
|
+
* columnas las manda el backend junto con los renglones.
|
|
6293
|
+
*
|
|
6294
|
+
* Se monta con `key={llaveDe(origen)}`: una corrida nueva la remonta y arranca en la primera
|
|
6295
|
+
* página.
|
|
6296
|
+
*
|
|
6297
|
+
* Los endpoints son de cada app —la librería no tiene `createApi`—: entran como hooks de RTK
|
|
6298
|
+
* Query, igual que en `ServerGrid_v2`. Lo que recibe cada uno:
|
|
6299
|
+
*
|
|
6300
|
+
* - `useResultados({ id, page, pageSize, parametros? }, { skip })`: `useQuery` de
|
|
6301
|
+
* `GET <reporte>/resultados/?page=…&page_size=…`.
|
|
6302
|
+
* - `usePrevisualizar()`: `useMutation` que recibe `{ definicion, page, pageSize }` (POST: la
|
|
6303
|
+
* definición es un objeto, y se pide a mano, no en cada tecla).
|
|
6304
|
+
*
|
|
6305
|
+
* `page` es la del `DataGrid`, desde 0; el endpoint le suma uno si su paginación empieza en 1.
|
|
6306
|
+
*
|
|
6307
|
+
* Por omisión pinta una `TablaDeResultados`. Con `pintar`, quien la usa decide cómo —una gráfica
|
|
6308
|
+
* según la `visualizacion` que trajeron los resultados, un aviso de que se cortó en el tope— con
|
|
6309
|
+
* lo mismo que recibiría la tabla; la corrida y su paginación siguen siendo de aquí. Una gráfica
|
|
6310
|
+
* pinta la página que llegó, así que se le da una `paginaInicial` grande.
|
|
6311
|
+
*/
|
|
6312
|
+
/** Lo que manda la tabla para pedir una página. */
|
|
6313
|
+
interface PaginaDeResultados {
|
|
6314
|
+
page: number;
|
|
6315
|
+
pageSize: number;
|
|
6316
|
+
}
|
|
6317
|
+
/** Lo que la tabla usa del estado de un `useQuery` o un `useMutation` de RTK Query. */
|
|
6318
|
+
interface EstadoDeCorrida {
|
|
6319
|
+
data?: ResultadosDeReporte;
|
|
6320
|
+
error?: unknown;
|
|
6321
|
+
}
|
|
6322
|
+
interface ApiDeCorrida<DefinicionPrevia = unknown> {
|
|
6323
|
+
/** `useQuery` de los resultados de un reporte guardado. */
|
|
6324
|
+
useResultados: (args: {
|
|
6325
|
+
id: number | string;
|
|
6326
|
+
parametros?: ValoresDeParametros;
|
|
6327
|
+
} & PaginaDeResultados, opciones: {
|
|
6328
|
+
skip: boolean;
|
|
6329
|
+
}) => EstadoDeCorrida & {
|
|
6330
|
+
isFetching: boolean;
|
|
6331
|
+
};
|
|
6332
|
+
/** `useMutation` de la vista previa de un reporte sin guardar. */
|
|
6333
|
+
usePrevisualizar: () => readonly [
|
|
6334
|
+
(args: {
|
|
6335
|
+
definicion: DefinicionPrevia;
|
|
6336
|
+
} & PaginaDeResultados) => unknown,
|
|
6337
|
+
EstadoDeCorrida & {
|
|
6338
|
+
isLoading: boolean;
|
|
6339
|
+
}
|
|
6340
|
+
];
|
|
6341
|
+
}
|
|
6342
|
+
interface CorridaDeReporteProps<DefinicionPrevia = unknown> extends Pick<TablaDeResultadosProps, "textoDeError" | "textoSinRenglones" | "dataGridProps"> {
|
|
6343
|
+
origen: OrigenDeResultados<DefinicionPrevia>;
|
|
6344
|
+
api: ApiDeCorrida<DefinicionPrevia>;
|
|
6345
|
+
/** La página con que arranca; por omisión la primera, de 25. */
|
|
6346
|
+
paginaInicial?: GridPaginationModel;
|
|
6347
|
+
/** Cómo se pintan los resultados; por omisión, `TablaDeResultados` con estas mismas props. */
|
|
6348
|
+
pintar?: (tabla: TablaDeResultadosProps) => ReactNode;
|
|
6349
|
+
}
|
|
6350
|
+
declare function CorridaDeReporte<DefinicionPrevia = unknown>({ origen, api, paginaInicial, pintar, ...tabla }: CorridaDeReporteProps<DefinicionPrevia>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
6351
|
+
|
|
6352
|
+
/**
|
|
6353
|
+
* Lo que cambia de una app a otra en la forma de un reporte. La fábrica no lo puede adivinar: tms
|
|
6354
|
+
* sirve además consultas SQL (`tipo`, `sql`, `parametros`…) y wms sólo listados.
|
|
6355
|
+
*
|
|
6356
|
+
* - `reporte`: lo que sirve `<reportes>/<id>/` y lo que regresan el alta y el cambio.
|
|
6357
|
+
* - `renglon`: un renglón de la lista (`<reportes>/`); en tms es más corto que el reporte entero.
|
|
6358
|
+
* - `definicionPrevia`: lo que recibe `previsualizar/` (ver `OrigenDeResultados`).
|
|
6359
|
+
*/
|
|
6360
|
+
interface TiposDeReportes {
|
|
6361
|
+
reporte: {
|
|
6362
|
+
id: number;
|
|
6363
|
+
};
|
|
6364
|
+
renglon: {
|
|
6365
|
+
id: number;
|
|
6366
|
+
};
|
|
6367
|
+
definicionPrevia: unknown;
|
|
6368
|
+
}
|
|
6369
|
+
/** Los de un portal que sólo tiene reportes tipo «listado» (wms). Son los de por omisión. */
|
|
6370
|
+
interface TiposDeListado extends TiposDeReportes {
|
|
6371
|
+
reporte: ReporteDeListado;
|
|
6372
|
+
renglon: ReporteDeListado;
|
|
6373
|
+
definicionPrevia: DefinicionDeListado;
|
|
6374
|
+
}
|
|
6375
|
+
/** Una página de una lista del backend (`PageNumberPagination`). */
|
|
6376
|
+
interface PaginaDelBackend<T> {
|
|
6377
|
+
count: number;
|
|
6378
|
+
next: string | null;
|
|
6379
|
+
previous: string | null;
|
|
6380
|
+
results: T[];
|
|
6381
|
+
}
|
|
6382
|
+
/** Un archivo que RTK Query ya convirtió en URL de objeto, con el nombre con que se baja. */
|
|
6383
|
+
interface ArchivoDeReporte {
|
|
6384
|
+
filename: string;
|
|
6385
|
+
file: string;
|
|
6386
|
+
/**
|
|
6387
|
+
* Si el motor cortó el archivo, en cuántas filas (el encabezado `X-Reporte-Truncado` de
|
|
6388
|
+
* acv_core, `ENCABEZADO_DE_CORTE`): el reporte trae más, y quien lo baja lo tiene que saber.
|
|
6389
|
+
*/
|
|
6390
|
+
truncadoEn?: number;
|
|
6391
|
+
}
|
|
6392
|
+
/**
|
|
6393
|
+
* El encabezado con que acv_core avisa que cortó una descarga síncrona; su valor es el tope. El
|
|
6394
|
+
* proyecto lo expone en `CORS_EXPOSE_HEADERS` para que el portal lo pueda leer.
|
|
6395
|
+
*/
|
|
6396
|
+
declare const ENCABEZADO_DE_CORTE = "x-reporte-truncado";
|
|
6397
|
+
/** El 202 de una descarga que no cabe en una respuesta: se genera y llega por la campana. */
|
|
6398
|
+
interface AvisoDeExportacion {
|
|
6399
|
+
exportacion: number;
|
|
6400
|
+
filas: number;
|
|
6401
|
+
detalle: string;
|
|
6402
|
+
/** El estado de la exportación (tms lo manda; wms no). */
|
|
6403
|
+
estado?: string;
|
|
6404
|
+
}
|
|
6405
|
+
/** Un tag de RTK Query, con o sin id. */
|
|
6406
|
+
type TagDeReportes = string | {
|
|
6407
|
+
type: string;
|
|
6408
|
+
id?: string | number;
|
|
6409
|
+
};
|
|
6410
|
+
/** Las rutas del backend, tal como están en el `constants.ts` de la app (sin `/` al final). */
|
|
6411
|
+
interface RutasDeReportes {
|
|
6412
|
+
/** El CRUD, y bajo él `<id>/resultados/`, `previsualizar/` y `<id>/descargar/`. */
|
|
6413
|
+
reportes: string;
|
|
6414
|
+
/** Las fuentes de un listado: `<fuentes>/` y `<fuentes>/<clave>/`. */
|
|
6415
|
+
fuentes: string;
|
|
6416
|
+
/** Los envíos programados: `?reporte=<id>`, `<id>/` y `<id>/enviar_ahora/`. */
|
|
6417
|
+
programaciones: string;
|
|
6418
|
+
}
|
|
6419
|
+
interface OpcionesDeApiDeReportes {
|
|
6420
|
+
endpoints: RutasDeReportes;
|
|
6421
|
+
/**
|
|
6422
|
+
* Lo que, además de lo de los reportes, se queda viejo. Los tipos de estos tags se registran
|
|
6423
|
+
* solos (`addTagTypes`): RTK se queja en desarrollo de un tag que no declaró nadie.
|
|
6424
|
+
*/
|
|
6425
|
+
invalidaTambien?: {
|
|
6426
|
+
/**
|
|
6427
|
+
* Al cambiar o borrar un reporte. En tms, los tableros: sus paneles enseñan el nombre, la
|
|
6428
|
+
* visualización y los parámetros del reporte, y no se sabe en qué tableros está.
|
|
6429
|
+
*/
|
|
6430
|
+
alCambiarReporte?: TagDeReportes[];
|
|
6431
|
+
/** Al «Mandar ahora» una programación. En tms, el historial de envíos. */
|
|
6432
|
+
alEnviarAhora?: TagDeReportes[];
|
|
6433
|
+
};
|
|
6434
|
+
}
|
|
6435
|
+
/** Los tags propios de los reportes. Son los que ya usaban tms y wms, para no cambiar su caché. */
|
|
6436
|
+
declare const TAGS_DE_REPORTES: readonly ["reportes", "resultadosDeReporte", "programacionesDeReporte"];
|
|
6437
|
+
/**
|
|
6438
|
+
* Los nombres de los endpoints que inyecta la fábrica. Quedan **reservados** en el `createApi` de
|
|
6439
|
+
* la app: con `overrideExisting: false`, RTK ignora en silencio un `injectEndpoints` con un nombre
|
|
6440
|
+
* que ya existe, así que otro endpoint con alguno de estos nombres —antes o después— deja a uno de
|
|
6441
|
+
* los dos usando la definición del otro. Son los de tms, que eran los más específicos (wms llamaba
|
|
6442
|
+
* `getProgramaciones` a lo que aquí es `getProgramacionesDeReporte`).
|
|
6443
|
+
*/
|
|
6444
|
+
declare const ENDPOINTS_DE_REPORTES: readonly ["getFuentesDeReporte", "getFuenteDeReporte", "getReportes", "getReporte", "crearReporte", "editarReporte", "deleteReportes", "getResultadosDeReporte", "previsualizarReporte", "descargarReporte", "getProgramacionesDeReporte", "guardarProgramacionDeReporte", "borrarProgramacionDeReporte", "enviarProgramacionDeReporteAhora"];
|
|
6445
|
+
/**
|
|
6446
|
+
* El querystring de una página de resultados. La tabla pagina desde 0 (`CorridaDeReporte`) y el
|
|
6447
|
+
* backend desde 1; los valores de los parámetros van como JSON (`?valores=`), y sólo si hay: un
|
|
6448
|
+
* backend sin parámetros (wms) nunca los ve.
|
|
6449
|
+
*
|
|
6450
|
+
* Se exporta porque lo mismo pide quien corre otra cosa con resultados de reporte (en tms, los
|
|
6451
|
+
* paneles de un tablero).
|
|
6452
|
+
*/
|
|
6453
|
+
declare const paginaDeResultados: ({ page, pageSize, parametros, }: PaginaDeResultados & {
|
|
6454
|
+
parametros?: ValoresDeParametros;
|
|
6455
|
+
}) => string;
|
|
6456
|
+
/**
|
|
6457
|
+
* El `responseHandler` de `descargar/`: el CSV que cabe en una respuesta llega como archivo, y
|
|
6458
|
+
* todo lo demás —el 202 de uno que se genera en segundo plano, o un error como el 404 sin
|
|
6459
|
+
* registros— como JSON, para que quien descarga lea `detalle` o el mensaje de error.
|
|
6460
|
+
*
|
|
6461
|
+
* El nombre sale del `Content-Disposition`; `nombrePorDefecto` sólo si no lo trae. Si el motor
|
|
6462
|
+
* cortó el archivo, `truncadoEn` dice en cuántas filas (`ENCABEZADO_DE_CORTE`).
|
|
6463
|
+
*/
|
|
6464
|
+
declare const leerArchivoOAviso: (nombrePorDefecto: string) => (response: Response) => Promise<unknown>;
|
|
6465
|
+
/** Los módulos de un `createApi` de `@reduxjs/toolkit/query/react`: el núcleo y los hooks. */
|
|
6466
|
+
type ConHooks = CoreModule | typeof reactHooksModuleName;
|
|
6467
|
+
/**
|
|
6468
|
+
* Lo que la fábrica pide del `createApi` de la app.
|
|
6469
|
+
*
|
|
6470
|
+
* Es estructural y no un `Api<…>` genérico como en `crearFabricaDeCatalogos` porque aquí los tipos
|
|
6471
|
+
* de los reportes se pasan explícitos (`crearApiDeReportes<MisTipos>(…)`), y TypeScript no infiere
|
|
6472
|
+
* unos genéricos mientras se le dan otros. `usePrefetch` sólo lo trae un `createApi` con los hooks
|
|
6473
|
+
* de React, que es lo que la fábrica devuelve: es lo que impide pasarle el de `@reduxjs/toolkit/query`
|
|
6474
|
+
* a secas. Que su `baseQuery` acepte `string | FetchArgs` —lo de `fetchBaseQuery`— sí corre por
|
|
6475
|
+
* cuenta de quien la llama.
|
|
6476
|
+
*/
|
|
6477
|
+
interface ApiInyectable {
|
|
6478
|
+
enhanceEndpoints: (...args: never[]) => unknown;
|
|
6479
|
+
injectEndpoints: (...args: never[]) => unknown;
|
|
6480
|
+
usePrefetch: (...args: never[]) => unknown;
|
|
6481
|
+
}
|
|
6482
|
+
/**
|
|
6483
|
+
* Inyecta los endpoints de los reportes en el `createApi` de una app y devuelve el resultado: los
|
|
6484
|
+
* hooks salen de ahí con los nombres que ya usaban las apps (`useGetReporteQuery`,
|
|
6485
|
+
* `useEditarReporteMutation`…).
|
|
6486
|
+
*
|
|
6487
|
+
* Es el `reportesAPI.ts` que tms y wms tenían copiado, con lo de tms donde diferían: borrar recibe
|
|
6488
|
+
* `{ id }` (es lo que manda `DeleteConfirmationDialog`), el cambio desenvuelve el `{detail, list}`
|
|
6489
|
+
* del PATCH y no deja un «Uncaught (in promise)» cuando falla, los resultados aceptan `parametros`
|
|
6490
|
+
* y la descarga manda `{ valores }` (vacíos si no hay). Lo que sólo tiene una app —en tms la
|
|
6491
|
+
* consulta SQL (`catalogo_sql/`, `esquema/`) y el historial de envíos— lo inyecta ella aparte,
|
|
6492
|
+
* sobre el mismo `createApi`; lo que eso deja viejo al cambiar un reporte o mandarlo entra por
|
|
6493
|
+
* `invalidaTambien`.
|
|
6494
|
+
*
|
|
6495
|
+
* Se llama una vez, al cargar el módulo, y nunca dentro de un componente. Reserva los nombres de
|
|
6496
|
+
* `ENDPOINTS_DE_REPORTES`: ningún otro endpoint de la app puede llamarse igual.
|
|
6497
|
+
*
|
|
6498
|
+
* **tms** (`src/(dashboard)/reportes/reportesAPI.ts`):
|
|
6499
|
+
*
|
|
6500
|
+
* const reportesAPI = crearApiDeReportes<{
|
|
6501
|
+
* reporte: Reporte;
|
|
6502
|
+
* renglon: RenglonDeReporte;
|
|
6503
|
+
* definicionPrevia: DefinicionDeListado | DefinicionDeConsulta;
|
|
6504
|
+
* }>(mainAPI, {
|
|
6505
|
+
* endpoints: constants.endpoints.reportes,
|
|
6506
|
+
* invalidaTambien: {
|
|
6507
|
+
* alCambiarReporte: [{ type: "tableros" }, { type: "panelesDeTablero" }],
|
|
6508
|
+
* alEnviarAhora: [{ type: "enviosDeReporte", id: "LIST" }],
|
|
6509
|
+
* },
|
|
6510
|
+
* });
|
|
6511
|
+
*
|
|
6512
|
+
* // Lo propio de tms va aparte: getCatalogoSql, getEsquemaSql, getEnviosDeReporte y
|
|
6513
|
+
* // descargarEnvioDeReporte, en un injectEndpoints con sus tags («enviosDeReporte»).
|
|
6514
|
+
*
|
|
6515
|
+
* export const { useGetReporteQuery, useEditarReporteMutation, … } = reportesAPI;
|
|
6516
|
+
*
|
|
6517
|
+
* **wms** (`src/(dashboard)/reportes/reportesAPI.ts`): los tipos de por omisión son los suyos, y
|
|
6518
|
+
* las programaciones se renombran al exportarlas para no tocar a quien las usa:
|
|
6519
|
+
*
|
|
6520
|
+
* const reportesAPI = crearApiDeReportes(mainAPI, {
|
|
6521
|
+
* endpoints: constants.endpoints.reportes,
|
|
6522
|
+
* });
|
|
6523
|
+
*
|
|
6524
|
+
* export const {
|
|
6525
|
+
* useGetProgramacionesDeReporteQuery: useGetProgramacionesQuery,
|
|
6526
|
+
* useGuardarProgramacionDeReporteMutation: useGuardarProgramacionMutation,
|
|
6527
|
+
* useBorrarProgramacionDeReporteMutation: useBorrarProgramacionMutation,
|
|
6528
|
+
* useEnviarProgramacionDeReporteAhoraMutation: useEnviarProgramacionAhoraMutation,
|
|
6529
|
+
* …
|
|
6530
|
+
* } = reportesAPI;
|
|
6531
|
+
*/
|
|
6532
|
+
declare const crearApiDeReportes: <T extends TiposDeReportes = TiposDeListado>(mainAPI: ApiInyectable, { endpoints: rutas, invalidaTambien }: OpcionesDeApiDeReportes) => Api<BaseQueryFn<string | FetchArgs, unknown, unknown>, _reduxjs_toolkit_query.UpdateDefinitions<Record<never, never>, string, never> & {
|
|
6533
|
+
getFuentesDeReporte: _reduxjs_toolkit_query.QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, FuenteDeReporteResumida[], string, unknown>;
|
|
6534
|
+
getFuenteDeReporte: _reduxjs_toolkit_query.QueryDefinition<{
|
|
6535
|
+
clave: string;
|
|
6536
|
+
variante?: string;
|
|
6537
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, FuenteDeReporte, string, unknown>;
|
|
6538
|
+
getReportes: _reduxjs_toolkit_query.QueryDefinition<GridArgs, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, PaginaDelBackend<T["renglon"]>, string, unknown>;
|
|
6539
|
+
getReporte: _reduxjs_toolkit_query.QueryDefinition<{
|
|
6540
|
+
id: number | string;
|
|
6541
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, T["reporte"], string, unknown>;
|
|
6542
|
+
crearReporte: _reduxjs_toolkit_query.MutationDefinition<Record<string, unknown> | Partial<T["reporte"]>, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, T["reporte"], string, unknown>;
|
|
6543
|
+
editarReporte: _reduxjs_toolkit_query.MutationDefinition<(Record<string, unknown> | Partial<T["reporte"]>) & {
|
|
6544
|
+
id: number;
|
|
6545
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, T["reporte"], string, unknown>;
|
|
6546
|
+
deleteReportes: _reduxjs_toolkit_query.MutationDefinition<{
|
|
6547
|
+
id: number | string;
|
|
6548
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, void, string, unknown>;
|
|
6549
|
+
/** Una página del reporte guardado, con las columnas y, si los declara, sus valores. */
|
|
6550
|
+
getResultadosDeReporte: _reduxjs_toolkit_query.QueryDefinition<{
|
|
6551
|
+
id: number | string;
|
|
6552
|
+
parametros?: ValoresDeParametros;
|
|
6553
|
+
} & PaginaDeResultados, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>;
|
|
6554
|
+
/**
|
|
6555
|
+
* Una página de un reporte sin guardar. Es `mutation` aunque no cambia nada porque va
|
|
6556
|
+
* por POST (la definición es un objeto) y porque se pide a mano, con el botón de vista
|
|
6557
|
+
* previa: correrla en cada tecla sería una consulta por letra.
|
|
6558
|
+
*/
|
|
6559
|
+
previsualizarReporte: _reduxjs_toolkit_query.MutationDefinition<{
|
|
6560
|
+
definicion: T["definicionPrevia"];
|
|
6561
|
+
} & PaginaDeResultados, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>;
|
|
6562
|
+
/**
|
|
6563
|
+
* El archivo mismo (un CSV que cabe en una respuesta) o el aviso de que se genera.
|
|
6564
|
+
* `mutation` y POST: puede crear un trabajo en segundo plano, y una consulta se
|
|
6565
|
+
* repetiría sola al recuperar la red, con otro trabajo y otro archivo.
|
|
6566
|
+
*/
|
|
6567
|
+
descargarReporte: _reduxjs_toolkit_query.MutationDefinition<{
|
|
6568
|
+
id: number | string;
|
|
6569
|
+
valores?: ValoresDeParametros;
|
|
6570
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, ArchivoDeReporte | AvisoDeExportacion, string, unknown>;
|
|
6571
|
+
getProgramacionesDeReporte: _reduxjs_toolkit_query.QueryDefinition<{
|
|
6572
|
+
reporte: number | string;
|
|
6573
|
+
}, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, ProgramacionDeReporte[], string, unknown>;
|
|
6574
|
+
guardarProgramacionDeReporte: _reduxjs_toolkit_query.MutationDefinition<ProgramacionDeReporteAGuardar, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, ProgramacionDeReporte, string, unknown>;
|
|
6575
|
+
borrarProgramacionDeReporte: _reduxjs_toolkit_query.MutationDefinition<number, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, void, string, unknown>;
|
|
6576
|
+
enviarProgramacionDeReporteAhora: _reduxjs_toolkit_query.MutationDefinition<number, BaseQueryFn<string | FetchArgs, unknown, unknown>, string, {
|
|
6577
|
+
detalle: string;
|
|
6578
|
+
}, string, unknown>;
|
|
6579
|
+
}, string, string, ConHooks>;
|
|
6580
|
+
/** Lo que devuelve `crearApiDeReportes`: el `createApi` de la app con los endpoints de reportes. */
|
|
6581
|
+
type ApiDeReportes<T extends TiposDeReportes = TiposDeListado> = ReturnType<typeof crearApiDeReportes<T>>;
|
|
6582
|
+
|
|
6048
6583
|
/** Lo que se edita en el constructor: la definición más lo que no cambia qué se corre. */
|
|
6049
6584
|
interface Borrador extends DefinicionDeListado {
|
|
6050
6585
|
nombre: string;
|
|
@@ -6358,103 +6893,6 @@ interface FormularioDeParametrosProps {
|
|
|
6358
6893
|
/** Un control por parámetro, en renglones que se acomodan al ancho. */
|
|
6359
6894
|
declare function FormularioDeParametros({ parametros, valores, catalogo, disabled, onChange, }: FormularioDeParametrosProps): react_jsx_runtime.JSX.Element;
|
|
6360
6895
|
|
|
6361
|
-
/**
|
|
6362
|
-
* Un reporte en pantalla: columnas y renglones, sea cual sea el tipo de reporte que los produjo.
|
|
6363
|
-
*
|
|
6364
|
-
* No pide nada: pinta los `resultados` que le dan. Con `paginacion` pagina en el servidor (quien
|
|
6365
|
-
* la usa pide la página que la tabla le dice); sin ella, pagina en el navegador lo que llegó
|
|
6366
|
-
* —una vista previa con tope de renglones, por ejemplo—. Para correr un reporte guardado o una
|
|
6367
|
-
* vista previa con los endpoints de la app está `CorridaDeReporte`.
|
|
6368
|
-
*
|
|
6369
|
-
* Si los resultados traen `totales` (un resumen agrupado), la fila de «Total general» va al pie,
|
|
6370
|
-
* con las columnas de totales (`m0`, `m1`…).
|
|
6371
|
-
*/
|
|
6372
|
-
interface PaginacionDeResultados {
|
|
6373
|
-
modelo: GridPaginationModel;
|
|
6374
|
-
onChange: (modelo: GridPaginationModel) => void;
|
|
6375
|
-
}
|
|
6376
|
-
interface TablaDeResultadosProps {
|
|
6377
|
-
resultados: ResultadosDeReporte | undefined;
|
|
6378
|
-
cargando?: boolean;
|
|
6379
|
-
/** El error de RTK Query al correrlo; se enseña en lugar de la tabla. */
|
|
6380
|
-
error?: unknown;
|
|
6381
|
-
/** Lo que se dice si el error no trae mensaje. */
|
|
6382
|
-
textoDeError?: string;
|
|
6383
|
-
/** Lo que se dice sin renglones. */
|
|
6384
|
-
textoSinRenglones?: string;
|
|
6385
|
-
/** Paginación en el servidor. Sin ella, la tabla pagina en el navegador. */
|
|
6386
|
-
paginacion?: PaginacionDeResultados;
|
|
6387
|
-
/** Lo demás del `DataGrid`: una barra con exportación, otra densidad… */
|
|
6388
|
-
dataGridProps?: Partial<DataGridProps$1>;
|
|
6389
|
-
}
|
|
6390
|
-
declare function TablaDeResultados({ resultados, cargando, error, textoDeError, textoSinRenglones, paginacion, dataGridProps, }: TablaDeResultadosProps): react_jsx_runtime.JSX.Element;
|
|
6391
|
-
|
|
6392
|
-
/**
|
|
6393
|
-
* Corre un reporte con los endpoints de la app y lo pinta en una `TablaDeResultados` paginada en
|
|
6394
|
-
* el servidor.
|
|
6395
|
-
*
|
|
6396
|
-
* Corre de dos maneras (ver `OrigenDeResultados`): un reporte **guardado** pide sus resultados
|
|
6397
|
-
* por id, y uno que se está editando pide la vista previa con su definición, sin guardarla. Las
|
|
6398
|
-
* columnas las manda el backend junto con los renglones.
|
|
6399
|
-
*
|
|
6400
|
-
* Se monta con `key={llaveDe(origen)}`: una corrida nueva la remonta y arranca en la primera
|
|
6401
|
-
* página.
|
|
6402
|
-
*
|
|
6403
|
-
* Los endpoints son de cada app —la librería no tiene `createApi`—: entran como hooks de RTK
|
|
6404
|
-
* Query, igual que en `ServerGrid_v2`. Lo que recibe cada uno:
|
|
6405
|
-
*
|
|
6406
|
-
* - `useResultados({ id, page, pageSize, parametros? }, { skip })`: `useQuery` de
|
|
6407
|
-
* `GET <reporte>/resultados/?page=…&page_size=…`.
|
|
6408
|
-
* - `usePrevisualizar()`: `useMutation` que recibe `{ definicion, page, pageSize }` (POST: la
|
|
6409
|
-
* definición es un objeto, y se pide a mano, no en cada tecla).
|
|
6410
|
-
*
|
|
6411
|
-
* `page` es la del `DataGrid`, desde 0; el endpoint le suma uno si su paginación empieza en 1.
|
|
6412
|
-
*
|
|
6413
|
-
* Por omisión pinta una `TablaDeResultados`. Con `pintar`, quien la usa decide cómo —una gráfica
|
|
6414
|
-
* según la `visualizacion` que trajeron los resultados, un aviso de que se cortó en el tope— con
|
|
6415
|
-
* lo mismo que recibiría la tabla; la corrida y su paginación siguen siendo de aquí. Una gráfica
|
|
6416
|
-
* pinta la página que llegó, así que se le da una `paginaInicial` grande.
|
|
6417
|
-
*/
|
|
6418
|
-
/** Lo que manda la tabla para pedir una página. */
|
|
6419
|
-
interface PaginaDeResultados {
|
|
6420
|
-
page: number;
|
|
6421
|
-
pageSize: number;
|
|
6422
|
-
}
|
|
6423
|
-
/** Lo que la tabla usa del estado de un `useQuery` o un `useMutation` de RTK Query. */
|
|
6424
|
-
interface EstadoDeCorrida {
|
|
6425
|
-
data?: ResultadosDeReporte;
|
|
6426
|
-
error?: unknown;
|
|
6427
|
-
}
|
|
6428
|
-
interface ApiDeCorrida<DefinicionPrevia = unknown> {
|
|
6429
|
-
/** `useQuery` de los resultados de un reporte guardado. */
|
|
6430
|
-
useResultados: (args: {
|
|
6431
|
-
id: number | string;
|
|
6432
|
-
parametros?: ValoresDeParametros;
|
|
6433
|
-
} & PaginaDeResultados, opciones: {
|
|
6434
|
-
skip: boolean;
|
|
6435
|
-
}) => EstadoDeCorrida & {
|
|
6436
|
-
isFetching: boolean;
|
|
6437
|
-
};
|
|
6438
|
-
/** `useMutation` de la vista previa de un reporte sin guardar. */
|
|
6439
|
-
usePrevisualizar: () => readonly [
|
|
6440
|
-
(args: {
|
|
6441
|
-
definicion: DefinicionPrevia;
|
|
6442
|
-
} & PaginaDeResultados) => unknown,
|
|
6443
|
-
EstadoDeCorrida & {
|
|
6444
|
-
isLoading: boolean;
|
|
6445
|
-
}
|
|
6446
|
-
];
|
|
6447
|
-
}
|
|
6448
|
-
interface CorridaDeReporteProps<DefinicionPrevia = unknown> extends Pick<TablaDeResultadosProps, "textoDeError" | "textoSinRenglones" | "dataGridProps"> {
|
|
6449
|
-
origen: OrigenDeResultados<DefinicionPrevia>;
|
|
6450
|
-
api: ApiDeCorrida<DefinicionPrevia>;
|
|
6451
|
-
/** La página con que arranca; por omisión la primera, de 25. */
|
|
6452
|
-
paginaInicial?: GridPaginationModel;
|
|
6453
|
-
/** Cómo se pintan los resultados; por omisión, `TablaDeResultados` con estas mismas props. */
|
|
6454
|
-
pintar?: (tabla: TablaDeResultadosProps) => ReactNode;
|
|
6455
|
-
}
|
|
6456
|
-
declare function CorridaDeReporte<DefinicionPrevia = unknown>({ origen, api, paginaInicial, pintar, ...tabla }: CorridaDeReporteProps<DefinicionPrevia>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
6457
|
-
|
|
6458
6896
|
/** `useMutation` de guardar una programación: POST sin id, PATCH con id. */
|
|
6459
6897
|
type UseGuardarProgramacion = () => readonly [
|
|
6460
6898
|
(programacion: ProgramacionDeReporteAGuardar) => {
|
|
@@ -6493,6 +6931,20 @@ interface ProgramacionDialogProps {
|
|
|
6493
6931
|
catalogoDeParametros?: CatalogoDeParametros;
|
|
6494
6932
|
onCerrar: () => void;
|
|
6495
6933
|
}
|
|
6934
|
+
/**
|
|
6935
|
+
* El formulario va en un `DetailFormDialog_v2`, como cualquier alta de la librería. Tres cosas lo
|
|
6936
|
+
* acomodan a lo que ya recibía este diálogo, sin cambiarle la API:
|
|
6937
|
+
*
|
|
6938
|
+
* - **Siempre en modo alta**, también al editar: la programación ya llegó con la lista, así que
|
|
6939
|
+
* en vez de volver a pedirla arranca de ella (`defaultValues`), y la mutación lleva su `id`
|
|
6940
|
+
* (PATCH). De paso no pide `obj_permissions`, que el registro no trae.
|
|
6941
|
+
* - **La mutación es un adaptador de `useGuardar`.** El motor manda lo que pasó por `formParser`,
|
|
6942
|
+
* que aplana las opciones y recorre `valores` a su manera; el adaptador lee el formulario tal
|
|
6943
|
+
* cual y lo convierte con las reglas de siempre (los días según la frecuencia, los ids de los
|
|
6944
|
+
* destinatarios, `valoresElegidos`).
|
|
6945
|
+
* - **Las reglas que apagaban «Guardar»** —hora, al menos un destinatario, correos bien escritos,
|
|
6946
|
+
* parámetros requeridos— son el esquema: ahora dicen qué falta en el campo.
|
|
6947
|
+
*/
|
|
6496
6948
|
declare function ProgramacionDialog({ reporte, programacion, useGuardar, destinatarios, puedeCorreosExternos: puedeExternos, avisoDePermisos, parametros, catalogoDeParametros, onCerrar, }: ProgramacionDialogProps): react_jsx_runtime.JSX.Element;
|
|
6497
6949
|
|
|
6498
6950
|
/** Un `useMutation` que recibe el id de la programación. */
|
|
@@ -6525,5 +6977,1641 @@ interface ProgramacionesDelReporteProps extends Pick<ProgramacionDialogProps, "d
|
|
|
6525
6977
|
}
|
|
6526
6978
|
declare function ProgramacionesDelReporte({ reporte, editable, api, ...dialogo }: ProgramacionesDelReporteProps): react_jsx_runtime.JSX.Element;
|
|
6527
6979
|
|
|
6528
|
-
|
|
6529
|
-
|
|
6980
|
+
/**
|
|
6981
|
+
* Cómo se pinta un reporte (`ReporteBase.visualizacion` de acv_core): tabla, barras, líneas,
|
|
6982
|
+
* pastel o indicador. Las etiquetas son las del backend (`acv_core.reportes.visualizacion.
|
|
6983
|
+
* VISUALIZACIONES`): no se piden, no cambian de un usuario a otro.
|
|
6984
|
+
*/
|
|
6985
|
+
declare const ETIQUETAS_DE_VISUALIZACION: Record<TipoDeVisualizacion, string>;
|
|
6986
|
+
/** Una gráfica pinta la página que llega: se pide la más grande que acepta el backend. */
|
|
6987
|
+
declare const PAGINA_DE_GRAFICA: {
|
|
6988
|
+
page: number;
|
|
6989
|
+
pageSize: number;
|
|
6990
|
+
};
|
|
6991
|
+
/** La visualización tal cual, o tabla si no dice su tipo (o dice uno que no existe). */
|
|
6992
|
+
declare const visualizacionDe: (visualizacion: Partial<VisualizacionDeReporte> | null | undefined) => VisualizacionDeReporte;
|
|
6993
|
+
/**
|
|
6994
|
+
* Si se pinta como gráfica. `{}` no lo es: preguntar sólo `tipo !== "tabla"` pintaba los listados
|
|
6995
|
+
* como una gráfica sin datos.
|
|
6996
|
+
*/
|
|
6997
|
+
declare const esGrafica: (visualizacion: Partial<VisualizacionDeReporte> | null | undefined) => boolean;
|
|
6998
|
+
|
|
6999
|
+
interface VistaDeResultadosProps extends TablaDeResultadosProps {
|
|
7000
|
+
/** Cómo se pinta; sin ella, la que trajeron los resultados (y si tampoco, tabla). */
|
|
7001
|
+
visualizacion?: Partial<VisualizacionDeReporte> | null;
|
|
7002
|
+
/** Ofrece ver como tabla lo que es una gráfica (en la ficha; en un panel no cabe). */
|
|
7003
|
+
alternarTabla?: boolean;
|
|
7004
|
+
/**
|
|
7005
|
+
* El alto de la gráfica, en px; `"llenar"` ocupa el que le deje su contenedor —un panel del
|
|
7006
|
+
* tablero, el diálogo de verlo en grande—, que tiene que tener alto propio.
|
|
7007
|
+
*/
|
|
7008
|
+
alto?: number | "llenar";
|
|
7009
|
+
}
|
|
7010
|
+
/**
|
|
7011
|
+
* Lo que se le da a `pintar` de `CorridaDeReporte` para ver un reporte como lo pide su
|
|
7012
|
+
* `visualizacion`: la tabla o la gráfica, y los avisos de que no se ve todo: el reporte se cortó en
|
|
7013
|
+
* el tope de filas (`truncado`), o hay más filas que la página que se pintó —una gráfica, o su
|
|
7014
|
+
* página vista como tabla—. La comparten la ficha de un reporte y los paneles de un tablero.
|
|
7015
|
+
*
|
|
7016
|
+
* <CorridaDeReporte … pintar={(tabla) => <VistaDeResultados {...tabla} alternarTabla />} />
|
|
7017
|
+
*/
|
|
7018
|
+
declare function VistaDeResultados({ visualizacion: pedida, alternarTabla, alto, ...tabla }: VistaDeResultadosProps): react_jsx_runtime.JSX.Element;
|
|
7019
|
+
|
|
7020
|
+
interface GraficaDeResultadosProps {
|
|
7021
|
+
resultados: ResultadosDeReporte;
|
|
7022
|
+
visualizacion: VisualizacionDeReporte;
|
|
7023
|
+
/** El alto, en px. */
|
|
7024
|
+
alto?: number;
|
|
7025
|
+
}
|
|
7026
|
+
declare function GraficaDeResultados({ resultados, visualizacion, alto, }: GraficaDeResultadosProps): react_jsx_runtime.JSX.Element;
|
|
7027
|
+
|
|
7028
|
+
type Visualizacion = Partial<VisualizacionDeReporte> | null | undefined;
|
|
7029
|
+
/** El ícono de cómo se ve un reporte: el de un panel, el de un renglón de una lista. */
|
|
7030
|
+
declare function IconoDeVisualizacion({ visualizacion, ...props }: {
|
|
7031
|
+
visualizacion: Visualizacion;
|
|
7032
|
+
} & SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
7033
|
+
/** Cómo se ve un reporte —tabla, barras, líneas, pastel o indicador—, con su color. */
|
|
7034
|
+
declare function ChipDeVisualizacion({ visualizacion, ...props }: {
|
|
7035
|
+
visualizacion: Visualizacion;
|
|
7036
|
+
} & Omit<ChipProps, "label" | "color" | "icon">): react_jsx_runtime.JSX.Element;
|
|
7037
|
+
|
|
7038
|
+
/** Lo que se le dice a quien guardó o descargó un reporte. */
|
|
7039
|
+
interface MensajeDeReporte {
|
|
7040
|
+
tipo: "success" | "info" | "warning" | "error";
|
|
7041
|
+
texto: string;
|
|
7042
|
+
/** El archivo se genera en segundo plano: el aviso lleva a donde va a quedar. */
|
|
7043
|
+
aExportaciones?: boolean;
|
|
7044
|
+
}
|
|
7045
|
+
interface AvisoDeReporteProps {
|
|
7046
|
+
aviso: MensajeDeReporte | null;
|
|
7047
|
+
onCerrar: () => void;
|
|
7048
|
+
/** Adónde lleva «Ir a Exportaciones»: la página de exportaciones de la app. */
|
|
7049
|
+
rutaDeExportaciones?: string;
|
|
7050
|
+
}
|
|
7051
|
+
/** El resultado de guardar o descargar un reporte, con el enlace a Exportaciones si hace falta. */
|
|
7052
|
+
declare function AvisoDeReporte({ aviso, onCerrar, rutaDeExportaciones, }: AvisoDeReporteProps): react_jsx_runtime.JSX.Element | null;
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* El `useDescargarReporteMutation` de `crearApiDeReportes`, visto desde aquí: lo que se usa de él.
|
|
7056
|
+
*/
|
|
7057
|
+
type UseDescargarReporte = () => readonly [
|
|
7058
|
+
(args: {
|
|
7059
|
+
id: number | string;
|
|
7060
|
+
valores?: ValoresDeParametros;
|
|
7061
|
+
}) => {
|
|
7062
|
+
unwrap: () => Promise<ArchivoDeReporte | AvisoDeExportacion>;
|
|
7063
|
+
},
|
|
7064
|
+
{
|
|
7065
|
+
isLoading: boolean;
|
|
7066
|
+
}
|
|
7067
|
+
];
|
|
7068
|
+
/** El aviso de un archivo que llegó cortado, o nada. */
|
|
7069
|
+
declare const avisoDeCorte: (archivo: ArchivoDeReporte) => MensajeDeReporte | null;
|
|
7070
|
+
/**
|
|
7071
|
+
* Bajar un reporte guardado: un CSV que cabe en la respuesta llega enseguida; todo lo demás —un
|
|
7072
|
+
* Excel, un CSV grande— se genera en segundo plano y llega por la campana (202), y sin registros el
|
|
7073
|
+
* backend contesta 404 con «Ningún registro fue encontrado.». Si el motor cortó el archivo en su
|
|
7074
|
+
* tope de filas, se baja igual y se avisa (`truncadoEn`).
|
|
7075
|
+
*
|
|
7076
|
+
* const { bajar, descargando } = useDescargaDeReporte(useDescargarReporteMutation, setAviso);
|
|
7077
|
+
*/
|
|
7078
|
+
declare function useDescargaDeReporte(useDescargar: UseDescargarReporte, setAviso: (aviso: MensajeDeReporte | null) => void): {
|
|
7079
|
+
bajar: (id: number, valores?: ValoresDeParametros) => Promise<void>;
|
|
7080
|
+
descargando: boolean;
|
|
7081
|
+
};
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* Lo que va en el renglón del título de la página, como las acciones de una ficha de
|
|
7085
|
+
* `DetailPage_v2`: la ficha de un reporte y la vista de un tablero no tienen encabezado propio
|
|
7086
|
+
* donde ponerlas. Si el layout no ofrece ese lugar (`usePageActionsHost`), van arriba, a la
|
|
7087
|
+
* derecha.
|
|
7088
|
+
*/
|
|
7089
|
+
declare function AccionesDelTitulo({ children }: {
|
|
7090
|
+
children: ReactNode;
|
|
7091
|
+
}): react_jsx_runtime.JSX.Element;
|
|
7092
|
+
/**
|
|
7093
|
+
* El título del encabezado de una página que no es `DetailPage_v2` (o cuyo registro no trae
|
|
7094
|
+
* `titulo`): el `PageHeader` lo lee de `state.header.title` cuando la ruta trae un id, y sin él
|
|
7095
|
+
* pinta «Tablero 12».
|
|
7096
|
+
*
|
|
7097
|
+
* Se limpia al salir: nadie más lo hace, y la ficha siguiente sin título heredaba el de ésta.
|
|
7098
|
+
*/
|
|
7099
|
+
declare function useTituloDePagina(titulo: string | undefined): void;
|
|
7100
|
+
|
|
7101
|
+
/**
|
|
7102
|
+
* El contrato con el backend de tableros (`acv_core.reportes`: `TableroBase`,
|
|
7103
|
+
* `PanelDeTableroBase` y sus serializadores).
|
|
7104
|
+
*/
|
|
7105
|
+
interface PanelDeTablero {
|
|
7106
|
+
id: number;
|
|
7107
|
+
tablero: number;
|
|
7108
|
+
reporte: number;
|
|
7109
|
+
reporte_label: string;
|
|
7110
|
+
/** `{}` si quien mira el tablero no puede correr el reporte (`accesible`). */
|
|
7111
|
+
visualizacion: Partial<VisualizacionDeReporte>;
|
|
7112
|
+
/** `[]` si quien mira no puede correr el reporte, o si su tipo no declara parámetros. */
|
|
7113
|
+
parametros_del_reporte: ParametroDeReporte[];
|
|
7114
|
+
posicion: number;
|
|
7115
|
+
/** De 1 a 12: las columnas que ocupa en la rejilla. */
|
|
7116
|
+
ancho: number;
|
|
7117
|
+
/** De 1 a 6: los renglones de alto (`ALTO_DE_RENGLON`); 2 es el de siempre. */
|
|
7118
|
+
alto: number;
|
|
7119
|
+
titulo: string;
|
|
7120
|
+
/** La pestaña donde se ve; vacía, la primera («General»). */
|
|
7121
|
+
pestana: string;
|
|
7122
|
+
/** Si quien mira el tablero puede correr su reporte: un panel nunca amplía el acceso. */
|
|
7123
|
+
accesible: boolean;
|
|
7124
|
+
}
|
|
7125
|
+
interface Tablero {
|
|
7126
|
+
id: number;
|
|
7127
|
+
nombre: string;
|
|
7128
|
+
descripcion: string;
|
|
7129
|
+
propietario_label: string;
|
|
7130
|
+
/** Los parámetros comunes; vacíos en un portal cuyos reportes no declaran parámetros. */
|
|
7131
|
+
parametros: ParametroDeReporte[];
|
|
7132
|
+
compartido_con: number[];
|
|
7133
|
+
/** Cada cuántos minutos se refresca solo el tablero abierto; `null`, sólo a mano. */
|
|
7134
|
+
refrescar_cada: {
|
|
7135
|
+
value: string;
|
|
7136
|
+
label: string;
|
|
7137
|
+
} | null;
|
|
7138
|
+
es_propio: boolean;
|
|
7139
|
+
numero_de_paneles?: number;
|
|
7140
|
+
paneles?: PanelDeTablero[];
|
|
7141
|
+
obj_permissions?: {
|
|
7142
|
+
edit: boolean;
|
|
7143
|
+
delete: boolean;
|
|
7144
|
+
};
|
|
7145
|
+
}
|
|
7146
|
+
/** Un reporte que se puede agregar a un tablero (la búsqueda de «Reportes disponibles»). */
|
|
7147
|
+
interface ReporteDisponible {
|
|
7148
|
+
id: number;
|
|
7149
|
+
nombre: string;
|
|
7150
|
+
visualizacion?: Partial<VisualizacionDeReporte>;
|
|
7151
|
+
}
|
|
7152
|
+
/** Las rutas del backend, como en el `constants.ts` de la app (sin `/` al final). */
|
|
7153
|
+
interface RutasDeTableros {
|
|
7154
|
+
/** El CRUD de los tableros (`TableroView`). */
|
|
7155
|
+
tableros: string;
|
|
7156
|
+
/** Los paneles (`PanelDeTableroViewBase`): alta, cambio, `reordenar/` y `<id>/resultados/`. */
|
|
7157
|
+
paneles: string;
|
|
7158
|
+
/** Los reportes, para buscar los que caben en un tablero (`?fuera_del_tablero=`). */
|
|
7159
|
+
reportes: string;
|
|
7160
|
+
}
|
|
7161
|
+
/** Las rutas del portal a las que llevan los botones y menús de un tablero. */
|
|
7162
|
+
interface RutasDelPortal {
|
|
7163
|
+
/** Los tableros: `<tableros>/<id>` y `<tableros>/<id>/editar`. */
|
|
7164
|
+
tableros: string;
|
|
7165
|
+
/** La ficha de un reporte: `<reportes>/<id>` («Abrir el reporte»). */
|
|
7166
|
+
reportes: string;
|
|
7167
|
+
/** Exportaciones, adonde llega una descarga que se genera en segundo plano. */
|
|
7168
|
+
exportaciones?: string;
|
|
7169
|
+
}
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* Los nombres de los endpoints que inyecta la fábrica. Quedan **reservados** en el `createApi` de
|
|
7173
|
+
* la app: con `overrideExisting: false`, RTK ignora en silencio un `injectEndpoints` con un nombre
|
|
7174
|
+
* que ya existe. Los cuatro primeros los arma la fábrica de catálogos con la clave `tableros`; son
|
|
7175
|
+
* los que tms ya usaba, para no cambiar su caché.
|
|
7176
|
+
*/
|
|
7177
|
+
declare const ENDPOINTS_DE_TABLEROS: readonly ["tablerosObtener", "tablerosListar", "tablerosGuardar", "tablerosEliminar", "guardarPanelDeTablero", "borrarPanelDeTablero", "reordenarPanelesDeTablero", "getResultadosDePanel", "buscarReportesParaPanel"];
|
|
7178
|
+
/**
|
|
7179
|
+
* Lo que se está pidiendo cuando un tablero se refresca: el tablero y lo que corre cada panel
|
|
7180
|
+
* (`useRefrescoDeTablero` lo vigila para girar el botón).
|
|
7181
|
+
*/
|
|
7182
|
+
declare const ENDPOINTS_DEL_REFRESCO: string[];
|
|
7183
|
+
/**
|
|
7184
|
+
* Los tags. `tableros` y `panelesDeTablero` son los que la app pone en `invalidaTambien.
|
|
7185
|
+
* alCambiarReporte` de `crearApiDeReportes`: un panel enseña el nombre, la visualización y los
|
|
7186
|
+
* parámetros de su reporte.
|
|
7187
|
+
*/
|
|
7188
|
+
declare const TAGS_DE_TABLEROS: readonly ["tableros", "panelesDeTablero"];
|
|
7189
|
+
interface OpcionesDeApiDeTableros {
|
|
7190
|
+
endpoints: RutasDeTableros;
|
|
7191
|
+
}
|
|
7192
|
+
/**
|
|
7193
|
+
* Inyecta los endpoints de los tableros en el `createApi` de una app y devuelve sus hooks.
|
|
7194
|
+
*
|
|
7195
|
+
* El CRUD del tablero sale de la fábrica de catálogos (`useObtener`, `useListarLazy`, `useGuardar`
|
|
7196
|
+
* y `useEliminar`, con la clave `tableros`): el backend es un `ProjectBaseViewset` y la ficha es un
|
|
7197
|
+
* `DetailPage_v2`, como un catálogo. Lo de los paneles se edita aparte (`<paneles>/`) y viaja
|
|
7198
|
+
* dentro de la ficha del tablero, así que todo lo que cambia un panel invalida esa ficha.
|
|
7199
|
+
*
|
|
7200
|
+
* Se llama una vez, al cargar el módulo. Reserva los nombres de `ENDPOINTS_DE_TABLEROS`.
|
|
7201
|
+
*
|
|
7202
|
+
* const tablerosAPI = crearApiDeTableros(mainAPI, {
|
|
7203
|
+
* endpoints: {
|
|
7204
|
+
* tableros: constants.endpoints.reportes.tableros,
|
|
7205
|
+
* paneles: constants.endpoints.reportes.paneles,
|
|
7206
|
+
* reportes: constants.endpoints.reportes.reportes,
|
|
7207
|
+
* },
|
|
7208
|
+
* });
|
|
7209
|
+
*
|
|
7210
|
+
* y en `crearApiDeReportes`, `invalidaTambien.alCambiarReporte: [{ type: "tableros" },
|
|
7211
|
+
* { type: "panelesDeTablero" }]`.
|
|
7212
|
+
*/
|
|
7213
|
+
declare const crearApiDeTableros: (mainAPI: ApiInyectable, { endpoints: rutas }: OpcionesDeApiDeTableros) => {
|
|
7214
|
+
useGuardarPanelDeTableroMutation: <R extends Record<string, any> = ({
|
|
7215
|
+
requestId?: undefined;
|
|
7216
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7217
|
+
data?: undefined;
|
|
7218
|
+
error?: undefined;
|
|
7219
|
+
endpointName?: string;
|
|
7220
|
+
startedTimeStamp?: undefined;
|
|
7221
|
+
fulfilledTimeStamp?: undefined;
|
|
7222
|
+
} & {
|
|
7223
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7224
|
+
isUninitialized: true;
|
|
7225
|
+
isLoading: false;
|
|
7226
|
+
isSuccess: false;
|
|
7227
|
+
isError: false;
|
|
7228
|
+
}) | ({
|
|
7229
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7230
|
+
} & Omit<{
|
|
7231
|
+
requestId: string;
|
|
7232
|
+
data?: PanelDeTablero | undefined;
|
|
7233
|
+
error?: unknown;
|
|
7234
|
+
endpointName: string;
|
|
7235
|
+
startedTimeStamp: number;
|
|
7236
|
+
fulfilledTimeStamp?: number;
|
|
7237
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7238
|
+
requestId: string;
|
|
7239
|
+
data?: PanelDeTablero | undefined;
|
|
7240
|
+
error?: unknown;
|
|
7241
|
+
endpointName: string;
|
|
7242
|
+
startedTimeStamp: number;
|
|
7243
|
+
fulfilledTimeStamp?: number;
|
|
7244
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7245
|
+
error: undefined;
|
|
7246
|
+
} & {
|
|
7247
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7248
|
+
isUninitialized: false;
|
|
7249
|
+
isLoading: false;
|
|
7250
|
+
isSuccess: true;
|
|
7251
|
+
isError: false;
|
|
7252
|
+
}) | ({
|
|
7253
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7254
|
+
} & {
|
|
7255
|
+
requestId: string;
|
|
7256
|
+
data?: PanelDeTablero | undefined;
|
|
7257
|
+
error?: unknown;
|
|
7258
|
+
endpointName: string;
|
|
7259
|
+
startedTimeStamp: number;
|
|
7260
|
+
fulfilledTimeStamp?: number;
|
|
7261
|
+
} & {
|
|
7262
|
+
data?: undefined;
|
|
7263
|
+
} & {
|
|
7264
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7265
|
+
isUninitialized: false;
|
|
7266
|
+
isLoading: true;
|
|
7267
|
+
isSuccess: false;
|
|
7268
|
+
isError: false;
|
|
7269
|
+
}) | ({
|
|
7270
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7271
|
+
} & Omit<{
|
|
7272
|
+
requestId: string;
|
|
7273
|
+
data?: PanelDeTablero | undefined;
|
|
7274
|
+
error?: unknown;
|
|
7275
|
+
endpointName: string;
|
|
7276
|
+
startedTimeStamp: number;
|
|
7277
|
+
fulfilledTimeStamp?: number;
|
|
7278
|
+
}, "error"> & Required<Pick<{
|
|
7279
|
+
requestId: string;
|
|
7280
|
+
data?: PanelDeTablero | undefined;
|
|
7281
|
+
error?: unknown;
|
|
7282
|
+
endpointName: string;
|
|
7283
|
+
startedTimeStamp: number;
|
|
7284
|
+
fulfilledTimeStamp?: number;
|
|
7285
|
+
}, "error">> & {
|
|
7286
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7287
|
+
isUninitialized: false;
|
|
7288
|
+
isLoading: false;
|
|
7289
|
+
isSuccess: false;
|
|
7290
|
+
isError: true;
|
|
7291
|
+
})>(options?: {
|
|
7292
|
+
selectFromResult?: ((state: ({
|
|
7293
|
+
requestId?: undefined;
|
|
7294
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7295
|
+
data?: undefined;
|
|
7296
|
+
error?: undefined;
|
|
7297
|
+
endpointName?: string;
|
|
7298
|
+
startedTimeStamp?: undefined;
|
|
7299
|
+
fulfilledTimeStamp?: undefined;
|
|
7300
|
+
} & {
|
|
7301
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7302
|
+
isUninitialized: true;
|
|
7303
|
+
isLoading: false;
|
|
7304
|
+
isSuccess: false;
|
|
7305
|
+
isError: false;
|
|
7306
|
+
}) | ({
|
|
7307
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7308
|
+
} & Omit<{
|
|
7309
|
+
requestId: string;
|
|
7310
|
+
data?: PanelDeTablero | undefined;
|
|
7311
|
+
error?: unknown;
|
|
7312
|
+
endpointName: string;
|
|
7313
|
+
startedTimeStamp: number;
|
|
7314
|
+
fulfilledTimeStamp?: number;
|
|
7315
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7316
|
+
requestId: string;
|
|
7317
|
+
data?: PanelDeTablero | undefined;
|
|
7318
|
+
error?: unknown;
|
|
7319
|
+
endpointName: string;
|
|
7320
|
+
startedTimeStamp: number;
|
|
7321
|
+
fulfilledTimeStamp?: number;
|
|
7322
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7323
|
+
error: undefined;
|
|
7324
|
+
} & {
|
|
7325
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7326
|
+
isUninitialized: false;
|
|
7327
|
+
isLoading: false;
|
|
7328
|
+
isSuccess: true;
|
|
7329
|
+
isError: false;
|
|
7330
|
+
}) | ({
|
|
7331
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7332
|
+
} & {
|
|
7333
|
+
requestId: string;
|
|
7334
|
+
data?: PanelDeTablero | undefined;
|
|
7335
|
+
error?: unknown;
|
|
7336
|
+
endpointName: string;
|
|
7337
|
+
startedTimeStamp: number;
|
|
7338
|
+
fulfilledTimeStamp?: number;
|
|
7339
|
+
} & {
|
|
7340
|
+
data?: undefined;
|
|
7341
|
+
} & {
|
|
7342
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7343
|
+
isUninitialized: false;
|
|
7344
|
+
isLoading: true;
|
|
7345
|
+
isSuccess: false;
|
|
7346
|
+
isError: false;
|
|
7347
|
+
}) | ({
|
|
7348
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7349
|
+
} & Omit<{
|
|
7350
|
+
requestId: string;
|
|
7351
|
+
data?: PanelDeTablero | undefined;
|
|
7352
|
+
error?: unknown;
|
|
7353
|
+
endpointName: string;
|
|
7354
|
+
startedTimeStamp: number;
|
|
7355
|
+
fulfilledTimeStamp?: number;
|
|
7356
|
+
}, "error"> & Required<Pick<{
|
|
7357
|
+
requestId: string;
|
|
7358
|
+
data?: PanelDeTablero | undefined;
|
|
7359
|
+
error?: unknown;
|
|
7360
|
+
endpointName: string;
|
|
7361
|
+
startedTimeStamp: number;
|
|
7362
|
+
fulfilledTimeStamp?: number;
|
|
7363
|
+
}, "error">> & {
|
|
7364
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7365
|
+
isUninitialized: false;
|
|
7366
|
+
isLoading: false;
|
|
7367
|
+
isSuccess: false;
|
|
7368
|
+
isError: true;
|
|
7369
|
+
})) => R) | undefined;
|
|
7370
|
+
fixedCacheKey?: string;
|
|
7371
|
+
} | undefined) => readonly [(arg: Partial<PanelDeTablero> & {
|
|
7372
|
+
tablero: number;
|
|
7373
|
+
}) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<Partial<PanelDeTablero> & {
|
|
7374
|
+
tablero: number;
|
|
7375
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, PanelDeTablero, string, unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
|
|
7376
|
+
originalArgs?: (Partial<PanelDeTablero> & {
|
|
7377
|
+
tablero: number;
|
|
7378
|
+
}) | undefined;
|
|
7379
|
+
reset: () => void;
|
|
7380
|
+
}];
|
|
7381
|
+
useBorrarPanelDeTableroMutation: <R extends Record<string, any> = ({
|
|
7382
|
+
requestId?: undefined;
|
|
7383
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7384
|
+
data?: undefined;
|
|
7385
|
+
error?: undefined;
|
|
7386
|
+
endpointName?: string;
|
|
7387
|
+
startedTimeStamp?: undefined;
|
|
7388
|
+
fulfilledTimeStamp?: undefined;
|
|
7389
|
+
} & {
|
|
7390
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7391
|
+
isUninitialized: true;
|
|
7392
|
+
isLoading: false;
|
|
7393
|
+
isSuccess: false;
|
|
7394
|
+
isError: false;
|
|
7395
|
+
}) | ({
|
|
7396
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7397
|
+
} & Omit<{
|
|
7398
|
+
requestId: string;
|
|
7399
|
+
data?: void | undefined;
|
|
7400
|
+
error?: unknown;
|
|
7401
|
+
endpointName: string;
|
|
7402
|
+
startedTimeStamp: number;
|
|
7403
|
+
fulfilledTimeStamp?: number;
|
|
7404
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7405
|
+
requestId: string;
|
|
7406
|
+
data?: void | undefined;
|
|
7407
|
+
error?: unknown;
|
|
7408
|
+
endpointName: string;
|
|
7409
|
+
startedTimeStamp: number;
|
|
7410
|
+
fulfilledTimeStamp?: number;
|
|
7411
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7412
|
+
error: undefined;
|
|
7413
|
+
} & {
|
|
7414
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7415
|
+
isUninitialized: false;
|
|
7416
|
+
isLoading: false;
|
|
7417
|
+
isSuccess: true;
|
|
7418
|
+
isError: false;
|
|
7419
|
+
}) | ({
|
|
7420
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7421
|
+
} & {
|
|
7422
|
+
requestId: string;
|
|
7423
|
+
data?: void | undefined;
|
|
7424
|
+
error?: unknown;
|
|
7425
|
+
endpointName: string;
|
|
7426
|
+
startedTimeStamp: number;
|
|
7427
|
+
fulfilledTimeStamp?: number;
|
|
7428
|
+
} & {
|
|
7429
|
+
data?: undefined;
|
|
7430
|
+
} & {
|
|
7431
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7432
|
+
isUninitialized: false;
|
|
7433
|
+
isLoading: true;
|
|
7434
|
+
isSuccess: false;
|
|
7435
|
+
isError: false;
|
|
7436
|
+
}) | ({
|
|
7437
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7438
|
+
} & Omit<{
|
|
7439
|
+
requestId: string;
|
|
7440
|
+
data?: void | undefined;
|
|
7441
|
+
error?: unknown;
|
|
7442
|
+
endpointName: string;
|
|
7443
|
+
startedTimeStamp: number;
|
|
7444
|
+
fulfilledTimeStamp?: number;
|
|
7445
|
+
}, "error"> & Required<Pick<{
|
|
7446
|
+
requestId: string;
|
|
7447
|
+
data?: void | undefined;
|
|
7448
|
+
error?: unknown;
|
|
7449
|
+
endpointName: string;
|
|
7450
|
+
startedTimeStamp: number;
|
|
7451
|
+
fulfilledTimeStamp?: number;
|
|
7452
|
+
}, "error">> & {
|
|
7453
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7454
|
+
isUninitialized: false;
|
|
7455
|
+
isLoading: false;
|
|
7456
|
+
isSuccess: false;
|
|
7457
|
+
isError: true;
|
|
7458
|
+
})>(options?: {
|
|
7459
|
+
selectFromResult?: ((state: ({
|
|
7460
|
+
requestId?: undefined;
|
|
7461
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7462
|
+
data?: undefined;
|
|
7463
|
+
error?: undefined;
|
|
7464
|
+
endpointName?: string;
|
|
7465
|
+
startedTimeStamp?: undefined;
|
|
7466
|
+
fulfilledTimeStamp?: undefined;
|
|
7467
|
+
} & {
|
|
7468
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7469
|
+
isUninitialized: true;
|
|
7470
|
+
isLoading: false;
|
|
7471
|
+
isSuccess: false;
|
|
7472
|
+
isError: false;
|
|
7473
|
+
}) | ({
|
|
7474
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7475
|
+
} & Omit<{
|
|
7476
|
+
requestId: string;
|
|
7477
|
+
data?: void | undefined;
|
|
7478
|
+
error?: unknown;
|
|
7479
|
+
endpointName: string;
|
|
7480
|
+
startedTimeStamp: number;
|
|
7481
|
+
fulfilledTimeStamp?: number;
|
|
7482
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7483
|
+
requestId: string;
|
|
7484
|
+
data?: void | undefined;
|
|
7485
|
+
error?: unknown;
|
|
7486
|
+
endpointName: string;
|
|
7487
|
+
startedTimeStamp: number;
|
|
7488
|
+
fulfilledTimeStamp?: number;
|
|
7489
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7490
|
+
error: undefined;
|
|
7491
|
+
} & {
|
|
7492
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7493
|
+
isUninitialized: false;
|
|
7494
|
+
isLoading: false;
|
|
7495
|
+
isSuccess: true;
|
|
7496
|
+
isError: false;
|
|
7497
|
+
}) | ({
|
|
7498
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7499
|
+
} & {
|
|
7500
|
+
requestId: string;
|
|
7501
|
+
data?: void | undefined;
|
|
7502
|
+
error?: unknown;
|
|
7503
|
+
endpointName: string;
|
|
7504
|
+
startedTimeStamp: number;
|
|
7505
|
+
fulfilledTimeStamp?: number;
|
|
7506
|
+
} & {
|
|
7507
|
+
data?: undefined;
|
|
7508
|
+
} & {
|
|
7509
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7510
|
+
isUninitialized: false;
|
|
7511
|
+
isLoading: true;
|
|
7512
|
+
isSuccess: false;
|
|
7513
|
+
isError: false;
|
|
7514
|
+
}) | ({
|
|
7515
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7516
|
+
} & Omit<{
|
|
7517
|
+
requestId: string;
|
|
7518
|
+
data?: void | undefined;
|
|
7519
|
+
error?: unknown;
|
|
7520
|
+
endpointName: string;
|
|
7521
|
+
startedTimeStamp: number;
|
|
7522
|
+
fulfilledTimeStamp?: number;
|
|
7523
|
+
}, "error"> & Required<Pick<{
|
|
7524
|
+
requestId: string;
|
|
7525
|
+
data?: void | undefined;
|
|
7526
|
+
error?: unknown;
|
|
7527
|
+
endpointName: string;
|
|
7528
|
+
startedTimeStamp: number;
|
|
7529
|
+
fulfilledTimeStamp?: number;
|
|
7530
|
+
}, "error">> & {
|
|
7531
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7532
|
+
isUninitialized: false;
|
|
7533
|
+
isLoading: false;
|
|
7534
|
+
isSuccess: false;
|
|
7535
|
+
isError: true;
|
|
7536
|
+
})) => R) | undefined;
|
|
7537
|
+
fixedCacheKey?: string;
|
|
7538
|
+
} | undefined) => readonly [(arg: {
|
|
7539
|
+
id: number;
|
|
7540
|
+
tablero: number;
|
|
7541
|
+
}) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<{
|
|
7542
|
+
id: number;
|
|
7543
|
+
tablero: number;
|
|
7544
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, void, string, unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
|
|
7545
|
+
originalArgs?: {
|
|
7546
|
+
id: number;
|
|
7547
|
+
tablero: number;
|
|
7548
|
+
} | undefined;
|
|
7549
|
+
reset: () => void;
|
|
7550
|
+
}];
|
|
7551
|
+
useReordenarPanelesDeTableroMutation: <R extends Record<string, any> = ({
|
|
7552
|
+
requestId?: undefined;
|
|
7553
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7554
|
+
data?: undefined;
|
|
7555
|
+
error?: undefined;
|
|
7556
|
+
endpointName?: string;
|
|
7557
|
+
startedTimeStamp?: undefined;
|
|
7558
|
+
fulfilledTimeStamp?: undefined;
|
|
7559
|
+
} & {
|
|
7560
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7561
|
+
isUninitialized: true;
|
|
7562
|
+
isLoading: false;
|
|
7563
|
+
isSuccess: false;
|
|
7564
|
+
isError: false;
|
|
7565
|
+
}) | ({
|
|
7566
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7567
|
+
} & Omit<{
|
|
7568
|
+
requestId: string;
|
|
7569
|
+
data?: void | undefined;
|
|
7570
|
+
error?: unknown;
|
|
7571
|
+
endpointName: string;
|
|
7572
|
+
startedTimeStamp: number;
|
|
7573
|
+
fulfilledTimeStamp?: number;
|
|
7574
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7575
|
+
requestId: string;
|
|
7576
|
+
data?: void | undefined;
|
|
7577
|
+
error?: unknown;
|
|
7578
|
+
endpointName: string;
|
|
7579
|
+
startedTimeStamp: number;
|
|
7580
|
+
fulfilledTimeStamp?: number;
|
|
7581
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7582
|
+
error: undefined;
|
|
7583
|
+
} & {
|
|
7584
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7585
|
+
isUninitialized: false;
|
|
7586
|
+
isLoading: false;
|
|
7587
|
+
isSuccess: true;
|
|
7588
|
+
isError: false;
|
|
7589
|
+
}) | ({
|
|
7590
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7591
|
+
} & {
|
|
7592
|
+
requestId: string;
|
|
7593
|
+
data?: void | undefined;
|
|
7594
|
+
error?: unknown;
|
|
7595
|
+
endpointName: string;
|
|
7596
|
+
startedTimeStamp: number;
|
|
7597
|
+
fulfilledTimeStamp?: number;
|
|
7598
|
+
} & {
|
|
7599
|
+
data?: undefined;
|
|
7600
|
+
} & {
|
|
7601
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7602
|
+
isUninitialized: false;
|
|
7603
|
+
isLoading: true;
|
|
7604
|
+
isSuccess: false;
|
|
7605
|
+
isError: false;
|
|
7606
|
+
}) | ({
|
|
7607
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7608
|
+
} & Omit<{
|
|
7609
|
+
requestId: string;
|
|
7610
|
+
data?: void | undefined;
|
|
7611
|
+
error?: unknown;
|
|
7612
|
+
endpointName: string;
|
|
7613
|
+
startedTimeStamp: number;
|
|
7614
|
+
fulfilledTimeStamp?: number;
|
|
7615
|
+
}, "error"> & Required<Pick<{
|
|
7616
|
+
requestId: string;
|
|
7617
|
+
data?: void | undefined;
|
|
7618
|
+
error?: unknown;
|
|
7619
|
+
endpointName: string;
|
|
7620
|
+
startedTimeStamp: number;
|
|
7621
|
+
fulfilledTimeStamp?: number;
|
|
7622
|
+
}, "error">> & {
|
|
7623
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7624
|
+
isUninitialized: false;
|
|
7625
|
+
isLoading: false;
|
|
7626
|
+
isSuccess: false;
|
|
7627
|
+
isError: true;
|
|
7628
|
+
})>(options?: {
|
|
7629
|
+
selectFromResult?: ((state: ({
|
|
7630
|
+
requestId?: undefined;
|
|
7631
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7632
|
+
data?: undefined;
|
|
7633
|
+
error?: undefined;
|
|
7634
|
+
endpointName?: string;
|
|
7635
|
+
startedTimeStamp?: undefined;
|
|
7636
|
+
fulfilledTimeStamp?: undefined;
|
|
7637
|
+
} & {
|
|
7638
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7639
|
+
isUninitialized: true;
|
|
7640
|
+
isLoading: false;
|
|
7641
|
+
isSuccess: false;
|
|
7642
|
+
isError: false;
|
|
7643
|
+
}) | ({
|
|
7644
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7645
|
+
} & Omit<{
|
|
7646
|
+
requestId: string;
|
|
7647
|
+
data?: void | undefined;
|
|
7648
|
+
error?: unknown;
|
|
7649
|
+
endpointName: string;
|
|
7650
|
+
startedTimeStamp: number;
|
|
7651
|
+
fulfilledTimeStamp?: number;
|
|
7652
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
7653
|
+
requestId: string;
|
|
7654
|
+
data?: void | undefined;
|
|
7655
|
+
error?: unknown;
|
|
7656
|
+
endpointName: string;
|
|
7657
|
+
startedTimeStamp: number;
|
|
7658
|
+
fulfilledTimeStamp?: number;
|
|
7659
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
7660
|
+
error: undefined;
|
|
7661
|
+
} & {
|
|
7662
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
7663
|
+
isUninitialized: false;
|
|
7664
|
+
isLoading: false;
|
|
7665
|
+
isSuccess: true;
|
|
7666
|
+
isError: false;
|
|
7667
|
+
}) | ({
|
|
7668
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7669
|
+
} & {
|
|
7670
|
+
requestId: string;
|
|
7671
|
+
data?: void | undefined;
|
|
7672
|
+
error?: unknown;
|
|
7673
|
+
endpointName: string;
|
|
7674
|
+
startedTimeStamp: number;
|
|
7675
|
+
fulfilledTimeStamp?: number;
|
|
7676
|
+
} & {
|
|
7677
|
+
data?: undefined;
|
|
7678
|
+
} & {
|
|
7679
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
7680
|
+
isUninitialized: false;
|
|
7681
|
+
isLoading: true;
|
|
7682
|
+
isSuccess: false;
|
|
7683
|
+
isError: false;
|
|
7684
|
+
}) | ({
|
|
7685
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7686
|
+
} & Omit<{
|
|
7687
|
+
requestId: string;
|
|
7688
|
+
data?: void | undefined;
|
|
7689
|
+
error?: unknown;
|
|
7690
|
+
endpointName: string;
|
|
7691
|
+
startedTimeStamp: number;
|
|
7692
|
+
fulfilledTimeStamp?: number;
|
|
7693
|
+
}, "error"> & Required<Pick<{
|
|
7694
|
+
requestId: string;
|
|
7695
|
+
data?: void | undefined;
|
|
7696
|
+
error?: unknown;
|
|
7697
|
+
endpointName: string;
|
|
7698
|
+
startedTimeStamp: number;
|
|
7699
|
+
fulfilledTimeStamp?: number;
|
|
7700
|
+
}, "error">> & {
|
|
7701
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
7702
|
+
isUninitialized: false;
|
|
7703
|
+
isLoading: false;
|
|
7704
|
+
isSuccess: false;
|
|
7705
|
+
isError: true;
|
|
7706
|
+
})) => R) | undefined;
|
|
7707
|
+
fixedCacheKey?: string;
|
|
7708
|
+
} | undefined) => readonly [(arg: {
|
|
7709
|
+
tablero: number;
|
|
7710
|
+
ids: number[];
|
|
7711
|
+
}) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<{
|
|
7712
|
+
tablero: number;
|
|
7713
|
+
ids: number[];
|
|
7714
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, void, string, unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
|
|
7715
|
+
originalArgs?: {
|
|
7716
|
+
tablero: number;
|
|
7717
|
+
ids: number[];
|
|
7718
|
+
} | undefined;
|
|
7719
|
+
reset: () => void;
|
|
7720
|
+
}];
|
|
7721
|
+
useGetResultadosDePanelQuery: <R extends Record<string, any> = _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
7722
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7723
|
+
originalArgs?: undefined | undefined;
|
|
7724
|
+
data?: undefined | undefined;
|
|
7725
|
+
error?: undefined | undefined;
|
|
7726
|
+
requestId?: undefined | undefined;
|
|
7727
|
+
endpointName?: string | undefined;
|
|
7728
|
+
startedTimeStamp?: undefined | undefined;
|
|
7729
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
7730
|
+
} & {
|
|
7731
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7732
|
+
isUninitialized: false;
|
|
7733
|
+
isLoading: false;
|
|
7734
|
+
isFetching: false;
|
|
7735
|
+
isSuccess: false;
|
|
7736
|
+
isError: false;
|
|
7737
|
+
}, "isUninitialized"> & {
|
|
7738
|
+
isUninitialized: true;
|
|
7739
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7740
|
+
id: number | string;
|
|
7741
|
+
parametros?: ValoresDeParametros;
|
|
7742
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7743
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7744
|
+
isUninitialized: false;
|
|
7745
|
+
isLoading: false;
|
|
7746
|
+
isFetching: false;
|
|
7747
|
+
isSuccess: false;
|
|
7748
|
+
isError: false;
|
|
7749
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
7750
|
+
isLoading: true;
|
|
7751
|
+
isFetching: boolean;
|
|
7752
|
+
data: undefined;
|
|
7753
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7754
|
+
id: number | string;
|
|
7755
|
+
parametros?: ValoresDeParametros;
|
|
7756
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7757
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7758
|
+
isUninitialized: false;
|
|
7759
|
+
isLoading: false;
|
|
7760
|
+
isFetching: false;
|
|
7761
|
+
isSuccess: false;
|
|
7762
|
+
isError: false;
|
|
7763
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "isSuccess"> & {
|
|
7764
|
+
isSuccess: true;
|
|
7765
|
+
isFetching: true;
|
|
7766
|
+
error: undefined;
|
|
7767
|
+
} & {
|
|
7768
|
+
data: ResultadosDeReporte;
|
|
7769
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7770
|
+
id: number | string;
|
|
7771
|
+
parametros?: ValoresDeParametros;
|
|
7772
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7773
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7774
|
+
isUninitialized: false;
|
|
7775
|
+
isLoading: false;
|
|
7776
|
+
isFetching: false;
|
|
7777
|
+
isSuccess: false;
|
|
7778
|
+
isError: false;
|
|
7779
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7780
|
+
id: number | string;
|
|
7781
|
+
parametros?: ValoresDeParametros;
|
|
7782
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7783
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7784
|
+
isUninitialized: false;
|
|
7785
|
+
isLoading: false;
|
|
7786
|
+
isFetching: false;
|
|
7787
|
+
isSuccess: false;
|
|
7788
|
+
isError: false;
|
|
7789
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "currentData" | "isSuccess"> & {
|
|
7790
|
+
isSuccess: true;
|
|
7791
|
+
isFetching: false;
|
|
7792
|
+
error: undefined;
|
|
7793
|
+
} & {
|
|
7794
|
+
data: ResultadosDeReporte;
|
|
7795
|
+
currentData: ResultadosDeReporte;
|
|
7796
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7797
|
+
id: number | string;
|
|
7798
|
+
parametros?: ValoresDeParametros;
|
|
7799
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7800
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7801
|
+
isUninitialized: false;
|
|
7802
|
+
isLoading: false;
|
|
7803
|
+
isFetching: false;
|
|
7804
|
+
isSuccess: false;
|
|
7805
|
+
isError: false;
|
|
7806
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7807
|
+
id: number | string;
|
|
7808
|
+
parametros?: ValoresDeParametros;
|
|
7809
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7810
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7811
|
+
isUninitialized: false;
|
|
7812
|
+
isLoading: false;
|
|
7813
|
+
isFetching: false;
|
|
7814
|
+
isSuccess: false;
|
|
7815
|
+
isError: false;
|
|
7816
|
+
}, "error" | "isError"> & {
|
|
7817
|
+
isError: true;
|
|
7818
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7819
|
+
id: number | string;
|
|
7820
|
+
parametros?: ValoresDeParametros;
|
|
7821
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7822
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7823
|
+
isUninitialized: false;
|
|
7824
|
+
isLoading: false;
|
|
7825
|
+
isFetching: false;
|
|
7826
|
+
isSuccess: false;
|
|
7827
|
+
isError: false;
|
|
7828
|
+
}, "error">>)> & {
|
|
7829
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
7830
|
+
}>(arg: typeof _reduxjs_toolkit_query.skipToken | ({
|
|
7831
|
+
id: number | string;
|
|
7832
|
+
parametros?: ValoresDeParametros;
|
|
7833
|
+
} & PaginaDeResultados), options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
7834
|
+
skip?: boolean;
|
|
7835
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
7836
|
+
} & {
|
|
7837
|
+
skip?: boolean;
|
|
7838
|
+
selectFromResult?: ((state: _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
7839
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7840
|
+
originalArgs?: undefined | undefined;
|
|
7841
|
+
data?: undefined | undefined;
|
|
7842
|
+
error?: undefined | undefined;
|
|
7843
|
+
requestId?: undefined | undefined;
|
|
7844
|
+
endpointName?: string | undefined;
|
|
7845
|
+
startedTimeStamp?: undefined | undefined;
|
|
7846
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
7847
|
+
} & {
|
|
7848
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7849
|
+
isUninitialized: false;
|
|
7850
|
+
isLoading: false;
|
|
7851
|
+
isFetching: false;
|
|
7852
|
+
isSuccess: false;
|
|
7853
|
+
isError: false;
|
|
7854
|
+
}, "isUninitialized"> & {
|
|
7855
|
+
isUninitialized: true;
|
|
7856
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7857
|
+
id: number | string;
|
|
7858
|
+
parametros?: ValoresDeParametros;
|
|
7859
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7860
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7861
|
+
isUninitialized: false;
|
|
7862
|
+
isLoading: false;
|
|
7863
|
+
isFetching: false;
|
|
7864
|
+
isSuccess: false;
|
|
7865
|
+
isError: false;
|
|
7866
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
7867
|
+
isLoading: true;
|
|
7868
|
+
isFetching: boolean;
|
|
7869
|
+
data: undefined;
|
|
7870
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7871
|
+
id: number | string;
|
|
7872
|
+
parametros?: ValoresDeParametros;
|
|
7873
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7874
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7875
|
+
isUninitialized: false;
|
|
7876
|
+
isLoading: false;
|
|
7877
|
+
isFetching: false;
|
|
7878
|
+
isSuccess: false;
|
|
7879
|
+
isError: false;
|
|
7880
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "isSuccess"> & {
|
|
7881
|
+
isSuccess: true;
|
|
7882
|
+
isFetching: true;
|
|
7883
|
+
error: undefined;
|
|
7884
|
+
} & {
|
|
7885
|
+
data: ResultadosDeReporte;
|
|
7886
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7887
|
+
id: number | string;
|
|
7888
|
+
parametros?: ValoresDeParametros;
|
|
7889
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7890
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7891
|
+
isUninitialized: false;
|
|
7892
|
+
isLoading: false;
|
|
7893
|
+
isFetching: false;
|
|
7894
|
+
isSuccess: false;
|
|
7895
|
+
isError: false;
|
|
7896
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7897
|
+
id: number | string;
|
|
7898
|
+
parametros?: ValoresDeParametros;
|
|
7899
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7900
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7901
|
+
isUninitialized: false;
|
|
7902
|
+
isLoading: false;
|
|
7903
|
+
isFetching: false;
|
|
7904
|
+
isSuccess: false;
|
|
7905
|
+
isError: false;
|
|
7906
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "currentData" | "isSuccess"> & {
|
|
7907
|
+
isSuccess: true;
|
|
7908
|
+
isFetching: false;
|
|
7909
|
+
error: undefined;
|
|
7910
|
+
} & {
|
|
7911
|
+
data: ResultadosDeReporte;
|
|
7912
|
+
currentData: ResultadosDeReporte;
|
|
7913
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7914
|
+
id: number | string;
|
|
7915
|
+
parametros?: ValoresDeParametros;
|
|
7916
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7917
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7918
|
+
isUninitialized: false;
|
|
7919
|
+
isLoading: false;
|
|
7920
|
+
isFetching: false;
|
|
7921
|
+
isSuccess: false;
|
|
7922
|
+
isError: false;
|
|
7923
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7924
|
+
id: number | string;
|
|
7925
|
+
parametros?: ValoresDeParametros;
|
|
7926
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7927
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7928
|
+
isUninitialized: false;
|
|
7929
|
+
isLoading: false;
|
|
7930
|
+
isFetching: false;
|
|
7931
|
+
isSuccess: false;
|
|
7932
|
+
isError: false;
|
|
7933
|
+
}, "error" | "isError"> & {
|
|
7934
|
+
isError: true;
|
|
7935
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7936
|
+
id: number | string;
|
|
7937
|
+
parametros?: ValoresDeParametros;
|
|
7938
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>> & {
|
|
7939
|
+
currentData?: ResultadosDeReporte | undefined;
|
|
7940
|
+
isUninitialized: false;
|
|
7941
|
+
isLoading: false;
|
|
7942
|
+
isFetching: false;
|
|
7943
|
+
isSuccess: false;
|
|
7944
|
+
isError: false;
|
|
7945
|
+
}, "error">>)> & {
|
|
7946
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
7947
|
+
}) => R) | undefined;
|
|
7948
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
7949
|
+
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7950
|
+
id: number | string;
|
|
7951
|
+
parametros?: ValoresDeParametros;
|
|
7952
|
+
} & PaginaDeResultados, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, ResultadosDeReporte, string, unknown>>;
|
|
7953
|
+
};
|
|
7954
|
+
useBuscarReportesParaPanelQuery: <R extends Record<string, any> = _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
7955
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
7956
|
+
originalArgs?: undefined | undefined;
|
|
7957
|
+
data?: undefined | undefined;
|
|
7958
|
+
error?: undefined | undefined;
|
|
7959
|
+
requestId?: undefined | undefined;
|
|
7960
|
+
endpointName?: string | undefined;
|
|
7961
|
+
startedTimeStamp?: undefined | undefined;
|
|
7962
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
7963
|
+
} & {
|
|
7964
|
+
currentData?: {
|
|
7965
|
+
count: number;
|
|
7966
|
+
results: ReporteDisponible[];
|
|
7967
|
+
} | undefined;
|
|
7968
|
+
isUninitialized: false;
|
|
7969
|
+
isLoading: false;
|
|
7970
|
+
isFetching: false;
|
|
7971
|
+
isSuccess: false;
|
|
7972
|
+
isError: false;
|
|
7973
|
+
}, "isUninitialized"> & {
|
|
7974
|
+
isUninitialized: true;
|
|
7975
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7976
|
+
texto: string;
|
|
7977
|
+
tablero: number;
|
|
7978
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
7979
|
+
count: number;
|
|
7980
|
+
results: ReporteDisponible[];
|
|
7981
|
+
}, string, unknown>> & {
|
|
7982
|
+
currentData?: {
|
|
7983
|
+
count: number;
|
|
7984
|
+
results: ReporteDisponible[];
|
|
7985
|
+
} | undefined;
|
|
7986
|
+
isUninitialized: false;
|
|
7987
|
+
isLoading: false;
|
|
7988
|
+
isFetching: false;
|
|
7989
|
+
isSuccess: false;
|
|
7990
|
+
isError: false;
|
|
7991
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
7992
|
+
isLoading: true;
|
|
7993
|
+
isFetching: boolean;
|
|
7994
|
+
data: undefined;
|
|
7995
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
7996
|
+
texto: string;
|
|
7997
|
+
tablero: number;
|
|
7998
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
7999
|
+
count: number;
|
|
8000
|
+
results: ReporteDisponible[];
|
|
8001
|
+
}, string, unknown>> & {
|
|
8002
|
+
currentData?: {
|
|
8003
|
+
count: number;
|
|
8004
|
+
results: ReporteDisponible[];
|
|
8005
|
+
} | undefined;
|
|
8006
|
+
isUninitialized: false;
|
|
8007
|
+
isLoading: false;
|
|
8008
|
+
isFetching: false;
|
|
8009
|
+
isSuccess: false;
|
|
8010
|
+
isError: false;
|
|
8011
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "isSuccess"> & {
|
|
8012
|
+
isSuccess: true;
|
|
8013
|
+
isFetching: true;
|
|
8014
|
+
error: undefined;
|
|
8015
|
+
} & {
|
|
8016
|
+
data: {
|
|
8017
|
+
count: number;
|
|
8018
|
+
results: ReporteDisponible[];
|
|
8019
|
+
};
|
|
8020
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8021
|
+
texto: string;
|
|
8022
|
+
tablero: number;
|
|
8023
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8024
|
+
count: number;
|
|
8025
|
+
results: ReporteDisponible[];
|
|
8026
|
+
}, string, unknown>> & {
|
|
8027
|
+
currentData?: {
|
|
8028
|
+
count: number;
|
|
8029
|
+
results: ReporteDisponible[];
|
|
8030
|
+
} | undefined;
|
|
8031
|
+
isUninitialized: false;
|
|
8032
|
+
isLoading: false;
|
|
8033
|
+
isFetching: false;
|
|
8034
|
+
isSuccess: false;
|
|
8035
|
+
isError: false;
|
|
8036
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8037
|
+
texto: string;
|
|
8038
|
+
tablero: number;
|
|
8039
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8040
|
+
count: number;
|
|
8041
|
+
results: ReporteDisponible[];
|
|
8042
|
+
}, string, unknown>> & {
|
|
8043
|
+
currentData?: {
|
|
8044
|
+
count: number;
|
|
8045
|
+
results: ReporteDisponible[];
|
|
8046
|
+
} | undefined;
|
|
8047
|
+
isUninitialized: false;
|
|
8048
|
+
isLoading: false;
|
|
8049
|
+
isFetching: false;
|
|
8050
|
+
isSuccess: false;
|
|
8051
|
+
isError: false;
|
|
8052
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "currentData" | "isSuccess"> & {
|
|
8053
|
+
isSuccess: true;
|
|
8054
|
+
isFetching: false;
|
|
8055
|
+
error: undefined;
|
|
8056
|
+
} & {
|
|
8057
|
+
data: {
|
|
8058
|
+
count: number;
|
|
8059
|
+
results: ReporteDisponible[];
|
|
8060
|
+
};
|
|
8061
|
+
currentData: {
|
|
8062
|
+
count: number;
|
|
8063
|
+
results: ReporteDisponible[];
|
|
8064
|
+
};
|
|
8065
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8066
|
+
texto: string;
|
|
8067
|
+
tablero: number;
|
|
8068
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8069
|
+
count: number;
|
|
8070
|
+
results: ReporteDisponible[];
|
|
8071
|
+
}, string, unknown>> & {
|
|
8072
|
+
currentData?: {
|
|
8073
|
+
count: number;
|
|
8074
|
+
results: ReporteDisponible[];
|
|
8075
|
+
} | undefined;
|
|
8076
|
+
isUninitialized: false;
|
|
8077
|
+
isLoading: false;
|
|
8078
|
+
isFetching: false;
|
|
8079
|
+
isSuccess: false;
|
|
8080
|
+
isError: false;
|
|
8081
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8082
|
+
texto: string;
|
|
8083
|
+
tablero: number;
|
|
8084
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8085
|
+
count: number;
|
|
8086
|
+
results: ReporteDisponible[];
|
|
8087
|
+
}, string, unknown>> & {
|
|
8088
|
+
currentData?: {
|
|
8089
|
+
count: number;
|
|
8090
|
+
results: ReporteDisponible[];
|
|
8091
|
+
} | undefined;
|
|
8092
|
+
isUninitialized: false;
|
|
8093
|
+
isLoading: false;
|
|
8094
|
+
isFetching: false;
|
|
8095
|
+
isSuccess: false;
|
|
8096
|
+
isError: false;
|
|
8097
|
+
}, "error" | "isError"> & {
|
|
8098
|
+
isError: true;
|
|
8099
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8100
|
+
texto: string;
|
|
8101
|
+
tablero: number;
|
|
8102
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8103
|
+
count: number;
|
|
8104
|
+
results: ReporteDisponible[];
|
|
8105
|
+
}, string, unknown>> & {
|
|
8106
|
+
currentData?: {
|
|
8107
|
+
count: number;
|
|
8108
|
+
results: ReporteDisponible[];
|
|
8109
|
+
} | undefined;
|
|
8110
|
+
isUninitialized: false;
|
|
8111
|
+
isLoading: false;
|
|
8112
|
+
isFetching: false;
|
|
8113
|
+
isSuccess: false;
|
|
8114
|
+
isError: false;
|
|
8115
|
+
}, "error">>)> & {
|
|
8116
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
8117
|
+
}>(arg: typeof _reduxjs_toolkit_query.skipToken | {
|
|
8118
|
+
texto: string;
|
|
8119
|
+
tablero: number;
|
|
8120
|
+
}, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
8121
|
+
skip?: boolean;
|
|
8122
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
8123
|
+
} & {
|
|
8124
|
+
skip?: boolean;
|
|
8125
|
+
selectFromResult?: ((state: _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
8126
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
8127
|
+
originalArgs?: undefined | undefined;
|
|
8128
|
+
data?: undefined | undefined;
|
|
8129
|
+
error?: undefined | undefined;
|
|
8130
|
+
requestId?: undefined | undefined;
|
|
8131
|
+
endpointName?: string | undefined;
|
|
8132
|
+
startedTimeStamp?: undefined | undefined;
|
|
8133
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
8134
|
+
} & {
|
|
8135
|
+
currentData?: {
|
|
8136
|
+
count: number;
|
|
8137
|
+
results: ReporteDisponible[];
|
|
8138
|
+
} | undefined;
|
|
8139
|
+
isUninitialized: false;
|
|
8140
|
+
isLoading: false;
|
|
8141
|
+
isFetching: false;
|
|
8142
|
+
isSuccess: false;
|
|
8143
|
+
isError: false;
|
|
8144
|
+
}, "isUninitialized"> & {
|
|
8145
|
+
isUninitialized: true;
|
|
8146
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8147
|
+
texto: string;
|
|
8148
|
+
tablero: number;
|
|
8149
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8150
|
+
count: number;
|
|
8151
|
+
results: ReporteDisponible[];
|
|
8152
|
+
}, string, unknown>> & {
|
|
8153
|
+
currentData?: {
|
|
8154
|
+
count: number;
|
|
8155
|
+
results: ReporteDisponible[];
|
|
8156
|
+
} | undefined;
|
|
8157
|
+
isUninitialized: false;
|
|
8158
|
+
isLoading: false;
|
|
8159
|
+
isFetching: false;
|
|
8160
|
+
isSuccess: false;
|
|
8161
|
+
isError: false;
|
|
8162
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
8163
|
+
isLoading: true;
|
|
8164
|
+
isFetching: boolean;
|
|
8165
|
+
data: undefined;
|
|
8166
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8167
|
+
texto: string;
|
|
8168
|
+
tablero: number;
|
|
8169
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8170
|
+
count: number;
|
|
8171
|
+
results: ReporteDisponible[];
|
|
8172
|
+
}, string, unknown>> & {
|
|
8173
|
+
currentData?: {
|
|
8174
|
+
count: number;
|
|
8175
|
+
results: ReporteDisponible[];
|
|
8176
|
+
} | undefined;
|
|
8177
|
+
isUninitialized: false;
|
|
8178
|
+
isLoading: false;
|
|
8179
|
+
isFetching: false;
|
|
8180
|
+
isSuccess: false;
|
|
8181
|
+
isError: false;
|
|
8182
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "isSuccess"> & {
|
|
8183
|
+
isSuccess: true;
|
|
8184
|
+
isFetching: true;
|
|
8185
|
+
error: undefined;
|
|
8186
|
+
} & {
|
|
8187
|
+
data: {
|
|
8188
|
+
count: number;
|
|
8189
|
+
results: ReporteDisponible[];
|
|
8190
|
+
};
|
|
8191
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8192
|
+
texto: string;
|
|
8193
|
+
tablero: number;
|
|
8194
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8195
|
+
count: number;
|
|
8196
|
+
results: ReporteDisponible[];
|
|
8197
|
+
}, string, unknown>> & {
|
|
8198
|
+
currentData?: {
|
|
8199
|
+
count: number;
|
|
8200
|
+
results: ReporteDisponible[];
|
|
8201
|
+
} | undefined;
|
|
8202
|
+
isUninitialized: false;
|
|
8203
|
+
isLoading: false;
|
|
8204
|
+
isFetching: false;
|
|
8205
|
+
isSuccess: false;
|
|
8206
|
+
isError: false;
|
|
8207
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8208
|
+
texto: string;
|
|
8209
|
+
tablero: number;
|
|
8210
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8211
|
+
count: number;
|
|
8212
|
+
results: ReporteDisponible[];
|
|
8213
|
+
}, string, unknown>> & {
|
|
8214
|
+
currentData?: {
|
|
8215
|
+
count: number;
|
|
8216
|
+
results: ReporteDisponible[];
|
|
8217
|
+
} | undefined;
|
|
8218
|
+
isUninitialized: false;
|
|
8219
|
+
isLoading: false;
|
|
8220
|
+
isFetching: false;
|
|
8221
|
+
isSuccess: false;
|
|
8222
|
+
isError: false;
|
|
8223
|
+
}, "data" | "error" | "isFetching" | "fulfilledTimeStamp" | "currentData" | "isSuccess"> & {
|
|
8224
|
+
isSuccess: true;
|
|
8225
|
+
isFetching: false;
|
|
8226
|
+
error: undefined;
|
|
8227
|
+
} & {
|
|
8228
|
+
data: {
|
|
8229
|
+
count: number;
|
|
8230
|
+
results: ReporteDisponible[];
|
|
8231
|
+
};
|
|
8232
|
+
currentData: {
|
|
8233
|
+
count: number;
|
|
8234
|
+
results: ReporteDisponible[];
|
|
8235
|
+
};
|
|
8236
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8237
|
+
texto: string;
|
|
8238
|
+
tablero: number;
|
|
8239
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8240
|
+
count: number;
|
|
8241
|
+
results: ReporteDisponible[];
|
|
8242
|
+
}, string, unknown>> & {
|
|
8243
|
+
currentData?: {
|
|
8244
|
+
count: number;
|
|
8245
|
+
results: ReporteDisponible[];
|
|
8246
|
+
} | undefined;
|
|
8247
|
+
isUninitialized: false;
|
|
8248
|
+
isLoading: false;
|
|
8249
|
+
isFetching: false;
|
|
8250
|
+
isSuccess: false;
|
|
8251
|
+
isError: false;
|
|
8252
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8253
|
+
texto: string;
|
|
8254
|
+
tablero: number;
|
|
8255
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8256
|
+
count: number;
|
|
8257
|
+
results: ReporteDisponible[];
|
|
8258
|
+
}, string, unknown>> & {
|
|
8259
|
+
currentData?: {
|
|
8260
|
+
count: number;
|
|
8261
|
+
results: ReporteDisponible[];
|
|
8262
|
+
} | undefined;
|
|
8263
|
+
isUninitialized: false;
|
|
8264
|
+
isLoading: false;
|
|
8265
|
+
isFetching: false;
|
|
8266
|
+
isSuccess: false;
|
|
8267
|
+
isError: false;
|
|
8268
|
+
}, "error" | "isError"> & {
|
|
8269
|
+
isError: true;
|
|
8270
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8271
|
+
texto: string;
|
|
8272
|
+
tablero: number;
|
|
8273
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8274
|
+
count: number;
|
|
8275
|
+
results: ReporteDisponible[];
|
|
8276
|
+
}, string, unknown>> & {
|
|
8277
|
+
currentData?: {
|
|
8278
|
+
count: number;
|
|
8279
|
+
results: ReporteDisponible[];
|
|
8280
|
+
} | undefined;
|
|
8281
|
+
isUninitialized: false;
|
|
8282
|
+
isLoading: false;
|
|
8283
|
+
isFetching: false;
|
|
8284
|
+
isSuccess: false;
|
|
8285
|
+
isError: false;
|
|
8286
|
+
}, "error">>)> & {
|
|
8287
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
8288
|
+
}) => R) | undefined;
|
|
8289
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
8290
|
+
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<{
|
|
8291
|
+
texto: string;
|
|
8292
|
+
tablero: number;
|
|
8293
|
+
}, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, unknown>, string, {
|
|
8294
|
+
count: number;
|
|
8295
|
+
results: ReporteDisponible[];
|
|
8296
|
+
}, string, unknown>>;
|
|
8297
|
+
};
|
|
8298
|
+
/**
|
|
8299
|
+
* Lo que refrescar un tablero invalida: su ficha y lo que corre cada panel que se ve. Sólo
|
|
8300
|
+
* se vuelven a pedir las consultas que alguien está mirando; las demás, al abrirlas.
|
|
8301
|
+
*/
|
|
8302
|
+
invalidarTablero: (tablero: number, paneles: number[]) => {
|
|
8303
|
+
payload: (_reduxjs_toolkit_query.TagDescription<string> | null | undefined)[];
|
|
8304
|
+
type: string;
|
|
8305
|
+
};
|
|
8306
|
+
/** Dónde vive el estado del `createApi` de la app, para saber si algo se está pidiendo. */
|
|
8307
|
+
reducerPath: string;
|
|
8308
|
+
useObtener: any;
|
|
8309
|
+
useListarLazy: any;
|
|
8310
|
+
useGuardar: any;
|
|
8311
|
+
useEliminar: any;
|
|
8312
|
+
};
|
|
8313
|
+
type ApiDeTableros = ReturnType<typeof crearApiDeTableros>;
|
|
8314
|
+
|
|
8315
|
+
/** Las columnas de la rejilla: el ancho de un panel va de 1 a éstas. */
|
|
8316
|
+
declare const COLUMNAS = 12;
|
|
8317
|
+
/**
|
|
8318
|
+
* Lo que mide un renglón de alto, en px. Un panel va de 1 a `RENGLONES_MAXIMOS`; 2 es el de
|
|
8319
|
+
* siempre (380 px).
|
|
8320
|
+
*/
|
|
8321
|
+
declare const ALTO_DE_RENGLON = 190;
|
|
8322
|
+
declare const RENGLONES_MAXIMOS = 6;
|
|
8323
|
+
/** Los paneles en el orden en que se pintan. */
|
|
8324
|
+
declare const enOrden: (paneles: PanelDeTablero[] | undefined) => PanelDeTablero[];
|
|
8325
|
+
/** El nombre de la pestaña de los paneles que no dicen la suya. */
|
|
8326
|
+
declare const PESTANA_GENERAL = "General";
|
|
8327
|
+
/** La pestaña donde se ve un panel: la suya, o «General» si la tiene vacía. */
|
|
8328
|
+
declare const nombreDePestana: (panel: Pick<PanelDeTablero, "pestana">) => string;
|
|
8329
|
+
/**
|
|
8330
|
+
* Los paneles por pestaña, cada pestaña en el orden de su primer panel y sus paneles en el suyo:
|
|
8331
|
+
* el orden de las pestañas sale de mover los paneles, no se guarda aparte.
|
|
8332
|
+
*/
|
|
8333
|
+
declare const porPestana: (paneles: PanelDeTablero[]) => [string, PanelDeTablero[]][];
|
|
8334
|
+
/**
|
|
8335
|
+
* Cada cuántos minutos se refresca solo un tablero abierto (`TableroBase.REFRESCOS`). Los `value`
|
|
8336
|
+
* son texto, como los manda el backend en `{value, label}`: así el autocompletado de la ficha
|
|
8337
|
+
* empareja la opción guardada con la de la lista.
|
|
8338
|
+
*/
|
|
8339
|
+
declare const OPCIONES_DE_REFRESCO: readonly {
|
|
8340
|
+
value: string;
|
|
8341
|
+
label: string;
|
|
8342
|
+
}[];
|
|
8343
|
+
/** Los minutos de `refrescar_cada` tal como llegan —`{value, label}`—, o `null` si es a mano. */
|
|
8344
|
+
declare const minutosDeRefresco: (refrescarCada: {
|
|
8345
|
+
value: string | number;
|
|
8346
|
+
} | null | undefined) => number | null;
|
|
8347
|
+
/** Lo que dice el tooltip del botón: «Refrescar», o «Refrescar · cada 5 min». */
|
|
8348
|
+
declare const textoDelRefresco: (minutos: number | null) => string;
|
|
8349
|
+
|
|
8350
|
+
interface VistaDeTableroProps {
|
|
8351
|
+
/** Los endpoints (`crearApiDeTableros`). */
|
|
8352
|
+
api: ApiDeTableros;
|
|
8353
|
+
/** El tablero que se ve (el `:id` de la ruta). */
|
|
8354
|
+
id: number | string;
|
|
8355
|
+
/** Si quien mira puede cambiar tableros (`<app>.tablero.change`): organizar y configurar. */
|
|
8356
|
+
puedeCambiar: boolean;
|
|
8357
|
+
/** Las rutas del portal: la ficha del tablero, la de un reporte y Exportaciones. */
|
|
8358
|
+
rutas: RutasDelPortal;
|
|
8359
|
+
/** El `useDescargarReporteMutation` de `crearApiDeReportes`: «Descargar» en un panel. */
|
|
8360
|
+
useDescargarReporte: UseDescargarReporte;
|
|
8361
|
+
/**
|
|
8362
|
+
* Lo que ofrecen los controles de los parámetros comunes (periodos, fechas relativas, de dónde
|
|
8363
|
+
* salen los clientes). Se llama siempre, con `necesario` en falso si el tablero no tiene
|
|
8364
|
+
* parámetros, para que su consulta se salte. Sin él, un portal sin parámetros.
|
|
8365
|
+
*/
|
|
8366
|
+
useCatalogoDeParametros?: (necesario: boolean) => CatalogoDeParametros | undefined;
|
|
8367
|
+
}
|
|
8368
|
+
/**
|
|
8369
|
+
* El detalle de un tablero: el tablero corriendo. Los parámetros comunes arriba y los paneles en
|
|
8370
|
+
* una rejilla de 12. Los valores se aplican con un botón, no al teclear: cada cambio vuelve a correr
|
|
8371
|
+
* todos los paneles.
|
|
8372
|
+
*
|
|
8373
|
+
* Con paneles en más de una pestaña, se ve una a la vez y sólo corren los paneles de ésa; los
|
|
8374
|
+
* valores comunes valen para todas.
|
|
8375
|
+
*
|
|
8376
|
+
* «Refrescar», «Organizar» y «Configurar» van en el renglón del título (`AccionesDelTitulo`).
|
|
8377
|
+
* **Refrescar** vuelve a pedir el tablero y a correr los paneles de la pestaña que se ve, para
|
|
8378
|
+
* todos; si el propietario fijó `refrescar_cada`, se hace solo (`useRefrescoDeTablero`).
|
|
8379
|
+
*
|
|
8380
|
+
* **Organizar** es un modo, para el propietario con `change`: mientras dura, los paneles se
|
|
8381
|
+
* arrastran y se redimensionan (`RejillaDePaneles`), a la derecha se acopla la lista de reportes
|
|
8382
|
+
* que el tablero no tiene (`ReportesDisponibles`) y al final de las pestañas hay un «+». Una
|
|
8383
|
+
* pestaña nueva sólo vive en pantalla hasta que recibe su primer reporte: las pestañas salen de
|
|
8384
|
+
* los paneles, así que al salir del modo se van las nuevas que siguen vacías. Un tablero recién
|
|
8385
|
+
* creado llega organizándose (`?organizar=1`, ver `FichaDeTablero`).
|
|
8386
|
+
*
|
|
8387
|
+
* La app pone la ruta (`<tableros>/:id`) y el permiso; esta vista no es una página ruteada.
|
|
8388
|
+
*/
|
|
8389
|
+
declare function VistaDeTablero({ api, id, puedeCambiar, rutas, useDescargarReporte, useCatalogoDeParametros, }: VistaDeTableroProps): react_jsx_runtime.JSX.Element;
|
|
8390
|
+
|
|
8391
|
+
/**
|
|
8392
|
+
* La ficha de un tablero. Los parámetros comunes los valida el backend
|
|
8393
|
+
* (`TableroBase.validar_parametros`): aquí sólo se dice su forma.
|
|
8394
|
+
*/
|
|
8395
|
+
declare const schemaDeTablero: z.ZodObject<{
|
|
8396
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
8397
|
+
nombre: z.ZodString;
|
|
8398
|
+
descripcion: z.ZodString;
|
|
8399
|
+
compartido_con: z.ZodArray<z.ZodNumber>;
|
|
8400
|
+
refrescar_cada: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8401
|
+
value: z.ZodCoercedString<unknown>;
|
|
8402
|
+
label: z.ZodString;
|
|
8403
|
+
}, z.core.$strip>>>;
|
|
8404
|
+
parametros: z.ZodArray<z.ZodCustom<ParametroDeReporte, ParametroDeReporte>>;
|
|
8405
|
+
}, z.core.$strip>;
|
|
8406
|
+
type FormularioDeTablero = z.infer<typeof schemaDeTablero>;
|
|
8407
|
+
declare const TABLERO_VACIO: FormularioDeTablero;
|
|
8408
|
+
interface PropsDeControl {
|
|
8409
|
+
name: string;
|
|
8410
|
+
control?: Control;
|
|
8411
|
+
fieldProps?: {
|
|
8412
|
+
helperText?: string;
|
|
8413
|
+
endpoint?: string;
|
|
8414
|
+
};
|
|
8415
|
+
}
|
|
8416
|
+
/**
|
|
8417
|
+
* «Compartir con»: los ids de `compartido_con`, como `type` de un campo de `DetailPage_v2`
|
|
8418
|
+
* (`EditField` le pasa `name` y `control`). Los grupos salen de `fieldProps.endpoint`. Pinta su
|
|
8419
|
+
* propia etiqueta (`labelInside`).
|
|
8420
|
+
*/
|
|
8421
|
+
declare const ControlledSelectorDeGrupos: ControlledInput<PropsDeControl>;
|
|
8422
|
+
interface OpcionesDeSeccionesDeTablero {
|
|
8423
|
+
/** El `como_opciones` de los grupos con los que se comparte (`/configuracion/grupos`…). */
|
|
8424
|
+
endpointDeGrupos: string;
|
|
8425
|
+
/**
|
|
8426
|
+
* El editor de los parámetros comunes, como `type` de un campo (pinta su etiqueta). Sin él, la
|
|
8427
|
+
* ficha no los ofrece: es un portal cuyos reportes no declaran parámetros, y su backend no los
|
|
8428
|
+
* acepta (`TableroBase.validar_parametros`).
|
|
8429
|
+
*/
|
|
8430
|
+
editorDeParametros?: ControlledInput;
|
|
8431
|
+
}
|
|
8432
|
+
/**
|
|
8433
|
+
* Las secciones de la ficha de un tablero: nombre, con quién se comparte, cada cuánto se refresca
|
|
8434
|
+
* y, si la app los tiene, los parámetros comunes. Sus paneles no están aquí: se agregan, se
|
|
8435
|
+
* acomodan y se quitan en el tablero mismo, con «Organizar tablero» (`VistaDeTablero`).
|
|
8436
|
+
*
|
|
8437
|
+
* Sin editor de parámetros, su subsección **no se arma** (no se esconde con `display`): una
|
|
8438
|
+
* subsección escondida recorre otros hooks y la ficha truena con «Rendered more hooks».
|
|
8439
|
+
*/
|
|
8440
|
+
declare const seccionesDeTablero: ({ endpointDeGrupos, editorDeParametros, }: OpcionesDeSeccionesDeTablero) => {
|
|
8441
|
+
display: boolean;
|
|
8442
|
+
label: string;
|
|
8443
|
+
subsections: ({
|
|
8444
|
+
display: boolean;
|
|
8445
|
+
title: string;
|
|
8446
|
+
fields: ({
|
|
8447
|
+
name: string;
|
|
8448
|
+
label: string;
|
|
8449
|
+
type: React$1.FC<ControlledTextProps> & {
|
|
8450
|
+
labelInside?: boolean;
|
|
8451
|
+
};
|
|
8452
|
+
fieldProps: {
|
|
8453
|
+
fullWidth: boolean;
|
|
8454
|
+
required: boolean;
|
|
8455
|
+
multiline?: undefined;
|
|
8456
|
+
endpoint?: undefined;
|
|
8457
|
+
helperText?: undefined;
|
|
8458
|
+
};
|
|
8459
|
+
gridProps: {
|
|
8460
|
+
size: number;
|
|
8461
|
+
};
|
|
8462
|
+
extraProps?: undefined;
|
|
8463
|
+
} | {
|
|
8464
|
+
name: string;
|
|
8465
|
+
label: string;
|
|
8466
|
+
type: React$1.FC<ControlledTextProps> & {
|
|
8467
|
+
labelInside?: boolean;
|
|
8468
|
+
};
|
|
8469
|
+
fieldProps: {
|
|
8470
|
+
fullWidth: boolean;
|
|
8471
|
+
multiline: boolean;
|
|
8472
|
+
required?: undefined;
|
|
8473
|
+
endpoint?: undefined;
|
|
8474
|
+
helperText?: undefined;
|
|
8475
|
+
};
|
|
8476
|
+
gridProps: {
|
|
8477
|
+
size: number;
|
|
8478
|
+
};
|
|
8479
|
+
extraProps?: undefined;
|
|
8480
|
+
} | {
|
|
8481
|
+
name: string;
|
|
8482
|
+
label: string;
|
|
8483
|
+
type: ControlledInput<PropsDeControl>;
|
|
8484
|
+
fieldProps: {
|
|
8485
|
+
endpoint: string;
|
|
8486
|
+
helperText: string;
|
|
8487
|
+
fullWidth?: undefined;
|
|
8488
|
+
required?: undefined;
|
|
8489
|
+
multiline?: undefined;
|
|
8490
|
+
};
|
|
8491
|
+
gridProps: {
|
|
8492
|
+
size: number;
|
|
8493
|
+
};
|
|
8494
|
+
extraProps?: undefined;
|
|
8495
|
+
} | {
|
|
8496
|
+
name: string;
|
|
8497
|
+
label: string;
|
|
8498
|
+
type: ControlledInput<ControlledAutocompleteProps>;
|
|
8499
|
+
extraProps: {
|
|
8500
|
+
options: {
|
|
8501
|
+
value: string;
|
|
8502
|
+
label: string;
|
|
8503
|
+
}[];
|
|
8504
|
+
};
|
|
8505
|
+
fieldProps: {
|
|
8506
|
+
fullWidth: boolean;
|
|
8507
|
+
helperText: string;
|
|
8508
|
+
required?: undefined;
|
|
8509
|
+
multiline?: undefined;
|
|
8510
|
+
endpoint?: undefined;
|
|
8511
|
+
};
|
|
8512
|
+
gridProps: {
|
|
8513
|
+
size: number;
|
|
8514
|
+
};
|
|
8515
|
+
})[];
|
|
8516
|
+
description?: undefined;
|
|
8517
|
+
} | {
|
|
8518
|
+
display: boolean;
|
|
8519
|
+
title: string;
|
|
8520
|
+
description: string;
|
|
8521
|
+
fields: {
|
|
8522
|
+
name: string;
|
|
8523
|
+
label: string;
|
|
8524
|
+
type: ControlledInput<any>;
|
|
8525
|
+
gridProps: {
|
|
8526
|
+
size: number;
|
|
8527
|
+
};
|
|
8528
|
+
}[];
|
|
8529
|
+
})[];
|
|
8530
|
+
}[];
|
|
8531
|
+
|
|
8532
|
+
interface FichaDeTableroProps extends OpcionesDeSeccionesDeTablero {
|
|
8533
|
+
/** `create` o `edit`: el detalle de un tablero es `VistaDeTablero`. */
|
|
8534
|
+
type: PageType;
|
|
8535
|
+
/** El tablero que se edita (el `:id` de la ruta); nada en el alta. */
|
|
8536
|
+
id?: string;
|
|
8537
|
+
api: ApiDeTableros;
|
|
8538
|
+
/** La ruta de los tableros en el portal: `<rutaDeTableros>/<id>`. */
|
|
8539
|
+
rutaDeTableros: string;
|
|
8540
|
+
}
|
|
8541
|
+
/**
|
|
8542
|
+
* La ficha de un tablero: lo suyo (nombre, descripción, con quién se comparte, cada cuánto se
|
|
8543
|
+
* refresca y, si la app los tiene, los parámetros comunes) en el formulario de `DetailPage_v2`.
|
|
8544
|
+
* Sus paneles se arman en el tablero mismo, con «Organizar tablero».
|
|
8545
|
+
*
|
|
8546
|
+
* **Al guardar**, la edición vuelve a donde se vino —el tablero, por «Configurar»—, y el alta
|
|
8547
|
+
* lleva al tablero nuevo ya organizándose (`?organizar=1`), que es lo siguiente que hay que hacer:
|
|
8548
|
+
* agregarle reportes.
|
|
8549
|
+
*
|
|
8550
|
+
* Sólo el propietario lo edita: a los demás el backend les responde 404, que la página enseña como
|
|
8551
|
+
* «no encontrado».
|
|
8552
|
+
*/
|
|
8553
|
+
declare function FichaDeTablero({ type, id, api, rutaDeTableros, endpointDeGrupos, editorDeParametros, }: FichaDeTableroProps): react_jsx_runtime.JSX.Element;
|
|
8554
|
+
|
|
8555
|
+
/**
|
|
8556
|
+
* Las columnas de la lista de tableros. Sólo lectura, y **ninguna se filtra por columna**: el
|
|
8557
|
+
* `TableroFiltroBase` sólo declara la búsqueda rápida y el orden.
|
|
8558
|
+
*/
|
|
8559
|
+
declare const columnasDeTableros: () => GridColDefPropsOverrides[];
|
|
8560
|
+
/**
|
|
8561
|
+
* La lista de tableros: reportes lado a lado, con parámetros comunes que se pasan a todos sus
|
|
8562
|
+
* paneles. Un renglón abre el tablero. La app la pone en su ruta (`<tableros>`).
|
|
8563
|
+
*/
|
|
8564
|
+
declare function ListaDeTableros({ api }: {
|
|
8565
|
+
api: ApiDeTableros;
|
|
8566
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8567
|
+
|
|
8568
|
+
/**
|
|
8569
|
+
* Pedir un nombre corto en el modo «Organizar»: el de una pestaña nueva o el título de un panel.
|
|
8570
|
+
*
|
|
8571
|
+
* `validar` dice por qué no se acepta lo escrito (o nada); `permiteVacio` deja guardarlo vacío,
|
|
8572
|
+
* que en un título es volver al nombre del reporte. Arranca de `inicial` cada que se abre.
|
|
8573
|
+
*/
|
|
8574
|
+
interface DialogoDeNombreProps {
|
|
8575
|
+
open: boolean;
|
|
8576
|
+
titulo: string;
|
|
8577
|
+
etiqueta: string;
|
|
8578
|
+
inicial?: string;
|
|
8579
|
+
placeholder?: string;
|
|
8580
|
+
ayuda?: string;
|
|
8581
|
+
maxLength: number;
|
|
8582
|
+
permiteVacio?: boolean;
|
|
8583
|
+
textoDelBoton: string;
|
|
8584
|
+
validar?: (nombre: string) => string | null;
|
|
8585
|
+
onCerrar: () => void;
|
|
8586
|
+
onGuardar: (nombre: string) => void;
|
|
8587
|
+
}
|
|
8588
|
+
declare function DialogoDeNombre({ open, titulo, etiqueta, inicial, placeholder, ayuda, maxLength, permiteVacio, textoDelBoton, validar, onCerrar, onGuardar, }: DialogoDeNombreProps): react_jsx_runtime.JSX.Element;
|
|
8589
|
+
|
|
8590
|
+
/**
|
|
8591
|
+
* La orilla de un panel que se jala para cambiarle el tamaño: la derecha (`eje="x"`, el ancho en
|
|
8592
|
+
* columnas) o la de abajo (`eje="y"`, el alto en renglones). Avanza a pasos enteros —`paso()` es
|
|
8593
|
+
* cuánto mide uno en píxeles, medido al empezar— entre `minimo` y `maximo`.
|
|
8594
|
+
*
|
|
8595
|
+
* Avisa cada paso nuevo (`onCambio`, para verlo al momento) y el último al soltar (`onSoltar`, para
|
|
8596
|
+
* guardarlo); `onJalando`, cuándo empieza y termina. Si el navegador cancela el gesto (una
|
|
8597
|
+
* llamada, el sistema que se apropia del dedo), vuelve a donde estaba y no guarda nada. Se mide contra donde se empezó, no contra el paso anterior, para que no se acumule
|
|
8598
|
+
* el redondeo. Se ve al pasar el cursor por el panel (la clase `orilla-del-panel`), mientras se
|
|
8599
|
+
* jala y con el foco del teclado; en pantallas angostas no se pinta.
|
|
8600
|
+
*
|
|
8601
|
+
* **Con el teclado** es un separador que se enfoca con Tab: las flechas de su eje (izquierda y
|
|
8602
|
+
* derecha en `x`, arriba y abajo en `y`) la mueven un paso, y cada paso se guarda.
|
|
8603
|
+
*/
|
|
8604
|
+
declare function Orilla({ eje, valor, minimo, maximo, paso, etiqueta, onCambio, onSoltar, onJalando, }: {
|
|
8605
|
+
eje: "x" | "y";
|
|
8606
|
+
valor: number;
|
|
8607
|
+
minimo: number;
|
|
8608
|
+
maximo: number;
|
|
8609
|
+
paso: () => number;
|
|
8610
|
+
etiqueta: string;
|
|
8611
|
+
onCambio: (valor: number) => void;
|
|
8612
|
+
onSoltar: (valor: number) => void;
|
|
8613
|
+
onJalando?: (jalando: boolean) => void;
|
|
8614
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8615
|
+
|
|
8616
|
+
export { ALTO_DE_RENGLON, ANCHO as ANCHO_DE_CONTROL, APIContext, APIProvider, SINGLE_ROW_SX as AUTOCOMPLETE_SINGLE_ROW_SX, AccionesDelTitulo, AccountMenuContent, ActiveCell, ActiveIcon, AvisoDeReporte, Base, 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, DrawerGrid as DrawerGrid_v2, EMPTY_DETAIL_VALUE, ENCABEZADO_DE_CORTE, ENDPOINTS_DEL_REFRESCO, ENDPOINTS_DE_REPORTES, ENDPOINTS_DE_TABLEROS, ETIQUETAS_DE_VISUALIZACION, EditButton, EditorDeAgrupacion, 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, SelectorDeGrupos, SelectorDeOpciones, SelectorDeOrden, SelectorRemoto, SelectorSiNo, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, SubsectionCard, Subtitulo, TABLERO_VACIO, TAGS_DE_REPORTES, TAGS_DE_TABLEROS, TEXTOS, TabCounter, TablaDeResultados, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, VistaDeResultados, VistaDeTablero, accesibilidadDeArrastre, agrupacionActiva, aplicarLocaleDeDayjs, avisoDeCorte, deReporte as borradorDeReporte, brightenForDark, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, columnasDeTableros, comoLista, composeGridProps, correosInvalidos, crearApiDeReportes, crearApiDeTableros, crearFabricaDeCatalogos, createLiveSocketSession, definicionDe, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, describirValor as describirValorDeParametro, drawerZIndex, editColumn, esCorreo, esGrafica, esRango as esRangoDeFechas, filterQuery, filtersPanelFrameSx, tieneValor as filtroConValor, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, helperTextFor, leerArchivoOAviso, llaveDeFiltrosCompartidos, llaveDe as llaveDeResultados, llavesDe as llavesDeFiltro, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, marcarNovedadesVistas, mergeSettings, minutosDeRefresco, mutationData, mutationId, mutationParams, nombreDePestana, normalizarCorreos, openProgressSnack, origenDeOpciones, pageSizeOptions, paginaDeResultados, enOrden as panelesEnOrden, parametroVacio, parametrosFaltantes, porPestana, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, schemaDeTablero, seccionesDeTablero, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, subsectionCardStyle, tags, textoDelRefresco, theme, 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, visualizacionDe, withCellLink };
|
|
8617
|
+
export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AgrupacionDeListado, ApiDeCorrida, ApiDeProgramaciones, ApiDeReportes, ApiDeTableros, ApiInyectable, AppTheme, ArchivoDeReporte, AridadDeOperador, AutocompleteOption, AvisoDeExportacion, AvisoDeReporteProps, Borrador as BorradorDeReporte, BuildEstadoTabsOptions, CSVMenuOptionProps, Cambio, CampoDeFuente, CampoDeParametroProps, CargarChangelog, CatalogoAPI, CatalogoDeParametros, CatalogoItemProps, CatalogoListProps, CellLinkProps, ChipCellProps, ChipColor, ChipOption, ColorMode, ColumnLink, ColumnaDeReporte, ComoOpcionesProps, CondicionDeListado, CondicionDeReporteProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledCorreosProps, ControlledInput, CorridaDeReporteProps, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeCatalogo, DefinicionDeListado, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailPreviewProps, DetailPreviewRow, DetailRenderProps, DialogoDeNombreProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EditorDeAgrupacionProps, 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, 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, NotificationItemProps, NotificationsApi, NotificationsBellProps, OpcionDeReporte, 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, SubsectionCardProps, TabCounterProps, TablaDeResultadosProps, Tablero, TagDeReportes, Textos, TextosDePaginaLegal, ThemeBackground, ThemeBrandColor, ThemeColors, TipoDeCambio, TipoDeColumna, TipoDeFiltro, TipoDeParametro, TipoDeVisualizacion, TiposDeListado, TiposDeReportes, UseColorModeResult, UseDescargarReporte, UseGuardarProgramacion, UseServerGridOptions, ValorDeCondicion, ValorDeFiltro, ValorDeParametro, ValoresDeParametros, VistaDeResultadosProps, VistaDeTableroProps, VisualizacionDeReporte };
|