@nocobase/plugin-charts 1.3.0-alpha.20240710084543 → 1.3.0-alpha.20240710141659
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/dist/client/ChartBlockEngine.d.ts +36 -0
- package/dist/client/ChartBlockEngineDesigner.d.ts +12 -0
- package/dist/client/ChartBlockInitializer.d.ts +11 -0
- package/dist/client/ChartQueryBlockInitializer.d.ts +18 -0
- package/dist/client/ChartQueryMetadataProvider.d.ts +18 -0
- package/dist/client/DataSetPreviewTable.d.ts +14 -0
- package/dist/client/Icons.d.ts +9 -0
- package/dist/client/chartRenderComponents/index.d.ts +10 -0
- package/dist/client/hooks/index.d.ts +12 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +53 -0
- package/dist/client/locale/index.d.ts +11 -0
- package/dist/client/select/CustomSelect.d.ts +19 -0
- package/dist/client/select/ReadPretty.d.ts +10 -0
- package/dist/client/select/index.d.ts +10 -0
- package/dist/client/select/shared.d.ts +15 -0
- package/dist/client/settings/AddNewQuery.d.ts +11 -0
- package/dist/client/settings/ConfigureFields.d.ts +10 -0
- package/dist/client/settings/QueriesTable.d.ts +10 -0
- package/dist/client/settings/queryTypes.d.ts +13 -0
- package/dist/client/settings/schemas/chartsQueries.d.ts +16 -0
- package/dist/client/templates/AreaTemplate.d.ts +73 -0
- package/dist/client/templates/BarTemplate.d.ts +88 -0
- package/dist/client/templates/ColumnTemplate.d.ts +88 -0
- package/dist/client/templates/FunnelTemplate.d.ts +74 -0
- package/dist/client/templates/LineTemplate.d.ts +75 -0
- package/dist/client/templates/PieTemplate.d.ts +79 -0
- package/dist/client/templates/RadarTemplate.d.ts +79 -0
- package/dist/client/templates/ScatterTemplate.d.ts +99 -0
- package/dist/client/templates/TableTemplate.d.ts +36 -0
- package/dist/client/templates/index.d.ts +9 -0
- package/dist/client/utils.d.ts +11 -0
- package/dist/externalVersion.js +25 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.d.ts +31 -0
- package/dist/locale/en-US.js +53 -0
- package/dist/locale/es-ES.d.ts +61 -0
- package/dist/locale/es-ES.js +83 -0
- package/dist/locale/fr-FR.d.ts +10 -0
- package/dist/locale/fr-FR.js +32 -0
- package/dist/locale/ja-JP.d.ts +10 -0
- package/dist/locale/ja-JP.js +32 -0
- package/dist/locale/ko_KR.d.ts +70 -0
- package/dist/locale/ko_KR.js +92 -0
- package/dist/locale/pt-BR.d.ts +31 -0
- package/dist/locale/pt-BR.js +53 -0
- package/dist/locale/ru-RU.d.ts +10 -0
- package/dist/locale/ru-RU.js +32 -0
- package/dist/locale/tr-TR.d.ts +10 -0
- package/dist/locale/tr-TR.js +32 -0
- package/dist/locale/zh-CN.d.ts +70 -0
- package/dist/locale/zh-CN.js +92 -0
- package/dist/node_modules/json5/dist/index.js +1737 -0
- package/dist/node_modules/json5/dist/index.min.js +1 -0
- package/dist/node_modules/json5/lib/cli.js +152 -0
- package/dist/node_modules/json5/lib/index.d.ts +4 -0
- package/dist/node_modules/json5/lib/index.js +1 -0
- package/dist/node_modules/json5/lib/parse.d.ts +15 -0
- package/dist/node_modules/json5/lib/parse.js +1114 -0
- package/dist/node_modules/json5/lib/register.js +13 -0
- package/dist/node_modules/json5/lib/require.js +4 -0
- package/dist/node_modules/json5/lib/stringify.d.ts +89 -0
- package/dist/node_modules/json5/lib/stringify.js +261 -0
- package/dist/node_modules/json5/lib/unicode.d.ts +3 -0
- package/dist/node_modules/json5/lib/unicode.js +4 -0
- package/dist/node_modules/json5/lib/util.d.ts +5 -0
- package/dist/node_modules/json5/lib/util.js +35 -0
- package/dist/node_modules/json5/package.json +1 -0
- package/dist/server/actions/chartsQueries.d.ts +11 -0
- package/dist/server/actions/chartsQueries.js +95 -0
- package/dist/server/actions/index.d.ts +8 -0
- package/dist/server/actions/index.js +9 -0
- package/dist/server/collections/chartsQueries.d.ts +10 -0
- package/dist/server/collections/chartsQueries.js +56 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/plugin.d.ts +22 -0
- package/dist/server/plugin.js +98 -0
- package/dist/server/query.d.ts +20 -0
- package/dist/server/query.js +68 -0
- package/dist/server/shared/index.d.ts +10 -0
- package/dist/server/shared/index.js +36 -0
- package/package.json +2 -2
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const barTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
appendPadding: number;
|
|
18
|
+
isGroup: boolean;
|
|
19
|
+
yField: string;
|
|
20
|
+
xField: string;
|
|
21
|
+
seriesField: string;
|
|
22
|
+
label: {
|
|
23
|
+
position: string;
|
|
24
|
+
style: {
|
|
25
|
+
fill: string;
|
|
26
|
+
opacity: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
xAxis: {
|
|
30
|
+
label: {
|
|
31
|
+
autoHide: boolean;
|
|
32
|
+
autoRotate: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
configurableProperties: {
|
|
37
|
+
type: string;
|
|
38
|
+
properties: {
|
|
39
|
+
dimension: {
|
|
40
|
+
required: boolean;
|
|
41
|
+
type: string;
|
|
42
|
+
title: string;
|
|
43
|
+
'x-decorator': string;
|
|
44
|
+
'x-component': string;
|
|
45
|
+
enum: string;
|
|
46
|
+
};
|
|
47
|
+
metric: {
|
|
48
|
+
required: boolean;
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
'x-decorator': string;
|
|
52
|
+
'x-component': string;
|
|
53
|
+
enum: string;
|
|
54
|
+
};
|
|
55
|
+
category: {
|
|
56
|
+
type: string;
|
|
57
|
+
title: string;
|
|
58
|
+
'x-decorator': string;
|
|
59
|
+
'x-component': string;
|
|
60
|
+
enum: string;
|
|
61
|
+
};
|
|
62
|
+
jsonConfig: {
|
|
63
|
+
type: string;
|
|
64
|
+
'x-component': string;
|
|
65
|
+
properties: {
|
|
66
|
+
template: {
|
|
67
|
+
required: boolean;
|
|
68
|
+
title: string;
|
|
69
|
+
type: string;
|
|
70
|
+
default: string;
|
|
71
|
+
'x-decorator': string;
|
|
72
|
+
'x-component': string;
|
|
73
|
+
'x-component-props': {
|
|
74
|
+
autoSize: {
|
|
75
|
+
minRows: number;
|
|
76
|
+
maxRows: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
description: string;
|
|
80
|
+
'x-validator': {
|
|
81
|
+
json5: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const columnTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
appendPadding: number;
|
|
18
|
+
isGroup: boolean;
|
|
19
|
+
yField: string;
|
|
20
|
+
xField: string;
|
|
21
|
+
seriesField: string;
|
|
22
|
+
label: {
|
|
23
|
+
position: string;
|
|
24
|
+
style: {
|
|
25
|
+
fill: string;
|
|
26
|
+
opacity: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
xAxis: {
|
|
30
|
+
label: {
|
|
31
|
+
autoHide: boolean;
|
|
32
|
+
autoRotate: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
configurableProperties: {
|
|
37
|
+
type: string;
|
|
38
|
+
properties: {
|
|
39
|
+
dimension: {
|
|
40
|
+
required: boolean;
|
|
41
|
+
type: string;
|
|
42
|
+
title: string;
|
|
43
|
+
'x-decorator': string;
|
|
44
|
+
'x-component': string;
|
|
45
|
+
enum: string;
|
|
46
|
+
};
|
|
47
|
+
metric: {
|
|
48
|
+
required: boolean;
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
'x-decorator': string;
|
|
52
|
+
'x-component': string;
|
|
53
|
+
enum: string;
|
|
54
|
+
};
|
|
55
|
+
category: {
|
|
56
|
+
type: string;
|
|
57
|
+
title: string;
|
|
58
|
+
'x-decorator': string;
|
|
59
|
+
'x-component': string;
|
|
60
|
+
enum: string;
|
|
61
|
+
};
|
|
62
|
+
jsonConfig: {
|
|
63
|
+
type: string;
|
|
64
|
+
'x-component': string;
|
|
65
|
+
properties: {
|
|
66
|
+
template: {
|
|
67
|
+
required: boolean;
|
|
68
|
+
title: string;
|
|
69
|
+
type: string;
|
|
70
|
+
default: string;
|
|
71
|
+
'x-decorator': string;
|
|
72
|
+
'x-component': string;
|
|
73
|
+
'x-component-props': {
|
|
74
|
+
autoSize: {
|
|
75
|
+
minRows: number;
|
|
76
|
+
maxRows: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
description: string;
|
|
80
|
+
'x-validator': {
|
|
81
|
+
json5: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const funnelTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
xField: string;
|
|
18
|
+
yField: string;
|
|
19
|
+
seriesField: string;
|
|
20
|
+
legend: boolean;
|
|
21
|
+
};
|
|
22
|
+
configurableProperties: {
|
|
23
|
+
type: string;
|
|
24
|
+
properties: {
|
|
25
|
+
dimension: {
|
|
26
|
+
required: boolean;
|
|
27
|
+
type: string;
|
|
28
|
+
title: string;
|
|
29
|
+
'x-decorator': string;
|
|
30
|
+
'x-component': string;
|
|
31
|
+
enum: string;
|
|
32
|
+
};
|
|
33
|
+
metric: {
|
|
34
|
+
required: boolean;
|
|
35
|
+
type: string;
|
|
36
|
+
title: string;
|
|
37
|
+
'x-decorator': string;
|
|
38
|
+
'x-component': string;
|
|
39
|
+
enum: string;
|
|
40
|
+
};
|
|
41
|
+
category: {
|
|
42
|
+
type: string;
|
|
43
|
+
title: string;
|
|
44
|
+
'x-decorator': string;
|
|
45
|
+
'x-component': string;
|
|
46
|
+
enum: string;
|
|
47
|
+
};
|
|
48
|
+
jsonConfig: {
|
|
49
|
+
type: string;
|
|
50
|
+
'x-component': string;
|
|
51
|
+
properties: {
|
|
52
|
+
template: {
|
|
53
|
+
required: boolean;
|
|
54
|
+
title: string;
|
|
55
|
+
type: string;
|
|
56
|
+
default: string;
|
|
57
|
+
'x-decorator': string;
|
|
58
|
+
'x-component': string;
|
|
59
|
+
'x-component-props': {
|
|
60
|
+
autoSize: {
|
|
61
|
+
minRows: number;
|
|
62
|
+
maxRows: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
description: string;
|
|
66
|
+
'x-validator': {
|
|
67
|
+
json5: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const lineTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
yField: string;
|
|
18
|
+
xField: string;
|
|
19
|
+
seriesField: string;
|
|
20
|
+
xAxis: {};
|
|
21
|
+
yAxis: {};
|
|
22
|
+
};
|
|
23
|
+
configurableProperties: {
|
|
24
|
+
type: string;
|
|
25
|
+
properties: {
|
|
26
|
+
dimension: {
|
|
27
|
+
required: boolean;
|
|
28
|
+
type: string;
|
|
29
|
+
title: string;
|
|
30
|
+
'x-decorator': string;
|
|
31
|
+
'x-component': string;
|
|
32
|
+
enum: string;
|
|
33
|
+
};
|
|
34
|
+
metric: {
|
|
35
|
+
required: boolean;
|
|
36
|
+
type: string;
|
|
37
|
+
title: string;
|
|
38
|
+
'x-decorator': string;
|
|
39
|
+
'x-component': string;
|
|
40
|
+
enum: string;
|
|
41
|
+
};
|
|
42
|
+
category: {
|
|
43
|
+
type: string;
|
|
44
|
+
title: string;
|
|
45
|
+
'x-decorator': string;
|
|
46
|
+
'x-component': string;
|
|
47
|
+
enum: string;
|
|
48
|
+
};
|
|
49
|
+
jsonConfig: {
|
|
50
|
+
type: string;
|
|
51
|
+
'x-component': string;
|
|
52
|
+
properties: {
|
|
53
|
+
template: {
|
|
54
|
+
required: boolean;
|
|
55
|
+
title: string;
|
|
56
|
+
type: string;
|
|
57
|
+
default: string;
|
|
58
|
+
'x-decorator': string;
|
|
59
|
+
'x-component': string;
|
|
60
|
+
'x-component-props': {
|
|
61
|
+
autoSize: {
|
|
62
|
+
minRows: number;
|
|
63
|
+
maxRows: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
description: string;
|
|
67
|
+
'x-validator': {
|
|
68
|
+
json5: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const pieTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
appendPadding: number;
|
|
18
|
+
angleField: string;
|
|
19
|
+
colorField: string;
|
|
20
|
+
radius: number;
|
|
21
|
+
label: {
|
|
22
|
+
type: string;
|
|
23
|
+
offset: string;
|
|
24
|
+
content: string;
|
|
25
|
+
style: {
|
|
26
|
+
fontSize: number;
|
|
27
|
+
textAlign: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
interactions: {
|
|
31
|
+
type: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
configurableProperties: {
|
|
35
|
+
type: string;
|
|
36
|
+
properties: {
|
|
37
|
+
dimension: {
|
|
38
|
+
required: boolean;
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
'x-decorator': string;
|
|
42
|
+
'x-component': string;
|
|
43
|
+
enum: string;
|
|
44
|
+
};
|
|
45
|
+
metric: {
|
|
46
|
+
required: boolean;
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
'x-decorator': string;
|
|
50
|
+
'x-component': string;
|
|
51
|
+
enum: string;
|
|
52
|
+
};
|
|
53
|
+
jsonConfig: {
|
|
54
|
+
type: string;
|
|
55
|
+
'x-component': string;
|
|
56
|
+
properties: {
|
|
57
|
+
template: {
|
|
58
|
+
required: boolean;
|
|
59
|
+
title: string;
|
|
60
|
+
type: string;
|
|
61
|
+
default: string;
|
|
62
|
+
'x-decorator': string;
|
|
63
|
+
'x-component': string;
|
|
64
|
+
'x-component-props': {
|
|
65
|
+
autoSize: {
|
|
66
|
+
minRows: number;
|
|
67
|
+
maxRows: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
description: string;
|
|
71
|
+
'x-validator': {
|
|
72
|
+
json5: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const radarTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
xField: string;
|
|
18
|
+
yField: string;
|
|
19
|
+
appendPadding: number[];
|
|
20
|
+
xAxis: {
|
|
21
|
+
tickLine: any;
|
|
22
|
+
};
|
|
23
|
+
yAxis: {
|
|
24
|
+
label: boolean;
|
|
25
|
+
grid: {
|
|
26
|
+
alternateColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
point: {
|
|
30
|
+
size: number;
|
|
31
|
+
};
|
|
32
|
+
area: {};
|
|
33
|
+
};
|
|
34
|
+
configurableProperties: {
|
|
35
|
+
type: string;
|
|
36
|
+
properties: {
|
|
37
|
+
dimension: {
|
|
38
|
+
required: boolean;
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
'x-decorator': string;
|
|
42
|
+
'x-component': string;
|
|
43
|
+
enum: string;
|
|
44
|
+
};
|
|
45
|
+
metric: {
|
|
46
|
+
required: boolean;
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
'x-decorator': string;
|
|
50
|
+
'x-component': string;
|
|
51
|
+
enum: string;
|
|
52
|
+
};
|
|
53
|
+
jsonConfig: {
|
|
54
|
+
type: string;
|
|
55
|
+
'x-component': string;
|
|
56
|
+
properties: {
|
|
57
|
+
template: {
|
|
58
|
+
required: boolean;
|
|
59
|
+
title: string;
|
|
60
|
+
type: string;
|
|
61
|
+
default: string;
|
|
62
|
+
'x-decorator': string;
|
|
63
|
+
'x-component': string;
|
|
64
|
+
'x-component-props': {
|
|
65
|
+
autoSize: {
|
|
66
|
+
minRows: number;
|
|
67
|
+
maxRows: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
description: string;
|
|
71
|
+
'x-validator': {
|
|
72
|
+
json5: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const scatterTemplate: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
iconId: string;
|
|
14
|
+
group: number;
|
|
15
|
+
renderComponent: string;
|
|
16
|
+
defaultChartOptions: {
|
|
17
|
+
appendPadding: number;
|
|
18
|
+
xField: string;
|
|
19
|
+
yField: string;
|
|
20
|
+
colorField: string;
|
|
21
|
+
shape: string;
|
|
22
|
+
size: number;
|
|
23
|
+
yAxis: {
|
|
24
|
+
nice: boolean;
|
|
25
|
+
line: {
|
|
26
|
+
style: {
|
|
27
|
+
stroke: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
xAxis: {
|
|
32
|
+
min: number;
|
|
33
|
+
grid: {
|
|
34
|
+
line: {
|
|
35
|
+
style: {
|
|
36
|
+
stroke: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
line: {
|
|
41
|
+
style: {
|
|
42
|
+
stroke: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
configurableProperties: {
|
|
48
|
+
type: string;
|
|
49
|
+
properties: {
|
|
50
|
+
dimension: {
|
|
51
|
+
required: boolean;
|
|
52
|
+
type: string;
|
|
53
|
+
title: string;
|
|
54
|
+
'x-decorator': string;
|
|
55
|
+
'x-component': string;
|
|
56
|
+
enum: string;
|
|
57
|
+
};
|
|
58
|
+
metric: {
|
|
59
|
+
required: boolean;
|
|
60
|
+
type: string;
|
|
61
|
+
title: string;
|
|
62
|
+
'x-decorator': string;
|
|
63
|
+
'x-component': string;
|
|
64
|
+
enum: string;
|
|
65
|
+
};
|
|
66
|
+
category: {
|
|
67
|
+
type: string;
|
|
68
|
+
title: string;
|
|
69
|
+
'x-decorator': string;
|
|
70
|
+
'x-component': string;
|
|
71
|
+
enum: string;
|
|
72
|
+
};
|
|
73
|
+
jsonConfig: {
|
|
74
|
+
type: string;
|
|
75
|
+
'x-component': string;
|
|
76
|
+
properties: {
|
|
77
|
+
template: {
|
|
78
|
+
required: boolean;
|
|
79
|
+
title: string;
|
|
80
|
+
type: string;
|
|
81
|
+
default: string;
|
|
82
|
+
'x-decorator': string;
|
|
83
|
+
'x-component': string;
|
|
84
|
+
'x-component-props': {
|
|
85
|
+
autoSize: {
|
|
86
|
+
minRows: number;
|
|
87
|
+
maxRows: number;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
description: string;
|
|
91
|
+
'x-validator': {
|
|
92
|
+
json5: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const tableTemplate: {
|
|
10
|
+
title: string;
|
|
11
|
+
type: string;
|
|
12
|
+
group: number;
|
|
13
|
+
renderComponent: string;
|
|
14
|
+
defaultChartOptions: {
|
|
15
|
+
appendPadding: number;
|
|
16
|
+
angleField: string;
|
|
17
|
+
colorField: string;
|
|
18
|
+
radius: number;
|
|
19
|
+
label: {
|
|
20
|
+
type: string;
|
|
21
|
+
offset: string;
|
|
22
|
+
content: string;
|
|
23
|
+
style: {
|
|
24
|
+
fontSize: number;
|
|
25
|
+
textAlign: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
interactions: {
|
|
29
|
+
type: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
configurableProperties: {
|
|
33
|
+
type: string;
|
|
34
|
+
properties: {};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const templates: Map<any, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
declare const validateArray: (value: any) => true | "Please input validate dataset";
|
|
10
|
+
declare const parseDataSetString: (str: any) => any;
|
|
11
|
+
export { validateArray, parseDataSetString };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
"@nocobase/client": "1.3.0-alpha.20240710141659",
|
|
12
|
+
"antd": "5.12.8",
|
|
13
|
+
"react": "18.2.0",
|
|
14
|
+
"@formily/antd-v5": "1.1.9",
|
|
15
|
+
"@formily/react": "2.3.0",
|
|
16
|
+
"@nocobase/utils": "1.3.0-alpha.20240710141659",
|
|
17
|
+
"react-i18next": "11.18.6",
|
|
18
|
+
"lodash": "4.17.21",
|
|
19
|
+
"@formily/core": "2.3.0",
|
|
20
|
+
"@ant-design/icons": "5.2.6",
|
|
21
|
+
"react-router-dom": "6.21.0",
|
|
22
|
+
"@formily/shared": "2.3.0",
|
|
23
|
+
"@nocobase/server": "1.3.0-alpha.20240710141659",
|
|
24
|
+
"@nocobase/database": "1.3.0-alpha.20240710141659"
|
|
25
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export * from './server';
|
|
10
|
+
export { default } from './server';
|