@webskills/ng-utils 3.6.7 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/webskills-ng-utils.mjs +81 -81
- 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/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const Breakpoints: {
|
|
2
|
-
XSmall: string;
|
|
3
|
-
Small: string;
|
|
4
|
-
Medium: string;
|
|
5
|
-
Large: string;
|
|
6
|
-
XLarge: string;
|
|
7
|
-
Handset: string;
|
|
8
|
-
Tablet: string;
|
|
9
|
-
Web: string;
|
|
10
|
-
HandsetPortrait: string;
|
|
11
|
-
TabletPortrait: string;
|
|
12
|
-
WebPortrait: string;
|
|
13
|
-
HandsetLandscape: string;
|
|
14
|
-
TabletLandscape: string;
|
|
15
|
-
WebLandscape: string;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getContrastTextColor(hexColor: string, light?: string, dark?: string): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
3
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
-
export declare function isClientError(error: any): error is HttpErrorResponse;
|
|
5
|
-
export declare function retryRequest<T>(config: {
|
|
6
|
-
retries: number;
|
|
7
|
-
delay: number;
|
|
8
|
-
}): MonoTypeOperatorFunction<T>;
|
|
9
|
-
export declare function retryWithMessage<T>(snackBar: MatSnackBar, config: {
|
|
10
|
-
retries: number;
|
|
11
|
-
delay: number;
|
|
12
|
-
duration: number;
|
|
13
|
-
message: string;
|
|
14
|
-
action: string | undefined;
|
|
15
|
-
}): MonoTypeOperatorFunction<T>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Renderer2 } from '@angular/core';
|
|
2
|
-
import { NavigationExtras, Router } from '@angular/router';
|
|
3
|
-
export declare const LINK_MARKER = "data-link";
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param element
|
|
7
|
-
* @param renderer
|
|
8
|
-
* @param router
|
|
9
|
-
* @param extras navigation extras that are forwarded to the angular router
|
|
10
|
-
* @param commandHandler allows customization of computation of command that is provides to the anuglar router
|
|
11
|
-
* @param hrefCallback allows manipulation of html element
|
|
12
|
-
*/
|
|
13
|
-
export declare function decorateLinks(element: ParentNode, renderer: Renderer2, router: Router, extras?: NavigationExtras, commandHandler?: (href: string) => string[], hrefCallback?: (href: string, elem: HTMLAnchorElement) => void): void;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DataSource } from '@angular/cdk/collections';
|
|
2
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
-
import { Page, PageParams, PaginationEndpoint, RequestParams, RequestParamsHolder } from './data-source.model';
|
|
4
|
-
export declare abstract class AbstractWskDataSource<T> extends DataSource<T> {
|
|
5
|
-
protected abstract readonly cb: PaginationEndpoint<T>;
|
|
6
|
-
protected readonly _destroy$: Subject<void>;
|
|
7
|
-
protected readonly load$: Subject<string | void>;
|
|
8
|
-
protected readonly _data$: BehaviorSubject<T[]>;
|
|
9
|
-
readonly data$: Observable<T[]>;
|
|
10
|
-
readonly destroy$: Observable<void>;
|
|
11
|
-
protected readonly _totalElements$: BehaviorSubject<number>;
|
|
12
|
-
/**
|
|
13
|
-
* Stream of current amount of all available elements.
|
|
14
|
-
*/
|
|
15
|
-
readonly totalElements$: Observable<number>;
|
|
16
|
-
protected readonly _loading$: BehaviorSubject<boolean>;
|
|
17
|
-
/**
|
|
18
|
-
* data is requested
|
|
19
|
-
*/
|
|
20
|
-
readonly loading$: Observable<boolean>;
|
|
21
|
-
get totalElements(): number;
|
|
22
|
-
get data(): T[];
|
|
23
|
-
abstract hasMore(): boolean;
|
|
24
|
-
private _requestParams;
|
|
25
|
-
get requestParams(): RequestParamsHolder;
|
|
26
|
-
/**
|
|
27
|
-
* Reload current page
|
|
28
|
-
*/
|
|
29
|
-
abstract reload(): void;
|
|
30
|
-
connect(): Observable<T[] | ReadonlyArray<T>>;
|
|
31
|
-
protected abstract buildPageParams(params: RequestParams): PageParams | undefined;
|
|
32
|
-
protected abstract storeNewData(mode: string, page: Page<T>): void;
|
|
33
|
-
protected abstract onRequestParamsChange(params: RequestParams): void;
|
|
34
|
-
disconnect(): void;
|
|
35
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare enum Comparator {
|
|
3
|
-
SIM = "sim",
|
|
4
|
-
NSIM = "nsim",
|
|
5
|
-
EQ = "eq",
|
|
6
|
-
NEQ = "neq",
|
|
7
|
-
LEQ = "leq",
|
|
8
|
-
LESS = "less",
|
|
9
|
-
GEQ = "geq",
|
|
10
|
-
GTR = "gtr"
|
|
11
|
-
}
|
|
12
|
-
export interface PageParams {
|
|
13
|
-
page: number;
|
|
14
|
-
size: number;
|
|
15
|
-
}
|
|
16
|
-
export interface SortParams {
|
|
17
|
-
sortColumn: string;
|
|
18
|
-
sortDirection: 'asc' | 'desc' | '';
|
|
19
|
-
}
|
|
20
|
-
export type FilterParams = {
|
|
21
|
-
filterColumn: string;
|
|
22
|
-
comparator: Comparator;
|
|
23
|
-
filterValue: string;
|
|
24
|
-
} | FilterParams[];
|
|
25
|
-
export interface RequestParams {
|
|
26
|
-
pageParams?: PageParams;
|
|
27
|
-
sortParams?: SortParams[];
|
|
28
|
-
filterParams?: FilterParams[];
|
|
29
|
-
}
|
|
30
|
-
export interface Page<T> {
|
|
31
|
-
content: T[];
|
|
32
|
-
totalElements: number;
|
|
33
|
-
}
|
|
34
|
-
export type PaginationEndpoint<T> = (params: RequestParams) => Observable<Page<T>>;
|
|
35
|
-
/**
|
|
36
|
-
* Store that hold the active requests parameters for a table.
|
|
37
|
-
*/
|
|
38
|
-
export declare class RequestParamsHolder {
|
|
39
|
-
private destroy$;
|
|
40
|
-
private _params$;
|
|
41
|
-
params$: Observable<RequestParams>;
|
|
42
|
-
get params(): RequestParams;
|
|
43
|
-
/**
|
|
44
|
-
* Update/patch specified params. All other params remain untouched.
|
|
45
|
-
* In order to remove params, they must be provided with the value 'undefined'
|
|
46
|
-
*
|
|
47
|
-
* @param params to be updated
|
|
48
|
-
*/
|
|
49
|
-
updateParam(params: RequestParams): void;
|
|
50
|
-
destroy(): void;
|
|
51
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Page, PageParams, PaginationEndpoint, RequestParams } from './data-source.model';
|
|
2
|
-
import { AbstractWskDataSource } from './abstract-wsk-data-source';
|
|
3
|
-
export declare class WskDataSource<T> extends AbstractWskDataSource<T> {
|
|
4
|
-
protected readonly cb: PaginationEndpoint<T>;
|
|
5
|
-
constructor(cb: PaginationEndpoint<T>, defaultRequestParams?: RequestParams);
|
|
6
|
-
reload(): void;
|
|
7
|
-
protected buildPageParams(params: RequestParams): PageParams | undefined;
|
|
8
|
-
protected storeNewData(_mode: string, page: Page<T>): void;
|
|
9
|
-
hasMore(): boolean;
|
|
10
|
-
protected onRequestParamsChange(): void;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FilterParams, Page, PageParams, PaginationEndpoint, SortParams } from './data-source.model';
|
|
2
|
-
import { AbstractWskDataSource } from './abstract-wsk-data-source';
|
|
3
|
-
export interface LazyRequestParams {
|
|
4
|
-
sortParams?: SortParams[];
|
|
5
|
-
filterParams?: FilterParams[];
|
|
6
|
-
}
|
|
7
|
-
export declare class WskLazyDataSource<T> extends AbstractWskDataSource<T> {
|
|
8
|
-
protected readonly cb: PaginationEndpoint<T>;
|
|
9
|
-
private readonly batchSize;
|
|
10
|
-
/**
|
|
11
|
-
* number of items that are loaded in the next request / have been loaded in the last request
|
|
12
|
-
*/
|
|
13
|
-
private requestSize;
|
|
14
|
-
private offset;
|
|
15
|
-
constructor(cb: PaginationEndpoint<T>, defaultRequestParams?: LazyRequestParams, batchSize?: number);
|
|
16
|
-
hasMore(): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Reload current page
|
|
19
|
-
*/
|
|
20
|
-
reload(): void;
|
|
21
|
-
protected storeNewData(mode: string, page: Page<T>): void;
|
|
22
|
-
protected buildPageParams(): PageParams;
|
|
23
|
-
appendNextPage(): void;
|
|
24
|
-
protected onRequestParamsChange(): void;
|
|
25
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 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.
|
|
3
|
-
*
|
|
4
|
-
* @param todayDate current date with timezone
|
|
5
|
-
* @returns {Date}
|
|
6
|
-
*/
|
|
7
|
-
export declare function getTodayAsUtc(todayDate: Date): Date;
|
|
8
|
-
export declare function zonedTimeToUtc(date: Date): Date;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 2020-04-28
|
|
3
|
-
*
|
|
4
|
-
* @param date
|
|
5
|
-
*/
|
|
6
|
-
export declare function getLocalDateString(date: Date | string): string | null;
|
|
7
|
-
/**
|
|
8
|
-
* Formats a date according to locale rules.
|
|
9
|
-
* If value is undefined or null return empty string, else return the formatted date string.
|
|
10
|
-
*
|
|
11
|
-
* @param value The date to format, as a Date or a number
|
|
12
|
-
* @param format The date-time components to include, using predefined options or a custom format string
|
|
13
|
-
* @param locale A locale code for the locale format rules to use
|
|
14
|
-
* @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`)
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export declare function formatDateWithFallback(value: string | number | Date | undefined, format: string, locale: string, timezone?: string): string;
|
package/lib/date-time/time.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* local time format: hours with optional minutes
|
|
3
|
-
* valid: 9, 9:00, 9:30, 9:30:59
|
|
4
|
-
*/
|
|
5
|
-
export declare const hoursMinutesSecondsPattern: RegExp;
|
|
6
|
-
/**
|
|
7
|
-
* local time format: hours with optional minutes, seconds and fractions
|
|
8
|
-
* valid: 9, 9:00, 9:30, 9:30:59, 9:30:59.843396
|
|
9
|
-
*/
|
|
10
|
-
export declare const hoursMinutesSecondsFractionsPattern: RegExp;
|
|
11
|
-
/**
|
|
12
|
-
* locale time format: minutes with optional hours
|
|
13
|
-
* valid: 0, 30, 0:30, 12:00, 12:30
|
|
14
|
-
*/
|
|
15
|
-
export declare const minutesHoursPattern: RegExp;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert specified time string (hh:mm) to minutes of day. E.g. 2:01 to 121.
|
|
3
|
-
*
|
|
4
|
-
* @param timeString hours with optional minutes and seconds (e.g. 16:23)
|
|
5
|
-
*/
|
|
6
|
-
export declare function convertTimeToMinutes(timeString: string): number;
|
|
7
|
-
/**
|
|
8
|
-
* convert 61 to 1:01
|
|
9
|
-
*
|
|
10
|
-
* @param minutes
|
|
11
|
-
*/
|
|
12
|
-
export declare function convertMinutesToTime(minutes: number): string;
|
|
13
|
-
/**
|
|
14
|
-
* reformat e.g. "9" to "9:00:00"
|
|
15
|
-
*
|
|
16
|
-
* @param timeString hours with optional minutes
|
|
17
|
-
* @param includeSeconds set to false (default: true) when seconds shall not be displayed
|
|
18
|
-
*/
|
|
19
|
-
export declare function formatLocalTimeString(timeString: string, includeSeconds?: boolean): string;
|
|
20
|
-
/**
|
|
21
|
-
* reformat e.g. 45 to "0:45"
|
|
22
|
-
*
|
|
23
|
-
* @param timeString minutes with optional hours
|
|
24
|
-
*/
|
|
25
|
-
export declare function formatDurationString(timeString: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* convert e.g. 1000ms to 1s
|
|
28
|
-
*
|
|
29
|
-
* @param ms milliseconds
|
|
30
|
-
* @return seconds
|
|
31
|
-
*/
|
|
32
|
-
export declare function convertMsToSeconds(ms: number): number;
|
|
33
|
-
/**
|
|
34
|
-
* convert e.g. 1s to 1000ms
|
|
35
|
-
*
|
|
36
|
-
* @param second
|
|
37
|
-
* @return milliseconds
|
|
38
|
-
*/
|
|
39
|
-
export declare function convertSecondsToMs(second: number): number;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class AbstractControlValueAccessor<T = unknown> implements ControlValueAccessor {
|
|
5
|
-
protected _renderer: Renderer2;
|
|
6
|
-
protected _elementRef: ElementRef;
|
|
7
|
-
protected onChange: (data: T) => void;
|
|
8
|
-
protected onTouched: () => void;
|
|
9
|
-
protected constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
10
|
-
protected setProperty(key: string, value: unknown): void;
|
|
11
|
-
registerOnChange(fn: (data: T) => void): void;
|
|
12
|
-
registerOnTouched(fn: () => void): void;
|
|
13
|
-
setDisabledState(isDisabled: boolean): void;
|
|
14
|
-
abstract writeValue(data: T): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractControlValueAccessor<any>, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractControlValueAccessor<any>, never, never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* remove FormControlError and the Error Object itself if empty
|
|
4
|
-
*
|
|
5
|
-
* @param control FormControl which has the error
|
|
6
|
-
* @param errorName Name of Errorkey
|
|
7
|
-
*/
|
|
8
|
-
export declare function removeFormControlError(control: AbstractControl | null, errorName: string): void;
|
|
9
|
-
/**
|
|
10
|
-
* updates FormControlError
|
|
11
|
-
*
|
|
12
|
-
* @param control FormControl which has the error
|
|
13
|
-
* @param errorName Name of Errorkey
|
|
14
|
-
* @param flag Boolean
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateFormControlError(control: AbstractControl | null, errorName: string, flag: boolean): void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { DecimalSeparator } from '@webskills/ts-utils';
|
|
3
|
-
/**
|
|
4
|
-
* Create a validator function that tests for an int value.
|
|
5
|
-
*/
|
|
6
|
-
export declare function int(): ValidatorFn;
|
|
7
|
-
/**
|
|
8
|
-
* Create a validator function that tests for a float value.
|
|
9
|
-
*
|
|
10
|
-
* @param separator
|
|
11
|
-
* @param decimalPlaces
|
|
12
|
-
*/
|
|
13
|
-
export declare function float(separator?: DecimalSeparator, decimalPlaces?: number): ValidatorFn;
|
|
14
|
-
/**
|
|
15
|
-
* Create a validator function that tests for local time format.
|
|
16
|
-
* Valid values e.g.: 9, 9:00, 9:30
|
|
17
|
-
*/
|
|
18
|
-
export declare function localTime(): ValidatorFn;
|
|
19
|
-
/**
|
|
20
|
-
* Create a validator function that tests for duration format.
|
|
21
|
-
* Valid values e.g.: 0, 30, 0:30, 12:00, 12:30
|
|
22
|
-
*/
|
|
23
|
-
export declare function duration(): ValidatorFn;
|
package/lib/graphic.utils.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface Point {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export interface Rect {
|
|
6
|
-
tl: Point;
|
|
7
|
-
br: Point;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Test whether the specified is within the rectangle.
|
|
11
|
-
*
|
|
12
|
-
* @param {Point} p
|
|
13
|
-
* @param {Rect} b
|
|
14
|
-
* @returns {boolean}
|
|
15
|
-
*/
|
|
16
|
-
export declare function isInRect(p: Point, b: Rect): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function deepFreeze<T>(obj: T): T;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
interface LetContext<T> {
|
|
4
|
-
wskLet: T;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use @let instead
|
|
8
|
-
*/
|
|
9
|
-
export declare class LetDirective<T> {
|
|
10
|
-
private context;
|
|
11
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
|
|
12
|
-
set wskLet(value: T);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[wskLet]", never, { "wskLet": { "alias": "wskLet"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
package/lib/object.utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SelectFromArrayPipe implements PipeTransform {
|
|
4
|
-
transform<T>(value: T[], index: number): T | undefined;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFromArrayPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SelectFromArrayPipe, "selectFromArray", true>;
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ContainsPipe<T> implements PipeTransform {
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param value data that is searched
|
|
7
|
-
* @param func callback function in order to find the required entry
|
|
8
|
-
* @param data data that is passed as second argument to the callback function
|
|
9
|
-
*/
|
|
10
|
-
transform(value: T[], func: (v: T, data: any) => boolean, data: any): boolean;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContainsPipe<any>, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ContainsPipe<any>, "contains", true>;
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FallbackPipe implements PipeTransform {
|
|
4
|
-
transform<T>(value: T, fallback: T): T;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FallbackPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FallbackPipe, "fallback", true>;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FilterPipe<T, P = unknown> implements PipeTransform {
|
|
4
|
-
/**
|
|
5
|
-
* @param value list that will be filtered
|
|
6
|
-
* @param predicate function to test each value element
|
|
7
|
-
* @param param optional additional parameter that is passed into the predicate function
|
|
8
|
-
*/
|
|
9
|
-
transform(value: T[], predicate: (v: T, param?: P) => boolean, param?: P): T[] | undefined;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe<any, any>, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe<any, any>, "filter", true>;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FindPipe<T> implements PipeTransform {
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param value data that is searched
|
|
7
|
-
* @param func callback function in order to find the required entry
|
|
8
|
-
* @param data data that is passed as second argument to the callback function
|
|
9
|
-
*/
|
|
10
|
-
transform(value: T[], func: (v: T, data: any) => boolean, data: any): T | undefined;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FindPipe<any>, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FindPipe<any>, "find", true>;
|
|
13
|
-
}
|
package/lib/pipes/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './contains/contains.pipe';
|
|
2
|
-
export * from './filter/filter.pipe';
|
|
3
|
-
export * from './find/find.pipe';
|
|
4
|
-
export * from './map/map.pipe';
|
|
5
|
-
export * from './minutes/minutes.pipe';
|
|
6
|
-
export * from './minutes/duration-minutes.pipe';
|
|
7
|
-
export * from './array/select-from-array.pipe';
|
|
8
|
-
export * from './transform/transform.pipe';
|
|
9
|
-
export * from './fallback/fallback.pipe';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MapPipe<T, R> implements PipeTransform {
|
|
4
|
-
transform(value: T[], func: (v: T) => R): R[] | undefined;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapPipe<any, any>, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MapPipe<any, any>, "map", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DurationMinutesPipe implements PipeTransform {
|
|
4
|
-
transform(minutes: number): string | undefined;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DurationMinutesPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DurationMinutesPipe, "durationMinutes", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MinutesPipe implements PipeTransform {
|
|
4
|
-
transform(minutes: number): string | undefined;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MinutesPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MinutesPipe, "minutes", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TransformPipe<T, R> implements PipeTransform {
|
|
4
|
-
transform(value: T | undefined, func: (v: T) => R): R | undefined;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TransformPipe<any, any>, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TransformPipe<any, any>, "transform", true>;
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Observable, Subject } from 'rxjs';
|
|
2
|
-
export declare function indicate<T>(indicator: Subject<boolean>): (source: Observable<T>) => Observable<T>;
|
|
3
|
-
/**
|
|
4
|
-
* Invokes a callback upon subscription.
|
|
5
|
-
*
|
|
6
|
-
* @param callback function to invoke upon subscription
|
|
7
|
-
* @returns stream which will invoke callback
|
|
8
|
-
*/
|
|
9
|
-
export declare function prepare<T>(callback: () => void): (source: Observable<T>) => Observable<T>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AbstractStore } from '../store/abstract-store';
|
|
2
|
-
import { LocalAuthStatus } from './local-auth-status';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AuthStore extends AbstractStore<LocalAuthStatus> {
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthStore, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthStore>;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Credentials } from './credentials';
|
|
3
|
-
import { LocalUserAccount } from '../user/local-user-account';
|
|
4
|
-
export declare abstract class AuthenticationAdapter {
|
|
5
|
-
abstract testSessionValid(): Observable<boolean>;
|
|
6
|
-
abstract logout(sessionId: string): Observable<void>;
|
|
7
|
-
abstract login(credentials: Credentials): Observable<{
|
|
8
|
-
sessionId: string;
|
|
9
|
-
user: LocalUserAccount;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Credentials } from './credentials';
|
|
4
|
-
import { Router } from '@angular/router';
|
|
5
|
-
import { UserService } from '../user/user.service';
|
|
6
|
-
import { AuthenticationAdapter } from './authentication.adapter';
|
|
7
|
-
import { UserAdapter } from '../user/user.adapter';
|
|
8
|
-
import { AuthStore } from './auth.store';
|
|
9
|
-
import { TrackingService } from '../tracking/tracking.service';
|
|
10
|
-
import { Config } from '../configuration/config';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class AuthenticationService implements OnDestroy {
|
|
13
|
-
private userService;
|
|
14
|
-
private readonly config;
|
|
15
|
-
private router;
|
|
16
|
-
private authAdapter;
|
|
17
|
-
private userAdapter;
|
|
18
|
-
private authStore;
|
|
19
|
-
private trackingService;
|
|
20
|
-
private logger;
|
|
21
|
-
private destroyed$;
|
|
22
|
-
constructor(userService: UserService, config: Config<never>, router: Router, authAdapter: AuthenticationAdapter, userAdapter: UserAdapter, authStore: AuthStore, trackingService: TrackingService);
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Test the current session against the backend.
|
|
26
|
-
*/
|
|
27
|
-
private testSessionValid;
|
|
28
|
-
/**
|
|
29
|
-
* Use the existing session id to check against the backend whether the session is still active.
|
|
30
|
-
*
|
|
31
|
-
* E.g. during app (after a reload etc.) the previous login state must be restored.
|
|
32
|
-
*/
|
|
33
|
-
recoverSession(): Observable<boolean>;
|
|
34
|
-
private insertSessionInformationIntoStore;
|
|
35
|
-
/**
|
|
36
|
-
* Perform a login against the backend and store the session and user information in the frontend.
|
|
37
|
-
*
|
|
38
|
-
* @param credentials
|
|
39
|
-
*/
|
|
40
|
-
login(credentials: Credentials): Observable<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Perform a logout against the backend and remove locally stored session and user information.
|
|
43
|
-
*/
|
|
44
|
-
logout(): Observable<void>;
|
|
45
|
-
isLoggedIn(): Observable<boolean>;
|
|
46
|
-
/**
|
|
47
|
-
* Reset the auth state in the app.
|
|
48
|
-
*/
|
|
49
|
-
private resetAuthStatus;
|
|
50
|
-
getSessionId(): string;
|
|
51
|
-
isLoggedInInstant(): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Start a timer that continuously checks the session.
|
|
54
|
-
*/
|
|
55
|
-
private startSessionCheck;
|
|
56
|
-
validateSession(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Perform a logout that is triggered by the app
|
|
59
|
-
*/
|
|
60
|
-
appLogout(): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, never>;
|
|
62
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
|
|
63
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
-
import { AuthenticationService } from './authentication.service';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthGuard {
|
|
6
|
-
private authService;
|
|
7
|
-
private router;
|
|
8
|
-
constructor(authService: AuthenticationService, router: Router);
|
|
9
|
-
private checkLogin;
|
|
10
|
-
canLoad(): Observable<boolean>;
|
|
11
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
|
|
12
|
-
canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuthenticationService } from './authentication.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class JwtAuthInterceptor implements HttpInterceptor {
|
|
6
|
-
private authService;
|
|
7
|
-
constructor(authService: AuthenticationService);
|
|
8
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
9
|
-
private interceptHttp401Error;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JwtAuthInterceptor, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<JwtAuthInterceptor>;
|
|
12
|
-
}
|