@valtimo/bootstrap 4.15.3-next-main.16 → 4.17.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.
@@ -1,6 +1,6 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { initialize as ɵa, initializerFactory as ɵb } from './lib/init';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1ib290c3RyYXAuanMiLCJzb3VyY2VSb290IjoiRDovV29ya3NwYWNlL3ZhbHRpbW8vdmFsdGltby1mcm9udGVuZC1saWJyYXJpZXMvcHJvamVjdHMvdmFsdGltby9ib290c3RyYXAvc3JjLyIsInNvdXJjZXMiOlsidmFsdGltby1ib290c3RyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsVUFBVSxJQUFJLEVBQUUsRUFBQyxrQkFBa0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7aW5pdGlhbGl6ZSBhcyDJtWEsaW5pdGlhbGl6ZXJGYWN0b3J5IGFzIMm1Yn0gZnJvbSAnLi9saWIvaW5pdCc7Il19
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ export { initialize as ɵa, initializerFactory as ɵb } from './lib/init';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1ib290c3RyYXAuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTNmZjNhMTlhL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2Jvb3RzdHJhcC9zcmMvIiwic291cmNlcyI6WyJ2YWx0aW1vLWJvb3RzdHJhcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxVQUFVLElBQUksRUFBRSxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLFlBQVksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtpbml0aWFsaXplIGFzIMm1YSxpbml0aWFsaXplckZhY3RvcnkgYXMgybVifSBmcm9tICcuL2xpYi9pbml0JzsiXX0=
@@ -3,116 +3,115 @@ import { NGXLogger } from 'ngx-logger';
3
3
  import { __awaiter } from 'tslib';
4
4
  import { accountInitializer } from '@valtimo/account';
5
5
  import { menuInitializer } from '@valtimo/components';
6
- import { ConfigService } from '@valtimo/config';
6
+ import { INITIALIZERS, ConfigService } from '@valtimo/config';
7
7
  import { TranslateService } from '@ngx-translate/core';
8
- import { INITIALIZERS } from '@valtimo/contract';
9
8
 
10
- /*
11
- * Copyright 2015-2020 Ritense BV, the Netherlands.
12
- *
13
- * Licensed under EUPL, Version 1.2 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" basis,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- function initialize(initializers, logger) {
26
- return () => {
27
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
28
- logger.debug('Initializing application');
29
- try {
30
- logger.debug('Running', initializers.length);
31
- for (const [index, initializer] of initializers.entries()) {
32
- logger.debug('Executing app initializer:', index, initializer.name);
33
- yield initializer();
34
- logger.debug('Executed app initializer:', index, initializer.name);
35
- }
36
- logger.debug('Application initialized');
37
- resolve();
38
- }
39
- catch (err) {
40
- reject(err);
41
- }
42
- }));
43
- };
44
- }
45
- function initializerFactory(configService, injector, logger, translateService) {
46
- logger.debug('Provided app initializers ', configService.initializers);
47
- const initializersArray = [];
48
- // Auth-initializer
49
- initializersArray.push(configService.config.authentication.initializer(injector));
50
- // Use environment config initializers to be used in app startup.
51
- configService.initializers.forEach(initializer => {
52
- initializersArray.push(initializer(injector));
53
- });
54
- initializersArray.push(menuInitializer(injector, logger));
55
- initializersArray.push(accountInitializer(translateService, logger));
56
- return initializersArray;
9
+ /*
10
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
11
+ *
12
+ * Licensed under EUPL, Version 1.2 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" basis,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ function initialize(initializers, logger) {
25
+ return () => {
26
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
27
+ logger.debug('Initializing application');
28
+ try {
29
+ logger.debug('Running', initializers.length);
30
+ for (const [index, initializer] of initializers.entries()) {
31
+ logger.debug('Executing app initializer:', index, initializer.name);
32
+ yield initializer();
33
+ logger.debug('Executed app initializer:', index, initializer.name);
34
+ }
35
+ logger.debug('Application initialized');
36
+ resolve();
37
+ }
38
+ catch (err) {
39
+ reject(err);
40
+ }
41
+ }));
42
+ };
43
+ }
44
+ function initializerFactory(configService, injector, logger, translateService) {
45
+ logger.debug('Provided app initializers ', configService.initializers);
46
+ const initializersArray = [];
47
+ // Auth-initializer
48
+ initializersArray.push(configService.config.authentication.initializer(injector));
49
+ // Use environment config initializers to be used in app startup.
50
+ configService.initializers.forEach(initializer => {
51
+ initializersArray.push(initializer(injector));
52
+ });
53
+ initializersArray.push(menuInitializer(injector, logger));
54
+ initializersArray.push(accountInitializer(translateService, logger));
55
+ return initializersArray;
57
56
  }
58
57
 
59
- /*
60
- * Copyright 2015-2020 Ritense BV, the Netherlands.
61
- *
62
- * Licensed under EUPL, Version 1.2 (the "License");
63
- * you may not use this file except in compliance with the License.
64
- * You may obtain a copy of the License at
65
- *
66
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
67
- *
68
- * Unless required by applicable law or agreed to in writing, software
69
- * distributed under the License is distributed on an "AS IS" basis,
70
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71
- * See the License for the specific language governing permissions and
72
- * limitations under the License.
73
- */
74
- const ɵ0 = initialize, ɵ1 = initializerFactory;
75
- class BootstrapModule {
76
- }
77
- BootstrapModule.decorators = [
78
- { type: NgModule, args: [{
79
- declarations: [],
80
- imports: [],
81
- providers: [
82
- {
83
- provide: APP_INITIALIZER,
84
- useFactory: ɵ0,
85
- multi: true,
86
- deps: [INITIALIZERS, NGXLogger],
87
- },
88
- {
89
- provide: INITIALIZERS,
90
- useFactory: ɵ1,
91
- deps: [ConfigService, Injector, NGXLogger, TranslateService],
92
- },
93
- ],
94
- exports: [],
95
- },] }
58
+ /*
59
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
60
+ *
61
+ * Licensed under EUPL, Version 1.2 (the "License");
62
+ * you may not use this file except in compliance with the License.
63
+ * You may obtain a copy of the License at
64
+ *
65
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
66
+ *
67
+ * Unless required by applicable law or agreed to in writing, software
68
+ * distributed under the License is distributed on an "AS IS" basis,
69
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ * See the License for the specific language governing permissions and
71
+ * limitations under the License.
72
+ */
73
+ const ɵ0 = initialize, ɵ1 = initializerFactory;
74
+ class BootstrapModule {
75
+ }
76
+ BootstrapModule.decorators = [
77
+ { type: NgModule, args: [{
78
+ declarations: [],
79
+ imports: [],
80
+ providers: [
81
+ {
82
+ provide: APP_INITIALIZER,
83
+ useFactory: ɵ0,
84
+ multi: true,
85
+ deps: [INITIALIZERS, NGXLogger],
86
+ },
87
+ {
88
+ provide: INITIALIZERS,
89
+ useFactory: ɵ1,
90
+ deps: [ConfigService, Injector, NGXLogger, TranslateService],
91
+ },
92
+ ],
93
+ exports: [],
94
+ },] }
96
95
  ];
97
96
 
98
- /*
99
- * Copyright 2015-2020 Ritense BV, the Netherlands.
100
- *
101
- * Licensed under EUPL, Version 1.2 (the "License");
102
- * you may not use this file except in compliance with the License.
103
- * You may obtain a copy of the License at
104
- *
105
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
106
- *
107
- * Unless required by applicable law or agreed to in writing, software
108
- * distributed under the License is distributed on an "AS IS" basis,
109
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110
- * See the License for the specific language governing permissions and
111
- * limitations under the License.
97
+ /*
98
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
99
+ *
100
+ * Licensed under EUPL, Version 1.2 (the "License");
101
+ * you may not use this file except in compliance with the License.
102
+ * You may obtain a copy of the License at
103
+ *
104
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
105
+ *
106
+ * Unless required by applicable law or agreed to in writing, software
107
+ * distributed under the License is distributed on an "AS IS" basis,
108
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109
+ * See the License for the specific language governing permissions and
110
+ * limitations under the License.
112
111
  */
113
112
 
114
- /**
115
- * Generated bundle index. Do not edit.
113
+ /**
114
+ * Generated bundle index. Do not edit.
116
115
  */
117
116
 
118
117
  export { BootstrapModule, ɵ0, ɵ1, initialize as ɵa, initializerFactory as ɵb };
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-bootstrap.js","sources":["../../../../projects/valtimo/bootstrap/src/lib/init.ts","../../../../projects/valtimo/bootstrap/src/lib/bootstrap.module.ts","../../../../projects/valtimo/bootstrap/src/public-api.ts","../../../../projects/valtimo/bootstrap/src/valtimo-bootstrap.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NGXLogger} from 'ngx-logger';\nimport {TranslateService} from '@ngx-translate/core';\nimport {accountInitializer} from '@valtimo/account';\nimport {Injector} from '@angular/core';\nimport {ConfigService} from '@valtimo/config';\nimport {menuInitializer} from '@valtimo/components';\n\nexport function initialize(\n initializers: (() => Function)[],\n logger: NGXLogger\n): () => Promise<any> {\n return (): Promise<any> => {\n return new Promise(async (resolve, reject) => {\n logger.debug('Initializing application');\n try {\n logger.debug('Running', initializers.length);\n for (const [index, initializer] of initializers.entries()) {\n logger.debug('Executing app initializer:', index, initializer.name);\n await initializer();\n logger.debug('Executed app initializer:', index, initializer.name);\n }\n logger.debug('Application initialized');\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n };\n}\n\nexport function initializerFactory(\n configService: ConfigService,\n injector: Injector,\n logger: NGXLogger,\n translateService: TranslateService\n) {\n logger.debug('Provided app initializers ', configService.initializers);\n\n const initializersArray = [];\n\n // Auth-initializer\n initializersArray.push(configService.config.authentication.initializer(injector));\n\n // Use environment config initializers to be used in app startup.\n configService.initializers.forEach(initializer => {\n initializersArray.push(initializer(injector));\n });\n\n initializersArray.push(menuInitializer(injector, logger));\n initializersArray.push(accountInitializer(translateService, logger));\n return initializersArray;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {APP_INITIALIZER, Injector, NgModule} from '@angular/core';\nimport {NGXLogger} from 'ngx-logger';\nimport {initialize, initializerFactory} from './init';\nimport {ConfigService} from '@valtimo/config';\nimport {TranslateService} from '@ngx-translate/core';\nimport {INITIALIZERS} from '@valtimo/contract';\n\n@NgModule({\n declarations: [],\n imports: [],\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: initialize,\n multi: true,\n deps: [INITIALIZERS, NGXLogger],\n },\n {\n provide: INITIALIZERS,\n useFactory: initializerFactory,\n deps: [ConfigService, Injector, NGXLogger, TranslateService],\n },\n ],\n exports: [],\n})\nexport class BootstrapModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of bootstrap\n */\n\nexport * from './lib/bootstrap.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {initialize as ɵa,initializerFactory as ɵb} from './lib/init';"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;SAuBgB,UAAU,CACxB,YAAgC,EAChC,MAAiB;IAEjB,OAAO;QACL,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM;YACvC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACzC,IAAI;gBACF,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;gBAC7C,KAAK,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE;oBACzD,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;oBACpE,MAAM,WAAW,EAAE,CAAC;oBACpB,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;iBACpE;gBACD,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;gBACxC,OAAO,EAAE,CAAC;aACX;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,CAAC,GAAG,CAAC,CAAC;aACb;SACF,CAAA,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;SAEe,kBAAkB,CAChC,aAA4B,EAC5B,QAAkB,EAClB,MAAiB,EACjB,gBAAkC;IAElC,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAEvE,MAAM,iBAAiB,GAAG,EAAE,CAAC;;IAG7B,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;;IAGlF,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW;QAC5C,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC/C,CAAC,CAAC;IAEH,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,iBAAiB,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;IACrE,OAAO,iBAAiB,CAAC;AAC3B;;ACnEA;;;;;;;;;;;;;;;WA6BkB,UAAU,OAMV;MAML,eAAe;;;YAlB3B,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,eAAe;wBACxB,UAAU,IAAY;wBACtB,KAAK,EAAE,IAAI;wBACX,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;qBAChC;oBACD;wBACE,OAAO,EAAE,YAAY;wBACrB,UAAU,IAAoB;wBAC9B,IAAI,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,CAAC;qBAC7D;iBACF;gBACD,OAAO,EAAE,EAAE;aACZ;;;ACxCD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"valtimo-bootstrap.js","sources":["../../../../projects/valtimo/bootstrap/src/lib/init.ts","../../../../projects/valtimo/bootstrap/src/lib/bootstrap.module.ts","../../../../projects/valtimo/bootstrap/src/public-api.ts","../../../../projects/valtimo/bootstrap/src/valtimo-bootstrap.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NGXLogger} from 'ngx-logger';\nimport {TranslateService} from '@ngx-translate/core';\nimport {accountInitializer} from '@valtimo/account';\nimport {Injector} from '@angular/core';\nimport {ConfigService} from '@valtimo/config';\nimport {menuInitializer} from '@valtimo/components';\n\nexport function initialize(\n initializers: (() => Function)[],\n logger: NGXLogger\n): () => Promise<any> {\n return (): Promise<any> => {\n return new Promise(async (resolve, reject) => {\n logger.debug('Initializing application');\n try {\n logger.debug('Running', initializers.length);\n for (const [index, initializer] of initializers.entries()) {\n logger.debug('Executing app initializer:', index, initializer.name);\n await initializer();\n logger.debug('Executed app initializer:', index, initializer.name);\n }\n logger.debug('Application initialized');\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n };\n}\n\nexport function initializerFactory(\n configService: ConfigService,\n injector: Injector,\n logger: NGXLogger,\n translateService: TranslateService\n) {\n logger.debug('Provided app initializers ', configService.initializers);\n\n const initializersArray = [];\n\n // Auth-initializer\n initializersArray.push(configService.config.authentication.initializer(injector));\n\n // Use environment config initializers to be used in app startup.\n configService.initializers.forEach(initializer => {\n initializersArray.push(initializer(injector));\n });\n\n initializersArray.push(menuInitializer(injector, logger));\n initializersArray.push(accountInitializer(translateService, logger));\n return initializersArray;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {APP_INITIALIZER, Injector, NgModule} from '@angular/core';\nimport {NGXLogger} from 'ngx-logger';\nimport {initialize, initializerFactory} from './init';\nimport {ConfigService} from '@valtimo/config';\nimport {TranslateService} from '@ngx-translate/core';\nimport {INITIALIZERS} from '@valtimo/config';\n\n@NgModule({\n declarations: [],\n imports: [],\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: initialize,\n multi: true,\n deps: [INITIALIZERS, NGXLogger],\n },\n {\n provide: INITIALIZERS,\n useFactory: initializerFactory,\n deps: [ConfigService, Injector, NGXLogger, TranslateService],\n },\n ],\n exports: [],\n})\nexport class BootstrapModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of bootstrap\n */\n\nexport * from './lib/bootstrap.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {initialize as ɵa,initializerFactory as ɵb} from './lib/init';"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;SAuBgB,UAAU,CACxB,YAAgC,EAChC,MAAiB;IAEjB,OAAO;QACL,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM;YACvC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACzC,IAAI;gBACF,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;gBAC7C,KAAK,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE;oBACzD,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;oBACpE,MAAM,WAAW,EAAE,CAAC;oBACpB,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;iBACpE;gBACD,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;gBACxC,OAAO,EAAE,CAAC;aACX;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,CAAC,GAAG,CAAC,CAAC;aACb;SACF,CAAA,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;SAEe,kBAAkB,CAChC,aAA4B,EAC5B,QAAkB,EAClB,MAAiB,EACjB,gBAAkC;IAElC,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAEvE,MAAM,iBAAiB,GAAG,EAAE,CAAC;;IAG7B,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;;IAGlF,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW;QAC5C,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC/C,CAAC,CAAC;IAEH,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,iBAAiB,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;IACrE,OAAO,iBAAiB,CAAC;AAC3B;;ACnEA;;;;;;;;;;;;;;;WA6BkB,UAAU,OAMV;MAML,eAAe;;;YAlB3B,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,eAAe;wBACxB,UAAU,IAAY;wBACtB,KAAK,EAAE,IAAI;wBACX,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;qBAChC;oBACD;wBACE,OAAO,EAAE,YAAY;wBACrB,UAAU,IAAoB;wBAC9B,IAAI,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,CAAC;qBAC7D;iBACF;gBACD,OAAO,EAAE,EAAE;aACZ;;;ACxCD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -1,2 +1,2 @@
1
- export declare class BootstrapModule {
2
- }
1
+ export declare class BootstrapModule {
2
+ }
package/lib/init.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { NGXLogger } from 'ngx-logger';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import { Injector } from '@angular/core';
4
- import { ConfigService } from '@valtimo/config';
5
- export declare function initialize(initializers: (() => Function)[], logger: NGXLogger): () => Promise<any>;
6
- export declare function initializerFactory(configService: ConfigService, injector: Injector, logger: NGXLogger, translateService: TranslateService): any[];
1
+ import { NGXLogger } from 'ngx-logger';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { Injector } from '@angular/core';
4
+ import { ConfigService } from '@valtimo/config';
5
+ export declare function initialize(initializers: (() => Function)[], logger: NGXLogger): () => Promise<any>;
6
+ export declare function initializerFactory(configService: ConfigService, injector: Injector, logger: NGXLogger, translateService: TranslateService): any[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/bootstrap",
3
3
  "license": "EUPL-1.2",
4
- "version": "4.15.3-next-main.16",
4
+ "version": "4.17.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^10.0.11",
7
7
  "@angular/core": "^10.0.11"
package/public-api.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib/bootstrap.module';
1
+ export * from './lib/bootstrap.module';
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { initialize as ɵa, initializerFactory as ɵb } from './lib/init';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ export { initialize as ɵa, initializerFactory as ɵb } from './lib/init';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"BootstrapModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"declarations":[],"imports":[],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":28,"character":15},"useFactory":{"__symbolic":"reference","name":"ɵa"},"multi":true,"deps":[{"__symbolic":"reference","module":"@valtimo/contract","name":"INITIALIZERS","line":31,"character":13},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":31,"character":27}]},{"provide":{"__symbolic":"reference","module":"@valtimo/contract","name":"INITIALIZERS","line":34,"character":15},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":36,"character":13},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":36,"character":28},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":36,"character":38},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":36,"character":49}]}],"exports":[]}]}],"members":{}},"ɵa":{"__symbolic":"function","parameters":["initializers","logger"],"value":{"__symbolic":"error","message":"Lambda not supported","line":27,"character":9,"module":"./lib/init"}},"ɵb":{"__symbolic":"function"}},"origins":{"BootstrapModule":"./lib/bootstrap.module","ɵa":"./lib/init","ɵb":"./lib/init"},"importAs":"@valtimo/bootstrap"}
1
+ {"__symbolic":"module","version":4,"metadata":{"BootstrapModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"declarations":[],"imports":[],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":28,"character":15},"useFactory":{"__symbolic":"reference","name":"ɵa"},"multi":true,"deps":[{"__symbolic":"reference","module":"@valtimo/config","name":"INITIALIZERS","line":31,"character":13},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":31,"character":27}]},{"provide":{"__symbolic":"reference","module":"@valtimo/config","name":"INITIALIZERS","line":34,"character":15},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":36,"character":13},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":36,"character":28},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":36,"character":38},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":36,"character":49}]}],"exports":[]}]}],"members":{}},"ɵa":{"__symbolic":"function","parameters":["initializers","logger"],"value":{"__symbolic":"error","message":"Lambda not supported","line":27,"character":9,"module":"./lib/init"}},"ɵb":{"__symbolic":"function"}},"origins":{"BootstrapModule":"./lib/bootstrap.module","ɵa":"./lib/init","ɵb":"./lib/init"},"importAs":"@valtimo/bootstrap"}