@ibragim-dev-org/ui-forge-library 1.4.0 → 1.4.2
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
|
@@ -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,
|
|
5
|
+
import { ModelSignal, ElementRef, DestroyRef, OnInit, OnDestroy, AfterViewInit, InputSignal, Renderer2, OnChanges, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, EventEmitter, 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 {
|
|
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 {
|
|
@@ -163,14 +163,16 @@ declare class LazyImgDirective implements OnInit, OnDestroy {
|
|
|
163
163
|
private readonly el;
|
|
164
164
|
private readonly lazyService;
|
|
165
165
|
lazySrc: string;
|
|
166
|
-
loadError:
|
|
166
|
+
loadError: i0.OutputEmitterRef<void>;
|
|
167
|
+
loaded: i0.OutputEmitterRef<void>;
|
|
167
168
|
private observer;
|
|
168
169
|
private readonly onError;
|
|
170
|
+
private readonly onLoad;
|
|
169
171
|
constructor(el: ElementRef<HTMLImageElement>, lazyService: LazyImageService);
|
|
170
172
|
ngOnInit(): void;
|
|
171
173
|
ngOnDestroy(): void;
|
|
172
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<LazyImgDirective, never>;
|
|
173
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LazyImgDirective, "img[lazySrc]", never, { "lazySrc": { "alias": "lazySrc"; "required": false; }; }, { "loadError": "loadError"; }, never, never, true, never>;
|
|
175
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LazyImgDirective, "img[lazySrc]", never, { "lazySrc": { "alias": "lazySrc"; "required": false; }; }, { "loadError": "loadError"; "loaded": "loaded"; }, never, never, true, never>;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
declare class MaskGradientDirective implements AfterViewInit {
|
|
@@ -268,6 +270,8 @@ declare function getAspectRatioFit(maxWidth: number, maxHeight: number, srcWidth
|
|
|
268
270
|
declare const stringToHslColor: (value: string) => string;
|
|
269
271
|
declare const stringToColorGradient: (value: string) => string;
|
|
270
272
|
|
|
273
|
+
declare const isBrowser: () => boolean;
|
|
274
|
+
|
|
271
275
|
type AppIconName = string;
|
|
272
276
|
declare type Nominal<T, Name extends string> = T & {
|
|
273
277
|
[Symbol.species]: Name;
|
|
@@ -405,15 +409,26 @@ interface AlertParams {
|
|
|
405
409
|
message: string;
|
|
406
410
|
}
|
|
407
411
|
|
|
412
|
+
declare class UiAlertMessagesOverlayService {
|
|
413
|
+
readonly overlay: Overlay;
|
|
414
|
+
component: ComponentType<unknown> | null;
|
|
415
|
+
private overlayRef?;
|
|
416
|
+
constructor(component: Type<any>, overlay: Overlay);
|
|
417
|
+
attachComponent(): void;
|
|
418
|
+
init(component: ComponentType<unknown>): void;
|
|
419
|
+
throwIfNotInitialized(): void;
|
|
420
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesOverlayService, never>;
|
|
421
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesOverlayService>;
|
|
422
|
+
}
|
|
423
|
+
|
|
408
424
|
declare class UiAlertMessagesService {
|
|
409
|
-
private readonly
|
|
410
|
-
private router;
|
|
425
|
+
private readonly uiAlertMessagesOverlayService;
|
|
426
|
+
private readonly router;
|
|
411
427
|
readonly $alerts: WritableSignal<Alert[]>;
|
|
412
428
|
private overlayRef?;
|
|
413
|
-
private component;
|
|
414
429
|
private timerSubscriptions;
|
|
415
430
|
private timerState;
|
|
416
|
-
constructor(
|
|
431
|
+
constructor(uiAlertMessagesOverlayService: UiAlertMessagesOverlayService, router: Router);
|
|
417
432
|
success(params: AlertParams): void;
|
|
418
433
|
error(params: AlertParams): void;
|
|
419
434
|
information(params: AlertParams): void;
|
|
@@ -423,7 +438,6 @@ declare class UiAlertMessagesService {
|
|
|
423
438
|
remove(alert: Alert): void;
|
|
424
439
|
removeById(id: string): void;
|
|
425
440
|
removeAll(): void;
|
|
426
|
-
init(component: ComponentType$1<unknown>): void;
|
|
427
441
|
protected open(alert: Alert): void;
|
|
428
442
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesService, never>;
|
|
429
443
|
static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
|
|
@@ -611,6 +625,14 @@ interface UiPopupOptions<TComponent> {
|
|
|
611
625
|
};
|
|
612
626
|
}
|
|
613
627
|
|
|
628
|
+
declare class UiPopupBackdropService {
|
|
629
|
+
readonly tipContainerPortal?: ComponentPortal<unknown>;
|
|
630
|
+
readonly backdropPortal: ComponentPortal<any>;
|
|
631
|
+
constructor(component: Type<any>, tipComponent?: Type<any>);
|
|
632
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiPopupBackdropService, never>;
|
|
633
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiPopupBackdropService>;
|
|
634
|
+
}
|
|
635
|
+
|
|
614
636
|
interface PopupParameters {
|
|
615
637
|
animationOptions: PopupAnimationOptions;
|
|
616
638
|
isStaticBackdrop: boolean;
|
|
@@ -622,14 +644,13 @@ declare class UiPopupService {
|
|
|
622
644
|
protected injector: Injector;
|
|
623
645
|
protected destroyRef: DestroyRef;
|
|
624
646
|
protected router: Router;
|
|
647
|
+
protected backdropService: UiPopupBackdropService;
|
|
625
648
|
popupInstances: UiPopupInstance[];
|
|
626
649
|
private backdropRef?;
|
|
627
|
-
private backdropPortal?;
|
|
628
650
|
private backdropPortalRef?;
|
|
629
651
|
protected readonly destroyDownloading$: Subject<void>;
|
|
630
652
|
protected readonly destroyOutsideClickSubscription$: Subject<void>;
|
|
631
|
-
constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router);
|
|
632
|
-
init<TComponent>(component: Type<TComponent>): void;
|
|
653
|
+
constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router, backdropService: UiPopupBackdropService);
|
|
633
654
|
/**
|
|
634
655
|
* Opens a popup with the specified component and options.
|
|
635
656
|
*
|
|
@@ -734,13 +755,11 @@ interface DropdownItem {
|
|
|
734
755
|
}
|
|
735
756
|
|
|
736
757
|
declare class UiDropdownService extends UiPopupService {
|
|
737
|
-
private tipContainerPortal?;
|
|
738
758
|
containerSize$: BehaviorSubject<{
|
|
739
759
|
width: number;
|
|
740
760
|
height: number;
|
|
741
761
|
}>;
|
|
742
762
|
private connectedPositions;
|
|
743
|
-
init(component: Type<unknown>, tipComponent?: Type<unknown>): void;
|
|
744
763
|
/**
|
|
745
764
|
* Opens a tooltip (tip) component attached to a specific HTML element.
|
|
746
765
|
* The tooltip displays text content with customizable position and offset.
|
|
@@ -1192,5 +1211,5 @@ declare class UiTimeDropdownDirective {
|
|
|
1192
1211
|
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
1212
|
}
|
|
1194
1213
|
|
|
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 };
|
|
1214
|
+
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, isBrowser, navigateByUrl, stringToColorGradient, stringToHslColor };
|
|
1196
1215
|
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 };
|