@ieeesa-npm/presentation 0.30.0 → 0.30.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/breadcrumb/breadcrumb.component.mjs +31 -88
- package/esm2022/lib/models/menu-items.model.mjs +2 -0
- package/esm2022/lib/services/breadcrumb.service.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +30 -87
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +7 -18
- package/lib/models/menu-items.model.d.ts +3 -0
- package/lib/services/breadcrumb.service.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { ActivatedRoute,
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Breadcrumb } from '../../models/breadcrumb.model';
|
|
5
5
|
import { BreadcrumbService } from '../../services/breadcrumb.service';
|
|
6
|
+
import { MenuItem } from '../../models/menu-items.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Reusable breadcrumb component for displaying and navigating through a hierarchy of pages.
|
|
@@ -10,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class BreadcrumbComponent implements OnDestroy {
|
|
12
13
|
activatedRoute: ActivatedRoute;
|
|
13
|
-
router
|
|
14
|
+
private router;
|
|
14
15
|
breadcrumbService: BreadcrumbService;
|
|
15
16
|
breadcrumbTexts: any;
|
|
16
17
|
rootParentCount: number;
|
|
@@ -29,8 +30,9 @@ export declare class BreadcrumbComponent implements OnDestroy {
|
|
|
29
30
|
*/
|
|
30
31
|
breadcrumbInitialRouteLabel: any;
|
|
31
32
|
breadcrumbs: Breadcrumb[];
|
|
32
|
-
breadcrumbLevel: number;
|
|
33
33
|
destroy$: Subject<boolean>;
|
|
34
|
+
static readonly ROUTE_DATA_BREADCRUMB = "breadcrumb";
|
|
35
|
+
menuItems: MenuItem[];
|
|
34
36
|
constructor(activatedRoute: ActivatedRoute, router: Router, breadcrumbService: BreadcrumbService);
|
|
35
37
|
/**
|
|
36
38
|
* Sets up the subscription to router events to update breadcrumbs.
|
|
@@ -38,6 +40,7 @@ export declare class BreadcrumbComponent implements OnDestroy {
|
|
|
38
40
|
*/
|
|
39
41
|
setRouteData(): void;
|
|
40
42
|
/**
|
|
43
|
+
*
|
|
41
44
|
* Recursively gets the breadcrumb items for the given route.
|
|
42
45
|
* @param {ActivatedRoute} route - The activated route.
|
|
43
46
|
* @param {string} [url=''] - The current URL.
|
|
@@ -45,21 +48,7 @@ export declare class BreadcrumbComponent implements OnDestroy {
|
|
|
45
48
|
* @return {Breadcrumb[]} - The array of breadcrumb items.
|
|
46
49
|
* @memberof BreadcrumbComponent
|
|
47
50
|
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Returns breadcrumb label.
|
|
51
|
-
* @param {ActivatedRouteSnapshot} snapshot
|
|
52
|
-
* @return {*}
|
|
53
|
-
* @memberof BreadcrumbComponent
|
|
54
|
-
*/
|
|
55
|
-
getExtrasState(snapshot: ActivatedRouteSnapshot): any;
|
|
56
|
-
/**
|
|
57
|
-
* Navigates to the specified breadcrumb item.
|
|
58
|
-
* @param {Breadcrumb} breadcrumb -The breadcrumb item to navigate to.
|
|
59
|
-
* @param {number} index -The index of the breadcrumb item.
|
|
60
|
-
* @memberof BreadcrumbComponent
|
|
61
|
-
*/
|
|
62
|
-
navigate(breadcrumb: Breadcrumb, index: number): void;
|
|
51
|
+
createBreadcrumbs(route: ActivatedRoute, url?: string, breadcrumbs?: Breadcrumb[]): any;
|
|
63
52
|
/**
|
|
64
53
|
* Takes the index and the current item as arguments and needs to return the unique identifier for this item.
|
|
65
54
|
* @param {number} index
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BreadcrumbService {
|
|
3
|
-
isPreviousExtrasPresent: boolean
|
|
3
|
+
isPreviousExtrasPresent: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the status of whether previous extras are present.
|
|
6
6
|
* @param {boolean} flag -Boolean flag indicating if previous extras are present.
|
|
7
7
|
* @memberof BreadcrumbService
|
|
8
8
|
*/
|
|
9
|
-
setPreviousExtras(flag: boolean
|
|
9
|
+
setPreviousExtras(flag: boolean): void;
|
|
10
10
|
/**
|
|
11
11
|
* Retrieves the status of whether previous extras are present.
|
|
12
12
|
* @return {boolean} -Boolean indicating if previous extras are present.
|
|
13
13
|
* @memberof BreadcrumbService
|
|
14
14
|
*/
|
|
15
|
-
getPreviousExtras(): boolean
|
|
15
|
+
getPreviousExtras(): boolean;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
17
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
18
18
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export * from './lib/models/icon-button.model';
|
|
|
69
69
|
export * from './lib/models/legend.model';
|
|
70
70
|
export * from './lib/models/link-type.model';
|
|
71
71
|
export * from './lib/models/list-item.model';
|
|
72
|
+
export * from './lib/models/menu-items.model';
|
|
72
73
|
export * from './lib/models/menu.model';
|
|
73
74
|
export * from './lib/models/navigation-menu.model';
|
|
74
75
|
export * from './lib/models/radio-option.model';
|