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

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.72",
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,18 @@ 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
+ component: ComponentType<unknown> | null;
447
+ private overlayRef?;
448
+ constructor(component: Type<any>, overlay: Overlay);
449
+ attachComponent(): void;
450
+ init(component: ComponentType<unknown>): void;
451
+ throwIfNotInitialized(): void;
452
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesOverlayService, never>;
453
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesOverlayService>;
454
+ }
455
+
444
456
  declare enum AlertType {
445
457
  SUCCESS = "success",
446
458
  ERROR = "error",
@@ -448,12 +460,14 @@ declare enum AlertType {
448
460
  WARNING = "warning",
449
461
  CUSTOM = "custom"
450
462
  }
463
+ type AlertPosition = 'top' | 'bottom';
451
464
  declare class Alert {
452
465
  id: string;
453
466
  type: string;
454
467
  title: string;
455
468
  message: string;
456
469
  icon: string;
470
+ position: AlertPosition;
457
471
  component?: ComponentType<unknown>;
458
472
  componentInputs?: {
459
473
  [P in keyof ComponentType<unknown>]?: ComponentType<unknown>[P];
@@ -463,24 +477,15 @@ declare class Alert {
463
477
  interface AlertParams {
464
478
  title?: string;
465
479
  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>;
480
+ position?: AlertPosition;
478
481
  }
479
482
 
480
483
  declare class UiAlertMessagesService {
481
484
  private readonly uiAlertMessagesOverlayService;
482
485
  private readonly router;
483
- readonly $alerts: WritableSignal<Alert[]>;
486
+ readonly $topAlerts: WritableSignal<Alert[]>;
487
+ readonly $bottomAlerts: WritableSignal<Alert[]>;
488
+ readonly $alerts: Signal<Alert[]>;
484
489
  private overlayRef?;
485
490
  private timerSubscriptions;
486
491
  private timerState;
@@ -494,7 +499,11 @@ declare class UiAlertMessagesService {
494
499
  remove(alert: Alert): void;
495
500
  removeById(id: string): void;
496
501
  removeAll(): void;
497
- protected open(alert: Alert): void;
502
+ protected open(alert: Alert, closeIntervalParams?: {
503
+ useTimer: boolean;
504
+ duration: number;
505
+ }): void;
506
+ private getAlertsList;
498
507
  static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesService, never>;
499
508
  static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
500
509
  }
@@ -1250,4 +1259,4 @@ declare class UiTimeDropdownDirective {
1250
1259
  }
1251
1260
 
1252
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 };
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 };
1262
+ 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 };