@eui/tools 6.21.58 → 6.21.60
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/init/remotes/19.x/full/options/no-ngrx/app/module.ts +81 -0
- package/scripts/csdr/init/remotes.js +6 -0
- package/scripts/csdr/install/remotes.js +1 -1
- package/scripts/utils/pre-build/routes-replacement/routes-replacement.js +55 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.60
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.60 (2025-04-04)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* add no-ngrx option for remote without ngrx in their skeleton - hasPreprod remains true for MWP_SEDIA appTarget remote - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([3b1ea939](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3b1ea939a155d334b6e2c6af959ad6cb74f94081))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.59 (2025-04-03)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted route replacement for v19 workspace definitions - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([c5955c37](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c5955c37a87acf7ecc45a242ecd19a7d9976a3b9))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.58 (2025-04-02)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { NgModule, Injector, DoBootstrap, ApplicationRef } from '@angular/core';
|
|
2
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
3
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
4
|
+
import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
5
|
+
import { createCustomElement } from '@angular/elements';
|
|
6
|
+
|
|
7
|
+
// import { StoreModule, USER_PROVIDED_META_REDUCERS } from '@ngrx/store';
|
|
8
|
+
// import { EffectsModule } from '@ngrx/effects';
|
|
9
|
+
// import { StoreRouterConnectingModule } from '@ngrx/router-store';
|
|
10
|
+
|
|
11
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
CoreModule,
|
|
15
|
+
CONFIG_TOKEN,
|
|
16
|
+
EUI_CONFIG_TOKEN,
|
|
17
|
+
translateConfig,
|
|
18
|
+
provideEuiInitializer,
|
|
19
|
+
} from '@eui/core';
|
|
20
|
+
import {
|
|
21
|
+
provideCsdrCore,
|
|
22
|
+
ElementStorageService,
|
|
23
|
+
} from '@csdr/core';
|
|
24
|
+
|
|
25
|
+
// import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
26
|
+
// import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
27
|
+
|
|
28
|
+
import { environment } from '../environments/environment';
|
|
29
|
+
import { appConfig } from '../config';
|
|
30
|
+
|
|
31
|
+
import { @root.common.module@ as RootCommonModule } from '@root.npm.pkg@';
|
|
32
|
+
import { provideCsdrIntegrationElement } from '@csdr/integration/element';
|
|
33
|
+
import { provideCsdrIntegrationParticipant } from '@csdr/integration/participant';
|
|
34
|
+
import { RoutingModule } from './routing.module';
|
|
35
|
+
|
|
36
|
+
import { ModuleComponent } from './module.component';
|
|
37
|
+
|
|
38
|
+
// IMPORTS
|
|
39
|
+
|
|
40
|
+
// DECLARATIONS
|
|
41
|
+
|
|
42
|
+
@NgModule({
|
|
43
|
+
imports: [
|
|
44
|
+
BrowserModule,
|
|
45
|
+
// StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
|
|
46
|
+
// EffectsModule.forRoot([]),
|
|
47
|
+
TranslateModule.forRoot(translateConfig),
|
|
48
|
+
|
|
49
|
+
CoreModule.forRoot(),
|
|
50
|
+
RootCommonModule,
|
|
51
|
+
RoutingModule,
|
|
52
|
+
|
|
53
|
+
// DEFINITIONS
|
|
54
|
+
],
|
|
55
|
+
providers: [
|
|
56
|
+
// reducerProvider,
|
|
57
|
+
|
|
58
|
+
provideAnimations(),
|
|
59
|
+
provideHttpClient(withInterceptorsFromDi()),
|
|
60
|
+
provideEuiInitializer(),
|
|
61
|
+
provideCsdrCore(),
|
|
62
|
+
provideCsdrIntegrationElement({ appConfig, environment }),
|
|
63
|
+
|
|
64
|
+
// PROVIDERS
|
|
65
|
+
],
|
|
66
|
+
})
|
|
67
|
+
export class AppModule implements DoBootstrap {
|
|
68
|
+
|
|
69
|
+
constructor(private injector: Injector, private http: HttpClient) {
|
|
70
|
+
// CONSTRUCTOR DECLARATIONS
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
ngDoBootstrap(appRef: ApplicationRef): void {
|
|
74
|
+
const elementSampleEui = createCustomElement(ModuleComponent, { injector: this.injector });
|
|
75
|
+
try {
|
|
76
|
+
customElements.define(appConfig.global.elementName, elementSampleEui);
|
|
77
|
+
} catch (e) {
|
|
78
|
+
console.log(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -197,6 +197,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
|
|
|
197
197
|
const optionExtraLocalesPath = path.join(fullOptionsPath, 'extra-locales');
|
|
198
198
|
const optionParticipantPath = path.join(fullOptionsPath, 'participant');
|
|
199
199
|
const optionAgGridPath = path.join(fullOptionsPath, 'ag-grid');
|
|
200
|
+
const optionNoNgrxPath = path.join(fullOptionsPath, 'no-ngrx');
|
|
200
201
|
const optionUserReducersDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'user-reducers.json'));
|
|
201
202
|
const optionZipkinDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'zipkin.json'));
|
|
202
203
|
const optionDynatraceDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'dynatrace.json'));
|
|
@@ -292,6 +293,11 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
|
|
|
292
293
|
tools.copy(optionExtraLocalesPath, remoteSrcPath);
|
|
293
294
|
}
|
|
294
295
|
|
|
296
|
+
// no ngRx remote (v19 and up)
|
|
297
|
+
if (remote.skeletonConfig.options.noNgrx) {
|
|
298
|
+
tools.copy(optionNoNgrxPath, remoteSrcPath);
|
|
299
|
+
}
|
|
300
|
+
|
|
295
301
|
// zipkin
|
|
296
302
|
if (remote.skeletonConfig.options.zipkin) {
|
|
297
303
|
pushContent(optionZipkinDef);
|
|
@@ -164,7 +164,7 @@ const getDeps = module.exports.getDeps = (pkg, envTarget) => {
|
|
|
164
164
|
|
|
165
165
|
let hasPreprod = true;
|
|
166
166
|
|
|
167
|
-
if (pkg.build && pkg.build.appTarget && (pkg.build.appTarget === 'SEDIA_ONLY'
|
|
167
|
+
if (pkg.build && pkg.build.appTarget && (pkg.build.appTarget === 'SEDIA_ONLY')) {
|
|
168
168
|
hasPreprod = false;
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -612,6 +612,38 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
612
612
|
return routeDef;
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
+
|
|
616
|
+
const getMenuDef = (link, euiVersion) => {
|
|
617
|
+
const menuDef = routeDefsBaseJSON.find(i => i.id === link.id);
|
|
618
|
+
|
|
619
|
+
if (menuDef) {
|
|
620
|
+
if (link.id) {
|
|
621
|
+
menuDef.id = link.id;
|
|
622
|
+
}
|
|
623
|
+
if (link.optional) {
|
|
624
|
+
menuDef.optional = link.optional;
|
|
625
|
+
}
|
|
626
|
+
if (link.workspace) {
|
|
627
|
+
menuDef.workspace = link.workspace;
|
|
628
|
+
}
|
|
629
|
+
if (link.dashboardWidgetDisabled) {
|
|
630
|
+
menuDef.dashboardWidgetDisabled = link.dashboardWidgetDisabled;
|
|
631
|
+
}
|
|
632
|
+
if (link.alwaysDisplayed) {
|
|
633
|
+
menuDef.alwaysDisplayed = link.alwaysDisplayed;
|
|
634
|
+
}
|
|
635
|
+
if (parseInt(euiVersion) >= 18) {
|
|
636
|
+
delete menuDef['iconClass'];
|
|
637
|
+
} else {
|
|
638
|
+
delete menuDef['iconSvgName'];
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
return menuDef;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
615
647
|
// inner method for checking based on the "allowedEnvs" option provided on the links definition if the link has to be added
|
|
616
648
|
// to the links list
|
|
617
649
|
|
|
@@ -709,8 +741,30 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
709
741
|
}
|
|
710
742
|
}
|
|
711
743
|
newLink = {...defRoute};
|
|
744
|
+
|
|
712
745
|
} else {
|
|
713
|
-
|
|
746
|
+
if (
|
|
747
|
+
envTargetFinal === 'dev' ||
|
|
748
|
+
envTargetFinal === 'test' ||
|
|
749
|
+
envTargetFinal === 'int' ||
|
|
750
|
+
// envTargetFinal === 'acc' ||
|
|
751
|
+
// envTargetFinal === 'dlt' ||
|
|
752
|
+
// envTargetFinal === 'trn' ||
|
|
753
|
+
// envTargetFinal === 'ppd' ||
|
|
754
|
+
// envTargetFinal === 'prod' ||
|
|
755
|
+
envTargetFinal.indexOf('local') > -1
|
|
756
|
+
) {
|
|
757
|
+
const defMenuLink = getMenuDef(link, euiVersion);
|
|
758
|
+
if (defMenuLink) {
|
|
759
|
+
newLink = {...defMenuLink};
|
|
760
|
+
} else {
|
|
761
|
+
// console.log(link);
|
|
762
|
+
// throw new Error('LINK_NOT_MATCHED');
|
|
763
|
+
newLink = {...link};
|
|
764
|
+
}
|
|
765
|
+
} else {
|
|
766
|
+
newLink = {...link};
|
|
767
|
+
}
|
|
714
768
|
}
|
|
715
769
|
}
|
|
716
770
|
}
|