@eui/tools 6.15.12 → 6.15.13
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.15.
|
|
1
|
+
6.15.13
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.15.13 (2024-02-02)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* addition of title management at route level MWP-10441 [MWP-10441](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10441) ([9a3f7f85](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9a3f7f85669c8037dbc2e9c903b1f31a4f2c58df))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.15.12 (2024-02-02)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -346,13 +346,18 @@ const getProjectRoutes = (project, routesDefs) => {
|
|
|
346
346
|
remoteDef: null,
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
// in the case the route is auth guarded, we attach the
|
|
349
|
+
// in the case the route is auth guarded, we attach the definition of the auth parameters
|
|
350
350
|
if (defRoute.authMetadata) {
|
|
351
351
|
newAppRoute.angularRouteDef.data.id = defRoute.authMetadata.id;
|
|
352
352
|
newAppRoute.angularRouteDef.data.ids = defRoute.authMetadata.ids;
|
|
353
353
|
newAppRoute.angularRouteDef.canActivate = defRoute.authMetadata.canActivate;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
// in the case there's a title for the route, we attach it
|
|
357
|
+
if (defRoute.title) {
|
|
358
|
+
newAppRoute.angularRouteDef.title = defRoute.title;
|
|
359
|
+
}
|
|
360
|
+
|
|
356
361
|
// in case of a remote, the "remoteDefs" data entry are processed
|
|
357
362
|
// in case no remote corresponds to a remote path defined in the definitions, we throw an error and we stop the
|
|
358
363
|
// script to avoid bad route data / or partial routes data generated
|
|
@@ -405,6 +410,9 @@ const generateAngularRoutes = (project, routes) => {
|
|
|
405
410
|
let routeContent = '{\n';
|
|
406
411
|
|
|
407
412
|
routeContent += ` path: '${route.path}',\n`;
|
|
413
|
+
if (route.title) {
|
|
414
|
+
routeContent += ` title: '${route.title}',\n`;
|
|
415
|
+
}
|
|
408
416
|
if (Object.keys(route.data).length > 0) {
|
|
409
417
|
routeContent += ' data: {\n';
|
|
410
418
|
|