@nocobase/plugin-data-visualization 0.18.0-alpha.9 → 0.19.0-alpha.10

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.
@@ -1,20 +1,20 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.18.0-alpha.9",
2
+ "@nocobase/client": "0.19.0-alpha.10",
3
3
  "@formily/react": "2.3.0",
4
4
  "@formily/shared": "2.3.0",
5
5
  "lodash": "4.17.21",
6
- "@nocobase/cache": "0.18.0-alpha.9",
7
- "@nocobase/server": "0.18.0-alpha.9",
6
+ "@nocobase/cache": "0.19.0-alpha.10",
7
+ "@nocobase/server": "0.19.0-alpha.10",
8
8
  "react": "18.2.0",
9
9
  "@ant-design/icons": "5.2.6",
10
10
  "ahooks": "3.7.8",
11
11
  "dayjs": "1.11.10",
12
12
  "@emotion/css": "11.11.2",
13
- "antd": "5.12.2",
13
+ "antd": "5.12.8",
14
14
  "@formily/antd-v5": "1.1.9",
15
15
  "@formily/core": "2.3.0",
16
- "@nocobase/utils": "0.18.0-alpha.9",
17
- "@nocobase/database": "0.18.0-alpha.9",
16
+ "@nocobase/utils": "0.19.0-alpha.10",
17
+ "@nocobase/database": "0.19.0-alpha.10",
18
18
  "react-i18next": "11.18.6",
19
- "@nocobase/actions": "0.18.0-alpha.9"
19
+ "@nocobase/actions": "0.19.0-alpha.10"
20
20
  };
@@ -0,0 +1,85 @@
1
+ {
2
+ "Edit": "편집",
3
+ "Delete": "삭제",
4
+ "Cancel": "취소",
5
+ "Submit": "제출",
6
+ "Actions": "동작",
7
+ "Title": "제목",
8
+ "Enable": "활성화",
9
+ "Chart": "차트",
10
+ "ChartV2": "차트V2",
11
+ "Charts": "차트",
12
+ "Configure": "구성",
13
+ "Duplicate": "복제",
14
+ "Configure chart": "차트 구성",
15
+ "Transform": "데이터 변환",
16
+ "Chart type": "차트 유형",
17
+ "JSON config": "JSON 구성",
18
+ "Query": "쿼리",
19
+ "Data": "데이터",
20
+ "Run query": "쿼리 실행",
21
+ "Measures": "측정",
22
+ "Dimensions": "치수",
23
+ "Filter": "필터",
24
+ "Sort": "정렬",
25
+ "Limit": "결과 제한",
26
+ "Enable cache": "캐시 활성화",
27
+ "TTL (second)": "TTL (초)",
28
+ "Field": "필드",
29
+ "Aggregation": "집계",
30
+ "Alias": "별칭",
31
+ "Format": "형식",
32
+ "The first 10 records of the query result:": "쿼리 결과의 처음 10 개 레코드:",
33
+ "Please run query to retrieve data.": "데이터를 검색하려면 쿼리를 실행하십시오.",
34
+ "Type": "유형",
35
+ "Add field": "필드 추가",
36
+ "Add chart": "차트 추가",
37
+ "xField": "x축 필드",
38
+ "yField": "y축 필드",
39
+ "seriesField": "시리즈 필드",
40
+ "angleField": "각도 필드",
41
+ "colorField": "색상 필드",
42
+ "Line Chart": "선 그래프",
43
+ "Area Chart": "면적 그래프",
44
+ "Column Chart": "막대 그래프",
45
+ "Bar Chart": "막대 그래프",
46
+ "Pie Chart": "파이 차트",
47
+ "Dual Axes Chart": "이중 축 그래프",
48
+ "Scatter Chart": "산점도 차트",
49
+ "Gauge Chart": "게이지 차트",
50
+ "Statistic": "통계",
51
+ "Currency": "통화",
52
+ "Percent": "퍼센트",
53
+ "Exponential": "지수 표기법",
54
+ "Abbreviation": "약어",
55
+ "Please configure and run query": "쿼리를 구성하고 실행하세요.",
56
+ "Please configure chart": "차트를 구성하세요.",
57
+ "Are you sure to cancel?": "취소하시겠습니까?",
58
+ "Your changes are not saved. If you click OK, your changes will be lost.": "변경 내용이 저장되지 않았습니다. 확인을 클릭하면 변경 내용이 손실됩니다.",
59
+ "Same properties set in the form above will be overwritten by this JSON config.": "상단 양식에 설정된 동일한 속성은이 JSON 구성에 의해 덮어쓰기됩니다.",
60
+ "Built-in": "내장",
61
+ "Config reference: ": "구성 참조: ",
62
+ "Table": "테이블",
63
+ "Sum": "합계",
64
+ "Avg": "평균",
65
+ "Count": "계수",
66
+ "Min": "최소값",
67
+ "Max": "최대값",
68
+ "Please select a chart type.": "차트 유형을 선택하세요.",
69
+ "Collection": "데이터 테이블",
70
+ "isStack": "스택",
71
+ "isPercent": "백분율로 표시",
72
+ "isGroup": "그룹화",
73
+ "smooth": "부드러운 곡선",
74
+ "Collapse": "축소",
75
+ "Expand": "확장",
76
+ "Current filter": "현재 필터",
77
+ "Add custom field": "사용자 정의 필드 추가",
78
+ "To filter with custom fields, use 'Current filter' variables in the chart configuration.": "사용자 정의 필드로 필터링하려면 차트 구성에서 '현재 필터' 변수를 사용하세요.",
79
+ "Input": "입력",
80
+ "Date range": "날짜 범위",
81
+ "Time range": "시간 범위",
82
+ "Edit field properties": "필드 속성 편집",
83
+ "Select a source field to use metadata of the field": "필드의 메타데이터 구성에 사용할 소스 필드를 선택하세요.",
84
+ "Original field": "원본 필드"
85
+ }
@@ -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":"2024-01-03T02:07:57.641Z"}
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":"2024-03-13T14:26:19.117Z"}
@@ -41,31 +41,24 @@ var import_formatter = require("./formatter");
41
41
  var import_koa_compose = __toESM(require("koa-compose"));
42
42
  var import_utils = require("@nocobase/utils");
43
43
  const postProcess = async (ctx, next) => {
44
- const { sequelize } = ctx.db;
45
- const dialect = sequelize.getDialect();
46
44
  const { data, fieldMap } = ctx.action.params.values;
47
- switch (dialect) {
48
- case "postgres":
49
- ctx.body = data.map((record) => {
50
- const result = {};
51
- Object.entries(record).forEach(([key, value]) => {
52
- const { type } = fieldMap[key] || {};
53
- switch (type) {
54
- case "bigInt":
55
- case "integer":
56
- case "float":
57
- case "double":
58
- value = Number(value);
59
- break;
60
- }
61
- result[key] = value;
62
- });
63
- return result;
64
- });
65
- break;
66
- default:
67
- ctx.body = data;
68
- }
45
+ ctx.body = data.map((record) => {
46
+ Object.entries(record).forEach(([key, value]) => {
47
+ if (!value) {
48
+ return;
49
+ }
50
+ const { type } = fieldMap[key] || {};
51
+ switch (type) {
52
+ case "bigInt":
53
+ case "integer":
54
+ case "float":
55
+ case "double":
56
+ record[key] = Number(value);
57
+ break;
58
+ }
59
+ });
60
+ return record;
61
+ });
69
62
  await next();
70
63
  };
71
64
  const queryData = async (ctx, next) => {
@@ -1,4 +1,5 @@
1
1
  import { Migration } from '@nocobase/server';
2
2
  export default class RenameChartTypeMigration extends Migration {
3
+ appVersion: string;
3
4
  up(): Promise<void>;
4
5
  }
@@ -22,6 +22,7 @@ __export(rename_charttype_exports, {
22
22
  module.exports = __toCommonJS(rename_charttype_exports);
23
23
  var import_server = require("@nocobase/server");
24
24
  class RenameChartTypeMigration extends import_server.Migration {
25
+ appVersion = "<0.14.0-alpha.7";
25
26
  async up() {
26
27
  const result = await this.app.version.satisfies("<=0.14.0-alpha.7");
27
28
  if (!result) {
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "0.18.0-alpha.9",
4
- "displayName": "Data Visualization",
3
+ "version": "0.19.0-alpha.10",
4
+ "displayName": "Data visualization",
5
5
  "displayName.zh-CN": "数据可视化",
6
- "description": "Provides business intelligence and data visualization features",
7
- "description.zh-CN": "提供 BI 面板和数据可视化功能",
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.",
7
+ "description.zh-CN": "提供数据可视化功能,包含图表区块和图表筛选区块,支持折线图、面积图、柱状图等十几种图表,你也可以扩展更多图表类型。",
8
8
  "main": "dist/server/index.js",
9
+ "homepage": "https://docs.nocobase.com/plugins/data-visualization",
10
+ "homepage.zh-CN": "https://docs-cn.nocobase.com/plugins/data-visualization",
9
11
  "devDependencies": {
10
12
  "@ant-design/icons": "5.x",
11
13
  "@ant-design/plots": "^1.2.5",
@@ -31,5 +33,8 @@
31
33
  "@nocobase/test": "0.x",
32
34
  "@nocobase/utils": "0.x"
33
35
  },
34
- "gitHead": "34ca0df4eede2e83fc86297b0fe19eba970e2b1b"
36
+ "gitHead": "d09d81eba67339da36bcec27939a85b35d180770",
37
+ "keywords": [
38
+ "Blocks"
39
+ ]
35
40
  }