@platform-mesh/portal-ui-lib 0.73.0 → 0.74.0

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,149 +1,137 @@
1
- import { NodeContext, LuigiNode, EntityDefinition, CustomGlobalNodesService, CustomNodeProcessingService, HeaderBarConfigService, HeaderBarConfig, LuigiExtendedGlobalContextConfigService, NavigationRedirectStrategy, NodeChangeHookConfigService, NodeContextProcessingService, RoutingConfigService, UserProfileConfigService, UserProfile, CustomMessageListener, ErrorComponentConfig } from '@openmfp/portal-ui-lib';
2
- import { ResourceDefinition, Permission } from '@platform-mesh/portal-ui-lib/models';
3
- import * as i0 from '@angular/core';
4
-
1
+ import { CustomGlobalNodesService, CustomMessageListener, CustomNodeProcessingService, EntityDefinition, ErrorComponentConfig, HeaderBarConfig, HeaderBarConfigService, LuigiExtendedGlobalContextConfigService, LuigiNode, NavigationRedirectStrategy, NodeChangeHookConfigService, NodeContext, NodeContextProcessingService, RoutingConfigService, UserProfile, UserProfileConfigService } from "@openmfp/portal-ui-lib";
2
+ import { Permission, ResourceDefinition } from "@platform-mesh/portal-ui-lib/models";
3
+ import * as i0 from "@angular/core";
5
4
  interface PortalContext extends Record<string, any> {
6
- crdGatewayApiUrl: string;
5
+ crdGatewayApiUrl: string;
7
6
  }
8
7
  interface PortalEntityContext {
9
- account: {
10
- id: string;
11
- };
8
+ account: {
9
+ id: string;
10
+ };
12
11
  }
13
12
  interface PortalNodeContext extends NodeContext {
14
- portalContext: PortalContext;
15
- organizationId?: string;
16
- kcpCA?: string;
17
- kcpPath?: string;
18
- accountPath?: string;
19
- translationTable?: any;
20
- namespaceId?: string;
21
- namespaces?: string[];
22
- entityErrorCode?: number;
23
- entityName?: string;
24
- entityKind?: string;
25
- entityId?: string;
26
- entityContext?: PortalEntityContext;
27
- resourceDefinition?: ResourceDefinition;
28
- nodesPermissions?: Permission[];
29
- portalPermissions?: {
30
- [key: string]: string[];
31
- };
13
+ portalContext: PortalContext;
14
+ organizationId?: string;
15
+ kcpCA?: string;
16
+ kcpPath?: string;
17
+ accountPath?: string;
18
+ translationTable?: any;
19
+ namespaceId?: string;
20
+ namespaces?: string[];
21
+ entityErrorCode?: number;
22
+ entityName?: string;
23
+ entityKind?: string;
24
+ entityId?: string;
25
+ entityContext?: PortalEntityContext;
26
+ resourceDefinition?: ResourceDefinition;
27
+ nodesPermissions?: Permission[];
28
+ portalPermissions?: {
29
+ [key: string]: string[];
30
+ };
32
31
  }
33
-
34
32
  interface PortalLuigiNode extends LuigiNode {
35
- defineEntity?: PMEntityDefinition;
36
- context: PortalNodeContext;
37
- parent?: PortalLuigiNode;
38
- keepSelectedForChildren?: boolean;
33
+ defineEntity?: PMEntityDefinition;
34
+ context: PortalNodeContext;
35
+ parent?: PortalLuigiNode;
36
+ keepSelectedForChildren?: boolean;
39
37
  }
40
38
  interface PMEntityDefinition extends EntityDefinition {
41
- type?: string;
39
+ type?: string;
42
40
  }
43
-
44
- declare class CustomGlobalNodesServiceImpl implements CustomGlobalNodesService {
45
- private i18nService;
46
- getCustomGlobalNodes(): Promise<PortalLuigiNode[]>;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomGlobalNodesServiceImpl, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
41
+ export declare class CustomGlobalNodesServiceImpl implements CustomGlobalNodesService {
42
+ private i18nService;
43
+ getCustomGlobalNodes(): Promise<PortalLuigiNode[]>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomGlobalNodesServiceImpl, never>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
49
46
  }
50
-
51
- declare class CustomNodeProcessingServiceImpl implements CustomNodeProcessingService {
52
- private luigiNodesService;
53
- private entityChildrenWrappers;
54
- private failedEntityNodeStates;
55
- processNode(ctx: PortalNodeContext, node: PortalLuigiNode): Promise<PortalLuigiNode>;
56
- private wrapEntityChildren;
57
- private resolveEntityChildren;
58
- private restoreEntityNode;
59
- private showErrorOnEntityNode;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomNodeProcessingServiceImpl, never>;
61
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
47
+ export declare class CustomNodeProcessingServiceImpl implements CustomNodeProcessingService {
48
+ private luigiNodesService;
49
+ private entityChildrenWrappers;
50
+ private failedEntityNodeStates;
51
+ processNode(ctx: PortalNodeContext, node: PortalLuigiNode): Promise<PortalLuigiNode>;
52
+ private wrapEntityChildren;
53
+ private resolveEntityChildren;
54
+ private restoreEntityNode;
55
+ private showErrorOnEntityNode;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomNodeProcessingServiceImpl, never>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
62
58
  }
63
-
64
- declare class HeaderBarConfigServiceImpl implements HeaderBarConfigService {
65
- private configService;
66
- private namespaceSelectionRendererService;
67
- getConfig(): Promise<HeaderBarConfig>;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarConfigServiceImpl, never>;
69
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
59
+ export declare class HeaderBarConfigServiceImpl implements HeaderBarConfigService {
60
+ private configService;
61
+ private namespaceSelectionRendererService;
62
+ getConfig(): Promise<HeaderBarConfig>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarConfigServiceImpl, never>;
64
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
70
65
  }
71
-
72
- declare class LuigiExtendedGlobalContextConfigServiceImpl implements LuigiExtendedGlobalContextConfigService {
73
- private envConfigService;
74
- createLuigiExtendedGlobalContext(): Promise<Record<string, any>>;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<LuigiExtendedGlobalContextConfigServiceImpl, never>;
76
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
66
+ export declare class LuigiExtendedGlobalContextConfigServiceImpl implements LuigiExtendedGlobalContextConfigService {
67
+ private envConfigService;
68
+ createLuigiExtendedGlobalContext(): Promise<Record<string, any>>;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuigiExtendedGlobalContextConfigServiceImpl, never>;
70
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
77
71
  }
78
-
79
- declare class NavigationRedirectStrategyServiceImpl implements NavigationRedirectStrategy {
80
- getRedirectUrl(): string;
81
- saveRedirectUrl(url: string): void;
82
- clearRedirectUrl(): void;
83
- static ɵfac: i0.ɵɵFactoryDeclaration<NavigationRedirectStrategyServiceImpl, never>;
84
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
72
+ export declare class NavigationRedirectStrategyServiceImpl implements NavigationRedirectStrategy {
73
+ getRedirectUrl(): string;
74
+ saveRedirectUrl(url: string): void;
75
+ clearRedirectUrl(): void;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationRedirectStrategyServiceImpl, never>;
77
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
85
78
  }
86
-
87
- declare class NodeChangeHookConfigServiceImpl implements NodeChangeHookConfigService {
88
- private luigiCoreService;
89
- private crdGatewayKcpPatchResolver;
90
- private errorHandlerService;
91
- private persistentPanelService;
92
- private namespacedResourceSelectionService;
93
- nodeChangeHook(prevNode: PortalLuigiNode, nextNode: PortalLuigiNode, currentContext: NodeContext): Promise<void>;
94
- private accumulatePortalPermissions;
95
- static ɵfac: i0.ɵɵFactoryDeclaration<NodeChangeHookConfigServiceImpl, never>;
96
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
79
+ export declare class NodeChangeHookConfigServiceImpl implements NodeChangeHookConfigService {
80
+ private luigiCoreService;
81
+ private crdGatewayKcpPatchResolver;
82
+ private errorHandlerService;
83
+ private persistentPanelService;
84
+ private namespacedResourceSelectionService;
85
+ nodeChangeHook(prevNode: PortalLuigiNode, nextNode: PortalLuigiNode, currentContext: NodeContext): Promise<void>;
86
+ private accumulatePortalPermissions;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeChangeHookConfigServiceImpl, never>;
88
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
97
89
  }
98
-
99
- declare class NodeContextProcessingServiceImpl implements NodeContextProcessingService {
100
- private crdGatewayKcpPatchResolver;
101
- private accountInfoService;
102
- private instancePermissionsService;
103
- private organizationReadyService;
104
- private errorHandlerService;
105
- private namespaceService;
106
- private namespacedResourceSelectionService;
107
- processNodeContext(dynamicEntityId: string, entityNode: PortalLuigiNode, ctx: PortalNodeContext): Promise<void>;
108
- private addFieldsToContext;
109
- private addNamespacesToContext;
110
- private addFieldsToContextFromAccountInfo;
111
- private getEntityPermissions;
112
- private accamulatePortalPermissions;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<NodeContextProcessingServiceImpl, never>;
114
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
90
+ export declare class NodeContextProcessingServiceImpl implements NodeContextProcessingService {
91
+ private crdGatewayKcpPatchResolver;
92
+ private accountInfoService;
93
+ private instancePermissionsService;
94
+ private organizationReadyService;
95
+ private errorHandlerService;
96
+ private namespaceService;
97
+ private namespacedResourceSelectionService;
98
+ processNodeContext(dynamicEntityId: string, entityNode: PortalLuigiNode, ctx: PortalNodeContext): Promise<void>;
99
+ private addFieldsToContext;
100
+ private addNamespacesToContext;
101
+ private addFieldsToContextFromAccountInfo;
102
+ private getEntityPermissions;
103
+ private accamulatePortalPermissions;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeContextProcessingServiceImpl, never>;
105
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
115
106
  }
116
-
117
- declare class CustomRoutingConfigServiceImpl implements RoutingConfigService {
118
- private envConfigService;
119
- private envConfig;
120
- constructor();
121
- getEnvConfig(): Promise<void>;
122
- getRoutingConfig(): any;
123
- redirectTo(path: string, keepURL?: boolean): any;
124
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomRoutingConfigServiceImpl, never>;
125
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
107
+ export declare class CustomRoutingConfigServiceImpl implements RoutingConfigService {
108
+ private envConfigService;
109
+ private envConfig;
110
+ constructor();
111
+ getEnvConfig(): Promise<void>;
112
+ getRoutingConfig(): any;
113
+ redirectTo(path: string, keepURL?: boolean): any;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomRoutingConfigServiceImpl, never>;
115
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
126
116
  }
127
-
128
- declare class UserProfileConfigServiceImpl implements UserProfileConfigService {
129
- private authService;
130
- getProfile(): Promise<UserProfile>;
131
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileConfigServiceImpl, never>;
132
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
117
+ export declare class UserProfileConfigServiceImpl implements UserProfileConfigService {
118
+ private authService;
119
+ getProfile(): Promise<UserProfile>;
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileConfigServiceImpl, never>;
121
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
133
122
  }
134
-
135
- declare class OpenPersistentPanelListener implements CustomMessageListener {
136
- private readonly luigiCoreService;
137
- private readonly persistentPanelService;
138
- messageId(): string;
139
- onCustomMessageReceived(customMessage: Record<string, unknown>, _microFrontend: unknown, microFrontendNode: {
140
- context?: NodeContext;
141
- viewUrl?: string;
142
- } | undefined): void;
143
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenPersistentPanelListener, never>;
144
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
123
+ export declare class OpenPersistentPanelListener implements CustomMessageListener {
124
+ private readonly luigiCoreService;
125
+ private readonly persistentPanelService;
126
+ messageId(): string;
127
+ onCustomMessageReceived(customMessage: Record<string, unknown>, _microFrontend: unknown, microFrontendNode: {
128
+ context?: NodeContext;
129
+ viewUrl?: string;
130
+ } | undefined): void;
131
+ private currentNodeParams;
132
+ private sanitizeNodeParam;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenPersistentPanelListener, never>;
134
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
145
135
  }
146
-
147
- declare const errorComponentConfig: ErrorComponentConfig;
148
-
149
- export { CustomGlobalNodesServiceImpl, CustomNodeProcessingServiceImpl, CustomRoutingConfigServiceImpl, HeaderBarConfigServiceImpl, LuigiExtendedGlobalContextConfigServiceImpl, NavigationRedirectStrategyServiceImpl, NodeChangeHookConfigServiceImpl, NodeContextProcessingServiceImpl, OpenPersistentPanelListener, UserProfileConfigServiceImpl, errorComponentConfig };
136
+ export declare const errorComponentConfig: ErrorComponentConfig;
137
+ export {};