@eui/tools 6.21.10 → 6.21.11
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 +9 -0
- package/package.json +1 -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.11
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.11 (2024-12-02)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.10 (2024-11-28)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -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
|
-
};
|