@eui/tools 6.12.51 → 6.12.53

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.12.51
1
+ 6.12.53
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.53 (2023-09-14)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * remove lock for ngx-mask - EUI-7866 [EUI-7866](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7866) ([00feddb9](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/00feddb98a031a305afb61e8e864c69f2036d83f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.52 (2023-09-13)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * add possibility for lazyload def on routes to have different entries for different eUI version of playground - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([c1d34b4e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c1d34b4e1504b628539d35c3a2c09b2075c4e9d2))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.51 (2023-09-12)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.51",
3
+ "version": "6.12.53",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1703,7 +1703,6 @@
1703
1703
  ngrx-store-freeze "0.2.4"
1704
1704
  ngx-device-detector "3.0.0"
1705
1705
  ngx-infinite-scroll "14.0.1"
1706
- ngx-mask "14.2.4"
1707
1706
  ngx-perfect-scrollbar "10.1.1"
1708
1707
  oidc-client "1.11.5"
1709
1708
  pikaday "1.8.2"
@@ -9715,13 +9714,6 @@ ngx-markdown@10.0.0:
9715
9714
  prismjs "^1.20.0"
9716
9715
  tslib "^2.0.0"
9717
9716
 
9718
- ngx-mask@14.2.4:
9719
- version "14.2.4"
9720
- resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-mask/-/ngx-mask-14.2.4.tgz#da7ba480d7c7f5be9ff34c35a288838c58d65bbd"
9721
- integrity sha512-158nAe2tyiZa2T8COoI6SvJCQHqpJ4+JW0amGcvVEYUBF6FIoYK66BlnOJURAOy5qry0d0N45w7J/LGsCBgZcg==
9722
- dependencies:
9723
- tslib "^2.3.0"
9724
-
9725
9717
  ngx-perfect-scrollbar@10.1.1:
9726
9718
  version "10.1.1"
9727
9719
  resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-perfect-scrollbar/-/ngx-perfect-scrollbar-10.1.1.tgz#f89832b9109e89bb59d516184638accd028e9735"
@@ -2143,7 +2143,6 @@
2143
2143
  ngrx-store-freeze "0.2.4"
2144
2144
  ngx-device-detector "3.0.0"
2145
2145
  ngx-infinite-scroll "15.0.0"
2146
- ngx-mask "14.2.4"
2147
2146
  oidc-client "1.11.5"
2148
2147
  pikaday "1.8.2"
2149
2148
  prettier "2.8.8"
@@ -10051,13 +10050,6 @@ ngx-infinite-scroll@15.0.0:
10051
10050
  dependencies:
10052
10051
  tslib "^2.3.0"
10053
10052
 
10054
- ngx-mask@14.2.4:
10055
- version "14.2.4"
10056
- resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-mask/-/ngx-mask-14.2.4.tgz#da7ba480d7c7f5be9ff34c35a288838c58d65bbd"
10057
- integrity sha512-158nAe2tyiZa2T8COoI6SvJCQHqpJ4+JW0amGcvVEYUBF6FIoYK66BlnOJURAOy5qry0d0N45w7J/LGsCBgZcg==
10058
- dependencies:
10059
- tslib "^2.3.0"
10060
-
10061
10053
  nice-napi@^1.0.2:
10062
10054
  version "1.0.2"
10063
10055
  resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/nice-napi/-/nice-napi-1.0.2.tgz#dc0ab5a1eac20ce548802fc5686eaa6bc654927b"
@@ -1703,7 +1703,6 @@
1703
1703
  ngrx-store-freeze "0.2.4"
1704
1704
  ngx-device-detector "3.0.0"
1705
1705
  ngx-infinite-scroll "14.0.1"
1706
- ngx-mask "14.2.4"
1707
1706
  ngx-perfect-scrollbar "10.1.1"
1708
1707
  oidc-client "1.11.5"
1709
1708
  pikaday "1.8.2"
@@ -9715,13 +9714,6 @@ ngx-markdown@10.0.0:
9715
9714
  prismjs "^1.20.0"
9716
9715
  tslib "^2.0.0"
9717
9716
 
9718
- ngx-mask@14.2.4:
9719
- version "14.2.4"
9720
- resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-mask/-/ngx-mask-14.2.4.tgz#da7ba480d7c7f5be9ff34c35a288838c58d65bbd"
9721
- integrity sha512-158nAe2tyiZa2T8COoI6SvJCQHqpJ4+JW0amGcvVEYUBF6FIoYK66BlnOJURAOy5qry0d0N45w7J/LGsCBgZcg==
9722
- dependencies:
9723
- tslib "^2.3.0"
9724
-
9725
9717
  ngx-perfect-scrollbar@10.1.1:
9726
9718
  version "10.1.1"
9727
9719
  resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-perfect-scrollbar/-/ngx-perfect-scrollbar-10.1.1.tgz#f89832b9109e89bb59d516184638accd028e9735"
@@ -9461,13 +9461,6 @@ ngx-markdown@16.0.0:
9461
9461
  mermaid "^9.1.2"
9462
9462
  prismjs "^1.28.0"
9463
9463
 
9464
- ngx-mask@14.2.4:
9465
- version "14.2.4"
9466
- resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/ngx-mask/-/ngx-mask-14.2.4.tgz#da7ba480d7c7f5be9ff34c35a288838c58d65bbd"
9467
- integrity sha512-158nAe2tyiZa2T8COoI6SvJCQHqpJ4+JW0amGcvVEYUBF6FIoYK66BlnOJURAOy5qry0d0N45w7J/LGsCBgZcg==
9468
- dependencies:
9469
- tslib "^2.3.0"
9470
-
9471
9464
  nice-napi@^1.0.2:
9472
9465
  version "1.0.2"
9473
9466
  resolved "https://csdr-nexus.devops.tech.ec.europa.eu/repository/npm-group/nice-napi/-/nice-napi-1.0.2.tgz#dc0ab5a1eac20ce548802fc5686eaa6bc654927b"
@@ -294,9 +294,22 @@ const getProjectRoutes = (project, routesDefs) => {
294
294
  // those files are also generated based on the route "lazyDefs" data definition
295
295
 
296
296
  if (route.lazy) {
297
- const scopeName = defRoute.lazyLoadDef.npmPkg.split('/')[0].substr(1);
298
- const pkgName = defRoute.lazyLoadDef.npmPkg.split('/')[1];
299
- const lazyFeatureLibName = `${scopeName}-${pkgName}-${defRoute.lazyLoadDef.moduleName}.lib.module`;
297
+ let lazyLoadDef = null;
298
+
299
+ if (Array.isArray(defRoute.lazyLoadDef)) {
300
+ lazyLoadDef = defRoute.lazyLoadDef.filter(lld => lld.euiVersion === euiVersion)[0];
301
+ } else {
302
+ lazyLoadDef = defRoute.lazyLoadDef;
303
+ }
304
+
305
+ if (!lazyLoadDef) {
306
+ console.log(`Unable to find lazyLoadDef route for path : ${defRoute.path}`);
307
+ throw new Error('LAZY_ROUTE_DEF_NOT_FOUND');
308
+ }
309
+
310
+ const scopeName = lazyLoadDef.npmPkg.split('/')[0].substr(1);
311
+ const pkgName = lazyLoadDef.npmPkg.split('/')[1];
312
+ const lazyFeatureLibName = `${scopeName}-${pkgName}-${lazyLoadDef.moduleName}.lib.module`;
300
313
 
301
314
  if (euiVersion === '10.x') {
302
315
  loadChildrenGenerated = `loadChildren: "./features/${lazyFeatureLibName}#Module"`;
@@ -306,8 +319,8 @@ const getProjectRoutes = (project, routesDefs) => {
306
319
 
307
320
  lazyLibDef = {
308
321
  filename: `${lazyFeatureLibName}.ts`,
309
- npmPkg: defRoute.lazyLoadDef.npmPkg,
310
- moduleName: defRoute.lazyLoadDef.moduleName,
322
+ npmPkg: lazyLoadDef.npmPkg,
323
+ moduleName: lazyLoadDef.moduleName,
311
324
  };
312
325
 
313
326
  // if the route is a remote, the elementLoader is then used as a default feature module loaded