@nocobase/plugin-data-visualization 1.2.13-alpha → 1.3.0-alpha.20240710084543

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.
Files changed (75) hide show
  1. package/package.json +2 -2
  2. package/dist/client/block/ChartBlock.d.ts +0 -10
  3. package/dist/client/block/ChartBlockDesigner.d.ts +0 -10
  4. package/dist/client/block/ChartBlockInitializer.d.ts +0 -17
  5. package/dist/client/block/ChartDataProvider.d.ts +0 -24
  6. package/dist/client/block/index.d.ts +0 -11
  7. package/dist/client/chart/antd/antd.d.ts +0 -15
  8. package/dist/client/chart/antd/index.d.ts +0 -12
  9. package/dist/client/chart/antd/statistic.d.ts +0 -15
  10. package/dist/client/chart/antd/table.d.ts +0 -14
  11. package/dist/client/chart/chart.d.ts +0 -84
  12. package/dist/client/chart/configs.d.ts +0 -97
  13. package/dist/client/chart/g2plot/AntChart.d.ts +0 -10
  14. package/dist/client/chart/g2plot/bar.d.ts +0 -14
  15. package/dist/client/chart/g2plot/configs.d.ts +0 -48
  16. package/dist/client/chart/g2plot/dualAxes.d.ts +0 -17
  17. package/dist/client/chart/g2plot/g2plot.d.ts +0 -18
  18. package/dist/client/chart/g2plot/index.d.ts +0 -11
  19. package/dist/client/chart/g2plot/pie.d.ts +0 -15
  20. package/dist/client/chart/group.d.ts +0 -64
  21. package/dist/client/configure/ChartConfigProvider.d.ts +0 -26
  22. package/dist/client/configure/ChartConfigure.d.ts +0 -26
  23. package/dist/client/configure/FilterDynamicComponent.d.ts +0 -10
  24. package/dist/client/configure/TransformerDynamicComponent.d.ts +0 -12
  25. package/dist/client/configure/formatters.d.ts +0 -23
  26. package/dist/client/configure/index.d.ts +0 -10
  27. package/dist/client/configure/schemas/configure.d.ts +0 -12
  28. package/dist/client/filter/CollectionFieldInitializer.d.ts +0 -10
  29. package/dist/client/filter/FilterActionInitializers.d.ts +0 -28
  30. package/dist/client/filter/FilterBlockDesigner.d.ts +0 -10
  31. package/dist/client/filter/FilterBlockInitializer.d.ts +0 -11
  32. package/dist/client/filter/FilterBlockProvider.d.ts +0 -10
  33. package/dist/client/filter/FilterCheckbox.d.ts +0 -10
  34. package/dist/client/filter/FilterForm.d.ts +0 -10
  35. package/dist/client/filter/FilterItemDesigner.d.ts +0 -10
  36. package/dist/client/filter/FilterItemInitializers.d.ts +0 -20
  37. package/dist/client/filter/FilterProvider.d.ts +0 -38
  38. package/dist/client/filter/FilterVariableInput.d.ts +0 -10
  39. package/dist/client/filter/index.d.ts +0 -14
  40. package/dist/client/filter/utils.d.ts +0 -67
  41. package/dist/client/hooks/filter.d.ts +0 -69
  42. package/dist/client/hooks/index.d.ts +0 -12
  43. package/dist/client/hooks/query.d.ts +0 -61
  44. package/dist/client/hooks/transformer.d.ts +0 -26
  45. package/dist/client/hooks/useDateVariable.d.ts +0 -22
  46. package/dist/client/hooks/useUserVariable.d.ts +0 -16
  47. package/dist/client/hooks/useVariableOptions.d.ts +0 -33
  48. package/dist/client/index.d.ts +0 -20
  49. package/dist/client/index.js +0 -170
  50. package/dist/client/locale/index.d.ts +0 -11
  51. package/dist/client/renderer/ChartRenderer.d.ts +0 -12
  52. package/dist/client/renderer/ChartRendererProvider.d.ts +0 -56
  53. package/dist/client/renderer/index.d.ts +0 -10
  54. package/dist/client/transformers.d.ts +0 -20
  55. package/dist/client/utils.d.ts +0 -110
  56. package/dist/externalVersion.js +0 -30
  57. package/dist/index.d.ts +0 -10
  58. package/dist/index.js +0 -48
  59. package/dist/locale/en-US.json +0 -91
  60. package/dist/locale/ko_KR.json +0 -85
  61. package/dist/locale/zh-CN.json +0 -92
  62. package/dist/node_modules/koa-compose/index.js +0 -1
  63. package/dist/node_modules/koa-compose/package.json +0 -1
  64. package/dist/server/actions/formatter.d.ts +0 -12
  65. package/dist/server/actions/formatter.js +0 -101
  66. package/dist/server/actions/query.d.ts +0 -17
  67. package/dist/server/actions/query.js +0 -293
  68. package/dist/server/index.d.ts +0 -9
  69. package/dist/server/index.js +0 -42
  70. package/dist/server/migrations/20230926211750-rename-charttype.d.ts +0 -13
  71. package/dist/server/migrations/20230926211750-rename-charttype.js +0 -60
  72. package/dist/server/plugin.d.ts +0 -21
  73. package/dist/server/plugin.js +0 -70
  74. package/dist/swagger/index.d.ts +0 -16
  75. package/dist/swagger/index.js +0 -38
@@ -1,12 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { ISchema } from '@formily/react';
10
- export declare const getConfigSchema: (general: any) => ISchema;
11
- export declare const querySchema: ISchema;
12
- export declare const transformSchema: ISchema;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const CollectionFieldInitializer: () => React.JSX.Element;
@@ -1,28 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CompatibleSchemaInitializer } from '@nocobase/client';
10
- import React from 'react';
11
- export declare const useChartFilterActionProps: () => {
12
- onClick: () => Promise<void>;
13
- };
14
- export declare const useChartFilterResetProps: () => {
15
- onClick: () => Promise<void>;
16
- };
17
- export declare const useChartFilterCollapseProps: () => {
18
- onClick: () => void;
19
- title: React.JSX.Element;
20
- };
21
- export declare const ChartFilterCollapseDesigner: React.FC;
22
- export declare const ChartFilterActionDesigner: React.FC;
23
- /**
24
- * @deprecated
25
- * use `chartFilterActionInitializers` instead
26
- */
27
- export declare const chartFilterActionInitializers_deprecated: CompatibleSchemaInitializer;
28
- export declare const chartFilterActionInitializers: CompatibleSchemaInitializer;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterBlockDesigner: React.FC;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterGrid: React.FC;
11
- export declare const FilterBlockInitializer: React.FC;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterBlockProvider: React.FC;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterCheckbox: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterForm: React.FC;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterItemDesigner: React.FC;
@@ -1,20 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CompatibleSchemaInitializer } from '@nocobase/client';
10
- import React from 'react';
11
- export declare const ChartFilterFormItem: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
12
- export declare const ChartFilterCustomItemInitializer: React.FC<{
13
- insert?: any;
14
- }>;
15
- /**
16
- * @deprecated
17
- * use `chartFilterItemInitializers` instead
18
- */
19
- export declare const chartFilterItemInitializers_deprecated: CompatibleSchemaInitializer;
20
- export declare const chartFilterItemInitializers: CompatibleSchemaInitializer;
@@ -1,38 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- type FilterField = {
11
- title?: string;
12
- operator?: {
13
- value: string;
14
- noValue?: boolean;
15
- };
16
- };
17
- export declare const ChartFilterContext: React.Context<{
18
- ready: boolean;
19
- enabled: boolean;
20
- setEnabled: (enabled: boolean) => void;
21
- fields: {
22
- [name: string]: FilterField;
23
- };
24
- setField: (name: string, field: FilterField) => void;
25
- removeField: (name: string) => void;
26
- collapse: {
27
- collapsed: boolean;
28
- row: number;
29
- };
30
- setCollapse: (opts: {
31
- collapsed?: boolean;
32
- row?: number;
33
- }) => void;
34
- form: any;
35
- setForm: (form: any) => void;
36
- }>;
37
- export declare const ChartFilterProvider: React.FC;
38
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- export declare const ChartFilterVariableInput: React.FC<any>;
@@ -1,14 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export * from './FilterBlockDesigner';
10
- export * from './FilterBlockInitializer';
11
- export * from './FilterItemInitializers';
12
- export * from './FilterActionInitializers';
13
- export * from './FilterItemDesigner';
14
- export * from './FilterBlockProvider';
@@ -1,67 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { Schema } from '@formily/react';
10
- export declare const getOptionsSchema: () => {
11
- title: string;
12
- type: string;
13
- 'x-decorator': string;
14
- 'x-component': string;
15
- items: {
16
- type: string;
17
- 'x-decorator': string;
18
- properties: {
19
- space: {
20
- type: string;
21
- 'x-component': string;
22
- properties: {
23
- label: {
24
- type: string;
25
- 'x-decorator': string;
26
- 'x-component': string;
27
- 'x-component-props': {
28
- placeholder: string;
29
- };
30
- required: boolean;
31
- };
32
- value: {
33
- type: string;
34
- 'x-decorator': string;
35
- 'x-component': string;
36
- 'x-component-props': {
37
- placeholder: string;
38
- };
39
- required: boolean;
40
- };
41
- remove: {
42
- type: string;
43
- 'x-decorator': string;
44
- 'x-component': string;
45
- };
46
- };
47
- };
48
- };
49
- };
50
- properties: {
51
- add: {
52
- type: string;
53
- title: string;
54
- 'x-component': string;
55
- };
56
- };
57
- };
58
- export declare const getPropsSchemaByComponent: (component: string) => any;
59
- export declare const transformValue: (value: any, props: any) => any;
60
- export declare const setDefaultValue: (field: any, variables: any) => Promise<void>;
61
- export declare const FILTER_FIELD_PREFIX_SEPARATOR = "-";
62
- export declare const getFilterFieldPrefix: (dataSource: string, fieldName: string) => string;
63
- export declare const parseFilterFieldName: (name: string) => {
64
- dataSource: string;
65
- fieldName: string;
66
- };
67
- export declare const findSchema: (schema: Schema, key: string, targetName: string) => any;
@@ -1,69 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { Collection, CollectionFieldInterfaceManager, CollectionManager, SchemaInitializerItemType } from '@nocobase/client';
10
- export declare const useCustomFieldInterface: () => {
11
- getSchemaByInterface: (fieldInterface: string) => any;
12
- };
13
- export declare const useChartData: () => {
14
- chartCollections: {
15
- [dataSource: string]: string[];
16
- };
17
- showDataSource: boolean;
18
- getIsChartCollectionExists: (dataSource: string, collection: string) => boolean;
19
- };
20
- export declare const useChartFilter: () => {
21
- filter: () => Promise<void>;
22
- refresh: () => Promise<void>;
23
- getChartFilterFields: ({ dataSource, collection, cm, fim, }: {
24
- dataSource: string;
25
- collection: Collection;
26
- cm: CollectionManager;
27
- fim: CollectionFieldInterfaceManager;
28
- }) => SchemaInitializerItemType[];
29
- getFilter: () => {};
30
- hasFilter: (chart: {
31
- dataSource: string;
32
- collection: string;
33
- query: any;
34
- }, filterValues: any) => any;
35
- appendFilter: (chart: {
36
- dataSource: string;
37
- collection: string;
38
- query: any;
39
- }, filterValues: any) => any;
40
- getTranslatedTitle: (title: string) => string;
41
- parseFilter: (filterValue: any) => Promise<any>;
42
- };
43
- export declare const useFilterVariable: () => {
44
- label: string;
45
- value: string;
46
- key: string;
47
- children: {
48
- key: string;
49
- value: string;
50
- label: string;
51
- }[];
52
- };
53
- export declare const useChartFilterSourceFields: () => {
54
- value: string;
55
- label: any;
56
- children: {
57
- value: string;
58
- label: any;
59
- children: any[];
60
- }[];
61
- }[];
62
- export declare const useFieldComponents: () => {
63
- options: {
64
- label: string;
65
- value: string;
66
- }[];
67
- values: string[];
68
- };
69
- export declare const useCollectionJoinFieldTitle: (dataSource: string, name: string) => any;
@@ -1,12 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export * from './query';
10
- export * from './transformer';
11
- export * from './useVariableOptions';
12
- export * from './filter';
@@ -1,61 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { ArrayField } from '@formily/core';
10
- import { ISchema } from '@formily/react';
11
- import { CollectionFieldOptions, CollectionManager } from '@nocobase/client';
12
- export type FieldOption = {
13
- value: string;
14
- label: string;
15
- key: string;
16
- alias?: string;
17
- name?: string;
18
- type?: string;
19
- interface?: string;
20
- uiSchema?: ISchema;
21
- target?: string;
22
- targetFields?: FieldOption[];
23
- };
24
- export declare const useChartDataSource: (dataSource?: string) => {
25
- cm: CollectionManager;
26
- fim: import("@nocobase/client").CollectionFieldInterfaceManager;
27
- collection: string;
28
- };
29
- export declare const useFields: (collectionFields: CollectionFieldOptions[]) => (CollectionFieldOptions & {
30
- key: string;
31
- label: string;
32
- value: string;
33
- })[];
34
- export declare const useFieldsWithAssociation: (dataSource?: string, collection?: string) => ({
35
- label: any;
36
- name?: any;
37
- collectionName?: string;
38
- sourceKey?: string;
39
- uiSchema?: any;
40
- target?: string;
41
- key: string;
42
- value: string;
43
- } | {
44
- label: any;
45
- targetFields: any[];
46
- name?: any;
47
- collectionName?: string;
48
- sourceKey?: string;
49
- uiSchema?: any;
50
- target?: string;
51
- key: string;
52
- value: string;
53
- })[];
54
- export declare const useChartFields: (fields: FieldOption[]) => (field: any) => void;
55
- export declare const useFormatters: (fields: FieldOption[]) => (field: any) => void;
56
- export declare const useCollectionOptions: () => any;
57
- export declare const useOrderFieldsOptions: (defaultOptions: any[], fields: FieldOption[]) => (field: any) => void;
58
- export declare const useOrderReaction: (defaultOptions: any[], fields: FieldOption[]) => (field: ArrayField) => void;
59
- export declare const useData: (data?: any[], dataSource?: string, collection?: string) => {}[];
60
- export declare const useCollectionFieldsOptions: (dataSource: string, collectionName: string, maxDepth?: number, excludes?: any[]) => any[];
61
- export declare const useCollectionFilterOptions: (dataSource: string, collection: string) => any[];
@@ -1,26 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { ChartRendererProps } from '../renderer';
10
- import { FieldOption } from './query';
11
- export declare const useFieldSelectProps: (fields: FieldOption[]) => () => {
12
- onChange: (value: string) => void;
13
- };
14
- export declare const useFieldTypeSelectProps: () => {
15
- options: {
16
- label: string;
17
- value: string;
18
- }[];
19
- onChange: (value: string) => void;
20
- };
21
- export declare const useTransformerSelectProps: () => {
22
- onChange: (value: string) => void;
23
- };
24
- export declare const useTransformers: (field: any) => void;
25
- export declare const useArgument: (field: any) => void;
26
- export declare const useFieldTransformer: (transform: ChartRendererProps['transform'], locale?: string) => {};
@@ -1,22 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export declare const useDateVariable: ({ schema }: {
10
- schema: any;
11
- }) => {
12
- label: string;
13
- value: string;
14
- key: string;
15
- disabled: boolean;
16
- children: {
17
- key: string;
18
- value: string;
19
- label: string;
20
- disabled: boolean;
21
- }[];
22
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export declare const useUserVariable: ({ schema }: {
10
- schema: any;
11
- }) => {
12
- label: string;
13
- value: string;
14
- key: string;
15
- children: any;
16
- };
@@ -1,33 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { ISchema } from '@formily/react';
10
- export declare const useGeneralVariableOptions: (schema: ISchema, operator?: {
11
- value: string;
12
- }) => (import("@nocobase/client/es/schema-settings/VariableInput/type").Option | {
13
- label: string;
14
- value: string;
15
- key: string;
16
- disabled: boolean;
17
- children: {
18
- key: string;
19
- value: string;
20
- label: string;
21
- disabled: boolean;
22
- }[];
23
- })[];
24
- export declare const useVariableOptions: () => ({
25
- label: string;
26
- value: string;
27
- key: string;
28
- children: {
29
- key: string;
30
- value: string;
31
- label: string;
32
- }[];
33
- } | import("@nocobase/client/es/schema-settings/VariableInput/type").Option)[];
@@ -1,20 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { Plugin } from '@nocobase/client';
10
- import { ChartGroup } from './chart/group';
11
- declare class PluginDataVisualiztionClient extends Plugin {
12
- charts: ChartGroup;
13
- load(): Promise<void>;
14
- }
15
- export default PluginDataVisualiztionClient;
16
- export { Chart } from './chart/chart';
17
- export type { ChartProps, ChartType, RenderProps } from './chart/chart';
18
- export { ChartConfigContext } from './configure';
19
- export type { FieldOption } from './hooks';
20
- export type { QueryProps } from './renderer';