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

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/package.json +2 -2
  2. package/dist/client/ChartBlockEngine.d.ts +0 -36
  3. package/dist/client/ChartBlockEngineDesigner.d.ts +0 -12
  4. package/dist/client/ChartBlockInitializer.d.ts +0 -11
  5. package/dist/client/ChartQueryBlockInitializer.d.ts +0 -18
  6. package/dist/client/ChartQueryMetadataProvider.d.ts +0 -18
  7. package/dist/client/DataSetPreviewTable.d.ts +0 -14
  8. package/dist/client/Icons.d.ts +0 -9
  9. package/dist/client/chartRenderComponents/index.d.ts +0 -10
  10. package/dist/client/hooks/index.d.ts +0 -12
  11. package/dist/client/index.d.ts +0 -15
  12. package/dist/client/index.js +0 -53
  13. package/dist/client/locale/index.d.ts +0 -11
  14. package/dist/client/select/CustomSelect.d.ts +0 -19
  15. package/dist/client/select/ReadPretty.d.ts +0 -10
  16. package/dist/client/select/index.d.ts +0 -10
  17. package/dist/client/select/shared.d.ts +0 -15
  18. package/dist/client/settings/AddNewQuery.d.ts +0 -11
  19. package/dist/client/settings/ConfigureFields.d.ts +0 -10
  20. package/dist/client/settings/QueriesTable.d.ts +0 -10
  21. package/dist/client/settings/queryTypes.d.ts +0 -13
  22. package/dist/client/settings/schemas/chartsQueries.d.ts +0 -16
  23. package/dist/client/templates/AreaTemplate.d.ts +0 -73
  24. package/dist/client/templates/BarTemplate.d.ts +0 -88
  25. package/dist/client/templates/ColumnTemplate.d.ts +0 -88
  26. package/dist/client/templates/FunnelTemplate.d.ts +0 -74
  27. package/dist/client/templates/LineTemplate.d.ts +0 -75
  28. package/dist/client/templates/PieTemplate.d.ts +0 -79
  29. package/dist/client/templates/RadarTemplate.d.ts +0 -79
  30. package/dist/client/templates/ScatterTemplate.d.ts +0 -99
  31. package/dist/client/templates/TableTemplate.d.ts +0 -36
  32. package/dist/client/templates/index.d.ts +0 -9
  33. package/dist/client/utils.d.ts +0 -11
  34. package/dist/externalVersion.js +0 -25
  35. package/dist/index.d.ts +0 -10
  36. package/dist/index.js +0 -48
  37. package/dist/locale/en-US.d.ts +0 -31
  38. package/dist/locale/en-US.js +0 -53
  39. package/dist/locale/es-ES.d.ts +0 -61
  40. package/dist/locale/es-ES.js +0 -83
  41. package/dist/locale/fr-FR.d.ts +0 -10
  42. package/dist/locale/fr-FR.js +0 -32
  43. package/dist/locale/ja-JP.d.ts +0 -10
  44. package/dist/locale/ja-JP.js +0 -32
  45. package/dist/locale/ko_KR.d.ts +0 -70
  46. package/dist/locale/ko_KR.js +0 -92
  47. package/dist/locale/pt-BR.d.ts +0 -31
  48. package/dist/locale/pt-BR.js +0 -53
  49. package/dist/locale/ru-RU.d.ts +0 -10
  50. package/dist/locale/ru-RU.js +0 -32
  51. package/dist/locale/tr-TR.d.ts +0 -10
  52. package/dist/locale/tr-TR.js +0 -32
  53. package/dist/locale/zh-CN.d.ts +0 -70
  54. package/dist/locale/zh-CN.js +0 -92
  55. package/dist/node_modules/json5/dist/index.js +0 -1737
  56. package/dist/node_modules/json5/dist/index.min.js +0 -1
  57. package/dist/node_modules/json5/lib/cli.js +0 -152
  58. package/dist/node_modules/json5/lib/index.d.ts +0 -4
  59. package/dist/node_modules/json5/lib/index.js +0 -1
  60. package/dist/node_modules/json5/lib/parse.d.ts +0 -15
  61. package/dist/node_modules/json5/lib/parse.js +0 -1114
  62. package/dist/node_modules/json5/lib/register.js +0 -13
  63. package/dist/node_modules/json5/lib/require.js +0 -4
  64. package/dist/node_modules/json5/lib/stringify.d.ts +0 -89
  65. package/dist/node_modules/json5/lib/stringify.js +0 -261
  66. package/dist/node_modules/json5/lib/unicode.d.ts +0 -3
  67. package/dist/node_modules/json5/lib/unicode.js +0 -4
  68. package/dist/node_modules/json5/lib/util.d.ts +0 -5
  69. package/dist/node_modules/json5/lib/util.js +0 -35
  70. package/dist/node_modules/json5/package.json +0 -1
  71. package/dist/server/actions/chartsQueries.d.ts +0 -11
  72. package/dist/server/actions/chartsQueries.js +0 -95
  73. package/dist/server/actions/index.d.ts +0 -8
  74. package/dist/server/actions/index.js +0 -9
  75. package/dist/server/collections/chartsQueries.d.ts +0 -10
  76. package/dist/server/collections/chartsQueries.js +0 -56
  77. package/dist/server/index.d.ts +0 -9
  78. package/dist/server/index.js +0 -42
  79. package/dist/server/plugin.d.ts +0 -22
  80. package/dist/server/plugin.js +0 -98
  81. package/dist/server/query.d.ts +0 -20
  82. package/dist/server/query.js +0 -68
  83. package/dist/server/shared/index.d.ts +0 -10
  84. package/dist/server/shared/index.js +0 -36
@@ -1,73 +0,0 @@
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 areaTemplate: {
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
- };
21
- configurableProperties: {
22
- type: string;
23
- properties: {
24
- dimension: {
25
- required: boolean;
26
- type: string;
27
- title: string;
28
- 'x-decorator': string;
29
- 'x-component': string;
30
- enum: string;
31
- };
32
- metric: {
33
- required: boolean;
34
- type: string;
35
- title: string;
36
- 'x-decorator': string;
37
- 'x-component': string;
38
- enum: string;
39
- };
40
- category: {
41
- type: string;
42
- title: string;
43
- 'x-decorator': string;
44
- 'x-component': string;
45
- enum: string;
46
- };
47
- jsonConfig: {
48
- type: string;
49
- 'x-component': string;
50
- properties: {
51
- template: {
52
- required: boolean;
53
- title: string;
54
- type: string;
55
- default: string;
56
- 'x-decorator': string;
57
- 'x-component': string;
58
- 'x-component-props': {
59
- autoSize: {
60
- minRows: number;
61
- maxRows: number;
62
- };
63
- };
64
- description: string;
65
- 'x-validator': {
66
- json5: boolean;
67
- };
68
- };
69
- };
70
- };
71
- };
72
- };
73
- };
@@ -1,88 +0,0 @@
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
- };
@@ -1,88 +0,0 @@
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
- };
@@ -1,74 +0,0 @@
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
- };
@@ -1,75 +0,0 @@
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
- };
@@ -1,79 +0,0 @@
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
- };
@@ -1,79 +0,0 @@
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
- };
@@ -1,99 +0,0 @@
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
- };
@@ -1,36 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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>;