@stemy/ngx-utils 10.2.44 → 10.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -27
- package/bundles/stemy-ngx-utils.umd.js +5654 -5640
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +111 -111
- package/esm2015/ngx-utils/components/dynamic-table/dynamic-table.component.js +139 -139
- package/esm2015/ngx-utils/components/pagination-menu/pagination-menu.component.js +96 -96
- package/esm2015/ngx-utils/components/unordered-list/unordered-list.component.js +51 -51
- package/esm2015/ngx-utils/directives/async-method.directive.js +58 -58
- package/esm2015/ngx-utils/directives/background.directive.js +51 -51
- package/esm2015/ngx-utils/directives/dynamic-table-template.directive.js +19 -19
- package/esm2015/ngx-utils/directives/global-template.directive.js +27 -27
- package/esm2015/ngx-utils/directives/icon.directive.js +59 -59
- package/esm2015/ngx-utils/directives/ngx-template-outlet.directive.js +88 -88
- package/esm2015/ngx-utils/directives/pagination-item.directive.js +33 -33
- package/esm2015/ngx-utils/directives/pagination.directive.js +76 -71
- package/esm2015/ngx-utils/directives/resource-if.directive.js +51 -51
- package/esm2015/ngx-utils/directives/sticky-class.directive.js +35 -35
- package/esm2015/ngx-utils/directives/sticky.directive.js +48 -48
- package/esm2015/ngx-utils/directives/unordered-list-item.directive.js +70 -70
- package/esm2015/ngx-utils/directives/unordered-list-template.directive.js +26 -26
- package/esm2015/ngx-utils/ngx-utils.module.js +232 -232
- package/esm2015/ngx-utils/pipes/chunk.pipe.js +21 -21
- package/esm2015/ngx-utils/pipes/entries.pipe.js +24 -24
- package/esm2015/ngx-utils/pipes/extra-item-properties.pipe.js +27 -27
- package/esm2015/ngx-utils/pipes/filter.pipe.js +38 -38
- package/esm2015/ngx-utils/pipes/find.pipe.js +25 -25
- package/esm2015/ngx-utils/pipes/format-number.pipe.js +19 -19
- package/esm2015/ngx-utils/pipes/get-offset.pipe.js +13 -13
- package/esm2015/ngx-utils/pipes/get-type.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/global-template.pipe.js +35 -35
- package/esm2015/ngx-utils/pipes/group-by.pipe.js +23 -23
- package/esm2015/ngx-utils/pipes/is-type.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/join.pipe.js +15 -15
- package/esm2015/ngx-utils/pipes/keys.pipe.js +18 -18
- package/esm2015/ngx-utils/pipes/map.pipe.js +25 -25
- package/esm2015/ngx-utils/pipes/max.pipe.js +22 -22
- package/esm2015/ngx-utils/pipes/min.pipe.js +22 -22
- package/esm2015/ngx-utils/pipes/reduce.pipe.js +26 -26
- package/esm2015/ngx-utils/pipes/remap.pipe.js +28 -28
- package/esm2015/ngx-utils/pipes/replace.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/reverse.pipe.js +20 -20
- package/esm2015/ngx-utils/pipes/round.pipe.js +19 -19
- package/esm2015/ngx-utils/pipes/safe-html.pipe.js +32 -32
- package/esm2015/ngx-utils/pipes/translate.pipe.js +81 -81
- package/esm2015/ngx-utils/pipes/values.pipe.js +18 -18
- package/esm2015/ngx-utils/plugins/resize-event.plugin.js +59 -59
- package/esm2015/ngx-utils/plugins/scroll-event.plugin.js +52 -52
- package/esm2015/ngx-utils/services/acl.service.js +78 -78
- package/esm2015/ngx-utils/services/api.service.js +35 -35
- package/esm2015/ngx-utils/services/auth.service.js +14 -14
- package/esm2015/ngx-utils/services/base-http.client.js +46 -46
- package/esm2015/ngx-utils/services/base-http.service.js +274 -274
- package/esm2015/ngx-utils/services/config.service.js +95 -95
- package/esm2015/ngx-utils/services/error-handler.service.js +49 -49
- package/esm2015/ngx-utils/services/events.service.js +24 -24
- package/esm2015/ngx-utils/services/formatter.service.js +44 -44
- package/esm2015/ngx-utils/services/global-template.service.js +35 -35
- package/esm2015/ngx-utils/services/icon.service.js +24 -24
- package/esm2015/ngx-utils/services/language.service.js +117 -117
- package/esm2015/ngx-utils/services/open-api.service.js +41 -41
- package/esm2015/ngx-utils/services/promise.service.js +49 -49
- package/esm2015/ngx-utils/services/state.service.js +143 -143
- package/esm2015/ngx-utils/services/static-language.service.js +144 -144
- package/esm2015/ngx-utils/services/storage.service.js +48 -48
- package/esm2015/ngx-utils/services/toaster.service.js +29 -29
- package/esm2015/ngx-utils/services/translated-url.serializer.js +70 -70
- package/esm2015/ngx-utils/services/universal.service.js +73 -73
- package/esm2015/ngx-utils/utils/ajax-request-handler.js +40 -40
- package/esm2015/ngx-utils/utils/array.utils.js +100 -90
- package/esm2015/ngx-utils/utils/auth.guard.js +153 -153
- package/esm2015/ngx-utils/utils/canvas.utils.js +388 -388
- package/esm2015/ngx-utils/utils/date.utils.js +28 -28
- package/esm2015/ngx-utils/utils/file.utils.js +90 -90
- package/esm2015/ngx-utils/utils/generic-value.js +20 -20
- package/esm2015/ngx-utils/utils/geometry.js +132 -132
- package/esm2015/ngx-utils/utils/initializer.js +17 -17
- package/esm2015/ngx-utils/utils/loader.utils.js +55 -55
- package/esm2015/ngx-utils/utils/math.utils.js +15 -15
- package/esm2015/ngx-utils/utils/object.utils.js +248 -248
- package/esm2015/ngx-utils/utils/observable.utils.js +63 -63
- package/esm2015/ngx-utils/utils/reflect.utils.js +33 -33
- package/esm2015/ngx-utils/utils/set.utils.js +20 -20
- package/esm2015/ngx-utils/utils/string.utils.js +28 -28
- package/esm2015/ngx-utils/utils/timer.utils.js +52 -52
- package/esm2015/ngx-utils/utils/unique.utils.js +24 -24
- package/esm2015/ngx-utils/utils/vector.js +77 -77
- package/esm2015/public_api.js +83 -83
- package/esm2015/stemy-ngx-utils.js +7 -7
- package/fesm2015/stemy-ngx-utils.js +4552 -4537
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +284 -284
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +43 -43
- package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +28 -28
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +22 -22
- package/ngx-utils/directives/async-method.directive.d.ts +16 -16
- package/ngx-utils/directives/background.directive.d.ts +14 -14
- package/ngx-utils/directives/dynamic-table-template.directive.d.ts +8 -8
- package/ngx-utils/directives/global-template.directive.d.ts +10 -10
- package/ngx-utils/directives/icon.directive.d.ts +20 -20
- package/ngx-utils/directives/ngx-template-outlet.directive.d.ts +14 -14
- package/ngx-utils/directives/pagination-item.directive.d.ts +12 -12
- package/ngx-utils/directives/pagination.directive.d.ts +22 -21
- package/ngx-utils/directives/resource-if.directive.d.ts +16 -16
- package/ngx-utils/directives/sticky-class.directive.d.ts +12 -12
- package/ngx-utils/directives/sticky.directive.d.ts +16 -16
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +25 -25
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +10 -10
- package/ngx-utils/ngx-utils.module.d.ts +76 -76
- package/ngx-utils/pipes/chunk.pipe.d.ts +4 -4
- package/ngx-utils/pipes/entries.pipe.d.ts +9 -9
- package/ngx-utils/pipes/extra-item-properties.pipe.d.ts +5 -5
- package/ngx-utils/pipes/filter.pipe.d.ts +5 -5
- package/ngx-utils/pipes/find.pipe.d.ts +5 -5
- package/ngx-utils/pipes/format-number.pipe.d.ts +7 -7
- package/ngx-utils/pipes/get-offset.pipe.d.ts +4 -4
- package/ngx-utils/pipes/get-type.pipe.d.ts +4 -4
- package/ngx-utils/pipes/global-template.pipe.d.ts +13 -13
- package/ngx-utils/pipes/group-by.pipe.d.ts +5 -5
- package/ngx-utils/pipes/is-type.pipe.d.ts +4 -4
- package/ngx-utils/pipes/join.pipe.d.ts +4 -4
- package/ngx-utils/pipes/keys.pipe.d.ts +4 -4
- package/ngx-utils/pipes/map.pipe.d.ts +5 -5
- package/ngx-utils/pipes/max.pipe.d.ts +4 -4
- package/ngx-utils/pipes/min.pipe.d.ts +4 -4
- package/ngx-utils/pipes/reduce.pipe.d.ts +5 -5
- package/ngx-utils/pipes/remap.pipe.d.ts +4 -4
- package/ngx-utils/pipes/replace.pipe.d.ts +4 -4
- package/ngx-utils/pipes/reverse.pipe.d.ts +4 -4
- package/ngx-utils/pipes/round.pipe.d.ts +7 -7
- package/ngx-utils/pipes/safe-html.pipe.d.ts +7 -7
- package/ngx-utils/pipes/translate.pipe.d.ts +15 -15
- package/ngx-utils/pipes/values.pipe.d.ts +4 -4
- package/ngx-utils/plugins/resize-event.plugin.d.ts +10 -10
- package/ngx-utils/plugins/scroll-event.plugin.d.ts +11 -11
- package/ngx-utils/services/acl.service.d.ts +12 -12
- package/ngx-utils/services/api.service.d.ts +14 -14
- package/ngx-utils/services/auth.service.d.ts +8 -8
- package/ngx-utils/services/base-http.client.d.ts +12 -12
- package/ngx-utils/services/base-http.service.d.ts +42 -42
- package/ngx-utils/services/config.service.d.ts +21 -21
- package/ngx-utils/services/error-handler.service.d.ts +10 -10
- package/ngx-utils/services/events.service.d.ts +11 -11
- package/ngx-utils/services/formatter.service.d.ts +12 -12
- package/ngx-utils/services/global-template.service.d.ts +16 -16
- package/ngx-utils/services/icon.service.d.ts +10 -10
- package/ngx-utils/services/language.service.d.ts +18 -18
- package/ngx-utils/services/open-api.service.d.ts +8 -8
- package/ngx-utils/services/promise.service.d.ts +15 -15
- package/ngx-utils/services/state.service.d.ts +41 -41
- package/ngx-utils/services/static-language.service.d.ts +41 -41
- package/ngx-utils/services/storage.service.d.ts +12 -12
- package/ngx-utils/services/toaster.service.d.ts +10 -10
- package/ngx-utils/services/translated-url.serializer.d.ts +16 -16
- package/ngx-utils/services/universal.service.d.ts +24 -24
- package/ngx-utils/utils/ajax-request-handler.d.ts +11 -11
- package/ngx-utils/utils/array.utils.d.ts +10 -9
- package/ngx-utils/utils/auth.guard.d.ts +26 -26
- package/ngx-utils/utils/canvas.utils.d.ts +13 -13
- package/ngx-utils/utils/date.utils.d.ts +8 -8
- package/ngx-utils/utils/file.utils.d.ts +14 -14
- package/ngx-utils/utils/generic-value.d.ts +8 -8
- package/ngx-utils/utils/geometry.d.ts +50 -50
- package/ngx-utils/utils/initializer.d.ts +11 -11
- package/ngx-utils/utils/loader.utils.d.ts +7 -7
- package/ngx-utils/utils/math.utils.d.ts +5 -5
- package/ngx-utils/utils/object.utils.d.ts +31 -31
- package/ngx-utils/utils/observable.utils.d.ts +12 -12
- package/ngx-utils/utils/reflect.utils.d.ts +9 -9
- package/ngx-utils/utils/set.utils.d.ts +4 -4
- package/ngx-utils/utils/string.utils.d.ts +7 -7
- package/ngx-utils/utils/timer.utils.d.ts +6 -6
- package/ngx-utils/utils/unique.utils.d.ts +5 -5
- package/ngx-utils/utils/vector.d.ts +23 -23
- package/package.json +1 -1
- package/public_api.d.ts +82 -82
- package/stemy-ngx-utils.d.ts +6 -6
- package/stemy-ngx-utils.metadata.json +1 -1
- package/tools/circular.js +116 -116
- package/tools/config.js +78 -78
- package/tools/icons.js +13 -13
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HttpClient, HttpHandler, HttpHeaders, HttpParams } from "@angular/common/http";
|
|
2
|
-
import { IHttpHeaders, IHttpParams } from "../common-types";
|
|
3
|
-
export declare class BaseHttpClient extends HttpClient {
|
|
4
|
-
requestHeaders: IHttpHeaders;
|
|
5
|
-
requestParams: IHttpParams;
|
|
6
|
-
renewTokenFunc: () => void;
|
|
7
|
-
protected extraRequestParams: IHttpParams;
|
|
8
|
-
constructor(handler: HttpHandler);
|
|
9
|
-
makeHeaders(headers?: IHttpHeaders, withCredentials?: boolean): HttpHeaders;
|
|
10
|
-
makeParams(params?: IHttpParams): HttpParams;
|
|
11
|
-
setExtraRequestParam(name: string, value?: any): void;
|
|
12
|
-
}
|
|
1
|
+
import { HttpClient, HttpHandler, HttpHeaders, HttpParams } from "@angular/common/http";
|
|
2
|
+
import { IHttpHeaders, IHttpParams } from "../common-types";
|
|
3
|
+
export declare class BaseHttpClient extends HttpClient {
|
|
4
|
+
requestHeaders: IHttpHeaders;
|
|
5
|
+
requestParams: IHttpParams;
|
|
6
|
+
renewTokenFunc: () => void;
|
|
7
|
+
protected extraRequestParams: IHttpParams;
|
|
8
|
+
constructor(handler: HttpHandler);
|
|
9
|
+
makeHeaders(headers?: IHttpHeaders, withCredentials?: boolean): HttpHeaders;
|
|
10
|
+
makeParams(params?: IHttpParams): HttpParams;
|
|
11
|
+
setExtraRequestParam(name: string, value?: any): void;
|
|
12
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
2
|
-
import { Request } from "express";
|
|
3
|
-
import { HttpPromise, IConfigService, IHttpHeaders, IHttpParams, IHttpService, IIssueContext, ILanguageService, IPaginationData, IRequestOptions, IToasterService, ProgressListener } from "../common-types";
|
|
4
|
-
import { BaseHttpClient } from "./base-http.client";
|
|
5
|
-
import { UniversalService } from "./universal.service";
|
|
6
|
-
import { StorageService } from "./storage.service";
|
|
7
|
-
export declare class BaseHttpService implements IHttpService {
|
|
8
|
-
readonly client: BaseHttpClient;
|
|
9
|
-
readonly storage: StorageService;
|
|
10
|
-
readonly language: ILanguageService;
|
|
11
|
-
readonly toaster: IToasterService;
|
|
12
|
-
readonly configs: IConfigService;
|
|
13
|
-
readonly request: Request;
|
|
14
|
-
protected static failedRequests: Array<() => void>;
|
|
15
|
-
get name(): string;
|
|
16
|
-
protected get withCredentials(): boolean;
|
|
17
|
-
cache: any;
|
|
18
|
-
protected static retryFailedRequests(): void;
|
|
19
|
-
get universal(): UniversalService;
|
|
20
|
-
constructor(client: BaseHttpClient, storage: StorageService, language: ILanguageService, toaster: IToasterService, configs: IConfigService, request?: Request);
|
|
21
|
-
url(url: string): string;
|
|
22
|
-
createUrl(url: string, params: IHttpParams): string;
|
|
23
|
-
makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
|
|
24
|
-
protected getPromise(url: string, options?: IRequestOptions): HttpPromise;
|
|
25
|
-
protected deletePromise(url: string, options?: IRequestOptions): HttpPromise;
|
|
26
|
-
protected postPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
27
|
-
protected putPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
28
|
-
protected patchPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
29
|
-
protected uploadPromise(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): HttpPromise;
|
|
30
|
-
protected listPromise(url: string, params: IHttpParams): Promise<IPaginationData>;
|
|
31
|
-
protected handleUnauthorizedError(absoluteUrl: string, options: IRequestOptions, reject: () => void): void;
|
|
32
|
-
protected toastWarning(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
33
|
-
protected toastError(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
34
|
-
protected toPromise(url: string, options: IRequestOptions, listener?: ProgressListener): HttpPromise;
|
|
35
|
-
protected checkHeaders(headers: any): boolean;
|
|
36
|
-
protected makeOptions(options?: IRequestOptions, method?: string, body?: any): IRequestOptions;
|
|
37
|
-
protected makeHeaders(headers: IHttpHeaders, method?: string): HttpHeaders;
|
|
38
|
-
protected parseResponse(response: any, url: string, options: IRequestOptions): any;
|
|
39
|
-
protected parseUrl(url: string): string;
|
|
40
|
-
protected absoluteUrl(url: string, options: IRequestOptions): Promise<string>;
|
|
41
|
-
protected expressRequestUrl(url: string): string;
|
|
42
|
-
}
|
|
1
|
+
import { HttpHeaders } from "@angular/common/http";
|
|
2
|
+
import { Request } from "express";
|
|
3
|
+
import { HttpPromise, IConfigService, IHttpHeaders, IHttpParams, IHttpService, IIssueContext, ILanguageService, IPaginationData, IRequestOptions, IToasterService, ProgressListener } from "../common-types";
|
|
4
|
+
import { BaseHttpClient } from "./base-http.client";
|
|
5
|
+
import { UniversalService } from "./universal.service";
|
|
6
|
+
import { StorageService } from "./storage.service";
|
|
7
|
+
export declare class BaseHttpService implements IHttpService {
|
|
8
|
+
readonly client: BaseHttpClient;
|
|
9
|
+
readonly storage: StorageService;
|
|
10
|
+
readonly language: ILanguageService;
|
|
11
|
+
readonly toaster: IToasterService;
|
|
12
|
+
readonly configs: IConfigService;
|
|
13
|
+
readonly request: Request;
|
|
14
|
+
protected static failedRequests: Array<() => void>;
|
|
15
|
+
get name(): string;
|
|
16
|
+
protected get withCredentials(): boolean;
|
|
17
|
+
cache: any;
|
|
18
|
+
protected static retryFailedRequests(): void;
|
|
19
|
+
get universal(): UniversalService;
|
|
20
|
+
constructor(client: BaseHttpClient, storage: StorageService, language: ILanguageService, toaster: IToasterService, configs: IConfigService, request?: Request);
|
|
21
|
+
url(url: string): string;
|
|
22
|
+
createUrl(url: string, params: IHttpParams): string;
|
|
23
|
+
makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
|
|
24
|
+
protected getPromise(url: string, options?: IRequestOptions, body?: any): HttpPromise;
|
|
25
|
+
protected deletePromise(url: string, options?: IRequestOptions, body?: any): HttpPromise;
|
|
26
|
+
protected postPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
27
|
+
protected putPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
28
|
+
protected patchPromise(url: string, body?: any, options?: IRequestOptions): HttpPromise;
|
|
29
|
+
protected uploadPromise(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): HttpPromise;
|
|
30
|
+
protected listPromise(url: string, params: IHttpParams): Promise<IPaginationData>;
|
|
31
|
+
protected handleUnauthorizedError(absoluteUrl: string, options: IRequestOptions, reject: () => void): void;
|
|
32
|
+
protected toastWarning(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
33
|
+
protected toastError(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
34
|
+
protected toPromise(url: string, options: IRequestOptions, listener?: ProgressListener): HttpPromise;
|
|
35
|
+
protected checkHeaders(headers: any): boolean;
|
|
36
|
+
protected makeOptions(options?: IRequestOptions, method?: string, body?: any): IRequestOptions;
|
|
37
|
+
protected makeHeaders(headers: IHttpHeaders, method?: string): HttpHeaders;
|
|
38
|
+
protected parseResponse(response: any, url: string, options: IRequestOptions): any;
|
|
39
|
+
protected parseUrl(url: string): string;
|
|
40
|
+
protected absoluteUrl(url: string, options: IRequestOptions): Promise<string>;
|
|
41
|
+
protected expressRequestUrl(url: string): string;
|
|
42
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { UniversalService } from "./universal.service";
|
|
3
|
-
import { IConfigService, IConfiguration } from "../common-types";
|
|
4
|
-
export declare class ConfigService implements IConfigService {
|
|
5
|
-
readonly http: HttpClient;
|
|
6
|
-
readonly universal: UniversalService;
|
|
7
|
-
protected loadedConfig: IConfiguration;
|
|
8
|
-
protected scriptParameters: any;
|
|
9
|
-
protected loader: Promise<IConfiguration>;
|
|
10
|
-
protected readonly loaderFunc: () => Promise<IConfiguration>;
|
|
11
|
-
get load(): () => Promise<IConfiguration>;
|
|
12
|
-
get config(): IConfiguration;
|
|
13
|
-
get configUrl(): string;
|
|
14
|
-
constructor(http: HttpClient, universal: UniversalService, baseConfig?: IConfiguration, scriptParams?: any);
|
|
15
|
-
protected initService(): void;
|
|
16
|
-
protected loadJson(): Promise<IConfiguration>;
|
|
17
|
-
protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
|
|
18
|
-
prepareUrl(url: string, ending: string): string;
|
|
19
|
-
getConfigValue(key: string): any;
|
|
20
|
-
getQueryParameter(name: string, url?: string): string;
|
|
21
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { UniversalService } from "./universal.service";
|
|
3
|
+
import { IConfigService, IConfiguration } from "../common-types";
|
|
4
|
+
export declare class ConfigService implements IConfigService {
|
|
5
|
+
readonly http: HttpClient;
|
|
6
|
+
readonly universal: UniversalService;
|
|
7
|
+
protected loadedConfig: IConfiguration;
|
|
8
|
+
protected scriptParameters: any;
|
|
9
|
+
protected loader: Promise<IConfiguration>;
|
|
10
|
+
protected readonly loaderFunc: () => Promise<IConfiguration>;
|
|
11
|
+
get load(): () => Promise<IConfiguration>;
|
|
12
|
+
get config(): IConfiguration;
|
|
13
|
+
get configUrl(): string;
|
|
14
|
+
constructor(http: HttpClient, universal: UniversalService, baseConfig?: IConfiguration, scriptParams?: any);
|
|
15
|
+
protected initService(): void;
|
|
16
|
+
protected loadJson(): Promise<IConfiguration>;
|
|
17
|
+
protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
|
|
18
|
+
prepareUrl(url: string, ending: string): string;
|
|
19
|
+
getConfigValue(key: string): any;
|
|
20
|
+
getQueryParameter(name: string, url?: string): string;
|
|
21
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ErrorHandler, Injector } from "@angular/core";
|
|
2
|
-
export declare class ErrorHandlerService extends ErrorHandler {
|
|
3
|
-
readonly injector: Injector;
|
|
4
|
-
private toaster;
|
|
5
|
-
private universal;
|
|
6
|
-
private errorCb;
|
|
7
|
-
private readonly errorMap;
|
|
8
|
-
constructor(injector: Injector);
|
|
9
|
-
handleError(error: Error): void;
|
|
10
|
-
}
|
|
1
|
+
import { ErrorHandler, Injector } from "@angular/core";
|
|
2
|
+
export declare class ErrorHandlerService extends ErrorHandler {
|
|
3
|
+
readonly injector: Injector;
|
|
4
|
+
private toaster;
|
|
5
|
+
private universal;
|
|
6
|
+
private errorCb;
|
|
7
|
+
private readonly errorMap;
|
|
8
|
+
constructor(injector: Injector);
|
|
9
|
+
handleError(error: Error): void;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
export declare class EventsService {
|
|
3
|
-
readonly eventForwarded: EventEmitter<Event>;
|
|
4
|
-
readonly stickyUpdated: EventEmitter<boolean>;
|
|
5
|
-
readonly languageChanged: EventEmitter<string>;
|
|
6
|
-
private sticky;
|
|
7
|
-
get isSticky(): boolean;
|
|
8
|
-
constructor();
|
|
9
|
-
event(e: Event): void;
|
|
10
|
-
updateSticky(sticky: boolean): void;
|
|
11
|
-
}
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
export declare class EventsService {
|
|
3
|
+
readonly eventForwarded: EventEmitter<Event>;
|
|
4
|
+
readonly stickyUpdated: EventEmitter<boolean>;
|
|
5
|
+
readonly languageChanged: EventEmitter<string>;
|
|
6
|
+
private sticky;
|
|
7
|
+
get isSticky(): boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
event(e: Event): void;
|
|
10
|
+
updateSticky(sticky: boolean): void;
|
|
11
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ILanguageService } from "../common-types";
|
|
2
|
-
export declare class FormatterService {
|
|
3
|
-
language: ILanguageService;
|
|
4
|
-
get defaultPrecision(): number;
|
|
5
|
-
get defaultNumberFormat(): string;
|
|
6
|
-
get defaultDivider(): number;
|
|
7
|
-
constructor(language: ILanguageService);
|
|
8
|
-
roundNumber(value: number, precision?: number, divider?: number): number;
|
|
9
|
-
formatNumber(value: number | string, format?: string, precision?: number, divider?: number): string;
|
|
10
|
-
formatMillimeter(value: number, precision?: number, divider?: number): string;
|
|
11
|
-
protected getPrecision(precision: number): number;
|
|
12
|
-
}
|
|
1
|
+
import { ILanguageService } from "../common-types";
|
|
2
|
+
export declare class FormatterService {
|
|
3
|
+
language: ILanguageService;
|
|
4
|
+
get defaultPrecision(): number;
|
|
5
|
+
get defaultNumberFormat(): string;
|
|
6
|
+
get defaultDivider(): number;
|
|
7
|
+
constructor(language: ILanguageService);
|
|
8
|
+
roundNumber(value: number, precision?: number, divider?: number): number;
|
|
9
|
+
formatNumber(value: number | string, format?: string, precision?: number, divider?: number): string;
|
|
10
|
+
formatMillimeter(value: number, precision?: number, divider?: number): string;
|
|
11
|
+
protected getPrecision(precision: number): number;
|
|
12
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
-
export declare type GlobalComponentModifier = (component: any) => any;
|
|
3
|
-
export declare class GlobalTemplateService {
|
|
4
|
-
readonly templatesUpdated: EventEmitter<void>;
|
|
5
|
-
protected globalTemplates: {
|
|
6
|
-
[id: string]: TemplateRef<any>;
|
|
7
|
-
};
|
|
8
|
-
protected componentModifiers: {
|
|
9
|
-
[id: string]: GlobalComponentModifier;
|
|
10
|
-
};
|
|
11
|
-
constructor();
|
|
12
|
-
get(id: string, component?: any): TemplateRef<any>;
|
|
13
|
-
add(id: string, template: TemplateRef<any>): void;
|
|
14
|
-
remove(id: string): void;
|
|
15
|
-
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
16
|
-
}
|
|
1
|
+
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
+
export declare type GlobalComponentModifier = (component: any) => any;
|
|
3
|
+
export declare class GlobalTemplateService {
|
|
4
|
+
readonly templatesUpdated: EventEmitter<void>;
|
|
5
|
+
protected globalTemplates: {
|
|
6
|
+
[id: string]: TemplateRef<any>;
|
|
7
|
+
};
|
|
8
|
+
protected componentModifiers: {
|
|
9
|
+
[id: string]: GlobalComponentModifier;
|
|
10
|
+
};
|
|
11
|
+
constructor();
|
|
12
|
+
get(id: string, component?: any): TemplateRef<any>;
|
|
13
|
+
add(id: string, template: TemplateRef<any>): void;
|
|
14
|
+
remove(id: string): void;
|
|
15
|
+
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { IIconService } from "../common-types";
|
|
3
|
-
export declare class IconService implements IIconService {
|
|
4
|
-
get isDisabled(): boolean;
|
|
5
|
-
set isDisabled(value: boolean);
|
|
6
|
-
readonly iconsLoaded: EventEmitter<any>;
|
|
7
|
-
protected disabled: boolean;
|
|
8
|
-
constructor();
|
|
9
|
-
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
10
|
-
}
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { IIconService } from "../common-types";
|
|
3
|
+
export declare class IconService implements IIconService {
|
|
4
|
+
get isDisabled(): boolean;
|
|
5
|
+
set isDisabled(value: boolean);
|
|
6
|
+
readonly iconsLoaded: EventEmitter<any>;
|
|
7
|
+
protected disabled: boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
10
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
-
import { ILanguageSettings, ITranslations } from "../common-types";
|
|
3
|
-
import { StaticLanguageService } from "./static-language.service";
|
|
4
|
-
export declare class LanguageService extends StaticLanguageService {
|
|
5
|
-
protected translationRequests: ITranslations;
|
|
6
|
-
protected settingsPromise: Promise<ILanguageSettings>;
|
|
7
|
-
protected languageSettings: BehaviorSubject<ILanguageSettings>;
|
|
8
|
-
get currentLanguage(): string;
|
|
9
|
-
set currentLanguage(lang: string);
|
|
10
|
-
get settings(): ILanguageSettings;
|
|
11
|
-
get $settings(): Observable<any>;
|
|
12
|
-
protected initService(): void;
|
|
13
|
-
initFromSettings(): Promise<any>;
|
|
14
|
-
getTranslation(key: string, params?: any): Promise<string>;
|
|
15
|
-
protected useLanguage(lang: string): Promise<ITranslations>;
|
|
16
|
-
protected loadDictionary(): Promise<any>;
|
|
17
|
-
protected loadSettings(): Promise<ILanguageSettings>;
|
|
18
|
-
}
|
|
1
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
+
import { ILanguageSettings, ITranslations } from "../common-types";
|
|
3
|
+
import { StaticLanguageService } from "./static-language.service";
|
|
4
|
+
export declare class LanguageService extends StaticLanguageService {
|
|
5
|
+
protected translationRequests: ITranslations;
|
|
6
|
+
protected settingsPromise: Promise<ILanguageSettings>;
|
|
7
|
+
protected languageSettings: BehaviorSubject<ILanguageSettings>;
|
|
8
|
+
get currentLanguage(): string;
|
|
9
|
+
set currentLanguage(lang: string);
|
|
10
|
+
get settings(): ILanguageSettings;
|
|
11
|
+
get $settings(): Observable<any>;
|
|
12
|
+
protected initService(): void;
|
|
13
|
+
initFromSettings(): Promise<any>;
|
|
14
|
+
getTranslation(key: string, params?: any): Promise<string>;
|
|
15
|
+
protected useLanguage(lang: string): Promise<ITranslations>;
|
|
16
|
+
protected loadDictionary(): Promise<any>;
|
|
17
|
+
protected loadSettings(): Promise<ILanguageSettings>;
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IApiService, IOpenApiSchema, IOpenApiSchemas } from "../common-types";
|
|
2
|
-
export declare class OpenApiService {
|
|
3
|
-
readonly api: IApiService;
|
|
4
|
-
private schemasPromise;
|
|
5
|
-
constructor(api: IApiService);
|
|
6
|
-
getSchemas(): Promise<IOpenApiSchemas>;
|
|
7
|
-
getSchema(name: string): Promise<IOpenApiSchema>;
|
|
8
|
-
}
|
|
1
|
+
import { IApiService, IOpenApiSchema, IOpenApiSchemas } from "../common-types";
|
|
2
|
+
export declare class OpenApiService {
|
|
3
|
+
readonly api: IApiService;
|
|
4
|
+
private schemasPromise;
|
|
5
|
+
constructor(api: IApiService);
|
|
6
|
+
getSchemas(): Promise<IOpenApiSchemas>;
|
|
7
|
+
getSchema(name: string): Promise<IOpenApiSchema>;
|
|
8
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, NgZone } from "@angular/core";
|
|
2
|
-
import { IPromiseService } from "../common-types";
|
|
3
|
-
export declare class PromiseService implements IPromiseService {
|
|
4
|
-
readonly zone: NgZone;
|
|
5
|
-
get count(): number;
|
|
6
|
-
get onChanged(): EventEmitter<number>;
|
|
7
|
-
private promiseCount;
|
|
8
|
-
private readonly promiseChanged;
|
|
9
|
-
constructor(zone: NgZone);
|
|
10
|
-
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
11
|
-
all(promises: Promise<any>[]): Promise<any>;
|
|
12
|
-
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
13
|
-
private promiseFinished;
|
|
14
|
-
private add;
|
|
15
|
-
}
|
|
1
|
+
import { EventEmitter, NgZone } from "@angular/core";
|
|
2
|
+
import { IPromiseService } from "../common-types";
|
|
3
|
+
export declare class PromiseService implements IPromiseService {
|
|
4
|
+
readonly zone: NgZone;
|
|
5
|
+
get count(): number;
|
|
6
|
+
get onChanged(): EventEmitter<number>;
|
|
7
|
+
private promiseCount;
|
|
8
|
+
private readonly promiseChanged;
|
|
9
|
+
constructor(zone: NgZone);
|
|
10
|
+
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
11
|
+
all(promises: Promise<any>[]): Promise<any>;
|
|
12
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
13
|
+
private promiseFinished;
|
|
14
|
+
private add;
|
|
15
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Injector, NgZone } from "@angular/core";
|
|
2
|
-
import { ActivatedRouteSnapshot, Data, NavigationExtras, Params, Route, Router, UrlSegment, UrlTree } from "@angular/router";
|
|
3
|
-
import { BehaviorSubject, Subscription } from "rxjs";
|
|
4
|
-
import { IRoute } from "../common-types";
|
|
5
|
-
export declare const emptySnapshot: ActivatedRouteSnapshot;
|
|
6
|
-
export declare const emptyData: Data;
|
|
7
|
-
export declare const emptyParams: Params;
|
|
8
|
-
export declare const emptySegments: UrlSegment[];
|
|
9
|
-
export declare const emptyComponents: any[];
|
|
10
|
-
export interface IStateInfo {
|
|
11
|
-
url: string;
|
|
12
|
-
segments: UrlSegment[];
|
|
13
|
-
components: any[];
|
|
14
|
-
}
|
|
15
|
-
export declare class StateService extends BehaviorSubject<any> {
|
|
16
|
-
readonly injector: Injector;
|
|
17
|
-
readonly zone: NgZone;
|
|
18
|
-
readonly router: Router;
|
|
19
|
-
readonly globalExtras: NavigationExtras;
|
|
20
|
-
private shot;
|
|
21
|
-
private comp;
|
|
22
|
-
private stateInfo;
|
|
23
|
-
private contexts;
|
|
24
|
-
static toPath(route: Route, params: any): string;
|
|
25
|
-
get component(): any;
|
|
26
|
-
get snapshot(): ActivatedRouteSnapshot;
|
|
27
|
-
get route(): IRoute;
|
|
28
|
-
get data(): Data;
|
|
29
|
-
get params(): Params;
|
|
30
|
-
get queryParams(): Params;
|
|
31
|
-
get url(): string;
|
|
32
|
-
get urlSegments(): UrlSegment[];
|
|
33
|
-
get components(): any[];
|
|
34
|
-
get routerConfig(): IRoute[];
|
|
35
|
-
constructor(injector: Injector, zone: NgZone, router?: Router);
|
|
36
|
-
reload(): Promise<any>;
|
|
37
|
-
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
|
|
38
|
-
navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
|
|
39
|
-
subscribeImmediately(next?: (value: ActivatedRouteSnapshot) => void, error?: (error: any) => void, complete?: () => void): Subscription;
|
|
40
|
-
private handleRouterEvent;
|
|
41
|
-
}
|
|
1
|
+
import { Injector, NgZone } from "@angular/core";
|
|
2
|
+
import { ActivatedRouteSnapshot, Data, NavigationExtras, Params, Route, Router, UrlSegment, UrlTree } from "@angular/router";
|
|
3
|
+
import { BehaviorSubject, Subscription } from "rxjs";
|
|
4
|
+
import { IRoute } from "../common-types";
|
|
5
|
+
export declare const emptySnapshot: ActivatedRouteSnapshot;
|
|
6
|
+
export declare const emptyData: Data;
|
|
7
|
+
export declare const emptyParams: Params;
|
|
8
|
+
export declare const emptySegments: UrlSegment[];
|
|
9
|
+
export declare const emptyComponents: any[];
|
|
10
|
+
export interface IStateInfo {
|
|
11
|
+
url: string;
|
|
12
|
+
segments: UrlSegment[];
|
|
13
|
+
components: any[];
|
|
14
|
+
}
|
|
15
|
+
export declare class StateService extends BehaviorSubject<any> {
|
|
16
|
+
readonly injector: Injector;
|
|
17
|
+
readonly zone: NgZone;
|
|
18
|
+
readonly router: Router;
|
|
19
|
+
readonly globalExtras: NavigationExtras;
|
|
20
|
+
private shot;
|
|
21
|
+
private comp;
|
|
22
|
+
private stateInfo;
|
|
23
|
+
private contexts;
|
|
24
|
+
static toPath(route: Route, params: any): string;
|
|
25
|
+
get component(): any;
|
|
26
|
+
get snapshot(): ActivatedRouteSnapshot;
|
|
27
|
+
get route(): IRoute;
|
|
28
|
+
get data(): Data;
|
|
29
|
+
get params(): Params;
|
|
30
|
+
get queryParams(): Params;
|
|
31
|
+
get url(): string;
|
|
32
|
+
get urlSegments(): UrlSegment[];
|
|
33
|
+
get components(): any[];
|
|
34
|
+
get routerConfig(): IRoute[];
|
|
35
|
+
constructor(injector: Injector, zone: NgZone, router?: Router);
|
|
36
|
+
reload(): Promise<any>;
|
|
37
|
+
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
|
|
38
|
+
navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
|
|
39
|
+
subscribeImmediately(next?: (value: ActivatedRouteSnapshot) => void, error?: (error: any) => void, complete?: () => void): Subscription;
|
|
40
|
+
private handleRouterEvent;
|
|
41
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { IConfigService, IConfiguration, ILanguageService, ITranslation, ITranslations } from "../common-types";
|
|
2
|
-
import { EventsService } from "./events.service";
|
|
3
|
-
import { StorageService } from "./storage.service";
|
|
4
|
-
import { UniversalService } from "./universal.service";
|
|
5
|
-
import { BaseHttpClient } from "./base-http.client";
|
|
6
|
-
import { HttpClient } from "@angular/common/http";
|
|
7
|
-
export declare class StaticLanguageService implements ILanguageService {
|
|
8
|
-
readonly events: EventsService;
|
|
9
|
-
readonly storage: StorageService;
|
|
10
|
-
readonly configs: IConfigService;
|
|
11
|
-
protected client: BaseHttpClient;
|
|
12
|
-
get defaultLanguage(): string;
|
|
13
|
-
get dictionary(): ITranslations;
|
|
14
|
-
set dictionary(value: ITranslations);
|
|
15
|
-
get languages(): string[];
|
|
16
|
-
get currentLanguage(): string;
|
|
17
|
-
set currentLanguage(lang: string);
|
|
18
|
-
get editLanguage(): string;
|
|
19
|
-
set editLanguage(lang: string);
|
|
20
|
-
get disableTranslations(): boolean;
|
|
21
|
-
set disableTranslations(value: boolean);
|
|
22
|
-
get httpClient(): HttpClient;
|
|
23
|
-
get config(): IConfiguration;
|
|
24
|
-
get browserLang(): string;
|
|
25
|
-
get universal(): UniversalService;
|
|
26
|
-
protected editLang: string;
|
|
27
|
-
protected currentLang: string;
|
|
28
|
-
protected disableTrans: boolean;
|
|
29
|
-
protected languageList: string[];
|
|
30
|
-
protected readonly translations: ITranslations;
|
|
31
|
-
constructor(events: EventsService, storage: StorageService, configs: IConfigService, client: BaseHttpClient);
|
|
32
|
-
protected initService(): void;
|
|
33
|
-
addLanguages(languages: string[]): void;
|
|
34
|
-
getTranslationSync(key: string, params?: any): string;
|
|
35
|
-
getTranslation(key: string, params?: any): Promise<string>;
|
|
36
|
-
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
37
|
-
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
38
|
-
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
39
|
-
protected interpolate(expr: string | Function, params?: any): string;
|
|
40
|
-
protected interpolateString(expr: string, params?: any): string;
|
|
41
|
-
}
|
|
1
|
+
import { IConfigService, IConfiguration, ILanguageService, ITranslation, ITranslations } from "../common-types";
|
|
2
|
+
import { EventsService } from "./events.service";
|
|
3
|
+
import { StorageService } from "./storage.service";
|
|
4
|
+
import { UniversalService } from "./universal.service";
|
|
5
|
+
import { BaseHttpClient } from "./base-http.client";
|
|
6
|
+
import { HttpClient } from "@angular/common/http";
|
|
7
|
+
export declare class StaticLanguageService implements ILanguageService {
|
|
8
|
+
readonly events: EventsService;
|
|
9
|
+
readonly storage: StorageService;
|
|
10
|
+
readonly configs: IConfigService;
|
|
11
|
+
protected client: BaseHttpClient;
|
|
12
|
+
get defaultLanguage(): string;
|
|
13
|
+
get dictionary(): ITranslations;
|
|
14
|
+
set dictionary(value: ITranslations);
|
|
15
|
+
get languages(): string[];
|
|
16
|
+
get currentLanguage(): string;
|
|
17
|
+
set currentLanguage(lang: string);
|
|
18
|
+
get editLanguage(): string;
|
|
19
|
+
set editLanguage(lang: string);
|
|
20
|
+
get disableTranslations(): boolean;
|
|
21
|
+
set disableTranslations(value: boolean);
|
|
22
|
+
get httpClient(): HttpClient;
|
|
23
|
+
get config(): IConfiguration;
|
|
24
|
+
get browserLang(): string;
|
|
25
|
+
get universal(): UniversalService;
|
|
26
|
+
protected editLang: string;
|
|
27
|
+
protected currentLang: string;
|
|
28
|
+
protected disableTrans: boolean;
|
|
29
|
+
protected languageList: string[];
|
|
30
|
+
protected readonly translations: ITranslations;
|
|
31
|
+
constructor(events: EventsService, storage: StorageService, configs: IConfigService, client: BaseHttpClient);
|
|
32
|
+
protected initService(): void;
|
|
33
|
+
addLanguages(languages: string[]): void;
|
|
34
|
+
getTranslationSync(key: string, params?: any): string;
|
|
35
|
+
getTranslation(key: string, params?: any): Promise<string>;
|
|
36
|
+
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
37
|
+
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
38
|
+
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
39
|
+
protected interpolate(expr: string | Function, params?: any): string;
|
|
40
|
+
protected interpolateString(expr: string, params?: any): string;
|
|
41
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { StorageMode } from "../common-types";
|
|
2
|
-
import { UniversalService } from "./universal.service";
|
|
3
|
-
/**
|
|
4
|
-
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
5
|
-
*/
|
|
6
|
-
export declare class StorageService {
|
|
7
|
-
readonly universal: UniversalService;
|
|
8
|
-
constructor(universal: UniversalService);
|
|
9
|
-
get(key: string, defaultValue?: any, mode?: StorageMode): any;
|
|
10
|
-
set(key: string, value: any, mode?: StorageMode): void;
|
|
11
|
-
remove(key: string, mode?: StorageMode): void;
|
|
12
|
-
}
|
|
1
|
+
import { StorageMode } from "../common-types";
|
|
2
|
+
import { UniversalService } from "./universal.service";
|
|
3
|
+
/**
|
|
4
|
+
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
5
|
+
*/
|
|
6
|
+
export declare class StorageService {
|
|
7
|
+
readonly universal: UniversalService;
|
|
8
|
+
constructor(universal: UniversalService);
|
|
9
|
+
get(key: string, defaultValue?: any, mode?: StorageMode): any;
|
|
10
|
+
set(key: string, value: any, mode?: StorageMode): void;
|
|
11
|
+
remove(key: string, mode?: StorageMode): void;
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ILanguageService, IToasterService } from "../common-types";
|
|
2
|
-
export declare class ConsoleToasterService implements IToasterService {
|
|
3
|
-
private language;
|
|
4
|
-
constructor(language: ILanguageService);
|
|
5
|
-
error(message: string, params?: any, title?: string): void;
|
|
6
|
-
info(message: string, params?: any, title?: string): void;
|
|
7
|
-
success(message: string, params?: any, title?: string): void;
|
|
8
|
-
warning(message: string, params?: any, title?: string): void;
|
|
9
|
-
private translateMessage;
|
|
10
|
-
}
|
|
1
|
+
import { ILanguageService, IToasterService } from "../common-types";
|
|
2
|
+
export declare class ConsoleToasterService implements IToasterService {
|
|
3
|
+
private language;
|
|
4
|
+
constructor(language: ILanguageService);
|
|
5
|
+
error(message: string, params?: any, title?: string): void;
|
|
6
|
+
info(message: string, params?: any, title?: string): void;
|
|
7
|
+
success(message: string, params?: any, title?: string): void;
|
|
8
|
+
warning(message: string, params?: any, title?: string): void;
|
|
9
|
+
private translateMessage;
|
|
10
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree } from "@angular/router";
|
|
2
|
-
import { ILanguageService } from "../common-types";
|
|
3
|
-
export interface IUrlDictionary {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
7
|
-
readonly language: ILanguageService;
|
|
8
|
-
protected cache: {
|
|
9
|
-
[lang: string]: IUrlDictionary;
|
|
10
|
-
};
|
|
11
|
-
constructor(language: ILanguageService);
|
|
12
|
-
serialize(tree: UrlTree): string;
|
|
13
|
-
parse(url: string): UrlTree;
|
|
14
|
-
getDictionary(serialize: boolean): IUrlDictionary;
|
|
15
|
-
modifyTreeRecursive(segmentGroup: UrlSegmentGroup, cb: (segment: UrlSegment) => void): UrlSegmentGroup;
|
|
16
|
-
}
|
|
1
|
+
import { DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree } from "@angular/router";
|
|
2
|
+
import { ILanguageService } from "../common-types";
|
|
3
|
+
export interface IUrlDictionary {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
7
|
+
readonly language: ILanguageService;
|
|
8
|
+
protected cache: {
|
|
9
|
+
[lang: string]: IUrlDictionary;
|
|
10
|
+
};
|
|
11
|
+
constructor(language: ILanguageService);
|
|
12
|
+
serialize(tree: UrlTree): string;
|
|
13
|
+
parse(url: string): UrlTree;
|
|
14
|
+
getDictionary(serialize: boolean): IUrlDictionary;
|
|
15
|
+
modifyTreeRecursive(segmentGroup: UrlSegmentGroup, cb: (segment: UrlSegment) => void): UrlSegmentGroup;
|
|
16
|
+
}
|