@devtable/dashboard 12.5.0 → 12.8.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/filter/filter-date-range/widget/shortcuts/shortcuts.d.ts +1 -1
- package/dist/components/panel/settings/common/data-field-selector.d.ts +1 -0
- package/dist/components/panel/settings/common/mantine-size-selector.d.ts +6 -3
- package/dist/components/plugins/common-echarts-fields/axis-label-rotate/axis-label-rotate-input.d.ts +10 -0
- package/dist/components/plugins/common-echarts-fields/axis-label-rotate/index.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/label-position/label-position-selector.d.ts +3 -2
- package/dist/components/plugins/common-echarts-fields/line-type/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/line-type/line-type-selector.d.ts +11 -0
- package/dist/components/plugins/common-echarts-fields/line-type/types.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/name-text-align/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/name-text-align/name-text-align-selector.d.ts +12 -0
- package/dist/components/plugins/common-echarts-fields/name-text-align/types.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/orientation/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/orientation/orientation-selector.d.ts +12 -0
- package/dist/components/plugins/common-echarts-fields/orientation/types.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/regression-line/types.d.ts +3 -2
- package/dist/components/plugins/{viz-components/cartesian/editors/scatter-size-select → common-echarts-fields/symbol-size}/dynamic-size-function-editor.d.ts +3 -3
- package/dist/components/plugins/common-echarts-fields/symbol-size/dynamic.d.ts +6 -0
- package/dist/components/plugins/common-echarts-fields/symbol-size/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/symbol-size/static.d.ts +7 -0
- package/dist/components/plugins/common-echarts-fields/symbol-size/symbol-size-selector.d.ts +9 -0
- package/dist/components/plugins/common-echarts-fields/symbol-size/types.d.ts +13 -0
- package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +2 -1
- package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/index.d.ts +4 -9
- package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/types.d.ts +1 -1
- package/dist/components/plugins/{viz-components/cartesian/editors/x-axis/x-axis-label-formatter/index.d.ts → common-echarts-fields/x-axis-label-formatter/x-axis-label-formatter-field.d.ts} +1 -0
- package/dist/components/plugins/common-echarts-fields/x-axis-position/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/x-axis-position/types.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/x-axis-position/x-axis-position-selector.d.ts +11 -0
- package/dist/components/plugins/common-echarts-fields/y-axis-position/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/y-axis-position/types.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/y-axis-position/y-axis-position-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/color-type/color-type-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/color-type/index.d.ts +2 -0
- package/dist/components/plugins/editor-components/color-type/type.d.ts +1 -0
- package/dist/components/plugins/editor-components/flex/align-items-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/flex/index.d.ts +3 -0
- package/dist/components/plugins/editor-components/flex/justify-content-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/flex/type.d.ts +2 -0
- package/dist/components/plugins/editor-components/horizontal-align-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/index.d.ts +7 -0
- package/dist/components/plugins/editor-components/vertical-align-selector.d.ts +11 -0
- package/dist/components/plugins/editor-components/viz-config-banner.d.ts +5 -0
- package/dist/components/plugins/plugin-context.d.ts +1 -0
- package/dist/components/plugins/viz-components/bar-3d-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/index.d.ts +10 -2
- package/dist/components/plugins/viz-components/boxplot-chart/option/legend.d.ts +3 -1
- package/dist/components/plugins/viz-components/boxplot-chart/option/tooltip/index.d.ts +3 -1
- package/dist/components/plugins/viz-components/boxplot-chart/option/type.d.ts +5 -0
- package/dist/components/plugins/viz-components/boxplot-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/boxplot-chart/type.d.ts +3 -3
- package/dist/components/plugins/viz-components/button/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/button/type.d.ts +3 -2
- package/dist/components/plugins/viz-components/calendar-heatmap/option/formatters.d.ts +1 -1
- package/dist/components/plugins/viz-components/calendar-heatmap/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/option/series/get-echarts-symbol-size.d.ts +2 -0
- package/dist/components/plugins/viz-components/cartesian/option/series/reference_lines.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/cartesian/type.d.ts +15 -10
- package/dist/components/plugins/viz-components/funnel/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/funnel/type.d.ts +2 -1
- package/dist/components/plugins/viz-components/heatmap/option/formatters.d.ts +1 -1
- package/dist/components/plugins/viz-components/heatmap/option/x-axis.d.ts +1 -1
- package/dist/components/plugins/viz-components/heatmap/option/y-axis.d.ts +1 -1
- package/dist/components/plugins/viz-components/heatmap/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/heatmap/type.d.ts +3 -2
- package/dist/components/plugins/viz-components/horizontal-bar-chart/option/series/reference_lines.d.ts +2 -2
- package/dist/components/plugins/viz-components/horizontal-bar-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/horizontal-bar-chart/type.d.ts +11 -6
- package/dist/components/plugins/viz-components/merico-estimation-chart/option/x-axis.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-estimation-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-estimation-chart/type.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/formatters.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/x-axis.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/y-axis.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-heatmap/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-heatmap/type.d.ts +4 -3
- package/dist/components/plugins/viz-components/merico-stats/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-stats/type.d.ts +3 -3
- package/dist/components/plugins/viz-components/pareto-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/pareto-chart/type.d.ts +4 -3
- package/dist/components/plugins/viz-components/pie-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/radar-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/regression-chart/migrators/index.d.ts +1 -1
- package/dist/components/plugins/viz-components/regression-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/regression-chart/type.d.ts +1 -1
- package/dist/components/plugins/viz-components/rich-text/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/scatter-chart/option/get-echarts-symbol-size.d.ts +2 -0
- package/dist/components/plugins/viz-components/scatter-chart/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/scatter-chart/type.d.ts +5 -4
- package/dist/components/plugins/viz-components/stats/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/stats/type.d.ts +3 -2
- package/dist/components/plugins/viz-components/sunburst/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/table/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/table/type.d.ts +2 -1
- package/dist/components/plugins/viz-components/table/value-type-selector.d.ts +0 -1
- package/dist/components/plugins/viz-components/text/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/text/type.d.ts +2 -1
- package/dist/components/plugins/viz-components/viz-merico-gqm/translation.d.ts +2 -0
- package/dist/contexts/dates-provider.d.ts +4 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/dashboard-editor/model/filters/index.d.ts +6 -0
- package/dist/dashboard.es.js +17085 -15890
- package/dist/dashboard.umd.js +117 -122
- package/dist/i18n/en.d.ts +543 -6
- package/dist/i18n/zh.d.ts +543 -6
- package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +1 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +9 -0
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +6 -0
- package/dist/stats.html +1 -1
- package/dist/types/plugin/index.d.ts +5 -0
- package/package.json +1 -1
- package/dist/components/panel/settings/common/css-types.d.ts +0 -10
- package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/dynamic.d.ts +0 -6
- package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/get-echarts-symbol-size.d.ts +0 -2
- package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/index.d.ts +0 -9
- package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/static.d.ts +0 -7
- package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/types.d.ts +0 -13
- package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
- package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -2
- package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
- package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
- package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -3
- package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
- package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -3
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic-size-function-editor.d.ts +0 -7
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic.d.ts +0 -6
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/get-echarts-symbol-size.d.ts +0 -2
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/index.d.ts +0 -9
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/static.d.ts +0 -7
- package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/types.d.ts +0 -13
- package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
- package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -2
- package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
- package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -5
- /package/dist/components/plugins/{controls → editor-components}/color-interpolation-select/index.d.ts +0 -0
- /package/dist/components/plugins/{controls → editor-components}/color-mapping-editor/index.d.ts +0 -0
- /package/dist/components/plugins/{controls → editor-components}/color-mapping-editor/style.d.ts +0 -0
|
@@ -7,6 +7,7 @@ interface IDataFieldSelector {
|
|
|
7
7
|
onChange: (v: string) => void;
|
|
8
8
|
clearable?: boolean;
|
|
9
9
|
sx?: Sx;
|
|
10
|
+
description?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const DataFieldSelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDataFieldSelector & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>>;
|
|
12
13
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MantineSize, Sx } from '@mantine/core';
|
|
3
|
+
interface Props {
|
|
3
4
|
label: string;
|
|
4
5
|
value: MantineSize;
|
|
5
6
|
onChange: (v: MantineSize) => void;
|
|
7
|
+
sx?: Sx;
|
|
8
|
+
disabled?: boolean;
|
|
6
9
|
}
|
|
7
|
-
export declare const MantineSizeSelector: (
|
|
10
|
+
export declare const MantineSizeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
8
11
|
export {};
|
package/dist/components/plugins/common-echarts-fields/axis-label-rotate/axis-label-rotate-input.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
interface Props {
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: number;
|
|
6
|
+
onChange: (v: number) => void;
|
|
7
|
+
sx?: Sx;
|
|
8
|
+
}
|
|
9
|
+
export declare const AxisLabelRotateInput: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './axis-label-rotate-input';
|
package/dist/components/plugins/common-echarts-fields/label-position/label-position-selector.d.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import { IEchartsLabelPosition, LabelPositionOptionType } from './types';
|
|
3
3
|
interface ILabelPositionSelector {
|
|
4
4
|
label: string;
|
|
5
|
-
value
|
|
6
|
-
onChange: (v: IEchartsLabelPosition) => void;
|
|
5
|
+
value?: IEchartsLabelPosition;
|
|
6
|
+
onChange: (v: IEchartsLabelPosition | undefined) => void;
|
|
7
7
|
options?: LabelPositionOptionType[];
|
|
8
|
+
withOffOption?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const LabelPositionSelector: import('./react').ForwardRefExoticComponent<ILabelPositionSelector & import('./react').RefAttributes<HTMLInputElement>>;
|
|
10
11
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { IEChartsLineType } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: IEChartsLineType;
|
|
7
|
+
onChange: (v: IEChartsLineType) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const LineTypeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IEChartsLineType = 'solid' | 'dashed' | 'dotted';
|
package/dist/components/plugins/common-echarts-fields/name-text-align/name-text-align-selector.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { EChartsNameTextAlign } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: EChartsNameTextAlign;
|
|
7
|
+
onChange: (v: EChartsNameTextAlign) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const NameTextAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EChartsNameTextAlign = 'left' | 'center' | 'right';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { ChartingOrientation } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: ChartingOrientation;
|
|
7
|
+
onChange: (v: ChartingOrientation) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const OrientationSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ChartingOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../types';
|
|
2
|
+
import { IEChartsLineType } from '../line-type';
|
|
2
3
|
export interface IRegressionTransform {
|
|
3
4
|
type: 'ecStat:regression';
|
|
4
5
|
config: {
|
|
5
|
-
method: 'linear' | 'exponential' | '
|
|
6
|
+
method: 'linear' | 'exponential' | 'logistic' | 'polynomial';
|
|
6
7
|
order: number;
|
|
7
8
|
formulaOn: 'end';
|
|
8
9
|
};
|
|
@@ -12,7 +13,7 @@ export interface IRegressionLineConf {
|
|
|
12
13
|
yAxisIndex: number;
|
|
13
14
|
color: string;
|
|
14
15
|
lineStyle: {
|
|
15
|
-
type:
|
|
16
|
+
type: IEChartsLineType;
|
|
16
17
|
width: number;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SymbolSize_Dynamic } from './types';
|
|
2
2
|
interface IDynamicSizeFunctionEditor {
|
|
3
|
-
value:
|
|
4
|
-
onChange: (v:
|
|
3
|
+
value: SymbolSize_Dynamic['func_content'];
|
|
4
|
+
onChange: (v: SymbolSize_Dynamic['func_content']) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const DynamicSizeFunctionEditor: ({ value, onChange }: IDynamicSizeFunctionEditor) => import('./react/jsx-runtime').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SymbolSize } from './types';
|
|
2
|
+
export interface IDynamicSymbolSizeField {
|
|
3
|
+
value: SymbolSize;
|
|
4
|
+
onChange: (v: SymbolSize) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DynamicSymbolSizeField: ({ value, onChange }: IDynamicSymbolSizeField) => import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SymbolSize } from './types';
|
|
2
|
+
interface IStaticSymbolSizeField {
|
|
3
|
+
value: SymbolSize;
|
|
4
|
+
onChange: (v: SymbolSize) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const StaticSymbolSizeField: ({ value, onChange }: IStaticSymbolSizeField) => import('./react/jsx-runtime').JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SymbolSize } from './types';
|
|
3
|
+
interface ISymbolSizeSelect {
|
|
4
|
+
label?: string;
|
|
5
|
+
value: SymbolSize;
|
|
6
|
+
onChange: (v: SymbolSize) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SymbolSizeSelector: import('./react').ForwardRefExoticComponent<ISymbolSizeSelect & import('./react').RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SymbolSize_Static = {
|
|
2
|
+
type: 'static';
|
|
3
|
+
size: number;
|
|
4
|
+
};
|
|
5
|
+
export type SymbolSize_Dynamic = {
|
|
6
|
+
type: 'dynamic';
|
|
7
|
+
func_content: string;
|
|
8
|
+
};
|
|
9
|
+
export type SymbolSize = SymbolSize_Static | SymbolSize_Dynamic;
|
|
10
|
+
export declare const DEFAULT_SCATTER_SIZE: {
|
|
11
|
+
static: SymbolSize_Static;
|
|
12
|
+
dynamic: SymbolSize_Dynamic;
|
|
13
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { IXAxisLabelFormatter } from './types';
|
|
2
|
-
export
|
|
2
|
+
export type FormatterFuncType = (value: string | number, index?: number) => string | number;
|
|
3
|
+
export declare function getEchartsXAxisLabel({ enabled, func_content }: IXAxisLabelFormatter): FormatterFuncType;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onChange: (v: IXAxisLabelFormatter) => void;
|
|
6
|
-
triggerButtonText?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
|
|
9
|
-
export {};
|
|
1
|
+
export * from './function-editor';
|
|
2
|
+
export * from './get-echarts-x-axis-tick-label';
|
|
3
|
+
export * from './x-axis-label-formatter-field';
|
|
4
|
+
export * from './types';
|
|
@@ -3,6 +3,7 @@ import { IXAxisLabelFormatter } from './types';
|
|
|
3
3
|
interface IXAxisLabelFormatterField {
|
|
4
4
|
value: IXAxisLabelFormatter;
|
|
5
5
|
onChange: (v: IXAxisLabelFormatter) => void;
|
|
6
|
+
triggerButtonText?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EChartsXAxisPosition = 'top' | 'bottom';
|
package/dist/components/plugins/common-echarts-fields/x-axis-position/x-axis-position-selector.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { EChartsXAxisPosition } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: EChartsXAxisPosition;
|
|
7
|
+
onChange: (v: EChartsXAxisPosition) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const XAxisPositionSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EChartsYAxisPosition = 'left' | 'right';
|
package/dist/components/plugins/common-echarts-fields/y-axis-position/y-axis-position-selector.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { EChartsYAxisPosition } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: EChartsYAxisPosition;
|
|
7
|
+
onChange: (v: EChartsYAxisPosition) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const YAxisPositionSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { ColorType } from './type';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: ColorType;
|
|
7
|
+
onChange: (v: ColorType) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const ColorTypeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ColorType = 'static' | 'interpolation' | 'none';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { AlignItems } from './type';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: AlignItems;
|
|
7
|
+
onChange: (v: AlignItems) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const AlignItemsSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
import { JustifyContent } from './type';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: JustifyContent;
|
|
7
|
+
onChange: (v: JustifyContent) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const JustifyContentSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
export type HorizontalAlign = 'left' | 'center' | 'right';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: HorizontalAlign;
|
|
7
|
+
onChange: (v: HorizontalAlign) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const HorizontalAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './viz-config-banner';
|
|
2
|
+
export * from './horizontal-align-selector';
|
|
3
|
+
export * from './vertical-align-selector';
|
|
4
|
+
export * from './color-interpolation-select';
|
|
5
|
+
export * from './color-mapping-editor';
|
|
6
|
+
export * from './color-type';
|
|
7
|
+
export * from './flex';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
3
|
+
export type VerticalAlign = 'top' | 'center' | 'bottom';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: VerticalAlign;
|
|
7
|
+
onChange: (v: VerticalAlign) => void;
|
|
8
|
+
sx?: Sx;
|
|
9
|
+
}
|
|
10
|
+
export declare const VerticalAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export interface IPluginContextProps {
|
|
|
9
9
|
vizManager: VizManager;
|
|
10
10
|
colorManager: IColorManager;
|
|
11
11
|
}
|
|
12
|
+
export declare const vizList: import('../../types/plugin').VizComponent[];
|
|
12
13
|
export declare const pluginManager: PluginManager;
|
|
13
14
|
/**
|
|
14
15
|
* All available tokens of services, it also serves as an overview of the
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ITemplateVariable } from '../../../../../utils';
|
|
2
2
|
import { IBoxplotChartConf } from '../type';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
3
4
|
interface IGetOption {
|
|
4
5
|
config: IBoxplotChartConf;
|
|
5
6
|
data: TPanelData;
|
|
6
7
|
variables: ITemplateVariable[];
|
|
8
|
+
t: TFunction;
|
|
7
9
|
}
|
|
8
|
-
export declare function getOption({ config, data, variables }: IGetOption): {
|
|
10
|
+
export declare function getOption({ config, data, variables, t }: IGetOption): {
|
|
9
11
|
dataZoom: ({
|
|
10
12
|
type: string;
|
|
11
13
|
xAxisIndex: number[];
|
|
@@ -74,7 +76,13 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
74
76
|
position: string;
|
|
75
77
|
};
|
|
76
78
|
};
|
|
77
|
-
} |
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
type: "custom";
|
|
82
|
+
itemStyle: {
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
|
85
|
+
} | {
|
|
78
86
|
name: string;
|
|
79
87
|
type: string;
|
|
80
88
|
ignore: boolean;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IBoxplotChartConf } from '../type';
|
|
2
|
-
|
|
2
|
+
import { SeriesNames } from './type';
|
|
3
|
+
export declare function getLegend({ config, seriesNames }: {
|
|
3
4
|
config: IBoxplotChartConf;
|
|
5
|
+
seriesNames: SeriesNames;
|
|
4
6
|
}): Record<string, any>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IBoxplotChartConf } from '../../type';
|
|
2
|
-
|
|
2
|
+
import { SeriesNames } from '../type';
|
|
3
|
+
export declare function getTooltip({ config, seriesNames }: {
|
|
3
4
|
config: IBoxplotChartConf;
|
|
5
|
+
seriesNames: SeriesNames;
|
|
4
6
|
}): any;
|
|
@@ -2,21 +2,21 @@ import { IAxisLabelOverflow } from '../../../../components/plugins/common-echart
|
|
|
2
2
|
import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
|
|
3
3
|
import { AnyObject } from '../../../../types';
|
|
4
4
|
import { TNumberFormat } from '../../../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { ChartingOrientation } from '../../common-echarts-fields/orientation';
|
|
6
|
+
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
6
7
|
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
7
8
|
export interface IBoxplotReferenceLine {
|
|
8
9
|
name: string;
|
|
9
10
|
template: string;
|
|
10
11
|
variable_key: string;
|
|
11
12
|
}
|
|
12
|
-
export type TLegendOrientation = 'horizontal' | 'vertical';
|
|
13
13
|
export type TBoxplotLegend = {
|
|
14
14
|
show: boolean;
|
|
15
15
|
top: string;
|
|
16
16
|
right: string;
|
|
17
17
|
bottom: string;
|
|
18
18
|
left: string;
|
|
19
|
-
orient:
|
|
19
|
+
orient: ChartingOrientation;
|
|
20
20
|
type: 'scroll';
|
|
21
21
|
};
|
|
22
22
|
export interface IBoxplotChartConf {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { MantineColor, MantineSize, Variants } from '@mantine/core';
|
|
2
|
+
import { HorizontalAlign, VerticalAlign } from '../../editor-components';
|
|
2
3
|
export interface IButtonConf {
|
|
3
4
|
content: string;
|
|
4
5
|
variant: Variants<'filled' | 'outline' | 'light' | 'white' | 'default' | 'subtle' | 'gradient'>;
|
|
5
6
|
color: MantineColor;
|
|
6
7
|
size: MantineSize;
|
|
7
8
|
compact: boolean;
|
|
8
|
-
horizontal_align:
|
|
9
|
-
vertical_align:
|
|
9
|
+
horizontal_align: HorizontalAlign;
|
|
10
|
+
vertical_align: VerticalAlign;
|
|
10
11
|
}
|
|
11
12
|
export declare const DEFAULT_CONFIG: IButtonConf;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormatterFuncType } from '../../heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
1
|
import { ICalendarHeatmapConf } from '../type';
|
|
2
|
+
import { FormatterFuncType } from '../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
|
|
3
3
|
export type ValueFormattersType = {
|
|
4
4
|
heat_block: FormatterFuncType;
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IMigrationEnv } from '../../../../../components/plugins';
|
|
1
2
|
import { AnyObject } from '../../../../../types';
|
|
2
3
|
import { ITemplateVariable } from '../../../../../utils';
|
|
3
4
|
import { ICartesianChartConf } from '../type';
|
|
4
|
-
import { IMigrationEnv } from '../../../../../components/plugins';
|
|
5
5
|
export declare function updateSchema2(legacyConf: ICartesianChartConf & {
|
|
6
6
|
variables: ITemplateVariable[];
|
|
7
7
|
}): AnyObject;
|
package/dist/components/plugins/viz-components/cartesian/option/series/get-echarts-symbol-size.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SymbolSize } from '../../../../common-echarts-fields/symbol-size/types';
|
|
2
|
+
export declare function getEChartsSymbolSize({ type, ...rest }: SymbolSize, data: TPanelData, x_axis_data_key: string, variableValueMap: Record<string, string | number>): number | ((_value: number, params: $TSFixMe) => any);
|
|
@@ -20,7 +20,7 @@ export declare function getReferenceLines(reference_lines: ICartesianReferenceLi
|
|
|
20
20
|
silent: boolean;
|
|
21
21
|
symbol: string[];
|
|
22
22
|
lineStyle: {
|
|
23
|
-
type: "
|
|
23
|
+
type: import("../../../../common-echarts-fields/line-type").IEChartsLineType;
|
|
24
24
|
width: number;
|
|
25
25
|
color: string;
|
|
26
26
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { IAxisLabelOverflow } from '../../../../components/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
2
|
import { IRegressionLineConf, IRegressionTransform } from '../../../../components/plugins/common-echarts-fields/regression-line';
|
|
3
3
|
import { AggregationType, TNumberFormat } from '../../../../utils';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { IEchartsLabelPosition } from '../../common-echarts-fields/label-position';
|
|
5
|
+
import { IEChartsLineType } from '../../common-echarts-fields/line-type';
|
|
6
|
+
import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
|
|
7
|
+
import { ChartingOrientation } from '../../common-echarts-fields/orientation';
|
|
8
|
+
import { SymbolSize } from '../../common-echarts-fields/symbol-size';
|
|
7
9
|
import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metric';
|
|
10
|
+
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
11
|
+
import { EChartsYAxisPosition } from '../../common-echarts-fields/y-axis-position';
|
|
12
|
+
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
8
13
|
export interface ICartesianChartSeriesItem {
|
|
9
14
|
type: 'line' | 'bar' | 'scatter';
|
|
10
15
|
name: string;
|
|
11
16
|
display_name_on_line: boolean;
|
|
12
17
|
showSymbol: boolean;
|
|
13
|
-
symbolSize:
|
|
18
|
+
symbolSize: SymbolSize;
|
|
14
19
|
y_axis_data_key: TDataKey;
|
|
15
20
|
yAxisIndex: number;
|
|
16
|
-
label_position?:
|
|
21
|
+
label_position?: IEchartsLabelPosition;
|
|
17
22
|
stack: string;
|
|
18
23
|
color?: string;
|
|
19
24
|
barMinWidth: string;
|
|
@@ -25,7 +30,7 @@ export interface ICartesianChartSeriesItem {
|
|
|
25
30
|
group_by_key: string;
|
|
26
31
|
aggregation_on_value?: AggregationType;
|
|
27
32
|
lineStyle: {
|
|
28
|
-
type:
|
|
33
|
+
type: IEChartsLineType;
|
|
29
34
|
width: number;
|
|
30
35
|
};
|
|
31
36
|
hide_in_legend: boolean;
|
|
@@ -35,8 +40,8 @@ export interface IYAxisConf {
|
|
|
35
40
|
max: string;
|
|
36
41
|
name: string;
|
|
37
42
|
show: boolean;
|
|
38
|
-
position:
|
|
39
|
-
nameAlignment:
|
|
43
|
+
position: EChartsYAxisPosition;
|
|
44
|
+
nameAlignment: EChartsNameTextAlign;
|
|
40
45
|
label_formatter: TNumberFormat;
|
|
41
46
|
}
|
|
42
47
|
export interface IRegressionConf {
|
|
@@ -50,10 +55,10 @@ export interface ICartesianReferenceLine {
|
|
|
50
55
|
name: string;
|
|
51
56
|
template: string;
|
|
52
57
|
variable_key: string;
|
|
53
|
-
orientation:
|
|
58
|
+
orientation: ChartingOrientation;
|
|
54
59
|
yAxisIndex: number;
|
|
55
60
|
lineStyle: {
|
|
56
|
-
type:
|
|
61
|
+
type: IEChartsLineType;
|
|
57
62
|
width: number;
|
|
58
63
|
color: string;
|
|
59
64
|
};
|