@eui/tools 6.6.2 → 6.7.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.
Files changed (71) 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/index.html +41 -32
  5. package/scripts/app/public/index.js +34 -25
  6. package/scripts/app/public/package-init.html +11 -0
  7. package/scripts/app/public/package-init.js +2 -0
  8. package/scripts/app/routes/index.js +22 -22
  9. package/scripts/csdr/cli/constants.js +2 -1
  10. package/scripts/csdr/cli/package-build-frontend.js +6 -10
  11. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/assets/i18n/en.json +6 -0
  12. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/assets/i18n/fr.json +6 -0
  13. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/index.ts +2 -0
  14. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/components/main.component.html +57 -0
  15. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/components/main.component.ts +8 -0
  16. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/constants.ts +1 -0
  17. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/containers/container.component.ts +28 -0
  18. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/module.ts +79 -0
  19. package/scripts/csdr/cli/skeletons/package/frontend/15.x/default/src/lib/routing-module.ts +23 -0
  20. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/.eslintrc.json +79 -0
  21. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/assets/i18n/en.json +6 -0
  22. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/assets/i18n/fr.json +6 -0
  23. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/dependencies-base.json +2 -0
  24. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/dependencies-composite.json +3 -0
  25. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/gitignore_TO_REPLACE +46 -0
  26. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/karma.conf.js +7 -0
  27. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/ng-package.json +7 -0
  28. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/package.json +4 -0
  29. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/dummy.spec.ts.TO_REPLACE +5 -0
  30. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/index.ts +4 -0
  31. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/components/sample.component.html +1 -0
  32. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/components/sample.component.ts +14 -0
  33. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/containers/container.component.ts +36 -0
  34. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/models/block.model.ts +5 -0
  35. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/models/index.ts +1 -0
  36. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/blocks/sample/module.ts +37 -0
  37. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/components/sample.component.html +1 -0
  38. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/components/sample.component.ts +14 -0
  39. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/constants.ts +1 -0
  40. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/containers/block-store.service.ts +33 -0
  41. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/containers/container.component.ts +44 -0
  42. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/containers/generic-block-resolver.service.ts +32 -0
  43. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/models/block-type.model.ts +6 -0
  44. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/models/block.model.ts +10 -0
  45. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/models/index.ts +2 -0
  46. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/module.ts +60 -0
  47. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/store/actions/block.actions.ts +26 -0
  48. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/store/reducers/block.reducer.ts +48 -0
  49. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/store/reducers/index.ts +22 -0
  50. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/main/store/selectors/block.selectors.ts +29 -0
  51. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/lib/module.ts +17 -0
  52. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/src/test.ts.TO_REPLACE +21 -0
  53. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/tsconfig.lib.json +32 -0
  54. package/scripts/csdr/cli/skeletons/package/frontend/15.x/participant/tsconfig.spec.json +17 -0
  55. package/scripts/csdr/config/remotes.js +1 -1
  56. package/scripts/utils/tools.js +1 -0
  57. package/scripts/csdr/cli/skeletons/package/frontend-eui15/assets/i18n/en.json +0 -3
  58. package/scripts/csdr/cli/skeletons/package/frontend-eui15/assets/i18n/fr.json +0 -3
  59. package/scripts/csdr/cli/skeletons/package/frontend-eui15/src/index.ts +0 -1
  60. package/scripts/csdr/cli/skeletons/package/frontend-eui15/src/lib/module.ts +0 -11
  61. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/.eslintrc.json +0 -0
  62. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/dependencies-base.json +0 -0
  63. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/dependencies-composite.json +0 -0
  64. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/gitignore_TO_REPLACE +0 -0
  65. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/karma.conf.js +0 -0
  66. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/ng-package.json +0 -0
  67. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/package.json +0 -0
  68. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/src/dummy.spec.ts.TO_REPLACE +0 -0
  69. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/src/test.ts.TO_REPLACE +0 -0
  70. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/tsconfig.lib.json +0 -0
  71. /package/scripts/csdr/cli/skeletons/package/{frontend-eui15 → frontend/15.x/default}/tsconfig.spec.json +0 -0
@@ -0,0 +1,17 @@
1
+ import { NgModule } from '@angular/core';
2
+
3
+ import { MainParticipantModule } from './main/module';
4
+
5
+ import { @module.class.name@BlockSampleModule } from './blocks/sample/module';
6
+
7
+ @NgModule({
8
+ imports: [
9
+ MainParticipantModule,
10
+ @module.class.name@BlockSampleModule,
11
+ ],
12
+ exports: [
13
+ MainParticipantModule,
14
+ ],
15
+ })
16
+ export class @module.class.name@Module {
17
+ }
@@ -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,32 @@
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
+ "importHelpers": true,
14
+ "types": [],
15
+ "lib": [
16
+ "ES2022",
17
+ "dom"
18
+ ]
19
+ },
20
+ "angularCompilerOptions": {
21
+ "annotateForClosureCompiler": true,
22
+ "skipTemplateCodegen": true,
23
+ "strictMetadataEmit": true,
24
+ "fullTemplateTypeCheck": true,
25
+ "strictInjectionParameters": true,
26
+ "enableResourceInlining": true
27
+ },
28
+ "exclude": [
29
+ "src/test.ts",
30
+ "**/*.spec.ts"
31
+ ]
32
+ }
@@ -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
+ }
@@ -153,7 +153,7 @@ module.exports.isLocalRemote = (npmPkg) => {
153
153
  module.exports.getRemotesPackages = (remotes) => {
154
154
  let packages = [], deps = [];
155
155
 
156
- remotes.forEach((r) => {
156
+ remotes.forEach((r) => {
157
157
  const remote = this.getRemote(r);
158
158
  const npmPkgs = Object.keys(remote.dependencies.composite);
159
159
 
@@ -448,6 +448,7 @@ function replaceInPath(rootPath, fromString, toString) {
448
448
  const fromRegExp = new RegExp(fromString, 'g');
449
449
 
450
450
  return replace.sync({
451
+ glob: { dot: true },
451
452
  files: [rootPath + '/**/*.*'],
452
453
  from: fromRegExp,
453
454
  to: toString,
@@ -1,3 +0,0 @@
1
- {
2
- "@module.name@.KEY": "english text"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "@module.name@.KEY": "texte en français"
3
- }
@@ -1 +0,0 @@
1
- export * from './lib/module';
@@ -1,11 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
-
3
- @NgModule({
4
- declarations: [
5
- ],
6
- imports: [
7
- ],
8
- exports: [
9
- ],
10
- })
11
- export class Module { }