@luigi-project/core-modular 0.0.3-dev.202602251029 → 0.0.3-dev.202602260045
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/core-api/navigation.d.ts +9 -1
- package/luigi.js +40 -12
- package/luigi.js.map +1 -1
- package/package.json +1 -1
- package/services/navigation.service.d.ts +31 -1
- package/types/navigation.d.ts +11 -0
- package/utilities/helpers/generic-helpers.d.ts +26 -0
- package/utilities/helpers/navigation-helpers.d.ts +6 -0
- package/utilities/helpers/routing-helpers.d.ts +9 -0
package/core-api/navigation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModalService } from '../services/modal.service';
|
|
2
2
|
import { NavigationService } from '../services/navigation.service';
|
|
3
3
|
import { RoutingService } from '../services/routing.service';
|
|
4
|
-
import { ModalSettings } from '../types/navigation';
|
|
4
|
+
import { ModalSettings, NavigationOptions } from '../types/navigation';
|
|
5
5
|
import { Luigi } from './luigi';
|
|
6
6
|
export declare class Navigation {
|
|
7
7
|
luigi: Luigi;
|
|
@@ -9,9 +9,17 @@ export declare class Navigation {
|
|
|
9
9
|
navService: NavigationService;
|
|
10
10
|
routingService: RoutingService;
|
|
11
11
|
modalService: ModalService;
|
|
12
|
+
options: NavigationOptions;
|
|
12
13
|
constructor(luigi: Luigi);
|
|
13
14
|
navigate: (path: string, preserveView?: string, modalSettings?: ModalSettings, splitViewSettings?: any, drawerSettings?: any) => Promise<void>;
|
|
14
15
|
openAsModal: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
15
16
|
openAsDrawer: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
16
17
|
runTimeErrorHandler: (errorObj: object) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the current navigation base to the parent node that is defined as virtualTree. This method works only when the currently active micro frontend is inside a virtualTree.
|
|
20
|
+
* @returns {navigation} navigation instance
|
|
21
|
+
* @example
|
|
22
|
+
* Luigi.navigation().fromVirtualTreeRoot().navigate('/users/groups/stakeholders')
|
|
23
|
+
*/
|
|
24
|
+
fromVirtualTreeRoot(): this;
|
|
17
25
|
}
|