@nocobase/plugin-data-visualization 1.4.0-alpha.20240903050434 → 1.4.0-alpha.20240903083725

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.
@@ -0,0 +1,14 @@
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
+ import React from 'react';
10
+ export declare const BlockRefreshButton: React.FC;
11
+ export declare const useChartBlockRefreshActionProps: () => {
12
+ onClick: () => void;
13
+ };
14
+ export declare const BlockRefreshActionInitializer: (props: any) => React.JSX.Element;
@@ -0,0 +1,14 @@
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
+ import React from 'react';
10
+ export declare const RefreshButton: React.FC;
11
+ export declare const useChartRefreshActionProps: () => {
12
+ onClick: any;
13
+ };
14
+ export declare const RefreshActionInitializer: (props: any) => React.JSX.Element;
@@ -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
+ import { SchemaInitializer } from '@nocobase/client';
10
+ export declare const chartActionsInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -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
+ import { SchemaInitializer } from '@nocobase/client';
10
+ export declare const chartBlockActionsInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -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
+ import React from 'react';
10
+ export declare function ChartRendererDesigner(): React.JSX.Element;
@@ -45,12 +45,18 @@ export type ChartRendererProps = {
45
45
  chartType: string;
46
46
  general: any;
47
47
  advanced: any;
48
+ title?: string;
49
+ bordered?: boolean;
48
50
  };
49
51
  transform?: TransformProps[];
50
52
  mode?: 'builder' | 'sql';
53
+ disableAutoRefresh?: boolean;
51
54
  };
52
55
  export declare const ChartRendererContext: React.Context<{
53
56
  service: any;
54
57
  data?: any[];
58
+ autoRefresh?: number | boolean;
59
+ setAutoRefresh?: (autoRefresh: number | boolean) => void;
60
+ showActionBar?: boolean;
55
61
  } & ChartRendererProps>;
56
62
  export declare const ChartRendererProvider: React.FC<ChartRendererProps>;
@@ -0,0 +1,13 @@
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
+ import React from 'react';
10
+ export declare const AutoRefreshItem: React.FC<{
11
+ value: number | boolean;
12
+ onChange?: (value: any) => void;
13
+ }>;
@@ -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
+ import { SchemaSettings } from '@nocobase/client';
10
+ export declare const chartActionRefreshSettings: SchemaSettings<{}>;
@@ -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
+ import { SchemaSettings } from '@nocobase/client';
10
+ export declare const chartBlockActionRefreshSettings: SchemaSettings<{}>;
@@ -23,9 +23,51 @@ export declare const createRendererSchema: (decoratorProps: any, componentProps?
23
23
  'x-initializer': string;
24
24
  properties: {
25
25
  [x: string]: {
26
+ type: string;
27
+ 'x-decorator': string;
28
+ 'x-decorator-props': {
29
+ style: {
30
+ position: string;
31
+ top: number;
32
+ right: number;
33
+ zIndex: number;
34
+ };
35
+ };
36
+ 'x-component': string;
37
+ 'x-component-props': {
38
+ style: {
39
+ marginRight: string;
40
+ marginTop: string;
41
+ };
42
+ };
43
+ 'x-initializer': string;
44
+ } | {
26
45
  type: string;
27
46
  'x-component': string;
28
47
  'x-component-props': {};
48
+ 'x-decorator'?: undefined;
49
+ 'x-decorator-props'?: undefined;
50
+ 'x-initializer'?: undefined;
51
+ };
52
+ actions: {
53
+ type: string;
54
+ 'x-decorator': string;
55
+ 'x-decorator-props': {
56
+ style: {
57
+ position: string;
58
+ top: number;
59
+ right: number;
60
+ zIndex: number;
61
+ };
62
+ };
63
+ 'x-component': string;
64
+ 'x-component-props': {
65
+ style: {
66
+ marginRight: string;
67
+ marginTop: string;
68
+ };
69
+ };
70
+ 'x-initializer': string;
29
71
  };
30
72
  };
31
73
  };
@@ -8,23 +8,23 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha.20240903050434",
11
+ "@nocobase/client": "1.4.0-alpha.20240903083725",
12
12
  "dayjs": "1.11.10",
13
13
  "@formily/react": "2.3.0",
14
14
  "@formily/shared": "2.3.0",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/cache": "1.4.0-alpha.20240903050434",
17
- "@nocobase/server": "1.4.0-alpha.20240903050434",
18
16
  "react": "18.2.0",
17
+ "@nocobase/cache": "1.4.0-alpha.20240903083725",
18
+ "@nocobase/server": "1.4.0-alpha.20240903083725",
19
19
  "@emotion/css": "11.11.2",
20
20
  "@ant-design/icons": "5.2.6",
21
21
  "ahooks": "3.7.8",
22
22
  "antd": "5.12.8",
23
23
  "@formily/antd-v5": "1.1.9",
24
24
  "@formily/core": "2.3.0",
25
- "@nocobase/utils": "1.4.0-alpha.20240903050434",
25
+ "@nocobase/utils": "1.4.0-alpha.20240903083725",
26
26
  "react-i18next": "11.18.6",
27
27
  "sequelize": "6.35.2",
28
- "@nocobase/actions": "1.4.0-alpha.20240903050434",
29
- "@nocobase/database": "1.4.0-alpha.20240903050434"
28
+ "@nocobase/actions": "1.4.0-alpha.20240903083725",
29
+ "@nocobase/database": "1.4.0-alpha.20240903083725"
30
30
  };
@@ -95,5 +95,6 @@
95
95
  "Fixed height": "Fixed height",
96
96
  "Show background": "Show background",
97
97
  "Show padding": "Show padding",
98
- "Distinct": "Distinct"
98
+ "Distinct": "Distinct",
99
+ "Auto refresh": "Auto refresh"
99
100
  }
@@ -96,5 +96,6 @@
96
96
  "Fixed height": "固定高度",
97
97
  "Show background": "显示背景",
98
98
  "Show padding": "显示内边距",
99
- "Distinct": "去重"
99
+ "Distinct": "去重",
100
+ "Auto refresh": "自动刷新"
100
101
  }
@@ -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-09-03T05:16:05.958Z"}
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-09-03T08:48:25.122Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.4.0-alpha.20240903050434",
3
+ "version": "1.4.0-alpha.20240903083725",
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.",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "1.x",
35
35
  "@nocobase/utils": "1.x"
36
36
  },
37
- "gitHead": "1f4364e7a0ce1998e570bfb94397525a947b959f",
37
+ "gitHead": "ed8aee01686cbd1241e0b1a3575b076ec4b9db78",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]