@eui/tools 6.11.31 → 6.12.0
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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/sandbox.js +26 -9
- package/scripts/app/public/package-init.js +4 -1
- package/scripts/csdr/audit/styles.js +13 -4
- package/scripts/csdr/cli/constants.js +4 -0
- package/scripts/csdr/cli/package-build-frontend.js +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/components/main.component.html +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/components/main.component.ts +8 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/constants.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/containers/container.component.ts +28 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/module.ts +80 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/lib/routing-module.ts +23 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/lib/components/participant/participant.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/lib/components/participant/participant.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/lib/module.ts +24 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/.eslintrc.json +79 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/index.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/containers/container.component.ts +36 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/models/block.model.ts +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/blocks/sample/module.ts +37 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/constants.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/containers/block-store.service.ts +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/containers/container.component.ts +44 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/containers/generic-block-resolver.service.ts +32 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/models/block-type.model.ts +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/models/block.model.ts +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/models/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/module.ts +60 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/store/actions/block.actions.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/store/reducers/block.reducer.ts +48 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/store/reducers/index.ts +22 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/main/store/selectors/block.selectors.ts +29 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/lib/module.ts +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-ngrx/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/16.x/angular-config.json +9 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/16.x/dependencies.json +21 -0
- package/scripts/csdr/config/global.js +10 -1
- package/scripts/csdr/config/register.js +2 -1
- package/scripts/csdr/metadata/package.js +29 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.12.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.12.0 (2023-06-13)
|
|
2
|
+
|
|
3
|
+
##### New Features
|
|
4
|
+
|
|
5
|
+
* **audit:**
|
|
6
|
+
* enforces styles audit gates on newly created packages - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([59c87f1f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/59c87f1feae9937f324cfc3076c37704d139403d))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.11.32 (2023-06-09)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* added 16.x remote and packages creation skeletons - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([9957dfeb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9957dfeb40e1fd8600caaade8c6ab8275345e163))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.11.31 (2023-06-07)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1212,15 +1212,15 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
1212
1212
|
// console.log(config);
|
|
1213
1213
|
// })
|
|
1214
1214
|
|
|
1215
|
-
Promise.resolve()
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1215
|
+
// Promise.resolve()
|
|
1216
|
+
// .then(() => {
|
|
1217
|
+
// const prjName = 'my-workplace-host-playground';
|
|
1218
|
+
// const project = configUtils.projects.getCsdrProject(prjName);
|
|
1219
|
+
// return preBuildUtils.projects.preBuild(project, 'TST', true, 'cdn-tst');
|
|
1220
|
+
// })
|
|
1221
|
+
// .catch((e) => {
|
|
1222
|
+
// console.log(e);
|
|
1223
|
+
// })
|
|
1224
1224
|
|
|
1225
1225
|
// Promise.resolve()
|
|
1226
1226
|
// .then(() => {
|
|
@@ -1248,3 +1248,20 @@ Promise.resolve()
|
|
|
1248
1248
|
// console.log(e);
|
|
1249
1249
|
// process.exit(1);
|
|
1250
1250
|
// })
|
|
1251
|
+
|
|
1252
|
+
Promise.resolve()
|
|
1253
|
+
.then(() => {
|
|
1254
|
+
const pkg = configUtils.packages.getPackage('folio-fo-ui', true);
|
|
1255
|
+
console.log(metadataUtils.package.isNewPackageBuild(pkg));
|
|
1256
|
+
const pkg2 = configUtils.packages.getPackage('cc-summa-shared-ui', true);
|
|
1257
|
+
console.log(metadataUtils.package.isNewPackageBuild(pkg2));
|
|
1258
|
+
|
|
1259
|
+
return auditUtils.styles.audit(pkg);
|
|
1260
|
+
})
|
|
1261
|
+
.then(() => {
|
|
1262
|
+
console.log('ok');
|
|
1263
|
+
})
|
|
1264
|
+
|
|
1265
|
+
.catch((e) => {
|
|
1266
|
+
console.log(e);
|
|
1267
|
+
})
|
|
@@ -27,7 +27,10 @@ new Vue({
|
|
|
27
27
|
{ label: "Backend - springBoot micro-service", value: "backend" },
|
|
28
28
|
{ label: "Frontend UI package or remote", value: "frontend" },
|
|
29
29
|
],
|
|
30
|
-
frontendVersions: [
|
|
30
|
+
frontendVersions: [
|
|
31
|
+
{ label: "15.x", value: "15" },
|
|
32
|
+
{ label: "16.x", value: "16" }
|
|
33
|
+
],
|
|
31
34
|
frontendTypes: [
|
|
32
35
|
{ label: "default UI package", value: "default" },
|
|
33
36
|
{ label: "Remote micro-frontend package", value: "remote" },
|
|
@@ -8,6 +8,7 @@ const glob = require('glob');
|
|
|
8
8
|
const tools = require('../../utils/tools');
|
|
9
9
|
const notificationUtils = require('../../utils/notification/notification-utils');
|
|
10
10
|
const configUtils = require('../config/config-utils');
|
|
11
|
+
const metadataUtils = require('../metadata/metadata-utils');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
|
|
@@ -496,14 +497,22 @@ module.exports.audit = (pkg) => {
|
|
|
496
497
|
}
|
|
497
498
|
|
|
498
499
|
// getting gates for euiVersion found
|
|
499
|
-
|
|
500
|
+
let gates = configOptions.AUDIT_STYLES_GATES[euiVersion];
|
|
500
501
|
|
|
501
502
|
tools.logTitle(`Checking audit styles gates for local euiVersion : ${euiVersion}`);
|
|
502
503
|
|
|
503
|
-
// if no gates found for corresponding version,
|
|
504
|
+
// if no gates found for corresponding version, checking if new package for new builds
|
|
504
505
|
if (!gates) {
|
|
505
|
-
tools.logInfo('No gates found for local eUI version...
|
|
506
|
-
|
|
506
|
+
tools.logInfo('No gates found for local eUI version...');
|
|
507
|
+
|
|
508
|
+
tools.logInfo('Checking if package is newly created -- all versions gates are checked in that case');
|
|
509
|
+
|
|
510
|
+
if (metadataUtils.package.isNewPackageBuild(pkg)) {
|
|
511
|
+
gates = configOptions.AUDIT_STYLES_GATES['ALL_NEW'];
|
|
512
|
+
} else {
|
|
513
|
+
tools.logInfo('Package is not a newly created package...skipping gates checks...');
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
507
516
|
}
|
|
508
517
|
|
|
509
518
|
tools.logInfo(`Gates found : ${JSON.stringify(gates)}`);
|
|
@@ -8,6 +8,9 @@ module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package'
|
|
|
8
8
|
module.exports.FRONTEND_SKELETON_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'default');
|
|
9
9
|
module.exports.FRONTEND_SKELETON_EUI15_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'participant-default');
|
|
10
10
|
module.exports.FRONTEND_SKELETON_EUI15_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'participant-ngrx');
|
|
11
|
+
module.exports.FRONTEND_SKELETON_EUI16_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'default');
|
|
12
|
+
module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'participant-default');
|
|
13
|
+
module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'participant-ngrx');
|
|
11
14
|
module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
|
|
12
15
|
module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');
|
|
13
16
|
|
|
@@ -22,6 +25,7 @@ module.exports.CONFIG_OPTIONS = {
|
|
|
22
25
|
},
|
|
23
26
|
pkgFrontendVersion: {
|
|
24
27
|
EUI15: '15',
|
|
28
|
+
EUI16: '16',
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -149,6 +149,16 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
|
|
|
149
149
|
} else {
|
|
150
150
|
tools.copydir(constants.FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
|
|
151
151
|
}
|
|
152
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI16) {
|
|
153
|
+
if (args.pkgFrontendParticipant) {
|
|
154
|
+
if (args.pkgFrontendParticipantNgRx) {
|
|
155
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI16_PARTICIPANT_NGRX_PATH, targetPath, true);
|
|
156
|
+
} else {
|
|
157
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI16_PARTICIPANT_DEFAULT_PATH, targetPath, true);
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI16_PATH, targetPath, true);
|
|
161
|
+
}
|
|
152
162
|
}
|
|
153
163
|
|
|
154
164
|
// REPLACING PLACEHOLDERS
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.mwp-eui16.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
"**/*.d.ts",
|
|
6
|
+
"dist",
|
|
7
|
+
"test",
|
|
8
|
+
"coverage",
|
|
9
|
+
"externals",
|
|
10
|
+
"legacy"
|
|
11
|
+
],
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": [
|
|
15
|
+
"*.ts"
|
|
16
|
+
],
|
|
17
|
+
"parserOptions": {
|
|
18
|
+
"project": [
|
|
19
|
+
"packages/@module.full.name@/tsconfig.lib.json",
|
|
20
|
+
"packages/@module.full.name@/tsconfig.spec.json"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"rules": {
|
|
24
|
+
"@angular-eslint/component-selector": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
"type": "element",
|
|
28
|
+
"prefix": ["@module.scope.string@"],
|
|
29
|
+
"style": "kebab-case"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"@angular-eslint/directive-selector": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"type": "attribute",
|
|
36
|
+
"prefix": ["@module.scope.string@"],
|
|
37
|
+
"style": "camelCase"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@module.scope-name@.TITLE": "**fr** @module.scope-name@ **fr**",
|
|
3
|
+
"@module.scope-name@.FILTER": "**fr** Search filter **fr**",
|
|
4
|
+
"@module.scope-name@.QUICK_SECTION": "**fr** Quick filter **fr**",
|
|
5
|
+
"@module.scope-name@.SEARCH_RESULT": "**fr** Filter results **fr**"
|
|
6
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# compiled output
|
|
4
|
+
**/node_modules
|
|
5
|
+
**/target
|
|
6
|
+
**/build
|
|
7
|
+
**/dist
|
|
8
|
+
**/out-tsc
|
|
9
|
+
**/tmp
|
|
10
|
+
**/test/reports
|
|
11
|
+
|
|
12
|
+
# IDEs and editors
|
|
13
|
+
/.idea
|
|
14
|
+
.project
|
|
15
|
+
.classpath
|
|
16
|
+
.c9/
|
|
17
|
+
*.launch
|
|
18
|
+
.settings/
|
|
19
|
+
*.sublime-workspace
|
|
20
|
+
|
|
21
|
+
# IDE - VSCode
|
|
22
|
+
.vscode/*
|
|
23
|
+
!.vscode/settings.json
|
|
24
|
+
!.vscode/tasks.json
|
|
25
|
+
!.vscode/launch.json
|
|
26
|
+
!.vscode/extensions.json
|
|
27
|
+
|
|
28
|
+
# misc
|
|
29
|
+
/.sass-cache
|
|
30
|
+
/connect.lock
|
|
31
|
+
/coverage
|
|
32
|
+
/libpeerconnection.log
|
|
33
|
+
npm-debug.log
|
|
34
|
+
testem.log
|
|
35
|
+
/typings
|
|
36
|
+
yarn-error.log
|
|
37
|
+
|
|
38
|
+
# e2e
|
|
39
|
+
/e2e/*.js
|
|
40
|
+
/e2e/*.map
|
|
41
|
+
**/src/**/*.js
|
|
42
|
+
**/src/**/*.map
|
|
43
|
+
|
|
44
|
+
# System Files
|
|
45
|
+
.DS_Store
|
|
46
|
+
Thumbs.db
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<eui-page>
|
|
2
|
+
<eui-page-header [label]="'@module.scope-name@.TITLE' | translate">
|
|
3
|
+
<eui-page-header-action-items>
|
|
4
|
+
|
|
5
|
+
</eui-page-header-action-items>
|
|
6
|
+
</eui-page-header>
|
|
7
|
+
|
|
8
|
+
<eui-page-content>
|
|
9
|
+
|
|
10
|
+
<eui-page-columns>
|
|
11
|
+
|
|
12
|
+
<eui-page-column
|
|
13
|
+
label="{{ '@module.scope-name@.FILTER' | translate }}"
|
|
14
|
+
[size]="'3xl'"
|
|
15
|
+
[isCollapsible]="true">
|
|
16
|
+
|
|
17
|
+
<eui-page-column-body>
|
|
18
|
+
|
|
19
|
+
<!-- QUICK FILTER SECTION -->
|
|
20
|
+
<div class="eui-u-flex eui-u-flex-column eui-u-mt-xs">
|
|
21
|
+
<div class="eui-u-flex eui-u-flex-row">
|
|
22
|
+
<div class="eui-u-font-size-l"><strong>{{ '@module.scope-name@.QUICK_SECTION' | translate }}</strong></div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</eui-page-column-body>
|
|
27
|
+
</eui-page-column>
|
|
28
|
+
|
|
29
|
+
<eui-page-column label="{{ '@module.scope-name@.SEARCH_RESULT' | translate }}">
|
|
30
|
+
|
|
31
|
+
<eui-page-column-header-body>
|
|
32
|
+
</eui-page-column-header-body>
|
|
33
|
+
|
|
34
|
+
<eui-page-column-body>
|
|
35
|
+
</eui-page-column-body>
|
|
36
|
+
|
|
37
|
+
</eui-page-column>
|
|
38
|
+
|
|
39
|
+
</eui-page-columns>
|
|
40
|
+
|
|
41
|
+
</eui-page-content>
|
|
42
|
+
</eui-page>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const namespace = '@module.class.name@:main';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { BreadcrumbsService } from '@csdr/core';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: '@module.scope-name@-ct',
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
template: `
|
|
9
|
+
<@module.scope-name@-cp>
|
|
10
|
+
</@module.scope-name@-cp>`,
|
|
11
|
+
})
|
|
12
|
+
export class @module.class.name@ContainerComponent implements OnInit, OnDestroy {
|
|
13
|
+
|
|
14
|
+
constructor(private breadcrumbs: BreadcrumbsService) {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
this.breadcrumbs.removeAll();
|
|
19
|
+
this.breadcrumbs.addItem({
|
|
20
|
+
id: '@module.scope-name@',
|
|
21
|
+
description: '@module.class.name@',
|
|
22
|
+
url: '/@module.scope-name@',
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ngOnDestroy(): void {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
// import { StoreModule } from '@ngrx/store';
|
|
4
|
+
// import { EffectsModule } from '@ngrx/effects';
|
|
5
|
+
|
|
6
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
7
|
+
|
|
8
|
+
import { EuiButtonModule } from '@eui/components/eui-button';
|
|
9
|
+
import { EuiPageModule } from '@eui/components/eui-page';
|
|
10
|
+
|
|
11
|
+
// -- eUI module imports specific (recommended for treeshakability)
|
|
12
|
+
const EUI_MODULES = [
|
|
13
|
+
EuiButtonModule,
|
|
14
|
+
EuiPageModule,
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
// -- Components --
|
|
18
|
+
import { @module.class.name@Component } from './components/main.component';
|
|
19
|
+
|
|
20
|
+
const COMPONENTS = [
|
|
21
|
+
@module.class.name@Component,
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
// -- Containers --
|
|
25
|
+
import { @module.class.name@ContainerComponent } from './containers/container.component';
|
|
26
|
+
|
|
27
|
+
const CONTAINERS = [
|
|
28
|
+
@module.class.name@ContainerComponent,
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
// -- Effects --
|
|
32
|
+
const EFFECTS = [
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
// -- Reducer --
|
|
36
|
+
// import { TOKEN, reducerProvider } from './store/reducers';
|
|
37
|
+
|
|
38
|
+
// -- Services --
|
|
39
|
+
const SERVICES = [
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
// -- Constants --
|
|
43
|
+
import { namespace } from './constants';
|
|
44
|
+
|
|
45
|
+
// -- Routes --
|
|
46
|
+
import { RoutingModule } from './routing-module';
|
|
47
|
+
|
|
48
|
+
@NgModule({
|
|
49
|
+
imports: [
|
|
50
|
+
CommonModule,
|
|
51
|
+
// StoreModule.forFeature(namespace, TOKEN),
|
|
52
|
+
// EffectsModule.forFeature(EFFECTS),
|
|
53
|
+
TranslateModule,
|
|
54
|
+
|
|
55
|
+
...EUI_MODULES,
|
|
56
|
+
],
|
|
57
|
+
declarations: [
|
|
58
|
+
...COMPONENTS,
|
|
59
|
+
...CONTAINERS,
|
|
60
|
+
],
|
|
61
|
+
providers: [
|
|
62
|
+
// reducerProvider,
|
|
63
|
+
...SERVICES,
|
|
64
|
+
],
|
|
65
|
+
exports: [],
|
|
66
|
+
})
|
|
67
|
+
export class @module.class.name@CommonModule {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@NgModule({
|
|
71
|
+
imports: [
|
|
72
|
+
@module.class.name@CommonModule,
|
|
73
|
+
RoutingModule,
|
|
74
|
+
],
|
|
75
|
+
exports: [
|
|
76
|
+
@module.class.name@CommonModule,
|
|
77
|
+
],
|
|
78
|
+
})
|
|
79
|
+
export class @module.class.name@Module {
|
|
80
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { @module.class.name@ContainerComponent } from './containers/container.component';
|
|
5
|
+
|
|
6
|
+
export const routes: Routes = [
|
|
7
|
+
{
|
|
8
|
+
path: '',
|
|
9
|
+
pathMatch: 'full',
|
|
10
|
+
component: @module.class.name@ContainerComponent,
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
imports: [
|
|
16
|
+
RouterModule.forChild(routes),
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
RouterModule,
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
export class RoutingModule {
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js/dist/zone';
|
|
4
|
+
import 'zone.js/dist/zone-testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting,
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: any;
|
|
12
|
+
|
|
13
|
+
// First, initialize the Angular testing environment.
|
|
14
|
+
getTestBed().initTestEnvironment(
|
|
15
|
+
BrowserDynamicTestingModule,
|
|
16
|
+
platformBrowserDynamicTesting(),
|
|
17
|
+
);
|
|
18
|
+
// Then we find all the tests.
|
|
19
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
20
|
+
// And load the modules.
|
|
21
|
+
context.keys().map(context);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.build.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/lib",
|
|
5
|
+
"target": "ES2022",
|
|
6
|
+
"module": "ES2022",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"inlineSources": true,
|
|
11
|
+
"emitDecoratorMetadata": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"useDefineForClassFields": false,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"types": [],
|
|
16
|
+
"lib": [
|
|
17
|
+
"ES2022",
|
|
18
|
+
"dom"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"angularCompilerOptions": {
|
|
22
|
+
"annotateForClosureCompiler": true,
|
|
23
|
+
"skipTemplateCodegen": true,
|
|
24
|
+
"strictMetadataEmit": true,
|
|
25
|
+
"fullTemplateTypeCheck": true,
|
|
26
|
+
"strictInjectionParameters": true,
|
|
27
|
+
"enableResourceInlining": true
|
|
28
|
+
},
|
|
29
|
+
"exclude": [
|
|
30
|
+
"src/test.ts",
|
|
31
|
+
"**/*.spec.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc-mwp-eui16.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
"**/*.d.ts",
|
|
6
|
+
"dist",
|
|
7
|
+
"test",
|
|
8
|
+
"coverage",
|
|
9
|
+
"externals",
|
|
10
|
+
"legacy"
|
|
11
|
+
],
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": [
|
|
15
|
+
"*.ts"
|
|
16
|
+
],
|
|
17
|
+
"parserOptions": {
|
|
18
|
+
"project": [
|
|
19
|
+
"packages/@module.full.name@/tsconfig.lib.json",
|
|
20
|
+
"packages/@module.full.name@/tsconfig.spec.json"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"rules": {
|
|
24
|
+
"@angular-eslint/component-selector": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
"type": "element",
|
|
28
|
+
"prefix": ["@module.scope.string@"],
|
|
29
|
+
"style": "kebab-case"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"@angular-eslint/directive-selector": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"type": "attribute",
|
|
36
|
+
"prefix": ["@module.scope.string@"],
|
|
37
|
+
"style": "camelCase"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/16.x/participant-default/assets/i18n/fr.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@module.scope-name@.TITLE": "**fr** @module.scope-name@ **fr**",
|
|
3
|
+
"@module.scope-name@.FILTER": "**fr** Search filter **fr**",
|
|
4
|
+
"@module.scope-name@.QUICK_SECTION": "**fr** Quick filter **fr**",
|
|
5
|
+
"@module.scope-name@.SEARCH_RESULT": "**fr** Filter results **fr**"
|
|
6
|
+
}
|