@eui/tools 6.21.44 → 6.21.45
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.45
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.45 (2025-03-04)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted route replacement links icon for supporting iconSvgName for menu items - MWP-11274 [MWP-11274](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11274) ([aec4cb93](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/aec4cb939f408636f3c9e4e7ea5d8fcd8d07a86b))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.44 (2025-03-04)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -520,6 +520,8 @@ const generateLazyFeatureLibs = (project, routes) => {
|
|
|
520
520
|
const generateLinks = (project, routes, envTargetFinal) => {
|
|
521
521
|
tools.logInfo('Processing links generation');
|
|
522
522
|
|
|
523
|
+
const euiVersion = configUtils.projects.getProjectEuiVersion(project);
|
|
524
|
+
|
|
523
525
|
let routeDefsBaseLinksFileName;
|
|
524
526
|
|
|
525
527
|
if (
|
|
@@ -556,7 +558,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
556
558
|
workspaceDefsBaseJSON = require(path.join(project.paths.assetsPath, workspaceDefsBaseFilename));
|
|
557
559
|
}
|
|
558
560
|
|
|
559
|
-
const getRouteMenuDef = (link) => {
|
|
561
|
+
const getRouteMenuDef = (link, euiVersion) => {
|
|
560
562
|
let routeDef = null;
|
|
561
563
|
|
|
562
564
|
if (link.url) {
|
|
@@ -582,6 +584,12 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
582
584
|
routeDef.alwaysDisplayed = link.alwaysDisplayed;
|
|
583
585
|
}
|
|
584
586
|
|
|
587
|
+
if (parseInt(euiVersion) >= 18) {
|
|
588
|
+
delete routeDef['iconClass'];
|
|
589
|
+
} else {
|
|
590
|
+
delete routeDef['iconSvgName'];
|
|
591
|
+
}
|
|
592
|
+
|
|
585
593
|
return;
|
|
586
594
|
}
|
|
587
595
|
});
|
|
@@ -653,7 +661,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
653
661
|
|
|
654
662
|
link.children.forEach((subLink) => {
|
|
655
663
|
if (isLinkAllowed(subLink)) {
|
|
656
|
-
const defRoute = getRouteMenuDef(subLink);
|
|
664
|
+
const defRoute = getRouteMenuDef(subLink, euiVersion);
|
|
657
665
|
|
|
658
666
|
if (defRoute) {
|
|
659
667
|
if (project.name.indexOf('playground') > 0) {
|
|
@@ -676,7 +684,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
676
684
|
}
|
|
677
685
|
} else {
|
|
678
686
|
if (isLinkAllowed(link)) {
|
|
679
|
-
const defRoute = getRouteMenuDef(link);
|
|
687
|
+
const defRoute = getRouteMenuDef(link, euiVersion);
|
|
680
688
|
|
|
681
689
|
if (defRoute) {
|
|
682
690
|
if (project.name.indexOf('playground') > 0) {
|