@acvl/frontend-components 0.0.103 → 0.0.105

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
@@ -793,6 +793,21 @@ interface MainDrawerV2Props {
793
793
  * y `slotProps.paper` no aplican —no hay `Drawer` ni `Paper` que configurar.
794
794
  */
795
795
  variant?: "temporary" | "docked";
796
+ /**
797
+ * Conserva montados a los hijos cuando `variant` cambia con el panel ya puesto —el que se
798
+ * acopla en pantalla ancha y flota en la angosta, al cruzar el breakpoint—. Sin esto las
799
+ * dos variantes son árboles distintos, y el cambio desmonta lo que llevan: un mapa, un
800
+ * formulario a medias o una grilla vuelven a empezar.
801
+ *
802
+ * Los hijos viven entonces en su propio nodo, que se cuelga del cuerpo de la variante
803
+ * activa, y siguen montados también con el panel cerrado (como con `keepMounted`). A
804
+ * cambio, sus eventos de React suben hasta quien declara el panel y no pasan por el
805
+ * `Drawer` ni por el cuerpo: los manejadores de `slotProps.drawer` y `slotProps.body` ya no
806
+ * los ven. El Escape del flotante lo atiende el propio panel.
807
+ *
808
+ * Se lee al montar el panel; cambiarla después no tiene efecto.
809
+ */
810
+ keepMountedAcrossVariants?: boolean;
796
811
  /**
797
812
  * Añade un tirador en el borde interior del panel para arrastrar su tamaño. Mientras el
798
813
  * usuario no lo arrastre, `width` manda; en cuanto lo hace, el tamaño arrastrado la pisa
@@ -894,7 +909,7 @@ interface MainDrawerV2Props {
894
909
  * del modal para no abrirse detrás de él. Todo lo que la librería construye sobre este panel
895
910
  * (`DetailFormDrawer_v2`, `DrawerGrid_v2`, el historial…) lo hereda sin más.
896
911
  */
897
- declare function MainDrawer$1({ open, onClose, title, subtitle, children, width, anchor, variant, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, disableBackdropClose, hideCloseButton, disableGutters, pageBackgroundColor, chromeBackgroundColor, contentGap, contentBorderRadius, slots, slotProps, }: MainDrawerV2Props): react_jsx_runtime.JSX.Element;
912
+ declare function MainDrawer$1({ open, onClose, title, subtitle, children, width, anchor, variant, keepMountedAcrossVariants, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, disableBackdropClose, hideCloseButton, disableGutters, pageBackgroundColor, chromeBackgroundColor, contentGap, contentBorderRadius, slots, slotProps, }: MainDrawerV2Props): react_jsx_runtime.JSX.Element;
898
913
 
899
914
  interface SidePanelHost {
900
915
  /**
@@ -2895,6 +2910,33 @@ declare const HEADER_NARROW = "@container acv-header (max-width: 600px)";
2895
2910
  */
2896
2911
  declare const headerContainerSx: CSSObject;
2897
2912
 
2913
+ /**
2914
+ * Radio en px de las esquinas del panel de contenido cuando `MainLayout` no recibe otro por
2915
+ * `contentBorderRadius`.
2916
+ */
2917
+ declare const DEFAULT_CONTENT_BORDER_RADIUS = 12;
2918
+ /**
2919
+ * **El radio que tienen de verdad las esquinas del panel donde se pinta la página**, para que lo
2920
+ * que va a sangre dentro de él —un mapa, un tablero— redondee con la misma curva sin repetir el
2921
+ * número.
2922
+ *
2923
+ * Lo provee `MainLayout` con su `contentBorderRadius`, y `MainDrawer_v2` lo vuelve a proveer a
2924
+ * su cuerpo con el suyo: dentro de un cajón el panel que rodea al contenido es el del cajón, y
2925
+ * ése tiene su propio radio (por defecto `theme.shape.borderRadius`). El contexto cruza
2926
+ * portales, así que un cajón acoplado en el hueco del layout también lo lee bien.
2927
+ *
2928
+ * Fuera de los dos vale `DEFAULT_CONTENT_BORDER_RADIUS`.
2929
+ */
2930
+ declare const ContentBorderRadiusContext: React$1.Context<number>;
2931
+ /**
2932
+ * El radio en px del panel de contenido que envuelve a quien lo pide (ver
2933
+ * `ContentBorderRadiusContext`).
2934
+ *
2935
+ * const radio = useContentBorderRadius();
2936
+ * <Box sx={{ borderRadius: `${radio}px` }} />
2937
+ */
2938
+ declare const useContentBorderRadius: () => number;
2939
+
2898
2940
  /**
2899
2941
  * Cómo se está dibujando la barra. En orden de lo que ocupa: las acciones a la vista con su
2900
2942
  * etiqueta, las mismas sólo con el icono, sólo las fijadas, o ninguna.
@@ -3539,6 +3581,31 @@ declare function PollingCountdownChip({ pollingInterval, isFetching, onRefresh,
3539
3581
  */
3540
3582
  declare function ServerGrid(props: ServerGridProps): react_jsx_runtime.JSX.Element;
3541
3583
 
3584
+ /**
3585
+ * The frame the filters panel draws around itself: border, rounded corners and surface.
3586
+ *
3587
+ * It is the frame the DataGrid draws around itself, read off the same tokens it reads: its
3588
+ * border is `TableCell.border` rather than plain `divider`, and its surface is the paper colour
3589
+ * lifted 5% towards white in dark mode. Matching both is the difference between one card beside
3590
+ * another and two that only nearly agree — which is also why it is exported: anything a page
3591
+ * docks beside a grid, or beside a map framed like one, should be the same card.
3592
+ *
3593
+ * Put `FILTERS_DRAWER_GAP` between the two cards. Only the frame lives here; layout (width,
3594
+ * height, flex direction) stays with whoever places the panel.
3595
+ *
3596
+ * <Box sx={(theme) => ({ ...filtersPanelFrameSx(theme), display: "flex" })} />
3597
+ */
3598
+ declare const filtersPanelFrameSx: (theme: Theme$1) => CSSObject;
3599
+
3600
+ /**
3601
+ * Space in px between the grid's frame and the panel's.
3602
+ *
3603
+ * Carried inside the sliding column rather than as a `gap` on the row outside it: a gap would
3604
+ * be full width the instant the panel mounts, so the grid would jump 12px sideways and only
3605
+ * then start being pushed. This way the whole column — panel and margin — animates as one.
3606
+ */
3607
+ declare const FILTERS_DRAWER_GAP = 12;
3608
+
3542
3609
  /** Lo que vale un estado en el filtro: el entero de un `choices` o su clave de texto. */
3543
3610
  type EstadoDeFiltro = string | number;
3544
3611
  interface EstadoTabConfig {
@@ -4614,7 +4681,9 @@ interface MainLayoutProps {
4614
4681
  /**
4615
4682
  * Radio de las esquinas del panel de contenido. Como el contorno lo rodea
4616
4683
  * por arriba y por la izquierda, redondearlo recorta el borde del header y
4617
- * del sidebar con la misma curva. `0` deja el contenido a ras.
4684
+ * del sidebar con la misma curva. `0` deja el contenido a ras. Por defecto
4685
+ * `DEFAULT_CONTENT_BORDER_RADIUS`; lo que se pinta dentro lo lee con
4686
+ * `useContentBorderRadius()`.
4618
4687
  */
4619
4688
  contentBorderRadius?: number;
4620
4689
  /**
@@ -5172,5 +5241,5 @@ declare const mutationParams: (arg: any) => {
5172
5241
  */
5173
5242
  declare const mutationId: (arg: any) => any;
5174
5243
 
5175
- export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, CatalogoItem, CatalogoList, 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, DRAWER_Z_INDEX, 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, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, 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, OverModalContext, OverModalProvider, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, Panel, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, TEXTOS, Tabs, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, composeGridProps, crearFabricaDeCatalogos, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, drawerZIndex, editColumn, filterQuery, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, mergeSettings, mutationData, mutationId, mutationParams, 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, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useServerGrid, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
5244
+ export { APIContext, APIProvider, AccountMenuContent, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, COLOR_SCHEME_SELECTOR, CSVUpload, CatalogoItem, CatalogoList, ChipCell, ConfirmDialog, ContentBorderRadiusContext, 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_CONTENT_BORDER_RADIUS, DEFAULT_FORM_BREAKPOINTS, DEFAULT_PAGINATION, DRAWER_Z_INDEX, 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, FILTERS_DRAWER_GAP, FORM_CONTAINER_NAME, GlobalSearch, GrillaHastaElFondo, HEADER_CONTAINER, HEADER_NARROW, HiddenPageHeaderContext, 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, OverModalContext, OverModalProvider, PageActionsHostContext, PageBadgeHostContext, PageInfo, PageInfoHostContext, Panel, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, TEXTOS, Tabs, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, composeGridProps, crearFabricaDeCatalogos, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, drawerZIndex, editColumn, filterQuery, filtersPanelFrameSx, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, localeDeNumeros, localeTextDeMUI, localeTextDeToolpad, manualCacheRefresh, mergeSettings, mutationData, mutationId, mutationParams, openProgressSnack, pageSizeOptions, query, renderChipCell, renderEditCellWithErrorTooltip, resolveChipOption, resolveInitialState, resolveStatusColor, setErrors, singularizarPalabra, singularizarTitulo, _default$1 as snackProgressReducer, statusColors, tags, theme, togglableFields, updateProgressSnackData, useAPI, useColorMode, useContentBorderRadius, useDetailForm, useHasPermission, useHasPermission_v2, useHiddenPageHeader, useHiddenPageHeaderHost, useKeyboardShortcut, useLocale, useMutationHandler, useNavigation, useOverModal, usePageActionsHost, usePageBadgeHost, usePageInfoHost, useServerGrid, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
5176
5245
  export type { APIcontextProps, AccountMenuContentProps, AccountMenuItem, AddressValue, AppTheme, AutocompleteOption, BuildEstadoTabsOptions, CSVMenuOptionProps, CatalogoAPI, CatalogoItemProps, CatalogoListProps, ChipCellProps, ChipColor, ChipOption, ColorMode, ComoOpcionesProps, ConfirmDialogProps, ControlledAutocompleteProps, ControlledInput, CrearCatalogoAPI, CustomFilterDef, CustomToolbarProps, DefinicionDeCatalogo, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailExtraButton, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, EstadoDeFiltro, EstadoTabConfig, ExportCSVProps as ExportCSVProps_v2, ExtraCreateOptionProps, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MutationArgs, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.103",
3
+ "version": "0.0.105",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",