@ibragim-dev-org/ui-forge-library 1.4.4 → 1.4.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
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "version": "1.4.4",
7
+ "version": "1.4.5",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^21.1.0",
10
10
  "@angular/core": "^21.1.0"
@@ -620,30 +620,6 @@ declare abstract class UiCodeDirective {
620
620
  static ɵdir: i0.ɵɵDirectiveDeclaration<UiCodeDirective, "app-ui-code", never, { "$code": { "alias": "$code"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
621
621
  }
622
622
 
623
- interface PopupAnimationOptions {
624
- positionX: number;
625
- positionY: number;
626
- startTransition: string;
627
- endTransition: string;
628
- }
629
- declare class UiPopupInstance {
630
- private readonly overlayRef;
631
- private readonly destroyRef;
632
- private readonly onClose;
633
- id: string;
634
- width: number;
635
- readonly animationOrigin$: BehaviorSubject<string>;
636
- readonly options: PopupAnimationOptions;
637
- readonly triggerPulse$: Subject<void>;
638
- private readonly closed;
639
- private readonly shouldClose;
640
- private isClosing;
641
- constructor(overlayRef: OverlayRef, destroyRef: DestroyRef, onClose?: () => void, options?: PopupAnimationOptions);
642
- close(): void;
643
- detach(): void;
644
- onShouldClose(): Observable<void>;
645
- }
646
-
647
623
  interface UiPopupAnimation {
648
624
  startOrigin: string;
649
625
  endOrigin: string;
@@ -664,6 +640,25 @@ interface UiPopupOptions<TComponent> {
664
640
  };
665
641
  }
666
642
 
643
+ declare class UiPopupInstance {
644
+ private readonly overlayRef;
645
+ private readonly destroyRef;
646
+ private readonly onClose;
647
+ id: string;
648
+ width: number;
649
+ readonly animationOrigin$: BehaviorSubject<string>;
650
+ options: UiPopupAnimation;
651
+ readonly triggerPulse$: Subject<void>;
652
+ readonly isHide$: Subject<boolean>;
653
+ private readonly closed;
654
+ private readonly shouldClose;
655
+ private isClosing;
656
+ constructor(overlayRef: OverlayRef, destroyRef: DestroyRef, onClose?: () => void, options?: UiPopupAnimation);
657
+ close(): void;
658
+ detach(): void;
659
+ onShouldClose(): Observable<void>;
660
+ }
661
+
667
662
  declare class UiPopupBackdropService {
668
663
  readonly tipContainerPortal?: ComponentPortal<unknown>;
669
664
  readonly backdropPortal: ComponentPortal<any>;
@@ -673,7 +668,7 @@ declare class UiPopupBackdropService {
673
668
  }
674
669
 
675
670
  interface PopupParameters {
676
- animationOptions: PopupAnimationOptions;
671
+ animationOptions: UiPopupAnimation;
677
672
  isStaticBackdrop: boolean;
678
673
  isClosePrevious: boolean;
679
674
  width: number;
@@ -684,7 +679,7 @@ declare abstract class UiModal {
684
679
  protected readonly destroyRef: DestroyRef;
685
680
  protected readonly router: Router;
686
681
  protected readonly backdropService: UiPopupBackdropService;
687
- popupInstances: UiPopupInstance[];
682
+ instances: UiPopupInstance[];
688
683
  protected backdropRef?: OverlayRef;
689
684
  protected backdropPortalRef?: ComponentRef<ComponentType<unknown>>;
690
685
  protected readonly destroyDownloading$: Subject<void>;
@@ -694,9 +689,8 @@ declare abstract class UiModal {
694
689
  * Closes the last opened popup.
695
690
  */
696
691
  close(): void;
697
- closePrevious(): void;
698
692
  /**
699
- * Closes a popup by its index in the popupInstances array.
693
+ * Closes a popup by its index in the instances array.
700
694
  *
701
695
  * @param index - The index of the popup to close.
702
696
  */
@@ -744,6 +738,7 @@ declare abstract class UiPopupContainerDirective implements OnInit {
744
738
  protected elementRef: ElementRef<HTMLElement>;
745
739
  protected readonly $isShow: WritableSignal<boolean>;
746
740
  protected readonly $pulseTrigger: WritableSignal<boolean>;
741
+ protected readonly $isHide: WritableSignal<boolean>;
747
742
  readonly $overflowHidden: InputSignal<boolean>;
748
743
  readonly $shouldClose: ModelSignal<boolean>;
749
744
  readonly $hasCloseButton: InputSignal<boolean>;
@@ -808,6 +803,7 @@ declare abstract class UiPopupImageDirective implements OnInit, AfterViewInit {
808
803
  }
809
804
 
810
805
  declare class UiPopupService extends UiModal {
806
+ private defaultAnimationOptions;
811
807
  constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router, backdropService: UiPopupBackdropService);
812
808
  /**
813
809
  * Opens a popup with the specified component and options.
@@ -818,7 +814,12 @@ declare class UiPopupService extends UiModal {
818
814
  * @param parameters - (Optional) Configuration options for the popup.
819
815
  */
820
816
  open<TComponent>(component: Type<TComponent>, options: UiPopupOptions<TComponent>, id: string, parameters: Partial<PopupParameters>): void;
821
- closePrevious(isClosePrevious?: boolean): void;
817
+ close(): void;
818
+ closeAll(): void;
819
+ closeById(id: string): void;
820
+ private resetAnimationForSingleInstance;
821
+ private applyHideToLastInstance;
822
+ private closePrevious;
822
823
  /**
823
824
  * Opens a popup that scales from the provided origin element to the centered popup size.
824
825
  * Useful for image-preview transitions where the source element animates into the popup.
@@ -1258,4 +1259,4 @@ declare class UiTimeDropdownDirective {
1258
1259
  }
1259
1260
 
1260
1261
  export { Alert, AlertType, AppIconsLibrary, CalendarUtils, CenterEllipsisPipe, ContainerSizeDirective, CountryService, DateUtils, EMAIL, FocusDirective, HAS_CAPITAL_CASE, HAS_NUMBER, HAS_SMALL_CASE, HAS_SPECIAL_CHARTERS, HoverTipDirective, IconComponent, LazyImgDirective, MIN_LENGTH, MaskGradientDirective, RouterBehavior, SkeletonDirective, StableScrollDirective, StickyObserverDirective, ThemeService, TrackLifecycleDirective, UIInputDateDirective, UIPhoneNumberDirective, UiAccordionComponent, UiAlertMessagesOverlayService, UiAlertMessagesService, UiAvatarDirective, UiButtonDirective, UiCalendarDropdownDirective, UiCodeDirective, UiCopyButtonDirective, UiDailyCalendarDirective, UiDropdownContainerDirective, UiDropdownService, UiFieldBaseDirective, UiImageDirective, UiInputCheckboxDirective, UiInputCountryDirective, UiInputDirective, UiInputSelectDirective, UiInputSequenceDirective, UiInputTimeDirective, UiMonthlyCalendarDirective, UiPaginationDirective, UiPopupBackdropDirective, UiPopupBackdropService, UiPopupContainerDirective, UiPopupImageDirective, UiPopupInstance, UiPopupService, UiSelectButtonsDirective, UiTabsDirective, UiTimeDropdownDirective, UiValidationErrorsDirective, UiYearlyCalendarDirective, createNavigation, createUrl, createUrlTree, emptyCountry, extractParam, getAspectRatioFit, isBrowser, navigateByUrl, stringToColorGradient, stringToHslColor };
1261
- export type { AlertParams, AppIcon, AppIconName, ButtonColor, CalendarDay, CalendarMonthItem, CalendarYearItem, CheckboxStyles, CountryData, DropdownItem, DropdownParameters, DropdownPosition, GenerateDaysOptions, GeneratePeriodOptions, InputSelectData, NavigationEvent, OverflowMode, ParsedRoutes, PopupAnimationOptions, RawSVG, RouteDefinition, TabsAlignment, UiPopupAnimation, UiPopupOptions, UiPopupParameters, UiSelectButton, UiSelectButtonAlignment, UiTab, ValidationErrorsType, paramExtractor };
1262
+ export type { AlertParams, AppIcon, AppIconName, ButtonColor, CalendarDay, CalendarMonthItem, CalendarYearItem, CheckboxStyles, CountryData, DropdownItem, DropdownParameters, DropdownPosition, GenerateDaysOptions, GeneratePeriodOptions, InputSelectData, NavigationEvent, OverflowMode, ParsedRoutes, RawSVG, RouteDefinition, TabsAlignment, UiPopupAnimation, UiPopupOptions, UiPopupParameters, UiSelectButton, UiSelectButtonAlignment, UiTab, ValidationErrorsType, paramExtractor };