@eui/cli 18.0.0-next.9 → 18.0.0-rc.2
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/bin/eui-cli.js +4 -3
- package/lib/install.js +0 -1
- package/lib/skeletons/_angular/base/angular.json +5 -4
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +2 -0
- package/lib/skeletons/_angular/base/package.json +2 -2
- package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +65 -0
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +4 -2
- package/lib/skeletons/_angular/base/src/app/app.component.html +5 -2
- package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +31 -0
- package/lib/skeletons/_angular/base/src/app/app.module.spec.ts +31 -0
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +4 -0
- package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +2 -1
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +2 -1
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +4 -0
- package/lib/skeletons/_angular/base/src/config/global.ts +1 -1
- package/lib/skeletons/_angular/base/src/config/index.ts +1 -1
- package/lib/skeletons/_angular/base/src/config/modules.ts +1 -1
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +1 -1
- package/lib/skeletons/_angular/base/src/environments/environment.ts +1 -1
- package/lib/skeletons/_angular/base/src/index.html +1 -1
- package/lib/skeletons/_angular/base-mobile/angular.json +1 -1
- package/lib/skeletons/_angular/base-mobile/package.json +4 -4
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +5 -4
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +2 -1
- package/lib/skeletons/_angular/options/ecl-ec/angular.json +5 -5
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +2 -2
- package/lib/skeletons/_angular/options/ecl-ec/src/config/global.ts +1 -1
- package/lib/skeletons/_angular/options/ecl-eu/angular.json +5 -5
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +2 -2
- package/lib/skeletons/_angular/options/ecl-eu/src/config/global.ts +1 -1
- package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
- package/package.json +3 -3
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.0.0-
|
|
1
|
+
18.0.0-rc.2
|
package/bin/eui-cli.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const tools = require('@eui/tools/scripts/utils/tools');
|
|
4
3
|
const chalk = require('chalk');
|
|
4
|
+
const tools = require('@eui/tools/scripts/utils/tools');
|
|
5
5
|
const figlet = require('figlet');
|
|
6
6
|
const path = require('path');
|
|
7
|
+
const fs = require('fs');
|
|
7
8
|
const generators = require('../lib/generators');
|
|
8
9
|
const config = require('../lib/config');
|
|
9
10
|
|
|
@@ -31,8 +32,8 @@ if (args.targetPath) {
|
|
|
31
32
|
targetPath = path.join(targetPath, 'packages');
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
if (
|
|
35
|
-
|
|
35
|
+
if (fs.readdirSync(targetPath).length < 1) {
|
|
36
|
+
fs.mkdirSync(targetPath);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
// otherwise taking the default config targetPath defined
|
package/lib/install.js
CHANGED
|
@@ -39,13 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"glob": "**/*",
|
|
42
|
-
"input": "node_modules/@eui/styles
|
|
42
|
+
"input": "node_modules/@eui/styles/dist/assets/",
|
|
43
43
|
"output": "./assets"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"styles": [
|
|
47
|
-
"node_modules/@eui/styles/dist/
|
|
48
|
-
"node_modules/@eui/styles/dist/
|
|
47
|
+
"node_modules/@eui/styles/dist/eui.css",
|
|
48
|
+
"node_modules/@eui/styles/dist/eui-utilities.css",
|
|
49
|
+
"node_modules/@eui/styles/dist/eui-theme-eui-legacy.css",
|
|
49
50
|
"src/styles.scss"
|
|
50
51
|
]
|
|
51
52
|
},
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
},
|
|
146
147
|
{
|
|
147
148
|
"glob": "**/*",
|
|
148
|
-
"input": "node_modules/@eui/styles
|
|
149
|
+
"input": "node_modules/@eui/styles/dist/assets/",
|
|
149
150
|
"output": "./assets"
|
|
150
151
|
}
|
|
151
152
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.0-
|
|
3
|
+
"version": "18.0.0-rc.2",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"private": true,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@eui/deps-base": "18.0.0-
|
|
23
|
+
"@eui/deps-base": "18.0.0-rc.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { RouterModule, Routes } from '@angular/router';
|
|
3
3
|
|
|
4
|
-
const routes: Routes = [
|
|
4
|
+
export const routes: Routes = [
|
|
5
5
|
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
6
|
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
7
|
{ path: 'screen/home', loadChildren: () => import('./features/home/home.module').then(m => m.Module) },
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {TestBed} from '@angular/core/testing';
|
|
2
|
+
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
|
|
3
|
+
import {CONFIG_TOKEN, I18nService, UserService} from '@eui/core';
|
|
4
|
+
import {EuiAppConfig} from '@eui/base';
|
|
5
|
+
import {of} from 'rxjs';
|
|
6
|
+
import {AppStarterService} from './app-starter.service';
|
|
7
|
+
import SpyObj = jasmine.SpyObj;
|
|
8
|
+
|
|
9
|
+
describe('AppStarterService', () => {
|
|
10
|
+
let service: AppStarterService;
|
|
11
|
+
let httpMock: HttpTestingController;
|
|
12
|
+
let userServiceMock: SpyObj<UserService>;
|
|
13
|
+
let i18nServiceMock: SpyObj<I18nService>;
|
|
14
|
+
let configMock: EuiAppConfig;
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
userServiceMock = jasmine.createSpyObj('UserService', ['init']);
|
|
18
|
+
i18nServiceMock = jasmine.createSpyObj('I18nService', ['init']);
|
|
19
|
+
configMock = {global: {}, modules: {core: {base: 'localhost:3000', userDetails: 'dummy'}}};
|
|
20
|
+
|
|
21
|
+
TestBed.configureTestingModule({
|
|
22
|
+
imports: [HttpClientTestingModule],
|
|
23
|
+
providers: [
|
|
24
|
+
AppStarterService,
|
|
25
|
+
{provide: UserService, useValue: userServiceMock},
|
|
26
|
+
{provide: I18nService, useValue: i18nServiceMock},
|
|
27
|
+
{provide: CONFIG_TOKEN, useValue: configMock},
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
service = TestBed.inject(AppStarterService);
|
|
32
|
+
httpMock = TestBed.inject(HttpTestingController);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should be created', () => {
|
|
36
|
+
expect(service).toBeTruthy();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should call start method', () => {
|
|
40
|
+
userServiceMock.init.and.returnValue(of(null));
|
|
41
|
+
i18nServiceMock.init.and.returnValue(of(null));
|
|
42
|
+
service.start().subscribe(() => {
|
|
43
|
+
expect(userServiceMock.init).toHaveBeenCalled();
|
|
44
|
+
expect(i18nServiceMock.init).toHaveBeenCalled();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('should call initUserService method', () => {
|
|
49
|
+
userServiceMock.init.and.returnValue(of(null));
|
|
50
|
+
service.initUserService().subscribe(() => {
|
|
51
|
+
expect(userServiceMock.init).toHaveBeenCalled();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('should fetch user details', () => {
|
|
56
|
+
const dummyUserDetails = {userId: 'anonymous'};
|
|
57
|
+
service['fetchUserDetails']().subscribe(userDetails => {
|
|
58
|
+
expect(userDetails).toEqual(dummyUserDetails);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const req = httpMock.expectOne(`${configMock.modules.core.base}${configMock.modules.core.userDetails}`);
|
|
62
|
+
expect(req.request.method).toBe('GET');
|
|
63
|
+
req.flush(dummyUserDetails);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
@@ -2,11 +2,13 @@ import { Inject, Injectable } from '@angular/core';
|
|
|
2
2
|
import {
|
|
3
3
|
CONFIG_TOKEN,
|
|
4
4
|
UserService,
|
|
5
|
+
I18nService,
|
|
6
|
+
} from '@eui/core';
|
|
7
|
+
import {
|
|
5
8
|
EuiAppConfig,
|
|
6
9
|
UserDetails,
|
|
7
10
|
UserPreferences,
|
|
8
|
-
|
|
9
|
-
} from '@eui/core';
|
|
11
|
+
} from '@eui/base';
|
|
10
12
|
import { HttpClient } from '@angular/common/http';
|
|
11
13
|
import { Observable, of, zip } from 'rxjs';
|
|
12
14
|
import { switchMap } from 'rxjs/operators';
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
<eui-toolbar-logo></eui-toolbar-logo>
|
|
5
5
|
<eui-toolbar-app appName="appName"></eui-toolbar-app>
|
|
6
6
|
<eui-toolbar-environment>MOCK</eui-toolbar-environment>
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
<eui-toolbar-items>
|
|
8
9
|
<eui-toolbar-item>
|
|
9
|
-
<eui-user-profile
|
|
10
|
+
<eui-user-profile isShowAvatarInitials>
|
|
10
11
|
<eui-user-profile-menu>
|
|
11
12
|
<eui-user-profile-menu-item>
|
|
12
13
|
<eui-icon-svg icon="old-eui-person-thin"></eui-icon-svg> {{ 'eui.my-profile-informations' | translate }}
|
|
@@ -22,6 +23,8 @@
|
|
|
22
23
|
<eui-notifications [count]="notificationItems?.length" [items]="notificationItems"></eui-notifications>
|
|
23
24
|
</eui-toolbar-item>
|
|
24
25
|
</eui-toolbar-items>
|
|
26
|
+
|
|
27
|
+
<eui-language-selector></eui-language-selector>
|
|
25
28
|
</eui-toolbar>
|
|
26
29
|
</eui-app-toolbar>
|
|
27
30
|
<eui-app-sidebar>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
+
import {RouterModule} from '@angular/router';
|
|
3
|
+
import {AppComponent} from './app.component';
|
|
4
|
+
import {EuiAppModule} from '@eui/components/layout';
|
|
5
|
+
import {HttpClientTestingModule} from '@angular/common/http/testing';
|
|
6
|
+
import {CoreModule} from "./core/core.module";
|
|
7
|
+
import {routes} from "./app-routing.module";
|
|
8
|
+
|
|
9
|
+
describe('AppComponent', () => {
|
|
10
|
+
let component: AppComponent;
|
|
11
|
+
let fixture: ComponentFixture<AppComponent>;
|
|
12
|
+
|
|
13
|
+
beforeEach(async () => {
|
|
14
|
+
await TestBed.configureTestingModule({
|
|
15
|
+
imports: [
|
|
16
|
+
RouterModule.forRoot(routes),
|
|
17
|
+
CoreModule,
|
|
18
|
+
EuiAppModule,
|
|
19
|
+
HttpClientTestingModule,
|
|
20
|
+
],
|
|
21
|
+
declarations: [AppComponent],
|
|
22
|
+
}).compileComponents();
|
|
23
|
+
|
|
24
|
+
fixture = TestBed.createComponent(AppComponent);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('should create the app', () => {
|
|
29
|
+
expect(component).toBeTruthy();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {TestBed} from '@angular/core/testing';
|
|
2
|
+
import {AppModule} from './app.module';
|
|
3
|
+
import {AppStarterService} from './app-starter.service';
|
|
4
|
+
import {of} from 'rxjs';
|
|
5
|
+
|
|
6
|
+
describe('AppModule', () => {
|
|
7
|
+
let appStarterService: AppStarterService;
|
|
8
|
+
|
|
9
|
+
beforeAll(() => {
|
|
10
|
+
TestBed.resetTestingModule()
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
beforeEach(async () => {
|
|
14
|
+
const appStarterServiceMock = {
|
|
15
|
+
start: jasmine.createSpy('start').and.returnValue(of(null)),
|
|
16
|
+
};
|
|
17
|
+
await TestBed.configureTestingModule({
|
|
18
|
+
imports: [AppModule],
|
|
19
|
+
providers: [
|
|
20
|
+
{provide: AppStarterService, useValue: appStarterServiceMock},
|
|
21
|
+
],
|
|
22
|
+
}).compileComponents();
|
|
23
|
+
|
|
24
|
+
appStarterService = TestBed.inject(AppStarterService);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('should call start method of AppStarterService', () => {
|
|
28
|
+
expect(appStarterService.start).toHaveBeenCalled();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
});
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
EUI_CONFIG_TOKEN,
|
|
16
16
|
} from '@eui/core';
|
|
17
17
|
import { EuiLayoutModule } from '@eui/components/layout';
|
|
18
|
+
import { EuiUserProfileModule } from '@eui/components/eui-user-profile';
|
|
18
19
|
|
|
19
20
|
import { appConfig } from '../../config/index';
|
|
20
21
|
import { environment } from '../../environments/environment';
|
|
@@ -26,18 +27,21 @@ import { SharedModule } from '@shared/shared.module';
|
|
|
26
27
|
@NgModule({
|
|
27
28
|
imports: [
|
|
28
29
|
EuiLayoutModule,
|
|
30
|
+
EuiUserProfileModule,
|
|
29
31
|
SharedModule,
|
|
30
32
|
HttpClientModule,
|
|
31
33
|
EuiCoreModule.forRoot(),
|
|
32
34
|
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
33
35
|
TranslateModule.forRoot(translateConfig),
|
|
34
36
|
StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
|
|
37
|
+
StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
|
|
35
38
|
!environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
|
|
36
39
|
],
|
|
37
40
|
declarations: [
|
|
38
41
|
],
|
|
39
42
|
exports: [
|
|
40
43
|
EuiLayoutModule,
|
|
44
|
+
EuiUserProfileModule,
|
|
41
45
|
SharedModule,
|
|
42
46
|
],
|
|
43
47
|
providers: [
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { MetaReducer } from '@ngrx/store';
|
|
3
3
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
4
|
-
import { reducers as coreReducers,
|
|
4
|
+
import { reducers as coreReducers, localStorageSync } from '@eui/core';
|
|
5
|
+
import { CoreState, getAppState } from '@eui/base';
|
|
5
6
|
|
|
6
7
|
import { environment } from '../../../environments/environment';
|
|
7
8
|
|
|
@@ -10,6 +10,8 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
10
10
|
// keep here to avoid imports within features modules
|
|
11
11
|
import { EuiPageModule } from '@eui/components/eui-page';
|
|
12
12
|
import { EuiIconModule } from '@eui/components/eui-icon';
|
|
13
|
+
import { EuiUserProfileModule } from '@eui/components/eui-user-profile';
|
|
14
|
+
import { EuiLanguageSelectorModule } from '@eui/components/eui-language-selector';
|
|
13
15
|
|
|
14
16
|
// import ALL eUI components
|
|
15
17
|
// import { EuiAllModule } from '@eui/components';
|
|
@@ -23,6 +25,8 @@ const MODULES = [
|
|
|
23
25
|
// put here commonly used eUI modules components throughout the application
|
|
24
26
|
EuiPageModule,
|
|
25
27
|
EuiIconModule,
|
|
28
|
+
EuiUserProfileModule,
|
|
29
|
+
EuiLanguageSelectorModule,
|
|
26
30
|
|
|
27
31
|
// in case of you really want to import all eUI components, see commented imports above
|
|
28
32
|
// EuiAllModule,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.0-
|
|
3
|
+
"version": "18.0.0-rc.2",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"private": true,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@eui/deps-base": "16.2.
|
|
24
|
-
"@eui/mobile-core": "16.
|
|
25
|
-
"@eui/mobile-styles": "16.
|
|
23
|
+
"@eui/deps-base": "16.2.17",
|
|
24
|
+
"@eui/mobile-core": "16.10.1-snapshot-1714734024630",
|
|
25
|
+
"@eui/mobile-styles": "16.10.1-snapshot-1714734024630"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { TranslateModule } from '@ngx-translate/core';
|
|
3
3
|
import { StoreModule } from '@ngrx/store';
|
|
4
|
-
import { EffectsModule } from '@ngrx/effects';
|
|
4
|
+
// import { EffectsModule } from '@ngrx/effects';
|
|
5
5
|
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
6
6
|
|
|
7
7
|
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
EuLoginSessionTimeoutHandlingInterceptor,
|
|
16
16
|
CoreModule as EuiCoreModule,
|
|
17
17
|
translateConfig,
|
|
18
|
-
CoreModuleEffects,
|
|
18
|
+
// CoreModuleEffects,
|
|
19
19
|
EUI_CONFIG_TOKEN,
|
|
20
20
|
} from '@eui/core';
|
|
21
21
|
|
|
@@ -31,9 +31,10 @@ import { SharedModule } from '@shared/shared.module';
|
|
|
31
31
|
HttpClientModule,
|
|
32
32
|
SharedModule,
|
|
33
33
|
EuiCoreModule.forRoot(),
|
|
34
|
-
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
34
|
+
// EffectsModule.forRoot([...CoreModuleEffects]),
|
|
35
35
|
TranslateModule.forRoot(translateConfig),
|
|
36
|
-
StoreModule.forRoot(
|
|
36
|
+
StoreModule.forRoot(),
|
|
37
|
+
// StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
|
|
37
38
|
!environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
|
|
38
39
|
IonicModule.forRoot({mode: 'md'}),
|
|
39
40
|
],
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { MetaReducer } from '@ngrx/store';
|
|
3
3
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
4
|
-
import { reducers as coreReducers,
|
|
4
|
+
import { reducers as coreReducers, localStorageSync } from '@eui/core';
|
|
5
|
+
import { CoreState, getAppState } from '@eui/base';
|
|
5
6
|
|
|
6
7
|
import { environment } from '../../../environments/environment';
|
|
7
8
|
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"glob": "**/*",
|
|
42
|
-
"input": "node_modules/@eui/styles
|
|
42
|
+
"input": "node_modules/@eui/styles/dist/assets/ecl",
|
|
43
43
|
"output": "./assets/images/ecl"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"glob": "**/*",
|
|
47
|
-
"input": "node_modules/@eui/styles
|
|
47
|
+
"input": "node_modules/@eui/styles/dist/assets",
|
|
48
48
|
"output": "./assets"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
"styles": [
|
|
62
|
-
"node_modules/@eui/styles/dist/
|
|
62
|
+
"node_modules/@eui/styles/dist/eui-ecl-ec.css",
|
|
63
63
|
"src/styles.scss"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"glob": "**/*",
|
|
162
|
-
"input": "node_modules/@eui/styles
|
|
162
|
+
"input": "node_modules/@eui/styles/dist/assets/ecl",
|
|
163
163
|
"output": "./assets/images/ecl"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"glob": "**/*",
|
|
167
|
-
"input": "node_modules/@eui/styles
|
|
167
|
+
"input": "node_modules/@eui/styles/dist/assets",
|
|
168
168
|
"output": "./assets"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
@@ -3,7 +3,7 @@ import { Store } from '@ngrx/store';
|
|
|
3
3
|
import {
|
|
4
4
|
getUserState,
|
|
5
5
|
UserState,
|
|
6
|
-
} from '@eui/
|
|
6
|
+
} from '@eui/base';
|
|
7
7
|
import { Observable, Subscription } from 'rxjs';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -26,7 +26,7 @@ export class AppComponent implements OnDestroy {
|
|
|
26
26
|
isLoggedIn = false;
|
|
27
27
|
|
|
28
28
|
constructor(
|
|
29
|
-
private store: Store<
|
|
29
|
+
private store: Store<UserState>,
|
|
30
30
|
) {
|
|
31
31
|
this.userState = this.store.select(getUserState);
|
|
32
32
|
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"glob": "**/*",
|
|
42
|
-
"input": "node_modules/@eui/styles
|
|
42
|
+
"input": "node_modules/@eui/styles/dist/assets/ecl",
|
|
43
43
|
"output": "./assets/images/ecl"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"glob": "**/*",
|
|
47
|
-
"input": "node_modules/@eui/styles
|
|
47
|
+
"input": "node_modules/@eui/styles/dist/assets",
|
|
48
48
|
"output": "./assets"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
"styles": [
|
|
62
|
-
"node_modules/@eui/styles/dist/
|
|
62
|
+
"node_modules/@eui/styles/dist/eui-ecl-eu.css",
|
|
63
63
|
"src/styles.scss"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"glob": "**/*",
|
|
162
|
-
"input": "node_modules/@eui/styles
|
|
162
|
+
"input": "node_modules/@eui/styles/dist/assets/ecl",
|
|
163
163
|
"output": "./assets/images/ecl"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"glob": "**/*",
|
|
167
|
-
"input": "node_modules/@eui/styles
|
|
167
|
+
"input": "node_modules/@eui/styles/dist/assets",
|
|
168
168
|
"output": "./assets"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
@@ -3,7 +3,7 @@ import { Store } from '@ngrx/store';
|
|
|
3
3
|
import {
|
|
4
4
|
getUserState,
|
|
5
5
|
UserState,
|
|
6
|
-
} from '@eui/
|
|
6
|
+
} from '@eui/base';
|
|
7
7
|
import { Observable, Subscription } from 'rxjs';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -26,7 +26,7 @@ export class AppComponent implements OnDestroy {
|
|
|
26
26
|
isLoggedIn = false;
|
|
27
27
|
|
|
28
28
|
constructor(
|
|
29
|
-
private store: Store<
|
|
29
|
+
private store: Store<UserState>,
|
|
30
30
|
) {
|
|
31
31
|
this.userState = this.store.select(getUserState);
|
|
32
32
|
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.0-
|
|
3
|
+
"version": "18.0.0-rc.2",
|
|
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": "18.0.0-
|
|
21
|
+
"@eui/deps-base": "18.0.0-rc.2"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/cli",
|
|
3
|
-
"version": "18.0.0-
|
|
3
|
+
"version": "18.0.0-rc.2",
|
|
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.16.
|
|
16
|
+
"@eui/tools": "6.16.20"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eui/tools": "^6.0.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"homepage": "https://eui.ecdevops.eu",
|
|
28
28
|
"author": "ec.europa.eui@gmail.com",
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": "^18.
|
|
30
|
+
"node": "^18.13.0 || >=20.9.0",
|
|
31
31
|
"yarn": ">=1.22.4 <2"
|
|
32
32
|
}
|
|
33
33
|
}
|