@nova-ui/dashboards 12.0.40 → 12.0.42
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 +1005 -412
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/components/public-api.js +2 -1
- package/esm2015/lib/components/risk-score-tile/public-api.js +22 -0
- package/esm2015/lib/components/risk-score-tile/risk-score-tile.component.js +124 -0
- package/esm2015/lib/components/risk-score-tile/types.js +25 -0
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/timeseries-helpers.js +2 -2
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +6 -9
- package/esm2015/lib/configurator/components/widgets/configurator-items/public-api.js +2 -1
- package/esm2015/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +112 -0
- package/esm2015/lib/configurator/components/widgets/public-api.js +2 -1
- package/esm2015/lib/configurator/components/widgets/risk-score/public-api.js +22 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +21 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +96 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/types.js +21 -0
- package/esm2015/lib/configurator/configurator.module.js +9 -1
- package/esm2015/lib/dashboards.module.js +19 -7
- package/esm2015/lib/services/provider-registry.service.js +8 -3
- package/esm2015/lib/services/table-formatter-registry.service.js +12 -1
- package/esm2015/lib/services/types.js +2 -1
- package/esm2015/lib/widget-types/risk-score/risk-score-configurator.js +201 -0
- package/esm2015/lib/widget-types/risk-score/risk-score-widget.js +86 -0
- package/esm2015/lib/widget-types/risk-score/risk-score.js +56 -0
- package/fesm2015/nova-ui-dashboards.js +675 -100
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/components/public-api.d.ts +1 -0
- package/lib/components/risk-score-tile/public-api.d.ts +2 -0
- package/lib/components/risk-score-tile/risk-score-tile.component.d.ts +32 -0
- package/lib/components/risk-score-tile/types.d.ts +28 -0
- package/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
- package/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +26 -0
- package/lib/configurator/components/widgets/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
- package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +32 -0
- package/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
- package/lib/configurator/configurator.module.d.ts +67 -65
- package/lib/dashboards.module.d.ts +38 -37
- package/lib/services/table-formatter-registry.service.d.ts +5 -0
- package/lib/services/types.d.ts +1 -0
- package/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
- package/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
- package/lib/widget-types/risk-score/risk-score.d.ts +5 -0
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/components/public-api.js +1 -0
- package/sdk/atoms/src/lib/components/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.d.ts +2 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js +25 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.d.ts +29 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js +128 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js.map +1 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.d.ts +28 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.js +28 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +5 -8
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +23 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +125 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js +25 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +24 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +29 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +102 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js +22 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js +4 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.d.ts +2 -2
- package/sdk/atoms/src/lib/dashboards.module.js +12 -3
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js +5 -0
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.d.ts +3 -0
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js +11 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.d.ts +1 -0
- package/sdk/atoms/src/lib/services/types.js +3 -2
- package/sdk/atoms/src/lib/services/types.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js +204 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js.map +1 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js +89 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js.map +1 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.d.ts +5 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js +59 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js.map +1 -0
- package/sdk/locale/messages.en.xlf +96 -0
|
@@ -575,6 +575,7 @@
|
|
|
575
575
|
var NOVA_VIRTUAL_VIEWPORT_MANAGER = "NOVA_VIRTUAL_VIEWPORT_MANAGER";
|
|
576
576
|
var NOVA_TABLE_FORMATTERS_REGISTRY = "NOVA_TABLE_FORMATTERS_REGISTRY";
|
|
577
577
|
var NOVA_KPI_FORMATTERS_REGISTRY = "NOVA_KPI_FORMATTERS_REGISTRY";
|
|
578
|
+
var NOVA_RISK_SCORE_FORMATTERS_REGISTRY = "NOVA_RISK_SCORE_FORMATTERS_REGISTRY";
|
|
578
579
|
var NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY = "NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY";
|
|
579
580
|
var NOVA_TEST_REGISTRY = "NOVA_TEST_REGISTRY";
|
|
580
581
|
var NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER = "NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER";
|
|
@@ -3687,6 +3688,19 @@
|
|
|
3687
3688
|
type: i0.Injectable,
|
|
3688
3689
|
args: [{ providedIn: "root" }]
|
|
3689
3690
|
}], ctorParameters: function () { return [{ type: i3__namespace.LoggerService }]; } });
|
|
3691
|
+
var RiskScoreFormattersRegistryService = /** @class */ (function (_super) {
|
|
3692
|
+
__extends(RiskScoreFormattersRegistryService, _super);
|
|
3693
|
+
function RiskScoreFormattersRegistryService(logger) {
|
|
3694
|
+
return _super.call(this, logger, "RiskScoreFormattersRegistryService") || this;
|
|
3695
|
+
}
|
|
3696
|
+
return RiskScoreFormattersRegistryService;
|
|
3697
|
+
}(FormatterRegistryService));
|
|
3698
|
+
/** @nocollapse */ RiskScoreFormattersRegistryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreFormattersRegistryService, deps: [{ token: i3__namespace.LoggerService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3699
|
+
/** @nocollapse */ RiskScoreFormattersRegistryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreFormattersRegistryService, providedIn: "root" });
|
|
3700
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreFormattersRegistryService, decorators: [{
|
|
3701
|
+
type: i0.Injectable,
|
|
3702
|
+
args: [{ providedIn: "root" }]
|
|
3703
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.LoggerService }]; } });
|
|
3690
3704
|
var ProportionalDonutContentFormattersRegistryService = /** @class */ (function (_super) {
|
|
3691
3705
|
__extends(ProportionalDonutContentFormattersRegistryService, _super);
|
|
3692
3706
|
function ProportionalDonutContentFormattersRegistryService(logger) {
|
|
@@ -4054,6 +4068,11 @@
|
|
|
4054
4068
|
useExisting: KpiFormattersRegistryService,
|
|
4055
4069
|
deps: [PizzagnaService],
|
|
4056
4070
|
},
|
|
4071
|
+
_a[NOVA_RISK_SCORE_FORMATTERS_REGISTRY] = {
|
|
4072
|
+
provide: FORMATTERS_REGISTRY,
|
|
4073
|
+
useExisting: RiskScoreFormattersRegistryService,
|
|
4074
|
+
deps: [PizzagnaService],
|
|
4075
|
+
},
|
|
4057
4076
|
_a[NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY] = {
|
|
4058
4077
|
provide: FORMATTERS_REGISTRY,
|
|
4059
4078
|
useExisting: ProportionalDonutContentFormattersRegistryService,
|
|
@@ -6206,6 +6225,111 @@
|
|
|
6206
6225
|
args: ["gridContainer", { static: true }]
|
|
6207
6226
|
}] } });
|
|
6208
6227
|
|
|
6228
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6229
|
+
var RiskScoreTileComponent = /** @class */ (function () {
|
|
6230
|
+
function RiskScoreTileComponent(changeDetector, dataSource, eventBus) {
|
|
6231
|
+
this.changeDetector = changeDetector;
|
|
6232
|
+
this.dataSource = dataSource;
|
|
6233
|
+
this.eventBus = eventBus;
|
|
6234
|
+
this.busy = false;
|
|
6235
|
+
this.elementClass = "";
|
|
6236
|
+
this.defaultColor = "var(--nui-color-bg-secondary)";
|
|
6237
|
+
}
|
|
6238
|
+
Object.defineProperty(RiskScoreTileComponent.prototype, "interactive", {
|
|
6239
|
+
get: function () {
|
|
6240
|
+
var _a, _b, _c, _d, _e;
|
|
6241
|
+
return (((((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.interactive) ||
|
|
6242
|
+
((_d = (_c = (_b = this.dataSource) === null || _b === void 0 ? void 0 : _b.features) === null || _c === void 0 ? void 0 : _c.getFeatureConfig(exports.WellKnownDataSourceFeatures.Interactivity)) === null || _d === void 0 ? void 0 : _d.enabled)) &&
|
|
6243
|
+
!_isNil__default["default"]((_e = this.widgetData) === null || _e === void 0 ? void 0 : _e.value)) ||
|
|
6244
|
+
false);
|
|
6245
|
+
},
|
|
6246
|
+
enumerable: false,
|
|
6247
|
+
configurable: true
|
|
6248
|
+
});
|
|
6249
|
+
RiskScoreTileComponent.prototype.onInteraction = function () {
|
|
6250
|
+
if (!this.interactive) {
|
|
6251
|
+
return;
|
|
6252
|
+
}
|
|
6253
|
+
this.eventBus
|
|
6254
|
+
.getStream(INTERACTION)
|
|
6255
|
+
.next({ payload: { data: this.widgetData } });
|
|
6256
|
+
};
|
|
6257
|
+
RiskScoreTileComponent.prototype.getScaleBroker = function (id) {
|
|
6258
|
+
if (this.syncValuesBroker) {
|
|
6259
|
+
return this.syncValuesBroker.find(function (b) { return b.id === id; });
|
|
6260
|
+
}
|
|
6261
|
+
};
|
|
6262
|
+
RiskScoreTileComponent.prototype.ngOnChanges = function (changes) {
|
|
6263
|
+
var _a;
|
|
6264
|
+
if (changes.configuration) {
|
|
6265
|
+
var formattersConfiguration = changes.configuration.currentValue.formatters;
|
|
6266
|
+
if (formattersConfiguration) {
|
|
6267
|
+
this.formattersProperties = this.getFormatterProperties(formattersConfiguration);
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
if (changes.widgetData) {
|
|
6271
|
+
if ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.formatters) {
|
|
6272
|
+
this.formattersProperties = this.getFormatterProperties(this.configuration.formatters);
|
|
6273
|
+
}
|
|
6274
|
+
}
|
|
6275
|
+
};
|
|
6276
|
+
/**
|
|
6277
|
+
* Iterates over formatters and maps their properties from the data
|
|
6278
|
+
*
|
|
6279
|
+
* @param formattersConfiguration
|
|
6280
|
+
*/
|
|
6281
|
+
RiskScoreTileComponent.prototype.getFormatterProperties = function (formattersConfiguration) {
|
|
6282
|
+
var _this = this;
|
|
6283
|
+
var formatterKeys = Object.keys(formattersConfiguration);
|
|
6284
|
+
var formattersProperties = formatterKeys.reduce(function (acc, key) {
|
|
6285
|
+
var _a;
|
|
6286
|
+
var formatterCfg = (_a = formattersConfiguration[key]) === null || _a === void 0 ? void 0 : _a.formatter;
|
|
6287
|
+
if (formatterCfg) {
|
|
6288
|
+
acc[key] = {
|
|
6289
|
+
data: mapDataToFormatterProperties(formatterCfg, _this.widgetData),
|
|
6290
|
+
};
|
|
6291
|
+
}
|
|
6292
|
+
return acc;
|
|
6293
|
+
}, {});
|
|
6294
|
+
return formattersProperties;
|
|
6295
|
+
};
|
|
6296
|
+
return RiskScoreTileComponent;
|
|
6297
|
+
}());
|
|
6298
|
+
RiskScoreTileComponent.lateLoadKey = "RiskScoreTileComponent";
|
|
6299
|
+
/** @nocollapse */ RiskScoreTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTileComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6300
|
+
/** @nocollapse */ RiskScoreTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RiskScoreTileComponent, selector: "nui-risk-score-tile", inputs: { widgetData: "widgetData", syncValuesBroker: "syncValuesBroker", configuration: "configuration", busy: "busy" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"busy\">\n <ng-container *ngIf=\"widgetData?.link\">\n <a class=\"nui-risk-score-tile-indicator\" [href]=\"widgetData.link\">\n <ng-container [ngTemplateOutlet]=\"riskScoreContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!widgetData?.link\">\n <div class=\"nui-risk-score-tile-indicator\" (click)=\"onInteraction()\">\n <ng-container [ngTemplateOutlet]=\"riskScoreContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #riskScoreContent>\n <div\n class=\"nui-risk-score-tile-indicator__background\"\n [class.nui-risk-score-tile-indicator--interactive]=\"interactive\"\n ></div>\n <div\n class=\"nui-risk-score-tile-indicator__text\"\n [ngStyle]=\"{\n color: widgetData?.textColor || defaultColor\n }\"\n >\n <div class=\"nui-risk-score-tile-indicator__zoom-container\">\n <div\n class=\"nui-risk-score-tile-indicator__label\"\n [title]=\"widgetData?.label\"\n >\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.5\"\n [scaleIN$]=\"getScaleBroker('label')?.out$\"\n [scaleOUT$]=\"getScaleBroker('label')?.in$\"\n >{{ widgetData?.label }}</span\n >\n </div>\n\n <div\n class=\"nui-risk-score-tile-indicator__value\"\n [style.font-size]=\"widgetData?.fontSize\"\n [title]=\"widgetData?.value\"\n >\n <nui-risk-score\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\"\n class=\"nui-risk-score-tile-indicator__score\"\n [level]=\"widgetData?.value\"\n [minLevel]=\"widgetData?.minValue ?? 0\"\n [maxLevel]=\"widgetData?.maxValue ?? 10\"\n [title]=\"\n widgetData?.useStaticLabel ?? false\n ? widgetData?.staticLabel\n : widgetData?.value\n \"\n ></nui-risk-score>\n </div>\n\n <div\n class=\"nui-risk-score-tile-indicator__description\"\n [title]=\"widgetData?.description\"\n >\n <div\n class=\"nui-risk-score-tile-indicator__description__text\"\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.7\"\n [scaleIN$]=\"getScaleBroker('description')?.out$\"\n [scaleOUT$]=\"getScaleBroker('description')?.in$\"\n >\n <p>{{ widgetData?.description }}</p>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".nui-risk-score-tile-indicator{position:relative;display:block;height:100%;width:100%;overflow:hidden}.nui-risk-score-tile-indicator__background{height:100%;width:100%;background-color:var(--nui-color-bg-secondary,#fafafa);color:var(--nui-color-text-default,#111)}.nui-risk-score-tile-indicator__text{position:absolute;width:100%;height:100%;top:0;pointer-events:none}.nui-risk-score-tile-indicator__text *>span{filter:invert(1) grayscale(1) contrast(100)}.nui-risk-score-tile-indicator__value{font-size:36px;font-weight:600;margin:auto 20px;min-width:calc(100% - 20px * 2);white-space:nowrap;display:flex;align-items:center;justify-content:center;height:100%;min-height:5px;max-height:200px}.nui-risk-score-tile-indicator__score{min-width:100%}.nui-risk-score-tile-indicator__label{font-size:16px;font-weight:600;min-width:0;margin-top:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-risk-score-tile-indicator__label>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-risk-score-tile-indicator__description{font-size:13.5px;font-weight:400;min-width:0;margin-bottom:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px;color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6))}.nui-risk-score-tile-indicator__description__text{white-space:wrap;word-wrap:break-word;word-break:keep-all;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;white-space:pre-wrap}.nui-risk-score-tile-indicator__zoom-container{display:grid;grid-template-columns:1fr;grid-template-rows:30% 40% 30%;width:100%;height:100%}.nui-risk-score-tile-indicator--interactive{cursor:pointer}.nui-risk-score-tile-indicator--interactive:hover{filter:brightness(90%)}\n"], components: [{ type: i3__namespace.BusyComponent, selector: "[nui-busy]", inputs: ["disableTabNavigation", "busy"] }, { type: i3__namespace.RiskScoreComponent, selector: "nui-risk-score", inputs: ["level", "minLevel", "maxLevel", "title"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3__namespace.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "useZoom", "margin", "minScale", "maxZoom", "minZoom", "maxScale", "scaleIN$", "scaleOUT$"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
6301
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTileComponent, decorators: [{
|
|
6302
|
+
type: i0.Component,
|
|
6303
|
+
args: [{
|
|
6304
|
+
selector: "nui-risk-score-tile",
|
|
6305
|
+
templateUrl: "./risk-score-tile.component.html",
|
|
6306
|
+
styleUrls: ["./risk-score-tile.component.less"],
|
|
6307
|
+
encapsulation: i0.ViewEncapsulation.Emulated,
|
|
6308
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6309
|
+
}]
|
|
6310
|
+
}], ctorParameters: function () {
|
|
6311
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
6312
|
+
type: i0.Optional
|
|
6313
|
+
}, {
|
|
6314
|
+
type: i0.Inject,
|
|
6315
|
+
args: [DATA_SOURCE]
|
|
6316
|
+
}] }, { type: i3__namespace.EventBus, decorators: [{
|
|
6317
|
+
type: i0.Inject,
|
|
6318
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
6319
|
+
}] }];
|
|
6320
|
+
}, propDecorators: { widgetData: [{
|
|
6321
|
+
type: i0.Input
|
|
6322
|
+
}], syncValuesBroker: [{
|
|
6323
|
+
type: i0.Input
|
|
6324
|
+
}], configuration: [{
|
|
6325
|
+
type: i0.Input
|
|
6326
|
+
}], busy: [{
|
|
6327
|
+
type: i0.Input
|
|
6328
|
+
}], elementClass: [{
|
|
6329
|
+
type: i0.HostBinding,
|
|
6330
|
+
args: ["class"]
|
|
6331
|
+
}] } });
|
|
6332
|
+
|
|
6209
6333
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6210
6334
|
var DelayedMousePresenceDetectionDirective = /** @class */ (function () {
|
|
6211
6335
|
function DelayedMousePresenceDetectionDirective() {
|
|
@@ -7146,7 +7270,7 @@
|
|
|
7146
7270
|
type === exports.TimeseriesChartTypes.multi);
|
|
7147
7271
|
}
|
|
7148
7272
|
var SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-chart-sum)";
|
|
7149
|
-
var SUMMARY_LEGEND_COLOR = "var(--nui-color-text-
|
|
7273
|
+
var SUMMARY_LEGEND_COLOR = "var(--nui-color-text-inverse)";
|
|
7150
7274
|
|
|
7151
7275
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7152
7276
|
//
|
|
@@ -7251,7 +7375,7 @@
|
|
|
7251
7375
|
* @param scaleConfig
|
|
7252
7376
|
*/
|
|
7253
7377
|
TimeseriesScalesService.prototype.updateConfiguration = function (scale, scaleConfig, widgetConfig) {
|
|
7254
|
-
var _a, _b, _c, _d, _e, _f
|
|
7378
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7255
7379
|
switch (scaleConfig.type) {
|
|
7256
7380
|
case exports.TimeseriesScaleType.Time: {
|
|
7257
7381
|
var interval = (_a = scaleConfig.properties) === null || _a === void 0 ? void 0 : _a.timeInterval;
|
|
@@ -7279,18 +7403,15 @@
|
|
|
7279
7403
|
if ((_c = scaleConfig.properties) === null || _c === void 0 ? void 0 : _c.axisUnits) {
|
|
7280
7404
|
scale.scaleUnits = scaleConfig.properties.axisUnits;
|
|
7281
7405
|
}
|
|
7282
|
-
if ((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) === exports.TimeseriesChartPreset.StatusBar
|
|
7283
|
-
((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
|
|
7284
|
-
exports.TimeseriesChartPreset.StackedArea &&
|
|
7285
|
-
((_d = scaleConfig.properties) === null || _d === void 0 ? void 0 : _d.axisUnits) === "percent")) {
|
|
7406
|
+
if ((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) === exports.TimeseriesChartPreset.StatusBar) {
|
|
7286
7407
|
return;
|
|
7287
7408
|
}
|
|
7288
|
-
if (((
|
|
7409
|
+
if (((_d = scaleConfig.properties) === null || _d === void 0 ? void 0 : _d.axisUnits) === "percent" &&
|
|
7289
7410
|
scale.setFixDomainValues) {
|
|
7290
7411
|
scale.setFixDomainValues([0, 25, 50, 75, 100]);
|
|
7291
7412
|
}
|
|
7292
|
-
if (((
|
|
7293
|
-
((
|
|
7413
|
+
if (((_e = scaleConfig.properties) === null || _e === void 0 ? void 0 : _e.axisUnits) !== "percent" &&
|
|
7414
|
+
((_f = scaleConfig.properties) === null || _f === void 0 ? void 0 : _f.domain) &&
|
|
7294
7415
|
scale.setFixDomainValues) {
|
|
7295
7416
|
var domainAdjusted = void 0;
|
|
7296
7417
|
switch (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) {
|
|
@@ -7309,8 +7430,8 @@
|
|
|
7309
7430
|
}
|
|
7310
7431
|
}
|
|
7311
7432
|
};
|
|
7312
|
-
TimeseriesScalesService.prototype.getStackedBarScaleDomain = function (
|
|
7313
|
-
var min =
|
|
7433
|
+
TimeseriesScalesService.prototype.getStackedBarScaleDomain = function (_g) {
|
|
7434
|
+
var min = _g.min, max = _g.max;
|
|
7314
7435
|
if (max === 0 || max % 4 > 0) {
|
|
7315
7436
|
max = max + 4 - (max % 4);
|
|
7316
7437
|
}
|
|
@@ -7323,8 +7444,8 @@
|
|
|
7323
7444
|
max,
|
|
7324
7445
|
];
|
|
7325
7446
|
};
|
|
7326
|
-
TimeseriesScalesService.prototype.getLineScaleDomain = function (
|
|
7327
|
-
var min =
|
|
7447
|
+
TimeseriesScalesService.prototype.getLineScaleDomain = function (_g) {
|
|
7448
|
+
var min = _g.min, max = _g.max;
|
|
7328
7449
|
if (min > max) {
|
|
7329
7450
|
var tmp = min;
|
|
7330
7451
|
min = max;
|
|
@@ -8290,12 +8411,12 @@
|
|
|
8290
8411
|
_this.transformers = new Map([
|
|
8291
8412
|
[
|
|
8292
8413
|
exports.TimeseriesTransformer.None,
|
|
8293
|
-
{ displayName: $localize(templateObject_1$
|
|
8414
|
+
{ displayName: $localize(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["None"], ["None"]))), transformer: undefined },
|
|
8294
8415
|
],
|
|
8295
8416
|
[
|
|
8296
8417
|
exports.TimeseriesTransformer.ChangePoint,
|
|
8297
8418
|
{
|
|
8298
|
-
displayName: $localize(templateObject_2$
|
|
8419
|
+
displayName: $localize(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["Change Point"], ["Change Point"]))),
|
|
8299
8420
|
transformer: transformChangePoint,
|
|
8300
8421
|
},
|
|
8301
8422
|
],
|
|
@@ -8582,7 +8703,7 @@
|
|
|
8582
8703
|
args: [DATA_SOURCE]
|
|
8583
8704
|
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8584
8705
|
} });
|
|
8585
|
-
var templateObject_1$
|
|
8706
|
+
var templateObject_1$B, templateObject_2$p, templateObject_3$i, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$5, templateObject_8$3, templateObject_9$2, templateObject_10$2;
|
|
8586
8707
|
|
|
8587
8708
|
var LineChartComponent = /** @class */ (function (_super) {
|
|
8588
8709
|
__extends(LineChartComponent, _super);
|
|
@@ -8605,7 +8726,7 @@
|
|
|
8605
8726
|
}(XYChartComponent));
|
|
8606
8727
|
LineChartComponent.lateLoadKey = "LineChartComponent";
|
|
8607
8728
|
/** @nocollapse */ LineChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8608
|
-
/** @nocollapse */ LineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, selector: "nui-line-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8729
|
+
/** @nocollapse */ LineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, selector: "nui-line-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8609
8730
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LineChartComponent, decorators: [{
|
|
8610
8731
|
type: i0.Component,
|
|
8611
8732
|
args: [{
|
|
@@ -8653,7 +8774,7 @@
|
|
|
8653
8774
|
}(XYChartComponent));
|
|
8654
8775
|
StackedAreaChartComponent.lateLoadKey = "StackedAreaChartComponent";
|
|
8655
8776
|
/** @nocollapse */ StackedAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8656
|
-
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8777
|
+
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8657
8778
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedAreaChartComponent, decorators: [{
|
|
8658
8779
|
type: i0.Component,
|
|
8659
8780
|
args: [{
|
|
@@ -8716,7 +8837,7 @@
|
|
|
8716
8837
|
}(XYChartComponent));
|
|
8717
8838
|
StackedBarChartComponent.lateLoadKey = "StackedBarChartComponent";
|
|
8718
8839
|
/** @nocollapse */ StackedBarChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8719
|
-
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8840
|
+
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8720
8841
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedBarChartComponent, decorators: [{
|
|
8721
8842
|
type: i0.Component,
|
|
8722
8843
|
args: [{
|
|
@@ -8757,7 +8878,7 @@
|
|
|
8757
8878
|
}(XYChartComponent));
|
|
8758
8879
|
StackedPercentageAreaChartComponent.lateLoadKey = "StackedPercentageAreaChartComponent";
|
|
8759
8880
|
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8760
|
-
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8881
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8761
8882
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
8762
8883
|
type: i0.Component,
|
|
8763
8884
|
args: [{
|
|
@@ -8777,39 +8898,6 @@
|
|
|
8777
8898
|
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8778
8899
|
} });
|
|
8779
8900
|
|
|
8780
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8781
|
-
var TimeseriesChartPresetService = /** @class */ (function () {
|
|
8782
|
-
function TimeseriesChartPresetService() {
|
|
8783
|
-
var _a;
|
|
8784
|
-
this.presets = (_a = {},
|
|
8785
|
-
_a[exports.TimeseriesChartPreset.Line] = {
|
|
8786
|
-
componentType: LineChartComponent.lateLoadKey,
|
|
8787
|
-
},
|
|
8788
|
-
_a[exports.TimeseriesChartPreset.StackedArea] = {
|
|
8789
|
-
componentType: StackedAreaChartComponent.lateLoadKey,
|
|
8790
|
-
},
|
|
8791
|
-
_a[exports.TimeseriesChartPreset.StackedPercentageArea] = {
|
|
8792
|
-
componentType: StackedPercentageAreaChartComponent.lateLoadKey,
|
|
8793
|
-
},
|
|
8794
|
-
_a[exports.TimeseriesChartPreset.StackedBar] = {
|
|
8795
|
-
componentType: StackedBarChartComponent.lateLoadKey,
|
|
8796
|
-
},
|
|
8797
|
-
_a[exports.TimeseriesChartPreset.StatusBar] = {
|
|
8798
|
-
componentType: StatusBarChartComponent.lateLoadKey,
|
|
8799
|
-
},
|
|
8800
|
-
_a);
|
|
8801
|
-
}
|
|
8802
|
-
return TimeseriesChartPresetService;
|
|
8803
|
-
}());
|
|
8804
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8805
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, providedIn: "root" });
|
|
8806
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, decorators: [{
|
|
8807
|
-
type: i0.Injectable,
|
|
8808
|
-
args: [{
|
|
8809
|
-
providedIn: "root",
|
|
8810
|
-
}]
|
|
8811
|
-
}], ctorParameters: function () { return []; } });
|
|
8812
|
-
|
|
8813
8901
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8814
8902
|
var TIMESERIES_INSPECTION_MENU_ZOOM_IN = {
|
|
8815
8903
|
id: "TIMESERIES_INSPECTION_MENU_ZOOM_IN",
|
|
@@ -8945,6 +9033,39 @@
|
|
|
8945
9033
|
type: i0.Input
|
|
8946
9034
|
}] } });
|
|
8947
9035
|
|
|
9036
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9037
|
+
var TimeseriesChartPresetService = /** @class */ (function () {
|
|
9038
|
+
function TimeseriesChartPresetService() {
|
|
9039
|
+
var _a;
|
|
9040
|
+
this.presets = (_a = {},
|
|
9041
|
+
_a[exports.TimeseriesChartPreset.Line] = {
|
|
9042
|
+
componentType: LineChartComponent.lateLoadKey,
|
|
9043
|
+
},
|
|
9044
|
+
_a[exports.TimeseriesChartPreset.StackedArea] = {
|
|
9045
|
+
componentType: StackedAreaChartComponent.lateLoadKey,
|
|
9046
|
+
},
|
|
9047
|
+
_a[exports.TimeseriesChartPreset.StackedPercentageArea] = {
|
|
9048
|
+
componentType: StackedPercentageAreaChartComponent.lateLoadKey,
|
|
9049
|
+
},
|
|
9050
|
+
_a[exports.TimeseriesChartPreset.StackedBar] = {
|
|
9051
|
+
componentType: StackedBarChartComponent.lateLoadKey,
|
|
9052
|
+
},
|
|
9053
|
+
_a[exports.TimeseriesChartPreset.StatusBar] = {
|
|
9054
|
+
componentType: StatusBarChartComponent.lateLoadKey,
|
|
9055
|
+
},
|
|
9056
|
+
_a);
|
|
9057
|
+
}
|
|
9058
|
+
return TimeseriesChartPresetService;
|
|
9059
|
+
}());
|
|
9060
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9061
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, providedIn: "root" });
|
|
9062
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesChartPresetService, decorators: [{
|
|
9063
|
+
type: i0.Injectable,
|
|
9064
|
+
args: [{
|
|
9065
|
+
providedIn: "root",
|
|
9066
|
+
}]
|
|
9067
|
+
}], ctorParameters: function () { return []; } });
|
|
9068
|
+
|
|
8948
9069
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8949
9070
|
/** @ignore */
|
|
8950
9071
|
var TimeseriesWidgetComponent = /** @class */ (function () {
|
|
@@ -9307,7 +9428,7 @@
|
|
|
9307
9428
|
*/
|
|
9308
9429
|
this.collapsed = false;
|
|
9309
9430
|
this.onDestroy$ = new rxjs.Subject();
|
|
9310
|
-
this.linkTooltip = $localize(templateObject_1$
|
|
9431
|
+
this.linkTooltip = $localize(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["Explore this data"], ["Explore this data"])));
|
|
9311
9432
|
}
|
|
9312
9433
|
Object.defineProperty(WidgetHeaderComponent.prototype, "hostClass", {
|
|
9313
9434
|
get: function () {
|
|
@@ -9466,7 +9587,7 @@
|
|
|
9466
9587
|
type: i0.ViewChild,
|
|
9467
9588
|
args: ["widgetHeaderCustomElement"]
|
|
9468
9589
|
}] } });
|
|
9469
|
-
var templateObject_1$
|
|
9590
|
+
var templateObject_1$A;
|
|
9470
9591
|
|
|
9471
9592
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9472
9593
|
var NuiPizzagnaModule = /** @class */ (function () {
|
|
@@ -10624,7 +10745,7 @@
|
|
|
10624
10745
|
|
|
10625
10746
|
var WidgetConfiguratorSectionHeaderPipe = /** @class */ (function () {
|
|
10626
10747
|
function WidgetConfiguratorSectionHeaderPipe() {
|
|
10627
|
-
this.defaultHeaderPrefix = $localize(templateObject_1$
|
|
10748
|
+
this.defaultHeaderPrefix = $localize(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["Value"], ["Value"])));
|
|
10628
10749
|
}
|
|
10629
10750
|
WidgetConfiguratorSectionHeaderPipe.prototype.transform = function (headerText, index, headerPrefix) {
|
|
10630
10751
|
if (headerPrefix === void 0) { headerPrefix = this.defaultHeaderPrefix; }
|
|
@@ -10640,7 +10761,7 @@
|
|
|
10640
10761
|
name: "nuiWidgetConfiguratorSectionHeader",
|
|
10641
10762
|
}]
|
|
10642
10763
|
}] });
|
|
10643
|
-
var templateObject_1$
|
|
10764
|
+
var templateObject_1$z;
|
|
10644
10765
|
|
|
10645
10766
|
var AddDataPipe = /** @class */ (function () {
|
|
10646
10767
|
function AddDataPipe() {
|
|
@@ -10898,7 +11019,7 @@
|
|
|
10898
11019
|
};
|
|
10899
11020
|
}
|
|
10900
11021
|
DashwizStepComponent.prototype.ngOnInit = function () {
|
|
10901
|
-
this.nextText = this.nextText || $localize(templateObject_1$
|
|
11022
|
+
this.nextText = this.nextText || $localize(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["Next"], ["Next"])));
|
|
10902
11023
|
};
|
|
10903
11024
|
DashwizStepComponent.prototype.ngOnChanges = function (changes) {
|
|
10904
11025
|
if (changes["stepControl"]) {
|
|
@@ -10939,7 +11060,7 @@
|
|
|
10939
11060
|
}], next: [{
|
|
10940
11061
|
type: i0.Output
|
|
10941
11062
|
}] } });
|
|
10942
|
-
var templateObject_1$
|
|
11063
|
+
var templateObject_1$y;
|
|
10943
11064
|
|
|
10944
11065
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
10945
11066
|
var DashwizButtonsComponent = /** @class */ (function () {
|
|
@@ -11668,7 +11789,7 @@
|
|
|
11668
11789
|
// @ts-ignore: Type '{ pizzagna: { configuration: IPizzagnaLayer; }; }' is missing the following properties from type 'IWidget': id, type
|
|
11669
11790
|
this.configurator.updateWidget(previewWidget);
|
|
11670
11791
|
var widgetTitle = get__default["default"](configLayer, WidgetEditorComponent.TITLE_PATH, "");
|
|
11671
|
-
this.configuratorTitle = $localize(templateObject_1$
|
|
11792
|
+
this.configuratorTitle = $localize(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["Editing ", ""], ["Editing ", ""])), widgetTitle);
|
|
11672
11793
|
};
|
|
11673
11794
|
WidgetEditorComponent.prototype.onFinish = function () {
|
|
11674
11795
|
if (this.form.invalid) {
|
|
@@ -11718,11 +11839,11 @@
|
|
|
11718
11839
|
type: i0.ViewChild,
|
|
11719
11840
|
args: ["formPizzagnaComponent", { static: false }]
|
|
11720
11841
|
}] } });
|
|
11721
|
-
var templateObject_1$
|
|
11842
|
+
var templateObject_1$x;
|
|
11722
11843
|
|
|
11723
11844
|
var CHART_PALETTE_CS3_ALTERNATIVE_NAMES = [
|
|
11724
|
-
$localize(templateObject_1$
|
|
11725
|
-
$localize(templateObject_2$
|
|
11845
|
+
$localize(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["Blue"], ["Blue"]))),
|
|
11846
|
+
$localize(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["Blue Light"], ["Blue Light"]))),
|
|
11726
11847
|
$localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["Blue Dark"], ["Blue Dark"]))),
|
|
11727
11848
|
$localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["Pink"], ["Pink"]))),
|
|
11728
11849
|
$localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["Pink Light"], ["Pink Light"]))),
|
|
@@ -11774,7 +11895,7 @@
|
|
|
11774
11895
|
color: color,
|
|
11775
11896
|
label: chartPaletteColorMap[color],
|
|
11776
11897
|
}); });
|
|
11777
|
-
var templateObject_1$
|
|
11898
|
+
var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$c, templateObject_5$8, templateObject_6$6, templateObject_7$4, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44;
|
|
11778
11899
|
|
|
11779
11900
|
/**
|
|
11780
11901
|
* Checks whether given form has a field that should be visually marked as invalid.
|
|
@@ -11884,7 +12005,7 @@
|
|
|
11884
12005
|
var _this = this;
|
|
11885
12006
|
var _a;
|
|
11886
12007
|
this.palette = [
|
|
11887
|
-
{ color: DEFAULT_KPI_TILE_COLOR, label: $localize(templateObject_1$
|
|
12008
|
+
{ color: DEFAULT_KPI_TILE_COLOR, label: $localize(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["Default color"], ["Default color"]))) },
|
|
11888
12009
|
].concat(this.backgroundColors);
|
|
11889
12010
|
this.formLocal = this.initDefaultRulesGroup();
|
|
11890
12011
|
this.form = this.formBuilder.group({
|
|
@@ -11918,7 +12039,7 @@
|
|
|
11918
12039
|
var _a, _b, _c, _d;
|
|
11919
12040
|
return ((_b = (_a = this.formLocal) === null || _a === void 0 ? void 0 : _a.get("rules")) === null || _b === void 0 ? void 0 : _b.value).controls
|
|
11920
12041
|
.length === 0
|
|
11921
|
-
? $localize(templateObject_2$
|
|
12042
|
+
? $localize(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["No color rules"], ["No color rules"]))) : $localize(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["", " color rules"], ["", " color rules"])), ((_d = (_c = this.formLocal) === null || _c === void 0 ? void 0 : _c.get("rules")) === null || _d === void 0 ? void 0 : _d.value).controls
|
|
11922
12043
|
.length);
|
|
11923
12044
|
};
|
|
11924
12045
|
BackgroundColorRulesConfigurationComponent.prototype.getLabel = function (item) {
|
|
@@ -11986,7 +12107,7 @@
|
|
|
11986
12107
|
}], formReady: [{
|
|
11987
12108
|
type: i0.Output
|
|
11988
12109
|
}] } });
|
|
11989
|
-
var templateObject_1$
|
|
12110
|
+
var templateObject_1$v, templateObject_2$n, templateObject_3$g;
|
|
11990
12111
|
|
|
11991
12112
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
11992
12113
|
var DataSourceErrorComponent = /** @class */ (function () {
|
|
@@ -12377,11 +12498,11 @@
|
|
|
12377
12498
|
this.modes = [
|
|
12378
12499
|
{
|
|
12379
12500
|
value: exports.EmbeddedContentMode.URL,
|
|
12380
|
-
displayValue: $localize(templateObject_1$
|
|
12501
|
+
displayValue: $localize(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["Show the contents of a specific URL"], ["Show the contents of a specific URL"]))),
|
|
12381
12502
|
},
|
|
12382
12503
|
{
|
|
12383
12504
|
value: exports.EmbeddedContentMode.HTML,
|
|
12384
|
-
displayValue: $localize(templateObject_2$
|
|
12505
|
+
displayValue: $localize(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["Show the exact HTML I supply below"], ["Show the exact HTML I supply below"]))),
|
|
12385
12506
|
},
|
|
12386
12507
|
];
|
|
12387
12508
|
}
|
|
@@ -12482,7 +12603,7 @@
|
|
|
12482
12603
|
}], formReady: [{
|
|
12483
12604
|
type: i0.Output
|
|
12484
12605
|
}] } });
|
|
12485
|
-
var templateObject_1$
|
|
12606
|
+
var templateObject_1$u, templateObject_2$m;
|
|
12486
12607
|
|
|
12487
12608
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
12488
12609
|
var InfoMessageConfigurationComponent = /** @class */ (function () {
|
|
@@ -12516,7 +12637,7 @@
|
|
|
12516
12637
|
this.changeDetector = changeDetector;
|
|
12517
12638
|
this.formBuilder = formBuilder;
|
|
12518
12639
|
this.defaultColor = {
|
|
12519
|
-
label: $localize(templateObject_1$
|
|
12640
|
+
label: $localize(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["Default color"], ["Default color"]))),
|
|
12520
12641
|
color: DEFAULT_KPI_TILE_COLOR,
|
|
12521
12642
|
};
|
|
12522
12643
|
this.label = "";
|
|
@@ -12539,7 +12660,7 @@
|
|
|
12539
12660
|
var backgroundColor = this.form.get("backgroundColor");
|
|
12540
12661
|
var backgroundColorValue = backgroundColor === null || backgroundColor === void 0 ? void 0 : backgroundColor.valueChanges.pipe(operators.startWith(backgroundColor === null || backgroundColor === void 0 ? void 0 : backgroundColor.value));
|
|
12541
12662
|
this.subtitle$ = rxjs.combineLatest([
|
|
12542
|
-
labelValue === null || labelValue === void 0 ? void 0 : labelValue.pipe(operators.map(function (t) { return t || $localize(templateObject_2$
|
|
12663
|
+
labelValue === null || labelValue === void 0 ? void 0 : labelValue.pipe(operators.map(function (t) { return t || $localize(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["no label"], ["no label"]))); })),
|
|
12543
12664
|
backgroundColorValue === null || backgroundColorValue === void 0 ? void 0 : backgroundColorValue.pipe(operators.map(function (t) { return chartPaletteColorMap[t] || $localize(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["Default Color"], ["Default Color"]))); })),
|
|
12544
12665
|
]).pipe(operators.map(function (labels) { return labels.join(", "); }));
|
|
12545
12666
|
this.formReady.emit(this.form);
|
|
@@ -12586,9 +12707,9 @@
|
|
|
12586
12707
|
}], formReady: [{
|
|
12587
12708
|
type: i0.Output
|
|
12588
12709
|
}] } });
|
|
12589
|
-
var templateObject_1$
|
|
12710
|
+
var templateObject_1$t, templateObject_2$l, templateObject_3$f;
|
|
12590
12711
|
|
|
12591
|
-
var _a$
|
|
12712
|
+
var _a$p, _b$o, _c$g;
|
|
12592
12713
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
12593
12714
|
//
|
|
12594
12715
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -12614,25 +12735,25 @@
|
|
|
12614
12735
|
TimeUnit["Minute"] = "minute";
|
|
12615
12736
|
TimeUnit["Hour"] = "hour";
|
|
12616
12737
|
})(TimeUnit || (TimeUnit = {}));
|
|
12617
|
-
var TIME_UNITS_TO_MS = (_a$
|
|
12618
|
-
_a$
|
|
12619
|
-
_a$
|
|
12620
|
-
_a$
|
|
12621
|
-
_a$
|
|
12622
|
-
var TIME_UNITS_LONG = (_b$
|
|
12623
|
-
_b$
|
|
12624
|
-
_b$
|
|
12625
|
-
_b$
|
|
12626
|
-
_b$
|
|
12627
|
-
var TIME_UNITS_SHORT = (_c$
|
|
12628
|
-
_c$
|
|
12629
|
-
_c$
|
|
12630
|
-
_c$
|
|
12631
|
-
_c$
|
|
12738
|
+
var TIME_UNITS_TO_MS = (_a$p = {},
|
|
12739
|
+
_a$p[TimeUnit.Second] = 1000,
|
|
12740
|
+
_a$p[TimeUnit.Minute] = 60000,
|
|
12741
|
+
_a$p[TimeUnit.Hour] = 3600000,
|
|
12742
|
+
_a$p);
|
|
12743
|
+
var TIME_UNITS_LONG = (_b$o = {},
|
|
12744
|
+
_b$o[TimeUnit.Hour] = $localize(templateObject_1$s || (templateObject_1$s = __makeTemplateObject([":hours unit (long):hours"], [":hours unit (long):hours"]))),
|
|
12745
|
+
_b$o[TimeUnit.Minute] = $localize(templateObject_2$k || (templateObject_2$k = __makeTemplateObject([":minutes unit (long):minutes"], [":minutes unit (long):minutes"]))),
|
|
12746
|
+
_b$o[TimeUnit.Second] = $localize(templateObject_3$e || (templateObject_3$e = __makeTemplateObject([":seconds unit (long):seconds"], [":seconds unit (long):seconds"]))),
|
|
12747
|
+
_b$o);
|
|
12748
|
+
var TIME_UNITS_SHORT = (_c$g = {},
|
|
12749
|
+
_c$g[TimeUnit.Hour] = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":hours unit (short):h"], [":hours unit (short):h"]))),
|
|
12750
|
+
_c$g[TimeUnit.Minute] = $localize(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject([":minutes unit (short):min"], [":minutes unit (short):min"]))),
|
|
12751
|
+
_c$g[TimeUnit.Second] = $localize(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject([":seconds unit (short):sec"], [":seconds unit (short):sec"]))),
|
|
12752
|
+
_c$g);
|
|
12632
12753
|
function getTimeUnitsRatio(fromUnit, toUnit) {
|
|
12633
12754
|
return TIME_UNITS_TO_MS[fromUnit] / TIME_UNITS_TO_MS[toUnit];
|
|
12634
12755
|
}
|
|
12635
|
-
var templateObject_1$
|
|
12756
|
+
var templateObject_1$s, templateObject_2$k, templateObject_3$e, templateObject_4$b, templateObject_5$7, templateObject_6$5;
|
|
12636
12757
|
|
|
12637
12758
|
/**
|
|
12638
12759
|
* As per Wolfi, this is a candidate for reworking into a general time interval selector implemented as a Web Component
|
|
@@ -12792,10 +12913,10 @@
|
|
|
12792
12913
|
var min = params.min, max = params.max, whole = params.whole;
|
|
12793
12914
|
var numberTypeText;
|
|
12794
12915
|
if (whole) {
|
|
12795
|
-
numberTypeText = $localize(templateObject_1$
|
|
12916
|
+
numberTypeText = $localize(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["a whole number"], ["a whole number"])));
|
|
12796
12917
|
}
|
|
12797
12918
|
else {
|
|
12798
|
-
numberTypeText = $localize(templateObject_2$
|
|
12919
|
+
numberTypeText = $localize(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["a number"], ["a number"])));
|
|
12799
12920
|
}
|
|
12800
12921
|
if (min != null && max != null) {
|
|
12801
12922
|
if (min === max) {
|
|
@@ -12858,7 +12979,7 @@
|
|
|
12858
12979
|
}], maxSeconds: [{
|
|
12859
12980
|
type: i0.Input
|
|
12860
12981
|
}] } });
|
|
12861
|
-
var templateObject_1$
|
|
12982
|
+
var templateObject_1$r, templateObject_2$j, templateObject_3$d, templateObject_4$a, templateObject_5$6, templateObject_6$4, templateObject_7$3;
|
|
12862
12983
|
|
|
12863
12984
|
var RefresherConfigurationComponent = /** @class */ (function () {
|
|
12864
12985
|
function RefresherConfigurationComponent(changeDetector, formBuilder, logger, refresherSettings, cd) {
|
|
@@ -12870,7 +12991,7 @@
|
|
|
12870
12991
|
this.cd = cd;
|
|
12871
12992
|
this.minSeconds = 1;
|
|
12872
12993
|
this.maxSeconds = 86400;
|
|
12873
|
-
this.overrideDefaultSettingsCaption = $localize(templateObject_1$
|
|
12994
|
+
this.overrideDefaultSettingsCaption = $localize(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["Custom refresh rate"], ["Custom refresh rate"])));
|
|
12874
12995
|
this.overrideDefaultSettings = true;
|
|
12875
12996
|
this.formReady = new i0.EventEmitter();
|
|
12876
12997
|
this.destroyed$ = new rxjs.Subject();
|
|
@@ -12925,7 +13046,7 @@
|
|
|
12925
13046
|
var _a, _b, _c;
|
|
12926
13047
|
var result = "";
|
|
12927
13048
|
if ((_a = this.form.get("enabled")) === null || _a === void 0 ? void 0 : _a.value) {
|
|
12928
|
-
result += $localize(templateObject_2$
|
|
13049
|
+
result += $localize(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["Enabled"], ["Enabled"])));
|
|
12929
13050
|
result += ", ";
|
|
12930
13051
|
if ((_b = this.form.get("overrideDefaultSettings")) === null || _b === void 0 ? void 0 : _b.value) {
|
|
12931
13052
|
result += this.getDurationLabel((_c = this.form.get("interval")) === null || _c === void 0 ? void 0 : _c.value);
|
|
@@ -13000,7 +13121,93 @@
|
|
|
13000
13121
|
type: i0.ViewChild,
|
|
13001
13122
|
args: [RefreshRateConfiguratorComponent]
|
|
13002
13123
|
}] } });
|
|
13003
|
-
var templateObject_1$
|
|
13124
|
+
var templateObject_1$q, templateObject_2$i, templateObject_3$c, templateObject_4$9;
|
|
13125
|
+
|
|
13126
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13127
|
+
var RiskScoreTileDescriptionConfigurationComponent = /** @class */ (function () {
|
|
13128
|
+
function RiskScoreTileDescriptionConfigurationComponent(changeDetector, formBuilder) {
|
|
13129
|
+
this.changeDetector = changeDetector;
|
|
13130
|
+
this.formBuilder = formBuilder;
|
|
13131
|
+
this.MAX_DESCRIPTION_LENGTH = 150;
|
|
13132
|
+
this.label = "";
|
|
13133
|
+
this.minValue = 0;
|
|
13134
|
+
this.maxValue = 100;
|
|
13135
|
+
this.description = "";
|
|
13136
|
+
this.useStaticLabel = false;
|
|
13137
|
+
this.staticLabel = "";
|
|
13138
|
+
this.formReady = new i0.EventEmitter();
|
|
13139
|
+
}
|
|
13140
|
+
RiskScoreTileDescriptionConfigurationComponent.prototype.ngOnInit = function () {
|
|
13141
|
+
this.form = this.formBuilder.group({
|
|
13142
|
+
label: [this.label, [i1$1.Validators.required]],
|
|
13143
|
+
minValue: [this.minValue, [i1$1.Validators.required]],
|
|
13144
|
+
maxValue: [this.maxValue, [i1$1.Validators.required]],
|
|
13145
|
+
description: [
|
|
13146
|
+
this.description,
|
|
13147
|
+
[i1$1.Validators.maxLength(this.MAX_DESCRIPTION_LENGTH)],
|
|
13148
|
+
],
|
|
13149
|
+
useStaticLabel: [this.useStaticLabel, [i1$1.Validators.required]],
|
|
13150
|
+
staticLabel: [this.staticLabel],
|
|
13151
|
+
});
|
|
13152
|
+
this.formReady.emit(this.form);
|
|
13153
|
+
};
|
|
13154
|
+
RiskScoreTileDescriptionConfigurationComponent.prototype.ngOnChanges = function (changes) {
|
|
13155
|
+
var _a, _b, _c, _d, _e, _f;
|
|
13156
|
+
if (changes.label) {
|
|
13157
|
+
(_a = this.form) === null || _a === void 0 ? void 0 : _a.patchValue({ label: changes.label.currentValue });
|
|
13158
|
+
}
|
|
13159
|
+
if (changes.minValue) {
|
|
13160
|
+
(_b = this.form) === null || _b === void 0 ? void 0 : _b.patchValue({ minValue: changes.minValue.currentValue });
|
|
13161
|
+
}
|
|
13162
|
+
if (changes.maxValue) {
|
|
13163
|
+
(_c = this.form) === null || _c === void 0 ? void 0 : _c.patchValue({ maxValue: changes.maxValue.currentValue });
|
|
13164
|
+
}
|
|
13165
|
+
if (changes.description) {
|
|
13166
|
+
(_d = this.form) === null || _d === void 0 ? void 0 : _d.patchValue({
|
|
13167
|
+
description: changes.description.currentValue,
|
|
13168
|
+
});
|
|
13169
|
+
}
|
|
13170
|
+
if (changes.useStaticLabel) {
|
|
13171
|
+
(_e = this.form) === null || _e === void 0 ? void 0 : _e.patchValue({
|
|
13172
|
+
useStaticLabel: changes.useStaticLabel.currentValue,
|
|
13173
|
+
});
|
|
13174
|
+
}
|
|
13175
|
+
if (changes.staticLabel) {
|
|
13176
|
+
(_f = this.form) === null || _f === void 0 ? void 0 : _f.patchValue({
|
|
13177
|
+
staticLabel: changes.staticLabel.currentValue,
|
|
13178
|
+
});
|
|
13179
|
+
}
|
|
13180
|
+
};
|
|
13181
|
+
return RiskScoreTileDescriptionConfigurationComponent;
|
|
13182
|
+
}());
|
|
13183
|
+
RiskScoreTileDescriptionConfigurationComponent.lateLoadKey = "RiskScoreTileDescriptionConfigurationComponent";
|
|
13184
|
+
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTileDescriptionConfigurationComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$2.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13185
|
+
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RiskScoreTileDescriptionConfigurationComponent, selector: "nui-risk-score-tile-description-configuration", inputs: { componentId: "componentId", label: "label", minValue: "minValue", maxValue: "maxValue", description: "description", useStaticLabel: "useStaticLabel", staticLabel: "staticLabel" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0__namespace, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe: 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], components: [{ type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i3__namespace.TextboxComponent, selector: "nui-textbox", inputs: ["autocomplete", "disabled", "hint", "placeholder", "readonly", "rows", "type", "isInErrorState", "ariaLabel", "value", "caption", "info", "customBoxWidth", "name", "isBusy"], outputs: ["textChange", "blurred"] }, { type: i3__namespace.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "disabled", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "customBoxWidth", "name", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { type: i3__namespace.SwitchComponent, selector: "nui-switch", inputs: ["ariaLabel", "value", "disabled"], outputs: ["valueChange"] }, { type: i3__namespace.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], directives: [{ type: i1__namespace$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "async": i4__namespace.AsyncPipe, "nuiWidgetEditorAccordionFormState": WidgetEditorAccordionFormStatePipe, "nuiFormHeaderIconPipe": FormHeaderIconPipePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
13186
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
13187
|
+
type: i0.Component,
|
|
13188
|
+
args: [{
|
|
13189
|
+
selector: "nui-risk-score-tile-description-configuration",
|
|
13190
|
+
templateUrl: "./risk-score-tile-description-configuration.component.html",
|
|
13191
|
+
styleUrls: ["./risk-score-tile-description-configuration.component.less"],
|
|
13192
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
13193
|
+
}]
|
|
13194
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$2.FormBuilder }]; }, propDecorators: { componentId: [{
|
|
13195
|
+
type: i0.Input
|
|
13196
|
+
}], label: [{
|
|
13197
|
+
type: i0.Input
|
|
13198
|
+
}], minValue: [{
|
|
13199
|
+
type: i0.Input
|
|
13200
|
+
}], maxValue: [{
|
|
13201
|
+
type: i0.Input
|
|
13202
|
+
}], description: [{
|
|
13203
|
+
type: i0.Input
|
|
13204
|
+
}], useStaticLabel: [{
|
|
13205
|
+
type: i0.Input
|
|
13206
|
+
}], staticLabel: [{
|
|
13207
|
+
type: i0.Input
|
|
13208
|
+
}], formReady: [{
|
|
13209
|
+
type: i0.Output
|
|
13210
|
+
}] } });
|
|
13004
13211
|
|
|
13005
13212
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13006
13213
|
var thresholdsValidator = function (form) {
|
|
@@ -13048,11 +13255,11 @@
|
|
|
13048
13255
|
this.thresholdOptions = [
|
|
13049
13256
|
{
|
|
13050
13257
|
value: false,
|
|
13051
|
-
displayValue: $localize(templateObject_1$
|
|
13258
|
+
displayValue: $localize(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["Never show critical or warning states for this KPI"], ["Never show critical or warning states for this KPI"]))),
|
|
13052
13259
|
},
|
|
13053
13260
|
{
|
|
13054
13261
|
value: true,
|
|
13055
|
-
displayValue: $localize(templateObject_2$
|
|
13262
|
+
displayValue: $localize(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["Set custom thresholds for this widget"], ["Set custom thresholds for this widget"]))),
|
|
13056
13263
|
},
|
|
13057
13264
|
];
|
|
13058
13265
|
this.destroyed$ = new rxjs.Subject();
|
|
@@ -13162,7 +13369,7 @@
|
|
|
13162
13369
|
}], formReady: [{
|
|
13163
13370
|
type: i0.Output
|
|
13164
13371
|
}] } });
|
|
13165
|
-
var templateObject_1$
|
|
13372
|
+
var templateObject_1$p, templateObject_2$h, templateObject_3$b, templateObject_4$8;
|
|
13166
13373
|
|
|
13167
13374
|
var TimeseriesMetadataConfigurationComponent = /** @class */ (function () {
|
|
13168
13375
|
function TimeseriesMetadataConfigurationComponent(changeDetector, configuratorHeading, formBuilder, eventBus) {
|
|
@@ -13173,9 +13380,9 @@
|
|
|
13173
13380
|
this.legendPlacements = [];
|
|
13174
13381
|
this.timeSpans = [];
|
|
13175
13382
|
this.availableChartTypes = [
|
|
13176
|
-
{ label: $localize(templateObject_1$
|
|
13383
|
+
{ label: $localize(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["Line"], ["Line"]))), value: exports.TimeseriesChartPreset.Line },
|
|
13177
13384
|
{
|
|
13178
|
-
label: $localize(templateObject_2$
|
|
13385
|
+
label: $localize(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["Stacked area"], ["Stacked area"]))),
|
|
13179
13386
|
value: exports.TimeseriesChartPreset.StackedArea,
|
|
13180
13387
|
},
|
|
13181
13388
|
{
|
|
@@ -13279,7 +13486,7 @@
|
|
|
13279
13486
|
}], formReady: [{
|
|
13280
13487
|
type: i0.Output
|
|
13281
13488
|
}] } });
|
|
13282
|
-
var templateObject_1$
|
|
13489
|
+
var templateObject_1$o, templateObject_2$g, templateObject_3$a, templateObject_4$7, templateObject_5$5, templateObject_6$3, templateObject_7$2, templateObject_8$1;
|
|
13283
13490
|
|
|
13284
13491
|
var TitleAndDescriptionConfigurationComponent = /** @class */ (function () {
|
|
13285
13492
|
function TitleAndDescriptionConfigurationComponent(changeDetector, formBuilder, logger) {
|
|
@@ -13318,8 +13525,8 @@
|
|
|
13318
13525
|
}
|
|
13319
13526
|
};
|
|
13320
13527
|
TitleAndDescriptionConfigurationComponent.prototype.getSecondaryText = function () {
|
|
13321
|
-
var forTitle = this.form.controls["title"].value || $localize(templateObject_1$
|
|
13322
|
-
var forSubtitle = this.form.controls["subtitle"].value || $localize(templateObject_2$
|
|
13528
|
+
var forTitle = this.form.controls["title"].value || $localize(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["No title"], ["No title"])));
|
|
13529
|
+
var forSubtitle = this.form.controls["subtitle"].value || $localize(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["no subtitle"], ["no subtitle"])));
|
|
13323
13530
|
return forTitle + ", " + forSubtitle;
|
|
13324
13531
|
};
|
|
13325
13532
|
return TitleAndDescriptionConfigurationComponent;
|
|
@@ -13348,7 +13555,7 @@
|
|
|
13348
13555
|
}], formReady: [{
|
|
13349
13556
|
type: i0.Output
|
|
13350
13557
|
}] } });
|
|
13351
|
-
var templateObject_1$
|
|
13558
|
+
var templateObject_1$n, templateObject_2$f;
|
|
13352
13559
|
|
|
13353
13560
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13354
13561
|
var EntityFormattingConfigurationComponent = /** @class */ (function () {
|
|
@@ -13484,7 +13691,7 @@
|
|
|
13484
13691
|
.map(function (control, index) { return (index === 0 ? "By" : "then") + " " + control.value; })
|
|
13485
13692
|
.join(", ");
|
|
13486
13693
|
return ((_a = this.getGroupByControl) === null || _a === void 0 ? void 0 : _a.value.length) === 0
|
|
13487
|
-
? $localize(templateObject_1$
|
|
13694
|
+
? $localize(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["No groups"], ["No groups"]))) : $localize(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["", ""], ["", ""])), subtitle);
|
|
13488
13695
|
};
|
|
13489
13696
|
GroupingConfigurationComponent.prototype.ngOnDestroy = function () {
|
|
13490
13697
|
this.destroy$.next();
|
|
@@ -13548,7 +13755,7 @@
|
|
|
13548
13755
|
}], formReady: [{
|
|
13549
13756
|
type: i0.Output
|
|
13550
13757
|
}] } });
|
|
13551
|
-
var templateObject_1$
|
|
13758
|
+
var templateObject_1$m, templateObject_2$e;
|
|
13552
13759
|
|
|
13553
13760
|
/**
|
|
13554
13761
|
* This component and its related form represent a collection of KPI tile configuration components
|
|
@@ -13821,13 +14028,13 @@
|
|
|
13821
14028
|
type: i0.Output
|
|
13822
14029
|
}] } });
|
|
13823
14030
|
|
|
13824
|
-
var _e$
|
|
13825
|
-
var proportionalWidgetChartTypesNamesMap = (_e$
|
|
13826
|
-
_e$
|
|
13827
|
-
_e$
|
|
13828
|
-
_e$
|
|
13829
|
-
_e$
|
|
13830
|
-
_e$
|
|
14031
|
+
var _e$b;
|
|
14032
|
+
var proportionalWidgetChartTypesNamesMap = (_e$b = {},
|
|
14033
|
+
_e$b[exports.ProportionalWidgetChartTypes.DonutChart] = $localize(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["Donut"], ["Donut"]))),
|
|
14034
|
+
_e$b[exports.ProportionalWidgetChartTypes.PieChart] = $localize(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["Pie"], ["Pie"]))),
|
|
14035
|
+
_e$b[exports.ProportionalWidgetChartTypes.VerticalBarChart] = $localize(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["Vertical Bar"], ["Vertical Bar"]))),
|
|
14036
|
+
_e$b[exports.ProportionalWidgetChartTypes.HorizontalBarChart] = $localize(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["Horizontal Bar"], ["Horizontal Bar"]))),
|
|
14037
|
+
_e$b);
|
|
13831
14038
|
var ProportionalChartOptionsEditorComponent = /** @class */ (function () {
|
|
13832
14039
|
function ProportionalChartOptionsEditorComponent(changeDetector, configuratorHeading, formBuilder) {
|
|
13833
14040
|
this.changeDetector = changeDetector;
|
|
@@ -13965,7 +14172,7 @@
|
|
|
13965
14172
|
}], formReady: [{
|
|
13966
14173
|
type: i0.Output
|
|
13967
14174
|
}] } });
|
|
13968
|
-
var templateObject_1$
|
|
14175
|
+
var templateObject_1$l, templateObject_2$d, templateObject_3$9, templateObject_4$6, templateObject_5$4;
|
|
13969
14176
|
|
|
13970
14177
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13971
14178
|
var DonutContentConfigurationComponent = /** @class */ (function () {
|
|
@@ -14100,48 +14307,114 @@
|
|
|
14100
14307
|
type: i0.Output
|
|
14101
14308
|
}] } });
|
|
14102
14309
|
|
|
14103
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14104
|
-
//
|
|
14105
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14106
|
-
// of this software and associated documentation files (the "Software"), to
|
|
14107
|
-
// deal in the Software without restriction, including without limitation the
|
|
14108
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
14109
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
14110
|
-
// furnished to do so, subject to the following conditions:
|
|
14111
|
-
//
|
|
14112
|
-
// The above copyright notice and this permission notice shall be included in
|
|
14113
|
-
// all copies or substantial portions of the Software.
|
|
14114
|
-
//
|
|
14115
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14116
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14117
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
14118
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14119
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
14120
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
14121
|
-
// THE SOFTWARE.
|
|
14122
14310
|
/**
|
|
14123
|
-
* This
|
|
14124
|
-
* We replace the parent formControl method with our own implementation that also calls the original function
|
|
14125
|
-
* @param formControl
|
|
14126
|
-
* @param callback Run this callback when the `formControl.markAsTouched` is run
|
|
14311
|
+
* This component and its related form represent a collection of KPI tile configuration components
|
|
14127
14312
|
*/
|
|
14128
|
-
function
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
// @ts-ignore
|
|
14132
|
-
// eslint-disable-next-line prefer-rest-params
|
|
14133
|
-
origFunc.apply(formControl, arguments);
|
|
14134
|
-
callback();
|
|
14135
|
-
};
|
|
14136
|
-
}
|
|
14137
|
-
|
|
14138
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14139
|
-
var DescriptionConfigurationV2Component = /** @class */ (function () {
|
|
14140
|
-
function DescriptionConfigurationV2Component(formBuilder, changeDetector) {
|
|
14141
|
-
var _this = this;
|
|
14142
|
-
this.formBuilder = formBuilder;
|
|
14313
|
+
var RiskScoreTilesConfigurationComponent = /** @class */ (function () {
|
|
14314
|
+
function RiskScoreTilesConfigurationComponent(pizzagnaService, changeDetector, formBuilder, eventBus) {
|
|
14315
|
+
this.pizzagnaService = pizzagnaService;
|
|
14143
14316
|
this.changeDetector = changeDetector;
|
|
14144
|
-
this.
|
|
14317
|
+
this.formBuilder = formBuilder;
|
|
14318
|
+
this.eventBus = eventBus;
|
|
14319
|
+
this.tiles = [];
|
|
14320
|
+
this.formReady = new i0.EventEmitter();
|
|
14321
|
+
}
|
|
14322
|
+
RiskScoreTilesConfigurationComponent.prototype.ngOnChanges = function (changes) { };
|
|
14323
|
+
RiskScoreTilesConfigurationComponent.prototype.onFormReady = function (form) {
|
|
14324
|
+
this.form = this.formBuilder.group({
|
|
14325
|
+
tiles: form,
|
|
14326
|
+
});
|
|
14327
|
+
this.emptyItems$ = this.form.valueChanges.pipe(operators.map(function (result) { return result.tiles.length === 0; }));
|
|
14328
|
+
this.formReady.emit(this.form);
|
|
14329
|
+
};
|
|
14330
|
+
RiskScoreTilesConfigurationComponent.prototype.onItemsChange = function (tiles) {
|
|
14331
|
+
var parentPath = "tiles";
|
|
14332
|
+
var componentIds = tiles.map(function (tile) { return tile.id; });
|
|
14333
|
+
this.pizzagnaService.createComponentsFromTemplate(parentPath, componentIds);
|
|
14334
|
+
var property = {
|
|
14335
|
+
componentId: this.componentId,
|
|
14336
|
+
pizzagnaKey: exports.PizzagnaLayer.Data,
|
|
14337
|
+
propertyPath: ["tiles"],
|
|
14338
|
+
};
|
|
14339
|
+
this.pizzagnaService.setProperty(property, tiles);
|
|
14340
|
+
};
|
|
14341
|
+
RiskScoreTilesConfigurationComponent.prototype.addTile = function () {
|
|
14342
|
+
this.onItemsChange(__spreadArray(__spreadArray([], __read(this.tiles)), [
|
|
14343
|
+
{
|
|
14344
|
+
id: i3.uuid("riskScore"),
|
|
14345
|
+
componentType: RiskScoreTileComponent.lateLoadKey,
|
|
14346
|
+
},
|
|
14347
|
+
]));
|
|
14348
|
+
};
|
|
14349
|
+
return RiskScoreTilesConfigurationComponent;
|
|
14350
|
+
}());
|
|
14351
|
+
RiskScoreTilesConfigurationComponent.lateLoadKey = "RiskScoreTilesConfigurationComponent";
|
|
14352
|
+
/** @nocollapse */ RiskScoreTilesConfigurationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTilesConfigurationComponent, deps: [{ token: PizzagnaService }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$2.FormBuilder }, { token: PIZZAGNA_EVENT_BUS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
14353
|
+
/** @nocollapse */ RiskScoreTilesConfigurationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RiskScoreTilesConfigurationComponent, selector: "nui-risk-score-tiles-configuration-component", inputs: { componentId: "componentId", tiles: "tiles", nodes: "nodes" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0__namespace, template: "<nui-items-dynamic\n [items]=\"tiles\"\n [nodes]=\"nodes\"\n (itemsChange)=\"onItemsChange($event)\"\n (formReady)=\"onFormReady($event)\"\n></nui-items-dynamic>\n\n<div class=\"pl-4 pr-4\" *ngIf=\"(emptyItems$ | async) && form.touched\">\n <nui-message type=\"critical\" [allowDismiss]=\"false\" i18n>\n <b>At least one value must be added.</b>\n </nui-message>\n</div>\n\n<button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"kpi-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addTile()\"\n i18n\n>\n Add new value\n</button>\n", components: [{ type: ItemsDynamicComponent, selector: "nui-items-dynamic", inputs: ["items", "moveButtons", "nodes", "headerPrefix"], outputs: ["formReady", "itemsChange"] }, { type: i3__namespace.MessageComponent, selector: "nui-message", inputs: ["allowDismiss", "type", "manualControl"], outputs: ["dismiss"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
14354
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RiskScoreTilesConfigurationComponent, decorators: [{
|
|
14355
|
+
type: i0.Component,
|
|
14356
|
+
args: [{
|
|
14357
|
+
selector: "nui-risk-score-tiles-configuration-component",
|
|
14358
|
+
templateUrl: "./risk-score-tiles-configuration.component.html",
|
|
14359
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
14360
|
+
}]
|
|
14361
|
+
}], ctorParameters: function () {
|
|
14362
|
+
return [{ type: PizzagnaService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$2.FormBuilder }, { type: i3__namespace.EventBus, decorators: [{
|
|
14363
|
+
type: i0.Inject,
|
|
14364
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
14365
|
+
}] }];
|
|
14366
|
+
}, propDecorators: { componentId: [{
|
|
14367
|
+
type: i0.Input
|
|
14368
|
+
}], tiles: [{
|
|
14369
|
+
type: i0.Input
|
|
14370
|
+
}], nodes: [{
|
|
14371
|
+
type: i0.Input
|
|
14372
|
+
}], formReady: [{
|
|
14373
|
+
type: i0.Output
|
|
14374
|
+
}] } });
|
|
14375
|
+
|
|
14376
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14377
|
+
//
|
|
14378
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14379
|
+
// of this software and associated documentation files (the "Software"), to
|
|
14380
|
+
// deal in the Software without restriction, including without limitation the
|
|
14381
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
14382
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
14383
|
+
// furnished to do so, subject to the following conditions:
|
|
14384
|
+
//
|
|
14385
|
+
// The above copyright notice and this permission notice shall be included in
|
|
14386
|
+
// all copies or substantial portions of the Software.
|
|
14387
|
+
//
|
|
14388
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14389
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14390
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
14391
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14392
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
14393
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
14394
|
+
// THE SOFTWARE.
|
|
14395
|
+
/**
|
|
14396
|
+
* This is the only way to be notified of the parent form control being "touched"
|
|
14397
|
+
* We replace the parent formControl method with our own implementation that also calls the original function
|
|
14398
|
+
* @param formControl
|
|
14399
|
+
* @param callback Run this callback when the `formControl.markAsTouched` is run
|
|
14400
|
+
*/
|
|
14401
|
+
function onMarkAsTouched(formControl, callback) {
|
|
14402
|
+
var origFunc = formControl.markAsTouched;
|
|
14403
|
+
formControl.markAsTouched = function () {
|
|
14404
|
+
// @ts-ignore
|
|
14405
|
+
// eslint-disable-next-line prefer-rest-params
|
|
14406
|
+
origFunc.apply(formControl, arguments);
|
|
14407
|
+
callback();
|
|
14408
|
+
};
|
|
14409
|
+
}
|
|
14410
|
+
|
|
14411
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14412
|
+
var DescriptionConfigurationV2Component = /** @class */ (function () {
|
|
14413
|
+
function DescriptionConfigurationV2Component(formBuilder, changeDetector) {
|
|
14414
|
+
var _this = this;
|
|
14415
|
+
this.formBuilder = formBuilder;
|
|
14416
|
+
this.changeDetector = changeDetector;
|
|
14417
|
+
this.isWidthMessageDisplayed = false;
|
|
14145
14418
|
this.destroy$ = new rxjs.Subject();
|
|
14146
14419
|
this.form = this.formBuilder.group({
|
|
14147
14420
|
label: ["", [i1$1.Validators.required]],
|
|
@@ -14240,7 +14513,7 @@
|
|
|
14240
14513
|
var DEFAULT_TABLE_FORMATTERS = [
|
|
14241
14514
|
{
|
|
14242
14515
|
componentType: RawFormatterComponent.lateLoadKey,
|
|
14243
|
-
label: $localize(templateObject_1$
|
|
14516
|
+
label: $localize(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["No Formatter"], ["No Formatter"]))),
|
|
14244
14517
|
dataTypes: {
|
|
14245
14518
|
// @ts-ignore
|
|
14246
14519
|
value: null,
|
|
@@ -14248,7 +14521,7 @@
|
|
|
14248
14521
|
},
|
|
14249
14522
|
{
|
|
14250
14523
|
componentType: LinkFormatterComponent.lateLoadKey,
|
|
14251
|
-
label: $localize(templateObject_2$
|
|
14524
|
+
label: $localize(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["Link"], ["Link"]))),
|
|
14252
14525
|
configurationComponent: "LinkConfiguratorComponent",
|
|
14253
14526
|
dataTypes: {
|
|
14254
14527
|
value: "label",
|
|
@@ -14263,7 +14536,7 @@
|
|
|
14263
14536
|
},
|
|
14264
14537
|
},
|
|
14265
14538
|
];
|
|
14266
|
-
var templateObject_1$
|
|
14539
|
+
var templateObject_1$k, templateObject_2$c, templateObject_3$8;
|
|
14267
14540
|
|
|
14268
14541
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14269
14542
|
var PresentationConfigurationV2Component = /** @class */ (function () {
|
|
@@ -14672,7 +14945,7 @@
|
|
|
14672
14945
|
// this can't be "dataFields" because that's an already used name for a property in pizzagna
|
|
14673
14946
|
this.dataSourceFields = [];
|
|
14674
14947
|
this.isWidthMessageDisplayed = false;
|
|
14675
|
-
this.columnLabel = $localize(templateObject_1$
|
|
14948
|
+
this.columnLabel = $localize(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["Column"], ["Column"])));
|
|
14676
14949
|
this.onDestroy$ = new rxjs.Subject();
|
|
14677
14950
|
this.form = this.formBuilder.group({
|
|
14678
14951
|
columns: this.formBuilder.array([]),
|
|
@@ -14806,7 +15079,7 @@
|
|
|
14806
15079
|
};
|
|
14807
15080
|
if (confirmation) {
|
|
14808
15081
|
var dialog = this.dialogService.confirm({
|
|
14809
|
-
title: $localize(templateObject_2$
|
|
15082
|
+
title: $localize(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["Are you sure?"], ["Are you sure?"]))),
|
|
14810
15083
|
message: $localize(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["Resetting the columns will revert them to their default configurations. Do you wish to proceed?"], ["Resetting the columns will revert them to their default configurations. Do you wish to proceed?"]))),
|
|
14811
15084
|
confirmText: $localize(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["Reset Columns"], ["Reset Columns"]))),
|
|
14812
15085
|
});
|
|
@@ -14915,7 +15188,7 @@
|
|
|
14915
15188
|
}], formReady: [{
|
|
14916
15189
|
type: i0.Output
|
|
14917
15190
|
}] } });
|
|
14918
|
-
var templateObject_1$
|
|
15191
|
+
var templateObject_1$j, templateObject_2$b, templateObject_3$7, templateObject_4$5;
|
|
14919
15192
|
|
|
14920
15193
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14921
15194
|
var DescriptionConfigurationComponent = /** @class */ (function () {
|
|
@@ -15564,8 +15837,8 @@
|
|
|
15564
15837
|
};
|
|
15565
15838
|
if (confirmation) {
|
|
15566
15839
|
var dialog = this.dialogService.confirm({
|
|
15567
|
-
title: $localize(templateObject_1$
|
|
15568
|
-
message: $localize(templateObject_2$
|
|
15840
|
+
title: $localize(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["Are you sure?"], ["Are you sure?"]))),
|
|
15841
|
+
message: $localize(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["Resetting the columns will revert them to their default configurations. Do you wish to proceed?"], ["Resetting the columns will revert them to their default configurations. Do you wish to proceed?"]))),
|
|
15569
15842
|
confirmText: $localize(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["Reset Columns"], ["Reset Columns"]))),
|
|
15570
15843
|
});
|
|
15571
15844
|
dialog.result.then(function (result) {
|
|
@@ -15630,7 +15903,7 @@
|
|
|
15630
15903
|
}], formReady: [{
|
|
15631
15904
|
type: i0.Output
|
|
15632
15905
|
}] } });
|
|
15633
|
-
var templateObject_1$
|
|
15906
|
+
var templateObject_1$i, templateObject_2$a, templateObject_3$6;
|
|
15634
15907
|
|
|
15635
15908
|
var TableFiltersEditorComponent = /** @class */ (function () {
|
|
15636
15909
|
function TableFiltersEditorComponent(formBuilder, configuratorHeading, changeDetector) {
|
|
@@ -15690,14 +15963,14 @@
|
|
|
15690
15963
|
if (val.sorterConfiguration) {
|
|
15691
15964
|
var sortedColumn = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find(function (col) { return col.id === val.sorterConfiguration.sortBy; });
|
|
15692
15965
|
if (!sortedColumn) {
|
|
15693
|
-
this.selectedSortByValue = $localize(templateObject_1$
|
|
15966
|
+
this.selectedSortByValue = $localize(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["No sorting"], ["No sorting"])));
|
|
15694
15967
|
this.selectedSortOrderValue = "";
|
|
15695
15968
|
(_b = this.form
|
|
15696
15969
|
.get("sorterConfiguration")) === null || _b === void 0 ? void 0 : _b.patchValue({ sortBy: "", descendantSorting: "" }, { emitEvent: false });
|
|
15697
15970
|
return;
|
|
15698
15971
|
}
|
|
15699
15972
|
var sortOrder = val.sorterConfiguration.descendantSorting
|
|
15700
|
-
? $localize(templateObject_2$
|
|
15973
|
+
? $localize(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["Descending"], ["Descending"]))) : $localize(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["Ascending"], ["Ascending"])));
|
|
15701
15974
|
this.selectedSortByValue = sortedColumn.label;
|
|
15702
15975
|
this.selectedSortOrderValue = ", " + sortOrder;
|
|
15703
15976
|
this.changeDetector.detectChanges();
|
|
@@ -15727,7 +16000,7 @@
|
|
|
15727
16000
|
}], formReady: [{
|
|
15728
16001
|
type: i0.Output
|
|
15729
16002
|
}] } });
|
|
15730
|
-
var templateObject_1$
|
|
16003
|
+
var templateObject_1$h, templateObject_2$9, templateObject_3$5;
|
|
15731
16004
|
|
|
15732
16005
|
var TimeseriesSeriesCollectionConfigurationComponent = /** @class */ (function () {
|
|
15733
16006
|
function TimeseriesSeriesCollectionConfigurationComponent(pizzagnaService, changeDetector, eventBus) {
|
|
@@ -16159,6 +16432,7 @@
|
|
|
16159
16432
|
DataSourceConfigurationV2Component,
|
|
16160
16433
|
DataSourceErrorComponent,
|
|
16161
16434
|
KpiTilesConfigurationComponent,
|
|
16435
|
+
RiskScoreTilesConfigurationComponent,
|
|
16162
16436
|
EmbeddedContentConfigurationComponent,
|
|
16163
16437
|
InfoMessageConfigurationComponent,
|
|
16164
16438
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -16184,6 +16458,7 @@
|
|
|
16184
16458
|
RawFormatterComponent,
|
|
16185
16459
|
PercentageFormatterComponent,
|
|
16186
16460
|
KpiDescriptionConfigurationComponent,
|
|
16461
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
16187
16462
|
ThresholdsConfigurationComponent,
|
|
16188
16463
|
TitleAndDescriptionConfigurationComponent,
|
|
16189
16464
|
WidgetConfiguratorSectionComponent,
|
|
@@ -16245,6 +16520,7 @@
|
|
|
16245
16520
|
DataSourceConfigurationV2Component,
|
|
16246
16521
|
DataSourceErrorComponent,
|
|
16247
16522
|
KpiTilesConfigurationComponent,
|
|
16523
|
+
RiskScoreTilesConfigurationComponent,
|
|
16248
16524
|
EmbeddedContentConfigurationComponent,
|
|
16249
16525
|
InfoMessageConfigurationComponent,
|
|
16250
16526
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -16270,6 +16546,7 @@
|
|
|
16270
16546
|
RawFormatterComponent,
|
|
16271
16547
|
PercentageFormatterComponent,
|
|
16272
16548
|
KpiDescriptionConfigurationComponent,
|
|
16549
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
16273
16550
|
ThresholdsConfigurationComponent,
|
|
16274
16551
|
TitleAndDescriptionConfigurationComponent,
|
|
16275
16552
|
WidgetConfiguratorSectionComponent,
|
|
@@ -16336,6 +16613,7 @@
|
|
|
16336
16613
|
DataSourceConfigurationV2Component,
|
|
16337
16614
|
DataSourceErrorComponent,
|
|
16338
16615
|
KpiTilesConfigurationComponent,
|
|
16616
|
+
RiskScoreTilesConfigurationComponent,
|
|
16339
16617
|
EmbeddedContentConfigurationComponent,
|
|
16340
16618
|
InfoMessageConfigurationComponent,
|
|
16341
16619
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -16361,6 +16639,7 @@
|
|
|
16361
16639
|
RawFormatterComponent,
|
|
16362
16640
|
PercentageFormatterComponent,
|
|
16363
16641
|
KpiDescriptionConfigurationComponent,
|
|
16642
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
16364
16643
|
ThresholdsConfigurationComponent,
|
|
16365
16644
|
TitleAndDescriptionConfigurationComponent,
|
|
16366
16645
|
WidgetConfiguratorSectionComponent,
|
|
@@ -16590,11 +16869,11 @@
|
|
|
16590
16869
|
args: ["nuiWidgetEditor"]
|
|
16591
16870
|
}] } });
|
|
16592
16871
|
|
|
16593
|
-
var _a$
|
|
16872
|
+
var _a$o, _b$n, _c$f, _d$c, _e$a;
|
|
16594
16873
|
/* eslint-enable max-len */
|
|
16595
|
-
var drilldownConfigurator = (_a$
|
|
16596
|
-
_a$
|
|
16597
|
-
_b$
|
|
16874
|
+
var drilldownConfigurator = (_a$o = {},
|
|
16875
|
+
_a$o[exports.PizzagnaLayer.Structure] = (_b$n = {},
|
|
16876
|
+
_b$n[DEFAULT_PIZZAGNA_ROOT] = {
|
|
16598
16877
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
16599
16878
|
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
16600
16879
|
componentType: FormStackComponent.lateLoadKey,
|
|
@@ -16605,16 +16884,16 @@
|
|
|
16605
16884
|
},
|
|
16606
16885
|
},
|
|
16607
16886
|
// /presentation
|
|
16608
|
-
_b$
|
|
16887
|
+
_b$n.presentation = {
|
|
16609
16888
|
id: "presentation",
|
|
16610
16889
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
16611
16890
|
properties: {
|
|
16612
|
-
headerText: $localize(templateObject_1$
|
|
16891
|
+
headerText: $localize(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["Presentation"], ["Presentation"]))),
|
|
16613
16892
|
nodes: ["titleAndDescription"],
|
|
16614
16893
|
},
|
|
16615
16894
|
},
|
|
16616
16895
|
// /presentation/titleAndDescription
|
|
16617
|
-
_b$
|
|
16896
|
+
_b$n.titleAndDescription = {
|
|
16618
16897
|
id: "titleAndDescription",
|
|
16619
16898
|
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
16620
16899
|
providers: {
|
|
@@ -16624,24 +16903,24 @@
|
|
|
16624
16903
|
},
|
|
16625
16904
|
},
|
|
16626
16905
|
// /dataAndCalculations
|
|
16627
|
-
_b$
|
|
16906
|
+
_b$n.dataAndCalculations = {
|
|
16628
16907
|
id: "dataAndCalculations",
|
|
16629
16908
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
16630
16909
|
properties: {
|
|
16631
|
-
headerText: $localize(templateObject_2$
|
|
16910
|
+
headerText: $localize(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["Data and calculations"], ["Data and calculations"]))),
|
|
16632
16911
|
nodes: ["dataSource", "grouping", "entityFormatting"],
|
|
16633
16912
|
},
|
|
16634
16913
|
},
|
|
16635
|
-
_b$
|
|
16914
|
+
_b$n.dataSource = {
|
|
16636
16915
|
id: "dataSource",
|
|
16637
16916
|
componentType: DataSourceConfigurationComponent.lateLoadKey,
|
|
16638
16917
|
properties: {
|
|
16639
16918
|
// for the DataSourceConfigurationComponent, this defines the list of data sources to pick from
|
|
16640
16919
|
dataSourceProviders: [],
|
|
16641
16920
|
},
|
|
16642
|
-
providers: (_c$
|
|
16921
|
+
providers: (_c$f = {},
|
|
16643
16922
|
// converter transforms the data source metadata between the widget and the form
|
|
16644
|
-
_c$
|
|
16923
|
+
_c$f[exports.WellKnownProviders.Converter] = {
|
|
16645
16924
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
16646
16925
|
properties: {
|
|
16647
16926
|
formParts: [
|
|
@@ -16653,10 +16932,10 @@
|
|
|
16653
16932
|
],
|
|
16654
16933
|
},
|
|
16655
16934
|
},
|
|
16656
|
-
_c$
|
|
16935
|
+
_c$f),
|
|
16657
16936
|
},
|
|
16658
16937
|
// /dataAndCalculations/grouping
|
|
16659
|
-
_b$
|
|
16938
|
+
_b$n.grouping = {
|
|
16660
16939
|
id: "grouping",
|
|
16661
16940
|
componentType: GroupingConfigurationComponent.lateLoadKey,
|
|
16662
16941
|
properties: {
|
|
@@ -16665,8 +16944,8 @@
|
|
|
16665
16944
|
// grouping for the list widget
|
|
16666
16945
|
groupBy: [],
|
|
16667
16946
|
},
|
|
16668
|
-
providers: (_d$
|
|
16669
|
-
_d$
|
|
16947
|
+
providers: (_d$c = {},
|
|
16948
|
+
_d$c[exports.WellKnownProviders.Converter] = {
|
|
16670
16949
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
16671
16950
|
properties: {
|
|
16672
16951
|
formParts: [
|
|
@@ -16677,10 +16956,10 @@
|
|
|
16677
16956
|
],
|
|
16678
16957
|
},
|
|
16679
16958
|
},
|
|
16680
|
-
_d$
|
|
16959
|
+
_d$c),
|
|
16681
16960
|
},
|
|
16682
16961
|
// /dataAndCalculations/entityFormatting
|
|
16683
|
-
_b$
|
|
16962
|
+
_b$n.entityFormatting = {
|
|
16684
16963
|
id: "entityFormatting",
|
|
16685
16964
|
componentType: EntityFormattingConfigurationComponent.lateLoadKey,
|
|
16686
16965
|
properties: {
|
|
@@ -16694,8 +16973,8 @@
|
|
|
16694
16973
|
url: "url",
|
|
16695
16974
|
},
|
|
16696
16975
|
},
|
|
16697
|
-
providers: (_e$
|
|
16698
|
-
_e$
|
|
16976
|
+
providers: (_e$a = {},
|
|
16977
|
+
_e$a[exports.WellKnownProviders.Converter] = {
|
|
16699
16978
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
16700
16979
|
properties: {
|
|
16701
16980
|
formParts: [
|
|
@@ -16706,13 +16985,13 @@
|
|
|
16706
16985
|
],
|
|
16707
16986
|
},
|
|
16708
16987
|
},
|
|
16709
|
-
_e$
|
|
16988
|
+
_e$a),
|
|
16710
16989
|
},
|
|
16711
|
-
_b$
|
|
16712
|
-
_a$
|
|
16713
|
-
var templateObject_1$
|
|
16990
|
+
_b$n),
|
|
16991
|
+
_a$o);
|
|
16992
|
+
var templateObject_1$g, templateObject_2$8;
|
|
16714
16993
|
|
|
16715
|
-
var _a$
|
|
16994
|
+
var _a$n, _b$m, _c$e;
|
|
16716
16995
|
/**
|
|
16717
16996
|
* Component definition for the widget header node
|
|
16718
16997
|
*/
|
|
@@ -16729,11 +17008,11 @@
|
|
|
16729
17008
|
var WIDGET_LOADING = {
|
|
16730
17009
|
id: "loading",
|
|
16731
17010
|
componentType: LoadingComponent.lateLoadKey,
|
|
16732
|
-
providers: (_a$
|
|
16733
|
-
_a$
|
|
17011
|
+
providers: (_a$n = {},
|
|
17012
|
+
_a$n[exports.WellKnownProviders.LoadingAdapter] = {
|
|
16734
17013
|
providerId: NOVA_LOADING_ADAPTER,
|
|
16735
17014
|
},
|
|
16736
|
-
_a$
|
|
17015
|
+
_a$n),
|
|
16737
17016
|
};
|
|
16738
17017
|
/**
|
|
16739
17018
|
* Component configuration definition for the basic widget body node
|
|
@@ -16753,25 +17032,25 @@
|
|
|
16753
17032
|
* data source error type. Additionally, the node keys may be any string as long as they correspond to an
|
|
16754
17033
|
* error configuration node defined in the widget structure.
|
|
16755
17034
|
*/
|
|
16756
|
-
var ERROR_FALLBACK_MAP = (_b$
|
|
16757
|
-
_b$
|
|
16758
|
-
_b$
|
|
16759
|
-
_b$
|
|
16760
|
-
_b$
|
|
17035
|
+
var ERROR_FALLBACK_MAP = (_b$m = {},
|
|
17036
|
+
_b$m[exports.HttpStatusCode.Unknown] = exports.ErrorNodeKey.ErrorUnknown,
|
|
17037
|
+
_b$m[exports.HttpStatusCode.Forbidden] = exports.ErrorNodeKey.ErrorForbidden,
|
|
17038
|
+
_b$m[exports.HttpStatusCode.NotFound] = exports.ErrorNodeKey.ErrorNotFound,
|
|
17039
|
+
_b$m);
|
|
16761
17040
|
/**
|
|
16762
17041
|
* An index of common error configurations
|
|
16763
17042
|
*/
|
|
16764
|
-
var ERROR_NODES = (_c$
|
|
16765
|
-
_c$
|
|
17043
|
+
var ERROR_NODES = (_c$e = {},
|
|
17044
|
+
_c$e[exports.ErrorNodeKey.ErrorUnknown] = {
|
|
16766
17045
|
id: exports.ErrorNodeKey.ErrorUnknown,
|
|
16767
17046
|
componentType: WidgetErrorComponent.lateLoadKey,
|
|
16768
17047
|
properties: {
|
|
16769
17048
|
image: "no-data-to-show",
|
|
16770
|
-
title: $localize(templateObject_1$
|
|
16771
|
-
description: $localize(templateObject_2$
|
|
17049
|
+
title: $localize(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["Whoops, something went wrong"], ["Whoops, something went wrong"]))),
|
|
17050
|
+
description: $localize(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["There was an unexpected error."], ["There was an unexpected error."]))),
|
|
16772
17051
|
},
|
|
16773
17052
|
},
|
|
16774
|
-
_c$
|
|
17053
|
+
_c$e[exports.ErrorNodeKey.ErrorForbidden] = {
|
|
16775
17054
|
id: exports.ErrorNodeKey.ErrorForbidden,
|
|
16776
17055
|
componentType: WidgetErrorComponent.lateLoadKey,
|
|
16777
17056
|
properties: {
|
|
@@ -16780,7 +17059,7 @@
|
|
|
16780
17059
|
description: $localize(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["The requested action was forbidden."], ["The requested action was forbidden."]))),
|
|
16781
17060
|
},
|
|
16782
17061
|
},
|
|
16783
|
-
_c$
|
|
17062
|
+
_c$e[exports.ErrorNodeKey.ErrorNotFound] = {
|
|
16784
17063
|
id: exports.ErrorNodeKey.ErrorNotFound,
|
|
16785
17064
|
componentType: WidgetErrorComponent.lateLoadKey,
|
|
16786
17065
|
properties: {
|
|
@@ -16789,7 +17068,7 @@
|
|
|
16789
17068
|
description: $localize(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["The requested resource could not be found."], ["The requested resource could not be found."]))),
|
|
16790
17069
|
},
|
|
16791
17070
|
},
|
|
16792
|
-
_c$
|
|
17071
|
+
_c$e);
|
|
16793
17072
|
/**
|
|
16794
17073
|
* Retrieves an index of the basic widget body content nodes including fallback nodes
|
|
16795
17074
|
*
|
|
@@ -16819,7 +17098,7 @@
|
|
|
16819
17098
|
_a),
|
|
16820
17099
|
} }, fallbackNodes);
|
|
16821
17100
|
}
|
|
16822
|
-
var templateObject_1$
|
|
17101
|
+
var templateObject_1$f, templateObject_2$7, templateObject_3$4, templateObject_4$4, templateObject_5$3, templateObject_6$2;
|
|
16823
17102
|
|
|
16824
17103
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
16825
17104
|
/**
|
|
@@ -16848,9 +17127,9 @@
|
|
|
16848
17127
|
};
|
|
16849
17128
|
}
|
|
16850
17129
|
|
|
16851
|
-
var _a$
|
|
16852
|
-
var drilldownWidget = (_a$
|
|
16853
|
-
_a$
|
|
17130
|
+
var _a$m, _b$l, _c$d, _d$b;
|
|
17131
|
+
var drilldownWidget = (_a$m = {},
|
|
17132
|
+
_a$m[exports.PizzagnaLayer.Structure] = Object.assign(Object.assign(Object.assign(Object.assign((_b$l = {}, _b$l[DEFAULT_PIZZAGNA_ROOT] = {
|
|
16854
17133
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
16855
17134
|
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
16856
17135
|
componentType: StackComponent.lateLoadKey,
|
|
@@ -16858,17 +17137,17 @@
|
|
|
16858
17137
|
// these values reference other components in this structure
|
|
16859
17138
|
nodes: ["header", "loading", "search", "body"],
|
|
16860
17139
|
},
|
|
16861
|
-
providers: (_c$
|
|
17140
|
+
providers: (_c$d = {},
|
|
16862
17141
|
// event proxy manages the transmission of events between widget and dashboard
|
|
16863
|
-
_c$
|
|
16864
|
-
_c$
|
|
17142
|
+
_c$d[exports.WellKnownProviders.EventProxy] = EVENT_PROXY,
|
|
17143
|
+
_c$d),
|
|
16865
17144
|
},
|
|
16866
17145
|
// widget header
|
|
16867
|
-
_b$
|
|
17146
|
+
_b$l.header = WIDGET_HEADER,
|
|
16868
17147
|
// this is the loading bar below the header
|
|
16869
|
-
_b$
|
|
17148
|
+
_b$l.loading = WIDGET_LOADING,
|
|
16870
17149
|
// widget body
|
|
16871
|
-
_b$
|
|
17150
|
+
_b$l.body = Object.assign(Object.assign({}, WIDGET_BODY), { properties: Object.assign(Object.assign({}, WIDGET_BODY.properties), { elementClass: "overflow-auto" }) }), _b$l), widgetBodyContentNodes("listWidget")), { search: {
|
|
16872
17151
|
id: "search",
|
|
16873
17152
|
componentType: WidgetSearchComponent.lateLoadKey,
|
|
16874
17153
|
} }), widgetBodyContentNodes("mainContent")), { mainContent: {
|
|
@@ -16889,21 +17168,21 @@
|
|
|
16889
17168
|
elementClass: "w-100 p-3",
|
|
16890
17169
|
},
|
|
16891
17170
|
} }),
|
|
16892
|
-
_a$
|
|
16893
|
-
_d$
|
|
17171
|
+
_a$m[exports.PizzagnaLayer.Configuration] = (_d$b = {},
|
|
17172
|
+
_d$b[DEFAULT_PIZZAGNA_ROOT] = {
|
|
16894
17173
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
16895
17174
|
},
|
|
16896
17175
|
// default header configuration
|
|
16897
|
-
_d$
|
|
17176
|
+
_d$b.header = {
|
|
16898
17177
|
properties: {
|
|
16899
|
-
title: $localize(templateObject_1$
|
|
17178
|
+
title: $localize(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["Empty Custom Widget"], ["Empty Custom Widget"]))),
|
|
16900
17179
|
},
|
|
16901
17180
|
},
|
|
16902
|
-
_d$
|
|
16903
|
-
_a$
|
|
16904
|
-
var templateObject_1$
|
|
17181
|
+
_d$b),
|
|
17182
|
+
_a$m);
|
|
17183
|
+
var templateObject_1$e;
|
|
16905
17184
|
|
|
16906
|
-
var _a$
|
|
17185
|
+
var _a$l, _b$k;
|
|
16907
17186
|
/***********************************************************************************************************
|
|
16908
17187
|
* Drilldown widget definition starts here
|
|
16909
17188
|
***********************************************************************************************************/
|
|
@@ -16912,14 +17191,14 @@
|
|
|
16912
17191
|
* Paths to important settings in this type definition
|
|
16913
17192
|
***************************************************************************************************/
|
|
16914
17193
|
paths: {
|
|
16915
|
-
widget: (_a$
|
|
16916
|
-
_a$
|
|
16917
|
-
_a$
|
|
16918
|
-
configurator: (_b$
|
|
16919
|
-
_b$
|
|
17194
|
+
widget: (_a$l = {},
|
|
17195
|
+
_a$l[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17196
|
+
_a$l),
|
|
17197
|
+
configurator: (_b$k = {},
|
|
17198
|
+
_b$k[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
16920
17199
|
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
16921
|
-
_b$
|
|
16922
|
-
_b$
|
|
17200
|
+
_b$k[exports.WellKnownPathKey.DataSourceProviders] = "dataSource.properties.dataSourceProviders",
|
|
17201
|
+
_b$k),
|
|
16923
17202
|
},
|
|
16924
17203
|
/***************************************************************************************************
|
|
16925
17204
|
* Widget section describes the structural part of the KPI widget
|
|
@@ -16931,11 +17210,11 @@
|
|
|
16931
17210
|
configurator: drilldownConfigurator,
|
|
16932
17211
|
};
|
|
16933
17212
|
|
|
16934
|
-
var _a$
|
|
17213
|
+
var _a$k, _b$j, _c$c;
|
|
16935
17214
|
/* eslint-enable max-len */
|
|
16936
|
-
var embeddedContentConfigurator = (_a$
|
|
16937
|
-
_a$
|
|
16938
|
-
_b$
|
|
17215
|
+
var embeddedContentConfigurator = (_a$k = {},
|
|
17216
|
+
_a$k[exports.PizzagnaLayer.Structure] = (_b$j = {},
|
|
17217
|
+
_b$j[DEFAULT_PIZZAGNA_ROOT] = {
|
|
16939
17218
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
16940
17219
|
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
16941
17220
|
componentType: FormStackComponent.lateLoadKey,
|
|
@@ -16946,16 +17225,16 @@
|
|
|
16946
17225
|
},
|
|
16947
17226
|
},
|
|
16948
17227
|
// /presentation
|
|
16949
|
-
_b$
|
|
17228
|
+
_b$j.presentation = {
|
|
16950
17229
|
id: "presentation",
|
|
16951
17230
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
16952
17231
|
properties: {
|
|
16953
|
-
headerText: $localize(templateObject_1$
|
|
17232
|
+
headerText: $localize(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["Presentation"], ["Presentation"]))),
|
|
16954
17233
|
nodes: ["titleAndDescription"],
|
|
16955
17234
|
},
|
|
16956
17235
|
},
|
|
16957
17236
|
// /presentation/titleAndDescription
|
|
16958
|
-
_b$
|
|
17237
|
+
_b$j.titleAndDescription = {
|
|
16959
17238
|
id: "titleAndDescription",
|
|
16960
17239
|
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
16961
17240
|
providers: {
|
|
@@ -16965,16 +17244,16 @@
|
|
|
16965
17244
|
},
|
|
16966
17245
|
},
|
|
16967
17246
|
// /customConfig
|
|
16968
|
-
_b$
|
|
17247
|
+
_b$j.customConfig = {
|
|
16969
17248
|
id: "customConfig",
|
|
16970
17249
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
16971
17250
|
properties: {
|
|
16972
|
-
headerText: $localize(templateObject_2$
|
|
17251
|
+
headerText: $localize(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["Custom Widget Configuration"], ["Custom Widget Configuration"]))),
|
|
16973
17252
|
nodes: ["embeddedContentSelection"],
|
|
16974
17253
|
},
|
|
16975
17254
|
},
|
|
16976
17255
|
// /customConfig/embeddedContentSelection
|
|
16977
|
-
_b$
|
|
17256
|
+
_b$j.embeddedContentSelection = {
|
|
16978
17257
|
id: "embeddedContentSelection",
|
|
16979
17258
|
componentType: EmbeddedContentConfigurationComponent.lateLoadKey,
|
|
16980
17259
|
properties: {
|
|
@@ -16992,9 +17271,9 @@
|
|
|
16992
17271
|
},
|
|
16993
17272
|
},
|
|
16994
17273
|
},
|
|
16995
|
-
providers: (_c$
|
|
17274
|
+
providers: (_c$c = {},
|
|
16996
17275
|
// converter transforms the data between the widget and the form
|
|
16997
|
-
_c$
|
|
17276
|
+
_c$c[exports.WellKnownProviders.Converter] = {
|
|
16998
17277
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
16999
17278
|
properties: {
|
|
17000
17279
|
formParts: [
|
|
@@ -17010,34 +17289,34 @@
|
|
|
17010
17289
|
],
|
|
17011
17290
|
},
|
|
17012
17291
|
},
|
|
17013
|
-
_c$
|
|
17292
|
+
_c$c),
|
|
17014
17293
|
},
|
|
17015
|
-
_b$
|
|
17016
|
-
_a$
|
|
17017
|
-
var templateObject_1$
|
|
17294
|
+
_b$j),
|
|
17295
|
+
_a$k);
|
|
17296
|
+
var templateObject_1$d, templateObject_2$6;
|
|
17018
17297
|
|
|
17019
|
-
var _a$
|
|
17020
|
-
var embeddedContentWidget = (_a$
|
|
17021
|
-
_a$
|
|
17298
|
+
var _a$j, _b$i, _c$b;
|
|
17299
|
+
var embeddedContentWidget = (_a$j = {},
|
|
17300
|
+
_a$j[exports.PizzagnaLayer.Structure] = Object.assign(Object.assign((_b$i = {}, _b$i[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17022
17301
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17023
17302
|
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
17024
17303
|
componentType: StackComponent.lateLoadKey,
|
|
17025
|
-
providers: (_c$
|
|
17304
|
+
providers: (_c$b = {},
|
|
17026
17305
|
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
17027
|
-
_c$
|
|
17306
|
+
_c$b[exports.WellKnownProviders.Refresher] = refresher(),
|
|
17028
17307
|
// event proxy manages the transmission of events between widget and dashboard
|
|
17029
|
-
_c$
|
|
17030
|
-
_c$
|
|
17308
|
+
_c$b[exports.WellKnownProviders.EventProxy] = EVENT_PROXY,
|
|
17309
|
+
_c$b),
|
|
17031
17310
|
properties: {
|
|
17032
17311
|
nodes: ["header", "loading", "body"],
|
|
17033
17312
|
},
|
|
17034
17313
|
},
|
|
17035
17314
|
// widget header
|
|
17036
|
-
_b$
|
|
17315
|
+
_b$i.header = WIDGET_HEADER,
|
|
17037
17316
|
// this is the loading bar below the header
|
|
17038
|
-
_b$
|
|
17317
|
+
_b$i.loading = WIDGET_LOADING,
|
|
17039
17318
|
// widget body
|
|
17040
|
-
_b$
|
|
17319
|
+
_b$i.body = WIDGET_BODY, _b$i), widgetBodyContentNodes("mainContent")), {
|
|
17041
17320
|
// the main content node specifying a component that manages layout of the KPI tiles in a CSS grid
|
|
17042
17321
|
mainContent: {
|
|
17043
17322
|
id: "mainContent",
|
|
@@ -17047,18 +17326,18 @@
|
|
|
17047
17326
|
},
|
|
17048
17327
|
}
|
|
17049
17328
|
}),
|
|
17050
|
-
_a$
|
|
17329
|
+
_a$j[exports.PizzagnaLayer.Configuration] = {
|
|
17051
17330
|
// default header configuration
|
|
17052
17331
|
header: {
|
|
17053
17332
|
properties: {
|
|
17054
|
-
title: $localize(templateObject_1$
|
|
17333
|
+
title: $localize(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["Empty Embedded Content Widget"], ["Empty Embedded Content Widget"]))),
|
|
17055
17334
|
},
|
|
17056
17335
|
},
|
|
17057
17336
|
},
|
|
17058
|
-
_a$
|
|
17059
|
-
var templateObject_1$
|
|
17337
|
+
_a$j);
|
|
17338
|
+
var templateObject_1$c;
|
|
17060
17339
|
|
|
17061
|
-
var _a$
|
|
17340
|
+
var _a$i, _b$h;
|
|
17062
17341
|
/***********************************************************************************************************
|
|
17063
17342
|
* EmbeddedContent widget definition starts here
|
|
17064
17343
|
***********************************************************************************************************/
|
|
@@ -17067,12 +17346,12 @@
|
|
|
17067
17346
|
* Paths to important settings in this type definition
|
|
17068
17347
|
***************************************************************************************************/
|
|
17069
17348
|
paths: {
|
|
17070
|
-
widget: (_a$
|
|
17071
|
-
_a$
|
|
17072
|
-
_a$
|
|
17073
|
-
configurator: (_b$
|
|
17074
|
-
_b$
|
|
17075
|
-
_b$
|
|
17349
|
+
widget: (_a$i = {},
|
|
17350
|
+
_a$i[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17351
|
+
_a$i),
|
|
17352
|
+
configurator: (_b$h = {},
|
|
17353
|
+
_b$h[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17354
|
+
_b$h),
|
|
17076
17355
|
},
|
|
17077
17356
|
/***************************************************************************************************
|
|
17078
17357
|
* Widget section describes the structural part of the widget
|
|
@@ -17084,15 +17363,15 @@
|
|
|
17084
17363
|
configurator: embeddedContentConfigurator,
|
|
17085
17364
|
};
|
|
17086
17365
|
|
|
17087
|
-
var _a$
|
|
17366
|
+
var _a$h;
|
|
17088
17367
|
/**
|
|
17089
17368
|
* Component configuration for the refresher configurator node
|
|
17090
17369
|
*/
|
|
17091
17370
|
var REFRESHER_CONFIGURATOR = {
|
|
17092
17371
|
id: "refresher",
|
|
17093
17372
|
componentType: RefresherConfigurationComponent.lateLoadKey,
|
|
17094
|
-
providers: (_a$
|
|
17095
|
-
_a$
|
|
17373
|
+
providers: (_a$h = {},
|
|
17374
|
+
_a$h[exports.WellKnownProviders.Converter] = {
|
|
17096
17375
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
17097
17376
|
properties: {
|
|
17098
17377
|
formParts: [
|
|
@@ -17107,18 +17386,18 @@
|
|
|
17107
17386
|
],
|
|
17108
17387
|
},
|
|
17109
17388
|
},
|
|
17110
|
-
_a$
|
|
17389
|
+
_a$h),
|
|
17111
17390
|
properties: {
|
|
17112
17391
|
overrideDefaultSettings: false,
|
|
17113
17392
|
},
|
|
17114
17393
|
};
|
|
17115
17394
|
|
|
17116
|
-
var _a$
|
|
17395
|
+
var _a$g, _b$g, _c$a, _d$a, _e$9, _f$9, _g$3, _h$1, _j;
|
|
17117
17396
|
/* eslint-enable max-len */
|
|
17118
17397
|
var DEFAULT_KPI_FORMATTERS = [
|
|
17119
17398
|
{
|
|
17120
17399
|
componentType: RawFormatterComponent.lateLoadKey,
|
|
17121
|
-
label: $localize(templateObject_1$
|
|
17400
|
+
label: $localize(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["Raw Formatter"], ["Raw Formatter"]))),
|
|
17122
17401
|
dataTypes: {
|
|
17123
17402
|
// @ts-ignore
|
|
17124
17403
|
value: null,
|
|
@@ -17126,7 +17405,7 @@
|
|
|
17126
17405
|
},
|
|
17127
17406
|
{
|
|
17128
17407
|
componentType: SiUnitsFormatterComponent.lateLoadKey,
|
|
17129
|
-
label: $localize(templateObject_2$
|
|
17408
|
+
label: $localize(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["Si Units Formatter"], ["Si Units Formatter"]))),
|
|
17130
17409
|
dataTypes: {
|
|
17131
17410
|
// @ts-ignore
|
|
17132
17411
|
value: null,
|
|
@@ -17141,9 +17420,9 @@
|
|
|
17141
17420
|
},
|
|
17142
17421
|
},
|
|
17143
17422
|
];
|
|
17144
|
-
var kpiConfigurator = (_a$
|
|
17145
|
-
_a$
|
|
17146
|
-
_b$
|
|
17423
|
+
var kpiConfigurator = (_a$g = {},
|
|
17424
|
+
_a$g[exports.PizzagnaLayer.Structure] = (_b$g = {},
|
|
17425
|
+
_b$g[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17147
17426
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17148
17427
|
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
17149
17428
|
componentType: FormStackComponent.lateLoadKey,
|
|
@@ -17152,14 +17431,14 @@
|
|
|
17152
17431
|
// references to other components laid out in this form
|
|
17153
17432
|
nodes: ["presentation", "tiles"],
|
|
17154
17433
|
},
|
|
17155
|
-
providers: (_c$
|
|
17156
|
-
_c$
|
|
17434
|
+
providers: (_c$a = {},
|
|
17435
|
+
_c$a[exports.WellKnownProviders.FormattersRegistry] = {
|
|
17157
17436
|
providerId: NOVA_KPI_FORMATTERS_REGISTRY,
|
|
17158
17437
|
},
|
|
17159
|
-
_c$
|
|
17438
|
+
_c$a),
|
|
17160
17439
|
},
|
|
17161
17440
|
// /presentation
|
|
17162
|
-
_b$
|
|
17441
|
+
_b$g.presentation = {
|
|
17163
17442
|
id: "presentation",
|
|
17164
17443
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
17165
17444
|
properties: {
|
|
@@ -17168,7 +17447,7 @@
|
|
|
17168
17447
|
},
|
|
17169
17448
|
},
|
|
17170
17449
|
// /presentation/titleAndDescription
|
|
17171
|
-
_b$
|
|
17450
|
+
_b$g.titleAndDescription = {
|
|
17172
17451
|
id: "titleAndDescription",
|
|
17173
17452
|
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
17174
17453
|
providers: {
|
|
@@ -17177,9 +17456,9 @@
|
|
|
17177
17456
|
},
|
|
17178
17457
|
},
|
|
17179
17458
|
},
|
|
17180
|
-
_b$
|
|
17459
|
+
_b$g.refresher = REFRESHER_CONFIGURATOR,
|
|
17181
17460
|
// /tiles
|
|
17182
|
-
_b$
|
|
17461
|
+
_b$g.tiles = {
|
|
17183
17462
|
id: "tiles",
|
|
17184
17463
|
componentType: KpiTilesConfigurationComponent.lateLoadKey,
|
|
17185
17464
|
properties: {
|
|
@@ -17193,9 +17472,9 @@
|
|
|
17193
17472
|
configurableUnits: true,
|
|
17194
17473
|
backgroundColors: __spreadArray([], __read(DEFAULT_KPI_BACKGROUND_COLORS)),
|
|
17195
17474
|
},
|
|
17196
|
-
providers: (_d$
|
|
17475
|
+
providers: (_d$a = {},
|
|
17197
17476
|
// converter transforms the data between the widget and the form
|
|
17198
|
-
_d$
|
|
17477
|
+
_d$a[exports.WellKnownProviders.Converter] = {
|
|
17199
17478
|
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17200
17479
|
properties: {
|
|
17201
17480
|
formParts: [
|
|
@@ -17210,7 +17489,7 @@
|
|
|
17210
17489
|
],
|
|
17211
17490
|
},
|
|
17212
17491
|
},
|
|
17213
|
-
_d$
|
|
17492
|
+
_d$a),
|
|
17214
17493
|
},
|
|
17215
17494
|
{
|
|
17216
17495
|
// data source configuration section
|
|
@@ -17221,9 +17500,9 @@
|
|
|
17221
17500
|
dataSourceProviders: [],
|
|
17222
17501
|
errorComponent: DataSourceErrorComponent.lateLoadKey,
|
|
17223
17502
|
},
|
|
17224
|
-
providers: (_e$
|
|
17503
|
+
providers: (_e$9 = {},
|
|
17225
17504
|
// converter transforms the data source metadata between the widget and the form
|
|
17226
|
-
_e$
|
|
17505
|
+
_e$9[exports.WellKnownProviders.Converter] = {
|
|
17227
17506
|
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17228
17507
|
properties: {
|
|
17229
17508
|
formParts: [
|
|
@@ -17241,7 +17520,7 @@
|
|
|
17241
17520
|
],
|
|
17242
17521
|
},
|
|
17243
17522
|
},
|
|
17244
|
-
_e$
|
|
17523
|
+
_e$9[exports.WellKnownProviders.Broadcaster] = {
|
|
17245
17524
|
providerId: NOVA_PIZZAGNA_BROADCASTER,
|
|
17246
17525
|
properties: {
|
|
17247
17526
|
configs: [
|
|
@@ -17255,15 +17534,15 @@
|
|
|
17255
17534
|
],
|
|
17256
17535
|
},
|
|
17257
17536
|
},
|
|
17258
|
-
_e$
|
|
17537
|
+
_e$9),
|
|
17259
17538
|
},
|
|
17260
17539
|
{
|
|
17261
17540
|
// thresholds configuration section
|
|
17262
17541
|
id: "thresholds",
|
|
17263
17542
|
componentType: ThresholdsConfigurationComponent.lateLoadKey,
|
|
17264
|
-
providers: (_f$
|
|
17543
|
+
providers: (_f$9 = {},
|
|
17265
17544
|
// converter transforms the data between the widget and the form
|
|
17266
|
-
_f$
|
|
17545
|
+
_f$9[exports.WellKnownProviders.Converter] = {
|
|
17267
17546
|
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17268
17547
|
properties: {
|
|
17269
17548
|
formParts: [
|
|
@@ -17280,7 +17559,7 @@
|
|
|
17280
17559
|
],
|
|
17281
17560
|
},
|
|
17282
17561
|
},
|
|
17283
|
-
_f$
|
|
17562
|
+
_f$9),
|
|
17284
17563
|
},
|
|
17285
17564
|
{
|
|
17286
17565
|
id: "backgroundColorRules",
|
|
@@ -17288,8 +17567,8 @@
|
|
|
17288
17567
|
properties: {
|
|
17289
17568
|
backgroundColors: __spreadArray([], __read(DEFAULT_KPI_BACKGROUND_COLORS)),
|
|
17290
17569
|
},
|
|
17291
|
-
providers: (_g$
|
|
17292
|
-
_g$
|
|
17570
|
+
providers: (_g$3 = {},
|
|
17571
|
+
_g$3[exports.WellKnownProviders.Converter] = {
|
|
17293
17572
|
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17294
17573
|
properties: {
|
|
17295
17574
|
formParts: [
|
|
@@ -17300,7 +17579,7 @@
|
|
|
17300
17579
|
],
|
|
17301
17580
|
},
|
|
17302
17581
|
},
|
|
17303
|
-
_g$
|
|
17582
|
+
_g$3),
|
|
17304
17583
|
},
|
|
17305
17584
|
{
|
|
17306
17585
|
id: "formatting",
|
|
@@ -17342,32 +17621,32 @@
|
|
|
17342
17621
|
},
|
|
17343
17622
|
_j),
|
|
17344
17623
|
},
|
|
17345
|
-
_b$
|
|
17346
|
-
_a$
|
|
17347
|
-
var templateObject_1$
|
|
17624
|
+
_b$g),
|
|
17625
|
+
_a$g);
|
|
17626
|
+
var templateObject_1$b, templateObject_2$5, templateObject_3$3, templateObject_4$3;
|
|
17348
17627
|
|
|
17349
|
-
var _a$
|
|
17350
|
-
var kpiWidget = (_a$
|
|
17351
|
-
_a$
|
|
17628
|
+
var _a$f, _b$f, _c$9, _d$9, _e$8, _f$8;
|
|
17629
|
+
var kpiWidget = (_a$f = {},
|
|
17630
|
+
_a$f[exports.PizzagnaLayer.Structure] = Object.assign(Object.assign((_b$f = {}, _b$f[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17352
17631
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17353
17632
|
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
17354
17633
|
componentType: StackComponent.lateLoadKey,
|
|
17355
|
-
providers: (_c$
|
|
17634
|
+
providers: (_c$9 = {},
|
|
17356
17635
|
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
17357
|
-
_c$
|
|
17636
|
+
_c$9[exports.WellKnownProviders.Refresher] = refresher(),
|
|
17358
17637
|
// event proxy manages the transmission of events between widget and dashboard
|
|
17359
|
-
_c$
|
|
17360
|
-
_c$
|
|
17638
|
+
_c$9[exports.WellKnownProviders.EventProxy] = EVENT_PROXY,
|
|
17639
|
+
_c$9),
|
|
17361
17640
|
properties: {
|
|
17362
17641
|
nodes: ["header", "loading", "body"],
|
|
17363
17642
|
},
|
|
17364
17643
|
},
|
|
17365
17644
|
// widget header
|
|
17366
|
-
_b$
|
|
17645
|
+
_b$f.header = WIDGET_HEADER,
|
|
17367
17646
|
// this is the loading bar below the header
|
|
17368
|
-
_b$
|
|
17647
|
+
_b$f.loading = WIDGET_LOADING,
|
|
17369
17648
|
// widget body
|
|
17370
|
-
_b$
|
|
17649
|
+
_b$f.body = Object.assign(Object.assign({}, WIDGET_BODY), { properties: Object.assign(Object.assign({}, WIDGET_BODY.properties), { elementClass: "overflow-hidden" }) }), _b$f), widgetBodyContentNodes("tiles", NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER)), {
|
|
17371
17650
|
// the main content node specifying a component that manages layout of the KPI tiles in a CSS grid
|
|
17372
17651
|
tiles: {
|
|
17373
17652
|
id: "tiles",
|
|
@@ -17376,18 +17655,18 @@
|
|
|
17376
17655
|
elementClass: "flex-grow-1 pt-2 px-3 pb-3 w-100",
|
|
17377
17656
|
template: {
|
|
17378
17657
|
componentType: KpiComponent.lateLoadKey,
|
|
17379
|
-
providers: (_d$
|
|
17380
|
-
_d$
|
|
17658
|
+
providers: (_d$9 = {},
|
|
17659
|
+
_d$9[exports.WellKnownProviders.KpiColorPrioritizer] = {
|
|
17381
17660
|
providerId: NOVA_KPI_COLOR_PRIORITIZER,
|
|
17382
17661
|
properties: {},
|
|
17383
17662
|
},
|
|
17384
|
-
_d$
|
|
17663
|
+
_d$9[exports.WellKnownProviders.Adapter] = {
|
|
17385
17664
|
providerId: NOVA_KPI_DATASOURCE_ADAPTER,
|
|
17386
17665
|
properties: {
|
|
17387
17666
|
propertyPath: "widgetData",
|
|
17388
17667
|
},
|
|
17389
17668
|
},
|
|
17390
|
-
_d$
|
|
17669
|
+
_d$9),
|
|
17391
17670
|
properties: {
|
|
17392
17671
|
elementClass: "flex-grow-1",
|
|
17393
17672
|
},
|
|
@@ -17395,27 +17674,27 @@
|
|
|
17395
17674
|
},
|
|
17396
17675
|
}
|
|
17397
17676
|
}),
|
|
17398
|
-
_a$
|
|
17399
|
-
_e$
|
|
17677
|
+
_a$f[exports.PizzagnaLayer.Configuration] = (_e$8 = {},
|
|
17678
|
+
_e$8[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17400
17679
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17401
|
-
providers: (_f$
|
|
17680
|
+
providers: (_f$8 = {},
|
|
17402
17681
|
// default refresher configuration
|
|
17403
|
-
_f$
|
|
17404
|
-
_f$
|
|
17682
|
+
_f$8[exports.WellKnownProviders.Refresher] = refresher(false, 60),
|
|
17683
|
+
_f$8),
|
|
17405
17684
|
},
|
|
17406
17685
|
// default header configuration
|
|
17407
|
-
_e$
|
|
17686
|
+
_e$8.header = {
|
|
17408
17687
|
properties: {
|
|
17409
|
-
title: $localize(templateObject_1$
|
|
17688
|
+
title: $localize(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["Empty KPI Widget"], ["Empty KPI Widget"]))),
|
|
17410
17689
|
},
|
|
17411
17690
|
},
|
|
17412
|
-
_e$
|
|
17413
|
-
_a$
|
|
17414
|
-
var templateObject_1$
|
|
17691
|
+
_e$8),
|
|
17692
|
+
_a$f);
|
|
17693
|
+
var templateObject_1$a;
|
|
17415
17694
|
|
|
17416
|
-
var _a$
|
|
17417
|
-
var tileDescriptionConfiguratorTemplatePath = "tiles.properties.template[0]";
|
|
17418
|
-
var dataSourceConfiguratorTemplatePath = "tiles.properties.template[1]";
|
|
17695
|
+
var _a$e, _b$e;
|
|
17696
|
+
var tileDescriptionConfiguratorTemplatePath$1 = "tiles.properties.template[0]";
|
|
17697
|
+
var dataSourceConfiguratorTemplatePath$1 = "tiles.properties.template[1]";
|
|
17419
17698
|
var backgroundColorRulesConfiguratorTemplatePath = "tiles.properties.template[3]";
|
|
17420
17699
|
/***********************************************************************************************************
|
|
17421
17700
|
* KPI widget definition starts here
|
|
@@ -17425,22 +17704,22 @@
|
|
|
17425
17704
|
* Paths to important settings in this type definition
|
|
17426
17705
|
***************************************************************************************************/
|
|
17427
17706
|
paths: {
|
|
17428
|
-
widget: (_a$
|
|
17429
|
-
_a$
|
|
17430
|
-
_a$
|
|
17431
|
-
configurator: (_b$
|
|
17432
|
-
_b$
|
|
17707
|
+
widget: (_a$e = {},
|
|
17708
|
+
_a$e[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17709
|
+
_a$e),
|
|
17710
|
+
configurator: (_b$e = {},
|
|
17711
|
+
_b$e[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17433
17712
|
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
17434
|
-
_b$
|
|
17713
|
+
_b$e[exports.WellKnownPathKey.DataSourceConfigComponentType] = dataSourceConfiguratorTemplatePath$1 + ".componentType",
|
|
17435
17714
|
// this points at the component type you need to change if you want to change the component for tile description configuration
|
|
17436
|
-
_b$
|
|
17715
|
+
_b$e[exports.WellKnownPathKey.TileDescriptionConfigComponentType] = tileDescriptionConfiguratorTemplatePath$1 + ".componentType",
|
|
17437
17716
|
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
17438
|
-
_b$
|
|
17717
|
+
_b$e[exports.WellKnownPathKey.DataSourceProviders] = dataSourceConfiguratorTemplatePath$1 + ".properties.dataSourceProviders",
|
|
17439
17718
|
// this points to the Tile's description background color picker
|
|
17440
|
-
_b$
|
|
17719
|
+
_b$e[exports.WellKnownPathKey.TileDescriptionBackgroundColors] = tileDescriptionConfiguratorTemplatePath$1 + ".properties.backgroundColors",
|
|
17441
17720
|
// this points to the Background Color Rules background color picker
|
|
17442
|
-
_b$
|
|
17443
|
-
_b$
|
|
17721
|
+
_b$e[exports.WellKnownPathKey.TileBackgroundColorRulesBackgroundColors] = backgroundColorRulesConfiguratorTemplatePath + ".properties.backgroundColors",
|
|
17722
|
+
_b$e),
|
|
17444
17723
|
},
|
|
17445
17724
|
/***************************************************************************************************
|
|
17446
17725
|
* Widget section describes the structural part of the KPI widget
|
|
@@ -17452,42 +17731,42 @@
|
|
|
17452
17731
|
configurator: kpiConfigurator,
|
|
17453
17732
|
};
|
|
17454
17733
|
|
|
17455
|
-
var _a$
|
|
17734
|
+
var _a$d, _b$d, _c$8, _d$8;
|
|
17456
17735
|
var previewPlaceholder = {
|
|
17457
17736
|
paths: {
|
|
17458
|
-
widget: (_a$
|
|
17459
|
-
_a$
|
|
17460
|
-
_a$
|
|
17461
|
-
configurator: (_b$
|
|
17462
|
-
_b$
|
|
17463
|
-
_b$
|
|
17737
|
+
widget: (_a$d = {},
|
|
17738
|
+
_a$d[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17739
|
+
_a$d),
|
|
17740
|
+
configurator: (_b$d = {},
|
|
17741
|
+
_b$d[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17742
|
+
_b$d),
|
|
17464
17743
|
},
|
|
17465
|
-
widget: (_c$
|
|
17466
|
-
_c$
|
|
17467
|
-
_d$
|
|
17744
|
+
widget: (_c$8 = {},
|
|
17745
|
+
_c$8[exports.PizzagnaLayer.Structure] = (_d$8 = {},
|
|
17746
|
+
_d$8[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17468
17747
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17469
17748
|
componentType: StackComponent.lateLoadKey,
|
|
17470
17749
|
properties: {
|
|
17471
17750
|
nodes: ["header", "body"],
|
|
17472
17751
|
},
|
|
17473
17752
|
},
|
|
17474
|
-
_d$
|
|
17475
|
-
_d$
|
|
17476
|
-
_d$
|
|
17753
|
+
_d$8.header = WIDGET_HEADER,
|
|
17754
|
+
_d$8.body = WIDGET_BODY,
|
|
17755
|
+
_d$8.bodyContent = {
|
|
17477
17756
|
id: "bodyContent",
|
|
17478
17757
|
componentType: PreviewPlaceholderComponent.lateLoadKey,
|
|
17479
17758
|
},
|
|
17480
|
-
_d$
|
|
17481
|
-
_c$
|
|
17759
|
+
_d$8),
|
|
17760
|
+
_c$8[exports.PizzagnaLayer.Configuration] = {
|
|
17482
17761
|
header: {
|
|
17483
17762
|
properties: {
|
|
17484
|
-
title: $localize(templateObject_1$
|
|
17763
|
+
title: $localize(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["New Widget"], ["New Widget"]))),
|
|
17485
17764
|
},
|
|
17486
17765
|
},
|
|
17487
17766
|
},
|
|
17488
|
-
_c$
|
|
17767
|
+
_c$8),
|
|
17489
17768
|
};
|
|
17490
|
-
var templateObject_1$
|
|
17769
|
+
var templateObject_1$9;
|
|
17491
17770
|
|
|
17492
17771
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17493
17772
|
var fieldMapper = function (origin, properties) {
|
|
@@ -17545,12 +17824,12 @@
|
|
|
17545
17824
|
};
|
|
17546
17825
|
sumAggregator.aggregatorType = "sumAggregator";
|
|
17547
17826
|
|
|
17548
|
-
var _a$
|
|
17827
|
+
var _a$c, _b$c, _c$7, _d$7, _e$7, _f$7;
|
|
17549
17828
|
/* eslint-enable max-len */
|
|
17550
17829
|
var DEFAULT_LEGEND_FORMATTERS = [
|
|
17551
17830
|
{
|
|
17552
17831
|
componentType: "",
|
|
17553
|
-
label: $localize(templateObject_1$
|
|
17832
|
+
label: $localize(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["Raw Formatter"], ["Raw Formatter"]))),
|
|
17554
17833
|
dataTypes: {
|
|
17555
17834
|
// @ts-ignore
|
|
17556
17835
|
value: null,
|
|
@@ -17558,7 +17837,7 @@
|
|
|
17558
17837
|
},
|
|
17559
17838
|
{
|
|
17560
17839
|
componentType: StatusWithIconFormatterComponent.lateLoadKey,
|
|
17561
|
-
label: $localize(templateObject_2$
|
|
17840
|
+
label: $localize(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["Status With Icon"], ["Status With Icon"]))),
|
|
17562
17841
|
dataTypes: {
|
|
17563
17842
|
// @ts-ignore
|
|
17564
17843
|
value: null,
|
|
@@ -17631,9 +17910,9 @@
|
|
|
17631
17910
|
configurationComponent: FieldMapperAggregatorConfiguratorComponent.lateLoadKey,
|
|
17632
17911
|
},
|
|
17633
17912
|
];
|
|
17634
|
-
var proportionalConfigurator = (_a$
|
|
17635
|
-
_a$
|
|
17636
|
-
_b$
|
|
17913
|
+
var proportionalConfigurator = (_a$c = {},
|
|
17914
|
+
_a$c[exports.PizzagnaLayer.Structure] = (_b$c = {},
|
|
17915
|
+
_b$c[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17637
17916
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17638
17917
|
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
17639
17918
|
componentType: FormStackComponent.lateLoadKey,
|
|
@@ -17642,14 +17921,14 @@
|
|
|
17642
17921
|
// references to other components laid out in this form
|
|
17643
17922
|
nodes: ["presentation", "dataAndCalculations"],
|
|
17644
17923
|
},
|
|
17645
|
-
providers: (_c$
|
|
17646
|
-
_c$
|
|
17924
|
+
providers: (_c$7 = {},
|
|
17925
|
+
_c$7[exports.WellKnownProviders.FormattersRegistry] = {
|
|
17647
17926
|
providerId: NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY,
|
|
17648
17927
|
},
|
|
17649
|
-
_c$
|
|
17928
|
+
_c$7),
|
|
17650
17929
|
},
|
|
17651
17930
|
// /presentation
|
|
17652
|
-
_b$
|
|
17931
|
+
_b$c.presentation = {
|
|
17653
17932
|
id: "presentation",
|
|
17654
17933
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
17655
17934
|
properties: {
|
|
@@ -17658,17 +17937,17 @@
|
|
|
17658
17937
|
},
|
|
17659
17938
|
},
|
|
17660
17939
|
// /presentation/titleAndDescription
|
|
17661
|
-
_b$
|
|
17940
|
+
_b$c.titleAndDescription = {
|
|
17662
17941
|
id: "titleAndDescription",
|
|
17663
17942
|
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
17664
|
-
providers: (_d$
|
|
17665
|
-
_d$
|
|
17943
|
+
providers: (_d$7 = {},
|
|
17944
|
+
_d$7[exports.WellKnownProviders.Converter] = {
|
|
17666
17945
|
providerId: NOVA_TITLE_AND_DESCRIPTION_CONVERTER,
|
|
17667
17946
|
},
|
|
17668
|
-
_d$
|
|
17947
|
+
_d$7),
|
|
17669
17948
|
},
|
|
17670
17949
|
// /presentation/chartOptionsEditor
|
|
17671
|
-
_b$
|
|
17950
|
+
_b$c.chartOptionsEditor = {
|
|
17672
17951
|
id: "chartOptionsEditor",
|
|
17673
17952
|
componentType: ProportionalChartOptionsEditorComponent.lateLoadKey,
|
|
17674
17953
|
properties: {
|
|
@@ -17720,16 +17999,16 @@
|
|
|
17720
17999
|
],
|
|
17721
18000
|
},
|
|
17722
18001
|
},
|
|
17723
|
-
providers: (_e$
|
|
18002
|
+
providers: (_e$7 = {},
|
|
17724
18003
|
// converter transforms the chart options data between the widget and the form
|
|
17725
|
-
_e$
|
|
18004
|
+
_e$7[exports.WellKnownProviders.Converter] = {
|
|
17726
18005
|
providerId: NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER,
|
|
17727
18006
|
},
|
|
17728
|
-
_e$
|
|
18007
|
+
_e$7),
|
|
17729
18008
|
},
|
|
17730
|
-
_b$
|
|
18009
|
+
_b$c.refresher = REFRESHER_CONFIGURATOR,
|
|
17731
18010
|
// /dataAndCalculations
|
|
17732
|
-
_b$
|
|
18011
|
+
_b$c.dataAndCalculations = {
|
|
17733
18012
|
id: "dataAndCalculations",
|
|
17734
18013
|
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
17735
18014
|
properties: {
|
|
@@ -17738,7 +18017,7 @@
|
|
|
17738
18017
|
},
|
|
17739
18018
|
},
|
|
17740
18019
|
// /dataAndCalculations/dataSource
|
|
17741
|
-
_b$
|
|
18020
|
+
_b$c.dataSource = {
|
|
17742
18021
|
id: "dataSource",
|
|
17743
18022
|
componentType: DataSourceConfigurationComponent.lateLoadKey,
|
|
17744
18023
|
properties: {
|
|
@@ -17746,9 +18025,9 @@
|
|
|
17746
18025
|
dataSourceProviders: [],
|
|
17747
18026
|
errorComponent: DataSourceErrorComponent.lateLoadKey,
|
|
17748
18027
|
},
|
|
17749
|
-
providers: (_f$
|
|
18028
|
+
providers: (_f$7 = {},
|
|
17750
18029
|
// converter transforms the data source metadata between the widget and the form
|
|
17751
|
-
_f$
|
|
18030
|
+
_f$7[exports.WellKnownProviders.Converter] = {
|
|
17752
18031
|
providerId: NOVA_GENERIC_CONVERTER,
|
|
17753
18032
|
properties: {
|
|
17754
18033
|
formParts: [
|
|
@@ -17766,7 +18045,7 @@
|
|
|
17766
18045
|
],
|
|
17767
18046
|
},
|
|
17768
18047
|
},
|
|
17769
|
-
_f$
|
|
18048
|
+
_f$7[exports.WellKnownProviders.Broadcaster] = {
|
|
17770
18049
|
providerId: NOVA_PIZZAGNA_BROADCASTER,
|
|
17771
18050
|
properties: {
|
|
17772
18051
|
configs: [
|
|
@@ -17780,15 +18059,15 @@
|
|
|
17780
18059
|
],
|
|
17781
18060
|
},
|
|
17782
18061
|
},
|
|
17783
|
-
_f$
|
|
18062
|
+
_f$7),
|
|
17784
18063
|
},
|
|
17785
|
-
_b$
|
|
17786
|
-
_a$
|
|
17787
|
-
var templateObject_1$
|
|
18064
|
+
_b$c),
|
|
18065
|
+
_a$c);
|
|
18066
|
+
var templateObject_1$8, templateObject_2$4, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$1, templateObject_7$1, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
17788
18067
|
|
|
17789
|
-
var _a$
|
|
17790
|
-
var proportionalWidget = (_a$
|
|
17791
|
-
_a$
|
|
18068
|
+
var _a$b, _b$b, _c$6, _d$6, _e$6, _f$6;
|
|
18069
|
+
var proportionalWidget = (_a$b = {},
|
|
18070
|
+
_a$b[exports.PizzagnaLayer.Structure] = Object.assign(Object.assign((_b$b = {}, _b$b[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17792
18071
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17793
18072
|
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
17794
18073
|
componentType: StackComponent.lateLoadKey,
|
|
@@ -17796,37 +18075,304 @@
|
|
|
17796
18075
|
// these values reference other components in this structure
|
|
17797
18076
|
nodes: ["header", "loading", "body"],
|
|
17798
18077
|
},
|
|
17799
|
-
providers: (_c$
|
|
18078
|
+
providers: (_c$6 = {},
|
|
17800
18079
|
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
17801
|
-
_c$
|
|
18080
|
+
_c$6[exports.WellKnownProviders.Refresher] = refresher(),
|
|
17802
18081
|
// event proxy manages the transmission of events between widget and dashboard
|
|
17803
|
-
_c$
|
|
17804
|
-
_c$
|
|
18082
|
+
_c$6[exports.WellKnownProviders.EventProxy] = EVENT_PROXY,
|
|
18083
|
+
_c$6),
|
|
17805
18084
|
},
|
|
17806
18085
|
// widget header
|
|
17807
|
-
_b$
|
|
18086
|
+
_b$b.header = WIDGET_HEADER,
|
|
17808
18087
|
// this is the loading bar below the header
|
|
17809
|
-
_b$
|
|
18088
|
+
_b$b.loading = WIDGET_LOADING,
|
|
17810
18089
|
// widget body
|
|
17811
|
-
_b$
|
|
18090
|
+
_b$b.body = Object.assign(Object.assign({}, WIDGET_BODY), { properties: Object.assign(Object.assign({}, WIDGET_BODY.properties), { elementClass: "overflow-auto" }) }), _b$b), widgetBodyContentNodes("chart")), {
|
|
17812
18091
|
// a component that manages layout and behavior of the proportional chart
|
|
17813
18092
|
chart: {
|
|
17814
18093
|
id: "chart",
|
|
17815
18094
|
componentType: ProportionalWidgetComponent.lateLoadKey,
|
|
17816
|
-
providers: (_d$
|
|
17817
|
-
_d$
|
|
18095
|
+
providers: (_d$6 = {},
|
|
18096
|
+
_d$6[exports.WellKnownProviders.Adapter] = {
|
|
17818
18097
|
providerId: NOVA_DATASOURCE_ADAPTER,
|
|
17819
18098
|
properties: {
|
|
17820
18099
|
componentId: "chart",
|
|
17821
18100
|
propertyPath: "widgetData",
|
|
17822
18101
|
},
|
|
17823
18102
|
},
|
|
17824
|
-
_d$
|
|
18103
|
+
_d$6),
|
|
17825
18104
|
properties: {
|
|
17826
18105
|
elementClass: "d-flex flex-grow-1 justify-content-center overflow-auto",
|
|
17827
18106
|
},
|
|
17828
18107
|
}
|
|
17829
18108
|
}),
|
|
18109
|
+
_a$b[exports.PizzagnaLayer.Configuration] = (_e$6 = {},
|
|
18110
|
+
_e$6[DEFAULT_PIZZAGNA_ROOT] = {
|
|
18111
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
18112
|
+
providers: (_f$6 = {},
|
|
18113
|
+
// default refresher configuration
|
|
18114
|
+
_f$6[exports.WellKnownProviders.Refresher] = refresher(false, 60),
|
|
18115
|
+
_f$6),
|
|
18116
|
+
},
|
|
18117
|
+
// default header configuration
|
|
18118
|
+
_e$6.header = {
|
|
18119
|
+
properties: {
|
|
18120
|
+
title: $localize(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["Empty Proportional Widget"], ["Empty Proportional Widget"]))),
|
|
18121
|
+
},
|
|
18122
|
+
},
|
|
18123
|
+
_e$6),
|
|
18124
|
+
_a$b);
|
|
18125
|
+
var templateObject_1$7;
|
|
18126
|
+
|
|
18127
|
+
var _a$a, _b$a;
|
|
18128
|
+
/***********************************************************************************************************
|
|
18129
|
+
* Proportional widget definition starts here
|
|
18130
|
+
***********************************************************************************************************/
|
|
18131
|
+
var proportional = {
|
|
18132
|
+
/***************************************************************************************************
|
|
18133
|
+
* Paths to important settings in this type definition
|
|
18134
|
+
***************************************************************************************************/
|
|
18135
|
+
paths: {
|
|
18136
|
+
widget: (_a$a = {},
|
|
18137
|
+
_a$a[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
18138
|
+
_a$a),
|
|
18139
|
+
configurator: (_b$a = {},
|
|
18140
|
+
_b$a[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
18141
|
+
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
18142
|
+
_b$a[exports.WellKnownPathKey.DataSourceConfigComponentType] = "dataSource.componentType",
|
|
18143
|
+
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
18144
|
+
_b$a[exports.WellKnownPathKey.DataSourceProviders] = "dataSource.properties.dataSourceProviders",
|
|
18145
|
+
// this is where donut content chart formatters are defined
|
|
18146
|
+
_b$a[exports.WellKnownPathKey.Formatters] = "chartOptionsEditor.properties.chartOptions.contentFormatters",
|
|
18147
|
+
_b$a),
|
|
18148
|
+
},
|
|
18149
|
+
/***************************************************************************************************
|
|
18150
|
+
* Widget section describes the structural part of the proportional widget
|
|
18151
|
+
***************************************************************************************************/
|
|
18152
|
+
widget: proportionalWidget,
|
|
18153
|
+
/***************************************************************************************************
|
|
18154
|
+
* Configuration section describes the form that is used to configure the widget
|
|
18155
|
+
***************************************************************************************************/
|
|
18156
|
+
configurator: proportionalConfigurator,
|
|
18157
|
+
};
|
|
18158
|
+
|
|
18159
|
+
var _a$9, _b$9, _c$5, _d$5, _e$5, _f$5, _g$2;
|
|
18160
|
+
/* eslint-enable max-len */
|
|
18161
|
+
var DEFAULT_RISK_SCORE_FORMATTERS = [
|
|
18162
|
+
{
|
|
18163
|
+
componentType: RawFormatterComponent.lateLoadKey,
|
|
18164
|
+
label: $localize(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["Raw Formatter"], ["Raw Formatter"]))),
|
|
18165
|
+
dataTypes: {
|
|
18166
|
+
// @ts-ignore
|
|
18167
|
+
value: null,
|
|
18168
|
+
},
|
|
18169
|
+
},
|
|
18170
|
+
];
|
|
18171
|
+
var riskScoreConfigurator = (_a$9 = {},
|
|
18172
|
+
_a$9[exports.PizzagnaLayer.Structure] = (_b$9 = {},
|
|
18173
|
+
_b$9[DEFAULT_PIZZAGNA_ROOT] = {
|
|
18174
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
18175
|
+
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
18176
|
+
componentType: FormStackComponent.lateLoadKey,
|
|
18177
|
+
properties: {
|
|
18178
|
+
elementClass: "flex-grow-1 overflow-auto nui-scroll-shadows",
|
|
18179
|
+
// references to other components laid out in this form
|
|
18180
|
+
nodes: ["presentation", "tiles"],
|
|
18181
|
+
},
|
|
18182
|
+
providers: (_c$5 = {},
|
|
18183
|
+
_c$5[exports.WellKnownProviders.FormattersRegistry] = {
|
|
18184
|
+
providerId: NOVA_RISK_SCORE_FORMATTERS_REGISTRY,
|
|
18185
|
+
},
|
|
18186
|
+
_c$5),
|
|
18187
|
+
},
|
|
18188
|
+
// /presentation
|
|
18189
|
+
_b$9.presentation = {
|
|
18190
|
+
id: "presentation",
|
|
18191
|
+
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
18192
|
+
properties: {
|
|
18193
|
+
headerText: $localize(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["Presentation"], ["Presentation"]))),
|
|
18194
|
+
nodes: ["titleAndDescription", "refresher"],
|
|
18195
|
+
},
|
|
18196
|
+
},
|
|
18197
|
+
// /presentation/titleAndDescription
|
|
18198
|
+
_b$9.titleAndDescription = {
|
|
18199
|
+
id: "titleAndDescription",
|
|
18200
|
+
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
18201
|
+
providers: {
|
|
18202
|
+
converter: {
|
|
18203
|
+
providerId: NOVA_TITLE_AND_DESCRIPTION_CONVERTER,
|
|
18204
|
+
},
|
|
18205
|
+
},
|
|
18206
|
+
},
|
|
18207
|
+
_b$9.refresher = REFRESHER_CONFIGURATOR,
|
|
18208
|
+
// /tiles
|
|
18209
|
+
_b$9.tiles = {
|
|
18210
|
+
id: "tiles",
|
|
18211
|
+
componentType: RiskScoreTilesConfigurationComponent.lateLoadKey,
|
|
18212
|
+
properties: {
|
|
18213
|
+
// these components serve as a template for every KPI tile created
|
|
18214
|
+
template: [
|
|
18215
|
+
{
|
|
18216
|
+
// Risk Score tile description (label) configuration section
|
|
18217
|
+
id: "description",
|
|
18218
|
+
componentType: RiskScoreTileDescriptionConfigurationComponent.lateLoadKey,
|
|
18219
|
+
properties: {},
|
|
18220
|
+
providers: (_d$5 = {},
|
|
18221
|
+
// converter transforms the data between the widget and the form
|
|
18222
|
+
_d$5[exports.WellKnownProviders.Converter] = {
|
|
18223
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
18224
|
+
properties: {
|
|
18225
|
+
formParts: [
|
|
18226
|
+
{
|
|
18227
|
+
previewPath: "properties.widgetData",
|
|
18228
|
+
keys: [
|
|
18229
|
+
"label",
|
|
18230
|
+
"minValue",
|
|
18231
|
+
"maxValue",
|
|
18232
|
+
"description",
|
|
18233
|
+
"useStaticLabel",
|
|
18234
|
+
"staticLabel",
|
|
18235
|
+
],
|
|
18236
|
+
},
|
|
18237
|
+
],
|
|
18238
|
+
},
|
|
18239
|
+
},
|
|
18240
|
+
_d$5),
|
|
18241
|
+
},
|
|
18242
|
+
{
|
|
18243
|
+
// data source configuration section
|
|
18244
|
+
id: "dataSource",
|
|
18245
|
+
componentType: DataSourceConfigurationComponent.lateLoadKey,
|
|
18246
|
+
properties: {
|
|
18247
|
+
// for the DataSourceConfigurationComponent, this defines the list of data sources to pick from
|
|
18248
|
+
dataSourceProviders: [],
|
|
18249
|
+
errorComponent: DataSourceErrorComponent.lateLoadKey,
|
|
18250
|
+
},
|
|
18251
|
+
providers: (_e$5 = {},
|
|
18252
|
+
// converter transforms the data source metadata between the widget and the form
|
|
18253
|
+
_e$5[exports.WellKnownProviders.Converter] = {
|
|
18254
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
18255
|
+
properties: {
|
|
18256
|
+
formParts: [
|
|
18257
|
+
{
|
|
18258
|
+
// this component updates 'providerId' of 'dataSource'
|
|
18259
|
+
previewPath: "providers.dataSource",
|
|
18260
|
+
// TODO: Remove 'properties' key in v10 - NUI-5831
|
|
18261
|
+
keys: ["providerId", "properties"],
|
|
18262
|
+
},
|
|
18263
|
+
{
|
|
18264
|
+
// this component updates 'properties' of 'dataSource' via an adapter
|
|
18265
|
+
previewPath: "providers.adapter.properties.dataSource",
|
|
18266
|
+
keys: ["properties"],
|
|
18267
|
+
},
|
|
18268
|
+
],
|
|
18269
|
+
},
|
|
18270
|
+
},
|
|
18271
|
+
_e$5[exports.WellKnownProviders.Broadcaster] = {
|
|
18272
|
+
providerId: NOVA_PIZZAGNA_BROADCASTER,
|
|
18273
|
+
properties: {
|
|
18274
|
+
configs: [
|
|
18275
|
+
{
|
|
18276
|
+
trackOn: "component",
|
|
18277
|
+
key: "dataFieldIds",
|
|
18278
|
+
paths: [
|
|
18279
|
+
"data.{parentComponentId}/formatting.properties.dataFieldIds",
|
|
18280
|
+
],
|
|
18281
|
+
},
|
|
18282
|
+
],
|
|
18283
|
+
},
|
|
18284
|
+
},
|
|
18285
|
+
_e$5),
|
|
18286
|
+
},
|
|
18287
|
+
{
|
|
18288
|
+
id: "formatting",
|
|
18289
|
+
componentType: PresentationConfigurationComponent.lateLoadKey,
|
|
18290
|
+
providers: (_f$5 = {},
|
|
18291
|
+
_f$5[exports.WellKnownProviders.Converter] = {
|
|
18292
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
18293
|
+
properties: {
|
|
18294
|
+
formParts: [
|
|
18295
|
+
{
|
|
18296
|
+
previewPath: "properties.configuration.formatters.Value",
|
|
18297
|
+
keys: ["formatter"],
|
|
18298
|
+
},
|
|
18299
|
+
],
|
|
18300
|
+
},
|
|
18301
|
+
},
|
|
18302
|
+
_f$5),
|
|
18303
|
+
properties: {
|
|
18304
|
+
// Note: Now you should define your formatters in the KpiFormatterRegistry which can contain more formatter options
|
|
18305
|
+
// formatters: DEFAULT_RISK_SCORE_FORMATTERS,
|
|
18306
|
+
// Set default formatter to the configuration section as RawFormatterComponent.
|
|
18307
|
+
// In case Risk Scrore doesn't use the formatters yet, it will be overridden with default formatter value on first save
|
|
18308
|
+
formatter: {
|
|
18309
|
+
componentType: RawFormatterComponent.lateLoadKey,
|
|
18310
|
+
properties: {
|
|
18311
|
+
dataFieldIds: {
|
|
18312
|
+
value: "value",
|
|
18313
|
+
},
|
|
18314
|
+
},
|
|
18315
|
+
},
|
|
18316
|
+
},
|
|
18317
|
+
},
|
|
18318
|
+
],
|
|
18319
|
+
},
|
|
18320
|
+
providers: (_g$2 = {},
|
|
18321
|
+
// converter transforms the data between the widget and the form
|
|
18322
|
+
_g$2[exports.WellKnownProviders.Converter] = {
|
|
18323
|
+
providerId: NOVA_KPI_TILES_CONVERTER,
|
|
18324
|
+
},
|
|
18325
|
+
_g$2),
|
|
18326
|
+
},
|
|
18327
|
+
_b$9),
|
|
18328
|
+
_a$9);
|
|
18329
|
+
var templateObject_1$6, templateObject_2$3;
|
|
18330
|
+
|
|
18331
|
+
var _a$8, _b$8, _c$4, _d$4, _e$4, _f$4;
|
|
18332
|
+
var riskScoreWidget = (_a$8 = {},
|
|
18333
|
+
_a$8[exports.PizzagnaLayer.Structure] = Object.assign(Object.assign((_b$8 = {}, _b$8[DEFAULT_PIZZAGNA_ROOT] = {
|
|
18334
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
18335
|
+
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
18336
|
+
componentType: StackComponent.lateLoadKey,
|
|
18337
|
+
providers: (_c$4 = {},
|
|
18338
|
+
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
18339
|
+
_c$4[exports.WellKnownProviders.Refresher] = refresher(),
|
|
18340
|
+
// event proxy manages the transmission of events between widget and dashboard
|
|
18341
|
+
_c$4[exports.WellKnownProviders.EventProxy] = EVENT_PROXY,
|
|
18342
|
+
_c$4),
|
|
18343
|
+
properties: {
|
|
18344
|
+
nodes: ["header", "loading", "body"],
|
|
18345
|
+
},
|
|
18346
|
+
},
|
|
18347
|
+
// widget header
|
|
18348
|
+
_b$8.header = WIDGET_HEADER,
|
|
18349
|
+
// this is the loading bar below the header
|
|
18350
|
+
_b$8.loading = WIDGET_LOADING,
|
|
18351
|
+
// widget body
|
|
18352
|
+
_b$8.body = Object.assign(Object.assign({}, WIDGET_BODY), { properties: Object.assign(Object.assign({}, WIDGET_BODY.properties), { elementClass: "overflow-hidden" }) }), _b$8), widgetBodyContentNodes("tiles", NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER)), {
|
|
18353
|
+
// the main content node specifying a component that manages layout of the KPI tiles in a CSS grid
|
|
18354
|
+
tiles: {
|
|
18355
|
+
id: "tiles",
|
|
18356
|
+
componentType: TilesComponent.lateLoadKey,
|
|
18357
|
+
properties: {
|
|
18358
|
+
elementClass: "flex-grow-1 pt-2 px-3 pb-3 w-100",
|
|
18359
|
+
template: {
|
|
18360
|
+
componentType: RiskScoreTileComponent.lateLoadKey,
|
|
18361
|
+
providers: (_d$4 = {},
|
|
18362
|
+
_d$4[exports.WellKnownProviders.Adapter] = {
|
|
18363
|
+
providerId: NOVA_KPI_DATASOURCE_ADAPTER,
|
|
18364
|
+
properties: {
|
|
18365
|
+
propertyPath: "widgetData",
|
|
18366
|
+
},
|
|
18367
|
+
},
|
|
18368
|
+
_d$4),
|
|
18369
|
+
properties: {
|
|
18370
|
+
elementClass: "flex-grow-1",
|
|
18371
|
+
},
|
|
18372
|
+
},
|
|
18373
|
+
},
|
|
18374
|
+
}
|
|
18375
|
+
}),
|
|
17830
18376
|
_a$8[exports.PizzagnaLayer.Configuration] = (_e$4 = {},
|
|
17831
18377
|
_e$4[DEFAULT_PIZZAGNA_ROOT] = {
|
|
17832
18378
|
id: DEFAULT_PIZZAGNA_ROOT,
|
|
@@ -17838,7 +18384,7 @@
|
|
|
17838
18384
|
// default header configuration
|
|
17839
18385
|
_e$4.header = {
|
|
17840
18386
|
properties: {
|
|
17841
|
-
title: $localize(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["Empty
|
|
18387
|
+
title: $localize(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["Empty Risk Score Widget"], ["Empty Risk Score Widget"]))),
|
|
17842
18388
|
},
|
|
17843
18389
|
},
|
|
17844
18390
|
_e$4),
|
|
@@ -17846,10 +18392,12 @@
|
|
|
17846
18392
|
var templateObject_1$5;
|
|
17847
18393
|
|
|
17848
18394
|
var _a$7, _b$7;
|
|
18395
|
+
var tileDescriptionConfiguratorTemplatePath = "tiles.properties.template[0]";
|
|
18396
|
+
var dataSourceConfiguratorTemplatePath = "tiles.properties.template[1]";
|
|
17849
18397
|
/***********************************************************************************************************
|
|
17850
|
-
*
|
|
18398
|
+
* KPI widget definition starts here
|
|
17851
18399
|
***********************************************************************************************************/
|
|
17852
|
-
var
|
|
18400
|
+
var riskScore = {
|
|
17853
18401
|
/***************************************************************************************************
|
|
17854
18402
|
* Paths to important settings in this type definition
|
|
17855
18403
|
***************************************************************************************************/
|
|
@@ -17860,21 +18408,21 @@
|
|
|
17860
18408
|
configurator: (_b$7 = {},
|
|
17861
18409
|
_b$7[exports.WellKnownPathKey.Root] = DEFAULT_PIZZAGNA_ROOT,
|
|
17862
18410
|
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
17863
|
-
_b$7[exports.WellKnownPathKey.DataSourceConfigComponentType] = "
|
|
18411
|
+
_b$7[exports.WellKnownPathKey.DataSourceConfigComponentType] = dataSourceConfiguratorTemplatePath + ".componentType",
|
|
18412
|
+
// this points at the component type you need to change if you want to change the component for tile description configuration
|
|
18413
|
+
_b$7[exports.WellKnownPathKey.TileDescriptionConfigComponentType] = tileDescriptionConfiguratorTemplatePath + ".componentType",
|
|
17864
18414
|
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
17865
|
-
_b$7[exports.WellKnownPathKey.DataSourceProviders] = "
|
|
17866
|
-
// this is where donut content chart formatters are defined
|
|
17867
|
-
_b$7[exports.WellKnownPathKey.Formatters] = "chartOptionsEditor.properties.chartOptions.contentFormatters",
|
|
18415
|
+
_b$7[exports.WellKnownPathKey.DataSourceProviders] = dataSourceConfiguratorTemplatePath + ".properties.dataSourceProviders",
|
|
17868
18416
|
_b$7),
|
|
17869
18417
|
},
|
|
17870
18418
|
/***************************************************************************************************
|
|
17871
|
-
* Widget section describes the structural part of the
|
|
18419
|
+
* Widget section describes the structural part of the KPI widget
|
|
17872
18420
|
***************************************************************************************************/
|
|
17873
|
-
widget:
|
|
18421
|
+
widget: riskScoreWidget,
|
|
17874
18422
|
/***************************************************************************************************
|
|
17875
|
-
*
|
|
18423
|
+
* Configurator section describes the form that is used to configure the widget
|
|
17876
18424
|
***************************************************************************************************/
|
|
17877
|
-
configurator:
|
|
18425
|
+
configurator: riskScoreConfigurator,
|
|
17878
18426
|
};
|
|
17879
18427
|
|
|
17880
18428
|
var _a$6, _b$6, _c$3, _d$3, _e$3, _f$3, _g$1;
|
|
@@ -18364,6 +18912,7 @@
|
|
|
18364
18912
|
EmbeddedContentComponent,
|
|
18365
18913
|
GridsterItemWidgetIdDirective,
|
|
18366
18914
|
KpiComponent,
|
|
18915
|
+
RiskScoreTileComponent,
|
|
18367
18916
|
LineChartComponent,
|
|
18368
18917
|
LoadingComponent,
|
|
18369
18918
|
ProportionalWidgetComponent,
|
|
@@ -18394,6 +18943,7 @@
|
|
|
18394
18943
|
var entryComponents = [
|
|
18395
18944
|
EmbeddedContentComponent,
|
|
18396
18945
|
KpiComponent,
|
|
18946
|
+
RiskScoreTileComponent,
|
|
18397
18947
|
LineChartComponent,
|
|
18398
18948
|
LoadingComponent,
|
|
18399
18949
|
ProportionalWidgetComponent,
|
|
@@ -18419,9 +18969,10 @@
|
|
|
18419
18969
|
ProportionalDonutContentComponent,
|
|
18420
18970
|
];
|
|
18421
18971
|
var NuiDashboardsModule = /** @class */ (function () {
|
|
18422
|
-
function NuiDashboardsModule(widgetTypesService, componentRegistry, eventRegistry, kpiFormattersRegistry) {
|
|
18972
|
+
function NuiDashboardsModule(widgetTypesService, componentRegistry, eventRegistry, kpiFormattersRegistry, riskScoreFormattersRegistry) {
|
|
18423
18973
|
var e_1, _a;
|
|
18424
18974
|
widgetTypesService.registerWidgetType("kpi", 1, kpi);
|
|
18975
|
+
widgetTypesService.registerWidgetType("risk-score", 1, riskScore);
|
|
18425
18976
|
widgetTypesService.registerWidgetType("table", 1, table);
|
|
18426
18977
|
widgetTypesService.registerWidgetType("proportional", 1, proportional);
|
|
18427
18978
|
widgetTypesService.registerWidgetType("timeseries", 1, timeseries);
|
|
@@ -18455,14 +19006,16 @@
|
|
|
18455
19006
|
eventRegistry.registerEvent(DATA_SOURCE_OUTPUT);
|
|
18456
19007
|
eventRegistry.registerEvent(DATA_SOURCE_BUSY);
|
|
18457
19008
|
kpiFormattersRegistry.addItems(DEFAULT_KPI_FORMATTERS);
|
|
19009
|
+
riskScoreFormattersRegistry.addItems(DEFAULT_RISK_SCORE_FORMATTERS);
|
|
18458
19010
|
}
|
|
18459
19011
|
return NuiDashboardsModule;
|
|
18460
19012
|
}());
|
|
18461
|
-
/** @nocollapse */ NuiDashboardsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NuiDashboardsModule, deps: [{ token: WidgetTypesService }, { token: ComponentRegistryService }, { token: EventRegistryService }, { token: KpiFormattersRegistryService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
19013
|
+
/** @nocollapse */ NuiDashboardsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NuiDashboardsModule, deps: [{ token: WidgetTypesService }, { token: ComponentRegistryService }, { token: EventRegistryService }, { token: KpiFormattersRegistryService }, { token: RiskScoreFormattersRegistryService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
18462
19014
|
/** @nocollapse */ NuiDashboardsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NuiDashboardsModule, declarations: [DashboardComponent,
|
|
18463
19015
|
EmbeddedContentComponent,
|
|
18464
19016
|
GridsterItemWidgetIdDirective,
|
|
18465
19017
|
KpiComponent,
|
|
19018
|
+
RiskScoreTileComponent,
|
|
18466
19019
|
LineChartComponent,
|
|
18467
19020
|
LoadingComponent,
|
|
18468
19021
|
ProportionalWidgetComponent,
|
|
@@ -18510,11 +19063,13 @@
|
|
|
18510
19063
|
i3.NuiSearchModule,
|
|
18511
19064
|
i3.NuiCommonModule,
|
|
18512
19065
|
i3.NuiRepeatModule,
|
|
19066
|
+
i3.NuiRiskScoreModule,
|
|
18513
19067
|
i3.NuiSelectModule,
|
|
18514
19068
|
i3.NuiPopoverModule], exports: [DashboardComponent,
|
|
18515
19069
|
EmbeddedContentComponent,
|
|
18516
19070
|
GridsterItemWidgetIdDirective,
|
|
18517
19071
|
KpiComponent,
|
|
19072
|
+
RiskScoreTileComponent,
|
|
18518
19073
|
LineChartComponent,
|
|
18519
19074
|
LoadingComponent,
|
|
18520
19075
|
ProportionalWidgetComponent,
|
|
@@ -18569,6 +19124,7 @@
|
|
|
18569
19124
|
i3.NuiSearchModule,
|
|
18570
19125
|
i3.NuiCommonModule,
|
|
18571
19126
|
i3.NuiRepeatModule,
|
|
19127
|
+
i3.NuiRiskScoreModule,
|
|
18572
19128
|
i3.NuiSelectModule,
|
|
18573
19129
|
i3.NuiPopoverModule,
|
|
18574
19130
|
]] });
|
|
@@ -18598,6 +19154,7 @@
|
|
|
18598
19154
|
i3.NuiSearchModule,
|
|
18599
19155
|
i3.NuiCommonModule,
|
|
18600
19156
|
i3.NuiRepeatModule,
|
|
19157
|
+
i3.NuiRiskScoreModule,
|
|
18601
19158
|
i3.NuiSelectModule,
|
|
18602
19159
|
i3.NuiPopoverModule,
|
|
18603
19160
|
],
|
|
@@ -18611,7 +19168,7 @@
|
|
|
18611
19168
|
exports: dashboardComponents,
|
|
18612
19169
|
entryComponents: entryComponents,
|
|
18613
19170
|
}]
|
|
18614
|
-
}], ctorParameters: function () { return [{ type: WidgetTypesService }, { type: ComponentRegistryService }, { type: EventRegistryService }, { type: KpiFormattersRegistryService }]; } });
|
|
19171
|
+
}], ctorParameters: function () { return [{ type: WidgetTypesService }, { type: ComponentRegistryService }, { type: EventRegistryService }, { type: KpiFormattersRegistryService }, { type: RiskScoreFormattersRegistryService }]; } });
|
|
18615
19172
|
|
|
18616
19173
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18617
19174
|
|
|
@@ -18621,6 +19178,10 @@
|
|
|
18621
19178
|
|
|
18622
19179
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18623
19180
|
|
|
19181
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
19182
|
+
|
|
19183
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
19184
|
+
|
|
18624
19185
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18625
19186
|
|
|
18626
19187
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -18682,6 +19243,33 @@
|
|
|
18682
19243
|
|
|
18683
19244
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18684
19245
|
|
|
19246
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
19247
|
+
//
|
|
19248
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19249
|
+
// of this software and associated documentation files (the "Software"), to
|
|
19250
|
+
// deal in the Software without restriction, including without limitation the
|
|
19251
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
19252
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
19253
|
+
// furnished to do so, subject to the following conditions:
|
|
19254
|
+
//
|
|
19255
|
+
// The above copyright notice and this permission notice shall be included in
|
|
19256
|
+
// all copies or substantial portions of the Software.
|
|
19257
|
+
//
|
|
19258
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19259
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19260
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19261
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19262
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19263
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19264
|
+
// THE SOFTWARE.
|
|
19265
|
+
exports.RiskScoreFormatterTypes = void 0;
|
|
19266
|
+
(function (RiskScoreFormatterTypes) {
|
|
19267
|
+
// ROOT ?
|
|
19268
|
+
RiskScoreFormatterTypes["Value"] = "Value";
|
|
19269
|
+
})(exports.RiskScoreFormatterTypes || (exports.RiskScoreFormatterTypes = {}));
|
|
19270
|
+
|
|
19271
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
19272
|
+
|
|
18685
19273
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18686
19274
|
/**
|
|
18687
19275
|
* Use this function to apply endpoints on status data returned by a data source so that when the status
|
|
@@ -18992,6 +19580,7 @@
|
|
|
18992
19580
|
exports.NOVA_PIZZAGNA_BROADCASTER = NOVA_PIZZAGNA_BROADCASTER;
|
|
18993
19581
|
exports.NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY = NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY;
|
|
18994
19582
|
exports.NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER = NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER;
|
|
19583
|
+
exports.NOVA_RISK_SCORE_FORMATTERS_REGISTRY = NOVA_RISK_SCORE_FORMATTERS_REGISTRY;
|
|
18995
19584
|
exports.NOVA_STATUS_CONTENT_FALLBACK_ADAPTER = NOVA_STATUS_CONTENT_FALLBACK_ADAPTER;
|
|
18996
19585
|
exports.NOVA_TABLE_COLUMNS_CONVERTER = NOVA_TABLE_COLUMNS_CONVERTER;
|
|
18997
19586
|
exports.NOVA_TABLE_DATASOURCE_ADAPTER = NOVA_TABLE_DATASOURCE_ADAPTER;
|
|
@@ -19036,6 +19625,10 @@
|
|
|
19036
19625
|
exports.Refresher = Refresher;
|
|
19037
19626
|
exports.RefresherConfigurationComponent = RefresherConfigurationComponent;
|
|
19038
19627
|
exports.RefresherSettingsService = RefresherSettingsService;
|
|
19628
|
+
exports.RiskScoreFormattersRegistryService = RiskScoreFormattersRegistryService;
|
|
19629
|
+
exports.RiskScoreTileComponent = RiskScoreTileComponent;
|
|
19630
|
+
exports.RiskScoreTileDescriptionConfigurationComponent = RiskScoreTileDescriptionConfigurationComponent;
|
|
19631
|
+
exports.RiskScoreTilesConfigurationComponent = RiskScoreTilesConfigurationComponent;
|
|
19039
19632
|
exports.SCROLL_NEXT_PAGE = SCROLL_NEXT_PAGE;
|
|
19040
19633
|
exports.SET_PROPERTY_VALUE = SET_PROPERTY_VALUE;
|
|
19041
19634
|
exports.SET_TIMEFRAME = SET_TIMEFRAME;
|