@ibragim-dev-org/ui-forge-library 1.4.71 → 1.4.73

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.71",
7
+ "version": "1.4.73",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^21.1.0",
10
10
  "@angular/core": "^21.1.0"
@@ -3,7 +3,7 @@ import { Router, Params, UrlCreationOptions, UrlTree, NavigationExtras, Navigati
3
3
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
4
4
  import * as i0 from '@angular/core';
5
5
  import { ModelSignal, ElementRef, DestroyRef, OnInit, OnDestroy, AfterViewInit, InputSignal, Renderer2, OnChanges, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, EventEmitter, SimpleChanges, WritableSignal, PipeTransform, Signal, Type, OutputEmitterRef, Injector, ComponentRef, TemplateRef } from '@angular/core';
6
- import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
6
+ import { Overlay, ComponentType, OverlayRef } from '@angular/cdk/overlay';
7
7
  import { ComponentPortal } from '@angular/cdk/portal';
8
8
  import { WithOptionalField, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
9
9
 
@@ -441,6 +441,19 @@ declare class UiAccordionComponent implements AfterViewInit {
441
441
  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>;
442
442
  }
443
443
 
444
+ declare class UiAlertMessagesOverlayService {
445
+ readonly overlay: Overlay;
446
+ private isAttached;
447
+ private overlayRef?;
448
+ component: ComponentType<unknown> | null;
449
+ constructor(component: Type<any>, overlay: Overlay);
450
+ attachComponent(): void;
451
+ init(component: ComponentType<unknown>): void;
452
+ throwIfNotInitialized(): void;
453
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesOverlayService, never>;
454
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesOverlayService>;
455
+ }
456
+
444
457
  declare enum AlertType {
445
458
  SUCCESS = "success",
446
459
  ERROR = "error",
@@ -448,12 +461,14 @@ declare enum AlertType {
448
461
  WARNING = "warning",
449
462
  CUSTOM = "custom"
450
463
  }
464
+ type AlertPosition = 'top' | 'bottom';
451
465
  declare class Alert {
452
466
  id: string;
453
467
  type: string;
454
468
  title: string;
455
469
  message: string;
456
470
  icon: string;
471
+ position: AlertPosition;
457
472
  component?: ComponentType<unknown>;
458
473
  componentInputs?: {
459
474
  [P in keyof ComponentType<unknown>]?: ComponentType<unknown>[P];
@@ -463,24 +478,15 @@ declare class Alert {
463
478
  interface AlertParams {
464
479
  title?: string;
465
480
  message: string;
466
- }
467
-
468
- declare class UiAlertMessagesOverlayService {
469
- readonly overlay: Overlay;
470
- component: ComponentType<unknown> | null;
471
- private overlayRef?;
472
- constructor(component: Type<any>, overlay: Overlay);
473
- attachComponent(): void;
474
- init(component: ComponentType<unknown>): void;
475
- throwIfNotInitialized(): void;
476
- static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesOverlayService, never>;
477
- static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesOverlayService>;
481
+ position?: AlertPosition;
478
482
  }
479
483
 
480
484
  declare class UiAlertMessagesService {
481
485
  private readonly uiAlertMessagesOverlayService;
482
486
  private readonly router;
483
- readonly $alerts: WritableSignal<Alert[]>;
487
+ readonly $topAlerts: WritableSignal<Alert[]>;
488
+ readonly $bottomAlerts: WritableSignal<Alert[]>;
489
+ readonly $alerts: Signal<Alert[]>;
484
490
  private overlayRef?;
485
491
  private timerSubscriptions;
486
492
  private timerState;
@@ -494,7 +500,11 @@ declare class UiAlertMessagesService {
494
500
  remove(alert: Alert): void;
495
501
  removeById(id: string): void;
496
502
  removeAll(): void;
497
- protected open(alert: Alert): void;
503
+ protected open(alert: Alert, closeIntervalParams?: {
504
+ useTimer: boolean;
505
+ duration: number;
506
+ }): void;
507
+ private getAlertsList;
498
508
  static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesService, never>;
499
509
  static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
500
510
  }
@@ -1250,4 +1260,4 @@ declare class UiTimeDropdownDirective {
1250
1260
  }
1251
1261
 
1252
1262
  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 };
1253
- 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 };
1263
+ export type { AlertParams, AlertPosition, 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 };