@eui/tools 6.12.64 → 6.13.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.
Files changed (83) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/package.json +1 -1
  4. package/scripts/app/public/package-init.js +3 -2
  5. package/scripts/csdr/cli/constants.js +4 -0
  6. package/scripts/csdr/cli/package-build-frontend.js +10 -0
  7. package/scripts/csdr/cli/package.js +4 -0
  8. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/.eslintrc.json +43 -0
  9. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/assets/i18n/en.json +6 -0
  10. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/assets/i18n/fr.json +6 -0
  11. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/dependencies-base.json +2 -0
  12. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/dependencies-composite.json +4 -0
  13. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/gitignore_TO_REPLACE +46 -0
  14. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/karma.conf.js +7 -0
  15. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/ng-package.json +7 -0
  16. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/package.json +4 -0
  17. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/dummy.spec.ts.TO_REPLACE +5 -0
  18. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/index.ts +2 -0
  19. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/components/main.component.html +42 -0
  20. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/components/main.component.ts +8 -0
  21. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/constants.ts +1 -0
  22. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/containers/container.component.ts +28 -0
  23. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/module.ts +80 -0
  24. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/lib/routing-module.ts +23 -0
  25. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/src/test.ts.TO_REPLACE +21 -0
  26. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/tsconfig.lib.json +33 -0
  27. package/scripts/csdr/cli/skeletons/package/frontend/17.x/default/tsconfig.spec.json +17 -0
  28. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/.eslintrc.json +43 -0
  29. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/assets/i18n/en.json +6 -0
  30. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/assets/i18n/fr.json +6 -0
  31. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/dependencies-base.json +2 -0
  32. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/dependencies-composite.json +4 -0
  33. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/gitignore_TO_REPLACE +46 -0
  34. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/karma.conf.js +7 -0
  35. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/ng-package.json +7 -0
  36. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/package.json +4 -0
  37. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/dummy.spec.ts.TO_REPLACE +5 -0
  38. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/index.ts +2 -0
  39. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/components/participant/participant.component.html +1 -0
  40. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/components/participant/participant.component.ts +19 -0
  41. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/lib/module.ts +24 -0
  42. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/src/test.ts.TO_REPLACE +21 -0
  43. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/tsconfig.lib.json +33 -0
  44. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-default/tsconfig.spec.json +17 -0
  45. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/.eslintrc.json +79 -0
  46. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/assets/i18n/en.json +6 -0
  47. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/assets/i18n/fr.json +6 -0
  48. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/dependencies-base.json +2 -0
  49. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/dependencies-composite.json +3 -0
  50. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/gitignore_TO_REPLACE +46 -0
  51. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/karma.conf.js +7 -0
  52. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/ng-package.json +7 -0
  53. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/package.json +4 -0
  54. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/dummy.spec.ts.TO_REPLACE +5 -0
  55. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/index.ts +4 -0
  56. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.html +1 -0
  57. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.ts +14 -0
  58. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/containers/container.component.ts +36 -0
  59. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/models/block.model.ts +5 -0
  60. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/models/index.ts +1 -0
  61. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/blocks/sample/module.ts +37 -0
  62. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/components/sample.component.html +1 -0
  63. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/components/sample.component.ts +14 -0
  64. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/constants.ts +1 -0
  65. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/block-store.service.ts +33 -0
  66. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/container.component.ts +44 -0
  67. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/containers/generic-block-resolver.service.ts +32 -0
  68. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/block-type.model.ts +6 -0
  69. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/block.model.ts +10 -0
  70. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/models/index.ts +2 -0
  71. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/module.ts +60 -0
  72. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/actions/block.actions.ts +26 -0
  73. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/reducers/block.reducer.ts +48 -0
  74. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/reducers/index.ts +22 -0
  75. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/main/store/selectors/block.selectors.ts +29 -0
  76. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/lib/module.ts +17 -0
  77. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/src/test.ts.TO_REPLACE +21 -0
  78. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/tsconfig.lib.json +33 -0
  79. package/scripts/csdr/cli/skeletons/package/frontend/17.x/participant-ngrx/tsconfig.spec.json +17 -0
  80. package/scripts/csdr/cli/skeletons/virtual-remote/17.x/angular-config.json +8 -0
  81. package/scripts/csdr/cli/skeletons/virtual-remote/17.x/dependencies.json +21 -0
  82. package/scripts/csdr/config/config-skeletons.js +1 -21
  83. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/tsconfig.app.json +2 -1
@@ -1 +1 @@
1
- 6.12.64
1
+ 6.13.0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.13.0 (2023-10-12)
2
+
3
+ ##### New Features
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.65 (2023-10-10)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * add tscompiler options for v17 showcase injection - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([6ea94a0c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6ea94a0ce7c0fefc7174e13f8ba246668a2816e6))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.64 (2023-10-07)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.64",
3
+ "version": "6.13.0",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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: "15",
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": "@module.scope-name@",
3
+ "@module.scope-name@.FILTER": "Search filter",
4
+ "@module.scope-name@.QUICK_SECTION": "Quick filter",
5
+ "@module.scope-name@.SEARCH_RESULT": "Filter results"
6
+ }
@@ -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,4 @@
1
+ {
2
+ "@eui/deps-base": "^17.0.0",
3
+ "@csdr/core": "^6.0.0"
4
+ }
@@ -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,7 @@
1
+ const karmaConfig = require('@eui/tools/karma/karma.conf.pkg');
2
+
3
+ module.exports = function (config) {
4
+ config.set(
5
+ karmaConfig.get(config, '@module.full.name@', {})
6
+ );
7
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "./dist",
4
+ "lib": {
5
+ "entryFile": "src/index.ts"
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@module.scope@/@module.name@",
3
+ "version": "1.0.0"
4
+ }
@@ -0,0 +1,5 @@
1
+ describe('First test', () => {
2
+ it('should work', () => {
3
+ expect(true).toBe(true);
4
+ });
5
+ });
@@ -0,0 +1,2 @@
1
+ export { @module.class.name@Module, @module.class.name@CommonModule } from './lib/module';
2
+ export { RoutingModule, routes } from './lib/routing-module';
@@ -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,8 @@
1
+ import { Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: '@module.scope-name@-cp',
5
+ templateUrl: './main.component.html',
6
+ })
7
+ export class @module.class.name@Component {
8
+ }
@@ -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,17 @@
1
+ {
2
+ "extends": "../../tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/spec",
5
+ "types": [
6
+ "jasmine",
7
+ "node"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts"
12
+ ],
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }
@@ -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": "@module.scope-name@",
3
+ "@module.scope-name@.FILTER": "Search filter",
4
+ "@module.scope-name@.QUICK_SECTION": "Quick filter",
5
+ "@module.scope-name@.SEARCH_RESULT": "Filter results"
6
+ }
@@ -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,4 @@
1
+ {
2
+ "@eui/deps-base": "^16.0.0",
3
+ "@cc/shared": "^5.0.0"
4
+ }
@@ -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,7 @@
1
+ const karmaConfig = require('@eui/tools/karma/karma.conf.pkg');
2
+
3
+ module.exports = function (config) {
4
+ config.set(
5
+ karmaConfig.get(config, '@module.full.name@', {})
6
+ );
7
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "./dist",
4
+ "lib": {
5
+ "entryFile": "src/index.ts"
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@module.scope@/@module.name@",
3
+ "version": "1.0.0"
4
+ }