@acvl/frontend-components 0.0.77 → 0.0.79
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 +603 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
2
|
import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps, SxProps, Theme, StackProps, TypographyProps, MenuProps, PaletteColorOptions, TextFieldProps as TextFieldProps$1, InputBaseProps, DialogProps, DialogContentProps } from '@mui/material';
|
|
3
|
-
import * as React from 'react';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject, ReactElement, FC, BaseSyntheticEvent, JSXElementConstructor, ElementType } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { GridRowId, GridRowSelectionModel, GridSortModel, GridFilterModel, GridRowModesModel, GridRenderEditCellParams, GridToolbarProps, DataGridProps as DataGridProps$1, GridApi, GridPaginationModel, GridColumnVisibilityModel, useGridApiRef, GridColDef } from '@mui/x-data-grid';
|
|
@@ -11,6 +11,7 @@ import * as zod from 'zod';
|
|
|
11
11
|
import { coerce, z } from 'zod';
|
|
12
12
|
import { NumericFormatProps } from 'react-number-format';
|
|
13
13
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
14
15
|
export { default as dayjs } from 'dayjs';
|
|
15
16
|
import * as redux from 'redux';
|
|
16
17
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
@@ -282,12 +283,20 @@ interface EditGridColumnsProps {
|
|
|
282
283
|
options?: {
|
|
283
284
|
[key: string]: unknown[] | undefined;
|
|
284
285
|
};
|
|
286
|
+
/** Rótulos de la columna y de sus acciones. Los pasa el wrapper, que tiene el idioma. */
|
|
287
|
+
etiquetas?: {
|
|
288
|
+
editar?: string;
|
|
289
|
+
guardar?: string;
|
|
290
|
+
cancelar?: string;
|
|
291
|
+
};
|
|
285
292
|
}
|
|
286
293
|
declare const editColumn: (props?: EditGridColumnsProps) => GridColDefPropsOverrides[];
|
|
287
294
|
|
|
288
295
|
interface DeleteGridColumnsProps$1 {
|
|
289
296
|
displayDelete?: boolean;
|
|
290
297
|
handleOpen: (id: GridRowId) => () => void;
|
|
298
|
+
/** Rótulo de la columna y de la acción. Lo pasa el wrapper, que es quien tiene el idioma. */
|
|
299
|
+
etiqueta?: string;
|
|
291
300
|
}
|
|
292
301
|
declare const deleteColumn$1: (props: DeleteGridColumnsProps$1) => GridColDefPropsOverrides[];
|
|
293
302
|
|
|
@@ -879,7 +888,7 @@ interface SidePanelHost {
|
|
|
879
888
|
* Fuera de un `MainLayout` el contexto es `null`: el panel se pinta donde esté declarado y
|
|
880
889
|
* no se turna con nadie.
|
|
881
890
|
*/
|
|
882
|
-
declare const SidePanelHostContext: React.Context<SidePanelHost | null>;
|
|
891
|
+
declare const SidePanelHostContext: React$1.Context<SidePanelHost | null>;
|
|
883
892
|
/** El hueco de paneles acoplados del layout, o `null` si no hay ninguno arriba. */
|
|
884
893
|
declare const useSidePanelHost: () => SidePanelHost | null;
|
|
885
894
|
|
|
@@ -1090,7 +1099,7 @@ interface TransitionsProps {
|
|
|
1090
1099
|
/**
|
|
1091
1100
|
* Componente customizable para generar efectos de transición
|
|
1092
1101
|
**/
|
|
1093
|
-
declare const Transitions: React.ForwardRefExoticComponent<Omit<TransitionsProps, "ref"> & React.RefAttributes<unknown>>;
|
|
1102
|
+
declare const Transitions: React$1.ForwardRefExoticComponent<Omit<TransitionsProps, "ref"> & React$1.RefAttributes<unknown>>;
|
|
1094
1103
|
|
|
1095
1104
|
interface ListPageProps {
|
|
1096
1105
|
tabs?: MyTabProps;
|
|
@@ -1134,7 +1143,7 @@ interface APIcontextProps {
|
|
|
1134
1143
|
useGuardarPreferenciaDeExportacionMutation: any;
|
|
1135
1144
|
useBorrarPreferenciaDeExportacionMutation: any;
|
|
1136
1145
|
}
|
|
1137
|
-
declare const APIContext: React.Context<APIcontextProps | null>;
|
|
1146
|
+
declare const APIContext: React$1.Context<APIcontextProps | null>;
|
|
1138
1147
|
declare const APIProvider: ({ children, hooks, }: {
|
|
1139
1148
|
children: ReactNode;
|
|
1140
1149
|
hooks: APIcontextProps;
|
|
@@ -1193,9 +1202,511 @@ interface NavigationContextProps {
|
|
|
1193
1202
|
children: ReactNode;
|
|
1194
1203
|
hook: any;
|
|
1195
1204
|
}
|
|
1196
|
-
declare const NavigationContext: React.Context<NavigationContextProps | null>;
|
|
1205
|
+
declare const NavigationContext: React$1.Context<NavigationContextProps | null>;
|
|
1197
1206
|
declare const NavigationProvider: ({ children, hook }: NavigationContextProps) => react_jsx_runtime.JSX.Element;
|
|
1198
1207
|
|
|
1208
|
+
/**
|
|
1209
|
+
* Los textos que la librería dibuja por su cuenta, en los dos idiomas.
|
|
1210
|
+
*
|
|
1211
|
+
* Es un diccionario tipado y no un runtime de i18n a propósito. La librería la consumen tres
|
|
1212
|
+
* portales (`acv-wms`, `acv-tms`, `acv-suma`) y meterle `i18next` como dependencia obligaría a los
|
|
1213
|
+
* tres a montar una instancia antes de poder actualizar. Aquí sólo hay ~130 textos y ninguno se
|
|
1214
|
+
* carga tarde ni se interpola de formas raras, así que un objeto alcanza —y de paso da autocompletado
|
|
1215
|
+
* y error de compilación si a `en` le falta una llave, que un `t("llave.mal.escrita")` no da—.
|
|
1216
|
+
*
|
|
1217
|
+
* El idioma lo pone la app con `LocaleProvider`; se lee con `useTextos()`.
|
|
1218
|
+
*
|
|
1219
|
+
* Las plantillas van como funciones (`registrosSeleccionados: (n) => ...`) en vez de concatenarse
|
|
1220
|
+
* en el punto de uso: el orden de las palabras cambia entre idiomas y una concatenación lo fija.
|
|
1221
|
+
*/
|
|
1222
|
+
/** Idiomas que entiende la librería. */
|
|
1223
|
+
type Locale = "es" | "en";
|
|
1224
|
+
declare const es: {
|
|
1225
|
+
comun: {
|
|
1226
|
+
aceptar: string;
|
|
1227
|
+
cancelar: string;
|
|
1228
|
+
guardar: string;
|
|
1229
|
+
editar: string;
|
|
1230
|
+
eliminar: string;
|
|
1231
|
+
crear: string;
|
|
1232
|
+
cerrar: string;
|
|
1233
|
+
limpiar: string;
|
|
1234
|
+
aplicar: string;
|
|
1235
|
+
confirmar: string;
|
|
1236
|
+
volver: string;
|
|
1237
|
+
buscar: string;
|
|
1238
|
+
busqueda: string;
|
|
1239
|
+
busquedaPlaceholder: string;
|
|
1240
|
+
limpiarBusqueda: string;
|
|
1241
|
+
redimensionarPanel: string;
|
|
1242
|
+
sinResultados: string;
|
|
1243
|
+
cargando: string;
|
|
1244
|
+
todos: string;
|
|
1245
|
+
todas: string;
|
|
1246
|
+
noDisponible: string;
|
|
1247
|
+
algoSalioMal: string;
|
|
1248
|
+
error: string;
|
|
1249
|
+
};
|
|
1250
|
+
grid: {
|
|
1251
|
+
columnas: string;
|
|
1252
|
+
filtros: string;
|
|
1253
|
+
exportar: string;
|
|
1254
|
+
dobleClicParaHerramientas: string;
|
|
1255
|
+
abrirEnPaginaCompleta: string;
|
|
1256
|
+
guardarYSiguienteCorto: string;
|
|
1257
|
+
hilerasPorPagina: string;
|
|
1258
|
+
informacionActualizada: string;
|
|
1259
|
+
errorActualizando: string;
|
|
1260
|
+
ordenar: string;
|
|
1261
|
+
ordenarAsc: string;
|
|
1262
|
+
ordenarDesc: string;
|
|
1263
|
+
menu: string;
|
|
1264
|
+
refrescar: string;
|
|
1265
|
+
acciones: string;
|
|
1266
|
+
};
|
|
1267
|
+
exportar: {
|
|
1268
|
+
titulo: string;
|
|
1269
|
+
descargarCSV: string;
|
|
1270
|
+
descargado: string;
|
|
1271
|
+
errorAlDescargar: string;
|
|
1272
|
+
generandose: string;
|
|
1273
|
+
noSePudieronCargarColumnas: string;
|
|
1274
|
+
todasLasColumnas: string;
|
|
1275
|
+
usarPorDefecto: string;
|
|
1276
|
+
eliminarPreferencia: string;
|
|
1277
|
+
quitarTodas: string;
|
|
1278
|
+
seleccionarTodas: string;
|
|
1279
|
+
nombreDeLaPreferencia: string;
|
|
1280
|
+
seExportaranRegistros: (n: string) => string;
|
|
1281
|
+
seExportaraElListado: string;
|
|
1282
|
+
alcanceDeSeleccion: (n: string, cantidad: number) => string;
|
|
1283
|
+
columnasElegidas: (n: number) => string;
|
|
1284
|
+
};
|
|
1285
|
+
detalle: {
|
|
1286
|
+
editar: string;
|
|
1287
|
+
editarAtajo: string;
|
|
1288
|
+
eliminar: string;
|
|
1289
|
+
historial: string;
|
|
1290
|
+
historialAtajo: string;
|
|
1291
|
+
anterior: string;
|
|
1292
|
+
siguiente: string;
|
|
1293
|
+
guardarYSiguiente: string;
|
|
1294
|
+
cambiosPendientes: string;
|
|
1295
|
+
masInformacion: string;
|
|
1296
|
+
/** El título de "crear" que arma `PageHeader` a partir del nombre del modelo. */
|
|
1297
|
+
crearRegistro: (singular: string) => string;
|
|
1298
|
+
cargarPagina: (titulo: string) => string;
|
|
1299
|
+
};
|
|
1300
|
+
notificaciones: {
|
|
1301
|
+
titulo: string;
|
|
1302
|
+
vacio: string;
|
|
1303
|
+
todas: string;
|
|
1304
|
+
noLeidas: string;
|
|
1305
|
+
cerrar: string;
|
|
1306
|
+
marcarTodasComoLeidas: string;
|
|
1307
|
+
todasMarcadasComoLeidas: string;
|
|
1308
|
+
todasBorradas: string;
|
|
1309
|
+
anterior: string;
|
|
1310
|
+
siguiente: string;
|
|
1311
|
+
leerTodas: string;
|
|
1312
|
+
borrarTodas: string;
|
|
1313
|
+
borrarTodasAria: string;
|
|
1314
|
+
};
|
|
1315
|
+
cuenta: {
|
|
1316
|
+
modoOscuro: string;
|
|
1317
|
+
idioma: string;
|
|
1318
|
+
espanol: string;
|
|
1319
|
+
ingles: string;
|
|
1320
|
+
};
|
|
1321
|
+
historial: {
|
|
1322
|
+
titulo: string;
|
|
1323
|
+
ocultarCampos: string;
|
|
1324
|
+
verTodosLosCampos: string;
|
|
1325
|
+
verLosCampos: string;
|
|
1326
|
+
};
|
|
1327
|
+
opciones: {
|
|
1328
|
+
agregarNuevo: string;
|
|
1329
|
+
agregarOpcion: string;
|
|
1330
|
+
editarOpcion: string;
|
|
1331
|
+
eliminarOpcion: string;
|
|
1332
|
+
creada: string;
|
|
1333
|
+
errorAlCrear: string;
|
|
1334
|
+
actualizada: string;
|
|
1335
|
+
errorAlActualizar: string;
|
|
1336
|
+
eliminada: string;
|
|
1337
|
+
errorAlEliminar: string;
|
|
1338
|
+
seleccionarTodo: string;
|
|
1339
|
+
escribeAlMenos: (n: number) => string;
|
|
1340
|
+
};
|
|
1341
|
+
archivos: {
|
|
1342
|
+
subidoConExito: string;
|
|
1343
|
+
error: string;
|
|
1344
|
+
archivoDeMuestra: string;
|
|
1345
|
+
tipoInvalido: string;
|
|
1346
|
+
soltarAqui: string;
|
|
1347
|
+
arrastraOHazClic: string;
|
|
1348
|
+
archivos: string;
|
|
1349
|
+
};
|
|
1350
|
+
color: {
|
|
1351
|
+
sinColor: string;
|
|
1352
|
+
formatoInvalido: string;
|
|
1353
|
+
elegirColor: string;
|
|
1354
|
+
colorPersonalizado: string;
|
|
1355
|
+
};
|
|
1356
|
+
confirmarBorrado: {
|
|
1357
|
+
/**
|
|
1358
|
+
* La palabra que hay que teclear para confirmar. **No es sólo copia**: el diálogo compara
|
|
1359
|
+
* lo tecleado contra este mismo valor, así que traducirla cambia el comportamiento y las
|
|
1360
|
+
* dos cosas tienen que salir de aquí para no quedar desfasadas.
|
|
1361
|
+
*/
|
|
1362
|
+
palabra: string;
|
|
1363
|
+
instruccion: (palabra: string) => string;
|
|
1364
|
+
exito: string;
|
|
1365
|
+
};
|
|
1366
|
+
errores: {
|
|
1367
|
+
accesoNoPermitido: string;
|
|
1368
|
+
sinPermisos: string;
|
|
1369
|
+
validacion: string;
|
|
1370
|
+
alGuardar: string;
|
|
1371
|
+
};
|
|
1372
|
+
layout: {
|
|
1373
|
+
avisoDePrivacidad: string;
|
|
1374
|
+
avisoDePrivacidadCorto: string;
|
|
1375
|
+
verNovedades: string;
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* La forma del diccionario, tomada del español. Cualquier llave que le falte a `en` —o que sobre—
|
|
1380
|
+
* es error de compilación.
|
|
1381
|
+
*/
|
|
1382
|
+
type Textos = typeof es;
|
|
1383
|
+
/** Los diccionarios por idioma. */
|
|
1384
|
+
declare const TEXTOS: Record<Locale, Textos>;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* El idioma en el que la librería dibuja lo suyo.
|
|
1388
|
+
*
|
|
1389
|
+
* La librería **no traduce**: recibe el idioma ya resuelto y lo usa para elegir diccionario. Quien
|
|
1390
|
+
* decide es el proyecto —de dónde lo saca (el usuario, el navegador, un claim del token), dónde lo
|
|
1391
|
+
* guarda y dónde pone el interruptor es asunto suyo—. Es el mismo trato que `useColorMode`: la
|
|
1392
|
+
* librería da estado y acciones, el proyecto los coloca.
|
|
1393
|
+
*
|
|
1394
|
+
* Si nadie monta el provider el idioma es español, que es como se comportaba antes de que esto
|
|
1395
|
+
* existiera. Por eso `acv-tms` y `acv-suma` pueden actualizar sin tocar nada.
|
|
1396
|
+
*
|
|
1397
|
+
* @example
|
|
1398
|
+
* // En el `main.tsx` del proyecto, al lado de los otros providers
|
|
1399
|
+
* <LocaleProvider locale={idioma} setLocale={setIdioma}>
|
|
1400
|
+
* <App />
|
|
1401
|
+
* </LocaleProvider>
|
|
1402
|
+
*
|
|
1403
|
+
* @example
|
|
1404
|
+
* // Dentro de un componente de la librería
|
|
1405
|
+
* const t = useTextos();
|
|
1406
|
+
* <Button>{t.comun.guardar}</Button>
|
|
1407
|
+
*/
|
|
1408
|
+
interface LocaleContextProps {
|
|
1409
|
+
/** Idioma activo. */
|
|
1410
|
+
locale: Locale;
|
|
1411
|
+
/**
|
|
1412
|
+
* Cambia el idioma. Opcional: un proyecto puede fijar el idioma y no ofrecer cómo cambiarlo,
|
|
1413
|
+
* en cuyo caso los controles que la librería dibuja para elegirlo no aparecen.
|
|
1414
|
+
*/
|
|
1415
|
+
setLocale?: (locale: Locale) => void;
|
|
1416
|
+
}
|
|
1417
|
+
declare const LocaleContext: React$1.Context<LocaleContextProps>;
|
|
1418
|
+
interface LocaleProviderProps extends LocaleContextProps {
|
|
1419
|
+
children: ReactNode;
|
|
1420
|
+
}
|
|
1421
|
+
declare const LocaleProvider: ({ children, locale, setLocale }: LocaleProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1422
|
+
/** El idioma activo y, si el proyecto lo ofrece, cómo cambiarlo. */
|
|
1423
|
+
declare const useLocale: () => LocaleContextProps;
|
|
1424
|
+
/**
|
|
1425
|
+
* Los textos de la librería en el idioma activo.
|
|
1426
|
+
*
|
|
1427
|
+
* Devuelve el diccionario entero, no una función: `t.comun.guardar` se autocompleta y una llave
|
|
1428
|
+
* mal escrita no compila.
|
|
1429
|
+
*/
|
|
1430
|
+
declare const useTextos: () => Textos;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Fija el idioma de dayjs.
|
|
1434
|
+
*
|
|
1435
|
+
* `dayjs.locale()` es una **mutación global** del módulo: no hay forma de tener dos idiomas vivos
|
|
1436
|
+
* en subárboles distintos, y alcanza también a quien importe `dayjs` directo en vez de esta copia.
|
|
1437
|
+
* Aquí eso es lo que se quiere —hay un solo idioma activo a la vez— pero conviene saberlo antes de
|
|
1438
|
+
* intentar usarlo por componente.
|
|
1439
|
+
*
|
|
1440
|
+
* Lo llama `LocaleProvider`; no hace falta invocarlo a mano.
|
|
1441
|
+
*/
|
|
1442
|
+
declare const aplicarLocaleDeDayjs: (locale: "es" | "en") => void;
|
|
1443
|
+
|
|
1444
|
+
declare const localeTextDeMUI: (locale: Locale) => {
|
|
1445
|
+
columnHeaderSortIconLabel: string;
|
|
1446
|
+
columnMenuSortAsc: string;
|
|
1447
|
+
columnMenuSortDesc: string;
|
|
1448
|
+
columnMenuLabel: string;
|
|
1449
|
+
noRowsLabel?: string | undefined;
|
|
1450
|
+
noResultsOverlayLabel?: string | undefined;
|
|
1451
|
+
noColumnsOverlayLabel?: string | undefined;
|
|
1452
|
+
noColumnsOverlayManageColumns?: string | undefined;
|
|
1453
|
+
emptyPivotOverlayLabel?: string | undefined;
|
|
1454
|
+
toolbarDensity?: React.ReactNode;
|
|
1455
|
+
toolbarDensityLabel?: string | undefined;
|
|
1456
|
+
toolbarDensityCompact?: string | undefined;
|
|
1457
|
+
toolbarDensityStandard?: string | undefined;
|
|
1458
|
+
toolbarDensityComfortable?: string | undefined;
|
|
1459
|
+
toolbarUndo?: React.ReactNode;
|
|
1460
|
+
toolbarRedo?: React.ReactNode;
|
|
1461
|
+
toolbarColumns?: React.ReactNode;
|
|
1462
|
+
toolbarColumnsLabel?: string | undefined;
|
|
1463
|
+
toolbarFilters?: React.ReactNode;
|
|
1464
|
+
toolbarFiltersLabel?: string | undefined;
|
|
1465
|
+
toolbarFiltersTooltipHide?: React.ReactNode;
|
|
1466
|
+
toolbarFiltersTooltipShow?: React.ReactNode;
|
|
1467
|
+
toolbarFiltersTooltipActive?: ((count: number) => React.ReactNode) | undefined;
|
|
1468
|
+
toolbarQuickFilterPlaceholder?: string | undefined;
|
|
1469
|
+
toolbarQuickFilterLabel?: string | undefined;
|
|
1470
|
+
toolbarQuickFilterDeleteIconLabel?: string | undefined;
|
|
1471
|
+
toolbarExport?: React.ReactNode;
|
|
1472
|
+
toolbarExportLabel?: string | undefined;
|
|
1473
|
+
toolbarExportCSV?: React.ReactNode;
|
|
1474
|
+
toolbarExportPrint?: React.ReactNode;
|
|
1475
|
+
toolbarExportExcel?: string | undefined;
|
|
1476
|
+
toolbarPivot?: string | undefined;
|
|
1477
|
+
toolbarCharts?: string | undefined;
|
|
1478
|
+
toolbarAssistant?: React.ReactNode;
|
|
1479
|
+
columnsManagementSearchTitle?: string | undefined;
|
|
1480
|
+
columnsManagementNoColumns?: string | undefined;
|
|
1481
|
+
columnsManagementShowHideAllText?: string | undefined;
|
|
1482
|
+
columnsManagementReset?: string | undefined;
|
|
1483
|
+
columnsManagementDeleteIconLabel?: string | undefined;
|
|
1484
|
+
filterPanelAddFilter?: React.ReactNode;
|
|
1485
|
+
filterPanelRemoveAll?: React.ReactNode;
|
|
1486
|
+
filterPanelDeleteIconLabel?: string | undefined;
|
|
1487
|
+
filterPanelLogicOperator?: string | undefined;
|
|
1488
|
+
filterPanelOperator?: React.ReactNode;
|
|
1489
|
+
filterPanelOperatorAnd?: React.ReactNode;
|
|
1490
|
+
filterPanelOperatorOr?: React.ReactNode;
|
|
1491
|
+
filterPanelColumns?: React.ReactNode;
|
|
1492
|
+
filterPanelInputLabel?: string | undefined;
|
|
1493
|
+
filterPanelInputPlaceholder?: string | undefined;
|
|
1494
|
+
filterOperatorContains?: string | undefined;
|
|
1495
|
+
filterOperatorDoesNotContain?: string | undefined;
|
|
1496
|
+
filterOperatorEquals?: string | undefined;
|
|
1497
|
+
filterOperatorDoesNotEqual?: string | undefined;
|
|
1498
|
+
filterOperatorStartsWith?: string | undefined;
|
|
1499
|
+
filterOperatorEndsWith?: string | undefined;
|
|
1500
|
+
filterOperatorIs?: string | undefined;
|
|
1501
|
+
filterOperatorNot?: string | undefined;
|
|
1502
|
+
filterOperatorAfter?: string | undefined;
|
|
1503
|
+
filterOperatorOnOrAfter?: string | undefined;
|
|
1504
|
+
filterOperatorBefore?: string | undefined;
|
|
1505
|
+
filterOperatorOnOrBefore?: string | undefined;
|
|
1506
|
+
filterOperatorIsEmpty?: string | undefined;
|
|
1507
|
+
filterOperatorIsNotEmpty?: string | undefined;
|
|
1508
|
+
filterOperatorIsAnyOf?: string | undefined;
|
|
1509
|
+
'filterOperator='?: string | undefined;
|
|
1510
|
+
'filterOperator!='?: string | undefined;
|
|
1511
|
+
'filterOperator>'?: string | undefined;
|
|
1512
|
+
'filterOperator>='?: string | undefined;
|
|
1513
|
+
'filterOperator<'?: string | undefined;
|
|
1514
|
+
'filterOperator<='?: string | undefined;
|
|
1515
|
+
headerFilterOperatorContains?: string | undefined;
|
|
1516
|
+
headerFilterOperatorDoesNotContain?: string | undefined;
|
|
1517
|
+
headerFilterOperatorEquals?: string | undefined;
|
|
1518
|
+
headerFilterOperatorDoesNotEqual?: string | undefined;
|
|
1519
|
+
headerFilterOperatorStartsWith?: string | undefined;
|
|
1520
|
+
headerFilterOperatorEndsWith?: string | undefined;
|
|
1521
|
+
headerFilterOperatorIs?: string | undefined;
|
|
1522
|
+
headerFilterOperatorNot?: string | undefined;
|
|
1523
|
+
headerFilterOperatorAfter?: string | undefined;
|
|
1524
|
+
headerFilterOperatorOnOrAfter?: string | undefined;
|
|
1525
|
+
headerFilterOperatorBefore?: string | undefined;
|
|
1526
|
+
headerFilterOperatorOnOrBefore?: string | undefined;
|
|
1527
|
+
headerFilterOperatorIsEmpty?: string | undefined;
|
|
1528
|
+
headerFilterOperatorIsNotEmpty?: string | undefined;
|
|
1529
|
+
headerFilterOperatorIsAnyOf?: string | undefined;
|
|
1530
|
+
'headerFilterOperator='?: string | undefined;
|
|
1531
|
+
'headerFilterOperator!='?: string | undefined;
|
|
1532
|
+
'headerFilterOperator>'?: string | undefined;
|
|
1533
|
+
'headerFilterOperator>='?: string | undefined;
|
|
1534
|
+
'headerFilterOperator<'?: string | undefined;
|
|
1535
|
+
'headerFilterOperator<='?: string | undefined;
|
|
1536
|
+
headerFilterClear?: string | undefined;
|
|
1537
|
+
filterValueAny?: string | undefined;
|
|
1538
|
+
filterValueTrue?: string | undefined;
|
|
1539
|
+
filterValueFalse?: string | undefined;
|
|
1540
|
+
columnMenuAriaLabel?: ((columnName: string) => string) | undefined;
|
|
1541
|
+
columnMenuShowColumns?: React.ReactNode;
|
|
1542
|
+
columnMenuManageColumns?: React.ReactNode;
|
|
1543
|
+
columnMenuFilter?: React.ReactNode;
|
|
1544
|
+
columnMenuHideColumn?: React.ReactNode;
|
|
1545
|
+
columnMenuUnsort?: React.ReactNode;
|
|
1546
|
+
columnMenuManagePivot?: string | undefined;
|
|
1547
|
+
columnMenuManageCharts?: string | undefined;
|
|
1548
|
+
columnHeaderFiltersTooltipActive?: ((count: number) => React.ReactNode) | undefined;
|
|
1549
|
+
columnHeaderFiltersLabel?: string | undefined;
|
|
1550
|
+
footerRowSelected?: ((count: number) => React.ReactNode) | undefined;
|
|
1551
|
+
footerTotalRows?: React.ReactNode;
|
|
1552
|
+
footerTotalVisibleRows?: ((visibleCount: number, totalCount: number) => React.ReactNode) | undefined;
|
|
1553
|
+
checkboxSelectionHeaderName?: string | undefined;
|
|
1554
|
+
checkboxSelectionSelectAllRows?: string | undefined;
|
|
1555
|
+
checkboxSelectionUnselectAllRows?: string | undefined;
|
|
1556
|
+
checkboxSelectionSelectRow?: string | undefined;
|
|
1557
|
+
checkboxSelectionUnselectRow?: string | undefined;
|
|
1558
|
+
booleanCellTrueLabel?: string | undefined;
|
|
1559
|
+
booleanCellFalseLabel?: string | undefined;
|
|
1560
|
+
longTextCellExpandLabel?: string | undefined;
|
|
1561
|
+
longTextCellCollapseLabel?: string | undefined;
|
|
1562
|
+
actionsCellMore?: string | undefined;
|
|
1563
|
+
pinToLeft?: string | undefined;
|
|
1564
|
+
pinToRight?: string | undefined;
|
|
1565
|
+
unpin?: string | undefined;
|
|
1566
|
+
treeDataGroupingHeaderName?: string | undefined;
|
|
1567
|
+
treeDataExpand?: string | undefined;
|
|
1568
|
+
treeDataCollapse?: string | undefined;
|
|
1569
|
+
groupingColumnHeaderName?: string | undefined;
|
|
1570
|
+
groupColumn?: ((name: string) => string) | undefined;
|
|
1571
|
+
unGroupColumn?: ((name: string) => string) | undefined;
|
|
1572
|
+
detailPanelToggle?: string | undefined;
|
|
1573
|
+
expandDetailPanel?: string | undefined;
|
|
1574
|
+
collapseDetailPanel?: string | undefined;
|
|
1575
|
+
rowReorderingHeaderName?: string | undefined;
|
|
1576
|
+
aggregationMenuItemHeader?: string | undefined;
|
|
1577
|
+
aggregationFunctionLabelNone?: string | undefined;
|
|
1578
|
+
aggregationFunctionLabelSum?: string | undefined;
|
|
1579
|
+
aggregationFunctionLabelAvg?: string | undefined;
|
|
1580
|
+
aggregationFunctionLabelMin?: string | undefined;
|
|
1581
|
+
aggregationFunctionLabelMax?: string | undefined;
|
|
1582
|
+
aggregationFunctionLabelSize?: string | undefined;
|
|
1583
|
+
paginationRowsPerPage?: string | undefined;
|
|
1584
|
+
paginationDisplayedRows?: ((params: {
|
|
1585
|
+
from: number;
|
|
1586
|
+
to: number;
|
|
1587
|
+
count: number;
|
|
1588
|
+
estimated: number | undefined;
|
|
1589
|
+
}) => string) | undefined;
|
|
1590
|
+
paginationItemAriaLabel?: ((type: "first" | "last" | "previous" | "next") => string) | undefined;
|
|
1591
|
+
pivotToggleLabel?: string | undefined;
|
|
1592
|
+
pivotCloseButton?: string | undefined;
|
|
1593
|
+
pivotSearchButton?: string | undefined;
|
|
1594
|
+
pivotSearchControlPlaceholder?: string | undefined;
|
|
1595
|
+
pivotSearchControlLabel?: string | undefined;
|
|
1596
|
+
pivotSearchControlClear?: string | undefined;
|
|
1597
|
+
pivotNoFields?: string | undefined;
|
|
1598
|
+
pivotRows?: string | undefined;
|
|
1599
|
+
pivotColumns?: string | undefined;
|
|
1600
|
+
pivotValues?: string | undefined;
|
|
1601
|
+
pivotMenuMoveUp?: string | undefined;
|
|
1602
|
+
pivotMenuMoveDown?: string | undefined;
|
|
1603
|
+
pivotMenuMoveToTop?: string | undefined;
|
|
1604
|
+
pivotMenuMoveToBottom?: string | undefined;
|
|
1605
|
+
pivotMenuRows?: string | undefined;
|
|
1606
|
+
pivotMenuColumns?: string | undefined;
|
|
1607
|
+
pivotMenuValues?: string | undefined;
|
|
1608
|
+
pivotMenuOptions?: string | undefined;
|
|
1609
|
+
pivotMenuAddToRows?: string | undefined;
|
|
1610
|
+
pivotMenuAddToColumns?: string | undefined;
|
|
1611
|
+
pivotMenuAddToValues?: string | undefined;
|
|
1612
|
+
pivotMenuRemove?: string | undefined;
|
|
1613
|
+
pivotDragToRows?: string | undefined;
|
|
1614
|
+
pivotDragToColumns?: string | undefined;
|
|
1615
|
+
pivotDragToValues?: string | undefined;
|
|
1616
|
+
pivotYearColumnHeaderName?: string | undefined;
|
|
1617
|
+
pivotQuarterColumnHeaderName?: string | undefined;
|
|
1618
|
+
chartsNoCharts?: string | undefined;
|
|
1619
|
+
chartsChartNotSelected?: string | undefined;
|
|
1620
|
+
chartsTabChart?: string | undefined;
|
|
1621
|
+
chartsTabFields?: string | undefined;
|
|
1622
|
+
chartsTabCustomize?: string | undefined;
|
|
1623
|
+
chartsCloseButton?: string | undefined;
|
|
1624
|
+
chartsSyncButtonLabel?: string | undefined;
|
|
1625
|
+
chartsSearchPlaceholder?: string | undefined;
|
|
1626
|
+
chartsSearchLabel?: string | undefined;
|
|
1627
|
+
chartsSearchClear?: string | undefined;
|
|
1628
|
+
chartsNoFields?: string | undefined;
|
|
1629
|
+
chartsFieldBlocked?: string | undefined;
|
|
1630
|
+
chartsCategories?: string | undefined;
|
|
1631
|
+
chartsSeries?: string | undefined;
|
|
1632
|
+
chartsMenuAddToDimensions?: ((dimensionLabel: string) => string) | undefined;
|
|
1633
|
+
chartsMenuAddToValues?: ((valuesLabel: string) => string) | undefined;
|
|
1634
|
+
chartsMenuMoveUp?: string | undefined;
|
|
1635
|
+
chartsMenuMoveDown?: string | undefined;
|
|
1636
|
+
chartsMenuMoveToTop?: string | undefined;
|
|
1637
|
+
chartsMenuMoveToBottom?: string | undefined;
|
|
1638
|
+
chartsMenuOptions?: string | undefined;
|
|
1639
|
+
chartsMenuRemove?: string | undefined;
|
|
1640
|
+
chartsDragToDimensions?: ((dimensionLabel: string) => string) | undefined;
|
|
1641
|
+
chartsDragToValues?: ((valuesLabel: string) => string) | undefined;
|
|
1642
|
+
aiAssistantPanelTitle?: string | undefined;
|
|
1643
|
+
aiAssistantPanelClose?: string | undefined;
|
|
1644
|
+
aiAssistantPanelConversationHistory?: string | undefined;
|
|
1645
|
+
aiAssistantPanelNewConversation?: string | undefined;
|
|
1646
|
+
aiAssistantPanelEmptyConversation?: string | undefined;
|
|
1647
|
+
aiAssistantSuggestions?: string | undefined;
|
|
1648
|
+
promptRerun?: string | undefined;
|
|
1649
|
+
promptProcessing?: string | undefined;
|
|
1650
|
+
promptAppliedChanges?: string | undefined;
|
|
1651
|
+
promptChangeGroupDescription?: ((column: string) => string) | undefined;
|
|
1652
|
+
promptChangeAggregationLabel?: ((column: string, aggregation: string) => string) | undefined;
|
|
1653
|
+
promptChangeAggregationDescription?: ((column: string, aggregation: string) => string) | undefined;
|
|
1654
|
+
promptChangeFilterLabel?: ((column: string, operator: string, value: string) => string) | undefined;
|
|
1655
|
+
promptChangeFilterDescription?: ((column: string, operator: string, value: string) => string) | undefined;
|
|
1656
|
+
promptChangeSortDescription?: ((column: string, direction: string) => string) | undefined;
|
|
1657
|
+
promptChangePivotEnableLabel?: string | undefined;
|
|
1658
|
+
promptChangePivotEnableDescription?: string | undefined;
|
|
1659
|
+
promptChangePivotColumnsLabel?: ((count: number) => string) | undefined;
|
|
1660
|
+
promptChangePivotColumnsDescription?: ((column: string, direction: string) => string) | undefined;
|
|
1661
|
+
promptChangePivotRowsLabel?: ((count: number) => string) | undefined;
|
|
1662
|
+
promptChangePivotValuesLabel?: ((count: number) => string) | undefined;
|
|
1663
|
+
promptChangePivotValuesDescription?: ((column: string, aggregation: string) => string) | undefined;
|
|
1664
|
+
promptChangeChartsLabel?: ((dimensionsCount: number, valuesCount: number) => string) | undefined;
|
|
1665
|
+
promptFieldLabel?: string | undefined;
|
|
1666
|
+
promptFieldPlaceholder?: string | undefined;
|
|
1667
|
+
promptFieldPlaceholderWithRecording?: string | undefined;
|
|
1668
|
+
promptFieldPlaceholderListening?: string | undefined;
|
|
1669
|
+
promptFieldSpeechRecognitionNotSupported?: string | undefined;
|
|
1670
|
+
promptFieldSend?: string | undefined;
|
|
1671
|
+
promptFieldRecord?: string | undefined;
|
|
1672
|
+
promptFieldStopRecording?: string | undefined;
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* La etiqueta BCP-47 para `toLocaleString` / `Intl.*` según el idioma activo.
|
|
1677
|
+
*
|
|
1678
|
+
* Está aquí para que no vuelva a haber tres `toLocaleString` con la etiqueta escrita a mano —y
|
|
1679
|
+
* discrepando entre sí: había dos en `"es-MX"` y una en `"en-US"`—.
|
|
1680
|
+
*/
|
|
1681
|
+
declare const localeDeNumeros: (locale: Locale) => string;
|
|
1682
|
+
|
|
1683
|
+
/** El `localeText` para Toolpad, o `undefined` cuando su propio idioma ya sirve. */
|
|
1684
|
+
declare const localeTextDeToolpad: (locale: Locale) => {
|
|
1685
|
+
accountSignInLabel: string;
|
|
1686
|
+
accountSignOutLabel: string;
|
|
1687
|
+
accountPreviewTitle: string;
|
|
1688
|
+
accountPreviewIconButtonLabel: string;
|
|
1689
|
+
signInTitle: string;
|
|
1690
|
+
signInSubtitle: string;
|
|
1691
|
+
signInRememberMe: string;
|
|
1692
|
+
providerSignInTitle: (proveedor: string) => string;
|
|
1693
|
+
email: string;
|
|
1694
|
+
password: string;
|
|
1695
|
+
username: string;
|
|
1696
|
+
passkey: string;
|
|
1697
|
+
save: string;
|
|
1698
|
+
cancel: string;
|
|
1699
|
+
ok: string;
|
|
1700
|
+
or: string;
|
|
1701
|
+
to: string;
|
|
1702
|
+
with: string;
|
|
1703
|
+
close: string;
|
|
1704
|
+
delete: string;
|
|
1705
|
+
alert: string;
|
|
1706
|
+
confirm: string;
|
|
1707
|
+
loading: string;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
|
|
1199
1710
|
declare const mergeSettings: (baseSettings: object, mergingSettings?: object) => any;
|
|
1200
1711
|
declare const filterQuery: ({ filters }: {
|
|
1201
1712
|
filters: {
|
|
@@ -1844,10 +2355,11 @@ declare function resolveInitialState({ storageKey, disabled, initialState, colum
|
|
|
1844
2355
|
* Page sizes offered by the grid and by the pagination slot. One list: in v1 the grid and
|
|
1845
2356
|
* `CustomPagination` each declared their own copy and had to be kept in sync by hand.
|
|
1846
2357
|
*
|
|
1847
|
-
* `-1` is "
|
|
1848
|
-
* `next`/`previous` null but a correct `count`.
|
|
2358
|
+
* `-1` is "all" — the backends read that literal and return the whole result set with
|
|
2359
|
+
* `next`/`previous` null but a correct `count`. Only its label is translated; the value is wire
|
|
2360
|
+
* protocol and never changes.
|
|
1849
2361
|
*/
|
|
1850
|
-
declare const
|
|
2362
|
+
declare const pageSizeOptions: (etiquetaTodos: string) => (number | {
|
|
1851
2363
|
value: number;
|
|
1852
2364
|
label: string;
|
|
1853
2365
|
})[];
|
|
@@ -1862,6 +2374,12 @@ declare const LAYER_ORDER: readonly GridLayerId[];
|
|
|
1862
2374
|
interface DeleteGridColumnsProps {
|
|
1863
2375
|
displayDelete?: boolean;
|
|
1864
2376
|
handleOpen: (id: GridRowId) => () => void;
|
|
2377
|
+
/**
|
|
2378
|
+
* Rótulo de la columna y de la acción. Es un parámetro y no un `useTextos()` porque esto no
|
|
2379
|
+
* es un componente: lo llama la capa de borrado, que sí es la que tiene el idioma a mano.
|
|
2380
|
+
* El default en español mantiene andando a quien la llame sin pasarlo.
|
|
2381
|
+
*/
|
|
2382
|
+
etiqueta?: string;
|
|
1865
2383
|
}
|
|
1866
2384
|
/**
|
|
1867
2385
|
* The per-row delete action, shown only while delete mode is on.
|
|
@@ -1878,6 +2396,17 @@ type ChipColor = StatusColor;
|
|
|
1878
2396
|
type ChipOption = {
|
|
1879
2397
|
value: string;
|
|
1880
2398
|
label: string;
|
|
2399
|
+
/**
|
|
2400
|
+
* Etiquetas extra con las que **emparejar**, sin que ninguna llegue a mostrarse.
|
|
2401
|
+
*
|
|
2402
|
+
* Existe porque el backend manda la etiqueta y no el código
|
|
2403
|
+
* (`serializers.CharField(source='get_estado_display')`), así que el emparejado real de casi
|
|
2404
|
+
* todas las columnas de estado es contra el texto en español. En cuanto `label` se traduce,
|
|
2405
|
+
* ese emparejado deja de encontrar nada y la celda sale **en blanco** —sin error, sin aviso—.
|
|
2406
|
+
*
|
|
2407
|
+
* Aquí se conserva el texto original: `label` es lo que se ve, `match` lo que se reconoce.
|
|
2408
|
+
*/
|
|
2409
|
+
match?: string[];
|
|
1881
2410
|
};
|
|
1882
2411
|
declare const resolveChipOption: (value: unknown, options: ChipOption[]) => ChipOption | undefined;
|
|
1883
2412
|
type ChipCellProps = {
|
|
@@ -2580,6 +3109,8 @@ interface DetailFormDrawerProps {
|
|
|
2580
3109
|
/** @see DetailPageV2Props.slotProps.badge */
|
|
2581
3110
|
badge?: {
|
|
2582
3111
|
colors?: Record<string, StatusColor>;
|
|
3112
|
+
/** @see DetailPageV2Props.slotProps.badge.options */
|
|
3113
|
+
options?: ChipOption[];
|
|
2583
3114
|
};
|
|
2584
3115
|
};
|
|
2585
3116
|
}
|
|
@@ -2698,6 +3229,11 @@ interface DrawerGridDrawerConfig {
|
|
|
2698
3229
|
badge?: {
|
|
2699
3230
|
path: string;
|
|
2700
3231
|
colors?: Record<string, StatusColor>;
|
|
3232
|
+
/**
|
|
3233
|
+
* Los estados con su rótulo, para poder mostrarlo en otro idioma.
|
|
3234
|
+
* @see DetailPageV2Props.slotProps.badge.options
|
|
3235
|
+
*/
|
|
3236
|
+
options?: ChipOption[];
|
|
2701
3237
|
};
|
|
2702
3238
|
/** Runs after any successful create/edit (e.g. side effects; the grid refetches via RTK tag invalidation). */
|
|
2703
3239
|
onSaved?: (response: any) => void;
|
|
@@ -3058,6 +3594,19 @@ interface DetailPageV2Props {
|
|
|
3058
3594
|
* hubiera con qué distinguirlos.
|
|
3059
3595
|
*/
|
|
3060
3596
|
colors?: Record<string, StatusColor>;
|
|
3597
|
+
/**
|
|
3598
|
+
* Los estados con su rótulo, para poder mostrarlo en otro idioma.
|
|
3599
|
+
*
|
|
3600
|
+
* Es el mismo `ChipOption[]` que reciben las columnas de la tabla, y se resuelve
|
|
3601
|
+
* igual (`resolveChipOption`), así que la ficha y la lista nombran el estado con la
|
|
3602
|
+
* misma palabra. Sin esto, la insignia sólo puede repetir lo que mandó el backend,
|
|
3603
|
+
* que viene en español (`get_estado_display`).
|
|
3604
|
+
*
|
|
3605
|
+
* Ojo con traducir el `label` de una opción: casi todos estos endpoints mandan la
|
|
3606
|
+
* etiqueta y no el código, así que el emparejado real es contra el texto en español
|
|
3607
|
+
* — para eso está `ChipOption.match`.
|
|
3608
|
+
*/
|
|
3609
|
+
options?: ChipOption[];
|
|
3061
3610
|
};
|
|
3062
3611
|
};
|
|
3063
3612
|
}
|
|
@@ -3141,11 +3690,29 @@ interface DetachedPage {
|
|
|
3141
3690
|
title: string;
|
|
3142
3691
|
path: string;
|
|
3143
3692
|
breadcrumbs: Breadcrumb[];
|
|
3693
|
+
/**
|
|
3694
|
+
* El título en singular, para cuando la heurística no dé con él.
|
|
3695
|
+
* @see MainLayoutPageHeaderProps.singularTitles
|
|
3696
|
+
*/
|
|
3697
|
+
singularTitle?: string;
|
|
3144
3698
|
}
|
|
3145
3699
|
interface MainLayoutPageHeaderProps extends PageHeaderProps {
|
|
3146
3700
|
fullScreen?: boolean;
|
|
3147
3701
|
detachedPages?: DetachedPage[];
|
|
3148
3702
|
documentTitleSuffix?: string;
|
|
3703
|
+
/**
|
|
3704
|
+
* Títulos en singular declarados a mano, indexados por la ruta de la página
|
|
3705
|
+
* (`{ "/cobranza/ordenes-de-envio": "Orden de envío" }`).
|
|
3706
|
+
*
|
|
3707
|
+
* El singular se deduce del título de la navegación —"Embarques" nombra a sus
|
|
3708
|
+
* registros "Embarque 1234" y a su formulario "Crear embarque"—, y deducirlo es una
|
|
3709
|
+
* heurística: acierta en los plurales regulares y se queda corta en los que la
|
|
3710
|
+
* morfología española no deja resolver ("Meses" y "Bases" se escriben igual y se
|
|
3711
|
+
* singularizan distinto), en los títulos con dos núcleos ("Órdenes de envíos") y en
|
|
3712
|
+
* los que no son un plural en absoluto. Aquí se declara el que haga falta.
|
|
3713
|
+
* @see singularizarTitulo
|
|
3714
|
+
*/
|
|
3715
|
+
singularTitles?: Record<string, string>;
|
|
3149
3716
|
/**
|
|
3150
3717
|
* El padding horizontal del panel de contenido, que el `MainLayout` le pasa tal cual.
|
|
3151
3718
|
*
|
|
@@ -3233,6 +3800,16 @@ interface MainLayoutProps {
|
|
|
3233
3800
|
detachedPages?: DetachedPage[];
|
|
3234
3801
|
/** Sufijo del `document.title` (ej. "Embarques" => "Título | Embarques"). */
|
|
3235
3802
|
documentTitleSuffix?: string;
|
|
3803
|
+
/**
|
|
3804
|
+
* Títulos en singular declarados a mano, indexados por la ruta de la página
|
|
3805
|
+
* (`{ "/cobranza/ordenes-de-envio": "Orden de envío" }`).
|
|
3806
|
+
*
|
|
3807
|
+
* El `PageHeader` nombra los registros con el título de su página puesto en singular
|
|
3808
|
+
* ("Embarques" → "Embarque 1234", "Crear embarque"), y lo deduce con una heurística
|
|
3809
|
+
* de plurales españoles. Aquí se corrige la que no acierte.
|
|
3810
|
+
* @see MainLayoutPageHeaderProps.singularTitles
|
|
3811
|
+
*/
|
|
3812
|
+
singularTitles?: Record<string, string>;
|
|
3236
3813
|
/**
|
|
3237
3814
|
* Configuración del pie del sidebar por defecto: versión, copyright, aviso de
|
|
3238
3815
|
* privacidad y enlace a las novedades. Cada pieza se pinta sólo si se pasa.
|
|
@@ -3356,6 +3933,18 @@ interface MainLayoutProps {
|
|
|
3356
3933
|
declare const SIDE_PANEL_WIDTH_VAR = "--acv-side-panel-width";
|
|
3357
3934
|
declare const MainLayout: (props: MainLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
3358
3935
|
|
|
3936
|
+
/**
|
|
3937
|
+
* Pasa a singular una palabra suelta. Devuelve la palabra tal cual cuando no reconoce un
|
|
3938
|
+
* plural, que es el modo seguro de fallar: un título sin tocar se lee bien igual.
|
|
3939
|
+
*/
|
|
3940
|
+
declare function singularizarPalabra(palabra: string): string;
|
|
3941
|
+
/**
|
|
3942
|
+
* Pasa a singular un título completo, que es pasar a singular su núcleo: todas las
|
|
3943
|
+
* palabras hasta el primer conector —"Notas rojas" → "Nota roja"— y ninguna después
|
|
3944
|
+
* —"Órdenes de envío" → "Orden de envío"—.
|
|
3945
|
+
*/
|
|
3946
|
+
declare function singularizarTitulo(titulo: string): string;
|
|
3947
|
+
|
|
3359
3948
|
interface PageInfoProps {
|
|
3360
3949
|
/**
|
|
3361
3950
|
* La nota. Admite marcado —negritas, listas, enlaces—, así que puede ser lo mismo
|
|
@@ -3405,7 +3994,7 @@ interface PageInfoHost {
|
|
|
3405
3994
|
* Fuera de un `MainLayout` el contexto es `null` y `<PageInfo>` no pinta nada, en vez de
|
|
3406
3995
|
* soltar el botón en medio del contenido.
|
|
3407
3996
|
*/
|
|
3408
|
-
declare const PageInfoHostContext: React.Context<PageInfoHost | null>;
|
|
3997
|
+
declare const PageInfoHostContext: React$1.Context<PageInfoHost | null>;
|
|
3409
3998
|
/** El hueco de la nota del encabezado, o `null` si no hay ninguno arriba. */
|
|
3410
3999
|
declare const usePageInfoHost: () => PageInfoHost | null;
|
|
3411
4000
|
|
|
@@ -3433,7 +4022,7 @@ interface PageActionsHost {
|
|
|
3433
4022
|
* Fuera de un `MainLayout` el contexto es `null`, y quien lo use se las arregla por su cuenta
|
|
3434
4023
|
* —la página de detalle vuelve a la esquina flotante de siempre—.
|
|
3435
4024
|
*/
|
|
3436
|
-
declare const PageActionsHostContext: React.Context<PageActionsHost | null>;
|
|
4025
|
+
declare const PageActionsHostContext: React$1.Context<PageActionsHost | null>;
|
|
3437
4026
|
/** El hueco de las acciones del encabezado, o `null` si no hay ninguno arriba. */
|
|
3438
4027
|
declare const usePageActionsHost: () => PageActionsHost | null;
|
|
3439
4028
|
|
|
@@ -3458,7 +4047,7 @@ interface PageBadgeHost {
|
|
|
3458
4047
|
* Fuera de un `MainLayout` el contexto es `null` y la página de detalle vuelve a colgar la
|
|
3459
4048
|
* insignia de la esquina flotante del `ContentLayout`, que es donde vivía.
|
|
3460
4049
|
*/
|
|
3461
|
-
declare const PageBadgeHostContext: React.Context<PageBadgeHost | null>;
|
|
4050
|
+
declare const PageBadgeHostContext: React$1.Context<PageBadgeHost | null>;
|
|
3462
4051
|
/** El hueco de la insignia del encabezado, o `null` si no hay ninguno arriba. */
|
|
3463
4052
|
declare const usePageBadgeHost: () => PageBadgeHost | null;
|
|
3464
4053
|
|
|
@@ -3485,7 +4074,7 @@ interface StickyPageHeaderHost {
|
|
|
3485
4074
|
* Fuera de un `MainLayout` el contexto es `null` y no pasa nada: el encabezado de ese proyecto
|
|
3486
4075
|
* se queda como estaba.
|
|
3487
4076
|
*/
|
|
3488
|
-
declare const StickyPageHeaderContext: React.Context<StickyPageHeaderHost | null>;
|
|
4077
|
+
declare const StickyPageHeaderContext: React$1.Context<StickyPageHeaderHost | null>;
|
|
3489
4078
|
/** Lo lee el encabezado para saber si le toca pegarse. */
|
|
3490
4079
|
declare const useStickyPageHeaderHost: () => StickyPageHeaderHost | null;
|
|
3491
4080
|
/**
|
|
@@ -3761,5 +4350,5 @@ interface UseColorModeResult {
|
|
|
3761
4350
|
}
|
|
3762
4351
|
declare function useColorMode(): UseColorModeResult;
|
|
3763
4352
|
|
|
3764
|
-
export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, ChipCell, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, 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, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FORM_CONTAINER_NAME, GlobalSearch, HEADER_CONTAINER, HEADER_NARROW, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, ObjectProgressStack,
|
|
3765
|
-
export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AppTheme, AutocompleteOption, ChipCellProps, ChipColor, ChipOption, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledInput, CustomFilterDef, CustomToolbarProps, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, ExportCSVProps as ExportCSVProps_v2, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SidePanelHost, StatusColor, StickyPageHeaderHost, UseColorModeResult, UseServerGridOptions };
|
|
4353
|
+
export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, ChipCell, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledAutocomplete, ControlledColor, 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, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV$1 as ExportCSV, ExportCSV as ExportCSV_v2, ExtraButtons, FORM_CONTAINER_NAME, GlobalSearch, HEADER_CONTAINER, HEADER_NARROW, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Loadable, LoadingComponent, LocaleContext, LocaleProvider, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, NotificationItem, NotificationsBell, ObjectProgressStack, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, Panel, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, TEXTOS, Tabs, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, changeTitle, closeProgressSnack, composeGridProps, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, editColumn, filterQuery, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, mergeSettings, openProgressSnack, pageSizeOptions, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, tags, theme, togglableFields, updateProgressSnackData, useAPI, useColorMode, useDetailForm, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useServerGrid, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
|
|
4354
|
+
export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AppTheme, AutocompleteOption, ChipCellProps, ChipColor, ChipOption, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledInput, CustomFilterDef, CustomToolbarProps, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, ExportCSVProps as ExportCSVProps_v2, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SidePanelHost, StatusColor, StickyPageHeaderHost, Textos, UseColorModeResult, UseServerGridOptions };
|