@nocobase/plugin-data-visualization-echarts 2.0.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.
Files changed (61) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/echarts/ReactEChart.d.ts +11 -0
  6. package/dist/client/echarts/bar.d.ts +14 -0
  7. package/dist/client/echarts/column.d.ts +22 -0
  8. package/dist/client/echarts/configs.d.ts +314 -0
  9. package/dist/client/echarts/diverging-bar.d.ts +7 -0
  10. package/dist/client/echarts/echart.d.ts +56 -0
  11. package/dist/client/echarts/funnel.d.ts +42 -0
  12. package/dist/client/echarts/index.d.ts +13 -0
  13. package/dist/client/echarts/line.d.ts +14 -0
  14. package/dist/client/echarts/pie.d.ts +15 -0
  15. package/dist/client/echarts/radar.d.ts +29 -0
  16. package/dist/client/echarts/themes/dark/chalk.d.ts +355 -0
  17. package/dist/client/echarts/themes/dark/dark.d.ts +355 -0
  18. package/dist/client/echarts/themes/dark/halloween.d.ts +362 -0
  19. package/dist/client/echarts/themes/dark/purple-passion.d.ts +355 -0
  20. package/dist/client/echarts/themes/light/essos.d.ts +355 -0
  21. package/dist/client/echarts/themes/light/infographic.d.ts +355 -0
  22. package/dist/client/echarts/themes/light/macarons.d.ts +355 -0
  23. package/dist/client/echarts/themes/light/roma.d.ts +355 -0
  24. package/dist/client/echarts/themes/light/shine.d.ts +355 -0
  25. package/dist/client/echarts/themes/light/vintage.d.ts +355 -0
  26. package/dist/client/echarts/themes/light/walden.d.ts +363 -0
  27. package/dist/client/echarts/themes/light/westeros.d.ts +355 -0
  28. package/dist/client/echarts/themes/light/wonderland.d.ts +355 -0
  29. package/dist/client/echarts/transform.d.ts +9 -0
  30. package/dist/client/echarts/treemap.d.ts +26 -0
  31. package/dist/client/echarts/wordcloud.d.ts +16 -0
  32. package/dist/client/index.d.ts +7 -0
  33. package/dist/client/index.js +10 -0
  34. package/dist/client/locale.d.ts +3 -0
  35. package/dist/externalVersion.js +16 -0
  36. package/dist/index.d.ts +2 -0
  37. package/dist/index.js +48 -0
  38. package/dist/locale/de-DE.json +78 -0
  39. package/dist/locale/en-US.json +78 -0
  40. package/dist/locale/es-ES.json +78 -0
  41. package/dist/locale/fr-FR.json +78 -0
  42. package/dist/locale/hu-HU.json +78 -0
  43. package/dist/locale/id-ID.json +78 -0
  44. package/dist/locale/it-IT.json +78 -0
  45. package/dist/locale/ja-JP.json +78 -0
  46. package/dist/locale/ko-KR.json +78 -0
  47. package/dist/locale/nl-NL.json +78 -0
  48. package/dist/locale/pt-BR.json +78 -0
  49. package/dist/locale/ru-RU.json +78 -0
  50. package/dist/locale/tr-TR.json +78 -0
  51. package/dist/locale/uk-UA.json +78 -0
  52. package/dist/locale/vi-VN.json +78 -0
  53. package/dist/locale/zh-CN.json +78 -0
  54. package/dist/locale/zh-TW.json +78 -0
  55. package/dist/server/index.d.ts +1 -0
  56. package/dist/server/index.js +42 -0
  57. package/dist/server/plugin.d.ts +11 -0
  58. package/dist/server/plugin.js +54 -0
  59. package/package.json +34 -0
  60. package/server.d.ts +2 -0
  61. package/server.js +1 -0
@@ -0,0 +1,78 @@
1
+ {
2
+ "100% stack": "百分比堆叠",
3
+ "Abscissa": "横坐标",
4
+ "Bar category gap": "柱子类别间距",
5
+ "Bar gap": "柱子间距",
6
+ "Bar width (min, max)": "柱子宽度(最小值,最大值)",
7
+ "Both x and y-axis": "X 轴和 Y 轴",
8
+ "Bottom": "下",
9
+ "Cardioid": "心形",
10
+ "Category name": "分类名称",
11
+ "Center": "中间",
12
+ "Center coordinates": "中心坐标",
13
+ "Circle": "圆形",
14
+ "Color by": "颜色按",
15
+ "Colors": "颜色",
16
+ "Dark mode theme": "深色模式主题",
17
+ "Data": "数据",
18
+ "Diverging bar": "对比条形图",
19
+ "End": "末尾",
20
+ "Funnel": "漏斗图",
21
+ "Funnel size (min, max)": "漏斗大小(最小值,最大值)",
22
+ "Horizontal": "水平",
23
+ "Inner radius": "内半径",
24
+ "Inside": "内部",
25
+ "Inside right": "内部右侧",
26
+ "Inside top": "内部顶部",
27
+ "Label position": "标签位置",
28
+ "Label type": "标签类型",
29
+ "Left": "左",
30
+ "Left X field": "左侧 X 轴字段",
31
+ "Legend orient": "图例方向",
32
+ "Legend position (left, bottom, right, top)": "图例位置 (左,下,右,上)",
33
+ "Light mode theme": "浅色模式主题",
34
+ "Mark line": "标记线",
35
+ "Max": "最大值",
36
+ "Middle": "中间",
37
+ "Min": "最小值",
38
+ "No stack": "不堆叠",
39
+ "Only x-axis": "仅 X 轴",
40
+ "Only y-axis": "仅 Y 轴",
41
+ "Ordinate": "纵坐标",
42
+ "Outside": "外部",
43
+ "Outter radius": "外半径",
44
+ "Padding (left, bottom, right, top)": "内边距 (左, 下, 右, 上)",
45
+ "Pentagon": "五边形",
46
+ "Percentage": "百分比",
47
+ "Polygon": "多边形",
48
+ "Radar": "雷达图",
49
+ "Radius": "半径",
50
+ "Range": "范围",
51
+ "Right": "右",
52
+ "Right X field": "右侧 X 轴字段",
53
+ "Series": "系列",
54
+ "Shape": "形状",
55
+ "Show label line": "显示标签线",
56
+ "Show legend": "显示图例",
57
+ "Split line": "网格线",
58
+ "Square": "正方形",
59
+ "Stack": "堆叠",
60
+ "Star": "星形",
61
+ "Start": "起始",
62
+ "Symbol": "标记点",
63
+ "Top": "上",
64
+ "Treemap": "矩形树图",
65
+ "Triangle": "三角形",
66
+ "Triangle forward": "正三角形",
67
+ "Use dimensions as variables": "使用维度作为变量",
68
+ "Use measures as variables": "使用度量作为变量",
69
+ "Vertical": "垂直",
70
+ "Word cloud": "词云图",
71
+ "X-Axis label rotate": "X 轴标签旋转",
72
+ "X-Axis title": "X 轴标题",
73
+ "Y-Axis inverse": "Y 轴反向",
74
+ "Y-Axis label rotate": "Y 轴标签旋转",
75
+ "Y-Axis title": "Y 轴标题",
76
+ "posRight": "右侧",
77
+ "posTop": "顶部"
78
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "100% stack": "100% stack",
3
+ "Abscissa": "Abscissa",
4
+ "Bar category gap": "Bar category gap",
5
+ "Bar gap": "Bar gap",
6
+ "Bar width (min, max)": "Bar width (min, max)",
7
+ "Both x and y-axis": "Both x and y-axis",
8
+ "Bottom": "Bottom",
9
+ "Cardioid": "Cardioid",
10
+ "Category name": "Category name",
11
+ "Center": "Center",
12
+ "Center coordinates": "Center coordinates",
13
+ "Circle": "Circle",
14
+ "Color by": "Color by",
15
+ "Colors": "Colors",
16
+ "Dark mode theme": "Dark mode theme",
17
+ "Data": "Data",
18
+ "Diverging bar": "Diverging bar",
19
+ "End": "End",
20
+ "Funnel": "Funnel",
21
+ "Funnel size (min, max)": "Funnel size (min, max)",
22
+ "Horizontal": "Horizontal",
23
+ "Inner radius": "Inner radius",
24
+ "Inside": "Inside",
25
+ "Inside right": "Inside right",
26
+ "Inside top": "Inside top",
27
+ "Label position": "Label position",
28
+ "Label type": "Label type",
29
+ "Left": "Left",
30
+ "Left X field": "Left X field",
31
+ "Legend orient": "Legend orient",
32
+ "Legend position (left, bottom, right, top)": "Legend position (left, bottom, right, top)",
33
+ "Light mode theme": "Light mode theme",
34
+ "Mark line": "Mark line",
35
+ "Max": "Max",
36
+ "Middle": "Middle",
37
+ "Min": "Min",
38
+ "No stack": "No stack",
39
+ "Only x-axis": "Only x-axis",
40
+ "Only y-axis": "Only y-axis",
41
+ "Ordinate": "Ordinate",
42
+ "Outside": "Outside",
43
+ "Outter radius": "Outter radius",
44
+ "Padding (left, bottom, right, top)": "Padding (left, bottom, right, top)",
45
+ "Pentagon": "Pentagon",
46
+ "Percentage": "Percentage",
47
+ "Polygon": "Polygon",
48
+ "Radar": "Radar",
49
+ "Radius": "Radius",
50
+ "Range": "Range",
51
+ "Right": "Right",
52
+ "Right X field": "Right X field",
53
+ "Series": "Series",
54
+ "Shape": "Shape",
55
+ "Show label line": "Show label line",
56
+ "Show legend": "Show legend",
57
+ "Split line": "Split line",
58
+ "Square": "Square",
59
+ "Stack": "Stack",
60
+ "Star": "Star",
61
+ "Start": "Start",
62
+ "Symbol": "Symbol",
63
+ "Top": "Top",
64
+ "Treemap": "Treemap",
65
+ "Triangle": "Triangle",
66
+ "Triangle forward": "Triangle forward",
67
+ "Use dimensions as variables": "Use dimensions as variables",
68
+ "Use measures as variables": "Use measures as variables",
69
+ "Vertical": "Vertical",
70
+ "Word cloud": "Word cloud",
71
+ "X-Axis label rotate": "X-Axis label rotate",
72
+ "X-Axis title": "X-Axis title",
73
+ "Y-Axis inverse": "Y-Axis inverse",
74
+ "Y-Axis label rotate": "Y-Axis label rotate",
75
+ "Y-Axis title": "Y-Axis title",
76
+ "posRight": "Right",
77
+ "posTop": "Top"
78
+ }
@@ -0,0 +1 @@
1
+ export { default } from './plugin';
@@ -0,0 +1,42 @@
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
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var server_exports = {};
38
+ __export(server_exports, {
39
+ default: () => import_plugin.default
40
+ });
41
+ module.exports = __toCommonJS(server_exports);
42
+ var import_plugin = __toESM(require("./plugin"));
@@ -0,0 +1,11 @@
1
+ import { Plugin } from '@nocobase/server';
2
+ export declare class PluginDataVisualizationEchartsServer extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ beforeLoad(): Promise<void>;
5
+ load(): Promise<void>;
6
+ install(): Promise<void>;
7
+ afterEnable(): Promise<void>;
8
+ afterDisable(): Promise<void>;
9
+ remove(): Promise<void>;
10
+ }
11
+ export default PluginDataVisualizationEchartsServer;
@@ -0,0 +1,54 @@
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
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var plugin_exports = {};
28
+ __export(plugin_exports, {
29
+ PluginDataVisualizationEchartsServer: () => PluginDataVisualizationEchartsServer,
30
+ default: () => plugin_default
31
+ });
32
+ module.exports = __toCommonJS(plugin_exports);
33
+ var import_server = require("@nocobase/server");
34
+ class PluginDataVisualizationEchartsServer extends import_server.Plugin {
35
+ async afterAdd() {
36
+ }
37
+ async beforeLoad() {
38
+ }
39
+ async load() {
40
+ }
41
+ async install() {
42
+ }
43
+ async afterEnable() {
44
+ }
45
+ async afterDisable() {
46
+ }
47
+ async remove() {
48
+ }
49
+ }
50
+ var plugin_default = PluginDataVisualizationEchartsServer;
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ PluginDataVisualizationEchartsServer
54
+ });
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@nocobase/plugin-data-visualization-echarts",
3
+ "displayName": "Data visualization: ECharts",
4
+ "displayName.zh-CN": "数据可视化:ECharts",
5
+ "description": "Utilize ECharts for data visualization, supporting for funnel, radar and more chart types and offering user-friendly configurations.",
6
+ "description.zh-CN": "使用 ECharts 实现数据可视化,支持漏斗图、雷达图等更多图表类型,并提供更友好的可视化配置。",
7
+ "homepage": "https://docs.nocobase.com/handbook/data-visualization/echarts",
8
+ "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/data-visualization/echarts",
9
+ "version": "2.0.3",
10
+ "main": "dist/server/index.js",
11
+ "nocobase": {
12
+ "supportedVersions": [
13
+ "1.x",
14
+ "2.x"
15
+ ],
16
+ "editionLevel": 0
17
+ },
18
+ "devDependencies": {
19
+ "echarts": "^5.5.0",
20
+ "echarts-for-react": "3.0.2",
21
+ "echarts-wordcloud": "^2.1.0"
22
+ },
23
+ "peerDependencies": {
24
+ "@nocobase/client": "2.x",
25
+ "@nocobase/plugin-data-visualization": "2.x",
26
+ "@nocobase/server": "2.x",
27
+ "@nocobase/test": "2.x"
28
+ },
29
+ "keywords": [
30
+ "Blocks"
31
+ ],
32
+ "license": "Apache-2.0",
33
+ "gitHead": "5bcb42fc092f85adb9511c1a351b388bd7aaf66e"
34
+ }
package/server.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/server';
2
+ export { default } from './dist/server';
package/server.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/server/index.js');