@eui/cli 19.0.0-next.15 → 19.0.0-next.17
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/lib/skeletons/_angular/base/package.json +2 -2
- package/lib/skeletons/_angular/base-mobile/package.json +1 -1
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +20 -30
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.config.ts +25 -5
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +20 -30
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +25 -5
- package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
- package/package.json +2 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.0.0-next.
|
|
1
|
+
19.0.0-next.17
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.17",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": true,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@eui/deps-base": "19.0.0-next.
|
|
24
|
+
"@eui/deps-base": "19.0.0-next.17"
|
|
25
25
|
},
|
|
26
26
|
"resolutions": {
|
|
27
27
|
"js-yaml": ">=3.13.1",
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
import {
|
|
1
|
+
import { Component, OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { RouterOutlet } from '@angular/router';
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
UserService,
|
|
5
5
|
UserState,
|
|
6
|
-
CoreState,
|
|
7
6
|
} from '@eui/core';
|
|
8
|
-
import { Observable, Subscription } from 'rxjs';
|
|
9
|
-
import { EclSiteHeaderModule, EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
|
|
10
|
-
import { EclMenuItemSelectEvent, EclMenuModule } from '@eui/ecl/components/ecl-menu';
|
|
11
7
|
import { EclAppModule } from '@eui/ecl/components/ecl-app';
|
|
12
|
-
import { EclIconModule } from '@eui/ecl/components/ecl-icon';
|
|
13
|
-
import { EclSiteFooterModule } from '@eui/ecl/components/ecl-site-footer';
|
|
14
8
|
import { EclBreadcrumbModule } from '@eui/ecl/components/ecl-breadcrumb';
|
|
9
|
+
import { EclIconModule } from '@eui/ecl/components/ecl-icon';
|
|
10
|
+
import { EclMenuItemSelectEvent, EclMenuModule } from '@eui/ecl/components/ecl-menu';
|
|
11
|
+
import { EclLinkModule } from '@eui/ecl/components/ecl-link';
|
|
15
12
|
import { EclPageHeaderModule } from '@eui/ecl/components/ecl-page-header';
|
|
16
|
-
import {
|
|
13
|
+
import { EclSiteFooterModule } from '@eui/ecl/components/ecl-site-footer';
|
|
14
|
+
import { EclSiteHeaderLoginEvent, EclSiteHeaderModule, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
|
|
17
15
|
import { TranslateModule } from '@ngx-translate/core';
|
|
18
16
|
|
|
19
17
|
@Component({
|
|
@@ -24,6 +22,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
24
22
|
EclAppModule,
|
|
25
23
|
EclBreadcrumbModule,
|
|
26
24
|
EclIconModule,
|
|
25
|
+
EclLinkModule,
|
|
27
26
|
EclMenuModule,
|
|
28
27
|
EclPageHeaderModule,
|
|
29
28
|
EclSiteHeaderModule,
|
|
@@ -32,44 +31,35 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
32
31
|
TranslateModule,
|
|
33
32
|
]
|
|
34
33
|
})
|
|
35
|
-
export class AppComponent implements
|
|
36
|
-
userInfos: UserState;
|
|
37
|
-
// Observe state changes
|
|
38
|
-
userState: Observable<UserState>;
|
|
39
|
-
// an array to keep all subscriptions and easily unsubscribe
|
|
40
|
-
subs: Subscription[] = [];
|
|
34
|
+
export class AppComponent implements OnInit {
|
|
41
35
|
|
|
42
36
|
isLoggedIn = false;
|
|
37
|
+
userState: Signal<UserState>;
|
|
38
|
+
userInfos: UserState;
|
|
43
39
|
|
|
44
|
-
constructor(
|
|
45
|
-
private store: Store<CoreState>,
|
|
46
|
-
) {
|
|
47
|
-
this.userState = this.store.select(getUserState);
|
|
48
|
-
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
49
|
-
this.userInfos = { ...user };
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
40
|
+
constructor(private userService: UserService<UserState>,) { }
|
|
52
41
|
|
|
53
|
-
|
|
54
|
-
this.
|
|
42
|
+
ngOnInit(): void {
|
|
43
|
+
this.userState = this.userService.getSignal();
|
|
44
|
+
this.userInfos = this.userState();
|
|
55
45
|
}
|
|
56
46
|
|
|
57
|
-
onLogin(evt: EclSiteHeaderLoginEvent) {
|
|
47
|
+
onLogin(evt: EclSiteHeaderLoginEvent): void {
|
|
58
48
|
this.isLoggedIn = true;
|
|
59
49
|
console.log(evt);
|
|
60
50
|
}
|
|
61
51
|
|
|
62
|
-
onLogout(evt: MouseEvent) {
|
|
52
|
+
onLogout(evt: MouseEvent): void {
|
|
63
53
|
this.isLoggedIn = false;
|
|
64
54
|
evt.preventDefault();
|
|
65
55
|
console.log('logout');
|
|
66
56
|
}
|
|
67
57
|
|
|
68
|
-
onSearch(evt: EclSiteHeaderSearchEvent) {
|
|
58
|
+
onSearch(evt: EclSiteHeaderSearchEvent): void {
|
|
69
59
|
console.log(evt);
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
onMenuItemSelected(evt: EclMenuItemSelectEvent) {
|
|
62
|
+
onMenuItemSelected(evt: EclMenuItemSelectEvent): void {
|
|
73
63
|
console.log('menu item selected', evt);
|
|
74
64
|
}
|
|
75
65
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { inject, provideAppInitializer } from '@angular/core';
|
|
1
2
|
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
2
3
|
import { provideRouter } from '@angular/router';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
|
|
4
6
|
import { routes } from './app.routes';
|
|
5
7
|
import { AppStarterService } from './app-starter.service';
|
|
8
|
+
|
|
6
9
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
10
|
|
|
8
11
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
@@ -14,19 +17,29 @@ import {
|
|
|
14
17
|
CoreModule as EuiCoreModule,
|
|
15
18
|
translateConfig,
|
|
16
19
|
EUI_CONFIG_TOKEN,
|
|
20
|
+
provideEuiInitializer,
|
|
21
|
+
EuiServiceStatus,
|
|
17
22
|
} from '@eui/core';
|
|
18
23
|
|
|
19
24
|
import { appConfig as euiAppConfig} from '../config';
|
|
20
25
|
import { environment } from '../environments/environment';
|
|
26
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The provided function is injected at application startup and executed during
|
|
30
|
+
* app initialization. If the function returns a Promise or an Observable, initialization
|
|
31
|
+
* does not complete until the Promise is resolved or the Observable is completed.
|
|
32
|
+
*/
|
|
33
|
+
const init = (): Observable<EuiServiceStatus> => {
|
|
34
|
+
const appStarter = inject(AppStarterService);
|
|
35
|
+
return appStarter.start();
|
|
36
|
+
};
|
|
21
37
|
|
|
22
38
|
export const appConfig: ApplicationConfig = {
|
|
23
39
|
providers: [
|
|
24
|
-
importProvidersFrom(EuiCoreModule.forRoot()),
|
|
25
|
-
importProvidersFrom(TranslateModule.forRoot(translateConfig)),
|
|
26
|
-
provideHttpClient(withInterceptorsFromDi()),
|
|
27
40
|
{
|
|
28
41
|
provide: EUI_CONFIG_TOKEN,
|
|
29
|
-
useValue: { euiAppConfig, environment }
|
|
42
|
+
useValue: { appConfig: euiAppConfig, environment }
|
|
30
43
|
},
|
|
31
44
|
{
|
|
32
45
|
// Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
|
|
@@ -57,8 +70,15 @@ export const appConfig: ApplicationConfig = {
|
|
|
57
70
|
useClass: CachePreventionInterceptor,
|
|
58
71
|
multi: true,
|
|
59
72
|
},
|
|
60
|
-
|
|
73
|
+
provideEuiInitializer(),
|
|
74
|
+
provideAppInitializer(init),
|
|
75
|
+
provideHttpClient(withInterceptorsFromDi()),
|
|
76
|
+
importProvidersFrom(
|
|
77
|
+
EuiCoreModule.forRoot(),
|
|
78
|
+
TranslateModule.forRoot(translateConfig)
|
|
79
|
+
),
|
|
61
80
|
AppStarterService,
|
|
62
81
|
provideRouter(routes),
|
|
82
|
+
provideAnimations(),
|
|
63
83
|
],
|
|
64
84
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
import {
|
|
1
|
+
import { Component, OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { RouterOutlet } from '@angular/router';
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
UserService,
|
|
5
5
|
UserState,
|
|
6
|
-
CoreState,
|
|
7
6
|
} from '@eui/core';
|
|
8
|
-
import { Observable, Subscription } from 'rxjs';
|
|
9
|
-
import { EclSiteHeaderModule, EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
|
|
10
|
-
import { EclMenuItemSelectEvent, EclMenuModule } from '@eui/ecl/components/ecl-menu';
|
|
11
7
|
import { EclAppModule } from '@eui/ecl/components/ecl-app';
|
|
12
|
-
import { EclIconModule } from '@eui/ecl/components/ecl-icon';
|
|
13
|
-
import { EclSiteFooterModule } from '@eui/ecl/components/ecl-site-footer';
|
|
14
8
|
import { EclBreadcrumbModule } from '@eui/ecl/components/ecl-breadcrumb';
|
|
9
|
+
import { EclIconModule } from '@eui/ecl/components/ecl-icon';
|
|
10
|
+
import { EclMenuItemSelectEvent, EclMenuModule } from '@eui/ecl/components/ecl-menu';
|
|
11
|
+
import { EclLinkModule } from '@eui/ecl/components/ecl-link';
|
|
15
12
|
import { EclPageHeaderModule } from '@eui/ecl/components/ecl-page-header';
|
|
16
|
-
import {
|
|
13
|
+
import { EclSiteFooterModule } from '@eui/ecl/components/ecl-site-footer';
|
|
14
|
+
import { EclSiteHeaderLoginEvent, EclSiteHeaderModule, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
|
|
17
15
|
import { TranslateModule } from '@ngx-translate/core';
|
|
18
16
|
|
|
19
17
|
@Component({
|
|
@@ -24,6 +22,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
24
22
|
EclAppModule,
|
|
25
23
|
EclBreadcrumbModule,
|
|
26
24
|
EclIconModule,
|
|
25
|
+
EclLinkModule,
|
|
27
26
|
EclMenuModule,
|
|
28
27
|
EclPageHeaderModule,
|
|
29
28
|
EclSiteHeaderModule,
|
|
@@ -32,44 +31,35 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
32
31
|
TranslateModule,
|
|
33
32
|
]
|
|
34
33
|
})
|
|
35
|
-
export class AppComponent implements
|
|
36
|
-
userInfos: UserState;
|
|
37
|
-
// Observe state changes
|
|
38
|
-
userState: Observable<UserState>;
|
|
39
|
-
// an array to keep all subscriptions and easily unsubscribe
|
|
40
|
-
subs: Subscription[] = [];
|
|
34
|
+
export class AppComponent implements OnInit {
|
|
41
35
|
|
|
42
36
|
isLoggedIn = false;
|
|
37
|
+
userState: Signal<UserState>;
|
|
38
|
+
userInfos: UserState;
|
|
43
39
|
|
|
44
|
-
constructor(
|
|
45
|
-
private store: Store<CoreState>,
|
|
46
|
-
) {
|
|
47
|
-
this.userState = this.store.select(getUserState);
|
|
48
|
-
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
49
|
-
this.userInfos = { ...user };
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
40
|
+
constructor(private userService: UserService<UserState>,) { }
|
|
52
41
|
|
|
53
|
-
|
|
54
|
-
this.
|
|
42
|
+
ngOnInit(): void {
|
|
43
|
+
this.userState = this.userService.getSignal();
|
|
44
|
+
this.userInfos = this.userState();
|
|
55
45
|
}
|
|
56
46
|
|
|
57
|
-
onLogin(evt: EclSiteHeaderLoginEvent) {
|
|
47
|
+
onLogin(evt: EclSiteHeaderLoginEvent): void {
|
|
58
48
|
this.isLoggedIn = true;
|
|
59
49
|
console.log(evt);
|
|
60
50
|
}
|
|
61
51
|
|
|
62
|
-
onLogout(evt: MouseEvent) {
|
|
52
|
+
onLogout(evt: MouseEvent): void {
|
|
63
53
|
this.isLoggedIn = false;
|
|
64
54
|
evt.preventDefault();
|
|
65
55
|
console.log('logout');
|
|
66
56
|
}
|
|
67
57
|
|
|
68
|
-
onSearch(evt: EclSiteHeaderSearchEvent) {
|
|
58
|
+
onSearch(evt: EclSiteHeaderSearchEvent): void {
|
|
69
59
|
console.log(evt);
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
onMenuItemSelected(evt: EclMenuItemSelectEvent) {
|
|
62
|
+
onMenuItemSelected(evt: EclMenuItemSelectEvent): void {
|
|
73
63
|
console.log('menu item selected', evt);
|
|
74
64
|
}
|
|
75
65
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { inject, provideAppInitializer } from '@angular/core';
|
|
1
2
|
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
2
3
|
import { provideRouter } from '@angular/router';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
|
|
4
6
|
import { routes } from './app.routes';
|
|
5
7
|
import { AppStarterService } from './app-starter.service';
|
|
8
|
+
|
|
6
9
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
10
|
|
|
8
11
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
@@ -14,19 +17,29 @@ import {
|
|
|
14
17
|
CoreModule as EuiCoreModule,
|
|
15
18
|
translateConfig,
|
|
16
19
|
EUI_CONFIG_TOKEN,
|
|
20
|
+
provideEuiInitializer,
|
|
21
|
+
EuiServiceStatus,
|
|
17
22
|
} from '@eui/core';
|
|
18
23
|
|
|
19
24
|
import { appConfig as euiAppConfig} from '../config';
|
|
20
25
|
import { environment } from '../environments/environment';
|
|
26
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The provided function is injected at application startup and executed during
|
|
30
|
+
* app initialization. If the function returns a Promise or an Observable, initialization
|
|
31
|
+
* does not complete until the Promise is resolved or the Observable is completed.
|
|
32
|
+
*/
|
|
33
|
+
const init = (): Observable<EuiServiceStatus> => {
|
|
34
|
+
const appStarter = inject(AppStarterService);
|
|
35
|
+
return appStarter.start();
|
|
36
|
+
};
|
|
21
37
|
|
|
22
38
|
export const appConfig: ApplicationConfig = {
|
|
23
39
|
providers: [
|
|
24
|
-
importProvidersFrom(EuiCoreModule.forRoot()),
|
|
25
|
-
importProvidersFrom(TranslateModule.forRoot(translateConfig)),
|
|
26
|
-
provideHttpClient(withInterceptorsFromDi()),
|
|
27
40
|
{
|
|
28
41
|
provide: EUI_CONFIG_TOKEN,
|
|
29
|
-
useValue: { euiAppConfig, environment }
|
|
42
|
+
useValue: { appConfig: euiAppConfig, environment }
|
|
30
43
|
},
|
|
31
44
|
{
|
|
32
45
|
// Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
|
|
@@ -57,8 +70,15 @@ export const appConfig: ApplicationConfig = {
|
|
|
57
70
|
useClass: CachePreventionInterceptor,
|
|
58
71
|
multi: true,
|
|
59
72
|
},
|
|
60
|
-
|
|
73
|
+
provideEuiInitializer(),
|
|
74
|
+
provideAppInitializer(init),
|
|
75
|
+
provideHttpClient(withInterceptorsFromDi()),
|
|
76
|
+
importProvidersFrom(
|
|
77
|
+
EuiCoreModule.forRoot(),
|
|
78
|
+
TranslateModule.forRoot(translateConfig)
|
|
79
|
+
),
|
|
61
80
|
AppStarterService,
|
|
62
81
|
provideRouter(routes),
|
|
82
|
+
provideAnimations(),
|
|
63
83
|
],
|
|
64
84
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.17",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"description": "eUI JEE Symfony app scripts",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"private": true,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eui/deps-base": "19.0.0-next.
|
|
21
|
+
"@eui/deps-base": "19.0.0-next.17"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/cli",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.17",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI CLI app generator",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@eui/tools": "6.21.
|
|
16
|
+
"@eui/tools": "6.21.10"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eui/tools": "^6.0.0",
|