@eui/tools 6.5.6 → 6.6.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 (237) hide show
  1. package/.prettierrc.json +19 -0
  2. package/.version.properties +1 -1
  3. package/CHANGELOG.md +9 -0
  4. package/bin/eui-scripts.js +2 -0
  5. package/bin/scripts/csdr-app-package-init.js +16 -0
  6. package/bin/scripts/csdr-cli.js +1 -1
  7. package/package.json +1 -1
  8. package/scripts/app/public/index.html +22 -170
  9. package/scripts/app/public/index.js +95 -0
  10. package/scripts/app/public/package-init.html +254 -0
  11. package/scripts/app/public/package-init.js +138 -0
  12. package/scripts/app/public/stats.html +60 -125
  13. package/scripts/app/public/stats.js +68 -0
  14. package/scripts/app/routes/index.js +28 -9
  15. package/scripts/app/server.js +2 -0
  16. package/scripts/csdr/cli/cli-utils.js +2 -30
  17. package/scripts/csdr/cli/constants.js +1 -12
  18. package/scripts/csdr/cli/package-build-backend.js +18 -0
  19. package/scripts/csdr/cli/package-build-frontend.js +47 -164
  20. package/scripts/csdr/cli/package-prompt.js +0 -84
  21. package/scripts/csdr/cli/package.js +65 -14
  22. package/scripts/csdr/config/register.js +71 -158
  23. package/scripts/index.js +0 -1
  24. package/scripts/csdr/cli/app.js +0 -204
  25. package/scripts/csdr/cli/skeletons/app/angular-config.json +0 -31
  26. package/scripts/csdr/cli/skeletons/app/dependencies-base.json +0 -2
  27. package/scripts/csdr/cli/skeletons/app/dependencies-composite.json +0 -6
  28. package/scripts/csdr/cli/skeletons/app/gitignore_TO_REPLACE +0 -63
  29. package/scripts/csdr/cli/skeletons/app/mock/json/core/user.js +0 -31
  30. package/scripts/csdr/cli/skeletons/app/mock/json/lowdb.js +0 -25
  31. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/delay.js +0 -10
  32. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/errors.js +0 -73
  33. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/sse.js +0 -28
  34. package/scripts/csdr/cli/skeletons/app/mock/json/routes.json +0 -3
  35. package/scripts/csdr/cli/skeletons/app/mock/json/server.js +0 -38
  36. package/scripts/csdr/cli/skeletons/app/package.json +0 -6
  37. package/scripts/csdr/cli/skeletons/app/scripts.json +0 -7
  38. package/scripts/csdr/cli/skeletons/app/src/app/app-routing.module.ts +0 -32
  39. package/scripts/csdr/cli/skeletons/app/src/app/app.component.html +0 -1
  40. package/scripts/csdr/cli/skeletons/app/src/app/app.component.ts +0 -9
  41. package/scripts/csdr/cli/skeletons/app/src/app/app.module.ts +0 -68
  42. package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.html +0 -27
  43. package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.ts +0 -188
  44. package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.html +0 -30
  45. package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.ts +0 -71
  46. package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-404/page-404.component.ts +0 -19
  47. package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-500/page-500.component.ts +0 -18
  48. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.html +0 -104
  49. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.scss +0 -44
  50. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.ts +0 -39
  51. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.html +0 -26
  52. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.ts +0 -104
  53. package/scripts/csdr/cli/skeletons/app/src/app/core/core.module.ts +0 -46
  54. package/scripts/csdr/cli/skeletons/app/src/app/core/services/core.service.ts +0 -124
  55. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home-routing.module.ts +0 -15
  56. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.html +0 -6
  57. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.ts +0 -8
  58. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.module.ts +0 -18
  59. package/scripts/csdr/cli/skeletons/app/src/app/features/sample-lib.module.ts +0 -9
  60. package/scripts/csdr/cli/skeletons/app/src/app/shared/components/.gitkeep +0 -0
  61. package/scripts/csdr/cli/skeletons/app/src/app/shared/shared.module.ts +0 -20
  62. package/scripts/csdr/cli/skeletons/app/src/assets/i18n/en.json +0 -3
  63. package/scripts/csdr/cli/skeletons/app/src/assets/i18n/fr.json +0 -3
  64. package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local-mwp-dev.json +0 -144
  65. package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local.json +0 -36
  66. package/scripts/csdr/cli/skeletons/app/src/config/global.ts +0 -9
  67. package/scripts/csdr/cli/skeletons/app/src/config/index.ts +0 -8
  68. package/scripts/csdr/cli/skeletons/app/src/config/modules.ts +0 -13
  69. package/scripts/csdr/cli/skeletons/app/src/environments/environment.dev.ts +0 -4
  70. package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-mwp-dev-openid.ts +0 -6
  71. package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-openid.ts +0 -5
  72. package/scripts/csdr/cli/skeletons/app/src/environments/environment.prod.ts +0 -12
  73. package/scripts/csdr/cli/skeletons/app/src/environments/environment.ts +0 -5
  74. package/scripts/csdr/cli/skeletons/app/src/index.html +0 -24
  75. package/scripts/csdr/cli/skeletons/app/src/styles.scss +0 -1
  76. package/scripts/csdr/cli/skeletons/app/tslint.json +0 -17
  77. package/scripts/csdr/cli/skeletons/app-eui10/angular-config.json +0 -20
  78. package/scripts/csdr/cli/skeletons/app-eui10/dependencies-composite.json +0 -5
  79. package/scripts/csdr/cli/skeletons/app-eui10/gitignore_TO_REPLACE +0 -63
  80. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/models/user.js +0 -8
  81. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/index.js +0 -5
  82. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/user_routes.js +0 -24
  83. package/scripts/csdr/cli/skeletons/app-eui10/mock/db/db.json +0 -12
  84. package/scripts/csdr/cli/skeletons/app-eui10/mock/server.js +0 -16
  85. package/scripts/csdr/cli/skeletons/app-eui10/package.json +0 -6
  86. package/scripts/csdr/cli/skeletons/app-eui10/scripts.json +0 -5
  87. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-routing.module.ts +0 -18
  88. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-starter.service.ts +0 -68
  89. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.html +0 -29
  90. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.ts +0 -55
  91. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.module.ts +0 -27
  92. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/components/.gitkeep +0 -0
  93. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/core.module.ts +0 -84
  94. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/reducers/index.ts +0 -33
  95. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home-routing.module.ts +0 -15
  96. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.html +0 -7
  97. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.ts +0 -19
  98. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.module.ts +0 -18
  99. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.html +0 -7
  100. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.ts +0 -7
  101. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.html +0 -7
  102. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.ts +0 -7
  103. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts +0 -18
  104. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.html +0 -7
  105. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.ts +0 -8
  106. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.module.ts +0 -21
  107. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts +0 -16
  108. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.html +0 -8
  109. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.ts +0 -7
  110. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.module.ts +0 -17
  111. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/shared.module.ts +0 -21
  112. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/testing/router.mock.ts +0 -18
  113. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/config/env-json-config.json +0 -8
  114. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/en.json +0 -7
  115. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/fr.json +0 -7
  116. package/scripts/csdr/cli/skeletons/app-eui10/src/config/global.ts +0 -26
  117. package/scripts/csdr/cli/skeletons/app-eui10/src/config/index.ts +0 -8
  118. package/scripts/csdr/cli/skeletons/app-eui10/src/config/modules.ts +0 -4
  119. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.prod.ts +0 -9
  120. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.ts +0 -9
  121. package/scripts/csdr/cli/skeletons/app-eui10/src/index.html +0 -21
  122. package/scripts/csdr/cli/skeletons/app-eui10/src/styles.scss +0 -1
  123. package/scripts/csdr/cli/skeletons/app-eui10/tslint.json +0 -17
  124. package/scripts/csdr/cli/skeletons/app-showcase/angular-config.json +0 -103
  125. package/scripts/csdr/cli/skeletons/app-showcase/dependencies-composite.json +0 -5
  126. package/scripts/csdr/cli/skeletons/app-showcase/gitignore_TO_REPLACE +0 -50
  127. package/scripts/csdr/cli/skeletons/app-showcase/package.json +0 -6
  128. package/scripts/csdr/cli/skeletons/app-showcase/scripts.json +0 -3
  129. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app-routing.module.ts +0 -21
  130. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.html +0 -24
  131. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.ts +0 -19
  132. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.routes.ts +0 -7
  133. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home-routing.module.ts +0 -15
  134. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.html +0 -7
  135. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.ts +0 -8
  136. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.module.ts +0 -17
  137. package/scripts/csdr/cli/skeletons/app-showcase/src/assets/app-metadata.json +0 -8
  138. package/scripts/csdr/cli/skeletons/app-showcase/src/assets/config/env-json-config.json +0 -41
  139. package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +0 -33
  140. package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +0 -5
  141. package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +0 -50
  142. package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +0 -6
  143. package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +0 -3
  144. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +0 -21
  145. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +0 -26
  146. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +0 -19
  147. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +0 -7
  148. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +0 -15
  149. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +0 -7
  150. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +0 -8
  151. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +0 -17
  152. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +0 -15
  153. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +0 -8
  154. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +0 -41
  155. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +0 -22
  156. package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/remote-sources/.gitkeep +0 -0
  157. package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-base.json +0 -2
  158. package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-composite.json +0 -3
  159. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/dummy.spec.ts.TO_REPLACE +0 -5
  160. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +0 -32
  161. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +0 -17
  162. package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +0 -3
  163. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/index.ts +0 -2
  164. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.html +0 -1
  165. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.spec.ts.TO_REPLACE +0 -25
  166. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.ts +0 -14
  167. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/module.ts +0 -17
  168. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/routing.module.ts +0 -14
  169. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +0 -90
  170. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +0 -6
  171. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +0 -2
  172. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-ACC.json +0 -4
  173. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-DLT.json +0 -4
  174. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-INT.json +0 -4
  175. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-PROD.json +0 -4
  176. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-TRN.json +0 -4
  177. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +0 -8
  178. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +0 -65
  179. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +0 -7
  180. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +0 -8
  181. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +0 -3
  182. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.spec.ts +0 -6
  183. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/eui-components.ts +0 -11
  184. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +0 -11
  185. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +0 -91
  186. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +0 -87
  187. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +0 -28
  188. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +0 -43
  189. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +0 -33
  190. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
  191. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +0 -42
  192. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +0 -10
  193. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +0 -3
  194. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +0 -3
  195. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -3
  196. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
  197. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +0 -10
  198. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +0 -12
  199. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +0 -87
  200. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +0 -20
  201. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +0 -18
  202. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +0 -7
  203. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +0 -17
  204. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +0 -10
  205. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.scss +0 -3
  206. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.spec.ts +0 -6
  207. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/eui-components.ts +0 -9
  208. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/fallback.component.ts +0 -11
  209. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.component.ts +0 -91
  210. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.ts +0 -87
  211. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/custom-route-serializer.ts +0 -28
  212. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/index.ts +0 -43
  213. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/routing.module.ts +0 -33
  214. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/assets/.gitkeep +0 -0
  215. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/global.ts +0 -55
  216. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/index.ts +0 -10
  217. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/modules.ts +0 -3
  218. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.prod.ts +0 -3
  219. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.ts +0 -3
  220. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/favicon.ico +0 -0
  221. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/index.html +0 -10
  222. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/main.ts +0 -12
  223. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/polyfills.ts +0 -87
  224. package/scripts/csdr/cli/skeletons/virtual-remote/10.x/angular-config.json +0 -9
  225. package/scripts/csdr/cli/skeletons/virtual-remote/10.x/dependencies.json +0 -20
  226. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/en.json +0 -0
  227. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/fr.json +0 -0
  228. /package/scripts/csdr/cli/skeletons/{app-eui10 → package/frontend-eui15}/dependencies-base.json +0 -0
  229. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/gitignore_TO_REPLACE +0 -0
  230. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/karma.conf.js +0 -0
  231. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/ng-package.json +0 -0
  232. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/package.json +0 -0
  233. /package/scripts/csdr/cli/skeletons/{app/src/app/core → package/frontend-eui15/src}/dummy.spec.ts.TO_REPLACE +0 -0
  234. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/index.ts +0 -0
  235. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/lib/module.ts +0 -0
  236. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/test.ts.TO_REPLACE +0 -0
  237. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/tsconfig.spec.json +0 -0
@@ -1,91 +0,0 @@
1
- import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
-
3
- import { take } from 'rxjs/operators';
4
-
5
- import { CONFIG_TOKEN } from '@eui/core';
6
- import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
7
-
8
- enum ElementStatus {
9
- Loading = 'loading',
10
- Loaded = 'loaded',
11
- Error = 'error',
12
- }
13
-
14
- @Component({
15
- template: `
16
- <eui-block-content *ngIf="moduleStatus === ElementStatus.Loading" [isBlocked]="true">
17
- <div style="height: 100%"></div>
18
- </eui-block-content>
19
- <ng-container *ngIf="moduleStatus === ElementStatus.Loaded">
20
- <router-outlet></router-outlet>
21
- </ng-container>
22
- <ng-container *ngIf="moduleStatus === ElementStatus.Error">
23
- <div class="error-container">
24
- <div>
25
- <h1>Translations or user data for this module failed to load.</h1>
26
- <p>Do you want to try again?</p>
27
- <button euiButton euiPrimary (click)="loadData()">
28
- <span euiLabel>{{ 'global.RELOAD' | translate }}</span>
29
- </button>
30
- </div>
31
- </div>
32
- </ng-container>
33
- `,
34
- styles: [`
35
- .error-container {
36
- width: 50vw;
37
- height: 50vh;
38
- position: absolute;
39
- top: 50%;
40
- left: 50%;
41
- transform: translate(-50%, -50%);
42
- }
43
-
44
- .error-container div {
45
- text-align: center
46
- }
47
- `],
48
- })
49
- export class ModuleComponent implements OnInit, OnDestroy {
50
- ElementStatus = ElementStatus;
51
- moduleStatus: ElementStatus;
52
-
53
- constructor(private elRef: ElementRef,
54
- @Inject(CONFIG_TOKEN) public config: any,
55
- private elementLifeCycleService: ElementLifeCycleService,
56
- private elementSetupService: ElementSetupService) {
57
- }
58
-
59
- ngOnInit() {
60
- const elementData = this.elementLifeCycleService.getElementData(this.elRef);
61
- this.elementLifeCycleService.setup(elementData);
62
- this.loadData();
63
- }
64
-
65
- ngOnDestroy(): void {
66
- this.elementLifeCycleService.cleanup();
67
- }
68
-
69
- private loadData() {
70
- this.setStatus(ElementStatus.Loading);
71
- try {
72
- this.elementSetupService.init()
73
- .pipe(take(1))
74
- .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
- if (!loadStatus.success) {
76
- this.setStatus(ElementStatus.Error);
77
- console.error(`[ELEMENT: ${this.config.global.elementName}] `, loadStatus.error);
78
- } else {
79
- this.setStatus(ElementStatus.Loaded);
80
- }
81
- });
82
- } catch (e) {
83
- console.log(e);
84
- this.setStatus(ElementStatus.Error);
85
- }
86
- }
87
-
88
- private setStatus(status: ElementStatus) {
89
- this.moduleStatus = status;
90
- }
91
- }
@@ -1,87 +0,0 @@
1
- import { NgModule, Injector, DoBootstrap, ApplicationRef } from '@angular/core';
2
- import { BrowserModule } from '@angular/platform-browser';
3
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
- import { HttpClientModule } from '@angular/common/http';
5
- import { createCustomElement } from '@angular/elements';
6
-
7
- import { StoreModule } from '@ngrx/store';
8
- import { EffectsModule } from '@ngrx/effects';
9
- import { StoreRouterConnectingModule } from '@ngrx/router-store';
10
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
11
-
12
- import { TranslateModule } from '@ngx-translate/core';
13
-
14
- import {
15
- CoreModule,
16
- EUI_CONFIG_TOKEN,
17
- translateConfig,
18
- } from '@eui/core';
19
-
20
- import { EUI_COMPONENTS_MODULES } from './eui-components';
21
-
22
- import { CsdrCoreModule } from '@csdr/core';
23
-
24
- import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
25
- import { CustomSerializer } from './reducers/custom-route-serializer';
26
-
27
- import { environment } from '../environments/environment';
28
- import { appConfig } from '../config';
29
-
30
- import { Module as RootPackageCommonModule } from '@module.scope@/@module.name@';
31
- import { DEFAULT_MAPPED_PROVIDERS } from '@csdr/integration/element';
32
- import { RoutingModule } from './routing.module';
33
-
34
- import { FallbackComponent } from './fallback.component';
35
- import { ModuleComponent } from './module.component';
36
-
37
- @NgModule({
38
- imports: [
39
- BrowserModule,
40
- BrowserAnimationsModule,
41
- HttpClientModule,
42
- StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
43
- StoreModule.forRoot(TOKEN, { metaReducers }),
44
- EffectsModule.forRoot([]),
45
- StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
46
- TranslateModule.forRoot(translateConfig),
47
-
48
- CoreModule.forRoot(),
49
- CsdrCoreModule.forRoot(),
50
-
51
- RootPackageCommonModule,
52
- RoutingModule,
53
-
54
- ...EUI_COMPONENTS_MODULES,
55
- ],
56
- declarations: [
57
- FallbackComponent,
58
- ModuleComponent,
59
- ],
60
- entryComponents: [
61
- FallbackComponent,
62
- ModuleComponent,
63
- ],
64
- providers: [
65
- reducerProvider,
66
- {
67
- provide: EUI_CONFIG_TOKEN,
68
- useValue: { appConfig: { ...appConfig, ...environment }, environment },
69
- },
70
-
71
- ...DEFAULT_MAPPED_PROVIDERS,
72
- ],
73
- })
74
- export class AppModule implements DoBootstrap {
75
-
76
- constructor(private injector: Injector) {
77
- }
78
-
79
- ngDoBootstrap(appRef: ApplicationRef): void {
80
- const elementSampleEui = createCustomElement(ModuleComponent, { injector: this.injector });
81
- try {
82
- customElements.define(appConfig.global.elementName, elementSampleEui);
83
- } catch (e) {
84
- console.log(e);
85
- }
86
- }
87
- }
@@ -1,28 +0,0 @@
1
- import { Params, RouterStateSnapshot } from '@angular/router';
2
- import { RouterStateSerializer } from '@ngrx/router-store';
3
-
4
- export interface RouterStateUrl {
5
- url: string;
6
- params: Params;
7
- queryParams: Params;
8
- }
9
-
10
- export class CustomSerializer implements RouterStateSerializer<RouterStateUrl> {
11
- serialize(routerState: RouterStateSnapshot): RouterStateUrl {
12
- let route = routerState.root;
13
-
14
- while (route.firstChild) {
15
- route = route.firstChild;
16
- }
17
-
18
- const {
19
- url,
20
- root: { queryParams },
21
- } = routerState;
22
- const { params } = route;
23
-
24
- // Only return an object including the URL, params and query params
25
- // instead of the entire snapshot
26
- return { url, params, queryParams };
27
- }
28
- }
@@ -1,43 +0,0 @@
1
- /* eslint-disable */
2
- import { InjectionToken } from '@angular/core';
3
- import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
4
- import * as fromRouter from '@ngrx/router-store';
5
- import { storeFreeze } from 'ngrx-store-freeze';
6
- import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
7
-
8
- import { environment } from '../../environments/environment';
9
-
10
- export interface AppState extends CoreState {
11
- router: fromRouter.RouterReducerState<any>;
12
- }
13
-
14
- // -----------------
15
- // ------------ AOT
16
- export const TOKEN = new InjectionToken<any>('AppReducers');
17
-
18
- export function getReducers(): ActionReducerMap<AppState, any> {
19
- return {
20
- router: fromRouter.routerReducer,
21
- ...coreReducers,
22
- };
23
- }
24
-
25
- export const reducerProvider = [
26
- { provide: TOKEN, useFactory: getReducers },
27
- ];
28
-
29
- // console.log all actions
30
- export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
31
- return (state, action) => {
32
- const result = reducer(state, action);
33
- console.groupCollapsed(action.type);
34
- console.log('prev state', state);
35
- console.log('action', action);
36
- console.log('next state', result);
37
- console.groupEnd();
38
-
39
- return result;
40
- };
41
- }
42
-
43
- export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, localStorageSync, storeFreeze] : [localStorageSync];
@@ -1,33 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule, Routes } from '@angular/router';
3
-
4
- import { ELEMENT_ROUTES_TOKEN } from '@csdr/integration/element';
5
-
6
- import { routes } from '@module.scope@/@module.name@';
7
- import { appConfig } from '../config/index';
8
- import { FallbackComponent } from './fallback.component';
9
- import { ModuleComponent } from './module.component';
10
-
11
- const elementRoutes: Routes = [
12
- { path: '', component: ModuleComponent },
13
- {
14
- path: appConfig.global.baseUrl,
15
- children: routes,
16
- },
17
- { path: '**', component: FallbackComponent },
18
- ];
19
-
20
- // @dynamic
21
- @NgModule({
22
- imports: [
23
- RouterModule.forRoot(elementRoutes),
24
- ],
25
- providers: [
26
- { provide: ELEMENT_ROUTES_TOKEN, useValue: elementRoutes },
27
- ],
28
- exports: [
29
- RouterModule,
30
- ],
31
- })
32
- export class RoutingModule {
33
- }
@@ -1,42 +0,0 @@
1
- import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
2
-
3
- /**
4
- * Internationalization Configuration
5
- */
6
- const i18nConfig: I18nConfig = {
7
- i18nLoader: {
8
- i18nFolders: ['elements/@module.full.name@/bundles/assets/i18n-compiled'],
9
- i18nResources: [{
10
- prefix: 'assets/i18n-eui/',
11
- suffix: '.json',
12
- }],
13
- },
14
- i18nService: {
15
- languages: ['en', 'fr'],
16
- defaultLanguage: 'en',
17
- },
18
- };
19
-
20
- /**
21
- * Locale Configuration
22
- */
23
- const localeConfig: LocaleServiceConfig = {
24
- id: 'en',
25
- available: ['en', 'fr'],
26
- bindWithTranslate: true,
27
- affectGlobalLocale: true,
28
- };
29
-
30
- /**
31
- * Global Configuration
32
- */
33
- export const GLOBAL: GlobalConfig = {
34
- /* URL that needs to be used in the appRouting of the MWP */
35
- baseUrl: '@module.name@',
36
- /* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
37
- elementName: '@module.scope-name@',
38
- /* in case you are using NgRx give it a unique name (mostly for debugging) */
39
- storeName: '@module.scope-name@',
40
- i18n: i18nConfig,
41
- locale: localeConfig,
42
- };
@@ -1,10 +0,0 @@
1
- import { GLOBAL } from './global';
2
- import { MODULES } from './modules';
3
-
4
- import { EuiAppConfig } from '@eui/core';
5
- import { configMapping } from '@csdr/integration/element';
6
-
7
- export const appConfig: EuiAppConfig = configMapping({
8
- global: GLOBAL,
9
- modules: MODULES,
10
- });
@@ -1,3 +0,0 @@
1
- import { ModulesConfig } from '@eui/core';
2
-
3
- export const MODULES: ModulesConfig = {};
@@ -1,3 +0,0 @@
1
- export const environment = {
2
- production: true,
3
- };
@@ -1,3 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- };
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <base href="/">
6
- </head>
7
- <body>
8
- dummy index.html
9
- </body>
10
- </html>
@@ -1,12 +0,0 @@
1
- import { enableProdMode } from '@angular/core';
2
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
-
4
- import { AppModule } from './app/module';
5
- import { environment } from './environments/environment';
6
-
7
- if (environment.production) {
8
- enableProdMode();
9
- }
10
-
11
- platformBrowserDynamic().bootstrapModule(AppModule)
12
- .catch(err => console.log(err));
@@ -1,87 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file includes polyfills needed by Angular and is loaded before the app.
4
- * You can add your own extra polyfills to this file.
5
- *
6
- * This file is divided into 2 sections:
7
- * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
8
- * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
9
- * file.
10
- *
11
- * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
12
- * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
13
- * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
14
- *
15
- * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
16
- */
17
-
18
- /***************************************************************************************************
19
- * BROWSER POLYFILLS
20
- */
21
-
22
- /** IE9, IE10 and IE11 requires all of the following polyfills. **/
23
- // import 'core-js/es6/symbol';
24
- // import 'core-js/es6/object';
25
- // import 'core-js/es6/function';
26
- // import 'core-js/es6/parse-int';
27
- // import 'core-js/es6/parse-float';
28
- // import 'core-js/es6/number';
29
- // import 'core-js/es6/math';
30
- // import 'core-js/es6/string';
31
- // import 'core-js/es6/date';
32
- // import 'core-js/es6/array';
33
- // import 'core-js/es6/regexp';
34
- // import 'core-js/es6/map';
35
- // import 'core-js/es6/weak-map';
36
- // import 'core-js/es6/set';
37
-
38
- /** IE10 and IE11 requires the following for NgClass support on SVG elements */
39
- // import 'classlist.js'; // Run `npm install --save classlist.js`.
40
-
41
- /** IE10 and IE11 requires the following for the Reflect API. */
42
- // import 'core-js/es6/reflect';
43
-
44
- /** Evergreen browsers require these. **/
45
- // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
46
- // import 'core-js/es7/reflect';
47
-
48
- /**
49
- * Web Animations `@angular/platform-browser/animations`
50
- * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
51
- * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
52
- **/
53
- // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
54
-
55
- /**
56
- * By default, zone.js will patch all possible macroTask and DomEvents
57
- * user can disable parts of macroTask/DomEvents patch by setting following flags
58
- */
59
-
60
- // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
61
- // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
62
- // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
63
-
64
- /*
65
- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
66
- * with the following flag, it will bypass `zone.js` patch for IE/Edge
67
- */
68
- // (window as any).__Zone_enable_cross_context_check = true;
69
-
70
- /***************************************************************************************************
71
- * Zone JS is required by default for Angular itself.
72
- */
73
- import 'zone.js/dist/zone'; // Included with Angular CLI.
74
-
75
- /***************************************************************************************************
76
- * APPLICATION IMPORTS
77
- */
78
-
79
- /**
80
- * Date, currency, decimal and percent pipes.
81
- * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
82
- */
83
- // import 'intl'; // Run `npm install --save intl`.
84
- /**
85
- * Need to import at least one locale-data with intl.
86
- */
87
- // import 'intl/locale-data/jsonp/en';
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./out-tsc/app",
5
- "module": "es2015",
6
- "target": "es2015",
7
- "types": [
8
- "node"
9
- ],
10
- "paths": {
11
- "os": ["./node_modules/empty-module/index.js"],
12
- "node-fetch": ["./node_modules/empty-module/index.js"],
13
- "zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
14
- }
15
- },
16
- "exclude": [
17
- "src/test.ts",
18
- "**/*.spec.ts"
19
- ]
20
- }
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./out-tsc/spec",
5
- "types": [
6
- "jasmine",
7
- "node"
8
- ]
9
- },
10
- "files": [
11
- "src/test.ts",
12
- "src/polyfills.ts"
13
- ],
14
- "include": [
15
- "**/*.spec.ts",
16
- "**/*.d.ts"
17
- ]
18
- }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tslint-remote.json",
3
- "rulesDirectory": [
4
- "node_modules/codelyzer",
5
- "node_modules/rxjs-tslint"
6
- ]
7
- }
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "./tslint-remote.json",
3
- "rules": {
4
- "directive-selector": [
5
- true,
6
- "attribute",
7
- "app",
8
- "camelCase"
9
- ],
10
- "component-selector": [
11
- true,
12
- "element",
13
- "app",
14
- "kebab-case"
15
- ]
16
- }
17
- }
@@ -1,10 +0,0 @@
1
- const webpack = require('webpack');
2
-
3
- module.exports = {
4
- plugins: [
5
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
6
- ],
7
- output: {
8
- jsonpFunction: '@module.scope-name@-v10',
9
- },
10
- }
@@ -1,3 +0,0 @@
1
- .example {
2
- padding: 10px;
3
- }
@@ -1,6 +0,0 @@
1
- // Dummy test
2
- describe('Test', () => {
3
- it('should work', () => {
4
- expect(true).toBe(true);
5
- });
6
- });
@@ -1,9 +0,0 @@
1
- import { EuiBlockContentModule } from '@eui/components/eui-block-content';
2
- import { EuiButtonModule } from '@eui/components/eui-button';
3
- import { EuiLabelModule } from '@eui/components/eui-label';
4
-
5
- export const EUI_COMPONENTS_MODULES = [
6
- EuiBlockContentModule,
7
- EuiButtonModule,
8
- EuiLabelModule,
9
- ];
@@ -1,11 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- template: `
5
- <eui-block-content [isBlocked]="true">
6
- <div style="height: 100%"></div>
7
- </eui-block-content>
8
- `,
9
- })
10
- export class FallbackComponent {
11
- }