@luigi-project/core-modular 0.0.4-dev.202604130057 → 0.0.4-dev.202604150058
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 +17 -3
- package/luigi.js +10 -10
- package/luigi.js.map +1 -1
- package/modules/ux-module.d.ts +4 -3
- package/package.json +1 -1
- package/services/navigation.service.d.ts +2 -3
- package/services/routing.service.d.ts +18 -0
- package/types/navigation.d.ts +2 -0
- package/utilities/helpers/generic-helpers.d.ts +26 -2
- package/utilities/helpers/navigation-helpers.d.ts +9 -0
- package/utilities/helpers/routing-helpers.d.ts +35 -0
package/core-api/navigation.d.ts
CHANGED
|
@@ -15,9 +15,23 @@ export declare class Navigation {
|
|
|
15
15
|
openAsModal: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
16
16
|
openAsDrawer: (path: string, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
17
17
|
runTimeErrorHandler: (errorObj: object) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if the path you can navigate to exists in the main application. For example, you can use this helper method conditionally to display a DOM element like a button.
|
|
20
|
+
* @param {string} path - path which existence you want to check
|
|
21
|
+
* @returns {Promise<boolean>} A promise which resolves to a boolean variable specifying whether the path exists or not
|
|
22
|
+
* @example
|
|
23
|
+
* let pathExists;
|
|
24
|
+
* Luigi
|
|
25
|
+
* .navigation()
|
|
26
|
+
* .pathExists('projects/pr2')
|
|
27
|
+
* .then(
|
|
28
|
+
* (pathExists) => { }
|
|
29
|
+
* );
|
|
30
|
+
*/
|
|
31
|
+
pathExists: (path: string) => Promise<boolean>;
|
|
18
32
|
/**
|
|
19
33
|
* 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 {
|
|
34
|
+
* @returns {Navigation} navigation instance
|
|
21
35
|
* @example
|
|
22
36
|
* Luigi.navigation().fromVirtualTreeRoot().navigate('/users/groups/stakeholders')
|
|
23
37
|
*/
|
|
@@ -25,12 +39,12 @@ export declare class Navigation {
|
|
|
25
39
|
/**
|
|
26
40
|
* Allows navigation from the node which has the navigation context set.
|
|
27
41
|
* @param navigationContext
|
|
28
|
-
* @returns {
|
|
42
|
+
* @returns {Navigation} navigation instance
|
|
29
43
|
*/
|
|
30
44
|
fromContext(navigationContext: string): Navigation;
|
|
31
45
|
/**
|
|
32
46
|
* 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 {
|
|
47
|
+
* @returns {Navigation} navigation instance
|
|
34
48
|
*/
|
|
35
49
|
fromClosestContext(): Navigation;
|
|
36
50
|
/**
|