@eui/cli 19.0.0-rc.1 → 19.0.0-rc.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.
@@ -1 +1 @@
1
- 19.0.0-rc.1
1
+ 19.0.0-rc.10
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-rc.1",
3
+ "version": "19.0.0-rc.10",
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-rc.1"
24
+ "@eui/deps-base": "19.0.0-rc.10"
25
25
  },
26
26
  "resolutions": {
27
27
  "js-yaml": ">=3.13.1",
@@ -4,21 +4,50 @@ import { AppComponent } from './app.component';
4
4
  import { EuiAppModule } from '@eui/components/layout';
5
5
  import { routes } from './app.routes';
6
6
  import { provideHttpClientTesting } from '@angular/common/http/testing';
7
+ import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
8
+ import { AppStarterService } from './app-starter.service';
9
+ import { CONFIG_TOKEN, I18nService, I18nState, UserService} from '@eui/core';
10
+ import { EuiAppConfig } from '@eui/core';
11
+ import { Observable, of } from 'rxjs';
12
+ import { TranslateModule } from '@ngx-translate/core';
13
+ import SpyObj = jasmine.SpyObj;
7
14
 
8
15
  describe('AppComponent', () => {
9
16
  let component: AppComponent;
10
17
  let fixture: ComponentFixture<AppComponent>;
18
+ let userServiceMock: SpyObj<UserService>;
19
+ let i18nServiceMock: SpyObj<I18nService>;
20
+ let configMock: EuiAppConfig;
11
21
 
12
22
  beforeEach(async () => {
23
+
24
+ // Handle the overloaded getState method
25
+ type GetStateReturnType<T> = T extends keyof I18nState ? Observable<I18nState[T]> : Observable<I18nState>;
26
+
27
+ userServiceMock = jasmine.createSpyObj('UserService', ['init']);
28
+ i18nServiceMock = jasmine.createSpyObj<I18nService>('I18nService', ['init', 'getState']);
29
+ i18nServiceMock.getState.and.callFake(<K extends keyof I18nState>(key?: K): GetStateReturnType<K> => {
30
+ if (typeof key === 'string') {
31
+ return of({ activeLang: 'en' }[key]) as GetStateReturnType<K>;
32
+ }
33
+ return of({ activeLang: 'en' }) as GetStateReturnType<K>;
34
+ });
35
+ configMock = {global: {}, modules: {core: {base: 'localhost:3000', userDetails: 'dummy'}}};
36
+
13
37
  await TestBed.configureTestingModule({
14
38
  imports: [
15
39
  RouterModule.forRoot(routes),
16
40
  EuiAppModule,
41
+ TranslateModule.forRoot(),
17
42
  ],
18
43
  providers: [
19
- provideHttpClientTesting()
44
+ provideHttpClient(withInterceptorsFromDi()),
45
+ provideHttpClientTesting(),
46
+ AppStarterService,
47
+ {provide: UserService, useValue: userServiceMock},
48
+ {provide: I18nService, useValue: i18nServiceMock},
49
+ {provide: CONFIG_TOKEN, useValue: configMock},
20
50
  ],
21
- declarations: [AppComponent],
22
51
  }).compileComponents();
23
52
 
24
53
  fixture = TestBed.createComponent(AppComponent);
@@ -56,7 +56,7 @@
56
56
  }
57
57
  ],
58
58
  "styles": [
59
- "node_modules/@eui/mobile-styles/dist/styles/eui-mobile.css",
59
+ "node_modules/@eui/mobile-styles/dist/eui-mobile.css",
60
60
  "src/styles.scss"
61
61
  ]
62
62
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-rc.1",
3
+ "version": "19.0.0-rc.10",
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.19-snapshot-1721355158108",
24
- "@eui/mobile-core": "16.10.1-snapshot-1714734024630",
25
- "@eui/mobile-styles": "16.10.1-snapshot-1714734024630"
23
+ "@eui/deps-base": "18.2.4-snapshot-1733919439046",
24
+ "@eui/mobile-core": "18.0.0-next.20",
25
+ "@eui/mobile-styles": "18.0.0-next.20"
26
26
  }
27
27
  }
@@ -8,6 +8,7 @@
8
8
  "annotateForClosureCompiler": true,
9
9
  "strictTemplates": false,
10
10
  "strictInjectionParameters": true,
11
+ "skipLibCheck": true
11
12
  },
12
13
  "exclude": [
13
14
  "test.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-rc.1",
3
+ "version": "19.0.0-rc.10",
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-rc.1"
21
+ "@eui/deps-base": "19.0.0-rc.10"
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "19.0.0-rc.1",
3
+ "version": "19.0.0-rc.10",
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.11"
16
+ "@eui/tools": "6.21.12"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@eui/tools": "^6.0.0",