@flux-ui/types 3.0.0-next.66 → 3.0.0-next.68
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/package.json +1 -1
- package/src/index.ts +24 -1
- package/src/statistics.ts +131 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -79,5 +79,28 @@ export type {
|
|
|
79
79
|
} from './notify';
|
|
80
80
|
|
|
81
81
|
export type {
|
|
82
|
-
FluxStatisticsChange
|
|
82
|
+
FluxStatisticsChange,
|
|
83
|
+
FluxStatisticsChartAreaSeries,
|
|
84
|
+
FluxStatisticsChartBarSeries,
|
|
85
|
+
FluxStatisticsChartBoxPlotPoint,
|
|
86
|
+
FluxStatisticsChartBoxPlotSeries,
|
|
87
|
+
FluxStatisticsChartBubblePoint,
|
|
88
|
+
FluxStatisticsChartBubbleSeries,
|
|
89
|
+
FluxStatisticsChartCandlestickPoint,
|
|
90
|
+
FluxStatisticsChartCandlestickSeries,
|
|
91
|
+
FluxStatisticsChartCartesianSeries,
|
|
92
|
+
FluxStatisticsChartCategoryPoint,
|
|
93
|
+
FluxStatisticsChartColor,
|
|
94
|
+
FluxStatisticsChartGaugeSeries,
|
|
95
|
+
FluxStatisticsChartHeatmapPoint,
|
|
96
|
+
FluxStatisticsChartHeatmapSeries,
|
|
97
|
+
FluxStatisticsChartLineSeries,
|
|
98
|
+
FluxStatisticsChartMixedSeries,
|
|
99
|
+
FluxStatisticsChartPieSlice,
|
|
100
|
+
FluxStatisticsChartRadarIndicator,
|
|
101
|
+
FluxStatisticsChartRadarSeries,
|
|
102
|
+
FluxStatisticsChartScatterPoint,
|
|
103
|
+
FluxStatisticsChartScatterSeries,
|
|
104
|
+
FluxStatisticsChartTreemapNode,
|
|
105
|
+
FluxStatisticsChartTreemapSeries
|
|
83
106
|
} from './statistics';
|
package/src/statistics.ts
CHANGED
|
@@ -5,3 +5,134 @@ export type FluxStatisticsChange = {
|
|
|
5
5
|
readonly icon?: FluxIconName;
|
|
6
6
|
readonly value: string | number;
|
|
7
7
|
};
|
|
8
|
+
|
|
9
|
+
export type FluxStatisticsChartColor = FluxColor | `#${string}` | `var(--${string})`;
|
|
10
|
+
|
|
11
|
+
export interface FluxStatisticsChartCategoryPoint {
|
|
12
|
+
readonly label?: string;
|
|
13
|
+
readonly value: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface FluxStatisticsChartCartesianSeries {
|
|
17
|
+
readonly name?: string;
|
|
18
|
+
readonly data: readonly (number | FluxStatisticsChartCategoryPoint)[];
|
|
19
|
+
readonly color?: FluxStatisticsChartColor;
|
|
20
|
+
readonly icon?: FluxIconName;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type FluxStatisticsChartLineSeries = FluxStatisticsChartCartesianSeries;
|
|
24
|
+
export type FluxStatisticsChartAreaSeries = FluxStatisticsChartCartesianSeries;
|
|
25
|
+
export type FluxStatisticsChartBarSeries = FluxStatisticsChartCartesianSeries;
|
|
26
|
+
|
|
27
|
+
export interface FluxStatisticsChartMixedSeries extends FluxStatisticsChartCartesianSeries {
|
|
28
|
+
readonly type: 'line' | 'area' | 'bar';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface FluxStatisticsChartPieSlice {
|
|
32
|
+
readonly label: string;
|
|
33
|
+
readonly value: number;
|
|
34
|
+
readonly formatted?: string;
|
|
35
|
+
readonly color?: FluxStatisticsChartColor;
|
|
36
|
+
readonly icon?: FluxIconName;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface FluxStatisticsChartRadarIndicator {
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly max?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface FluxStatisticsChartRadarSeries {
|
|
45
|
+
readonly name?: string;
|
|
46
|
+
readonly values: readonly number[];
|
|
47
|
+
readonly color?: FluxStatisticsChartColor;
|
|
48
|
+
readonly icon?: FluxIconName;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface FluxStatisticsChartScatterPoint {
|
|
52
|
+
readonly x: number;
|
|
53
|
+
readonly y: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface FluxStatisticsChartScatterSeries {
|
|
57
|
+
readonly name?: string;
|
|
58
|
+
readonly data: readonly FluxStatisticsChartScatterPoint[];
|
|
59
|
+
readonly color?: FluxStatisticsChartColor;
|
|
60
|
+
readonly icon?: FluxIconName;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface FluxStatisticsChartBubblePoint extends FluxStatisticsChartScatterPoint {
|
|
64
|
+
readonly size: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface FluxStatisticsChartBubbleSeries {
|
|
68
|
+
readonly name?: string;
|
|
69
|
+
readonly data: readonly FluxStatisticsChartBubblePoint[];
|
|
70
|
+
readonly color?: FluxStatisticsChartColor;
|
|
71
|
+
readonly icon?: FluxIconName;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface FluxStatisticsChartCandlestickPoint {
|
|
75
|
+
readonly label?: string;
|
|
76
|
+
readonly open: number;
|
|
77
|
+
readonly close: number;
|
|
78
|
+
readonly low: number;
|
|
79
|
+
readonly high: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface FluxStatisticsChartCandlestickSeries {
|
|
83
|
+
readonly name?: string;
|
|
84
|
+
readonly data: readonly FluxStatisticsChartCandlestickPoint[];
|
|
85
|
+
readonly positiveColor?: FluxStatisticsChartColor;
|
|
86
|
+
readonly negativeColor?: FluxStatisticsChartColor;
|
|
87
|
+
readonly icon?: FluxIconName;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface FluxStatisticsChartBoxPlotPoint {
|
|
91
|
+
readonly label?: string;
|
|
92
|
+
readonly min: number;
|
|
93
|
+
readonly q1: number;
|
|
94
|
+
readonly median: number;
|
|
95
|
+
readonly q3: number;
|
|
96
|
+
readonly max: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface FluxStatisticsChartBoxPlotSeries {
|
|
100
|
+
readonly name?: string;
|
|
101
|
+
readonly data: readonly FluxStatisticsChartBoxPlotPoint[];
|
|
102
|
+
readonly color?: FluxStatisticsChartColor;
|
|
103
|
+
readonly icon?: FluxIconName;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface FluxStatisticsChartHeatmapPoint {
|
|
107
|
+
readonly x: string | number;
|
|
108
|
+
readonly y: string | number;
|
|
109
|
+
readonly value: number;
|
|
110
|
+
readonly formatted?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface FluxStatisticsChartHeatmapSeries {
|
|
114
|
+
readonly name?: string;
|
|
115
|
+
readonly data: readonly FluxStatisticsChartHeatmapPoint[];
|
|
116
|
+
readonly icon?: FluxIconName;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface FluxStatisticsChartTreemapNode {
|
|
120
|
+
readonly name: string;
|
|
121
|
+
readonly value?: number;
|
|
122
|
+
readonly color?: FluxStatisticsChartColor;
|
|
123
|
+
readonly children?: readonly FluxStatisticsChartTreemapNode[];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface FluxStatisticsChartTreemapSeries {
|
|
127
|
+
readonly name?: string;
|
|
128
|
+
readonly data: readonly FluxStatisticsChartTreemapNode[];
|
|
129
|
+
readonly icon?: FluxIconName;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface FluxStatisticsChartGaugeSeries {
|
|
133
|
+
readonly name: string;
|
|
134
|
+
readonly value: number;
|
|
135
|
+
readonly radius?: number;
|
|
136
|
+
readonly color?: FluxStatisticsChartColor;
|
|
137
|
+
readonly icon?: FluxIconName;
|
|
138
|
+
}
|