@luigi-project/core-modular 0.0.8 → 0.0.9-dev.202606110118
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/ux.d.ts +2 -3
- package/luigi-engine.d.ts +1 -0
- package/luigi.js +23 -23
- package/luigi.js.map +1 -1
- package/modules/ui-module.d.ts +2 -1
- package/package.json +1 -1
- package/types/connector.d.ts +3 -3
- package/types/navigation.d.ts +9 -0
package/modules/ui-module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Luigi } from '../core-api/luigi';
|
|
2
2
|
import { NavigationService } from '../services/navigation.service';
|
|
3
3
|
import { RoutingService } from '../services/routing.service';
|
|
4
|
-
import { DrawerSettings, ModalSettings, Node } from '../types/navigation';
|
|
4
|
+
import { DrawerSettings, ModalSettings, Node, UserSettingsDialogSettings } from '../types/navigation';
|
|
5
5
|
import { LuigiParams } from '../types/routing';
|
|
6
6
|
export declare const UIModule: {
|
|
7
7
|
navService: NavigationService;
|
|
@@ -15,4 +15,5 @@ export declare const UIModule: {
|
|
|
15
15
|
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
16
16
|
updateModalSettings: (modalSettings: ModalSettings, addHistoryEntry: boolean, luigi: Luigi) => void;
|
|
17
17
|
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
18
|
+
openUserSettings: (userSettingsDialogSettings: UserSettingsDialogSettings, userSettingData: any, previousUserSettings: any, luigi: Luigi) => Promise<void>;
|
|
18
19
|
};
|
package/package.json
CHANGED
package/types/connector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AlertHandler, AlertSettings, ConfirmationModalHandler, ConfirmationModalSettings
|
|
2
|
-
import { ModalSettings, LeftNavData, Node, TopNavData, TabNavData, BreadcrumbData, DrawerSettings } from './navigation';
|
|
1
|
+
import { AlertHandler, AlertSettings, ConfirmationModalHandler, ConfirmationModalSettings } from '../modules/ux-module';
|
|
2
|
+
import { ModalSettings, LeftNavData, Node, TopNavData, TabNavData, BreadcrumbData, DrawerSettings, UserSettingsDialogSettings } from './navigation';
|
|
3
3
|
export interface LuigiConnector {
|
|
4
4
|
renderMainLayout(): void;
|
|
5
5
|
renderTopNav(data: TopNavData): void;
|
|
@@ -17,7 +17,7 @@ export interface LuigiConnector {
|
|
|
17
17
|
hideLoadingIndicator(container?: HTMLElement): void;
|
|
18
18
|
addBackdrop(): void;
|
|
19
19
|
removeBackdrop(): void;
|
|
20
|
-
openUserSettings(
|
|
20
|
+
openUserSettings(dialogSettings: UserSettingsDialogSettings, userSettingData: any[], previousUserSettings: any): void;
|
|
21
21
|
closeUserSettings(): void;
|
|
22
22
|
setCurrentLocale(locale: string): void;
|
|
23
23
|
getCurrentLocale(): string;
|
package/types/navigation.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export interface ProfileSettings {
|
|
|
59
59
|
export interface UserSettingsProfileMenuEntry {
|
|
60
60
|
label?: string;
|
|
61
61
|
link?: string;
|
|
62
|
+
openUserSettings?: () => void;
|
|
62
63
|
}
|
|
63
64
|
export interface ProfileLogout {
|
|
64
65
|
label?: string;
|
|
@@ -68,6 +69,7 @@ export interface ProfileLogout {
|
|
|
68
69
|
doLogout: () => void;
|
|
69
70
|
}
|
|
70
71
|
export interface ProfileItem {
|
|
72
|
+
children?: ProfileItem[];
|
|
71
73
|
label?: string;
|
|
72
74
|
link?: string;
|
|
73
75
|
externalLink?: ExternalLink;
|
|
@@ -76,6 +78,13 @@ export interface ProfileItem {
|
|
|
76
78
|
altText?: string;
|
|
77
79
|
openNodeInModal?: boolean | ModalSettings;
|
|
78
80
|
}
|
|
81
|
+
export interface UserSettingsDialogSettings {
|
|
82
|
+
dialogHeader?: string;
|
|
83
|
+
saveBtn?: string;
|
|
84
|
+
dismissBtn?: string;
|
|
85
|
+
renderMicroFrontendContainer?: (viewUrl: string, groupKey: string) => Promise<any>;
|
|
86
|
+
onCloseCallback?: (storedUserSettings: any, previousUserSettings: any) => void;
|
|
87
|
+
}
|
|
79
88
|
export interface UserInfo {
|
|
80
89
|
name?: string;
|
|
81
90
|
initials?: string;
|