@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.
@@ -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 (!((_a = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _a === void 0 ? void 0 : _a.hasPlugin(i2.TimeseriesZoomPlugin)) &&
7505
- _this.configuration.enableZoom) {
7506
- (_b = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _b === void 0 ? void 0 : _b.addPlugin(_this.zoomPlugin);
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.zoomPlugin =
8769
- ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
8770
- exports.TimeseriesWidgetProjectType.ModernDashboard
8771
- ? new i2.ZoomPlugin()
8772
- : new i2.TimeseriesZoomPlugin({ collectionId: this.collectionId }, this.zoomPluginsSyncService);
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;