@nova-ui/dashboards 13.0.7-4421 → 13.0.7-4441
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/esm2020/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +17 -7
- package/esm2020/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.mjs +46 -1
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +11 -11
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +11 -11
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +11 -11
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +11 -11
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs +111 -10
- package/esm2020/lib/components/timeseries-widget/public-api.mjs +4 -1
- package/esm2020/lib/components/timeseries-widget/timeseries-helpers.mjs +36 -0
- package/esm2020/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.mjs +144 -0
- package/esm2020/lib/components/timeseries-widget/timeseries-widget.component.mjs +37 -11
- package/esm2020/lib/components/timeseries-widget/transformer/loess.mjs +219 -0
- package/esm2020/lib/components/timeseries-widget/transformer/public-api.mjs +29 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-change-point.mjs +104 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-difference.mjs +58 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-floating-average.mjs +41 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-lin-reg.mjs +66 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-loess-standardize.mjs +29 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-loess.mjs +38 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-normalize.mjs +47 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-percentile-std.mjs +58 -0
- package/esm2020/lib/components/timeseries-widget/transformer/transformer-standardize.mjs +47 -0
- package/esm2020/lib/components/timeseries-widget/types.mjs +30 -1
- package/esm2020/lib/dashboards.module.mjs +12 -5
- package/esm2020/lib/services/types.mjs +4 -1
- package/fesm2015/nova-ui-dashboards.mjs +1170 -265
- package/fesm2015/nova-ui-dashboards.mjs.map +1 -1
- package/fesm2020/nova-ui-dashboards.mjs +1157 -264
- package/fesm2020/nova-ui-dashboards.mjs.map +1 -1
- package/lib/components/providers/refresher.d.ts +1 -1
- package/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +4 -3
- package/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +7 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +15 -3
- package/lib/components/timeseries-widget/public-api.d.ts +3 -0
- package/lib/components/timeseries-widget/timeseries-helpers.d.ts +6 -0
- package/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +40 -0
- package/lib/components/timeseries-widget/timeseries-widget.component.d.ts +13 -4
- package/lib/components/timeseries-widget/transformer/loess.d.ts +6 -0
- package/lib/components/timeseries-widget/transformer/public-api.d.ts +9 -0
- package/lib/components/timeseries-widget/transformer/transformer-change-point.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-difference.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-floating-average.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-lin-reg.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-loess-standardize.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-loess.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-normalize.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-percentile-std.d.ts +2 -0
- package/lib/components/timeseries-widget/transformer/transformer-standardize.d.ts +2 -0
- package/lib/components/timeseries-widget/types.d.ts +35 -0
- package/lib/dashboards.module.d.ts +10 -9
- package/lib/services/types.d.ts +19 -13
- package/package.json +1 -1
- package/sdk/atoms/spec/timeseries/legend-series.atom.d.ts +12 -0
- package/sdk/atoms/spec/timeseries/legend-series.atom.js +85 -0
- package/sdk/atoms/spec/timeseries/legend-series.atom.js.map +1 -0
- package/sdk/atoms/spec/timeseries/timeseries.atom.d.ts +10 -0
- package/sdk/atoms/spec/timeseries/timeseries.atom.js +53 -0
- package/sdk/atoms/spec/timeseries/timeseries.atom.js.map +1 -0
- package/sdk/atoms/src/lib/components/providers/refresher.d.ts +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +3 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +16 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +7 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +45 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +14 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +105 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/public-api.d.ts +3 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/public-api.js +3 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +6 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +40 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +37 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js +160 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.d.ts +13 -4
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js +29 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.d.ts +6 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js +223 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.d.ts +9 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.js +32 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js +110 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js +63 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js +46 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js +71 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js +34 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js +43 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js +52 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js +65 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js +53 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/types.d.ts +35 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js +30 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.js +3 -0
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.d.ts +19 -13
- package/sdk/atoms/src/lib/services/types.js +4 -0
- package/sdk/atoms/src/lib/services/types.js.map +1 -1
- package/sdk/locale/messages.en.xlf +148 -15
package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js
CHANGED
|
@@ -31,16 +31,84 @@ const types_1 = require("../../../../services/types");
|
|
|
31
31
|
const types_2 = require("../../../../types");
|
|
32
32
|
const legend_1 = require("../../../../widget-types/common/widget/legend");
|
|
33
33
|
const timeseries_scales_service_1 = require("../../timeseries-scales.service");
|
|
34
|
+
const public_api_1 = require("../../transformer/public-api");
|
|
34
35
|
const types_3 = require("../../types");
|
|
35
36
|
const timeseries_chart_component_1 = require("../timeseries-chart.component");
|
|
36
37
|
let XYChartComponent = class XYChartComponent extends timeseries_chart_component_1.TimeseriesChartComponent {
|
|
37
|
-
constructor(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
38
|
+
constructor(eventBus, dataSource, timeseriesScalesService, changeDetector, zoomPluginsSyncService) {
|
|
38
39
|
super(timeseriesScalesService, dataSource);
|
|
39
40
|
this.eventBus = eventBus;
|
|
40
41
|
this.timeseriesScalesService = timeseriesScalesService;
|
|
41
42
|
this.changeDetector = changeDetector;
|
|
43
|
+
this.zoomPluginsSyncService = zoomPluginsSyncService;
|
|
42
44
|
this.valueAccessorKey = "y";
|
|
43
45
|
this.collectionId = "";
|
|
46
|
+
this.transformers = new Map([
|
|
47
|
+
[
|
|
48
|
+
types_3.TimeseriesTransformer.None,
|
|
49
|
+
{ displayName: $localize `None`, transformer: undefined },
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
types_3.TimeseriesTransformer.ChangePoint,
|
|
53
|
+
{
|
|
54
|
+
displayName: $localize `Change Point`,
|
|
55
|
+
transformer: public_api_1.transformChangePoint,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
types_3.TimeseriesTransformer.Difference,
|
|
60
|
+
{
|
|
61
|
+
displayName: $localize `Difference`,
|
|
62
|
+
transformer: public_api_1.transformDifference,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
types_3.TimeseriesTransformer.FloatingAverage,
|
|
67
|
+
{
|
|
68
|
+
displayName: $localize `Floating Average`,
|
|
69
|
+
transformer: public_api_1.transformFloatingAverage,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
types_3.TimeseriesTransformer.Linear,
|
|
74
|
+
{ displayName: $localize `Linear`, transformer: public_api_1.transformLinReg },
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
types_3.TimeseriesTransformer.Normalize,
|
|
78
|
+
{
|
|
79
|
+
displayName: $localize `Normalize`,
|
|
80
|
+
transformer: public_api_1.transformNormalize,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
types_3.TimeseriesTransformer.PercentileStd,
|
|
85
|
+
{
|
|
86
|
+
displayName: $localize `Percentile Standardized`,
|
|
87
|
+
transformer: public_api_1.transformPercentileStd,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
types_3.TimeseriesTransformer.Smoothing,
|
|
92
|
+
{
|
|
93
|
+
displayName: $localize `Smoothing`,
|
|
94
|
+
transformer: public_api_1.transformLoessSmoothing,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
types_3.TimeseriesTransformer.LoessStandardize,
|
|
99
|
+
{
|
|
100
|
+
displayName: $localize `Smoothing Standardized`,
|
|
101
|
+
transformer: public_api_1.transformLoessStandardize,
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
types_3.TimeseriesTransformer.Standardize,
|
|
106
|
+
{
|
|
107
|
+
displayName: $localize `Standardize`,
|
|
108
|
+
transformer: public_api_1.transformStandardize,
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
]);
|
|
44
112
|
}
|
|
45
113
|
mapSeriesSet(data, scales) {
|
|
46
114
|
const yScales = [scales.y];
|
|
@@ -140,7 +208,7 @@ let XYChartComponent = class XYChartComponent extends timeseries_chart_component
|
|
|
140
208
|
this.configuration.gridConfig.sideMargin;
|
|
141
209
|
}
|
|
142
210
|
if (this.configuration.enableZoom) {
|
|
143
|
-
chart.addPlugin(
|
|
211
|
+
chart.addPlugin(this.zoomPlugin);
|
|
144
212
|
}
|
|
145
213
|
chart
|
|
146
214
|
.getEventBus()
|
|
@@ -199,6 +267,39 @@ let XYChartComponent = class XYChartComponent extends timeseries_chart_component
|
|
|
199
267
|
}
|
|
200
268
|
});
|
|
201
269
|
}
|
|
270
|
+
displayLegendMenu() {
|
|
271
|
+
return (this.configuration.preset === types_3.TimeseriesChartPreset.Line &&
|
|
272
|
+
!!this.configuration.allowLegendMenu &&
|
|
273
|
+
this.configuration.projectType ===
|
|
274
|
+
types_3.TimeseriesWidgetProjectType.PerfstackApp);
|
|
275
|
+
}
|
|
276
|
+
removeMetric(metricId) {
|
|
277
|
+
this.eventBus.next(types_1.CHART_METRIC_REMOVE, {
|
|
278
|
+
payload: {
|
|
279
|
+
metricId: metricId,
|
|
280
|
+
groupUniqueId: this.configuration.groupUniqueId,
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
transformData(metricId, trId) {
|
|
285
|
+
var _a;
|
|
286
|
+
const serie = this.widgetData.series.find((s) => s.id === metricId);
|
|
287
|
+
if (!serie) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
serie.transformer = (_a = this.transformers.get(trId)) === null || _a === void 0 ? void 0 : _a.transformer;
|
|
291
|
+
if (serie.rawData) {
|
|
292
|
+
if (serie.transformer === undefined) {
|
|
293
|
+
// revert transformed data
|
|
294
|
+
serie.data = serie.rawData;
|
|
295
|
+
this.updateYAxisDomain();
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
this.transformSeriesData(serie);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
this.updateChartData();
|
|
302
|
+
}
|
|
202
303
|
};
|
|
203
304
|
XYChartComponent = tslib_1.__decorate([
|
|
204
305
|
(0, core_1.Injectable)(),
|
|
@@ -206,7 +307,8 @@ XYChartComponent = tslib_1.__decorate([
|
|
|
206
307
|
tslib_1.__param(1, (0, core_1.Optional)()),
|
|
207
308
|
tslib_1.__param(1, (0, core_1.Inject)(types_2.DATA_SOURCE)),
|
|
208
309
|
tslib_1.__metadata("design:paramtypes", [bits_1.EventBus, Object, timeseries_scales_service_1.TimeseriesScalesService,
|
|
209
|
-
core_1.ChangeDetectorRef
|
|
310
|
+
core_1.ChangeDetectorRef,
|
|
311
|
+
charts_1.TimeseriesZoomPluginsSyncService])
|
|
210
312
|
], XYChartComponent);
|
|
211
313
|
exports.XYChartComponent = XYChartComponent;
|
|
212
314
|
//# sourceMappingURL=xy-chart.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xy-chart.component.js","sourceRoot":"","sources":["../../../../../../../../../src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCAOuB;AACvB,gDAAgD;AAChD,+BAA6B;AAC7B,8CAA2C;AAE3C,wCAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"xy-chart.component.js","sourceRoot":"","sources":["../../../../../../../../../src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC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AQ;gBAClB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,aAAa;aAClD;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,aAAa,CAAC,QAAgB,EAAE,IAA2B;;QAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;QACpE,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;SACV;QACD,KAAK,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,WAAW,CAAC;QAE7D,IAAI,KAAK,CAAC,OAAO,EAAE;YACf,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE;gBACjC,0BAA0B;gBAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC;gBAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;aAC5B;iBAAM;gBACH,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;aACnC;SACJ;QACD,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;CACJ,CAAA;AA7UqB,gBAAgB;IADrC,IAAA,iBAAU,GAAE;IAoFJ,mBAAA,IAAA,aAAM,EAAC,0BAAkB,CAAC,CAAA;IAC1B,mBAAA,IAAA,eAAQ,GAAE,CAAA;IAAE,mBAAA,IAAA,aAAM,EAAC,mBAAW,CAAC,CAAA;6CADgB,eAAQ,UAExB,mDAAuB;QAChC,wBAAiB;QACT,yCAAgC;GAvFjD,gBAAgB,CA6UrC;AA7UqB,4CAAgB"}
|
|
@@ -2,3 +2,6 @@ export * from "./types";
|
|
|
2
2
|
export * from "./timeseries-widget.component";
|
|
3
3
|
export * from "./timeseries-chart-preset.service";
|
|
4
4
|
export * from "./chart-presets/public-api";
|
|
5
|
+
export * from "./transformer/public-api";
|
|
6
|
+
export * from "./timeseries-inspection-menu/timeseries-inspection-menu.component";
|
|
7
|
+
export * from "./timeseries-helpers";
|
|
@@ -24,4 +24,7 @@ tslib_1.__exportStar(require("./types"), exports);
|
|
|
24
24
|
tslib_1.__exportStar(require("./timeseries-widget.component"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./timeseries-chart-preset.service"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./chart-presets/public-api"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./transformer/public-api"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./timeseries-inspection-menu/timeseries-inspection-menu.component"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./timeseries-helpers"), exports);
|
|
27
30
|
//# sourceMappingURL=public-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,kDAAwB;AACxB,wEAA8C;AAC9C,4EAAkD;AAClD,qEAA2C"}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,kDAAwB;AACxB,wEAA8C;AAC9C,4EAAkD;AAClD,qEAA2C;AAC3C,mEAAyC;AACzC,4GAAkF;AAClF,+DAAqC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to
|
|
6
|
+
// deal in the Software without restriction, including without limitation the
|
|
7
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in
|
|
12
|
+
// all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
// THE SOFTWARE.
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.metricsSeriesMeasurementsMinMax = void 0;
|
|
23
|
+
function metricsSeriesMeasurementsMinMax(series, axisUnits) {
|
|
24
|
+
if (axisUnits === "percent") {
|
|
25
|
+
return { min: 0, max: 100 };
|
|
26
|
+
}
|
|
27
|
+
// skips percent measurements as they are displayed on the left y-axis and would affect right y-axis domain
|
|
28
|
+
const nonPercentMetrics = series.filter((metric) => { var _a; return metric.metricUnits !== "percent" && ((_a = metric.data) === null || _a === void 0 ? void 0 : _a.length); });
|
|
29
|
+
// case where there are no measurements for non-percent metrics, e.g when a license expires
|
|
30
|
+
if (nonPercentMetrics.length === 0) {
|
|
31
|
+
return { min: -1, max: 1 };
|
|
32
|
+
}
|
|
33
|
+
const measurements = nonPercentMetrics.flatMap((m) => { var _a; return (_a = m.data) !== null && _a !== void 0 ? _a : []; });
|
|
34
|
+
return measurements.reduce((acc, measurement) => ({
|
|
35
|
+
min: Math.min(acc.min, measurement.y),
|
|
36
|
+
max: Math.max(acc.max, measurement.y),
|
|
37
|
+
}), { min: measurements[0].y, max: measurements[0].y });
|
|
38
|
+
}
|
|
39
|
+
exports.metricsSeriesMeasurementsMinMax = metricsSeriesMeasurementsMinMax;
|
|
40
|
+
//# sourceMappingURL=timeseries-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeseries-helpers.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/timeseries-helpers.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAMjB,SAAgB,+BAA+B,CAC3C,MAAoC,EACpC,SAAqB;IAErB,IAAI,SAAS,KAAK,SAAS,EAAE;QACzB,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;KAC/B;IACD,2GAA2G;IAC3G,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CACnC,CAAC,MAAM,EAAE,EAAE,WAAC,OAAA,MAAM,CAAC,WAAW,KAAK,SAAS,KAAI,MAAA,MAAM,CAAC,IAAI,0CAAE,MAAM,CAAA,CAAA,EAAA,CACtE,CAAC;IAEF,4FAA4F;IAC5F,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;QAChC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;KAC9B;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,IAAI,mCAAI,EAAE,CAAA,EAAA,CAAC,CAAC;IAEpE,OAAO,YAAY,CAAC,MAAM,CACtB,CAAC,GAAiC,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;QACjD,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;QACrC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;KACxC,CAAC,EACF,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CACrD,CAAC;AACN,CAAC;AA1BD,0EA0BC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { EventBus, IEvent, IEventDefinition } from "@nova-ui/bits";
|
|
3
|
+
import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, ITimeseriesZoomPluginInspectionFrame } from "@nova-ui/charts";
|
|
4
|
+
import moment from "moment/moment";
|
|
5
|
+
export declare const TIMESERIES_INSPECTION_MENU_ZOOM_IN: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>;
|
|
6
|
+
export declare const TIMESERIES_INSPECTION_MENU_ZOOM_OUT: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>;
|
|
7
|
+
export declare const TIMESERIES_INSPECTION_MENU_EXPLORE: IEventDefinition<IEvent<ITimeseriesZoomPluginExploreData>>;
|
|
8
|
+
export declare const TIMESERIES_INSPECTION_MENU_CLOSE: IEventDefinition<IEvent<void>>;
|
|
9
|
+
export declare const TIMESERIES_INSPECTION_MENU_SYNCHRONIZE: IEventDefinition<IEvent<void>>;
|
|
10
|
+
export interface ITimeseriesZoomPluginExploreData {
|
|
11
|
+
ids: string;
|
|
12
|
+
startDate: moment.Moment;
|
|
13
|
+
endDate: moment.Moment;
|
|
14
|
+
openSidePanel: boolean;
|
|
15
|
+
exploringEnabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class TimeseriesInspectionMenuComponent implements OnInit, OnChanges, OnDestroy {
|
|
18
|
+
element: ElementRef;
|
|
19
|
+
private eventBus;
|
|
20
|
+
private syncService;
|
|
21
|
+
plugin: TimeseriesZoomPlugin;
|
|
22
|
+
exploringEnabled: boolean;
|
|
23
|
+
metricIds?: string;
|
|
24
|
+
collectionId?: string;
|
|
25
|
+
allowed?: boolean;
|
|
26
|
+
private offset;
|
|
27
|
+
private destroy$;
|
|
28
|
+
constructor(element: ElementRef, eventBus: EventBus<IEvent>, syncService: TimeseriesZoomPluginsSyncService);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
clearZoom(): void;
|
|
33
|
+
isZoomInAllowed(): boolean;
|
|
34
|
+
zoomIn(): void;
|
|
35
|
+
zoomOut(): void;
|
|
36
|
+
explore(openSidePanel?: boolean): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to
|
|
6
|
+
// deal in the Software without restriction, including without limitation the
|
|
7
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in
|
|
12
|
+
// all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
// THE SOFTWARE.
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.TimeseriesInspectionMenuComponent = exports.TIMESERIES_INSPECTION_MENU_SYNCHRONIZE = exports.TIMESERIES_INSPECTION_MENU_CLOSE = exports.TIMESERIES_INSPECTION_MENU_EXPLORE = exports.TIMESERIES_INSPECTION_MENU_ZOOM_OUT = exports.TIMESERIES_INSPECTION_MENU_ZOOM_IN = void 0;
|
|
23
|
+
const tslib_1 = require("tslib");
|
|
24
|
+
const core_1 = require("@angular/core");
|
|
25
|
+
const rxjs_1 = require("rxjs");
|
|
26
|
+
const operators_1 = require("rxjs/operators");
|
|
27
|
+
const bits_1 = require("@nova-ui/bits");
|
|
28
|
+
const charts_1 = require("@nova-ui/charts");
|
|
29
|
+
const types_1 = require("../../../types");
|
|
30
|
+
exports.TIMESERIES_INSPECTION_MENU_ZOOM_IN = {
|
|
31
|
+
id: "TIMESERIES_INSPECTION_MENU_ZOOM_IN",
|
|
32
|
+
};
|
|
33
|
+
exports.TIMESERIES_INSPECTION_MENU_ZOOM_OUT = {
|
|
34
|
+
id: "TIMESERIES_INSPECTION_MENU_ZOOM_OUT",
|
|
35
|
+
};
|
|
36
|
+
exports.TIMESERIES_INSPECTION_MENU_EXPLORE = {
|
|
37
|
+
id: "TIMESERIES_INSPECTION_MENU_EXPLORE",
|
|
38
|
+
};
|
|
39
|
+
exports.TIMESERIES_INSPECTION_MENU_CLOSE = {
|
|
40
|
+
id: "TIMESERIES_INSPECTION_MENU_CLOSE",
|
|
41
|
+
};
|
|
42
|
+
exports.TIMESERIES_INSPECTION_MENU_SYNCHRONIZE = {
|
|
43
|
+
id: "TIMESERIES_INSPECTION_MENU_SYNCHRONIZE",
|
|
44
|
+
};
|
|
45
|
+
let TimeseriesInspectionMenuComponent = class TimeseriesInspectionMenuComponent {
|
|
46
|
+
constructor(element, eventBus, syncService) {
|
|
47
|
+
this.element = element;
|
|
48
|
+
this.eventBus = eventBus;
|
|
49
|
+
this.syncService = syncService;
|
|
50
|
+
this.exploringEnabled = false;
|
|
51
|
+
this.allowed = false;
|
|
52
|
+
this.offset = 38;
|
|
53
|
+
this.destroy$ = new rxjs_1.Subject();
|
|
54
|
+
}
|
|
55
|
+
ngOnInit() {
|
|
56
|
+
var _a;
|
|
57
|
+
this.plugin.zoomCreated$.subscribe(() => this.explore(false));
|
|
58
|
+
this.eventBus
|
|
59
|
+
.getStream(exports.TIMESERIES_INSPECTION_MENU_SYNCHRONIZE)
|
|
60
|
+
.subscribe(() => {
|
|
61
|
+
var _a;
|
|
62
|
+
const { startDate, endDate } = this.plugin.getInspectionFrame();
|
|
63
|
+
if (startDate && endDate) {
|
|
64
|
+
this.syncService.syncPositionInsideCollection((_a = this.collectionId) !== null && _a !== void 0 ? _a : "", startDate, endDate);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
(_a = this.plugin) === null || _a === void 0 ? void 0 : _a.openPopover$.pipe((0, operators_1.takeUntil)(this.destroy$)).subscribe((x) => {
|
|
68
|
+
// moves element to the correct position
|
|
69
|
+
this.element.nativeElement.style.left = this.offset + x + "px";
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
ngOnChanges(changes) {
|
|
73
|
+
var _a;
|
|
74
|
+
if ((_a = changes.allowed) === null || _a === void 0 ? void 0 : _a.currentValue) {
|
|
75
|
+
this.plugin.showPopover();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.plugin.closePopover();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
ngOnDestroy() {
|
|
82
|
+
this.destroy$.next();
|
|
83
|
+
this.destroy$.complete();
|
|
84
|
+
}
|
|
85
|
+
clearZoom() {
|
|
86
|
+
var _a;
|
|
87
|
+
this.syncService.clearZoomInsideCollection((_a = this.collectionId) !== null && _a !== void 0 ? _a : "");
|
|
88
|
+
this.eventBus.next(exports.TIMESERIES_INSPECTION_MENU_CLOSE, {});
|
|
89
|
+
}
|
|
90
|
+
isZoomInAllowed() {
|
|
91
|
+
const { startDate, endDate } = this.plugin.getInspectionFrame();
|
|
92
|
+
if (!startDate || !endDate) {
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
// doesn't allow zoom for timeframe smaller than 10 minutes
|
|
96
|
+
return endDate.diff(startDate, "minutes") > 10;
|
|
97
|
+
}
|
|
98
|
+
zoomIn() {
|
|
99
|
+
var _a;
|
|
100
|
+
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
101
|
+
this.eventBus.next(exports.TIMESERIES_INSPECTION_MENU_ZOOM_IN, {
|
|
102
|
+
payload: inspectionTimeframe,
|
|
103
|
+
});
|
|
104
|
+
this.syncService.clearZoomInsideCollection((_a = this.collectionId) !== null && _a !== void 0 ? _a : "");
|
|
105
|
+
}
|
|
106
|
+
zoomOut() {
|
|
107
|
+
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
108
|
+
this.eventBus.next(exports.TIMESERIES_INSPECTION_MENU_ZOOM_OUT, {
|
|
109
|
+
payload: inspectionTimeframe,
|
|
110
|
+
});
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
this.plugin.closePopover();
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
explore(openSidePanel = false) {
|
|
116
|
+
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
117
|
+
this.eventBus.next(exports.TIMESERIES_INSPECTION_MENU_EXPLORE, {
|
|
118
|
+
payload: {
|
|
119
|
+
ids: this.metricIds,
|
|
120
|
+
startDate: inspectionTimeframe.startDate,
|
|
121
|
+
endDate: inspectionTimeframe.endDate,
|
|
122
|
+
openSidePanel,
|
|
123
|
+
exploringEnabled: this.exploringEnabled,
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
(0, core_1.Input)(),
|
|
130
|
+
tslib_1.__metadata("design:type", charts_1.TimeseriesZoomPlugin)
|
|
131
|
+
], TimeseriesInspectionMenuComponent.prototype, "plugin", void 0);
|
|
132
|
+
tslib_1.__decorate([
|
|
133
|
+
(0, core_1.Input)(),
|
|
134
|
+
tslib_1.__metadata("design:type", Object)
|
|
135
|
+
], TimeseriesInspectionMenuComponent.prototype, "exploringEnabled", void 0);
|
|
136
|
+
tslib_1.__decorate([
|
|
137
|
+
(0, core_1.Input)(),
|
|
138
|
+
tslib_1.__metadata("design:type", String)
|
|
139
|
+
], TimeseriesInspectionMenuComponent.prototype, "metricIds", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, core_1.Input)(),
|
|
142
|
+
tslib_1.__metadata("design:type", String)
|
|
143
|
+
], TimeseriesInspectionMenuComponent.prototype, "collectionId", void 0);
|
|
144
|
+
tslib_1.__decorate([
|
|
145
|
+
(0, core_1.Input)(),
|
|
146
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
147
|
+
], TimeseriesInspectionMenuComponent.prototype, "allowed", void 0);
|
|
148
|
+
TimeseriesInspectionMenuComponent = tslib_1.__decorate([
|
|
149
|
+
(0, core_1.Component)({
|
|
150
|
+
selector: "nui-timeseries-inspection-menu",
|
|
151
|
+
templateUrl: "./timeseries-inspection-menu.component.html",
|
|
152
|
+
styleUrls: ["./timeseries-inspection-menu.component.less"],
|
|
153
|
+
}),
|
|
154
|
+
tslib_1.__param(1, (0, core_1.Inject)(types_1.PIZZAGNA_EVENT_BUS)),
|
|
155
|
+
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
156
|
+
bits_1.EventBus,
|
|
157
|
+
charts_1.TimeseriesZoomPluginsSyncService])
|
|
158
|
+
], TimeseriesInspectionMenuComponent);
|
|
159
|
+
exports.TimeseriesInspectionMenuComponent = TimeseriesInspectionMenuComponent;
|
|
160
|
+
//# sourceMappingURL=timeseries-inspection-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeseries-inspection-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCASuB;A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AA6C,CAAC;KAC7D,CAAC;IAeO,mBAAA,IAAA,aAAM,EAAC,0BAAkB,CAAC,CAAA;6CADX,iBAAU;QACoB,eAAQ;QACjC,yCAAgC;GAfhD,iCAAiC,CAoG7C;AApGY,8EAAiC"}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
1
|
+
import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, ZoomPlugin } from "@nova-ui/charts";
|
|
2
3
|
import { IHasChangeDetector } from "../../types";
|
|
3
4
|
import { TimeseriesChartPresetService } from "./timeseries-chart-preset.service";
|
|
4
|
-
import { IChartPreset, ITimeseriesOutput, ITimeseriesWidgetConfig } from "./types";
|
|
5
|
+
import { IChartPreset, ITimeseriesOutput, ITimeseriesWidgetConfig, TimeseriesWidgetProjectType } from "./types";
|
|
5
6
|
/** @ignore */
|
|
6
|
-
export declare class TimeseriesWidgetComponent implements OnChanges, IHasChangeDetector {
|
|
7
|
+
export declare class TimeseriesWidgetComponent implements OnInit, OnChanges, IHasChangeDetector {
|
|
7
8
|
timeseriesChartPresetService: TimeseriesChartPresetService;
|
|
8
9
|
changeDetector: ChangeDetectorRef;
|
|
10
|
+
zoomPluginsSyncService: TimeseriesZoomPluginsSyncService;
|
|
9
11
|
static lateLoadKey: string;
|
|
10
12
|
widgetData?: ITimeseriesOutput;
|
|
11
13
|
configuration?: ITimeseriesWidgetConfig;
|
|
12
14
|
collectionId?: string;
|
|
13
15
|
elementClass: string;
|
|
14
16
|
chartPreset: IChartPreset;
|
|
15
|
-
|
|
17
|
+
zoomPlugin: ZoomPlugin | TimeseriesZoomPlugin;
|
|
18
|
+
allowPopover: boolean;
|
|
19
|
+
timeseriesWidgetProjectType: typeof TimeseriesWidgetProjectType;
|
|
20
|
+
constructor(timeseriesChartPresetService: TimeseriesChartPresetService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
|
|
21
|
+
ngOnInit(): void;
|
|
16
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
23
|
/** Checks if chart should be shown. */
|
|
18
24
|
shouldShowChart(): boolean;
|
|
25
|
+
toggleLeave(): void;
|
|
26
|
+
toggleEnter(): void;
|
|
27
|
+
isExploringEnabled(): boolean;
|
|
19
28
|
}
|
|
@@ -22,14 +22,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.TimeseriesWidgetComponent = void 0;
|
|
23
23
|
const tslib_1 = require("tslib");
|
|
24
24
|
const core_1 = require("@angular/core");
|
|
25
|
+
const charts_1 = require("@nova-ui/charts");
|
|
25
26
|
const timeseries_chart_preset_service_1 = require("./timeseries-chart-preset.service");
|
|
26
27
|
const types_1 = require("./types");
|
|
27
28
|
/** @ignore */
|
|
28
29
|
let TimeseriesWidgetComponent = class TimeseriesWidgetComponent {
|
|
29
|
-
constructor(timeseriesChartPresetService, changeDetector) {
|
|
30
|
+
constructor(timeseriesChartPresetService, changeDetector, zoomPluginsSyncService) {
|
|
30
31
|
this.timeseriesChartPresetService = timeseriesChartPresetService;
|
|
31
32
|
this.changeDetector = changeDetector;
|
|
33
|
+
this.zoomPluginsSyncService = zoomPluginsSyncService;
|
|
32
34
|
this.elementClass = "";
|
|
35
|
+
this.allowPopover = false;
|
|
36
|
+
this.timeseriesWidgetProjectType = types_1.TimeseriesWidgetProjectType;
|
|
37
|
+
}
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
var _a;
|
|
40
|
+
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
41
|
+
types_1.TimeseriesWidgetProjectType.PerfstackApp) {
|
|
42
|
+
this.zoomPlugin = new charts_1.TimeseriesZoomPlugin({ collectionId: this.collectionId }, this.zoomPluginsSyncService);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.zoomPlugin = new charts_1.ZoomPlugin();
|
|
46
|
+
}
|
|
33
47
|
}
|
|
34
48
|
ngOnChanges(changes) {
|
|
35
49
|
var _a, _b;
|
|
@@ -47,6 +61,18 @@ let TimeseriesWidgetComponent = class TimeseriesWidgetComponent {
|
|
|
47
61
|
var _a, _b, _c;
|
|
48
62
|
return ((_c = (_b = (_a = this.widgetData) === null || _a === void 0 ? void 0 : _a.series) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0;
|
|
49
63
|
}
|
|
64
|
+
toggleLeave() {
|
|
65
|
+
this.allowPopover = false;
|
|
66
|
+
}
|
|
67
|
+
toggleEnter() {
|
|
68
|
+
this.allowPopover = true;
|
|
69
|
+
}
|
|
70
|
+
isExploringEnabled() {
|
|
71
|
+
var _a, _b, _c;
|
|
72
|
+
return (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.type) !== types_1.TimeseriesChartTypes.gauge &&
|
|
73
|
+
((_b = this.configuration) === null || _b === void 0 ? void 0 : _b.type) !== types_1.TimeseriesChartTypes.multi &&
|
|
74
|
+
((_c = this.configuration) === null || _c === void 0 ? void 0 : _c.type) !== types_1.TimeseriesChartTypes.state);
|
|
75
|
+
}
|
|
50
76
|
};
|
|
51
77
|
TimeseriesWidgetComponent.lateLoadKey = "TimeseriesWidgetComponent";
|
|
52
78
|
tslib_1.__decorate([
|
|
@@ -73,7 +99,8 @@ TimeseriesWidgetComponent = tslib_1.__decorate([
|
|
|
73
99
|
templateUrl: "./timeseries-widget.component.html",
|
|
74
100
|
}),
|
|
75
101
|
tslib_1.__metadata("design:paramtypes", [timeseries_chart_preset_service_1.TimeseriesChartPresetService,
|
|
76
|
-
core_1.ChangeDetectorRef
|
|
102
|
+
core_1.ChangeDetectorRef,
|
|
103
|
+
charts_1.TimeseriesZoomPluginsSyncService])
|
|
77
104
|
], TimeseriesWidgetComponent);
|
|
78
105
|
exports.TimeseriesWidgetComponent = TimeseriesWidgetComponent;
|
|
79
106
|
//# sourceMappingURL=timeseries-widget.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeseries-widget.component.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/timeseries-widget.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,
|
|
1
|
+
{"version":3,"file":"timeseries-widget.component.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/timeseries-widget.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCAQuB;AACvB,4CAIyB;AAGzB,uFAAiF;AACjF,mCAOiB;AAEjB,cAAc;AAMd,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAiBlC,YACW,4BAA0D,EAC1D,cAAiC,EACjC,sBAAwD;QAFxD,iCAA4B,GAA5B,4BAA4B,CAA8B;QAC1D,mBAAc,GAAd,cAAc,CAAmB;QACjC,2BAAsB,GAAtB,sBAAsB,CAAkC;QAX7B,iBAAY,GAAG,EAAE,CAAC;QAKjD,iBAAY,GAAG,KAAK,CAAC;QACrB,gCAA2B,GAAG,mCAA2B,CAAC;IAM9D,CAAC;IAEG,Q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