@devtable/dashboard 14.44.5 → 14.45.0
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/components/plugins/viz-components/regression-chart/migrators/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/regression-chart/render/chart.d.ts +9 -0
- package/dist/components/plugins/viz-components/regression-chart/{viz-regression-chart.d.ts → render/index.d.ts} +1 -1
- package/dist/components/plugins/viz-components/regression-chart/render/option/index.d.ts +3 -0
- package/dist/components/plugins/viz-components/regression-chart/{option → render/option}/regression-series.d.ts +2 -2
- package/dist/components/plugins/viz-components/regression-chart/render/option/series.d.ts +5 -0
- package/dist/components/plugins/viz-components/regression-chart/render/option/tooltip.d.ts +2 -0
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/choose-data-keys/choose-data-keys.d.ts +8 -0
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/choose-data-keys/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/data-key-selector/data-key-selector.d.ts +8 -0
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/data-key-selector/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/index.d.ts +16 -0
- package/dist/components/plugins/viz-components/regression-chart/{toolbox → render/toolbox}/regression-description/desc.d.ts +3 -2
- package/dist/components/plugins/viz-components/regression-chart/render/toolbox/regression-description/index.d.ts +10 -0
- package/dist/components/plugins/viz-components/regression-chart/render/use-data-key.d.ts +6 -0
- package/dist/components/plugins/viz-components/regression-chart/type.d.ts +1 -14
- package/dist/components/plugins/viz-components/regression-chart/viz-regression-chart-editor.d.ts +1 -1
- package/dist/dashboard.es.js +6654 -6670
- package/dist/dashboard.umd.js +70 -70
- package/dist/stats.html +1 -1
- package/dist/utils/data.d.ts +8 -9
- package/dist/version.json +2 -2
- package/package.json +1 -1
- package/dist/components/plugins/viz-components/regression-chart/editors/x-axis.d.ts +0 -8
- package/dist/components/plugins/viz-components/regression-chart/editors/y-axis.d.ts +0 -8
- package/dist/components/plugins/viz-components/regression-chart/option/index.d.ts +0 -2
- package/dist/components/plugins/viz-components/regression-chart/option/series.d.ts +0 -4
- package/dist/components/plugins/viz-components/regression-chart/option/tooltip.d.ts +0 -2
- package/dist/components/plugins/viz-components/regression-chart/option/x-axis.d.ts +0 -2
- package/dist/components/plugins/viz-components/regression-chart/toolbox/index.d.ts +0 -2
- package/dist/components/plugins/viz-components/regression-chart/toolbox/regression-description/index.d.ts +0 -6
|
@@ -2,3 +2,4 @@ import { IMigrationEnv } from '../../../../../components/plugins';
|
|
|
2
2
|
import { IRegressionChartConf } from '../type';
|
|
3
3
|
export declare function v2(legacyConf: $TSFixMe): IRegressionChartConf;
|
|
4
4
|
export declare function v3(legacyConf: any, { panelModel }: IMigrationEnv): IRegressionChartConf;
|
|
5
|
+
export declare function v4(legacyConf: any): IRegressionChartConf;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VizViewProps } from '../../../../../types/plugin';
|
|
2
|
+
import { IRegressionChartConf } from '../type';
|
|
3
|
+
type Props = Pick<VizViewProps, 'context' | 'instance'> & {
|
|
4
|
+
conf: IRegressionChartConf;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const RenderRegressionChart: ({ context, instance, conf, width, height }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { VizViewProps } from '
|
|
1
|
+
import { VizViewProps } from '../../../../../types/plugin';
|
|
2
2
|
export declare function VizRegressionChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRegressionSeriesItem } from '
|
|
2
|
-
import { IRegressionChartConf } from '
|
|
1
|
+
import { IRegressionSeriesItem } from '../../../../../../components/plugins/common-echarts-fields/regression-line';
|
|
2
|
+
import { IRegressionChartConf } from '../../type';
|
|
3
3
|
import { TSeriesConf } from './series';
|
|
4
4
|
type TGetRegressionConfRet = IRegressionSeriesItem[];
|
|
5
5
|
export declare function getRegressionConf(conf: IRegressionChartConf, series: TSeriesConf): TGetRegressionConfRet;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../../../types';
|
|
2
|
+
import { ParsedDataKey } from '../../../../../../utils';
|
|
3
|
+
import { IRegressionChartConf } from '../../type';
|
|
4
|
+
export type TSeriesConf = AnyObject[];
|
|
5
|
+
export declare function getSeries(conf: IRegressionChartConf, rawData: TPanelData, x: ParsedDataKey, y: ParsedDataKey, g: ParsedDataKey): TSeriesConf;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useDataKey } from '../../use-data-key';
|
|
2
|
+
type Props = {
|
|
3
|
+
xDataKey: ReturnType<typeof useDataKey>;
|
|
4
|
+
yDataKey: ReturnType<typeof useDataKey>;
|
|
5
|
+
groupKey: ReturnType<typeof useDataKey>;
|
|
6
|
+
};
|
|
7
|
+
export declare const ChooseDataKeys: ({ xDataKey, yDataKey, groupKey }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './choose-data-keys';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NativeSelectProps } from '@mantine/core';
|
|
2
|
+
import React from './react';
|
|
3
|
+
export declare const DataKeySelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<NativeSelectProps, "value" | "onChange"> & {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
clearable?: boolean | undefined;
|
|
7
|
+
queryID?: string | undefined;
|
|
8
|
+
} & React.RefAttributes<HTMLSelectElement>, "ref"> & React.RefAttributes<HTMLSelectElement>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data-key-selector';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VizViewProps } from '../../../../../../types/plugin';
|
|
2
|
+
import { ParsedDataKey } from '../../../../../../utils/data';
|
|
3
|
+
import { IRegressionChartConf } from '../../type';
|
|
4
|
+
import { useDataKey } from '../use-data-key';
|
|
5
|
+
type Props = {
|
|
6
|
+
conf: IRegressionChartConf;
|
|
7
|
+
context: VizViewProps['context'];
|
|
8
|
+
xDataKey: ReturnType<typeof useDataKey>;
|
|
9
|
+
yDataKey: ReturnType<typeof useDataKey>;
|
|
10
|
+
groupKey: ReturnType<typeof useDataKey>;
|
|
11
|
+
x: ParsedDataKey;
|
|
12
|
+
y: ParsedDataKey;
|
|
13
|
+
g: ParsedDataKey;
|
|
14
|
+
};
|
|
15
|
+
export declare function Toolbox({ conf, context, xDataKey, yDataKey, groupKey, x, y, g }: Props): import('./react/jsx-runtime').JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IRegressionChartConf } from '
|
|
1
|
+
import { IRegressionChartConf } from '../../../type';
|
|
2
2
|
import { ReactNode } from './react';
|
|
3
|
+
import { ParsedDataKey } from '../../../../../../../utils';
|
|
3
4
|
export type TDescription = {
|
|
4
5
|
name: string;
|
|
5
6
|
expression: ReactNode;
|
|
6
7
|
rSquared: number;
|
|
7
8
|
adjustedRSquared: number;
|
|
8
9
|
};
|
|
9
|
-
export declare function getRegressionDescription(queryData: TQueryData, conf?: IRegressionChartConf): TDescription[];
|
|
10
|
+
export declare function getRegressionDescription(queryData: TQueryData, x: ParsedDataKey, y: ParsedDataKey, g: ParsedDataKey, conf?: IRegressionChartConf): TDescription[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParsedDataKey } from '../../../../../../../utils';
|
|
2
|
+
import { IRegressionChartConf } from '../../../type';
|
|
3
|
+
export interface IRegressionDescription {
|
|
4
|
+
conf: IRegressionChartConf;
|
|
5
|
+
queryData: TQueryData;
|
|
6
|
+
x: ParsedDataKey;
|
|
7
|
+
y: ParsedDataKey;
|
|
8
|
+
g: ParsedDataKey;
|
|
9
|
+
}
|
|
10
|
+
export declare function RegressionDescription({ conf, queryData, x, y, g }: IRegressionDescription): import('./react/jsx-runtime').JSX.Element;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { IAxisLabelOverflow } from '../../../../components/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
|
-
import { IXAxisLabelFormatter } from '../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
|
|
3
|
-
import { TNumberFormat } from '../../../../utils';
|
|
4
1
|
import { IRegressionConf } from '../cartesian/type';
|
|
5
2
|
export interface IRegressionChartConf {
|
|
6
3
|
x_axis: {
|
|
7
|
-
name: string;
|
|
8
4
|
data_key: TDataKey;
|
|
9
|
-
axisLabel: {
|
|
10
|
-
rotate: number;
|
|
11
|
-
format: TNumberFormat;
|
|
12
|
-
overflow: IAxisLabelOverflow;
|
|
13
|
-
formatter: IXAxisLabelFormatter;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
y_axis: {
|
|
17
|
-
name: string;
|
|
18
5
|
};
|
|
19
6
|
regression: IRegressionConf;
|
|
20
7
|
}
|
|
21
|
-
export declare const
|
|
8
|
+
export declare const getDefaultConfig: () => IRegressionChartConf;
|
package/dist/components/plugins/viz-components/regression-chart/viz-regression-chart-editor.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizConfigProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizRegressionChartEditor({ context }: VizConfigProps): import('./react/jsx-runtime').JSX.Element;
|
|
2
|
+
export declare function VizRegressionChartEditor({ context }: VizConfigProps): import('./react/jsx-runtime').JSX.Element | null;
|