@genesislcap/blank-app-seed 3.10.6 → 3.11.0-prerelease.2
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/package.json +1 -1
- package/.genx/templates/chart.hbs +2 -2
- package/.genx/templates/entityManager.hbs +1 -0
- package/.genx/templates/form.hbs +1 -0
- package/.genx/templates/grid.hbs +2 -2
- package/.genx/templates/gridLayout.hbs +14 -14
- package/.genx/templates/horizontalLayout.hbs +4 -4
- package/.genx/templates/route.hbs +2 -2
- package/.genx/templates/route.styles.hbs +1 -1
- package/.genx/templates/route.template.hbs +3 -3
- package/.genx/templates/tabsLayout.hbs +4 -4
- package/.genx/tests/fixtures/testapp/client/src/routes/home/home.template.ts +1 -1
- package/.github/workflows/build.yml +1 -1
- package/.github/workflows/release.yml +12 -1
- package/.releaserc +6 -0
- package/CHANGELOG.md +24 -2
- package/README.md +1 -2
- package/client/README.md +13 -2
- package/client/package.json +12 -8
- package/client/src/components/components.ts +36 -48
- package/client/src/layouts/default.ts +8 -8
- package/client/src/main/main.styles.ts +4 -3
- package/client/src/main/main.template.ts +4 -5
- package/client/src/main/main.ts +13 -5
- package/client/src/routes/config.ts +2 -3
- package/client/src/routes/not-found/not-found.styles.ts +1 -1
- package/client/src/routes/not-found/not-found.template.ts +1 -1
- package/client/src/routes/not-found/not-found.ts +2 -2
- package/client/src/styles/styles.ts +4 -4
- package/client/src/types.ts +1 -1
- package/client/src/typings.d.ts +1 -0
- package/client/tsconfig.json +1 -1
- package/package.json +2 -1
package/.genx/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
1
|
+
<rapid-g2plot-chart
|
|
2
2
|
type="{{ config.type }}"
|
|
3
3
|
:config="${(x) => ({
|
|
4
4
|
{{#ifEquals config.type "pie"}}
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
resourceName="{{ config.resourceName }}"
|
|
16
16
|
server-fields="{{ config.xField }} {{ config.yField }}"
|
|
17
17
|
></chart-datasource>
|
|
18
|
-
</
|
|
18
|
+
</rapid-g2plot-chart>
|
package/.genx/templates/form.hbs
CHANGED
package/.genx/templates/grid.hbs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
1
|
+
<rapid-layout-region type="horizontal">
|
|
2
|
+
<rapid-layout-region type="vertical">
|
|
3
3
|
{{#each route.tiles}}
|
|
4
4
|
{{#ifEquals @index 0}}
|
|
5
|
-
<
|
|
5
|
+
<rapid-layout-item title="{{../title}}">
|
|
6
6
|
{{> (lookup ../this 'type') ../this}}
|
|
7
|
-
</
|
|
7
|
+
</rapid-layout-item>
|
|
8
8
|
{{/ifEquals}}
|
|
9
9
|
{{#ifEquals @index 1}}
|
|
10
|
-
<
|
|
10
|
+
<rapid-layout-item title="{{../title}}">
|
|
11
11
|
{{> (lookup ../this 'type') ../this}}
|
|
12
|
-
</
|
|
12
|
+
</rapid-layout-item>
|
|
13
13
|
{{/ifEquals}}
|
|
14
14
|
{{/each}}
|
|
15
|
-
</
|
|
16
|
-
<
|
|
15
|
+
</rapid-layout-region>
|
|
16
|
+
<rapid-layout-region type="vertical">
|
|
17
17
|
{{#each route.tiles}}
|
|
18
18
|
{{#ifEquals @index 2}}
|
|
19
|
-
<
|
|
19
|
+
<rapid-layout-item title="{{../title}}">
|
|
20
20
|
{{> (lookup ../this 'type') ../this}}
|
|
21
|
-
</
|
|
21
|
+
</rapid-layout-item>
|
|
22
22
|
{{/ifEquals}}
|
|
23
23
|
{{#ifEquals @index 3}}
|
|
24
|
-
<
|
|
24
|
+
<rapid-layout-item title="{{../title}}">
|
|
25
25
|
{{> (lookup ../this 'type') ../this}}
|
|
26
|
-
</
|
|
26
|
+
</rapid-layout-item>
|
|
27
27
|
{{/ifEquals}}
|
|
28
28
|
{{/each}}
|
|
29
|
-
</
|
|
30
|
-
</
|
|
29
|
+
</rapid-layout-region>
|
|
30
|
+
</rapid-layout-region>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<
|
|
1
|
+
<rapid-layout-region>
|
|
2
2
|
{{#each route.tiles}}
|
|
3
|
-
<
|
|
3
|
+
<rapid-layout-item title="{{this.title}}">
|
|
4
4
|
{{> (lookup . 'type') }}
|
|
5
|
-
</
|
|
5
|
+
</rapid-layout-item>
|
|
6
6
|
{{/each}}
|
|
7
|
-
</
|
|
7
|
+
</rapid-layout-region>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { customElement,
|
|
1
|
+
import { customElement, GenesisElement } from '@genesislcap/web-core';
|
|
2
2
|
import { {{pascalCase route.name}}Styles as styles } from './{{kebabCase route.name}}.styles';
|
|
3
3
|
import { {{pascalCase route.name}}Template as template } from './{{kebabCase route.name}}.template';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import { {{pascalCase route.name}}Template as template } from './{{kebabCase rou
|
|
|
7
7
|
template,
|
|
8
8
|
styles,
|
|
9
9
|
})
|
|
10
|
-
export class {{pascalCase route.name}} extends
|
|
10
|
+
export class {{pascalCase route.name}} extends GenesisElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
13
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { html } from '@
|
|
1
|
+
import { html } from '@genesislcap/web-core';
|
|
2
2
|
import { getDateFormatter, getNumberFormatter{{#if route.FDC3EventHandlersEnabled}}, sendEventOnChannel{{/if}} } from '../../utils';
|
|
3
3
|
import type { {{pascalCase route.name}} } from './{{kebabCase route.name}}';
|
|
4
4
|
|
|
5
5
|
export const {{pascalCase route.name}}Template = html<{{pascalCase route.name}}>`
|
|
6
6
|
{{#if route.tiles}}
|
|
7
|
-
<
|
|
7
|
+
<rapid-layout auto-save-key="{{route.layoutKey}}">
|
|
8
8
|
{{> (lookup ./route 'layoutType') }}
|
|
9
|
-
</
|
|
9
|
+
</rapid-layout>
|
|
10
10
|
{{else}}
|
|
11
11
|
<!-- insert template code here -->
|
|
12
12
|
Welcome to {{sentenceCase route.name}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<
|
|
1
|
+
<rapid-layout-region type="tabs">
|
|
2
2
|
{{#each route.tiles}}
|
|
3
|
-
<
|
|
3
|
+
<rapid-layout-item title="{{this.title}}">
|
|
4
4
|
{{> (lookup . 'type') }}
|
|
5
|
-
</
|
|
5
|
+
</rapid-layout-item>
|
|
6
6
|
{{/each}}
|
|
7
|
-
</
|
|
7
|
+
</rapid-layout-region>
|
|
@@ -2,7 +2,7 @@ name: Release
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [main,prerelease]
|
|
5
|
+
branches: [main, prerelease]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
release:
|
|
@@ -22,9 +22,19 @@ jobs:
|
|
|
22
22
|
env:
|
|
23
23
|
GH_TOKEN: ${{secrets.GH_USER_TOKEN}}
|
|
24
24
|
run: |
|
|
25
|
+
touch /tmp/dist-tag # create a blank file, so it's always there even if we don't do a release
|
|
25
26
|
npm install
|
|
26
27
|
npm run release
|
|
27
28
|
|
|
29
|
+
- name: Set dist tag
|
|
30
|
+
id: dist-tag
|
|
31
|
+
run: |
|
|
32
|
+
{
|
|
33
|
+
echo 'DIST_TAG<<EOF'
|
|
34
|
+
cat /tmp/dist-tag
|
|
35
|
+
echo EOF
|
|
36
|
+
} >> "$GITHUB_OUTPUT"
|
|
37
|
+
|
|
28
38
|
- name: Generate .npmignore
|
|
29
39
|
run: cp .gitignore .npmignore && echo '!.gitignore' >> .npmignore && cat .npmignore
|
|
30
40
|
|
|
@@ -35,4 +45,5 @@ jobs:
|
|
|
35
45
|
uses: JS-DevTools/npm-publish@v3
|
|
36
46
|
with:
|
|
37
47
|
token: ${{secrets.NPM_TOKEN}}
|
|
48
|
+
tag: ${{ steps.dist-tag.outputs.DIST_TAG }}
|
|
38
49
|
|
package/.releaserc
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [3.
|
|
3
|
+
## [3.11.0-prerelease.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.11.0-prerelease.1...v3.11.0-prerelease.2) (2024-05-23)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
* ability to set position in search-bar GENC-498 (#
|
|
8
|
+
* ability to set position in search-bar - prerelease GENC-498 (#228) 1f3ba84
|
|
9
|
+
|
|
10
|
+
## [3.11.0-prerelease.1](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.6-prerelease.2...v3.11.0-prerelease.1) (2024-05-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* rapid design system and web-core prelim [FUI-1948](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/1948) (#210) 75f4d78
|
|
16
|
+
|
|
17
|
+
## [3.10.6-prerelease.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.6-prerelease.1...v3.10.6-prerelease.2) (2024-05-23)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* populate dist tag correctly GENC-511 (#224) a34021b
|
|
23
|
+
|
|
24
|
+
## [3.10.6-prerelease.1](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.5...v3.10.6-prerelease.1) (2024-05-23)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* build config update GENC-511 (#223) 3b55d54
|
|
30
|
+
* remove reference to FAST GENC-511 (#222) f5adba4
|
|
9
31
|
|
|
10
32
|
## [3.10.5](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.4...v3.10.5) (2024-05-22)
|
|
11
33
|
|
package/README.md
CHANGED
|
@@ -57,8 +57,7 @@ When first opening the project, if you receive a notification from IntelliJ IDE
|
|
|
57
57
|
### Web Client
|
|
58
58
|
|
|
59
59
|
The Web client for this project can be found [here](./client/README.md). It is built using Genesis's next
|
|
60
|
-
generation web development framework, which is based on Web Components.
|
|
61
|
-
set is built on top of [Microsoft FAST](https://www.fast.design/docs/introduction/).
|
|
60
|
+
generation web development framework, which is based on Web Components.
|
|
62
61
|
|
|
63
62
|
# License
|
|
64
63
|
|
package/client/README.md
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
## Frontend stack
|
|
4
4
|
|
|
5
5
|
Genesis components are standards-based Web Components, making them compatible with almost any modern web framework.
|
|
6
|
-
Our state-of-the-art design system and component set is built on top of
|
|
7
|
-
[Microsoft FAST](https://www.fast.design/docs/introduction/).
|
|
8
6
|
|
|
9
7
|
# Development
|
|
10
8
|
|
|
@@ -46,6 +44,19 @@ Baseline task combines `clean` and `bootstrap` tasks into a single command:
|
|
|
46
44
|
npm run baseline
|
|
47
45
|
```
|
|
48
46
|
|
|
47
|
+
## Styling
|
|
48
|
+
|
|
49
|
+
Genesis components are registered with a [Design System](https://learn.genesis.global/docs/web/design-systems/introduction/),
|
|
50
|
+
and the default system is named `rapid`. Design systems are highly configurable. You can configure them by importing and
|
|
51
|
+
modifying the tokens directly, or by using our [Design System Configuration](https://learn.genesis.global/docs/web/design-systems/preview/)
|
|
52
|
+
tool in the context of your application.
|
|
53
|
+
|
|
54
|
+
Simply run the application, configure the design system, select Save Changes, and hit Save on popup, then restart your application.
|
|
55
|
+
|
|
56
|
+
```shell
|
|
57
|
+
npm run dsconfig
|
|
58
|
+
```
|
|
59
|
+
|
|
49
60
|
## Custom Elements IntelliSense
|
|
50
61
|
|
|
51
62
|
Using any modern editor, you'll receive IntelliSense help while writing TypeScript code while working in the repo. However, you'll also likely be writing a lot of html markup inside of "html\`\`" blocks.
|
package/client/package.json
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"federation": {
|
|
17
17
|
"remotes": [
|
|
18
|
-
"@genesislcap/foundation-zero"
|
|
18
|
+
"@genesislcap/foundation-zero",
|
|
19
|
+
"@genesislcap/rapid-design-system"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -99,6 +100,7 @@
|
|
|
99
100
|
"@genesislcap/foundation-layout": "{{versions.UI}}",
|
|
100
101
|
"@genesislcap/foundation-logger": "{{versions.UI}}",
|
|
101
102
|
"@genesislcap/foundation-login": "{{versions.UI}}",
|
|
103
|
+
"@genesislcap/foundation-notifications": "{{versions.UI}}",
|
|
102
104
|
"@genesislcap/foundation-shell": "{{versions.UI}}",
|
|
103
105
|
"@genesislcap/foundation-store": "{{versions.UI}}",
|
|
104
106
|
"@genesislcap/foundation-ui": "{{versions.UI}}",
|
|
@@ -106,11 +108,9 @@
|
|
|
106
108
|
"@genesislcap/foundation-zero": "{{versions.UI}}",
|
|
107
109
|
"@genesislcap/foundation-zero-grid-pro": "{{versions.UI}}",
|
|
108
110
|
"@genesislcap/g2plot-chart": "{{versions.UI}}",
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"@
|
|
112
|
-
"@microsoft/fast-router": "^0.4.2",
|
|
113
|
-
"@microsoft/fast-web-utilities": "^5.1.0",
|
|
111
|
+
"@genesislcap/rapid-design-system": "{{versions.UI}}",
|
|
112
|
+
"@genesislcap/rapid-grid-pro": "{{versions.UI}}",
|
|
113
|
+
"@genesislcap/web-core": "{{versions.UI}}",
|
|
114
114
|
"numeral": "2.0.6",
|
|
115
115
|
"rxjs": "^7.5.4",
|
|
116
116
|
"tslib": "^2.3.1"
|
|
@@ -125,12 +125,16 @@
|
|
|
125
125
|
"@genesislcap/foundation-layout": "{{versions.UI}}",
|
|
126
126
|
"@genesislcap/foundation-logger": "{{versions.UI}}",
|
|
127
127
|
"@genesislcap/foundation-login": "{{versions.UI}}",
|
|
128
|
+
"@genesislcap/foundation-notifications": "{{versions.UI}}",
|
|
128
129
|
"@genesislcap/foundation-shell": "{{versions.UI}}",
|
|
129
130
|
"@genesislcap/foundation-store": "{{versions.UI}}",
|
|
130
131
|
"@genesislcap/foundation-ui": "{{versions.UI}}",
|
|
131
132
|
"@genesislcap/foundation-utils": "{{versions.UI}}",
|
|
132
133
|
"@genesislcap/foundation-zero": "{{versions.UI}}",
|
|
133
134
|
"@genesislcap/foundation-zero-grid-pro": "{{versions.UI}}",
|
|
134
|
-
"@genesislcap/g2plot-chart": "{{versions.UI}}"
|
|
135
|
-
}
|
|
135
|
+
"@genesislcap/g2plot-chart": "{{versions.UI}}",
|
|
136
|
+
"@genesislcap/rapid-design-system": "{{versions.UI}}",
|
|
137
|
+
"@genesislcap/rapid-grid-pro": "{{versions.UI}}",
|
|
138
|
+
"@genesislcap/web-core": "{{versions.UI}}"
|
|
139
|
+
}
|
|
136
140
|
}
|
|
@@ -1,75 +1,63 @@
|
|
|
1
1
|
import { EntityManagement } from '@genesislcap/foundation-entity-management';
|
|
2
2
|
import { Form } from '@genesislcap/foundation-forms';
|
|
3
|
-
import { Navigation } from '@genesislcap/foundation-header';
|
|
4
3
|
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
5
4
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
6
5
|
import { FoundationRouter } from '@genesislcap/foundation-ui';
|
|
7
|
-
import
|
|
8
|
-
assureDesignSystem,
|
|
9
|
-
DesignSystemModule,
|
|
10
|
-
ResourceType,
|
|
11
|
-
} from '@genesislcap/foundation-utils';
|
|
6
|
+
import * as zeroDesignSystem from '@genesislcap/foundation-zero';
|
|
12
7
|
import { zeroGridComponents } from '@genesislcap/foundation-zero-grid-pro';
|
|
13
8
|
import { g2plotChartsComponents } from '@genesislcap/g2plot-chart';
|
|
14
|
-
import
|
|
9
|
+
import * as rapidDesignSystem from '@genesislcap/rapid-design-system';
|
|
10
|
+
import { rapidGridComponents } from '@genesislcap/rapid-grid-pro';
|
|
15
11
|
|
|
16
12
|
/**
|
|
17
13
|
* Ensure tree shaking doesn't remove these.
|
|
18
14
|
*/
|
|
19
15
|
FoundationRouter;
|
|
20
|
-
Navigation;
|
|
21
16
|
EntityManagement;
|
|
22
17
|
Form;
|
|
23
18
|
|
|
24
|
-
/**
|
|
25
|
-
* zeroDesignSystemImport.
|
|
26
|
-
* @remarks
|
|
27
|
-
* Attempts to use a module federation version of zero before falling back to the version that was bundled with the app.
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
async function zeroDesignSystemImport(): Promise<DesignSystemModule> {
|
|
31
|
-
let module: DesignSystemModule;
|
|
32
|
-
let type: ResourceType = ResourceType.remote;
|
|
33
|
-
try {
|
|
34
|
-
module = await import(
|
|
35
|
-
/* webpackChunkName: "foundation-zero" */
|
|
36
|
-
'foundationZero/ZeroDesignSystem'
|
|
37
|
-
);
|
|
38
|
-
return assureDesignSystem(module);
|
|
39
|
-
} catch (e) {
|
|
40
|
-
logger.info(
|
|
41
|
-
`Please note remoteEntry.js load errors are expected if module federated dependencies are offline. Falling back to locally bundled versions.`,
|
|
42
|
-
);
|
|
43
|
-
type = ResourceType.local;
|
|
44
|
-
module = await import(
|
|
45
|
-
/* webpackChunkName: "foundation-zero" */
|
|
46
|
-
'@genesislcap/foundation-zero'
|
|
47
|
-
);
|
|
48
|
-
return assureDesignSystem(module);
|
|
49
|
-
} finally {
|
|
50
|
-
logger.debug(`Using '${type}' version of foundation-zero`);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
19
|
/**
|
|
55
20
|
* registerComponents.
|
|
56
21
|
* @public
|
|
57
22
|
*/
|
|
58
23
|
export async function registerComponents() {
|
|
59
|
-
const
|
|
60
|
-
const { provideDesignSystem, baseComponents } = designSystem;
|
|
61
|
-
|
|
24
|
+
const { configure: configureHeader } = await import('@genesislcap/foundation-header/config');
|
|
62
25
|
/**
|
|
63
26
|
* Register any PBC components with the design system
|
|
64
27
|
*/
|
|
65
28
|
getApp().registerComponents({
|
|
66
|
-
designSystem,
|
|
29
|
+
designSystem: rapidDesignSystem,
|
|
67
30
|
});
|
|
68
31
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
32
|
+
rapidDesignSystem
|
|
33
|
+
.provideDesignSystem()
|
|
34
|
+
.register(
|
|
35
|
+
rapidDesignSystem.baseComponents,
|
|
36
|
+
rapidGridComponents,
|
|
37
|
+
g2plotChartsComponents,
|
|
38
|
+
foundationLayoutComponents,
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
configureHeader({
|
|
42
|
+
templateOptions: {
|
|
43
|
+
icon: 'rapid-icon',
|
|
44
|
+
button: 'rapid-button',
|
|
45
|
+
connectionIndicator: 'rapid-connection-indicator',
|
|
46
|
+
select: 'rapid-select',
|
|
47
|
+
option: 'rapid-option',
|
|
48
|
+
flyout: 'rapid-flyout',
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Still required while we transition all PBCs to rapid. Remove when complete.
|
|
54
|
+
*/
|
|
55
|
+
zeroDesignSystem
|
|
56
|
+
.provideDesignSystem()
|
|
57
|
+
.register(
|
|
58
|
+
zeroDesignSystem.baseComponents,
|
|
59
|
+
zeroGridComponents,
|
|
60
|
+
g2plotChartsComponents,
|
|
61
|
+
foundationLayoutComponents,
|
|
62
|
+
);
|
|
75
63
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
2
2
|
import type { FoundationRouter } from '@genesislcap/foundation-ui';
|
|
3
|
-
import { css, html } from '@
|
|
4
|
-
import { FASTElementLayout } from '@microsoft/fast-router';
|
|
3
|
+
import { css, GenesisElementLayout, html } from '@genesislcap/web-core';
|
|
5
4
|
import type { Store } from '../store';
|
|
6
5
|
|
|
7
6
|
type ClientAppRouter = FoundationRouter & { store: Store };
|
|
@@ -25,7 +24,7 @@ const baseLayoutCss = css`
|
|
|
25
24
|
}
|
|
26
25
|
`;
|
|
27
26
|
|
|
28
|
-
export const loginLayout = new
|
|
27
|
+
export const loginLayout = new GenesisElementLayout(
|
|
29
28
|
html<ClientAppRouter>`
|
|
30
29
|
<div class="container">
|
|
31
30
|
<div class="content">
|
|
@@ -36,7 +35,7 @@ export const loginLayout = new FASTElementLayout(
|
|
|
36
35
|
baseLayoutCss,
|
|
37
36
|
);
|
|
38
37
|
|
|
39
|
-
export const defaultLayout = new
|
|
38
|
+
export const defaultLayout = new GenesisElementLayout(
|
|
40
39
|
html<ClientAppRouter>`
|
|
41
40
|
<div class="container">
|
|
42
41
|
${app.registerElementsTarget('layout-start')}
|
|
@@ -57,7 +56,7 @@ export const defaultLayout = new FASTElementLayout(
|
|
|
57
56
|
${baseLayoutCss}
|
|
58
57
|
|
|
59
58
|
.content {
|
|
60
|
-
padding-top:
|
|
59
|
+
padding-top: var(--nav-height);
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
foundation-header {
|
|
@@ -66,11 +65,12 @@ export const defaultLayout = new FASTElementLayout(
|
|
|
66
65
|
top: 0;
|
|
67
66
|
left: 0;
|
|
68
67
|
width: 100%;
|
|
68
|
+
height: var(--nav-height);
|
|
69
69
|
align-items: center;
|
|
70
70
|
border: none;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
rapid-tree-item rapid-icon {
|
|
74
74
|
color: #879ba6;
|
|
75
75
|
padding-right: 10px;
|
|
76
76
|
}
|
|
@@ -83,13 +83,13 @@ export const defaultLayout = new FASTElementLayout(
|
|
|
83
83
|
position: relative;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
rapid-flyout::part(flyout) {
|
|
87
87
|
width: 40%;
|
|
88
88
|
min-width: 320px;
|
|
89
89
|
padding: 0;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
rapid-flyout::part(content) {
|
|
93
93
|
height: 100%;
|
|
94
94
|
}
|
|
95
95
|
`.withBehaviors(app.registerStylesTarget('layout')),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
2
|
-
import { css } from '@
|
|
2
|
+
import { css } from '@genesislcap/web-core';
|
|
3
3
|
import { stylesFontFaces } from '../styles';
|
|
4
4
|
import './main.css';
|
|
5
5
|
|
|
@@ -8,15 +8,16 @@ export const MainStyles = css`
|
|
|
8
8
|
:host {
|
|
9
9
|
contain: content;
|
|
10
10
|
|
|
11
|
-
--nav-height:
|
|
11
|
+
--nav-height: 39px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host,
|
|
15
|
-
|
|
15
|
+
rapid-design-system-provider,
|
|
16
16
|
.dynamic-template,
|
|
17
17
|
foundation-router {
|
|
18
18
|
display: flex;
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
|
+
background-color: var(--neutral-layer-4);
|
|
21
22
|
}
|
|
22
23
|
`.withBehaviors(getApp().registerStylesTarget('main'));
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { LAYOUT_POPOUT_CONTAINER_CLASS } from '@genesislcap/foundation-layout';
|
|
2
|
-
import { html, ref } from '@
|
|
3
|
-
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import { html, ref, ViewTemplate } from '@genesislcap/web-core';
|
|
4
3
|
import type { MainApplication } from './main';
|
|
5
4
|
|
|
6
5
|
export const DynamicTemplate: ViewTemplate<MainApplication> = html`
|
|
7
6
|
<template>
|
|
8
|
-
<
|
|
7
|
+
<rapid-design-system-provider ${ref('provider')} class="${LAYOUT_POPOUT_CONTAINER_CLASS}">
|
|
9
8
|
<div class="dynamic-template">${(x) => x.selectTemplate()}</div>
|
|
10
|
-
</
|
|
9
|
+
</rapid-design-system-provider>
|
|
11
10
|
</template>
|
|
12
11
|
`;
|
|
13
12
|
|
|
14
13
|
export const LoadingTemplate: ViewTemplate<MainApplication> = html`
|
|
15
|
-
<
|
|
14
|
+
<rapid-progress-ring></rapid-progress-ring>
|
|
16
15
|
`;
|
|
17
16
|
|
|
18
17
|
export const MainTemplate: ViewTemplate<MainApplication> = html`
|
package/client/src/main/main.ts
CHANGED
|
@@ -3,10 +3,18 @@ import { EventEmitter } from '@genesislcap/foundation-events';
|
|
|
3
3
|
import { App } from '@genesislcap/foundation-shell/app';
|
|
4
4
|
import { importPBCAssets } from '@genesislcap/foundation-shell/pbc';
|
|
5
5
|
import { configureDesignSystem } from '@genesislcap/foundation-ui';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import {
|
|
7
|
+
baseLayerLuminance,
|
|
8
|
+
customElement,
|
|
9
|
+
Container,
|
|
10
|
+
DefaultRouteRecognizer,
|
|
11
|
+
DOM,
|
|
12
|
+
GenesisElement,
|
|
13
|
+
inject,
|
|
14
|
+
observable,
|
|
15
|
+
Registration,
|
|
16
|
+
StandardLuminance,
|
|
17
|
+
} from '@genesislcap/web-core';
|
|
10
18
|
import * as Components from '../components';
|
|
11
19
|
import { MainRouterConfig } from '../routes';
|
|
12
20
|
import { Store, StoreEventDetailMap } from '../store';
|
|
@@ -28,7 +36,7 @@ const name = '{{rootElement}}';
|
|
|
28
36
|
template,
|
|
29
37
|
styles,
|
|
30
38
|
})
|
|
31
|
-
export class MainApplication extends EventEmitter<StoreEventDetailMap>(
|
|
39
|
+
export class MainApplication extends EventEmitter<StoreEventDetailMap>(GenesisElement) {
|
|
32
40
|
@App app: App;
|
|
33
41
|
@Connect connect!: Connect;
|
|
34
42
|
@Container container!: Container;
|
|
@@ -5,13 +5,12 @@ import {
|
|
|
5
5
|
Settings as LoginSettings,
|
|
6
6
|
} from '@genesislcap/foundation-login';
|
|
7
7
|
import { FoundationRouterConfiguration } from '@genesislcap/foundation-ui';
|
|
8
|
-
import { optional } from '@
|
|
9
|
-
import { Route } from '@microsoft/fast-router';
|
|
8
|
+
import { optional, Route } from '@genesislcap/web-core';
|
|
10
9
|
import { defaultLayout, loginLayout } from '../layouts';
|
|
11
|
-
import { NotFound } from './not-found/not-found';
|
|
12
10
|
{{#each routes}}
|
|
13
11
|
import { {{pascalCase this.name}} } from './{{kebabCase this.name}}/{{kebabCase this.name}}';
|
|
14
12
|
{{/each}}
|
|
13
|
+
import { NotFound } from './not-found/not-found';
|
|
15
14
|
|
|
16
15
|
// eslint-disable-next-line
|
|
17
16
|
declare var ENABLE_SSO: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { customElement,
|
|
1
|
+
import { customElement, GenesisElement } from '@genesislcap/web-core';
|
|
2
2
|
import { logger } from '../../utils';
|
|
3
3
|
import { NotFoundStyles as styles } from './not-found.styles';
|
|
4
4
|
import { NotFoundTemplate as template } from './not-found.template';
|
|
@@ -8,7 +8,7 @@ import { NotFoundTemplate as template } from './not-found.template';
|
|
|
8
8
|
template,
|
|
9
9
|
styles,
|
|
10
10
|
})
|
|
11
|
-
export class NotFound extends
|
|
11
|
+
export class NotFound extends GenesisElement {
|
|
12
12
|
public connectedCallback() {
|
|
13
13
|
super.connectedCallback();
|
|
14
14
|
logger.debug(`${name} is now connected to the DOM`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
2
|
import { mixinCardTitle } from './typography';
|
|
3
3
|
|
|
4
4
|
export const stylesCardHeading = css`
|
|
@@ -22,9 +22,9 @@ export const mixinCardStyles = `
|
|
|
22
22
|
/**
|
|
23
23
|
* Temp as these parts are being removed from foundation-ui
|
|
24
24
|
*/
|
|
25
|
-
export const
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
export const hideRapidButtonParts = `
|
|
26
|
+
rapid-button::part(info1),
|
|
27
|
+
rapid-button::part(info2) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
30
|
`;
|
package/client/src/types.ts
CHANGED
package/client/src/typings.d.ts
CHANGED
package/client/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/blank-app-seed",
|
|
3
3
|
"description": "Genesis Blank App Seed",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.11.0-prerelease.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"release": "semantic-release"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@semantic-release/changelog": "^6.0.3",
|
|
11
|
+
"@semantic-release/exec": "^6.0.3",
|
|
11
12
|
"@semantic-release/git": "^10.0.1",
|
|
12
13
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
|
13
14
|
"semantic-release": "^21.0.7",
|