@eui/tools 6.12.37 → 6.12.38

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 (46) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +9 -0
  3. package/package.json +1 -1
  4. package/scripts/csdr/config/angular.js +5 -12
  5. package/scripts/csdr/init/remotes/17.x/base/angular.json +87 -0
  6. package/scripts/csdr/init/remotes/17.x/base/browserslist +6 -0
  7. package/scripts/csdr/init/remotes/17.x/base/package.json_TO_REPLACE +10 -0
  8. package/scripts/csdr/init/remotes/17.x/base/tsconfig.app.json +24 -0
  9. package/scripts/csdr/init/remotes/17.x/base/yarn.lock +14275 -0
  10. package/scripts/csdr/init/remotes/17.x/full/common/app/eui-components.ts +9 -0
  11. package/scripts/csdr/init/remotes/17.x/full/common/app/fallback.component.ts +11 -0
  12. package/scripts/csdr/init/remotes/17.x/full/common/app/module.component.ts +91 -0
  13. package/scripts/csdr/init/remotes/17.x/full/common/app/module.ts +96 -0
  14. package/scripts/csdr/init/remotes/17.x/full/common/app/reducers/custom-route-serializer.ts +28 -0
  15. package/scripts/csdr/init/remotes/17.x/full/common/app/reducers/index.ts +42 -0
  16. package/scripts/csdr/init/remotes/17.x/full/common/app/routing.module.ts +34 -0
  17. package/scripts/csdr/init/remotes/17.x/full/common/assets/.gitkeep +0 -0
  18. package/scripts/csdr/init/remotes/17.x/full/common/config/global.ts +54 -0
  19. package/scripts/csdr/init/remotes/17.x/full/common/config/index.ts +10 -0
  20. package/scripts/csdr/init/remotes/17.x/full/common/config/modules.ts +3 -0
  21. package/scripts/csdr/init/remotes/17.x/full/common/environments/environment.prod.ts +3 -0
  22. package/scripts/csdr/init/remotes/17.x/full/common/environments/environment.ts +3 -0
  23. package/scripts/csdr/init/remotes/17.x/full/common/favicon.ico +0 -0
  24. package/scripts/csdr/init/remotes/17.x/full/common/index.html +10 -0
  25. package/scripts/csdr/init/remotes/17.x/full/common/main.ts +11 -0
  26. package/scripts/csdr/init/remotes/17.x/full/common/polyfills.ts +88 -0
  27. package/scripts/csdr/init/remotes/17.x/full/common/test.ts +20 -0
  28. package/scripts/csdr/init/remotes/17.x/full/options/ag-grid/main.ts +17 -0
  29. package/scripts/csdr/init/remotes/17.x/full/options/all-locales/config/global.ts +122 -0
  30. package/scripts/csdr/init/remotes/17.x/full/options/definitions/dynamic-forms.json +4 -0
  31. package/scripts/csdr/init/remotes/17.x/full/options/definitions/dynatrace.json +4 -0
  32. package/scripts/csdr/init/remotes/17.x/full/options/definitions/participant.json +3 -0
  33. package/scripts/csdr/init/remotes/17.x/full/options/definitions/user-reducers.json +3 -0
  34. package/scripts/csdr/init/remotes/17.x/full/options/definitions/zipkin.json +5 -0
  35. package/scripts/csdr/init/remotes/17.x/full/options/participant/app/module.component.ts +94 -0
  36. package/scripts/csdr/init/remotes/17.x/full/options/participant/app/routing.module.ts +26 -0
  37. package/scripts/csdr/init/remotes/17.x/full/options/participant/config/index.ts +10 -0
  38. package/scripts/csdr/init/remotes/17.x/full/options/user-reducers/app/reducers/index.ts +66 -0
  39. package/scripts/csdr/init/resources/17.x/browserslistrc +6 -0
  40. package/scripts/csdr/init/resources/17.x/resolutions.json +5 -0
  41. package/scripts/csdr/init/resources/17.x/yarn.lock +13395 -0
  42. package/scripts/csdr/metadata/stats.js +1 -0
  43. package/scripts/utils/build/package/build-package-utils.js +1 -1
  44. package/scripts/utils/build/package/styles.js +2 -1
  45. package/scripts/utils/pre-build/injection/skeletons.js +1 -1
  46. package/scripts/utils/pre-build/projects.js +2 -0
@@ -1 +1 @@
1
- 6.12.37
1
+ 6.12.38
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.12.38 (2023-08-07)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.12.37 (2023-08-04)
2
11
 
3
12
  ##### 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.38",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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 {
@@ -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
+ }