@ibragim-dev-org/ui-forge-library 1.4.0 → 1.4.1

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.0",
7
+ "version": "1.4.1",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^21.1.0",
10
10
  "@angular/core": "^21.1.0"
@@ -2,10 +2,10 @@ import { Location } from '@angular/common';
2
2
  import { Router, Params, UrlCreationOptions, UrlTree, NavigationExtras, NavigationStart, NavigationEnd, NavigationCancel, NavigationError, RoutesRecognized, GuardsCheckStart, GuardsCheckEnd, RouteConfigLoadStart, RouteConfigLoadEnd, ChildActivationStart, ChildActivationEnd, ActivationStart, ActivationEnd, Scroll, ResolveStart, ResolveEnd, NavigationSkipped } from '@angular/router';
3
3
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
4
4
  import * as i0 from '@angular/core';
5
- import { ModelSignal, ElementRef, DestroyRef, OnInit, OnDestroy, EventEmitter, AfterViewInit, InputSignal, Renderer2, OnChanges, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, SimpleChanges, PipeTransform, WritableSignal, Signal, OutputEmitterRef, Injector, Type, TemplateRef } from '@angular/core';
5
+ import { ModelSignal, ElementRef, DestroyRef, OnInit, OnDestroy, EventEmitter, AfterViewInit, InputSignal, Renderer2, OnChanges, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, SimpleChanges, PipeTransform, WritableSignal, Signal, Type, OutputEmitterRef, Injector, TemplateRef } from '@angular/core';
6
6
  import { DomSanitizer } from '@angular/platform-browser';
7
7
  import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
8
- import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
8
+ import { ComponentPortal } from '@angular/cdk/portal';
9
9
  import { WithOptionalField, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
10
10
 
11
11
  declare class DateUtils {
@@ -405,15 +405,26 @@ interface AlertParams {
405
405
  message: string;
406
406
  }
407
407
 
408
+ declare class UiAlertMessagesOverlayService {
409
+ readonly overlay: Overlay;
410
+ component: ComponentType<unknown> | null;
411
+ private overlayRef?;
412
+ constructor(component: Type<any>, overlay: Overlay);
413
+ attachComponent(): void;
414
+ init(component: ComponentType<unknown>): void;
415
+ throwIfNotInitialized(): void;
416
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesOverlayService, never>;
417
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesOverlayService>;
418
+ }
419
+
408
420
  declare class UiAlertMessagesService {
409
- private readonly overlay;
410
- private router;
421
+ private readonly uiAlertMessagesOverlayService;
422
+ private readonly router;
411
423
  readonly $alerts: WritableSignal<Alert[]>;
412
424
  private overlayRef?;
413
- private component;
414
425
  private timerSubscriptions;
415
426
  private timerState;
416
- constructor(overlay: Overlay, router: Router);
427
+ constructor(uiAlertMessagesOverlayService: UiAlertMessagesOverlayService, router: Router);
417
428
  success(params: AlertParams): void;
418
429
  error(params: AlertParams): void;
419
430
  information(params: AlertParams): void;
@@ -423,7 +434,6 @@ declare class UiAlertMessagesService {
423
434
  remove(alert: Alert): void;
424
435
  removeById(id: string): void;
425
436
  removeAll(): void;
426
- init(component: ComponentType$1<unknown>): void;
427
437
  protected open(alert: Alert): void;
428
438
  static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesService, never>;
429
439
  static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
@@ -611,6 +621,14 @@ interface UiPopupOptions<TComponent> {
611
621
  };
612
622
  }
613
623
 
624
+ declare class UiPopupBackdropService {
625
+ readonly tipContainerPortal?: ComponentPortal<unknown>;
626
+ readonly backdropPortal: ComponentPortal<any>;
627
+ constructor(component: Type<any>, tipComponent?: Type<any>);
628
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiPopupBackdropService, never>;
629
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiPopupBackdropService>;
630
+ }
631
+
614
632
  interface PopupParameters {
615
633
  animationOptions: PopupAnimationOptions;
616
634
  isStaticBackdrop: boolean;
@@ -622,14 +640,13 @@ declare class UiPopupService {
622
640
  protected injector: Injector;
623
641
  protected destroyRef: DestroyRef;
624
642
  protected router: Router;
643
+ protected backdropService: UiPopupBackdropService;
625
644
  popupInstances: UiPopupInstance[];
626
645
  private backdropRef?;
627
- private backdropPortal?;
628
646
  private backdropPortalRef?;
629
647
  protected readonly destroyDownloading$: Subject<void>;
630
648
  protected readonly destroyOutsideClickSubscription$: Subject<void>;
631
- constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router);
632
- init<TComponent>(component: Type<TComponent>): void;
649
+ constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router, backdropService: UiPopupBackdropService);
633
650
  /**
634
651
  * Opens a popup with the specified component and options.
635
652
  *
@@ -734,13 +751,11 @@ interface DropdownItem {
734
751
  }
735
752
 
736
753
  declare class UiDropdownService extends UiPopupService {
737
- private tipContainerPortal?;
738
754
  containerSize$: BehaviorSubject<{
739
755
  width: number;
740
756
  height: number;
741
757
  }>;
742
758
  private connectedPositions;
743
- init(component: Type<unknown>, tipComponent?: Type<unknown>): void;
744
759
  /**
745
760
  * Opens a tooltip (tip) component attached to a specific HTML element.
746
761
  * The tooltip displays text content with customizable position and offset.
@@ -1192,5 +1207,5 @@ declare class UiTimeDropdownDirective {
1192
1207
  static ɵdir: i0.ɵɵDirectiveDeclaration<UiTimeDropdownDirective, "app-ui-time-dropdown", never, { "action": { "alias": "action"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; }, {}, never, never, true, never>;
1193
1208
  }
1194
1209
 
1195
- 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, StickyObserverDirective, ThemeService, TrackLifecycleDirective, UIInputDateDirective, UIPhoneNumberDirective, UiAccordionComponent, UiAlertMessagesService, UiAvatarDirective, UiButtonDirective, UiCalendarDropdownDirective, UiCodeDirective, UiCopyButtonDirective, UiDailyCalendarDirective, UiDropdownContainerDirective, UiDropdownService, UiFieldBaseDirective, UiImageDirective, UiInputCheckboxDirective, UiInputCountryDirective, UiInputDirective, UiInputSelectDirective, UiInputSequenceDirective, UiInputTimeDirective, UiMonthlyCalendarDirective, UiPaginationDirective, UiPopupBackdropDirective, UiPopupContainerDirective, UiPopupImageDirective, UiPopupInstance, UiPopupService, UiSelectButtonsDirective, UiTabsDirective, UiTimeDropdownDirective, UiValidationErrorsDirective, UiYearlyCalendarDirective, createNavigation, createUrl, createUrlTree, emptyCountry, extractParam, getAspectRatioFit, navigateByUrl, stringToColorGradient, stringToHslColor };
1210
+ 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, 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, navigateByUrl, stringToColorGradient, stringToHslColor };
1196
1211
  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 };