@luigi-project/core-modular 0.0.6 → 0.0.7
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/custom-messages.d.ts +7 -0
- package/core-api/luigi.d.ts +3 -0
- package/core-api/navigation.d.ts +2 -2
- package/luigi-engine.d.ts +1 -1
- package/luigi.js +13 -13
- package/luigi.js.map +1 -1
- package/modules/ui-module.d.ts +2 -2
- package/package.json +1 -1
- package/types/connector.d.ts +2 -2
- package/types/navigation.d.ts +7 -1
- package/utilities/helpers/custom-messages-helpers.d.ts +8 -0
- package/utilities/helpers/luigi-container-helpers.d.ts +2 -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 { ModalSettings, Node } from '../types/navigation';
|
|
4
|
+
import { DrawerSettings, ModalSettings, Node } from '../types/navigation';
|
|
5
5
|
import { LuigiParams } from '../types/routing';
|
|
6
6
|
export declare const UIModule: {
|
|
7
7
|
navService: NavigationService;
|
|
@@ -14,5 +14,5 @@ export declare const UIModule: {
|
|
|
14
14
|
updateMainContent: (currentNode: Node, luigi: Luigi, luigiParams?: LuigiParams, withoutSync?: boolean, preventContextUpdate?: boolean) => Promise<void>;
|
|
15
15
|
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
16
16
|
updateModalSettings: (modalSettings: ModalSettings, addHistoryEntry: boolean, luigi: Luigi) => void;
|
|
17
|
-
openDrawer: (luigi: Luigi, node: Node, drawerSettings:
|
|
17
|
+
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
18
18
|
};
|
package/package.json
CHANGED
package/types/connector.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AlertHandler, AlertSettings, ConfirmationModalHandler, ConfirmationModalSettings, UserSettings } from '../modules/ux-module';
|
|
2
|
-
import { ModalSettings, LeftNavData, Node, TopNavData, TabNavData, BreadcrumbData } from './navigation';
|
|
2
|
+
import { ModalSettings, LeftNavData, Node, TopNavData, TabNavData, BreadcrumbData, DrawerSettings } from './navigation';
|
|
3
3
|
export interface LuigiConnector {
|
|
4
4
|
renderMainLayout(): void;
|
|
5
5
|
renderTopNav(data: TopNavData): void;
|
|
6
6
|
renderLeftNav(data: LeftNavData): void;
|
|
7
7
|
getContainerWrapper(): HTMLElement;
|
|
8
8
|
renderModal(content: HTMLElement, modalSettings: ModalSettings, onCloseCallback?: () => void, onCloseRequest?: () => void): any;
|
|
9
|
-
renderDrawer(content: HTMLElement, modalSettings:
|
|
9
|
+
renderDrawer(content: HTMLElement, modalSettings: DrawerSettings, onCloseCallback?: () => void): any;
|
|
10
10
|
renderTabNav(data: TabNavData): void;
|
|
11
11
|
renderBreadcrumbs(data: BreadcrumbData): void;
|
|
12
12
|
renderAlert(alertSettings: AlertSettings, alertHandler: AlertHandler): void;
|
package/types/navigation.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export interface Node {
|
|
|
92
92
|
};
|
|
93
93
|
compound?: CompoundConfig;
|
|
94
94
|
context?: Record<string, any>;
|
|
95
|
-
drawer?:
|
|
95
|
+
drawer?: DrawerSettings;
|
|
96
96
|
decodeViewUrl?: boolean;
|
|
97
97
|
externalLink?: ExternalLink;
|
|
98
98
|
hideFromNav?: boolean;
|
|
@@ -176,6 +176,12 @@ export interface BreadcrumbData {
|
|
|
176
176
|
renderer?: any;
|
|
177
177
|
selectedNode?: Node;
|
|
178
178
|
}
|
|
179
|
+
export interface DrawerSettings {
|
|
180
|
+
backdrop?: boolean;
|
|
181
|
+
header?: any;
|
|
182
|
+
overlap?: boolean;
|
|
183
|
+
size?: 'l' | 'm' | 's' | 'xs';
|
|
184
|
+
}
|
|
179
185
|
export interface ModalSettings {
|
|
180
186
|
size?: 'fullscreen' | 'l' | 'm' | 's';
|
|
181
187
|
width?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare class CustomMessagesHelpersClass {
|
|
2
|
+
filterIdFromMessageObject(message: Record<string, any>): {
|
|
3
|
+
id: string | undefined;
|
|
4
|
+
messageWithoutId: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare const CustomMessagesHelpers: CustomMessagesHelpersClass;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Luigi } from '../../core-api/luigi';
|
|
2
|
+
import { default as LuigiContainer } from '@luigi-project/container/LuigiContainer.svelte';
|
|
2
3
|
export type MicrofrontendEntry = {
|
|
3
4
|
iframe: HTMLElement;
|
|
4
5
|
id: string;
|
|
@@ -15,4 +16,5 @@ export declare const LuigiContainerHelpers: {
|
|
|
15
16
|
getMainMicrofrontends(luigi: Luigi): MicrofrontendEntry[];
|
|
16
17
|
getModalMicrofrontends(): MicrofrontendEntry[];
|
|
17
18
|
getDrawerMicrofrontends(): MicrofrontendEntry;
|
|
19
|
+
getAllLuigiContainerIframe(luigi: Luigi): LuigiContainer[] | undefined;
|
|
18
20
|
};
|