@ibragim-dev-org/ui-forge-library 1.3.9 → 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
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
@@ -142,12 +142,14 @@ declare class CalendarUtils {
|
|
|
142
142
|
static generateYears(startYear: number, options: GeneratePeriodOptions): CalendarYearItem[];
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
declare class
|
|
145
|
+
declare class FocusDirective {
|
|
146
146
|
private el;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
private destroyRef;
|
|
148
|
+
readonly $focus: ModelSignal<boolean>;
|
|
149
|
+
constructor(el: ElementRef<HTMLInputElement>, destroyRef: DestroyRef);
|
|
150
|
+
ngAfterViewInit(): void;
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusDirective, never>;
|
|
152
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusDirective, "[appFocus]", never, { "$focus": { "alias": "appFocus"; "required": false; "isSignal": true; }; }, { "$focus": "appFocusChange"; }, never, never, true, never>;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
declare class LazyImageService {
|
|
@@ -403,15 +405,26 @@ interface AlertParams {
|
|
|
403
405
|
message: string;
|
|
404
406
|
}
|
|
405
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
|
+
|
|
406
420
|
declare class UiAlertMessagesService {
|
|
407
|
-
private readonly
|
|
408
|
-
private router;
|
|
421
|
+
private readonly uiAlertMessagesOverlayService;
|
|
422
|
+
private readonly router;
|
|
409
423
|
readonly $alerts: WritableSignal<Alert[]>;
|
|
410
424
|
private overlayRef?;
|
|
411
|
-
private component;
|
|
412
425
|
private timerSubscriptions;
|
|
413
426
|
private timerState;
|
|
414
|
-
constructor(
|
|
427
|
+
constructor(uiAlertMessagesOverlayService: UiAlertMessagesOverlayService, router: Router);
|
|
415
428
|
success(params: AlertParams): void;
|
|
416
429
|
error(params: AlertParams): void;
|
|
417
430
|
information(params: AlertParams): void;
|
|
@@ -421,7 +434,6 @@ declare class UiAlertMessagesService {
|
|
|
421
434
|
remove(alert: Alert): void;
|
|
422
435
|
removeById(id: string): void;
|
|
423
436
|
removeAll(): void;
|
|
424
|
-
init(component: ComponentType$1<unknown>): void;
|
|
425
437
|
protected open(alert: Alert): void;
|
|
426
438
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertMessagesService, never>;
|
|
427
439
|
static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
|
|
@@ -609,6 +621,14 @@ interface UiPopupOptions<TComponent> {
|
|
|
609
621
|
};
|
|
610
622
|
}
|
|
611
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
|
+
|
|
612
632
|
interface PopupParameters {
|
|
613
633
|
animationOptions: PopupAnimationOptions;
|
|
614
634
|
isStaticBackdrop: boolean;
|
|
@@ -620,14 +640,13 @@ declare class UiPopupService {
|
|
|
620
640
|
protected injector: Injector;
|
|
621
641
|
protected destroyRef: DestroyRef;
|
|
622
642
|
protected router: Router;
|
|
643
|
+
protected backdropService: UiPopupBackdropService;
|
|
623
644
|
popupInstances: UiPopupInstance[];
|
|
624
645
|
private backdropRef?;
|
|
625
|
-
private backdropPortal?;
|
|
626
646
|
private backdropPortalRef?;
|
|
627
647
|
protected readonly destroyDownloading$: Subject<void>;
|
|
628
648
|
protected readonly destroyOutsideClickSubscription$: Subject<void>;
|
|
629
|
-
constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router);
|
|
630
|
-
init<TComponent>(component: Type<TComponent>): void;
|
|
649
|
+
constructor(overlay: Overlay, injector: Injector, destroyRef: DestroyRef, router: Router, backdropService: UiPopupBackdropService);
|
|
631
650
|
/**
|
|
632
651
|
* Opens a popup with the specified component and options.
|
|
633
652
|
*
|
|
@@ -732,13 +751,11 @@ interface DropdownItem {
|
|
|
732
751
|
}
|
|
733
752
|
|
|
734
753
|
declare class UiDropdownService extends UiPopupService {
|
|
735
|
-
private tipContainerPortal?;
|
|
736
754
|
containerSize$: BehaviorSubject<{
|
|
737
755
|
width: number;
|
|
738
756
|
height: number;
|
|
739
757
|
}>;
|
|
740
758
|
private connectedPositions;
|
|
741
|
-
init(component: Type<unknown>, tipComponent?: Type<unknown>): void;
|
|
742
759
|
/**
|
|
743
760
|
* Opens a tooltip (tip) component attached to a specific HTML element.
|
|
744
761
|
* The tooltip displays text content with customizable position and offset.
|
|
@@ -1027,14 +1044,14 @@ declare abstract class UiInputCheckboxDirective implements FormCheckboxControl {
|
|
|
1027
1044
|
readonly disabled: InputSignal<boolean>;
|
|
1028
1045
|
readonly $style: InputSignal<CheckboxStyles>;
|
|
1029
1046
|
readonly $label: InputSignal<string>;
|
|
1030
|
-
readonly $
|
|
1047
|
+
readonly $hasValidators: InputSignal<boolean>;
|
|
1031
1048
|
readonly errors: InputSignal<readonly ValidationErrorsType[]>;
|
|
1032
1049
|
readonly touched: ModelSignal<boolean>;
|
|
1033
1050
|
readonly dirty: ModelSignal<boolean>;
|
|
1034
1051
|
protected readonly $isError: Signal<boolean>;
|
|
1035
1052
|
change(): void;
|
|
1036
1053
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputCheckboxDirective, never>;
|
|
1037
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputCheckboxDirective, "app-ui-input", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "$style": { "alias": "$style"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$
|
|
1054
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputCheckboxDirective, "app-ui-input", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "$style": { "alias": "$style"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$hasValidators": { "alias": "$hasValidators"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "invalid": "invalidChange"; "touched": "touchedChange"; "dirty": "dirtyChange"; }, never, never, true, never>;
|
|
1038
1055
|
}
|
|
1039
1056
|
|
|
1040
1057
|
type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
@@ -1047,14 +1064,14 @@ declare abstract class UiInputDirective extends UiFieldBaseDirective<string> {
|
|
|
1047
1064
|
readonly $maxLength: InputSignal<number | undefined>;
|
|
1048
1065
|
readonly $inputMode: InputSignal<InputMode>;
|
|
1049
1066
|
readonly $label: InputSignal<string>;
|
|
1050
|
-
readonly $
|
|
1067
|
+
readonly $focus: ModelSignal<boolean>;
|
|
1051
1068
|
readonly $isRounded: InputSignal<boolean>;
|
|
1052
|
-
readonly $
|
|
1069
|
+
readonly $hasValidators: InputSignal<boolean>;
|
|
1053
1070
|
readonly $icon: InputSignal<AppIcon | null>;
|
|
1054
1071
|
protected readonly $isError: Signal<boolean>;
|
|
1055
1072
|
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
1056
1073
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputDirective, never>;
|
|
1057
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$maxLength": { "alias": "$maxLength"; "required": false; "isSignal": true; }; "$inputMode": { "alias": "$inputMode"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$
|
|
1074
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$maxLength": { "alias": "$maxLength"; "required": false; "isSignal": true; }; "$inputMode": { "alias": "$inputMode"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$focus": { "alias": "$focus"; "required": false; "isSignal": true; }; "$isRounded": { "alias": "$isRounded"; "required": false; "isSignal": true; }; "$hasValidators": { "alias": "$hasValidators"; "required": false; "isSignal": true; }; "$icon": { "alias": "$icon"; "required": false; "isSignal": true; }; }, { "$focus": "$focusChange"; }, never, never, true, never>;
|
|
1058
1075
|
}
|
|
1059
1076
|
|
|
1060
1077
|
declare abstract class UiInputCountryDirective extends UiInputDirective implements AfterViewInit {
|
|
@@ -1190,5 +1207,5 @@ declare class UiTimeDropdownDirective {
|
|
|
1190
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>;
|
|
1191
1208
|
}
|
|
1192
1209
|
|
|
1193
|
-
export { Alert, AlertType, AppIconsLibrary,
|
|
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 };
|
|
1194
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 };
|