@nocobase/plugin-data-visualization 2.1.0-beta.36 → 2.1.0-beta.37
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/dist/client/{680.55c8681f2ccb5c51.js → 680.c3725300a5f4414b.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-v2/468.95cb9025bce70a9c.js +10 -0
- package/dist/client-v2/568.5b6cd8eb09c264ba.js +10 -0
- package/dist/client-v2/chart/configs.d.ts +2 -2
- package/dist/client-v2/chart/types.d.ts +3 -4
- package/dist/client-v2/flow/models/Chart.d.ts +1 -0
- package/dist/client-v2/flow/models/ChartBlockModel.d.ts +1 -0
- package/dist/client-v2/flow/models/ECharts.d.ts +2 -0
- package/dist/client-v2/flow/models/EventsEditor.d.ts +5 -2
- package/dist/client-v2/flow/models/QueryBuilder.d.ts +17 -1
- package/dist/client-v2/flow/models/SQLEditor.d.ts +6 -1
- package/dist/client-v2/flow/models/config-store.d.ts +6 -2
- package/dist/client-v2/flow/utils.d.ts +1 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/client-v2/locale.d.ts +1 -0
- package/dist/externalVersion.js +13 -14
- package/dist/node_modules/koa-compose/package.json +1 -1
- package/package.json +2 -2
- package/dist/client/flow/components/CodeEditor.d.ts +0 -22
- package/dist/client/flow/components/DaraButton.d.ts +0 -14
- package/dist/client/flow/models/Chart.d.ts +0 -17
- package/dist/client/flow/models/ChartBlockModel.d.ts +0 -65
- package/dist/client/flow/models/ChartOptionsBuilder.d.ts +0 -18
- package/dist/client/flow/models/ChartOptionsBuilder.service.d.ts +0 -58
- package/dist/client/flow/models/ChartOptionsEditor.d.ts +0 -16
- package/dist/client/flow/models/ChartOptionsPanel.d.ts +0 -11
- package/dist/client/flow/models/ConfigPanel.d.ts +0 -10
- package/dist/client/flow/models/ECharts.d.ts +0 -20
- package/dist/client/flow/models/EventsEditor.d.ts +0 -11
- package/dist/client/flow/models/EventsPanel.d.ts +0 -10
- package/dist/client/flow/models/QueryBuilder.d.ts +0 -13
- package/dist/client/flow/models/QueryBuilder.service.d.ts +0 -20
- package/dist/client/flow/models/QueryPanel.d.ts +0 -10
- package/dist/client/flow/models/ResultPanel.d.ts +0 -10
- package/dist/client/flow/models/SQLEditor.d.ts +0 -10
- package/dist/client/flow/models/config-store.d.ts +0 -20
- package/dist/client/flow/resources/ChartResource.d.ts +0 -37
- package/dist/client/flow/utils.d.ts +0 -42
- package/dist/client-v2/174.dba50627bca0d5e3.js +0 -10
- package/dist/client-v2/542.16e56a96bbebf9b3.js +0 -10
|
@@ -1,37 +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 { BaseRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
export declare class ChartResource<TData = any> extends BaseRecordResource<TData> {
|
|
11
|
-
resourceName: string;
|
|
12
|
-
private refreshTimer;
|
|
13
|
-
protected request: {
|
|
14
|
-
url: string;
|
|
15
|
-
method: string;
|
|
16
|
-
params: Record<string, any>;
|
|
17
|
-
data: Record<string, any>;
|
|
18
|
-
headers: Record<string, any>;
|
|
19
|
-
};
|
|
20
|
-
setQueryParams(query: Record<string, any>, mark?: string): this;
|
|
21
|
-
setFilter(filter: Record<string, any>): this;
|
|
22
|
-
parseQuery(query: Record<string, any>): {
|
|
23
|
-
mode: any;
|
|
24
|
-
sql: any;
|
|
25
|
-
dataSource: any;
|
|
26
|
-
collection: any;
|
|
27
|
-
measures: any;
|
|
28
|
-
dimensions: any;
|
|
29
|
-
filter: any;
|
|
30
|
-
orders: any;
|
|
31
|
-
limit: any;
|
|
32
|
-
offset: any;
|
|
33
|
-
contextParams: any;
|
|
34
|
-
};
|
|
35
|
-
run(): Promise<any>;
|
|
36
|
-
refresh(): Promise<void>;
|
|
37
|
-
}
|
|
@@ -1,42 +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 function convertDatasetFormats(data: Record<string, any>[]): {
|
|
10
|
-
objects: any[];
|
|
11
|
-
rows: any[];
|
|
12
|
-
columns: any[];
|
|
13
|
-
dimensions?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
dimensions: string[];
|
|
16
|
-
objects: Record<string, any>[];
|
|
17
|
-
rows: string[][];
|
|
18
|
-
columns: any[][];
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Normalize ECharts option for dataset-based pie charts.
|
|
22
|
-
* Fixes `{c}` showing `[object Object]` when `dataset.source` is an array of objects by rewriting `{c}` to `{@<valueField>}`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function normalizeEChartsOption(option: any): any;
|
|
25
|
-
export declare const formatters: {
|
|
26
|
-
datetime: {
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}[];
|
|
30
|
-
date: {
|
|
31
|
-
label: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}[];
|
|
34
|
-
time: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
40
|
-
export declare function appendColon(label: string, lang?: string): string;
|
|
41
|
-
export declare const isDebugEnabled: () => boolean;
|
|
42
|
-
export declare const debugLog: (...args: any[]) => void;
|