@ibragim-dev-org/ui-forge-library 1.2.6 → 1.2.8
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
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
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
|
+
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
1
4
|
import * as i0 from '@angular/core';
|
|
2
5
|
import { InputSignal, ElementRef, OnInit, OnDestroy, EventEmitter, AfterViewInit, DestroyRef, Renderer2, OnChanges, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, SimpleChanges, PipeTransform, WritableSignal, ModelSignal, Signal, OutputEmitterRef, Injector, Type, TemplateRef } from '@angular/core';
|
|
3
6
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { NavigationStart, NavigationEnd, NavigationCancel, NavigationError, RoutesRecognized, GuardsCheckStart, GuardsCheckEnd, RouteConfigLoadStart, RouteConfigLoadEnd, ChildActivationStart, ChildActivationEnd, ActivationStart, ActivationEnd, Scroll, ResolveStart, ResolveEnd, NavigationSkipped, Router } from '@angular/router';
|
|
5
7
|
import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
6
8
|
import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
|
|
7
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
8
9
|
import { WithOptionalField, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
|
|
9
10
|
|
|
10
11
|
declare class DateUtils {
|
|
@@ -14,6 +15,63 @@ declare class DateUtils {
|
|
|
14
15
|
static setMonthSafe(date: Date, month: number): Date;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
type LocalizedString = {
|
|
19
|
+
key: string;
|
|
20
|
+
};
|
|
21
|
+
interface SeoMeta {
|
|
22
|
+
title?: LocalizedString | string;
|
|
23
|
+
description?: LocalizedString | string;
|
|
24
|
+
imageAlt?: LocalizedString | string;
|
|
25
|
+
image?: string;
|
|
26
|
+
canonicalPath?: string;
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
imageSize?: [string, string];
|
|
29
|
+
schemaJson?: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
interface BaseRouteData<SID = string> {
|
|
32
|
+
seo?: Omit<SeoMeta, 'title' | 'description'>;
|
|
33
|
+
}
|
|
34
|
+
type RouteParams<F extends (...args: unknown[]) => string> = (...args: Parameters<F>) => string;
|
|
35
|
+
type RouteDefinition = (...args: any[]) => string;
|
|
36
|
+
interface Routes {
|
|
37
|
+
[key: string]: RouteDefinition;
|
|
38
|
+
}
|
|
39
|
+
type ParsedRoutes<T extends Routes> = {
|
|
40
|
+
[key in keyof T]: RouteParams<T[key]>;
|
|
41
|
+
};
|
|
42
|
+
declare class RouterBehavior {
|
|
43
|
+
static router: Router;
|
|
44
|
+
static previousUrl: string;
|
|
45
|
+
static navigationState: {
|
|
46
|
+
[k: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
private static routeDataSubj;
|
|
49
|
+
private static trigger?;
|
|
50
|
+
private static location;
|
|
51
|
+
static get routeData(): BaseRouteData;
|
|
52
|
+
static get navigationTrigger(): 'imperative' | 'popstate' | 'hashchange' | undefined;
|
|
53
|
+
static get isImperative(): boolean;
|
|
54
|
+
static setup(router: Router, location: Location): void;
|
|
55
|
+
static onNavEnd(cb: () => void): void;
|
|
56
|
+
static onNavEndInfinity(cb: () => void): void;
|
|
57
|
+
static getRouteDataChanges<T = BaseRouteData>(): Observable<T>;
|
|
58
|
+
static clearQueryParam(currentParams: Params | string, removeKey: string): void;
|
|
59
|
+
static queryStringToObject(url: string): Params;
|
|
60
|
+
private static observeEvents;
|
|
61
|
+
}
|
|
62
|
+
/** Create UrlTree from string, same as default but use string instead string[] */
|
|
63
|
+
declare function createUrlTree(url: string, extras?: UrlCreationOptions): UrlTree;
|
|
64
|
+
/**
|
|
65
|
+
* Navigate by string url using NavigationExtras,
|
|
66
|
+
* because Router allows only NavigationBehaviorOptions at navigateByUrl()
|
|
67
|
+
*/
|
|
68
|
+
declare function navigateByUrl(url: string, extras?: NavigationExtras, removeOutlet?: string): Promise<boolean>;
|
|
69
|
+
declare function createUrl(url: string, moduleRoot?: string): string;
|
|
70
|
+
declare function createNavigation<T extends Routes, R = ParsedRoutes<T>>(from: T, moduleRoot?: string, overrides?: Partial<ParsedRoutes<T>>): R;
|
|
71
|
+
type paramExtractor<T> = (key: keyof T) => any;
|
|
72
|
+
type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
73
|
+
declare const extractParam: <T>(key: keyof NoInfer<T>) => any;
|
|
74
|
+
|
|
17
75
|
declare class AutoFocusDirective {
|
|
18
76
|
private el;
|
|
19
77
|
$shouldFocus: InputSignal<boolean>;
|
|
@@ -281,17 +339,19 @@ declare class UiAlertMessagesService {
|
|
|
281
339
|
static ɵprov: i0.ɵɵInjectableDeclaration<UiAlertMessagesService>;
|
|
282
340
|
}
|
|
283
341
|
|
|
284
|
-
type
|
|
342
|
+
type AvatarSize = 'small' | 'medium' | 'large';
|
|
285
343
|
declare abstract class UiAvatarDirective {
|
|
286
|
-
readonly
|
|
344
|
+
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
345
|
+
protected readonly renderer: Renderer2;
|
|
346
|
+
readonly $size: InputSignal<AvatarSize>;
|
|
347
|
+
readonly $isRounded: InputSignal<boolean>;
|
|
287
348
|
readonly $src: InputSignal<string>;
|
|
288
349
|
readonly $acronym: InputSignal<string>;
|
|
289
|
-
protected readonly $backgroundColor: WritableSignal<string>;
|
|
290
350
|
protected readonly $text: WritableSignal<string>;
|
|
291
351
|
protected readonly $canShowAvatar: WritableSignal<boolean>;
|
|
292
|
-
constructor();
|
|
352
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
293
353
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiAvatarDirective, never>;
|
|
294
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UiAvatarDirective, "app-ui-avatar", never, { "$
|
|
354
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiAvatarDirective, "app-ui-avatar", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$isRounded": { "alias": "$isRounded"; "required": false; "isSignal": true; }; "$src": { "alias": "$src"; "required": true; "isSignal": true; }; "$acronym": { "alias": "$acronym"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
295
355
|
}
|
|
296
356
|
|
|
297
357
|
interface CalendarDay {
|
|
@@ -1054,5 +1114,5 @@ declare class UiTimeDropdownDirective {
|
|
|
1054
1114
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTimeDropdownDirective, "app-ui-time-dropdown", never, { "action": { "alias": "action"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
1055
1115
|
}
|
|
1056
1116
|
|
|
1057
|
-
export { Alert, AlertType, AppIconsLibrary, AutoFocusDirective, CenterEllipsisPipe, CountryService, DateUtils, EMAIL, HAS_CAPITAL_CASE, HAS_NUMBER, HAS_SMALL_CASE, HAS_SPECIAL_CHARTERS, HoverTipDirective, IconComponent, LazyImgDirective, MIN_LENGTH, MaskGradientDirective, 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, emptyCountry, getAspectRatioFit, stringToHslColor };
|
|
1058
|
-
export type { AlertParams, AppIcon, AppIconName, ButtonColor, CalendarDay, CalendarMonthItem, CalendarYearItem, CheckboxStyles, CountryData, DropdownItem, DropdownParameters, DropdownPosition, InputSelectData, NavigationEvent, OverflowMode, PopupAnimationOptions, RawSVG, TabsAlignment, UiPopupAnimation, UiPopupOptions, UiPopupParameters, UiSelectButton, UiSelectButtonAlignment, UiTab, ValidationErrorsType };
|
|
1117
|
+
export { Alert, AlertType, AppIconsLibrary, AutoFocusDirective, CenterEllipsisPipe, CountryService, DateUtils, EMAIL, 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, stringToHslColor };
|
|
1118
|
+
export type { AlertParams, AppIcon, AppIconName, ButtonColor, CalendarDay, CalendarMonthItem, CalendarYearItem, CheckboxStyles, CountryData, DropdownItem, DropdownParameters, DropdownPosition, InputSelectData, NavigationEvent, OverflowMode, ParsedRoutes, PopupAnimationOptions, RawSVG, RouteDefinition, TabsAlignment, UiPopupAnimation, UiPopupOptions, UiPopupParameters, UiSelectButton, UiSelectButtonAlignment, UiTab, ValidationErrorsType, paramExtractor };
|