@luigi-project/core-modular 0.0.3 → 0.0.4
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 +26 -1
- package/luigi-engine.d.ts +6 -6
- package/luigi.js +33 -12
- package/luigi.js.map +1 -1
- package/modules/routing-module.d.ts +1 -1
- package/modules/ui-module.d.ts +3 -2
- package/package.json +1 -1
- package/services/modal.service.d.ts +1 -1
- package/services/navigation.service.d.ts +45 -176
- package/services/node-data-management.service.d.ts +1 -1
- package/services/routing.service.d.ts +4 -2
- package/types/connector.d.ts +1 -1
- package/types/navigation.d.ts +201 -0
- package/utilities/helpers/generic-helpers.d.ts +38 -0
- package/utilities/helpers/navigation-helpers.d.ts +7 -1
- package/utilities/helpers/routing-helpers.d.ts +37 -1
package/core-api/navigation.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ModalService } from '../services/modal.service';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationService } from '../services/navigation.service';
|
|
3
3
|
import { RoutingService } from '../services/routing.service';
|
|
4
|
+
import { ModalSettings, NavigationOptions } from '../types/navigation';
|
|
4
5
|
import { Luigi } from './luigi';
|
|
5
6
|
export declare class Navigation {
|
|
6
7
|
luigi: Luigi;
|
|
@@ -8,9 +9,33 @@ export declare class Navigation {
|
|
|
8
9
|
navService: NavigationService;
|
|
9
10
|
routingService: RoutingService;
|
|
10
11
|
modalService: ModalService;
|
|
12
|
+
options: NavigationOptions;
|
|
11
13
|
constructor(luigi: Luigi);
|
|
12
14
|
navigate: (path: string, preserveView?: string, modalSettings?: ModalSettings, splitViewSettings?: any, drawerSettings?: any) => Promise<void>;
|
|
13
15
|
openAsModal: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
14
16
|
openAsDrawer: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
15
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(): Navigation;
|
|
25
|
+
/**
|
|
26
|
+
* Allows navigation from the node which has the navigation context set.
|
|
27
|
+
* @param navigationContext
|
|
28
|
+
* @returns {navigation} navigation instance
|
|
29
|
+
*/
|
|
30
|
+
fromContext(navigationContext: string): Navigation;
|
|
31
|
+
/**
|
|
32
|
+
* Allows navigation from the closest node which has the navigation context set. If there are multiple nodes with the same navigation context, the closest one will be used as the navigation base.
|
|
33
|
+
* @returns {navigation} navigation instance
|
|
34
|
+
*/
|
|
35
|
+
fromClosestContext(): Navigation;
|
|
36
|
+
/**
|
|
37
|
+
* Allows navigation from the parent node. The parent node is the node one level above the active node in the navigation tree. If the active node is a root node, this method has no effect.
|
|
38
|
+
* @returns {navigation} navigation instance
|
|
39
|
+
*/
|
|
40
|
+
fromParent(): Navigation;
|
|
16
41
|
}
|
package/luigi-engine.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export declare class LuigiEngine {
|
|
|
11
11
|
luigi: import('./core-api/luigi').Luigi;
|
|
12
12
|
init: (luigi: import('./core-api/luigi').Luigi) => void;
|
|
13
13
|
update: (scopes?: string[]) => Promise<void>;
|
|
14
|
-
updateMainContent: (currentNode: any, luigi: import('./core-api/luigi').Luigi) => Promise<void>;
|
|
15
|
-
openModal: (luigi: import('./core-api/luigi').Luigi, node: any, modalSettings: import('./
|
|
16
|
-
updateModalSettings: (modalSettings: import('./
|
|
17
|
-
openDrawer: (luigi: import('./core-api/luigi').Luigi, node: any, modalSettings: import('./
|
|
14
|
+
updateMainContent: (currentNode: any, luigi: import('./core-api/luigi').Luigi, withoutSync?: boolean, preventContextUpdate?: boolean) => Promise<void>;
|
|
15
|
+
openModal: (luigi: import('./core-api/luigi').Luigi, node: any, modalSettings: import('./types/navigation').ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
16
|
+
updateModalSettings: (modalSettings: import('./types/navigation').ModalSettings, addHistoryEntry: boolean, luigi: import('./core-api/luigi').Luigi) => void;
|
|
17
|
+
openDrawer: (luigi: import('./core-api/luigi').Luigi, node: any, modalSettings: import('./types/navigation').ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
18
18
|
};
|
|
19
19
|
_comm: {
|
|
20
20
|
luigi: import('./core-api/luigi').Luigi;
|
|
@@ -31,8 +31,8 @@ export declare class LuigiEngine {
|
|
|
31
31
|
};
|
|
32
32
|
_routing: {
|
|
33
33
|
init: (luigi: import('./core-api/luigi').Luigi) => void;
|
|
34
|
-
handlePageErrorHandler: (pageErrorHandler: import('./
|
|
35
|
-
handleExternalLinkNavigation: (externalLink: import('./
|
|
34
|
+
handlePageErrorHandler: (pageErrorHandler: import('./types/navigation').PageErrorHandler, node: import('./types/navigation').Node, luigi: import('./core-api/luigi').Luigi) => void;
|
|
35
|
+
handleExternalLinkNavigation: (externalLink: import('./types/navigation').ExternalLink) => void;
|
|
36
36
|
addSearchParamsFromClient(searchParams: Record<string, any>, keepBrowserHistory: boolean, luigi: import('./core-api/luigi').Luigi): Promise<void>;
|
|
37
37
|
};
|
|
38
38
|
bootstrap(connector: LuigiConnector): void;
|