@eui/tools 4.19.13 → 4.19.16

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 +1 @@
1
- 4.19.13
1
+ 4.19.16
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 4.19.16 (2022-03-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted openid vs normal injection env config - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c2a5d816](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c2a5d81641a566bc3b1036644fac1b5a504d0c1e))
7
+
8
+ * * *
9
+ * * *
10
+ ## 4.19.15 (2022-03-07)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * updated resolutions for v13 - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([a76d7cae](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a76d7cae87e74c31665b29f6863163043ae4875a))
16
+
17
+ * * *
18
+ * * *
19
+ ## 4.19.14 (2022-02-22)
20
+
21
+ ##### Chores
22
+
23
+ * **other:**
24
+ * minor changes MWP-7583 [MWP-7583](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7583) ([2a344a9d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2a344a9d5af0f60eedddf265c54acb54b76d4dfd))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 4.19.13 (2022-02-22)
2
29
 
3
30
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.19.13",
3
+ "version": "4.19.16",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -0,0 +1,11 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ template: `
5
+ <eui-block-content [isBlocked]="true">
6
+ <div style="height: 100%"></div>
7
+ </eui-block-content>
8
+ `,
9
+ })
10
+ export class FallbackComponent{
11
+ }
@@ -61,7 +61,7 @@ export class ModuleComponent implements OnInit {
61
61
  }
62
62
 
63
63
  public ngOnInit() {
64
- this.router.navigate([this.routerService.getUrl()], { replaceUrl: true });
64
+ this.router.navigateByUrl(this.routerService.getUrl(), { replaceUrl: true });
65
65
  this.loadData();
66
66
  }
67
67
 
@@ -64,6 +64,7 @@ import {
64
64
  } from '@csdr/integration';
65
65
  import { RoutingModule } from './routing.module';
66
66
 
67
+ import { FallbackComponent } from './fallback.component';
67
68
  import { ModuleComponent } from './module.component';
68
69
 
69
70
  export function openidConnectInterceptorFactory(config) {
@@ -92,9 +93,11 @@ export function openidConnectInterceptorFactory(config) {
92
93
  RoutingModule,
93
94
  ],
94
95
  declarations: [
96
+ FallbackComponent,
95
97
  ModuleComponent,
96
98
  ],
97
99
  entryComponents: [
100
+ FallbackComponent,
98
101
  ModuleComponent,
99
102
  ],
100
103
  providers: [
@@ -8,15 +8,17 @@ import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration
8
8
  // TODO[REMOTE-SETUP] adapt to wrapped package import
9
9
  // import { routes } from '@cc/task-manager';
10
10
  import { appConfig } from '../config/index';
11
+ import { FallbackComponent } from './fallback.component';
11
12
  import { ModuleComponent } from './module.component';
12
13
 
13
14
  const prefixedRoutes: Routes = [
15
+ { path: '', component: ModuleComponent },
14
16
  {
15
17
  path: appConfig.global.baseUrl,
16
18
  // TODO[REMOTE-SETUP] adapt to wrapped package import
17
19
  // children: routes,
18
20
  },
19
- { path: '**', component: ModuleComponent },
21
+ { path: '**', component: FallbackComponent },
20
22
  ];
21
23
 
22
24
  // @dynamic
@@ -1,15 +1,5 @@
1
1
  {
2
- "lodash": ">=4.17.21",
3
- "handlebars": ">=4.7.7",
4
- "mem": ">=4.3.0 <=8.1.1",
5
- "https-proxy-agent": ">=2.2.3",
6
- "minimatch": ">=3.0.4",
7
- "acorn-globals": ">=6.0.0",
8
- "open": ">=7.0.3",
9
- "dot-prop": "6.0.1",
10
- "serialize-javascript": ">=3.1.0",
11
- "socket.io": ">=2.4.0",
12
- "ssri": ">=8.0.1",
13
2
  "@types/node": ">=14.14.10",
14
- "hosted-git-info": ">=3.0.8"
3
+ "https-proxy-agent": ">=2.2.3",
4
+ "mem": ">=4.3.0 <=8.1.1"
15
5
  }
@@ -136,8 +136,15 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
136
136
  }
137
137
 
138
138
  let rootTargetFolder = 'src';
139
- tools.logInfo(`Replacing default ${rootTargetFolder}/assets/openid-login-config.json file by ${envFilePath} content`);
140
- tools.copy(envFilePath, path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login-config.json`));
139
+ let replacedFile;
140
+
141
+ if ((project.build && project.build.openid) || openid) {
142
+ replacedFile = `${rootTargetFolder}/assets/openid-login-config.json`;
143
+ } else {
144
+ replacedFile = `${rootTargetFolder}/assets/env-json-config.json`;
145
+ }
146
+ tools.logInfo(`Replacing default ${replacedFile} file by ${envFilePath} content`);
147
+ tools.copy(envFilePath, path.join(project.paths.angularPath, `${replacedFile}`));
141
148
 
142
149
  tools.logSuccess();
143
150
  })