@openmfp/portal-ui-lib 0.0.0 → 0.182.3
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/LICENSE +201 -0
- package/README.md +712 -0
- package/assets/249.js +1 -0
- package/assets/560.js +1 -0
- package/assets/955.js +1 -0
- package/assets/images/favicon.ico +0 -0
- package/assets/images/logo.png +0 -0
- package/assets/moments/sapIllus-Dialog-BeforeSearch-Alt.svg +22 -0
- package/assets/moments/sapIllus-Dialog-BeforeSearch.svg +13 -0
- package/assets/moments/sapIllus-Dialog-NoActivities.svg +18 -0
- package/assets/moments/sapIllus-Dialog-NoData.svg +10 -0
- package/assets/moments/sapIllus-Dialog-NoEntries.svg +16 -0
- package/assets/moments/sapIllus-Dialog-NoMail.svg +11 -0
- package/assets/moments/sapIllus-Dialog-NoNotifications.svg +12 -0
- package/assets/moments/sapIllus-Dialog-NoSavedItems.svg +13 -0
- package/assets/moments/sapIllus-Dialog-NoSearchResults-Alt.svg +14 -0
- package/assets/moments/sapIllus-Dialog-NoSearchResults.svg +15 -0
- package/assets/moments/sapIllus-Dialog-NoTasks.svg +18 -0
- package/assets/moments/sapIllus-Dialog-SuccessBalloon.svg +16 -0
- package/assets/moments/sapIllus-Dialog-SuccessCheckMark-Alt.svg +14 -0
- package/assets/moments/sapIllus-Dialog-SuccessCheckMark.svg +7 -0
- package/assets/moments/sapIllus-Dialog-SuccessHighFive.svg +31 -0
- package/assets/moments/sapIllus-Dialog-UnableToLoad-Alt.svg +12 -0
- package/assets/moments/sapIllus-Dialog-UnableToLoad-Alt2.svg +10 -0
- package/assets/moments/sapIllus-Dialog-UnableToLoad.svg +11 -0
- package/assets/moments/sapIllus-Dialog-UnableToUpload.svg +13 -0
- package/assets/moments/sapIllus-Scene-BeforeSearch.svg +31 -0
- package/assets/moments/sapIllus-Scene-NoActivities-Alt.svg +24 -0
- package/assets/moments/sapIllus-Scene-NoActivities.svg +28 -0
- package/assets/moments/sapIllus-Scene-NoData.svg +21 -0
- package/assets/moments/sapIllus-Scene-NoEntries.svg +30 -0
- package/assets/moments/sapIllus-Scene-NoMail.svg +23 -0
- package/assets/moments/sapIllus-Scene-NoNotifications.svg +36 -0
- package/assets/moments/sapIllus-Scene-NoSavedItems.svg +36 -0
- package/assets/moments/sapIllus-Scene-NoSearchResults-Alt.svg +44 -0
- package/assets/moments/sapIllus-Scene-NoSearchResults.svg +15 -0
- package/assets/moments/sapIllus-Scene-NoTasks.svg +22 -0
- package/assets/moments/sapIllus-Scene-SuccessBalloon.svg +33 -0
- package/assets/moments/sapIllus-Scene-SuccessCheckMark.svg +43 -0
- package/assets/moments/sapIllus-Scene-UnableToLoad.svg +23 -0
- package/assets/moments/sapIllus-Scene-UnableToUpload.svg +13 -0
- package/assets/moments/sapIllus-Spot-BeforeSearch-Alt.svg +10 -0
- package/assets/moments/sapIllus-Spot-BeforeSearch.svg +10 -0
- package/assets/moments/sapIllus-Spot-NoActivities.svg +23 -0
- package/assets/moments/sapIllus-Spot-NoData.svg +9 -0
- package/assets/moments/sapIllus-Spot-NoEntries.svg +12 -0
- package/assets/moments/sapIllus-Spot-NoMail.svg +10 -0
- package/assets/moments/sapIllus-Spot-NoNotifications.svg +10 -0
- package/assets/moments/sapIllus-Spot-NoSavedItems.svg +9 -0
- package/assets/moments/sapIllus-Spot-NoSearchResults-Alt.svg +14 -0
- package/assets/moments/sapIllus-Spot-NoSearchResults.svg +13 -0
- package/assets/moments/sapIllus-Spot-NoTasks.svg +20 -0
- package/assets/moments/sapIllus-Spot-SuccessBalloon.svg +19 -0
- package/assets/moments/sapIllus-Spot-SuccessCheckMark-Alt.svg +13 -0
- package/assets/moments/sapIllus-Spot-SuccessCheckMark.svg +7 -0
- package/assets/moments/sapIllus-Spot-UnableToLoad-Alt.svg +13 -0
- package/assets/moments/sapIllus-Spot-UnableToLoad-Alt2.svg +13 -0
- package/assets/moments/sapIllus-Spot-UnableToLoad.svg +10 -0
- package/assets/moments/sapIllus-Spot-UnableToUpload.svg +10 -0
- package/assets/moments/tnt-Dialog-Components.svg +9 -0
- package/assets/moments/tnt-Dialog-ExternalLink.svg +11 -0
- package/assets/moments/tnt-Dialog-UnsuccessfulAuth.svg +11 -0
- package/assets/moments/tnt-Scene-Components.svg +16 -0
- package/assets/moments/tnt-Scene-ExternalLink.svg +14 -0
- package/assets/moments/tnt-Scene-UnsuccessfulAuth.svg +22 -0
- package/assets/moments/tnt-Spot-UnsuccessfulAuth.svg +10 -0
- package/assets/openmfp-portal-ui-wc.js +179 -0
- package/assets/translation-files/de.json +1 -0
- package/assets/translation-files/en.json +1 -0
- package/fesm2022/openmfp-portal-ui-lib.mjs +2716 -0
- package/fesm2022/openmfp-portal-ui-lib.mjs.map +1 -0
- package/index.d.ts +1071 -0
- package/package.json +50 -2
package/index.d.ts
ADDED
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Type, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { Context } from '@luigi-project/client';
|
|
4
|
+
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ActivatedRoute, RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';
|
|
7
|
+
|
|
8
|
+
declare enum AuthEvent {
|
|
9
|
+
AUTH_SUCCESSFUL = "AuthSuccessful",
|
|
10
|
+
AUTH_ERROR = "AuthError",
|
|
11
|
+
AUTH_EXPIRED = "AuthExpired",
|
|
12
|
+
AUTH_REFRESHED = "AuthRefreshed",
|
|
13
|
+
AUTH_EXPIRE_SOON = "AuthExpireSoon",
|
|
14
|
+
AUTH_CONFIG_ERROR = "AuthConfigError",
|
|
15
|
+
LOGOUT = "Logout"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface PortalContext extends Record<string, any> {
|
|
19
|
+
}
|
|
20
|
+
interface EntityContext extends Record<string, any> {
|
|
21
|
+
}
|
|
22
|
+
interface LuigiGlobalContext extends Record<string, any> {
|
|
23
|
+
portalContext: PortalContext;
|
|
24
|
+
userId: string;
|
|
25
|
+
userEmail: string;
|
|
26
|
+
token: string;
|
|
27
|
+
portalBaseUrl: string;
|
|
28
|
+
}
|
|
29
|
+
interface NodeContext extends LuigiGlobalContext {
|
|
30
|
+
entityContext?: EntityContext;
|
|
31
|
+
parentNavigationContexts?: string[];
|
|
32
|
+
error?: {
|
|
33
|
+
code: number;
|
|
34
|
+
errorComponentConfig?: Record<string, any>;
|
|
35
|
+
entityDefinition?: EntityDefinition;
|
|
36
|
+
additionalContext?: Record<string, any>;
|
|
37
|
+
};
|
|
38
|
+
translationTable?: Record<string, any>;
|
|
39
|
+
serviceProviderConfig?: Record<string, any>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface LuigiNavigationConfig {
|
|
43
|
+
nodes?: LuigiNode[];
|
|
44
|
+
viewGroupSettings?: any;
|
|
45
|
+
appSwitcher?: any;
|
|
46
|
+
globalContext?: any;
|
|
47
|
+
profile?: any;
|
|
48
|
+
addNavHrefs?: boolean;
|
|
49
|
+
contextSwitcher?: any;
|
|
50
|
+
nodeAccessibilityResolver?: any;
|
|
51
|
+
validWebcomponentUrls?: string;
|
|
52
|
+
intentMapping?: any;
|
|
53
|
+
nodeChangeHook?: any;
|
|
54
|
+
breadcrumbs?: any;
|
|
55
|
+
}
|
|
56
|
+
interface LuigiStaticSettings extends Record<string, any> {
|
|
57
|
+
header: {
|
|
58
|
+
title: string;
|
|
59
|
+
logo: string;
|
|
60
|
+
favicon?: string;
|
|
61
|
+
};
|
|
62
|
+
btpToolLayout?: boolean;
|
|
63
|
+
experimental?: {
|
|
64
|
+
webcomponents?: boolean;
|
|
65
|
+
globalNav?: boolean;
|
|
66
|
+
profileMenuFiori3?: boolean;
|
|
67
|
+
navHeader?: boolean;
|
|
68
|
+
breadcrumbs?: boolean;
|
|
69
|
+
globalSearchCentered?: boolean;
|
|
70
|
+
btpToolLayout?: boolean;
|
|
71
|
+
};
|
|
72
|
+
links?: {
|
|
73
|
+
title: string;
|
|
74
|
+
link: string;
|
|
75
|
+
}[];
|
|
76
|
+
}
|
|
77
|
+
interface LuigiConfig {
|
|
78
|
+
auth?: any;
|
|
79
|
+
routing?: any;
|
|
80
|
+
settings?: LuigiStaticSettings;
|
|
81
|
+
lifecycleHooks?: any;
|
|
82
|
+
navigation?: LuigiNavigationConfig;
|
|
83
|
+
userSettings?: any;
|
|
84
|
+
communication?: any;
|
|
85
|
+
globalSearch?: any;
|
|
86
|
+
}
|
|
87
|
+
interface LuigiCustomMessage extends Record<string, any> {
|
|
88
|
+
id: string;
|
|
89
|
+
}
|
|
90
|
+
interface EntityDefinition {
|
|
91
|
+
id: string;
|
|
92
|
+
dynamicFetchId?: string;
|
|
93
|
+
contextKey?: string;
|
|
94
|
+
useBack?: boolean;
|
|
95
|
+
label?: string;
|
|
96
|
+
pluralLabel?: string;
|
|
97
|
+
notFoundConfig?: {
|
|
98
|
+
entityListNavigationContext: string;
|
|
99
|
+
sapIllusSVG: string;
|
|
100
|
+
};
|
|
101
|
+
graphqlEntity?: {
|
|
102
|
+
group: 'string';
|
|
103
|
+
kind: 'string';
|
|
104
|
+
query: 'string';
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
interface LuigiStatusBadge {
|
|
108
|
+
label: string;
|
|
109
|
+
type: string;
|
|
110
|
+
}
|
|
111
|
+
interface LuigiUserSetting {
|
|
112
|
+
type: string;
|
|
113
|
+
label?: string;
|
|
114
|
+
style?: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
options?: string[];
|
|
117
|
+
isEditable?: boolean;
|
|
118
|
+
}
|
|
119
|
+
interface LuigiUserSettingsGroup {
|
|
120
|
+
label?: string;
|
|
121
|
+
sublabel?: string;
|
|
122
|
+
title?: string;
|
|
123
|
+
icon?: string;
|
|
124
|
+
viewUrl?: string;
|
|
125
|
+
settings?: Record<string, LuigiUserSetting>;
|
|
126
|
+
}
|
|
127
|
+
interface LuigiUserSettings {
|
|
128
|
+
groups: Record<string, LuigiUserSettingsGroup>;
|
|
129
|
+
}
|
|
130
|
+
interface LuigiNodeIFramePermissions {
|
|
131
|
+
allow?: string[];
|
|
132
|
+
sandbox?: string[];
|
|
133
|
+
}
|
|
134
|
+
interface PortalLuigiNodeExtensions {
|
|
135
|
+
_userSettingsConfig?: LuigiUserSettings;
|
|
136
|
+
_preloadUrl?: string;
|
|
137
|
+
_requiredIFramePermissionsForViewGroup?: LuigiNodeIFramePermissions;
|
|
138
|
+
_portalDirectChildren?: LuigiNode[];
|
|
139
|
+
_intentMappings?: LuigiIntent[];
|
|
140
|
+
_entityRelativePaths?: Record<string, any>;
|
|
141
|
+
_entityRootChild?: boolean;
|
|
142
|
+
hideFromBreadcrumb?: boolean;
|
|
143
|
+
breadcrumbBadge?: BreadcrumbBadge;
|
|
144
|
+
entityType?: string;
|
|
145
|
+
requiredPolicies?: string[];
|
|
146
|
+
visibleForEntityContext?: Record<string, any>;
|
|
147
|
+
visibleForContext?: string;
|
|
148
|
+
visibleForPlugin?: boolean;
|
|
149
|
+
configurationMissing?: string;
|
|
150
|
+
networkVisibility?: NetworkVisibility;
|
|
151
|
+
isMissingMandatoryData?: boolean;
|
|
152
|
+
extensionClassName?: string;
|
|
153
|
+
defineEntity?: EntityDefinition;
|
|
154
|
+
order?: string;
|
|
155
|
+
dxpOrder?: string;
|
|
156
|
+
navSlot?: string;
|
|
157
|
+
defineSlot?: string;
|
|
158
|
+
configurationHint?: string;
|
|
159
|
+
configurationLink?: string;
|
|
160
|
+
requiredIFramePermissions?: LuigiNodeIFramePermissions;
|
|
161
|
+
}
|
|
162
|
+
interface LuigiNodeCategory {
|
|
163
|
+
label: string;
|
|
164
|
+
collapsible?: boolean;
|
|
165
|
+
order?: number;
|
|
166
|
+
id?: string;
|
|
167
|
+
icon?: string;
|
|
168
|
+
}
|
|
169
|
+
interface HelpContext {
|
|
170
|
+
displayName?: string;
|
|
171
|
+
issueTracker?: {
|
|
172
|
+
url: string;
|
|
173
|
+
};
|
|
174
|
+
feedbackTracker?: {
|
|
175
|
+
url: string;
|
|
176
|
+
};
|
|
177
|
+
stackSearch?: {
|
|
178
|
+
tags: string[];
|
|
179
|
+
};
|
|
180
|
+
documentation?: {
|
|
181
|
+
url: string;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
interface LuigiIntent {
|
|
185
|
+
baseEntityId?: string;
|
|
186
|
+
relativePath?: string;
|
|
187
|
+
semanticObject: string;
|
|
188
|
+
action: string;
|
|
189
|
+
pathSegment?: string;
|
|
190
|
+
}
|
|
191
|
+
interface LuigiBadgeCounter {
|
|
192
|
+
label: string;
|
|
193
|
+
count: () => Promise<number | string> | number | string;
|
|
194
|
+
}
|
|
195
|
+
interface LuigiNode extends PortalLuigiNodeExtensions {
|
|
196
|
+
testId?: string;
|
|
197
|
+
pathSegment?: string;
|
|
198
|
+
viewUrl?: string;
|
|
199
|
+
viewGroup?: string;
|
|
200
|
+
label?: string;
|
|
201
|
+
icon?: string;
|
|
202
|
+
link?: string;
|
|
203
|
+
urlSuffix?: string;
|
|
204
|
+
navHeader?: any;
|
|
205
|
+
hideFromNav?: boolean;
|
|
206
|
+
hideSideNav?: boolean;
|
|
207
|
+
virtualTree?: boolean;
|
|
208
|
+
initialRoute?: any;
|
|
209
|
+
openNodeInModal?: any;
|
|
210
|
+
navigationContext?: string;
|
|
211
|
+
showBreadcrumbs?: boolean;
|
|
212
|
+
loadingIndicator?: {
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
};
|
|
215
|
+
target?: IntentSpecification;
|
|
216
|
+
compound?: any;
|
|
217
|
+
badgeCounter?: LuigiBadgeCounter;
|
|
218
|
+
category?: LuigiNodeCategory | string;
|
|
219
|
+
context?: NodeContext;
|
|
220
|
+
visibleForFeatureToggles?: string[];
|
|
221
|
+
statusBadge?: LuigiStatusBadge;
|
|
222
|
+
onNodeActivation?: (node: LuigiNode) => boolean;
|
|
223
|
+
isolateView?: boolean;
|
|
224
|
+
webcomponent?: {
|
|
225
|
+
selfRegistered: boolean;
|
|
226
|
+
};
|
|
227
|
+
children?: LuigiNode[] | {
|
|
228
|
+
(context?: any): Promise<LuigiNode[]>;
|
|
229
|
+
} | {
|
|
230
|
+
(context?: any): LuigiNode[];
|
|
231
|
+
};
|
|
232
|
+
titleResolver?: any;
|
|
233
|
+
globalNav?: boolean;
|
|
234
|
+
parent?: LuigiNode;
|
|
235
|
+
}
|
|
236
|
+
interface IntentSpecification {
|
|
237
|
+
type: string;
|
|
238
|
+
inboundId: string;
|
|
239
|
+
resolvedIntent?: LuigiIntent;
|
|
240
|
+
}
|
|
241
|
+
declare enum NetworkVisibility {
|
|
242
|
+
INTERNAL = "internal",
|
|
243
|
+
INTERNET = "internet"
|
|
244
|
+
}
|
|
245
|
+
interface BreadcrumbBadge {
|
|
246
|
+
text: string;
|
|
247
|
+
colorSchema?: BreadcrumbBadgeColorSchema;
|
|
248
|
+
hint?: string;
|
|
249
|
+
}
|
|
250
|
+
type BreadcrumbBadgeColorSchema = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
|
|
251
|
+
|
|
252
|
+
interface LuigiNodeDefaults {
|
|
253
|
+
entityType?: string;
|
|
254
|
+
isolateView?: boolean;
|
|
255
|
+
}
|
|
256
|
+
interface Dictionary {
|
|
257
|
+
locale: string;
|
|
258
|
+
textDictionary: Record<string, string>;
|
|
259
|
+
}
|
|
260
|
+
interface LuigiAppConfig {
|
|
261
|
+
urlTemplateParams: Record<string, any>;
|
|
262
|
+
navMode?: string;
|
|
263
|
+
urlTemplateId?: string;
|
|
264
|
+
}
|
|
265
|
+
interface ViewGroup {
|
|
266
|
+
preloadSuffix?: string;
|
|
267
|
+
requiredIFramePermissions?: LuigiNodeIFramePermissions;
|
|
268
|
+
}
|
|
269
|
+
interface LuigiConfigData {
|
|
270
|
+
viewGroup?: ViewGroup;
|
|
271
|
+
nodeDefaults?: LuigiNodeDefaults;
|
|
272
|
+
nodes: LuigiNode[];
|
|
273
|
+
texts?: Dictionary[];
|
|
274
|
+
targetAppConfig?: Record<string, any>;
|
|
275
|
+
userSettings?: LuigiUserSettings;
|
|
276
|
+
}
|
|
277
|
+
interface LuigiConfigFragment {
|
|
278
|
+
data: LuigiConfigData;
|
|
279
|
+
}
|
|
280
|
+
interface ContentConfiguration {
|
|
281
|
+
name: string;
|
|
282
|
+
creationTimestamp?: string;
|
|
283
|
+
url?: string;
|
|
284
|
+
luigiConfigFragment: LuigiConfigFragment;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare enum EntityType {
|
|
288
|
+
GLOBAL = "global",
|
|
289
|
+
GLOBAL_TOPNAV = "global.topnav",
|
|
290
|
+
ENTITY_ERROR = "entity.error"
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
interface AuthTokenData {
|
|
294
|
+
expires_in: string;
|
|
295
|
+
access_token: string;
|
|
296
|
+
id_token: string;
|
|
297
|
+
}
|
|
298
|
+
interface AuthData {
|
|
299
|
+
accessTokenExpirationDate: number;
|
|
300
|
+
idToken: string;
|
|
301
|
+
}
|
|
302
|
+
interface ClientEnvironment extends Record<string, any> {
|
|
303
|
+
idpName: string;
|
|
304
|
+
baseDomain: string;
|
|
305
|
+
oauthServerUrl: string;
|
|
306
|
+
clientId: string;
|
|
307
|
+
isLocal: boolean;
|
|
308
|
+
developmentInstance: boolean;
|
|
309
|
+
validWebcomponentUrls?: string;
|
|
310
|
+
authData: AuthTokenData;
|
|
311
|
+
uiOptions?: string[];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface SceneConfig {
|
|
315
|
+
scene: SceneConfigData;
|
|
316
|
+
}
|
|
317
|
+
interface SceneConfigData {
|
|
318
|
+
url: string;
|
|
319
|
+
id: string;
|
|
320
|
+
}
|
|
321
|
+
interface ButtonConfig {
|
|
322
|
+
url?: string;
|
|
323
|
+
label?: string;
|
|
324
|
+
route?: {
|
|
325
|
+
context: string;
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
interface ErrorComponentConfig {
|
|
330
|
+
sceneConfig?: SceneConfig;
|
|
331
|
+
illustratedMessageTitle?: string;
|
|
332
|
+
illustratedMessageText?: string;
|
|
333
|
+
buttons?: ButtonConfig[];
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface Config {
|
|
337
|
+
url?: string;
|
|
338
|
+
data?: ContentConfiguration;
|
|
339
|
+
}
|
|
340
|
+
interface LocalDevelopmentSettings {
|
|
341
|
+
isActive: boolean;
|
|
342
|
+
configs: Config[];
|
|
343
|
+
serviceProviderConfig: Record<string, string>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
interface ServiceProvider {
|
|
347
|
+
name: string;
|
|
348
|
+
displayName: string;
|
|
349
|
+
creationTimestamp: string;
|
|
350
|
+
nodes: LuigiNode[];
|
|
351
|
+
}
|
|
352
|
+
interface EntityConfig {
|
|
353
|
+
providers: ServiceProvider[];
|
|
354
|
+
entityContext: Record<string, any>;
|
|
355
|
+
}
|
|
356
|
+
interface PortalConfig {
|
|
357
|
+
providers: ServiceProvider[];
|
|
358
|
+
portalContext: PortalContext;
|
|
359
|
+
featureToggles: Record<string, boolean>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
interface UserData {
|
|
363
|
+
name: string;
|
|
364
|
+
email: string;
|
|
365
|
+
description: string;
|
|
366
|
+
picture: string;
|
|
367
|
+
icon: boolean;
|
|
368
|
+
initials: string;
|
|
369
|
+
userId: string;
|
|
370
|
+
}
|
|
371
|
+
interface UserTokenData {
|
|
372
|
+
first_name: string;
|
|
373
|
+
last_name: string;
|
|
374
|
+
given_name: string;
|
|
375
|
+
family_name: string;
|
|
376
|
+
mail: string;
|
|
377
|
+
email: string;
|
|
378
|
+
sub: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare class LuigiCoreService {
|
|
382
|
+
setConfig(config: LuigiConfig): any;
|
|
383
|
+
get config(): LuigiConfig;
|
|
384
|
+
getConfigValue(key: string): any;
|
|
385
|
+
unloadConfig(): any;
|
|
386
|
+
sendCustomMessage(customMessage: LuigiCustomMessage): any;
|
|
387
|
+
configChanged(scope?: string): void;
|
|
388
|
+
customMessages(): any;
|
|
389
|
+
navigation(): any;
|
|
390
|
+
resetLuigi(): void;
|
|
391
|
+
clearNavigationCache(): void;
|
|
392
|
+
showAlert(alert: any): any;
|
|
393
|
+
ux(): any;
|
|
394
|
+
theming(): any;
|
|
395
|
+
i18n(): any;
|
|
396
|
+
globalSearch(): any;
|
|
397
|
+
getGlobalContext(): LuigiGlobalContext;
|
|
398
|
+
getWcExtendedContext(): Record<string, any>;
|
|
399
|
+
getWcModalExtendedContext(): Record<string, any>;
|
|
400
|
+
setGlobalContext(globalContext: Record<string, any>, preventUpdate?: boolean): void;
|
|
401
|
+
setInGlobalContext(context: Record<string, any>, preventUpdate?: boolean): void;
|
|
402
|
+
routing(): any;
|
|
403
|
+
setFeatureToggle(featureToggleName: string): void;
|
|
404
|
+
unsetFeatureToggle(featureToggleName: string): void;
|
|
405
|
+
unsetAllFeatureToggles(): void;
|
|
406
|
+
setFeatureToggles(featureToggles: Record<string, boolean>): void;
|
|
407
|
+
isFeatureToggleActive(ft: string): boolean;
|
|
408
|
+
getActiveFeatureToggleList(): string[];
|
|
409
|
+
setAuthData(authData: AuthData): void;
|
|
410
|
+
removeAuthData(): void;
|
|
411
|
+
getAuthData(): AuthData | undefined;
|
|
412
|
+
setCurrentLocale(language: string): void;
|
|
413
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuigiCoreService, never>;
|
|
414
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LuigiCoreService>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class GlobalContextConfigService {
|
|
418
|
+
private authService;
|
|
419
|
+
private configService;
|
|
420
|
+
private luigiExtendedGlobalContextConfigService;
|
|
421
|
+
getGlobalContext(): Promise<LuigiGlobalContext>;
|
|
422
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalContextConfigService, never>;
|
|
423
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalContextConfigService>;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class RequestHeadersService {
|
|
427
|
+
private luigiCoreService;
|
|
428
|
+
private route;
|
|
429
|
+
constructor(luigiCoreService: LuigiCoreService, route: ActivatedRoute);
|
|
430
|
+
createOptionsWithAuthHeader(): {
|
|
431
|
+
headers: HttpHeaders;
|
|
432
|
+
};
|
|
433
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestHeadersService, never>;
|
|
434
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestHeadersService>;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
declare class ConfigService {
|
|
438
|
+
private http;
|
|
439
|
+
private requestHeadersService;
|
|
440
|
+
private portalConfigCachePromise;
|
|
441
|
+
private entityConfigCache;
|
|
442
|
+
constructor(http: HttpClient, requestHeadersService: RequestHeadersService);
|
|
443
|
+
getPortalConfig(): Promise<PortalConfig>;
|
|
444
|
+
reloadConfig(entity: string, context?: Record<string, string>): Promise<void>;
|
|
445
|
+
getEntityConfig(entity: string, context?: Record<string, string>): Promise<EntityConfig>;
|
|
446
|
+
clearEntityConfigCache(): void;
|
|
447
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
448
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare class AuthService {
|
|
452
|
+
private http;
|
|
453
|
+
private authEventSubject;
|
|
454
|
+
private authData;
|
|
455
|
+
constructor(http: HttpClient);
|
|
456
|
+
get authEvents(): Observable<AuthEvent>;
|
|
457
|
+
authEvent(event: AuthEvent): void;
|
|
458
|
+
refresh(): Promise<AuthTokenData | undefined>;
|
|
459
|
+
private setAuthData;
|
|
460
|
+
getAuthData(): AuthData;
|
|
461
|
+
private parseJwt;
|
|
462
|
+
getToken: () => any;
|
|
463
|
+
private getUser;
|
|
464
|
+
getUserInfo(): UserData;
|
|
465
|
+
private processExpDate;
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
467
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare class EnvConfigService {
|
|
471
|
+
private http;
|
|
472
|
+
private envConfigCache;
|
|
473
|
+
getEnvConfig(): Promise<ClientEnvironment>;
|
|
474
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnvConfigService, never>;
|
|
475
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EnvConfigService>;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
interface ValidationError {
|
|
479
|
+
message: string;
|
|
480
|
+
}
|
|
481
|
+
interface ValidationResult {
|
|
482
|
+
parsedConfiguration?: string;
|
|
483
|
+
validationErrors?: ValidationError[];
|
|
484
|
+
url: string;
|
|
485
|
+
}
|
|
486
|
+
interface TransformResult {
|
|
487
|
+
nodes?: LuigiNode[];
|
|
488
|
+
errors?: ValidationResult[];
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare class LocalNodesService {
|
|
492
|
+
private http;
|
|
493
|
+
private luigiCoreService;
|
|
494
|
+
getLuigiNodesFromConfigurations(contentConfigurations: ContentConfiguration[]): Promise<TransformResult>;
|
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalNodesService, never>;
|
|
496
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalNodesService>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare class SessionRefreshService {
|
|
500
|
+
private authService;
|
|
501
|
+
private luigiCoreService;
|
|
502
|
+
private navigationGlobalContextConfigService;
|
|
503
|
+
constructor(authService: AuthService, luigiCoreService: LuigiCoreService, navigationGlobalContextConfigService: GlobalContextConfigService);
|
|
504
|
+
refresh(): Promise<void>;
|
|
505
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionRefreshService, never>;
|
|
506
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionRefreshService>;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare class I18nService {
|
|
510
|
+
private envConfigService;
|
|
511
|
+
private luigiCoreService;
|
|
512
|
+
fallbackLanguage: string;
|
|
513
|
+
translationTable: any;
|
|
514
|
+
currentLanguage: string;
|
|
515
|
+
afterInit(): void;
|
|
516
|
+
/**
|
|
517
|
+
* get translation synchronously. If nothing is found for current locale try to get tranlsation for fallback language
|
|
518
|
+
*
|
|
519
|
+
* @param key search key
|
|
520
|
+
* @param interpolations in translation table
|
|
521
|
+
* @param locale
|
|
522
|
+
* @returns returns translated search key or search key, if nothing matched
|
|
523
|
+
*/
|
|
524
|
+
getTranslation(key: string, interpolations?: Record<string, string>, locale?: string): string;
|
|
525
|
+
/**
|
|
526
|
+
* Get translation asynchronously (especially for logout and theming translation in user settings dialog).
|
|
527
|
+
* If nothing is found for current locale try to get translation for fallback language
|
|
528
|
+
*
|
|
529
|
+
* @param key search key
|
|
530
|
+
* @param interpolations in translation table
|
|
531
|
+
* @param locale
|
|
532
|
+
* @returns returns translated search key or search key, if nothing matched
|
|
533
|
+
*/
|
|
534
|
+
getTranslationAsync(key: string, interpolations?: Record<string, string>, locale?: string): Promise<string>;
|
|
535
|
+
/**
|
|
536
|
+
* Finds the translated value based on given key.
|
|
537
|
+
*
|
|
538
|
+
* @param key key to be translated
|
|
539
|
+
* @param translationTable translation table
|
|
540
|
+
* @param locale current language
|
|
541
|
+
* @param interpolations in translation table
|
|
542
|
+
* @returns translation value
|
|
543
|
+
*/
|
|
544
|
+
findTranslation(key: string, translationTable: any, locale: string, interpolations?: Record<string, string>): any;
|
|
545
|
+
/**
|
|
546
|
+
* Replaces values that are defined in translation strings
|
|
547
|
+
*
|
|
548
|
+
* @param value to be translated
|
|
549
|
+
* @param interpolations in translation table
|
|
550
|
+
* @returns interpolation
|
|
551
|
+
* @example
|
|
552
|
+
* findInterpolations('Environment {num}', {num: 1})
|
|
553
|
+
*/
|
|
554
|
+
findInterpolations(value: string, interpolations: Record<string, string>): string;
|
|
555
|
+
/**
|
|
556
|
+
* wraps fetched translation table to a specific locale
|
|
557
|
+
*
|
|
558
|
+
* @param locale current language
|
|
559
|
+
* @param data translation json object for specific locale
|
|
560
|
+
*/
|
|
561
|
+
addTranslationFile(locale: string, data: Record<string, string>): void;
|
|
562
|
+
/**
|
|
563
|
+
* fetch generated translation json files
|
|
564
|
+
*
|
|
565
|
+
* @param locale current language
|
|
566
|
+
* @returns translationTable for a specific language
|
|
567
|
+
*/
|
|
568
|
+
fetchTranslationFile(locale: string): Promise<unknown>;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @param key search key
|
|
572
|
+
* @param interpolations in translation table
|
|
573
|
+
* @param locale
|
|
574
|
+
* @returns tranlsated search key or search key, if nothing matched
|
|
575
|
+
*/
|
|
576
|
+
private getInternalTranslation;
|
|
577
|
+
getValidLanguages(): Promise<{
|
|
578
|
+
value: string;
|
|
579
|
+
label: string;
|
|
580
|
+
}[]>;
|
|
581
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
|
|
582
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare enum LoginEventType {
|
|
586
|
+
LOGIN_TRIGGERED = "LoginTriggered",
|
|
587
|
+
LOGOUT_TRIGGERED = "LogoutTriggered"
|
|
588
|
+
}
|
|
589
|
+
interface LoginEvent {
|
|
590
|
+
type: LoginEventType;
|
|
591
|
+
queryParams?: Record<string, any>;
|
|
592
|
+
}
|
|
593
|
+
declare class LoginEventService {
|
|
594
|
+
private events;
|
|
595
|
+
get loginEvents(): Observable<LoginEvent>;
|
|
596
|
+
loginEvent(event: LoginEvent): void;
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginEventService, never>;
|
|
598
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoginEventService>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
interface UserSettings {
|
|
602
|
+
frame_userAccount?: any;
|
|
603
|
+
frame_appearance?: any;
|
|
604
|
+
frame_development?: any;
|
|
605
|
+
frame_versions?: any;
|
|
606
|
+
frame_featureToggle?: any;
|
|
607
|
+
}
|
|
608
|
+
interface UserSettingsValues {
|
|
609
|
+
frame_userAccount?: {
|
|
610
|
+
name: string;
|
|
611
|
+
email: string;
|
|
612
|
+
language: string;
|
|
613
|
+
};
|
|
614
|
+
frame_appearance?: {
|
|
615
|
+
selectedTheme: string;
|
|
616
|
+
};
|
|
617
|
+
frame_development?: {
|
|
618
|
+
localDevelopmentSettings: LocalDevelopmentSettings;
|
|
619
|
+
};
|
|
620
|
+
frame_versions?: any;
|
|
621
|
+
frame_featureToggle?: {
|
|
622
|
+
featureToggleSettings: Record<string, boolean>;
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
declare class UserSettingsConfigService {
|
|
626
|
+
private luigiThemingService;
|
|
627
|
+
private authService;
|
|
628
|
+
private i18nService;
|
|
629
|
+
private luigiCoreService;
|
|
630
|
+
private dependenciesVersionsService;
|
|
631
|
+
private envConfigService;
|
|
632
|
+
private versionsConfig;
|
|
633
|
+
getUserSettings(childrenByEntity: Record<string, LuigiNode[]>): Promise<{
|
|
634
|
+
userSettingsProfileMenuEntry: {
|
|
635
|
+
label: string;
|
|
636
|
+
};
|
|
637
|
+
userSettingsDialog: {
|
|
638
|
+
dismissBtn: string;
|
|
639
|
+
saveBtn: string;
|
|
640
|
+
dialogHeader: string;
|
|
641
|
+
};
|
|
642
|
+
userSettingGroups: {
|
|
643
|
+
frame_userAccount?: any;
|
|
644
|
+
frame_appearance?: any;
|
|
645
|
+
frame_development?: any;
|
|
646
|
+
frame_versions?: any;
|
|
647
|
+
frame_featureToggle?: any;
|
|
648
|
+
};
|
|
649
|
+
readUserSettings: () => Promise<any>;
|
|
650
|
+
storeUserSettings: (settings: UserSettingsValues, previous: UserSettingsValues) => Promise<void>;
|
|
651
|
+
}>;
|
|
652
|
+
private getCoreUserSettingsGroups;
|
|
653
|
+
private saveFeatureToggleSettings;
|
|
654
|
+
private saveLocalDevelopmentSettings;
|
|
655
|
+
private extractUserSettings;
|
|
656
|
+
private changeToSelectedLanguage;
|
|
657
|
+
private applyNewTheme;
|
|
658
|
+
private getGroupsFromUserSettings;
|
|
659
|
+
private getSelectedThemeDisplayName;
|
|
660
|
+
private addThemingSettings;
|
|
661
|
+
private addLocalDevelopmentSettings;
|
|
662
|
+
private addUserSettings;
|
|
663
|
+
private addInfoSettings;
|
|
664
|
+
private addFeatureToggleSettings;
|
|
665
|
+
private readDependenciesVersions;
|
|
666
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserSettingsConfigService, never>;
|
|
667
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserSettingsConfigService>;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
declare enum LocalStorageKeys {
|
|
671
|
+
LAST_NAVIGATION_URL = "openmfp.navigation.lastUrl",
|
|
672
|
+
USER_SETTINGS = "openmfp.settings.userSettings",
|
|
673
|
+
LOCAL_DEVELOPMENT_SETTINGS = "openmfp.settings.localDevelopmentSettings",
|
|
674
|
+
FEATURE_TOGGLE_SETTINGS = "openmfp.settings.featureToggleSettings",
|
|
675
|
+
DEVELOPMENT_MODE_CONFIG = "dev-mode-settings"
|
|
676
|
+
}
|
|
677
|
+
declare const localDevelopmentSettingsLocalStorage: {
|
|
678
|
+
read: (localStorageKey?: string) => LocalDevelopmentSettings;
|
|
679
|
+
store: (localDevelopmentSetting: LocalDevelopmentSettings) => void;
|
|
680
|
+
};
|
|
681
|
+
declare const userSettingsLocalStorage: {
|
|
682
|
+
read: (userInfo: UserData) => Promise<UserSettingsValues>;
|
|
683
|
+
store: (settings: UserSettingsValues) => Promise<UserSettingsValues>;
|
|
684
|
+
};
|
|
685
|
+
declare const featureToggleLocalStorage: {
|
|
686
|
+
read: () => Record<string, boolean>;
|
|
687
|
+
store: (featureToggleSettings: Record<string, boolean>) => void;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
interface Theme {
|
|
691
|
+
id: string;
|
|
692
|
+
name: string;
|
|
693
|
+
description: string;
|
|
694
|
+
}
|
|
695
|
+
interface ThemingService {
|
|
696
|
+
applyTheme(id: string, reset?: boolean): void;
|
|
697
|
+
getDefaultThemeId(): string;
|
|
698
|
+
getAvailableThemes(): Theme[];
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
interface StaticSettingsConfigService {
|
|
702
|
+
getStaticSettingsConfig(): Promise<LuigiStaticSettings>;
|
|
703
|
+
}
|
|
704
|
+
declare class StaticSettingsConfigServiceImpl implements StaticSettingsConfigService {
|
|
705
|
+
private customStaticSettingsConfigService;
|
|
706
|
+
private i18nService;
|
|
707
|
+
private iframeService;
|
|
708
|
+
getStaticSettingsConfig(): Promise<LuigiStaticSettings>;
|
|
709
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaticSettingsConfigServiceImpl, never>;
|
|
710
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StaticSettingsConfigServiceImpl>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* A representation of a custom message listener and the custom message the listener listens on.
|
|
715
|
+
* See also {@link https://docs.luigi-project.io/docs/communication/?section=luigi-client-to-luigi-core}
|
|
716
|
+
*/
|
|
717
|
+
interface CustomMessageListener {
|
|
718
|
+
/**
|
|
719
|
+
* The custom message id the listener is registered for.
|
|
720
|
+
*/
|
|
721
|
+
messageId(): string;
|
|
722
|
+
/**
|
|
723
|
+
* The callback to be executed when the custom message is send by Luigi.
|
|
724
|
+
*
|
|
725
|
+
* @param customMessage The message object, see also {@link https://docs.luigi-project.io/docs/luigi-client-api?section=sendcustommessage}
|
|
726
|
+
* @param mfObject The micro frontend object, see also {@link https://docs.luigi-project.io/docs/luigi-core-api?section=getmicrofrontends}
|
|
727
|
+
* @param mfNodesObject The nodes object of the micro frontend, see also {@link https://docs.luigi-project.io/docs/navigation-parameters-reference?section=node-parameters}
|
|
728
|
+
*/
|
|
729
|
+
onCustomMessageReceived(customMessage: any, mfObject: any, mfNodesObject: any): void;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
interface ReloadLuigiConfigMessage {
|
|
733
|
+
origin: string;
|
|
734
|
+
action: string;
|
|
735
|
+
id: string;
|
|
736
|
+
entity: string;
|
|
737
|
+
context: Record<string, any>;
|
|
738
|
+
}
|
|
739
|
+
declare class ReloadLuigiConfigListener implements CustomMessageListener {
|
|
740
|
+
private configService;
|
|
741
|
+
private luigiCoreService;
|
|
742
|
+
messageId(): string;
|
|
743
|
+
onCustomMessageReceived(customMessage: ReloadLuigiConfigMessage, mfObject: any, mfNodesObject: any): Promise<void>;
|
|
744
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReloadLuigiConfigListener, never>;
|
|
745
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReloadLuigiConfigListener>;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
interface MessageListener {
|
|
749
|
+
(msg: any, mf: any, mfNodes: any): void;
|
|
750
|
+
}
|
|
751
|
+
interface MessageListeners {
|
|
752
|
+
customMessagesListeners: Record<string, MessageListener>;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* This class holds the customMessageListeners for custom messages used by the application portal.
|
|
756
|
+
* See also {@link https://docs.luigi-project.io/docs/communication/?section=luigi-core-to-luigi-client}
|
|
757
|
+
* See also {@link https://docs.luigi-project.io/docs/luigi-core-api/?section=custommessages}
|
|
758
|
+
*/
|
|
759
|
+
declare class CustomMessageListenersService {
|
|
760
|
+
private messageListeners;
|
|
761
|
+
private customMessageListeners;
|
|
762
|
+
private readonly listeners;
|
|
763
|
+
constructor(messageListeners: ReloadLuigiConfigListener, customMessageListeners: CustomMessageListener[]);
|
|
764
|
+
/**
|
|
765
|
+
* An object containing the property 'listeners' in which the message-id and listener assignments are made.
|
|
766
|
+
* See also {@link https://docs.luigi-project.io/docs/communication/?section=luigi-core-to-luigi-client}
|
|
767
|
+
*/
|
|
768
|
+
getMessageListeners(): MessageListeners;
|
|
769
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessageListenersService, [null, { optional: true; }]>;
|
|
770
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomMessageListenersService>;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
interface GlobalSearchConfigService {
|
|
774
|
+
getGlobalSearchConfig(): any;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
interface AppSwitcherConfigService {
|
|
778
|
+
getAppSwitcher(luigiNodes: LuigiNode[]): any;
|
|
779
|
+
}
|
|
780
|
+
interface NodeConfig {
|
|
781
|
+
title: string;
|
|
782
|
+
icon: string;
|
|
783
|
+
link: string;
|
|
784
|
+
selectionConditions?: {
|
|
785
|
+
route: string;
|
|
786
|
+
contextCriteria: {
|
|
787
|
+
key: string;
|
|
788
|
+
value: string;
|
|
789
|
+
}[];
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
declare class AppSwitcherConfigServiceImpl implements AppSwitcherConfigService {
|
|
793
|
+
private luigiCoreService;
|
|
794
|
+
private nodeUtilsService;
|
|
795
|
+
getAppSwitcher(luigiNodes: LuigiNode[]): {
|
|
796
|
+
keepMainTitle: boolean;
|
|
797
|
+
showSubTitle: boolean;
|
|
798
|
+
itemRenderer: (item: any, slot: HTMLElement, appSwitcherApiObj: any) => void;
|
|
799
|
+
items: NodeConfig[];
|
|
800
|
+
};
|
|
801
|
+
private getNodeItems;
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSwitcherConfigServiceImpl, never>;
|
|
803
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppSwitcherConfigServiceImpl>;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
interface ExternalLink {
|
|
807
|
+
sameWindow: boolean;
|
|
808
|
+
URL: string;
|
|
809
|
+
}
|
|
810
|
+
interface OpenNodeInModal {
|
|
811
|
+
title?: string;
|
|
812
|
+
size?: 's' | 'm' | 'l';
|
|
813
|
+
width?: string;
|
|
814
|
+
height?: string;
|
|
815
|
+
}
|
|
816
|
+
interface UserProfileItem {
|
|
817
|
+
label?: string;
|
|
818
|
+
icon?: string;
|
|
819
|
+
link?: string;
|
|
820
|
+
openNodeInModal?: boolean | OpenNodeInModal;
|
|
821
|
+
externalLink?: ExternalLink;
|
|
822
|
+
}
|
|
823
|
+
interface UserProfile {
|
|
824
|
+
logout?: UserProfileItem;
|
|
825
|
+
items: UserProfileItem[];
|
|
826
|
+
}
|
|
827
|
+
interface UserProfileConfigService {
|
|
828
|
+
getProfile(): Promise<UserProfile>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
declare class IframeService {
|
|
832
|
+
private luigiCoreService;
|
|
833
|
+
private isIFrameFeaturePolicyAllowed;
|
|
834
|
+
private isIFrameSandboxPermissionAllowed;
|
|
835
|
+
iFrameCreationInterceptor(): (iframe: any, viewGroup: string, navigationNode: any, microFrontendType: any) => void;
|
|
836
|
+
private applyIframePermissions;
|
|
837
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IframeService, never>;
|
|
838
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IframeService>;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
interface NodeItem extends LuigiNode {
|
|
842
|
+
node?: LuigiNode;
|
|
843
|
+
route?: string;
|
|
844
|
+
}
|
|
845
|
+
interface LuigiBreadcrumb {
|
|
846
|
+
pendingItemLabel: string;
|
|
847
|
+
omitRoot: boolean;
|
|
848
|
+
autoHide: boolean;
|
|
849
|
+
clearBeforeRender?: boolean;
|
|
850
|
+
renderer: (containerElement: HTMLElement, nodeItems: NodeItem[], clickHandler: (item: NodeItem) => void) => HTMLElement;
|
|
851
|
+
}
|
|
852
|
+
type RendererFn = LuigiBreadcrumb['renderer'];
|
|
853
|
+
interface HeaderBarConfig extends Omit<LuigiBreadcrumb, 'renderer'> {
|
|
854
|
+
rightRenderers: RendererFn[];
|
|
855
|
+
leftRenderers: RendererFn[];
|
|
856
|
+
}
|
|
857
|
+
interface HeaderBarConfigService {
|
|
858
|
+
getConfig(): Promise<HeaderBarConfig>;
|
|
859
|
+
}
|
|
860
|
+
declare class HeaderBarService {
|
|
861
|
+
private headerBarConfig;
|
|
862
|
+
constructor(headerBarConfig: HeaderBarConfigService);
|
|
863
|
+
getConfig(): Promise<LuigiBreadcrumb | undefined>;
|
|
864
|
+
private setParrentStyles;
|
|
865
|
+
private executeRenderes;
|
|
866
|
+
private createRendererContainers;
|
|
867
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarService, [{ optional: true; }]>;
|
|
868
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HeaderBarService>;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
interface NodeChangeHookConfigService {
|
|
872
|
+
nodeChangeHook(prevNode: LuigiNode, nextNode: LuigiNode): void;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
interface LuigiAuthEventsCallbacksService {
|
|
876
|
+
onAuthSuccessful: (settings: any, authData: any) => void;
|
|
877
|
+
onAuthError: (settings: any, err: any) => void;
|
|
878
|
+
onAuthExpired: (settings: any) => void;
|
|
879
|
+
onLogout: (settings: any) => void;
|
|
880
|
+
onAuthExpireSoon: (settings: any) => void;
|
|
881
|
+
onAuthConfigError: (settings: any, err: any) => void;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
declare class AuthConfigService {
|
|
885
|
+
private authService;
|
|
886
|
+
private envConfigService;
|
|
887
|
+
private luigiAuthEventsCallbacksService;
|
|
888
|
+
getAuthConfig(): Promise<{
|
|
889
|
+
use: string;
|
|
890
|
+
storage: string;
|
|
891
|
+
oAuth2AuthCode: {
|
|
892
|
+
idpProvider: any;
|
|
893
|
+
authorizeUrl: string;
|
|
894
|
+
logoutUrl: string;
|
|
895
|
+
post_logout_redirect_uri: string;
|
|
896
|
+
oAuthData: {
|
|
897
|
+
client_id: string;
|
|
898
|
+
scope: string;
|
|
899
|
+
redirect_uri: string;
|
|
900
|
+
response_type: string;
|
|
901
|
+
};
|
|
902
|
+
accessTokenExpiringNotificationTime: number;
|
|
903
|
+
expirationCheckInterval: number;
|
|
904
|
+
userInfoFn: () => Promise<unknown>;
|
|
905
|
+
};
|
|
906
|
+
disableAutoLogin: boolean;
|
|
907
|
+
events: {
|
|
908
|
+
onAuthSuccessful: (settings: any, authData: any) => void;
|
|
909
|
+
onAuthError: (settings: any, err: any) => void;
|
|
910
|
+
onAuthExpired: (settings: any) => void;
|
|
911
|
+
onLogout: (settings: any) => void;
|
|
912
|
+
onAuthExpireSoon: (settings: any) => void;
|
|
913
|
+
onAuthConfigError: (settings: any, err: any) => void;
|
|
914
|
+
};
|
|
915
|
+
}>;
|
|
916
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthConfigService, never>;
|
|
917
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthConfigService>;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface LocalConfigurationService {
|
|
921
|
+
getLocalNodes(): Promise<LuigiNode[]>;
|
|
922
|
+
}
|
|
923
|
+
declare class LocalConfigurationServiceImpl {
|
|
924
|
+
private http;
|
|
925
|
+
private luigiConfigService;
|
|
926
|
+
private i18nService;
|
|
927
|
+
private luigiCoreService;
|
|
928
|
+
private customLocalConfigurationService;
|
|
929
|
+
private cachedLocalNodes;
|
|
930
|
+
getLocalNodes(): Promise<LuigiNode[]>;
|
|
931
|
+
addLocalDevelopmentModeOnIndicator(): void;
|
|
932
|
+
private alertErrors;
|
|
933
|
+
replaceServerNodesWithLocalOnes(serverLuigiNodes: LuigiNode[], currentEntities: string[]): Promise<LuigiNode[]>;
|
|
934
|
+
private logNodesState;
|
|
935
|
+
private localNodeMatchesServerNode;
|
|
936
|
+
private getLocalConfigurations;
|
|
937
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalConfigurationServiceImpl, never>;
|
|
938
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalConfigurationServiceImpl>;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
declare class LuigiNodesService {
|
|
942
|
+
private i18nService;
|
|
943
|
+
private configService;
|
|
944
|
+
private localConfigurationService;
|
|
945
|
+
private errorComponentConfig;
|
|
946
|
+
private getChildrenByEntity;
|
|
947
|
+
retrieveChildrenByEntity(): Promise<Record<string, LuigiNode[]>>;
|
|
948
|
+
retrieveEntityChildren(entityDefinition: EntityDefinition, additionalContext?: Record<string, string>): Promise<LuigiNode[]>;
|
|
949
|
+
private createErrorNodes;
|
|
950
|
+
nodePolicyResolver(nodeToCheckPermissionFor: any): boolean;
|
|
951
|
+
clearNodeCache(): void;
|
|
952
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuigiNodesService, never>;
|
|
953
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LuigiNodesService>;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
interface LuigiExtendedGlobalContextConfigService {
|
|
957
|
+
createLuigiExtendedGlobalContext(): Promise<Record<string, any>>;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
interface CustomGlobalNodesService {
|
|
961
|
+
getCustomGlobalNodes(): Promise<LuigiNode[]>;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
interface CustomNodeProcessingService {
|
|
965
|
+
processNode(ctx: Context, node: LuigiNode): Promise<LuigiNode>;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
declare class NodeUtilsService {
|
|
969
|
+
private luigiCoreService;
|
|
970
|
+
constructor(luigiCoreService: LuigiCoreService);
|
|
971
|
+
retrieveGlobalHelpContext(): (node: LuigiNode) => boolean;
|
|
972
|
+
isVisible(node: LuigiNode): boolean;
|
|
973
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeUtilsService, never>;
|
|
974
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NodeUtilsService>;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
interface NodeContextProcessingService {
|
|
978
|
+
processNodeContext(entityId: string, entityNode: LuigiNode, ctx: NodeContext): Promise<void>;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
interface RoutingConfigService {
|
|
982
|
+
getInitialRoutingConfig?(): object;
|
|
983
|
+
getRoutingConfig?(): object;
|
|
984
|
+
}
|
|
985
|
+
declare class RoutingConfigServiceImpl implements RoutingConfigService {
|
|
986
|
+
private customRoutingConfigService;
|
|
987
|
+
getInitialRoutingConfig(): any;
|
|
988
|
+
getRoutingConfig(): any;
|
|
989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoutingConfigServiceImpl, never>;
|
|
990
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoutingConfigServiceImpl>;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
interface PortalOptions {
|
|
994
|
+
/** Service containing and providing the luigi settings configuration **/
|
|
995
|
+
staticSettingsConfigService?: Type<StaticSettingsConfigService>;
|
|
996
|
+
/** A set of class representing custom listeners **/
|
|
997
|
+
customMessageListeners?: Type<CustomMessageListener>[];
|
|
998
|
+
/** Service providing local configuration services **/
|
|
999
|
+
localConfigurationService?: Type<LocalConfigurationService>;
|
|
1000
|
+
/** Service providing user setting specific configuration **/
|
|
1001
|
+
userSettingsConfigService?: Type<UserSettingsConfigService>;
|
|
1002
|
+
/** Service providing global search configuration **/
|
|
1003
|
+
globalSearchConfigService?: Type<GlobalSearchConfigService>;
|
|
1004
|
+
/** Service providing luigi app switcher configuration **/
|
|
1005
|
+
appSwitcherConfigService?: Type<AppSwitcherConfigService>;
|
|
1006
|
+
/** Service providing luigi node extended context configuration **/
|
|
1007
|
+
luigiExtendedGlobalContextConfigService?: Type<LuigiExtendedGlobalContextConfigService>;
|
|
1008
|
+
/** Service providing custom global level nodes **/
|
|
1009
|
+
customGlobalNodesService?: Type<CustomGlobalNodesService>;
|
|
1010
|
+
/** Service providing custom global level nodes **/
|
|
1011
|
+
nodeContextProcessingService?: Type<NodeContextProcessingService>;
|
|
1012
|
+
/** Service providing luigi user profile configuration **/
|
|
1013
|
+
userProfileConfigService?: Type<UserProfileConfigService>;
|
|
1014
|
+
/** Provide a config that contains renderers for Nav Bar */
|
|
1015
|
+
headerBarConfigService?: Type<HeaderBarConfigService>;
|
|
1016
|
+
/** Service providing custom global level nodes **/
|
|
1017
|
+
nodeChangeHookConfigService?: Type<NodeChangeHookConfigService>;
|
|
1018
|
+
/** Service handling every node access policies **/
|
|
1019
|
+
customNodeProcessingService?: Type<CustomNodeProcessingService>;
|
|
1020
|
+
/** Service handling luigi authentication events **/
|
|
1021
|
+
luigiAuthEventsCallbacksService?: Type<LuigiAuthEventsCallbacksService>;
|
|
1022
|
+
/** Provide a error configuration for error component to override the default values **/
|
|
1023
|
+
errorComponentConfig?: Record<string, ErrorComponentConfig>;
|
|
1024
|
+
/** Provide a error configuration for error component to override the default values **/
|
|
1025
|
+
themingService?: Type<ThemingService>;
|
|
1026
|
+
/** Service providing luigi routing configuration **/
|
|
1027
|
+
routingConfigService?: Type<RoutingConfigService>;
|
|
1028
|
+
}
|
|
1029
|
+
declare function providePortal(options?: PortalOptions): EnvironmentProviders;
|
|
1030
|
+
|
|
1031
|
+
declare const ERROR_COMPONENT_CONFIG = "OPENMFP_ERROR_COMPONENT_CONFIG";
|
|
1032
|
+
declare const THEMING_SERVICE = "OPENMFP_THEMING_SERVICE";
|
|
1033
|
+
declare const LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_STATIC_SETTINGS_CONFIG_SERVICE";
|
|
1034
|
+
declare const LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN = "OPENMFP_LUIGI_CUSTOM_MESSAGE_LISTENERS";
|
|
1035
|
+
declare const LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE";
|
|
1036
|
+
declare const LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_APP_SWITCHER_CONFIG_SERVICE";
|
|
1037
|
+
declare const LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_USER_PROFILE_CONFIG_SERVICE";
|
|
1038
|
+
declare const LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_BREADCRUMB_CONFIG_SERVICE";
|
|
1039
|
+
declare const LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_NODE_CHANGE_HOOK_CONFIG_SERVICE";
|
|
1040
|
+
declare const LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_NODES_EXTENDED_CONTEXT_SERVICE";
|
|
1041
|
+
declare const LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN = "OPENMFP_LOCAL_CONFIGURATION_SERVICE";
|
|
1042
|
+
declare const LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_NODES_CUSTOM_GLOBAL_SERVICE";
|
|
1043
|
+
declare const LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_CUSTOM_NODE_PROCESSING_SERVICE";
|
|
1044
|
+
declare const LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE";
|
|
1045
|
+
declare const LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE";
|
|
1046
|
+
declare const HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_HEADER_BAR_CONFIG_SERVICE";
|
|
1047
|
+
declare const LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN = "OPENMFP_LUIGI_ROUTING_CONFIG_SERVICE";
|
|
1048
|
+
|
|
1049
|
+
declare class PortalComponent {
|
|
1050
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalComponent, never>;
|
|
1051
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PortalComponent, "app-portal", never, {}, {}, never, never, true, never>;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
declare class CustomReuseStrategy implements RouteReuseStrategy {
|
|
1055
|
+
shouldDetach(route: ActivatedRouteSnapshot): boolean;
|
|
1056
|
+
store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle | null): void;
|
|
1057
|
+
shouldAttach(route: ActivatedRouteSnapshot): boolean;
|
|
1058
|
+
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
|
1059
|
+
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Evaluates the JMESPath expression on the context and returns true if the result is true, otherwise false
|
|
1064
|
+
* @param context The context to evaluate
|
|
1065
|
+
* @param jmesPathExpression The JMESPath expression to evaluate
|
|
1066
|
+
* @returns true if the result of the JMESPath expression is true, otherwise (or if there was an exception while matching with JMESPath) false
|
|
1067
|
+
* */
|
|
1068
|
+
declare function matchesJMESPath(context: object, jmesPathExpression: string): boolean;
|
|
1069
|
+
|
|
1070
|
+
export { AppSwitcherConfigServiceImpl, AuthConfigService, AuthEvent, AuthService, ConfigService, CustomMessageListenersService, CustomReuseStrategy, ERROR_COMPONENT_CONFIG, EntityType, EnvConfigService, GlobalContextConfigService, HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN, HeaderBarService, I18nService, IframeService, LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN, LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN, LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN, LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN, LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN, LocalConfigurationServiceImpl, LocalNodesService, LocalStorageKeys, LoginEventService, LoginEventType, LuigiCoreService, LuigiNodesService, NetworkVisibility, NodeUtilsService, PortalComponent, RequestHeadersService, RoutingConfigServiceImpl, SessionRefreshService, StaticSettingsConfigServiceImpl, THEMING_SERVICE, UserSettingsConfigService, featureToggleLocalStorage, localDevelopmentSettingsLocalStorage, matchesJMESPath, providePortal, userSettingsLocalStorage };
|
|
1071
|
+
export type { AppSwitcherConfigService, AuthData, AuthTokenData, BreadcrumbBadge, BreadcrumbBadgeColorSchema, ButtonConfig, ClientEnvironment, Config, ContentConfiguration, CustomGlobalNodesService, CustomMessageListener, CustomNodeProcessingService, Dictionary, EntityConfig, EntityContext, EntityDefinition, ErrorComponentConfig, ExternalLink, GlobalSearchConfigService, HeaderBarConfig, HeaderBarConfigService, HelpContext, IntentSpecification, LocalConfigurationService, LocalDevelopmentSettings, LoginEvent, LuigiAppConfig, LuigiAuthEventsCallbacksService, LuigiBadgeCounter, LuigiBreadcrumb, LuigiConfig, LuigiConfigData, LuigiConfigFragment, LuigiCustomMessage, LuigiExtendedGlobalContextConfigService, LuigiGlobalContext, LuigiIntent, LuigiNavigationConfig, LuigiNode, LuigiNodeCategory, LuigiNodeDefaults, LuigiNodeIFramePermissions, LuigiStaticSettings, LuigiStatusBadge, LuigiUserSetting, LuigiUserSettings, LuigiUserSettingsGroup, MessageListener, MessageListeners, NodeChangeHookConfigService, NodeContext, NodeContextProcessingService, NodeItem, OpenNodeInModal, PortalConfig, PortalContext, PortalLuigiNodeExtensions, PortalOptions, RendererFn, RoutingConfigService, SceneConfig, SceneConfigData, ServiceProvider, StaticSettingsConfigService, Theme, ThemingService, UserData, UserProfile, UserProfileConfigService, UserProfileItem, UserSettings, UserSettingsValues, UserTokenData, ViewGroup };
|