@ibragim-dev-org/ui-forge-library 1.4.70 → 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
|
@@ -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 {
|
|
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 $
|
|
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
|
|
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
|
}
|
|
@@ -672,8 +681,9 @@ declare class UiPopupInstance {
|
|
|
672
681
|
readonly isHide$: Subject<boolean>;
|
|
673
682
|
private readonly closed;
|
|
674
683
|
private readonly shouldClose;
|
|
675
|
-
private
|
|
684
|
+
private closing;
|
|
676
685
|
constructor(overlayRef: OverlayRef, destroyRef: DestroyRef, onClose?: () => void, options?: UiPopupAnimation);
|
|
686
|
+
get isClosing(): boolean;
|
|
677
687
|
close(): void;
|
|
678
688
|
detach(): void;
|
|
679
689
|
onShouldClose(): Observable<void>;
|
|
@@ -945,7 +955,7 @@ declare class HoverTipDirective implements AfterViewInit {
|
|
|
945
955
|
readonly $offsetX: InputSignal<number>;
|
|
946
956
|
readonly $offsetY: InputSignal<number>;
|
|
947
957
|
private readonly tipId;
|
|
948
|
-
private isOpen;
|
|
958
|
+
private get isOpen();
|
|
949
959
|
constructor(hostRef: ElementRef<HTMLElement>, uiDropdownService: UiDropdownService, destroyRef: DestroyRef);
|
|
950
960
|
ngAfterViewInit(): void;
|
|
951
961
|
private openTip;
|
|
@@ -1249,4 +1259,4 @@ declare class UiTimeDropdownDirective {
|
|
|
1249
1259
|
}
|
|
1250
1260
|
|
|
1251
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 };
|
|
1252
|
-
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 };
|