@eui/tools 6.21.55 → 6.21.59
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 +22 -0
- package/package.json +1 -1
- package/scripts/csdr/init/remotes/18.x/full/options/all-locales/config/global.ts +1 -0
- package/scripts/csdr/init/remotes/18.x/full/options/extra-locales/config/global.ts +4 -3
- package/scripts/csdr/init/remotes/19.x/full/options/all-locales/config/global.ts +1 -0
- package/scripts/csdr/init/remotes/19.x/full/options/extra-locales/config/global.ts +1 -0
- package/scripts/utils/pre-build/routes-replacement/routes-replacement.js +55 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.59
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 6.21.59 (2025-04-03)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.58 (2025-04-02)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **extralocales:**
|
|
15
|
+
* add support for // EXTRA_URLS_CONFIG_PLACEHOLDER in v18 - v19 ([89b93ce0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/89b93ce01d10584016786b226a4f8d647027339f))
|
|
16
|
+
##### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **other:**
|
|
19
|
+
* release EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([73339abc](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/73339abcd65f2f8c827bf8cb99a43d3d955ecc25))
|
|
20
|
+
|
|
21
|
+
* * *
|
|
22
|
+
* * *
|
|
1
23
|
## 6.21.55 (2025-04-01)
|
|
2
24
|
|
|
3
25
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -110,6 +110,7 @@ const localeConfig: LocaleServiceConfig = {
|
|
|
110
110
|
export const GLOBAL: GlobalConfig = {
|
|
111
111
|
/* URL that needs to be used in the appRouting of the MWP */
|
|
112
112
|
baseUrl: '@base.url@',
|
|
113
|
+
// EXTRA_URLS_CONFIG_PLACEHOLDER
|
|
113
114
|
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
114
115
|
elementName: '@element.name@',
|
|
115
116
|
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
@@ -116,7 +116,7 @@ const longDateFormat = {
|
|
|
116
116
|
lll: 'D MMMM YYYY HH:mm',
|
|
117
117
|
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
118
118
|
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
|
|
121
121
|
const longDateFormat_Common = {
|
|
122
122
|
LT: 'HH:mm',
|
|
@@ -129,7 +129,7 @@ const longDateFormat_Common = {
|
|
|
129
129
|
ll: 'D MMMM YYYY',
|
|
130
130
|
lll: 'D MMMM YYYY HH:mm',
|
|
131
131
|
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
132
|
-
}
|
|
132
|
+
};
|
|
133
133
|
|
|
134
134
|
moment.defineLocale('en-at', { parentLocale: 'en', longDateFormat_Common });
|
|
135
135
|
moment.defineLocale('en-be', { parentLocale: 'en', longDateFormat });
|
|
@@ -167,7 +167,7 @@ moment.defineLocale('en-se', {
|
|
|
167
167
|
lll: 'D MMMM YYYY HH:mm',
|
|
168
168
|
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
169
169
|
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
170
|
-
}
|
|
170
|
+
},
|
|
171
171
|
});
|
|
172
172
|
moment.defineLocale('en-si', { parentLocale: 'en', longDateFormat_Common });
|
|
173
173
|
moment.defineLocale('fr-be', { parentLocale: 'fr', longDateFormat });
|
|
@@ -203,6 +203,7 @@ const localeConfig: LocaleServiceConfig = {
|
|
|
203
203
|
export const GLOBAL: GlobalConfig = {
|
|
204
204
|
/* URL that needs to be used in the appRouting of the MWP */
|
|
205
205
|
baseUrl: '@base.url@',
|
|
206
|
+
// EXTRA_URLS_CONFIG_PLACEHOLDER
|
|
206
207
|
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
207
208
|
elementName: '@element.name@',
|
|
208
209
|
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
@@ -107,6 +107,7 @@ const localeConfig: LocaleServiceConfig = {
|
|
|
107
107
|
export const GLOBAL: GlobalConfig = {
|
|
108
108
|
/* URL that needs to be used in the appRouting of the MWP */
|
|
109
109
|
baseUrl: '@base.url@',
|
|
110
|
+
// EXTRA_URLS_CONFIG_PLACEHOLDER
|
|
110
111
|
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
111
112
|
elementName: '@element.name@',
|
|
112
113
|
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
@@ -200,6 +200,7 @@ const localeConfig: LocaleServiceConfig = {
|
|
|
200
200
|
export const GLOBAL: GlobalConfig = {
|
|
201
201
|
/* URL that needs to be used in the appRouting of the MWP */
|
|
202
202
|
baseUrl: '@base.url@',
|
|
203
|
+
// EXTRA_URLS_CONFIG_PLACEHOLDER
|
|
203
204
|
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
204
205
|
elementName: '@element.name@',
|
|
205
206
|
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
@@ -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
|
}
|