@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.
@@ -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 '../block/transformers';
6
+ import { Transformer } from '../transformers';
7
7
  export type RenderProps = {
8
8
  data: Record<string, any>[];
9
9
  general: any;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const TransformerDynamicComponent: React.FC<{
3
+ schema: any;
4
+ }>;
@@ -1,11 +1,18 @@
1
1
  import { ChartRendererProps } from '../renderer';
2
2
  import { FieldOption } from './query';
3
- /**
4
- * useFieldTypes
5
- * Get field types for using transformers
6
- * Only supported types will be displayed
7
- * Some interfaces and types will be mapped to supported types
8
- */
9
- export declare const useFieldTypes: (fields: FieldOption[]) => (field: any) => void;
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) => {};
@@ -1,10 +1,10 @@
1
1
  import { Plugin } from '@nocobase/client';
2
2
  import { ChartGroup } from './chart/group';
3
- declare class DataVisualizationPlugin extends Plugin {
3
+ declare class PluginDataVisualiztionClient extends Plugin {
4
4
  charts: ChartGroup;
5
5
  load(): Promise<void>;
6
6
  }
7
- export default DataVisualizationPlugin;
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';