@eui/tools 6.21.10 → 6.21.12
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 +18 -0
- package/package.json +1 -1
- package/scripts/csdr/config/angular.js +5 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/app/app.module.ts +0 -8
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/app/core/reducers/index.ts +0 -50
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.12
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.12 (2024-12-11)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted pwa serviceWorker injection for v18 - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([1f510a8a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1f510a8a86a34f44f1524f836bdf20d78a672583))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.11 (2024-12-02)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted eui-showcase v19 injection sources removing ngrx - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([0a3a5097](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0a3a50972be5e8c311da32951a5978bffb498813))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.10 (2024-11-28)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -388,7 +388,11 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
388
388
|
// checking pwa additional injection
|
|
389
389
|
if (project.build && project.build.pwa) {
|
|
390
390
|
jsonFile['projects'][project.name].architect.build.options.serviceWorker = true;
|
|
391
|
-
|
|
391
|
+
if (packageEuiVersionNumber >= 18) {
|
|
392
|
+
jsonFile['projects'][project.name].architect.build.options.serviceWorker = `${project.folder}/ngsw-config.json`;
|
|
393
|
+
} else {
|
|
394
|
+
jsonFile['projects'][project.name].architect.build.options.ngswConfigPath = `${project.folder}/ngsw-config.json`;
|
|
395
|
+
}
|
|
392
396
|
jsonFile['projects'][project.name].architect.build.options.assets.push(`apps/${project.name}/src/manifest.webmanifest`);
|
|
393
397
|
}
|
|
394
398
|
}
|
|
@@ -3,9 +3,6 @@ import { NgModule } from '@angular/core';
|
|
|
3
3
|
import { BrowserModule } from '@angular/platform-browser';
|
|
4
4
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
5
|
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
-
import { StoreModule } from '@ngrx/store';
|
|
7
|
-
import { EffectsModule } from '@ngrx/effects';
|
|
8
|
-
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
9
6
|
import { TranslateModule } from '@ngx-translate/core';
|
|
10
7
|
|
|
11
8
|
// eUI IMPORTS
|
|
@@ -21,16 +18,12 @@ import { environment } from '../environments/environment';
|
|
|
21
18
|
import { AppRoutingModule } from '../../app/app-routing.module';
|
|
22
19
|
import { AppComponent } from '../../app/app.component';
|
|
23
20
|
|
|
24
|
-
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
|
|
25
|
-
|
|
26
21
|
// APP ROOT MODULE
|
|
27
22
|
@NgModule({
|
|
28
23
|
imports: [
|
|
29
24
|
BrowserModule,
|
|
30
25
|
BrowserAnimationsModule,
|
|
31
26
|
HttpClientModule,
|
|
32
|
-
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
|
-
// StoreModule.forRoot(),
|
|
34
27
|
TranslateModule.forRoot(translateConfig),
|
|
35
28
|
CoreModule.forRoot(),
|
|
36
29
|
AppRoutingModule,
|
|
@@ -41,7 +34,6 @@ import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/redu
|
|
|
41
34
|
],
|
|
42
35
|
providers: [
|
|
43
36
|
{ provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
|
|
44
|
-
reducerProvider,
|
|
45
37
|
],
|
|
46
38
|
bootstrap: [
|
|
47
39
|
AppComponent,
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
|
-
import * as fromRouter from '@ngrx/router-store';
|
|
4
|
-
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
|
-
import { reducers as coreReducers, localStorageSync } from '@eui/core';
|
|
6
|
-
import { CoreState } from '@eui/base';
|
|
7
|
-
|
|
8
|
-
export interface AppState extends CoreState {
|
|
9
|
-
router: fromRouter.RouterReducerState<any>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// -----------------
|
|
13
|
-
// ------------ AOT
|
|
14
|
-
export const TOKEN = new InjectionToken<any>('AppReducers');
|
|
15
|
-
|
|
16
|
-
export function getReducers(): ActionReducerMap<AppState, any> {
|
|
17
|
-
return {
|
|
18
|
-
router: fromRouter.routerReducer,
|
|
19
|
-
...coreReducers,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const reducerProvider = [
|
|
24
|
-
{ provide: TOKEN, useFactory: getReducers },
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
// console.log all actions
|
|
28
|
-
export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
|
|
29
|
-
return (state, action) => {
|
|
30
|
-
const result = reducer(state, action);
|
|
31
|
-
console.groupCollapsed(action.type);
|
|
32
|
-
console.log('prev state', state);
|
|
33
|
-
console.log('action', action);
|
|
34
|
-
console.log('next state', result);
|
|
35
|
-
console.groupEnd();
|
|
36
|
-
|
|
37
|
-
return result;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
|
|
42
|
-
|
|
43
|
-
export const runtimeChecks: RuntimeChecks = {
|
|
44
|
-
strictStateSerializability: false,
|
|
45
|
-
strictActionSerializability: false,
|
|
46
|
-
strictStateImmutability: false,
|
|
47
|
-
strictActionImmutability: false,
|
|
48
|
-
strictActionWithinNgZone: false,
|
|
49
|
-
strictActionTypeUniqueness: false,
|
|
50
|
-
};
|