@acvl/frontend-components 0.0.65 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import * as _mui_material from '@mui/material';
2
2
  import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, AlertProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps, SxProps, Theme, StackProps, TypographyProps, MenuProps, PaletteColorOptions, TextFieldProps as TextFieldProps$1, InputBaseProps, DialogProps, DialogContentProps } from '@mui/material';
3
3
  import * as React from 'react';
4
- import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject, FC, BaseSyntheticEvent, JSXElementConstructor, ElementType } from 'react';
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';
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';
10
10
  import * as zod from 'zod';
11
- import { coerce } from 'zod';
11
+ import { coerce, z } from 'zod';
12
12
  import { NumericFormatProps } from 'react-number-format';
13
13
  import { TextFieldProps } from '@mui/material/TextField';
14
14
  export { default as dayjs } from 'dayjs';
@@ -16,11 +16,11 @@ import * as redux from 'redux';
16
16
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
17
17
  import * as _emotion_styled from '@emotion/styled';
18
18
  import * as _mui_system from '@mui/system';
19
+ import { Theme as Theme$1, CssVarsTheme, CSSObject } from '@mui/material/styles';
19
20
  import { DebouncedFunc } from 'lodash';
20
21
  import { UseFormReturn } from 'react-hook-form';
21
22
  import { Breadcrumb, PageHeaderProps, Navigation, Branding, Session, Authentication, DashboardHeaderProps } from '@toolpad/core';
22
23
  import { SidebarFooterProps } from '@toolpad/core/DashboardLayout';
23
- import { Theme as Theme$1, CSSObject } from '@mui/material/styles';
24
24
 
25
25
  interface NormalOrIconProps {
26
26
  buttonProps: ButtonProps;
@@ -396,6 +396,14 @@ declare const ExportCSV: React__default.FC<ExportCSVButtonProps>;
396
396
 
397
397
  declare const CustomNoRows: () => react_jsx_runtime.JSX.Element;
398
398
 
399
+ interface BaseControlledFieldProps {
400
+ name: string;
401
+ label?: string;
402
+ control: any;
403
+ }
404
+
405
+ declare const TrueFalse: React__default.FC<BaseControlledFieldProps>;
406
+
399
407
  interface ExtraActions {
400
408
  label: string;
401
409
  onClick: (rowSelectionModel: GridRowSelectionModel) => void;
@@ -445,12 +453,6 @@ interface ActiveIconProps {
445
453
  }
446
454
  declare const ActiveIcon: React__default.FC<ActiveIconProps>;
447
455
 
448
- interface BaseControlledFieldProps {
449
- name: string;
450
- label?: string;
451
- control: any;
452
- }
453
-
454
456
  interface ControlledDateProps extends BaseControlledFieldProps {
455
457
  fieldProps?: any;
456
458
  extraProps: {
@@ -626,6 +628,11 @@ interface FieldProps$1 {
626
628
  detail_name?: string;
627
629
  label: string;
628
630
  type: any;
631
+ /**
632
+ * Sus breakpoints resuelven contra el viewport. La v1 solo se renderiza a página completa,
633
+ * así que alcanza; si algún día gana un shell angosto, ver
634
+ * `@v2/layout/pages/DetailPage/formLayout` para resolverlos contra el contenedor.
635
+ */
629
636
  gridProps?: GridProps;
630
637
  fieldProps?: object;
631
638
  extraProps?: any;
@@ -665,13 +672,38 @@ interface MainDrawerV2Props {
665
672
  width?: number | string;
666
673
  /** Lado desde el que entra el panel. Por defecto `"right"`. */
667
674
  anchor?: DrawerProps["anchor"];
675
+ /**
676
+ * Añade un tirador en el borde interior del panel para arrastrar su tamaño. Mientras el
677
+ * usuario no lo arrastre, `width` manda; en cuanto lo hace, el tamaño arrastrado la pisa
678
+ * y sobrevive a cerrar y reabrir el panel (mientras el componente siga montado). Doble
679
+ * clic en el tirador vuelve a `width`.
680
+ */
681
+ resizable?: boolean;
682
+ /** Tamaño mínimo en px al que se puede arrastrar. Por defecto `320`. */
683
+ minWidth?: number;
684
+ /** Tamaño máximo en px. Por defecto, el viewport menos un margen para el backdrop. */
685
+ maxWidth?: number;
686
+ /**
687
+ * Recuerda el tamaño arrastrado bajo esta clave en `localStorage`, de modo que sobreviva a
688
+ * desmontar el panel —el caso de `DrawerGrid_v2`, que lo remonta en cada apertura— y a
689
+ * recargar la página. Sin clave, el tamaño dura lo que dure el componente montado.
690
+ *
691
+ * La clave debe ser única por panel: dos que la compartan se pisan el ancho entre sí.
692
+ */
693
+ widthStorageKey?: string;
694
+ /**
695
+ * Se invoca al soltar el arrastre (y en cada paso del teclado) con el tamaño en px, o
696
+ * `null` cuando el doble clic lo devuelve a `width`. Para reaccionar al cambio o guardarlo
697
+ * en otro sitio; `widthStorageKey` no lo necesita.
698
+ */
699
+ onWidthChange?: (width: number | null) => void;
668
700
  /** Impide que un clic en el backdrop cierre el panel (formularios con cambios sin guardar). */
669
701
  disableBackdropClose?: boolean;
670
702
  /** Oculta el botón de cerrar integrado, para reemplazarlo desde `slots.headerActions`. */
671
703
  hideCloseButton?: boolean;
672
704
  /** Quita el padding interno del panel de contenido, para contenido a sangre. */
673
705
  disableGutters?: boolean;
674
- /** Color de fondo del panel de contenido. Por defecto `#f7f7f7`. */
706
+ /** Color de fondo del panel de contenido. Por defecto el fondo del tema. */
675
707
  pageBackgroundColor?: string;
676
708
  /** Color del contorno: encabezado, pie y el marco alrededor del contenido. */
677
709
  chromeBackgroundColor?: string;
@@ -696,6 +728,8 @@ interface MainDrawerV2Props {
696
728
  footer?: Partial<BoxProps>;
697
729
  title?: Partial<TypographyProps>;
698
730
  closeButton?: Partial<IconButtonProps>;
731
+ /** Tirador de arrastre; sólo se renderiza con `resizable`. */
732
+ resizeHandle?: Partial<BoxProps>;
699
733
  };
700
734
  }
701
735
  /**
@@ -712,8 +746,12 @@ interface MainDrawerV2Props {
712
746
  * `theme.shape.borderRadius` y sigue al `anchor`; y el `sx` que llega por `slotProps` se
713
747
  * concatena en vez de reemplazar el propio. No depende de `@toolpad/core`, así que sirve
714
748
  * fuera de un layout de Toolpad.
749
+ *
750
+ * Con `resizable`, el borde interior lleva un tirador: se arrastra con el puntero, se ajusta
751
+ * con las flechas cuando tiene el foco y vuelve a `width` con doble clic. Con
752
+ * `widthStorageKey`, además, el tamaño se recuerda entre visitas.
715
753
  */
716
- declare function MainDrawer$1({ open, onClose, title, subtitle, children, width, anchor, disableBackdropClose, hideCloseButton, disableGutters, pageBackgroundColor, chromeBackgroundColor, contentGap, contentBorderRadius, slots, slotProps, }: MainDrawerV2Props): react_jsx_runtime.JSX.Element;
754
+ declare function MainDrawer$1({ open, onClose, title, subtitle, children, width, anchor, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, disableBackdropClose, hideCloseButton, disableGutters, pageBackgroundColor, chromeBackgroundColor, contentGap, contentBorderRadius, slots, slotProps, }: MainDrawerV2Props): react_jsx_runtime.JSX.Element;
717
755
 
718
756
  declare module "@mui/x-data-grid" {
719
757
  interface ToolbarPropsOverrides {
@@ -732,6 +770,14 @@ interface ArrayFieldProps {
732
770
  pageType?: PageType;
733
771
  parser?: JSONParserProps;
734
772
  fields: FieldProps$1[];
773
+ /**
774
+ * What the edit panel's fields resolve their `size` breakpoints against. Defaults to
775
+ * `"container"`: that panel is a drawer, narrow by construction. It needs its own setting
776
+ * because `MainDrawer_v2` portals to `document.body`, so the panel is not a DOM descendant
777
+ * of the surrounding form and cannot inherit its container.
778
+ * @see DetailFormProps.responsiveTo
779
+ */
780
+ responsiveTo?: "viewport" | "container";
735
781
  slotProps?: {
736
782
  /**
737
783
  * Se aplica sobre el panel de edición. `open` y `onClose` los gobierna este
@@ -837,8 +883,22 @@ declare const LoadingComponent: React__default.FC<LoadingComponentProps>;
837
883
 
838
884
  /**
839
885
  * Muestra el logo de la empresa
886
+ *
887
+ * El archivo de marca es un JPG con fondo blanco, bola roja y letras negras: tal
888
+ * cual, en modo oscuro se ve un recuadro blanco. Como no hay versión clara del
889
+ * archivo, en oscuro se recolorea por CSS a blanco sobre transparente.
840
890
  **/
841
- declare const Logo: () => react_jsx_runtime.JSX.Element;
891
+ interface LogoProps {
892
+ /** Altura máxima en px. */
893
+ maxHeight?: number;
894
+ /**
895
+ * Logo alternativo para modo oscuro. Lo suyo es un SVG o PNG blanco con fondo
896
+ * transparente: en cuanto exista, pasarlo aquí sustituye el recoloreado por
897
+ * el archivo de verdad sin tocar nada más.
898
+ */
899
+ darkSrc?: string;
900
+ }
901
+ declare const Logo: ({ maxHeight, darkSrc }?: LogoProps) => react_jsx_runtime.JSX.Element;
842
902
 
843
903
  interface MyTab {
844
904
  value: string;
@@ -851,6 +911,25 @@ interface MyTabProps {
851
911
  initialValue?: string;
852
912
  storageKey?: string;
853
913
  type?: PageType;
914
+ /**
915
+ * Alto que se ajusta al contenido, con `ALTO` de tope, en vez del alto fijo de siempre.
916
+ *
917
+ * El default arma la cadena de altos con porcentajes: el contenedor mide `ALTO`, el de
918
+ * los paneles 93.5% de él y cada panel 100% del anterior. Eso sólo funciona con un alto
919
+ * definido arriba — si el contenedor midiera `100%` de un padre sin alto, toda la cadena
920
+ * resuelve a `auto` y lo de adentro (un DataGrid, por ejemplo) crece con su contenido y
921
+ * se desborda.
922
+ *
923
+ * Con `fitContent` la cadena es flex: el contenedor no fija alto, sólo `maxHeight`, y
924
+ * cada eslabón va con `flex: 1 1 auto` + `minHeight: 0` para poder encoger. Las pestañas
925
+ * miden entonces lo que mida su contenido y, al pasarse del tope, es el contenido el que
926
+ * encoge y scrollea por dentro. El contenido tiene que seguir la cadena: cualquier
927
+ * envoltura propia entre el panel y el grid necesita también `flex: 1 1 auto` y
928
+ * `minHeight: 0`, en lugar de `height: 1`.
929
+ *
930
+ * @default false
931
+ */
932
+ fitContent?: boolean;
854
933
  slotProps?: {
855
934
  mainContainer?: BoxProps;
856
935
  contentContainer?: BoxProps;
@@ -1065,6 +1144,10 @@ declare const HistorialDrawer: React__default.FC<HistorialDrawerProps>;
1065
1144
  /**
1066
1145
  * Personaliza la temática de la página
1067
1146
  * Declara colores, tipo de letra, etc
1147
+ *
1148
+ * El tema publica dos esquemas de color (claro y oscuro) como variables CSS, así
1149
+ * que cambiar de modo no reconstruye el tema: solo cambia el atributo del `<html>`
1150
+ * y el navegador resuelve las variables. Ver `useColorMode` para el interruptor.
1068
1151
  **/
1069
1152
  declare module '@mui/material/styles' {
1070
1153
  interface PaletteColor {
@@ -1100,7 +1183,24 @@ declare module '@mui/material/styles' {
1100
1183
  largeAvatar?: any;
1101
1184
  }
1102
1185
  }
1103
- declare const theme: () => _mui_material.Theme;
1186
+ /**
1187
+ * Atributo que MUI escribe en `<html>` con el esquema activo (`light`/`dark`).
1188
+ *
1189
+ * Hace falta declararlo: con dos esquemas y sin selector, MUI usa `media`, es
1190
+ * decir el tema sigue a la preferencia del sistema operativo y el interruptor no
1191
+ * puede cambiarlo. Con un atributo manda el usuario.
1192
+ */
1193
+ declare const COLOR_SCHEME_SELECTOR = "data-color-scheme";
1194
+ /**
1195
+ * El tema de la librería, con lo que aporta trabajar por variables CSS: `vars`
1196
+ * (los colores como `var(--mui-…)`, que siguen al esquema activo) y
1197
+ * `colorSchemes`.
1198
+ *
1199
+ * Hace falta nombrarlo porque `responsiveFontSizes` declara devolver `Theme` a
1200
+ * secas: el objeto que sale sí trae las dos cosas, pero la firma las esconde.
1201
+ */
1202
+ type AppTheme = Theme$1 & CssVarsTheme;
1203
+ declare const theme: () => AppTheme;
1104
1204
 
1105
1205
  interface KpiCardProps {
1106
1206
  icon: ReactNode;
@@ -1148,6 +1248,42 @@ interface PollingCountdownChipProps {
1148
1248
  * fetch reinicia el conteo; opcionalmente refresca al hacer clic. */
1149
1249
  declare function PollingCountdownChip({ pollingInterval, isFetching, onRefresh, }: PollingCountdownChipProps): react_jsx_runtime.JSX.Element;
1150
1250
 
1251
+ interface FilterInput {
1252
+ /** The column this input filters on — used only as a React key. */
1253
+ field: string;
1254
+ /**
1255
+ * The query keys this input writes. Usually one, but a range input owns two
1256
+ * (`_min`/`_max`, `_after`/`_before`), which is why this isn't just `field`.
1257
+ */
1258
+ keys: string[];
1259
+ label: string;
1260
+ type: string;
1261
+ element: ReactElement;
1262
+ }
1263
+ /**
1264
+ * A filter the page adds itself, for something no column represents — a scope toggle, a flag
1265
+ * the backend computes, anything whose value isn't a column's value.
1266
+ *
1267
+ * The element is read fresh on every render rather than captured with the schema, so an input
1268
+ * that closes over page state stays current.
1269
+ */
1270
+ interface CustomFilterDef {
1271
+ /**
1272
+ * The query key sent to the backend, and the form field name the element must bind to.
1273
+ *
1274
+ * Wins over a column that would generate the same key: the column's input is dropped from
1275
+ * the panel, so one key never gets two inputs writing to it.
1276
+ */
1277
+ field: string;
1278
+ label: string;
1279
+ /** Any controlled input. The panel clones `control` in, exactly as it does for columns. */
1280
+ element: ReactElement;
1281
+ /** Defaults to `z.any().optional()` — enough for a value the backend validates anyway. */
1282
+ schema?: z.ZodType<any, any>;
1283
+ /** What the panel resets to, and what "Limpiar" restores. Defaults to `""`. */
1284
+ defaultValue?: any;
1285
+ }
1286
+
1151
1287
  /**
1152
1288
  * What the grid hands its RTK lazy query — the corrected `GridArgs`.
1153
1289
  *
@@ -1201,6 +1337,17 @@ interface ServerGridEditApi {
1201
1337
  interface ServerGridEditToggleApi {
1202
1338
  /** Hides the button and its shortcuts without touching permissions. */
1203
1339
  disabled?: boolean;
1340
+ /**
1341
+ * Drives edit mode from outside instead of leaving it to the toolbar toggle — e.g. a grid
1342
+ * embedded in a detail form that should follow the form's own edit state.
1343
+ *
1344
+ * Leave it `undefined` and the layer owns the mode, as always. Pass a boolean and the
1345
+ * caller owns it: the toolbar button and its shortcuts disappear, because two edit
1346
+ * affordances for one grid only raises the question of which one won, and the checkbox
1347
+ * column is left alone — whoever drives the mode also decides what it looks like. Still
1348
+ * fail-closed — `true` without the model's change permission stays off.
1349
+ */
1350
+ active?: boolean;
1204
1351
  /** Notified whenever the toggle flips. */
1205
1352
  onEditModeChange?: (edit: boolean) => void;
1206
1353
  }
@@ -1253,6 +1400,16 @@ interface ServerGridProps {
1253
1400
  tab?: string;
1254
1401
  /** Scopes the filter panel's option lookups to the current detail record. */
1255
1402
  columnsFilter?: string;
1403
+ /**
1404
+ * Filters the page adds to the panel itself, for things no column represents — a
1405
+ * scope toggle, a flag the backend computes. They render above the column-derived
1406
+ * inputs and behave like any other filter from there on: counted by the badge,
1407
+ * cleared by "Limpiar", persisted, and sent as query args.
1408
+ *
1409
+ * Gate them at the call site — build the array only for the users who should see the
1410
+ * filter. The grid has no notion of who is looking at it.
1411
+ */
1412
+ customFilters?: CustomFilterDef[];
1256
1413
  /** Skip session persistence entirely. */
1257
1414
  dontSaveState?: boolean;
1258
1415
  /**
@@ -1764,13 +1921,234 @@ interface DetailFormController {
1764
1921
  */
1765
1922
  declare function useDetailForm(config: DetailFormConfig): DetailFormController;
1766
1923
 
1924
+ /**
1925
+ * Layout de campos relativo al **contenedor** en vez de al viewport.
1926
+ *
1927
+ * MUI resuelve los breakpoints de `size` contra media queries del viewport. Eso es correcto en
1928
+ * una página completa, pero el mismo formulario también se renderiza dentro de un drawer de
1929
+ * 460px o de un diálogo `maxWidth="sm"`: ahí la pantalla es ancha, gana el valor de `lg` y los
1930
+ * campos quedan apretados.
1931
+ *
1932
+ * Estas utilidades traducen el mismo objeto `size` a reglas `@container`, de modo que una sola
1933
+ * definición de secciones sirve para página, diálogo y drawer — y se re-acomoda en vivo al
1934
+ * arrastrar el borde del drawer, sin re-render.
1935
+ */
1936
+ type FormBreakpoint = "xs" | "sm" | "md" | "lg" | "xl";
1937
+ /**
1938
+ * `container-name` que declara todo formulario en modo contenedor. Es público a propósito: un
1939
+ * consumidor puede apuntarle desde su propio `sx` con la sintaxis corta de MUI —
1940
+ * `sx={{ p: { "@700/acvform": 3 } }}`. Usar siempre la forma **numérica**: `@md/acvform`
1941
+ * resolvería contra `theme.breakpoints.values` (900), no contra esta escalera (700).
1942
+ */
1943
+ declare const FORM_CONTAINER_NAME = "acvform";
1944
+ /**
1945
+ * Ancho del *formulario* (px) a partir del cual aplica cada clave. Escalera pensada para
1946
+ * paneles, no una copia de `theme.breakpoints.values`: esos son umbrales de viewport y un
1947
+ * formulario de 552px (un drawer de 600) caería en `xs`, o sea un campo por renglón — peor que
1948
+ * el problema que esto resuelve. Derivada de una columna útil de ~190–230px con gutter de 16px.
1949
+ */
1950
+ declare const DEFAULT_FORM_BREAKPOINTS: Record<FormBreakpoint, number>;
1951
+ interface FormGridSxOptions {
1952
+ /** @default FORM_CONTAINER_NAME */
1953
+ containerName?: string;
1954
+ /** Se mezcla encima de {@link DEFAULT_FORM_BREAKPOINTS}. */
1955
+ breakpoints?: Partial<Record<FormBreakpoint, number>>;
1956
+ }
1957
+ /**
1958
+ * Traduce el `size`/`offset` de un Grid a reglas `@container` que reproducen, contra el ancho
1959
+ * del formulario, exactamente lo que MUI deriva de ellos contra el viewport.
1960
+ *
1961
+ * **Todos** los escalones se emiten como container query —`xs` incluido, en `min-width:0px`—;
1962
+ * nunca hay regla base. Por eso un campo renderizado fuera de un contenedor de formulario no
1963
+ * empata con ninguna de estas reglas y conserva intacto el comportamiento por viewport de MUI:
1964
+ * ahí está toda la compatibilidad hacia atrás.
1965
+ *
1966
+ * El resultado va en `sx`, que se serializa *después* de los estilos propios del Grid y con la
1967
+ * misma especificidad, así que gana donde aplica.
1968
+ */
1969
+ declare const formGridSx: (size: GridProps["size"], offset?: GridProps["offset"], options?: FormGridSxOptions) => CSSObject | undefined;
1970
+ /**
1971
+ * Convierte un elemento en el contenedor contra el que resuelven los campos que contiene.
1972
+ *
1973
+ * `inline-size`, nunca `size`: el `Collapse` de `Subsection` anima midiendo `clientHeight`, y
1974
+ * contener el eje de bloque lo rompería.
1975
+ */
1976
+ declare const formContainerSx: (containerName?: string) => CSSObject;
1977
+
1978
+ interface DetailFormProps {
1979
+ /** Result of `useDetailForm`. */
1980
+ controller: DetailFormController;
1981
+ /**
1982
+ * `id` of the `<form>` element. External submit buttons (e.g. inside a dialog footer,
1983
+ * which live outside the form tree) submit via `<button form={formId} type="submit">`.
1984
+ * Defaults to `"formulario"` for parity with `SaveCancelButton`.
1985
+ */
1986
+ formId?: string;
1987
+ /** Persist-tab key for multi-section forms. Defaults to `formId`. */
1988
+ storageKey?: string;
1989
+ /** Height factor passed to the loading spinner. Defaults to `0.7`. */
1990
+ loadingHeight?: number;
1991
+ /**
1992
+ * What each field's `size` breakpoints resolve against.
1993
+ *
1994
+ * `"viewport"` is MUI's own behaviour. `"container"` resolves them against the width of
1995
+ * *this form*, so one section definition serves a full page, a `maxWidth="sm"` dialog and a
1996
+ * 460px drawer without a hand-picked size per shell — and re-flows live as the drawer is
1997
+ * dragged. Note that it makes the `<form>` a CSS containment context, so a `slotProps.form`
1998
+ * that overrides `width` with a content-dependent value would no longer resolve.
1999
+ * @default "viewport"
2000
+ */
2001
+ responsiveTo?: "viewport" | "container";
2002
+ /**
2003
+ * Form widths (px) at which each breakpoint key starts applying. Shallow-merged over
2004
+ * {@link DEFAULT_FORM_BREAKPOINTS}; only read in `"container"` mode.
2005
+ */
2006
+ containerBreakpoints?: Partial<Record<FormBreakpoint, number>>;
2007
+ slotProps?: {
2008
+ form?: Partial<BoxProps>;
2009
+ };
2010
+ }
2011
+ /**
2012
+ * Presentational, chrome-less body of a record form: the `FormProvider`, the `<form>`
2013
+ * element and the section/tab render tree — no page layout, no header buttons. Compose it
2014
+ * inside a page, dialog or drawer shell that supplies the surrounding chrome.
2015
+ */
2016
+ declare function DetailForm({ controller, formId, storageKey, loadingHeight, responsiveTo, containerBreakpoints, slotProps, }: DetailFormProps): react_jsx_runtime.JSX.Element;
2017
+
2018
+ interface DetailFormDrawerNavigation {
2019
+ /** Open the previous record of the list the drawer is walking. */
2020
+ onPrev: () => void;
2021
+ onNext: () => void;
2022
+ /** Whether a previous/next record exists. The arrows are disabled when it doesn't. */
2023
+ hasPrev: boolean;
2024
+ hasNext: boolean;
2025
+ /** 1-based position of the current record, shown between the arrows. */
2026
+ position?: number;
2027
+ /** Size of the list; shown as `position / count`. */
2028
+ count?: number;
2029
+ /** Blocks both arrows for a caller-side reason (e.g. while the next batch loads). */
2030
+ disabled?: boolean;
2031
+ }
2032
+ interface DetailFormDrawerProps {
2033
+ open: boolean;
2034
+ /** Close the drawer. Also invoked after a successful save and on cancel. */
2035
+ onClose: () => void;
2036
+ title?: ReactNode;
2037
+ api: DetailFormApi;
2038
+ form: DetailFormConfig["form"];
2039
+ sections: DetailFormConfig["sections"];
2040
+ /** Defaults to `"create"`. */
2041
+ pageType?: PageType;
2042
+ /**
2043
+ * Open a `"detail"` drawer straight in edit mode, as if the user had hit the Editar
2044
+ * button. Ignored for the other page types, and for records the user may not edit.
2045
+ */
2046
+ startInEdit?: boolean;
2047
+ /**
2048
+ * Identity of the record on show. Swapping it (as the navigator does, without remounting
2049
+ * the drawer) re-derives the per-record chrome — the in-place edit toggle drops back to
2050
+ * read-only and `startInEdit` is re-applied against the new record's own permissions.
2051
+ */
2052
+ recordKey?: string | number;
2053
+ permissionsPath?: string;
2054
+ /** Runs after a successful mutation, before the drawer closes. Receives the response. */
2055
+ onSuccess?: (response: any) => void;
2056
+ /**
2057
+ * Footer record navigator: prev/next arrows (Alt+↑ / Alt+↓) that step through a list of
2058
+ * sibling records — e.g. the rows of the grid the drawer was opened from — without
2059
+ * closing the drawer. Omit it and no navigator renders.
2060
+ */
2061
+ navigation?: DetailFormDrawerNavigation;
2062
+ /** Panel width. Defaults to `600`. */
2063
+ width?: number | string;
2064
+ /** Side the drawer slides in from. Defaults to `"right"`. */
2065
+ anchor?: DrawerProps["anchor"];
2066
+ /**
2067
+ * Let the user drag the drawer's inner edge to resize it. Forwarded to `MainDrawer_v2`
2068
+ * along with the four props below — see it for the full behaviour.
2069
+ */
2070
+ resizable?: boolean;
2071
+ /** Smallest width the drag allows, in px. Defaults to `320`. */
2072
+ minWidth?: number;
2073
+ /** Largest width the drag allows, in px. Defaults to the viewport minus a margin. */
2074
+ maxWidth?: number;
2075
+ /**
2076
+ * Remember the dragged width under this `localStorage` key. Worth setting whenever the
2077
+ * drawer is remounted per record — a fresh mount otherwise forgets the drag.
2078
+ */
2079
+ widthStorageKey?: string;
2080
+ /** Fires with the final dragged width in px, or `null` when a double click resets it. */
2081
+ onWidthChange?: (width: number | null) => void;
2082
+ /**
2083
+ * What each field's `size` breakpoints resolve against. Defaults to `"container"`: a drawer
2084
+ * is narrow by construction, so viewport breakpoints would pick the wide-screen value and
2085
+ * cram the fields — and they would not react to a drag either.
2086
+ * @see DetailFormProps.responsiveTo
2087
+ */
2088
+ responsiveTo?: DetailFormProps["responsiveTo"];
2089
+ /** @see DetailFormProps.containerBreakpoints */
2090
+ containerBreakpoints?: DetailFormProps["containerBreakpoints"];
2091
+ labels?: {
2092
+ save?: string;
2093
+ cancel?: string;
2094
+ /**
2095
+ * Rótulo del guardar-y-seguir. Por defecto `"Guardar ↓"`, corto porque va junto al
2096
+ * Guardar de siempre y el tooltip ya dice qué hace; pásale un texto propio donde el
2097
+ * paso al siguiente registro merezca nombrarse ("Guardar y siguiente bulto").
2098
+ */
2099
+ saveAndNext?: string;
2100
+ };
2101
+ slots?: {
2102
+ /** Extra actions rendered in the header, left of the close button (e.g. "open full page"). */
2103
+ headerActions?: ReactNode;
2104
+ };
2105
+ slotProps?: {
2106
+ drawer?: Partial<DrawerProps>;
2107
+ saveButton?: Partial<ButtonProps>;
2108
+ cancelButton?: Partial<ButtonProps>;
2109
+ saveAndNextButton?: Partial<ButtonProps>;
2110
+ };
2111
+ }
2112
+ /**
2113
+ * A record form inside a side drawer. Reuses the same `useDetailForm` engine and
2114
+ * `DetailForm` body as `DetailPage_v2`, and `MainDrawer_v2` for the chrome — so it frames
2115
+ * the form exactly like every other v2 drawer. What it adds on top is the per-record
2116
+ * furniture: edit/delete in the header, and a footer holding the form actions and, when
2117
+ * `navigation` is given, a prev/next record navigator (Alt+↑ / Alt+↓) plus "Guardar ↓"
2118
+ * (Alt+Shift+↓) — a save that steps to the next record instead of closing, so a column can be
2119
+ * captured down a list in one pass without the hands leaving the keyboard. Rename it with
2120
+ * `labels.saveAndNext`. Guardar sits outside the `<form>` and submits via the native
2121
+ * `form={formId}` attribute; Guardar ↓ submits by hand, so the implicit Enter stays Guardar.
2122
+ */
2123
+ declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, startInEdit, recordKey, permissionsPath, onSuccess, navigation, width, anchor, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, responsiveTo, containerBreakpoints, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
2124
+
1767
2125
  interface DrawerGridDrawerConfig {
1768
2126
  /** Shared field layout, used by every mode. Same shape as `DetailPage_v2`'s `form`/`sections`. */
1769
2127
  form: DetailFormConfig["form"];
1770
2128
  sections: DetailFormConfig["sections"];
1771
2129
  permissionsPath?: string;
1772
- /** Panel width. Defaults to the drawer's own default (480). */
2130
+ /** Panel width. Defaults to the drawer's own default (600). */
1773
2131
  width?: number | string;
2132
+ /**
2133
+ * Let the user drag the drawer's inner edge to resize it. The dragged width is remembered
2134
+ * across openings under a key derived from the grid's own storage key — override it with
2135
+ * `widthStorageKey`, or turn the memory off by passing an empty string.
2136
+ */
2137
+ resizable?: boolean;
2138
+ /** Smallest width the drag allows, in px. Defaults to `320`. */
2139
+ minWidth?: number;
2140
+ /** Largest width the drag allows, in px. Defaults to the viewport minus a margin. */
2141
+ maxWidth?: number;
2142
+ /** Where the dragged width is remembered. Defaults to the grid's storage key + `_DW`. */
2143
+ widthStorageKey?: string;
2144
+ /**
2145
+ * What the fields' `size` breakpoints resolve against. Defaults to `"container"` — the
2146
+ * width of the panel, not of the screen.
2147
+ * @see DetailFormDrawerProps.responsiveTo
2148
+ */
2149
+ responsiveTo?: DetailFormDrawerProps["responsiveTo"];
2150
+ /** @see DetailFormDrawerProps.containerBreakpoints */
2151
+ containerBreakpoints?: DetailFormDrawerProps["containerBreakpoints"];
1774
2152
  title?: {
1775
2153
  create?: ReactNode;
1776
2154
  record?: ReactNode | ((id: GridRowId) => ReactNode);
@@ -1814,16 +2192,28 @@ interface DrawerGridDrawerConfig {
1814
2192
  /**
1815
2193
  * Show the footer navigator that walks the grid's rows — prev/next arrows plus the
1816
2194
  * record's position — in the record drawer. Defaults to `true`.
2195
+ *
2196
+ * It also gates "Guardar ↓", the save that steps to the next row instead of closing:
2197
+ * without a list to walk there is nothing to continue to.
1817
2198
  */
1818
2199
  showNavigator?: boolean;
2200
+ /** Rótulos del pie del cajón. `saveAndNext` por defecto es `"Guardar ↓"`. */
1819
2201
  labels?: {
1820
2202
  save?: string;
1821
2203
  cancel?: string;
2204
+ saveAndNext?: string;
1822
2205
  };
1823
2206
  }
1824
2207
  interface DrawerGridEditConfig {
1825
2208
  /** Hides the toggle (and its shortcuts) without touching permissions. */
1826
2209
  disabled?: boolean;
2210
+ /**
2211
+ * Drives edit mode from outside instead of leaving it to the toolbar toggle — pass the
2212
+ * edit state of the form this grid is embedded in and a row click follows it, opening the
2213
+ * drawer already editing without the user flipping a second switch. The toolbar button
2214
+ * disappears while it's set, and it stays fail-closed against the model's permission.
2215
+ */
2216
+ active?: boolean;
1827
2217
  }
1828
2218
  interface DrawerGridProps {
1829
2219
  /**
@@ -1855,10 +2245,18 @@ interface DrawerGridProps {
1855
2245
  * the current filters — not just the ones on screen. Turn it off with
1856
2246
  * `drawer.showNavigator: false`.
1857
2247
  *
2248
+ * Editing a list that way gets a third footer button, "Guardar ↓" / Alt+Shift+↓ (rename it
2249
+ * with `drawer.labels.saveAndNext`): it saves and steps to the next row instead of closing,
2250
+ * carrying the edit mode over, so capturing a column across many rows is one pass rather than
2251
+ * open-edit-save-reopen per row — and with the shortcut, without leaving the keyboard. It
2252
+ * rides on the navigator — no navigator, or last row, and there is just Guardar.
2253
+ *
1858
2254
  * Edit mode is opt-in with `api.edit: {}` and adds nothing to the grid but a toolbar toggle —
1859
2255
  * no mutation, no actions column, no in-grid editing. While it's on, a row click opens the
1860
2256
  * record drawer already editing, provided the record allows it; the drawer form is the only
1861
- * thing that writes.
2257
+ * thing that writes. A grid embedded in a detail form can hand the mode over instead, with
2258
+ * `api.edit: { active: pageType === "edit" }`, so it follows the form rather than asking for
2259
+ * a second switch.
1862
2260
  *
1863
2261
  * The full grid config goes under `grid` (`{ pathname, api, dataGridProps, slotProps }`),
1864
2262
  * alongside `drawer`.
@@ -1921,30 +2319,6 @@ interface DetailPageV2Props {
1921
2319
  }
1922
2320
  declare function DetailPage(props: DetailPageV2Props): react_jsx_runtime.JSX.Element;
1923
2321
 
1924
- interface DetailFormProps {
1925
- /** Result of `useDetailForm`. */
1926
- controller: DetailFormController;
1927
- /**
1928
- * `id` of the `<form>` element. External submit buttons (e.g. inside a dialog footer,
1929
- * which live outside the form tree) submit via `<button form={formId} type="submit">`.
1930
- * Defaults to `"formulario"` for parity with `SaveCancelButton`.
1931
- */
1932
- formId?: string;
1933
- /** Persist-tab key for multi-section forms. Defaults to `formId`. */
1934
- storageKey?: string;
1935
- /** Height factor passed to the loading spinner. Defaults to `0.7`. */
1936
- loadingHeight?: number;
1937
- slotProps?: {
1938
- form?: Partial<BoxProps>;
1939
- };
1940
- }
1941
- /**
1942
- * Presentational, chrome-less body of a record form: the `FormProvider`, the `<form>`
1943
- * element and the section/tab render tree — no page layout, no header buttons. Compose it
1944
- * inside a page, dialog or drawer shell that supplies the surrounding chrome.
1945
- */
1946
- declare function DetailForm({ controller, formId, storageKey, loadingHeight, slotProps, }: DetailFormProps): react_jsx_runtime.JSX.Element;
1947
-
1948
2322
  interface DetailFormDialogProps {
1949
2323
  open: boolean;
1950
2324
  /** Close the dialog. Also invoked after a successful save and on cancel. */
@@ -1958,6 +2332,15 @@ interface DetailFormDialogProps {
1958
2332
  permissionsPath?: string;
1959
2333
  /** Runs after a successful mutation, before the dialog closes. Receives the response. */
1960
2334
  onSuccess?: (response: any) => void;
2335
+ /**
2336
+ * What each field's `size` breakpoints resolve against. Defaults to `"container"`: a
2337
+ * `maxWidth="sm"` dialog is narrow by construction, so viewport breakpoints would pick the
2338
+ * wide-screen value and cram the fields.
2339
+ * @see DetailFormProps.responsiveTo
2340
+ */
2341
+ responsiveTo?: DetailFormProps["responsiveTo"];
2342
+ /** @see DetailFormProps.containerBreakpoints */
2343
+ containerBreakpoints?: DetailFormProps["containerBreakpoints"];
1961
2344
  labels?: {
1962
2345
  save?: string;
1963
2346
  cancel?: string;
@@ -1975,79 +2358,7 @@ interface DetailFormDialogProps {
1975
2358
  * becomes a `DialogTitle` and the buttons move into `DialogActions`. The save button lives
1976
2359
  * outside the `<form>` tree, so it submits via the native `form={formId}` attribute.
1977
2360
  */
1978
- declare function DetailFormDialog({ open, onClose, title, api, form, sections, pageType, permissionsPath, onSuccess, labels, slotProps, }: DetailFormDialogProps): react_jsx_runtime.JSX.Element;
1979
-
1980
- interface DetailFormDrawerNavigation {
1981
- /** Open the previous record of the list the drawer is walking. */
1982
- onPrev: () => void;
1983
- onNext: () => void;
1984
- /** Whether a previous/next record exists. The arrows are disabled when it doesn't. */
1985
- hasPrev: boolean;
1986
- hasNext: boolean;
1987
- /** 1-based position of the current record, shown between the arrows. */
1988
- position?: number;
1989
- /** Size of the list; shown as `position / count`. */
1990
- count?: number;
1991
- /** Blocks both arrows for a caller-side reason (e.g. while the next batch loads). */
1992
- disabled?: boolean;
1993
- }
1994
- interface DetailFormDrawerProps {
1995
- open: boolean;
1996
- /** Close the drawer. Also invoked after a successful save and on cancel. */
1997
- onClose: () => void;
1998
- title?: ReactNode;
1999
- api: DetailFormApi;
2000
- form: DetailFormConfig["form"];
2001
- sections: DetailFormConfig["sections"];
2002
- /** Defaults to `"create"`. */
2003
- pageType?: PageType;
2004
- /**
2005
- * Open a `"detail"` drawer straight in edit mode, as if the user had hit the Editar
2006
- * button. Ignored for the other page types, and for records the user may not edit.
2007
- */
2008
- startInEdit?: boolean;
2009
- /**
2010
- * Identity of the record on show. Swapping it (as the navigator does, without remounting
2011
- * the drawer) re-derives the per-record chrome — the in-place edit toggle drops back to
2012
- * read-only and `startInEdit` is re-applied against the new record's own permissions.
2013
- */
2014
- recordKey?: string | number;
2015
- permissionsPath?: string;
2016
- /** Runs after a successful mutation, before the drawer closes. Receives the response. */
2017
- onSuccess?: (response: any) => void;
2018
- /**
2019
- * Footer record navigator: prev/next arrows (Alt+↑ / Alt+↓) that step through a list of
2020
- * sibling records — e.g. the rows of the grid the drawer was opened from — without
2021
- * closing the drawer. Omit it and no navigator renders.
2022
- */
2023
- navigation?: DetailFormDrawerNavigation;
2024
- /** Panel width. Defaults to `480`. */
2025
- width?: number | string;
2026
- /** Side the drawer slides in from. Defaults to `"right"`. */
2027
- anchor?: DrawerProps["anchor"];
2028
- labels?: {
2029
- save?: string;
2030
- cancel?: string;
2031
- };
2032
- slots?: {
2033
- /** Extra actions rendered in the header, left of the close button (e.g. "open full page"). */
2034
- headerActions?: ReactNode;
2035
- };
2036
- slotProps?: {
2037
- drawer?: Partial<DrawerProps>;
2038
- saveButton?: Partial<ButtonProps>;
2039
- cancelButton?: Partial<ButtonProps>;
2040
- };
2041
- }
2042
- /**
2043
- * A record form inside a side drawer. Reuses the same `useDetailForm` engine and
2044
- * `DetailForm` body as `DetailPage_v2`, and `MainDrawer_v2` for the chrome — so it frames
2045
- * the form exactly like every other v2 drawer. What it adds on top is the per-record
2046
- * furniture: edit/delete in the header, and a footer holding the form actions and, when
2047
- * `navigation` is given, a prev/next record navigator. The save button sits outside the
2048
- * `<form>`, so it submits via the native `form={formId}` attribute.
2049
- */
2050
- declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, startInEdit, recordKey, permissionsPath, onSuccess, navigation, width, anchor, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
2361
+ declare function DetailFormDialog({ open, onClose, title, api, form, sections, pageType, permissionsPath, onSuccess, responsiveTo, containerBreakpoints, labels, slotProps, }: DetailFormDialogProps): react_jsx_runtime.JSX.Element;
2051
2362
 
2052
2363
  /**
2053
2364
  * Encabezado por defecto del `PageContainer`: resuelve título y breadcrumbs a
@@ -2131,11 +2442,15 @@ interface MainLayoutProps {
2131
2442
  * Color de fondo del área de contenido. Se aplica al scroll container
2132
2443
  * (`<main>`) para que cubra toda la altura scrolleable y no se corte cuando
2133
2444
  * la página es más larga que el viewport.
2445
+ *
2446
+ * Por defecto el fondo del tema, escrito como variable CSS para que siga al
2447
+ * esquema de color activo; un valor fijo lo deja igual en claro y en oscuro.
2134
2448
  */
2135
2449
  pageBackgroundColor?: string;
2136
2450
  /**
2137
2451
  * Color del contorno: el marco continuo que forman el header y el sidebar
2138
- * alrededor del panel de contenido.
2452
+ * alrededor del panel de contenido. Por defecto el color de superficie del
2453
+ * tema, con la misma salvedad que `pageBackgroundColor`.
2139
2454
  */
2140
2455
  chromeBackgroundColor?: string;
2141
2456
  /**
@@ -2172,6 +2487,13 @@ interface MainLayoutProps {
2172
2487
  slots?: {
2173
2488
  /** Barra superior del dashboard. Por defecto la de Toolpad. */
2174
2489
  header?: JSXElementConstructor<DashboardHeaderProps>;
2490
+ /**
2491
+ * Acciones de la derecha de la barra superior. Por defecto Toolpad pinta
2492
+ * ahí el interruptor de claro/oscuro y el menú de cuenta; reemplazarlo es
2493
+ * la forma de mover ese interruptor (`useColorMode`) a otro sitio, o de
2494
+ * añadir acciones propias, sin rehacer el header entero.
2495
+ */
2496
+ toolbarActions?: JSXElementConstructor<{}>;
2175
2497
  /** Pie del sidebar. Por defecto muestra versión y copyright. */
2176
2498
  sidebarFooter?: ElementType<SidebarFooterProps>;
2177
2499
  /** Encabezado de página. Por defecto resuelve título/breadcrumbs. */
@@ -2226,6 +2548,56 @@ declare const useMutationHandler: ({ mutationFn, form, onSuccess, onValidationEr
2226
2548
 
2227
2549
  declare const useHasPermission_v2: (path?: string) => boolean;
2228
2550
 
2551
+ /**
2552
+ * Lee y cambia el esquema de color de la aplicación.
2553
+ *
2554
+ * Es la pieza que la librería expone para que cada proyecto ponga el interruptor
2555
+ * donde quiera (cabecera, menú de usuario, ajustes…): la librería no dibuja
2556
+ * ningún control, solo da el estado y las acciones.
2557
+ *
2558
+ * Funciona dentro del proveedor de tema que monta `MainLayout`, y el modo
2559
+ * elegido se guarda en `localStorage`, así que sobrevive a recargas sin que el
2560
+ * proyecto tenga que persistir nada.
2561
+ *
2562
+ * @example
2563
+ * const { isDark, toggle } = useColorMode();
2564
+ * <IconButton onClick={toggle}>{isDark ? <LightModeIcon /> : <DarkModeIcon />}</IconButton>
2565
+ *
2566
+ * @example
2567
+ * // Con las tres opciones, incluida "seguir al sistema"
2568
+ * const { mode, setMode } = useColorMode();
2569
+ * <ToggleButtonGroup value={mode} exclusive onChange={(_, v) => v && setMode(v)}>
2570
+ * <ToggleButton value={"light"}>Claro</ToggleButton>
2571
+ * <ToggleButton value={"dark"}>Oscuro</ToggleButton>
2572
+ * <ToggleButton value={"system"}>Sistema</ToggleButton>
2573
+ * </ToggleButtonGroup>
2574
+ */
2575
+ /** Preferencia del usuario. `system` sigue a la configuración del dispositivo. */
2576
+ type ColorMode = "light" | "dark" | "system";
2577
+ interface UseColorModeResult {
2578
+ /**
2579
+ * Preferencia elegida, incluida `system`. Es el valor que debe marcar un
2580
+ * selector de tres posiciones. En el primer render puede ser `undefined`,
2581
+ * antes de que se lea lo guardado.
2582
+ */
2583
+ mode: ColorMode | undefined;
2584
+ /** Esquema realmente aplicado, con `system` ya resuelto. */
2585
+ resolvedMode: "light" | "dark";
2586
+ /** Atajo de `resolvedMode === "dark"`, para elegir icono o texto. */
2587
+ isDark: boolean;
2588
+ /** Fija la preferencia y la guarda. */
2589
+ setMode: (mode: ColorMode) => void;
2590
+ /** Alterna entre claro y oscuro partiendo del esquema aplicado. */
2591
+ toggle: () => void;
2592
+ /**
2593
+ * `false` si el tema en uso solo declara un esquema — un proyecto que pasa a
2594
+ * `MainLayout` un tema propio construido sin `colorSchemes`. Sirve para
2595
+ * esconder el interruptor en vez de dejar uno que no hace nada.
2596
+ */
2597
+ isSupported: boolean;
2598
+ }
2599
+ declare function useColorMode(): UseColorModeResult;
2600
+
2229
2601
  interface PulseDotProps {
2230
2602
  /** Cuando es `true`, el punto es verde y parpadea; si no, usa `inactiveColor`. */
2231
2603
  active: boolean;
@@ -2240,5 +2612,5 @@ interface PulseDotProps {
2240
2612
  * contrario un color fijo. Se usa para indicar conexión/actividad en vivo. */
2241
2613
  declare function PulseDot({ active, inactiveColor, size, title }: PulseDotProps): react_jsx_runtime.JSX.Element;
2242
2614
 
2243
- export { APIContext, APIProvider, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, CSVUpload, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, 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_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, ExtraButtons, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, PAGE_SIZE_OPTIONS, Panel, PollingCountdownChip, PulseDot, SaveCancelButton, ServerGrid as ServerGrid_v2, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, composeGridProps, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, resolveInitialState, setErrors, _default$1 as snackProgressReducer, tags, theme, togglableFields, updateProgressSnackData, useAPI, useDetailForm, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useMutationHandler, useNavigation, useServerGrid, valueLabel };
2244
- export type { APIcontextProps, AddressValue, ComoOpcionesProps, ConfirmDialogProps, ControlledInput, CustomToolbarProps, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, MainDrawerV2Props, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, RowsSnapshot, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, UseServerGridOptions };
2615
+ export { APIContext, APIProvider, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, 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, ExtraButtons, FORM_CONTAINER_NAME, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, PAGE_SIZE_OPTIONS, Panel, PollingCountdownChip, PulseDot, SaveCancelButton, ServerGrid as ServerGrid_v2, StatusBadge, StyledMenu, Tabs, Transitions, TrueFalse, UncontrolledText, changeTitle, closeProgressSnack, composeGridProps, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, editColumn, filterQuery, formContainerSx, formGridSx, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, resolveInitialState, setErrors, _default$1 as snackProgressReducer, tags, theme, togglableFields, updateProgressSnackData, useAPI, useColorMode, useDetailForm, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useMutationHandler, useNavigation, useServerGrid, valueLabel };
2616
+ export type { APIcontextProps, AddressValue, AppTheme, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledInput, CustomFilterDef, CustomToolbarProps, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, MainDrawerV2Props, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, RowsSnapshot, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, UseColorModeResult, UseServerGridOptions };