@luigi-project/core-modular 0.0.6-dev.202604270101 → 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.
@@ -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: ModalSettings, onCloseCallback?: () => void) => Promise<void>;
17
+ openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void) => Promise<void>;
18
18
  };
package/package.json CHANGED
@@ -18,5 +18,5 @@
18
18
  "micro-frontends",
19
19
  "microfrontends"
20
20
  ],
21
- "version": "0.0.6-dev.202604270101"
21
+ "version": "0.0.7"
22
22
  }
@@ -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: ModalSettings, onCloseCallback?: () => void): any;
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;
@@ -92,7 +92,7 @@ export interface Node {
92
92
  };
93
93
  compound?: CompoundConfig;
94
94
  context?: Record<string, any>;
95
- drawer?: ModalSettings;
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;