@genesislcap/blank-app-seed 3.16.1 → 3.17.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 (136) hide show
  1. package/.genx/.genxrc.js +1 -1
  2. package/.genx/.prettierrc +5 -0
  3. package/.genx/configure.js +19 -10
  4. package/.genx/details.js +1 -1
  5. package/.genx/eslint.config.mjs +20 -0
  6. package/.genx/package-lock.json +1173 -0
  7. package/.genx/package.json +14 -1
  8. package/.genx/prompts/api.js +12 -20
  9. package/.genx/prompts/server.js +55 -54
  10. package/.genx/prompts/ui.js +40 -13
  11. package/.genx/prompts/validators.js +16 -6
  12. package/.genx/prompts.js +11 -4
  13. package/.genx/scripts/update-versions.js +9 -4
  14. package/.genx/static.js +96 -0
  15. package/.genx/templates/angular/route.hbs +14 -0
  16. package/.genx/templates/angular/route.styles.hbs +3 -0
  17. package/.genx/templates/angular/route.template.hbs +8 -0
  18. package/.genx/utils/excludeFrameworks.js +29 -0
  19. package/.genx/utils/formatJSONValue.js +9 -0
  20. package/.genx/utils/formatRouteData.js +36 -0
  21. package/.genx/utils/generateCsv.js +13 -0
  22. package/.genx/utils/generateRoute.js +64 -0
  23. package/.genx/utils/getCombinedCsvData.js +72 -0
  24. package/.genx/utils/getLayoutType.js +10 -0
  25. package/.genx/utils/gridColumnsSerializer.js +17 -0
  26. package/.genx/utils/gridOptionsSerializer.js +33 -0
  27. package/.genx/utils/index.js +25 -0
  28. package/.genx/utils/makeDirectory.js +9 -0
  29. package/.genx/utils/normalizeFrameworkAlias.js +5 -0
  30. package/.genx/utils/parseJSONArgument.js +13 -0
  31. package/.genx/utils/registerPartials.js +25 -0
  32. package/.genx/utils/validateFrameworkAlias.js +8 -0
  33. package/.genx/utils/validateRoute.js +8 -0
  34. package/CHANGELOG.md +7 -0
  35. package/client-tmp/angular/README.md +27 -0
  36. package/client-tmp/angular/angular.json +136 -0
  37. package/client-tmp/angular/globals.d.ts +6 -0
  38. package/client-tmp/angular/package.json +50 -0
  39. package/client-tmp/angular/src/app/app.component.css +0 -0
  40. package/client-tmp/angular/src/app/app.component.html +3 -0
  41. package/client-tmp/angular/src/app/app.component.spec.ts +29 -0
  42. package/client-tmp/angular/src/app/app.component.ts +26 -0
  43. package/client-tmp/angular/src/app/app.config.ts +7 -0
  44. package/client-tmp/angular/src/app/app.routes.ts +28 -0
  45. package/client-tmp/angular/src/app/guards/auth.guard.ts +25 -0
  46. package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.css +4 -0
  47. package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.html +1 -0
  48. package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.spec.ts +22 -0
  49. package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.ts +12 -0
  50. package/client-tmp/angular/src/app/pages/home/home.component.css +3 -0
  51. package/client-tmp/angular/src/app/pages/home/home.component.html +1 -0
  52. package/client-tmp/angular/src/app/pages/home/home.component.ts +16 -0
  53. package/client-tmp/angular/src/app/services/auth.service.ts +14 -0
  54. package/client-tmp/angular/src/app/share/foundation-auth.ts +21 -0
  55. package/client-tmp/angular/src/app/share/foundation-login.ts +37 -0
  56. package/client-tmp/angular/src/app/share/genesis-components.ts +15 -0
  57. package/client-tmp/angular/src/assets/.gitkeep +0 -0
  58. package/client-tmp/angular/src/environments/environment.prod.ts +5 -0
  59. package/client-tmp/angular/src/environments/environment.ts +6 -0
  60. package/client-tmp/angular/src/index.html +13 -0
  61. package/client-tmp/angular/src/main.ts +6 -0
  62. package/client-tmp/angular/src/styles.css +13 -0
  63. package/client-tmp/angular/tsconfig.app.json +15 -0
  64. package/client-tmp/angular/tsconfig.json +33 -0
  65. package/client-tmp/angular/tsconfig.spec.json +14 -0
  66. package/client-tmp/angular/webpack.dev.config.js +14 -0
  67. package/client-tmp/angular/webpack.prod.config.js +14 -0
  68. package/client-tmp/angular/webpack.shared.config.js +42 -0
  69. package/client-tmp/react/react-file.ts +1 -0
  70. package/client-tmp/web-components/public/favicon.ico +0 -0
  71. package/package.json +1 -1
  72. package/.genx/utils.js +0 -212
  73. /package/.genx/templates/{route.hbs → web-components/route.hbs} +0 -0
  74. /package/.genx/templates/{route.styles.hbs → web-components/route.styles.hbs} +0 -0
  75. /package/.genx/templates/{route.template.hbs → web-components/route.template.hbs} +0 -0
  76. /package/{client/public → client-tmp/angular/src}/favicon.ico +0 -0
  77. /package/{client → client-tmp/web-components}/.editorconfig +0 -0
  78. /package/{client → client-tmp/web-components}/.prettierignore +0 -0
  79. /package/{client → client-tmp/web-components}/Dockerfile +0 -0
  80. /package/{client → client-tmp/web-components}/README.md +0 -0
  81. /package/{client → client-tmp/web-components}/build.gradle.kts +0 -0
  82. /package/{client → client-tmp/web-components}/docs/images/lsp_jetbrains_one.png +0 -0
  83. /package/{client → client-tmp/web-components}/docs/images/lsp_jetbrains_two.png +0 -0
  84. /package/{client → client-tmp/web-components}/docs/images/lsp_vscode_one.png +0 -0
  85. /package/{client → client-tmp/web-components}/docs/images/lsp_vscode_two.png +0 -0
  86. /package/{client → client-tmp/web-components}/index.html +0 -0
  87. /package/{client → client-tmp/web-components}/package.json +0 -0
  88. /package/{client → client-tmp/web-components}/playwright.config.ts +0 -0
  89. /package/{client → client-tmp/web-components}/public/initSSO.js +0 -0
  90. /package/{client → client-tmp/web-components}/settings.gradle.kts +0 -0
  91. /package/{client → client-tmp/web-components}/src/components/components.ts +0 -0
  92. /package/{client → client-tmp/web-components}/src/components/index.ts +0 -0
  93. /package/{client → client-tmp/web-components}/src/components/not-permitted-component/index.ts +0 -0
  94. /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.styles.ts +0 -0
  95. /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.template.ts +0 -0
  96. /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.ts +0 -0
  97. /package/{client → client-tmp/web-components}/src/index.federated.ts +0 -0
  98. /package/{client → client-tmp/web-components}/src/index.ts +0 -0
  99. /package/{client → client-tmp/web-components}/src/layouts/default.ts +0 -0
  100. /package/{client → client-tmp/web-components}/src/layouts/index.ts +0 -0
  101. /package/{client → client-tmp/web-components}/src/main/index.ts +0 -0
  102. /package/{client → client-tmp/web-components}/src/main/main.css +0 -0
  103. /package/{client → client-tmp/web-components}/src/main/main.styles.ts +0 -0
  104. /package/{client → client-tmp/web-components}/src/main/main.template.ts +0 -0
  105. /package/{client → client-tmp/web-components}/src/main/main.ts +0 -0
  106. /package/{client → client-tmp/web-components}/src/pbc/README.md +0 -0
  107. /package/{client → client-tmp/web-components}/src/routes/config.ts +0 -0
  108. /package/{client → client-tmp/web-components}/src/routes/index.ts +0 -0
  109. /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.styles.ts +0 -0
  110. /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.template.ts +0 -0
  111. /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.ts +0 -0
  112. /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.styles.ts +0 -0
  113. /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.template.ts +0 -0
  114. /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.ts +0 -0
  115. /package/{client → client-tmp/web-components}/src/routes/types.ts +0 -0
  116. /package/{client → client-tmp/web-components}/src/store/index.ts +0 -0
  117. /package/{client → client-tmp/web-components}/src/store/store.ts +0 -0
  118. /package/{client → client-tmp/web-components}/src/styles/design-tokens.json +0 -0
  119. /package/{client → client-tmp/web-components}/src/styles/index.ts +0 -0
  120. /package/{client → client-tmp/web-components}/src/styles/styles.ts +0 -0
  121. /package/{client → client-tmp/web-components}/src/styles/typography.ts +0 -0
  122. /package/{client → client-tmp/web-components}/src/types.ts +0 -0
  123. /package/{client → client-tmp/web-components}/src/typings.d.ts +0 -0
  124. /package/{client → client-tmp/web-components}/src/utils/fdc3.ts +0 -0
  125. /package/{client → client-tmp/web-components}/src/utils/formatters.ts +0 -0
  126. /package/{client → client-tmp/web-components}/src/utils/index.ts +0 -0
  127. /package/{client → client-tmp/web-components}/src/utils/logger.ts +0 -0
  128. /package/{client → client-tmp/web-components}/src/utils/permissions.ts +0 -0
  129. /package/{client → client-tmp/web-components}/test/README.md +0 -0
  130. /package/{client → client-tmp/web-components}/test/e2e/fixture.ts +0 -0
  131. /package/{client → client-tmp/web-components}/test/e2e/flows/001-protected.e2e.ts +0 -0
  132. /package/{client → client-tmp/web-components}/test/e2e/index.ts +0 -0
  133. /package/{client → client-tmp/web-components}/test/e2e/pages/index.ts +0 -0
  134. /package/{client → client-tmp/web-components}/test/e2e/pages/protected.ts +0 -0
  135. /package/{client → client-tmp/web-components}/test/unit/sample.test.ts +0 -0
  136. /package/{client → client-tmp/web-components}/tsconfig.json +0 -0
package/.genx/.genxrc.js CHANGED
@@ -5,5 +5,5 @@ module.exports = {
5
5
  // Additional seed details beyond what was captured during seed registration
6
6
  details: () => require('./details'),
7
7
  // Prompts used to capture seed configuration values
8
- prompts: () => require('./prompts')
8
+ prompts: () => require('./prompts'),
9
9
  };
@@ -0,0 +1,5 @@
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "bracketSpacing": true
5
+ }
@@ -1,5 +1,13 @@
1
1
  const versions = require('./versions.json');
2
- const { registerPartials, generateRoute, generateCsv, getCombinedCsvData, formatRouteData, validateRoute } = require('./utils');
2
+ const {
3
+ excludeFrameworks,
4
+ formatRouteData,
5
+ generateRoute,
6
+ generateCsv,
7
+ getCombinedCsvData,
8
+ registerPartials,
9
+ validateRoute,
10
+ } = require('./utils');
3
11
 
4
12
  /**
5
13
  * Signature is `async (data: inquirer.Answers, utils: SeedConfigurationUtils)`
@@ -8,25 +16,26 @@ module.exports = async (data, utils) => {
8
16
  // populate additional data fields
9
17
  data.pkgName = data.appName.replace(/[\W_]/g, '').toLowerCase();
10
18
  data.rootElement = `${data.pkgName}-root`;
11
- data.localGenId = data.appName.toUpperCase().replace("-", "_");
19
+ data.localGenId = data.appName.toUpperCase().replace('-', '_');
12
20
  data.applicationVersionWeb = data.applicationVersion.split('-').shift();
13
21
  data.versions = versions;
14
22
 
15
- registerPartials(utils);
23
+ registerPartials(utils, data.framework);
16
24
 
17
- data.routes = data.routes
18
- .filter(validateRoute)
19
- .map(formatRouteData);
25
+ data.routes = data.routes.filter(validateRoute).map(formatRouteData);
20
26
 
21
- const FDC3EventHandlersEnabled = data.routes.find(route => route.FDC3EventHandlersEnabled);
27
+ const FDC3EventHandlersEnabled = data.routes.find(
28
+ (route) => route.FDC3EventHandlersEnabled,
29
+ );
22
30
  const FDC3ListenersEnabled = data.ui?.fdc3?.channels?.length;
23
31
  data.FDC3 = {
24
32
  includeDependencies: !!(FDC3ListenersEnabled || FDC3EventHandlersEnabled),
25
- channels: data.ui?.fdc3?.channels || []
33
+ channels: data.ui?.fdc3?.channels || [],
26
34
  };
35
+ excludeFrameworks(data.framework);
27
36
 
28
- data.routes.forEach(route => {
29
- generateRoute(route, utils);
37
+ data.routes.forEach((route) => {
38
+ generateRoute(route, utils, data.framework);
30
39
  });
31
40
 
32
41
  data.csv
package/.genx/details.js CHANGED
@@ -1,4 +1,4 @@
1
- const { description, license, name, version } = require("./package.json");
1
+ const { description, license, name, version } = require('./package.json');
2
2
 
3
3
  const summary = `
4
4
  Name: ${name}
@@ -0,0 +1,20 @@
1
+ import globals from 'globals';
2
+ import pluginJs from '@eslint/js';
3
+ import prettier from 'eslint-plugin-prettier';
4
+
5
+ export default [
6
+ { files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
7
+ { languageOptions: { globals: globals.node } },
8
+ pluginJs.configs.recommended,
9
+ {
10
+ plugins: {
11
+ prettier,
12
+ },
13
+ rules: {
14
+ 'prettier/prettier': 'error',
15
+ },
16
+ },
17
+ {
18
+ ignores: ['client-tmp/'], // Use "ignores" to specify files or directories to ignore
19
+ },
20
+ ];