@eui/tools 6.16.10 → 6.16.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/csdr/cli/skeletons/virtual-remote/17.x/dependencies.json +1 -0
- package/scripts/csdr/release/package/common.js +11 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/app/app.module.ts +6 -6
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/app/core/reducers/index.ts +50 -49
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.16.
|
|
1
|
+
6.16.11
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.16.11 (2024-04-12)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* re-activated ngrx setup config for v18 showcase - EUI-9014 [EUI-9014](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9014) ([3edc5a72](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3edc5a722c4a17a255466f0f06202848c9a51595))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.16.10 (2024-04-08)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -213,6 +213,17 @@ module.exports.preReleaseChecks = (pkg) => {
|
|
|
213
213
|
}
|
|
214
214
|
})
|
|
215
215
|
|
|
216
|
+
// CHECK eUI VERSION OF PKG VALIDITY (no v10 allowed after 5/04)
|
|
217
|
+
// .then(() => {
|
|
218
|
+
// utils.tools.logTitle('Checking supported eUI version');
|
|
219
|
+
|
|
220
|
+
// const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
221
|
+
|
|
222
|
+
// if (euiVersion && euiVersion === '10.x') {
|
|
223
|
+
// throw new Error('VERSION_10_NOT_SUPPORTED');
|
|
224
|
+
// }
|
|
225
|
+
// })
|
|
226
|
+
|
|
216
227
|
// CHECKING PACKAGE LOCK STATE - AVOID SAME PACKAGE RUN issuing race conditions
|
|
217
228
|
.then(() => {
|
|
218
229
|
if (!pkg.backend) {
|
|
@@ -4,8 +4,8 @@ import { BrowserModule } from '@angular/platform-browser';
|
|
|
4
4
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
5
|
import { HttpClientModule } from '@angular/common/http';
|
|
6
6
|
import { StoreModule } from '@ngrx/store';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { EffectsModule } from '@ngrx/effects';
|
|
8
|
+
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
9
9
|
import { TranslateModule } from '@ngx-translate/core';
|
|
10
10
|
|
|
11
11
|
// eUI IMPORTS
|
|
@@ -21,7 +21,7 @@ import { environment } from '../environments/environment';
|
|
|
21
21
|
import { AppRoutingModule } from '../../app/app-routing.module';
|
|
22
22
|
import { AppComponent } from '../../app/app.component';
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
|
|
25
25
|
|
|
26
26
|
// APP ROOT MODULE
|
|
27
27
|
@NgModule({
|
|
@@ -29,8 +29,8 @@ import { AppComponent } from '../../app/app.component';
|
|
|
29
29
|
BrowserModule,
|
|
30
30
|
BrowserAnimationsModule,
|
|
31
31
|
HttpClientModule,
|
|
32
|
-
|
|
33
|
-
StoreModule.forRoot(),
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
|
+
// StoreModule.forRoot(),
|
|
34
34
|
TranslateModule.forRoot(translateConfig),
|
|
35
35
|
CoreModule.forRoot(),
|
|
36
36
|
AppRoutingModule,
|
|
@@ -41,7 +41,7 @@ import { AppComponent } from '../../app/app.component';
|
|
|
41
41
|
],
|
|
42
42
|
providers: [
|
|
43
43
|
{ provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
|
|
44
|
-
|
|
44
|
+
reducerProvider,
|
|
45
45
|
],
|
|
46
46
|
bootstrap: [
|
|
47
47
|
AppComponent,
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
+
};
|