@luigi-project/core-modular 0.0.10-dev.202606280115 → 0.0.10-dev.202606300110

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/package.json CHANGED
@@ -18,5 +18,5 @@
18
18
  "micro-frontends",
19
19
  "microfrontends"
20
20
  ],
21
- "version": "0.0.10-dev.202606280115"
21
+ "version": "0.0.10-dev.202606300110"
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import { Luigi } from '../core-api/luigi';
2
- import { AppSwitcher, BreadcrumbData, LeftNavData, NavigationOptions, NavigationRequestParams, NavItem, Node, PathData, TabNavData, TopNavData } from '../types/navigation';
2
+ import { AppSwitcher, BadgeCounter, BreadcrumbData, LeftNavData, NavigationOptions, NavigationRequestParams, NavItem, Node, PathData, TabNavData, TopNavData } from '../types/navigation';
3
3
  import { ModalService } from './modal.service';
4
4
  import { NodeDataManagementService } from './node-data-management.service';
5
5
  export declare class NavigationService {
@@ -12,7 +12,10 @@ export declare class NavigationService {
12
12
  private getNodeDataManagementService;
13
13
  getPathData(path: string): Promise<PathData>;
14
14
  findMatchingNode(urlPathElement: string, nodes: Node[]): Node | undefined;
15
- buildNavItems(nodes: Node[], selectedNode: Node | undefined, pathData: PathData): NavItem[];
15
+ buildNavItems(nodes: Node[], selectedNode: Node | undefined, pathData: PathData): Promise<{
16
+ items: NavItem[];
17
+ totalBadgeNode: BadgeCounter | undefined;
18
+ }>;
16
19
  getCurrentNode(path: string): Promise<Node | undefined>;
17
20
  getPathParams(path: string): Promise<Record<string, any>>;
18
21
  /**
@@ -10,6 +10,7 @@ export interface TopNavData {
10
10
  productSwitcher?: ProductSwitcher;
11
11
  profile?: ProfileSettings;
12
12
  topNodes: NavItem[];
13
+ totalBadgeNode?: BadgeCounter;
13
14
  }
14
15
  export interface AppSwitcher {
15
16
  showMainAppEntry?: boolean;
@@ -100,6 +101,7 @@ export interface LeftNavData {
100
101
  items: NavItem[];
101
102
  basePath: string;
102
103
  sideNavFooterText?: string;
104
+ totalBadgeNode?: BadgeCounter;
103
105
  navClick?: (item: NavItem) => Promise<void>;
104
106
  }
105
107
  export interface PathData {
@@ -114,13 +116,14 @@ export interface PathData {
114
116
  export interface RootNode {
115
117
  node: Node;
116
118
  }
119
+ export interface BadgeCounter {
120
+ count?: () => number | Promise<number>;
121
+ label?: string;
122
+ }
117
123
  export interface Node {
118
124
  altText?: string;
119
125
  anonymousAccess?: any;
120
- badgeCounter?: {
121
- count?: () => number | Promise<number>;
122
- label?: string;
123
- };
126
+ badgeCounter?: BadgeCounter;
124
127
  category?: any;
125
128
  children?: Node[];
126
129
  clientPermissions?: {
@@ -198,6 +201,7 @@ export interface BreadcrumbItem {
198
201
  }
199
202
  export interface NavItem {
200
203
  altText?: string;
204
+ badgeCounter?: BadgeCounter;
201
205
  category?: Category;
202
206
  externalLink?: ExternalLink;
203
207
  href?: string;
@@ -208,10 +212,11 @@ export interface NavItem {
208
212
  tooltip?: string;
209
213
  }
210
214
  export interface TabNavData {
211
- selectedNode?: any;
212
- items?: NavItem[];
213
215
  basePath?: string;
216
+ items?: NavItem[];
214
217
  navClick?: (item: NavItem) => Promise<void>;
218
+ selectedNode?: any;
219
+ totalBadgeNode?: BadgeCounter;
215
220
  }
216
221
  export interface BreadcrumbData {
217
222
  basePath?: string;