@acvl/frontend-components 0.0.118 → 0.0.119
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 +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1442,6 +1442,7 @@ declare const es: {
|
|
|
1442
1442
|
siguiente: string;
|
|
1443
1443
|
leerTodas: string;
|
|
1444
1444
|
borrarTodas: string;
|
|
1445
|
+
ver: string;
|
|
1445
1446
|
borrarTodasAria: string;
|
|
1446
1447
|
};
|
|
1447
1448
|
cuenta: {
|
|
@@ -5349,7 +5350,17 @@ declare const NotificationItem: (props: NotificationItemProps) => react_jsx_runt
|
|
|
5349
5350
|
* Los datos no los pide la librería: el proyecto pasa sus hooks de RTK Query en
|
|
5350
5351
|
* `api` y arma los argumentos de la consulta en `buildQueryArgs`, porque el
|
|
5351
5352
|
* endpoint de notificaciones no tiene la misma firma en todos los portales.
|
|
5353
|
+
*
|
|
5354
|
+
* Lo que llega en vivo (`liveNotification`) sale además como **aviso emergente**, en el
|
|
5355
|
+
* snackbar del cascarón, con «Ver» si trae a dónde ir. Sin él, quien tiene la página abierta
|
|
5356
|
+
* sólo se entera si mira el número de la campana.
|
|
5352
5357
|
**/
|
|
5358
|
+
/** Lo que el aviso emergente necesita de una notificación recién llegada. */
|
|
5359
|
+
interface LiveNotification {
|
|
5360
|
+
id: number;
|
|
5361
|
+
mensaje: string;
|
|
5362
|
+
url?: string | null;
|
|
5363
|
+
}
|
|
5353
5364
|
interface NotificationsApi {
|
|
5354
5365
|
/** `useGetNotificacionesQuery` — recibe lo que devuelva `buildQueryArgs`. */
|
|
5355
5366
|
useGetNotificaciones: any;
|
|
@@ -5379,6 +5390,13 @@ interface NotificationsBellProps {
|
|
|
5379
5390
|
* significa "ya me encargué" y la fila no navega a `notification.url`.
|
|
5380
5391
|
*/
|
|
5381
5392
|
onOpenNotification?: (notification: any) => boolean | void;
|
|
5393
|
+
/**
|
|
5394
|
+
* La última notificación que llegó **en vivo** (por el socket del proyecto), o `null`. Cada
|
|
5395
|
+
* `id` nuevo sale una vez como aviso emergente; «Ver» la marca leída y la abre igual que
|
|
5396
|
+
* su fila —`onOpenNotification` primero—. Lo que se reconcilia al reconectar no debe
|
|
5397
|
+
* pasar por aquí: ya no es "acaba de pasar".
|
|
5398
|
+
*/
|
|
5399
|
+
liveNotification?: LiveNotification | null;
|
|
5382
5400
|
/** Título del panel. */
|
|
5383
5401
|
title?: string;
|
|
5384
5402
|
/** Ancho del panel abierto, mientras el usuario no lo arrastre a otra cosa. */
|
|
@@ -5398,7 +5416,7 @@ interface NotificationsBellProps {
|
|
|
5398
5416
|
item?: ElementType<NotificationItemProps>;
|
|
5399
5417
|
};
|
|
5400
5418
|
}
|
|
5401
|
-
declare const NotificationsBell: ({ api, buildQueryArgs, renderIcon, onOpenNotification, title, width, widthStorageKey, slots, }: NotificationsBellProps) => react_jsx_runtime.JSX.Element;
|
|
5419
|
+
declare const NotificationsBell: ({ api, buildQueryArgs, renderIcon, onOpenNotification, liveNotification, title, width, widthStorageKey, slots, }: NotificationsBellProps) => react_jsx_runtime.JSX.Element;
|
|
5402
5420
|
|
|
5403
5421
|
/**
|
|
5404
5422
|
* Contenido del popover de la cuenta (slot `popoverContent` del `Account` de
|
|
@@ -5573,4 +5591,4 @@ declare function createLiveSocketSession(options: LiveSocketSessionOptions): {
|
|
|
5573
5591
|
type LiveSocketSession = ReturnType<typeof createLiveSocketSession>;
|
|
5574
5592
|
|
|
5575
5593
|
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, Dato, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, Documento, 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, Lista, 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, PaginaLegal, Panel, Parrafo, PollingCountdownChip, PulseDot, RESPONSIVE_ACTION_MODES, ResponsiveActions, SIDE_PANEL_WIDTH_VAR, SaveCancelButton, Seccion, ServerGrid as ServerGrid_v2, SidePanelHostContext, StatusBadge, StickyPageHeaderContext, StyledMenu, StyledToggleButtonGroup, Subtitulo, TEXTOS, TabCounter, Tabs, Titulo, Transitions, TrueFalse, UncontrolledText, aplicarLocaleDeDayjs, buildEstadoTabs, changeTitle, closeProgressSnack, columnasDeCatalogo, composeGridProps, crearFabricaDeCatalogos, createLiveSocketSession, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, drawerZIndex, editColumn, filterQuery, filtersPanelFrameSx, formContainerSx, formGridSx, formParser, headerContainerSx, _default as headerReducer, llaveDeFiltrosCompartidos, 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, useRememberedTab, useServerGrid, useSharedFilters, useSidePanelHost, useStickyPageHeader, useStickyPageHeaderHost, useTextos, valueLabel };
|
|
5576
|
-
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, ExtraButtonContext, ExtraCreateOptionProps, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, ListaProps, LiveSocketDispatch, LiveSocketSession, LiveSocketSessionOptions, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaLegalProps, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, RutasDePaginaLegal, SeccionProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SessionTokens, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, TabCounterProps, Textos, TextosDePaginaLegal, UseColorModeResult, UseServerGridOptions };
|
|
5594
|
+
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, ExtraButtonContext, ExtraCreateOptionProps, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, FilterInput, FormBreakpoint, FormGridSxOptions, GlobalSearchOption, GlobalSearchProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, GrillaHastaElFondoProps, HiddenPageHeaderHost, InsigniaDeCatalogo, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, ListaProps, LiveNotification, LiveSocketDispatch, LiveSocketSession, LiveSocketSessionOptions, Locale, LocaleContextProps, LocaleProviderProps, MainDrawerV2Props, MainLayoutFooterConfig, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MutationArgs, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, NotificationItemProps, NotificationsApi, NotificationsBellProps, PageActionsHost, PageBadgeHost, PageInfoHost, PageInfoProps, PageType, PaginaLegalProps, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, ResponsiveAction, ResponsiveActionsMode, ResponsiveActionsProps, RowsSnapshot, RutasDePaginaLegal, SeccionProps, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, SessionTokens, SharedFiltersConfig, SidePanelHost, StatusColor, StickyPageHeaderHost, TabCounterProps, Textos, TextosDePaginaLegal, UseColorModeResult, UseServerGridOptions };
|
package/package.json
CHANGED