@oneuptime/common 7.0.2990 → 7.0.3010
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/Models/AnalyticsModels/ExceptionInstance.ts +488 -0
- package/Models/AnalyticsModels/Index.ts +2 -0
- package/Models/AnalyticsModels/Span.ts +2 -2
- package/Models/DatabaseModels/Index.ts +4 -0
- package/Models/DatabaseModels/TelemetryException.ts +978 -0
- package/Server/API/StatusAPI.ts +63 -51
- package/Server/EnvironmentConfig.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +93 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +60 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Infrastructure/Queue.ts +36 -1
- package/Server/Infrastructure/QueueWorker.ts +2 -2
- package/Server/Services/DatabaseService.ts +4 -5
- package/Server/Services/ExceptionInstanceService.ts +11 -0
- package/Server/Services/Index.ts +5 -0
- package/Server/Services/StatusPageDomainService.ts +118 -59
- package/Server/Services/TelemetryExceptionService.ts +10 -0
- package/Server/Types/Database/Permissions/Index.ts +1 -1
- package/Server/Types/Database/UpdateByID.ts +1 -1
- package/Server/Utils/Greenlock/Greenlock.ts +331 -204
- package/Server/Utils/Logger.ts +8 -2
- package/Server/Utils/Telemetry.ts +109 -25
- package/Types/Code/CodeType.ts +1 -0
- package/Types/Database/PartialEntity.ts +14 -1
- package/Types/Date.ts +9 -1
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Permission.ts +39 -0
- package/UI/Components/ActionCard/ActionCard.tsx +66 -0
- package/UI/Components/Alerts/Alert.tsx +69 -60
- package/UI/Components/Card/Card.tsx +1 -0
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +4 -17
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +1005 -0
- package/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.ts +3 -0
- package/UI/Components/Charts/ChartLibrary/Utils/ChartColors.ts +117 -0
- package/UI/Components/Charts/ChartLibrary/Utils/Cx.ts +8 -0
- package/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.ts +15 -0
- package/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.ts +19 -0
- package/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.ts +17 -0
- package/UI/Components/Charts/Line/LineChart.tsx +58 -225
- package/UI/Components/Charts/Types/ChartCurve.ts +7 -0
- package/UI/Components/Charts/Types/DataPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoints.ts +6 -0
- package/UI/Components/Charts/Types/XAxis/XAxis.ts +21 -0
- package/UI/Components/Charts/Types/XAxis/XAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/XAxis/XAxisPrecision.ts +26 -0
- package/UI/Components/Charts/Types/XAxis/XAxisType.ts +6 -0
- package/UI/Components/Charts/Types/XValue.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxis.ts +22 -0
- package/UI/Components/Charts/Types/YAxis/YAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxisType.ts +5 -0
- package/UI/Components/Charts/Types/YValue.ts +3 -0
- package/UI/Components/Charts/Utils/DataPoint.ts +188 -0
- package/UI/Components/Charts/Utils/XAxis.ts +267 -0
- package/UI/Components/Detail/Detail.tsx +6 -1
- package/UI/Components/GanttChart/Row/Row.tsx +4 -2
- package/UI/Components/GanttChart/Row/RowLabel.tsx +7 -3
- package/UI/Components/Icon/Icon.tsx +16 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +1 -1
- package/UI/Components/Types/FieldType.ts +1 -0
- package/UI/Config.ts +2 -0
- package/UI/Utils/Telemetry.ts +7 -2
- package/Utils/Crypto.ts +11 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js +445 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/Index.js +2 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Span.js +2 -2
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +1010 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -0
- package/build/dist/Server/API/StatusAPI.js +52 -44
- package/build/dist/Server/API/StatusAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +1 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +20 -1
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/QueueWorker.js +2 -2
- package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ExceptionInstanceService.js +9 -0
- package/build/dist/Server/Services/ExceptionInstanceService.js.map +1 -0
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/StatusPageDomainService.js +101 -53
- package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryExceptionService.js +9 -0
- package/build/dist/Server/Services/TelemetryExceptionService.js.map +1 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Utils/Greenlock/Greenlock.js +234 -157
- package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
- package/build/dist/Server/Utils/Logger.js +5 -1
- package/build/dist/Server/Utils/Logger.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +63 -22
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/Code/CodeType.js +1 -0
- package/build/dist/Types/Code/CodeType.js.map +1 -1
- package/build/dist/Types/Database/PartialEntity.js +3 -0
- package/build/dist/Types/Database/PartialEntity.js.map +1 -1
- package/build/dist/Types/Date.js +7 -1
- package/build/dist/Types/Date.js.map +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Permission.js +33 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/UI/Components/ActionCard/ActionCard.js +27 -0
- package/build/dist/UI/Components/ActionCard/ActionCard.js.map +1 -0
- package/build/dist/UI/Components/Alerts/Alert.js +36 -45
- package/build/dist/UI/Components/Alerts/Alert.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +1 -1
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +4 -9
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +388 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js +88 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js.map +1 -0
- package/build/dist/UI/Components/Charts/Line/LineChart.js +30 -136
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js +8 -0
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js +27 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js +7 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js +6 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js +109 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js +241 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Detail/Detail.js +5 -1
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/Row.js +2 -2
- package/build/dist/UI/Components/GanttChart/Row/Row.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +3 -3
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +6 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/Types/FieldType.js +1 -0
- package/build/dist/UI/Components/Types/FieldType.js.map +1 -1
- package/build/dist/UI/Config.js +1 -0
- package/build/dist/UI/Config.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry.js +6 -3
- package/build/dist/UI/Utils/Telemetry.js.map +1 -1
- package/build/dist/Utils/Crypto.js +10 -0
- package/build/dist/Utils/Crypto.js.map +1 -0
- package/package.json +15 -13
- package/UI/Components/Charts/Bar/Bar.tsx +0 -0
- package/UI/Components/Charts/Base/BaseChart.tsx +0 -0
- package/UI/Components/Charts/Tooltip/Tooltip.tsx +0 -84
- package/build/dist/UI/Components/Charts/Bar/Bar.js +0 -2
- package/build/dist/UI/Components/Charts/Bar/Bar.js.map +0 -1
- package/build/dist/UI/Components/Charts/Base/BaseChart.js +0 -2
- package/build/dist/UI/Components/Charts/Base/BaseChart.js.map +0 -1
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js +0 -34
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js.map +0 -1
|
@@ -1,139 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})(XScaleType || (XScaleType = {}));
|
|
18
|
-
export var XScalePrecision;
|
|
19
|
-
(function (XScalePrecision) {
|
|
20
|
-
XScalePrecision["SECOND"] = "second";
|
|
21
|
-
XScalePrecision["MINUTE"] = "minute";
|
|
22
|
-
XScalePrecision["HOUR"] = "hour";
|
|
23
|
-
XScalePrecision["DAY"] = "day";
|
|
24
|
-
XScalePrecision["MONTH"] = "month";
|
|
25
|
-
XScalePrecision["YEAR"] = "year";
|
|
26
|
-
})(XScalePrecision || (XScalePrecision = {}));
|
|
27
|
-
export var YScaleType;
|
|
28
|
-
(function (YScaleType) {
|
|
29
|
-
YScaleType["LINEAR"] = "linear";
|
|
30
|
-
})(YScaleType || (YScaleType = {}));
|
|
31
|
-
export var AxisType;
|
|
32
|
-
(function (AxisType) {
|
|
33
|
-
AxisType["Date"] = "date";
|
|
34
|
-
AxisType["Time"] = "time";
|
|
35
|
-
AxisType["Number"] = "number";
|
|
36
|
-
})(AxisType || (AxisType = {}));
|
|
37
|
-
const LineChart = (props) => {
|
|
38
|
-
const markers = [];
|
|
39
|
-
if (props.xAxisMarker && props.xAxisMarker.value) {
|
|
40
|
-
markers.push({
|
|
41
|
-
axis: "x",
|
|
42
|
-
legend: "",
|
|
43
|
-
lineStyle: {
|
|
44
|
-
stroke: "#cbd5e1",
|
|
45
|
-
strokeWidth: 2,
|
|
46
|
-
},
|
|
47
|
-
value: props.xAxisMarker.value,
|
|
1
|
+
import { LineChart } from "../ChartLibrary/LineChart/LineChart";
|
|
2
|
+
import React, { useEffect } from "react";
|
|
3
|
+
import DataPointUtil from "../Utils/DataPoint";
|
|
4
|
+
const LineChartElement = (props) => {
|
|
5
|
+
const [records, setRecords] = React.useState([]);
|
|
6
|
+
const categories = props.data.map((item) => {
|
|
7
|
+
return item.seriesName;
|
|
8
|
+
});
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!props.data || props.data.length === 0) {
|
|
11
|
+
setRecords([]);
|
|
12
|
+
}
|
|
13
|
+
const records = DataPointUtil.getChartDataPoints({
|
|
14
|
+
seriesPoints: props.data,
|
|
15
|
+
xAxis: props.xAxis,
|
|
16
|
+
yAxis: props.yAxis,
|
|
48
17
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
itemsSpacing: 0,
|
|
63
|
-
itemDirection: "left-to-right",
|
|
64
|
-
itemWidth: 80,
|
|
65
|
-
itemHeight: 20,
|
|
66
|
-
itemOpacity: 0.75,
|
|
67
|
-
symbolSize: 12,
|
|
68
|
-
symbolShape: "circle",
|
|
69
|
-
symbolBorderColor: "rgba(0, 0, 0, .5)",
|
|
70
|
-
effects: [
|
|
71
|
-
{
|
|
72
|
-
on: "hover",
|
|
73
|
-
style: {
|
|
74
|
-
itemBackground: "rgba(0, 0, 0, .03)",
|
|
75
|
-
itemOpacity: 1,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
];
|
|
81
|
-
}
|
|
82
|
-
return (React.createElement("div", { className: "h-96 w-full" },
|
|
83
|
-
React.createElement(ResponsiveLine, { data: props.data.map((series) => {
|
|
84
|
-
return {
|
|
85
|
-
id: series.seriesName,
|
|
86
|
-
data: series.data,
|
|
87
|
-
};
|
|
88
|
-
}), onMouseMove: (data) => {
|
|
89
|
-
var _a, _b, _c;
|
|
90
|
-
if (props.onHoverXAxis) {
|
|
91
|
-
const xValue = (_c = (_b = (_a = data.points) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.x;
|
|
92
|
-
props.onHoverXAxis(xValue);
|
|
93
|
-
}
|
|
94
|
-
}, margin: margin, curve: props.curve || ChartCurve.LINEAR, markers: markers, xScale: {
|
|
95
|
-
type: props.xScale.type,
|
|
96
|
-
max: props.xScale.max,
|
|
97
|
-
min: props.xScale.min,
|
|
98
|
-
precision: props.xScale.precision,
|
|
99
|
-
}, yScale: {
|
|
100
|
-
type: props.yScale.type,
|
|
101
|
-
min: props.yScale.min,
|
|
102
|
-
max: props.yScale.max,
|
|
103
|
-
}, axisTop: null, axisRight: null, axisBottom: {
|
|
104
|
-
legend: props.axisBottom.legend,
|
|
105
|
-
format: (value) => {
|
|
106
|
-
let strLabel = "";
|
|
107
|
-
if (props.axisBottom.type === AxisType.Date) {
|
|
108
|
-
strLabel = OneUptimeDate.getDateAsLocalFormattedString(value, true);
|
|
109
|
-
}
|
|
110
|
-
else if (props.axisBottom.type === AxisType.Time) {
|
|
111
|
-
strLabel = OneUptimeDate.getLocalHourAndMinuteFromDate(value);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
strLabel = value.toString();
|
|
115
|
-
}
|
|
116
|
-
return strLabel;
|
|
117
|
-
},
|
|
118
|
-
}, useMesh: true, axisLeft: {
|
|
119
|
-
legend: props.axisLeft.legend,
|
|
120
|
-
}, enableSlices: "x", sliceTooltip: (data) => {
|
|
121
|
-
if (!props.getHoverTooltip) {
|
|
122
|
-
return React.createElement(React.Fragment, null);
|
|
123
|
-
}
|
|
124
|
-
return props.getHoverTooltip({
|
|
125
|
-
points: data.slice.points.map((point) => {
|
|
126
|
-
return {
|
|
127
|
-
x: point.data.x,
|
|
128
|
-
y: point.data.y,
|
|
129
|
-
seriesName: point.serieId.toString(),
|
|
130
|
-
seriesColor: new Color(point.color),
|
|
131
|
-
};
|
|
132
|
-
}),
|
|
133
|
-
});
|
|
134
|
-
}, colors: ChartColors.map((item) => {
|
|
135
|
-
return item.toString();
|
|
136
|
-
}), legends: legends })));
|
|
18
|
+
setRecords(records);
|
|
19
|
+
}, [props.data]);
|
|
20
|
+
return (React.createElement(LineChart, { className: "h-80", data: records, tickGap: 1, index: "Time", categories: categories, colors: [
|
|
21
|
+
"indigo",
|
|
22
|
+
"rose",
|
|
23
|
+
"emerald",
|
|
24
|
+
"amber",
|
|
25
|
+
"cyan",
|
|
26
|
+
"gray",
|
|
27
|
+
"pink",
|
|
28
|
+
"lime",
|
|
29
|
+
"fuchsia",
|
|
30
|
+
], valueFormatter: props.yAxis.options.formatter || undefined, showTooltip: true, connectNulls: true, curve: props.curve, syncId: props.sync ? props.syncId : undefined, yAxisWidth: 60 }));
|
|
137
31
|
};
|
|
138
|
-
export default
|
|
32
|
+
export default LineChartElement;
|
|
139
33
|
//# sourceMappingURL=LineChart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Line/LineChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineChart.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Line/LineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,KAAK,EAAE,EAAmC,SAAS,EAAE,MAAM,OAAO,CAAC;AAM1E,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAc/C,MAAM,gBAAgB,GAAyC,CAC7D,KAAwB,EACV,EAAE;IAChB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAwB,EAAE,CAAC,CAAC;IAExE,MAAM,UAAU,GAAkB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE;QACrE,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QAED,MAAM,OAAO,GAA0B,aAAa,CAAC,kBAAkB,CAAC;YACtE,YAAY,EAAE,KAAK,CAAC,IAAI;YACxB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC;QAEH,UAAU,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAEjB,OAAO,CACL,oBAAC,SAAS,IACR,SAAS,EAAC,MAAM,EAChB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,CAAC,EACV,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE;YACN,QAAQ;YACR,MAAM;YACN,SAAS;YACT,OAAO;YACP,MAAM;YACN,MAAM;YACN,MAAM;YACN,MAAM;YACN,SAAS;SACV,EACD,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,IAAI,SAAS,EAC1D,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,IAAI,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC7C,UAAU,EAAE,EAAE,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCurve.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/ChartCurve.ts"],"names":[],"mappings":"AAAA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;AACf,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataPoint.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/DataPoint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeriesPoint.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/SeriesPoint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeriesPoints.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/SeriesPoints.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var XAxisAggregateType;
|
|
2
|
+
(function (XAxisAggregateType) {
|
|
3
|
+
XAxisAggregateType["Average"] = "Average";
|
|
4
|
+
XAxisAggregateType["Sum"] = "Sum";
|
|
5
|
+
XAxisAggregateType["Max"] = "Max";
|
|
6
|
+
XAxisAggregateType["Min"] = "Min";
|
|
7
|
+
})(XAxisAggregateType || (XAxisAggregateType = {}));
|
|
8
|
+
//# sourceMappingURL=XAxis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XAxis.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/XAxis/XAxis.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,iCAAW,CAAA;IACX,iCAAW,CAAA;AACb,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XAxisMaxMin.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/XAxis/XAxisMaxMin.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var XAxisPrecision;
|
|
2
|
+
(function (XAxisPrecision) {
|
|
3
|
+
XAxisPrecision["EVERY_SECOND"] = "second";
|
|
4
|
+
XAxisPrecision["EVERY_FIVE_SECONDS"] = "fiveSeconds";
|
|
5
|
+
XAxisPrecision["EVERY_TEN_SECONDS"] = "tenSeconds";
|
|
6
|
+
XAxisPrecision["EVERY_THIRTY_SECONDS"] = "thirtySeconds";
|
|
7
|
+
XAxisPrecision["EVERY_MINUTE"] = "minute";
|
|
8
|
+
XAxisPrecision["EVERY_FIVE_MINUTES"] = "fiveMinutes";
|
|
9
|
+
XAxisPrecision["EVERY_TEN_MINUTES"] = "tenMinutes";
|
|
10
|
+
XAxisPrecision["EVERY_THIRTY_MINUTES"] = "thirtyMinutes";
|
|
11
|
+
XAxisPrecision["EVERY_HOUR"] = "hour";
|
|
12
|
+
XAxisPrecision["EVERY_TWO_HOURS"] = "twoHours";
|
|
13
|
+
XAxisPrecision["EVERY_THREE_HOURS"] = "threeHours";
|
|
14
|
+
XAxisPrecision["EVERY_SIX_HOURS"] = "sixHours";
|
|
15
|
+
XAxisPrecision["EVERY_TWELVE_HOURS"] = "twelveHours";
|
|
16
|
+
XAxisPrecision["EVERY_DAY"] = "day";
|
|
17
|
+
XAxisPrecision["EVERY_TWO_DAYS"] = "twoDays";
|
|
18
|
+
XAxisPrecision["EVERY_WEEK"] = "week";
|
|
19
|
+
XAxisPrecision["EVERY_TWO_WEEKS"] = "twoWeeks";
|
|
20
|
+
XAxisPrecision["EVERY_MONTH"] = "month";
|
|
21
|
+
XAxisPrecision["EVERY_TWO_MONTHS"] = "twoMonths";
|
|
22
|
+
XAxisPrecision["EVERY_THREE_MONTHS"] = "threeMonths";
|
|
23
|
+
XAxisPrecision["EVERY_SIX_MONTHS"] = "sixMonths";
|
|
24
|
+
XAxisPrecision["EVERY_YEAR"] = "year";
|
|
25
|
+
})(XAxisPrecision || (XAxisPrecision = {}));
|
|
26
|
+
export default XAxisPrecision;
|
|
27
|
+
//# sourceMappingURL=XAxisPrecision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XAxisPrecision.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/XAxis/XAxisPrecision.ts"],"names":[],"mappings":"AAAA,IAAK,cAuBJ;AAvBD,WAAK,cAAc;IACjB,yCAAuB,CAAA;IACvB,oDAAkC,CAAA;IAClC,kDAAgC,CAAA;IAChC,wDAAsC,CAAA;IACtC,yCAAuB,CAAA;IACvB,oDAAkC,CAAA;IAClC,kDAAgC,CAAA;IAChC,wDAAsC,CAAA;IACtC,qCAAmB,CAAA;IACnB,8CAA4B,CAAA;IAC5B,kDAAgC,CAAA;IAChC,8CAA4B,CAAA;IAC5B,oDAAkC,CAAA;IAClC,mCAAiB,CAAA;IACjB,4CAA0B,CAAA;IAC1B,qCAAmB,CAAA;IACnB,8CAA4B,CAAA;IAC5B,uCAAqB,CAAA;IACrB,gDAA8B,CAAA;IAC9B,oDAAkC,CAAA;IAClC,gDAA8B,CAAA;IAC9B,qCAAmB,CAAA;AACrB,CAAC,EAvBI,cAAc,KAAd,cAAc,QAuBlB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XAxisType.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/XAxis/XAxisType.ts"],"names":[],"mappings":"AAAA,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAHI,SAAS,KAAT,SAAS,QAGb;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XValue.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/XValue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var YAxisPrecision;
|
|
2
|
+
(function (YAxisPrecision) {
|
|
3
|
+
YAxisPrecision["NoDecimals"] = "NoDecimals";
|
|
4
|
+
YAxisPrecision["OneDecimal"] = "OneDecimal";
|
|
5
|
+
YAxisPrecision["TwoDecimals"] = "TwoDecimals";
|
|
6
|
+
YAxisPrecision["ThreeDecimals"] = "ThreeDecimals";
|
|
7
|
+
})(YAxisPrecision || (YAxisPrecision = {}));
|
|
8
|
+
//# sourceMappingURL=YAxis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YAxis.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/YAxis/YAxis.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;AACjC,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YAxisMaxMin.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/YAxis/YAxisMaxMin.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YAxisType.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/Types/YAxis/YAxisType.ts"],"names":[],"mappings":"AAAA,IAAK,SAEJ;AAFD,WAAK,SAAS;IACZ,8BAAiB,CAAA;AACnB,CAAC,EAFI,SAAS,KAAT,SAAS,QAEb;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YValue.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Types/YValue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/// ChartDataPoint is in the format of:
|
|
2
|
+
// {
|
|
3
|
+
// date: "Feb 22",
|
|
4
|
+
// SolarPanels: 2756,
|
|
5
|
+
// Inverters: 2103,
|
|
6
|
+
// }
|
|
7
|
+
import BadDataException from "../../../../Types/Exception/BadDataException";
|
|
8
|
+
import { XAxisAggregateType } from "../Types/XAxis/XAxis";
|
|
9
|
+
import { YAxisPrecision } from "../Types/YAxis/YAxis";
|
|
10
|
+
import XAxisUtil from "./XAxis";
|
|
11
|
+
export default class DataPointUtil {
|
|
12
|
+
static getChartDataPoints(data) {
|
|
13
|
+
const { xAxisLegend, intervals, formatter } = this.initializeXAxisData(data.xAxis);
|
|
14
|
+
const arrayOfData = this.initializeArrayOfData(intervals, xAxisLegend, formatter);
|
|
15
|
+
const seriesDataMap = this.processSeriesData(data.seriesPoints, arrayOfData, xAxisLegend, formatter, data.xAxis.options.aggregateType);
|
|
16
|
+
this.formatSeriesData(arrayOfData, seriesDataMap, data.yAxis.options.precision);
|
|
17
|
+
return arrayOfData;
|
|
18
|
+
}
|
|
19
|
+
static initializeXAxisData(xAxis) {
|
|
20
|
+
const xAxisMax = xAxis.options.max;
|
|
21
|
+
const xAxisMin = xAxis.options.min;
|
|
22
|
+
const xAxisLegend = xAxis.legend;
|
|
23
|
+
const intervals = XAxisUtil.getPrecisionIntervals({
|
|
24
|
+
xAxisMax,
|
|
25
|
+
xAxisMin,
|
|
26
|
+
});
|
|
27
|
+
const formatter = XAxisUtil.getFormatter({
|
|
28
|
+
xAxisMax,
|
|
29
|
+
xAxisMin,
|
|
30
|
+
});
|
|
31
|
+
return { xAxisMax, xAxisMin, xAxisLegend, intervals, formatter };
|
|
32
|
+
}
|
|
33
|
+
static initializeArrayOfData(intervals, xAxisLegend, formatter) {
|
|
34
|
+
const arrayOfData = [];
|
|
35
|
+
for (const interval of intervals) {
|
|
36
|
+
const dataPoint = {};
|
|
37
|
+
dataPoint[xAxisLegend] = formatter(interval);
|
|
38
|
+
arrayOfData.push(dataPoint);
|
|
39
|
+
}
|
|
40
|
+
return arrayOfData;
|
|
41
|
+
}
|
|
42
|
+
static processSeriesData(seriesPoints, arrayOfData, xAxisLegend, formatter, aggregateType) {
|
|
43
|
+
const seriesDataMap = {};
|
|
44
|
+
for (const series of seriesPoints) {
|
|
45
|
+
for (const dataPoint of series.data) {
|
|
46
|
+
const date = dataPoint.x;
|
|
47
|
+
const value = dataPoint.y;
|
|
48
|
+
const formattedDate = formatter(date);
|
|
49
|
+
for (const chartDataPoint of arrayOfData) {
|
|
50
|
+
if (chartDataPoint[xAxisLegend] === formattedDate) {
|
|
51
|
+
if (!seriesDataMap[series.seriesName]) {
|
|
52
|
+
seriesDataMap[series.seriesName] = {
|
|
53
|
+
sum: 0,
|
|
54
|
+
count: 0,
|
|
55
|
+
max: Number.NEGATIVE_INFINITY,
|
|
56
|
+
min: Number.POSITIVE_INFINITY,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
seriesDataMap[series.seriesName].sum += value;
|
|
60
|
+
seriesDataMap[series.seriesName].count += 1;
|
|
61
|
+
seriesDataMap[series.seriesName].max = Math.max(seriesDataMap[series.seriesName].max, value);
|
|
62
|
+
seriesDataMap[series.seriesName].min = Math.min(seriesDataMap[series.seriesName].min, value);
|
|
63
|
+
chartDataPoint[series.seriesName] = this.calculateAggregate(seriesDataMap[series.seriesName], aggregateType);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return seriesDataMap;
|
|
69
|
+
}
|
|
70
|
+
static calculateAggregate(seriesData, aggregateType) {
|
|
71
|
+
switch (aggregateType) {
|
|
72
|
+
case XAxisAggregateType.Average:
|
|
73
|
+
return seriesData.sum / seriesData.count;
|
|
74
|
+
case XAxisAggregateType.Sum:
|
|
75
|
+
return seriesData.sum;
|
|
76
|
+
case XAxisAggregateType.Max:
|
|
77
|
+
return seriesData.max;
|
|
78
|
+
case XAxisAggregateType.Min:
|
|
79
|
+
return seriesData.min;
|
|
80
|
+
default:
|
|
81
|
+
throw new BadDataException("Aggregate type not supported.");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
static formatSeriesData(arrayOfData, seriesDataMap, yAxisPrecision) {
|
|
85
|
+
for (const chartDataPoint of arrayOfData) {
|
|
86
|
+
for (const seriesName in seriesDataMap) {
|
|
87
|
+
if (chartDataPoint[seriesName] &&
|
|
88
|
+
typeof chartDataPoint[seriesName] === "number") {
|
|
89
|
+
chartDataPoint[seriesName] = this.formatValue(chartDataPoint[seriesName], yAxisPrecision);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
static formatValue(value, yAxisPrecision) {
|
|
95
|
+
switch (yAxisPrecision) {
|
|
96
|
+
case YAxisPrecision.NoDecimals:
|
|
97
|
+
return parseFloat(value.toFixed(0));
|
|
98
|
+
case YAxisPrecision.OneDecimal:
|
|
99
|
+
return parseFloat(value.toFixed(1));
|
|
100
|
+
case YAxisPrecision.TwoDecimals:
|
|
101
|
+
return parseFloat(value.toFixed(2));
|
|
102
|
+
case YAxisPrecision.ThreeDecimals:
|
|
103
|
+
return parseFloat(value.toFixed(3));
|
|
104
|
+
default:
|
|
105
|
+
throw new BadDataException("YAxis precision not supported.");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=DataPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataPoint.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Utils/DataPoint.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAI;AACJ,sBAAsB;AACtB,yBAAyB;AACzB,uBAAuB;AACvB,IAAI;AAEJ,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAG5E,OAAO,EAAS,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,SAAS,MAAM,SAAS,CAAC;AAShC,MAAM,CAAC,OAAO,OAAO,aAAa;IACzB,MAAM,CAAC,kBAAkB,CAAC,IAIhC;QACC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,mBAAmB,CACpE,IAAI,CAAC,KAAK,CACX,CAAC;QACF,MAAM,WAAW,GAAqB,IAAI,CAAC,qBAAqB,CAC9D,SAAS,EACT,WAAW,EACX,SAAS,CACV,CAAC;QACF,MAAM,aAAa,GAEf,IAAI,CAAC,iBAAiB,CACxB,IAAI,CAAC,YAAY,EACjB,WAAW,EACX,WAAW,EACX,SAAS,EACT,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CACjC,CAAC;QACF,IAAI,CAAC,gBAAgB,CACnB,WAAW,EACX,aAAa,EACb,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAC7B,CAAC;QACF,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,MAAM,CAAC,mBAAmB,CAAC,KAAY;QAO7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