@nova-ui/dashboards 12.0.22 → 12.0.23

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.
@@ -7117,6 +7117,11 @@
7117
7117
  TimeseriesTransformer["Standardize"] = "standardize";
7118
7118
  TimeseriesTransformer["FloatingAverage"] = "floatingAverage";
7119
7119
  })(exports.TimeseriesTransformer || (exports.TimeseriesTransformer = {}));
7120
+ exports.TimeseriesWidgetProjectType = void 0;
7121
+ (function (TimeseriesWidgetProjectType) {
7122
+ TimeseriesWidgetProjectType[TimeseriesWidgetProjectType["ModernDashboard"] = 0] = "ModernDashboard";
7123
+ TimeseriesWidgetProjectType[TimeseriesWidgetProjectType["PerfstackApp"] = 1] = "PerfstackApp";
7124
+ })(exports.TimeseriesWidgetProjectType || (exports.TimeseriesWidgetProjectType = {}));
7120
7125
 
7121
7126
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
7122
7127
  var intlFormatOptions = {
@@ -8756,9 +8761,15 @@
8756
8761
  this.zoomPluginsSyncService = zoomPluginsSyncService;
8757
8762
  this.elementClass = "";
8758
8763
  this.allowPopover = false;
8764
+ this.timeseriesWidgetProjectType = exports.TimeseriesWidgetProjectType;
8759
8765
  }
8760
8766
  TimeseriesWidgetComponent.prototype.ngOnInit = function () {
8761
- this.zoomPlugin = new i2.TimeseriesZoomPlugin({ collectionId: this.collectionId }, this.zoomPluginsSyncService);
8767
+ 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);
8762
8773
  };
8763
8774
  TimeseriesWidgetComponent.prototype.ngOnChanges = function (changes) {
8764
8775
  var _a, _b;
@@ -8792,7 +8803,7 @@
8792
8803
  }());
8793
8804
  TimeseriesWidgetComponent.lateLoadKey = "TimeseriesWidgetComponent";
8794
8805
  /** @nocollapse */ TimeseriesWidgetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesWidgetComponent, deps: [{ token: TimeseriesChartPresetService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.TimeseriesZoomPluginsSyncService }], target: i0__namespace.ɵɵFactoryTarget.Component });
8795
- /** @nocollapse */ TimeseriesWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: TimeseriesWidgetComponent, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n zoomPlugin: zoomPlugin\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n <nui-timeseries-inspection-menu\n [allowed]=\"allowPopover\"\n [plugin]=\"zoomPlugin\"\n [collectionId]=\"collectionId\"\n [exploringEnabled]=\"isExploringEnabled()\"\n [metricIds]=\"configuration?.metricIds\"\n ></nui-timeseries-inspection-menu>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", styles: [".timeseries-widget-content{padding:10px;position:relative}\n"], components: [{ type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: ["plugin", "exploringEnabled", "metricIds", "collectionId", "allowed"] }, { type: i3__namespace.ImageComponent, selector: "nui-image", inputs: ["width", "height", "image", "description", "float", "margin", "isWatermark", "autoFill"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
8806
+ /** @nocollapse */ TimeseriesWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: TimeseriesWidgetComponent, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n zoomPlugin: zoomPlugin\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n <nui-timeseries-inspection-menu\n *ngIf=\"\n configuration?.enableZoom &&\n configuration?.projectType ===\n timeseriesWidgetProjectType.PerfstackApp\n \"\n [allowed]=\"allowPopover\"\n [plugin]=\"zoomPlugin\"\n [collectionId]=\"collectionId\"\n [exploringEnabled]=\"isExploringEnabled()\"\n [metricIds]=\"configuration?.metricIds\"\n ></nui-timeseries-inspection-menu>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", styles: [".timeseries-widget-content{padding:10px;position:relative}\n"], components: [{ type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: ["plugin", "exploringEnabled", "metricIds", "collectionId", "allowed"] }, { type: i3__namespace.ImageComponent, selector: "nui-image", inputs: ["width", "height", "image", "description", "float", "margin", "isWatermark", "autoFill"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
8796
8807
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesWidgetComponent, decorators: [{
8797
8808
  type: i0.Component,
8798
8809
  args: [{