@nocobase/plugin-data-visualization 2.0.0-alpha.3 → 2.0.0-alpha.31
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/73ee9d8236abada0.js +47 -0
- package/dist/client/flow/models/ChartBlockModel.d.ts +19 -19
- package/dist/client/flow/models/ChartOptionsBuilder.d.ts +3 -5
- package/dist/client/flow/models/ChartOptionsBuilder.service.d.ts +45 -3
- package/dist/client/flow/models/{ChartEventsEditor.d.ts → EventsEditor.d.ts} +2 -1
- package/dist/client/flow/models/QueryBuilder.d.ts +7 -1
- package/dist/client/flow/models/QueryBuilder.service.d.ts +19 -0
- package/dist/client/flow/resources/ChartResource.d.ts +1 -4
- package/dist/client/flow/utils.d.ts +4 -0
- package/dist/client/index.js +1 -1
- package/dist/client/utils.d.ts +11 -11
- package/dist/externalVersion.js +9 -9
- package/dist/locale/en-US.json +36 -9
- package/dist/locale/zh-CN.json +33 -6
- package/dist/node_modules/koa-compose/package.json +1 -1
- package/dist/node_modules/moment-timezone/package.json +1 -1
- package/package.json +2 -2
- package/dist/client/0c07b8c8a2f69574.js +0 -47
- package/dist/client/flow/models/ChartPreviewer.d.ts +0 -10
- package/dist/client/flow/models/FormItemLite.d.ts +0 -13
- package/dist/client/flow/models/queryBuilder.logic.d.ts +0 -25
package/dist/client/utils.d.ts
CHANGED
|
@@ -88,19 +88,19 @@ export declare const getSelectedFields: (fields: FieldOption[], query: QueryProp
|
|
|
88
88
|
name?: string;
|
|
89
89
|
type?: string;
|
|
90
90
|
interface?: string;
|
|
91
|
-
uiSchema?: import("@formily/
|
|
91
|
+
uiSchema?: import("@formily/json-schema").Stringify<{
|
|
92
92
|
[key: symbol]: any;
|
|
93
93
|
[key: `x-${string}`]: any;
|
|
94
94
|
[key: `x-${number}`]: any;
|
|
95
95
|
version?: string;
|
|
96
|
-
name?: import("@formily/
|
|
96
|
+
name?: import("@formily/json-schema").SchemaKey;
|
|
97
97
|
title?: any;
|
|
98
98
|
description?: any;
|
|
99
99
|
default?: any;
|
|
100
100
|
readOnly?: boolean;
|
|
101
101
|
writeOnly?: boolean;
|
|
102
|
-
type?: import("@formily/
|
|
103
|
-
enum?: import("@formily/
|
|
102
|
+
type?: import("@formily/json-schema").SchemaTypes;
|
|
103
|
+
enum?: import("@formily/json-schema").SchemaEnum<any>;
|
|
104
104
|
const?: any;
|
|
105
105
|
multipleOf?: number;
|
|
106
106
|
maximum?: number;
|
|
@@ -119,12 +119,12 @@ export declare const getSelectedFields: (fields: FieldOption[], query: QueryProp
|
|
|
119
119
|
format?: string;
|
|
120
120
|
$ref?: string;
|
|
121
121
|
$namespace?: string;
|
|
122
|
-
definitions?: import("@formily/
|
|
123
|
-
properties?: import("@formily/
|
|
124
|
-
items?: import("@formily/
|
|
125
|
-
additionalItems?: import("@formily/
|
|
126
|
-
patternProperties?: import("@formily/
|
|
127
|
-
additionalProperties?: import("@formily/
|
|
122
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
123
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
124
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
125
|
+
additionalItems?: import("@formily/json-schema").Stringify<any>;
|
|
126
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
127
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any>;
|
|
128
128
|
"x-value"?: any;
|
|
129
129
|
"x-index"?: number;
|
|
130
130
|
"x-pattern"?: any;
|
|
@@ -134,7 +134,7 @@ export declare const getSelectedFields: (fields: FieldOption[], query: QueryProp
|
|
|
134
134
|
"x-decorator-props"?: any;
|
|
135
135
|
"x-component"?: any;
|
|
136
136
|
"x-component-props"?: any;
|
|
137
|
-
"x-reactions"?: import("@formily/
|
|
137
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
|
|
138
138
|
"x-content"?: any;
|
|
139
139
|
"x-data"?: any;
|
|
140
140
|
"x-visible"?: boolean;
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.0.0-alpha.31",
|
|
12
12
|
"@formily/react": "2.3.7",
|
|
13
|
-
"@nocobase/plugin-ai": "2.0.0-alpha.
|
|
14
|
-
"@nocobase/flow-engine": "2.0.0-alpha.
|
|
13
|
+
"@nocobase/plugin-ai": "2.0.0-alpha.31",
|
|
14
|
+
"@nocobase/flow-engine": "2.0.0-alpha.31",
|
|
15
15
|
"react-i18next": "11.18.6",
|
|
16
16
|
"dayjs": "1.11.13",
|
|
17
17
|
"@formily/shared": "2.3.7",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
|
-
"@nocobase/cache": "2.0.0-alpha.
|
|
20
|
-
"@nocobase/server": "2.0.0-alpha.
|
|
21
|
-
"@nocobase/test": "2.0.0-alpha.
|
|
22
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
19
|
+
"@nocobase/cache": "2.0.0-alpha.31",
|
|
20
|
+
"@nocobase/server": "2.0.0-alpha.31",
|
|
21
|
+
"@nocobase/test": "2.0.0-alpha.31",
|
|
22
|
+
"@nocobase/utils": "2.0.0-alpha.31",
|
|
23
23
|
"react": "18.2.0",
|
|
24
24
|
"@emotion/css": "11.13.0",
|
|
25
25
|
"@ant-design/icons": "5.6.1",
|
|
@@ -27,8 +27,8 @@ module.exports = {
|
|
|
27
27
|
"antd": "5.24.2",
|
|
28
28
|
"@formily/antd-v5": "1.2.3",
|
|
29
29
|
"@formily/core": "2.3.7",
|
|
30
|
-
"@nocobase/actions": "2.0.0-alpha.
|
|
31
|
-
"@nocobase/database": "2.0.0-alpha.
|
|
30
|
+
"@nocobase/actions": "2.0.0-alpha.31",
|
|
31
|
+
"@nocobase/database": "2.0.0-alpha.31",
|
|
32
32
|
"sequelize": "6.35.2",
|
|
33
33
|
"@formily/reactive": "2.3.7"
|
|
34
34
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Chart settings": "Chart settings",
|
|
2
3
|
"Edit": "Edit",
|
|
3
4
|
"Delete": "Delete",
|
|
4
5
|
"Cancel": "Cancel",
|
|
@@ -15,10 +16,13 @@
|
|
|
15
16
|
"Transform": "Transform",
|
|
16
17
|
"Chart type": "Chart type",
|
|
17
18
|
"JSON config": "JSON config",
|
|
19
|
+
"Query builder": "Query builder",
|
|
20
|
+
"Data query": "Data query",
|
|
18
21
|
"Query": "Query",
|
|
19
22
|
"Data": "Data",
|
|
20
23
|
"Run query": "Run query",
|
|
21
|
-
"
|
|
24
|
+
"View data": "View data",
|
|
25
|
+
"Hide data": "Hide data",
|
|
22
26
|
"Measures": "Measures",
|
|
23
27
|
"Dimensions": "Dimensions",
|
|
24
28
|
"Filter": "Filter",
|
|
@@ -32,6 +36,8 @@
|
|
|
32
36
|
"Aggregation": "Aggregation",
|
|
33
37
|
"Alias": "Alias",
|
|
34
38
|
"Format": "Format",
|
|
39
|
+
"Chart options": "Chart options",
|
|
40
|
+
"Please click 'Run Query' to fetch data before configuring chart options": "Please click 'Run Query' to fetch data before configuring chart options",
|
|
35
41
|
"The first 10 records of the query result:": "The first 10 records of the query result:",
|
|
36
42
|
"Please run query to retrive data.": "Please run query to retrive data.",
|
|
37
43
|
"Type": "Type",
|
|
@@ -42,19 +48,22 @@
|
|
|
42
48
|
"seriesField": "Series field",
|
|
43
49
|
"angleField": "Angle field",
|
|
44
50
|
"colorField": "Color field",
|
|
45
|
-
"Line": "Line",
|
|
46
|
-
"Area": "Area",
|
|
47
|
-
"Column": "Column",
|
|
48
|
-
"Bar": "Bar",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
"Line": "Line Chart",
|
|
52
|
+
"Area": "Area Chart",
|
|
53
|
+
"Column": "Column Chart",
|
|
54
|
+
"Bar": "Bar Chart",
|
|
55
|
+
"Doughnut": "Doughnut Chart",
|
|
56
|
+
"Pie": "Pie Chart",
|
|
57
|
+
"Dual axes": "Dual axes Chart",
|
|
58
|
+
"Scatter": "Scatter Chart",
|
|
59
|
+
"Funnel": "Funnel Chart",
|
|
52
60
|
"Gauge": "Gauge",
|
|
53
61
|
"Statistic": "Statistic",
|
|
54
62
|
"Currency": "Currency",
|
|
55
63
|
"Percent": "Percent",
|
|
56
64
|
"Exponential": "Exponential",
|
|
57
65
|
"Abbreviation": "Abbreviation",
|
|
66
|
+
"Events": "Events",
|
|
58
67
|
"Please configure and run query": "Please configure and run query",
|
|
59
68
|
"Please configure chart": "Please configure chart",
|
|
60
69
|
"Are you sure to cancel?": "Are you sure to cancel?",
|
|
@@ -105,5 +114,23 @@
|
|
|
105
114
|
"Distinct": "Distinct",
|
|
106
115
|
"Auto refresh": "Auto refresh",
|
|
107
116
|
"Divide":"Divide",
|
|
108
|
-
"Multiply":"Multiply"
|
|
117
|
+
"Multiply":"Multiply",
|
|
118
|
+
"Select field": "Select Field",
|
|
119
|
+
"Optional series": "Optional series",
|
|
120
|
+
"descending": "descending",
|
|
121
|
+
"ascending": "ascending",
|
|
122
|
+
"percent": "Percent",
|
|
123
|
+
"value": "Value",
|
|
124
|
+
"Stack": "Stack",
|
|
125
|
+
"Split line": "Split line",
|
|
126
|
+
"X axis label rotate": "X axis label rotate",
|
|
127
|
+
"Label content": "Label content",
|
|
128
|
+
"Inner radius (%)": "Inner radius (%)",
|
|
129
|
+
"Outer radius (%)": "Outer radius (%)",
|
|
130
|
+
"Min size (%)": "Min size (%)",
|
|
131
|
+
"Max size (%)": "Max size (%)",
|
|
132
|
+
"Horizontal": "Horizontal",
|
|
133
|
+
"Vertical": "Vertical",
|
|
134
|
+
"Category field": "Category field",
|
|
135
|
+
"Value field": "Value field"
|
|
109
136
|
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Chart settings": "图表设置",
|
|
2
3
|
"Edit": "编辑",
|
|
3
4
|
"Delete": "删除",
|
|
4
5
|
"Cancel": "取消",
|
|
@@ -15,10 +16,13 @@
|
|
|
15
16
|
"Transform": "数据转换",
|
|
16
17
|
"Chart type": "图表类型",
|
|
17
18
|
"JSON config": "JSON 配置",
|
|
19
|
+
"Query builder": "查询构建器",
|
|
20
|
+
"Data query": "数据查询",
|
|
18
21
|
"Query": "查询",
|
|
19
22
|
"Data": "数据",
|
|
20
23
|
"Run query": "运行查询",
|
|
21
|
-
"
|
|
24
|
+
"View data": "查看数据",
|
|
25
|
+
"Hide data": "收起数据",
|
|
22
26
|
"Measures": "度量",
|
|
23
27
|
"Dimensions": "维度",
|
|
24
28
|
"Filter": "过滤",
|
|
@@ -32,6 +36,8 @@
|
|
|
32
36
|
"Aggregation": "聚合",
|
|
33
37
|
"Alias": "别名",
|
|
34
38
|
"Format": "格式",
|
|
39
|
+
"Chart options": "图表选项",
|
|
40
|
+
"Please click 'Run Query' to fetch data before configuring chart options": "请先点击”运行查询“获取数据,再配置图表选项",
|
|
35
41
|
"The first 10 records of the query result:": "查询结果的前 10 条记录:",
|
|
36
42
|
"Please run query to retrive data.": "请执行查询来获取数据。",
|
|
37
43
|
"Type": "类型",
|
|
@@ -46,15 +52,18 @@
|
|
|
46
52
|
"Area": "面积图",
|
|
47
53
|
"Column": "柱状图",
|
|
48
54
|
"Bar": "条形图",
|
|
55
|
+
"Doughnut": "环形图",
|
|
49
56
|
"Pie": "饼图",
|
|
50
57
|
"Dual axes": "双轴图",
|
|
51
58
|
"Scatter": "散点图",
|
|
59
|
+
"Funnel": "漏斗图",
|
|
52
60
|
"Gauge": "仪表盘",
|
|
53
61
|
"Statistic": "统计",
|
|
54
62
|
"Currency": "货币",
|
|
55
63
|
"Percent": "百分比",
|
|
56
64
|
"Exponential": "科学记数法",
|
|
57
65
|
"Abbreviation": "缩写",
|
|
66
|
+
"Events": "事件",
|
|
58
67
|
"Please configure and run query": "请配置并执行数据查询",
|
|
59
68
|
"Please configure chart": "请配置图表",
|
|
60
69
|
"Are you sure to cancel?": "确定要取消吗?",
|
|
@@ -95,10 +104,10 @@
|
|
|
95
104
|
"Size": "尺寸",
|
|
96
105
|
"Width": "宽",
|
|
97
106
|
"Height": "高",
|
|
98
|
-
"Smooth": "平滑
|
|
99
|
-
"Legend": "图例
|
|
100
|
-
"Tooltip": "
|
|
101
|
-
"Label": "标签
|
|
107
|
+
"Smooth": "平滑",
|
|
108
|
+
"Legend": "图例",
|
|
109
|
+
"Tooltip": "提示",
|
|
110
|
+
"Label": "标签",
|
|
102
111
|
"Aspect ratio": "宽高比",
|
|
103
112
|
"Fixed height": "固定高度",
|
|
104
113
|
"Show background": "显示背景",
|
|
@@ -106,5 +115,23 @@
|
|
|
106
115
|
"Distinct": "去重",
|
|
107
116
|
"Auto refresh": "自动刷新",
|
|
108
117
|
"Divide":"除以",
|
|
109
|
-
"Multiply":"乘以"
|
|
118
|
+
"Multiply":"乘以",
|
|
119
|
+
"Select field": "选择字段",
|
|
120
|
+
"Optional series": "可选分类",
|
|
121
|
+
"descending": "降序",
|
|
122
|
+
"ascending": "升序",
|
|
123
|
+
"percent": "百分比",
|
|
124
|
+
"value": "数值",
|
|
125
|
+
"Stack": "堆叠",
|
|
126
|
+
"Split line": "分隔线",
|
|
127
|
+
"X axis label rotate": "X轴标签旋转",
|
|
128
|
+
"Label content": "标签内容",
|
|
129
|
+
"Inner radius (%)": "内半径 (%)",
|
|
130
|
+
"Outer radius (%)": "外半径 (%)",
|
|
131
|
+
"Min size (%)": "最小尺寸 (%)",
|
|
132
|
+
"Max size (%)": "最大尺寸 (%)",
|
|
133
|
+
"Horizontal": "水平",
|
|
134
|
+
"Vertical": "垂直",
|
|
135
|
+
"Category field": "分类字段",
|
|
136
|
+
"Value field": "数值字段"
|
|
110
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2025-
|
|
1
|
+
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2025-11-03T01:55:15.437Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2025-
|
|
1
|
+
{"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2025-11-03T01:55:16.056Z"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-visualization",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.31",
|
|
4
4
|
"displayName": "Data visualization",
|
|
5
5
|
"displayName.zh-CN": "数据可视化",
|
|
6
6
|
"description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@nocobase/test": "2.x",
|
|
43
43
|
"@nocobase/utils": "2.x"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "1ccdc0a8af73f6c2e3e83df75741947a5a8c1984",
|
|
46
46
|
"keywords": [
|
|
47
47
|
"Blocks"
|
|
48
48
|
]
|