@nocobase/plugin-data-visualization 0.13.0-alpha.8 → 0.14.0-alpha.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.
package/client.d.ts CHANGED
File without changes
package/client.js CHANGED
File without changes
@@ -1,4 +1,3 @@
1
1
  export * from './ChartBlock';
2
2
  export * from './ChartBlockDesigner';
3
3
  export * from './ChartBlockInitializer';
4
- export * from './ChartConfigure';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function FilterDynamicComponent(props: any): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './query';
2
+ export * from './transformer';
3
+ export * from './useVariableOptions';
@@ -1,7 +1,6 @@
1
1
  import { ArrayField } from '@formily/core';
2
2
  import { ISchema } from '@formily/react';
3
3
  import { CollectionFieldOptions } from '@nocobase/client';
4
- import { ChartRendererProps } from './renderer';
5
4
  export type FieldOption = {
6
5
  value: string;
7
6
  label: string;
@@ -63,12 +62,6 @@ export declare const useFieldsWithAssociation: (collection?: string) => ({
63
62
  additionalProperties?: import("@formily/react").Stringify<any>;
64
63
  "x-value"?: any;
65
64
  "x-index"?: number;
66
- /**
67
- * useFieldTypes
68
- * Get field types for using transformers
69
- * Only supported types will be displayed
70
- * Some interfaces and types will be mapped to supported types
71
- */
72
65
  "x-pattern"?: any;
73
66
  "x-display"?: any;
74
67
  "x-validator"?: any;
@@ -135,12 +128,6 @@ export declare const useFieldsWithAssociation: (collection?: string) => ({
135
128
  additionalProperties?: import("@formily/react").Stringify<any>;
136
129
  "x-value"?: any;
137
130
  "x-index"?: number;
138
- /**
139
- * useFieldTypes
140
- * Get field types for using transformers
141
- * Only supported types will be displayed
142
- * Some interfaces and types will be mapped to supported types
143
- */
144
131
  "x-pattern"?: any;
145
132
  "x-display"?: any;
146
133
  "x-validator"?: any;
@@ -166,15 +153,6 @@ export declare const useFieldsWithAssociation: (collection?: string) => ({
166
153
  export declare const useChartFields: (fields: FieldOption[]) => (field: any) => void;
167
154
  export declare const useFormatters: (fields: FieldOption[]) => (field: any) => void;
168
155
  export declare const useCollectionOptions: () => any;
169
- /**
170
- * useFieldTypes
171
- * Get field types for using transformers
172
- * Only supported types will be displayed
173
- * Some interfaces and types will be mapped to supported types
174
- */
175
- export declare const useFieldTypes: (fields: FieldOption[]) => (field: any) => void;
176
- export declare const useTransformers: (field: any) => void;
177
- export declare const useFieldTransformer: (transform: ChartRendererProps['transform'], locale?: string) => {};
178
156
  export declare const useOrderFieldsOptions: (defaultOptions: any[], fields: FieldOption[]) => (field: any) => void;
179
157
  export declare const useOrderReaction: (defaultOptions: any[], fields: FieldOption[]) => (field: ArrayField) => void;
180
158
  export declare const useData: (data?: any[], collection?: string) => {}[];
@@ -0,0 +1,11 @@
1
+ import { ChartRendererProps } from '../renderer';
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;
10
+ export declare const useTransformers: (field: any) => void;
11
+ export declare const useFieldTransformer: (transform: ChartRendererProps['transform'], locale?: string) => {};
@@ -0,0 +1,15 @@
1
+ export declare const useDateVariable: ({ operator, schema }: {
2
+ operator: any;
3
+ schema: any;
4
+ }) => {
5
+ label: string;
6
+ value: string;
7
+ key: string;
8
+ disabled: boolean;
9
+ children: {
10
+ key: string;
11
+ value: string;
12
+ label: string;
13
+ disabled: boolean;
14
+ }[];
15
+ };
@@ -0,0 +1,8 @@
1
+ export declare const useUserVariable: ({ schema }: {
2
+ schema: any;
3
+ }) => {
4
+ label: string;
5
+ value: string;
6
+ key: string;
7
+ children: any;
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const useVariableOptions: () => {
2
+ label: string;
3
+ value: string;
4
+ key: string;
5
+ children: any;
6
+ }[];