@stemy/ngx-utils 13.6.17 → 17.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/esm2022/ngx-utils/common-types.mjs +123 -0
- package/esm2022/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +210 -0
- package/esm2022/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +101 -0
- package/esm2022/ngx-utils/components/unordered-list/unordered-list.component.mjs +65 -0
- package/esm2022/ngx-utils/directives/async-method.base.mjs +82 -0
- package/{esm2020 → esm2022}/ngx-utils/directives/async-method.directive.mjs +21 -21
- package/esm2022/ngx-utils/directives/background.directive.mjs +51 -0
- package/{esm2020 → esm2022}/ngx-utils/directives/dynamic-table-template.directive.mjs +20 -20
- package/{esm2020 → esm2022}/ngx-utils/directives/global-template.directive.mjs +30 -30
- package/esm2022/ngx-utils/directives/icon.directive.mjs +67 -0
- package/esm2022/ngx-utils/directives/ngx-template-outlet.directive.mjs +90 -0
- package/{esm2020 → esm2022}/ngx-utils/directives/pagination-item.directive.mjs +34 -34
- package/esm2022/ngx-utils/directives/pagination.directive.mjs +84 -0
- package/esm2022/ngx-utils/directives/resource-if.directive.mjs +50 -0
- package/esm2022/ngx-utils/directives/sticky-class.directive.mjs +34 -0
- package/{esm2020 → esm2022}/ngx-utils/directives/sticky.directive.mjs +55 -55
- package/{esm2020 → esm2022}/ngx-utils/directives/unordered-list-item.directive.mjs +79 -79
- package/{esm2020 → esm2022}/ngx-utils/directives/unordered-list-template.directive.mjs +20 -20
- package/{esm2020 → esm2022}/ngx-utils/ngx-utils.imports.mjs +174 -174
- package/esm2022/ngx-utils/ngx-utils.module.mjs +202 -0
- package/esm2022/ngx-utils/pipes/chunk.pipe.mjs +25 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/entries.pipe.mjs +28 -28
- package/{esm2020 → esm2022}/ngx-utils/pipes/extra-item-properties.pipe.mjs +31 -31
- package/esm2022/ngx-utils/pipes/filter.pipe.mjs +37 -0
- package/esm2022/ngx-utils/pipes/find.pipe.mjs +29 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/format-number.pipe.mjs +21 -21
- package/{esm2020 → esm2022}/ngx-utils/pipes/get-offset.pipe.mjs +17 -17
- package/{esm2020 → esm2022}/ngx-utils/pipes/get-type.pipe.mjs +16 -16
- package/esm2022/ngx-utils/pipes/global-template.pipe.mjs +41 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/group-by.pipe.mjs +27 -27
- package/{esm2020 → esm2022}/ngx-utils/pipes/is-type.pipe.mjs +16 -16
- package/{esm2020 → esm2022}/ngx-utils/pipes/join.pipe.mjs +19 -19
- package/{esm2020 → esm2022}/ngx-utils/pipes/keys.pipe.mjs +22 -22
- package/{esm2020 → esm2022}/ngx-utils/pipes/map.pipe.mjs +29 -29
- package/{esm2020 → esm2022}/ngx-utils/pipes/max.pipe.mjs +26 -26
- package/{esm2020 → esm2022}/ngx-utils/pipes/min.pipe.mjs +26 -26
- package/{esm2020 → esm2022}/ngx-utils/pipes/pop.pipe.mjs +16 -16
- package/{esm2020 → esm2022}/ngx-utils/pipes/reduce.pipe.mjs +30 -30
- package/esm2022/ngx-utils/pipes/remap.pipe.mjs +32 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/replace.pipe.mjs +17 -17
- package/esm2022/ngx-utils/pipes/reverse.pipe.mjs +24 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/round.pipe.mjs +21 -21
- package/esm2022/ngx-utils/pipes/safe-html.pipe.mjs +34 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/shift.pipe.mjs +16 -16
- package/{esm2020 → esm2022}/ngx-utils/pipes/split.pipe.mjs +16 -16
- package/esm2022/ngx-utils/pipes/translate.pipe.mjs +86 -0
- package/{esm2020 → esm2022}/ngx-utils/pipes/values.pipe.mjs +22 -22
- package/esm2022/ngx-utils/plugins/resize-event.plugin.mjs +78 -0
- package/esm2022/ngx-utils/plugins/scroll-event.plugin.mjs +39 -0
- package/{esm2020 → esm2022}/ngx-utils/services/acl.service.mjs +84 -83
- package/esm2022/ngx-utils/services/api.service.mjs +42 -0
- package/{esm2020 → esm2022}/ngx-utils/services/auth.service.mjs +13 -13
- package/esm2022/ngx-utils/services/base-http.client.mjs +47 -0
- package/esm2022/ngx-utils/services/base-http.service.mjs +305 -0
- package/esm2022/ngx-utils/services/config.service.mjs +130 -0
- package/esm2022/ngx-utils/services/error-handler.service.mjs +49 -0
- package/{esm2020 → esm2022}/ngx-utils/services/events.service.mjs +26 -26
- package/{esm2020 → esm2022}/ngx-utils/services/formatter.service.mjs +49 -49
- package/esm2022/ngx-utils/services/global-template.service.mjs +37 -0
- package/esm2022/ngx-utils/services/icon.service.mjs +26 -0
- package/esm2022/ngx-utils/services/language.service.mjs +124 -0
- package/{esm2020 → esm2022}/ngx-utils/services/local-http.service.mjs +47 -47
- package/{esm2020 → esm2022}/ngx-utils/services/open-api.service.mjs +40 -40
- package/{esm2020 → esm2022}/ngx-utils/services/promise.service.mjs +55 -55
- package/esm2022/ngx-utils/services/state.service.mjs +177 -0
- package/{esm2020 → esm2022}/ngx-utils/services/static-language.service.mjs +166 -166
- package/esm2022/ngx-utils/services/storage.service.mjs +49 -0
- package/{esm2020 → esm2022}/ngx-utils/services/toaster.service.mjs +32 -32
- package/esm2022/ngx-utils/services/translated-url.serializer.mjs +73 -0
- package/esm2022/ngx-utils/services/universal.service.mjs +81 -0
- package/{esm2020 → esm2022}/ngx-utils/services/wasm.service.mjs +46 -46
- package/esm2022/ngx-utils/utils/ajax-request-handler.mjs +40 -0
- package/esm2022/ngx-utils/utils/array.utils.mjs +107 -0
- package/esm2022/ngx-utils/utils/auth.guard.mjs +181 -0
- package/esm2022/ngx-utils/utils/cached-factory.mjs +30 -0
- package/esm2022/ngx-utils/utils/canvas.utils.mjs +388 -0
- package/esm2022/ngx-utils/utils/date.utils.mjs +29 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/file-system.mjs +24 -24
- package/esm2022/ngx-utils/utils/file.utils.mjs +90 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/generic-value.mjs +20 -20
- package/esm2022/ngx-utils/utils/geometry.mjs +132 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/initializer.mjs +20 -20
- package/esm2022/ngx-utils/utils/jsonfn.mjs +45 -0
- package/esm2022/ngx-utils/utils/loader.utils.mjs +55 -0
- package/esm2022/ngx-utils/utils/math.utils.mjs +44 -0
- package/esm2022/ngx-utils/utils/object.utils.mjs +320 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/observable.utils.mjs +63 -63
- package/esm2022/ngx-utils/utils/reflect.utils.mjs +33 -0
- package/esm2022/ngx-utils/utils/set.utils.mjs +20 -0
- package/esm2022/ngx-utils/utils/string.utils.mjs +41 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/timer.utils.mjs +51 -51
- package/esm2022/ngx-utils/utils/unique.utils.mjs +24 -0
- package/esm2022/ngx-utils/utils/vector.mjs +77 -0
- package/esm2022/ngx-utils/utils/wasi.mjs +159 -0
- package/esm2022/ngx-utils/utils/wasm-worker-proxy.mjs +99 -0
- package/{esm2020 → esm2022}/ngx-utils/utils/with-options-provider.mjs +23 -23
- package/{esm2020 → esm2022}/public_api.mjs +93 -93
- package/{esm2020 → esm2022}/stemy-ngx-utils.mjs +4 -4
- package/esm2022/tools/config.mjs +71 -0
- package/{esm2020 → esm2022}/tools/public_api.mjs +1 -1
- package/{esm2020 → esm2022}/tools/stemy-ngx-utils-tools.mjs +4 -4
- package/{fesm2020 → fesm2022}/stemy-ngx-utils-tools.mjs +71 -71
- package/{fesm2015 → fesm2022}/stemy-ngx-utils-tools.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/stemy-ngx-utils.mjs +5639 -5636
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -0
- package/{stemy-ngx-utils.d.ts → index.d.ts} +5 -5
- package/ng.mjs +5 -0
- package/ngx-utils/common-types.d.ts +378 -378
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +56 -56
- package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +31 -31
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +25 -25
- package/ngx-utils/directives/async-method.base.d.ts +19 -19
- package/ngx-utils/directives/async-method.directive.d.ts +9 -9
- package/ngx-utils/directives/background.directive.d.ts +17 -17
- package/ngx-utils/directives/dynamic-table-template.directive.d.ts +11 -11
- package/ngx-utils/directives/global-template.directive.d.ts +13 -13
- package/ngx-utils/directives/icon.directive.d.ts +23 -23
- package/ngx-utils/directives/ngx-template-outlet.directive.d.ts +17 -17
- package/ngx-utils/directives/pagination-item.directive.d.ts +15 -15
- package/ngx-utils/directives/pagination.directive.d.ts +25 -25
- package/ngx-utils/directives/resource-if.directive.d.ts +19 -19
- package/ngx-utils/directives/sticky-class.directive.d.ts +15 -15
- package/ngx-utils/directives/sticky.directive.d.ts +19 -19
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +28 -28
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +11 -11
- package/ngx-utils/ngx-utils.imports.d.ts +74 -0
- package/ngx-utils/ngx-utils.module.d.ts +58 -58
- package/ngx-utils/pipes/chunk.pipe.d.ts +7 -7
- package/ngx-utils/pipes/entries.pipe.d.ts +12 -12
- package/ngx-utils/pipes/extra-item-properties.pipe.d.ts +8 -8
- package/ngx-utils/pipes/filter.pipe.d.ts +8 -8
- package/ngx-utils/pipes/find.pipe.d.ts +8 -8
- package/ngx-utils/pipes/format-number.pipe.d.ts +10 -10
- package/ngx-utils/pipes/get-offset.pipe.d.ts +7 -7
- package/ngx-utils/pipes/get-type.pipe.d.ts +7 -7
- package/ngx-utils/pipes/global-template.pipe.d.ts +16 -16
- package/ngx-utils/pipes/group-by.pipe.d.ts +8 -8
- package/ngx-utils/pipes/is-type.pipe.d.ts +7 -7
- package/ngx-utils/pipes/join.pipe.d.ts +7 -7
- package/ngx-utils/pipes/keys.pipe.d.ts +7 -7
- package/ngx-utils/pipes/map.pipe.d.ts +8 -8
- package/ngx-utils/pipes/max.pipe.d.ts +7 -7
- package/ngx-utils/pipes/min.pipe.d.ts +7 -7
- package/ngx-utils/pipes/pop.pipe.d.ts +7 -7
- package/ngx-utils/pipes/reduce.pipe.d.ts +8 -8
- package/ngx-utils/pipes/remap.pipe.d.ts +7 -7
- package/ngx-utils/pipes/replace.pipe.d.ts +7 -7
- package/ngx-utils/pipes/reverse.pipe.d.ts +7 -7
- package/ngx-utils/pipes/round.pipe.d.ts +10 -10
- package/ngx-utils/pipes/safe-html.pipe.d.ts +10 -10
- package/ngx-utils/pipes/shift.pipe.d.ts +7 -7
- package/ngx-utils/pipes/split.pipe.d.ts +7 -7
- package/ngx-utils/pipes/translate.pipe.d.ts +19 -19
- package/ngx-utils/pipes/values.pipe.d.ts +7 -7
- package/ngx-utils/plugins/resize-event.plugin.d.ts +17 -17
- package/ngx-utils/plugins/scroll-event.plugin.d.ts +13 -13
- package/ngx-utils/services/acl.service.d.ts +14 -14
- package/ngx-utils/services/api.service.d.ts +17 -17
- package/ngx-utils/services/auth.service.d.ts +8 -8
- package/ngx-utils/services/base-http.client.d.ts +15 -15
- package/ngx-utils/services/base-http.service.d.ts +53 -53
- package/ngx-utils/services/config.service.d.ts +30 -30
- package/ngx-utils/services/error-handler.service.d.ts +13 -13
- package/ngx-utils/services/events.service.d.ts +14 -14
- package/ngx-utils/services/formatter.service.d.ts +15 -15
- package/ngx-utils/services/global-template.service.d.ts +19 -19
- package/ngx-utils/services/icon.service.d.ts +13 -13
- package/ngx-utils/services/language.service.d.ts +21 -21
- package/ngx-utils/services/local-http.service.d.ts +14 -14
- package/ngx-utils/services/open-api.service.d.ts +11 -11
- package/ngx-utils/services/promise.service.d.ts +19 -19
- package/ngx-utils/services/state.service.d.ts +49 -49
- package/ngx-utils/services/static-language.service.d.ts +46 -46
- package/ngx-utils/services/storage.service.d.ts +15 -15
- package/ngx-utils/services/toaster.service.d.ts +13 -13
- package/ngx-utils/services/translated-url.serializer.d.ts +19 -19
- package/ngx-utils/services/universal.service.d.ts +28 -28
- package/ngx-utils/services/wasm.service.d.ts +25 -25
- package/ngx-utils/utils/ajax-request-handler.d.ts +11 -11
- package/ngx-utils/utils/array.utils.d.ts +11 -11
- package/ngx-utils/utils/auth.guard.d.ts +29 -29
- package/ngx-utils/utils/cached-factory.d.ts +2 -2
- 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-system.d.ts +16 -16
- 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 +12 -12
- package/ngx-utils/utils/jsonfn.d.ts +6 -6
- package/ngx-utils/utils/loader.utils.d.ts +7 -7
- package/ngx-utils/utils/math.utils.d.ts +8 -8
- package/ngx-utils/utils/object.utils.d.ts +35 -35
- package/ngx-utils/utils/observable.utils.d.ts +13 -13
- 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 +9 -9
- 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/ngx-utils/utils/wasi.d.ts +26 -26
- package/ngx-utils/utils/wasm-worker-proxy.d.ts +17 -17
- package/ngx-utils/utils/with-options-provider.d.ts +3 -3
- package/package.json +21 -29
- package/public_api.d.ts +93 -93
- package/tools/config.d.ts +7 -7
- package/tools/{stemy-ngx-utils-tools.d.ts → index.d.ts} +5 -5
- package/tools/public_api.d.ts +1 -1
- package/esm2020/ngx-utils/common-types.mjs +0 -123
- package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +0 -210
- package/esm2020/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +0 -101
- package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +0 -65
- package/esm2020/ngx-utils/directives/async-method.base.mjs +0 -82
- package/esm2020/ngx-utils/directives/background.directive.mjs +0 -51
- package/esm2020/ngx-utils/directives/icon.directive.mjs +0 -67
- package/esm2020/ngx-utils/directives/ngx-template-outlet.directive.mjs +0 -90
- package/esm2020/ngx-utils/directives/pagination.directive.mjs +0 -84
- package/esm2020/ngx-utils/directives/resource-if.directive.mjs +0 -50
- package/esm2020/ngx-utils/directives/sticky-class.directive.mjs +0 -34
- package/esm2020/ngx-utils/ngx-utils.module.mjs +0 -204
- package/esm2020/ngx-utils/pipes/chunk.pipe.mjs +0 -25
- package/esm2020/ngx-utils/pipes/filter.pipe.mjs +0 -37
- package/esm2020/ngx-utils/pipes/find.pipe.mjs +0 -29
- package/esm2020/ngx-utils/pipes/global-template.pipe.mjs +0 -41
- package/esm2020/ngx-utils/pipes/remap.pipe.mjs +0 -32
- package/esm2020/ngx-utils/pipes/reverse.pipe.mjs +0 -24
- package/esm2020/ngx-utils/pipes/safe-html.pipe.mjs +0 -34
- package/esm2020/ngx-utils/pipes/translate.pipe.mjs +0 -86
- package/esm2020/ngx-utils/plugins/resize-event.plugin.mjs +0 -78
- package/esm2020/ngx-utils/plugins/scroll-event.plugin.mjs +0 -39
- package/esm2020/ngx-utils/services/api.service.mjs +0 -42
- package/esm2020/ngx-utils/services/base-http.client.mjs +0 -47
- package/esm2020/ngx-utils/services/base-http.service.mjs +0 -305
- package/esm2020/ngx-utils/services/config.service.mjs +0 -130
- package/esm2020/ngx-utils/services/error-handler.service.mjs +0 -49
- package/esm2020/ngx-utils/services/global-template.service.mjs +0 -37
- package/esm2020/ngx-utils/services/icon.service.mjs +0 -26
- package/esm2020/ngx-utils/services/language.service.mjs +0 -124
- package/esm2020/ngx-utils/services/state.service.mjs +0 -173
- package/esm2020/ngx-utils/services/storage.service.mjs +0 -49
- package/esm2020/ngx-utils/services/translated-url.serializer.mjs +0 -73
- package/esm2020/ngx-utils/services/universal.service.mjs +0 -81
- package/esm2020/ngx-utils/utils/ajax-request-handler.mjs +0 -40
- package/esm2020/ngx-utils/utils/array.utils.mjs +0 -107
- package/esm2020/ngx-utils/utils/auth.guard.mjs +0 -181
- package/esm2020/ngx-utils/utils/cached-factory.mjs +0 -30
- package/esm2020/ngx-utils/utils/canvas.utils.mjs +0 -388
- package/esm2020/ngx-utils/utils/date.utils.mjs +0 -29
- package/esm2020/ngx-utils/utils/file.utils.mjs +0 -90
- package/esm2020/ngx-utils/utils/geometry.mjs +0 -132
- package/esm2020/ngx-utils/utils/jsonfn.mjs +0 -45
- package/esm2020/ngx-utils/utils/loader.utils.mjs +0 -55
- package/esm2020/ngx-utils/utils/math.utils.mjs +0 -44
- package/esm2020/ngx-utils/utils/object.utils.mjs +0 -320
- package/esm2020/ngx-utils/utils/reflect.utils.mjs +0 -33
- package/esm2020/ngx-utils/utils/set.utils.mjs +0 -20
- package/esm2020/ngx-utils/utils/string.utils.mjs +0 -41
- package/esm2020/ngx-utils/utils/unique.utils.mjs +0 -24
- package/esm2020/ngx-utils/utils/vector.mjs +0 -77
- package/esm2020/ngx-utils/utils/wasi.mjs +0 -159
- package/esm2020/ngx-utils/utils/wasm-worker-proxy.mjs +0 -99
- package/esm2020/tools/config.mjs +0 -71
- package/fesm2015/stemy-ngx-utils-tools.mjs +0 -77
- package/fesm2015/stemy-ngx-utils.mjs +0 -5894
- package/fesm2015/stemy-ngx-utils.mjs.map +0 -1
- package/fesm2020/stemy-ngx-utils-tools.mjs.map +0 -1
- package/fesm2020/stemy-ngx-utils.mjs.map +0 -1
- package/tools/package.json +0 -10
|
@@ -1,378 +1,378 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
|
|
2
|
-
import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
|
|
3
|
-
import { ActivatedRouteSnapshot, Data, Route, UrlTree } from "@angular/router";
|
|
4
|
-
import { Request } from "express";
|
|
5
|
-
export interface TypedFactoryProvider<T> {
|
|
6
|
-
useFactory: (...args: any[]) => T;
|
|
7
|
-
deps: any[];
|
|
8
|
-
}
|
|
9
|
-
export interface TypedValueProvider<T> {
|
|
10
|
-
useValue: T;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
|
|
15
|
-
export interface IResolveFactory {
|
|
16
|
-
func: Function;
|
|
17
|
-
type?: any;
|
|
18
|
-
params?: any[];
|
|
19
|
-
}
|
|
20
|
-
export declare class CanvasColor {
|
|
21
|
-
r: number;
|
|
22
|
-
g: number;
|
|
23
|
-
b: number;
|
|
24
|
-
a: number;
|
|
25
|
-
constructor(r: number, g: number, b: number, a?: number);
|
|
26
|
-
}
|
|
27
|
-
export interface IIconService {
|
|
28
|
-
isDisabled: boolean;
|
|
29
|
-
iconsLoaded: EventEmitter<any>;
|
|
30
|
-
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
31
|
-
}
|
|
32
|
-
export declare const ICON_SERVICE: InjectionToken<IIconService>;
|
|
33
|
-
export interface ITranslation {
|
|
34
|
-
lang: string;
|
|
35
|
-
translation: string;
|
|
36
|
-
}
|
|
37
|
-
export interface ITranslations {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|
|
40
|
-
export interface ILanguageSetting {
|
|
41
|
-
unavailable?: string;
|
|
42
|
-
[key: string]: string | boolean | number;
|
|
43
|
-
}
|
|
44
|
-
export interface ILanguageSettings {
|
|
45
|
-
languages: string[];
|
|
46
|
-
devLanguages: string[];
|
|
47
|
-
defaultLanguage: string;
|
|
48
|
-
settings?: {
|
|
49
|
-
[lang: string]: ILanguageSetting;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface ILanguageService {
|
|
53
|
-
currentLanguage: string;
|
|
54
|
-
editLanguage: string;
|
|
55
|
-
disableTranslations: boolean;
|
|
56
|
-
defaultLanguage: string;
|
|
57
|
-
dictionary: ITranslations;
|
|
58
|
-
readonly languages: ReadonlyArray<string>;
|
|
59
|
-
readonly httpClient: HttpClient;
|
|
60
|
-
replaceLanguages(languages: string[]): void;
|
|
61
|
-
addLanguages(languages: string[]): void;
|
|
62
|
-
getTranslationSync(key: string, params?: any): string;
|
|
63
|
-
getTranslation(key: string, params?: any): Promise<string>;
|
|
64
|
-
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
65
|
-
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
66
|
-
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
67
|
-
}
|
|
68
|
-
export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
|
|
69
|
-
export interface IAuthService {
|
|
70
|
-
isAuthenticated: boolean;
|
|
71
|
-
userChanged: EventEmitter<any>;
|
|
72
|
-
checkAuthenticated(): Promise<boolean>;
|
|
73
|
-
}
|
|
74
|
-
export
|
|
75
|
-
export interface IRouteData extends Data {
|
|
76
|
-
returnState?: string[];
|
|
77
|
-
guards?: Array<IResolveFactory | RouteValidator>;
|
|
78
|
-
}
|
|
79
|
-
export interface IRoute extends Route {
|
|
80
|
-
data?: IRouteData;
|
|
81
|
-
}
|
|
82
|
-
export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
|
|
83
|
-
export interface IAclComponent {
|
|
84
|
-
onUserInitialized(): void;
|
|
85
|
-
onUserChanged(): void;
|
|
86
|
-
}
|
|
87
|
-
export interface IRouteStateInfo {
|
|
88
|
-
route: IRoute;
|
|
89
|
-
guard: any;
|
|
90
|
-
dirty: boolean;
|
|
91
|
-
first: boolean;
|
|
92
|
-
component?: any;
|
|
93
|
-
}
|
|
94
|
-
export
|
|
95
|
-
export declare enum StorageMode {
|
|
96
|
-
Local = 0,
|
|
97
|
-
Session = 1
|
|
98
|
-
}
|
|
99
|
-
export interface IToasterService {
|
|
100
|
-
error(message: string, params?: any, title?: string): void;
|
|
101
|
-
info(message: string, params?: any, title?: string): void;
|
|
102
|
-
success(message: string, params?: any, title?: string): void;
|
|
103
|
-
warning(message: string, params?: any, title?: string): void;
|
|
104
|
-
}
|
|
105
|
-
export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
|
|
106
|
-
export interface IPromiseService {
|
|
107
|
-
zone: NgZone;
|
|
108
|
-
count: number;
|
|
109
|
-
onChanged: EventEmitter<number>;
|
|
110
|
-
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
111
|
-
all(promises: Promise<any>[]): Promise<any>;
|
|
112
|
-
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
113
|
-
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
114
|
-
}
|
|
115
|
-
export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
|
|
116
|
-
export
|
|
117
|
-
export interface IWasmExports {
|
|
118
|
-
HEAP8: Int8Array;
|
|
119
|
-
HEAP16: Int16Array;
|
|
120
|
-
HEAP32: Int32Array;
|
|
121
|
-
HEAPU8: Uint8Array;
|
|
122
|
-
HEAPU16: Uint16Array;
|
|
123
|
-
HEAPU32: Uint32Array;
|
|
124
|
-
HEAPF32: Float32Array;
|
|
125
|
-
HEAPF64: Float64Array;
|
|
126
|
-
memory: WebAssembly.Memory;
|
|
127
|
-
[key: string]: any;
|
|
128
|
-
}
|
|
129
|
-
export interface IWasi {
|
|
130
|
-
instantiate(bytes: ArrayBuffer): Promise<IWasmExports>;
|
|
131
|
-
}
|
|
132
|
-
export interface IWasm {
|
|
133
|
-
writeArrayToMemory(array: TypedArray): Promise<number> | number;
|
|
134
|
-
readArrayFromMemory<T = TypedArray>(pointer: number, array: T): Promise<T> | T;
|
|
135
|
-
[key: string]: (...args: any[]) => any;
|
|
136
|
-
}
|
|
137
|
-
export interface IWasmAsync {
|
|
138
|
-
writeArrayToMemory(array: TypedArray): Promise<number>;
|
|
139
|
-
readArrayFromMemory<T = TypedArray>(pointer: number, array: T): T;
|
|
140
|
-
[key: string]: (...args: any[]) => Promise<any>;
|
|
141
|
-
}
|
|
142
|
-
export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
|
|
143
|
-
export interface IAsyncMessage {
|
|
144
|
-
message: string;
|
|
145
|
-
context?: any;
|
|
146
|
-
}
|
|
147
|
-
export
|
|
148
|
-
export interface UnorderedListTemplate {
|
|
149
|
-
readonly type: string;
|
|
150
|
-
readonly selector: string;
|
|
151
|
-
readonly templateRef: TemplateRef<any>;
|
|
152
|
-
}
|
|
153
|
-
export interface UnorderedListTemplates {
|
|
154
|
-
[type: string]: TemplateRef<any>;
|
|
155
|
-
}
|
|
156
|
-
export
|
|
157
|
-
export interface IAjaxRequestDetails {
|
|
158
|
-
request: XMLHttpRequest;
|
|
159
|
-
method: string;
|
|
160
|
-
url: string;
|
|
161
|
-
}
|
|
162
|
-
export
|
|
163
|
-
export
|
|
164
|
-
export interface IScriptPromises {
|
|
165
|
-
[src: string]: Promise<HTMLScriptElement>;
|
|
166
|
-
}
|
|
167
|
-
export interface IStylePromises {
|
|
168
|
-
[src: string]: Promise<HTMLLinkElement>;
|
|
169
|
-
}
|
|
170
|
-
export interface ISearchObservable {
|
|
171
|
-
search: string;
|
|
172
|
-
getSearchResults(token: string): Promise<any[]>;
|
|
173
|
-
}
|
|
174
|
-
export declare function FactoryDependencies(...dependencies: Array<InjectionToken<any> | Provider>): MethodDecorator;
|
|
175
|
-
export declare function ObjectType(type: string): ClassDecorator;
|
|
176
|
-
export interface ITimer {
|
|
177
|
-
id?: any;
|
|
178
|
-
func?: Function;
|
|
179
|
-
time?: number;
|
|
180
|
-
run?: () => void;
|
|
181
|
-
set?: (func: Function, time: number) => void;
|
|
182
|
-
clear?: () => void;
|
|
183
|
-
}
|
|
184
|
-
export interface IExtraProperties {
|
|
185
|
-
[prop: string]: any;
|
|
186
|
-
}
|
|
187
|
-
export interface IGroupMap {
|
|
188
|
-
[column: string]: any;
|
|
189
|
-
}
|
|
190
|
-
export
|
|
191
|
-
export interface IPageInfo {
|
|
192
|
-
text: string;
|
|
193
|
-
number: number;
|
|
194
|
-
active: boolean;
|
|
195
|
-
}
|
|
196
|
-
export interface IPaginationData {
|
|
197
|
-
total: number;
|
|
198
|
-
items: any[];
|
|
199
|
-
meta?: any;
|
|
200
|
-
}
|
|
201
|
-
export
|
|
202
|
-
export declare class PaginationItemContext {
|
|
203
|
-
item: any;
|
|
204
|
-
parallelItem: any;
|
|
205
|
-
count: number;
|
|
206
|
-
index: number;
|
|
207
|
-
dataIndex: number;
|
|
208
|
-
constructor(item: any, parallelItem: any, count: number, index: number, dataIndex: number);
|
|
209
|
-
get first(): boolean;
|
|
210
|
-
get last(): boolean;
|
|
211
|
-
get even(): boolean;
|
|
212
|
-
get odd(): boolean;
|
|
213
|
-
get row(): any;
|
|
214
|
-
get parallelRow(): any;
|
|
215
|
-
filter(filterRx: RegExp): boolean;
|
|
216
|
-
}
|
|
217
|
-
export interface IHttpHeaders {
|
|
218
|
-
[header: string]: string | string[];
|
|
219
|
-
}
|
|
220
|
-
export interface IHttpParams {
|
|
221
|
-
[key: string]: any;
|
|
222
|
-
}
|
|
223
|
-
export interface IRequestOptions {
|
|
224
|
-
method?: string;
|
|
225
|
-
body?: any;
|
|
226
|
-
headers?: IHttpHeaders | HttpHeaders;
|
|
227
|
-
originalHeaders?: IHttpHeaders;
|
|
228
|
-
params?: IHttpParams;
|
|
229
|
-
observe?: "body" | "response";
|
|
230
|
-
reportProgress?: boolean;
|
|
231
|
-
responseType?: "arraybuffer" | "blob" | "json" | "text";
|
|
232
|
-
withCredentials?: boolean;
|
|
233
|
-
timeout?: number;
|
|
234
|
-
}
|
|
235
|
-
export interface IIssueContext {
|
|
236
|
-
url: string;
|
|
237
|
-
}
|
|
238
|
-
export interface IProgress {
|
|
239
|
-
percentage?: number;
|
|
240
|
-
loaded?: number;
|
|
241
|
-
total?: number;
|
|
242
|
-
}
|
|
243
|
-
export
|
|
244
|
-
export
|
|
245
|
-
export declare class HttpPromise extends Promise<any> {
|
|
246
|
-
protected rejectHandler: (reason?: HttpErrorResponse) => void;
|
|
247
|
-
protected hasRejectHandler: boolean;
|
|
248
|
-
protected attachCount: number;
|
|
249
|
-
protected runCount: number;
|
|
250
|
-
constructor(rejectHandler: (reason?: HttpErrorResponse) => void, executor: PromiseExecutor);
|
|
251
|
-
then<TResult1, TResult2>(onFulfilled?: ((value: any) => (PromiseLike<TResult1> | TResult1)) | null | undefined, onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
|
|
252
|
-
catch<TResult = never>(onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult> | TResult)) | null | undefined): Promise<any | TResult>;
|
|
253
|
-
}
|
|
254
|
-
export interface IHttpService {
|
|
255
|
-
language: ILanguageService;
|
|
256
|
-
url(url: string): string;
|
|
257
|
-
makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
|
|
258
|
-
}
|
|
259
|
-
export declare const EXPRESS_REQUEST: InjectionToken<Request>;
|
|
260
|
-
export interface IApiService extends IHttpService {
|
|
261
|
-
cache: any;
|
|
262
|
-
client: HttpClient;
|
|
263
|
-
get(url: string, options?: IRequestOptions): Promise<any>;
|
|
264
|
-
delete(url: string, options?: IRequestOptions): Promise<any>;
|
|
265
|
-
post(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
266
|
-
put(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
267
|
-
patch(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
268
|
-
upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
|
|
269
|
-
list(url: string, params: IHttpParams): Promise<IPaginationData>;
|
|
270
|
-
}
|
|
271
|
-
export declare const API_SERVICE: InjectionToken<IApiService>;
|
|
272
|
-
export interface IOpenApiSchemaProperty {
|
|
273
|
-
id: string;
|
|
274
|
-
type?: string;
|
|
275
|
-
format?: string;
|
|
276
|
-
column?: boolean;
|
|
277
|
-
additionalProperties?: any;
|
|
278
|
-
$ref?: string;
|
|
279
|
-
allOf?: ReadonlyArray<{
|
|
280
|
-
$ref?: string;
|
|
281
|
-
}>;
|
|
282
|
-
items?: IOpenApiSchemaProperty;
|
|
283
|
-
enum?: string[];
|
|
284
|
-
[key: string]: any;
|
|
285
|
-
}
|
|
286
|
-
export interface IOpenApiSchema {
|
|
287
|
-
properties: {
|
|
288
|
-
[name: string]: IOpenApiSchemaProperty;
|
|
289
|
-
};
|
|
290
|
-
required: string[];
|
|
291
|
-
}
|
|
292
|
-
export interface IOpenApiSchemas {
|
|
293
|
-
[name: string]: IOpenApiSchema;
|
|
294
|
-
}
|
|
295
|
-
export interface ITableOrders {
|
|
296
|
-
[column: string]: string;
|
|
297
|
-
}
|
|
298
|
-
export interface ITableColumn {
|
|
299
|
-
title?: string;
|
|
300
|
-
sort?: string;
|
|
301
|
-
filter?: boolean;
|
|
302
|
-
[key: string]: any;
|
|
303
|
-
}
|
|
304
|
-
export interface ITableColumns {
|
|
305
|
-
[column: string]: ITableColumn;
|
|
306
|
-
}
|
|
307
|
-
export
|
|
308
|
-
export interface ITableTemplate {
|
|
309
|
-
column: string | string[];
|
|
310
|
-
pure: boolean;
|
|
311
|
-
ref: TemplateRef<any>;
|
|
312
|
-
}
|
|
313
|
-
export interface ITableTemplates {
|
|
314
|
-
[column: string]: ITableTemplate;
|
|
315
|
-
}
|
|
316
|
-
export interface ITableDataQuery {
|
|
317
|
-
[column: string]: string;
|
|
318
|
-
}
|
|
319
|
-
export
|
|
320
|
-
export declare class ResourceIfContext {
|
|
321
|
-
resource: string;
|
|
322
|
-
url: string;
|
|
323
|
-
}
|
|
324
|
-
export declare const APP_BASE_URL: InjectionToken<string>;
|
|
325
|
-
export declare class IConfiguration {
|
|
326
|
-
cdnUrl?: string;
|
|
327
|
-
baseUrl?: string;
|
|
328
|
-
baseDomain?: string;
|
|
329
|
-
translationUrl?: string;
|
|
330
|
-
[key: string]: any;
|
|
331
|
-
}
|
|
332
|
-
export interface IConfigService {
|
|
333
|
-
readonly config: IConfiguration;
|
|
334
|
-
readonly injector: Injector;
|
|
335
|
-
readonly load: () => Promise<IConfiguration>;
|
|
336
|
-
readonly rootElement: any;
|
|
337
|
-
cloneRootElem(): any;
|
|
338
|
-
prepareUrl(url: string, ending: string): string;
|
|
339
|
-
getConfigValue(key: string): any;
|
|
340
|
-
getQueryParameter(name: string, url?: string): string;
|
|
341
|
-
}
|
|
342
|
-
export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
|
|
343
|
-
export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
344
|
-
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
345
|
-
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
346
|
-
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
347
|
-
export
|
|
348
|
-
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
349
|
-
export
|
|
350
|
-
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
351
|
-
export
|
|
352
|
-
export interface IGlobalTemplates {
|
|
353
|
-
readonly templatesUpdated: EventEmitter<void>;
|
|
354
|
-
get(id: string, component?: any): TemplateRef<any>;
|
|
355
|
-
add(id: string, template: TemplateRef<any>): void;
|
|
356
|
-
remove(id: string): void;
|
|
357
|
-
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
358
|
-
}
|
|
359
|
-
export declare const GLOBAL_TEMPLATES: InjectionToken<ErrorHandlerCallback>;
|
|
360
|
-
export
|
|
361
|
-
export interface IModuleConfig {
|
|
362
|
-
apiService?: Type<IApiService>;
|
|
363
|
-
authService?: Type<IAuthService>;
|
|
364
|
-
iconService?: Type<IIconService>;
|
|
365
|
-
languageService?: Type<ILanguageService>;
|
|
366
|
-
toasterService?: Type<IToasterService>;
|
|
367
|
-
promiseService?: Type<IPromiseService>;
|
|
368
|
-
configService?: Type<IConfigService>;
|
|
369
|
-
globalTemplates?: Type<IGlobalTemplates>;
|
|
370
|
-
wasiImplementation?: Type<IWasi>;
|
|
371
|
-
initializeApp?: (injector: Injector) => AppInitializerFunc;
|
|
372
|
-
baseUrl?: (injector: Injector) => string;
|
|
373
|
-
resizeDelay?: number;
|
|
374
|
-
resizeStrategy?: ResizeEventStrategy;
|
|
375
|
-
}
|
|
376
|
-
export declare class ValuedPromise<T> extends Promise<T> {
|
|
377
|
-
value: T;
|
|
378
|
-
}
|
|
1
|
+
import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
|
|
2
|
+
import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
|
|
3
|
+
import { ActivatedRouteSnapshot, Data, Route, UrlTree } from "@angular/router";
|
|
4
|
+
import { Request } from "express";
|
|
5
|
+
export interface TypedFactoryProvider<T> {
|
|
6
|
+
useFactory: (...args: any[]) => T;
|
|
7
|
+
deps: any[];
|
|
8
|
+
}
|
|
9
|
+
export interface TypedValueProvider<T> {
|
|
10
|
+
useValue: T;
|
|
11
|
+
}
|
|
12
|
+
export type CachedProvider<T> = Type<T> | TypedFactoryProvider<T> | TypedValueProvider<T>;
|
|
13
|
+
export type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
|
|
14
|
+
export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
|
|
15
|
+
export interface IResolveFactory {
|
|
16
|
+
func: Function;
|
|
17
|
+
type?: any;
|
|
18
|
+
params?: any[];
|
|
19
|
+
}
|
|
20
|
+
export declare class CanvasColor {
|
|
21
|
+
r: number;
|
|
22
|
+
g: number;
|
|
23
|
+
b: number;
|
|
24
|
+
a: number;
|
|
25
|
+
constructor(r: number, g: number, b: number, a?: number);
|
|
26
|
+
}
|
|
27
|
+
export interface IIconService {
|
|
28
|
+
isDisabled: boolean;
|
|
29
|
+
iconsLoaded: EventEmitter<any>;
|
|
30
|
+
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
31
|
+
}
|
|
32
|
+
export declare const ICON_SERVICE: InjectionToken<IIconService>;
|
|
33
|
+
export interface ITranslation {
|
|
34
|
+
lang: string;
|
|
35
|
+
translation: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ITranslations {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}
|
|
40
|
+
export interface ILanguageSetting {
|
|
41
|
+
unavailable?: string;
|
|
42
|
+
[key: string]: string | boolean | number;
|
|
43
|
+
}
|
|
44
|
+
export interface ILanguageSettings {
|
|
45
|
+
languages: string[];
|
|
46
|
+
devLanguages: string[];
|
|
47
|
+
defaultLanguage: string;
|
|
48
|
+
settings?: {
|
|
49
|
+
[lang: string]: ILanguageSetting;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface ILanguageService {
|
|
53
|
+
currentLanguage: string;
|
|
54
|
+
editLanguage: string;
|
|
55
|
+
disableTranslations: boolean;
|
|
56
|
+
defaultLanguage: string;
|
|
57
|
+
dictionary: ITranslations;
|
|
58
|
+
readonly languages: ReadonlyArray<string>;
|
|
59
|
+
readonly httpClient: HttpClient;
|
|
60
|
+
replaceLanguages(languages: string[]): void;
|
|
61
|
+
addLanguages(languages: string[]): void;
|
|
62
|
+
getTranslationSync(key: string, params?: any): string;
|
|
63
|
+
getTranslation(key: string, params?: any): Promise<string>;
|
|
64
|
+
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
65
|
+
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
66
|
+
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
67
|
+
}
|
|
68
|
+
export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
|
|
69
|
+
export interface IAuthService {
|
|
70
|
+
isAuthenticated: boolean;
|
|
71
|
+
userChanged: EventEmitter<any>;
|
|
72
|
+
checkAuthenticated(): Promise<boolean>;
|
|
73
|
+
}
|
|
74
|
+
export type RouteValidator = (auth: IAuthService, route?: IRoute, next?: ActivatedRouteSnapshot) => Promise<boolean>;
|
|
75
|
+
export interface IRouteData extends Data {
|
|
76
|
+
returnState?: string[];
|
|
77
|
+
guards?: Array<IResolveFactory | RouteValidator>;
|
|
78
|
+
}
|
|
79
|
+
export interface IRoute extends Route {
|
|
80
|
+
data?: IRouteData;
|
|
81
|
+
}
|
|
82
|
+
export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
|
|
83
|
+
export interface IAclComponent {
|
|
84
|
+
onUserInitialized(): void;
|
|
85
|
+
onUserChanged(): void;
|
|
86
|
+
}
|
|
87
|
+
export interface IRouteStateInfo {
|
|
88
|
+
route: IRoute;
|
|
89
|
+
guard: any;
|
|
90
|
+
dirty: boolean;
|
|
91
|
+
first: boolean;
|
|
92
|
+
component?: any;
|
|
93
|
+
}
|
|
94
|
+
export type NavigationUrlParam = any[] | string | UrlTree;
|
|
95
|
+
export declare enum StorageMode {
|
|
96
|
+
Local = 0,
|
|
97
|
+
Session = 1
|
|
98
|
+
}
|
|
99
|
+
export interface IToasterService {
|
|
100
|
+
error(message: string, params?: any, title?: string): void;
|
|
101
|
+
info(message: string, params?: any, title?: string): void;
|
|
102
|
+
success(message: string, params?: any, title?: string): void;
|
|
103
|
+
warning(message: string, params?: any, title?: string): void;
|
|
104
|
+
}
|
|
105
|
+
export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
|
|
106
|
+
export interface IPromiseService {
|
|
107
|
+
zone: NgZone;
|
|
108
|
+
count: number;
|
|
109
|
+
onChanged: EventEmitter<number>;
|
|
110
|
+
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
111
|
+
all(promises: Promise<any>[]): Promise<any>;
|
|
112
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
113
|
+
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
114
|
+
}
|
|
115
|
+
export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
|
|
116
|
+
export type TypedArray = Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Float32Array | Float64Array;
|
|
117
|
+
export interface IWasmExports {
|
|
118
|
+
HEAP8: Int8Array;
|
|
119
|
+
HEAP16: Int16Array;
|
|
120
|
+
HEAP32: Int32Array;
|
|
121
|
+
HEAPU8: Uint8Array;
|
|
122
|
+
HEAPU16: Uint16Array;
|
|
123
|
+
HEAPU32: Uint32Array;
|
|
124
|
+
HEAPF32: Float32Array;
|
|
125
|
+
HEAPF64: Float64Array;
|
|
126
|
+
memory: WebAssembly.Memory;
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}
|
|
129
|
+
export interface IWasi {
|
|
130
|
+
instantiate(bytes: ArrayBuffer): Promise<IWasmExports>;
|
|
131
|
+
}
|
|
132
|
+
export interface IWasm {
|
|
133
|
+
writeArrayToMemory(array: TypedArray): Promise<number> | number;
|
|
134
|
+
readArrayFromMemory<T = TypedArray>(pointer: number, array: T): Promise<T> | T;
|
|
135
|
+
[key: string]: (...args: any[]) => any;
|
|
136
|
+
}
|
|
137
|
+
export interface IWasmAsync {
|
|
138
|
+
writeArrayToMemory(array: TypedArray): Promise<number>;
|
|
139
|
+
readArrayFromMemory<T = TypedArray>(pointer: number, array: T): T;
|
|
140
|
+
[key: string]: (...args: any[]) => Promise<any>;
|
|
141
|
+
}
|
|
142
|
+
export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
|
|
143
|
+
export interface IAsyncMessage {
|
|
144
|
+
message: string;
|
|
145
|
+
context?: any;
|
|
146
|
+
}
|
|
147
|
+
export type AsyncMethod = (context?: any) => Promise<IAsyncMessage>;
|
|
148
|
+
export interface UnorderedListTemplate {
|
|
149
|
+
readonly type: string;
|
|
150
|
+
readonly selector: string;
|
|
151
|
+
readonly templateRef: TemplateRef<any>;
|
|
152
|
+
}
|
|
153
|
+
export interface UnorderedListTemplates {
|
|
154
|
+
[type: string]: TemplateRef<any>;
|
|
155
|
+
}
|
|
156
|
+
export type UnorderedListStyle = "table" | "list";
|
|
157
|
+
export interface IAjaxRequestDetails {
|
|
158
|
+
request: XMLHttpRequest;
|
|
159
|
+
method: string;
|
|
160
|
+
url: string;
|
|
161
|
+
}
|
|
162
|
+
export type AjaxRequestCallback = (details: IAjaxRequestDetails, params: any) => void;
|
|
163
|
+
export type ScriptType = "text/javascript" | "module";
|
|
164
|
+
export interface IScriptPromises {
|
|
165
|
+
[src: string]: Promise<HTMLScriptElement>;
|
|
166
|
+
}
|
|
167
|
+
export interface IStylePromises {
|
|
168
|
+
[src: string]: Promise<HTMLLinkElement>;
|
|
169
|
+
}
|
|
170
|
+
export interface ISearchObservable {
|
|
171
|
+
search: string;
|
|
172
|
+
getSearchResults(token: string): Promise<any[]>;
|
|
173
|
+
}
|
|
174
|
+
export declare function FactoryDependencies(...dependencies: Array<InjectionToken<any> | Provider>): MethodDecorator;
|
|
175
|
+
export declare function ObjectType(type: string): ClassDecorator;
|
|
176
|
+
export interface ITimer {
|
|
177
|
+
id?: any;
|
|
178
|
+
func?: Function;
|
|
179
|
+
time?: number;
|
|
180
|
+
run?: () => void;
|
|
181
|
+
set?: (func: Function, time: number) => void;
|
|
182
|
+
clear?: () => void;
|
|
183
|
+
}
|
|
184
|
+
export interface IExtraProperties {
|
|
185
|
+
[prop: string]: any;
|
|
186
|
+
}
|
|
187
|
+
export interface IGroupMap {
|
|
188
|
+
[column: string]: any;
|
|
189
|
+
}
|
|
190
|
+
export type TranslationQuery = string | ITranslations | ITranslation[];
|
|
191
|
+
export interface IPageInfo {
|
|
192
|
+
text: string;
|
|
193
|
+
number: number;
|
|
194
|
+
active: boolean;
|
|
195
|
+
}
|
|
196
|
+
export interface IPaginationData {
|
|
197
|
+
total: number;
|
|
198
|
+
items: any[];
|
|
199
|
+
meta?: any;
|
|
200
|
+
}
|
|
201
|
+
export type PaginationDataLoader = (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
202
|
+
export declare class PaginationItemContext {
|
|
203
|
+
item: any;
|
|
204
|
+
parallelItem: any;
|
|
205
|
+
count: number;
|
|
206
|
+
index: number;
|
|
207
|
+
dataIndex: number;
|
|
208
|
+
constructor(item: any, parallelItem: any, count: number, index: number, dataIndex: number);
|
|
209
|
+
get first(): boolean;
|
|
210
|
+
get last(): boolean;
|
|
211
|
+
get even(): boolean;
|
|
212
|
+
get odd(): boolean;
|
|
213
|
+
get row(): any;
|
|
214
|
+
get parallelRow(): any;
|
|
215
|
+
filter(filterRx: RegExp): boolean;
|
|
216
|
+
}
|
|
217
|
+
export interface IHttpHeaders {
|
|
218
|
+
[header: string]: string | string[];
|
|
219
|
+
}
|
|
220
|
+
export interface IHttpParams {
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
}
|
|
223
|
+
export interface IRequestOptions {
|
|
224
|
+
method?: string;
|
|
225
|
+
body?: any;
|
|
226
|
+
headers?: IHttpHeaders | HttpHeaders;
|
|
227
|
+
originalHeaders?: IHttpHeaders;
|
|
228
|
+
params?: IHttpParams;
|
|
229
|
+
observe?: "body" | "response";
|
|
230
|
+
reportProgress?: boolean;
|
|
231
|
+
responseType?: "arraybuffer" | "blob" | "json" | "text";
|
|
232
|
+
withCredentials?: boolean;
|
|
233
|
+
timeout?: number;
|
|
234
|
+
}
|
|
235
|
+
export interface IIssueContext {
|
|
236
|
+
url: string;
|
|
237
|
+
}
|
|
238
|
+
export interface IProgress {
|
|
239
|
+
percentage?: number;
|
|
240
|
+
loaded?: number;
|
|
241
|
+
total?: number;
|
|
242
|
+
}
|
|
243
|
+
export type ProgressListener = (progress: IProgress) => void;
|
|
244
|
+
export type PromiseExecutor = (resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void) => void;
|
|
245
|
+
export declare class HttpPromise extends Promise<any> {
|
|
246
|
+
protected rejectHandler: (reason?: HttpErrorResponse) => void;
|
|
247
|
+
protected hasRejectHandler: boolean;
|
|
248
|
+
protected attachCount: number;
|
|
249
|
+
protected runCount: number;
|
|
250
|
+
constructor(rejectHandler: (reason?: HttpErrorResponse) => void, executor: PromiseExecutor);
|
|
251
|
+
then<TResult1, TResult2>(onFulfilled?: ((value: any) => (PromiseLike<TResult1> | TResult1)) | null | undefined, onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
|
|
252
|
+
catch<TResult = never>(onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult> | TResult)) | null | undefined): Promise<any | TResult>;
|
|
253
|
+
}
|
|
254
|
+
export interface IHttpService {
|
|
255
|
+
language: ILanguageService;
|
|
256
|
+
url(url: string): string;
|
|
257
|
+
makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
|
|
258
|
+
}
|
|
259
|
+
export declare const EXPRESS_REQUEST: InjectionToken<Request>;
|
|
260
|
+
export interface IApiService extends IHttpService {
|
|
261
|
+
cache: any;
|
|
262
|
+
client: HttpClient;
|
|
263
|
+
get(url: string, options?: IRequestOptions): Promise<any>;
|
|
264
|
+
delete(url: string, options?: IRequestOptions): Promise<any>;
|
|
265
|
+
post(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
266
|
+
put(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
267
|
+
patch(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
268
|
+
upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
|
|
269
|
+
list(url: string, params: IHttpParams): Promise<IPaginationData>;
|
|
270
|
+
}
|
|
271
|
+
export declare const API_SERVICE: InjectionToken<IApiService>;
|
|
272
|
+
export interface IOpenApiSchemaProperty {
|
|
273
|
+
id: string;
|
|
274
|
+
type?: string;
|
|
275
|
+
format?: string;
|
|
276
|
+
column?: boolean;
|
|
277
|
+
additionalProperties?: any;
|
|
278
|
+
$ref?: string;
|
|
279
|
+
allOf?: ReadonlyArray<{
|
|
280
|
+
$ref?: string;
|
|
281
|
+
}>;
|
|
282
|
+
items?: IOpenApiSchemaProperty;
|
|
283
|
+
enum?: string[];
|
|
284
|
+
[key: string]: any;
|
|
285
|
+
}
|
|
286
|
+
export interface IOpenApiSchema {
|
|
287
|
+
properties: {
|
|
288
|
+
[name: string]: IOpenApiSchemaProperty;
|
|
289
|
+
};
|
|
290
|
+
required: string[];
|
|
291
|
+
}
|
|
292
|
+
export interface IOpenApiSchemas {
|
|
293
|
+
[name: string]: IOpenApiSchema;
|
|
294
|
+
}
|
|
295
|
+
export interface ITableOrders {
|
|
296
|
+
[column: string]: string;
|
|
297
|
+
}
|
|
298
|
+
export interface ITableColumn {
|
|
299
|
+
title?: string;
|
|
300
|
+
sort?: string;
|
|
301
|
+
filter?: boolean;
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
}
|
|
304
|
+
export interface ITableColumns {
|
|
305
|
+
[column: string]: ITableColumn;
|
|
306
|
+
}
|
|
307
|
+
export type TableColumns = ITableOrders | ITableColumns | string[];
|
|
308
|
+
export interface ITableTemplate {
|
|
309
|
+
column: string | string[];
|
|
310
|
+
pure: boolean;
|
|
311
|
+
ref: TemplateRef<any>;
|
|
312
|
+
}
|
|
313
|
+
export interface ITableTemplates {
|
|
314
|
+
[column: string]: ITableTemplate;
|
|
315
|
+
}
|
|
316
|
+
export interface ITableDataQuery {
|
|
317
|
+
[column: string]: string;
|
|
318
|
+
}
|
|
319
|
+
export type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
|
|
320
|
+
export declare class ResourceIfContext {
|
|
321
|
+
resource: string;
|
|
322
|
+
url: string;
|
|
323
|
+
}
|
|
324
|
+
export declare const APP_BASE_URL: InjectionToken<string>;
|
|
325
|
+
export declare class IConfiguration {
|
|
326
|
+
cdnUrl?: string;
|
|
327
|
+
baseUrl?: string;
|
|
328
|
+
baseDomain?: string;
|
|
329
|
+
translationUrl?: string;
|
|
330
|
+
[key: string]: any;
|
|
331
|
+
}
|
|
332
|
+
export interface IConfigService {
|
|
333
|
+
readonly config: IConfiguration;
|
|
334
|
+
readonly injector: Injector;
|
|
335
|
+
readonly load: () => Promise<IConfiguration>;
|
|
336
|
+
readonly rootElement: any;
|
|
337
|
+
cloneRootElem(): any;
|
|
338
|
+
prepareUrl(url: string, ending: string): string;
|
|
339
|
+
getConfigValue(key: string): any;
|
|
340
|
+
getQueryParameter(name: string, url?: string): string;
|
|
341
|
+
}
|
|
342
|
+
export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
|
|
343
|
+
export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
344
|
+
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
345
|
+
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
346
|
+
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
347
|
+
export type ResizeEventStrategy = "scroll" | "object";
|
|
348
|
+
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
349
|
+
export type ErrorHandlerCallback = (error: string) => any;
|
|
350
|
+
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
351
|
+
export type GlobalComponentModifier = (component: any) => any;
|
|
352
|
+
export interface IGlobalTemplates {
|
|
353
|
+
readonly templatesUpdated: EventEmitter<void>;
|
|
354
|
+
get(id: string, component?: any): TemplateRef<any>;
|
|
355
|
+
add(id: string, template: TemplateRef<any>): void;
|
|
356
|
+
remove(id: string): void;
|
|
357
|
+
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
358
|
+
}
|
|
359
|
+
export declare const GLOBAL_TEMPLATES: InjectionToken<ErrorHandlerCallback>;
|
|
360
|
+
export type AppInitializerFunc = () => Promise<void> | void;
|
|
361
|
+
export interface IModuleConfig {
|
|
362
|
+
apiService?: Type<IApiService>;
|
|
363
|
+
authService?: Type<IAuthService>;
|
|
364
|
+
iconService?: Type<IIconService>;
|
|
365
|
+
languageService?: Type<ILanguageService>;
|
|
366
|
+
toasterService?: Type<IToasterService>;
|
|
367
|
+
promiseService?: Type<IPromiseService>;
|
|
368
|
+
configService?: Type<IConfigService>;
|
|
369
|
+
globalTemplates?: Type<IGlobalTemplates>;
|
|
370
|
+
wasiImplementation?: Type<IWasi>;
|
|
371
|
+
initializeApp?: (injector: Injector) => AppInitializerFunc;
|
|
372
|
+
baseUrl?: (injector: Injector) => string;
|
|
373
|
+
resizeDelay?: number;
|
|
374
|
+
resizeStrategy?: ResizeEventStrategy;
|
|
375
|
+
}
|
|
376
|
+
export declare class ValuedPromise<T> extends Promise<T> {
|
|
377
|
+
value: T;
|
|
378
|
+
}
|