@volo/ngx-lepton-x.core 3.1.0-rc.4 → 3.1.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/esm2022/lib/components/navbar/navbar-routes/navbar-routes.component.mjs +46 -10
- package/esm2022/lib/components/navbar/sub-navbar/sub-navbar.component.mjs +10 -11
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/route/index.mjs +2 -0
- package/esm2022/lib/services/route/routes.service.mjs +22 -0
- package/fesm2022/volo-ngx-lepton-x.core.mjs +71 -19
- package/fesm2022/volo-ngx-lepton-x.core.mjs.map +1 -1
- package/lib/components/navbar/navbar-routes/navbar-routes.component.d.ts +9 -4
- package/lib/components/navbar/sub-navbar/sub-navbar.component.d.ts +3 -4
- package/lib/services/index.d.ts +1 -0
- package/lib/services/route/index.d.ts +1 -0
- package/lib/services/route/routes.service.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
import { GroupedNavbarItems, LpxNavbarItem } from '../models';
|
|
3
|
+
import { RoutesService } from '../../../services/route/routes.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type NavbarItemsType = LpxNavbarItem[] | null | undefined;
|
|
5
6
|
export type NavbarGroupItemsType = GroupedNavbarItems[] | null | undefined;
|
|
6
7
|
export declare class NavbarRoutesComponent {
|
|
7
|
-
injector: Injector;
|
|
8
|
+
protected readonly injector: Injector;
|
|
9
|
+
protected readonly routesService: RoutesService;
|
|
8
10
|
groupedItems: NavbarGroupItemsType;
|
|
9
11
|
navbarItems: NavbarItemsType;
|
|
10
|
-
routerItem: boolean
|
|
12
|
+
routerItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
11
13
|
routeClick: EventEmitter<LpxNavbarItem>;
|
|
12
14
|
private get itemsFromGroup();
|
|
15
|
+
constructor();
|
|
13
16
|
private isExpandedOrSelected;
|
|
14
|
-
constructor(injector: Injector);
|
|
15
17
|
onSubnavbarExpand(menuItem: LpxNavbarItem, menuItems: NavbarItemsType): void;
|
|
16
18
|
onRouteClick(menuItem: LpxNavbarItem, menuItems: NavbarItemsType): void;
|
|
17
19
|
checkChildrenIncludesItem(item: LpxNavbarItem, menuItem: LpxNavbarItem): boolean;
|
|
18
20
|
flatChildren(menuItems: NavbarItemsType): LpxNavbarItem[];
|
|
21
|
+
fixNavbarItemsByRouter(): void;
|
|
22
|
+
fixNavbarItems(currentUrl: string, items: LpxNavbarItem[]): void;
|
|
23
|
+
hasUrlInChildren(item: LpxNavbarItem, url: string): boolean;
|
|
19
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarRoutesComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarRoutesComponent, "lpx-navbar-routes", never, { "groupedItems": { "alias": "groupedItems"; "required": false; }; "navbarItems": { "alias": "navbarItems"; "required": false; }; "routerItem": { "alias": "routerItem"; "required": false; }; }, { "routeClick": "routeClick"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarRoutesComponent, "lpx-navbar-routes", never, { "groupedItems": { "alias": "groupedItems"; "required": false; }; "navbarItems": { "alias": "navbarItems"; "required": false; }; "routerItem": { "alias": "routerItem"; "required": false; "isSignal": true; }; }, { "routeClick": "routeClick"; }, never, never, false, never>;
|
|
21
26
|
}
|
|
@@ -2,15 +2,14 @@ import { EventEmitter, Injector } from '@angular/core';
|
|
|
2
2
|
import { LpxNavbarItem } from '../models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SubNavbarComponent {
|
|
5
|
-
readonly injector: Injector;
|
|
5
|
+
protected readonly injector: Injector;
|
|
6
6
|
item: LpxNavbarItem;
|
|
7
|
-
routerItem: boolean
|
|
7
|
+
routerItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
8
8
|
routeClick: EventEmitter<LpxNavbarItem>;
|
|
9
9
|
expand: EventEmitter<LpxNavbarItem>;
|
|
10
|
-
constructor(injector: Injector);
|
|
11
10
|
onItemClick(menuItem: LpxNavbarItem): void;
|
|
12
11
|
onChildExpand(child: LpxNavbarItem): void;
|
|
13
12
|
private processItemClick;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubNavbarComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubNavbarComponent, "lpx-sub-navbar", never, { "item": { "alias": "item"; "required": false; }; "routerItem": { "alias": "routerItem"; "required": false; }; }, { "routeClick": "routeClick"; "expand": "expand"; }, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubNavbarComponent, "lpx-sub-navbar", never, { "item": { "alias": "item"; "required": false; }; "routerItem": { "alias": "routerItem"; "required": false; "isSignal": true; }; }, { "routeClick": "routeClick"; "expand": "expand"; }, never, never, false, never>;
|
|
16
15
|
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './routes.service';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RoutesService {
|
|
4
|
+
protected readonly router: Router;
|
|
5
|
+
readonly currentNavigation: import("@angular/core").Signal<string>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoutesService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoutesService>;
|
|
8
|
+
}
|