@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,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EventsService {
|
|
4
|
-
readonly eventForwarded: EventEmitter<Event>;
|
|
5
|
-
readonly stickyUpdated: EventEmitter<boolean>;
|
|
6
|
-
readonly languageChanged: EventEmitter<string>;
|
|
7
|
-
private sticky;
|
|
8
|
-
get isSticky(): boolean;
|
|
9
|
-
constructor();
|
|
10
|
-
event(e: Event): void;
|
|
11
|
-
updateSticky(sticky: boolean): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
14
|
-
}
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EventsService {
|
|
4
|
+
readonly eventForwarded: EventEmitter<Event>;
|
|
5
|
+
readonly stickyUpdated: EventEmitter<boolean>;
|
|
6
|
+
readonly languageChanged: EventEmitter<string>;
|
|
7
|
+
private sticky;
|
|
8
|
+
get isSticky(): boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
event(e: Event): void;
|
|
11
|
+
updateSticky(sticky: boolean): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
14
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ILanguageService } from "../common-types";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormatterService {
|
|
4
|
-
language: ILanguageService;
|
|
5
|
-
get defaultPrecision(): number;
|
|
6
|
-
get defaultNumberFormat(): string;
|
|
7
|
-
get defaultDivider(): number;
|
|
8
|
-
constructor(language: ILanguageService);
|
|
9
|
-
roundNumber(value: number, precision?: number, divider?: number): number;
|
|
10
|
-
formatNumber(value: number | string, format?: string, precision?: number, divider?: number, minDigits?: number): string;
|
|
11
|
-
formatMillimeter(value: number, precision?: number, divider?: number): string;
|
|
12
|
-
protected getPrecision(precision: number): number;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormatterService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormatterService>;
|
|
15
|
-
}
|
|
1
|
+
import { ILanguageService } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormatterService {
|
|
4
|
+
language: ILanguageService;
|
|
5
|
+
get defaultPrecision(): number;
|
|
6
|
+
get defaultNumberFormat(): string;
|
|
7
|
+
get defaultDivider(): number;
|
|
8
|
+
constructor(language: ILanguageService);
|
|
9
|
+
roundNumber(value: number, precision?: number, divider?: number): number;
|
|
10
|
+
formatNumber(value: number | string, format?: string, precision?: number, divider?: number, minDigits?: number): string;
|
|
11
|
+
formatMillimeter(value: number, precision?: number, divider?: number): string;
|
|
12
|
+
protected getPrecision(precision: number): number;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatterService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormatterService>;
|
|
15
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
-
import { GlobalComponentModifier, IGlobalTemplates } from "../common-types";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GlobalTemplateService implements IGlobalTemplates {
|
|
5
|
-
readonly templatesUpdated: EventEmitter<void>;
|
|
6
|
-
protected globalTemplates: {
|
|
7
|
-
[id: string]: TemplateRef<any>;
|
|
8
|
-
};
|
|
9
|
-
protected componentModifiers: {
|
|
10
|
-
[id: string]: GlobalComponentModifier;
|
|
11
|
-
};
|
|
12
|
-
constructor();
|
|
13
|
-
get(id: string, component?: any): TemplateRef<any>;
|
|
14
|
-
add(id: string, template: TemplateRef<any>): void;
|
|
15
|
-
remove(id: string): void;
|
|
16
|
-
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalTemplateService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalTemplateService>;
|
|
19
|
-
}
|
|
1
|
+
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
+
import { GlobalComponentModifier, IGlobalTemplates } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GlobalTemplateService implements IGlobalTemplates {
|
|
5
|
+
readonly templatesUpdated: EventEmitter<void>;
|
|
6
|
+
protected globalTemplates: {
|
|
7
|
+
[id: string]: TemplateRef<any>;
|
|
8
|
+
};
|
|
9
|
+
protected componentModifiers: {
|
|
10
|
+
[id: string]: GlobalComponentModifier;
|
|
11
|
+
};
|
|
12
|
+
constructor();
|
|
13
|
+
get(id: string, component?: any): TemplateRef<any>;
|
|
14
|
+
add(id: string, template: TemplateRef<any>): void;
|
|
15
|
+
remove(id: string): void;
|
|
16
|
+
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalTemplateService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalTemplateService>;
|
|
19
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { IIconService } from "../common-types";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IconService implements IIconService {
|
|
5
|
-
get isDisabled(): boolean;
|
|
6
|
-
set isDisabled(value: boolean);
|
|
7
|
-
readonly iconsLoaded: EventEmitter<any>;
|
|
8
|
-
protected disabled: boolean;
|
|
9
|
-
constructor();
|
|
10
|
-
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
13
|
-
}
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { IIconService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IconService implements IIconService {
|
|
5
|
+
get isDisabled(): boolean;
|
|
6
|
+
set isDisabled(value: boolean);
|
|
7
|
+
readonly iconsLoaded: EventEmitter<any>;
|
|
8
|
+
protected disabled: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
13
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
-
import { ILanguageSetting, ILanguageSettings, ITranslations } from "../common-types";
|
|
3
|
-
import { StaticLanguageService } from "./static-language.service";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LanguageService extends StaticLanguageService {
|
|
6
|
-
protected translationRequests: ITranslations;
|
|
7
|
-
protected settingsPromise: Promise<ILanguageSettings>;
|
|
8
|
-
protected languageSettings: BehaviorSubject<ILanguageSettings>;
|
|
9
|
-
get currentLanguage(): string;
|
|
10
|
-
set currentLanguage(lang: string);
|
|
11
|
-
get settings(): ILanguageSetting;
|
|
12
|
-
get $settings(): Observable<ILanguageSetting>;
|
|
13
|
-
protected initService(): void;
|
|
14
|
-
initFromSettings(): Promise<any>;
|
|
15
|
-
getTranslation(key: string, params?: any): Promise<string>;
|
|
16
|
-
protected useLanguage(lang: string): Promise<ITranslations>;
|
|
17
|
-
protected loadDictionary(): Promise<any>;
|
|
18
|
-
protected loadSettings(): Promise<ILanguageSettings>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
|
|
21
|
-
}
|
|
1
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
+
import { ILanguageSetting, ILanguageSettings, ITranslations } from "../common-types";
|
|
3
|
+
import { StaticLanguageService } from "./static-language.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LanguageService extends StaticLanguageService {
|
|
6
|
+
protected translationRequests: ITranslations;
|
|
7
|
+
protected settingsPromise: Promise<ILanguageSettings>;
|
|
8
|
+
protected languageSettings: BehaviorSubject<ILanguageSettings>;
|
|
9
|
+
get currentLanguage(): string;
|
|
10
|
+
set currentLanguage(lang: string);
|
|
11
|
+
get settings(): ILanguageSetting;
|
|
12
|
+
get $settings(): Observable<ILanguageSetting>;
|
|
13
|
+
protected initService(): void;
|
|
14
|
+
initFromSettings(): Promise<any>;
|
|
15
|
+
getTranslation(key: string, params?: any): Promise<string>;
|
|
16
|
+
protected useLanguage(lang: string): Promise<ITranslations>;
|
|
17
|
+
protected loadDictionary(): Promise<any>;
|
|
18
|
+
protected loadSettings(): Promise<ILanguageSettings>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
|
|
21
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IRequestOptions } from "../common-types";
|
|
2
|
-
import { BaseHttpService } from "./base-http.service";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LocalHttpService extends BaseHttpService {
|
|
5
|
-
private images;
|
|
6
|
-
get name(): string;
|
|
7
|
-
protected get withCredentials(): boolean;
|
|
8
|
-
protected initService(): void;
|
|
9
|
-
url(url: string): string;
|
|
10
|
-
get(url: string, options?: IRequestOptions): Promise<any>;
|
|
11
|
-
getImage(url: string): Promise<HTMLImageElement>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalHttpService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalHttpService>;
|
|
14
|
-
}
|
|
1
|
+
import { IRequestOptions } from "../common-types";
|
|
2
|
+
import { BaseHttpService } from "./base-http.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LocalHttpService extends BaseHttpService {
|
|
5
|
+
private images;
|
|
6
|
+
get name(): string;
|
|
7
|
+
protected get withCredentials(): boolean;
|
|
8
|
+
protected initService(): void;
|
|
9
|
+
url(url: string): string;
|
|
10
|
+
get(url: string, options?: IRequestOptions): Promise<any>;
|
|
11
|
+
getImage(url: string): Promise<HTMLImageElement>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalHttpService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalHttpService>;
|
|
14
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IApiService, IOpenApiSchema, IOpenApiSchemas } from "../common-types";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class OpenApiService {
|
|
4
|
-
readonly api: IApiService;
|
|
5
|
-
private schemasPromise;
|
|
6
|
-
constructor(api: IApiService);
|
|
7
|
-
getSchemas(): Promise<IOpenApiSchemas>;
|
|
8
|
-
getSchema(name: string): Promise<IOpenApiSchema>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiService>;
|
|
11
|
-
}
|
|
1
|
+
import { IApiService, IOpenApiSchema, IOpenApiSchemas } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OpenApiService {
|
|
4
|
+
readonly api: IApiService;
|
|
5
|
+
private schemasPromise;
|
|
6
|
+
constructor(api: IApiService);
|
|
7
|
+
getSchemas(): Promise<IOpenApiSchemas>;
|
|
8
|
+
getSchema(name: string): Promise<IOpenApiSchema>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiService>;
|
|
11
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { EventEmitter, NgZone } from "@angular/core";
|
|
2
|
-
import { IPromiseService } from "../common-types";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PromiseService implements IPromiseService {
|
|
5
|
-
readonly zone: NgZone;
|
|
6
|
-
get count(): number;
|
|
7
|
-
get onChanged(): EventEmitter<number>;
|
|
8
|
-
protected promiseCount: number;
|
|
9
|
-
protected readonly promiseChanged: EventEmitter<number>;
|
|
10
|
-
constructor(zone: NgZone);
|
|
11
|
-
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
12
|
-
all(promises: Promise<any>[]): Promise<any>;
|
|
13
|
-
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
14
|
-
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
15
|
-
protected promiseFinished(): void;
|
|
16
|
-
protected add<T>(promise: Promise<T>): Promise<T>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PromiseService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PromiseService>;
|
|
19
|
-
}
|
|
1
|
+
import { EventEmitter, NgZone } from "@angular/core";
|
|
2
|
+
import { IPromiseService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PromiseService implements IPromiseService {
|
|
5
|
+
readonly zone: NgZone;
|
|
6
|
+
get count(): number;
|
|
7
|
+
get onChanged(): EventEmitter<number>;
|
|
8
|
+
protected promiseCount: number;
|
|
9
|
+
protected readonly promiseChanged: EventEmitter<number>;
|
|
10
|
+
constructor(zone: NgZone);
|
|
11
|
+
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
12
|
+
all(promises: Promise<any>[]): Promise<any>;
|
|
13
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
14
|
+
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
15
|
+
protected promiseFinished(): void;
|
|
16
|
+
protected add<T>(promise: Promise<T>): Promise<T>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromiseService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PromiseService>;
|
|
19
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { Injector, NgZone } from "@angular/core";
|
|
2
|
-
import { ActivatedRouteSnapshot, Data, Event, NavigationExtras, Params, Route, Router, UrlSegment, UrlTree } from "@angular/router";
|
|
3
|
-
import { BehaviorSubject, Subscription } from "rxjs";
|
|
4
|
-
import { IRoute, NavigationUrlParam } from "../common-types";
|
|
5
|
-
import { UniversalService } from "./universal.service";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare const emptySnapshot: ActivatedRouteSnapshot;
|
|
8
|
-
export declare const emptyData: Data;
|
|
9
|
-
export declare const emptyParams: Params;
|
|
10
|
-
export declare const emptySegments: UrlSegment[];
|
|
11
|
-
export declare const emptyComponents: any[];
|
|
12
|
-
export interface IStateInfo {
|
|
13
|
-
url: string;
|
|
14
|
-
segments: UrlSegment[];
|
|
15
|
-
components: any[];
|
|
16
|
-
}
|
|
17
|
-
export declare class StateService extends BehaviorSubject<any> {
|
|
18
|
-
readonly injector: Injector;
|
|
19
|
-
readonly zone: NgZone;
|
|
20
|
-
readonly universal: UniversalService;
|
|
21
|
-
readonly router: Router;
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
static toPath(route: Route, params: any): string;
|
|
28
|
-
get component(): any;
|
|
29
|
-
get snapshot(): ActivatedRouteSnapshot;
|
|
30
|
-
get route(): IRoute;
|
|
31
|
-
get data(): Data;
|
|
32
|
-
get params(): Params;
|
|
33
|
-
get queryParams(): Params;
|
|
34
|
-
get url(): string;
|
|
35
|
-
get urlSegments(): UrlSegment[];
|
|
36
|
-
get components(): any[];
|
|
37
|
-
get routerConfig(): IRoute[];
|
|
38
|
-
constructor(injector: Injector, zone: NgZone, universal: UniversalService, router?: Router);
|
|
39
|
-
reload(): Promise<any>;
|
|
40
|
-
navigateByUrl(url: string | UrlTree, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
41
|
-
navigate(url: NavigationUrlParam, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
42
|
-
open(url: NavigationUrlParam, target?: string, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
43
|
-
subscribeImmediately(next?: (value: ActivatedRouteSnapshot) => void, error?: (error: any) => void, complete?: () => void): Subscription;
|
|
44
|
-
protected openInNewWindow(tree: UrlTree, target: string): boolean;
|
|
45
|
-
protected createUrlTree(url: NavigationUrlParam, extras?: NavigationExtras): [UrlTree, NavigationExtras];
|
|
46
|
-
protected handleRouterEvent: (event: Event) => void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StateService, [null, null, null, { optional: true; }]>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
|
|
49
|
-
}
|
|
1
|
+
import { Injector, NgZone } from "@angular/core";
|
|
2
|
+
import { ActivatedRouteSnapshot, ChildrenOutletContexts, Data, Event, NavigationExtras, Params, Route, Router, UrlSegment, UrlTree } from "@angular/router";
|
|
3
|
+
import { BehaviorSubject, Subscription } from "rxjs";
|
|
4
|
+
import { IRoute, NavigationUrlParam } from "../common-types";
|
|
5
|
+
import { UniversalService } from "./universal.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare const emptySnapshot: ActivatedRouteSnapshot;
|
|
8
|
+
export declare const emptyData: Data;
|
|
9
|
+
export declare const emptyParams: Params;
|
|
10
|
+
export declare const emptySegments: UrlSegment[];
|
|
11
|
+
export declare const emptyComponents: any[];
|
|
12
|
+
export interface IStateInfo {
|
|
13
|
+
url: string;
|
|
14
|
+
segments: UrlSegment[];
|
|
15
|
+
components: any[];
|
|
16
|
+
}
|
|
17
|
+
export declare class StateService extends BehaviorSubject<any> {
|
|
18
|
+
readonly injector: Injector;
|
|
19
|
+
readonly zone: NgZone;
|
|
20
|
+
readonly universal: UniversalService;
|
|
21
|
+
readonly router: Router;
|
|
22
|
+
readonly contexts: ChildrenOutletContexts;
|
|
23
|
+
readonly globalExtras: NavigationExtras;
|
|
24
|
+
private shot;
|
|
25
|
+
private comp;
|
|
26
|
+
private stateInfo;
|
|
27
|
+
static toPath(route: Route, params: any): string;
|
|
28
|
+
get component(): any;
|
|
29
|
+
get snapshot(): ActivatedRouteSnapshot;
|
|
30
|
+
get route(): IRoute;
|
|
31
|
+
get data(): Data;
|
|
32
|
+
get params(): Params;
|
|
33
|
+
get queryParams(): Params;
|
|
34
|
+
get url(): string;
|
|
35
|
+
get urlSegments(): UrlSegment[];
|
|
36
|
+
get components(): any[];
|
|
37
|
+
get routerConfig(): IRoute[];
|
|
38
|
+
constructor(injector: Injector, zone: NgZone, universal: UniversalService, router?: Router, contexts?: ChildrenOutletContexts);
|
|
39
|
+
reload(): Promise<any>;
|
|
40
|
+
navigateByUrl(url: string | UrlTree, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
41
|
+
navigate(url: NavigationUrlParam, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
42
|
+
open(url: NavigationUrlParam, target?: string, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
43
|
+
subscribeImmediately(next?: (value: ActivatedRouteSnapshot) => void, error?: (error: any) => void, complete?: () => void): Subscription;
|
|
44
|
+
protected openInNewWindow(tree: UrlTree, target: string): boolean;
|
|
45
|
+
protected createUrlTree(url: NavigationUrlParam, extras?: NavigationExtras): [UrlTree, NavigationExtras];
|
|
46
|
+
protected handleRouterEvent: (event: Event) => void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateService, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
|
|
49
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { IConfigService, IConfiguration, ILanguageService, IPromiseService, 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
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class StaticLanguageService implements ILanguageService {
|
|
9
|
-
readonly events: EventsService;
|
|
10
|
-
readonly storage: StorageService;
|
|
11
|
-
readonly configs: IConfigService;
|
|
12
|
-
protected promises: IPromiseService;
|
|
13
|
-
protected client: BaseHttpClient;
|
|
14
|
-
get defaultLanguage(): string;
|
|
15
|
-
get dictionary(): ITranslations;
|
|
16
|
-
set dictionary(value: ITranslations);
|
|
17
|
-
get languages(): ReadonlyArray<string>;
|
|
18
|
-
get currentLanguage(): string;
|
|
19
|
-
set currentLanguage(lang: string);
|
|
20
|
-
get editLanguage(): string;
|
|
21
|
-
set editLanguage(lang: string);
|
|
22
|
-
get disableTranslations(): boolean;
|
|
23
|
-
set disableTranslations(value: boolean);
|
|
24
|
-
get httpClient(): HttpClient;
|
|
25
|
-
get config(): IConfiguration;
|
|
26
|
-
get universal(): UniversalService;
|
|
27
|
-
protected editLang: string;
|
|
28
|
-
protected currentLang: string;
|
|
29
|
-
protected disableTrans: boolean;
|
|
30
|
-
protected languageList: string[];
|
|
31
|
-
protected readonly translations: ITranslations;
|
|
32
|
-
constructor(events: EventsService, storage: StorageService, configs: IConfigService, promises: IPromiseService, client: BaseHttpClient);
|
|
33
|
-
protected initService(): void;
|
|
34
|
-
replaceLanguages(languages: string[]): void;
|
|
35
|
-
addLanguages(languages: string[]): void;
|
|
36
|
-
getTranslationSync(key: string, params?: any): string;
|
|
37
|
-
getTranslation(key: string, params?: any): Promise<string>;
|
|
38
|
-
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
39
|
-
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
40
|
-
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
41
|
-
protected interpolate(expr: string | Function, params?: any): string;
|
|
42
|
-
protected interpolateString(expr: string, params?: any): string;
|
|
43
|
-
protected getDefaultLanguage(): string;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StaticLanguageService, never>;
|
|
45
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StaticLanguageService>;
|
|
46
|
-
}
|
|
1
|
+
import { IConfigService, IConfiguration, ILanguageService, IPromiseService, 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
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class StaticLanguageService implements ILanguageService {
|
|
9
|
+
readonly events: EventsService;
|
|
10
|
+
readonly storage: StorageService;
|
|
11
|
+
readonly configs: IConfigService;
|
|
12
|
+
protected promises: IPromiseService;
|
|
13
|
+
protected client: BaseHttpClient;
|
|
14
|
+
get defaultLanguage(): string;
|
|
15
|
+
get dictionary(): ITranslations;
|
|
16
|
+
set dictionary(value: ITranslations);
|
|
17
|
+
get languages(): ReadonlyArray<string>;
|
|
18
|
+
get currentLanguage(): string;
|
|
19
|
+
set currentLanguage(lang: string);
|
|
20
|
+
get editLanguage(): string;
|
|
21
|
+
set editLanguage(lang: string);
|
|
22
|
+
get disableTranslations(): boolean;
|
|
23
|
+
set disableTranslations(value: boolean);
|
|
24
|
+
get httpClient(): HttpClient;
|
|
25
|
+
get config(): IConfiguration;
|
|
26
|
+
get universal(): UniversalService;
|
|
27
|
+
protected editLang: string;
|
|
28
|
+
protected currentLang: string;
|
|
29
|
+
protected disableTrans: boolean;
|
|
30
|
+
protected languageList: string[];
|
|
31
|
+
protected readonly translations: ITranslations;
|
|
32
|
+
constructor(events: EventsService, storage: StorageService, configs: IConfigService, promises: IPromiseService, client: BaseHttpClient);
|
|
33
|
+
protected initService(): void;
|
|
34
|
+
replaceLanguages(languages: string[]): void;
|
|
35
|
+
addLanguages(languages: string[]): void;
|
|
36
|
+
getTranslationSync(key: string, params?: any): string;
|
|
37
|
+
getTranslation(key: string, params?: any): Promise<string>;
|
|
38
|
+
getTranslations(...keys: string[]): Promise<ITranslations>;
|
|
39
|
+
getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
|
|
40
|
+
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
41
|
+
protected interpolate(expr: string | Function, params?: any): string;
|
|
42
|
+
protected interpolateString(expr: string, params?: any): string;
|
|
43
|
+
protected getDefaultLanguage(): string;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaticLanguageService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StaticLanguageService>;
|
|
46
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { StorageMode } from "../common-types";
|
|
2
|
-
import { UniversalService } from "./universal.service";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
6
|
-
*/
|
|
7
|
-
export declare class StorageService {
|
|
8
|
-
readonly universal: UniversalService;
|
|
9
|
-
constructor(universal: UniversalService);
|
|
10
|
-
get(key: string, defaultValue?: any, mode?: StorageMode): any;
|
|
11
|
-
set(key: string, value: any, mode?: StorageMode): void;
|
|
12
|
-
remove(key: string, mode?: StorageMode): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
15
|
-
}
|
|
1
|
+
import { StorageMode } from "../common-types";
|
|
2
|
+
import { UniversalService } from "./universal.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
6
|
+
*/
|
|
7
|
+
export declare class StorageService {
|
|
8
|
+
readonly universal: UniversalService;
|
|
9
|
+
constructor(universal: UniversalService);
|
|
10
|
+
get(key: string, defaultValue?: any, mode?: StorageMode): any;
|
|
11
|
+
set(key: string, value: any, mode?: StorageMode): void;
|
|
12
|
+
remove(key: string, mode?: StorageMode): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
15
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ILanguageService, IToasterService } from "../common-types";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConsoleToasterService implements IToasterService {
|
|
4
|
-
private language;
|
|
5
|
-
constructor(language: ILanguageService);
|
|
6
|
-
error(message: string, params?: any, title?: string): void;
|
|
7
|
-
info(message: string, params?: any, title?: string): void;
|
|
8
|
-
success(message: string, params?: any, title?: string): void;
|
|
9
|
-
warning(message: string, params?: any, title?: string): void;
|
|
10
|
-
private translateMessage;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleToasterService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleToasterService>;
|
|
13
|
-
}
|
|
1
|
+
import { ILanguageService, IToasterService } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConsoleToasterService implements IToasterService {
|
|
4
|
+
private language;
|
|
5
|
+
constructor(language: ILanguageService);
|
|
6
|
+
error(message: string, params?: any, title?: string): void;
|
|
7
|
+
info(message: string, params?: any, title?: string): void;
|
|
8
|
+
success(message: string, params?: any, title?: string): void;
|
|
9
|
+
warning(message: string, params?: any, title?: string): void;
|
|
10
|
+
private translateMessage;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleToasterService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleToasterService>;
|
|
13
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree } from "@angular/router";
|
|
2
|
-
import { ILanguageService } from "../common-types";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IUrlDictionary {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
8
|
-
readonly language: ILanguageService;
|
|
9
|
-
protected cache: {
|
|
10
|
-
[lang: string]: IUrlDictionary;
|
|
11
|
-
};
|
|
12
|
-
constructor(language: ILanguageService);
|
|
13
|
-
serialize(tree: UrlTree): string;
|
|
14
|
-
parse(url: string): UrlTree;
|
|
15
|
-
getDictionary(serialize: boolean): IUrlDictionary;
|
|
16
|
-
modifyTreeRecursive(segmentGroup: UrlSegmentGroup, cb: (segment: UrlSegment) => void): UrlSegmentGroup;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatedUrlSerializer, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatedUrlSerializer>;
|
|
19
|
-
}
|
|
1
|
+
import { DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree } from "@angular/router";
|
|
2
|
+
import { ILanguageService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IUrlDictionary {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
8
|
+
readonly language: ILanguageService;
|
|
9
|
+
protected cache: {
|
|
10
|
+
[lang: string]: IUrlDictionary;
|
|
11
|
+
};
|
|
12
|
+
constructor(language: ILanguageService);
|
|
13
|
+
serialize(tree: UrlTree): string;
|
|
14
|
+
parse(url: string): UrlTree;
|
|
15
|
+
getDictionary(serialize: boolean): IUrlDictionary;
|
|
16
|
+
modifyTreeRecursive(segmentGroup: UrlSegmentGroup, cb: (segment: UrlSegment) => void): UrlSegmentGroup;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatedUrlSerializer, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatedUrlSerializer>;
|
|
19
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { DeviceDetectorService, DeviceInfo } from "ngx-device-detector";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Use this service to determine which is the current environment
|
|
5
|
-
*/
|
|
6
|
-
export declare class UniversalService {
|
|
7
|
-
readonly platformId: string;
|
|
8
|
-
readonly dds: DeviceDetectorService;
|
|
9
|
-
get isBrowser(): boolean;
|
|
10
|
-
get isServer(): boolean;
|
|
11
|
-
get deviceInfo(): DeviceInfo;
|
|
12
|
-
get browserName(): string;
|
|
13
|
-
get browserVersion(): string;
|
|
14
|
-
get isExplorer(): boolean;
|
|
15
|
-
get isEdge(): boolean;
|
|
16
|
-
get isChrome(): boolean;
|
|
17
|
-
get isFirefox(): boolean;
|
|
18
|
-
get isSafari(): boolean;
|
|
19
|
-
get isTablet(): boolean;
|
|
20
|
-
get isMobile(): boolean;
|
|
21
|
-
get isDesktop(): boolean;
|
|
22
|
-
get isCrawler(): boolean;
|
|
23
|
-
private readonly crawler;
|
|
24
|
-
constructor(platformId: string, dds: DeviceDetectorService);
|
|
25
|
-
protected checkBrowser(name: string): boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UniversalService, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UniversalService>;
|
|
28
|
-
}
|
|
1
|
+
import { DeviceDetectorService, DeviceInfo } from "ngx-device-detector";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Use this service to determine which is the current environment
|
|
5
|
+
*/
|
|
6
|
+
export declare class UniversalService {
|
|
7
|
+
readonly platformId: string;
|
|
8
|
+
readonly dds: DeviceDetectorService;
|
|
9
|
+
get isBrowser(): boolean;
|
|
10
|
+
get isServer(): boolean;
|
|
11
|
+
get deviceInfo(): DeviceInfo;
|
|
12
|
+
get browserName(): string;
|
|
13
|
+
get browserVersion(): string;
|
|
14
|
+
get isExplorer(): boolean;
|
|
15
|
+
get isEdge(): boolean;
|
|
16
|
+
get isChrome(): boolean;
|
|
17
|
+
get isFirefox(): boolean;
|
|
18
|
+
get isSafari(): boolean;
|
|
19
|
+
get isTablet(): boolean;
|
|
20
|
+
get isMobile(): boolean;
|
|
21
|
+
get isDesktop(): boolean;
|
|
22
|
+
get isCrawler(): boolean;
|
|
23
|
+
private readonly crawler;
|
|
24
|
+
constructor(platformId: string, dds: DeviceDetectorService);
|
|
25
|
+
protected checkBrowser(name: string): boolean;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UniversalService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UniversalService>;
|
|
28
|
+
}
|