@telcomdev/ui 0.1.3 → 0.1.5

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.3",
3
+ "version": "0.1.5",
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 {
@@ -760,9 +766,11 @@ declare class TdInput implements ControlValueAccessor, FormValueControl<TdInputV
760
766
  protected readonly counterVisible: _angular_core.Signal<boolean>;
761
767
  protected readonly counterAtLimit: _angular_core.Signal<boolean>;
762
768
  protected readonly hasSupportingContent: _angular_core.Signal<boolean>;
769
+ protected readonly hasValue: _angular_core.Signal<boolean>;
770
+ protected readonly labelFloating: _angular_core.Signal<boolean>;
763
771
  protected readonly resolvedPattern: _angular_core.Signal<string | null>;
764
772
  protected readonly resolvedInputMode: _angular_core.Signal<"numeric" | "decimal" | null>;
765
- protected focused: boolean;
773
+ protected readonly focused: _angular_core.WritableSignal<boolean>;
766
774
  protected passwordVisible: boolean;
767
775
  protected get inputId(): string;
768
776
  protected get descriptionId(): string | null;
@@ -774,6 +782,7 @@ declare class TdInput implements ControlValueAccessor, FormValueControl<TdInputV
774
782
  setDisabledState(disabled: boolean): void;
775
783
  focus(options?: FocusOptions): void;
776
784
  protected handleInput(event: Event): void;
785
+ protected handleFocus(): void;
777
786
  protected handleBlur(): void;
778
787
  protected clear(): void;
779
788
  private parseInputValue;
@@ -855,11 +864,12 @@ declare class TdAutocompleteSelect<T = unknown> implements ControlValueAccessor,
855
864
  protected search: string;
856
865
  protected open: boolean;
857
866
  protected activeIndex: number;
867
+ protected readonly focused: _angular_core.WritableSignal<boolean>;
858
868
  protected readonly scrollStrategy: ScrollStrategy;
859
869
  protected get inputId(): string;
860
870
  protected get listId(): string;
861
871
  protected get filteredOptions(): TdSelectOption<T>[];
862
- protected readonly onTouched: () => void;
872
+ protected get labelFloating(): boolean;
863
873
  private changed;
864
874
  constructor();
865
875
  writeValue(value: T | null): void;
@@ -869,6 +879,8 @@ declare class TdAutocompleteSelect<T = unknown> implements ControlValueAccessor,
869
879
  focus(options?: FocusOptions): void;
870
880
  protected compare(first: T | null, second: T | null): boolean;
871
881
  protected openPanel(): void;
882
+ protected handleFocus(): void;
883
+ protected handleBlur(): void;
872
884
  protected close(): void;
873
885
  protected handleInput(event: Event): void;
874
886
  protected select(option: TdSelectOption<T>): void;