@devtable/dashboard 4.13.0 → 4.14.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 +1387 -1344
- package/dist/dashboard.umd.js +14 -14
- package/dist/model/views/view/index.d.ts +1 -86
- package/dist/model/views/view/panels/index.d.ts +1 -86
- package/dist/plugins/viz-components/cartesian/panel/x-axis/index.d.ts +10 -0
- package/dist/plugins/viz-components/cartesian/type.d.ts +5 -0
- package/package.json +1 -1
|
@@ -6,90 +6,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
6
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
7
|
config: import("mobx-state-tree").IType<any, any, any>;
|
|
8
8
|
panels: import("mobx-state-tree").IModelType<{
|
|
9
|
-
|
|
10
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
11
|
-
title: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
-
description: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
-
layout: import("mobx-state-tree").IModelType<{
|
|
14
|
-
x: import("mobx-state-tree").ISimpleType<number>;
|
|
15
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
16
|
-
w: import("mobx-state-tree").ISimpleType<number>;
|
|
17
|
-
h: import("mobx-state-tree").ISimpleType<number>;
|
|
18
|
-
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
19
|
-
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
20
|
-
}, {
|
|
21
|
-
readonly json: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
w: number;
|
|
25
|
-
h: number;
|
|
26
|
-
moved: boolean;
|
|
27
|
-
static: boolean;
|
|
28
|
-
};
|
|
29
|
-
} & {
|
|
30
|
-
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
31
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
32
|
-
queryID: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
-
viz: import("mobx-state-tree").IModelType<{
|
|
34
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
35
|
-
conf: import("mobx-state-tree").IType<import("~/types").AnyObject, import("~/types").AnyObject, import("~/types").AnyObject>;
|
|
36
|
-
}, {
|
|
37
|
-
readonly json: {
|
|
38
|
-
type: string;
|
|
39
|
-
conf: import("~/types").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("~/types").AnyObject, import("~/types").AnyObject, import("~/types").AnyObject>>;
|
|
40
|
-
};
|
|
41
|
-
} & {
|
|
42
|
-
setType(type: string): void;
|
|
43
|
-
setConf(conf: import("~/types").AnyObject): void;
|
|
44
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
45
|
-
style: import("mobx-state-tree").IModelType<{
|
|
46
|
-
border: import("mobx-state-tree").IModelType<{
|
|
47
|
-
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
48
|
-
}, {
|
|
49
|
-
readonly json: {
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
};
|
|
52
|
-
} & {
|
|
53
|
-
setEnabled(v: boolean): void;
|
|
54
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
55
|
-
}, {
|
|
56
|
-
readonly json: {
|
|
57
|
-
border: {
|
|
58
|
-
enabled: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
62
|
-
}, {
|
|
63
|
-
readonly json: {
|
|
64
|
-
id: string;
|
|
65
|
-
title: string;
|
|
66
|
-
description: string;
|
|
67
|
-
layout: {
|
|
68
|
-
x: number;
|
|
69
|
-
y: number;
|
|
70
|
-
w: number;
|
|
71
|
-
h: number;
|
|
72
|
-
moved: boolean;
|
|
73
|
-
static: boolean;
|
|
74
|
-
};
|
|
75
|
-
queryID: string;
|
|
76
|
-
viz: {
|
|
77
|
-
type: string;
|
|
78
|
-
conf: import("~/types").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("~/types").AnyObject, import("~/types").AnyObject, import("~/types").AnyObject>>;
|
|
79
|
-
};
|
|
80
|
-
style: {
|
|
81
|
-
border: {
|
|
82
|
-
enabled: boolean;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
} & {
|
|
87
|
-
setID(id: string): void;
|
|
88
|
-
setTitle(title: string): void;
|
|
89
|
-
setDescription(description: string): void;
|
|
90
|
-
setQueryID(queryID: string): void;
|
|
91
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
92
|
-
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
9
|
+
list: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
93
10
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
94
11
|
title: import("mobx-state-tree").ISimpleType<string>;
|
|
95
12
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -173,7 +90,6 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
173
90
|
setQueryID(queryID: string): void;
|
|
174
91
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
175
92
|
}, {
|
|
176
|
-
readonly changed: boolean;
|
|
177
93
|
readonly json: {
|
|
178
94
|
id: string;
|
|
179
95
|
title: string;
|
|
@@ -425,7 +341,6 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
425
341
|
setQueryID(queryID: string): void;
|
|
426
342
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
427
343
|
} & {
|
|
428
|
-
reset(): void;
|
|
429
344
|
replace(current: ({
|
|
430
345
|
id: string;
|
|
431
346
|
title: string;
|
|
@@ -1,89 +1,6 @@
|
|
|
1
1
|
import { PanelModelInstance } from './panel';
|
|
2
2
|
export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
3
|
-
|
|
4
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
-
title: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
-
description: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
layout: import("mobx-state-tree").IModelType<{
|
|
8
|
-
x: import("mobx-state-tree").ISimpleType<number>;
|
|
9
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
10
|
-
w: import("mobx-state-tree").ISimpleType<number>;
|
|
11
|
-
h: import("mobx-state-tree").ISimpleType<number>;
|
|
12
|
-
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
13
|
-
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
14
|
-
}, {
|
|
15
|
-
readonly json: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
w: number;
|
|
19
|
-
h: number;
|
|
20
|
-
moved: boolean;
|
|
21
|
-
static: boolean;
|
|
22
|
-
};
|
|
23
|
-
} & {
|
|
24
|
-
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
25
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
26
|
-
queryID: import("mobx-state-tree").ISimpleType<string>;
|
|
27
|
-
viz: import("mobx-state-tree").IModelType<{
|
|
28
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
29
|
-
conf: import("mobx-state-tree").IType<import("../../../..").AnyObject, import("../../../..").AnyObject, import("../../../..").AnyObject>;
|
|
30
|
-
}, {
|
|
31
|
-
readonly json: {
|
|
32
|
-
type: string;
|
|
33
|
-
conf: import("../../../..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("../../../..").AnyObject, import("../../../..").AnyObject, import("../../../..").AnyObject>>;
|
|
34
|
-
};
|
|
35
|
-
} & {
|
|
36
|
-
setType(type: string): void;
|
|
37
|
-
setConf(conf: import("../../../..").AnyObject): void;
|
|
38
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
39
|
-
style: import("mobx-state-tree").IModelType<{
|
|
40
|
-
border: import("mobx-state-tree").IModelType<{
|
|
41
|
-
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
42
|
-
}, {
|
|
43
|
-
readonly json: {
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
};
|
|
46
|
-
} & {
|
|
47
|
-
setEnabled(v: boolean): void;
|
|
48
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
49
|
-
}, {
|
|
50
|
-
readonly json: {
|
|
51
|
-
border: {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
56
|
-
}, {
|
|
57
|
-
readonly json: {
|
|
58
|
-
id: string;
|
|
59
|
-
title: string;
|
|
60
|
-
description: string;
|
|
61
|
-
layout: {
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
w: number;
|
|
65
|
-
h: number;
|
|
66
|
-
moved: boolean;
|
|
67
|
-
static: boolean;
|
|
68
|
-
};
|
|
69
|
-
queryID: string;
|
|
70
|
-
viz: {
|
|
71
|
-
type: string;
|
|
72
|
-
conf: import("../../../..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("../../../..").AnyObject, import("../../../..").AnyObject, import("../../../..").AnyObject>>;
|
|
73
|
-
};
|
|
74
|
-
style: {
|
|
75
|
-
border: {
|
|
76
|
-
enabled: boolean;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
} & {
|
|
81
|
-
setID(id: string): void;
|
|
82
|
-
setTitle(title: string): void;
|
|
83
|
-
setDescription(description: string): void;
|
|
84
|
-
setQueryID(queryID: string): void;
|
|
85
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
86
|
-
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
3
|
+
list: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
87
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
88
5
|
title: import("mobx-state-tree").ISimpleType<string>;
|
|
89
6
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -167,7 +84,6 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
167
84
|
setQueryID(queryID: string): void;
|
|
168
85
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
169
86
|
}, {
|
|
170
|
-
readonly changed: boolean;
|
|
171
87
|
readonly json: {
|
|
172
88
|
id: string;
|
|
173
89
|
title: string;
|
|
@@ -419,7 +335,6 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
419
335
|
setQueryID(queryID: string): void;
|
|
420
336
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
421
337
|
} & {
|
|
422
|
-
reset(): void;
|
|
423
338
|
replace(current: Array<PanelModelInstance>): void;
|
|
424
339
|
addANewPanel(): void;
|
|
425
340
|
append(item: PanelModelInstance): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { ICartesianChartConf } from '../../type';
|
|
4
|
+
interface IXAxisField {
|
|
5
|
+
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function XAxisField({ data, control, watch }: IXAxisField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -53,6 +53,11 @@ export interface ICartesianChartConf {
|
|
|
53
53
|
x_axis_data_key: string;
|
|
54
54
|
x_axis_name: string;
|
|
55
55
|
y_axes: IYAxisConf[];
|
|
56
|
+
x_axis: {
|
|
57
|
+
axisLabel: {
|
|
58
|
+
rotate: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
56
61
|
series: ICartesianChartSeriesItem[];
|
|
57
62
|
regressions: IRegressionConf[];
|
|
58
63
|
stats: {
|