@genesislcap/blank-app-seed 5.10.1 → 5.10.3
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/react/chart.hbs +2 -2
- package/.genx/templates/react/component/component.hbs +4 -12
- package/.genx/templates/react/form.hbs +1 -1
- package/.genx/versions.json +1 -1
- package/CHANGELOG.md +17 -0
- package/client-tmp/react/package.json +2 -1
- package/package.json +1 -1
package/.genx/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{#if config.permissions.viewRight~}}
|
|
2
2
|
hasUserPermission('{{config.permissions.viewRight}}') ? (
|
|
3
3
|
{{/if}}
|
|
4
|
-
<
|
|
4
|
+
<G2PlotChart
|
|
5
5
|
type="{{ config.type }}"
|
|
6
6
|
config={chartConfig}
|
|
7
7
|
>
|
|
@@ -9,7 +9,7 @@ hasUserPermission('{{config.permissions.viewRight}}') ? (
|
|
|
9
9
|
resourceName="{{ config.resourceName }}"
|
|
10
10
|
serverFields="{{ config.xField }} {{ config.yField }}"
|
|
11
11
|
/>
|
|
12
|
-
</
|
|
12
|
+
</G2PlotChart>
|
|
13
13
|
{{#if config.permissions.viewRight~}}
|
|
14
14
|
) : (
|
|
15
15
|
<ErrorMessage elementType="h3" message="You do not have access to view this component." />
|
|
@@ -8,10 +8,11 @@ import { GridProGenesisDatasource{{#if tile.config.gridOptions}}, GridProColumn{
|
|
|
8
8
|
import { GridProCaseType } from '@genesislcap/grid-pro';
|
|
9
9
|
{{/ifEquals}}
|
|
10
10
|
{{#ifEquals tile.type 'smart-form'}}
|
|
11
|
-
import {
|
|
11
|
+
import { Form } from '@genesislcap/foundation-forms/react';
|
|
12
12
|
{{/ifEquals}}
|
|
13
13
|
{{#ifEquals tile.type 'chart'}}
|
|
14
|
-
import {
|
|
14
|
+
import { G2PlotChart, ChartDatasource } from '@genesislcap/g2plot-chart/react';
|
|
15
|
+
import { ChartConfig } from '@genesislcap/g2plot-chart';
|
|
15
16
|
{{/ifEquals}}
|
|
16
17
|
{{#if tile.config.permissions.viewRight~}}
|
|
17
18
|
import { getUser } from '@genesislcap/foundation-user';
|
|
@@ -154,16 +155,7 @@ export const {{pascalCase tile.componentName}}: React.FC = () => {
|
|
|
154
155
|
{{/if}}
|
|
155
156
|
|
|
156
157
|
{{#if tile.config.type}}
|
|
157
|
-
const chartConfig: {
|
|
158
|
-
{{#ifEquals tile.config.type 'pie'}}
|
|
159
|
-
radius: number;
|
|
160
|
-
angleField: string;
|
|
161
|
-
colorField: string;
|
|
162
|
-
{{else~}}
|
|
163
|
-
xField: string;
|
|
164
|
-
yField: string;
|
|
165
|
-
{{/ifEquals}}
|
|
166
|
-
} = {
|
|
158
|
+
const chartConfig: ChartConfig = {
|
|
167
159
|
{{#ifEquals tile.config.type 'pie'}}
|
|
168
160
|
radius: 0.75,
|
|
169
161
|
angleField: 'value',
|
package/.genx/versions.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.10.3](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.10.2...v5.10.3) (2026-04-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add correct typescript dependency [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) da22334
|
|
9
|
+
* add correct typescript dependency for React [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) (#559) 08a19f1
|
|
10
|
+
|
|
11
|
+
## [5.10.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.10.1...v5.10.2) (2026-04-16)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* correct import of chart components + strong typings [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) 18d331b
|
|
17
|
+
* correct import of chart components + strong typings [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) (#558) 6d19b3e
|
|
18
|
+
* correct import of forms [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) 390bfa4
|
|
19
|
+
|
|
3
20
|
## [5.10.1](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.10.0...v5.10.1) (2026-04-15)
|
|
4
21
|
|
|
5
22
|
|