@nocobase/plugin-data-visualization 1.7.0-beta.9 → 1.8.0-beta.1

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.
@@ -56,6 +56,6 @@ export declare const useFormatters: (fields: FieldOption[]) => (field: any) => v
56
56
  export declare const useCollectionOptions: () => any;
57
57
  export declare const useOrderFieldsOptions: (defaultOptions: any[], fields: FieldOption[]) => (field: any) => void;
58
58
  export declare const useOrderReaction: (defaultOptions: any[], fields: FieldOption[]) => (field: ArrayField) => void;
59
- export declare const useData: (data?: any[], dataSource?: string, collection?: string) => {}[];
59
+ export declare const useData: (data?: any[], dataSource?: string, collection?: string) => any;
60
60
  export declare const useCollectionFieldsOptions: (dataSource: string, collectionName: string, maxDepth?: number, excludes?: any[]) => any[];
61
61
  export declare const useCollectionFilterOptions: (dataSource: string, collection: string) => any[];
@@ -19,6 +19,50 @@ export declare const useGeneralVariableOptions: (schema: ISchema, operator?: {
19
19
  value: string;
20
20
  label: string;
21
21
  disabled: boolean;
22
+ operators: ({
23
+ label: string;
24
+ value: string;
25
+ selected: boolean;
26
+ schema: {
27
+ 'x-component': string;
28
+ 'x-component-props': {
29
+ isRange: boolean;
30
+ };
31
+ };
32
+ onlyFilterAction: boolean;
33
+ noValue?: undefined;
34
+ } | {
35
+ label: string;
36
+ value: string;
37
+ schema: {
38
+ 'x-component': string;
39
+ 'x-component-props': {
40
+ isRange: boolean;
41
+ };
42
+ };
43
+ onlyFilterAction: boolean;
44
+ selected?: undefined;
45
+ noValue?: undefined;
46
+ } | {
47
+ label: string;
48
+ value: string;
49
+ schema: {
50
+ 'x-component': string;
51
+ 'x-component-props': {
52
+ isRange: boolean;
53
+ };
54
+ };
55
+ selected?: undefined;
56
+ onlyFilterAction?: undefined;
57
+ noValue?: undefined;
58
+ } | {
59
+ label: string;
60
+ value: string;
61
+ noValue: boolean;
62
+ selected?: undefined;
63
+ schema?: undefined;
64
+ onlyFilterAction?: undefined;
65
+ })[];
22
66
  }[];
23
67
  })[];
24
68
  export declare const useVariableOptions: () => ({
@@ -8,8 +8,15 @@
8
8
  */
9
9
  import { Plugin } from '@nocobase/client';
10
10
  import { ChartGroup } from './chart/group';
11
+ type fieldInterfaceConfig = {
12
+ valueFormatter: (field: any, value: any) => any;
13
+ };
11
14
  declare class PluginDataVisualiztionClient extends Plugin {
12
15
  charts: ChartGroup;
16
+ fieldInterfaceConfigs: {
17
+ [fieldInterface: string]: fieldInterfaceConfig;
18
+ };
19
+ registerFieldInterfaceConfig(key: string, config: fieldInterfaceConfig): void;
13
20
  load(): Promise<void>;
14
21
  }
15
22
  export default PluginDataVisualiztionClient;