x-next 0.0.0-alpha.29 → 0.0.0-alpha.30
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/trend-chart/components/trend-chart-curve.d.ts +3 -3
- package/dist/components/trend-chart/components/trend-chart.d.ts +24 -12
- package/dist/components/trend-chart/index.d.ts +34 -13
- package/dist/components/trend-chart/props.d.ts +17 -20
- package/dist/components/trend-chart/themes.d.ts +42 -66
- package/dist/components/trend-chart.bak/components/trend-chart-curve.d.ts +111 -0
- package/dist/components/trend-chart.bak/components/trend-chart-grid.d.ts +55 -0
- package/dist/components/trend-chart.bak/components/trend-chart-labels.d.ts +22 -0
- package/dist/components/trend-chart.bak/components/trend-chart.d.ts +274 -0
- package/dist/components/trend-chart.bak/helpers/genPath.d.ts +8 -0
- package/dist/components/trend-chart.bak/helpers/genPoints.d.ts +3 -0
- package/dist/components/trend-chart.bak/helpers/getPadding.d.ts +7 -0
- package/dist/components/trend-chart.bak/helpers/validatePadding.d.ts +2 -0
- package/dist/components/trend-chart.bak/index.d.ts +530 -0
- package/dist/components/trend-chart.bak/props.d.ts +211 -0
- package/dist/components/trend-chart.bak/themes.d.ts +152 -0
- package/dist/index.es.js +837 -848
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -0,0 +1,211 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { CSSColor } from '../../_props/css';
|
3
|
+
export type TrendChartStatus = 'success' | 'warning' | 'strong' | 'danger' | 'info';
|
4
|
+
export type Padding = {
|
5
|
+
top: number | string;
|
6
|
+
right: number | string;
|
7
|
+
bottom: number | string;
|
8
|
+
left: number | string;
|
9
|
+
};
|
10
|
+
export type Point = {
|
11
|
+
x: number;
|
12
|
+
y: number;
|
13
|
+
};
|
14
|
+
export type PointValue = number | {
|
15
|
+
value: number;
|
16
|
+
};
|
17
|
+
export type MouseMoveEvent = {
|
18
|
+
index: number;
|
19
|
+
data: PointValue[];
|
20
|
+
} | null;
|
21
|
+
export type Boundary = {
|
22
|
+
minX: number;
|
23
|
+
maxX: number;
|
24
|
+
minY: number;
|
25
|
+
maxY: number;
|
26
|
+
};
|
27
|
+
export type DataSetTheme = {};
|
28
|
+
export type DataSets = {
|
29
|
+
data: number[] | {
|
30
|
+
value: number;
|
31
|
+
}[];
|
32
|
+
fill: boolean;
|
33
|
+
stroke: boolean;
|
34
|
+
smooth: boolean;
|
35
|
+
showPoints: boolean;
|
36
|
+
className: string;
|
37
|
+
theme?: DataSetTheme;
|
38
|
+
}[];
|
39
|
+
export type Grid = {
|
40
|
+
verticalLines?: boolean;
|
41
|
+
verticalLinesNumber?: number;
|
42
|
+
horizontalLines?: boolean;
|
43
|
+
horizontalLinesNumber?: number;
|
44
|
+
};
|
45
|
+
export type Labels = {
|
46
|
+
xLabels: string[];
|
47
|
+
yLabels: number;
|
48
|
+
yLabelsTextFormatter: (value: number) => string;
|
49
|
+
};
|
50
|
+
export type CurveTheme = {
|
51
|
+
stroke?: {
|
52
|
+
width?: number;
|
53
|
+
color?: CSSColor;
|
54
|
+
opacity?: number;
|
55
|
+
};
|
56
|
+
fill?: {
|
57
|
+
color?: CSSColor;
|
58
|
+
opacity?: number;
|
59
|
+
};
|
60
|
+
point?: {};
|
61
|
+
};
|
62
|
+
export type MainTheme = {};
|
63
|
+
export interface Theme extends CurveTheme {
|
64
|
+
color?: CSSColor;
|
65
|
+
axisLine?: {
|
66
|
+
color?: CSSColor;
|
67
|
+
width?: number;
|
68
|
+
opacity?: number;
|
69
|
+
};
|
70
|
+
}
|
71
|
+
export declare const trendChartProps: {
|
72
|
+
datasets: {
|
73
|
+
required: boolean;
|
74
|
+
type: PropType<DataSets>;
|
75
|
+
};
|
76
|
+
status: {
|
77
|
+
type: PropType<TrendChartStatus>;
|
78
|
+
default: undefined;
|
79
|
+
};
|
80
|
+
grid: {
|
81
|
+
default: null;
|
82
|
+
type: PropType<Grid>;
|
83
|
+
};
|
84
|
+
labels: {
|
85
|
+
default: null;
|
86
|
+
type: PropType<Labels>;
|
87
|
+
};
|
88
|
+
max: {
|
89
|
+
type: NumberConstructor;
|
90
|
+
};
|
91
|
+
min: {
|
92
|
+
type: NumberConstructor;
|
93
|
+
};
|
94
|
+
padding: {
|
95
|
+
default: string;
|
96
|
+
type: StringConstructor;
|
97
|
+
validator(val: string): boolean;
|
98
|
+
};
|
99
|
+
interactive: {
|
100
|
+
default: boolean;
|
101
|
+
type: BooleanConstructor;
|
102
|
+
};
|
103
|
+
theme: {
|
104
|
+
type: PropType<Theme>;
|
105
|
+
default: () => {
|
106
|
+
activeLineColor: string;
|
107
|
+
};
|
108
|
+
};
|
109
|
+
};
|
110
|
+
export declare const trendChartCurveProps: {
|
111
|
+
boundary: {
|
112
|
+
required: boolean;
|
113
|
+
type: PropType<Boundary>;
|
114
|
+
default: () => void;
|
115
|
+
};
|
116
|
+
minValue: {
|
117
|
+
required: boolean;
|
118
|
+
type: NumberConstructor;
|
119
|
+
};
|
120
|
+
maxValue: {
|
121
|
+
required: boolean;
|
122
|
+
type: NumberConstructor;
|
123
|
+
};
|
124
|
+
maxAmount: {
|
125
|
+
required: boolean;
|
126
|
+
type: NumberConstructor;
|
127
|
+
};
|
128
|
+
activeLineParams: {
|
129
|
+
type: ObjectConstructor;
|
130
|
+
};
|
131
|
+
data: {
|
132
|
+
required: boolean;
|
133
|
+
type: PropType<PointValue[]>;
|
134
|
+
default: () => never[];
|
135
|
+
};
|
136
|
+
className: {
|
137
|
+
type: PropType<string>;
|
138
|
+
};
|
139
|
+
smooth: {
|
140
|
+
default: boolean;
|
141
|
+
type: BooleanConstructor;
|
142
|
+
};
|
143
|
+
stroke: {
|
144
|
+
default: boolean;
|
145
|
+
type: BooleanConstructor;
|
146
|
+
};
|
147
|
+
fill: {
|
148
|
+
default: boolean;
|
149
|
+
type: BooleanConstructor;
|
150
|
+
};
|
151
|
+
showPoints: {
|
152
|
+
default: boolean;
|
153
|
+
type: BooleanConstructor;
|
154
|
+
};
|
155
|
+
theme: {
|
156
|
+
type: PropType<CurveTheme>;
|
157
|
+
};
|
158
|
+
mainTheme: {
|
159
|
+
type: PropType<CurveTheme>;
|
160
|
+
};
|
161
|
+
};
|
162
|
+
export declare const trendChartGridProps: {
|
163
|
+
boundary: {
|
164
|
+
required: boolean;
|
165
|
+
type: PropType<Boundary>;
|
166
|
+
default: () => void;
|
167
|
+
};
|
168
|
+
verticalLines: {
|
169
|
+
default: boolean;
|
170
|
+
type: BooleanConstructor;
|
171
|
+
};
|
172
|
+
verticalLinesNumber: {
|
173
|
+
default: number;
|
174
|
+
type: NumberConstructor;
|
175
|
+
};
|
176
|
+
horizontalLines: {
|
177
|
+
default: boolean;
|
178
|
+
type: BooleanConstructor;
|
179
|
+
};
|
180
|
+
horizontalLinesNumber: {
|
181
|
+
default: number;
|
182
|
+
type: NumberConstructor;
|
183
|
+
};
|
184
|
+
};
|
185
|
+
export declare const trendChartLabelsProps: {
|
186
|
+
boundary: {
|
187
|
+
required: boolean;
|
188
|
+
type: PropType<Boundary>;
|
189
|
+
default: () => void;
|
190
|
+
};
|
191
|
+
minValue: {
|
192
|
+
type: NumberConstructor;
|
193
|
+
required: boolean;
|
194
|
+
};
|
195
|
+
maxValue: {
|
196
|
+
type: NumberConstructor;
|
197
|
+
required: boolean;
|
198
|
+
};
|
199
|
+
xLabels: {
|
200
|
+
type: ArrayConstructor;
|
201
|
+
};
|
202
|
+
yLabels: {
|
203
|
+
type: NumberConstructor;
|
204
|
+
required: boolean;
|
205
|
+
};
|
206
|
+
yLabelsTextFormatter: {
|
207
|
+
default: (value: any) => any;
|
208
|
+
type: FunctionConstructor;
|
209
|
+
};
|
210
|
+
};
|
211
|
+
export type TrendChartLabelsProps = ExtractPropTypes<typeof trendChartLabelsProps>;
|
@@ -0,0 +1,152 @@
|
|
1
|
+
export declare const TrendChartTheme: {
|
2
|
+
DANGER: {
|
3
|
+
color: string;
|
4
|
+
point: {
|
5
|
+
radius: number;
|
6
|
+
borderWidth: number;
|
7
|
+
borderColor: string;
|
8
|
+
backgroundColor: string;
|
9
|
+
opacity: number;
|
10
|
+
hoverRadius: number;
|
11
|
+
hoverColor: string;
|
12
|
+
hoverBorderWidth: number;
|
13
|
+
hoverBorderColor: string;
|
14
|
+
hoverBackgroundColor: string;
|
15
|
+
hoverOpacity: number;
|
16
|
+
};
|
17
|
+
stroke: {
|
18
|
+
width: number;
|
19
|
+
color: string;
|
20
|
+
opacity: number;
|
21
|
+
};
|
22
|
+
fill: {
|
23
|
+
color: string;
|
24
|
+
opacity: number;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
STRONG: {
|
28
|
+
color: string;
|
29
|
+
point: {
|
30
|
+
radius: number;
|
31
|
+
borderWidth: number;
|
32
|
+
borderColor: string;
|
33
|
+
backgroundColor: string;
|
34
|
+
opacity: number;
|
35
|
+
hoverRadius: number;
|
36
|
+
hoverColor: string;
|
37
|
+
hoverBorderWidth: number;
|
38
|
+
hoverBorderColor: string;
|
39
|
+
hoverBackgroundColor: string;
|
40
|
+
hoverOpacity: number;
|
41
|
+
};
|
42
|
+
stroke: {
|
43
|
+
width: number;
|
44
|
+
color: string;
|
45
|
+
opacity: number;
|
46
|
+
};
|
47
|
+
fill: {
|
48
|
+
color: string;
|
49
|
+
opacity: number;
|
50
|
+
};
|
51
|
+
};
|
52
|
+
WARNING: {
|
53
|
+
color: string;
|
54
|
+
point: {
|
55
|
+
radius: number;
|
56
|
+
borderWidth: number;
|
57
|
+
borderColor: string;
|
58
|
+
backgroundColor: string;
|
59
|
+
opacity: number;
|
60
|
+
hoverRadius: number;
|
61
|
+
hoverColor: string;
|
62
|
+
hoverBorderWidth: number;
|
63
|
+
hoverBorderColor: string;
|
64
|
+
hoverBackgroundColor: string;
|
65
|
+
hoverOpacity: number;
|
66
|
+
};
|
67
|
+
stroke: {
|
68
|
+
width: number;
|
69
|
+
color: string;
|
70
|
+
opacity: number;
|
71
|
+
};
|
72
|
+
fill: {
|
73
|
+
color: string;
|
74
|
+
opacity: number;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
SUCCESS: {
|
78
|
+
color: string;
|
79
|
+
point: {
|
80
|
+
radius: number;
|
81
|
+
borderWidth: number;
|
82
|
+
borderColor: string;
|
83
|
+
backgroundColor: string;
|
84
|
+
opacity: number;
|
85
|
+
hoverRadius: number;
|
86
|
+
hoverColor: string;
|
87
|
+
hoverBorderWidth: number;
|
88
|
+
hoverBorderColor: string;
|
89
|
+
hoverBackgroundColor: string;
|
90
|
+
hoverOpacity: number;
|
91
|
+
};
|
92
|
+
stroke: {
|
93
|
+
width: number;
|
94
|
+
color: string;
|
95
|
+
opacity: number;
|
96
|
+
};
|
97
|
+
fill: {
|
98
|
+
color: string;
|
99
|
+
opacity: number;
|
100
|
+
};
|
101
|
+
};
|
102
|
+
INFO: {
|
103
|
+
color: string;
|
104
|
+
point: {
|
105
|
+
radius: number;
|
106
|
+
borderWidth: number;
|
107
|
+
borderColor: string;
|
108
|
+
backgroundColor: string;
|
109
|
+
opacity: number;
|
110
|
+
hoverRadius: number;
|
111
|
+
hoverColor: string;
|
112
|
+
hoverBorderWidth: number;
|
113
|
+
hoverBorderColor: string;
|
114
|
+
hoverBackgroundColor: string;
|
115
|
+
hoverOpacity: number;
|
116
|
+
};
|
117
|
+
stroke: {
|
118
|
+
width: number;
|
119
|
+
color: string;
|
120
|
+
opacity: number;
|
121
|
+
};
|
122
|
+
fill: {
|
123
|
+
color: string;
|
124
|
+
opacity: number;
|
125
|
+
};
|
126
|
+
};
|
127
|
+
PRIMARY: {
|
128
|
+
color: string;
|
129
|
+
point: {
|
130
|
+
radius: number;
|
131
|
+
borderWidth: number;
|
132
|
+
borderColor: string;
|
133
|
+
backgroundColor: string;
|
134
|
+
opacity: number;
|
135
|
+
hoverRadius: number;
|
136
|
+
hoverColor: string;
|
137
|
+
hoverBorderWidth: number;
|
138
|
+
hoverBorderColor: string;
|
139
|
+
hoverBackgroundColor: string;
|
140
|
+
hoverOpacity: number;
|
141
|
+
};
|
142
|
+
stroke: {
|
143
|
+
width: number;
|
144
|
+
color: string;
|
145
|
+
opacity: number;
|
146
|
+
};
|
147
|
+
fill: {
|
148
|
+
color: string;
|
149
|
+
opacity: number;
|
150
|
+
};
|
151
|
+
};
|
152
|
+
};
|