@devtable/dashboard 10.5.3 → 10.6.1
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/dashboard.es.js +4537 -4388
- package/dist/dashboard.umd.js +68 -67
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/field/dynamic-function-editor.d.ts +7 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/field/dynamic.d.ts +6 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/field/index.d.ts +9 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/field/static.d.ts +7 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/get-number-or-dynamic-value.d.ts +2 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/index.d.ts +3 -0
- package/dist/plugins/common-echarts-fields/number-or-dynamic-value/types.d.ts +13 -0
- package/dist/plugins/viz-components/heatmap/option/visual-map.d.ts +3 -3
- package/dist/plugins/viz-components/heatmap/type.d.ts +3 -2
- package/dist/stats.html +1 -1
- package/package.json +2 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TNumberOrDynamic_Dynamic } from '../types';
|
|
2
|
+
interface IDynamicSizeFunctionEditor {
|
|
3
|
+
value: TNumberOrDynamic_Dynamic['value'];
|
|
4
|
+
onChange: (v: TNumberOrDynamic_Dynamic['value']) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DynamicSizeFunctionEditor: ({ value, onChange }: IDynamicSizeFunctionEditor) => import('./react/jsx-runtime').JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TNumberOrDynamic } from '../types';
|
|
2
|
+
export interface IDynamicScatterSizeField {
|
|
3
|
+
value: TNumberOrDynamic;
|
|
4
|
+
onChange: (v: TNumberOrDynamic) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DynamicScatterSizeField: ({ value, onChange }: IDynamicScatterSizeField) => import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TNumberOrDynamic } from '../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
value: TNumberOrDynamic;
|
|
6
|
+
onChange: (v: TNumberOrDynamic) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const NumberOrDynamicValue: import('./react').ForwardRefExoticComponent<IProps & import('./react').RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TNumberOrDynamic } from '../types';
|
|
2
|
+
interface IProps {
|
|
3
|
+
value: TNumberOrDynamic;
|
|
4
|
+
onChange: (v: TNumberOrDynamic) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const StaticNumberField: ({ value: conf, onChange }: IProps) => import('./react/jsx-runtime').JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type TNumberOrDynamic_Static = {
|
|
2
|
+
type: 'static';
|
|
3
|
+
value: number | '';
|
|
4
|
+
};
|
|
5
|
+
export declare type TNumberOrDynamic_Dynamic = {
|
|
6
|
+
type: 'dynamic';
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type TNumberOrDynamic = TNumberOrDynamic_Static | TNumberOrDynamic_Dynamic;
|
|
10
|
+
export declare const DEFAULT_VALUE: {
|
|
11
|
+
static: TNumberOrDynamic_Static;
|
|
12
|
+
dynamic: TNumberOrDynamic_Dynamic;
|
|
13
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IHeatmapConf } from '../type';
|
|
2
|
-
export declare function getVisualMap(conf: IHeatmapConf): {
|
|
3
|
-
min:
|
|
4
|
-
max:
|
|
2
|
+
export declare function getVisualMap(conf: IHeatmapConf, variableValueMap: Record<string, string | number>): {
|
|
3
|
+
min: any;
|
|
4
|
+
max: any;
|
|
5
5
|
calculable: boolean;
|
|
6
6
|
orient: string;
|
|
7
7
|
left: string;
|
|
@@ -2,6 +2,7 @@ import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
4
|
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
|
+
import { TNumberOrDynamic } from '~/plugins/common-echarts-fields/number-or-dynamic-value/types';
|
|
5
6
|
export interface IHeatmapConf {
|
|
6
7
|
x_axis: {
|
|
7
8
|
name: string;
|
|
@@ -23,8 +24,8 @@ export interface IHeatmapConf {
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
heat_block: {
|
|
26
|
-
min:
|
|
27
|
-
max:
|
|
27
|
+
min: TNumberOrDynamic;
|
|
28
|
+
max: TNumberOrDynamic;
|
|
28
29
|
name: string;
|
|
29
30
|
data_key: TDataKey;
|
|
30
31
|
value_formatter: TNumbroFormat;
|