@nocobase/plugin-data-visualization 1.2.13-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.
- package/package.json +2 -2
- package/dist/client/block/ChartBlock.d.ts +0 -10
- package/dist/client/block/ChartBlockDesigner.d.ts +0 -10
- package/dist/client/block/ChartBlockInitializer.d.ts +0 -17
- package/dist/client/block/ChartDataProvider.d.ts +0 -24
- package/dist/client/block/index.d.ts +0 -11
- package/dist/client/chart/antd/antd.d.ts +0 -15
- package/dist/client/chart/antd/index.d.ts +0 -12
- package/dist/client/chart/antd/statistic.d.ts +0 -15
- package/dist/client/chart/antd/table.d.ts +0 -14
- package/dist/client/chart/chart.d.ts +0 -84
- package/dist/client/chart/configs.d.ts +0 -97
- package/dist/client/chart/g2plot/AntChart.d.ts +0 -10
- package/dist/client/chart/g2plot/bar.d.ts +0 -14
- package/dist/client/chart/g2plot/configs.d.ts +0 -48
- package/dist/client/chart/g2plot/dualAxes.d.ts +0 -17
- package/dist/client/chart/g2plot/g2plot.d.ts +0 -18
- package/dist/client/chart/g2plot/index.d.ts +0 -11
- package/dist/client/chart/g2plot/pie.d.ts +0 -15
- package/dist/client/chart/group.d.ts +0 -64
- package/dist/client/configure/ChartConfigProvider.d.ts +0 -26
- package/dist/client/configure/ChartConfigure.d.ts +0 -26
- package/dist/client/configure/FilterDynamicComponent.d.ts +0 -10
- package/dist/client/configure/TransformerDynamicComponent.d.ts +0 -12
- package/dist/client/configure/formatters.d.ts +0 -23
- package/dist/client/configure/index.d.ts +0 -10
- package/dist/client/configure/schemas/configure.d.ts +0 -12
- package/dist/client/filter/CollectionFieldInitializer.d.ts +0 -10
- package/dist/client/filter/FilterActionInitializers.d.ts +0 -28
- package/dist/client/filter/FilterBlockDesigner.d.ts +0 -10
- package/dist/client/filter/FilterBlockInitializer.d.ts +0 -11
- package/dist/client/filter/FilterBlockProvider.d.ts +0 -10
- package/dist/client/filter/FilterCheckbox.d.ts +0 -10
- package/dist/client/filter/FilterForm.d.ts +0 -10
- package/dist/client/filter/FilterItemDesigner.d.ts +0 -10
- package/dist/client/filter/FilterItemInitializers.d.ts +0 -20
- package/dist/client/filter/FilterProvider.d.ts +0 -38
- package/dist/client/filter/FilterVariableInput.d.ts +0 -10
- package/dist/client/filter/index.d.ts +0 -14
- package/dist/client/filter/utils.d.ts +0 -67
- package/dist/client/hooks/filter.d.ts +0 -69
- package/dist/client/hooks/index.d.ts +0 -12
- package/dist/client/hooks/query.d.ts +0 -61
- package/dist/client/hooks/transformer.d.ts +0 -26
- package/dist/client/hooks/useDateVariable.d.ts +0 -22
- package/dist/client/hooks/useUserVariable.d.ts +0 -16
- package/dist/client/hooks/useVariableOptions.d.ts +0 -33
- package/dist/client/index.d.ts +0 -20
- package/dist/client/index.js +0 -170
- package/dist/client/locale/index.d.ts +0 -11
- package/dist/client/renderer/ChartRenderer.d.ts +0 -12
- package/dist/client/renderer/ChartRendererProvider.d.ts +0 -56
- package/dist/client/renderer/index.d.ts +0 -10
- package/dist/client/transformers.d.ts +0 -20
- package/dist/client/utils.d.ts +0 -110
- package/dist/externalVersion.js +0 -30
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -48
- package/dist/locale/en-US.json +0 -91
- package/dist/locale/ko_KR.json +0 -85
- package/dist/locale/zh-CN.json +0 -92
- package/dist/node_modules/koa-compose/index.js +0 -1
- package/dist/node_modules/koa-compose/package.json +0 -1
- package/dist/server/actions/formatter.d.ts +0 -12
- package/dist/server/actions/formatter.js +0 -101
- package/dist/server/actions/query.d.ts +0 -17
- package/dist/server/actions/query.js +0 -293
- package/dist/server/index.d.ts +0 -9
- package/dist/server/index.js +0 -42
- package/dist/server/migrations/20230926211750-rename-charttype.d.ts +0 -13
- package/dist/server/migrations/20230926211750-rename-charttype.js +0 -60
- package/dist/server/plugin.d.ts +0 -21
- package/dist/server/plugin.js +0 -70
- package/dist/swagger/index.d.ts +0 -16
- package/dist/swagger/index.js +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-visualization",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-alpha.20240710084543",
|
|
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.",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@nocobase/test": "1.x",
|
|
34
34
|
"@nocobase/utils": "1.x"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "07a8b596fc64a9779a194cb9b0dc2ca7570ed9d4",
|
|
37
37
|
"keywords": [
|
|
38
38
|
"Blocks"
|
|
39
39
|
]
|
|
@@ -1,10 +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
|
-
import React from 'react';
|
|
10
|
-
export declare const ChartV2Block: React.FC;
|
|
@@ -1,10 +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
|
-
import React from 'react';
|
|
10
|
-
export declare const ChartV2BlockDesigner: React.FC;
|
|
@@ -1,17 +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
|
-
import { CompatibleSchemaInitializer } from '@nocobase/client';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* use `chartInitializers` instead
|
|
14
|
-
*/
|
|
15
|
-
export declare const chartInitializers_deprecated: CompatibleSchemaInitializer;
|
|
16
|
-
export declare const chartInitializers: CompatibleSchemaInitializer;
|
|
17
|
-
export declare const ChartV2BlockInitializer: React.FC;
|
|
@@ -1,24 +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
|
-
import React from 'react';
|
|
10
|
-
type ChartData = {
|
|
11
|
-
dataSource: string;
|
|
12
|
-
collection: string;
|
|
13
|
-
service: any;
|
|
14
|
-
query: any;
|
|
15
|
-
};
|
|
16
|
-
export declare const ChartDataContext: React.Context<{
|
|
17
|
-
charts: {
|
|
18
|
-
[uid: string]: ChartData;
|
|
19
|
-
};
|
|
20
|
-
addChart: (uid: string, chart: ChartData) => void;
|
|
21
|
-
removeChart: (uid: string) => void;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const ChartDataProvider: React.FC;
|
|
24
|
-
export {};
|
|
@@ -1,11 +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 * from './ChartBlock';
|
|
10
|
-
export * from './ChartBlockDesigner';
|
|
11
|
-
export * from './ChartBlockInitializer';
|
|
@@ -1,15 +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
|
-
import { Chart } from '../chart';
|
|
10
|
-
export declare class AntdChart extends Chart {
|
|
11
|
-
getReference(): {
|
|
12
|
-
title: string;
|
|
13
|
-
link: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,12 +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
|
-
import { Statistic } from './statistic';
|
|
10
|
-
import { Table } from './table';
|
|
11
|
-
declare const _default: (Statistic | Table)[];
|
|
12
|
-
export default _default;
|
|
@@ -1,15 +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
|
-
import { AntdChart } from './antd';
|
|
10
|
-
import { ChartType, RenderProps } from '../chart';
|
|
11
|
-
export declare class Statistic extends AntdChart {
|
|
12
|
-
constructor();
|
|
13
|
-
init: ChartType['init'];
|
|
14
|
-
getProps({ data, fieldProps, general, advanced }: RenderProps): any;
|
|
15
|
-
}
|
|
@@ -1,14 +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
|
-
import { RenderProps } from '../chart';
|
|
10
|
-
import { AntdChart } from './antd';
|
|
11
|
-
export declare class Table extends AntdChart {
|
|
12
|
-
constructor();
|
|
13
|
-
getProps({ data, fieldProps, general, advanced }: RenderProps): any;
|
|
14
|
-
}
|
|
@@ -1,84 +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
|
-
import React from 'react';
|
|
10
|
-
import { FieldOption } from '../hooks';
|
|
11
|
-
import { DimensionProps, MeasureProps } from '../renderer';
|
|
12
|
-
import { ISchema } from '@formily/react';
|
|
13
|
-
import { AnySchemaProperties, Config, FieldConfigProps } from './configs';
|
|
14
|
-
import { Transformer } from '../transformers';
|
|
15
|
-
export type RenderProps = {
|
|
16
|
-
data: Record<string, any>[];
|
|
17
|
-
general: any;
|
|
18
|
-
advanced: any;
|
|
19
|
-
fieldProps: {
|
|
20
|
-
[field: string]: {
|
|
21
|
-
label: string;
|
|
22
|
-
transformer: Transformer;
|
|
23
|
-
interface: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export interface ChartType {
|
|
28
|
-
name: string;
|
|
29
|
-
title: string;
|
|
30
|
-
Component: React.FC<any>;
|
|
31
|
-
schema: ISchema;
|
|
32
|
-
init?: (fields: FieldOption[], query: {
|
|
33
|
-
measures?: MeasureProps[];
|
|
34
|
-
dimensions?: DimensionProps[];
|
|
35
|
-
}) => {
|
|
36
|
-
general?: any;
|
|
37
|
-
advanced?: any;
|
|
38
|
-
};
|
|
39
|
-
getProps(props: RenderProps): any;
|
|
40
|
-
getReference?: () => {
|
|
41
|
-
title: string;
|
|
42
|
-
link: string;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export type ChartProps = {
|
|
46
|
-
name: string;
|
|
47
|
-
title: string;
|
|
48
|
-
Component: React.FC<any>;
|
|
49
|
-
config?: Config[];
|
|
50
|
-
};
|
|
51
|
-
export declare class Chart implements ChartType {
|
|
52
|
-
name: string;
|
|
53
|
-
title: string;
|
|
54
|
-
Component: React.FC<any>;
|
|
55
|
-
config: Config[];
|
|
56
|
-
configs: Map<string, Function>;
|
|
57
|
-
constructor({ name, title, Component, config }: ChartProps);
|
|
58
|
-
get schema(): {
|
|
59
|
-
type?: undefined;
|
|
60
|
-
properties?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
type: string;
|
|
63
|
-
properties: AnySchemaProperties;
|
|
64
|
-
};
|
|
65
|
-
addConfigs(configs: {
|
|
66
|
-
[key: string]: (props: FieldConfigProps) => AnySchemaProperties;
|
|
67
|
-
}): void;
|
|
68
|
-
infer(fields: FieldOption[], { measures, dimensions, }: {
|
|
69
|
-
measures?: MeasureProps[];
|
|
70
|
-
dimensions?: DimensionProps[];
|
|
71
|
-
}): {
|
|
72
|
-
xField: FieldOption;
|
|
73
|
-
yField: FieldOption;
|
|
74
|
-
seriesField: FieldOption;
|
|
75
|
-
colorField: FieldOption;
|
|
76
|
-
yFields: FieldOption[];
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* getProps
|
|
80
|
-
* Accept the information that the chart component needs to render,
|
|
81
|
-
* process it and return the props of the chart component.
|
|
82
|
-
*/
|
|
83
|
-
getProps(props: RenderProps): any;
|
|
84
|
-
}
|
|
@@ -1,97 +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
|
-
import { SchemaProperties } from '@formily/react';
|
|
10
|
-
export type FieldConfigProps = Partial<{
|
|
11
|
-
name: string;
|
|
12
|
-
title: string;
|
|
13
|
-
required: boolean;
|
|
14
|
-
defaultValue: any;
|
|
15
|
-
}>;
|
|
16
|
-
export type AnySchemaProperties = SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
17
|
-
export type ConfigProps = FieldConfigProps | AnySchemaProperties | (() => AnySchemaProperties);
|
|
18
|
-
export type Config = (ConfigProps & {
|
|
19
|
-
property?: string;
|
|
20
|
-
}) | string;
|
|
21
|
-
declare const _default: {
|
|
22
|
-
field: ({ name, title, required, defaultValue }: Partial<{
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
required: boolean;
|
|
26
|
-
defaultValue: any;
|
|
27
|
-
}>) => {
|
|
28
|
-
[x: string]: {
|
|
29
|
-
title: string;
|
|
30
|
-
type: string;
|
|
31
|
-
'x-decorator': string;
|
|
32
|
-
'x-component': string;
|
|
33
|
-
'x-reactions': string;
|
|
34
|
-
required: boolean;
|
|
35
|
-
default: any;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
booleanField: ({ name, title, defaultValue }: Partial<{
|
|
39
|
-
name: string;
|
|
40
|
-
title: string;
|
|
41
|
-
required: boolean;
|
|
42
|
-
defaultValue: any;
|
|
43
|
-
}>) => {
|
|
44
|
-
[x: string]: {
|
|
45
|
-
'x-content': string;
|
|
46
|
-
type: string;
|
|
47
|
-
'x-decorator': string;
|
|
48
|
-
'x-component': string;
|
|
49
|
-
default: any;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
xField: (props: FieldConfigProps) => {
|
|
53
|
-
[x: string]: {
|
|
54
|
-
title: string;
|
|
55
|
-
type: string;
|
|
56
|
-
'x-decorator': string;
|
|
57
|
-
'x-component': string;
|
|
58
|
-
'x-reactions': string;
|
|
59
|
-
required: boolean;
|
|
60
|
-
default: any;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
yField: (props: FieldConfigProps) => {
|
|
64
|
-
[x: string]: {
|
|
65
|
-
title: string;
|
|
66
|
-
type: string;
|
|
67
|
-
'x-decorator': string;
|
|
68
|
-
'x-component': string;
|
|
69
|
-
'x-reactions': string;
|
|
70
|
-
required: boolean;
|
|
71
|
-
default: any;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
seriesField: (props: FieldConfigProps) => {
|
|
75
|
-
[x: string]: {
|
|
76
|
-
title: string;
|
|
77
|
-
type: string;
|
|
78
|
-
'x-decorator': string;
|
|
79
|
-
'x-component': string;
|
|
80
|
-
'x-reactions': string;
|
|
81
|
-
required: boolean;
|
|
82
|
-
default: any;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
colorField: (props: FieldConfigProps) => {
|
|
86
|
-
[x: string]: {
|
|
87
|
-
title: string;
|
|
88
|
-
type: string;
|
|
89
|
-
'x-decorator': string;
|
|
90
|
-
'x-component': string;
|
|
91
|
-
'x-reactions': string;
|
|
92
|
-
required: boolean;
|
|
93
|
-
default: any;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
export default _default;
|
|
@@ -1,10 +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
|
-
import React from 'react';
|
|
10
|
-
export declare const getAntChart: (Component: React.FC<any>) => (props: any) => React.JSX.Element;
|
|
@@ -1,14 +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
|
-
import { G2PlotChart } from './g2plot';
|
|
10
|
-
import { ChartType } from '../chart';
|
|
11
|
-
export declare class Bar extends G2PlotChart {
|
|
12
|
-
constructor();
|
|
13
|
-
init: ChartType['init'];
|
|
14
|
-
}
|
|
@@ -1,48 +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
|
-
import { FieldConfigProps } from '../configs';
|
|
10
|
-
declare const _default: {
|
|
11
|
-
isStack: (props: FieldConfigProps) => {
|
|
12
|
-
[x: string]: {
|
|
13
|
-
'x-content': string;
|
|
14
|
-
type: string;
|
|
15
|
-
'x-decorator': string;
|
|
16
|
-
'x-component': string;
|
|
17
|
-
default: any;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
smooth: (props: FieldConfigProps) => {
|
|
21
|
-
[x: string]: {
|
|
22
|
-
'x-content': string;
|
|
23
|
-
type: string;
|
|
24
|
-
'x-decorator': string;
|
|
25
|
-
'x-component': string;
|
|
26
|
-
default: any;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
isPercent: (props: FieldConfigProps) => {
|
|
30
|
-
[x: string]: {
|
|
31
|
-
'x-content': string;
|
|
32
|
-
type: string;
|
|
33
|
-
'x-decorator': string;
|
|
34
|
-
'x-component': string;
|
|
35
|
-
default: any;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
isGroup: (props: FieldConfigProps) => {
|
|
39
|
-
[x: string]: {
|
|
40
|
-
'x-content': string;
|
|
41
|
-
type: string;
|
|
42
|
-
'x-decorator': string;
|
|
43
|
-
'x-component': string;
|
|
44
|
-
default: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
|
@@ -1,17 +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
|
-
import { G2PlotChart } from './g2plot';
|
|
10
|
-
import { ChartType, RenderProps } from '../chart';
|
|
11
|
-
export declare class DualAxes extends G2PlotChart {
|
|
12
|
-
constructor();
|
|
13
|
-
init: ChartType['init'];
|
|
14
|
-
getProps({ data, general, advanced, fieldProps }: RenderProps): {
|
|
15
|
-
children: any;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,18 +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
|
-
import { Chart, ChartProps, ChartType, RenderProps } from '../chart';
|
|
10
|
-
export declare class G2PlotChart extends Chart {
|
|
11
|
-
constructor({ name, title, Component, config }: ChartProps);
|
|
12
|
-
init: ChartType['init'];
|
|
13
|
-
getProps({ data, general, advanced, fieldProps }: RenderProps): any;
|
|
14
|
-
getReference(): {
|
|
15
|
-
title: string;
|
|
16
|
-
link: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,11 +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
|
-
import { G2PlotChart } from './g2plot';
|
|
10
|
-
declare const _default: G2PlotChart[];
|
|
11
|
-
export default _default;
|
|
@@ -1,15 +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
|
-
import { G2PlotChart } from './g2plot';
|
|
10
|
-
import { ChartType, RenderProps } from '../chart';
|
|
11
|
-
export declare class Pie extends G2PlotChart {
|
|
12
|
-
constructor();
|
|
13
|
-
init: ChartType['init'];
|
|
14
|
-
getProps({ data, general, advanced, fieldProps }: RenderProps): any;
|
|
15
|
-
}
|
|
@@ -1,64 +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
|
-
import { ChartType } from './chart';
|
|
10
|
-
export declare class ChartGroup {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
charts: Map<string, ChartType[]>;
|
|
15
|
-
setGroup(name: string, charts: ChartType[]): void;
|
|
16
|
-
addGroup(name: string, charts: ChartType[]): void;
|
|
17
|
-
add(group: string, chart: ChartType): void;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
getChartTypes(): {
|
|
22
|
-
label: string;
|
|
23
|
-
children: {
|
|
24
|
-
key: string;
|
|
25
|
-
label: string;
|
|
26
|
-
value: string;
|
|
27
|
-
}[];
|
|
28
|
-
}[];
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
getCharts(): {
|
|
33
|
-
[key: string]: ChartType;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
getChart(type: string): ChartType;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
export declare const useChartTypes: () => {
|
|
44
|
-
label: string;
|
|
45
|
-
children: {
|
|
46
|
-
key: string;
|
|
47
|
-
label: string;
|
|
48
|
-
value: string;
|
|
49
|
-
}[];
|
|
50
|
-
}[];
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare const useDefaultChartType: () => string;
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
export declare const useCharts: () => {
|
|
59
|
-
[key: string]: ChartType;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
export declare const useChart: (type: string) => ChartType;
|
|
@@ -1,26 +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
|
-
import { ISchema } from '@formily/react';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export type ChartConfigCurrent = {
|
|
12
|
-
schema: ISchema;
|
|
13
|
-
field: any;
|
|
14
|
-
collection: string;
|
|
15
|
-
dataSource: string;
|
|
16
|
-
service: any;
|
|
17
|
-
initialValues?: any;
|
|
18
|
-
data: any[];
|
|
19
|
-
};
|
|
20
|
-
export declare const ChartConfigContext: React.Context<{
|
|
21
|
-
visible: boolean;
|
|
22
|
-
setVisible?: (visible: boolean) => void;
|
|
23
|
-
current?: ChartConfigCurrent;
|
|
24
|
-
setCurrent?: (current: ChartConfigCurrent) => void;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const ChartConfigProvider: React.FC;
|
|
@@ -1,26 +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
|
-
import { ISchema } from '@formily/react';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export type SelectedField = {
|
|
12
|
-
field: string | string[];
|
|
13
|
-
alias?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const ChartConfigure: React.FC<{
|
|
16
|
-
insert: (s: ISchema, options: {
|
|
17
|
-
onSuccess: () => void;
|
|
18
|
-
wrap?: (schema: ISchema) => ISchema;
|
|
19
|
-
}) => void;
|
|
20
|
-
}> & {
|
|
21
|
-
Renderer: React.FC;
|
|
22
|
-
Config: React.FC;
|
|
23
|
-
Query: React.FC;
|
|
24
|
-
Transform: React.FC;
|
|
25
|
-
Data: React.FC;
|
|
26
|
-
};
|
|
@@ -1,10 +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
|
-
import React from 'react';
|
|
10
|
-
export declare function FilterDynamicComponent(props: any): React.JSX.Element;
|
|
@@ -1,12 +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
|
-
import React from 'react';
|
|
10
|
-
export declare const TransformerDynamicComponent: React.FC<{
|
|
11
|
-
schema: any;
|
|
12
|
-
}>;
|
|
@@ -1,23 +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
|
-
declare const _default: {
|
|
10
|
-
datetime: {
|
|
11
|
-
label: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
date: {
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
time: {
|
|
19
|
-
label: string;
|
|
20
|
-
value: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,10 +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 * from './ChartConfigure';
|
|
10
|
-
export * from './ChartConfigProvider';
|