@genesislcap/blank-app-seed 3.24.0 → 3.25.1
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/angular/grid.hbs +9 -7
- package/.genx/templates/angular/route.hbs +8 -0
- package/.genx/templates/angular/route.template.hbs +1 -1
- package/.genx/utils/generateTile.js +135 -100
- package/.genx/utils/registerPartials.js +1 -6
- package/.genx/versions.json +1 -1
- package/CHANGELOG.md +14 -0
- package/client-tmp/angular/angular.json +1 -0
- package/client-tmp/angular/package.json +3 -0
- package/client-tmp/angular/src/app/app.component.ts +23 -2
- package/client-tmp/angular/src/app/share/foundation-login.ts +5 -0
- package/client-tmp/angular/src/app/utils/fdc3.ts +32 -0
- package/client-tmp/angular/src/app/utils/index.ts +1 -0
- package/client-tmp/angular/src/assets/logo.svg +10 -0
- package/client-tmp/angular/src/declaration.d.ts +5 -0
- package/client-tmp/react/package.json +0 -1
- package/client-tmp/react/src/layouts/blank/BlankLayout.tsx +2 -2
- package/package.json +1 -1
- package/client-tmp/react/src/utils/navigation.ts +0 -5
package/.genx/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
<section style="height: 100%; width: 100%;">
|
|
2
|
-
<ng-container *ngIf="hasUserPermission('{{config.permissions.viewRight}}'); else notPermitted{{ config.index }}">
|
|
3
1
|
<rapid-grid-pro
|
|
4
2
|
header-case-type="capitalCase"
|
|
5
3
|
only-template-col-defs
|
|
6
4
|
enable-row-flashing
|
|
7
5
|
enable-cell-flashing
|
|
6
|
+
[ngStyle]="{ display: hasUserPermission('{{config.permissions.viewRight}}') ? 'block' : 'none' }"
|
|
8
7
|
>
|
|
9
8
|
<grid-pro-genesis-datasource
|
|
10
9
|
resource-name="{{config.resourceName}}"
|
|
@@ -22,13 +21,16 @@
|
|
|
22
21
|
<grid-pro-column *ngFor="let columnDef of tile{{ config.index }}.gridOptions?.columnDefs" [definition]="columnDef"></grid-pro-column>
|
|
23
22
|
{{/if}}
|
|
24
23
|
</rapid-grid-pro>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
<section
|
|
25
|
+
[ngStyle]="{
|
|
26
|
+
height: '100%',
|
|
27
|
+
width: '100%',
|
|
28
|
+
display: !hasUserPermission('{{config.permissions.viewRight}}') ? 'block' : 'none'
|
|
29
|
+
}"
|
|
30
|
+
>
|
|
28
31
|
<app-error-message
|
|
29
32
|
style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
|
|
30
33
|
elementType="h3"
|
|
31
34
|
message="You do not have access to view this component.">
|
|
32
35
|
</app-error-message>
|
|
33
|
-
</
|
|
34
|
-
</section>
|
|
36
|
+
</section>
|
|
@@ -4,6 +4,10 @@ import { User, getUser } from '@genesislcap/foundation-user';
|
|
|
4
4
|
import { GridOptionsConfig } from "@genesislcap/rapid-grid-pro";
|
|
5
5
|
import { getDateFormatter, getNumberFormatter, getViewUpdateRightComponent } from '../../utils';
|
|
6
6
|
import { ErrorMessageComponent } from '../../components/error-message/error-message.component';
|
|
7
|
+
import { environment } from '../../../environments/environment';
|
|
8
|
+
{{#if route.FDC3EventHandlersEnabled}}
|
|
9
|
+
import { sendEventOnChannel } from '../../utils';
|
|
10
|
+
{{/if}}
|
|
7
11
|
|
|
8
12
|
@Component({
|
|
9
13
|
selector: 'app-{{pascalCase route.name}}',
|
|
@@ -17,7 +21,11 @@ import { ErrorMessageComponent } from '../../components/error-message/error-mess
|
|
|
17
21
|
styleUrls: ['./{{kebabCase route.name}}.component.css'],
|
|
18
22
|
})
|
|
19
23
|
export class {{pascalCase route.name}}Component {
|
|
24
|
+
environment = environment;
|
|
20
25
|
hasUserPermission = (permissionCode: string) => getViewUpdateRightComponent(getUser(), permissionCode);
|
|
26
|
+
{{#if route.FDC3EventHandlersEnabled}}
|
|
27
|
+
sendEventOnChannel = sendEventOnChannel;
|
|
28
|
+
{{/if}}
|
|
21
29
|
|
|
22
30
|
{{#each route.tiles}}
|
|
23
31
|
tile{{this.config.index}} = { {{#if this.config.createFormUiSchema}}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const { resolve } = require('node:path');
|
|
2
2
|
const makeDirectory = require('./makeDirectory');
|
|
3
3
|
const {
|
|
4
|
-
COMPONENT_TYPE,
|
|
5
4
|
FRAMEWORK_WEB_COMPONENTS_ALIAS,
|
|
6
5
|
FRAMEWORK_ANGULAR_ALIAS,
|
|
7
6
|
DIR_TEMPLATE_BY_FRAMEWORK,
|
|
@@ -10,119 +9,155 @@ const {
|
|
|
10
9
|
const getPathByFramework = {
|
|
11
10
|
[FRAMEWORK_WEB_COMPONENTS_ALIAS]: {
|
|
12
11
|
clientSrcPath: `../../client/src/routes`,
|
|
13
|
-
route: (clientSrcPath, tileName, tileType, routeName) =>
|
|
12
|
+
route: (clientSrcPath, tileName, tileType, routeName) =>
|
|
13
|
+
`${clientSrcPath}/${routeName}/${tileName}-${tileType}`,
|
|
14
14
|
index: (componentPath) => `${componentPath}/index.ts`,
|
|
15
15
|
component: (componentPath, tileName) => `${componentPath}/${tileName}.ts`,
|
|
16
|
-
template: (componentPath, tileName) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
template: (componentPath, tileName) =>
|
|
17
|
+
`${componentPath}/${tileName}.template.ts`,
|
|
18
|
+
style: (componentPath, tileName) =>
|
|
19
|
+
`${componentPath}/${tileName}.styles.ts`,
|
|
20
|
+
addForm: (componentPath, tileName) =>
|
|
21
|
+
`${componentPath}/${tileName}.create.form.schema.ts`,
|
|
22
|
+
updateForm: (componentPath, tileName) =>
|
|
23
|
+
`${componentPath}/${tileName}.update.form.schema.ts`,
|
|
24
|
+
columnDefs: (componentPath, tileName) =>
|
|
25
|
+
`${componentPath}/${tileName}.column.defs.ts`,
|
|
26
|
+
gridOptions: (componentPath, tileName) =>
|
|
27
|
+
`${componentPath}/${tileName}.gridOptions.ts`,
|
|
22
28
|
},
|
|
23
29
|
// Placeholder for angular part
|
|
24
30
|
[FRAMEWORK_ANGULAR_ALIAS]: {},
|
|
25
31
|
};
|
|
26
32
|
|
|
27
|
-
const getFilesToWrite = (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
33
|
+
const getFilesToWrite = (
|
|
34
|
+
tile,
|
|
35
|
+
tileName,
|
|
36
|
+
routeName,
|
|
37
|
+
path,
|
|
38
|
+
sourceTemplateDir,
|
|
39
|
+
) => {
|
|
40
|
+
const {
|
|
41
|
+
clientSrcPath,
|
|
42
|
+
route: getRouteDir,
|
|
43
|
+
index: getComponentIndexTarget,
|
|
44
|
+
component: getComponentTarget,
|
|
45
|
+
template: getTemplateTarget,
|
|
46
|
+
style: getStyleTarget,
|
|
47
|
+
addForm: getAddFormTarget,
|
|
48
|
+
updateForm: getUpdateFormTarget,
|
|
49
|
+
columnDefs: getColumnDefsTarget,
|
|
50
|
+
gridOptions: getGridOptionsTarget,
|
|
51
|
+
} = path;
|
|
52
|
+
|
|
53
|
+
const routeDir = getRouteDir(
|
|
54
|
+
clientSrcPath,
|
|
55
|
+
tileName,
|
|
56
|
+
tile.componentType,
|
|
57
|
+
routeName,
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const componentIndexFile = {
|
|
61
|
+
source: `${sourceTemplateDir}/component/component.index.hbs`,
|
|
62
|
+
target: getComponentIndexTarget(routeDir, tileName),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const componentFile = {
|
|
66
|
+
source: `${sourceTemplateDir}/component/component.hbs`,
|
|
67
|
+
target: getComponentTarget(routeDir, tileName),
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const componentTemplateFile = {
|
|
71
|
+
source: `${sourceTemplateDir}/component/component.template.hbs`,
|
|
72
|
+
target: getTemplateTarget(routeDir, tileName),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const componentStylesFile = {
|
|
76
|
+
source: `${sourceTemplateDir}/component/component.styles.hbs`,
|
|
77
|
+
target: getStyleTarget(routeDir, tileName),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const componentAddFormFile = {
|
|
81
|
+
source: `${sourceTemplateDir}/component/component.create.form.hbs`,
|
|
82
|
+
target: getAddFormTarget(routeDir, tileName),
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const componentUpdateFormFile = {
|
|
86
|
+
source: `${sourceTemplateDir}/component/component.update.form.hbs`,
|
|
87
|
+
target: getUpdateFormTarget(routeDir, tileName),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const componentColumnsFile = {
|
|
91
|
+
source: `${sourceTemplateDir}/component/component.column.defs.hbs`,
|
|
92
|
+
target: getColumnDefsTarget(routeDir, tileName),
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const componentGridOptionsFile = {
|
|
96
|
+
source: `${sourceTemplateDir}/component/component.gridOptions.hbs`,
|
|
97
|
+
target: getGridOptionsTarget(routeDir, tileName),
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const filesToWrite = [
|
|
101
|
+
componentIndexFile,
|
|
102
|
+
componentFile,
|
|
103
|
+
componentTemplateFile,
|
|
104
|
+
componentStylesFile,
|
|
105
|
+
];
|
|
106
|
+
|
|
107
|
+
switch (tile.type) {
|
|
108
|
+
case 'entity-manager':
|
|
109
|
+
if (tile.config?.columns) {
|
|
110
|
+
filesToWrite.push(componentColumnsFile);
|
|
71
111
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
source: `${sourceTemplateDir}/component/component.column.defs.hbs`,
|
|
75
|
-
target: getColumnDefsTarget(routeDir, tileName),
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const componentGridOptionsFile = {
|
|
79
|
-
source: `${sourceTemplateDir}/component/component.gridOptions.hbs`,
|
|
80
|
-
target: getGridOptionsTarget(routeDir, tileName),
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const filesToWrite = [componentIndexFile, componentFile, componentTemplateFile, componentStylesFile];
|
|
84
|
-
|
|
85
|
-
switch (tile.type) {
|
|
86
|
-
case 'entity-manager':
|
|
87
|
-
if (tile.config?.columns) {
|
|
88
|
-
filesToWrite.push(componentColumnsFile);
|
|
89
|
-
}
|
|
90
|
-
if (tile.config?.gridOptions) {
|
|
91
|
-
filesToWrite.push(componentGridOptionsFile);
|
|
92
|
-
}
|
|
93
|
-
if (tile.config?.createFormUiSchema) {
|
|
94
|
-
filesToWrite.push(componentAddFormFile);
|
|
95
|
-
}
|
|
96
|
-
if (tile.config?.updateFormUiSchema) {
|
|
97
|
-
filesToWrite.push(componentUpdateFormFile);
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
case 'grid-pro':
|
|
101
|
-
if (tile.config?.gridOptions) {
|
|
102
|
-
filesToWrite.push(componentGridOptionsFile);
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
case 'smart-form':
|
|
106
|
-
filesToWrite.push(componentAddFormFile);
|
|
107
|
-
break
|
|
108
|
-
default:
|
|
109
|
-
break;
|
|
112
|
+
if (tile.config?.gridOptions) {
|
|
113
|
+
filesToWrite.push(componentGridOptionsFile);
|
|
110
114
|
}
|
|
115
|
+
if (tile.config?.createFormUiSchema) {
|
|
116
|
+
filesToWrite.push(componentAddFormFile);
|
|
117
|
+
}
|
|
118
|
+
if (tile.config?.updateFormUiSchema) {
|
|
119
|
+
filesToWrite.push(componentUpdateFormFile);
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
case 'grid-pro':
|
|
123
|
+
if (tile.config?.gridOptions) {
|
|
124
|
+
filesToWrite.push(componentGridOptionsFile);
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
case 'smart-form':
|
|
128
|
+
filesToWrite.push(componentAddFormFile);
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return filesToWrite;
|
|
135
|
+
};
|
|
111
136
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
137
|
+
const generateTile = (
|
|
138
|
+
tile,
|
|
139
|
+
route,
|
|
140
|
+
{ changeCase, writeFileWithData },
|
|
141
|
+
framework,
|
|
142
|
+
) => {
|
|
116
143
|
const tileName = changeCase.paramCase(tile.title);
|
|
117
144
|
const routeName = changeCase.paramCase(route.name);
|
|
118
145
|
const sourceTemplateDir = `../${DIR_TEMPLATE_BY_FRAMEWORK[framework]}`;
|
|
119
|
-
const {
|
|
146
|
+
const { clientSrcPath, route: getRouteDir } = getPathByFramework[framework];
|
|
147
|
+
const routeDir = getRouteDir(
|
|
120
148
|
clientSrcPath,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
149
|
+
tileName,
|
|
150
|
+
tile.componentType,
|
|
151
|
+
routeName,
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
const filesToWrite = getFilesToWrite(
|
|
155
|
+
tile,
|
|
156
|
+
tileName,
|
|
157
|
+
routeName,
|
|
158
|
+
getPathByFramework[framework],
|
|
159
|
+
sourceTemplateDir,
|
|
160
|
+
);
|
|
126
161
|
|
|
127
162
|
makeDirectory(resolve(__dirname, routeDir));
|
|
128
163
|
filesToWrite.forEach(({ source, target }) => {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
const { resolve } = require('node:path');
|
|
2
|
-
const {
|
|
3
|
-
DIR_TEMPLATE_ROOT_ALIAS,
|
|
4
|
-
DIRS_MAP,
|
|
5
|
-
DIR_TEMPLATE_BY_FRAMEWORK,
|
|
6
|
-
} = require('../static');
|
|
2
|
+
const { DIR_TEMPLATE_BY_FRAMEWORK } = require('../static');
|
|
7
3
|
|
|
8
4
|
const registerPartials = ({ registerPartial }, framework) => {
|
|
9
5
|
// It can be reverted after adding changes for angular
|
|
10
|
-
const rootTemplateDir = `../${DIRS_MAP.get(DIR_TEMPLATE_ROOT_ALIAS)}`;
|
|
11
6
|
const sourceTemplateDir = `../${DIR_TEMPLATE_BY_FRAMEWORK[framework]}`;
|
|
12
7
|
|
|
13
8
|
registerPartial(
|
package/.genx/versions.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.25.1](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.25.0...v3.25.1) (2024-07-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* automated dependency version update [skip-ci] [PSD-9](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/9) (#284) 7481358
|
|
9
|
+
|
|
10
|
+
## [3.25.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.24.0...v3.25.0) (2024-07-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* FDC3 support in angular - [FUI-2068](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/2068) (#281) 8d30d4c
|
|
16
|
+
|
|
3
17
|
## [3.24.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.23.0...v3.24.0) (2024-07-16)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"@angular/platform-browser": "^18.0.4",
|
|
41
41
|
"@angular/platform-browser-dynamic": "^18.0.4",
|
|
42
42
|
"@angular/router": "^18.0.4",
|
|
43
|
+
{{#if FDC3.includeDependencies}}
|
|
44
|
+
"@genesislcap/foundation-fdc3": "{{versions.UI}}",
|
|
45
|
+
{{/if}}
|
|
43
46
|
"@genesislcap/foundation-comms": "{{versions.UI}}",
|
|
44
47
|
"@genesislcap/foundation-login": "{{versions.UI}}",
|
|
45
48
|
"@genesislcap/foundation-entity-management": "{{versions.UI}}",
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { Component, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { Router, NavigationEnd } from '@angular/router';
|
|
3
3
|
import getLayoutNameByRoute from './utils/getLayoutNameByRoute';
|
|
4
4
|
import type { LayoutComponentName } from './types/layout';
|
|
5
5
|
import { configureFoundationLogin } from './share/foundation-login';
|
|
6
|
+
{{#if FDC3.channels.length}}
|
|
7
|
+
import { listenToChannel, onFDC3Ready } from './utils';
|
|
8
|
+
{{/if}}
|
|
6
9
|
|
|
7
10
|
// Genesis Components
|
|
8
11
|
import './share/genesis-components';
|
|
@@ -12,7 +15,7 @@ import './share/genesis-components';
|
|
|
12
15
|
templateUrl: './app.component.html',
|
|
13
16
|
styleUrl: './app.component.css',
|
|
14
17
|
})
|
|
15
|
-
export class AppComponent {
|
|
18
|
+
export class AppComponent implements AfterViewInit {
|
|
16
19
|
layoutName?: LayoutComponentName;
|
|
17
20
|
title = '{{capitalCase appName}}';
|
|
18
21
|
|
|
@@ -28,4 +31,22 @@ export class AppComponent {
|
|
|
28
31
|
}
|
|
29
32
|
});
|
|
30
33
|
}
|
|
34
|
+
|
|
35
|
+
ngAfterViewInit() {
|
|
36
|
+
{{#if FDC3.channels.length}}
|
|
37
|
+
onFDC3Ready(this.FDC3ReadyHandler);
|
|
38
|
+
{{/if}}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
{{#if FDC3.channels.length}}
|
|
42
|
+
FDC3ReadyHandler = () => {
|
|
43
|
+
{{#each FDC3.channels}}
|
|
44
|
+
listenToChannel('{{this.name}}', '{{this.type}}', (result) => {
|
|
45
|
+
console.log('Received FDC3 channel message on: {{this.name}} channel, type: {{this.type}}', result);
|
|
46
|
+
// TODO: Add your listener logic here
|
|
47
|
+
// E.g. open a modal or route to specific page: Route.path.push(`[Route name]`);
|
|
48
|
+
});
|
|
49
|
+
{{/each}}
|
|
50
|
+
};
|
|
51
|
+
{{/if}}
|
|
31
52
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {configure, define} from '@genesislcap/foundation-login';
|
|
2
2
|
import type { Router } from '@angular/router';
|
|
3
3
|
import { AUTH_PATH } from '../app.config';
|
|
4
|
+
import { css } from '@microsoft/fast-element';
|
|
4
5
|
import { DI } from '@microsoft/fast-foundation';
|
|
6
|
+
import logo from '../../assets/logo.svg';
|
|
5
7
|
|
|
6
8
|
// eslint-disable-next-line
|
|
7
9
|
declare var GENX_ENABLE_SSO: boolean;
|
|
@@ -32,6 +34,9 @@ export const configureFoundationLogin = ({
|
|
|
32
34
|
router.navigate(['{{kebabCase routes.[0].name}}'])
|
|
33
35
|
},
|
|
34
36
|
...ssoSettings,
|
|
37
|
+
logo: css `
|
|
38
|
+
content: url("${logo}");
|
|
39
|
+
`,
|
|
35
40
|
});
|
|
36
41
|
|
|
37
42
|
return define({
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{#if FDC3.includeDependencies}}
|
|
2
|
+
import { DefaultFDC3 } from '@genesislcap/foundation-fdc3';
|
|
3
|
+
{{/if}}
|
|
4
|
+
export const isFDC3 = (): boolean => !!(window as any).fdc3;
|
|
5
|
+
{{#if FDC3.includeDependencies}}
|
|
6
|
+
|
|
7
|
+
export const onFDC3Ready = async (FDC3ReadyCb: () => any): Promise<void> => {
|
|
8
|
+
isFDC3()
|
|
9
|
+
? await FDC3ReadyCb()
|
|
10
|
+
: window.addEventListener('fdc3Ready', async () => {
|
|
11
|
+
await FDC3ReadyCb();
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const listenToChannel = async (
|
|
16
|
+
channelName: string,
|
|
17
|
+
type: string,
|
|
18
|
+
callback: (result: any) => void,
|
|
19
|
+
): Promise<void> => {
|
|
20
|
+
const fdc3Service = new DefaultFDC3();
|
|
21
|
+
fdc3Service.addChannelListener(channelName, type, callback);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const sendEventOnChannel = (channelName: string, type: string) => {
|
|
25
|
+
return async (e: any) => {
|
|
26
|
+
const fdc3Service = new DefaultFDC3();
|
|
27
|
+
// check for ag-grid-specific events, fall back to standard events
|
|
28
|
+
const payload = e.data || e.detail;
|
|
29
|
+
await fdc3Service.broadcastOnChannel(channelName, type, payload);
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
{{/if}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="200" height="34" viewBox="0 0 200 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M71.1691 21.6313C71.1691 14.5643 75.7568 9.97153 82.7045 9.97153C89.4281 9.97153 93.9755 14.2108 94.0629 20.8813C94.0685 21.5921 94.01 22.302 93.888 23.0021H77.5923V23.3102C77.7223 26.5344 79.7775 28.4785 82.8793 28.4785C85.3693 28.4785 87.1152 27.375 87.6418 25.2542H93.7132C93.0095 29.6725 89.1255 33.2049 83.1482 33.2049C75.6694 33.2049 71.1691 28.6552 71.1691 21.6313ZM87.8548 18.9372C87.4177 16.1549 85.5396 14.6096 82.7426 14.6096C80.0778 14.6096 78.0675 16.2432 77.7178 18.9372H87.8548Z" fill="white"/>
|
|
3
|
+
<path d="M118.57 20.3511V32.9398H112.409V20.9697C112.409 17.1178 110.968 15.0945 107.866 15.0945C104.677 15.0945 102.842 17.392 102.842 21.3231V32.9398H96.6806V10.2366H102.059L102.391 11.8839C102.412 11.9911 102.461 12.0909 102.533 12.1728C102.605 12.2548 102.697 12.316 102.799 12.3503C102.902 12.3847 103.012 12.3908 103.118 12.3682C103.224 12.3455 103.322 12.2949 103.402 12.2215C104.791 10.8914 106.699 9.97153 109.574 9.97153C114.42 9.97153 118.57 12.5772 118.57 20.3511Z" fill="white"/>
|
|
4
|
+
<path d="M121.089 21.6313C121.089 14.5643 125.677 9.97153 132.625 9.97153C139.348 9.97153 143.896 14.2108 143.983 20.8813C143.989 21.5921 143.93 22.302 143.808 23.0021H127.524V23.3102C127.654 26.5344 129.709 28.4785 132.811 28.4785C135.301 28.4785 137.049 27.375 137.571 25.2542H143.645C142.946 29.6703 139.057 33.2049 133.073 33.2049C125.59 33.2049 121.089 28.6552 121.089 21.6313ZM137.78 18.9372C137.331 16.1549 135.464 14.6096 132.667 14.6096C130.003 14.6096 127.992 16.2432 127.643 18.9372H137.78Z" fill="white"/>
|
|
5
|
+
<path d="M151.834 25.3857C152.058 27.375 153.757 28.7436 156.765 28.7436C159.342 28.7436 160.913 27.9029 160.913 26.3146C160.913 24.4589 159.385 24.3253 155.758 23.8404C150.516 23.2218 146.453 22.0278 146.453 17.3466C146.453 12.8423 150.341 9.88316 156.108 9.92621C162.137 9.92621 166.288 12.6225 166.595 17.2583H160.694C160.519 15.4457 158.815 14.3445 156.325 14.3445C153.921 14.3445 152.35 15.2281 152.35 16.685C152.35 18.407 154.27 18.5838 157.504 18.9826C162.659 19.5127 166.942 20.7046 166.942 25.8275C166.942 30.3341 162.746 33.2049 156.718 33.2049C150.469 33.2049 146.233 30.2458 145.96 25.3857H151.834Z" fill="white"/>
|
|
6
|
+
<path d="M169.21 4.3184C169.21 2.27919 170.779 0.783783 172.796 0.783783C174.813 0.783783 176.382 2.28599 176.382 4.3184C176.382 6.30549 174.813 7.80771 172.796 7.80771C170.779 7.80771 169.21 6.30549 169.21 4.3184ZM169.692 10.2366H175.896V32.9398H169.692V10.2366Z" fill="white"/>
|
|
7
|
+
<path d="M184.349 25.3857C184.573 27.375 186.272 28.7436 189.28 28.7436C191.857 28.7436 193.431 27.9029 193.431 26.3146C193.431 24.4589 191.902 24.3253 188.276 23.8404C183.032 23.2218 178.968 22.0278 178.968 17.3466C178.968 12.8423 182.857 9.88316 188.626 9.92621C194.654 9.92621 198.805 12.6225 199.11 17.2583H193.211C193.036 15.4457 191.333 14.3445 188.843 14.3445C186.44 14.3445 184.867 15.2281 184.867 16.685C184.867 18.407 186.79 18.5838 190.022 18.9826C195.177 19.5127 199.459 20.7046 199.459 25.8275C199.459 30.3341 195.266 33.2049 189.235 33.2049C182.989 33.2049 178.751 30.2458 178.477 25.3857H184.349Z" fill="white"/>
|
|
8
|
+
<path d="M54.786 15.7583V21.0127H60.6332C61.1868 21.0376 62.5674 21.271 61.9892 23.0111C60.8282 26.1991 57.769 27.5948 54.7411 27.5948C49.499 27.5948 46.4487 23.4439 46.4487 17.4803C46.4487 11.5168 49.6379 7.36588 54.7411 7.36588C58.4996 7.36588 60.9448 9.61807 61.7314 13.0303H68.2847C67.5047 6.39839 62.359 1.81924 55.0437 1.76713C46.5272 1.70595 39.7588 8.87943 39.7565 17.4826C39.7565 26.9853 45.5657 33.2162 54.3041 33.2162C57.7175 33.2162 60.2859 32.0833 62.0138 30.5494C62.1389 30.4398 62.2906 30.3657 62.4533 30.3348C62.6161 30.3039 62.784 30.3172 62.9399 30.3735C63.0959 30.4297 63.2342 30.5268 63.3409 30.6549C63.4475 30.7829 63.5186 30.9373 63.5468 31.1022L63.874 32.9511H68.4595V15.7583H54.786Z" fill="white"/>
|
|
9
|
+
<path d="M22.8131 29.7428C22.8128 29.0118 22.955 28.2879 23.2315 27.6125C23.5079 26.9371 23.9133 26.3234 24.4245 25.8064C24.9357 25.2894 25.5426 24.8793 26.2105 24.5995C26.8785 24.3197 27.5944 24.1757 28.3175 24.1757H31.5448V15.8739H23.3331V19.0732C23.3327 20.5312 22.7664 21.9308 21.7559 22.971C20.7454 24.0112 19.3715 24.609 17.9295 24.6357H8.22965V10.2366H19.9959V1.93479H4.27171C3.13878 1.93479 2.05225 2.38979 1.25115 3.19968C0.450049 4.00957 0 5.10802 0 6.25338V28.6212C0 29.7666 0.450049 30.865 1.25115 31.6749C2.05225 32.4848 3.13878 32.9398 4.27171 32.9398H22.8131V29.7428Z" fill="white"/>
|
|
10
|
+
</svg>
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
11
11
|
"serve": "vite preview",
|
|
12
12
|
"clean": "rm -rf node_modules dist",
|
|
13
|
-
|
|
14
13
|
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
@@ -17,9 +17,9 @@ const BlankLayout: React.FC<BlankLayoutProps> = ({ children }) =>{
|
|
|
17
17
|
}, []);
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
20
|
+
<rapid-design-system-provider className={styles['blank-layout']}>
|
|
21
21
|
<section className={styles.content}>{children}</section>
|
|
22
|
-
</
|
|
22
|
+
</rapid-design-system-provider>
|
|
23
23
|
);
|
|
24
24
|
};
|
|
25
25
|
|
package/package.json
CHANGED