@onecx/angular-integration-interface 9.0.0-rc.13 → 9.0.0-rc.14
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/fesm2022/onecx-angular-integration-interface-mocks.mjs +373 -213
- package/fesm2022/onecx-angular-integration-interface-mocks.mjs.map +1 -1
- package/fesm2022/onecx-angular-integration-interface.mjs +804 -549
- package/fesm2022/onecx-angular-integration-interface.mjs.map +1 -1
- package/package.json +7 -6
- package/types/onecx-angular-integration-interface-mocks.d.ts +93 -103
- package/types/onecx-angular-integration-interface.d.ts +247 -268
|
@@ -1,268 +1,247 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
skipRemoteConfigLoad: boolean;
|
|
249
|
-
/**
|
|
250
|
-
* URL from which the remote config will be loaded, default: '/assets/env.json'
|
|
251
|
-
*/
|
|
252
|
-
remoteConfigURL: string;
|
|
253
|
-
}
|
|
254
|
-
declare const APP_CONFIG: InjectionToken<LibConfig>;
|
|
255
|
-
declare const SANITY_CHECK: InjectionToken<string>;
|
|
256
|
-
declare const APPLICATION_NAME: InjectionToken<string>;
|
|
257
|
-
declare const DYNAMIC_CONTAINER: InjectionToken<() => HTMLElement>;
|
|
258
|
-
|
|
259
|
-
declare class NotificationService implements OnDestroy {
|
|
260
|
-
private readonly notificationService;
|
|
261
|
-
get notificationTopic(): NotificationTopic;
|
|
262
|
-
ngOnDestroy(): void;
|
|
263
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
264
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export { APPLICATION_NAME, APP_CONFIG, AppConfigService, AppStateService, CONFIG_KEY, ConfigurationService, DYNAMIC_CONTAINER, DynamicTranslationService, IconService, ImageRepositoryService, NotificationService, POLYFILL_SCOPE_MODE, ParametersService, PortalMessageService, RemoteComponentsService, SANITY_CHECK, ShellCapabilityService, ThemeService, UserService, WorkspaceService };
|
|
268
|
-
export type { LibConfig, Message };
|
|
1
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { InjectionToken, OnDestroy } from "@angular/core";
|
|
4
|
+
import { Config, ConfigurationTopic, CurrentLocationTopic, CurrentMfeTopic, CurrentPageTopic, CurrentThemeTopic, CurrentWorkspaceTopic, EndpointParameters, GlobalErrorTopic, GlobalLoadingTopic, IconClassType, IconTopic, IsAuthenticatedTopic, MessageTopic, MfeInfo, NotificationTopic, ParameterValue, ParametersTopic, PermissionsTopic, PortalMessage, RemoteComponentsTopic, ShellCapability, ShellCapability as Capability, Theme, TranslationContext, UserProfile, UserProfileTopic } from "@onecx/integration-interface";
|
|
5
|
+
export declare class AppConfigService {
|
|
6
|
+
private http;
|
|
7
|
+
private readonly logger;
|
|
8
|
+
config$: BehaviorSubject<{
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}>;
|
|
11
|
+
init(baseUrl: string): Promise<void>;
|
|
12
|
+
getProperty(key: string): string | undefined;
|
|
13
|
+
setProperty(key: string, val: string): void;
|
|
14
|
+
getConfig(): {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
|
+
}
|
|
20
|
+
export declare class AppStateService implements OnDestroy {
|
|
21
|
+
private _globalError$;
|
|
22
|
+
get globalError$(): GlobalErrorTopic;
|
|
23
|
+
set globalError$(source: GlobalErrorTopic);
|
|
24
|
+
private _globalLoading$;
|
|
25
|
+
get globalLoading$(): GlobalLoadingTopic;
|
|
26
|
+
set globalLoading$(source: GlobalLoadingTopic);
|
|
27
|
+
private _currentMfe$;
|
|
28
|
+
get currentMfe$(): CurrentMfeTopic;
|
|
29
|
+
set currentMfe$(source: CurrentMfeTopic);
|
|
30
|
+
private _currentLocation$;
|
|
31
|
+
get currentLocation$(): CurrentLocationTopic;
|
|
32
|
+
set currentLocation$(source: CurrentLocationTopic);
|
|
33
|
+
private _currentPage$;
|
|
34
|
+
/**
|
|
35
|
+
* This topic will only fire when pageInfo.path matches document.location.pathname,
|
|
36
|
+
* if not it will fire undefined.
|
|
37
|
+
*/
|
|
38
|
+
get currentPage$(): CurrentPageTopic;
|
|
39
|
+
set currentPage$(source: CurrentPageTopic);
|
|
40
|
+
_currentWorkspace$: CurrentWorkspaceTopic | undefined;
|
|
41
|
+
get currentWorkspace$(): CurrentWorkspaceTopic;
|
|
42
|
+
set currentWorkspace$(source: CurrentWorkspaceTopic);
|
|
43
|
+
/**
|
|
44
|
+
* This Topic is initialized as soon as the authentication is done
|
|
45
|
+
*/
|
|
46
|
+
private _isAuthenticated$;
|
|
47
|
+
get isAuthenticated$(): IsAuthenticatedTopic;
|
|
48
|
+
set isAuthenticated$(source: IsAuthenticatedTopic);
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppStateService, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
52
|
+
}
|
|
53
|
+
export declare enum CONFIG_KEY {
|
|
54
|
+
TKIT_PORTAL_DEFAULT_THEME = "TKIT_PORTAL_DEFAULT_THEME",
|
|
55
|
+
TKIT_PORTAL_DISABLE_THEME_MANAGEMENT = "TKIT_PORTAL_DISABLE_THEME_MANAGEMENT",
|
|
56
|
+
TKIT_PORTAL_THEME_SERVER_URL = "TKIT_PORTAL_THEME_SERVER_URL",
|
|
57
|
+
TKIT_TOKEN_ROLE_CLAIM_NAME = "TKIT_TOKEN_ROLE_CLAIM_NAME",
|
|
58
|
+
TKIT_PORTAL_ID = "TKIT_PORTAL_ID",
|
|
59
|
+
TKIT_SUPPORTED_LANGUAGES = "TKIT_SUPPORTED_LANGUAGES",
|
|
60
|
+
TKIT_SEARCH_BASE_URL = "TKIT_SEARCH_BASE_URL",
|
|
61
|
+
APP_BASE_HREF = "APP_BASE_HREF",
|
|
62
|
+
KEYCLOAK_REALM = "KEYCLOAK_REALM",
|
|
63
|
+
KEYCLOAK_ENABLE_SILENT_SSO = "KEYCLOAK_ENABLE_SILENT_SSO",
|
|
64
|
+
KEYCLOAK_URL = "KEYCLOAK_URL",
|
|
65
|
+
KEYCLOAK_CLIENT_ID = "KEYCLOAK_CLIENT_ID",
|
|
66
|
+
KEYCLOAK_TIME_SKEW = "KEYCLOAK_TIME_SKEW",
|
|
67
|
+
KEYCLOAK_UPDATE_TOKEN_MIN_VALIDITY = "KEYCLOAK_UPDATE_TOKEN_MIN_VALIDITY",
|
|
68
|
+
KEYCLOAK_ON_TOKEN_EXPIRED_ENABLED = "KEYCLOAK_ON_TOKEN_EXPIRED_ENABLED",
|
|
69
|
+
KEYCLOAK_ON_AUTH_REFRESH_ERROR_ENABLED = "KEYCLOAK_ON_AUTH_REFRESH_ERROR_ENABLED",
|
|
70
|
+
ONECX_PORTAL_FAVORITES_DISABLED = "ONECX_PORTAL_FAVORITES_DISABLED",
|
|
71
|
+
ONECX_PORTAL_FEEDBACK_DISABLED = "ONECX_PORTAL_FEEDBACK_DISABLED",
|
|
72
|
+
ONECX_PORTAL_SEARCH_DISABLED = "ONECX_PORTAL_SEARCH_DISABLED",
|
|
73
|
+
ONECX_PORTAL_SUPPORT_TICKET_DISABLED = "ONECX_PORTAL_SUPPORT_TICKET_DISABLED",
|
|
74
|
+
ONECX_PORTAL_ANNOUNCEMENTS_DISABLED = "ONECX_PORTAL_ANNOUNCEMENTS_DISABLED",
|
|
75
|
+
ONECX_PORTAL_PASSWORD_CHANGE_DISABLED = "ONECX_PORTAL_PASSWORD_CHANGE_DISABLED",
|
|
76
|
+
ONECX_PORTAL_SETTINGS_DISABLED = "ONECX_PORTAL_SETTINGS_DISABLED",
|
|
77
|
+
ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED = "ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED",
|
|
78
|
+
ONECX_PORTAL_HELP_DISABLED = "ONECX_PORTAL_HELP_DISABLED",
|
|
79
|
+
ONECX_PORTAL_SEARCH_BUTTONS_REVERSED = "ONECX_PORTAL_SEARCH_BUTTONS_REVERSED",
|
|
80
|
+
APP_VERSION = "APP_VERSION",
|
|
81
|
+
IS_SHELL = "IS_SHELL",
|
|
82
|
+
AUTH_SERVICE = "AUTH_SERVICE",
|
|
83
|
+
AUTH_SERVICE_CUSTOM_URL = "AUTH_SERVICE_CUSTOM_URL",
|
|
84
|
+
AUTH_SERVICE_CUSTOM_MODULE_NAME = "AUTH_SERVICE_CUSTOM_MODULE_NAME",
|
|
85
|
+
POLYFILL_SCOPE_MODE = "POLYFILL_SCOPE_MODE",
|
|
86
|
+
KEYBOARD_FOCUSABLE_SELECTOR = "KEYBOARD_FOCUSABLE_SELECTOR",
|
|
87
|
+
CUSTOM_AUTH_SHARE_SCOPE = "CUSTOM_AUTH_SHARE_SCOPE"
|
|
88
|
+
}
|
|
89
|
+
export declare enum POLYFILL_SCOPE_MODE {
|
|
90
|
+
PERFORMANCE = "PERFORMANCE",
|
|
91
|
+
PRECISION = "PRECISION"
|
|
92
|
+
}
|
|
93
|
+
export declare class ConfigurationService implements OnDestroy {
|
|
94
|
+
private http;
|
|
95
|
+
private readonly logger;
|
|
96
|
+
private defaultConfig;
|
|
97
|
+
_config$: ConfigurationTopic | undefined;
|
|
98
|
+
get config$(): ConfigurationTopic;
|
|
99
|
+
set config$(source: ConfigurationTopic);
|
|
100
|
+
private semaphore;
|
|
101
|
+
ngOnDestroy(): void;
|
|
102
|
+
init(): Promise<boolean>;
|
|
103
|
+
get isInitialized(): Promise<void>;
|
|
104
|
+
getProperty(key: CONFIG_KEY): Promise<string | undefined>;
|
|
105
|
+
setProperty(key: string, val: string): Promise<void>;
|
|
106
|
+
getConfig(): Promise<Config | undefined>;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
|
108
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
109
|
+
}
|
|
110
|
+
export declare class UserService implements OnDestroy {
|
|
111
|
+
profile$: UserProfileTopic;
|
|
112
|
+
lang$: BehaviorSubject<string>;
|
|
113
|
+
_permissionsTopic$: PermissionsTopic | undefined;
|
|
114
|
+
get permissionsTopic$(): PermissionsTopic;
|
|
115
|
+
set permissionsTopic$(source: PermissionsTopic);
|
|
116
|
+
constructor();
|
|
117
|
+
ngOnDestroy(): void;
|
|
118
|
+
useOldLangSetting(profile: UserProfile): string;
|
|
119
|
+
getPermissions(): import("rxjs").Observable<string[]>;
|
|
120
|
+
hasPermission(permissionKey: string | string[] | undefined): Promise<boolean>;
|
|
121
|
+
get isInitialized(): Promise<void>;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
123
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
124
|
+
}
|
|
125
|
+
export declare class ParametersService implements OnDestroy {
|
|
126
|
+
private readonly shellCapabilityService;
|
|
127
|
+
private readonly appStateService;
|
|
128
|
+
_parameters$: ParametersTopic | undefined;
|
|
129
|
+
get parameters$(): ParametersTopic;
|
|
130
|
+
set parameters$(source: ParametersTopic);
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Use this method to get a parameter value in applications.
|
|
134
|
+
*
|
|
135
|
+
* @param key The key of the parameter to get. This is defined when the parameter is configured in parameter management.
|
|
136
|
+
* @param defaultValue The default value that will be returned if the parameter is not found or if the shell is not yet providing the parameters because it is too old.
|
|
137
|
+
*/
|
|
138
|
+
get<T extends ParameterValue>(key: string, defaultValue: T | Promise<T>): Promise<T>;
|
|
139
|
+
/**
|
|
140
|
+
* Use this method to get a parameter value in remote components.
|
|
141
|
+
*
|
|
142
|
+
* @param key The key of the parameter to get. This is defined when the parameter is configured in parameter management.
|
|
143
|
+
* @param defaultValue The default value that will be returned if the parameter is not found or if the shell is not yet providing the parameters because it is too old.
|
|
144
|
+
* @param productName The name of the product in which the parameter is defined.
|
|
145
|
+
* @param appId The id of the application in which the parameter is defined.
|
|
146
|
+
* @returns The value of the parameter or the default value.
|
|
147
|
+
*/
|
|
148
|
+
get<T extends ParameterValue>(key: string, defaultValue: T | Promise<T>, productName: string, appId: string): Promise<T>;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParametersService, never>;
|
|
150
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
151
|
+
}
|
|
152
|
+
export type Message = PortalMessage;
|
|
153
|
+
export declare class PortalMessageService implements OnDestroy {
|
|
154
|
+
private translateService;
|
|
155
|
+
_message$: MessageTopic | undefined;
|
|
156
|
+
get message$(): MessageTopic;
|
|
157
|
+
set message$(source: MessageTopic);
|
|
158
|
+
success(msg: Message): void;
|
|
159
|
+
info(msg: Message): void;
|
|
160
|
+
error(msg: Message): void;
|
|
161
|
+
warning(msg: Message): void;
|
|
162
|
+
private addTranslated;
|
|
163
|
+
ngOnDestroy(): void;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalMessageService, never>;
|
|
165
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
166
|
+
}
|
|
167
|
+
export declare class ThemeService implements OnDestroy {
|
|
168
|
+
_currentTheme$: CurrentThemeTopic | undefined;
|
|
169
|
+
get currentTheme$(): CurrentThemeTopic;
|
|
170
|
+
set currentTheme$(source: CurrentThemeTopic);
|
|
171
|
+
ngOnDestroy(): void;
|
|
172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
173
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
174
|
+
}
|
|
175
|
+
export declare class RemoteComponentsService implements OnDestroy {
|
|
176
|
+
_remoteComponents$: RemoteComponentsTopic | undefined;
|
|
177
|
+
get remoteComponents$(): RemoteComponentsTopic;
|
|
178
|
+
set remoteComponents$(source: RemoteComponentsTopic);
|
|
179
|
+
ngOnDestroy(): void;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponentsService, never>;
|
|
181
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
182
|
+
}
|
|
183
|
+
export declare class WorkspaceService {
|
|
184
|
+
protected appStateService: AppStateService;
|
|
185
|
+
private readonly logger;
|
|
186
|
+
getUrl(productName: string, appId: string, endpointName?: string, endpointParameters?: EndpointParameters): Observable<string>;
|
|
187
|
+
doesUrlExistFor(productName: string, appId: string, endpointName?: string): Observable<boolean>;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceService, never>;
|
|
189
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
190
|
+
}
|
|
191
|
+
export declare class ShellCapabilityService {
|
|
192
|
+
static setCapabilities(capabilities: ShellCapability[]): void;
|
|
193
|
+
hasCapability(capability: ShellCapability): boolean;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShellCapabilityService, never>;
|
|
195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
196
|
+
}
|
|
197
|
+
export declare class ImageRepositoryService implements OnDestroy {
|
|
198
|
+
private readonly imageRepositoryInterface;
|
|
199
|
+
get imageRepositoryTopic(): import("@onecx/integration-interface").ImageRepositoryTopic;
|
|
200
|
+
getUrl(names: string[]): Promise<string | undefined>;
|
|
201
|
+
getUrl(names: string[], fallbackUrl: string): Promise<string>;
|
|
202
|
+
ngOnDestroy(): void;
|
|
203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageRepositoryService, never>;
|
|
204
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
205
|
+
}
|
|
206
|
+
export declare class IconService implements OnDestroy {
|
|
207
|
+
private readonly iconServiceInterface;
|
|
208
|
+
get iconTopic(): IconTopic;
|
|
209
|
+
requestIcon(name: string, type?: IconClassType): string;
|
|
210
|
+
requestIconAsync(name: string, type?: IconClassType): Promise<string | null>;
|
|
211
|
+
requestIconAsync(name: string, type: IconClassType, fallbackClass: string): Promise<string>;
|
|
212
|
+
ngOnDestroy(): void;
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
214
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
215
|
+
}
|
|
216
|
+
export declare class DynamicTranslationService implements OnDestroy {
|
|
217
|
+
private readonly dynamicTranslationInterface;
|
|
218
|
+
get dynamicTranslationsTopic$(): import("@onecx/integration-interface").DynamicTranslationsTopic;
|
|
219
|
+
getTranslations(lang: string, contexts: TranslationContext[]): Observable<Record<string, Record<string, unknown>>>;
|
|
220
|
+
ngOnDestroy(): void;
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTranslationService, never>;
|
|
222
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
223
|
+
}
|
|
224
|
+
export interface LibConfig {
|
|
225
|
+
appId: string;
|
|
226
|
+
portalId: string;
|
|
227
|
+
/**
|
|
228
|
+
* If true, the tkit-module will not try to load remote env values from server(GET /assets/env.json)
|
|
229
|
+
*/
|
|
230
|
+
skipRemoteConfigLoad: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* URL from which the remote config will be loaded, default: '/assets/env.json'
|
|
233
|
+
*/
|
|
234
|
+
remoteConfigURL: string;
|
|
235
|
+
}
|
|
236
|
+
export declare const APP_CONFIG: InjectionToken<LibConfig>;
|
|
237
|
+
export declare const SANITY_CHECK: InjectionToken<string>;
|
|
238
|
+
export declare const APPLICATION_NAME: InjectionToken<string>;
|
|
239
|
+
export declare const DYNAMIC_CONTAINER: InjectionToken<() => HTMLElement>;
|
|
240
|
+
export declare class NotificationService implements OnDestroy {
|
|
241
|
+
private readonly notificationService;
|
|
242
|
+
get notificationTopic(): NotificationTopic;
|
|
243
|
+
ngOnDestroy(): void;
|
|
244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
245
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
246
|
+
}
|
|
247
|
+
export { Capability, MfeInfo, Theme };
|