@volo/ngx-lepton-x.core 5.0.2 → 5.1.0-rc.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/fesm2022/volo-ngx-lepton-x.core.mjs +314 -249
- package/fesm2022/volo-ngx-lepton-x.core.mjs.map +1 -1
- package/index.d.ts +62 -49
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import * as i1$1 from '@angular/router';
|
|
|
8
8
|
import { Router, NavigationEnd } from '@angular/router';
|
|
9
9
|
import { Environment, RoutesService as RoutesService$1, LocalizationService } from '@abp/ng.core';
|
|
10
10
|
import * as i2 from '@angular/forms';
|
|
11
|
+
import * as _volo_ngx_lepton_x_core from '@volo/ngx-lepton-x.core';
|
|
11
12
|
|
|
12
13
|
declare function createDirectionProvider(listenDirection: boolean): i0.EnvironmentProviders;
|
|
13
14
|
declare function listenDirectionChange(): Promise<unknown>;
|
|
@@ -88,39 +89,8 @@ declare class ResponsiveService {
|
|
|
88
89
|
|
|
89
90
|
declare function createResponsiveProvider(responsiveSettings: ResponsiveBreakpoints | undefined): Provider;
|
|
90
91
|
|
|
91
|
-
interface LpxStyle {
|
|
92
|
-
bundleName: string;
|
|
93
|
-
}
|
|
94
|
-
type LpxStyles = Array<LpxStyle>;
|
|
95
|
-
type LpxStyleFactory<T = LpxStyles> = (styles: T) => T;
|
|
96
|
-
interface HasStyleFactory<T = LpxStyles> {
|
|
97
|
-
styleFactory?: LpxStyleFactory<T>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
declare class StyleService {
|
|
101
|
-
private initialStyles;
|
|
102
|
-
private document;
|
|
103
|
-
lastInjectedStyle: HTMLLinkElement | null;
|
|
104
|
-
initialized$: BehaviorSubject<boolean>;
|
|
105
|
-
initStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
106
|
-
loadStyle(style: LpxStyle, direction: 'ltr' | 'rtl'): Promise<HTMLStyleElement | void>;
|
|
107
|
-
replaceStyle<T extends LpxStyle>(style: T, direction: 'rtl' | 'ltr'): Promise<HTMLStyleElement | void>;
|
|
108
|
-
reloadInitialStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
109
|
-
createLinkElem(style: LpxStyle, direction: 'rtl' | 'ltr', resolve: (param: any) => void): HTMLLinkElement;
|
|
110
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StyleService, never>;
|
|
111
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StyleService>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare const LPX_INITIAL_STYLES: InjectionToken<LpxStyles>;
|
|
115
|
-
declare const LPX_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
116
|
-
declare const LPX_LAYOUT_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
117
|
-
|
|
118
|
-
declare function createStyleFactory<T = LpxStyles>(handler?: LpxStyleFactory<T>): LpxStyleFactory<T>;
|
|
119
|
-
|
|
120
|
-
declare function styleLoadFactory(styleList: LpxStyles, layoutStyles: LpxStyles): LpxStyle[];
|
|
121
|
-
|
|
122
92
|
declare const LPX_STYLE_PROVIDERS: (i0.EnvironmentProviders | {
|
|
123
|
-
provide: i0.InjectionToken<LpxStyles>;
|
|
93
|
+
provide: i0.InjectionToken<_volo_ngx_lepton_x_core.LpxStyles>;
|
|
124
94
|
useFactory: () => never[];
|
|
125
95
|
})[];
|
|
126
96
|
declare function loadInitialStyles(): rxjs.Observable<void>;
|
|
@@ -378,17 +348,18 @@ declare class NavbarService {
|
|
|
378
348
|
setNavbarItems(...menuItems: LpxNavbarItem[]): void;
|
|
379
349
|
addChildren(id: string, ...menuItems: LpxNavbarItem[]): void;
|
|
380
350
|
findByLink(link: string, items?: LpxNavbarItem[]): {
|
|
381
|
-
item
|
|
351
|
+
item?: LpxNavbarItem;
|
|
382
352
|
location: number[];
|
|
383
353
|
};
|
|
384
354
|
expandItemByLink$(): rxjs.Observable<NavigationEnd>;
|
|
385
355
|
expandItems(): void;
|
|
386
356
|
getRouteItem(): {
|
|
387
|
-
item
|
|
357
|
+
item?: LpxNavbarItem;
|
|
388
358
|
location: number[];
|
|
389
359
|
};
|
|
390
360
|
calculateExpandState(items: LpxNavbarItem[], indexes: Array<number>): LpxNavbarItem[];
|
|
391
361
|
collapseChildren(children: Array<LpxNavbarItem>): Array<LpxNavbarItem>;
|
|
362
|
+
private addChildrenByLocation;
|
|
392
363
|
private findById;
|
|
393
364
|
private findByProp;
|
|
394
365
|
private addContainerLinks;
|
|
@@ -475,6 +446,17 @@ declare class NavbarRoutesComponent {
|
|
|
475
446
|
flatChildren(menuItems: NavbarItemsType): LpxNavbarItem[];
|
|
476
447
|
private fixNavbarItems;
|
|
477
448
|
private hasActiveDescendant;
|
|
449
|
+
/**
|
|
450
|
+
* Checks if a navbar item's url matches the current url exactly
|
|
451
|
+
* or is an ancestor of it on a path segment boundary.
|
|
452
|
+
*
|
|
453
|
+
* Examples:
|
|
454
|
+
* - item: `/a/b`, current: `/a/b` -> true
|
|
455
|
+
* - item: `/a/b`, current: `/a/b/c` -> true
|
|
456
|
+
* - item: `/a/bc`, current: `/a/bc/de` -> true
|
|
457
|
+
* - item: `/a/bc`, current: `/a/bcde` -> false
|
|
458
|
+
*/
|
|
459
|
+
private isSameOrAncestorRoute;
|
|
478
460
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarRoutesComponent, never>;
|
|
479
461
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarRoutesComponent, "lpx-navbar-routes", never, { "navbarItems": { "alias": "navbarItems"; "required": false; }; "groupedItems": { "alias": "groupedItems"; "required": false; }; "routerItem": { "alias": "routerItem"; "required": false; "isSignal": true; }; }, { "routeClick": "routeClick"; }, never, never, true, never>;
|
|
480
462
|
}
|
|
@@ -564,6 +546,21 @@ declare const CONTENT_BEFORE_ROUTES: InjectionToken<Type<any>[][]>;
|
|
|
564
546
|
declare const CONTENT_AFTER_ROUTES: InjectionToken<Type<any>[][]>;
|
|
565
547
|
declare const LPX_MENU_ITEMS: InjectionToken<LpxNavbarItem[]>;
|
|
566
548
|
|
|
549
|
+
declare class FooterComponent {
|
|
550
|
+
private service;
|
|
551
|
+
footerValues$: rxjs.Observable<_volo_ngx_lepton_x_core.FooterNav>;
|
|
552
|
+
currentYear: number;
|
|
553
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
554
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "lpx-footer", never, {}, {}, never, never, true, never>;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare class LpxFooterModule {
|
|
558
|
+
static forRoot(): ModuleWithProviders<LpxFooterModule>;
|
|
559
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LpxFooterModule, never>;
|
|
560
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LpxFooterModule, never, [typeof i1.CommonModule, typeof i1$1.RouterModule, typeof FooterComponent], [typeof FooterComponent]>;
|
|
561
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LpxFooterModule>;
|
|
562
|
+
}
|
|
563
|
+
|
|
567
564
|
interface FooterLink {
|
|
568
565
|
link: string;
|
|
569
566
|
text: string;
|
|
@@ -583,21 +580,6 @@ declare class FooterLinksService {
|
|
|
583
580
|
static ɵprov: i0.ɵɵInjectableDeclaration<FooterLinksService>;
|
|
584
581
|
}
|
|
585
582
|
|
|
586
|
-
declare class FooterComponent {
|
|
587
|
-
private service;
|
|
588
|
-
footerValues$: rxjs.Observable<FooterNav>;
|
|
589
|
-
currentYear: number;
|
|
590
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
591
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "lpx-footer", never, {}, {}, never, never, true, never>;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
declare class LpxFooterModule {
|
|
595
|
-
static forRoot(): ModuleWithProviders<LpxFooterModule>;
|
|
596
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LpxFooterModule, never>;
|
|
597
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LpxFooterModule, never, [typeof i1.CommonModule, typeof i1$1.RouterModule, typeof FooterComponent], [typeof FooterComponent]>;
|
|
598
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LpxFooterModule>;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
583
|
interface LpxLanguage {
|
|
602
584
|
cultureName?: string;
|
|
603
585
|
displayName?: string;
|
|
@@ -855,6 +837,37 @@ declare class SafeHtmlPipe implements PipeTransform {
|
|
|
855
837
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "lpxSafeHtml", true>;
|
|
856
838
|
}
|
|
857
839
|
|
|
840
|
+
interface LpxStyle {
|
|
841
|
+
bundleName: string;
|
|
842
|
+
}
|
|
843
|
+
type LpxStyles = Array<LpxStyle>;
|
|
844
|
+
type LpxStyleFactory<T = LpxStyles> = (styles: T) => T;
|
|
845
|
+
interface HasStyleFactory<T = LpxStyles> {
|
|
846
|
+
styleFactory?: LpxStyleFactory<T>;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
declare class StyleService {
|
|
850
|
+
private initialStyles;
|
|
851
|
+
private document;
|
|
852
|
+
lastInjectedStyle: HTMLLinkElement | null;
|
|
853
|
+
initialized$: BehaviorSubject<boolean>;
|
|
854
|
+
initStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
855
|
+
loadStyle(style: LpxStyle, direction: 'ltr' | 'rtl'): Promise<HTMLStyleElement | void>;
|
|
856
|
+
replaceStyle<T extends LpxStyle>(style: T, direction: 'rtl' | 'ltr'): Promise<HTMLStyleElement | void>;
|
|
857
|
+
reloadInitialStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
858
|
+
createLinkElem(style: LpxStyle, direction: 'rtl' | 'ltr', resolve: (param: any) => void): HTMLLinkElement;
|
|
859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleService, never>;
|
|
860
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StyleService>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare const LPX_INITIAL_STYLES: InjectionToken<LpxStyles>;
|
|
864
|
+
declare const LPX_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
865
|
+
declare const LPX_LAYOUT_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
866
|
+
|
|
867
|
+
declare function createStyleFactory<T = LpxStyles>(handler?: LpxStyleFactory<T>): LpxStyleFactory<T>;
|
|
868
|
+
|
|
869
|
+
declare function styleLoadFactory(styleList: LpxStyles, layoutStyles: LpxStyles): _volo_ngx_lepton_x_core.LpxStyle[];
|
|
870
|
+
|
|
858
871
|
declare const WINDOW: InjectionToken<Window>;
|
|
859
872
|
|
|
860
873
|
declare const LPX_SSR_FLAG: i0.StateKey<boolean>;
|