@ibragim-dev-org/ui-forge-library 1.2.2 → 1.2.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
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "version": "1.2.2",
7
+ "version": "1.2.4",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^21.1.0",
10
10
  "@angular/core": "^21.1.0"
@@ -223,9 +223,12 @@ declare class UiAccordionComponent implements AfterViewInit {
223
223
  protected readonly $transition: Signal<string>;
224
224
  protected readonly $overflow: WritableSignal<'visible' | 'hidden'>;
225
225
  private readonly $content;
226
+ private readonly $button;
227
+ protected readonly $hasButtonContent: WritableSignal<boolean>;
226
228
  private resizeDebounceTimer;
227
229
  constructor(destroyRef: DestroyRef, platformId: object);
228
230
  ngAfterViewInit(): void;
231
+ private setButtonContentState;
229
232
  private setSize;
230
233
  static ɵfac: i0.ɵɵFactoryDeclaration<UiAccordionComponent, never>;
231
234
  static ɵcmp: i0.ɵɵComponentDeclaration<UiAccordionComponent, "app-ui-accordion", never, { "$isOpen": { "alias": "$isOpen"; "required": false; "isSignal": true; }; "$durationMs": { "alias": "$durationMs"; "required": false; "isSignal": true; }; }, { "$isOpen": "$isOpenChange"; }, never, ["[button]", "[content]"], true, never>;
@@ -384,13 +387,15 @@ interface PopupAnimationOptions {
384
387
  declare class UiPopupInstance {
385
388
  private readonly overlayRef;
386
389
  private readonly destroyRef;
390
+ private readonly onClose;
387
391
  id: string;
388
392
  width: number;
389
393
  readonly animationOrigin$: BehaviorSubject<string>;
390
394
  readonly options: PopupAnimationOptions;
391
395
  private readonly closed;
392
396
  private readonly shouldClose;
393
- constructor(overlayRef: OverlayRef, destroyRef: DestroyRef, options?: PopupAnimationOptions);
397
+ private isClosing;
398
+ constructor(overlayRef: OverlayRef, destroyRef: DestroyRef, onClose?: () => void, options?: PopupAnimationOptions);
394
399
  close(): void;
395
400
  detach(): void;
396
401
  onShouldClose(): Observable<void>;
@@ -410,6 +415,7 @@ interface UiPopupParameters<TComponent> {
410
415
  options: UiPopupOptions<TComponent>;
411
416
  }
412
417
  interface UiPopupOptions<TComponent> {
418
+ onClose?: () => void;
413
419
  inputs?: {
414
420
  [P in keyof TComponent]?: TComponent[P];
415
421
  };
@@ -843,30 +849,28 @@ declare abstract class UiInputCheckboxDirective implements FormCheckboxControl {
843
849
  static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputCheckboxDirective, "app-ui-input", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "$style": { "alias": "$style"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "invalid": "invalidChange"; "touched": "touchedChange"; "dirty": "dirtyChange"; }, never, never, true, never>;
844
850
  }
845
851
 
846
- interface LayoutSize {
847
- padding: string;
848
- font: string;
849
- borderRadius: string;
850
- }
851
- type Size = 'small' | 'medium';
852
+ type Size = 'small' | 'medium' | 'large';
852
853
  declare abstract class UiInputDirective extends UiFieldBaseDirective<string> {
854
+ protected readonly elementRef: ElementRef<HTMLButtonElement>;
855
+ protected readonly renderer: Renderer2;
853
856
  readonly $size: InputSignal<Size>;
854
857
  readonly $placeholder: InputSignal<string>;
855
858
  readonly $label: InputSignal<string>;
856
859
  readonly $shouldFocusedAfterViewInit: InputSignal<boolean>;
860
+ readonly $isRounded: InputSignal<boolean>;
857
861
  readonly $hideValidatorErrors: InputSignal<boolean>;
858
862
  readonly $icon: InputSignal<AppIcon | null>;
859
- protected readonly $layoutSize: Signal<LayoutSize>;
860
863
  protected readonly $isError: Signal<boolean>;
864
+ constructor(elementRef: ElementRef<HTMLButtonElement>, renderer: Renderer2);
861
865
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputDirective, never>;
862
- static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$shouldFocusedAfterViewInit": { "alias": "$shouldFocusedAfterViewInit"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "$icon": { "alias": "$icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
866
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$shouldFocusedAfterViewInit": { "alias": "$shouldFocusedAfterViewInit"; "required": false; "isSignal": true; }; "$isRounded": { "alias": "$isRounded"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "$icon": { "alias": "$icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
863
867
  }
864
868
 
865
869
  declare abstract class UiInputCountryDirective extends UiInputDirective implements AfterViewInit {
866
870
  protected $selectedCountry: WritableSignal<CountryData>;
867
871
  protected $isOpen: WritableSignal<boolean>;
868
872
  private $inputElement;
869
- constructor();
873
+ constructor(elementRef: ElementRef<HTMLButtonElement>, renderer: Renderer2);
870
874
  ngAfterViewInit(): void;
871
875
  protected onPaste(event: ClipboardEvent): void;
872
876
  private searchCountry;
@@ -899,7 +903,7 @@ declare abstract class UIPhoneNumberDirective extends UiInputDirective implement
899
903
  protected $isOpen: WritableSignal<boolean>;
900
904
  protected $countryCode: WritableSignal<string>;
901
905
  private $inputElement;
902
- constructor();
906
+ constructor(elementRef: ElementRef<HTMLButtonElement>, renderer: Renderer2);
903
907
  ngAfterViewInit(): void;
904
908
  protected onInput(value: string): void;
905
909
  protected onPaste(event: ClipboardEvent): void;