@eui/tools 5.3.7 → 5.3.10
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/.version.properties +1 -1
- package/CHANGELOG.md +28 -0
- package/package.json +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +4 -5
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +10 -132
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +2 -2
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +3 -0
- package/scripts/csdr/release/app/release-app.js +5 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.10
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 5.3.10 (2022-06-10)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* code cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([32e3f665](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/32e3f665a91f188e4a7fadfedd9aeec220a657e0))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.9 (2022-06-10)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted app release taking care of support/develop merge - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([900f3723](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/900f3723d75b83e03fd5c80f6c9bb17602e9c8c2))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.8 (2022-06-09)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* zipkin cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([88fd83eb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/88fd83ebd2cccfb13da4f2f2b73d72ea747fd925))
|
|
25
|
+
* code cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([350c18d6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/350c18d67bbcfb4c443ab53a6ea6e2b24afef256))
|
|
26
|
+
|
|
27
|
+
* * *
|
|
28
|
+
* * *
|
|
1
29
|
## 5.3.7 (2022-06-02)
|
|
2
30
|
|
|
3
31
|
##### Chores
|
package/package.json
CHANGED
package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
|
|
4
4
|
import { take } from 'rxjs/operators';
|
|
5
5
|
|
|
6
|
-
import { CONFIG_TOKEN
|
|
7
|
-
import { ELEMENT_ROUTER_TOKEN, IRouterService,
|
|
6
|
+
import { CONFIG_TOKEN } from '@eui/core';
|
|
7
|
+
import { ELEMENT_ROUTER_TOKEN, IRouterService, ElementSetupService } from '@csdr/integration/element';
|
|
8
8
|
|
|
9
9
|
import { appConfig } from '../config/index';
|
|
10
10
|
|
|
@@ -56,8 +56,7 @@ export class ModuleComponent implements OnInit {
|
|
|
56
56
|
constructor(private router: Router,
|
|
57
57
|
@Inject(ELEMENT_ROUTER_TOKEN) private routerService: IRouterService,
|
|
58
58
|
@Inject(CONFIG_TOKEN) public config: any,
|
|
59
|
-
private
|
|
60
|
-
private userService: UserService) {
|
|
59
|
+
private elementSetupService: ElementSetupService) {
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
public ngOnInit() {
|
|
@@ -68,7 +67,7 @@ export class ModuleComponent implements OnInit {
|
|
|
68
67
|
private loadData() {
|
|
69
68
|
this.setStatus(ElementStatus.Loading);
|
|
70
69
|
try {
|
|
71
|
-
|
|
70
|
+
this.elementSetupService.init()
|
|
72
71
|
.pipe(take(1))
|
|
73
72
|
.subscribe((loadStatus: { success: boolean, error?: string }) => {
|
|
74
73
|
if (!loadStatus.success) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgModule, Injector, NgZone, PLATFORM_ID } from '@angular/core';
|
|
1
|
+
import { NgModule, Injector } from '@angular/core';
|
|
3
2
|
import { BrowserModule } from '@angular/platform-browser';
|
|
4
3
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
|
-
import {
|
|
6
|
-
import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
4
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
7
5
|
import { createCustomElement } from '@angular/elements';
|
|
8
6
|
|
|
9
7
|
import { StoreModule } from '@ngrx/store';
|
|
@@ -11,34 +9,21 @@ import { EffectsModule } from '@ngrx/effects';
|
|
|
11
9
|
import { StoreRouterConnectingModule } from '@ngrx/router-store';
|
|
12
10
|
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
13
11
|
|
|
14
|
-
import { TranslateModule
|
|
12
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
15
13
|
|
|
16
14
|
import {
|
|
17
|
-
CachePreventionInterceptor,
|
|
18
|
-
CONFIG_TOKEN,
|
|
19
15
|
CoreModule,
|
|
20
|
-
CorsSecurityInterceptor,
|
|
21
|
-
CsrfPreventionInterceptor,
|
|
22
16
|
EUI_CONFIG_TOKEN,
|
|
23
|
-
EuLoginSessionTimeoutHandlingInterceptor,
|
|
24
|
-
GLOBAL_CONFIG_TOKEN,
|
|
25
|
-
I18nService,
|
|
26
|
-
LogService,
|
|
27
|
-
OpenIdConnectInterceptor,
|
|
28
|
-
StorageService,
|
|
29
|
-
StoreService,
|
|
30
17
|
translateConfig,
|
|
31
|
-
UserService,
|
|
32
|
-
UxAppShellService,
|
|
33
18
|
} from '@eui/core';
|
|
34
19
|
import {
|
|
35
20
|
EuiBlockContentComponentModule,
|
|
36
21
|
EuiButtonModule,
|
|
37
22
|
EuiLabelModule,
|
|
38
23
|
} from '@eui/components-next';
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
import {
|
|
25
|
+
CsdrCoreModule,
|
|
26
|
+
} from '@csdr/core';
|
|
42
27
|
|
|
43
28
|
import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
44
29
|
import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
@@ -48,27 +33,13 @@ import { appConfig } from '../config';
|
|
|
48
33
|
|
|
49
34
|
import { Module as RootPackageCommonModule } from '@module.scope@/@module.name@';
|
|
50
35
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
I18nServiceMapping,
|
|
54
|
-
NG_ZONE_HOST_TOKEN,
|
|
55
|
-
PUSH_NOTIFICATION_SERVICE_HOST_TOKEN,
|
|
56
|
-
PushNotificationServiceMapping,
|
|
57
|
-
USER_SERVICE_HOST_TOKEN,
|
|
58
|
-
UserServiceMapping,
|
|
59
|
-
UX_APP_SHELL_SERVICE_HOST_TOKEN,
|
|
60
|
-
UX_SERVICE_HOST_TOKEN,
|
|
61
|
-
UxAppShellServiceMapping,
|
|
62
|
-
} from '@csdr/integration';
|
|
36
|
+
DEFAULT_MAPPED_PROVIDERS,
|
|
37
|
+
} from '@csdr/integration/element';
|
|
63
38
|
import { RoutingModule } from './routing.module';
|
|
64
39
|
|
|
65
40
|
import { FallbackComponent } from './fallback.component';
|
|
66
41
|
import { ModuleComponent } from './module.component';
|
|
67
42
|
|
|
68
|
-
export function openidConnectInterceptorFactory(config) {
|
|
69
|
-
return new OpenIdConnectInterceptor();
|
|
70
|
-
}
|
|
71
|
-
|
|
72
43
|
@NgModule({
|
|
73
44
|
imports: [
|
|
74
45
|
BrowserModule,
|
|
@@ -81,6 +52,7 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
81
52
|
TranslateModule.forRoot(translateConfig),
|
|
82
53
|
|
|
83
54
|
CoreModule.forRoot(),
|
|
55
|
+
CsdrCoreModule.forRoot(),
|
|
84
56
|
|
|
85
57
|
EuiBlockContentComponentModule,
|
|
86
58
|
EuiButtonModule,
|
|
@@ -103,102 +75,8 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
103
75
|
provide: EUI_CONFIG_TOKEN,
|
|
104
76
|
useValue: { appConfig: { ...appConfig, ...environment }, environment },
|
|
105
77
|
},
|
|
106
|
-
// TODO[REMOTE-SETUP] uncomment if LanguageInterceptor is used
|
|
107
|
-
// {
|
|
108
|
-
// provide: HTTP_INTERCEPTORS,
|
|
109
|
-
// useClass: LanguageInterceptor,
|
|
110
|
-
// deps: [CONFIG_TOKEN, StorageService],
|
|
111
|
-
// multi: true,
|
|
112
|
-
// },
|
|
113
|
-
{
|
|
114
|
-
provide: HTTP_INTERCEPTORS,
|
|
115
|
-
useClass: CorsSecurityInterceptor,
|
|
116
|
-
multi: true,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
provide: HTTP_INTERCEPTORS,
|
|
120
|
-
useClass: EuLoginSessionTimeoutHandlingInterceptor,
|
|
121
|
-
multi: true,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
provide: HTTP_INTERCEPTORS,
|
|
125
|
-
useClass: CsrfPreventionInterceptor,
|
|
126
|
-
multi: true,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
provide: HTTP_INTERCEPTORS,
|
|
130
|
-
useClass: CachePreventionInterceptor,
|
|
131
|
-
multi: true,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
provide: HTTP_INTERCEPTORS,
|
|
135
|
-
useFactory: openidConnectInterceptorFactory,
|
|
136
|
-
deps: [CONFIG_TOKEN],
|
|
137
|
-
multi: true,
|
|
138
|
-
},
|
|
139
|
-
// TODO[REMOTE-SETUP] uncomment if zipkin is used
|
|
140
|
-
// {
|
|
141
|
-
// provide: HTTP_INTERCEPTORS,
|
|
142
|
-
// useClass: ZipkinHttpInterceptor,
|
|
143
|
-
// deps: [TRACE_LOCAL_SERVICE_NAME, ZipkinTraceManager],
|
|
144
|
-
// multi: true,
|
|
145
|
-
// },
|
|
146
|
-
|
|
147
|
-
// used in the el-mappers
|
|
148
|
-
{ provide: I18N_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['I18nService'] },
|
|
149
|
-
{ provide: PUSH_NOTIFICATION_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['PushNotificationsService'] },
|
|
150
|
-
{ provide: USER_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UserService'] },
|
|
151
|
-
{ provide: UX_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxService'] },
|
|
152
|
-
{ provide: UX_APP_SHELL_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxAppShellService'] },
|
|
153
|
-
{ provide: NG_ZONE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['ngZone'] },
|
|
154
|
-
// TODO[REMOTE-SETUP] uncomment if LanguageInterceptor or StorageService is used
|
|
155
|
-
// { provide: StorageService, useFactory: () => window['PROVIDERS']['StorageService'] },
|
|
156
78
|
|
|
157
|
-
|
|
158
|
-
provide: I18nService,
|
|
159
|
-
useFactory: (
|
|
160
|
-
config: any,
|
|
161
|
-
translateService: TranslateService,
|
|
162
|
-
logService: LogService,
|
|
163
|
-
store: StoreService,
|
|
164
|
-
document: Document,
|
|
165
|
-
hostI18nService: any) => new I18nServiceMapping(
|
|
166
|
-
config, translateService, logService, store, document, hostI18nService),
|
|
167
|
-
deps: [GLOBAL_CONFIG_TOKEN, TranslateService, LogService, StoreService, DOCUMENT, I18N_SERVICE_HOST_TOKEN],
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
provide: PushNotificationsService,
|
|
171
|
-
useFactory: (
|
|
172
|
-
zone: NgZone,
|
|
173
|
-
hostPushNotificationService: any) => new PushNotificationServiceMapping(zone, hostPushNotificationService),
|
|
174
|
-
deps: [NgZone, PUSH_NOTIFICATION_SERVICE_HOST_TOKEN],
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
provide: UserService,
|
|
178
|
-
useFactory: (storeService: StoreService, hostUserService: any) => new UserServiceMapping(storeService, hostUserService),
|
|
179
|
-
deps: [StoreService, USER_SERVICE_HOST_TOKEN],
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
provide: UxAppShellService,
|
|
183
|
-
useFactory: (
|
|
184
|
-
config: any,
|
|
185
|
-
http: HttpClient,
|
|
186
|
-
platformId: any,
|
|
187
|
-
router: Router,
|
|
188
|
-
storeService: StoreService,
|
|
189
|
-
iI18nService: I18nService,
|
|
190
|
-
hostUxService: any,
|
|
191
|
-
hostUxAppShellService: any,
|
|
192
|
-
hostNgZone) => new UxAppShellServiceMapping(
|
|
193
|
-
config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService, hostNgZone),
|
|
194
|
-
deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService,
|
|
195
|
-
UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN, NG_ZONE_HOST_TOKEN],
|
|
196
|
-
},
|
|
197
|
-
{ provide: BreadcrumbsService, useFactory: () => window['PROVIDERS']['BreadcrumbsService'], deps: [] },
|
|
198
|
-
{ provide: ELEMENT_ROUTER_TOKEN, useFactory: () => window['PROVIDERS']['ELEMENT_ROUTER_TOKEN'], deps: [] },
|
|
199
|
-
// TODO[REMOTE-SETUP] uncomment if zipkin is used
|
|
200
|
-
// { provide: TRACE_LOCAL_SERVICE_NAME, useFactory: () => window['PROVIDERS']['TRACE_LOCAL_SERVICE_NAME'], deps: [] },
|
|
201
|
-
// { provide: ZipkinTraceManager, useFactory: () => window['PROVIDERS']['ZipkinTraceManager'], deps: [] },
|
|
79
|
+
...DEFAULT_MAPPED_PROVIDERS,
|
|
202
80
|
],
|
|
203
81
|
})
|
|
204
82
|
export class AppModule {
|
|
@@ -3,7 +3,7 @@ import { RouterModule, Routes, Router, NavigationStart } from '@angular/router';
|
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { filter, distinctUntilChanged } from 'rxjs/operators';
|
|
5
5
|
|
|
6
|
-
import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration';
|
|
6
|
+
import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration/element';
|
|
7
7
|
|
|
8
8
|
import { routes } from '@module.scope@/@module.name@';
|
|
9
9
|
import { appConfig } from '../config/index';
|
package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
-
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
-
// The list of file replacements can be found in `angular.json`.
|
|
4
|
-
|
|
5
1
|
export const environment = {
|
|
6
2
|
production: false,
|
|
7
3
|
};
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* In development mode, to ignore zone related error stack frames such as
|
|
11
|
-
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
|
|
12
|
-
* import the following file, but please comment it out in production mode
|
|
13
|
-
* because it will have performance impact when throw error
|
|
14
|
-
*/
|
|
15
|
-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
@@ -4,7 +4,7 @@ import 'zone.js/dist/zone-testing';
|
|
|
4
4
|
import { getTestBed } from '@angular/core/testing';
|
|
5
5
|
import {
|
|
6
6
|
BrowserDynamicTestingModule,
|
|
7
|
-
platformBrowserDynamicTesting
|
|
7
|
+
platformBrowserDynamicTesting,
|
|
8
8
|
} from '@angular/platform-browser-dynamic/testing';
|
|
9
9
|
|
|
10
10
|
declare const require: any;
|
|
@@ -12,7 +12,7 @@ declare const require: any;
|
|
|
12
12
|
// First, initialize the Angular testing environment.
|
|
13
13
|
getTestBed().initTestEnvironment(
|
|
14
14
|
BrowserDynamicTestingModule,
|
|
15
|
-
platformBrowserDynamicTesting()
|
|
15
|
+
platformBrowserDynamicTesting(),
|
|
16
16
|
);
|
|
17
17
|
// Then we find all the tests.
|
|
18
18
|
const context = require.context('./', true, /\.spec\.ts$/);
|
|
@@ -348,6 +348,11 @@ module.exports.run = () => {
|
|
|
348
348
|
return utils.git.mergeMasterToDevelop(project, project.folder);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
+
|
|
352
|
+
if (isSupportBranch && project.build && project.build.supportSnapshotBranch) {
|
|
353
|
+
utils.tools.logInfo('Branch is support / supportSnapshotBranch config detected');
|
|
354
|
+
return utils.git.mergeSupportToSupportDevelop(project, project.folder, branch, project.build.supportSnapshotBranch);
|
|
355
|
+
}
|
|
351
356
|
}
|
|
352
357
|
})
|
|
353
358
|
|