@volo/ngx-lepton-x.core 5.0.3 → 5.1.0-rc.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/fesm2022/volo-ngx-lepton-x.core.mjs +314 -252
- 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>;
|
|
@@ -379,17 +349,18 @@ declare class NavbarService {
|
|
|
379
349
|
setNavbarItems(...menuItems: LpxNavbarItem[]): void;
|
|
380
350
|
addChildren(id: string, ...menuItems: LpxNavbarItem[]): void;
|
|
381
351
|
findByLink(link: string, items?: LpxNavbarItem[]): {
|
|
382
|
-
item
|
|
352
|
+
item?: LpxNavbarItem;
|
|
383
353
|
location: number[];
|
|
384
354
|
};
|
|
385
355
|
expandItemByLink$(): rxjs.Observable<NavigationEnd>;
|
|
386
356
|
expandItems(): void;
|
|
387
357
|
getRouteItem(): {
|
|
388
|
-
item
|
|
358
|
+
item?: LpxNavbarItem;
|
|
389
359
|
location: number[];
|
|
390
360
|
};
|
|
391
361
|
calculateExpandState(items: LpxNavbarItem[], indexes: Array<number>): LpxNavbarItem[];
|
|
392
362
|
collapseChildren(children: Array<LpxNavbarItem>): Array<LpxNavbarItem>;
|
|
363
|
+
private addChildrenByLocation;
|
|
393
364
|
private findById;
|
|
394
365
|
private findByProp;
|
|
395
366
|
private addContainerLinks;
|
|
@@ -476,6 +447,17 @@ declare class NavbarRoutesComponent {
|
|
|
476
447
|
flatChildren(menuItems: NavbarItemsType): LpxNavbarItem[];
|
|
477
448
|
private fixNavbarItems;
|
|
478
449
|
private hasActiveDescendant;
|
|
450
|
+
/**
|
|
451
|
+
* Checks if a navbar item's url matches the current url exactly
|
|
452
|
+
* or is an ancestor of it on a path segment boundary.
|
|
453
|
+
*
|
|
454
|
+
* Examples:
|
|
455
|
+
* - item: `/a/b`, current: `/a/b` -> true
|
|
456
|
+
* - item: `/a/b`, current: `/a/b/c` -> true
|
|
457
|
+
* - item: `/a/bc`, current: `/a/bc/de` -> true
|
|
458
|
+
* - item: `/a/bc`, current: `/a/bcde` -> false
|
|
459
|
+
*/
|
|
460
|
+
private isSameOrAncestorRoute;
|
|
479
461
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarRoutesComponent, never>;
|
|
480
462
|
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>;
|
|
481
463
|
}
|
|
@@ -565,6 +547,21 @@ declare const CONTENT_BEFORE_ROUTES: InjectionToken<Type<any>[][]>;
|
|
|
565
547
|
declare const CONTENT_AFTER_ROUTES: InjectionToken<Type<any>[][]>;
|
|
566
548
|
declare const LPX_MENU_ITEMS: InjectionToken<LpxNavbarItem[]>;
|
|
567
549
|
|
|
550
|
+
declare class FooterComponent {
|
|
551
|
+
private service;
|
|
552
|
+
footerValues$: rxjs.Observable<_volo_ngx_lepton_x_core.FooterNav>;
|
|
553
|
+
currentYear: number;
|
|
554
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
555
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "lpx-footer", never, {}, {}, never, never, true, never>;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare class LpxFooterModule {
|
|
559
|
+
static forRoot(): ModuleWithProviders<LpxFooterModule>;
|
|
560
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LpxFooterModule, never>;
|
|
561
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LpxFooterModule, never, [typeof i1.CommonModule, typeof i1$1.RouterModule, typeof FooterComponent], [typeof FooterComponent]>;
|
|
562
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LpxFooterModule>;
|
|
563
|
+
}
|
|
564
|
+
|
|
568
565
|
interface FooterLink {
|
|
569
566
|
link: string;
|
|
570
567
|
text: string;
|
|
@@ -584,21 +581,6 @@ declare class FooterLinksService {
|
|
|
584
581
|
static ɵprov: i0.ɵɵInjectableDeclaration<FooterLinksService>;
|
|
585
582
|
}
|
|
586
583
|
|
|
587
|
-
declare class FooterComponent {
|
|
588
|
-
private service;
|
|
589
|
-
footerValues$: rxjs.Observable<FooterNav>;
|
|
590
|
-
currentYear: number;
|
|
591
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
592
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "lpx-footer", never, {}, {}, never, never, true, never>;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
declare class LpxFooterModule {
|
|
596
|
-
static forRoot(): ModuleWithProviders<LpxFooterModule>;
|
|
597
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LpxFooterModule, never>;
|
|
598
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LpxFooterModule, never, [typeof i1.CommonModule, typeof i1$1.RouterModule, typeof FooterComponent], [typeof FooterComponent]>;
|
|
599
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LpxFooterModule>;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
584
|
interface LpxLanguage {
|
|
603
585
|
cultureName?: string;
|
|
604
586
|
displayName?: string;
|
|
@@ -856,6 +838,37 @@ declare class SafeHtmlPipe implements PipeTransform {
|
|
|
856
838
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "lpxSafeHtml", true>;
|
|
857
839
|
}
|
|
858
840
|
|
|
841
|
+
interface LpxStyle {
|
|
842
|
+
bundleName: string;
|
|
843
|
+
}
|
|
844
|
+
type LpxStyles = Array<LpxStyle>;
|
|
845
|
+
type LpxStyleFactory<T = LpxStyles> = (styles: T) => T;
|
|
846
|
+
interface HasStyleFactory<T = LpxStyles> {
|
|
847
|
+
styleFactory?: LpxStyleFactory<T>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare class StyleService {
|
|
851
|
+
private initialStyles;
|
|
852
|
+
private document;
|
|
853
|
+
lastInjectedStyle: HTMLLinkElement | null;
|
|
854
|
+
initialized$: BehaviorSubject<boolean>;
|
|
855
|
+
initStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
856
|
+
loadStyle(style: LpxStyle, direction: 'ltr' | 'rtl'): Promise<HTMLStyleElement | void>;
|
|
857
|
+
replaceStyle<T extends LpxStyle>(style: T, direction: 'rtl' | 'ltr'): Promise<HTMLStyleElement | void>;
|
|
858
|
+
reloadInitialStyles(direction: 'rtl' | 'ltr'): Promise<void>;
|
|
859
|
+
createLinkElem(style: LpxStyle, direction: 'rtl' | 'ltr', resolve: (param: any) => void): HTMLLinkElement;
|
|
860
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleService, never>;
|
|
861
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StyleService>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
declare const LPX_INITIAL_STYLES: InjectionToken<LpxStyles>;
|
|
865
|
+
declare const LPX_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
866
|
+
declare const LPX_LAYOUT_STYLE_FINAL: InjectionToken<LpxStyles>;
|
|
867
|
+
|
|
868
|
+
declare function createStyleFactory<T = LpxStyles>(handler?: LpxStyleFactory<T>): LpxStyleFactory<T>;
|
|
869
|
+
|
|
870
|
+
declare function styleLoadFactory(styleList: LpxStyles, layoutStyles: LpxStyles): _volo_ngx_lepton_x_core.LpxStyle[];
|
|
871
|
+
|
|
859
872
|
declare const WINDOW: InjectionToken<Window>;
|
|
860
873
|
|
|
861
874
|
declare const LPX_SSR_FLAG: i0.StateKey<boolean>;
|