@eui/tools 6.21.30 → 6.21.32

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
- 6.21.30
1
+ 6.21.32
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.32 (2025-01-13)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * v19 mapping adaptations MWP-11339 [MWP-11339](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11339) ([9cd6395c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9cd6395c5e1d89b753f9dc011525cc372ccc551f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.31 (2025-01-13)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapt for v19 remotes build - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([cd3f1da7](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/cd3f1da7276ef994ebf7dc55f0f1dec18ace43f8))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.30 (2025-01-10)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.30",
3
+ "version": "6.21.32",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1,11 +1,15 @@
1
1
  import { ChangeDetectionStrategy, Component } from '@angular/core';
2
2
 
3
+ import { EuiBlockContentModule } from '@eui/components/eui-block-content';
4
+
3
5
  @Component({
4
6
  changeDetection: ChangeDetectionStrategy.OnPush,
7
+ imports: [EuiBlockContentModule],
5
8
  template: `
6
9
  <eui-block-content [isBlocked]="true">
7
10
  <div style="height: 100%"></div>
8
11
  </eui-block-content>`,
12
+ standalone: false,
9
13
  })
10
14
  export class FallbackComponent {
11
15
  }
@@ -1,18 +1,29 @@
1
1
  import { ChangeDetectionStrategy, Component, ElementRef, inject, OnDestroy, OnInit, signal } from '@angular/core';
2
+ import { RouterOutlet } from '@angular/router';
2
3
 
3
4
  import { Subscription } from 'rxjs';
4
5
  import { first } from 'rxjs/operators';
5
6
 
6
7
  import { CONFIG_TOKEN } from '@eui/core';
8
+ import { EuiBlockContentModule } from '@eui/components/eui-block-content';
9
+ import { EuiButtonModule } from '@eui/components/eui-button';
10
+ import { EuiLabelModule } from '@eui/components/eui-label';
11
+
7
12
  import { ElementLifeCycleService, ElementSetupService } from '@csdr/integration/element';
8
13
 
9
14
  type StatusType = 'Loading' | 'Loaded' | 'Failed';
10
15
 
11
16
  @Component({
12
17
  changeDetection: ChangeDetectionStrategy.OnPush,
18
+ imports: [
19
+ RouterOutlet,
20
+ EuiBlockContentModule,
21
+ EuiButtonModule,
22
+ EuiLabelModule,
23
+ ],
13
24
  template: `
14
25
  @if (status() === 'Loaded') {
15
- <router-outlet></router-outlet>
26
+ <router-outlet />
16
27
  }
17
28
  @if (status() === 'Loading') {
18
29
  <eui-block-content [isBlocked]="true">
@@ -44,7 +55,6 @@ type StatusType = 'Loading' | 'Loaded' | 'Failed';
44
55
  text-align: center
45
56
  }
46
57
  `],
47
- standalone: false,
48
58
  })
49
59
  export class ModuleComponent implements OnInit, OnDestroy {
50
60
  status = signal<StatusType | undefined>(undefined);
@@ -62,7 +72,7 @@ export class ModuleComponent implements OnInit, OnDestroy {
62
72
  this.loadData();
63
73
  }
64
74
 
65
- ngOnDestroy(): void {
75
+ ngOnDestroy() {
66
76
  this.initSubscription?.unsubscribe();
67
77
  this.elementLifeCycleService.cleanup();
68
78
  }
@@ -1,7 +1,7 @@
1
1
  import { NgModule, Injector, DoBootstrap, ApplicationRef } from '@angular/core';
2
2
  import { BrowserModule } from '@angular/platform-browser';
3
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
- import { HttpClient, HttpClientModule, HttpHeaders } from '@angular/common/http';
3
+ import { provideAnimations } from '@angular/platform-browser/animations';
4
+ import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
5
5
  import { createCustomElement } from '@angular/elements';
6
6
 
7
7
  import { StoreModule, USER_PROVIDED_META_REDUCERS } from '@ngrx/store';
@@ -17,28 +17,22 @@ import {
17
17
  EUI_CONFIG_TOKEN,
18
18
  translateConfig,
19
19
  } from '@eui/core';
20
- import { EUI_COMPONENTS_MODULES } from './eui-components';
21
20
  import {
22
- CsdrCoreModule,
21
+ provideCsdrCore,
23
22
  ElementStorageService,
24
23
  } from '@csdr/core';
25
24
 
26
- import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
25
+ import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
27
26
  import { CustomSerializer } from './reducers/custom-route-serializer';
28
27
 
29
28
  import { environment } from '../environments/environment';
30
29
  import { appConfig } from '../config';
31
30
 
32
31
  import { @root.common.module@ as RootCommonModule } from '@root.npm.pkg@';
33
- import {
34
- DEFAULT_MAPPED_PROVIDERS,
35
- } from '@csdr/integration/element';
36
- import {
37
- CONTAINER_MAPPED_PROVIDERS,
38
- } from '@csdr/integration/participant';
32
+ import { provideCsdrIntegrationElement } from '@csdr/integration/element';
33
+ import { CONTAINER_MAPPED_PROVIDERS } from '@csdr/integration/participant';
39
34
  import { RoutingModule } from './routing.module';
40
35
 
41
- import { FallbackComponent } from './fallback.component';
42
36
  import { ModuleComponent } from './module.component';
43
37
 
44
38
  // IMPORTS
@@ -48,33 +42,24 @@ import { ModuleComponent } from './module.component';
48
42
  @NgModule({
49
43
  imports: [
50
44
  BrowserModule,
51
- BrowserAnimationsModule,
52
- HttpClientModule,
53
45
  StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
54
46
  EffectsModule.forRoot([]),
55
47
  StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
56
48
  TranslateModule.forRoot(translateConfig),
57
49
 
58
50
  CoreModule.forRoot(),
59
- CsdrCoreModule.forRoot(),
60
51
  RootCommonModule,
61
52
  RoutingModule,
62
- ...EUI_COMPONENTS_MODULES,
63
53
 
64
54
  // DEFINITIONS
65
55
  ],
66
- declarations: [
67
- FallbackComponent,
68
- ModuleComponent,
69
- ],
70
56
  providers: [
71
57
  reducerProvider,
72
- {
73
- provide: EUI_CONFIG_TOKEN,
74
- useValue: { appConfig: { ...appConfig, ...environment }, environment },
75
- },
76
58
 
77
- ...DEFAULT_MAPPED_PROVIDERS,
59
+ provideAnimations(),
60
+ provideHttpClient(withInterceptorsFromDi()),
61
+ provideCsdrCore(),
62
+ provideCsdrIntegrationElement({ appConfig, environment }),
78
63
 
79
64
  // PROVIDERS
80
65
  ],
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
2
+ import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
3
3
  import * as fromRouter from '@ngrx/router-store';
4
4
  import { storeFreeze } from 'ngrx-store-freeze';
5
- import { reducers as coreReducers, CoreState } from '@eui/core';
5
+ import { CoreState, reducers as coreReducers } from '@eui/core';
6
6
 
7
7
  import { environment } from '../../environments/environment';
8
8
 
@@ -40,12 +40,3 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
40
40
  }
41
41
 
42
42
  export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, storeFreeze] : [];
43
-
44
- export const runtimeChecks: RuntimeChecks = {
45
- strictStateSerializability: false,
46
- strictActionSerializability: false,
47
- strictStateImmutability: false,
48
- strictActionImmutability: false,
49
- strictActionWithinNgZone: false,
50
- strictActionTypeUniqueness: false,
51
- };
@@ -42,7 +42,11 @@ module.exports.build = (pkg, isMaster) => {
42
42
  if (versionNumber <= 10) {
43
43
  args = ['--max_old_space_size=8096', ng, 'build', pkgName, '--prod'];
44
44
  } else {
45
- args = ['--max_old_space_size=8096', ng, 'build', pkgName];
45
+ if (versionNumber >= 19) {
46
+ args = [ng, 'build', pkgName];
47
+ } else {
48
+ args = ['--max_old_space_size=8096', ng, 'build', pkgName];
49
+ }
46
50
  }
47
51
 
48
52
  if (statsJson) {
@@ -1,9 +0,0 @@
1
- import { EuiBlockContentModule } from '@eui/components/eui-block-content';
2
- import { EuiButtonModule } from '@eui/components/eui-button';
3
- import { EuiLabelModule } from '@eui/components/eui-label';
4
-
5
- export const EUI_COMPONENTS_MODULES = [
6
- EuiBlockContentModule,
7
- EuiButtonModule,
8
- EuiLabelModule,
9
- ];