@telcomdev/ui 0.1.20 → 0.1.22

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telcomdev/ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Librería UI reutilizable para los sistemas TelcomDev.",
5
5
  "keywords": [
6
6
  "angular",
@@ -37,6 +37,31 @@ declare class TdAlerta {
37
37
  private static inyectarEstilos;
38
38
  }
39
39
 
40
+ type TdBadgeTone = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
41
+ type TdBadgeVariant = 'soft' | 'solid' | 'outline';
42
+ type TdBadgeSize = 'sm' | 'md' | 'lg';
43
+ type TdBadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
44
+ declare class TdBadge {
45
+ tone: TdBadgeTone;
46
+ variant: TdBadgeVariant;
47
+ size: TdBadgeSize;
48
+ value: string | number | null | undefined;
49
+ position: TdBadgePosition;
50
+ icon: string;
51
+ floating: boolean;
52
+ hidden: boolean;
53
+ dot: boolean;
54
+ pill: boolean;
55
+ ariaLabel: string;
56
+ protected get isFloating(): boolean;
57
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdBadge, never>;
58
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdBadge, "td-badge", never, { "tone": { "alias": "tone"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; "position": { "alias": "position"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "floating": { "alias": "floating"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; "pill": { "alias": "pill"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, never, ["*"], true, never>;
59
+ static ngAcceptInputType_floating: unknown;
60
+ static ngAcceptInputType_hidden: unknown;
61
+ static ngAcceptInputType_dot: unknown;
62
+ static ngAcceptInputType_pill: unknown;
63
+ }
64
+
40
65
  type TdButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
41
66
  type TdButtonTone = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
42
67
  type TdButtonSize = 'sm' | 'md' | 'lg';
@@ -128,12 +153,23 @@ declare class TdCheckbox implements ControlValueAccessor, FormCheckboxControl {
128
153
 
129
154
  type TdMenuTono = 'neutro' | 'primario' | 'exito' | 'advertencia' | 'peligro';
130
155
  type TdMenuPosicion = 'abajo-inicio' | 'abajo-fin' | 'arriba-inicio' | 'arriba-fin';
156
+ interface TdMenuBadge {
157
+ etiqueta?: string | number;
158
+ tone?: TdBadgeTone;
159
+ variant?: TdBadgeVariant;
160
+ size?: TdBadgeSize;
161
+ icono?: string;
162
+ dot?: boolean;
163
+ pill?: boolean;
164
+ ariaLabel?: string;
165
+ }
131
166
  interface TdMenuItem<T = unknown> {
132
167
  id: string;
133
168
  etiqueta: string;
134
169
  icono?: string;
135
170
  descripcion?: string;
136
171
  tono?: TdMenuTono;
172
+ badge?: string | number | TdMenuBadge;
137
173
  data?: T;
138
174
  separadorAntes?: boolean;
139
175
  visible?: boolean;
@@ -158,11 +194,13 @@ declare class TdMenu<T = unknown> {
158
194
  readonly abiertoChange: EventEmitter<boolean>;
159
195
  protected abierto: boolean;
160
196
  protected get itemsVisibles(): TdMenuItem<T>[];
197
+ protected badgeConfig(item: TdMenuItem<T>): TdMenuBadge | null;
161
198
  protected alternar(): void;
162
199
  protected cerrar(): void;
163
200
  protected seleccionar(item: TdMenuItem<T>): void;
164
201
  protected posiciones(): CdkConnectedOverlay['positions'];
165
202
  private establecerAbierto;
203
+ private badgeTonePorTono;
166
204
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdMenu<any>, never>;
167
205
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdMenu<any>, "td-menu", never, { "items": { "alias": "items"; "required": false; }; "etiqueta": { "alias": "etiqueta"; "required": false; }; "icono": { "alias": "icono"; "required": false; }; "posicion": { "alias": "posicion"; "required": false; }; "ancho": { "alias": "ancho"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "seleccion": "seleccion"; "abiertoChange": "abiertoChange"; }, never, never, true, never>;
168
206
  }
@@ -1467,6 +1505,8 @@ interface TdSidebarSeleccion {
1467
1505
 
1468
1506
  type TdSidebarModoCerrado = 'compacto' | 'oculto';
1469
1507
  declare class TdSidebar {
1508
+ private readonly router;
1509
+ private readonly destroyRef;
1470
1510
  titulo: string;
1471
1511
  subtitulo: string;
1472
1512
  etiquetaNavegacion: string;
@@ -1487,12 +1527,16 @@ declare class TdSidebar {
1487
1527
  protected readonly abiertoInterno: _angular_core.WritableSignal<boolean>;
1488
1528
  protected readonly menuNormalizado: _angular_core.WritableSignal<MenuSidebar[]>;
1489
1529
  protected readonly expandidos: _angular_core.WritableSignal<ReadonlySet<string>>;
1530
+ constructor();
1490
1531
  protected alternarGrupo(clave: string): void;
1491
1532
  protected estaExpandido(clave: string): boolean;
1492
1533
  protected seleccionarItem(item: MenuSidebar, nivel: number): void;
1493
1534
  protected claveItem(item: MenuSidebar, padre: string, indice: number): string;
1494
1535
  protected inicialMarca(): string;
1495
1536
  private normalizarMenu;
1537
+ private expandirRutaActual;
1538
+ private buscarClavesPadrePorRuta;
1539
+ private normalizarRuta;
1496
1540
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdSidebar, never>;
1497
1541
  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>;
1498
1542
  }
@@ -1574,5 +1618,51 @@ declare class TdThemeService {
1574
1618
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<TdThemeService>;
1575
1619
  }
1576
1620
 
1577
- export { TD_DIALOG_CONFIG, TD_DIALOG_DATA, TD_ICONOS, TD_ICONOS_NOMBRES, TD_THEME_DARK_COLORS, TD_THEME_LIGHT_COLORS, TdAlerta, TdAutocompleteSelect, 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, TelcomdevUi, createTdFormControlBridge };
1578
- export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, 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, TdMenuItem, TdMenuPosicion, TdMenuSeleccion, TdMenuTono, TdRadioDirection, TdRadioOption, TdRadioVariant, TdSelectAppearance, TdSelectOption, TdSelectOverflowText, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant, TdTextareaEmptyValue, TdTextareaValue, TdThemeMode, TdThemePaletteColor };
1621
+ type TdTooltipPosition = 'top' | 'bottom' | 'left' | 'right';
1622
+ type TdTooltipTone = 'dark' | 'light' | 'primary';
1623
+
1624
+ declare class TdTooltip implements OnDestroy {
1625
+ private readonly overlay;
1626
+ private readonly elementRef;
1627
+ private readonly viewContainerRef;
1628
+ private readonly renderer;
1629
+ private readonly tooltipId;
1630
+ private overlayRef?;
1631
+ private panelRef?;
1632
+ private showTimer?;
1633
+ private hideTimer?;
1634
+ content: string | null | undefined;
1635
+ tdTooltipPosition: TdTooltipPosition;
1636
+ tdTooltipTone: TdTooltipTone;
1637
+ tdTooltipMaxWidth: string;
1638
+ tdTooltipShowDelay: number;
1639
+ tdTooltipHideDelay: number;
1640
+ tdTooltipMultiline: boolean;
1641
+ tdTooltipDisabled: boolean;
1642
+ protected handleMouseEnter(): void;
1643
+ protected handleMouseLeave(): void;
1644
+ protected handleFocusIn(): void;
1645
+ protected handleFocusOut(): void;
1646
+ protected handleTouchStart(): void;
1647
+ protected handleKeydown(event: KeyboardEvent): void;
1648
+ ngOnDestroy(): void;
1649
+ private scheduleShow;
1650
+ private scheduleHide;
1651
+ private showNow;
1652
+ private hideNow;
1653
+ private ensureOverlay;
1654
+ private positions;
1655
+ private get normalizedContent();
1656
+ private clearTimers;
1657
+ private destroyOverlay;
1658
+ private isFlexiblePositionStrategy;
1659
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdTooltip, never>;
1660
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TdTooltip, "[tdTooltip]", never, { "content": { "alias": "tdTooltip"; "required": false; }; "tdTooltipPosition": { "alias": "tdTooltipPosition"; "required": false; }; "tdTooltipTone": { "alias": "tdTooltipTone"; "required": false; }; "tdTooltipMaxWidth": { "alias": "tdTooltipMaxWidth"; "required": false; }; "tdTooltipShowDelay": { "alias": "tdTooltipShowDelay"; "required": false; }; "tdTooltipHideDelay": { "alias": "tdTooltipHideDelay"; "required": false; }; "tdTooltipMultiline": { "alias": "tdTooltipMultiline"; "required": false; }; "tdTooltipDisabled": { "alias": "tdTooltipDisabled"; "required": false; }; }, {}, never, never, true, never>;
1661
+ static ngAcceptInputType_tdTooltipShowDelay: unknown;
1662
+ static ngAcceptInputType_tdTooltipHideDelay: unknown;
1663
+ static ngAcceptInputType_tdTooltipMultiline: unknown;
1664
+ static ngAcceptInputType_tdTooltipDisabled: unknown;
1665
+ }
1666
+
1667
+ 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 };