@ibragim-dev-org/ui-forge-library 1.1.2 → 1.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,9 +1,10 @@
1
1
  {
2
2
  "name": "@ibragim-dev-org/ui-forge-library",
3
3
  "publishConfig": {
4
+ "access": "public",
4
5
  "registry": "https://registry.npmjs.org/"
5
6
  },
6
- "version": "1.1.2",
7
+ "version": "1.1.4",
7
8
  "peerDependencies": {
8
9
  "@angular/common": "^21.1.0",
9
10
  "@angular/core": "^21.1.0"
@@ -172,7 +172,7 @@ declare class CountryService {
172
172
  declare class ThemeService<T extends object, K extends string> {
173
173
  private document;
174
174
  private themes;
175
- private activeTheme;
175
+ private $activeTheme;
176
176
  constructor(document: Document);
177
177
  /**
178
178
  * Initializes the theme system with a map of named themes and sets the active theme.
@@ -181,12 +181,6 @@ declare class ThemeService<T extends object, K extends string> {
181
181
  * @param activeTheme - The name of the theme to activate initially
182
182
  */
183
183
  init(themes: Record<K, T>, activeTheme: K): void;
184
- /**
185
- * Returns the name of the currently active theme.
186
- *
187
- * @returns The active theme name
188
- */
189
- getActive(): K;
190
184
  /**
191
185
  * Sets a new active theme by name and applies its styles.
192
186
  *
@@ -365,41 +359,6 @@ declare abstract class UiCodeDirective {
365
359
  static ɵdir: i0.ɵɵDirectiveDeclaration<UiCodeDirective, "app-ui-code", never, { "$code": { "alias": "$code"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
366
360
  }
367
361
 
368
- interface UiPopupAnimation {
369
- startOrigin: string;
370
- endOrigin: string;
371
- start: string;
372
- end: string;
373
- leftStart: string;
374
- leftEnd: string;
375
- topStart: string;
376
- topEnd: string;
377
- }
378
- interface UiPopupParameters<TComponent> {
379
- options: UiPopupOptions<TComponent>;
380
- }
381
- interface UiPopupOptions<TComponent> {
382
- inputs?: {
383
- [P in keyof TComponent]?: TComponent[P];
384
- };
385
- }
386
-
387
- type DropdownPosition = 'top' | 'bottom' | 'left' | 'right' | 'center' | 'left-bottom' | 'left-top' | 'right-top' | 'right-bottom';
388
- interface DropdownParameters<TComponent> {
389
- options: UiPopupOptions<TComponent>;
390
- position: DropdownPosition;
391
- hasBackdrop: boolean;
392
- removePrevious: boolean;
393
- hasAttachedWidth: boolean;
394
- }
395
- interface DropdownItem {
396
- content: string;
397
- icon?: AppIcon;
398
- contentColor?: string;
399
- iconColor?: string;
400
- func?: () => void;
401
- }
402
-
403
362
  interface PopupAnimationOptions {
404
363
  positionX: number;
405
364
  positionY: number;
@@ -421,6 +380,25 @@ declare class UiPopupInstance {
421
380
  onShouldClose(): Observable<void>;
422
381
  }
423
382
 
383
+ interface UiPopupAnimation {
384
+ startOrigin: string;
385
+ endOrigin: string;
386
+ start: string;
387
+ end: string;
388
+ leftStart: string;
389
+ leftEnd: string;
390
+ topStart: string;
391
+ topEnd: string;
392
+ }
393
+ interface UiPopupParameters<TComponent> {
394
+ options: UiPopupOptions<TComponent>;
395
+ }
396
+ interface UiPopupOptions<TComponent> {
397
+ inputs?: {
398
+ [P in keyof TComponent]?: TComponent[P];
399
+ };
400
+ }
401
+
424
402
  interface PopupParameters {
425
403
  animationOptions: PopupAnimationOptions;
426
404
  isStaticBackdrop: boolean;
@@ -504,6 +482,45 @@ declare class UiPopupService {
504
482
  static ɵprov: i0.ɵɵInjectableDeclaration<UiPopupService>;
505
483
  }
506
484
 
485
+ declare abstract class UiPopupContainerDirective implements OnInit {
486
+ protected popupInstance: UiPopupInstance;
487
+ protected destroyRef: DestroyRef;
488
+ protected popupService: UiPopupService;
489
+ protected elementRef: ElementRef<HTMLElement>;
490
+ protected readonly $isShow: WritableSignal<boolean>;
491
+ protected readonly $pulseTrigger: WritableSignal<boolean>;
492
+ readonly $overflowHidden: InputSignal<boolean>;
493
+ readonly $shouldClose: ModelSignal<boolean>;
494
+ readonly $hasCloseButton: InputSignal<boolean>;
495
+ readonly $isEnableFadeAnimation: InputSignal<boolean>;
496
+ protected readonly $iconClose: ModelSignal<AppIcon | undefined>;
497
+ protected readonly $animationParams: WritableSignal<UiPopupAnimation>;
498
+ protected readonly destroyAnimationOrigin$: Subject<void>;
499
+ constructor(popupInstance: UiPopupInstance, destroyRef: DestroyRef, popupService: UiPopupService, elementRef: ElementRef<HTMLElement>);
500
+ ngOnInit(): void;
501
+ protected close(): void;
502
+ protected onAnimationDone(): void;
503
+ protected shouldClose(): void;
504
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiPopupContainerDirective, never>;
505
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiPopupContainerDirective, "app-ui-popup-container", never, { "$overflowHidden": { "alias": "$overflowHidden"; "required": false; "isSignal": true; }; "$shouldClose": { "alias": "$shouldClose"; "required": false; "isSignal": true; }; "$hasCloseButton": { "alias": "$hasCloseButton"; "required": false; "isSignal": true; }; "$isEnableFadeAnimation": { "alias": "$isEnableFadeAnimation"; "required": false; "isSignal": true; }; "$iconClose": { "alias": "$iconClose"; "required": false; "isSignal": true; }; }, { "$shouldClose": "$shouldCloseChange"; "$iconClose": "$iconCloseChange"; }, never, never, true, never>;
506
+ }
507
+
508
+ type DropdownPosition = 'top' | 'bottom' | 'left' | 'right' | 'center' | 'left-bottom' | 'left-top' | 'right-top' | 'right-bottom';
509
+ interface DropdownParameters<TComponent> {
510
+ options: UiPopupOptions<TComponent>;
511
+ position: DropdownPosition;
512
+ hasBackdrop: boolean;
513
+ removePrevious: boolean;
514
+ hasAttachedWidth: boolean;
515
+ }
516
+ interface DropdownItem {
517
+ content: string;
518
+ icon?: AppIcon;
519
+ contentColor?: string;
520
+ iconColor?: string;
521
+ func?: () => void;
522
+ }
523
+
507
524
  declare class UiDropdownService extends UiPopupService {
508
525
  private tipContainerPortal?;
509
526
  containerSize$: BehaviorSubject<{
@@ -595,29 +612,6 @@ declare class UiDropdownService extends UiPopupService {
595
612
  static ɵprov: i0.ɵɵInjectableDeclaration<UiDropdownService>;
596
613
  }
597
614
 
598
- declare abstract class UiPopupContainerDirective implements OnInit {
599
- protected popupInstance: UiPopupInstance;
600
- protected destroyRef: DestroyRef;
601
- protected popupService: UiPopupService;
602
- protected elementRef: ElementRef<HTMLElement>;
603
- protected readonly $isShow: WritableSignal<boolean>;
604
- protected readonly $pulseTrigger: WritableSignal<boolean>;
605
- readonly $overflowHidden: InputSignal<boolean>;
606
- readonly $shouldClose: ModelSignal<boolean>;
607
- readonly $hasCloseButton: InputSignal<boolean>;
608
- readonly $isEnableFadeAnimation: InputSignal<boolean>;
609
- protected readonly $iconClose: ModelSignal<AppIcon | undefined>;
610
- protected readonly $animationParams: WritableSignal<UiPopupAnimation>;
611
- protected readonly destroyAnimationOrigin$: Subject<void>;
612
- constructor(popupInstance: UiPopupInstance, destroyRef: DestroyRef, popupService: UiPopupService, elementRef: ElementRef<HTMLElement>);
613
- ngOnInit(): void;
614
- protected close(): void;
615
- protected onAnimationDone(): void;
616
- protected shouldClose(): void;
617
- static ɵfac: i0.ɵɵFactoryDeclaration<UiPopupContainerDirective, never>;
618
- static ɵdir: i0.ɵɵDirectiveDeclaration<UiPopupContainerDirective, "app-ui-popup-container", never, { "$overflowHidden": { "alias": "$overflowHidden"; "required": false; "isSignal": true; }; "$shouldClose": { "alias": "$shouldClose"; "required": false; "isSignal": true; }; "$hasCloseButton": { "alias": "$hasCloseButton"; "required": false; "isSignal": true; }; "$isEnableFadeAnimation": { "alias": "$isEnableFadeAnimation"; "required": false; "isSignal": true; }; "$iconClose": { "alias": "$iconClose"; "required": false; "isSignal": true; }; }, { "$shouldClose": "$shouldCloseChange"; "$iconClose": "$iconCloseChange"; }, never, never, true, never>;
619
- }
620
-
621
615
  declare abstract class UiDropdownContainerDirective extends UiPopupContainerDirective implements AfterViewInit, OnInit {
622
616
  private dropDownService;
623
617
  private readonly renderer;