@luigi-project/core-modular 0.0.3-dev.202602111100 → 0.0.3-dev.202602121544
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/luigi-engine.d.ts +1 -1
- package/luigi.js +2 -2
- package/luigi.js.map +1 -1
- package/modules/ui-module.d.ts +1 -1
- package/package.json +1 -1
- package/services/navigation.service.d.ts +20 -1
- package/services/routing.service.d.ts +2 -1
package/modules/ui-module.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const UIModule: {
|
|
|
7
7
|
luigi: Luigi;
|
|
8
8
|
init: (luigi: Luigi) => void;
|
|
9
9
|
update: (scopes?: string[]) => Promise<void>;
|
|
10
|
-
updateMainContent: (currentNode: any, luigi: Luigi) => Promise<void>;
|
|
10
|
+
updateMainContent: (currentNode: any, luigi: Luigi, withoutSync?: boolean, preventContextUpdate?: boolean) => Promise<void>;
|
|
11
11
|
openModal: (luigi: Luigi, node: any, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
12
12
|
updateModalSettings: (modalSettings: ModalSettings, addHistoryEntry: boolean, luigi: Luigi) => void;
|
|
13
13
|
openDrawer: (luigi: Luigi, node: any, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -174,6 +174,14 @@ export interface ExternalLink {
|
|
|
174
174
|
url?: string;
|
|
175
175
|
sameWindow?: boolean;
|
|
176
176
|
}
|
|
177
|
+
export interface NavigationRequestParams {
|
|
178
|
+
modalSettings?: any;
|
|
179
|
+
newTab?: boolean;
|
|
180
|
+
path: string;
|
|
181
|
+
preserveView?: string;
|
|
182
|
+
preventContextUpdate?: boolean;
|
|
183
|
+
withoutSync?: boolean;
|
|
184
|
+
}
|
|
177
185
|
export declare class NavigationService {
|
|
178
186
|
private luigi;
|
|
179
187
|
nodeDataManagementService?: NodeDataManagementService;
|
|
@@ -234,7 +242,18 @@ export declare class NavigationService {
|
|
|
234
242
|
private resolveTooltipText;
|
|
235
243
|
private prepareRootNodes;
|
|
236
244
|
private getAccessibleNodes;
|
|
237
|
-
|
|
245
|
+
/**
|
|
246
|
+
* Deal with route changing scenario.
|
|
247
|
+
* @param {NavigationRequestParams} params - the params to configure navigation request
|
|
248
|
+
* @param {string} params.path - the path of the view to open
|
|
249
|
+
* @param {string} params.preserveView - preserve a view by setting it to specific value (optional)
|
|
250
|
+
* @param {any} params.modalSettings - settings to configure the modal's title and size (optional)
|
|
251
|
+
* @param {boolean} params.newTab - open a view in new tab by setting it to `true` (optional)
|
|
252
|
+
* @param {boolean} params.withoutSync - disables the navigation handling for a single navigation request (optional)
|
|
253
|
+
* @param {boolean} params.preventContextUpdate - make no context update being triggered; default is false (optional)
|
|
254
|
+
* @param {any} callbackFn - callback to be triggered after opening view as modal (optional)
|
|
255
|
+
*/
|
|
256
|
+
handleNavigationRequest(params: NavigationRequestParams, callbackFn?: any): Promise<void>;
|
|
238
257
|
getChildren(node: Node | undefined, context?: Record<string, any>): Promise<Node[]>;
|
|
239
258
|
getExpandStructuralPathSegment(node: Node): Node;
|
|
240
259
|
bindChildToParent(child: Node, node: Node): Node;
|
|
@@ -39,12 +39,13 @@ export declare class RoutingService {
|
|
|
39
39
|
* Deal with route changing scenario.
|
|
40
40
|
* @param {Object} routeInfo - the information about path and query
|
|
41
41
|
* @param {boolean} withoutSync - disables the navigation handling for a single navigation request
|
|
42
|
+
* @param {boolean} preventContextUpdate - make no context update being triggered
|
|
42
43
|
* @returns {Promise<void>} A promise that resolves when route change is complete.
|
|
43
44
|
*/
|
|
44
45
|
handleRouteChange(routeInfo: {
|
|
45
46
|
path: string;
|
|
46
47
|
query: string;
|
|
47
|
-
}, withoutSync?: boolean): Promise<void>;
|
|
48
|
+
}, withoutSync?: boolean, preventContextUpdate?: boolean): Promise<void>;
|
|
48
49
|
getCurrentRoute(): Route | undefined;
|
|
49
50
|
/**
|
|
50
51
|
* If `showModalPathInUrl` is provided, bookmarkable modal path will be triggered.
|