@eui/tools 5.3.81 → 5.3.82

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
- 5.3.81
1
+ 5.3.82
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.3.82 (2022-10-27)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted v14 and v15 remotes skeletons - MWP-8915 [MWP-8915](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8915) ([0b49db6c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0b49db6c99e382f5413a6638140f84de8422bfbd))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.3.81 (2022-10-27)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.81",
3
+ "version": "5.3.82",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -14,12 +14,12 @@ const TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
14
14
  const SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
15
15
  const FRONTEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend');
16
16
  const FRONTEND_SKELETON_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui10');
17
- const FRONTEND_SKELETON_EUI13_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui13');
18
17
  const FRONTEND_SKELETON_EUI14_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui14');
18
+ const FRONTEND_SKELETON_EUI15_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui15');
19
19
  const FRONTEND_SKELETON_REMOTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote');
20
20
  const FRONTEND_SKELETON_REMOTE_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui10');
21
- const FRONTEND_SKELETON_REMOTE_EUI13_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui13');
22
21
  const FRONTEND_SKELETON_REMOTE_EUI14_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui14');
22
+ const FRONTEND_SKELETON_REMOTE_EUI15_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui15');
23
23
  const FRONTEND_OPTION_ROUTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-option-route');
24
24
  const BACKEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'backend');
25
25
 
@@ -37,8 +37,8 @@ const defaultConfig = {
37
37
  pkgFrontendVersion: {
38
38
  DEFAULT: 'eui7',
39
39
  EUI10: 'eui10',
40
- EUI13: 'eui13',
41
40
  EUI14: 'eui14',
41
+ EUI15: 'eui15',
42
42
  },
43
43
  isRouteModule: true,
44
44
  isCsdrRepo: true,
@@ -101,8 +101,8 @@ const prompt = () => {
101
101
  choices: [
102
102
  { name: 'v7', value: defaultConfig.pkgFrontendVersion.DEFAULT },
103
103
  { name: 'v10', value: defaultConfig.pkgFrontendVersion.EUI10 },
104
- { name: 'v13', value: defaultConfig.pkgFrontendVersion.EUI13 },
105
104
  { name: 'v14', value: defaultConfig.pkgFrontendVersion.EUI14 },
105
+ { name: 'v15', value: defaultConfig.pkgFrontendVersion.EUI15 },
106
106
  ],
107
107
  default: defaultConfig.pkgFrontendType.DEFAULT,
108
108
  when: function (answers) {
@@ -198,14 +198,14 @@ const buildFrontend = (
198
198
  fullName += '-eui10-remote-el-ui';
199
199
  npmPkgName = `${scope}/${name}-eui10-remote-el`;
200
200
 
201
- } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
202
- fullName += '-eui13-remote-el-ui';
203
- npmPkgName = `${scope}/${name}-eui13-remote-el`;
204
-
205
201
  } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
206
202
  fullName += '-eui14-remote-el-ui';
207
203
  npmPkgName = `${scope}/${name}-eui14-remote-el`;
208
204
 
205
+ } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI15) {
206
+ fullName += '-eui15-remote-el-ui';
207
+ npmPkgName = `${scope}/${name}-eui15-remote-el`;
208
+
209
209
  } else {
210
210
  fullName += '-remote-el-ui';
211
211
  npmPkgName = `${scope}/${name}-remote-el`;
@@ -254,14 +254,14 @@ const buildFrontend = (
254
254
  if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
255
255
  return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
256
256
 
257
- } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
258
- tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
259
- return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI13_PATH, targetPath, true);
260
-
261
257
  } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
262
258
  tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
263
259
  return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI14_PATH, targetPath, true);
264
260
 
261
+ } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI15) {
262
+ tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
263
+ return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI15_PATH, targetPath, true);
264
+
265
265
  } else {
266
266
  return tools.copydir(FRONTEND_SKELETON_REMOTE_PATH, targetPath, true);
267
267
  }
@@ -270,14 +270,14 @@ const buildFrontend = (
270
270
  if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
271
271
  return tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
272
272
 
273
- } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
274
- tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
275
- return tools.copydir(FRONTEND_SKELETON_EUI13_PATH, targetPath, true);
276
-
277
273
  } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
278
274
  tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
279
275
  return tools.copydir(FRONTEND_SKELETON_EUI14_PATH, targetPath, true);
280
276
 
277
+ } else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI15) {
278
+ tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
279
+ return tools.copydir(FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
280
+
281
281
  } else {
282
282
  return tools.copydir(FRONTEND_SKELETON_PATH, targetPath, true);
283
283
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "@eui/deps-base": "^15.0.0"
3
+ }
@@ -0,0 +1,11 @@
1
+ import {
2
+ EuiBlockContentComponentModule,
3
+ EuiButtonModule,
4
+ EuiLabelModule,
5
+ } from '@eui/components-next';
6
+
7
+ export const EUI_COMPONENTS_MODULES = [
8
+ EuiBlockContentComponentModule,
9
+ EuiButtonModule,
10
+ EuiLabelModule,
11
+ ];
@@ -16,14 +16,10 @@ import {
16
16
  EUI_CONFIG_TOKEN,
17
17
  translateConfig,
18
18
  } from '@eui/core';
19
- import {
20
- EuiBlockContentComponentModule,
21
- EuiButtonModule,
22
- EuiLabelModule,
23
- } from '@eui/components-next';
24
- import {
25
- CsdrCoreModule,
26
- } from '@csdr/core';
19
+
20
+ import { EUI_COMPONENTS_MODULES } from './eui-components';
21
+
22
+ import { CsdrCoreModule } from '@csdr/core';
27
23
 
28
24
  import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
29
25
  import { CustomSerializer } from './reducers/custom-route-serializer';
@@ -32,9 +28,7 @@ import { environment } from '../environments/environment';
32
28
  import { appConfig } from '../config';
33
29
 
34
30
  import { Module as RootPackageCommonModule } from '@module.scope@/@module.name@';
35
- import {
36
- DEFAULT_MAPPED_PROVIDERS,
37
- } from '@csdr/integration/element';
31
+ import { DEFAULT_MAPPED_PROVIDERS } from '@csdr/integration/element';
38
32
  import { RoutingModule } from './routing.module';
39
33
 
40
34
  import { FallbackComponent } from './fallback.component';
@@ -54,12 +48,10 @@ import { ModuleComponent } from './module.component';
54
48
  CoreModule.forRoot(),
55
49
  CsdrCoreModule.forRoot(),
56
50
 
57
- EuiBlockContentComponentModule,
58
- EuiButtonModule,
59
- EuiLabelModule,
60
-
61
51
  RootPackageCommonModule,
62
52
  RoutingModule,
53
+
54
+ ...EUI_COMPONENTS_MODULES,
63
55
  ],
64
56
  declarations: [
65
57
  FallbackComponent,
@@ -22,9 +22,9 @@ const i18nConfig: I18nConfig = {
22
22
  */
23
23
  export const GLOBAL: GlobalConfig = {
24
24
  /* URL that needs to be used in the appRouting of the MWP */
25
- baseUrl: '@module.name@-v10',
25
+ baseUrl: '@module.name@',
26
26
  /* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
27
- elementName: '@module.scope-name@-v10',
27
+ elementName: '@module.scope-name@',
28
28
  /* in case you are using NgRx give it a unique name (mostly for debugging) */
29
29
  storeName: '@module.scope-name@',
30
30
  i18n: i18nConfig,
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "apps",
5
+ "projects": {
6
+ "@module.full.name@": {
7
+ "root": ".",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "app",
11
+ "schematics": {},
12
+ "architect": {
13
+ "build": {
14
+ "builder": "ngx-build-plus:build",
15
+ "options": {
16
+ "deployUrl": "/mwp/assets/elements/@module.full.name@/bundles/",
17
+ "outputPath": "dist",
18
+ "index": "src/index.html",
19
+ "main": "src/main.ts",
20
+ "polyfills": "src/polyfills.ts",
21
+ "tsConfig": "tsconfig.app.json",
22
+ "scripts": [
23
+ "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
24
+ ],
25
+ "assets": [
26
+ "src/assets"
27
+ ],
28
+ "styles": [
29
+ "./node_modules/@eui/styles/dist/styles/eui.css"
30
+ ]
31
+ },
32
+ "configurations": {
33
+ "production": {
34
+ "fileReplacements": [
35
+ {
36
+ "replace": "src/environments/environment.ts",
37
+ "with": "src/environments/environment.prod.ts"
38
+ }
39
+ ],
40
+ "optimization": true,
41
+ "outputHashing": "all",
42
+ "sourceMap": false,
43
+ "extractCss": true,
44
+ "namedChunks": false,
45
+ "aot": true,
46
+ "extractLicenses": true,
47
+ "vendorChunk": false,
48
+ "buildOptimizer": true
49
+ },
50
+ "serve-dist": {
51
+ "outputPath": "serve-dist",
52
+ "wath": true
53
+ }
54
+ }
55
+ },
56
+ "serve": {
57
+ "builder": "./node_modules/@angular-devkit/build-angular:dev-server",
58
+ "options": {
59
+ "deployUrl": "/assets/elements/@module.full.name@/bundles/",
60
+ "browserTarget": "@module.full.name@:build:serve-dist"
61
+ },
62
+ "configurations": {
63
+ "production": {
64
+ "browserTarget": "@module.full.name@:build:production"
65
+ }
66
+ }
67
+ },
68
+ "test": {
69
+ "builder": "./node_modules/@angular-devkit/build-angular:karma",
70
+ "options": {
71
+ "main": "src/test.ts",
72
+ "polyfills": "src/polyfills.ts",
73
+ "tsConfig": "tsconfig.spec.json",
74
+ "karmaConfig": "karma.conf.js",
75
+ "scripts": []
76
+ }
77
+ }
78
+ }
79
+ }
80
+ },
81
+ "cli": {
82
+ "analytics": false
83
+ }
84
+ }
@@ -2,5 +2,7 @@
2
2
  "@eui/deps-base": "^14.0.0",
3
3
 
4
4
  "@csdr/core": "^3.0.0",
5
- "@csdr/integration": "^3.0.0"
5
+ "@csdr/integration": "^3.0.0",
6
+
7
+ "@module.scope@/@module.name@": "^1.0.0"
6
8
  }
@@ -0,0 +1,9 @@
1
+ import { EuiBlockContentComponentModule } from '@eui/components/eui-block-content';
2
+ import { EuiButtonModule } from '@eui/components/eui-button';
3
+ import { EuiLabelModule } from '@eui/components/atoms';
4
+
5
+ export const EUI_COMPONENTS_MODULES = [
6
+ EuiBlockContentComponentModule,
7
+ EuiButtonModule,
8
+ EuiLabelModule,
9
+ ];
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "apps",
5
+ "projects": {
6
+ "@module.full.name@": {
7
+ "root": ".",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "app",
11
+ "schematics": {},
12
+ "architect": {
13
+ "build": {
14
+ "builder": "ngx-build-plus:build",
15
+ "options": {
16
+ "deployUrl": "/mwp/assets/elements/@module.full.name@/bundles/",
17
+ "outputPath": "dist",
18
+ "index": "src/index.html",
19
+ "main": "src/main.ts",
20
+ "polyfills": "src/polyfills.ts",
21
+ "tsConfig": "tsconfig.app.json",
22
+ "scripts": [
23
+ "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
24
+ ],
25
+ "assets": [
26
+ "src/assets"
27
+ ],
28
+ "styles": [
29
+ "./node_modules/@eui/styles/dist/styles/eui.css"
30
+ ]
31
+ },
32
+ "configurations": {
33
+ "production": {
34
+ "fileReplacements": [
35
+ {
36
+ "replace": "src/environments/environment.ts",
37
+ "with": "src/environments/environment.prod.ts"
38
+ }
39
+ ],
40
+ "optimization": true,
41
+ "outputHashing": "all",
42
+ "sourceMap": false,
43
+ "extractCss": true,
44
+ "namedChunks": false,
45
+ "aot": true,
46
+ "extractLicenses": true,
47
+ "vendorChunk": false,
48
+ "buildOptimizer": true
49
+ },
50
+ "serve-dist": {
51
+ "outputPath": "serve-dist",
52
+ "wath": true
53
+ }
54
+ }
55
+ },
56
+ "serve": {
57
+ "builder": "./node_modules/@angular-devkit/build-angular:dev-server",
58
+ "options": {
59
+ "deployUrl": "/assets/elements/@module.full.name@/bundles/",
60
+ "browserTarget": "@module.full.name@:build:serve-dist"
61
+ },
62
+ "configurations": {
63
+ "production": {
64
+ "browserTarget": "@module.full.name@:build:production"
65
+ }
66
+ }
67
+ },
68
+ "test": {
69
+ "builder": "./node_modules/@angular-devkit/build-angular:karma",
70
+ "options": {
71
+ "main": "src/test.ts",
72
+ "polyfills": "src/polyfills.ts",
73
+ "tsConfig": "tsconfig.spec.json",
74
+ "karmaConfig": "karma.conf.js",
75
+ "scripts": []
76
+ }
77
+ }
78
+ }
79
+ }
80
+ },
81
+ "cli": {
82
+ "analytics": false
83
+ }
84
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@eui/deps-base": "^15.0.0",
3
+
4
+ "@csdr/core": "^3.0.0",
5
+ "@csdr/integration": "^3.0.0",
6
+
7
+ "@module.scope@/@module.name@": "^1.0.0"
8
+ }
@@ -0,0 +1,9 @@
1
+ import { EuiBlockContentComponentModule } from '@eui/components/eui-block-content';
2
+ import { EuiButtonModule } from '@eui/components/eui-button';
3
+ import { EuiLabelModule } from '@eui/components/atoms';
4
+
5
+ export const EUI_COMPONENTS_MODULES = [
6
+ EuiBlockContentComponentModule,
7
+ EuiButtonModule,
8
+ EuiLabelModule,
9
+ ];
@@ -1,3 +0,0 @@
1
- {
2
- "@eui/deps-base": "^13.0.0"
3
- }
@@ -1,6 +0,0 @@
1
- {
2
- "@eui/deps-base": "^13.0.0",
3
-
4
- "@csdr/core": "^3.0.0",
5
- "@csdr/integration": "^3.0.0"
6
- }