@nova-ui/dashboards 12.0.23 → 12.0.24
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/bundles/nova-ui-dashboards.umd.js +18 -9
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +14 -6
- package/esm2015/lib/components/timeseries-widget/timeseries-widget.component.js +8 -6
- package/fesm2015/nova-ui-dashboards.js +19 -10
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +1 -2
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +12 -4
- 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/timeseries-widget.component.js +7 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
|
@@ -7500,10 +7500,17 @@
|
|
|
7500
7500
|
this.chartAssist.update(seriesSet);
|
|
7501
7501
|
if (this.configuration.enableZoom) {
|
|
7502
7502
|
this.chartAssist.sparks.forEach(function (spark) {
|
|
7503
|
-
var _a, _b;
|
|
7504
|
-
if (
|
|
7505
|
-
|
|
7506
|
-
(_b = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _b === void 0 ? void 0 : _b.
|
|
7503
|
+
var _a, _b, _c, _d, _e;
|
|
7504
|
+
if (((_a = _this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
7505
|
+
exports.TimeseriesWidgetProjectType.PerfstackApp) {
|
|
7506
|
+
if (!((_b = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _b === void 0 ? void 0 : _b.hasPlugin(i2.TimeseriesZoomPlugin))) {
|
|
7507
|
+
(_c = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _c === void 0 ? void 0 : _c.addPlugin(new i2.TimeseriesZoomPlugin({ collectionId: _this.collectionId }, _this.zoomPluginsSyncService));
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7510
|
+
else {
|
|
7511
|
+
if (!((_d = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _d === void 0 ? void 0 : _d.hasPlugin(i2.ZoomPlugin))) {
|
|
7512
|
+
(_e = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _e === void 0 ? void 0 : _e.addPlugin(new i2.ZoomPlugin({ enableExternalEvents: true }));
|
|
7513
|
+
}
|
|
7507
7514
|
}
|
|
7508
7515
|
});
|
|
7509
7516
|
// only need to subscribe to one chart's SET_DOMAIN_EVENT
|
|
@@ -8765,11 +8772,13 @@
|
|
|
8765
8772
|
}
|
|
8766
8773
|
TimeseriesWidgetComponent.prototype.ngOnInit = function () {
|
|
8767
8774
|
var _a;
|
|
8768
|
-
this.
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8775
|
+
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
8776
|
+
exports.TimeseriesWidgetProjectType.PerfstackApp) {
|
|
8777
|
+
this.zoomPlugin = new i2.TimeseriesZoomPlugin({ collectionId: this.collectionId }, this.zoomPluginsSyncService);
|
|
8778
|
+
}
|
|
8779
|
+
else {
|
|
8780
|
+
this.zoomPlugin = new i2.ZoomPlugin();
|
|
8781
|
+
}
|
|
8773
8782
|
};
|
|
8774
8783
|
TimeseriesWidgetComponent.prototype.ngOnChanges = function (changes) {
|
|
8775
8784
|
var _a, _b;
|