@eui/tools 6.12.65 → 6.13.1
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/scripts/app/public/package-init.js +3 -2
- package/scripts/csdr/cli/constants.js +4 -0
- package/scripts/csdr/cli/package-build-frontend.js +10 -0
- package/scripts/csdr/cli/package.js +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/components/main.component.html +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/components/main.component.ts +8 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/constants.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/containers/container.component.ts +28 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/module.ts +80 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/routing-module.ts +23 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/components/participant/participant.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/components/participant/participant.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/module.ts +24 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/.eslintrc.json +79 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/index.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/containers/container.component.ts +36 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/models/block.model.ts +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/module.ts +37 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/constants.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/block-store.service.ts +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/container.component.ts +44 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/generic-block-resolver.service.ts +32 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/block-type.model.ts +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/block.model.ts +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/module.ts +60 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/actions/block.actions.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/reducers/block.reducer.ts +48 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/reducers/index.ts +22 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/selectors/block.selectors.ts +29 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/module.ts +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/17.x/angular-config.json +8 -0
- package/scripts/csdr/cli/skeletons/virtual-remote/17.x/dependencies.json +21 -0
- package/scripts/csdr/config/angular.js +8 -2
- package/scripts/csdr/config/config-skeletons.js +123 -22
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/polyfills.ts +86 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.13.1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.13.1 (2023-10-14)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted v17 skeletons adding option to disable esbuild through config (issue with latest angular) - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([242c8ca2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/242c8ca2d903ce4543d20bf936298b83f6c7c480))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.13.0 (2023-10-12)
|
|
11
|
+
|
|
12
|
+
##### New Features
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted skeletons for v17 pkg and remotes - MWP-10178 [MWP-10178](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10178) ([2399bbdf](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2399bbdf3ecc975da90a7dafeeb11421df6e866c))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.12.65 (2023-10-10)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -29,7 +29,8 @@ new Vue({
|
|
|
29
29
|
],
|
|
30
30
|
frontendVersions: [
|
|
31
31
|
{ label: "15.x", value: "15" },
|
|
32
|
-
{ label: "16.x", value: "16" }
|
|
32
|
+
{ label: "16.x", value: "16" },
|
|
33
|
+
{ label: "17.x", value: "17" }
|
|
33
34
|
],
|
|
34
35
|
frontendTypes: [
|
|
35
36
|
{ label: "default UI package", value: "default" },
|
|
@@ -44,7 +45,7 @@ new Vue({
|
|
|
44
45
|
getDefaultParams() {
|
|
45
46
|
return {
|
|
46
47
|
pkgType: "frontend",
|
|
47
|
-
pkgFrontendVersion: "
|
|
48
|
+
pkgFrontendVersion: "16",
|
|
48
49
|
pkgFrontendType: "default",
|
|
49
50
|
pkgScope: "@zzz",
|
|
50
51
|
pkgName: "my-package",
|
|
@@ -11,6 +11,9 @@ module.exports.FRONTEND_SKELETON_EUI15_PARTICIPANT_NGRX_PATH = path.join(this.SK
|
|
|
11
11
|
module.exports.FRONTEND_SKELETON_EUI16_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'default');
|
|
12
12
|
module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'participant-default');
|
|
13
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');
|
|
14
17
|
module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
|
|
15
18
|
module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');
|
|
16
19
|
|
|
@@ -26,6 +29,7 @@ module.exports.CONFIG_OPTIONS = {
|
|
|
26
29
|
pkgFrontendVersion: {
|
|
27
30
|
EUI15: '15',
|
|
28
31
|
EUI16: '16',
|
|
32
|
+
EUI17: '17'
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -161,6 +161,16 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
|
|
|
161
161
|
} else {
|
|
162
162
|
tools.copydir(constants.FRONTEND_SKELETON_EUI16_PATH, targetPath, true);
|
|
163
163
|
}
|
|
164
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI17) {
|
|
165
|
+
if (args.pkgFrontendParticipant) {
|
|
166
|
+
if (args.pkgFrontendParticipantNgRx) {
|
|
167
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI17_PARTICIPANT_NGRX_PATH, targetPath, true);
|
|
168
|
+
} else {
|
|
169
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI17_PARTICIPANT_DEFAULT_PATH, targetPath, true);
|
|
170
|
+
}
|
|
171
|
+
} else {
|
|
172
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI17_PATH, targetPath, true);
|
|
173
|
+
}
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
// REPLACING PLACEHOLDERS
|
|
@@ -35,6 +35,10 @@ const generateArgs = (args) => {
|
|
|
35
35
|
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI16) {
|
|
36
36
|
fullName += '-eui16-remote-el-ui';
|
|
37
37
|
npmPkgName = `${args.pkgScope}/${args.pkgName}-eui16-remote-el`;
|
|
38
|
+
|
|
39
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI17) {
|
|
40
|
+
fullName += '-eui17-remote-el-ui';
|
|
41
|
+
npmPkgName = `${args.pkgScope}/${args.pkgName}-eui17-remote-el`;
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
|
|
@@ -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/17.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/17.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
|