@genesislcap/blank-app-seed 3.21.0 → 3.23.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 (85) hide show
  1. package/.genx/package.json +1 -1
  2. package/.genx/static.js +3 -2
  3. package/.genx/templates/angular/chart.hbs +21 -9
  4. package/.genx/templates/angular/entityManager.hbs +57 -45
  5. package/.genx/templates/angular/form.hbs +21 -8
  6. package/.genx/templates/angular/grid.hbs +30 -18
  7. package/.genx/templates/angular/route.hbs +8 -5
  8. package/.genx/templates/react/chart.hbs +9 -0
  9. package/.genx/templates/react/entityManager.hbs +45 -0
  10. package/.genx/templates/react/form.hbs +8 -0
  11. package/.genx/templates/react/grid.hbs +18 -0
  12. package/.genx/templates/react/gridLayout.hbs +30 -0
  13. package/.genx/templates/react/horizontalLayout.hbs +7 -0
  14. package/.genx/templates/react/route.hbs +35 -0
  15. package/.genx/templates/react/route.styles.hbs +3 -0
  16. package/.genx/templates/react/tabsLayout.hbs +7 -0
  17. package/.genx/templates/web-components/entityManager.hbs +1 -1
  18. package/.genx/utils/generateRoute.js +21 -9
  19. package/CHANGELOG.md +14 -0
  20. package/client-tmp/angular/angular.json +21 -12
  21. package/client-tmp/angular/package.json +45 -20
  22. package/client-tmp/angular/src/app/app-routing.module.ts +10 -3
  23. package/client-tmp/angular/src/app/app.component.spec.ts +2 -8
  24. package/client-tmp/angular/src/app/app.component.ts +0 -1
  25. package/client-tmp/angular/src/app/app.config.ts +1 -0
  26. package/client-tmp/angular/src/app/components/error-message/error-message.component.html +15 -0
  27. package/client-tmp/angular/src/app/components/error-message/error-message.component.spec.ts +74 -0
  28. package/client-tmp/angular/src/app/components/error-message/error-message.component.ts +15 -0
  29. package/client-tmp/angular/src/app/guards/auth.guard.ts +3 -3
  30. package/client-tmp/angular/src/app/guards/permissions.guard.ts +24 -0
  31. package/client-tmp/angular/src/app/layouts/blank/blank.layout.html +0 -1
  32. package/client-tmp/angular/src/app/layouts/blank/blank.layout.spec.ts +1 -1
  33. package/client-tmp/angular/src/app/layouts/default/default.layout.html +0 -1
  34. package/client-tmp/angular/src/app/layouts/default/default.layout.spec.ts +30 -15
  35. package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.spec.ts +6 -6
  36. package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.html +4 -0
  37. package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.scss +12 -0
  38. package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.spec.ts +32 -0
  39. package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.ts +13 -0
  40. package/client-tmp/angular/src/app/services/auth.service.ts +12 -4
  41. package/client-tmp/angular/src/app/share/foundation-login.ts +3 -0
  42. package/client-tmp/angular/src/app/utils/index.ts +1 -0
  43. package/client-tmp/angular/src/app/utils/permissions.ts +7 -0
  44. package/client-tmp/angular/src/styles/_mixins.scss +8 -0
  45. package/client-tmp/react/.eslintrc.cjs +18 -0
  46. package/client-tmp/react/README.md +48 -0
  47. package/client-tmp/react/git +0 -0
  48. package/client-tmp/react/index.html +13 -0
  49. package/client-tmp/react/package.json +54 -0
  50. package/client-tmp/react/src/App.tsx +66 -0
  51. package/client-tmp/react/src/assets/logo-icon--light.svg +3 -0
  52. package/client-tmp/react/src/config.ts +31 -0
  53. package/client-tmp/react/src/custom-elements.d.ts +11 -0
  54. package/client-tmp/react/src/guards/AuthGuard.tsx +32 -0
  55. package/client-tmp/react/src/index.js +17 -0
  56. package/client-tmp/react/src/layouts/LayoutWrapper.tsx +20 -0
  57. package/client-tmp/react/src/layouts/blank/BlankLayout.module.css +9 -0
  58. package/client-tmp/react/src/layouts/blank/BlankLayout.tsx +26 -0
  59. package/client-tmp/react/src/layouts/default/DefaultLayout.module.css +35 -0
  60. package/client-tmp/react/src/layouts/default/DefaultLayout.tsx +80 -0
  61. package/client-tmp/react/src/main.tsx +10 -0
  62. package/client-tmp/react/src/pages/auth/AuthPage.css +0 -0
  63. package/client-tmp/react/src/pages/auth/AuthPage.jsx +11 -0
  64. package/client-tmp/react/src/reportWebVitals.js +13 -0
  65. package/client-tmp/react/src/services/auth.service.ts +13 -0
  66. package/client-tmp/react/src/services/connect.service.ts +26 -0
  67. package/client-tmp/react/src/setupTests.js +5 -0
  68. package/client-tmp/react/src/share/foundation-login.ts +21 -0
  69. package/client-tmp/react/src/share/genesis-components.ts +32 -0
  70. package/client-tmp/react/src/store/AuthContext.tsx +56 -0
  71. package/client-tmp/react/src/styles/design-tokens.json +56 -0
  72. package/client-tmp/react/src/styles/styles.css +39 -0
  73. package/client-tmp/react/src/svg-elements.d.ts +4 -0
  74. package/client-tmp/react/src/types/RouteLayouts.ts +3 -0
  75. package/client-tmp/react/src/types/layers.ts +9 -0
  76. package/client-tmp/react/src/types/menu.ts +8 -0
  77. package/client-tmp/react/src/utils/history.ts +5 -0
  78. package/client-tmp/react/src/utils/navigation.ts +5 -0
  79. package/client-tmp/react/src/vite-env.d.ts +1 -0
  80. package/client-tmp/react/tsconfig.app.json +28 -0
  81. package/client-tmp/react/tsconfig.json +11 -0
  82. package/client-tmp/react/tsconfig.node.json +13 -0
  83. package/client-tmp/react/vite.config.ts +14 -0
  84. package/package.json +1 -1
  85. package/client-tmp/react/react-file.ts +0 -1
@@ -0,0 +1,39 @@
1
+ @font-face {
2
+ font-family: Segoe UI;
3
+ font-weight: 300;
4
+ src: local("Segoe UI Semilight"), local("Segoe UI");
5
+ }
6
+
7
+ * {
8
+ font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
9
+ font-style: normal;
10
+ font-weight: normal;
11
+ }
12
+
13
+ html,
14
+ body,
15
+ #root,
16
+ [class$='-page'] {
17
+ width: 100%;
18
+ height: 100%;
19
+ padding: 0;
20
+ margin: 0;
21
+
22
+ --nav-height: 60px;
23
+ }
24
+
25
+ body{
26
+ overflow: hidden;
27
+ }
28
+
29
+ rapid-design-system-provider,
30
+ .dynamic-template,
31
+ foundation-router {
32
+ display: flex;
33
+ width: 100%;
34
+ height: 100%;
35
+ }
36
+
37
+ rapid-design-system-provider {
38
+ overflow: hidden;
39
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.svg' {
2
+ const content: any;
3
+ export default content;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface RouteLayouts {
2
+ [key: string]: 'blank' | 'default';
3
+ }
@@ -0,0 +1,9 @@
1
+ export interface LayersState {
2
+ [key: string]: boolean; // Each key is a layer name, value is its visibility (true/false)
3
+ }
4
+
5
+ export interface LayerContextState {
6
+ state: LayersState;
7
+ updateState: (newState: Partial<LayerContextState['state']>) => void;
8
+ setLayerState: (layerName: string, isVisible: boolean) => void;
9
+ }
@@ -0,0 +1,8 @@
1
+ export type MainMenuLink = {
2
+ index: number;
3
+ path: string;
4
+ title: string;
5
+ icon: string;
6
+ variant?: string;
7
+ };
8
+ export type MainMenu = MainMenuLink[];
@@ -0,0 +1,5 @@
1
+ import { createBrowserHistory } from 'history';
2
+
3
+ const history = createBrowserHistory();
4
+
5
+ export default history;
@@ -0,0 +1,5 @@
1
+ import { history } from './history';
2
+
3
+ export const navigateTo = (path: string): void => {
4
+ history.push(path);
5
+ };
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
+ "target": "ES2020",
6
+ "useDefineForClassFields": true,
7
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
8
+ "module": "ESNext",
9
+ "skipLibCheck": true,
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "resolveJsonModule": true,
15
+ "isolatedModules": true,
16
+ "moduleDetection": "force",
17
+ "noEmit": true,
18
+ "jsx": "react-jsx",
19
+
20
+ /* Linting */
21
+ "strict": true,
22
+ "noUnusedLocals": true,
23
+ "noUnusedParameters": true,
24
+ "noFallthroughCasesInSwitch": true,
25
+ "types": ["node", "react"]
26
+ },
27
+ "include": ["src"]
28
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.app.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.node.json"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "skipLibCheck": true,
6
+ "module": "ESNext",
7
+ "moduleResolution": "bundler",
8
+ "allowSyntheticDefaultImports": true,
9
+ "strict": true,
10
+ "noEmit": true
11
+ },
12
+ "include": ["vite.config.ts"]
13
+ }
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+ import { resolve } from 'path';
4
+
5
+ export default defineConfig({
6
+ plugins: [
7
+ react(),
8
+ ],
9
+ resolve: {
10
+ alias: {
11
+ 'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
12
+ },
13
+ },
14
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "3.21.0",
4
+ "version": "3.23.0",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"
@@ -1 +0,0 @@
1
- // WIP