@luigi-project/core-modular 0.0.11-dev.20260730056 → 0.0.11-dev.202607300638
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 +1 -1
- package/core-api/routing.d.ts +2 -1
- package/core-api/ux.d.ts +4 -0
- package/luigi-engine.d.ts +3 -3
- package/luigi.js +1707 -1620
- package/luigi.js.map +1 -1
- package/modules/routing-module.d.ts +2 -1
- package/modules/ui-module.d.ts +2 -2
- package/package.json +1 -1
- package/types/connector.d.ts +4 -0
- package/types/navigation.d.ts +5 -0
- package/types/ux.d.ts +1 -1
- package/utilities/helpers/navigation-helpers.d.ts +2 -0
- package/utilities/helpers/routing-helpers.d.ts +1 -0
|
@@ -12,7 +12,8 @@ export declare const RoutingModule: {
|
|
|
12
12
|
*
|
|
13
13
|
* @param searchParams - An object containing key-value pairs of search parameters to be added to the URL.
|
|
14
14
|
* @param keepBrowserHistory - If `true`, the browser history will be preserved when updating the URL.
|
|
15
|
+
* @param preventLuigiConfigUpdate - If `true`, prevents updating the Luigi configuration when adding search parameters.
|
|
15
16
|
* @param luigi - The Luigi core instance used to interact with the routing API.
|
|
16
17
|
*/
|
|
17
|
-
addSearchParamsFromClient(searchParams: Record<string, any>, keepBrowserHistory: boolean, luigi: Luigi): Promise<void>;
|
|
18
|
+
addSearchParamsFromClient(searchParams: Record<string, any>, keepBrowserHistory: boolean, preventLuigiConfigUpdate: boolean, luigi: Luigi): Promise<void>;
|
|
18
19
|
};
|
package/modules/ui-module.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export declare const UIModule: {
|
|
|
12
12
|
init: (luigi: Luigi) => void;
|
|
13
13
|
update: (scopes?: string[]) => Promise<void>;
|
|
14
14
|
updateMainContent: (currentNode: Node, luigi: Luigi, luigiParams?: LuigiParams, withoutSync?: boolean, preventContextUpdate?: boolean) => Promise<void>;
|
|
15
|
-
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
15
|
+
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: (goBackValue?: any) => void, luigiParams?: LuigiParams) => Promise<void>;
|
|
16
16
|
updateModalSettings: (modalSettings: ModalSettings, addHistoryEntry: boolean, luigi: Luigi) => void;
|
|
17
|
-
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
17
|
+
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void, luigiParams?: LuigiParams) => Promise<void>;
|
|
18
18
|
openUserSettings: (userSettingsDialogSettings: UserSettingsDialogSettings, userSettingData: any, previousUserSettings: any, luigi: Luigi) => Promise<void>;
|
|
19
19
|
};
|
package/package.json
CHANGED
package/types/connector.d.ts
CHANGED
|
@@ -203,6 +203,10 @@ export interface LuigiConnector {
|
|
|
203
203
|
* no-refcount caveat applies.
|
|
204
204
|
*/
|
|
205
205
|
removeBackdrop(): void;
|
|
206
|
+
/**
|
|
207
|
+
* Set the collapsed state of the left side navigation.
|
|
208
|
+
*/
|
|
209
|
+
collapseLeftSideNav(state: boolean): void;
|
|
206
210
|
/**
|
|
207
211
|
* Open the user-settings dialog.
|
|
208
212
|
*
|
package/types/navigation.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface TopNavData {
|
|
|
4
4
|
appSwitcher?: AppSwitcher;
|
|
5
5
|
appTitle: string;
|
|
6
6
|
contextSwitcher?: ContextSwitcher;
|
|
7
|
+
isHeaderDisabled: boolean;
|
|
7
8
|
globalSearch?: GlobalSearch;
|
|
8
9
|
logo: string;
|
|
9
10
|
navClick?: (item: NavItem) => Promise<void>;
|
|
@@ -233,6 +234,7 @@ export interface DrawerSettings {
|
|
|
233
234
|
header?: DrawerHeader;
|
|
234
235
|
overlap?: boolean;
|
|
235
236
|
size?: 'l' | 'm' | 's' | 'xs';
|
|
237
|
+
nodeParams?: Record<string, any>;
|
|
236
238
|
}
|
|
237
239
|
export interface ModalSettings {
|
|
238
240
|
size?: 'fullscreen' | 'l' | 'm' | 's';
|
|
@@ -241,6 +243,7 @@ export interface ModalSettings {
|
|
|
241
243
|
title?: string;
|
|
242
244
|
closebtn_data_testid?: string;
|
|
243
245
|
keepPrevious?: boolean;
|
|
246
|
+
nodeParams?: Record<string, any>;
|
|
244
247
|
}
|
|
245
248
|
export interface ProductSwitcher {
|
|
246
249
|
altText?: string;
|
|
@@ -335,5 +338,7 @@ export interface TitleResolver {
|
|
|
335
338
|
export interface ViewGroupSettings {
|
|
336
339
|
preloadUrl?: string;
|
|
337
340
|
loadOnStartup?: boolean;
|
|
341
|
+
customData?: Record<string, any>;
|
|
342
|
+
_liveCustomData?: Record<string, any>;
|
|
338
343
|
}
|
|
339
344
|
export type HistoryMethod = 'pushState' | 'replaceState';
|
package/types/ux.d.ts
CHANGED
|
@@ -44,5 +44,7 @@ export declare const NavigationHelpers: {
|
|
|
44
44
|
label: string;
|
|
45
45
|
icon?: string;
|
|
46
46
|
};
|
|
47
|
+
getUrlOrigin(url: string): string | undefined;
|
|
48
|
+
findViewGroup(node: Node, originalNode?: Node): string | undefined;
|
|
47
49
|
openExternalLink(externalLink: ExternalLink, pathParams?: Record<string, any>): void;
|
|
48
50
|
};
|
|
@@ -48,6 +48,7 @@ export declare const RoutingHelpers: {
|
|
|
48
48
|
* @returns a string with the route or undefined, if node is not an ancestor of path-node
|
|
49
49
|
*/
|
|
50
50
|
mapPathToNode(path: string, node: Node): string | undefined;
|
|
51
|
+
resolveNodeLabel(node: Node, luigi: Luigi): string;
|
|
51
52
|
getNodeLabel(node: Node, luigi: Luigi): Promise<string>;
|
|
52
53
|
/**
|
|
53
54
|
* Retrieves the content view parameter prefix from the Luigi configuration.
|