@telcomdev/ui 0.1.2 → 0.1.4

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.2",
3
+ "version": "0.1.4",
4
4
  "description": "Librería UI reutilizable para los sistemas TelcomDev.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges, InjectionToken, Type, ModelSignal, OutputEmitterRef, TemplateRef, AfterContentInit } from '@angular/core';
2
+ import { AfterContentChecked, EventEmitter, OnChanges, OnDestroy, SimpleChanges, InjectionToken, Type, ModelSignal, OutputEmitterRef, TemplateRef, AfterContentInit } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
4
  import { FormCheckboxControl, WithOptionalFieldTree, DisabledReason, ValidationError, FormValueControl } from '@angular/forms/signals';
5
5
  import { ScrollStrategy } from '@angular/cdk/overlay';
@@ -41,7 +41,8 @@ type TdButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
41
41
  type TdButtonTone = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
42
42
  type TdButtonSize = 'sm' | 'md' | 'lg';
43
43
  type TdButtonType = 'button' | 'submit' | 'reset';
44
- declare class TdButton {
44
+ declare class TdButton implements AfterContentChecked {
45
+ private readonly contentRef?;
45
46
  variant: TdButtonVariant;
46
47
  tone: TdButtonTone;
47
48
  size: TdButtonSize;
@@ -51,11 +52,16 @@ declare class TdButton {
51
52
  disabled: boolean;
52
53
  loading: boolean;
53
54
  block: boolean;
55
+ iconOnly: boolean;
54
56
  ariaLabel: string;
55
57
  readonly pressed: EventEmitter<MouseEvent>;
58
+ protected hasProjectedContent: boolean;
59
+ protected get isIconOnly(): boolean;
60
+ ngAfterContentChecked(): void;
56
61
  protected handleClick(event: MouseEvent): void;
57
62
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdButton, never>;
58
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdButton, "td-button", never, { "variant": { "alias": "variant"; "required": false; }; "tone": { "alias": "tone"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "block": { "alias": "block"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "pressed": "pressed"; }, never, ["*"], true, never>;
63
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdButton, "td-button", never, { "variant": { "alias": "variant"; "required": false; }; "tone": { "alias": "tone"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "block": { "alias": "block"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "pressed": "pressed"; }, never, ["*"], true, never>;
64
+ static ngAcceptInputType_iconOnly: unknown;
59
65
  }
60
66
 
61
67
  declare class TdCheckbox implements ControlValueAccessor, FormCheckboxControl {