@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 +0 -0
- package/client.js +0 -0
- package/dist/client/block/index.d.ts +0 -1
- package/dist/client/configure/FilterDynamicComponent.d.ts +2 -0
- package/dist/client/hooks/index.d.ts +3 -0
- package/dist/client/{hooks.d.ts → hooks/query.d.ts} +0 -22
- package/dist/client/hooks/transformer.d.ts +11 -0
- package/dist/client/hooks/useDateVariable.d.ts +15 -0
- package/dist/client/hooks/useUserVariable.d.ts +8 -0
- package/dist/client/hooks/useVariableOptions.d.ts +6 -0
- package/dist/client/index.js +36 -36
- package/dist/externalVersion.js +20 -0
- package/dist/node_modules/koa-compose/index.js +1 -0
- package/dist/node_modules/koa-compose/package.json +1 -0
- package/dist/server/actions/query.d.ts +6 -84
- package/dist/server/actions/query.js +195 -127
- package/package.json +3 -2
- package/server.d.ts +0 -0
- package/server.js +0 -0
- /package/dist/client/{block → configure}/ChartConfigure.d.ts +0 -0
- /package/dist/client/{block → configure}/schemas/configure.d.ts +0 -0
package/client.d.ts
CHANGED
|
File without changes
|
package/client.js
CHANGED
|
File without changes
|
|
@@ -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
|
+
};
|