@telcomdev/ui 0.1.22 → 0.1.23
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/package.json
CHANGED
package/types/telcomdev-ui.d.ts
CHANGED
|
@@ -748,6 +748,14 @@ interface TdHeaderNotificacion {
|
|
|
748
748
|
leida?: boolean;
|
|
749
749
|
}
|
|
750
750
|
type TdHeaderAccionPerfil = 'perfil' | 'configuracion' | 'salir';
|
|
751
|
+
type TdHeaderPerfilAccionTono = 'neutral' | 'primary' | 'danger';
|
|
752
|
+
interface TdHeaderPerfilAccion {
|
|
753
|
+
id: string;
|
|
754
|
+
etiqueta: string;
|
|
755
|
+
icono?: string;
|
|
756
|
+
descripcion?: string;
|
|
757
|
+
tono?: TdHeaderPerfilAccionTono;
|
|
758
|
+
}
|
|
751
759
|
declare class TdHeader {
|
|
752
760
|
menuAbierto: boolean;
|
|
753
761
|
mostrarMenu: boolean;
|
|
@@ -757,22 +765,30 @@ declare class TdHeader {
|
|
|
757
765
|
notificaciones: TdHeaderNotificacion[];
|
|
758
766
|
oscuro: boolean;
|
|
759
767
|
fijo: boolean;
|
|
768
|
+
mostrarNotificaciones: boolean;
|
|
769
|
+
mostrarPerfil: boolean;
|
|
770
|
+
perfilAcciones: TdHeaderPerfilAccion[];
|
|
760
771
|
readonly menuToggle: EventEmitter<void>;
|
|
761
772
|
readonly notificacionSeleccionada: EventEmitter<TdHeaderNotificacion>;
|
|
762
773
|
readonly verTodasNotificaciones: EventEmitter<void>;
|
|
763
774
|
readonly accionPerfil: EventEmitter<TdHeaderAccionPerfil>;
|
|
775
|
+
readonly perfilAccionSeleccionada: EventEmitter<TdHeaderPerfilAccion>;
|
|
764
776
|
protected panelNotificacionesAbierto: boolean;
|
|
765
777
|
protected panelPerfilAbierto: boolean;
|
|
766
778
|
protected alternarMenu(): void;
|
|
767
779
|
protected alternarNotificaciones(): void;
|
|
768
780
|
protected alternarPerfil(): void;
|
|
769
781
|
protected seleccionarNotificacion(notificacion: TdHeaderNotificacion): void;
|
|
770
|
-
protected emitirAccionPerfil(accion:
|
|
782
|
+
protected emitirAccionPerfil(accion: TdHeaderPerfilAccion): void;
|
|
771
783
|
protected notificacionesNoLeidas(): number;
|
|
772
784
|
protected inicialesUsuario(): string;
|
|
785
|
+
protected accionesPerfilVisibles(): TdHeaderPerfilAccion[];
|
|
786
|
+
private esAccionPerfilLegacy;
|
|
773
787
|
protected cerrarConEscape(): void;
|
|
774
788
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdHeader, never>;
|
|
775
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdHeader, "td-header", never, { "menuAbierto": { "alias": "menuAbierto"; "required": false; }; "mostrarMenu": { "alias": "mostrarMenu"; "required": false; }; "usuario": { "alias": "usuario"; "required": false; }; "cargo": { "alias": "cargo"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "notificaciones": { "alias": "notificaciones"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "fijo": { "alias": "fijo"; "required": false; }; }, { "menuToggle": "menuToggle"; "notificacionSeleccionada": "notificacionSeleccionada"; "verTodasNotificaciones": "verTodasNotificaciones"; "accionPerfil": "accionPerfil"; }, never, ["[tdHeaderStart]", "[tdHeaderCenter]", "[tdHeaderActions]"], true, never>;
|
|
789
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdHeader, "td-header", never, { "menuAbierto": { "alias": "menuAbierto"; "required": false; }; "mostrarMenu": { "alias": "mostrarMenu"; "required": false; }; "usuario": { "alias": "usuario"; "required": false; }; "cargo": { "alias": "cargo"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "notificaciones": { "alias": "notificaciones"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "fijo": { "alias": "fijo"; "required": false; }; "mostrarNotificaciones": { "alias": "mostrarNotificaciones"; "required": false; }; "mostrarPerfil": { "alias": "mostrarPerfil"; "required": false; }; "perfilAcciones": { "alias": "perfilAcciones"; "required": false; }; }, { "menuToggle": "menuToggle"; "notificacionSeleccionada": "notificacionSeleccionada"; "verTodasNotificaciones": "verTodasNotificaciones"; "accionPerfil": "accionPerfil"; "perfilAccionSeleccionada": "perfilAccionSeleccionada"; }, never, ["[tdHeaderStart]", "[tdHeaderCenter]", "[tdHeaderActions]"], true, never>;
|
|
790
|
+
static ngAcceptInputType_mostrarNotificaciones: unknown;
|
|
791
|
+
static ngAcceptInputType_mostrarPerfil: unknown;
|
|
776
792
|
}
|
|
777
793
|
|
|
778
794
|
declare class TdIcon {
|
|
@@ -1527,15 +1543,19 @@ declare class TdSidebar {
|
|
|
1527
1543
|
protected readonly abiertoInterno: _angular_core.WritableSignal<boolean>;
|
|
1528
1544
|
protected readonly menuNormalizado: _angular_core.WritableSignal<MenuSidebar[]>;
|
|
1529
1545
|
protected readonly expandidos: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
1546
|
+
protected readonly rutaSeleccionada: _angular_core.WritableSignal<string>;
|
|
1530
1547
|
constructor();
|
|
1531
1548
|
protected alternarGrupo(clave: string): void;
|
|
1532
1549
|
protected estaExpandido(clave: string): boolean;
|
|
1533
1550
|
protected seleccionarItem(item: MenuSidebar, nivel: number): void;
|
|
1551
|
+
protected esItemSeleccionado(item: MenuSidebar): boolean;
|
|
1534
1552
|
protected claveItem(item: MenuSidebar, padre: string, indice: number): string;
|
|
1535
1553
|
protected inicialMarca(): string;
|
|
1536
1554
|
private normalizarMenu;
|
|
1537
1555
|
private expandirRutaActual;
|
|
1538
|
-
private
|
|
1556
|
+
private buscarMejorCoincidenciaPorRuta;
|
|
1557
|
+
private mejorCoincidencia;
|
|
1558
|
+
private rutaCoincide;
|
|
1539
1559
|
private normalizarRuta;
|
|
1540
1560
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdSidebar, never>;
|
|
1541
1561
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdSidebar, "td-sidebar", never, { "titulo": { "alias": "titulo"; "required": false; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "etiquetaNavegacion": { "alias": "etiquetaNavegacion"; "required": false; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; "textoCarga": { "alias": "textoCarga"; "required": false; }; "mensajeVacio": { "alias": "mensajeVacio"; "required": false; }; "error": { "alias": "error"; "required": false; }; "cargando": { "alias": "cargando"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "modoCerrado": { "alias": "modoCerrado"; "required": false; }; "abierto": { "alias": "abierto"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; }, { "abiertoChange": "abiertoChange"; "seleccionar": "seleccionar"; }, never, never, true, never>;
|
|
@@ -1665,4 +1685,4 @@ declare class TdTooltip implements OnDestroy {
|
|
|
1665
1685
|
}
|
|
1666
1686
|
|
|
1667
1687
|
export { TD_DIALOG_CONFIG, TD_DIALOG_DATA, TD_ICONOS, TD_ICONOS_NOMBRES, TD_THEME_DARK_COLORS, TD_THEME_LIGHT_COLORS, TdAlerta, TdAutocompleteSelect, TdBadge, TdButton, TdCheckbox, TdDataTable, TdDatePicker, TdDialog, TdDialogActions, TdDialogClose, TdDialogPrimary, TdDialogRef, TdFileUpload, TdFileViewer, TdFileViewerService, TdFooter, TdHeader, TdIcon, TdIconoRegistry, TdInput, TdMenu, TdRadioGroup, TdSelect, TdSidebar, TdTab, TdTabs, TdTextarea, TdThemeService, TdTooltip, TelcomdevUi, createTdFormControlBridge };
|
|
1668
|
-
export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, TdBadgePosition, TdBadgeSize, TdBadgeTone, TdBadgeVariant, TdButtonSize, TdButtonTone, TdButtonType, TdButtonVariant, TdDataTableAccion, TdDataTableAccionEvento, TdDataTableAccionesPresentacion, TdDataTableAlineacion, TdDataTableBoton, TdDataTableColumna, TdDataTableImagenConfig, TdDataTableImagenEvento, TdDataTableImagenForma, TdDataTableTipoColumna, TdDataTableTono, TdDatePickerMode, TdDatePickerValue, TdDateRange, TdDialogConfig, TdDialogPanelData, TdDialogRefLike, TdDialogTamano, TdErrorDisplay, TdFileAttachment, TdFileSource, TdFileUploadItem, TdFileUploadPreviewKind, TdFileUploadRejectReason, TdFileUploadRejected, TdFileUploadValue, TdFileUploadVariant, TdFileViewerArchivo, TdFileViewerKind, TdFileViewerOpenOptions, TdFormControlBridge, TdHeaderAccionPerfil, TdHeaderNotificacion, TdIconoDefinicion, TdIconoNombre, TdIconoPersonalizado, TdInputEmptyValue, TdInputMask, TdInputSanitize, TdInputSanitizeFn, TdInputSanitizePreset, TdInputValue, TdMenuBadge, TdMenuItem, TdMenuPosicion, TdMenuSeleccion, TdMenuTono, TdRadioDirection, TdRadioOption, TdRadioVariant, TdSelectAppearance, TdSelectOption, TdSelectOverflowText, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant, TdTextareaEmptyValue, TdTextareaValue, TdThemeMode, TdThemePaletteColor, TdTooltipPosition, TdTooltipTone };
|
|
1688
|
+
export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, TdBadgePosition, TdBadgeSize, TdBadgeTone, TdBadgeVariant, TdButtonSize, TdButtonTone, TdButtonType, TdButtonVariant, TdDataTableAccion, TdDataTableAccionEvento, TdDataTableAccionesPresentacion, TdDataTableAlineacion, TdDataTableBoton, TdDataTableColumna, TdDataTableImagenConfig, TdDataTableImagenEvento, TdDataTableImagenForma, TdDataTableTipoColumna, TdDataTableTono, TdDatePickerMode, TdDatePickerValue, TdDateRange, TdDialogConfig, TdDialogPanelData, TdDialogRefLike, TdDialogTamano, TdErrorDisplay, TdFileAttachment, TdFileSource, TdFileUploadItem, TdFileUploadPreviewKind, TdFileUploadRejectReason, TdFileUploadRejected, TdFileUploadValue, TdFileUploadVariant, TdFileViewerArchivo, TdFileViewerKind, TdFileViewerOpenOptions, TdFormControlBridge, TdHeaderAccionPerfil, TdHeaderNotificacion, TdHeaderPerfilAccion, TdHeaderPerfilAccionTono, TdIconoDefinicion, TdIconoNombre, TdIconoPersonalizado, TdInputEmptyValue, TdInputMask, TdInputSanitize, TdInputSanitizeFn, TdInputSanitizePreset, TdInputValue, TdMenuBadge, TdMenuItem, TdMenuPosicion, TdMenuSeleccion, TdMenuTono, TdRadioDirection, TdRadioOption, TdRadioVariant, TdSelectAppearance, TdSelectOption, TdSelectOverflowText, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant, TdTextareaEmptyValue, TdTextareaValue, TdThemeMode, TdThemePaletteColor, TdTooltipPosition, TdTooltipTone };
|