@eui/tools 6.21.82 → 6.21.83
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 +9 -0
- package/package.json +1 -1
- package/scripts/app/public/package-init.js +2 -3
- package/scripts/csdr/cli/constants.js +5 -17
- package/scripts/csdr/cli/package-build-frontend.js +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/assets/i18n/en.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/assets/i18n/fr.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/lib/components/main.component.html +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/lib/components/main.component.ts +16 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/lib/module.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/lib/components/participant/participant.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/lib/components/participant/participant.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/lib/module.ts +24 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/.eslintrc.json +79 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/index.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/containers/container.component.ts +36 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/models/block.model.ts +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/blocks/sample/module.ts +37 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/components/sample.component.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/containers/block-store.service.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/containers/container.component.ts +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/models/block.model.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/module.ts +56 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/store/block.actions.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/main/store/block.feature.ts +48 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/lib/module.ts +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-ngrx/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/19.x/angular-config.json +2 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/19.x/dependencies.json +23 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.83
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.83 (2025-06-02)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted init-interactive to support only v19 pkg and remotes creation - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([5cb1fcb6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5cb1fcb6edfe8ecf0f7a6b96f6e205f7b0c86234))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.82 (2025-05-27)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -28,8 +28,7 @@ new Vue({
|
|
|
28
28
|
{ label: "Frontend UI package or remote", value: "frontend" },
|
|
29
29
|
],
|
|
30
30
|
frontendVersions: [
|
|
31
|
-
{ label: "
|
|
32
|
-
{ label: "18.x", value: "18" }
|
|
31
|
+
{ label: "19.x", value: "19" }
|
|
33
32
|
],
|
|
34
33
|
frontendTypes: [
|
|
35
34
|
{ label: "default UI package", value: "default" },
|
|
@@ -44,7 +43,7 @@ new Vue({
|
|
|
44
43
|
getDefaultParams() {
|
|
45
44
|
return {
|
|
46
45
|
pkgType: "frontend",
|
|
47
|
-
pkgFrontendVersion: "
|
|
46
|
+
pkgFrontendVersion: "19",
|
|
48
47
|
pkgFrontendType: "default",
|
|
49
48
|
pkgScope: "@zzz",
|
|
50
49
|
pkgName: "my-package",
|
|
@@ -5,18 +5,9 @@ const path = require('path');
|
|
|
5
5
|
module.exports.TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
|
|
6
6
|
module.exports.TARGET_ROOT_REMOTES_PATH = path.join(process.cwd(), 'remotes');
|
|
7
7
|
module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
|
|
8
|
-
module.exports.
|
|
9
|
-
module.exports.
|
|
10
|
-
module.exports.
|
|
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');
|
|
14
|
-
module.exports.FRONTEND_SKELETON_EUI17_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'default');
|
|
15
|
-
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-default');
|
|
16
|
-
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-ngrx');
|
|
17
|
-
module.exports.FRONTEND_SKELETON_EUI18_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'default');
|
|
18
|
-
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-default');
|
|
19
|
-
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-ngrx');
|
|
8
|
+
module.exports.FRONTEND_SKELETON_EUI19_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'default');
|
|
9
|
+
module.exports.FRONTEND_SKELETON_EUI19_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'participant-default');
|
|
10
|
+
module.exports.FRONTEND_SKELETON_EUI19_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'participant-ngrx');
|
|
20
11
|
module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
|
|
21
12
|
module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');
|
|
22
13
|
|
|
@@ -30,17 +21,14 @@ module.exports.CONFIG_OPTIONS = {
|
|
|
30
21
|
REMOTE: 'remote'
|
|
31
22
|
},
|
|
32
23
|
pkgFrontendVersion: {
|
|
33
|
-
|
|
34
|
-
EUI16: '16',
|
|
35
|
-
EUI17: '17',
|
|
36
|
-
EUI18: '18'
|
|
24
|
+
EUI19: '19',
|
|
37
25
|
}
|
|
38
26
|
}
|
|
39
27
|
|
|
40
28
|
module.exports.DEFAULT_CONFIG = {
|
|
41
29
|
pkgType: this.CONFIG_OPTIONS.pkgType.FRONTEND,
|
|
42
30
|
pkgFrontendType: this.CONFIG_OPTIONS.pkgFrontendType.DEFAULT,
|
|
43
|
-
pkgFrontendVersion: this.CONFIG_OPTIONS.pkgFrontendVersion.
|
|
31
|
+
pkgFrontendVersion: this.CONFIG_OPTIONS.pkgFrontendVersion.EUI19,
|
|
44
32
|
pkgName: 'my-package',
|
|
45
33
|
pkgScope: '@zzz',
|
|
46
34
|
isCsdrRepo: true,
|
|
@@ -186,6 +186,16 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
|
|
|
186
186
|
} else {
|
|
187
187
|
tools.copydir(constants.FRONTEND_SKELETON_EUI18_PATH, targetPath, true);
|
|
188
188
|
}
|
|
189
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI19) {
|
|
190
|
+
if (args.pkgFrontendParticipant) {
|
|
191
|
+
if (args.pkgFrontendParticipantNgRx) {
|
|
192
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI19_PARTICIPANT_NGRX_PATH, targetPath, true);
|
|
193
|
+
} else {
|
|
194
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI19_PARTICIPANT_DEFAULT_PATH, targetPath, true);
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI19_PATH, targetPath, true);
|
|
198
|
+
}
|
|
189
199
|
}
|
|
190
200
|
|
|
191
201
|
// REPLACING PLACEHOLDERS
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.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,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 @@
|
|
|
1
|
+
export { @module.class.name@Module, routes } from './lib/module';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
+
import { EuiButtonModule } from '@eui/components/eui-button';
|
|
4
|
+
import { EuiPageModule } from '@eui/components/eui-page';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '@module.scope-name@-cp',
|
|
8
|
+
templateUrl: './main.component.html',
|
|
9
|
+
imports: [
|
|
10
|
+
TranslateModule,
|
|
11
|
+
EuiButtonModule,
|
|
12
|
+
EuiPageModule,
|
|
13
|
+
],
|
|
14
|
+
})
|
|
15
|
+
export class @module.class.name@Component {
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
// -- main component --
|
|
6
|
+
import { @module.class.name@Component } from './components/main.component';
|
|
7
|
+
|
|
8
|
+
// -- Routes --
|
|
9
|
+
export const routes: Routes = [
|
|
10
|
+
{
|
|
11
|
+
path: '',
|
|
12
|
+
pathMatch: 'full',
|
|
13
|
+
component: @module.class.name@Component,
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule,
|
|
20
|
+
RouterModule.forChild(routes),
|
|
21
|
+
@module.class.name@Component,
|
|
22
|
+
],
|
|
23
|
+
exports: [],
|
|
24
|
+
})
|
|
25
|
+
export class @module.class.name@Module {
|
|
26
|
+
}
|
|
@@ -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/19.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
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/gitignore_TO_REPLACE
ADDED
|
@@ -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 @@
|
|
|
1
|
+
Hello from <strong>participant</strong>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { BlockComponent, ParticipantBlock } from '@cc/shared/block';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: '@module.scope.string@-participant-cp',
|
|
7
|
+
templateUrl: './participant.component.html',
|
|
8
|
+
})
|
|
9
|
+
export class @module.class.name@Component implements BlockComponent, OnInit {
|
|
10
|
+
@Input() readonly block: ParticipantBlock; // it should be an extension of ParticipantBlock
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
// constructor
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ngOnInit(): void {
|
|
17
|
+
console.log('init');
|
|
18
|
+
}
|
|
19
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/lib/module.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
|
|
6
|
+
import { CcBlockModule } from '@cc/shared/block';
|
|
7
|
+
|
|
8
|
+
import { @module.class.name@Component } from './components/participant/participant.component';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
TranslateModule,
|
|
14
|
+
CcBlockModule,
|
|
15
|
+
],
|
|
16
|
+
declarations: [
|
|
17
|
+
@module.class.name@Component,
|
|
18
|
+
],
|
|
19
|
+
exports: [
|
|
20
|
+
@module.class.name@Component,
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
export class @module.class.name@Module {
|
|
24
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/src/test.ts.TO_REPLACE
ADDED
|
@@ -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);
|
package/scripts/csdr/cli/skeletons/package/frontend/19.x/participant-default/tsconfig.lib.json
ADDED
|
@@ -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
|
+
}
|