@devtable/dashboard 11.5.3 → 11.7.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/cartesian/editors/tooltip/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/cartesian/editors/tooltip/metric.d.ts +9 -0
- package/dist/components/plugins/viz-components/cartesian/editors/tooltip/metrics.d.ts +8 -0
- package/dist/components/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/cartesian/option/tooltip.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/type.d.ts +4 -0
- package/dist/components/view/view-component/preview/division.d.ts +2 -2
- package/dist/components/view/view-component/preview/modal.d.ts +2 -2
- package/dist/components/view/view-component/render/division.d.ts +4 -4
- package/dist/components/view/view-component/render/modal.d.ts +2 -2
- package/dist/components/view/view-component/utils/use-download-div-screenshot.d.ts +2 -2
- package/dist/dashboard-editor/model/views/index.d.ts +10 -0
- package/dist/dashboard-editor/model/views/view.d.ts +1 -0
- package/dist/dashboard.es.js +3729 -3607
- package/dist/dashboard.umd.js +81 -77
- package/dist/model/render-model/dashboard/content/views/view.d.ts +1 -0
- package/dist/model/render-model/dashboard/content/views/views.d.ts +7 -0
- package/dist/stats.html +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { ICartesianChartConf } from '../../type';
|
|
3
|
+
interface ITooltipField {
|
|
4
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<ICartesianChartConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare function TooltipField({ control, watch }: ITooltipField): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { ICartesianChartConf } from '../../type';
|
|
3
|
+
interface ITooltipMetricField {
|
|
4
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
5
|
+
index: number;
|
|
6
|
+
remove: (index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TooltipMetricField: ({ control, index, remove }: ITooltipMetricField) => import('./react/jsx-runtime').JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { ICartesianChartConf } from '../../type';
|
|
3
|
+
interface ITooltipMetricsField {
|
|
4
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<ICartesianChartConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TooltipMetricsField: ({ control, watch }: ITooltipMetricsField) => import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -2,6 +2,6 @@ import { VersionBasedMigrator } from '../../../../components/plugins/plugin-data
|
|
|
2
2
|
import { VizComponent } from '../../../../types/plugin';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
4
|
configVersions(): void;
|
|
5
|
-
readonly VERSION =
|
|
5
|
+
readonly VERSION = 19;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -21,3 +21,4 @@ export declare function v15(legacyConf: any): ICartesianChartConf;
|
|
|
21
21
|
export declare function v16(legacyConf: any): ICartesianChartConf;
|
|
22
22
|
export declare function v17(legacyConf: any): ICartesianChartConf;
|
|
23
23
|
export declare function v18(legacyConf: any, { panelModel }: IMigrationEnv): ICartesianChartConf;
|
|
24
|
+
export declare function v19(legacyConf: any): ICartesianChartConf;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICartesianChartConf } from '../type';
|
|
2
2
|
import { IEchartsSeriesItem } from './utils/types';
|
|
3
|
-
export declare function getTooltip(conf: ICartesianChartConf, series: IEchartsSeriesItem[], labelFormatters: Record<string, (p: $TSFixMe) => string>): any;
|
|
3
|
+
export declare function getTooltip(conf: ICartesianChartConf, data: TPanelData, series: IEchartsSeriesItem[], labelFormatters: Record<string, (p: $TSFixMe) => string>): any;
|
|
@@ -4,6 +4,7 @@ import { AggregationType, TNumberFormat } from '../../../../utils';
|
|
|
4
4
|
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
5
5
|
import { TScatterSize } from './editors/scatter-size-select/types';
|
|
6
6
|
import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
|
|
7
|
+
import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metric';
|
|
7
8
|
export interface ICartesianChartSeriesItem {
|
|
8
9
|
type: 'line' | 'bar' | 'scatter';
|
|
9
10
|
name: string;
|
|
@@ -88,6 +89,9 @@ export interface ICartesianChartConf {
|
|
|
88
89
|
bottom: string;
|
|
89
90
|
};
|
|
90
91
|
};
|
|
92
|
+
tooltip: {
|
|
93
|
+
metrics: IEchartsTooltipMetric[];
|
|
94
|
+
};
|
|
91
95
|
reference_lines: ICartesianReferenceLine[];
|
|
92
96
|
reference_areas: ICartesianReferenceArea[];
|
|
93
97
|
dataZoom: TEchartsDataZoomConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from './react';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewRenderModelInstance } from '../../../../model';
|
|
3
3
|
export declare const PreviewViewDivision: (({ children, view }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
view:
|
|
5
|
+
view: ViewRenderModelInstance;
|
|
6
6
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from './react';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewRenderModelInstance } from '../../../../model';
|
|
3
3
|
export declare const PreviewViewModal: (({ children, view }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
view:
|
|
5
|
+
view: ViewRenderModelInstance;
|
|
6
6
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Sx } from '@mantine/core';
|
|
2
2
|
import { ReactNode } from './react';
|
|
3
|
-
import {
|
|
4
|
-
export declare const DivActions: (({
|
|
5
|
-
|
|
3
|
+
import { ViewRenderModelInstance } from '../../../../model';
|
|
4
|
+
export declare const DivActions: (({ downloadScreenshot }: {
|
|
5
|
+
downloadScreenshot: () => void;
|
|
6
6
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const RenderViewDivision: (({ children, view, sx }: {
|
|
10
10
|
children: ReactNode;
|
|
11
|
-
view:
|
|
11
|
+
view: ViewRenderModelInstance;
|
|
12
12
|
sx?: Sx | undefined;
|
|
13
13
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
14
14
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from './react';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewRenderModelInstance } from '../../../../model';
|
|
3
3
|
export declare const TakeScreenshot: (({ downloadScreenshot }: {
|
|
4
4
|
downloadScreenshot: () => void;
|
|
5
5
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
@@ -7,7 +7,7 @@ export declare const TakeScreenshot: (({ downloadScreenshot }: {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const RenderViewModal: (({ children, view }: {
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
view:
|
|
10
|
+
view: ViewRenderModelInstance;
|
|
11
11
|
}) => import('./react/jsx-runtime').JSX.Element) & {
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare function useDownloadDivScreenshot(view:
|
|
2
|
+
import { ViewRenderModelInstance } from '../../../../model';
|
|
3
|
+
export declare function useDownloadDivScreenshot(view: ViewRenderModelInstance): {
|
|
4
4
|
ref: import('./react').RefObject<HTMLDivElement>;
|
|
5
5
|
downloadScreenshot: () => void;
|
|
6
6
|
};
|
|
@@ -280,6 +280,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
280
280
|
readonly contentModel: any;
|
|
281
281
|
readonly panels: any;
|
|
282
282
|
readonly renderViewIDs: string[];
|
|
283
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
283
284
|
} & {
|
|
284
285
|
setTab(tab: string | null): void;
|
|
285
286
|
afterCreate(): void;
|
|
@@ -563,6 +564,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
563
564
|
readonly contentModel: any;
|
|
564
565
|
readonly panels: any;
|
|
565
566
|
readonly renderViewIDs: string[];
|
|
567
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
566
568
|
} & {
|
|
567
569
|
setTab(tab: string | null): void;
|
|
568
570
|
afterCreate(): void;
|
|
@@ -2691,6 +2693,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
2691
2693
|
readonly contentModel: any;
|
|
2692
2694
|
readonly panels: any;
|
|
2693
2695
|
readonly renderViewIDs: string[];
|
|
2696
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
2694
2697
|
} & {
|
|
2695
2698
|
setTab(tab: string | null): void;
|
|
2696
2699
|
afterCreate(): void;
|
|
@@ -2971,6 +2974,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
2971
2974
|
readonly contentModel: any;
|
|
2972
2975
|
readonly panels: any;
|
|
2973
2976
|
readonly renderViewIDs: string[];
|
|
2977
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
2974
2978
|
} & {
|
|
2975
2979
|
setTab(tab: string | null): void;
|
|
2976
2980
|
afterCreate(): void;
|
|
@@ -3871,6 +3875,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
3871
3875
|
readonly contentModel: any;
|
|
3872
3876
|
readonly panels: any;
|
|
3873
3877
|
readonly renderViewIDs: string[];
|
|
3878
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
3874
3879
|
} & {
|
|
3875
3880
|
setTab(tab: string | null): void;
|
|
3876
3881
|
afterCreate(): void;
|
|
@@ -4151,6 +4156,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
4151
4156
|
readonly contentModel: any;
|
|
4152
4157
|
readonly panels: any;
|
|
4153
4158
|
readonly renderViewIDs: string[];
|
|
4159
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
4154
4160
|
} & {
|
|
4155
4161
|
setTab(tab: string | null): void;
|
|
4156
4162
|
afterCreate(): void;
|
|
@@ -5051,6 +5057,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
5051
5057
|
readonly contentModel: any;
|
|
5052
5058
|
readonly panels: any;
|
|
5053
5059
|
readonly renderViewIDs: string[];
|
|
5060
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
5054
5061
|
} & {
|
|
5055
5062
|
setTab(tab: string | null): void;
|
|
5056
5063
|
afterCreate(): void;
|
|
@@ -5331,6 +5338,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
5331
5338
|
readonly contentModel: any;
|
|
5332
5339
|
readonly panels: any;
|
|
5333
5340
|
readonly renderViewIDs: string[];
|
|
5341
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
5334
5342
|
} & {
|
|
5335
5343
|
setTab(tab: string | null): void;
|
|
5336
5344
|
afterCreate(): void;
|
|
@@ -6236,6 +6244,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
6236
6244
|
readonly contentModel: any;
|
|
6237
6245
|
readonly panels: any;
|
|
6238
6246
|
readonly renderViewIDs: string[];
|
|
6247
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
6239
6248
|
} & {
|
|
6240
6249
|
setTab(tab: string | null): void;
|
|
6241
6250
|
afterCreate(): void;
|
|
@@ -6554,6 +6563,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
6554
6563
|
readonly contentModel: any;
|
|
6555
6564
|
readonly panels: any;
|
|
6556
6565
|
readonly renderViewIDs: string[];
|
|
6566
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
6557
6567
|
} & {
|
|
6558
6568
|
setTab(tab: string | null): void;
|
|
6559
6569
|
afterCreate(): void;
|
|
@@ -278,6 +278,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
278
278
|
readonly contentModel: any;
|
|
279
279
|
readonly panels: any;
|
|
280
280
|
readonly renderViewIDs: string[];
|
|
281
|
+
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
281
282
|
} & {
|
|
282
283
|
setTab(tab: string | null): void;
|
|
283
284
|
afterCreate(): void;
|