@stemy/ngx-utils 13.6.16 → 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 +94 -94
- 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 -5633
- 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 -377
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +56 -55
- 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 -207
- 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 -5891
- 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,25 +1,25 @@
|
|
|
1
|
-
import { Type } from "@angular/core";
|
|
2
|
-
import { IWasi, IWasm, IWasmAsync } from "../common-types";
|
|
3
|
-
import { UniversalService } from "./universal.service";
|
|
4
|
-
import { LocalHttpService } from "./local-http.service";
|
|
5
|
-
import { Wasi } from "../utils/wasi";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Use this service to load WebAssembly modules
|
|
9
|
-
*/
|
|
10
|
-
export declare class WasmService {
|
|
11
|
-
protected universal: UniversalService;
|
|
12
|
-
protected http: LocalHttpService;
|
|
13
|
-
protected wasi: Type<Wasi>;
|
|
14
|
-
protected modules: {
|
|
15
|
-
[url: string]: Promise<any>;
|
|
16
|
-
};
|
|
17
|
-
protected workerModules: {
|
|
18
|
-
[url: string]: any;
|
|
19
|
-
};
|
|
20
|
-
constructor(universal: UniversalService, http: LocalHttpService, wasi: IWasi);
|
|
21
|
-
getModule<T = IWasm>(name: string): Promise<T>;
|
|
22
|
-
getWorkerModule<T = IWasmAsync>(name: string): T;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WasmService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WasmService>;
|
|
25
|
-
}
|
|
1
|
+
import { Type } from "@angular/core";
|
|
2
|
+
import { IWasi, IWasm, IWasmAsync } from "../common-types";
|
|
3
|
+
import { UniversalService } from "./universal.service";
|
|
4
|
+
import { LocalHttpService } from "./local-http.service";
|
|
5
|
+
import { Wasi } from "../utils/wasi";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Use this service to load WebAssembly modules
|
|
9
|
+
*/
|
|
10
|
+
export declare class WasmService {
|
|
11
|
+
protected universal: UniversalService;
|
|
12
|
+
protected http: LocalHttpService;
|
|
13
|
+
protected wasi: Type<Wasi>;
|
|
14
|
+
protected modules: {
|
|
15
|
+
[url: string]: Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
protected workerModules: {
|
|
18
|
+
[url: string]: any;
|
|
19
|
+
};
|
|
20
|
+
constructor(universal: UniversalService, http: LocalHttpService, wasi: IWasi);
|
|
21
|
+
getModule<T = IWasm>(name: string): Promise<T>;
|
|
22
|
+
getWorkerModule<T = IWasmAsync>(name: string): T;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WasmService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WasmService>;
|
|
25
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AjaxRequestCallback } from "../common-types";
|
|
2
|
-
export declare class AjaxRequestHandler {
|
|
3
|
-
private pattern;
|
|
4
|
-
private callback;
|
|
5
|
-
private static isOverridden;
|
|
6
|
-
params: any;
|
|
7
|
-
constructor(pattern: RegExp, callback: AjaxRequestCallback);
|
|
8
|
-
listen(): AjaxRequestHandler;
|
|
9
|
-
forget(): AjaxRequestHandler;
|
|
10
|
-
private listener;
|
|
11
|
-
}
|
|
1
|
+
import { AjaxRequestCallback } from "../common-types";
|
|
2
|
+
export declare class AjaxRequestHandler {
|
|
3
|
+
private pattern;
|
|
4
|
+
private callback;
|
|
5
|
+
private static isOverridden;
|
|
6
|
+
params: any;
|
|
7
|
+
constructor(pattern: RegExp, callback: AjaxRequestCallback);
|
|
8
|
+
listen(): AjaxRequestHandler;
|
|
9
|
+
forget(): AjaxRequestHandler;
|
|
10
|
+
private listener;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare class ArrayUtils {
|
|
2
|
-
static has(arr: any[], ...items: any[]): boolean;
|
|
3
|
-
static match(arr: any[], str: string): boolean;
|
|
4
|
-
static any<T>(arr: T[], cb: (item: T) => boolean): boolean;
|
|
5
|
-
static move<T>(arr: T[], oldIndex: number, newIndex: number): T[];
|
|
6
|
-
static reversed(arr: any[]): any[];
|
|
7
|
-
static min<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
8
|
-
static max<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
9
|
-
static chunk<T>(arr: T[], size: number): Array<T[]>;
|
|
10
|
-
static unique<T>(arr: T[]): T[];
|
|
11
|
-
}
|
|
1
|
+
export declare class ArrayUtils {
|
|
2
|
+
static has(arr: any[], ...items: any[]): boolean;
|
|
3
|
+
static match(arr: any[], str: string): boolean;
|
|
4
|
+
static any<T>(arr: T[], cb: (item: T) => boolean): boolean;
|
|
5
|
+
static move<T>(arr: T[], oldIndex: number, newIndex: number): T[];
|
|
6
|
+
static reversed(arr: any[]): any[];
|
|
7
|
+
static min<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
8
|
+
static max<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
9
|
+
static chunk<T>(arr: T[], size: number): Array<T[]>;
|
|
10
|
+
static unique<T>(arr: T[]): T[];
|
|
11
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlSegment } from "@angular/router";
|
|
3
|
-
import { IAuthService, IRoute, RouteValidator } from "../common-types";
|
|
4
|
-
import { StateService } from "../services/state.service";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AuthGuard implements CanActivate {
|
|
7
|
-
readonly injector: Injector;
|
|
8
|
-
readonly state: StateService;
|
|
9
|
-
readonly auth: IAuthService;
|
|
10
|
-
static guardAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
11
|
-
static guardNotAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
12
|
-
static guardNothing(): Promise<boolean>;
|
|
13
|
-
static guardAuthField(auth: IAuthService, expression?: string): RouteValidator;
|
|
14
|
-
static guardStateField(state: StateService, expression?: string): RouteValidator;
|
|
15
|
-
static guardAuthStateField(auth: IAuthService, state: StateService, expression?: string): RouteValidator;
|
|
16
|
-
static wildRouteMatch(segments: UrlSegment[]): {
|
|
17
|
-
consumed: UrlSegment[];
|
|
18
|
-
};
|
|
19
|
-
static noRouteMatch(): any;
|
|
20
|
-
constructor(injector: Injector, state: StateService, auth: IAuthService);
|
|
21
|
-
checkRouteMenu(route: IRoute): Promise<boolean>;
|
|
22
|
-
checkRoute(route: IRoute, next?: ActivatedRouteSnapshot): Promise<boolean>;
|
|
23
|
-
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean>;
|
|
24
|
-
getConfig(route: IRoute, config: IRoute[], path: string[]): IRoute[];
|
|
25
|
-
getReturnState(route: IRoute): Promise<string[]>;
|
|
26
|
-
private getReturnStateRecursive;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
29
|
-
}
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlSegment } from "@angular/router";
|
|
3
|
+
import { IAuthService, IRoute, RouteValidator } from "../common-types";
|
|
4
|
+
import { StateService } from "../services/state.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AuthGuard implements CanActivate {
|
|
7
|
+
readonly injector: Injector;
|
|
8
|
+
readonly state: StateService;
|
|
9
|
+
readonly auth: IAuthService;
|
|
10
|
+
static guardAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
11
|
+
static guardNotAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
12
|
+
static guardNothing(): Promise<boolean>;
|
|
13
|
+
static guardAuthField(auth: IAuthService, expression?: string): RouteValidator;
|
|
14
|
+
static guardStateField(state: StateService, expression?: string): RouteValidator;
|
|
15
|
+
static guardAuthStateField(auth: IAuthService, state: StateService, expression?: string): RouteValidator;
|
|
16
|
+
static wildRouteMatch(segments: UrlSegment[]): {
|
|
17
|
+
consumed: UrlSegment[];
|
|
18
|
+
};
|
|
19
|
+
static noRouteMatch(): any;
|
|
20
|
+
constructor(injector: Injector, state: StateService, auth: IAuthService);
|
|
21
|
+
checkRouteMenu(route: IRoute): Promise<boolean>;
|
|
22
|
+
checkRoute(route: IRoute, next?: ActivatedRouteSnapshot): Promise<boolean>;
|
|
23
|
+
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean>;
|
|
24
|
+
getConfig(route: IRoute, config: IRoute[], path: string[]): IRoute[];
|
|
25
|
+
getReturnState(route: IRoute): Promise<string[]>;
|
|
26
|
+
private getReturnStateRecursive;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
29
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CachedFactory, CachedProvider } from "../common-types";
|
|
2
|
-
export declare function cachedFactory<T>(providers: CachedProvider<T>[]): CachedFactory<T>;
|
|
1
|
+
import { CachedFactory, CachedProvider } from "../common-types";
|
|
2
|
+
export declare function cachedFactory<T>(providers: CachedProvider<T>[]): CachedFactory<T>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CanvasColor } from "../common-types";
|
|
2
|
-
export declare class CanvasUtils {
|
|
3
|
-
static manipulatePixels(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, colorTransformer: (color: CanvasColor, greyscale?: number) => CanvasColor): void;
|
|
4
|
-
static thresholding(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, threshold: number, colorTransformer: (color: CanvasColor, limit: boolean, greyscale?: number) => CanvasColor): void;
|
|
5
|
-
static stackBlur(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, radius?: number): void;
|
|
6
|
-
static measureTextFontSize(maxWidth: number, maxHeight: number, lines: string[], font: string, lineHeightPercent?: number, canvas?: HTMLCanvasElement): number;
|
|
7
|
-
static drawLines(context: CanvasRenderingContext2D, lines: string[], font: string, size: number, lineHeightPercent?: number, align?: string, baseLine?: string, x?: number, y?: number): number;
|
|
8
|
-
static wrapText(context: CanvasRenderingContext2D, text: string, x: number, y: number, maxWidth: number): void;
|
|
9
|
-
static setFontProps(context: CanvasRenderingContext2D, font: string, fontSize: number, align?: string, baseLine?: string): void;
|
|
10
|
-
private static getTextWidth;
|
|
11
|
-
private static getTextBitmapHeight;
|
|
12
|
-
private static halveValidateFontSize;
|
|
13
|
-
}
|
|
1
|
+
import { CanvasColor } from "../common-types";
|
|
2
|
+
export declare class CanvasUtils {
|
|
3
|
+
static manipulatePixels(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, colorTransformer: (color: CanvasColor, greyscale?: number) => CanvasColor): void;
|
|
4
|
+
static thresholding(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, threshold: number, colorTransformer: (color: CanvasColor, limit: boolean, greyscale?: number) => CanvasColor): void;
|
|
5
|
+
static stackBlur(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, radius?: number): void;
|
|
6
|
+
static measureTextFontSize(maxWidth: number, maxHeight: number, lines: string[], font: string, lineHeightPercent?: number, canvas?: HTMLCanvasElement): number;
|
|
7
|
+
static drawLines(context: CanvasRenderingContext2D, lines: string[], font: string, size: number, lineHeightPercent?: number, align?: string, baseLine?: string, x?: number, y?: number): number;
|
|
8
|
+
static wrapText(context: CanvasRenderingContext2D, text: string, x: number, y: number, maxWidth: number): void;
|
|
9
|
+
static setFontProps(context: CanvasRenderingContext2D, font: string, fontSize: number, align?: string, baseLine?: string): void;
|
|
10
|
+
private static getTextWidth;
|
|
11
|
+
private static getTextBitmapHeight;
|
|
12
|
+
private static halveValidateFontSize;
|
|
13
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DurationInputArg1, DurationInputArg2 } from "moment";
|
|
2
|
-
export declare class DateUtils {
|
|
3
|
-
static isHoliday(date: Date): boolean;
|
|
4
|
-
static isBusinessDay(date: Date): boolean;
|
|
5
|
-
static add(date: Date, amount?: DurationInputArg1, unit?: DurationInputArg2): Date;
|
|
6
|
-
static businessAdd(date: Date, amount: number, unit?: DurationInputArg2, freeDays?: Date[]): Date;
|
|
7
|
-
static businessSubtract(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
8
|
-
}
|
|
1
|
+
import { DurationInputArg1, DurationInputArg2 } from "moment";
|
|
2
|
+
export declare class DateUtils {
|
|
3
|
+
static isHoliday(date: Date): boolean;
|
|
4
|
+
static isBusinessDay(date: Date): boolean;
|
|
5
|
+
static add(date: Date, amount?: DurationInputArg1, unit?: DurationInputArg2): Date;
|
|
6
|
+
static businessAdd(date: Date, amount: number, unit?: DurationInputArg2, freeDays?: Date[]): Date;
|
|
7
|
+
static businessSubtract(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
8
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export declare class FileSystemEntry {
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly meta: string;
|
|
6
|
-
readonly image: string;
|
|
7
|
-
readonly data: any;
|
|
8
|
-
readonly parent: FileSystemEntry;
|
|
9
|
-
protected openCb: FileSystemEntryOpenCb;
|
|
10
|
-
protected result: Promise<FileSystemEntryOpenResult>;
|
|
11
|
-
readonly path: ReadonlyArray<FileSystemEntry>;
|
|
12
|
-
readonly level: number;
|
|
13
|
-
readonly classes: ReadonlyArray<string>;
|
|
14
|
-
constructor(label: string, meta: string, image: string, data: any, parent: FileSystemEntry, openCb: FileSystemEntryOpenCb);
|
|
15
|
-
open(): Promise<FileSystemEntryOpenResult>;
|
|
16
|
-
}
|
|
1
|
+
export type FileSystemEntryOpenResult = ReadonlyArray<FileSystemEntry> | null;
|
|
2
|
+
export type FileSystemEntryOpenCb = (data: any, parent: FileSystemEntry) => Promise<FileSystemEntryOpenResult>;
|
|
3
|
+
export declare class FileSystemEntry {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly meta: string;
|
|
6
|
+
readonly image: string;
|
|
7
|
+
readonly data: any;
|
|
8
|
+
readonly parent: FileSystemEntry;
|
|
9
|
+
protected openCb: FileSystemEntryOpenCb;
|
|
10
|
+
protected result: Promise<FileSystemEntryOpenResult>;
|
|
11
|
+
readonly path: ReadonlyArray<FileSystemEntry>;
|
|
12
|
+
readonly level: number;
|
|
13
|
+
readonly classes: ReadonlyArray<string>;
|
|
14
|
+
constructor(label: string, meta: string, image: string, data: any, parent: FileSystemEntry, openCb: FileSystemEntryOpenCb);
|
|
15
|
+
open(): Promise<FileSystemEntryOpenResult>;
|
|
16
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
export declare class FileUtils {
|
|
3
|
-
static getExtension(file: File): string;
|
|
4
|
-
static getName(file: File): string;
|
|
5
|
-
static toFile(blob: Blob, fileName: string): File;
|
|
6
|
-
static dataToBlob(data: string): Blob;
|
|
7
|
-
static saveBlob(blob: Blob, fileName: string): void;
|
|
8
|
-
static saveJson(json: any, fileName: string): void;
|
|
9
|
-
static readFileAsText(file: Blob): Promise<string>;
|
|
10
|
-
static readFileAsBinaryString(file: Blob): Promise<string>;
|
|
11
|
-
static readFileAsDataURL(file: Blob): Promise<string>;
|
|
12
|
-
static readDataFromUrl(http: HttpClient, url: string): Promise<string>;
|
|
13
|
-
private static readFile;
|
|
14
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
export declare class FileUtils {
|
|
3
|
+
static getExtension(file: File): string;
|
|
4
|
+
static getName(file: File): string;
|
|
5
|
+
static toFile(blob: Blob, fileName: string): File;
|
|
6
|
+
static dataToBlob(data: string): Blob;
|
|
7
|
+
static saveBlob(blob: Blob, fileName: string): void;
|
|
8
|
+
static saveJson(json: any, fileName: string): void;
|
|
9
|
+
static readFileAsText(file: Blob): Promise<string>;
|
|
10
|
+
static readFileAsBinaryString(file: Blob): Promise<string>;
|
|
11
|
+
static readFileAsDataURL(file: Blob): Promise<string>;
|
|
12
|
+
static readDataFromUrl(http: HttpClient, url: string): Promise<string>;
|
|
13
|
+
private static readFile;
|
|
14
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
export declare class GenericValue<T> extends Subject<T> {
|
|
3
|
-
get value(): T;
|
|
4
|
-
set value(value: T);
|
|
5
|
-
private _value;
|
|
6
|
-
constructor(value?: T);
|
|
7
|
-
setJustValue(value: T): void;
|
|
8
|
-
}
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
export declare class GenericValue<T> extends Subject<T> {
|
|
3
|
+
get value(): T;
|
|
4
|
+
set value(value: T);
|
|
5
|
+
private _value;
|
|
6
|
+
constructor(value?: T);
|
|
7
|
+
setJustValue(value: T): void;
|
|
8
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export interface IShape {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
distance(shape: IShape): number;
|
|
5
|
-
}
|
|
6
|
-
export declare class Rect implements IShape {
|
|
7
|
-
readonly x: number;
|
|
8
|
-
readonly y: number;
|
|
9
|
-
readonly width: number;
|
|
10
|
-
readonly height: number;
|
|
11
|
-
readonly rotation: number;
|
|
12
|
-
get center(): Point;
|
|
13
|
-
get left(): number;
|
|
14
|
-
get right(): number;
|
|
15
|
-
get bottom(): number;
|
|
16
|
-
get top(): number;
|
|
17
|
-
constructor(x: number, y: number, width: number, height: number, rotation?: number);
|
|
18
|
-
distance(p: Point): number;
|
|
19
|
-
}
|
|
20
|
-
export declare class Circle implements IShape {
|
|
21
|
-
readonly x: number;
|
|
22
|
-
readonly y: number;
|
|
23
|
-
readonly radius: number;
|
|
24
|
-
get center(): Point;
|
|
25
|
-
get left(): Point;
|
|
26
|
-
get right(): Point;
|
|
27
|
-
get top(): Point;
|
|
28
|
-
get bottom(): Point;
|
|
29
|
-
get rect(): Rect;
|
|
30
|
-
constructor(x: number, y: number, radius: number);
|
|
31
|
-
distance(p: Point): number;
|
|
32
|
-
}
|
|
33
|
-
export declare class Point implements IShape {
|
|
34
|
-
readonly x: number;
|
|
35
|
-
readonly y: number;
|
|
36
|
-
static Zero: Point;
|
|
37
|
-
get length(): number;
|
|
38
|
-
get perpendicular(): Point;
|
|
39
|
-
constructor(x: number, y: number);
|
|
40
|
-
add(p: Point): Point;
|
|
41
|
-
subtract(p: Point): Point;
|
|
42
|
-
multiply(p: Point | number): Point;
|
|
43
|
-
distance(b: Point): number;
|
|
44
|
-
lerp(p: Point, ratio: number): Point;
|
|
45
|
-
perpendicularTo(p: Point, length: number): Point;
|
|
46
|
-
circleWith(a: Point, b: Point): Circle;
|
|
47
|
-
tangents(c: Circle): Point[];
|
|
48
|
-
angle(p: Point): number;
|
|
49
|
-
rotateAround(p: Point, angle: number): Point;
|
|
50
|
-
}
|
|
1
|
+
export interface IShape {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
distance(shape: IShape): number;
|
|
5
|
+
}
|
|
6
|
+
export declare class Rect implements IShape {
|
|
7
|
+
readonly x: number;
|
|
8
|
+
readonly y: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
readonly rotation: number;
|
|
12
|
+
get center(): Point;
|
|
13
|
+
get left(): number;
|
|
14
|
+
get right(): number;
|
|
15
|
+
get bottom(): number;
|
|
16
|
+
get top(): number;
|
|
17
|
+
constructor(x: number, y: number, width: number, height: number, rotation?: number);
|
|
18
|
+
distance(p: Point): number;
|
|
19
|
+
}
|
|
20
|
+
export declare class Circle implements IShape {
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
readonly radius: number;
|
|
24
|
+
get center(): Point;
|
|
25
|
+
get left(): Point;
|
|
26
|
+
get right(): Point;
|
|
27
|
+
get top(): Point;
|
|
28
|
+
get bottom(): Point;
|
|
29
|
+
get rect(): Rect;
|
|
30
|
+
constructor(x: number, y: number, radius: number);
|
|
31
|
+
distance(p: Point): number;
|
|
32
|
+
}
|
|
33
|
+
export declare class Point implements IShape {
|
|
34
|
+
readonly x: number;
|
|
35
|
+
readonly y: number;
|
|
36
|
+
static Zero: Point;
|
|
37
|
+
get length(): number;
|
|
38
|
+
get perpendicular(): Point;
|
|
39
|
+
constructor(x: number, y: number);
|
|
40
|
+
add(p: Point): Point;
|
|
41
|
+
subtract(p: Point): Point;
|
|
42
|
+
multiply(p: Point | number): Point;
|
|
43
|
+
distance(b: Point): number;
|
|
44
|
+
lerp(p: Point, ratio: number): Point;
|
|
45
|
+
perpendicularTo(p: Point, length: number): Point;
|
|
46
|
+
circleWith(a: Point, b: Point): Circle;
|
|
47
|
+
tangents(c: Circle): Point[];
|
|
48
|
+
angle(p: Point): number;
|
|
49
|
+
rotateAround(p: Point, angle: number): Point;
|
|
50
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Invokable } from "invokable";
|
|
2
|
-
export declare class Initializer<T> {
|
|
3
|
-
private callback;
|
|
4
|
-
private shouldInit;
|
|
5
|
-
private initialized;
|
|
6
|
-
get isInitialized(): boolean;
|
|
7
|
-
constructor(callback: () => T, shouldInit?: boolean);
|
|
8
|
-
[Invokable.call](): T;
|
|
9
|
-
}
|
|
10
|
-
export interface Initializer<T> {
|
|
11
|
-
(): T;
|
|
12
|
-
}
|
|
1
|
+
import { Invokable } from "invokable";
|
|
2
|
+
export declare class Initializer<T> {
|
|
3
|
+
private callback;
|
|
4
|
+
private shouldInit;
|
|
5
|
+
private initialized;
|
|
6
|
+
get isInitialized(): boolean;
|
|
7
|
+
constructor(callback: () => T, shouldInit?: boolean);
|
|
8
|
+
[Invokable.call](): T;
|
|
9
|
+
}
|
|
10
|
+
export interface Initializer<T> {
|
|
11
|
+
(): T;
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class JSONfn {
|
|
2
|
-
static parse(text: string): any;
|
|
3
|
-
static stringify(obj: any): string;
|
|
4
|
-
static reviver(key: string, value: any): any;
|
|
5
|
-
static replacer(key: string, value: any): any;
|
|
6
|
-
}
|
|
1
|
+
export declare class JSONfn {
|
|
2
|
+
static parse(text: string): any;
|
|
3
|
+
static stringify(obj: any): string;
|
|
4
|
+
static reviver(key: string, value: any): any;
|
|
5
|
+
static replacer(key: string, value: any): any;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScriptType, IScriptPromises, IStylePromises } from "../common-types";
|
|
2
|
-
export declare class LoaderUtils {
|
|
3
|
-
static scriptPromises: IScriptPromises;
|
|
4
|
-
static stylePromises: IStylePromises;
|
|
5
|
-
static loadScript(src: string, async?: boolean, type?: ScriptType): Promise<HTMLScriptElement>;
|
|
6
|
-
static loadStyle(src: string): Promise<HTMLLinkElement>;
|
|
7
|
-
}
|
|
1
|
+
import { ScriptType, IScriptPromises, IStylePromises } from "../common-types";
|
|
2
|
+
export declare class LoaderUtils {
|
|
3
|
+
static scriptPromises: IScriptPromises;
|
|
4
|
+
static stylePromises: IStylePromises;
|
|
5
|
+
static loadScript(src: string, async?: boolean, type?: ScriptType): Promise<HTMLScriptElement>;
|
|
6
|
+
static loadStyle(src: string): Promise<HTMLLinkElement>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare class MathUtils {
|
|
2
|
-
static readonly EPSILON: number;
|
|
3
|
-
static equal(a: number, b: number, epsilon?: number): boolean;
|
|
4
|
-
static clamp(value: number, min: number, max: number): number;
|
|
5
|
-
static round(value: number, precision?: number, divider?: number): number;
|
|
6
|
-
static approxIndex(x: number, values: number[], epsilon?: number): number;
|
|
7
|
-
static approximate(x: number, values: number[], epsilon?: number): number;
|
|
8
|
-
}
|
|
1
|
+
export declare class MathUtils {
|
|
2
|
+
static readonly EPSILON: number;
|
|
3
|
+
static equal(a: number, b: number, epsilon?: number): boolean;
|
|
4
|
+
static clamp(value: number, min: number, max: number): number;
|
|
5
|
+
static round(value: number, precision?: number, divider?: number): number;
|
|
6
|
+
static approxIndex(x: number, values: number[], epsilon?: number): number;
|
|
7
|
+
static approximate(x: number, values: number[], epsilon?: number): number;
|
|
8
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export declare function defaultPredicate(value: any, key?: any, target?: any, source?: any): boolean;
|
|
4
|
-
export declare function shouldCopyDefault(key: any, value: any): boolean;
|
|
5
|
-
export declare class ObjectUtils {
|
|
6
|
-
static compare(a: any, b: any): number;
|
|
7
|
-
static getProperties(obj: any): string[];
|
|
8
|
-
static equals(a: any, b: any, visited?: Set<any>): boolean;
|
|
9
|
-
static evaluate(expr: string, context?: any, res?: any): any;
|
|
10
|
-
static empty(obj: any): boolean;
|
|
11
|
-
static iterate(obj: any, cb: IterateCallback): void;
|
|
12
|
-
static getValue(obj: any, key: string, defaultValue?: any, treeFallback?: boolean): any;
|
|
13
|
-
static mapToPath(target: any, source: any, path: string[]): any;
|
|
14
|
-
static filter(obj: any, predicate: FilterPredicate): any;
|
|
15
|
-
static copy<T>(obj: T): T;
|
|
16
|
-
static assign<T>(target: T, source: any, predicate?: FilterPredicate): T;
|
|
17
|
-
static getType(obj: any): string;
|
|
18
|
-
static isPrimitive(value: any): boolean;
|
|
19
|
-
static isObject(value: any): boolean;
|
|
20
|
-
static isDefined(value: any): boolean;
|
|
21
|
-
static isNullOrUndefined(value: any): boolean;
|
|
22
|
-
static isString(value: any): value is string;
|
|
23
|
-
static isFunction(value: any): value is Function;
|
|
24
|
-
static isDate(value: any): value is Date;
|
|
25
|
-
static isBlob(value: any): value is Blob;
|
|
26
|
-
static isBoolean(value: any): value is boolean;
|
|
27
|
-
static isNumber(value: any): value is number;
|
|
28
|
-
static isArray(value: any): value is Array<any>;
|
|
29
|
-
static isSet(value: any): value is Set<any>;
|
|
30
|
-
static isConstructor(value: any): boolean;
|
|
31
|
-
static checkInterface(obj: any, interFaceObject: any): boolean;
|
|
32
|
-
static isInterface(obj: any, interFaceObject: any): boolean;
|
|
33
|
-
static pad(obj: any, width: number, chr?: string): string;
|
|
34
|
-
private static copyRecursive;
|
|
35
|
-
}
|
|
1
|
+
export type FilterPredicate = (value: any, key?: any, target?: any, source?: any) => boolean;
|
|
2
|
+
export type IterateCallback = (value: any, key?: any) => void;
|
|
3
|
+
export declare function defaultPredicate(value: any, key?: any, target?: any, source?: any): boolean;
|
|
4
|
+
export declare function shouldCopyDefault(key: any, value: any): boolean;
|
|
5
|
+
export declare class ObjectUtils {
|
|
6
|
+
static compare(a: any, b: any): number;
|
|
7
|
+
static getProperties(obj: any): string[];
|
|
8
|
+
static equals(a: any, b: any, visited?: Set<any>): boolean;
|
|
9
|
+
static evaluate(expr: string, context?: any, res?: any): any;
|
|
10
|
+
static empty(obj: any): boolean;
|
|
11
|
+
static iterate(obj: any, cb: IterateCallback): void;
|
|
12
|
+
static getValue(obj: any, key: string, defaultValue?: any, treeFallback?: boolean): any;
|
|
13
|
+
static mapToPath(target: any, source: any, path: string[]): any;
|
|
14
|
+
static filter(obj: any, predicate: FilterPredicate): any;
|
|
15
|
+
static copy<T>(obj: T): T;
|
|
16
|
+
static assign<T>(target: T, source: any, predicate?: FilterPredicate): T;
|
|
17
|
+
static getType(obj: any): string;
|
|
18
|
+
static isPrimitive(value: any): boolean;
|
|
19
|
+
static isObject(value: any): boolean;
|
|
20
|
+
static isDefined(value: any): boolean;
|
|
21
|
+
static isNullOrUndefined(value: any): boolean;
|
|
22
|
+
static isString(value: any): value is string;
|
|
23
|
+
static isFunction(value: any): value is Function;
|
|
24
|
+
static isDate(value: any): value is Date;
|
|
25
|
+
static isBlob(value: any): value is Blob;
|
|
26
|
+
static isBoolean(value: any): value is boolean;
|
|
27
|
+
static isNumber(value: any): value is number;
|
|
28
|
+
static isArray(value: any): value is Array<any>;
|
|
29
|
+
static isSet(value: any): value is Set<any>;
|
|
30
|
+
static isConstructor(value: any): boolean;
|
|
31
|
+
static checkInterface(obj: any, interFaceObject: any): boolean;
|
|
32
|
+
static isInterface(obj: any, interFaceObject: any): boolean;
|
|
33
|
+
static pad(obj: any, width: number, chr?: string): string;
|
|
34
|
+
private static copyRecursive;
|
|
35
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Observable, Subscription } from "rxjs";
|
|
2
|
-
import { ISearchObservable } from "../common-types";
|
|
3
|
-
export interface ISubscriberInfo {
|
|
4
|
-
subjects: Observable<any>[];
|
|
5
|
-
cb: (ev?: Observable<any>, ...args: any[]) => any;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ObservableUtils {
|
|
9
|
-
static toSearch(search: ISearchObservable): Observable<any>;
|
|
10
|
-
static multiSubscription(...subscriptions: Subscription[]): Subscription;
|
|
11
|
-
static subscribe(...subscribers: ISubscriberInfo[]): Subscription;
|
|
12
|
-
static fromFunction(callbackFunc: () => any): Observable<any>;
|
|
13
|
-
}
|
|
1
|
+
import { Observable, Subscription } from "rxjs";
|
|
2
|
+
import { ISearchObservable } from "../common-types";
|
|
3
|
+
export interface ISubscriberInfo {
|
|
4
|
+
subjects: Observable<any>[];
|
|
5
|
+
cb: (ev?: Observable<any>, ...args: any[]) => any;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class ObservableUtils {
|
|
9
|
+
static toSearch(search: ISearchObservable): Observable<any>;
|
|
10
|
+
static multiSubscription(...subscriptions: Subscription[]): Subscription;
|
|
11
|
+
static subscribe(...subscribers: ISubscriberInfo[]): Subscription;
|
|
12
|
+
static fromFunction(callbackFunc: () => any): Observable<any>;
|
|
13
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
import { Injector } from "@angular/core";
|
|
3
|
-
import { IResolveFactory } from "../common-types";
|
|
4
|
-
export declare class ReflectUtils {
|
|
5
|
-
static defineMetadata(key: string, data: any, target: any, name?: string): void;
|
|
6
|
-
static getMetadata(key: string, target: any, name?: string): any;
|
|
7
|
-
static getOwnMetadata(key: string, target: any, name?: string): any;
|
|
8
|
-
static resolve<T>(obj: IResolveFactory | T, injector: Injector): T;
|
|
9
|
-
}
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { Injector } from "@angular/core";
|
|
3
|
+
import { IResolveFactory } from "../common-types";
|
|
4
|
+
export declare class ReflectUtils {
|
|
5
|
+
static defineMetadata(key: string, data: any, target: any, name?: string): void;
|
|
6
|
+
static getMetadata(key: string, target: any, name?: string): any;
|
|
7
|
+
static getOwnMetadata(key: string, target: any, name?: string): any;
|
|
8
|
+
static resolve<T>(obj: IResolveFactory | T, injector: Injector): T;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class SetUtils {
|
|
2
|
-
static equals(set: Set<any>, obj: any): boolean;
|
|
3
|
-
static addArray(set: Set<any>, items: any[]): void;
|
|
4
|
-
}
|
|
1
|
+
export declare class SetUtils {
|
|
2
|
+
static equals(set: Set<any>, obj: any): boolean;
|
|
3
|
+
static addArray(set: Set<any>, items: any[]): void;
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class StringUtils {
|
|
2
|
-
static concat(separator: string, ...strings: string[]): string;
|
|
3
|
-
static startsWith(str: string, ...starts: string[]): boolean;
|
|
4
|
-
static has(str: string, ...parts: string[]): boolean;
|
|
5
|
-
static lcFirst(str: string): string;
|
|
6
|
-
static ucFirst(str: string): string;
|
|
7
|
-
static isObjectId(id: string): boolean;
|
|
8
|
-
static parseDomain(baseUrl: string): string;
|
|
9
|
-
}
|
|
1
|
+
export declare class StringUtils {
|
|
2
|
+
static concat(separator: string, ...strings: string[]): string;
|
|
3
|
+
static startsWith(str: string, ...starts: string[]): boolean;
|
|
4
|
+
static has(str: string, ...parts: string[]): boolean;
|
|
5
|
+
static lcFirst(str: string): string;
|
|
6
|
+
static ucFirst(str: string): string;
|
|
7
|
+
static isObjectId(id: string): boolean;
|
|
8
|
+
static parseDomain(baseUrl: string): string;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITimer } from "../common-types";
|
|
2
|
-
export declare class TimerUtils {
|
|
3
|
-
static createTimeout(func?: Function, time?: number): ITimer;
|
|
4
|
-
static createInterval(func?: Function, time?: number): ITimer;
|
|
5
|
-
private static createTimer;
|
|
6
|
-
}
|
|
1
|
+
import { ITimer } from "../common-types";
|
|
2
|
+
export declare class TimerUtils {
|
|
3
|
+
static createTimeout(func?: Function, time?: number): ITimer;
|
|
4
|
+
static createInterval(func?: Function, time?: number): ITimer;
|
|
5
|
+
private static createTimer;
|
|
6
|
+
}
|