@webskills/ng-utils 3.6.7 → 4.0.1
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/webskills-ng-utils.mjs +91 -84
- package/fesm2022/webskills-ng-utils.mjs.map +1 -1
- package/index.d.ts +927 -3
- package/package.json +2 -1
- package/lib/angular/instanceOf.utils.d.ts +0 -2
- package/lib/breakpoints/breakpoints.d.ts +0 -16
- package/lib/color/constrast-color.d.ts +0 -1
- package/lib/comm/request.utils.d.ts +0 -15
- package/lib/content/anchor.utils.d.ts +0 -13
- package/lib/data-source/abstract-wsk-data-source.d.ts +0 -35
- package/lib/data-source/data-source.model.d.ts +0 -51
- package/lib/data-source/wsk-data-source.d.ts +0 -11
- package/lib/data-source/wsk-lazy-data-source.d.ts +0 -25
- package/lib/date-time/date-time.utils.d.ts +0 -8
- package/lib/date-time/date.utils.d.ts +0 -17
- package/lib/date-time/time.d.ts +0 -15
- package/lib/date-time/time.utils.d.ts +0 -39
- package/lib/form/abstract-control-value-accessor.directive.d.ts +0 -17
- package/lib/formValidation/formControlError.utils.d.ts +0 -16
- package/lib/formValidation/validation.utils.d.ts +0 -23
- package/lib/graphic.utils.d.ts +0 -16
- package/lib/immutability/freeze.utils.d.ts +0 -1
- package/lib/let/let.directive.d.ts +0 -16
- package/lib/locale/decimal-separator.d.ts +0 -3
- package/lib/object.utils.d.ts +0 -7
- package/lib/pipes/array/select-from-array.pipe.d.ts +0 -7
- package/lib/pipes/contains/contains.pipe.d.ts +0 -13
- package/lib/pipes/fallback/fallback.pipe.d.ts +0 -7
- package/lib/pipes/filter/filter.pipe.d.ts +0 -12
- package/lib/pipes/find/find.pipe.d.ts +0 -13
- package/lib/pipes/index.d.ts +0 -9
- package/lib/pipes/map/map.pipe.d.ts +0 -7
- package/lib/pipes/minutes/duration-minutes.pipe.d.ts +0 -7
- package/lib/pipes/minutes/minutes.pipe.d.ts +0 -7
- package/lib/pipes/transform/transform.pipe.d.ts +0 -7
- package/lib/rxjs/active-request.d.ts +0 -9
- package/lib/services/authn/auth.store.d.ts +0 -8
- package/lib/services/authn/authentication.adapter.d.ts +0 -11
- package/lib/services/authn/authentication.service.d.ts +0 -63
- package/lib/services/authn/authn.guard.d.ts +0 -15
- package/lib/services/authn/credentials.d.ts +0 -4
- package/lib/services/authn/jwt-auth-interceptor.service.d.ts +0 -12
- package/lib/services/authn/local-auth-status.d.ts +0 -7
- package/lib/services/authn/not-auth.guard.d.ts +0 -17
- package/lib/services/browser/browser-meta.service.d.ts +0 -16
- package/lib/services/browser/page-meta.d.ts +0 -10
- package/lib/services/configuration/config.d.ts +0 -19
- package/lib/services/edit/can-deactivate.guard.d.ts +0 -11
- package/lib/services/edit/id-compare.d.ts +0 -5
- package/lib/services/index.d.ts +0 -28
- package/lib/services/logging/ng-error-handler.d.ts +0 -11
- package/lib/services/routing/previous-route.service.d.ts +0 -11
- package/lib/services/store/abstract-entity-store.d.ts +0 -19
- package/lib/services/store/abstract-store.d.ts +0 -13
- package/lib/services/time/time.adapter.d.ts +0 -7
- package/lib/services/time/time.service.d.ts +0 -27
- package/lib/services/tracking/browser-tracking.service.d.ts +0 -28
- package/lib/services/tracking/click-tracking.directive.d.ts +0 -10
- package/lib/services/tracking/logging-backend-appender.d.ts +0 -8
- package/lib/services/tracking/tracking.adapter.d.ts +0 -9
- package/lib/services/tracking/tracking.d.ts +0 -102
- package/lib/services/tracking/tracking.service.d.ts +0 -31
- package/lib/services/user/local-user-account.d.ts +0 -15
- package/lib/services/user/user.adapter.d.ts +0 -17
- package/lib/services/user/user.service.d.ts +0 -27
- package/lib/viewport.utils.d.ts +0 -2
- package/lib/webcomponents/web-components.d.ts +0 -2
- package/public-api.d.ts +0 -26
package/index.d.ts
CHANGED
|
@@ -1,5 +1,929 @@
|
|
|
1
|
+
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, NavigationExtras } from '@angular/router';
|
|
2
|
+
import { Meta } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, OnDestroy, ErrorHandler, PipeTransform, Renderer2, ViewContainerRef, TemplateRef, Type, Injector, ElementRef, OnChanges } from '@angular/core';
|
|
5
|
+
import { Observable, Subject, BehaviorSubject, MonoTypeOperatorFunction } from 'rxjs';
|
|
6
|
+
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from '@angular/common/http';
|
|
7
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
8
|
+
import { Appender, LogLevel } from '@webskills/logging';
|
|
9
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
10
|
+
import { DecimalSeparator } from '@webskills/ts-utils';
|
|
11
|
+
import { ControlValueAccessor, ValidatorFn, AbstractControl } from '@angular/forms';
|
|
12
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
13
|
+
|
|
14
|
+
interface PageMeta {
|
|
15
|
+
description?: string;
|
|
16
|
+
keywords?: string;
|
|
17
|
+
robots?: string;
|
|
18
|
+
image?: string;
|
|
19
|
+
og_title?: string;
|
|
20
|
+
og_type?: string;
|
|
21
|
+
og_description?: string;
|
|
22
|
+
twitter_card?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface EnvironmentConfig extends Record<string, unknown> {
|
|
26
|
+
production: boolean;
|
|
27
|
+
apiBasePath: string;
|
|
28
|
+
}
|
|
29
|
+
declare class Config<T extends EnvironmentConfig> {
|
|
30
|
+
values: T;
|
|
31
|
+
constructor(values: T);
|
|
32
|
+
get production(): boolean;
|
|
33
|
+
get apiBasePath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the value for a specified config option or fallback to the specified default value.
|
|
36
|
+
*
|
|
37
|
+
* @param name of the config option
|
|
38
|
+
* @param defaultValue value that is used when config option is not specified elsewhere
|
|
39
|
+
*/
|
|
40
|
+
getProperty<V>(name: string, defaultValue: V): V;
|
|
41
|
+
}
|
|
42
|
+
declare const CONFIG: InjectionToken<Config<never>>;
|
|
43
|
+
|
|
44
|
+
declare class BrowserMetaService {
|
|
45
|
+
private router;
|
|
46
|
+
private meta;
|
|
47
|
+
private readonly config;
|
|
48
|
+
constructor(router: Router, meta: Meta, config: Config<never>);
|
|
49
|
+
init(): void;
|
|
50
|
+
setPageMetaData(meta?: PageMeta, pageTitle?: string): void;
|
|
51
|
+
private setOrRemoveTag;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserMetaService, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserMetaService>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Credentials {
|
|
57
|
+
email: string;
|
|
58
|
+
password: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
1
61
|
/**
|
|
2
|
-
*
|
|
62
|
+
* User account that is managed by Apollo locally.
|
|
3
63
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
64
|
+
interface LocalUserAccount {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
email: string;
|
|
68
|
+
avatarUrl: string;
|
|
69
|
+
avatarFileId: string;
|
|
70
|
+
gravatarEmail: string;
|
|
71
|
+
roles: {
|
|
72
|
+
tenantId: string;
|
|
73
|
+
permissions: string[];
|
|
74
|
+
}[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare abstract class UserAdapter {
|
|
78
|
+
abstract registerUser(registerData: UserRegistrationData): Observable<LocalUserAccount>;
|
|
79
|
+
abstract changeEmailAddress(newEmailAddress: string, password: string): Observable<void>;
|
|
80
|
+
abstract confirmEmail(token: string): Observable<boolean>;
|
|
81
|
+
abstract confirmDeleteAccount(token: string): Observable<boolean>;
|
|
82
|
+
abstract changePassword(currentPassword: string, newPassword: string): Observable<void>;
|
|
83
|
+
abstract requestPasswordReset(email: string): Observable<void>;
|
|
84
|
+
abstract confirmPasswordReset(token: string, newPassword: string): Observable<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Get the user account. Return error if account could not be retrieved
|
|
87
|
+
*/
|
|
88
|
+
abstract getUser(sessionId?: string): Observable<LocalUserAccount>;
|
|
89
|
+
abstract deleteAccount(password: string): Observable<void>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface UserRegistrationData {
|
|
93
|
+
name: string;
|
|
94
|
+
email: string;
|
|
95
|
+
password: string;
|
|
96
|
+
}
|
|
97
|
+
declare class UserService {
|
|
98
|
+
private userAdapter;
|
|
99
|
+
private _userAccount$;
|
|
100
|
+
userAccount$: Observable<LocalUserAccount | null>;
|
|
101
|
+
constructor(userAdapter: UserAdapter);
|
|
102
|
+
registerUser(registerData: UserRegistrationData): Observable<LocalUserAccount>;
|
|
103
|
+
setUserAccount(user: LocalUserAccount): void;
|
|
104
|
+
getUserAccount(): LocalUserAccount | null;
|
|
105
|
+
changePassword(currentPassword: string, newPassword: string): Observable<void>;
|
|
106
|
+
requestPasswordReset(email: string): Observable<void>;
|
|
107
|
+
confirmPasswordReset(token: string, newPassword: string): Observable<void>;
|
|
108
|
+
changeEmailAddress(newEmailAddress: string, password: string): Observable<void>;
|
|
109
|
+
confirmEmail(token: string): Observable<boolean>;
|
|
110
|
+
confirmDeleteAccount(token: string): Observable<boolean>;
|
|
111
|
+
deleteAccount(password: string): Observable<void>;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
113
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare abstract class AuthenticationAdapter {
|
|
117
|
+
abstract testSessionValid(): Observable<boolean>;
|
|
118
|
+
abstract logout(sessionId: string): Observable<void>;
|
|
119
|
+
abstract login(credentials: Credentials): Observable<{
|
|
120
|
+
sessionId: string;
|
|
121
|
+
user: LocalUserAccount;
|
|
122
|
+
}>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare abstract class AbstractStore<T> implements OnDestroy {
|
|
126
|
+
private _value$;
|
|
127
|
+
get value$(): Observable<T>;
|
|
128
|
+
protected constructor(initialValue: T);
|
|
129
|
+
update(value: T): void;
|
|
130
|
+
getInstant(): T;
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractStore<any>, never>;
|
|
133
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractStore<any>, never, never, {}, {}, never, never, true, never>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Auth status that is managed by Apollo locally.
|
|
138
|
+
*/
|
|
139
|
+
interface LocalAuthStatus {
|
|
140
|
+
isLoggedIn: boolean;
|
|
141
|
+
sessionId: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class AuthStore extends AbstractStore<LocalAuthStatus> {
|
|
145
|
+
constructor();
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthStore, never>;
|
|
147
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthStore>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface UserAgent {
|
|
151
|
+
/**
|
|
152
|
+
* session id
|
|
153
|
+
*/
|
|
154
|
+
sId?: string;
|
|
155
|
+
ua?: string;
|
|
156
|
+
/**
|
|
157
|
+
* This value is used to detect the visitor's country if GeoIP is not enabled.
|
|
158
|
+
*/
|
|
159
|
+
lng?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The resolution of the device the visitor is using
|
|
162
|
+
*/
|
|
163
|
+
res?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Timezone
|
|
166
|
+
*/
|
|
167
|
+
tz?: string;
|
|
168
|
+
/**
|
|
169
|
+
* cookies supported
|
|
170
|
+
*/
|
|
171
|
+
c?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* user id
|
|
174
|
+
*/
|
|
175
|
+
uId?: string;
|
|
176
|
+
}
|
|
177
|
+
interface Interaction {
|
|
178
|
+
url?: string;
|
|
179
|
+
/**
|
|
180
|
+
* session id
|
|
181
|
+
*/
|
|
182
|
+
sId?: string;
|
|
183
|
+
/**
|
|
184
|
+
* event
|
|
185
|
+
*/
|
|
186
|
+
e: string;
|
|
187
|
+
/**
|
|
188
|
+
* data
|
|
189
|
+
*/
|
|
190
|
+
d?: any;
|
|
191
|
+
/**
|
|
192
|
+
* component
|
|
193
|
+
*/
|
|
194
|
+
c: string;
|
|
195
|
+
/**
|
|
196
|
+
* user id
|
|
197
|
+
*/
|
|
198
|
+
uId?: string;
|
|
199
|
+
}
|
|
200
|
+
interface Visit {
|
|
201
|
+
url?: string;
|
|
202
|
+
/**
|
|
203
|
+
* session id
|
|
204
|
+
*/
|
|
205
|
+
sId?: string;
|
|
206
|
+
/**
|
|
207
|
+
* component view
|
|
208
|
+
*/
|
|
209
|
+
c?: string;
|
|
210
|
+
/**
|
|
211
|
+
* user id
|
|
212
|
+
*/
|
|
213
|
+
uId?: string;
|
|
214
|
+
}
|
|
215
|
+
interface Info {
|
|
216
|
+
url?: string;
|
|
217
|
+
/**
|
|
218
|
+
* session id
|
|
219
|
+
*/
|
|
220
|
+
sId?: string;
|
|
221
|
+
/**
|
|
222
|
+
* name
|
|
223
|
+
*/
|
|
224
|
+
n: string;
|
|
225
|
+
/**
|
|
226
|
+
* data
|
|
227
|
+
*/
|
|
228
|
+
d?: any;
|
|
229
|
+
/**
|
|
230
|
+
* user id
|
|
231
|
+
*/
|
|
232
|
+
uId?: string;
|
|
233
|
+
}
|
|
234
|
+
interface LogMessage {
|
|
235
|
+
name: string;
|
|
236
|
+
level: string;
|
|
237
|
+
messages: string[];
|
|
238
|
+
sId?: string;
|
|
239
|
+
uId?: string;
|
|
240
|
+
}
|
|
241
|
+
interface Session {
|
|
242
|
+
browserId?: string;
|
|
243
|
+
referrer?: string;
|
|
244
|
+
utmSource?: string;
|
|
245
|
+
utmMedium?: string;
|
|
246
|
+
utmCampaign?: string;
|
|
247
|
+
utmTerm?: string;
|
|
248
|
+
utmContent?: string;
|
|
249
|
+
sId?: string;
|
|
250
|
+
uId?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare abstract class TrackingAdapter {
|
|
254
|
+
abstract trackUserAgent(ua: UserAgent): void;
|
|
255
|
+
abstract trackInteraction(interaction: Interaction): void;
|
|
256
|
+
abstract trackInfo(info: Info): void;
|
|
257
|
+
abstract trackVisit(visit: Visit): void;
|
|
258
|
+
abstract trackLog(log: LogMessage): void;
|
|
259
|
+
abstract trackSession(session: Session): void;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface AppTrackingInteractionEvent {
|
|
263
|
+
component: string;
|
|
264
|
+
event: string;
|
|
265
|
+
data?: any;
|
|
266
|
+
}
|
|
267
|
+
interface Options {
|
|
268
|
+
uId?: string;
|
|
269
|
+
}
|
|
270
|
+
declare class TrackingService {
|
|
271
|
+
private adapter;
|
|
272
|
+
private readonly isBrowser;
|
|
273
|
+
constructor(adapter: TrackingAdapter, platformId: NonNullable<unknown>);
|
|
274
|
+
trackSession(options?: Options): void;
|
|
275
|
+
trackInfo(info: {
|
|
276
|
+
data?: any;
|
|
277
|
+
name: string;
|
|
278
|
+
}, options?: Options): void;
|
|
279
|
+
trackInteraction(event: AppTrackingInteractionEvent, options?: Options): void;
|
|
280
|
+
trackVisit(event: {
|
|
281
|
+
component?: string;
|
|
282
|
+
url?: string;
|
|
283
|
+
}, options?: Options): void;
|
|
284
|
+
trackUserAgent(userAgent: UserAgent, options?: Options): void;
|
|
285
|
+
private enrichWithUrl;
|
|
286
|
+
private getBrowserUrl;
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackingService, never>;
|
|
288
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TrackingService>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class AuthenticationService implements OnDestroy {
|
|
292
|
+
private userService;
|
|
293
|
+
private readonly config;
|
|
294
|
+
private router;
|
|
295
|
+
private authAdapter;
|
|
296
|
+
private userAdapter;
|
|
297
|
+
private authStore;
|
|
298
|
+
private trackingService;
|
|
299
|
+
private logger;
|
|
300
|
+
private destroyed$;
|
|
301
|
+
constructor(userService: UserService, config: Config<never>, router: Router, authAdapter: AuthenticationAdapter, userAdapter: UserAdapter, authStore: AuthStore, trackingService: TrackingService);
|
|
302
|
+
ngOnDestroy(): void;
|
|
303
|
+
/**
|
|
304
|
+
* Test the current session against the backend.
|
|
305
|
+
*/
|
|
306
|
+
private testSessionValid;
|
|
307
|
+
/**
|
|
308
|
+
* Use the existing session id to check against the backend whether the session is still active.
|
|
309
|
+
*
|
|
310
|
+
* E.g. during app (after a reload etc.) the previous login state must be restored.
|
|
311
|
+
*/
|
|
312
|
+
recoverSession(): Observable<boolean>;
|
|
313
|
+
private insertSessionInformationIntoStore;
|
|
314
|
+
/**
|
|
315
|
+
* Perform a login against the backend and store the session and user information in the frontend.
|
|
316
|
+
*
|
|
317
|
+
* @param credentials
|
|
318
|
+
*/
|
|
319
|
+
login(credentials: Credentials): Observable<void>;
|
|
320
|
+
/**
|
|
321
|
+
* Perform a logout against the backend and remove locally stored session and user information.
|
|
322
|
+
*/
|
|
323
|
+
logout(): Observable<void>;
|
|
324
|
+
isLoggedIn(): Observable<boolean>;
|
|
325
|
+
/**
|
|
326
|
+
* Reset the auth state in the app.
|
|
327
|
+
*/
|
|
328
|
+
private resetAuthStatus;
|
|
329
|
+
getSessionId(): string;
|
|
330
|
+
isLoggedInInstant(): boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Start a timer that continuously checks the session.
|
|
333
|
+
*/
|
|
334
|
+
private startSessionCheck;
|
|
335
|
+
validateSession(): void;
|
|
336
|
+
/**
|
|
337
|
+
* Perform a logout that is triggered by the app
|
|
338
|
+
*/
|
|
339
|
+
appLogout(): void;
|
|
340
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, never>;
|
|
341
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
declare class AuthGuard {
|
|
345
|
+
private authService;
|
|
346
|
+
private router;
|
|
347
|
+
constructor(authService: AuthenticationService, router: Router);
|
|
348
|
+
private checkLogin;
|
|
349
|
+
canLoad(): Observable<boolean>;
|
|
350
|
+
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
|
|
351
|
+
canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
|
|
352
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
353
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare class PreviousRouteService {
|
|
357
|
+
private router;
|
|
358
|
+
private previousUrl?;
|
|
359
|
+
private currentUrl;
|
|
360
|
+
constructor(router: Router);
|
|
361
|
+
getPreviousUrl(): string | undefined;
|
|
362
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviousRouteService, never>;
|
|
363
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PreviousRouteService>;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare class NotAuthGuard {
|
|
367
|
+
private authService;
|
|
368
|
+
private router;
|
|
369
|
+
private previousRouteService;
|
|
370
|
+
constructor(authService: AuthenticationService, router: Router, previousRouteService: PreviousRouteService);
|
|
371
|
+
private checkLoggedOut;
|
|
372
|
+
canLoad(): Observable<boolean>;
|
|
373
|
+
canActivate(): Observable<boolean | UrlTree>;
|
|
374
|
+
canActivateChild(): Observable<boolean | UrlTree>;
|
|
375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotAuthGuard, never>;
|
|
376
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotAuthGuard>;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare class JwtAuthInterceptor implements HttpInterceptor {
|
|
380
|
+
private authService;
|
|
381
|
+
constructor(authService: AuthenticationService);
|
|
382
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
383
|
+
private interceptHttp401Error;
|
|
384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JwtAuthInterceptor, never>;
|
|
385
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JwtAuthInterceptor>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
type ID = string | null | undefined;
|
|
389
|
+
declare abstract class AbstractEntityStore<T extends {
|
|
390
|
+
id?: ID;
|
|
391
|
+
}> extends AbstractStore<T[]> {
|
|
392
|
+
insertEntity(value: T): void;
|
|
393
|
+
upsertEntity(value: T): void;
|
|
394
|
+
updateEntity(value: T): void;
|
|
395
|
+
private replaceValueAtIndex;
|
|
396
|
+
/**
|
|
397
|
+
* @return false if entity with id was not found
|
|
398
|
+
*/
|
|
399
|
+
deleteEntity(id: string): boolean;
|
|
400
|
+
private getIdx;
|
|
401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractEntityStore<any>, never>;
|
|
402
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractEntityStore<any>, never, never, {}, {}, never, never, true, never>;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
declare abstract class TimeAdapter {
|
|
406
|
+
/**
|
|
407
|
+
* get server as ISO time string
|
|
408
|
+
*/
|
|
409
|
+
abstract getServerTime(): Observable<string>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
declare class TimeService implements OnDestroy {
|
|
413
|
+
private readonly config;
|
|
414
|
+
private timeAdapter;
|
|
415
|
+
private trackingService;
|
|
416
|
+
private logger;
|
|
417
|
+
private componentDestroyed$;
|
|
418
|
+
private offset;
|
|
419
|
+
constructor(config: Config<never>, timeAdapter: TimeAdapter, trackingService: TrackingService);
|
|
420
|
+
init(): void;
|
|
421
|
+
_calcOffset(requestStart: Date, serverTime: Date, now: Date): number | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* Get the current server time as Date object
|
|
424
|
+
*/
|
|
425
|
+
getCurrentDate(): Date;
|
|
426
|
+
/**
|
|
427
|
+
* Get the current server time in ms
|
|
428
|
+
*/
|
|
429
|
+
getCurrentMs(): number;
|
|
430
|
+
ngOnDestroy(): void;
|
|
431
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeService, never>;
|
|
432
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimeService>;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
interface CanDeactivateComponent {
|
|
436
|
+
canDeactivate(): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
437
|
+
}
|
|
438
|
+
declare class CanDeactivateGuard {
|
|
439
|
+
canDeactivate(component: CanDeactivateComponent): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
440
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CanDeactivateGuard, never>;
|
|
441
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CanDeactivateGuard>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare function idCompare(c1: {
|
|
445
|
+
id?: unknown;
|
|
446
|
+
}, c2: {
|
|
447
|
+
id?: unknown;
|
|
448
|
+
}): boolean;
|
|
449
|
+
|
|
450
|
+
declare class BrowserTrackingService implements OnDestroy {
|
|
451
|
+
private trackingService;
|
|
452
|
+
private router;
|
|
453
|
+
private breakpointObserver;
|
|
454
|
+
private document;
|
|
455
|
+
private readonly isBrowser;
|
|
456
|
+
private readonly destroyed$;
|
|
457
|
+
constructor(trackingService: TrackingService, router: Router, breakpointObserver: BreakpointObserver, platformId: NonNullable<unknown>, document: Document);
|
|
458
|
+
init(options?: {
|
|
459
|
+
monitorNavigationEvents?: boolean;
|
|
460
|
+
trackExternalLinks?: boolean;
|
|
461
|
+
trackUa?: boolean;
|
|
462
|
+
trackBreakpoints?: boolean;
|
|
463
|
+
trackSession?: boolean;
|
|
464
|
+
}): void;
|
|
465
|
+
private monitorAndTrackNavigationEvents;
|
|
466
|
+
private trackExternalLinks;
|
|
467
|
+
private trackBreakpoints;
|
|
468
|
+
private trackUa;
|
|
469
|
+
ngOnDestroy(): void;
|
|
470
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserTrackingService, never>;
|
|
471
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserTrackingService>;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare class ClickTrackingDirective {
|
|
475
|
+
private trackingService;
|
|
476
|
+
wskClickTracking: AppTrackingInteractionEvent;
|
|
477
|
+
onClick(): void;
|
|
478
|
+
constructor(trackingService: TrackingService);
|
|
479
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickTrackingDirective, never>;
|
|
480
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickTrackingDirective, "[wskClickTracking]", never, { "wskClickTracking": { "alias": "wskClickTracking"; "required": false; }; }, {}, never, never, true, never>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare class LoggingBackendAppender implements Appender {
|
|
484
|
+
level: LogLevel;
|
|
485
|
+
private logAdapter;
|
|
486
|
+
constructor(level: LogLevel, logAdapter: TrackingAdapter);
|
|
487
|
+
appendMessage(name: string, level: LogLevel, message: any, additional: any[]): void;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Use as follows in main module
|
|
492
|
+
* ```
|
|
493
|
+
* { provide: ErrorHandler, useClass: NgErrorHandler },
|
|
494
|
+
* ```
|
|
495
|
+
*/
|
|
496
|
+
declare class NgErrorHandler implements ErrorHandler {
|
|
497
|
+
private logger;
|
|
498
|
+
handleError(error: any): void;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
declare class ContainsPipe<T> implements PipeTransform {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @param value data that is searched
|
|
505
|
+
* @param func callback function in order to find the required entry
|
|
506
|
+
* @param data data that is passed as second argument to the callback function
|
|
507
|
+
*/
|
|
508
|
+
transform(value: T[], func: (v: T, data: any) => boolean, data: any): boolean;
|
|
509
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContainsPipe<any>, never>;
|
|
510
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ContainsPipe<any>, "contains", true>;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare class FilterPipe<T, P = unknown> implements PipeTransform {
|
|
514
|
+
/**
|
|
515
|
+
* @param value list that will be filtered
|
|
516
|
+
* @param predicate function to test each value element
|
|
517
|
+
* @param param optional additional parameter that is passed into the predicate function
|
|
518
|
+
*/
|
|
519
|
+
transform(value: T[], predicate: (v: T, param?: P) => boolean, param?: P): T[] | undefined;
|
|
520
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe<any, any>, never>;
|
|
521
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe<any, any>, "filter", true>;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
declare class FindPipe<T> implements PipeTransform {
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @param value data that is searched
|
|
528
|
+
* @param func callback function in order to find the required entry
|
|
529
|
+
* @param data data that is passed as second argument to the callback function
|
|
530
|
+
*/
|
|
531
|
+
transform(value: T[], func: (v: T, data: any) => boolean, data: any): T | undefined;
|
|
532
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FindPipe<any>, never>;
|
|
533
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FindPipe<any>, "find", true>;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
declare class MapPipe<T, R> implements PipeTransform {
|
|
537
|
+
transform(value: T[], func: (v: T) => R): R[] | undefined;
|
|
538
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapPipe<any, any>, never>;
|
|
539
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MapPipe<any, any>, "map", true>;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare class MinutesPipe implements PipeTransform {
|
|
543
|
+
transform(minutes: number): string | undefined;
|
|
544
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinutesPipe, never>;
|
|
545
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MinutesPipe, "minutes", true>;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class DurationMinutesPipe implements PipeTransform {
|
|
549
|
+
transform(minutes: number): string | undefined;
|
|
550
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DurationMinutesPipe, never>;
|
|
551
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DurationMinutesPipe, "durationMinutes", true>;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare class SelectFromArrayPipe implements PipeTransform {
|
|
555
|
+
transform<T>(value: T[], index: number): T | undefined;
|
|
556
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFromArrayPipe, never>;
|
|
557
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SelectFromArrayPipe, "selectFromArray", true>;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
declare class TransformPipe<T, R> implements PipeTransform {
|
|
561
|
+
transform(value: T | undefined, func: (v: T) => R): R | undefined;
|
|
562
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TransformPipe<any, any>, never>;
|
|
563
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TransformPipe<any, any>, "transform", true>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare class FallbackPipe implements PipeTransform {
|
|
567
|
+
transform<T>(value: T, fallback: T): T;
|
|
568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FallbackPipe, never>;
|
|
569
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FallbackPipe, "fallback", true>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare enum Comparator {
|
|
573
|
+
SIM = "sim",
|
|
574
|
+
NSIM = "nsim",
|
|
575
|
+
EQ = "eq",
|
|
576
|
+
NEQ = "neq",
|
|
577
|
+
LEQ = "leq",
|
|
578
|
+
LESS = "less",
|
|
579
|
+
GEQ = "geq",
|
|
580
|
+
GTR = "gtr"
|
|
581
|
+
}
|
|
582
|
+
interface PageParams {
|
|
583
|
+
page: number;
|
|
584
|
+
size: number;
|
|
585
|
+
}
|
|
586
|
+
interface SortParams {
|
|
587
|
+
sortColumn: string;
|
|
588
|
+
sortDirection: 'asc' | 'desc' | '';
|
|
589
|
+
}
|
|
590
|
+
type FilterParams = {
|
|
591
|
+
filterColumn: string;
|
|
592
|
+
comparator: Comparator;
|
|
593
|
+
filterValue: string;
|
|
594
|
+
} | FilterParams[];
|
|
595
|
+
interface RequestParams {
|
|
596
|
+
pageParams?: PageParams;
|
|
597
|
+
sortParams?: SortParams[];
|
|
598
|
+
filterParams?: FilterParams[];
|
|
599
|
+
}
|
|
600
|
+
interface Page<T> {
|
|
601
|
+
content: T[];
|
|
602
|
+
totalElements: number;
|
|
603
|
+
}
|
|
604
|
+
type PaginationEndpoint<T> = (params: RequestParams) => Observable<Page<T>>;
|
|
605
|
+
/**
|
|
606
|
+
* Store that hold the active requests parameters for a table.
|
|
607
|
+
*/
|
|
608
|
+
declare class RequestParamsHolder {
|
|
609
|
+
private destroy$;
|
|
610
|
+
private _params$;
|
|
611
|
+
params$: Observable<RequestParams>;
|
|
612
|
+
get params(): RequestParams;
|
|
613
|
+
/**
|
|
614
|
+
* Update/patch specified params. All other params remain untouched.
|
|
615
|
+
* In order to remove params, they must be provided with the value 'undefined'
|
|
616
|
+
*
|
|
617
|
+
* @param params to be updated
|
|
618
|
+
*/
|
|
619
|
+
updateParam(params: RequestParams): void;
|
|
620
|
+
destroy(): void;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
declare abstract class AbstractWskDataSource<T> extends DataSource<T> {
|
|
624
|
+
protected abstract readonly cb: PaginationEndpoint<T>;
|
|
625
|
+
protected readonly _destroy$: Subject<void>;
|
|
626
|
+
protected readonly load$: Subject<string | void>;
|
|
627
|
+
protected readonly _data$: BehaviorSubject<T[]>;
|
|
628
|
+
readonly data$: Observable<T[]>;
|
|
629
|
+
readonly destroy$: Observable<void>;
|
|
630
|
+
protected readonly _totalElements$: BehaviorSubject<number>;
|
|
631
|
+
/**
|
|
632
|
+
* Stream of current amount of all available elements.
|
|
633
|
+
*/
|
|
634
|
+
readonly totalElements$: Observable<number>;
|
|
635
|
+
protected readonly _loading$: BehaviorSubject<boolean>;
|
|
636
|
+
/**
|
|
637
|
+
* data is requested
|
|
638
|
+
*/
|
|
639
|
+
readonly loading$: Observable<boolean>;
|
|
640
|
+
get totalElements(): number;
|
|
641
|
+
get data(): T[];
|
|
642
|
+
abstract hasMore(): boolean;
|
|
643
|
+
private _requestParams;
|
|
644
|
+
get requestParams(): RequestParamsHolder;
|
|
645
|
+
/**
|
|
646
|
+
* Reload current page
|
|
647
|
+
*/
|
|
648
|
+
abstract reload(): void;
|
|
649
|
+
connect(): Observable<T[] | ReadonlyArray<T>>;
|
|
650
|
+
protected abstract buildPageParams(params: RequestParams): PageParams | undefined;
|
|
651
|
+
protected abstract storeNewData(mode: string, page: Page<T>): void;
|
|
652
|
+
protected abstract onRequestParamsChange(params: RequestParams): void;
|
|
653
|
+
disconnect(): void;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class WskDataSource<T> extends AbstractWskDataSource<T> {
|
|
657
|
+
protected readonly cb: PaginationEndpoint<T>;
|
|
658
|
+
constructor(cb: PaginationEndpoint<T>, defaultRequestParams?: RequestParams);
|
|
659
|
+
reload(): void;
|
|
660
|
+
protected buildPageParams(params: RequestParams): PageParams | undefined;
|
|
661
|
+
protected storeNewData(_mode: string, page: Page<T>): void;
|
|
662
|
+
hasMore(): boolean;
|
|
663
|
+
protected onRequestParamsChange(): void;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
interface LazyRequestParams {
|
|
667
|
+
sortParams?: SortParams[];
|
|
668
|
+
filterParams?: FilterParams[];
|
|
669
|
+
}
|
|
670
|
+
declare class WskLazyDataSource<T> extends AbstractWskDataSource<T> {
|
|
671
|
+
protected readonly cb: PaginationEndpoint<T>;
|
|
672
|
+
private readonly batchSize;
|
|
673
|
+
/**
|
|
674
|
+
* number of items that are loaded in the next request / have been loaded in the last request
|
|
675
|
+
*/
|
|
676
|
+
private requestSize;
|
|
677
|
+
private offset;
|
|
678
|
+
constructor(cb: PaginationEndpoint<T>, defaultRequestParams?: LazyRequestParams, batchSize?: number);
|
|
679
|
+
hasMore(): boolean;
|
|
680
|
+
/**
|
|
681
|
+
* Reload current page
|
|
682
|
+
*/
|
|
683
|
+
reload(): void;
|
|
684
|
+
protected storeNewData(mode: string, page: Page<T>): void;
|
|
685
|
+
protected buildPageParams(): PageParams;
|
|
686
|
+
appendNextPage(): void;
|
|
687
|
+
protected onRequestParamsChange(): void;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Convert specified time string (hh:mm) to minutes of day. E.g. 2:01 to 121.
|
|
692
|
+
*
|
|
693
|
+
* @param timeString hours with optional minutes and seconds (e.g. 16:23)
|
|
694
|
+
*/
|
|
695
|
+
declare function convertTimeToMinutes(timeString: string): number;
|
|
696
|
+
/**
|
|
697
|
+
* convert 61 to 1:01
|
|
698
|
+
*
|
|
699
|
+
* @param minutes
|
|
700
|
+
*/
|
|
701
|
+
declare function convertMinutesToTime(minutes: number): string;
|
|
702
|
+
/**
|
|
703
|
+
* reformat e.g. "9" to "9:00:00"
|
|
704
|
+
*
|
|
705
|
+
* @param timeString hours with optional minutes
|
|
706
|
+
* @param includeSeconds set to false (default: true) when seconds shall not be displayed
|
|
707
|
+
*/
|
|
708
|
+
declare function formatLocalTimeString(timeString: string, includeSeconds?: boolean): string;
|
|
709
|
+
/**
|
|
710
|
+
* reformat e.g. 45 to "0:45"
|
|
711
|
+
*
|
|
712
|
+
* @param timeString minutes with optional hours
|
|
713
|
+
*/
|
|
714
|
+
declare function formatDurationString(timeString: string): string;
|
|
715
|
+
/**
|
|
716
|
+
* convert e.g. 1000ms to 1s
|
|
717
|
+
*
|
|
718
|
+
* @param ms milliseconds
|
|
719
|
+
* @return seconds
|
|
720
|
+
*/
|
|
721
|
+
declare function convertMsToSeconds(ms: number): number;
|
|
722
|
+
/**
|
|
723
|
+
* convert e.g. 1s to 1000ms
|
|
724
|
+
*
|
|
725
|
+
* @param second
|
|
726
|
+
* @return milliseconds
|
|
727
|
+
*/
|
|
728
|
+
declare function convertSecondsToMs(second: number): number;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* 2020-04-28
|
|
732
|
+
*
|
|
733
|
+
* @param date
|
|
734
|
+
*/
|
|
735
|
+
declare function getLocalDateString(date: Date | string): string | null;
|
|
736
|
+
/**
|
|
737
|
+
* Formats a date according to locale rules.
|
|
738
|
+
* If value is undefined or null return empty string, else return the formatted date string.
|
|
739
|
+
*
|
|
740
|
+
* @param value The date to format, as a Date or a number
|
|
741
|
+
* @param format The date-time components to include, using predefined options or a custom format string
|
|
742
|
+
* @param locale A locale code for the locale format rules to use
|
|
743
|
+
* @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`)
|
|
744
|
+
*
|
|
745
|
+
*/
|
|
746
|
+
declare function formatDateWithFallback(value: string | number | Date | undefined, format: string, locale: string, timezone?: string): string;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Use the browser time and time zone to get a time zone free date (i.e. a UTC based date) of the beginning of today.
|
|
750
|
+
*
|
|
751
|
+
* @param todayDate current date with timezone
|
|
752
|
+
* @returns {Date}
|
|
753
|
+
*/
|
|
754
|
+
declare function getTodayAsUtc(todayDate: Date): Date;
|
|
755
|
+
declare function zonedTimeToUtc(date: Date): Date;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* local time format: hours with optional minutes
|
|
759
|
+
* valid: 9, 9:00, 9:30, 9:30:59
|
|
760
|
+
*/
|
|
761
|
+
declare const hoursMinutesSecondsPattern: RegExp;
|
|
762
|
+
/**
|
|
763
|
+
* local time format: hours with optional minutes, seconds and fractions
|
|
764
|
+
* valid: 9, 9:00, 9:30, 9:30:59, 9:30:59.843396
|
|
765
|
+
*/
|
|
766
|
+
declare const hoursMinutesSecondsFractionsPattern: RegExp;
|
|
767
|
+
/**
|
|
768
|
+
* locale time format: minutes with optional hours
|
|
769
|
+
* valid: 0, 30, 0:30, 12:00, 12:30
|
|
770
|
+
*/
|
|
771
|
+
declare const minutesHoursPattern: RegExp;
|
|
772
|
+
|
|
773
|
+
declare const Breakpoints: {
|
|
774
|
+
XSmall: string;
|
|
775
|
+
Small: string;
|
|
776
|
+
Medium: string;
|
|
777
|
+
Large: string;
|
|
778
|
+
XLarge: string;
|
|
779
|
+
Handset: string;
|
|
780
|
+
Tablet: string;
|
|
781
|
+
Web: string;
|
|
782
|
+
HandsetPortrait: string;
|
|
783
|
+
TabletPortrait: string;
|
|
784
|
+
WebPortrait: string;
|
|
785
|
+
HandsetLandscape: string;
|
|
786
|
+
TabletLandscape: string;
|
|
787
|
+
WebLandscape: string;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
declare function getContrastTextColor(hexColor: string, light?: string, dark?: string): string;
|
|
791
|
+
|
|
792
|
+
declare const LINK_MARKER = "data-link";
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @param element
|
|
796
|
+
* @param renderer
|
|
797
|
+
* @param router
|
|
798
|
+
* @param extras navigation extras that are forwarded to the angular router
|
|
799
|
+
* @param commandHandler allows customization of computation of command that is provides to the anuglar router
|
|
800
|
+
* @param hrefCallback allows manipulation of html element
|
|
801
|
+
*/
|
|
802
|
+
declare function decorateLinks(element: ParentNode, renderer: Renderer2, router: Router, extras?: NavigationExtras, commandHandler?: (href: string) => string[], hrefCallback?: (href: string, elem: HTMLAnchorElement) => void): void;
|
|
803
|
+
|
|
804
|
+
interface LetContext<T> {
|
|
805
|
+
wskLet: T;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* @deprecated use @let instead
|
|
809
|
+
*/
|
|
810
|
+
declare class LetDirective<T> {
|
|
811
|
+
private context;
|
|
812
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
|
|
813
|
+
set wskLet(value: T);
|
|
814
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
815
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[wskLet]", never, { "wskLet": { "alias": "wskLet"; "required": false; }; }, {}, never, never, true, never>;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare function registerWebComponent(tagName: string, component: Type<any>, injector: Injector): void;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Recursively remove all fields from an object with given names.
|
|
822
|
+
*
|
|
823
|
+
* @param obj object that will be modified
|
|
824
|
+
* @param keys array of keys that will be removed
|
|
825
|
+
*/
|
|
826
|
+
declare function removeKeys(obj: any, ...keys: string[]): void;
|
|
827
|
+
|
|
828
|
+
interface Point {
|
|
829
|
+
x: number;
|
|
830
|
+
y: number;
|
|
831
|
+
}
|
|
832
|
+
interface Rect {
|
|
833
|
+
tl: Point;
|
|
834
|
+
br: Point;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Test whether the specified is within the rectangle.
|
|
838
|
+
*
|
|
839
|
+
* @param {Point} p
|
|
840
|
+
* @param {Rect} b
|
|
841
|
+
* @returns {boolean}
|
|
842
|
+
*/
|
|
843
|
+
declare function isInRect(p: Point, b: Rect): boolean;
|
|
844
|
+
|
|
845
|
+
declare function isElementInViewport(el: ElementRef): boolean;
|
|
846
|
+
|
|
847
|
+
declare const DECIMAL_SEPARATOR: InjectionToken<DecimalSeparator>;
|
|
848
|
+
|
|
849
|
+
declare abstract class AbstractControlValueAccessor<T = unknown> implements ControlValueAccessor {
|
|
850
|
+
protected _renderer: Renderer2;
|
|
851
|
+
protected _elementRef: ElementRef;
|
|
852
|
+
protected onChange: (data: T) => void;
|
|
853
|
+
protected onTouched: () => void;
|
|
854
|
+
protected constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
855
|
+
protected setProperty(key: string, value: unknown): void;
|
|
856
|
+
registerOnChange(fn: (data: T) => void): void;
|
|
857
|
+
registerOnTouched(fn: () => void): void;
|
|
858
|
+
setDisabledState(isDisabled: boolean): void;
|
|
859
|
+
abstract writeValue(data: T): void;
|
|
860
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractControlValueAccessor<any>, never>;
|
|
861
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractControlValueAccessor<any>, never, never, {}, {}, never, never, true, never>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Create a validator function that tests for an int value.
|
|
866
|
+
*/
|
|
867
|
+
declare function int(): ValidatorFn;
|
|
868
|
+
/**
|
|
869
|
+
* Create a validator function that tests for a float value.
|
|
870
|
+
*
|
|
871
|
+
* @param separator
|
|
872
|
+
* @param decimalPlaces
|
|
873
|
+
*/
|
|
874
|
+
declare function float(separator?: DecimalSeparator, decimalPlaces?: number): ValidatorFn;
|
|
875
|
+
/**
|
|
876
|
+
* Create a validator function that tests for local time format.
|
|
877
|
+
* Valid values e.g.: 9, 9:00, 9:30
|
|
878
|
+
*/
|
|
879
|
+
declare function localTime(): ValidatorFn;
|
|
880
|
+
/**
|
|
881
|
+
* Create a validator function that tests for duration format.
|
|
882
|
+
* Valid values e.g.: 0, 30, 0:30, 12:00, 12:30
|
|
883
|
+
*/
|
|
884
|
+
declare function duration(): ValidatorFn;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* remove FormControlError and the Error Object itself if empty
|
|
888
|
+
*
|
|
889
|
+
* @param control FormControl which has the error
|
|
890
|
+
* @param errorName Name of Errorkey
|
|
891
|
+
*/
|
|
892
|
+
declare function removeFormControlError(control: AbstractControl | null, errorName: string): void;
|
|
893
|
+
/**
|
|
894
|
+
* updates FormControlError
|
|
895
|
+
*
|
|
896
|
+
* @param control FormControl which has the error
|
|
897
|
+
* @param errorName Name of Errorkey
|
|
898
|
+
* @param flag Boolean
|
|
899
|
+
*/
|
|
900
|
+
declare function updateFormControlError(control: AbstractControl | null, errorName: string, flag: boolean): void;
|
|
901
|
+
|
|
902
|
+
declare function indicate<T>(indicator: Subject<boolean>): (source: Observable<T>) => Observable<T>;
|
|
903
|
+
/**
|
|
904
|
+
* Invokes a callback upon subscription.
|
|
905
|
+
*
|
|
906
|
+
* @param callback function to invoke upon subscription
|
|
907
|
+
* @returns stream which will invoke callback
|
|
908
|
+
*/
|
|
909
|
+
declare function prepare<T>(callback: () => void): (source: Observable<T>) => Observable<T>;
|
|
910
|
+
|
|
911
|
+
declare function instanceOfOnChanges(object: any): object is OnChanges;
|
|
912
|
+
|
|
913
|
+
declare function deepFreeze<T>(obj: T): T;
|
|
914
|
+
|
|
915
|
+
declare function isClientError(error: any): error is HttpErrorResponse;
|
|
916
|
+
declare function retryRequest<T>(config: {
|
|
917
|
+
retries: number;
|
|
918
|
+
delay: number;
|
|
919
|
+
}): MonoTypeOperatorFunction<T>;
|
|
920
|
+
declare function retryWithMessage<T>(snackBar: MatSnackBar, config: {
|
|
921
|
+
retries: number;
|
|
922
|
+
delay: number;
|
|
923
|
+
duration: number;
|
|
924
|
+
message: string;
|
|
925
|
+
action: string | undefined;
|
|
926
|
+
}): MonoTypeOperatorFunction<T>;
|
|
927
|
+
|
|
928
|
+
export { AbstractControlValueAccessor, AbstractEntityStore, AbstractStore, AbstractWskDataSource, AuthGuard, AuthStore, AuthenticationAdapter, AuthenticationService, Breakpoints, BrowserMetaService, BrowserTrackingService, CONFIG, CanDeactivateGuard, ClickTrackingDirective, Comparator, Config, ContainsPipe, DECIMAL_SEPARATOR, DurationMinutesPipe, FallbackPipe, FilterPipe, FindPipe, JwtAuthInterceptor, LINK_MARKER, LetDirective, LoggingBackendAppender, MapPipe, MinutesPipe, NgErrorHandler, NotAuthGuard, PreviousRouteService, RequestParamsHolder, SelectFromArrayPipe, TimeAdapter, TimeService, TrackingAdapter, TrackingService, TransformPipe, UserAdapter, UserService, WskDataSource, WskLazyDataSource, convertMinutesToTime, convertMsToSeconds, convertSecondsToMs, convertTimeToMinutes, decorateLinks, deepFreeze, duration, float, formatDateWithFallback, formatDurationString, formatLocalTimeString, getContrastTextColor, getLocalDateString, getTodayAsUtc, hoursMinutesSecondsFractionsPattern, hoursMinutesSecondsPattern, idCompare, indicate, instanceOfOnChanges, int, isClientError, isElementInViewport, isInRect, localTime, minutesHoursPattern, prepare, registerWebComponent, removeFormControlError, removeKeys, retryRequest, retryWithMessage, updateFormControlError, zonedTimeToUtc };
|
|
929
|
+
export type { AppTrackingInteractionEvent, CanDeactivateComponent, Credentials, EnvironmentConfig, FilterParams, Info, Interaction, LazyRequestParams, LocalAuthStatus, LocalUserAccount, LogMessage, Options, Page, PageMeta, PageParams, PaginationEndpoint, Point, Rect, RequestParams, Session, SortParams, UserAgent, UserRegistrationData, Visit };
|