@nocobase/plugin-charts 1.3.0-alpha.20240710084543 → 1.3.0-alpha.20240710155619

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 (84) hide show
  1. package/dist/client/ChartBlockEngine.d.ts +36 -0
  2. package/dist/client/ChartBlockEngineDesigner.d.ts +12 -0
  3. package/dist/client/ChartBlockInitializer.d.ts +11 -0
  4. package/dist/client/ChartQueryBlockInitializer.d.ts +18 -0
  5. package/dist/client/ChartQueryMetadataProvider.d.ts +18 -0
  6. package/dist/client/DataSetPreviewTable.d.ts +14 -0
  7. package/dist/client/Icons.d.ts +9 -0
  8. package/dist/client/chartRenderComponents/index.d.ts +10 -0
  9. package/dist/client/hooks/index.d.ts +12 -0
  10. package/dist/client/index.d.ts +15 -0
  11. package/dist/client/index.js +53 -0
  12. package/dist/client/locale/index.d.ts +11 -0
  13. package/dist/client/select/CustomSelect.d.ts +19 -0
  14. package/dist/client/select/ReadPretty.d.ts +10 -0
  15. package/dist/client/select/index.d.ts +10 -0
  16. package/dist/client/select/shared.d.ts +15 -0
  17. package/dist/client/settings/AddNewQuery.d.ts +11 -0
  18. package/dist/client/settings/ConfigureFields.d.ts +10 -0
  19. package/dist/client/settings/QueriesTable.d.ts +10 -0
  20. package/dist/client/settings/queryTypes.d.ts +13 -0
  21. package/dist/client/settings/schemas/chartsQueries.d.ts +16 -0
  22. package/dist/client/templates/AreaTemplate.d.ts +73 -0
  23. package/dist/client/templates/BarTemplate.d.ts +88 -0
  24. package/dist/client/templates/ColumnTemplate.d.ts +88 -0
  25. package/dist/client/templates/FunnelTemplate.d.ts +74 -0
  26. package/dist/client/templates/LineTemplate.d.ts +75 -0
  27. package/dist/client/templates/PieTemplate.d.ts +79 -0
  28. package/dist/client/templates/RadarTemplate.d.ts +79 -0
  29. package/dist/client/templates/ScatterTemplate.d.ts +99 -0
  30. package/dist/client/templates/TableTemplate.d.ts +36 -0
  31. package/dist/client/templates/index.d.ts +9 -0
  32. package/dist/client/utils.d.ts +11 -0
  33. package/dist/externalVersion.js +25 -0
  34. package/dist/index.d.ts +10 -0
  35. package/dist/index.js +48 -0
  36. package/dist/locale/en-US.d.ts +31 -0
  37. package/dist/locale/en-US.js +53 -0
  38. package/dist/locale/es-ES.d.ts +61 -0
  39. package/dist/locale/es-ES.js +83 -0
  40. package/dist/locale/fr-FR.d.ts +10 -0
  41. package/dist/locale/fr-FR.js +32 -0
  42. package/dist/locale/ja-JP.d.ts +10 -0
  43. package/dist/locale/ja-JP.js +32 -0
  44. package/dist/locale/ko_KR.d.ts +70 -0
  45. package/dist/locale/ko_KR.js +92 -0
  46. package/dist/locale/pt-BR.d.ts +31 -0
  47. package/dist/locale/pt-BR.js +53 -0
  48. package/dist/locale/ru-RU.d.ts +10 -0
  49. package/dist/locale/ru-RU.js +32 -0
  50. package/dist/locale/tr-TR.d.ts +10 -0
  51. package/dist/locale/tr-TR.js +32 -0
  52. package/dist/locale/zh-CN.d.ts +70 -0
  53. package/dist/locale/zh-CN.js +92 -0
  54. package/dist/node_modules/json5/dist/index.js +1737 -0
  55. package/dist/node_modules/json5/dist/index.min.js +1 -0
  56. package/dist/node_modules/json5/lib/cli.js +152 -0
  57. package/dist/node_modules/json5/lib/index.d.ts +4 -0
  58. package/dist/node_modules/json5/lib/index.js +1 -0
  59. package/dist/node_modules/json5/lib/parse.d.ts +15 -0
  60. package/dist/node_modules/json5/lib/parse.js +1114 -0
  61. package/dist/node_modules/json5/lib/register.js +13 -0
  62. package/dist/node_modules/json5/lib/require.js +4 -0
  63. package/dist/node_modules/json5/lib/stringify.d.ts +89 -0
  64. package/dist/node_modules/json5/lib/stringify.js +261 -0
  65. package/dist/node_modules/json5/lib/unicode.d.ts +3 -0
  66. package/dist/node_modules/json5/lib/unicode.js +4 -0
  67. package/dist/node_modules/json5/lib/util.d.ts +5 -0
  68. package/dist/node_modules/json5/lib/util.js +35 -0
  69. package/dist/node_modules/json5/package.json +1 -0
  70. package/dist/server/actions/chartsQueries.d.ts +11 -0
  71. package/dist/server/actions/chartsQueries.js +95 -0
  72. package/dist/server/actions/index.d.ts +8 -0
  73. package/dist/server/actions/index.js +9 -0
  74. package/dist/server/collections/chartsQueries.d.ts +10 -0
  75. package/dist/server/collections/chartsQueries.js +56 -0
  76. package/dist/server/index.d.ts +9 -0
  77. package/dist/server/index.js +42 -0
  78. package/dist/server/plugin.d.ts +22 -0
  79. package/dist/server/plugin.js +98 -0
  80. package/dist/server/query.d.ts +20 -0
  81. package/dist/server/query.js +68 -0
  82. package/dist/server/shared/index.d.ts +10 -0
  83. package/dist/server/shared/index.js +36 -0
  84. package/package.json +2 -2
@@ -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
+ declare const _default: {};
10
+ export default _default;
@@ -0,0 +1,32 @@
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 tr_TR_exports = {};
28
+ __export(tr_TR_exports, {
29
+ default: () => tr_TR_default
30
+ });
31
+ module.exports = __toCommonJS(tr_TR_exports);
32
+ var tr_TR_default = {};
@@ -0,0 +1,70 @@
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 _default: {
10
+ Edit: string;
11
+ Delete: string;
12
+ Cancel: string;
13
+ Submit: string;
14
+ Actions: string;
15
+ Title: string;
16
+ Enable: string;
17
+ Chart: string;
18
+ Charts: string;
19
+ Queries: string;
20
+ 'Select chart query': string;
21
+ 'Select query data': string;
22
+ Type: string;
23
+ 'Chart type': string;
24
+ 'Chart title': string;
25
+ 'Basic charts': string;
26
+ 'More charts': string;
27
+ 'Chart config': string;
28
+ 'Add query': string;
29
+ 'Edit query': string;
30
+ 'Invalid JSON format,must be an object array.': string;
31
+ Area: string;
32
+ Bar: string;
33
+ Column: string;
34
+ Funnel: string;
35
+ Line: string;
36
+ Pie: string;
37
+ Radar: string;
38
+ Scatter: string;
39
+ 'Edit chart block': string;
40
+ 'Chart preview': string;
41
+ 'Delete queries': string;
42
+ 'Delete query': string;
43
+ 'Add chart query': string;
44
+ 'Add SQL query': string;
45
+ 'Add JSON query': string;
46
+ 'Data preview': string;
47
+ 'Category axis / Dimension': string;
48
+ 'Value axis / Metrics': string;
49
+ 'JSON config': string;
50
+ 'Json config references': string;
51
+ 'Create chart block': string;
52
+ 'Invalid JSON format': string;
53
+ 'Json config references: ': string;
54
+ 'Sector Angle / Metric': string;
55
+ 'Sector label / Dimensional': string;
56
+ 'Color legend / Dimensional': string;
57
+ 'Funnel Layer Width/Metrics': string;
58
+ 'Branch Tags/Dimensions': string;
59
+ 'Branch Length/Metrics': string;
60
+ 'Please check the chart config': string;
61
+ '1 \u300Ctime\u300Dor \u300COrdered Noun\u300D field,1 \u300CNumerical\u300D field,1 \u300CUnordered Noun\u300D field (optional)': string;
62
+ '1 \u300Ctime\u300D or \u300Cordered noun\u300D field, 1 \u300Cvalue\u300D field, 0~ 1 \u300Cunordered noun\u300D': string;
63
+ '1 \u300Ctime\u300D or \u300Cordered noun\u300D field, 1 \u300Cvalue\u300D field, 0 to 1 \u300Cunordered noun\u300D': string;
64
+ '1 \u300CUnordered Noun\u300D field, 1 \u300CNumeric\u300D field': string;
65
+ '1 \u300CTime\u300D or \u300COrder Noun\u300D field, 1 \u300CValue\u300D field': string;
66
+ '1~ 2 \u300CUnordered Noun\u300D fields, 1 \u300CNumeric\u300D field': string;
67
+ '1 \u300CNumeric\u300D field, 0~ 1 \u300CUnordered Noun\u300D field': string;
68
+ 'Chart (Old)': string;
69
+ };
70
+ export default _default;
@@ -0,0 +1,92 @@
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 zh_CN_exports = {};
28
+ __export(zh_CN_exports, {
29
+ default: () => zh_CN_default
30
+ });
31
+ module.exports = __toCommonJS(zh_CN_exports);
32
+ var zh_CN_default = {
33
+ Edit: "\u7F16\u8F91",
34
+ Delete: "\u5220\u9664",
35
+ Cancel: "\u53D6\u6D88",
36
+ Submit: "\u63D0\u4EA4",
37
+ Actions: "\u64CD\u4F5C",
38
+ Title: "\u540D\u79F0",
39
+ Enable: "\u542F\u7528",
40
+ Chart: "\u56FE\u8868",
41
+ Charts: "\u56FE\u8868",
42
+ Queries: "\u67E5\u8BE2\u5217\u8868",
43
+ "Select chart query": "\u9009\u62E9\u56FE\u8868\u6570\u636E",
44
+ "Select query data": "\u9009\u62E9\u67E5\u8BE2\u6570\u636E",
45
+ Type: "\u7C7B\u578B",
46
+ "Chart type": "\u56FE\u8868\u7C7B\u578B",
47
+ "Chart title": "\u56FE\u8868\u6807\u9898",
48
+ "Basic charts": "\u57FA\u7840\u56FE\u8868",
49
+ "More charts": "\u66F4\u591A\u56FE\u8868",
50
+ "Chart config": "\u56FE\u8868\u914D\u7F6E",
51
+ "Add query": "\u6DFB\u52A0\u67E5\u8BE2",
52
+ "Edit query": "\u7F16\u8F91\u67E5\u8BE2",
53
+ "Invalid JSON format,must be an object array.": "\u65E0\u6548\u7684JSON\u683C\u5F0F\uFF0C\u5FC5\u987B\u662F\u5BF9\u8C61\u6570\u7EC4\u3002",
54
+ Area: "\u9762\u79EF\u56FE",
55
+ Bar: "\u6761\u5F62\u56FE",
56
+ Column: "\u67F1\u72B6\u56FE",
57
+ Funnel: "\u6F0F\u6597\u56FE",
58
+ Line: "\u6298\u7EBF\u56FE",
59
+ Pie: "\u997C\u56FE",
60
+ Radar: "\u96F7\u8FBE\u56FE",
61
+ Scatter: "\u6563\u70B9\u56FE",
62
+ "Edit chart block": "\u7F16\u8F91\u56FE\u8868\u533A\u5757",
63
+ "Chart preview": "\u56FE\u8868\u9884\u89C8",
64
+ "Delete queries": "\u5220\u9664\u67E5\u8BE2\u5217\u8868",
65
+ "Delete query": "\u5220\u9664\u67E5\u8BE2",
66
+ "Add chart query": "\u6DFB\u52A0\u56FE\u8868\u67E5\u8BE2",
67
+ "Add SQL query": "\u6DFB\u52A0SQL\u67E5\u8BE2",
68
+ "Add JSON query": "\u6DFB\u52A0JSON\u67E5\u8BE2",
69
+ "Data preview": "\u6570\u636E\u9884\u89C8",
70
+ "Category axis / Dimension": "\u7C7B\u522B\u8F74 / \u7EF4\u5EA6",
71
+ "Value axis / Metrics": "\u503C\u8F74 / \u5EA6\u91CF",
72
+ "JSON config": "JSON \u914D\u7F6E",
73
+ "Json config references": "JSON\u914D\u7F6E\u53C2\u8003",
74
+ "Create chart block": "\u521B\u5EFA\u56FE\u8868\u533A\u5757",
75
+ "Invalid JSON format": "\u65E0\u6548\u7684JSON\u683C\u5F0F",
76
+ "Json config references: ": "JSON\u914D\u7F6E\u53C2\u8003: ",
77
+ "Sector Angle / Metric": "\u6247\u5F62\u89D2 / \u5EA6\u91CF",
78
+ "Sector label / Dimensional": "\u6247\u5F62\u6807\u7B7E / \u7EF4\u5EA6",
79
+ "Color legend / Dimensional": "\u989C\u8272\u7CFB\u5217 / \u7EF4\u5EA6",
80
+ "Funnel Layer Width/Metrics": "\u6F0F\u6597\u5C42\u5BBD\u5EA6 / \u5EA6\u91CF",
81
+ "Branch Tags/Dimensions": "\u5206\u652F\u6807\u7B7E / \u7EF4\u5EA6",
82
+ "Branch Length/Metrics": "\u5206\u652F\u957F\u5EA6 / \u5EA6\u91CF",
83
+ "Please check the chart config": "\u8BF7\u68C0\u67E5\u56FE\u8868\u914D\u7F6E",
84
+ "1 \u300Ctime\u300Dor \u300COrdered Noun\u300D field,1 \u300CNumerical\u300D field,1 \u300CUnordered Noun\u300D field (optional)": "1 \u4E2A\u300C\u65F6\u95F4\u300D\u6216\u300C\u6709\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5(\u53EF\u9009)",
85
+ "1 \u300Ctime\u300D or \u300Cordered noun\u300D field, 1 \u300Cvalue\u300D field, 0~ 1 \u300Cunordered noun\u300D": "1 \u4E2A\u300C\u65F6\u95F4\u300D\u6216\u300C\u6709\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5,0 \uFF5E 1 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D",
86
+ "1 \u300Ctime\u300D or \u300Cordered noun\u300D field, 1 \u300Cvalue\u300D field, 0 to 1 \u300Cunordered noun\u300D": "1 \u4E2A\u300C\u65F6\u95F4\u300D\u6216\u300C\u6709\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5,0 \uFF5E 1 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D",
87
+ "1 \u300CUnordered Noun\u300D field, 1 \u300CNumeric\u300D field": "1 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5",
88
+ "1 \u300CTime\u300D or \u300COrder Noun\u300D field, 1 \u300CValue\u300D field": "1 \u4E2A\u300C\u65F6\u95F4\u300D\u6216\u300C\u6709\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5",
89
+ "1~ 2 \u300CUnordered Noun\u300D fields, 1 \u300CNumeric\u300D field": "1 ~ 2 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5,1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5",
90
+ "1 \u300CNumeric\u300D field, 0~ 1 \u300CUnordered Noun\u300D field": "1 \u4E2A\u300C\u6570\u503C\u300D\u5B57\u6BB5,0 ~ 1 \u4E2A\u300C\u65E0\u5E8F\u540D\u8BCD\u300D\u5B57\u6BB5",
91
+ "Chart (Old)": "\u56FE\u8868 (\u65E7)"
92
+ };