@eui/tools 6.15.11 → 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.
@@ -1 +1 @@
1
- 6.15.11
1
+ 6.15.13
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
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
+ * * *
10
+ ## 6.15.12 (2024-02-02)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * baseHref in angular json for sedia-host-playground [MWP-10529](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10529) ([1adb6548](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1adb6548a21c7174ee81a2ccea099131082b091c))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.15.11 (2024-01-23)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.15.11",
3
+ "version": "6.15.13",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -302,6 +302,11 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
302
302
  jsonFile['projects'][project.name].architect.build.options.scripts = angularConfigFile.build.scripts;
303
303
  }
304
304
 
305
+ tools.logInfo('Processing base href injection...');
306
+ if (angularConfigFile.build.baseHref) {
307
+ jsonFile['projects'][project.name].architect.build.options.baseHref = angularConfigFile.build.baseHref;
308
+ }
309
+
305
310
  // replacing custom configurations if provided
306
311
  if (angularConfigFile.configurations && angularConfigFile.configurations.length > 0) {
307
312
  tools.logInfo('Processing configurations injection');
@@ -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 defition of the auth parameters
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