@eui/tools 6.12.37 → 6.12.39

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.
Files changed (51) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/package.json +1 -1
  4. package/sandbox.js +13 -5
  5. package/scripts/csdr/config/angular.js +6 -13
  6. package/scripts/csdr/init/remotes/17.x/base/angular.json +87 -0
  7. package/scripts/csdr/init/remotes/17.x/base/browserslist +6 -0
  8. package/scripts/csdr/init/remotes/17.x/base/package.json_TO_REPLACE +10 -0
  9. package/scripts/csdr/init/remotes/17.x/base/tsconfig.app.json +24 -0
  10. package/scripts/csdr/init/remotes/17.x/base/yarn.lock +14275 -0
  11. package/scripts/csdr/init/remotes/17.x/full/common/app/eui-components.ts +9 -0
  12. package/scripts/csdr/init/remotes/17.x/full/common/app/fallback.component.ts +11 -0
  13. package/scripts/csdr/init/remotes/17.x/full/common/app/module.component.ts +91 -0
  14. package/scripts/csdr/init/remotes/17.x/full/common/app/module.ts +96 -0
  15. package/scripts/csdr/init/remotes/17.x/full/common/app/reducers/custom-route-serializer.ts +28 -0
  16. package/scripts/csdr/init/remotes/17.x/full/common/app/reducers/index.ts +42 -0
  17. package/scripts/csdr/init/remotes/17.x/full/common/app/routing.module.ts +34 -0
  18. package/scripts/csdr/init/remotes/17.x/full/common/assets/.gitkeep +0 -0
  19. package/scripts/csdr/init/remotes/17.x/full/common/config/global.ts +54 -0
  20. package/scripts/csdr/init/remotes/17.x/full/common/config/index.ts +10 -0
  21. package/scripts/csdr/init/remotes/17.x/full/common/config/modules.ts +3 -0
  22. package/scripts/csdr/init/remotes/17.x/full/common/environments/environment.prod.ts +3 -0
  23. package/scripts/csdr/init/remotes/17.x/full/common/environments/environment.ts +3 -0
  24. package/scripts/csdr/init/remotes/17.x/full/common/favicon.ico +0 -0
  25. package/scripts/csdr/init/remotes/17.x/full/common/index.html +10 -0
  26. package/scripts/csdr/init/remotes/17.x/full/common/main.ts +11 -0
  27. package/scripts/csdr/init/remotes/17.x/full/common/polyfills.ts +88 -0
  28. package/scripts/csdr/init/remotes/17.x/full/common/test.ts +20 -0
  29. package/scripts/csdr/init/remotes/17.x/full/options/ag-grid/main.ts +17 -0
  30. package/scripts/csdr/init/remotes/17.x/full/options/all-locales/config/global.ts +122 -0
  31. package/scripts/csdr/init/remotes/17.x/full/options/definitions/dynamic-forms.json +4 -0
  32. package/scripts/csdr/init/remotes/17.x/full/options/definitions/dynatrace.json +4 -0
  33. package/scripts/csdr/init/remotes/17.x/full/options/definitions/participant.json +3 -0
  34. package/scripts/csdr/init/remotes/17.x/full/options/definitions/user-reducers.json +3 -0
  35. package/scripts/csdr/init/remotes/17.x/full/options/definitions/zipkin.json +5 -0
  36. package/scripts/csdr/init/remotes/17.x/full/options/participant/app/module.component.ts +94 -0
  37. package/scripts/csdr/init/remotes/17.x/full/options/participant/app/routing.module.ts +26 -0
  38. package/scripts/csdr/init/remotes/17.x/full/options/participant/config/index.ts +10 -0
  39. package/scripts/csdr/init/remotes/17.x/full/options/user-reducers/app/reducers/index.ts +66 -0
  40. package/scripts/csdr/init/repos.js +0 -1
  41. package/scripts/csdr/init/resources/17.x/browserslistrc +6 -0
  42. package/scripts/csdr/init/resources/17.x/resolutions.json +5 -0
  43. package/scripts/csdr/init/resources/17.x/yarn.lock +13395 -0
  44. package/scripts/csdr/metadata/stats.js +1 -0
  45. package/scripts/utils/build/package/build-package-utils.js +1 -1
  46. package/scripts/utils/build/package/styles.js +2 -1
  47. package/scripts/utils/git-utils.js +10 -0
  48. package/scripts/utils/pre-build/injection/skeletons.js +1 -1
  49. package/scripts/utils/pre-build/projects.js +2 -0
  50. package/scripts/utils/pre-build/routes-replacement/routes-replacement.js +22 -15
  51. package/scripts/utils/tools.js +1 -1
@@ -1 +1 @@
1
- 6.12.37
1
+ 6.12.39
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.39 (2023-08-10)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * added capabilities for stand-alone generic portal for CBAM PoC - EUI-7860 [EUI-7860](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7860) ([0453e5bd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0453e5bda0ffb6b4b4c42d485b76ba0317d59be0))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.38 (2023-08-07)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * added v17 adaptations - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([1d774381](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1d7743815386b671ada2031784e293c755722d9f))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.37 (2023-08-04)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.37",
3
+ "version": "6.12.39",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -1306,15 +1306,23 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
1306
1306
  // })
1307
1307
 
1308
1308
 
1309
+ // Promise.resolve()
1310
+ // .then(() => {
1311
+ // const prjName = 'my-workplace-host-playground-custom';
1312
+ // const project = configUtils.projects.getCsdrProject(prjName);
1313
+ // const envTarget = 'cdn-dev-local';
1309
1314
 
1315
+ // return preBuildUtils.routesReplacement.buildRoutes(project, envTarget);
1316
+ // })
1317
+
1318
+ // .catch((e) => {
1319
+ // console.log(e);
1320
+ // })
1310
1321
 
1311
1322
  Promise.resolve()
1312
1323
  .then(() => {
1313
- const prjName = 'my-workplace-host-playground-custom';
1314
- const project = configUtils.projects.getCsdrProject(prjName);
1315
- const envTarget = 'cdn-dev-local';
1316
-
1317
- return preBuildUtils.routesReplacement.buildRoutes(project, envTarget);
1324
+ const pkgs = configUtils.packages.getPackages();
1325
+ console.log(pkgs);
1318
1326
  })
1319
1327
 
1320
1328
  .catch((e) => {
@@ -90,10 +90,7 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
90
90
  if (packageEuiVersion === '14.x') {
91
91
  projectDef = JSON.stringify(angularPackageDefV14);
92
92
  }
93
- if (packageEuiVersion === '15.x') {
94
- projectDef = JSON.stringify(angularPackageDefV15);
95
- }
96
- if (packageEuiVersion === '16.x') {
93
+ if (packageEuiVersion === '15.x' || packageEuiVersion === '16.x' || packageEuiVersion === '17.x') {
97
94
  projectDef = JSON.stringify(angularPackageDefV15);
98
95
  }
99
96
 
@@ -123,11 +120,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg
123
120
 
124
121
  let projectDef = JSON.stringify(angularPackageSubEntryDef);
125
122
 
126
- if (packageEuiVersion === '15.x') {
127
- projectDef = JSON.stringify(angularPackageSubEntryDef15);
128
- projectDef = projectDef.replace('"main":"packages/eui/packages/components/@subEntry.path@/test.ts",', '');
129
- }
130
- if (packageEuiVersion === '16.x') {
123
+ if (packageEuiVersion === '15.x' || packageEuiVersion === '16.x' || packageEuiVersion === '17.x') {
131
124
  projectDef = JSON.stringify(angularPackageSubEntryDef15);
132
125
  projectDef = projectDef.replace('"main":"packages/eui/packages/components/@subEntry.path@/test.ts",', '');
133
126
  }
@@ -135,7 +128,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg
135
128
  projectDef = tools.replaceAll(projectDef, '@subEntry.package.name@', 'ng-package.json');
136
129
  projectDef = tools.replaceAll(projectDef, '@tsconfig@', pkg.tsConfigFileName);
137
130
 
138
- if (packageEuiVersion === '15.x' || packageEuiVersion === '16.x') {
131
+ if (packageEuiVersion === '15.x' || packageEuiVersion === '16.x' || packageEuiVersion === '17.x') {
139
132
  // if tsconfig is missing add it
140
133
  const tsConfigSpecPath = path.join(process.cwd(), JSON.parse(projectDef).architect.test.options.tsConfig);
141
134
  // check if tsconfig exists otherwise created it
@@ -232,7 +225,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
232
225
  if (euiVersion === '13.x') {
233
226
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV13);
234
227
  tools.logInfo(`----using angularProjectDefFullSkeletonV13`);
235
- } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
228
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x' || euiVersion === '17.x') {
236
229
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
237
230
  tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
238
231
  } else {
@@ -244,7 +237,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
244
237
  if (euiVersion === '13.x') {
245
238
  projectDef = JSON.stringify(angularProjectDefV13);
246
239
  tools.logInfo(`----using angularProjectDefV13`);
247
- } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
240
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x' || euiVersion === '17.x') {
248
241
  projectDef = JSON.stringify(angularProjectDefV14);
249
242
  tools.logInfo(`----using angularProjectDefV14`);
250
243
  } else {
@@ -285,7 +278,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
285
278
  }
286
279
 
287
280
  tools.logInfo('Processing scripts injection...');
288
- if (angularConfigFile.build.scripts.length > 0) {
281
+ if (angularConfigFile.build.scripts && angularConfigFile.build.scripts.length > 0) {
289
282
  jsonFile['projects'][project.name].architect.build.options.scripts = angularConfigFile.build.scripts;
290
283
  }
291
284
 
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "apps",
5
+ "projects": {
6
+ "@remote.name@": {
7
+ "root": ".",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "app",
11
+ "schematics": {},
12
+ "architect": {
13
+ "build": {
14
+ "builder": "@angular-devkit/build-angular:browser",
15
+ "options": {
16
+ "outputPath": "dist",
17
+ "index": "src/index.html",
18
+ "main": "src/main.ts",
19
+ "polyfills": "src/polyfills.ts",
20
+ "tsConfig": "tsconfig.app.json",
21
+ "sourceMap": {
22
+ "scripts": true,
23
+ "styles": false,
24
+ "hidden": true,
25
+ "vendor": true
26
+ },
27
+ "scripts": [
28
+ "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
29
+ ],
30
+ "assets": [
31
+ "src/assets",
32
+ {
33
+ "glob": "**/*",
34
+ "input": "node_modules/@eui/core/assets/",
35
+ "output": "./assets"
36
+ },
37
+ {
38
+ "glob": "**/*",
39
+ "input": "node_modules/@eui/styles-base/dist/assets/",
40
+ "output": "./assets"
41
+ }
42
+ ],
43
+ "styles": [
44
+ "node_modules/@eui/styles/dist/styles/eui.css",
45
+ "node_modules/@eui/styles/dist/styles/eui-extra-utilities.css",
46
+ "node_modules/@eui/styles/dist/styles/eui-legacy-bootstrap.css",
47
+ "node_modules/@eui/styles/dist/styles/eui-legacy-icons-font.css",
48
+ "node_modules/@eui/styles/dist/styles/eui-legacy-utilities.css"
49
+ ]
50
+ },
51
+ "configurations": {
52
+ "development": {
53
+ "buildOptimizer": false,
54
+ "optimization": false,
55
+ "vendorChunk": true,
56
+ "extractLicenses": false,
57
+ "sourceMap": false,
58
+ "namedChunks": true
59
+ },
60
+ "production": {
61
+ "fileReplacements": [
62
+ {
63
+ "replace": "src/environments/environment.ts",
64
+ "with": "src/environments/environment.prod.ts"
65
+ }
66
+ ],
67
+ "optimization": true,
68
+ "outputHashing": "all",
69
+ "sourceMap": false,
70
+ "namedChunks": false,
71
+ "aot": true,
72
+ "extractLicenses": true,
73
+ "vendorChunk": false,
74
+ "buildOptimizer": true
75
+ },
76
+ "serve-dist": {
77
+ "outputPath": "serve-dist"
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "cli": {
85
+ "analytics": false
86
+ }
87
+ }
@@ -0,0 +1,6 @@
1
+ last 1 Chrome version
2
+ last 1 Firefox version
3
+ last 2 Edge major versions
4
+ last 2 Safari major versions
5
+ last 2 iOS major versions
6
+ Firefox ESR
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "generated",
3
+ "version": "1.0.0-SNAPSHOT.0",
4
+ "files": [
5
+ "bundles"
6
+ ],
7
+ "dependencies": {},
8
+ "resolutions": {
9
+ }
10
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "target": "ES2022",
6
+ "module": "ES2022",
7
+ "lib": [
8
+ "ES2022",
9
+ "dom"
10
+ ],
11
+ "types": [
12
+ "node"
13
+ ],
14
+ "paths": {
15
+ "os": ["./node_modules/empty-module/index.js"],
16
+ "node-fetch": ["./node_modules/empty-module/index.js"],
17
+ "zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
18
+ }
19
+ },
20
+ "exclude": [
21
+ "src/test.ts",
22
+ "**/*.spec.ts"
23
+ ]
24
+ }