@genesislcap/blank-app-seed 5.7.0-prerelease.4 → 5.7.0-prerelease.41
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.
- package/.genx/configure.js +114 -0
- package/.genx/package.json +5 -2
- package/.genx/prompts/api.js +25 -0
- package/.genx/prompts/ui.js +12 -0
- package/.genx/prompts.js +8 -2
- package/.genx/static.js +1 -0
- package/.genx/templates/angular/component/component.hbs +31 -3
- package/.genx/templates/angular/entityManager.hbs +17 -6
- package/.genx/templates/angular/grid.hbs +5 -2
- package/.genx/templates/angular/slices/eventing.slice.hbs +41 -0
- package/.genx/templates/angular/store.hbs +14 -0
- package/.genx/templates/angular/tabsLayout.hbs +1 -1
- package/.genx/templates/react/component/component.hbs +84 -15
- package/.genx/templates/react/entityManager.hbs +11 -17
- package/.genx/templates/react/grid.hbs +5 -9
- package/.genx/templates/react/gridLayout.hbs +4 -4
- package/.genx/templates/react/horizontalLayout.hbs +1 -1
- package/.genx/templates/react/route.hbs +12 -1
- package/.genx/templates/react/slices/eventing.slice.hbs +39 -0
- package/.genx/templates/react/store.hbs +22 -0
- package/.genx/templates/react/tabsLayout.hbs +2 -2
- package/.genx/templates/web-components/component/component.hbs +26 -0
- package/.genx/templates/web-components/entityManager.hbs +17 -9
- package/.genx/templates/web-components/grid.hbs +13 -5
- package/.genx/templates/web-components/slices/eventing.slice.hbs +44 -0
- package/.genx/templates/web-components/store.hbs +18 -0
- package/.genx/utils/fontUtils.js +75 -0
- package/.genx/utils/formatRouteData.js +5 -0
- package/.genx/utils/generateRoute.js +1 -1
- package/.genx/utils/generateStore.js +98 -0
- package/.genx/utils/index.js +4 -0
- package/.genx/versions.json +3 -3
- package/.github/CODEOWNERS +1 -1
- package/.github/pull_request_template.md +6 -0
- package/.github/workflows/upgrade.yml +0 -1
- package/CHANGELOG.md +308 -0
- package/client-tmp/angular/package.json +5 -0
- package/client-tmp/angular/src/app/app.component.ts +2 -1
- package/client-tmp/angular/src/app/app.module.ts +3 -0
- package/client-tmp/angular/src/app/layouts/default/default.layout.css +8 -0
- package/client-tmp/angular/src/app/layouts/default/default.layout.html +3 -0
- package/client-tmp/angular/src/app/share/genesis-components.ts +12 -1
- package/client-tmp/angular/src/styles/design-tokens.json +5 -1
- package/client-tmp/angular/src/styles/styles.css +15 -1
- package/client-tmp/react/index.html +0 -1
- package/client-tmp/react/package.json +17 -28
- package/client-tmp/react/public/index.html +3 -1
- package/client-tmp/react/src/App.tsx +47 -32
- package/client-tmp/react/src/components/routes/AppRoutes.tsx +4 -4
- package/client-tmp/react/src/config.ts +1 -1
- package/client-tmp/react/src/layouts/blank/BlankLayout.tsx +1 -1
- package/client-tmp/react/src/layouts/default/DefaultLayout.module.css +8 -0
- package/client-tmp/react/src/layouts/default/DefaultLayout.tsx +15 -4
- package/client-tmp/react/src/main.tsx +1 -1
- package/client-tmp/react/src/pages/AuthPage/AuthPage.tsx +1 -1
- package/client-tmp/react/src/pages/NotFoundPage/NotFoundPage.tsx +1 -1
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.test.tsx +1 -1
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.tsx +1 -1
- package/client-tmp/react/src/pbc/container.tsx +1 -1
- package/client-tmp/react/src/services/store.service.ts +20 -9
- package/client-tmp/react/src/share/foundation-login.ts +2 -2
- package/client-tmp/react/src/share/genesis-components.ts +12 -1
- package/client-tmp/react/src/store/RoutesContext.tsx +8 -7
- package/client-tmp/react/src/styles/design-tokens.json +5 -1
- package/client-tmp/react/src/styles/styles.css +15 -1
- package/client-tmp/react/src/utils/getLayoutNameByRoute.ts +1 -1
- package/client-tmp/react/src/utils/goldenLayout.helper.ts +59 -0
- package/client-tmp/react/src/utils/useDocumentTitle.ts +46 -0
- package/client-tmp/react/test/e2e/fixture.ts +1 -1
- package/client-tmp/web-components/package.json +4 -0
- package/client-tmp/web-components/src/components/components.ts +18 -9
- package/client-tmp/web-components/src/layouts/default.ts +12 -1
- package/client-tmp/web-components/src/main/main.css +12 -0
- package/client-tmp/web-components/src/main/main.ts +1 -1
- package/client-tmp/web-components/src/routes/config.ts +5 -6
- package/client-tmp/web-components/src/styles/design-tokens.json +5 -1
- package/client-tmp/web-components/src/styles/typography.ts +6 -4
- package/package.json +1 -1
- package/server/settings.gradle.kts +0 -3
- package/client-tmp/react/lint-css.ts +0 -19
- package/client-tmp/react/vite.config.ts +0 -70
- /package/client-tmp/angular/src/app/store/{store.ts → foundation-store.ts} +0 -0
- /package/client-tmp/web-components/src/store/{store.ts → foundation-store.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
2
2
|
import type { FoundationRouter } from '@genesislcap/foundation-ui';
|
|
3
3
|
import { css, GenesisElementLayout, html } from '@genesislcap/web-core';
|
|
4
|
-
import type { Store } from '../store';
|
|
4
|
+
import type { Store } from '../store/foundation-store';
|
|
5
5
|
|
|
6
6
|
type ClientAppRouter = FoundationRouter & { store: Store };
|
|
7
7
|
|
|
@@ -40,6 +40,9 @@ export const defaultLayout = new GenesisElementLayout(
|
|
|
40
40
|
<div class="container">
|
|
41
41
|
${app.registerElementsTarget('layout-start')}
|
|
42
42
|
<foundation-header
|
|
43
|
+
{{#if headerLogoSrc}}
|
|
44
|
+
logo-src="{{headerLogoSrc}}"
|
|
45
|
+
{{/if}}
|
|
43
46
|
show-luminance-toggle-button
|
|
44
47
|
show-misc-toggle-button
|
|
45
48
|
:routeNavItems=${(x) => x.config.getNavItems()}
|
|
@@ -92,5 +95,13 @@ export const defaultLayout = new GenesisElementLayout(
|
|
|
92
95
|
rapid-flyout::part(content) {
|
|
93
96
|
height: 100%;
|
|
94
97
|
}
|
|
98
|
+
|
|
99
|
+
foundation-header::part(logo) {
|
|
100
|
+
max-width: 50px;
|
|
101
|
+
max-height: 24px;
|
|
102
|
+
width: auto;
|
|
103
|
+
height: auto;
|
|
104
|
+
object-fit: contain;
|
|
105
|
+
}
|
|
95
106
|
`.withBehaviors(app.registerStylesTarget('layout')),
|
|
96
107
|
);
|
|
@@ -15,3 +15,15 @@ foundation-router {
|
|
|
15
15
|
:not(:defined) {
|
|
16
16
|
visibility: hidden;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
{{#if fontData}}
|
|
20
|
+
{{#each fontData}}
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: "{{../fontFamily}}";
|
|
23
|
+
src: url("../../public/fonts/{{filename}}") format("{{format}}");
|
|
24
|
+
font-weight: {{weight}};
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-display: swap;
|
|
27
|
+
}
|
|
28
|
+
{{/each}}
|
|
29
|
+
{{/if}}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@genesislcap/web-core';
|
|
18
18
|
import * as Components from '../components';
|
|
19
19
|
import { MainRouterConfig } from '../routes';
|
|
20
|
-
import { Store, StoreEventDetailMap } from '../store';
|
|
20
|
+
import { Store, StoreEventDetailMap } from '../store/foundation-store';
|
|
21
21
|
import designTokens from '../styles/design-tokens.json';
|
|
22
22
|
{{#if FDC3.channels.length}}
|
|
23
23
|
import { listenToChannel, onFDC3Ready } from '../utils';
|
|
@@ -3,12 +3,12 @@ import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { FoundationRouterConfiguration } from '@genesislcap/foundation-ui';
|
|
4
4
|
import { GENESIS_SOCKET_URL, PUBLIC_PATH } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { defaultLayout, loginLayout } from '../layouts';
|
|
6
|
-
import { NotFound } from './not-found/not-found';
|
|
7
|
-
import { defaultNotPermittedRoute, NotPermitted } from './not-permitted/not-permitted';
|
|
8
|
-
import { LoginSettings } from './types';
|
|
9
6
|
{{#each routes}}
|
|
10
7
|
import { {{pascalCase this.name}} } from './{{kebabCase this.name}}/{{kebabCase this.name}}';
|
|
11
8
|
{{/each}}
|
|
9
|
+
import { NotFound } from './not-found/not-found';
|
|
10
|
+
import { defaultNotPermittedRoute, NotPermitted } from './not-permitted/not-permitted';
|
|
11
|
+
import { LoginSettings } from './types';
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line
|
|
14
14
|
declare var ENABLE_SSO: string;
|
|
@@ -46,9 +46,8 @@ export class MainRouterConfig extends FoundationRouterConfiguration<LoginSetting
|
|
|
46
46
|
name: 'login',
|
|
47
47
|
title: 'Login',
|
|
48
48
|
element: async () => {
|
|
49
|
-
const { configure, defaultAuthConfig } =
|
|
50
|
-
'@genesislcap/foundation-auth/config'
|
|
51
|
-
);
|
|
49
|
+
const { configure, defaultAuthConfig } =
|
|
50
|
+
await import('@genesislcap/foundation-auth/config');
|
|
52
51
|
return configure({
|
|
53
52
|
omitRoutes: ['request-account', 'forgot-password'],
|
|
54
53
|
fields: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"fontFamily": {
|
|
14
14
|
"bodyFont": {
|
|
15
|
-
"$value": "Roboto, \"Segoe UI\", Arial, Helvetica, sans-serif",
|
|
15
|
+
"$value": "{{#if fontFamily}}{{fontFamily}}, {{/if}}Roboto, \"Segoe UI\", Arial, Helvetica, sans-serif",
|
|
16
16
|
"$type": "fontFamily"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"$value": 0,
|
|
38
38
|
"$type": "number"
|
|
39
39
|
},
|
|
40
|
+
"baseHeightMultiplier": {
|
|
41
|
+
"$value": 10,
|
|
42
|
+
"$type": "number"
|
|
43
|
+
},
|
|
40
44
|
"borderRadius": {
|
|
41
45
|
"$value": 4,
|
|
42
46
|
"$type": "number"
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
|
1
|
+
const mixinFont = (style = 'normal', weight = 'normal') => `
|
|
2
|
+
font-family: {{#if fontFamily}}"{{fontFamily}}", {{/if}}"Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
|
3
3
|
font-style: ${style};
|
|
4
4
|
font-weight: ${weight};
|
|
5
5
|
`;
|
|
6
6
|
|
|
7
7
|
export const stylesFontFaces = `
|
|
8
|
+
{{#unless fontFamily}}
|
|
8
9
|
@font-face {
|
|
9
10
|
font-family: Segoe UI;
|
|
10
11
|
font-weight: 300;
|
|
11
12
|
src: local("Segoe UI Semilight"), local("Segoe UI");
|
|
12
13
|
}
|
|
14
|
+
{{/unless}}
|
|
13
15
|
|
|
14
16
|
* {
|
|
15
|
-
${
|
|
17
|
+
${mixinFont()}
|
|
16
18
|
}
|
|
17
19
|
`;
|
|
18
20
|
|
|
19
|
-
export const mixinCardTitle =
|
|
21
|
+
export const mixinCardTitle = mixinFont('normal', 'bold');
|
|
20
22
|
|
|
21
23
|
export const stylesHeaders = `
|
|
22
24
|
h1, h2, h3, h4, h5, h6 {
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'child_process';
|
|
2
|
-
import glob from 'glob';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
|
|
5
|
-
const cssFiles: string[] = glob.sync(path.join(__dirname, '**/*.css'));
|
|
6
|
-
|
|
7
|
-
if (cssFiles.length === 0) {
|
|
8
|
-
console.log('No CSS files found.');
|
|
9
|
-
process.exit(0);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const command: string = `genx lint -l stylelint ${cssFiles.join(' ')}`;
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
execSync(command, { stdio: 'inherit' });
|
|
16
|
-
} catch (error) {
|
|
17
|
-
console.error('Error running stylelint:', error);
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import { resolve, dirname } from 'path';
|
|
3
|
-
import { defineConfig, UserConfig } from 'vite';
|
|
4
|
-
import react from '@vitejs/plugin-react';
|
|
5
|
-
import visualizer from 'rollup-plugin-visualizer';
|
|
6
|
-
import tsconfigPaths from 'vite-plugin-tsconfig-paths';
|
|
7
|
-
|
|
8
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
|
|
10
|
-
export default defineConfig(({ mode }: { mode: string }): UserConfig => {
|
|
11
|
-
const https: boolean = process.env.HTTPS === 'true';
|
|
12
|
-
const open: boolean = !(process.env.NO_OPEN === 'true');
|
|
13
|
-
const environmentFile = mode === 'production'
|
|
14
|
-
? 'environment.prod.ts'
|
|
15
|
-
: 'environment.ts';
|
|
16
|
-
const environmentPath = resolve(__dirname, 'src/environments', environmentFile);
|
|
17
|
-
|
|
18
|
-
const config: UserConfig = {
|
|
19
|
-
define: {
|
|
20
|
-
BUILDER: JSON.stringify('vite'),
|
|
21
|
-
},
|
|
22
|
-
server: {
|
|
23
|
-
https,
|
|
24
|
-
open,
|
|
25
|
-
fs: {
|
|
26
|
-
strict: false,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
plugins: [
|
|
30
|
-
react(),
|
|
31
|
-
tsconfigPaths(),
|
|
32
|
-
],
|
|
33
|
-
build: {
|
|
34
|
-
rollupOptions: {
|
|
35
|
-
plugins: [],
|
|
36
|
-
treeshake: false,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
resolve: {
|
|
40
|
-
alias: {
|
|
41
|
-
'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
|
|
42
|
-
'@': resolve(__dirname, 'src'),
|
|
43
|
-
'@environment': environmentPath,
|
|
44
|
-
'pbc': resolve(__dirname, 'src/pbc'),
|
|
45
|
-
},
|
|
46
|
-
preserveSymlinks: true,
|
|
47
|
-
},
|
|
48
|
-
esbuild: {
|
|
49
|
-
tsconfigRaw: {
|
|
50
|
-
compilerOptions: {
|
|
51
|
-
experimentalDecorators: true,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
if (mode === 'stats') {
|
|
58
|
-
config.build.rollupOptions.plugins.push(
|
|
59
|
-
visualizer({
|
|
60
|
-
template: 'raw-data',
|
|
61
|
-
filename: 'stats.json',
|
|
62
|
-
open: true,
|
|
63
|
-
gzipSize: true,
|
|
64
|
-
brotliSize: true,
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return config;
|
|
70
|
-
});
|
|
File without changes
|
|
File without changes
|