@nocobase/plugin-data-visualization 2.1.0-alpha.30 → 2.1.0-alpha.31

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 (39) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +1 -0
  3. package/dist/client-v2/174.75072e326b5a4f8a.js +10 -0
  4. package/dist/client-v2/176.0b68fc9582cfe5a3.js +10 -0
  5. package/dist/client-v2/214.6dda3ffed1dca904.js +10 -0
  6. package/dist/client-v2/542.d15b6fa2a7d6a4e3.js +10 -0
  7. package/dist/client-v2/680.c3725300a5f4414b.js +10 -0
  8. package/dist/client-v2/chart/ChartGroup.d.ts +44 -0
  9. package/dist/client-v2/chart/configs.d.ts +290 -0
  10. package/dist/client-v2/chart/index.d.ts +11 -0
  11. package/dist/client-v2/chart/types.d.ts +103 -0
  12. package/dist/client-v2/flow/components/CodeEditor.d.ts +22 -0
  13. package/dist/client-v2/flow/models/Chart.d.ts +18 -0
  14. package/dist/client-v2/flow/models/ChartBlockModel.d.ts +78 -0
  15. package/dist/client-v2/flow/models/ChartOptionsBuilder.d.ts +23 -0
  16. package/dist/client-v2/flow/models/ChartOptionsBuilder.service.d.ts +58 -0
  17. package/dist/client-v2/flow/models/ChartOptionsEditor.d.ts +16 -0
  18. package/dist/client-v2/flow/models/ChartOptionsPanel.d.ts +11 -0
  19. package/dist/client-v2/flow/models/ConfigPanel.d.ts +10 -0
  20. package/dist/client-v2/flow/models/ECharts.d.ts +20 -0
  21. package/dist/client-v2/flow/models/EventsEditor.d.ts +11 -0
  22. package/dist/client-v2/flow/models/EventsPanel.d.ts +10 -0
  23. package/dist/client-v2/flow/models/QueryBuilder.d.ts +13 -0
  24. package/dist/client-v2/flow/models/QueryBuilder.service.d.ts +20 -0
  25. package/dist/client-v2/flow/models/QueryPanel.d.ts +10 -0
  26. package/dist/client-v2/flow/models/ResultPanel.d.ts +10 -0
  27. package/dist/client-v2/flow/models/SQLEditor.d.ts +10 -0
  28. package/dist/client-v2/flow/models/config-store.d.ts +20 -0
  29. package/dist/client-v2/flow/resources/ChartResource.d.ts +37 -0
  30. package/dist/client-v2/flow/utils.d.ts +50 -0
  31. package/dist/client-v2/hooks/index.d.ts +9 -0
  32. package/dist/client-v2/hooks/useSetChartSize.d.ts +20 -0
  33. package/dist/client-v2/index.d.ts +12 -0
  34. package/dist/client-v2/index.js +10 -0
  35. package/dist/client-v2/locale.d.ts +14 -0
  36. package/dist/client-v2/plugin.d.ts +23 -0
  37. package/dist/externalVersion.js +13 -12
  38. package/dist/node_modules/koa-compose/package.json +1 -1
  39. package/package.json +3 -2
@@ -0,0 +1,290 @@
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 { SchemaProperties } from '@formily/react';
10
+ export type FieldConfigProps = Partial<{
11
+ name: string;
12
+ title: string;
13
+ required: boolean;
14
+ defaultValue: any;
15
+ description: string;
16
+ options: {
17
+ label: string;
18
+ value: any;
19
+ }[];
20
+ componentProps: Record<string, any>;
21
+ }>;
22
+ export type AnySchemaProperties = SchemaProperties<any, any, any, any, any, any, any, any>;
23
+ export type ConfigType = (FieldConfigProps & {
24
+ configType?: string;
25
+ }) | ((props?: FieldConfigProps) => AnySchemaProperties) | AnySchemaProperties;
26
+ export type Config = string | ConfigType;
27
+ declare const _default: {
28
+ field: ({ name, title, required, defaultValue, description }: Partial<{
29
+ name: string;
30
+ title: string;
31
+ required: boolean;
32
+ defaultValue: any;
33
+ description: string;
34
+ options: {
35
+ label: string;
36
+ value: any;
37
+ }[];
38
+ componentProps: Record<string, any>;
39
+ }>) => {
40
+ [x: string]: {
41
+ title: string;
42
+ type: string;
43
+ 'x-decorator': string;
44
+ 'x-component': string;
45
+ 'x-reactions': string;
46
+ required: boolean;
47
+ description: string;
48
+ default: any;
49
+ };
50
+ };
51
+ input: ({ name, title, required, defaultValue, description }: Partial<{
52
+ name: string;
53
+ title: string;
54
+ required: boolean;
55
+ defaultValue: any;
56
+ description: string;
57
+ options: {
58
+ label: string;
59
+ value: any;
60
+ }[];
61
+ componentProps: Record<string, any>;
62
+ }>) => {
63
+ [x: string]: {
64
+ title: string;
65
+ type: string;
66
+ 'x-decorator': string;
67
+ 'x-component': string;
68
+ required: boolean;
69
+ default: any;
70
+ description: string;
71
+ };
72
+ };
73
+ boolean: ({ name, title, defaultValue, description }: Partial<{
74
+ name: string;
75
+ title: string;
76
+ required: boolean;
77
+ defaultValue: any;
78
+ description: string;
79
+ options: {
80
+ label: string;
81
+ value: any;
82
+ }[];
83
+ componentProps: Record<string, any>;
84
+ }>) => {
85
+ [x: string]: {
86
+ 'x-content': string;
87
+ type: string;
88
+ 'x-decorator': string;
89
+ 'x-component': string;
90
+ default: any;
91
+ description: string;
92
+ };
93
+ };
94
+ select: ({ name, title, required, defaultValue, options, description }: Partial<{
95
+ name: string;
96
+ title: string;
97
+ required: boolean;
98
+ defaultValue: any;
99
+ description: string;
100
+ options: {
101
+ label: string;
102
+ value: any;
103
+ }[];
104
+ componentProps: Record<string, any>;
105
+ }>) => {
106
+ [x: string]: {
107
+ title: string;
108
+ type: string;
109
+ 'x-decorator': string;
110
+ 'x-component': string;
111
+ required: boolean;
112
+ default: any;
113
+ description: string;
114
+ enum: {
115
+ label: string;
116
+ value: any;
117
+ }[];
118
+ };
119
+ };
120
+ radio: ({ name, title, defaultValue, options, description, componentProps }: Partial<{
121
+ name: string;
122
+ title: string;
123
+ required: boolean;
124
+ defaultValue: any;
125
+ description: string;
126
+ options: {
127
+ label: string;
128
+ value: any;
129
+ }[];
130
+ componentProps: Record<string, any>;
131
+ }>) => {
132
+ [x: string]: {
133
+ title: string;
134
+ type: string;
135
+ 'x-decorator': string;
136
+ 'x-component': string;
137
+ 'x-component-props': {
138
+ [x: string]: any;
139
+ };
140
+ default: any;
141
+ description: string;
142
+ enum: {
143
+ label: string;
144
+ value: any;
145
+ }[];
146
+ };
147
+ };
148
+ percent: ({ name, title, defaultValue, description }: Partial<{
149
+ name: string;
150
+ title: string;
151
+ required: boolean;
152
+ defaultValue: any;
153
+ description: string;
154
+ options: {
155
+ label: string;
156
+ value: any;
157
+ }[];
158
+ componentProps: Record<string, any>;
159
+ }>) => {
160
+ [x: string]: {
161
+ title: string;
162
+ type: string;
163
+ 'x-decorator': string;
164
+ 'x-component': string;
165
+ default: any;
166
+ description: string;
167
+ 'x-component-props': {
168
+ suffix: string;
169
+ };
170
+ };
171
+ };
172
+ xField: {
173
+ configType: string;
174
+ name: string;
175
+ title: string;
176
+ required: boolean;
177
+ };
178
+ yField: {
179
+ configType: string;
180
+ name: string;
181
+ title: string;
182
+ required: boolean;
183
+ };
184
+ seriesField: {
185
+ configType: string;
186
+ name: string;
187
+ title: string;
188
+ };
189
+ colorField: {
190
+ configType: string;
191
+ name: string;
192
+ title: string;
193
+ required: boolean;
194
+ };
195
+ isStack: {
196
+ configType: string;
197
+ name: string;
198
+ title: string;
199
+ };
200
+ smooth: {
201
+ configType: string;
202
+ name: string;
203
+ title: string;
204
+ };
205
+ isPercent: {
206
+ configType: string;
207
+ name: string;
208
+ title: string;
209
+ };
210
+ isGroup: {
211
+ configType: string;
212
+ name: string;
213
+ title: string;
214
+ };
215
+ size: () => {
216
+ size: {
217
+ title: string;
218
+ type: string;
219
+ 'x-decorator': string;
220
+ 'x-component': string;
221
+ properties: {
222
+ type: {
223
+ 'x-component': string;
224
+ 'x-component-props': {
225
+ allowClear: boolean;
226
+ };
227
+ default: string;
228
+ enum: {
229
+ label: string;
230
+ value: string;
231
+ }[];
232
+ };
233
+ fixed: {
234
+ type: string;
235
+ 'x-component': string;
236
+ 'x-component-props': {
237
+ min: number;
238
+ addonAfter: string;
239
+ };
240
+ 'x-reactions': {
241
+ dependencies: string[];
242
+ fulfill: {
243
+ state: {
244
+ visible: string;
245
+ };
246
+ };
247
+ }[];
248
+ };
249
+ ratio: {
250
+ type: string;
251
+ 'x-component': string;
252
+ 'x-reactions': {
253
+ dependencies: string[];
254
+ fulfill: {
255
+ state: {
256
+ visible: string;
257
+ };
258
+ };
259
+ }[];
260
+ properties: {
261
+ width: {
262
+ type: string;
263
+ 'x-component': string;
264
+ 'x-component-props': {
265
+ placeholder: string;
266
+ min: number;
267
+ };
268
+ };
269
+ colon: {
270
+ type: string;
271
+ 'x-component': string;
272
+ 'x-component-props': {
273
+ children: string;
274
+ };
275
+ };
276
+ height: {
277
+ type: string;
278
+ 'x-component': string;
279
+ 'x-component-props': {
280
+ placeholder: string;
281
+ min: number;
282
+ };
283
+ };
284
+ };
285
+ };
286
+ };
287
+ };
288
+ };
289
+ };
290
+ export default _default;
@@ -0,0 +1,11 @@
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 './ChartGroup';
10
+ export * from './types';
11
+ export * from './configs';
@@ -0,0 +1,103 @@
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
+ import React from 'react';
11
+ import { Config, ConfigType } from './configs';
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 type MeasureProps = {
25
+ field: string | string[];
26
+ aggregation?: string;
27
+ alias?: string;
28
+ };
29
+ export type DimensionProps = {
30
+ field: string | string[];
31
+ alias?: string;
32
+ format?: string;
33
+ };
34
+ export type Transformer = (val: any, ...args: any[]) => string | number;
35
+ export type FieldRenderProps = {
36
+ label: string;
37
+ interface?: string;
38
+ transformer?: Transformer;
39
+ };
40
+ export type RenderProps = {
41
+ data: Record<string, any>[];
42
+ general: any;
43
+ advanced: any;
44
+ fieldProps: {
45
+ [field: string]: FieldRenderProps;
46
+ };
47
+ };
48
+ export interface ChartType {
49
+ name: string;
50
+ title: string;
51
+ enableAdvancedConfig?: boolean;
52
+ Component: React.FC<any>;
53
+ schema: ISchema;
54
+ init?: (fields: FieldOption[], query: {
55
+ measures?: MeasureProps[];
56
+ dimensions?: DimensionProps[];
57
+ }) => {
58
+ general?: any;
59
+ advanced?: any;
60
+ };
61
+ getProps(props: RenderProps): any;
62
+ getReference?: () => {
63
+ title: string;
64
+ link: string;
65
+ };
66
+ }
67
+ export type ChartProps = {
68
+ name: string;
69
+ title: string;
70
+ enableAdvancedConfig?: boolean;
71
+ Component: React.FC<any>;
72
+ config?: Config[];
73
+ };
74
+ export declare class Chart implements ChartType {
75
+ name: string;
76
+ title: string;
77
+ enableAdvancedConfig: boolean;
78
+ Component: React.FC<any>;
79
+ config: Config[];
80
+ configTypes: Map<string, ConfigType>;
81
+ constructor({ name, title, enableAdvancedConfig, Component, config }: ChartProps);
82
+ get schema(): {
83
+ type?: undefined;
84
+ properties?: undefined;
85
+ } | {
86
+ type: string;
87
+ properties: any;
88
+ };
89
+ addConfigTypes(configs: {
90
+ [key: string]: ConfigType;
91
+ }): void;
92
+ infer(fields: FieldOption[], { measures, dimensions, }: {
93
+ measures?: MeasureProps[];
94
+ dimensions?: DimensionProps[];
95
+ }): {
96
+ xField: FieldOption;
97
+ yField: FieldOption;
98
+ seriesField: FieldOption;
99
+ colorField: FieldOption;
100
+ yFields: FieldOption[];
101
+ };
102
+ getProps(props: RenderProps): any;
103
+ }
@@ -0,0 +1,22 @@
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
+ import { CompletionSource } from '@codemirror/autocomplete';
11
+ export interface CodeEditorProps {
12
+ language?: string;
13
+ value?: string;
14
+ onChange?: (value: string) => void;
15
+ completions?: CompletionSource | CompletionSource[];
16
+ rightExtra?: React.ReactNode;
17
+ }
18
+ export type CodeEditorHandle = {
19
+ insertAtCursor: (text: string) => void;
20
+ focus: () => void;
21
+ };
22
+ export declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<CodeEditorHandle>>;
@@ -0,0 +1,18 @@
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
+ import { EChartsOption, EChartsType } from 'echarts';
11
+ export interface ChartOptions {
12
+ option: EChartsOption;
13
+ Component?: React.FC<any>;
14
+ dataSource: any;
15
+ onRefReady?: (chart: EChartsType) => void;
16
+ loading?: boolean;
17
+ }
18
+ export declare const Chart: React.ForwardRefExoticComponent<ChartOptions & React.RefAttributes<EChartsType>>;
@@ -0,0 +1,78 @@
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 { ChildPageModel, DataBlockModel } from '@nocobase/client-v2';
10
+ import { SQLResource } from '@nocobase/flow-engine';
11
+ import React from 'react';
12
+ import { ChartOptions } from './Chart';
13
+ import { ChartResource } from '../resources/ChartResource';
14
+ import PluginDataVisualizationClient from '../../plugin';
15
+ type ChartBlockModelStructure = {
16
+ subModels: {
17
+ page: ChildPageModel;
18
+ };
19
+ };
20
+ type ChartProps = {
21
+ chart: ChartOptions & {
22
+ optionRaw?: string;
23
+ Component?: React.FC<any>;
24
+ };
25
+ };
26
+ export declare class ChartBlockModel extends DataBlockModel<ChartBlockModelStructure> {
27
+ props: ChartProps;
28
+ _previousStepParams: any;
29
+ get resource(): ChartResource<any> | SQLResource<any>;
30
+ private __onResourceRefresh;
31
+ onActive(): void;
32
+ refresh(): Promise<void>;
33
+ initResource(mode?: string): void;
34
+ getResourceSettingsInitParams(): any;
35
+ buildQueryRequest(query: any): Promise<any>;
36
+ onInit(options: any): Promise<void>;
37
+ renderComponent(): React.JSX.Element;
38
+ getFilterFields(): Promise<{
39
+ name: string;
40
+ title: string;
41
+ type: string;
42
+ interface: string;
43
+ target?: string;
44
+ filterable?: {
45
+ operators: {
46
+ label: string;
47
+ value: string;
48
+ }[];
49
+ };
50
+ }[]>;
51
+ checkResource(query: any): void;
52
+ applyQuery(query: any): void;
53
+ setDataResult(): void;
54
+ applyChartOptions(payload: {
55
+ mode: 'basic' | 'custom';
56
+ builder?: any;
57
+ raw?: string;
58
+ query?: any;
59
+ }): Promise<void>;
60
+ getRegisteredChart(type?: string): import("../..").ChartType;
61
+ getDataVisualizationPlugin(): PluginDataVisualizationClient;
62
+ getRegisteredChartGeneral(builder?: any): any;
63
+ getRegisteredChartFieldProps(query: any, data?: Record<string, any>[]): Record<string, any>;
64
+ formatRegisteredChartData(data?: Record<string, any>[], fieldProps?: Record<string, any>): {
65
+ [x: string]: any;
66
+ }[];
67
+ getRegisteredChartDisplayFieldProps(fieldProps?: Record<string, any>): {};
68
+ getRegisteredChartFieldTransformer(field?: any, item?: any): (value: any) => any;
69
+ getCollectionFieldByPath(query: any, field: string | string[] | undefined): any;
70
+ applyEvents(raw?: string): Promise<void>;
71
+ renderChart(): void;
72
+ onPreview(params: {
73
+ query: any;
74
+ chart: any;
75
+ }, needQueryData?: boolean): Promise<void>;
76
+ cancelPreview(): Promise<void>;
77
+ }
78
+ export {};
@@ -0,0 +1,23 @@
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
+ import { type FieldOption } from '../../chart';
11
+ type BuilderFieldOption = Partial<FieldOption> & {
12
+ label: string;
13
+ value: string;
14
+ key?: string;
15
+ };
16
+ export declare const ChartOptionsBuilder: React.FC<{
17
+ columns?: string[];
18
+ fieldOptions?: BuilderFieldOption[];
19
+ query?: any;
20
+ initialValues: any;
21
+ onChange: (next: any) => void;
22
+ }>;
23
+ export {};
@@ -0,0 +1,58 @@
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 type ChartTypeKey = 'line' | 'bar' | 'barHorizontal' | 'pie' | 'doughnut' | 'scatter' | 'area' | 'funnel';
10
+ export declare function getChartFormSpec(type: ChartTypeKey): ({
11
+ kind: string;
12
+ name: any;
13
+ labelKey: any;
14
+ options: any;
15
+ required?: undefined;
16
+ allowClear?: undefined;
17
+ placeholderKey?: undefined;
18
+ min?: undefined;
19
+ max?: undefined;
20
+ } | {
21
+ kind: string;
22
+ name: any;
23
+ labelKey: any;
24
+ required: boolean;
25
+ allowClear: boolean;
26
+ placeholderKey: string;
27
+ options?: undefined;
28
+ min?: undefined;
29
+ max?: undefined;
30
+ } | {
31
+ kind: string;
32
+ name: any;
33
+ labelKey: any;
34
+ options?: undefined;
35
+ required?: undefined;
36
+ allowClear?: undefined;
37
+ placeholderKey?: undefined;
38
+ min?: undefined;
39
+ max?: undefined;
40
+ } | {
41
+ kind: string;
42
+ name: any;
43
+ labelKey: any;
44
+ min: any;
45
+ max: any;
46
+ options?: undefined;
47
+ required?: undefined;
48
+ allowClear?: undefined;
49
+ placeholderKey?: undefined;
50
+ })[];
51
+ export declare function buildFieldOptions(columns?: string[]): {
52
+ label: string;
53
+ value: string;
54
+ }[];
55
+ export declare function stripInvalidColumns(builder?: {}, columns?: string[]): any;
56
+ export declare function normalizeBuilder(builder: any, columns?: string[]): any;
57
+ export declare function applyTypeChange(builder: {}, nextType: ChartTypeKey, columns?: string[]): any;
58
+ export declare function genRawByBuilder(builder: any): string;
@@ -0,0 +1,16 @@
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 ChartOptionsEditor: React.FC<{
11
+ value?: string;
12
+ onChange?: (next: string) => void;
13
+ disabled?: boolean;
14
+ style?: React.CSSProperties;
15
+ className?: string;
16
+ }>;
@@ -0,0 +1,11 @@
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 chartOptionDefaultValue = "return {\n dataset: { source: ctx.data.objects || [] },\n xAxis: { type: 'category' },\n yAxis: {},\n series: [\n {\n type: 'line',\n smooth: true,\n showSymbol: false,\n },\n ],\n}\n";
11
+ export declare const ChartOptionsPanel: React.FC;
@@ -0,0 +1,10 @@
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 ConfigPanel: React.FC;
@@ -0,0 +1,20 @@
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
+ import * as echarts from 'echarts';
11
+ import type { EChartsType, EChartsOption } from 'echarts';
12
+ interface Props {
13
+ option: EChartsOption;
14
+ style?: React.CSSProperties;
15
+ className?: string;
16
+ theme?: string;
17
+ onRefReady?: (chart: EChartsType) => void;
18
+ }
19
+ declare const ECharts: React.ForwardRefExoticComponent<Props & React.RefAttributes<echarts.ECharts>>;
20
+ export default ECharts;
@@ -0,0 +1,11 @@
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
+ /// <reference types="react" />
10
+ declare const EventsEditor: import("react").ForwardRefExoticComponent<Omit<Partial<import("../components/CodeEditor").CodeEditorProps & import("react").RefAttributes<import("../components/CodeEditor").CodeEditorHandle>>, "ref"> & import("react").RefAttributes<unknown>>;
11
+ export default EventsEditor;
@@ -0,0 +1,10 @@
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 EventsPanel: React.FC;