@nocobase/plugin-data-visualization 0.21.0-alpha.6 → 0.21.0-alpha.8
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/dist/client/chart/chart.d.ts +1 -1
- package/dist/client/configure/TransformerDynamicComponent.d.ts +4 -0
- package/dist/client/hooks/transformer.d.ts +14 -7
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +36 -29
- package/dist/client/renderer/ChartRendererProvider.d.ts +1 -0
- package/dist/client/transformers.d.ts +12 -0
- package/dist/client/utils.d.ts +2 -0
- package/dist/externalVersion.js +7 -7
- package/dist/locale/en-US.json +8 -1
- package/dist/locale/zh-CN.json +8 -1
- package/dist/node_modules/koa-compose/package.json +1 -1
- package/dist/server/plugin.d.ts +2 -2
- package/dist/server/plugin.js +4 -4
- package/package.json +2 -2
- package/dist/client/block/transformers.d.ts +0 -7
- /package/dist/client/{block → configure}/formatters.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import { FieldOption } from '../hooks';
|
|
|
3
3
|
import { QueryProps } from '../renderer';
|
|
4
4
|
import { ISchema } from '@formily/react';
|
|
5
5
|
import { AnySchemaProperties, Config } from './configs';
|
|
6
|
-
import { Transformer } from '../
|
|
6
|
+
import { Transformer } from '../transformers';
|
|
7
7
|
export type RenderProps = {
|
|
8
8
|
data: Record<string, any>[];
|
|
9
9
|
general: any;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { ChartRendererProps } from '../renderer';
|
|
2
2
|
import { FieldOption } from './query';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
export declare const useFieldSelectProps: (fields: FieldOption[]) => () => {
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const useFieldTypeSelectProps: () => {
|
|
7
|
+
options: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useTransformerSelectProps: () => {
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
};
|
|
10
16
|
export declare const useTransformers: (field: any) => void;
|
|
17
|
+
export declare const useArgument: (field: any) => void;
|
|
11
18
|
export declare const useFieldTransformer: (transform: ChartRendererProps['transform'], locale?: string) => {};
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Plugin } from '@nocobase/client';
|
|
2
2
|
import { ChartGroup } from './chart/group';
|
|
3
|
-
declare class
|
|
3
|
+
declare class PluginDataVisualiztionClient extends Plugin {
|
|
4
4
|
charts: ChartGroup;
|
|
5
5
|
load(): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
export default
|
|
7
|
+
export default PluginDataVisualiztionClient;
|
|
8
8
|
export { Chart } from './chart/chart';
|
|
9
9
|
export type { ChartProps, ChartType, RenderProps } from './chart/chart';
|
|
10
10
|
export { ChartConfigContext } from './configure';
|