@ictgroup/configuration 0.1.1 → 18.0.1
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/ictgroup-configuration.mjs +5 -0
- package/esm2022/lib/configuration.service.mjs +56 -0
- package/esm2022/public-api.mjs +2 -0
- package/fesm2022/ictgroup-configuration.mjs +63 -0
- package/fesm2022/ictgroup-configuration.mjs.map +1 -0
- package/{ictgroup-configuration.d.ts → index.d.ts} +1 -0
- package/lib/configuration.service.d.ts +5 -1
- package/package.json +26 -15
- package/bundles/ictgroup-configuration.umd.js +0 -330
- package/bundles/ictgroup-configuration.umd.js.map +0 -1
- package/bundles/ictgroup-configuration.umd.min.js +0 -16
- package/bundles/ictgroup-configuration.umd.min.js.map +0 -1
- package/esm2015/ictgroup-configuration.js +0 -10
- package/esm2015/lib/configuration.service.js +0 -89
- package/esm2015/public-api.js +0 -7
- package/esm5/ictgroup-configuration.js +0 -10
- package/esm5/lib/configuration.service.js +0 -106
- package/esm5/public-api.js +0 -7
- package/fesm2015/ictgroup-configuration.js +0 -102
- package/fesm2015/ictgroup-configuration.js.map +0 -1
- package/fesm5/ictgroup-configuration.js +0 -118
- package/fesm5/ictgroup-configuration.js.map +0 -1
- package/ictgroup-configuration.metadata.json +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWN0Z3JvdXAtY29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvbmZpZ3VyYXRpb24vc3JjL2ljdGdyb3VwLWNvbmZpZ3VyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
+
import { forkJoin } from 'rxjs';
|
|
3
|
+
import { map } from 'rxjs/operators';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common/http";
|
|
6
|
+
export class ConfigurationService {
|
|
7
|
+
http;
|
|
8
|
+
otherconfig;
|
|
9
|
+
pathconfig;
|
|
10
|
+
keycloakconfig;
|
|
11
|
+
configChanged = new EventEmitter();
|
|
12
|
+
constructor(http) {
|
|
13
|
+
this.http = http;
|
|
14
|
+
}
|
|
15
|
+
init(pathconfig, otherconfig, keycloakconfig) {
|
|
16
|
+
const calls = [];
|
|
17
|
+
calls.push(this.http.get(pathconfig));
|
|
18
|
+
if (otherconfig) {
|
|
19
|
+
calls.push(this.http.get(otherconfig));
|
|
20
|
+
}
|
|
21
|
+
if (keycloakconfig) {
|
|
22
|
+
calls.push(this.http.get(keycloakconfig));
|
|
23
|
+
}
|
|
24
|
+
return forkJoin(calls)
|
|
25
|
+
.pipe(map(res => {
|
|
26
|
+
this.pathconfig = res[0];
|
|
27
|
+
if (otherconfig) {
|
|
28
|
+
this.otherconfig = res[1];
|
|
29
|
+
}
|
|
30
|
+
if (keycloakconfig) {
|
|
31
|
+
this.keycloakconfig = res[2];
|
|
32
|
+
}
|
|
33
|
+
this.configChanged.emit();
|
|
34
|
+
}))
|
|
35
|
+
.toPromise();
|
|
36
|
+
}
|
|
37
|
+
get(key) {
|
|
38
|
+
let res = this.pathconfig ? this.pathconfig[key] : null;
|
|
39
|
+
if (!res) {
|
|
40
|
+
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
41
|
+
}
|
|
42
|
+
if (!res) {
|
|
43
|
+
res = this.keycloakconfig ? this.keycloakconfig[key] : null;
|
|
44
|
+
}
|
|
45
|
+
return res;
|
|
46
|
+
}
|
|
47
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
51
|
+
type: Injectable,
|
|
52
|
+
args: [{
|
|
53
|
+
providedIn: 'root'
|
|
54
|
+
}]
|
|
55
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29uZmlndXJhdGlvbi9zcmMvbGliL2NvbmZpZ3VyYXRpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV2RCxPQUFPLEVBQUMsUUFBUSxFQUFhLE1BQU0sTUFBTSxDQUFDO0FBQzFDLE9BQU8sRUFBQyxHQUFHLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7O0FBS25DLE1BQU0sT0FBTyxvQkFBb0I7SUFRVDtJQU5aLFdBQVcsQ0FBTTtJQUNqQixVQUFVLENBQU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1xuaW1wb3J0IHttYXB9IGZyb20gJ3J4anMvb3BlcmF0b3JzJztcblxuQEluamVjdGFibGUoe1xuICAgIHByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBDb25maWd1cmF0aW9uU2VydmljZSB7XG5cbiAgICBwcml2YXRlIG90aGVyY29uZmlnOiBhbnk7XG4gICAgcHJpdmF0ZSBwYXRoY29uZmlnOiBhbnk7XG4gICAgcHJpdmF0ZSBrZXljbG9ha2NvbmZpZzogYW55O1xuXG4gICAgcHVibGljIGNvbmZpZ0NoYW5nZWQ6IEV2ZW50RW1pdHRlcjx2b2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcblxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cDogSHR0cENsaWVudCkge1xuICAgIH1cblxuICAgIHB1YmxpYyBpbml0KHBhdGhjb25maWc6IHN0cmluZywgb3RoZXJjb25maWc/OiBzdHJpbmcsIGtleWNsb2FrY29uZmlnPzogc3RyaW5nKSB7XG4gICAgICAgIGNvbnN0IGNhbGxzOiBPYnNlcnZhYmxlPGFueT5bXSA9IFtdO1xuICAgICAgICBjYWxscy5wdXNoKHRoaXMuaHR0cC5nZXQocGF0aGNvbmZpZykpO1xuICAgICAgICBpZiAob3RoZXJjb25maWcpIHtcbiAgICAgICAgICAgIGNhbGxzLnB1c2godGhpcy5odHRwLmdldChvdGhlcmNvbmZpZykpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChrZXljbG9ha2NvbmZpZykge1xuICAgICAgICAgICAgY2FsbHMucHVzaCh0aGlzLmh0dHAuZ2V0KGtleWNsb2FrY29uZmlnKSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGZvcmtKb2luKGNhbGxzKVxuICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgbWFwKHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGF0aGNvbmZpZyA9IHJlc1swXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG90aGVyY29uZmlnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm90aGVyY29uZmlnID0gcmVzWzFdO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmIChrZXljbG9ha2NvbmZpZykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5rZXljbG9ha2NvbmZpZyA9IHJlc1syXTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbmZpZ0NoYW5nZWQuZW1pdCgpO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudG9Qcm9taXNlKCk7XG4gICAgfVxuXG4gICAgcHVibGljIGdldChrZXk6IHN0cmluZykge1xuICAgICAgICBsZXQgcmVzID0gdGhpcy5wYXRoY29uZmlnID8gdGhpcy5wYXRoY29uZmlnW2tleV0gOiBudWxsO1xuICAgICAgICBpZiAoIXJlcykge1xuICAgICAgICAgICAgcmVzID0gdGhpcy5vdGhlcmNvbmZpZyA/IHRoaXMub3RoZXJjb25maWdba2V5XSA6IG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFyZXMpIHtcbiAgICAgICAgICAgIHJlcyA9IHRoaXMua2V5Y2xvYWtjb25maWcgPyB0aGlzLmtleWNsb2FrY29uZmlnW2tleV0gOiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXM7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ConfigurationService } from './lib/configuration.service';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvbmZpZ3VyYXRpb24vc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQge0NvbmZpZ3VyYXRpb25TZXJ2aWNlfSBmcm9tICcuL2xpYi9jb25maWd1cmF0aW9uLnNlcnZpY2UnO1xuIl19
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Injectable } from '@angular/core';
|
|
3
|
+
import { forkJoin } from 'rxjs';
|
|
4
|
+
import { map } from 'rxjs/operators';
|
|
5
|
+
import * as i1 from '@angular/common/http';
|
|
6
|
+
|
|
7
|
+
class ConfigurationService {
|
|
8
|
+
http;
|
|
9
|
+
otherconfig;
|
|
10
|
+
pathconfig;
|
|
11
|
+
keycloakconfig;
|
|
12
|
+
configChanged = new EventEmitter();
|
|
13
|
+
constructor(http) {
|
|
14
|
+
this.http = http;
|
|
15
|
+
}
|
|
16
|
+
init(pathconfig, otherconfig, keycloakconfig) {
|
|
17
|
+
const calls = [];
|
|
18
|
+
calls.push(this.http.get(pathconfig));
|
|
19
|
+
if (otherconfig) {
|
|
20
|
+
calls.push(this.http.get(otherconfig));
|
|
21
|
+
}
|
|
22
|
+
if (keycloakconfig) {
|
|
23
|
+
calls.push(this.http.get(keycloakconfig));
|
|
24
|
+
}
|
|
25
|
+
return forkJoin(calls)
|
|
26
|
+
.pipe(map(res => {
|
|
27
|
+
this.pathconfig = res[0];
|
|
28
|
+
if (otherconfig) {
|
|
29
|
+
this.otherconfig = res[1];
|
|
30
|
+
}
|
|
31
|
+
if (keycloakconfig) {
|
|
32
|
+
this.keycloakconfig = res[2];
|
|
33
|
+
}
|
|
34
|
+
this.configChanged.emit();
|
|
35
|
+
}))
|
|
36
|
+
.toPromise();
|
|
37
|
+
}
|
|
38
|
+
get(key) {
|
|
39
|
+
let res = this.pathconfig ? this.pathconfig[key] : null;
|
|
40
|
+
if (!res) {
|
|
41
|
+
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
42
|
+
}
|
|
43
|
+
if (!res) {
|
|
44
|
+
res = this.keycloakconfig ? this.keycloakconfig[key] : null;
|
|
45
|
+
}
|
|
46
|
+
return res;
|
|
47
|
+
}
|
|
48
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
52
|
+
type: Injectable,
|
|
53
|
+
args: [{
|
|
54
|
+
providedIn: 'root'
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generated bundle index. Do not edit.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export { ConfigurationService };
|
|
63
|
+
//# sourceMappingURL=ictgroup-configuration.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ictgroup-configuration.mjs","sources":["../../../projects/configuration/src/lib/configuration.service.ts","../../../projects/configuration/src/ictgroup-configuration.ts"],"sourcesContent":["import {EventEmitter, Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {forkJoin, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigurationService {\n\n private otherconfig: any;\n private pathconfig: any;\n private keycloakconfig: any;\n\n public configChanged: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(private http: HttpClient) {\n }\n\n public init(pathconfig: string, otherconfig?: string, keycloakconfig?: string) {\n const calls: Observable<any>[] = [];\n calls.push(this.http.get(pathconfig));\n if (otherconfig) {\n calls.push(this.http.get(otherconfig));\n }\n if (keycloakconfig) {\n calls.push(this.http.get(keycloakconfig));\n }\n return forkJoin(calls)\n .pipe(\n map(res => {\n this.pathconfig = res[0];\n if (otherconfig) {\n this.otherconfig = res[1];\n }\n if (keycloakconfig) {\n this.keycloakconfig = res[2];\n }\n this.configChanged.emit();\n })\n )\n .toPromise();\n }\n\n public get(key: string) {\n let res = this.pathconfig ? this.pathconfig[key] : null;\n if (!res) {\n res = this.otherconfig ? this.otherconfig[key] : null;\n }\n if (!res) {\n res = this.keycloakconfig ? this.keycloakconfig[key] : null;\n }\n return res;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAQa,oBAAoB,CAAA;AAQT,IAAA,IAAA,CAAA;AANZ,IAAA,WAAW,CAAM;AACjB,IAAA,UAAU,CAAM;AAChB,IAAA,cAAc,CAAM;AAErB,IAAA,aAAa,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAEpE,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;KACnC;AAEM,IAAA,IAAI,CAAC,UAAkB,EAAE,WAAoB,EAAE,cAAuB,EAAA;QACzE,MAAM,KAAK,GAAsB,EAAE,CAAC;AACpC,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;QACtC,IAAI,WAAW,EAAE;AACb,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;SAC1C;QACD,IAAI,cAAc,EAAE;AAChB,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG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AA,IAAA,EAAA,oBAAoB,cAFjB,MAAM,EAAA,CAAA,CAAA;;4FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ConfigurationService {
|
|
4
5
|
private http;
|
|
5
6
|
private otherconfig;
|
|
6
7
|
private pathconfig;
|
|
8
|
+
private keycloakconfig;
|
|
7
9
|
configChanged: EventEmitter<void>;
|
|
8
10
|
constructor(http: HttpClient);
|
|
9
|
-
init(pathconfig: string, otherconfig?: string): Promise<void>;
|
|
11
|
+
init(pathconfig: string, otherconfig?: string, keycloakconfig?: string): Promise<void>;
|
|
10
12
|
get(key: string): any;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
|
|
11
15
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ictgroup/configuration",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "Configuration",
|
|
3
|
+
"version": "18.0.1",
|
|
4
|
+
"description": "Configuration Library",
|
|
5
5
|
"author": "Alessandro Prandini",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "^
|
|
8
|
-
"@angular/core": "^
|
|
9
|
-
|
|
7
|
+
"@angular/common": "^17.0.0",
|
|
8
|
+
"@angular/core": "^17.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"tslib": "^2.3.0"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/",
|
|
16
|
+
"provenance": false
|
|
17
|
+
},
|
|
18
|
+
"module": "fesm2022/ictgroup-configuration.mjs",
|
|
19
|
+
"typings": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
"./package.json": {
|
|
22
|
+
"default": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"esm2022": "./esm2022/ictgroup-configuration.mjs",
|
|
27
|
+
"esm": "./esm2022/ictgroup-configuration.mjs",
|
|
28
|
+
"default": "./fesm2022/ictgroup-configuration.mjs"
|
|
29
|
+
}
|
|
10
30
|
},
|
|
11
|
-
"main": "bundles/ictgroup-configuration.umd.js",
|
|
12
|
-
"module": "fesm5/ictgroup-configuration.js",
|
|
13
|
-
"es2015": "fesm2015/ictgroup-configuration.js",
|
|
14
|
-
"esm5": "esm5/ictgroup-configuration.js",
|
|
15
|
-
"esm2015": "esm2015/ictgroup-configuration.js",
|
|
16
|
-
"fesm5": "fesm5/ictgroup-configuration.js",
|
|
17
|
-
"fesm2015": "fesm2015/ictgroup-configuration.js",
|
|
18
|
-
"typings": "ictgroup-configuration.d.ts",
|
|
19
|
-
"metadata": "ictgroup-configuration.metadata.json",
|
|
20
31
|
"sideEffects": false
|
|
21
|
-
}
|
|
32
|
+
}
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ictgroup/configuration', ['exports', '@angular/core', '@angular/common/http', 'rxjs'], factory) :
|
|
4
|
-
(global = global || self, factory((global.ictgroup = global.ictgroup || {}, global.ictgroup.configuration = {}), global.ng.core, global.ng.common.http, global.rxjs));
|
|
5
|
-
}(this, (function (exports, core, http, rxjs) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var __assign = function() {
|
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39
|
-
s = arguments[i];
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
return __assign.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
62
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function __param(paramIndex, decorator) {
|
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
75
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
77
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
78
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
79
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
80
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function __generator(thisArg, body) {
|
|
85
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
86
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
87
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88
|
-
function step(op) {
|
|
89
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
90
|
-
while (_) try {
|
|
91
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
92
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
93
|
-
switch (op[0]) {
|
|
94
|
-
case 0: case 1: t = op; break;
|
|
95
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
96
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
97
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
98
|
-
default:
|
|
99
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
100
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
101
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
102
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
103
|
-
if (t[2]) _.ops.pop();
|
|
104
|
-
_.trys.pop(); continue;
|
|
105
|
-
}
|
|
106
|
-
op = body.call(thisArg, _);
|
|
107
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
108
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function __createBinding(o, m, k, k2) {
|
|
113
|
-
if (k2 === undefined) k2 = k;
|
|
114
|
-
o[k2] = m[k];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function __exportStar(m, exports) {
|
|
118
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function __values(o) {
|
|
122
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
123
|
-
if (m) return m.call(o);
|
|
124
|
-
if (o && typeof o.length === "number") return {
|
|
125
|
-
next: function () {
|
|
126
|
-
if (o && i >= o.length) o = void 0;
|
|
127
|
-
return { value: o && o[i++], done: !o };
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function __read(o, n) {
|
|
134
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
135
|
-
if (!m) return o;
|
|
136
|
-
var i = m.call(o), r, ar = [], e;
|
|
137
|
-
try {
|
|
138
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
139
|
-
}
|
|
140
|
-
catch (error) { e = { error: error }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
144
|
-
}
|
|
145
|
-
finally { if (e) throw e.error; }
|
|
146
|
-
}
|
|
147
|
-
return ar;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function __spread() {
|
|
151
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
152
|
-
ar = ar.concat(__read(arguments[i]));
|
|
153
|
-
return ar;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function __spreadArrays() {
|
|
157
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
158
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
159
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
160
|
-
r[k] = a[j];
|
|
161
|
-
return r;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
function __await(v) {
|
|
165
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
169
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
170
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
171
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
172
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
173
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
174
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
175
|
-
function fulfill(value) { resume("next", value); }
|
|
176
|
-
function reject(value) { resume("throw", value); }
|
|
177
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function __asyncDelegator(o) {
|
|
181
|
-
var i, p;
|
|
182
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
183
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function __asyncValues(o) {
|
|
187
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
188
|
-
var m = o[Symbol.asyncIterator], i;
|
|
189
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
190
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
191
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function __makeTemplateObject(cooked, raw) {
|
|
195
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
196
|
-
return cooked;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
function __importStar(mod) {
|
|
200
|
-
if (mod && mod.__esModule) return mod;
|
|
201
|
-
var result = {};
|
|
202
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
203
|
-
result.default = mod;
|
|
204
|
-
return result;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function __importDefault(mod) {
|
|
208
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
212
|
-
if (!privateMap.has(receiver)) {
|
|
213
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
214
|
-
}
|
|
215
|
-
return privateMap.get(receiver);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
219
|
-
if (!privateMap.has(receiver)) {
|
|
220
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
221
|
-
}
|
|
222
|
-
privateMap.set(receiver, value);
|
|
223
|
-
return value;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @fileoverview added by tsickle
|
|
228
|
-
* Generated from: lib/configuration.service.ts
|
|
229
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
230
|
-
*/
|
|
231
|
-
var ConfigurationService = /** @class */ (function () {
|
|
232
|
-
function ConfigurationService(http) {
|
|
233
|
-
this.http = http;
|
|
234
|
-
this.configChanged = new core.EventEmitter();
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @param {?} pathconfig
|
|
238
|
-
* @param {?=} otherconfig
|
|
239
|
-
* @return {?}
|
|
240
|
-
*/
|
|
241
|
-
ConfigurationService.prototype.init = /**
|
|
242
|
-
* @param {?} pathconfig
|
|
243
|
-
* @param {?=} otherconfig
|
|
244
|
-
* @return {?}
|
|
245
|
-
*/
|
|
246
|
-
function (pathconfig, otherconfig) {
|
|
247
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
-
var calls;
|
|
249
|
-
var _this = this;
|
|
250
|
-
return __generator(this, function (_a) {
|
|
251
|
-
switch (_a.label) {
|
|
252
|
-
case 0:
|
|
253
|
-
calls = [];
|
|
254
|
-
calls.push(this.http.get(pathconfig));
|
|
255
|
-
if (otherconfig) {
|
|
256
|
-
calls.push(this.http.get(otherconfig));
|
|
257
|
-
}
|
|
258
|
-
return [4 /*yield*/, rxjs.forkJoin(calls).toPromise()
|
|
259
|
-
.then((/**
|
|
260
|
-
* @param {?} res
|
|
261
|
-
* @return {?}
|
|
262
|
-
*/
|
|
263
|
-
function (res) {
|
|
264
|
-
_this.pathconfig = res[0];
|
|
265
|
-
if (otherconfig) {
|
|
266
|
-
_this.otherconfig = res[1];
|
|
267
|
-
}
|
|
268
|
-
_this.configChanged.emit();
|
|
269
|
-
}))];
|
|
270
|
-
case 1:
|
|
271
|
-
_a.sent();
|
|
272
|
-
return [2 /*return*/];
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* @param {?} key
|
|
279
|
-
* @return {?}
|
|
280
|
-
*/
|
|
281
|
-
ConfigurationService.prototype.get = /**
|
|
282
|
-
* @param {?} key
|
|
283
|
-
* @return {?}
|
|
284
|
-
*/
|
|
285
|
-
function (key) {
|
|
286
|
-
/** @type {?} */
|
|
287
|
-
var res = this.pathconfig ? this.pathconfig[key] : null;
|
|
288
|
-
if (!res) {
|
|
289
|
-
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
290
|
-
}
|
|
291
|
-
return res;
|
|
292
|
-
};
|
|
293
|
-
ConfigurationService.decorators = [
|
|
294
|
-
{ type: core.Injectable, args: [{
|
|
295
|
-
providedIn: 'root'
|
|
296
|
-
},] }
|
|
297
|
-
];
|
|
298
|
-
/** @nocollapse */
|
|
299
|
-
ConfigurationService.ctorParameters = function () { return [
|
|
300
|
-
{ type: http.HttpClient }
|
|
301
|
-
]; };
|
|
302
|
-
/** @nocollapse */ ConfigurationService.ɵprov = core.ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(core.ɵɵinject(http.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
|
|
303
|
-
return ConfigurationService;
|
|
304
|
-
}());
|
|
305
|
-
if (false) {
|
|
306
|
-
/**
|
|
307
|
-
* @type {?}
|
|
308
|
-
* @private
|
|
309
|
-
*/
|
|
310
|
-
ConfigurationService.prototype.otherconfig;
|
|
311
|
-
/**
|
|
312
|
-
* @type {?}
|
|
313
|
-
* @private
|
|
314
|
-
*/
|
|
315
|
-
ConfigurationService.prototype.pathconfig;
|
|
316
|
-
/** @type {?} */
|
|
317
|
-
ConfigurationService.prototype.configChanged;
|
|
318
|
-
/**
|
|
319
|
-
* @type {?}
|
|
320
|
-
* @private
|
|
321
|
-
*/
|
|
322
|
-
ConfigurationService.prototype.http;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
exports.ConfigurationService = ConfigurationService;
|
|
326
|
-
|
|
327
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
328
|
-
|
|
329
|
-
})));
|
|
330
|
-
//# sourceMappingURL=ictgroup-configuration.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ictgroup-configuration.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@ictgroup/configuration/lib/configuration.service.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {forkJoin, Observable} from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigurationService {\n\n private otherconfig: any;\n private pathconfig: any;\n\n public configChanged: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(private http: HttpClient) {\n }\n\n public async init(pathconfig: string, otherconfig?: string) {\n const calls: Observable<any>[] = [];\n calls.push(this.http.get(pathconfig));\n if (otherconfig) {\n calls.push(this.http.get(otherconfig));\n }\n await forkJoin(calls).toPromise()\n .then(res => {\n this.pathconfig = res[0];\n if (otherconfig) {\n this.otherconfig = res[1];\n }\n this.configChanged.emit();\n }\n );\n }\n\n public get(key: string) {\n let res = this.pathconfig ? this.pathconfig[key] : null;\n if (!res) {\n res = this.otherconfig ? this.otherconfig[key] : null;\n }\n return res;\n }\n}\n"],"names":["EventEmitter","forkJoin","Injectable","HttpClient"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC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G,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI;YACvD,IAAI,CAAC,GAAG,EAAE;gBACN,GAAG,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACzD;YACD,OAAO,GAAG,CAAC;SACd;;oBApCJC,eAAU,SAAC;wBACR,UAAU,EAAE,MAAM;qBACrB;;;;oBALOC,eAAU;;;mCADlB;KAIA,IAqCC;;;;;;QAhCG,2CAAyB;;;;;QACzB,0CAAwB;;QAExB,6CAAoE;;;;;QAExD,oCAAwB;;;;;;;;;;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs")):"function"==typeof define&&define.amd?define("@ictgroup/configuration",["exports","@angular/core","@angular/common/http","rxjs"],n):n(((t=t||self).ictgroup=t.ictgroup||{},t.ictgroup.configuration={}),t.ng.core,t.ng.common.http,t.rxjs)}(this,(function(t,n,e,r){"use strict";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function o(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,c)}a((r=r.apply(t,n||[])).next())}))}function i(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var u=function(){function t(t){this.http=t,this.configChanged=new n.EventEmitter}return t.prototype.init=function(t,n){return o(this,void 0,void 0,(function(){var e,o=this;return i(this,(function(i){switch(i.label){case 0:return(e=[]).push(this.http.get(t)),n&&e.push(this.http.get(n)),[4,r.forkJoin(e).toPromise().then((function(t){o.pathconfig=t[0],n&&(o.otherconfig=t[1]),o.configChanged.emit()}))];case 1:return i.sent(),[2]}}))}))},t.prototype.get=function(t){var n=this.pathconfig?this.pathconfig[t]:null;return n||(n=this.otherconfig?this.otherconfig[t]:null),n},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.HttpClient}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(e.HttpClient))},token:t,providedIn:"root"}),t}();t.ConfigurationService=u,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
|
-
//# sourceMappingURL=ictgroup-configuration.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@ictgroup/configuration/lib/configuration.service.ts"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","this","n","v","op","TypeError","call","pop","length","push","ConfigurationService","http","configChanged","EventEmitter","prototype","init","pathconfig","otherconfig","calls","get","forkJoin","toPromise","res","_this","emit","_a","key","Injectable","args","providedIn","HttpClient"],"mappings":";;;;;;;;;;;;;;oFAmEO,SAASA,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,IAAW,MAAOG,GAAKL,EAAOK,IACpF,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,IAAW,MAAOG,GAAKL,EAAOK,IACvF,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,GAAE,SAA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AHKJ,IACDA,EAAMrB,KAAKgB,YAAchB,KAAKgB,YAAYS,GAAO,MAE9CJ,uBAnCdK,EAAAA,WAAUC,KAAA,CAAC,CACRC,WAAY,oDAJRC,EAAAA","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {forkJoin, Observable} from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigurationService {\n\n private otherconfig: any;\n private pathconfig: any;\n\n public configChanged: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(private http: HttpClient) {\n }\n\n public async init(pathconfig: string, otherconfig?: string) {\n const calls: Observable<any>[] = [];\n calls.push(this.http.get(pathconfig));\n if (otherconfig) {\n calls.push(this.http.get(otherconfig));\n }\n await forkJoin(calls).toPromise()\n .then(res => {\n this.pathconfig = res[0];\n if (otherconfig) {\n this.otherconfig = res[1];\n }\n this.configChanged.emit();\n }\n );\n }\n\n public get(key: string) {\n let res = this.pathconfig ? this.pathconfig[key] : null;\n if (!res) {\n res = this.otherconfig ? this.otherconfig[key] : null;\n }\n return res;\n }\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: ictgroup-configuration.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
export { ConfigurationService } from './public-api';
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWN0Z3JvdXAtY29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpY3Rncm91cC9jb25maWd1cmF0aW9uLyIsInNvdXJjZXMiOlsiaWN0Z3JvdXAtY29uZmlndXJhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHFDQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/configuration.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { __awaiter } from "tslib";
|
|
7
|
-
import { EventEmitter, Injectable } from '@angular/core';
|
|
8
|
-
import { HttpClient } from '@angular/common/http';
|
|
9
|
-
import { forkJoin } from 'rxjs';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@angular/common/http";
|
|
12
|
-
export class ConfigurationService {
|
|
13
|
-
/**
|
|
14
|
-
* @param {?} http
|
|
15
|
-
*/
|
|
16
|
-
constructor(http) {
|
|
17
|
-
this.http = http;
|
|
18
|
-
this.configChanged = new EventEmitter();
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @param {?} pathconfig
|
|
22
|
-
* @param {?=} otherconfig
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
init(pathconfig, otherconfig) {
|
|
26
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
/** @type {?} */
|
|
28
|
-
const calls = [];
|
|
29
|
-
calls.push(this.http.get(pathconfig));
|
|
30
|
-
if (otherconfig) {
|
|
31
|
-
calls.push(this.http.get(otherconfig));
|
|
32
|
-
}
|
|
33
|
-
yield forkJoin(calls).toPromise()
|
|
34
|
-
.then((/**
|
|
35
|
-
* @param {?} res
|
|
36
|
-
* @return {?}
|
|
37
|
-
*/
|
|
38
|
-
res => {
|
|
39
|
-
this.pathconfig = res[0];
|
|
40
|
-
if (otherconfig) {
|
|
41
|
-
this.otherconfig = res[1];
|
|
42
|
-
}
|
|
43
|
-
this.configChanged.emit();
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @param {?} key
|
|
49
|
-
* @return {?}
|
|
50
|
-
*/
|
|
51
|
-
get(key) {
|
|
52
|
-
/** @type {?} */
|
|
53
|
-
let res = this.pathconfig ? this.pathconfig[key] : null;
|
|
54
|
-
if (!res) {
|
|
55
|
-
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
56
|
-
}
|
|
57
|
-
return res;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
ConfigurationService.decorators = [
|
|
61
|
-
{ type: Injectable, args: [{
|
|
62
|
-
providedIn: 'root'
|
|
63
|
-
},] }
|
|
64
|
-
];
|
|
65
|
-
/** @nocollapse */
|
|
66
|
-
ConfigurationService.ctorParameters = () => [
|
|
67
|
-
{ type: HttpClient }
|
|
68
|
-
];
|
|
69
|
-
/** @nocollapse */ ConfigurationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(i0.ɵɵinject(i1.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
|
|
70
|
-
if (false) {
|
|
71
|
-
/**
|
|
72
|
-
* @type {?}
|
|
73
|
-
* @private
|
|
74
|
-
*/
|
|
75
|
-
ConfigurationService.prototype.otherconfig;
|
|
76
|
-
/**
|
|
77
|
-
* @type {?}
|
|
78
|
-
* @private
|
|
79
|
-
*/
|
|
80
|
-
ConfigurationService.prototype.pathconfig;
|
|
81
|
-
/** @type {?} */
|
|
82
|
-
ConfigurationService.prototype.configChanged;
|
|
83
|
-
/**
|
|
84
|
-
* @type {?}
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
ConfigurationService.prototype.http;
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5n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gIHByaXZhdGUgcGF0aGNvbmZpZzogYW55O1xuXG4gICAgcHVibGljIGNvbmZpZ0NoYW5nZWQ6IEV2ZW50RW1pdHRlcjx2b2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcblxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cDogSHR0cENsaWVudCkge1xuICAgIH1cblxuICAgIHB1YmxpYyBhc3luYyBpbml0KHBhdGhjb25maWc6IHN0cmluZywgb3RoZXJjb25maWc/OiBzdHJpbmcpIHtcbiAgICAgICAgY29uc3QgY2FsbHM6IE9ic2VydmFibGU8YW55PltdID0gW107XG4gICAgICAgIGNhbGxzLnB1c2godGhpcy5odHRwLmdldChwYXRoY29uZmlnKSk7XG4gICAgICAgIGlmIChvdGhlcmNvbmZpZykge1xuICAgICAgICAgICAgY2FsbHMucHVzaCh0aGlzLmh0dHAuZ2V0KG90aGVyY29uZmlnKSk7XG4gICAgICAgIH1cbiAgICAgICAgYXdhaXQgZm9ya0pvaW4oY2FsbHMpLnRvUHJvbWlzZSgpXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnBhdGhjb25maWcgPSByZXNbMF07XG4gICAgICAgICAgICAgICAgICAgIGlmIChvdGhlcmNvbmZpZykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vdGhlcmNvbmZpZyA9IHJlc1sxXTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbmZpZ0NoYW5nZWQuZW1pdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICk7XG4gICAgfVxuXG4gICAgcHVibGljIGdldChrZXk6IHN0cmluZykge1xuICAgICAgICBsZXQgcmVzID0gdGhpcy5wYXRoY29uZmlnID8gdGhpcy5wYXRoY29uZmlnW2tleV0gOiBudWxsO1xuICAgICAgICBpZiAoIXJlcykge1xuICAgICAgICAgICAgcmVzID0gdGhpcy5vdGhlcmNvbmZpZyA/IHRoaXMub3RoZXJjb25maWdba2V5XSA6IG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlcztcbiAgICB9XG59XG4iXX0=
|
package/esm2015/public-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: public-api.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
export { ConfigurationService } from './lib/configuration.service';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpY3Rncm91cC9jb25maWd1cmF0aW9uLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHtDb25maWd1cmF0aW9uU2VydmljZX0gZnJvbSAnLi9saWIvY29uZmlndXJhdGlvbi5zZXJ2aWNlJztcbiJdfQ==
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: ictgroup-configuration.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
export { ConfigurationService } from './public-api';
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWN0Z3JvdXAtY29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpY3Rncm91cC9jb25maWd1cmF0aW9uLyIsInNvdXJjZXMiOlsiaWN0Z3JvdXAtY29uZmlndXJhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHFDQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/configuration.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { __awaiter, __generator } from "tslib";
|
|
7
|
-
import { EventEmitter, Injectable } from '@angular/core';
|
|
8
|
-
import { HttpClient } from '@angular/common/http';
|
|
9
|
-
import { forkJoin } from 'rxjs';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@angular/common/http";
|
|
12
|
-
var ConfigurationService = /** @class */ (function () {
|
|
13
|
-
function ConfigurationService(http) {
|
|
14
|
-
this.http = http;
|
|
15
|
-
this.configChanged = new EventEmitter();
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @param {?} pathconfig
|
|
19
|
-
* @param {?=} otherconfig
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
ConfigurationService.prototype.init = /**
|
|
23
|
-
* @param {?} pathconfig
|
|
24
|
-
* @param {?=} otherconfig
|
|
25
|
-
* @return {?}
|
|
26
|
-
*/
|
|
27
|
-
function (pathconfig, otherconfig) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
29
|
-
var calls;
|
|
30
|
-
var _this = this;
|
|
31
|
-
return __generator(this, function (_a) {
|
|
32
|
-
switch (_a.label) {
|
|
33
|
-
case 0:
|
|
34
|
-
calls = [];
|
|
35
|
-
calls.push(this.http.get(pathconfig));
|
|
36
|
-
if (otherconfig) {
|
|
37
|
-
calls.push(this.http.get(otherconfig));
|
|
38
|
-
}
|
|
39
|
-
return [4 /*yield*/, forkJoin(calls).toPromise()
|
|
40
|
-
.then((/**
|
|
41
|
-
* @param {?} res
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
function (res) {
|
|
45
|
-
_this.pathconfig = res[0];
|
|
46
|
-
if (otherconfig) {
|
|
47
|
-
_this.otherconfig = res[1];
|
|
48
|
-
}
|
|
49
|
-
_this.configChanged.emit();
|
|
50
|
-
}))];
|
|
51
|
-
case 1:
|
|
52
|
-
_a.sent();
|
|
53
|
-
return [2 /*return*/];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @param {?} key
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
ConfigurationService.prototype.get = /**
|
|
63
|
-
* @param {?} key
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function (key) {
|
|
67
|
-
/** @type {?} */
|
|
68
|
-
var res = this.pathconfig ? this.pathconfig[key] : null;
|
|
69
|
-
if (!res) {
|
|
70
|
-
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
71
|
-
}
|
|
72
|
-
return res;
|
|
73
|
-
};
|
|
74
|
-
ConfigurationService.decorators = [
|
|
75
|
-
{ type: Injectable, args: [{
|
|
76
|
-
providedIn: 'root'
|
|
77
|
-
},] }
|
|
78
|
-
];
|
|
79
|
-
/** @nocollapse */
|
|
80
|
-
ConfigurationService.ctorParameters = function () { return [
|
|
81
|
-
{ type: HttpClient }
|
|
82
|
-
]; };
|
|
83
|
-
/** @nocollapse */ ConfigurationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(i0.ɵɵinject(i1.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
|
|
84
|
-
return ConfigurationService;
|
|
85
|
-
}());
|
|
86
|
-
export { ConfigurationService };
|
|
87
|
-
if (false) {
|
|
88
|
-
/**
|
|
89
|
-
* @type {?}
|
|
90
|
-
* @private
|
|
91
|
-
*/
|
|
92
|
-
ConfigurationService.prototype.otherconfig;
|
|
93
|
-
/**
|
|
94
|
-
* @type {?}
|
|
95
|
-
* @private
|
|
96
|
-
*/
|
|
97
|
-
ConfigurationService.prototype.pathconfig;
|
|
98
|
-
/** @type {?} */
|
|
99
|
-
ConfigurationService.prototype.configChanged;
|
|
100
|
-
/**
|
|
101
|
-
* @type {?}
|
|
102
|
-
* @private
|
|
103
|
-
*/
|
|
104
|
-
ConfigurationService.prototype.http;
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGljdGdyb3VwL2NvbmZpZ3VyYXRpb24vIiwic291cmNlcyI6WyJsaWIvY29uZmlndXJhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZELE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUNoRCxPQUFPLEVBQUMsUUFBUSxFQUFhLE1BQU0sTUFBTSxDQUFDOzs7QUFFMUM7SUFVSSw4QkFBb0IsSUFBZ0I7UUFBaEIsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUY3QixrQkFBYSxHQUF1QixJQUFJLFlBQVksRUFBUSxD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bXTtcbiAgICAgICAgY2FsbHMucHVzaCh0aGlzLmh0dHAuZ2V0KHBhdGhjb25maWcpKTtcbiAgICAgICAgaWYgKG90aGVyY29uZmlnKSB7XG4gICAgICAgICAgICBjYWxscy5wdXNoKHRoaXMuaHR0cC5nZXQob3RoZXJjb25maWcpKTtcbiAgICAgICAgfVxuICAgICAgICBhd2FpdCBmb3JrSm9pbihjYWxscykudG9Qcm9taXNlKClcbiAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGF0aGNvbmZpZyA9IHJlc1swXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG90aGVyY29uZmlnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm90aGVyY29uZmlnID0gcmVzWzFdO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlnQ2hhbmdlZC5lbWl0KCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0KGtleTogc3RyaW5nKSB7XG4gICAgICAgIGxldCByZXMgPSB0aGlzLnBhdGhjb25maWcgPyB0aGlzLnBhdGhjb25maWdba2V5XSA6IG51bGw7XG4gICAgICAgIGlmICghcmVzKSB7XG4gICAgICAgICAgICByZXMgPSB0aGlzLm90aGVyY29uZmlnID8gdGhpcy5vdGhlcmNvbmZpZ1trZXldIDogbnVsbDtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gcmVzO1xuICAgIH1cbn1cbiJdfQ==
|
package/esm5/public-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: public-api.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
export { ConfigurationService } from './lib/configuration.service';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpY3Rncm91cC9jb25maWd1cmF0aW9uLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHtDb25maWd1cmF0aW9uU2VydmljZX0gZnJvbSAnLi9saWIvY29uZmlndXJhdGlvbi5zZXJ2aWNlJztcbiJdfQ==
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from 'tslib';
|
|
2
|
-
import { EventEmitter, Injectable, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { forkJoin } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileoverview added by tsickle
|
|
8
|
-
* Generated from: lib/configuration.service.ts
|
|
9
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
-
*/
|
|
11
|
-
class ConfigurationService {
|
|
12
|
-
/**
|
|
13
|
-
* @param {?} http
|
|
14
|
-
*/
|
|
15
|
-
constructor(http) {
|
|
16
|
-
this.http = http;
|
|
17
|
-
this.configChanged = new EventEmitter();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @param {?} pathconfig
|
|
21
|
-
* @param {?=} otherconfig
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
init(pathconfig, otherconfig) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
/** @type {?} */
|
|
27
|
-
const calls = [];
|
|
28
|
-
calls.push(this.http.get(pathconfig));
|
|
29
|
-
if (otherconfig) {
|
|
30
|
-
calls.push(this.http.get(otherconfig));
|
|
31
|
-
}
|
|
32
|
-
yield forkJoin(calls).toPromise()
|
|
33
|
-
.then((/**
|
|
34
|
-
* @param {?} res
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
res => {
|
|
38
|
-
this.pathconfig = res[0];
|
|
39
|
-
if (otherconfig) {
|
|
40
|
-
this.otherconfig = res[1];
|
|
41
|
-
}
|
|
42
|
-
this.configChanged.emit();
|
|
43
|
-
}));
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @param {?} key
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
get(key) {
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
let res = this.pathconfig ? this.pathconfig[key] : null;
|
|
53
|
-
if (!res) {
|
|
54
|
-
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
55
|
-
}
|
|
56
|
-
return res;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
ConfigurationService.decorators = [
|
|
60
|
-
{ type: Injectable, args: [{
|
|
61
|
-
providedIn: 'root'
|
|
62
|
-
},] }
|
|
63
|
-
];
|
|
64
|
-
/** @nocollapse */
|
|
65
|
-
ConfigurationService.ctorParameters = () => [
|
|
66
|
-
{ type: HttpClient }
|
|
67
|
-
];
|
|
68
|
-
/** @nocollapse */ ConfigurationService.ɵprov = ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(ɵɵinject(HttpClient)); }, token: ConfigurationService, providedIn: "root" });
|
|
69
|
-
if (false) {
|
|
70
|
-
/**
|
|
71
|
-
* @type {?}
|
|
72
|
-
* @private
|
|
73
|
-
*/
|
|
74
|
-
ConfigurationService.prototype.otherconfig;
|
|
75
|
-
/**
|
|
76
|
-
* @type {?}
|
|
77
|
-
* @private
|
|
78
|
-
*/
|
|
79
|
-
ConfigurationService.prototype.pathconfig;
|
|
80
|
-
/** @type {?} */
|
|
81
|
-
ConfigurationService.prototype.configChanged;
|
|
82
|
-
/**
|
|
83
|
-
* @type {?}
|
|
84
|
-
* @private
|
|
85
|
-
*/
|
|
86
|
-
ConfigurationService.prototype.http;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @fileoverview added by tsickle
|
|
91
|
-
* Generated from: public-api.ts
|
|
92
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @fileoverview added by tsickle
|
|
97
|
-
* Generated from: ictgroup-configuration.ts
|
|
98
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
export { ConfigurationService };
|
|
102
|
-
//# sourceMappingURL=ictgroup-configuration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ictgroup-configuration.js","sources":["ng://@ictgroup/configuration/lib/configuration.service.ts"],"sourcesContent":["import {EventEmitter, Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {forkJoin, Observable} from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigurationService {\n\n private otherconfig: any;\n private pathconfig: any;\n\n public configChanged: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(private http: HttpClient) {\n }\n\n public async init(pathconfig: string, otherconfig?: string) {\n const calls: Observable<any>[] = [];\n calls.push(this.http.get(pathconfig));\n if (otherconfig) {\n calls.push(this.http.get(otherconfig));\n }\n await forkJoin(calls).toPromise()\n .then(res => {\n this.pathconfig = res[0];\n if (otherconfig) {\n this.otherconfig = res[1];\n }\n this.configChanged.emit();\n }\n );\n }\n\n public get(key: string) {\n let res = this.pathconfig ? this.pathconfig[key] : null;\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B;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator } from 'tslib';
|
|
2
|
-
import { EventEmitter, Injectable, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { forkJoin } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileoverview added by tsickle
|
|
8
|
-
* Generated from: lib/configuration.service.ts
|
|
9
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
-
*/
|
|
11
|
-
var ConfigurationService = /** @class */ (function () {
|
|
12
|
-
function ConfigurationService(http) {
|
|
13
|
-
this.http = http;
|
|
14
|
-
this.configChanged = new EventEmitter();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @param {?} pathconfig
|
|
18
|
-
* @param {?=} otherconfig
|
|
19
|
-
* @return {?}
|
|
20
|
-
*/
|
|
21
|
-
ConfigurationService.prototype.init = /**
|
|
22
|
-
* @param {?} pathconfig
|
|
23
|
-
* @param {?=} otherconfig
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
function (pathconfig, otherconfig) {
|
|
27
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28
|
-
var calls;
|
|
29
|
-
var _this = this;
|
|
30
|
-
return __generator(this, function (_a) {
|
|
31
|
-
switch (_a.label) {
|
|
32
|
-
case 0:
|
|
33
|
-
calls = [];
|
|
34
|
-
calls.push(this.http.get(pathconfig));
|
|
35
|
-
if (otherconfig) {
|
|
36
|
-
calls.push(this.http.get(otherconfig));
|
|
37
|
-
}
|
|
38
|
-
return [4 /*yield*/, forkJoin(calls).toPromise()
|
|
39
|
-
.then((/**
|
|
40
|
-
* @param {?} res
|
|
41
|
-
* @return {?}
|
|
42
|
-
*/
|
|
43
|
-
function (res) {
|
|
44
|
-
_this.pathconfig = res[0];
|
|
45
|
-
if (otherconfig) {
|
|
46
|
-
_this.otherconfig = res[1];
|
|
47
|
-
}
|
|
48
|
-
_this.configChanged.emit();
|
|
49
|
-
}))];
|
|
50
|
-
case 1:
|
|
51
|
-
_a.sent();
|
|
52
|
-
return [2 /*return*/];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @param {?} key
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
ConfigurationService.prototype.get = /**
|
|
62
|
-
* @param {?} key
|
|
63
|
-
* @return {?}
|
|
64
|
-
*/
|
|
65
|
-
function (key) {
|
|
66
|
-
/** @type {?} */
|
|
67
|
-
var res = this.pathconfig ? this.pathconfig[key] : null;
|
|
68
|
-
if (!res) {
|
|
69
|
-
res = this.otherconfig ? this.otherconfig[key] : null;
|
|
70
|
-
}
|
|
71
|
-
return res;
|
|
72
|
-
};
|
|
73
|
-
ConfigurationService.decorators = [
|
|
74
|
-
{ type: Injectable, args: [{
|
|
75
|
-
providedIn: 'root'
|
|
76
|
-
},] }
|
|
77
|
-
];
|
|
78
|
-
/** @nocollapse */
|
|
79
|
-
ConfigurationService.ctorParameters = function () { return [
|
|
80
|
-
{ type: HttpClient }
|
|
81
|
-
]; };
|
|
82
|
-
/** @nocollapse */ ConfigurationService.ɵprov = ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(ɵɵinject(HttpClient)); }, token: ConfigurationService, providedIn: "root" });
|
|
83
|
-
return ConfigurationService;
|
|
84
|
-
}());
|
|
85
|
-
if (false) {
|
|
86
|
-
/**
|
|
87
|
-
* @type {?}
|
|
88
|
-
* @private
|
|
89
|
-
*/
|
|
90
|
-
ConfigurationService.prototype.otherconfig;
|
|
91
|
-
/**
|
|
92
|
-
* @type {?}
|
|
93
|
-
* @private
|
|
94
|
-
*/
|
|
95
|
-
ConfigurationService.prototype.pathconfig;
|
|
96
|
-
/** @type {?} */
|
|
97
|
-
ConfigurationService.prototype.configChanged;
|
|
98
|
-
/**
|
|
99
|
-
* @type {?}
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
ConfigurationService.prototype.http;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @fileoverview added by tsickle
|
|
107
|
-
* Generated from: public-api.ts
|
|
108
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @fileoverview added by tsickle
|
|
113
|
-
* Generated from: ictgroup-configuration.ts
|
|
114
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
export { ConfigurationService };
|
|
118
|
-
//# sourceMappingURL=ictgroup-configuration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ictgroup-configuration.js","sources":["ng://@ictgroup/configuration/lib/configuration.service.ts"],"sourcesContent":["import {EventEmitter, Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {forkJoin, Observable} from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigurationService {\n\n private otherconfig: any;\n private pathconfig: any;\n\n public configChanged: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(private http: HttpClient) {\n }\n\n public async init(pathconfig: string, otherconfig?: string) {\n const calls: Observable<any>[] = [];\n calls.push(this.http.get(pathconfig));\n if (otherconfig) {\n calls.push(this.http.get(otherconfig));\n }\n await forkJoin(calls).toPromise()\n .then(res => {\n this.pathconfig = res[0];\n if (otherconfig) {\n this.otherconfig = res[1];\n }\n this.configChanged.emit();\n }\n );\n }\n\n public get(key: string) {\n let res = this.pathconfig ? this.pathconfig[key] : null;\n if (!res) {\n res = this.otherconfig ? this.othercon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CAAwB;;IAExB,6CAAoE;;;;;IAExD,oCAAwB;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"ConfigurationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":30}]}],"init":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"ConfigurationService":"./lib/configuration.service"},"importAs":"@ictgroup/configuration"}
|