@nocobase/plugin-data-visualization 1.4.0-alpha.20240903052847 → 1.4.0-alpha.20240906114411

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<{}>;
@@ -6,6 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ import { SelectedField } from './configure';
9
10
  import { FieldOption } from './hooks';
10
11
  import { QueryProps } from './renderer';
11
12
  export declare const createRendererSchema: (decoratorProps: any, componentProps?: {}) => {
@@ -23,9 +24,51 @@ export declare const createRendererSchema: (decoratorProps: any, componentProps?
23
24
  'x-initializer': string;
24
25
  properties: {
25
26
  [x: string]: {
27
+ type: string;
28
+ 'x-decorator': string;
29
+ 'x-decorator-props': {
30
+ style: {
31
+ position: string;
32
+ top: number;
33
+ right: number;
34
+ zIndex: number;
35
+ };
36
+ };
37
+ 'x-component': string;
38
+ 'x-component-props': {
39
+ style: {
40
+ marginRight: string;
41
+ marginTop: string;
42
+ };
43
+ };
44
+ 'x-initializer': string;
45
+ } | {
26
46
  type: string;
27
47
  'x-component': string;
28
48
  'x-component-props': {};
49
+ 'x-decorator'?: undefined;
50
+ 'x-decorator-props'?: undefined;
51
+ 'x-initializer'?: undefined;
52
+ };
53
+ actions: {
54
+ type: string;
55
+ 'x-decorator': string;
56
+ 'x-decorator-props': {
57
+ style: {
58
+ position: string;
59
+ top: number;
60
+ right: number;
61
+ zIndex: number;
62
+ };
63
+ };
64
+ 'x-component': string;
65
+ 'x-component-props': {
66
+ style: {
67
+ marginRight: string;
68
+ marginTop: string;
69
+ };
70
+ };
71
+ 'x-initializer': string;
29
72
  };
30
73
  };
31
74
  };
@@ -39,6 +82,7 @@ export declare const getSelectedFields: (fields: FieldOption[], query: QueryProp
39
82
  key: string;
40
83
  label: string;
41
84
  value: string;
85
+ query: SelectedField;
42
86
  alias?: string;
43
87
  name?: string;
44
88
  type?: string;
@@ -103,7 +147,9 @@ export declare const getSelectedFields: (fields: FieldOption[], query: QueryProp
103
147
  target?: string;
104
148
  targetFields?: FieldOption[];
105
149
  }[];
106
- export declare const processData: (selectedFields: FieldOption[], data: any[], scope: any) => {}[];
150
+ export declare const processData: (selectedFields: (FieldOption & {
151
+ query?: any;
152
+ })[], data: any[], scope: any) => {}[];
107
153
  export declare const removeUnparsableFilter: (filter: any) => any;
108
154
  export declare const getValuesByPath: (values: any, path: string) => any;
109
155
  export declare const getFormulaComponent: (type: string) => string;
@@ -8,23 +8,23 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha.20240903052847",
11
+ "@nocobase/client": "1.4.0-alpha.20240906114411",
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.20240903052847",
17
- "@nocobase/server": "1.4.0-alpha.20240903052847",
18
16
  "react": "18.2.0",
17
+ "@nocobase/cache": "1.4.0-alpha.20240906114411",
18
+ "@nocobase/server": "1.4.0-alpha.20240906114411",
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.20240903052847",
25
+ "@nocobase/utils": "1.4.0-alpha.20240906114411",
26
26
  "react-i18next": "11.18.6",
27
27
  "sequelize": "6.35.2",
28
- "@nocobase/actions": "1.4.0-alpha.20240903052847",
29
- "@nocobase/database": "1.4.0-alpha.20240903052847"
28
+ "@nocobase/actions": "1.4.0-alpha.20240906114411",
29
+ "@nocobase/database": "1.4.0-alpha.20240906114411"
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:42:33.106Z"}
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-06T11:56:32.606Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.4.0-alpha.20240903052847",
3
+ "version": "1.4.0-alpha.20240906114411",
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": "cbcdb4568d39ca08c1e6188c2a0e2d0119b1a666",
37
+ "gitHead": "5cb73d3b80b4a1056d8508bf0c790b85854f12d9",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]