@nova-ui/dashboards 12.0.40 → 12.0.41
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 +993 -397
- 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/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 +660 -82
- 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/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/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
|
@@ -3,7 +3,7 @@ import { CommonModule, DecimalPipe, DOCUMENT } from '@angular/common';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Component, Input, HostBinding, Pipe, NgModule, InjectionToken, Injectable, Inject, Optional, Directive, NgZone, Injector, EventEmitter, SimpleChange, Output, Host, Self, ViewEncapsulation, ViewChild, ViewChildren, SecurityContext, ChangeDetectionStrategy, HostListener, ElementRef, forwardRef, ViewContainerRef, ContentChildren } from '@angular/core';
|
|
5
5
|
import * as i3 from '@nova-ui/bits';
|
|
6
|
-
import { UnitBase, NuiImageModule, EventDefinition, immutableSet, EventBus, VirtualViewportManager, uuid, TimeframeService, LoggerService, ResizeObserverDirective, nameof, SorterDirection, DEFAULT_INTERACTIVE_ELEMENTS, TableRowComponent, HistoryStorage, OverlayUtilitiesService, getOverlayPositions, NuiFormFieldControl, SelectV2Component, OVERLAY_CONTAINER, SpinnerSize, removeErrors, NuiBusyModule, NuiIconModule, NuiMenuModule, NuiPopupModule, NuiDialogModule, NuiSpinnerModule, NuiTextboxModule, NuiFormFieldModule, NuiButtonModule, NuiOverlayAdditionsModule, NuiSelectV2Module, NuiRadioModule, NuiCheckboxModule, NuiValidationMessageModule, NuiExpanderModule, NuiPanelModule, NuiDividerModule, NuiSwitchModule, NuiMessageModule, NuiWizardModule, NuiSorterModule, NuiSearchModule, NuiRepeatModule, NuiProgressModule, NuiTableModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTooltipModule, NuiCommonModule, NuiSelectModule, NuiPopoverModule } from '@nova-ui/bits';
|
|
6
|
+
import { UnitBase, NuiImageModule, EventDefinition, immutableSet, EventBus, VirtualViewportManager, uuid, TimeframeService, LoggerService, ResizeObserverDirective, nameof, SorterDirection, DEFAULT_INTERACTIVE_ELEMENTS, TableRowComponent, HistoryStorage, OverlayUtilitiesService, getOverlayPositions, NuiFormFieldControl, SelectV2Component, OVERLAY_CONTAINER, SpinnerSize, removeErrors, NuiBusyModule, NuiIconModule, NuiMenuModule, NuiPopupModule, NuiDialogModule, NuiSpinnerModule, NuiTextboxModule, NuiFormFieldModule, NuiButtonModule, NuiOverlayAdditionsModule, NuiSelectV2Module, NuiRadioModule, NuiCheckboxModule, NuiValidationMessageModule, NuiExpanderModule, NuiPanelModule, NuiDividerModule, NuiSwitchModule, NuiMessageModule, NuiWizardModule, NuiSorterModule, NuiSearchModule, NuiRepeatModule, NuiProgressModule, NuiTableModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTooltipModule, NuiCommonModule, NuiRiskScoreModule, NuiSelectModule, NuiPopoverModule } from '@nova-ui/bits';
|
|
7
7
|
import * as i7 from '@angular/cdk/scrolling';
|
|
8
8
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
9
9
|
import * as i1$2 from '@angular/forms';
|
|
@@ -240,6 +240,7 @@ const NOVA_PIZZAGNA_BROADCASTER = "NOVA_PIZZAGNA_BROADCASTER";
|
|
|
240
240
|
const NOVA_VIRTUAL_VIEWPORT_MANAGER = "NOVA_VIRTUAL_VIEWPORT_MANAGER";
|
|
241
241
|
const NOVA_TABLE_FORMATTERS_REGISTRY = "NOVA_TABLE_FORMATTERS_REGISTRY";
|
|
242
242
|
const NOVA_KPI_FORMATTERS_REGISTRY = "NOVA_KPI_FORMATTERS_REGISTRY";
|
|
243
|
+
const NOVA_RISK_SCORE_FORMATTERS_REGISTRY = "NOVA_RISK_SCORE_FORMATTERS_REGISTRY";
|
|
243
244
|
const NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY = "NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY";
|
|
244
245
|
const NOVA_TEST_REGISTRY = "NOVA_TEST_REGISTRY";
|
|
245
246
|
const NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER = "NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER";
|
|
@@ -2928,6 +2929,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
2928
2929
|
type: Injectable,
|
|
2929
2930
|
args: [{ providedIn: "root" }]
|
|
2930
2931
|
}], ctorParameters: function () { return [{ type: i3.LoggerService }]; } });
|
|
2932
|
+
class RiskScoreFormattersRegistryService extends FormatterRegistryService {
|
|
2933
|
+
constructor(logger) {
|
|
2934
|
+
super(logger, "RiskScoreFormattersRegistryService");
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
/** @nocollapse */ RiskScoreFormattersRegistryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreFormattersRegistryService, deps: [{ token: i3.LoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2938
|
+
/** @nocollapse */ RiskScoreFormattersRegistryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreFormattersRegistryService, providedIn: "root" });
|
|
2939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreFormattersRegistryService, decorators: [{
|
|
2940
|
+
type: Injectable,
|
|
2941
|
+
args: [{ providedIn: "root" }]
|
|
2942
|
+
}], ctorParameters: function () { return [{ type: i3.LoggerService }]; } });
|
|
2931
2943
|
class ProportionalDonutContentFormattersRegistryService extends FormatterRegistryService {
|
|
2932
2944
|
constructor(logger) {
|
|
2933
2945
|
super(logger, "ProportionalDonutContentFormattersRegistryService");
|
|
@@ -3252,6 +3264,11 @@ class ProviderRegistryService {
|
|
|
3252
3264
|
useExisting: KpiFormattersRegistryService,
|
|
3253
3265
|
deps: [PizzagnaService],
|
|
3254
3266
|
},
|
|
3267
|
+
[NOVA_RISK_SCORE_FORMATTERS_REGISTRY]: {
|
|
3268
|
+
provide: FORMATTERS_REGISTRY,
|
|
3269
|
+
useExisting: RiskScoreFormattersRegistryService,
|
|
3270
|
+
deps: [PizzagnaService],
|
|
3271
|
+
},
|
|
3255
3272
|
[NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY]: {
|
|
3256
3273
|
provide: FORMATTERS_REGISTRY,
|
|
3257
3274
|
useExisting: ProportionalDonutContentFormattersRegistryService,
|
|
@@ -5329,6 +5346,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
5329
5346
|
args: ["gridContainer", { static: true }]
|
|
5330
5347
|
}] } });
|
|
5331
5348
|
|
|
5349
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5350
|
+
class RiskScoreTileComponent {
|
|
5351
|
+
constructor(changeDetector, dataSource, eventBus) {
|
|
5352
|
+
this.changeDetector = changeDetector;
|
|
5353
|
+
this.dataSource = dataSource;
|
|
5354
|
+
this.eventBus = eventBus;
|
|
5355
|
+
this.busy = false;
|
|
5356
|
+
this.elementClass = "";
|
|
5357
|
+
this.defaultColor = "var(--nui-color-bg-secondary)";
|
|
5358
|
+
}
|
|
5359
|
+
get interactive() {
|
|
5360
|
+
var _a, _b, _c, _d, _e;
|
|
5361
|
+
return (((((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.interactive) ||
|
|
5362
|
+
((_d = (_c = (_b = this.dataSource) === null || _b === void 0 ? void 0 : _b.features) === null || _c === void 0 ? void 0 : _c.getFeatureConfig(WellKnownDataSourceFeatures.Interactivity)) === null || _d === void 0 ? void 0 : _d.enabled)) &&
|
|
5363
|
+
!_isNil((_e = this.widgetData) === null || _e === void 0 ? void 0 : _e.value)) ||
|
|
5364
|
+
false);
|
|
5365
|
+
}
|
|
5366
|
+
onInteraction() {
|
|
5367
|
+
if (!this.interactive) {
|
|
5368
|
+
return;
|
|
5369
|
+
}
|
|
5370
|
+
this.eventBus
|
|
5371
|
+
.getStream(INTERACTION)
|
|
5372
|
+
.next({ payload: { data: this.widgetData } });
|
|
5373
|
+
}
|
|
5374
|
+
getScaleBroker(id) {
|
|
5375
|
+
if (this.syncValuesBroker) {
|
|
5376
|
+
return this.syncValuesBroker.find((b) => b.id === id);
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5379
|
+
ngOnChanges(changes) {
|
|
5380
|
+
var _a;
|
|
5381
|
+
if (changes.configuration) {
|
|
5382
|
+
const formattersConfiguration = changes.configuration.currentValue.formatters;
|
|
5383
|
+
if (formattersConfiguration) {
|
|
5384
|
+
this.formattersProperties = this.getFormatterProperties(formattersConfiguration);
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5387
|
+
if (changes.widgetData) {
|
|
5388
|
+
if ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.formatters) {
|
|
5389
|
+
this.formattersProperties = this.getFormatterProperties(this.configuration.formatters);
|
|
5390
|
+
}
|
|
5391
|
+
}
|
|
5392
|
+
}
|
|
5393
|
+
/**
|
|
5394
|
+
* Iterates over formatters and maps their properties from the data
|
|
5395
|
+
*
|
|
5396
|
+
* @param formattersConfiguration
|
|
5397
|
+
*/
|
|
5398
|
+
getFormatterProperties(formattersConfiguration) {
|
|
5399
|
+
const formatterKeys = Object.keys(formattersConfiguration);
|
|
5400
|
+
const formattersProperties = formatterKeys.reduce((acc, key) => {
|
|
5401
|
+
var _a;
|
|
5402
|
+
const formatterCfg = (_a = formattersConfiguration[key]) === null || _a === void 0 ? void 0 : _a.formatter;
|
|
5403
|
+
if (formatterCfg) {
|
|
5404
|
+
acc[key] = {
|
|
5405
|
+
data: mapDataToFormatterProperties(formatterCfg, this.widgetData),
|
|
5406
|
+
};
|
|
5407
|
+
}
|
|
5408
|
+
return acc;
|
|
5409
|
+
}, {});
|
|
5410
|
+
return formattersProperties;
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5413
|
+
RiskScoreTileComponent.lateLoadKey = "RiskScoreTileComponent";
|
|
5414
|
+
/** @nocollapse */ RiskScoreTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component });
|
|
5415
|
+
/** @nocollapse */ RiskScoreTileComponent.ɵcmp = i0.ɵɵ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, 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.BusyComponent, selector: "[nui-busy]", inputs: ["disableTabNavigation", "busy"] }, { type: i3.RiskScoreComponent, selector: "nui-risk-score", inputs: ["level", "minLevel", "maxLevel", "title"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "useZoom", "margin", "minScale", "maxZoom", "minZoom", "maxScale", "scaleIN$", "scaleOUT$"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTileComponent, decorators: [{
|
|
5417
|
+
type: Component,
|
|
5418
|
+
args: [{
|
|
5419
|
+
selector: "nui-risk-score-tile",
|
|
5420
|
+
templateUrl: "./risk-score-tile.component.html",
|
|
5421
|
+
styleUrls: ["./risk-score-tile.component.less"],
|
|
5422
|
+
encapsulation: ViewEncapsulation.Emulated,
|
|
5423
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5424
|
+
}]
|
|
5425
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
5426
|
+
type: Optional
|
|
5427
|
+
}, {
|
|
5428
|
+
type: Inject,
|
|
5429
|
+
args: [DATA_SOURCE]
|
|
5430
|
+
}] }, { type: i3.EventBus, decorators: [{
|
|
5431
|
+
type: Inject,
|
|
5432
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
5433
|
+
}] }]; }, propDecorators: { widgetData: [{
|
|
5434
|
+
type: Input
|
|
5435
|
+
}], syncValuesBroker: [{
|
|
5436
|
+
type: Input
|
|
5437
|
+
}], configuration: [{
|
|
5438
|
+
type: Input
|
|
5439
|
+
}], busy: [{
|
|
5440
|
+
type: Input
|
|
5441
|
+
}], elementClass: [{
|
|
5442
|
+
type: HostBinding,
|
|
5443
|
+
args: ["class"]
|
|
5444
|
+
}] } });
|
|
5445
|
+
|
|
5332
5446
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5333
5447
|
class DelayedMousePresenceDetectionDirective {
|
|
5334
5448
|
constructor() {
|
|
@@ -7798,37 +7912,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
7798
7912
|
args: [DATA_SOURCE]
|
|
7799
7913
|
}] }, { type: TimeseriesScalesService }, { type: i0.ChangeDetectorRef }]; } });
|
|
7800
7914
|
|
|
7801
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7802
|
-
class TimeseriesChartPresetService {
|
|
7803
|
-
constructor() {
|
|
7804
|
-
this.presets = {
|
|
7805
|
-
[TimeseriesChartPreset.Line]: {
|
|
7806
|
-
componentType: LineChartComponent.lateLoadKey,
|
|
7807
|
-
},
|
|
7808
|
-
[TimeseriesChartPreset.StackedArea]: {
|
|
7809
|
-
componentType: StackedAreaChartComponent.lateLoadKey,
|
|
7810
|
-
},
|
|
7811
|
-
[TimeseriesChartPreset.StackedPercentageArea]: {
|
|
7812
|
-
componentType: StackedPercentageAreaChartComponent.lateLoadKey,
|
|
7813
|
-
},
|
|
7814
|
-
[TimeseriesChartPreset.StackedBar]: {
|
|
7815
|
-
componentType: StackedBarChartComponent.lateLoadKey,
|
|
7816
|
-
},
|
|
7817
|
-
[TimeseriesChartPreset.StatusBar]: {
|
|
7818
|
-
componentType: StatusBarChartComponent.lateLoadKey,
|
|
7819
|
-
},
|
|
7820
|
-
};
|
|
7821
|
-
}
|
|
7822
|
-
}
|
|
7823
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7824
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, providedIn: "root" });
|
|
7825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, decorators: [{
|
|
7826
|
-
type: Injectable,
|
|
7827
|
-
args: [{
|
|
7828
|
-
providedIn: "root",
|
|
7829
|
-
}]
|
|
7830
|
-
}], ctorParameters: function () { return []; } });
|
|
7831
|
-
|
|
7832
7915
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7833
7916
|
const TIMESERIES_INSPECTION_MENU_ZOOM_IN = {
|
|
7834
7917
|
id: "TIMESERIES_INSPECTION_MENU_ZOOM_IN",
|
|
@@ -7958,6 +8041,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
7958
8041
|
type: Input
|
|
7959
8042
|
}] } });
|
|
7960
8043
|
|
|
8044
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8045
|
+
class TimeseriesChartPresetService {
|
|
8046
|
+
constructor() {
|
|
8047
|
+
this.presets = {
|
|
8048
|
+
[TimeseriesChartPreset.Line]: {
|
|
8049
|
+
componentType: LineChartComponent.lateLoadKey,
|
|
8050
|
+
},
|
|
8051
|
+
[TimeseriesChartPreset.StackedArea]: {
|
|
8052
|
+
componentType: StackedAreaChartComponent.lateLoadKey,
|
|
8053
|
+
},
|
|
8054
|
+
[TimeseriesChartPreset.StackedPercentageArea]: {
|
|
8055
|
+
componentType: StackedPercentageAreaChartComponent.lateLoadKey,
|
|
8056
|
+
},
|
|
8057
|
+
[TimeseriesChartPreset.StackedBar]: {
|
|
8058
|
+
componentType: StackedBarChartComponent.lateLoadKey,
|
|
8059
|
+
},
|
|
8060
|
+
[TimeseriesChartPreset.StatusBar]: {
|
|
8061
|
+
componentType: StatusBarChartComponent.lateLoadKey,
|
|
8062
|
+
},
|
|
8063
|
+
};
|
|
8064
|
+
}
|
|
8065
|
+
}
|
|
8066
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8067
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, providedIn: "root" });
|
|
8068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TimeseriesChartPresetService, decorators: [{
|
|
8069
|
+
type: Injectable,
|
|
8070
|
+
args: [{
|
|
8071
|
+
providedIn: "root",
|
|
8072
|
+
}]
|
|
8073
|
+
}], ctorParameters: function () { return []; } });
|
|
8074
|
+
|
|
7961
8075
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7962
8076
|
/** @ignore */
|
|
7963
8077
|
class TimeseriesWidgetComponent {
|
|
@@ -12132,6 +12246,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
12132
12246
|
args: [RefreshRateConfiguratorComponent]
|
|
12133
12247
|
}] } });
|
|
12134
12248
|
|
|
12249
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
12250
|
+
class RiskScoreTileDescriptionConfigurationComponent {
|
|
12251
|
+
constructor(changeDetector, formBuilder) {
|
|
12252
|
+
this.changeDetector = changeDetector;
|
|
12253
|
+
this.formBuilder = formBuilder;
|
|
12254
|
+
this.MAX_DESCRIPTION_LENGTH = 150;
|
|
12255
|
+
this.label = "";
|
|
12256
|
+
this.minValue = 0;
|
|
12257
|
+
this.maxValue = 100;
|
|
12258
|
+
this.description = "";
|
|
12259
|
+
this.useStaticLabel = false;
|
|
12260
|
+
this.staticLabel = "";
|
|
12261
|
+
this.formReady = new EventEmitter();
|
|
12262
|
+
}
|
|
12263
|
+
ngOnInit() {
|
|
12264
|
+
this.form = this.formBuilder.group({
|
|
12265
|
+
label: [this.label, [Validators.required]],
|
|
12266
|
+
minValue: [this.minValue, [Validators.required]],
|
|
12267
|
+
maxValue: [this.maxValue, [Validators.required]],
|
|
12268
|
+
description: [
|
|
12269
|
+
this.description,
|
|
12270
|
+
[Validators.maxLength(this.MAX_DESCRIPTION_LENGTH)],
|
|
12271
|
+
],
|
|
12272
|
+
useStaticLabel: [this.useStaticLabel, [Validators.required]],
|
|
12273
|
+
staticLabel: [this.staticLabel],
|
|
12274
|
+
});
|
|
12275
|
+
this.formReady.emit(this.form);
|
|
12276
|
+
}
|
|
12277
|
+
ngOnChanges(changes) {
|
|
12278
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12279
|
+
if (changes.label) {
|
|
12280
|
+
(_a = this.form) === null || _a === void 0 ? void 0 : _a.patchValue({ label: changes.label.currentValue });
|
|
12281
|
+
}
|
|
12282
|
+
if (changes.minValue) {
|
|
12283
|
+
(_b = this.form) === null || _b === void 0 ? void 0 : _b.patchValue({ minValue: changes.minValue.currentValue });
|
|
12284
|
+
}
|
|
12285
|
+
if (changes.maxValue) {
|
|
12286
|
+
(_c = this.form) === null || _c === void 0 ? void 0 : _c.patchValue({ maxValue: changes.maxValue.currentValue });
|
|
12287
|
+
}
|
|
12288
|
+
if (changes.description) {
|
|
12289
|
+
(_d = this.form) === null || _d === void 0 ? void 0 : _d.patchValue({
|
|
12290
|
+
description: changes.description.currentValue,
|
|
12291
|
+
});
|
|
12292
|
+
}
|
|
12293
|
+
if (changes.useStaticLabel) {
|
|
12294
|
+
(_e = this.form) === null || _e === void 0 ? void 0 : _e.patchValue({
|
|
12295
|
+
useStaticLabel: changes.useStaticLabel.currentValue,
|
|
12296
|
+
});
|
|
12297
|
+
}
|
|
12298
|
+
if (changes.staticLabel) {
|
|
12299
|
+
(_f = this.form) === null || _f === void 0 ? void 0 : _f.patchValue({
|
|
12300
|
+
staticLabel: changes.staticLabel.currentValue,
|
|
12301
|
+
});
|
|
12302
|
+
}
|
|
12303
|
+
}
|
|
12304
|
+
}
|
|
12305
|
+
RiskScoreTileDescriptionConfigurationComponent.lateLoadKey = "RiskScoreTileDescriptionConfigurationComponent";
|
|
12306
|
+
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
12307
|
+
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵcmp = i0.ɵɵ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, 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.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i3.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.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "disabled", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "customBoxWidth", "name", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { type: i3.SwitchComponent, selector: "nui-switch", inputs: ["ariaLabel", "value", "disabled"], outputs: ["valueChange"] }, { type: i3.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], directives: [{ type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "async": i4.AsyncPipe, "nuiWidgetEditorAccordionFormState": WidgetEditorAccordionFormStatePipe, "nuiFormHeaderIconPipe": FormHeaderIconPipePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
12309
|
+
type: Component,
|
|
12310
|
+
args: [{
|
|
12311
|
+
selector: "nui-risk-score-tile-description-configuration",
|
|
12312
|
+
templateUrl: "./risk-score-tile-description-configuration.component.html",
|
|
12313
|
+
styleUrls: ["./risk-score-tile-description-configuration.component.less"],
|
|
12314
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12315
|
+
}]
|
|
12316
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$2.FormBuilder }]; }, propDecorators: { componentId: [{
|
|
12317
|
+
type: Input
|
|
12318
|
+
}], label: [{
|
|
12319
|
+
type: Input
|
|
12320
|
+
}], minValue: [{
|
|
12321
|
+
type: Input
|
|
12322
|
+
}], maxValue: [{
|
|
12323
|
+
type: Input
|
|
12324
|
+
}], description: [{
|
|
12325
|
+
type: Input
|
|
12326
|
+
}], useStaticLabel: [{
|
|
12327
|
+
type: Input
|
|
12328
|
+
}], staticLabel: [{
|
|
12329
|
+
type: Input
|
|
12330
|
+
}], formReady: [{
|
|
12331
|
+
type: Output
|
|
12332
|
+
}] } });
|
|
12333
|
+
|
|
12135
12334
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
12136
12335
|
const thresholdsValidator = (form) => {
|
|
12137
12336
|
const critical = form.get("criticalThresholdValue");
|
|
@@ -13165,50 +13364,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
13165
13364
|
type: Output
|
|
13166
13365
|
}] } });
|
|
13167
13366
|
|
|
13168
|
-
// ©
|
|
13169
|
-
//
|
|
13170
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13171
|
-
// of this software and associated documentation files (the "Software"), to
|
|
13172
|
-
// deal in the Software without restriction, including without limitation the
|
|
13173
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
13174
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
13175
|
-
// furnished to do so, subject to the following conditions:
|
|
13176
|
-
//
|
|
13177
|
-
// The above copyright notice and this permission notice shall be included in
|
|
13178
|
-
// all copies or substantial portions of the Software.
|
|
13179
|
-
//
|
|
13180
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13181
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
13182
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13183
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
13184
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
13185
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
13186
|
-
// THE SOFTWARE.
|
|
13367
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13187
13368
|
/**
|
|
13188
|
-
* This
|
|
13189
|
-
* We replace the parent formControl method with our own implementation that also calls the original function
|
|
13190
|
-
* @param formControl
|
|
13191
|
-
* @param callback Run this callback when the `formControl.markAsTouched` is run
|
|
13369
|
+
* This component and its related form represent a collection of KPI tile configuration components
|
|
13192
13370
|
*/
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
// @ts-ignore
|
|
13197
|
-
// eslint-disable-next-line prefer-rest-params
|
|
13198
|
-
origFunc.apply(formControl, arguments);
|
|
13199
|
-
callback();
|
|
13200
|
-
};
|
|
13201
|
-
}
|
|
13202
|
-
|
|
13203
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13204
|
-
class DescriptionConfigurationV2Component {
|
|
13205
|
-
constructor(formBuilder, changeDetector) {
|
|
13206
|
-
this.formBuilder = formBuilder;
|
|
13371
|
+
class RiskScoreTilesConfigurationComponent {
|
|
13372
|
+
constructor(pizzagnaService, changeDetector, formBuilder, eventBus) {
|
|
13373
|
+
this.pizzagnaService = pizzagnaService;
|
|
13207
13374
|
this.changeDetector = changeDetector;
|
|
13208
|
-
this.
|
|
13209
|
-
this.
|
|
13375
|
+
this.formBuilder = formBuilder;
|
|
13376
|
+
this.eventBus = eventBus;
|
|
13377
|
+
this.tiles = [];
|
|
13378
|
+
this.formReady = new EventEmitter();
|
|
13379
|
+
}
|
|
13380
|
+
ngOnChanges(changes) { }
|
|
13381
|
+
onFormReady(form) {
|
|
13210
13382
|
this.form = this.formBuilder.group({
|
|
13211
|
-
|
|
13383
|
+
tiles: form,
|
|
13384
|
+
});
|
|
13385
|
+
this.emptyItems$ = this.form.valueChanges.pipe(map((result) => result.tiles.length === 0));
|
|
13386
|
+
this.formReady.emit(this.form);
|
|
13387
|
+
}
|
|
13388
|
+
onItemsChange(tiles) {
|
|
13389
|
+
const parentPath = "tiles";
|
|
13390
|
+
const componentIds = tiles.map((tile) => tile.id);
|
|
13391
|
+
this.pizzagnaService.createComponentsFromTemplate(parentPath, componentIds);
|
|
13392
|
+
const property = {
|
|
13393
|
+
componentId: this.componentId,
|
|
13394
|
+
pizzagnaKey: PizzagnaLayer.Data,
|
|
13395
|
+
propertyPath: ["tiles"],
|
|
13396
|
+
};
|
|
13397
|
+
this.pizzagnaService.setProperty(property, tiles);
|
|
13398
|
+
}
|
|
13399
|
+
addTile() {
|
|
13400
|
+
this.onItemsChange([
|
|
13401
|
+
...this.tiles,
|
|
13402
|
+
{
|
|
13403
|
+
id: uuid("riskScore"),
|
|
13404
|
+
componentType: RiskScoreTileComponent.lateLoadKey,
|
|
13405
|
+
},
|
|
13406
|
+
]);
|
|
13407
|
+
}
|
|
13408
|
+
}
|
|
13409
|
+
RiskScoreTilesConfigurationComponent.lateLoadKey = "RiskScoreTilesConfigurationComponent";
|
|
13410
|
+
/** @nocollapse */ RiskScoreTilesConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTilesConfigurationComponent, deps: [{ token: PizzagnaService }, { token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component });
|
|
13411
|
+
/** @nocollapse */ RiskScoreTilesConfigurationComponent.ɵcmp = i0.ɵɵ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, 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.MessageComponent, selector: "nui-message", inputs: ["allowDismiss", "type", "manualControl"], outputs: ["dismiss"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RiskScoreTilesConfigurationComponent, decorators: [{
|
|
13413
|
+
type: Component,
|
|
13414
|
+
args: [{
|
|
13415
|
+
selector: "nui-risk-score-tiles-configuration-component",
|
|
13416
|
+
templateUrl: "./risk-score-tiles-configuration.component.html",
|
|
13417
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13418
|
+
}]
|
|
13419
|
+
}], ctorParameters: function () { return [{ type: PizzagnaService }, { type: i0.ChangeDetectorRef }, { type: i1$2.FormBuilder }, { type: i3.EventBus, decorators: [{
|
|
13420
|
+
type: Inject,
|
|
13421
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
13422
|
+
}] }]; }, propDecorators: { componentId: [{
|
|
13423
|
+
type: Input
|
|
13424
|
+
}], tiles: [{
|
|
13425
|
+
type: Input
|
|
13426
|
+
}], nodes: [{
|
|
13427
|
+
type: Input
|
|
13428
|
+
}], formReady: [{
|
|
13429
|
+
type: Output
|
|
13430
|
+
}] } });
|
|
13431
|
+
|
|
13432
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13433
|
+
//
|
|
13434
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13435
|
+
// of this software and associated documentation files (the "Software"), to
|
|
13436
|
+
// deal in the Software without restriction, including without limitation the
|
|
13437
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
13438
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
13439
|
+
// furnished to do so, subject to the following conditions:
|
|
13440
|
+
//
|
|
13441
|
+
// The above copyright notice and this permission notice shall be included in
|
|
13442
|
+
// all copies or substantial portions of the Software.
|
|
13443
|
+
//
|
|
13444
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13445
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
13446
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13447
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
13448
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
13449
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
13450
|
+
// THE SOFTWARE.
|
|
13451
|
+
/**
|
|
13452
|
+
* This is the only way to be notified of the parent form control being "touched"
|
|
13453
|
+
* We replace the parent formControl method with our own implementation that also calls the original function
|
|
13454
|
+
* @param formControl
|
|
13455
|
+
* @param callback Run this callback when the `formControl.markAsTouched` is run
|
|
13456
|
+
*/
|
|
13457
|
+
function onMarkAsTouched(formControl, callback) {
|
|
13458
|
+
const origFunc = formControl.markAsTouched;
|
|
13459
|
+
formControl.markAsTouched = () => {
|
|
13460
|
+
// @ts-ignore
|
|
13461
|
+
// eslint-disable-next-line prefer-rest-params
|
|
13462
|
+
origFunc.apply(formControl, arguments);
|
|
13463
|
+
callback();
|
|
13464
|
+
};
|
|
13465
|
+
}
|
|
13466
|
+
|
|
13467
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
13468
|
+
class DescriptionConfigurationV2Component {
|
|
13469
|
+
constructor(formBuilder, changeDetector) {
|
|
13470
|
+
this.formBuilder = formBuilder;
|
|
13471
|
+
this.changeDetector = changeDetector;
|
|
13472
|
+
this.isWidthMessageDisplayed = false;
|
|
13473
|
+
this.destroy$ = new Subject();
|
|
13474
|
+
this.form = this.formBuilder.group({
|
|
13475
|
+
label: ["", [Validators.required]],
|
|
13212
13476
|
isActive: true,
|
|
13213
13477
|
width: undefined,
|
|
13214
13478
|
});
|
|
@@ -15104,6 +15368,7 @@ const entryComponents$1 = [
|
|
|
15104
15368
|
DataSourceConfigurationV2Component,
|
|
15105
15369
|
DataSourceErrorComponent,
|
|
15106
15370
|
KpiTilesConfigurationComponent,
|
|
15371
|
+
RiskScoreTilesConfigurationComponent,
|
|
15107
15372
|
EmbeddedContentConfigurationComponent,
|
|
15108
15373
|
InfoMessageConfigurationComponent,
|
|
15109
15374
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -15129,6 +15394,7 @@ const entryComponents$1 = [
|
|
|
15129
15394
|
RawFormatterComponent,
|
|
15130
15395
|
PercentageFormatterComponent,
|
|
15131
15396
|
KpiDescriptionConfigurationComponent,
|
|
15397
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
15132
15398
|
ThresholdsConfigurationComponent,
|
|
15133
15399
|
TitleAndDescriptionConfigurationComponent,
|
|
15134
15400
|
WidgetConfiguratorSectionComponent,
|
|
@@ -15179,6 +15445,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15179
15445
|
DataSourceConfigurationV2Component,
|
|
15180
15446
|
DataSourceErrorComponent,
|
|
15181
15447
|
KpiTilesConfigurationComponent,
|
|
15448
|
+
RiskScoreTilesConfigurationComponent,
|
|
15182
15449
|
EmbeddedContentConfigurationComponent,
|
|
15183
15450
|
InfoMessageConfigurationComponent,
|
|
15184
15451
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -15204,6 +15471,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15204
15471
|
RawFormatterComponent,
|
|
15205
15472
|
PercentageFormatterComponent,
|
|
15206
15473
|
KpiDescriptionConfigurationComponent,
|
|
15474
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
15207
15475
|
ThresholdsConfigurationComponent,
|
|
15208
15476
|
TitleAndDescriptionConfigurationComponent,
|
|
15209
15477
|
WidgetConfiguratorSectionComponent,
|
|
@@ -15270,6 +15538,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15270
15538
|
DataSourceConfigurationV2Component,
|
|
15271
15539
|
DataSourceErrorComponent,
|
|
15272
15540
|
KpiTilesConfigurationComponent,
|
|
15541
|
+
RiskScoreTilesConfigurationComponent,
|
|
15273
15542
|
EmbeddedContentConfigurationComponent,
|
|
15274
15543
|
InfoMessageConfigurationComponent,
|
|
15275
15544
|
ProportionalChartOptionsEditorComponent,
|
|
@@ -15295,6 +15564,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15295
15564
|
RawFormatterComponent,
|
|
15296
15565
|
PercentageFormatterComponent,
|
|
15297
15566
|
KpiDescriptionConfigurationComponent,
|
|
15567
|
+
RiskScoreTileDescriptionConfigurationComponent,
|
|
15298
15568
|
ThresholdsConfigurationComponent,
|
|
15299
15569
|
TitleAndDescriptionConfigurationComponent,
|
|
15300
15570
|
WidgetConfiguratorSectionComponent,
|
|
@@ -16332,8 +16602,8 @@ const kpiWidget = {
|
|
|
16332
16602
|
};
|
|
16333
16603
|
|
|
16334
16604
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
16335
|
-
const tileDescriptionConfiguratorTemplatePath = `tiles.properties.template[0]`;
|
|
16336
|
-
const dataSourceConfiguratorTemplatePath = `tiles.properties.template[1]`;
|
|
16605
|
+
const tileDescriptionConfiguratorTemplatePath$1 = `tiles.properties.template[0]`;
|
|
16606
|
+
const dataSourceConfiguratorTemplatePath$1 = `tiles.properties.template[1]`;
|
|
16337
16607
|
const backgroundColorRulesConfiguratorTemplatePath = `tiles.properties.template[3]`;
|
|
16338
16608
|
/***********************************************************************************************************
|
|
16339
16609
|
* KPI widget definition starts here
|
|
@@ -16349,13 +16619,13 @@ const kpi = {
|
|
|
16349
16619
|
configurator: {
|
|
16350
16620
|
[WellKnownPathKey.Root]: DEFAULT_PIZZAGNA_ROOT,
|
|
16351
16621
|
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
16352
|
-
[WellKnownPathKey.DataSourceConfigComponentType]: `${dataSourceConfiguratorTemplatePath}.componentType`,
|
|
16622
|
+
[WellKnownPathKey.DataSourceConfigComponentType]: `${dataSourceConfiguratorTemplatePath$1}.componentType`,
|
|
16353
16623
|
// this points at the component type you need to change if you want to change the component for tile description configuration
|
|
16354
|
-
[WellKnownPathKey.TileDescriptionConfigComponentType]: `${tileDescriptionConfiguratorTemplatePath}.componentType`,
|
|
16624
|
+
[WellKnownPathKey.TileDescriptionConfigComponentType]: `${tileDescriptionConfiguratorTemplatePath$1}.componentType`,
|
|
16355
16625
|
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
16356
|
-
[WellKnownPathKey.DataSourceProviders]: `${dataSourceConfiguratorTemplatePath}.properties.dataSourceProviders`,
|
|
16626
|
+
[WellKnownPathKey.DataSourceProviders]: `${dataSourceConfiguratorTemplatePath$1}.properties.dataSourceProviders`,
|
|
16357
16627
|
// this points to the Tile's description background color picker
|
|
16358
|
-
[WellKnownPathKey.TileDescriptionBackgroundColors]: `${tileDescriptionConfiguratorTemplatePath}.properties.backgroundColors`,
|
|
16628
|
+
[WellKnownPathKey.TileDescriptionBackgroundColors]: `${tileDescriptionConfiguratorTemplatePath$1}.properties.backgroundColors`,
|
|
16359
16629
|
// this points to the Background Color Rules background color picker
|
|
16360
16630
|
[WellKnownPathKey.TileBackgroundColorRulesBackgroundColors]: `${backgroundColorRulesConfiguratorTemplatePath}.properties.backgroundColors`,
|
|
16361
16631
|
},
|
|
@@ -16791,6 +17061,272 @@ const proportional = {
|
|
|
16791
17061
|
configurator: proportionalConfigurator,
|
|
16792
17062
|
};
|
|
16793
17063
|
|
|
17064
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17065
|
+
/* eslint-enable max-len */
|
|
17066
|
+
const DEFAULT_RISK_SCORE_FORMATTERS = [
|
|
17067
|
+
{
|
|
17068
|
+
componentType: RawFormatterComponent.lateLoadKey,
|
|
17069
|
+
label: $localize `Raw Formatter`,
|
|
17070
|
+
dataTypes: {
|
|
17071
|
+
// @ts-ignore
|
|
17072
|
+
value: null,
|
|
17073
|
+
},
|
|
17074
|
+
},
|
|
17075
|
+
];
|
|
17076
|
+
const riskScoreConfigurator = {
|
|
17077
|
+
[PizzagnaLayer.Structure]: {
|
|
17078
|
+
[DEFAULT_PIZZAGNA_ROOT]: {
|
|
17079
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17080
|
+
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
17081
|
+
componentType: FormStackComponent.lateLoadKey,
|
|
17082
|
+
properties: {
|
|
17083
|
+
elementClass: "flex-grow-1 overflow-auto nui-scroll-shadows",
|
|
17084
|
+
// references to other components laid out in this form
|
|
17085
|
+
nodes: ["presentation", "tiles"],
|
|
17086
|
+
},
|
|
17087
|
+
providers: {
|
|
17088
|
+
[WellKnownProviders.FormattersRegistry]: {
|
|
17089
|
+
providerId: NOVA_RISK_SCORE_FORMATTERS_REGISTRY,
|
|
17090
|
+
},
|
|
17091
|
+
},
|
|
17092
|
+
},
|
|
17093
|
+
// /presentation
|
|
17094
|
+
presentation: {
|
|
17095
|
+
id: "presentation",
|
|
17096
|
+
componentType: WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
17097
|
+
properties: {
|
|
17098
|
+
headerText: $localize `Presentation`,
|
|
17099
|
+
nodes: ["titleAndDescription", "refresher"],
|
|
17100
|
+
},
|
|
17101
|
+
},
|
|
17102
|
+
// /presentation/titleAndDescription
|
|
17103
|
+
titleAndDescription: {
|
|
17104
|
+
id: "titleAndDescription",
|
|
17105
|
+
componentType: TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
17106
|
+
providers: {
|
|
17107
|
+
converter: {
|
|
17108
|
+
providerId: NOVA_TITLE_AND_DESCRIPTION_CONVERTER,
|
|
17109
|
+
},
|
|
17110
|
+
},
|
|
17111
|
+
},
|
|
17112
|
+
refresher: REFRESHER_CONFIGURATOR,
|
|
17113
|
+
// /tiles
|
|
17114
|
+
tiles: {
|
|
17115
|
+
id: "tiles",
|
|
17116
|
+
componentType: RiskScoreTilesConfigurationComponent.lateLoadKey,
|
|
17117
|
+
properties: {
|
|
17118
|
+
// these components serve as a template for every KPI tile created
|
|
17119
|
+
template: [
|
|
17120
|
+
{
|
|
17121
|
+
// Risk Score tile description (label) configuration section
|
|
17122
|
+
id: "description",
|
|
17123
|
+
componentType: RiskScoreTileDescriptionConfigurationComponent.lateLoadKey,
|
|
17124
|
+
properties: {},
|
|
17125
|
+
providers: {
|
|
17126
|
+
// converter transforms the data between the widget and the form
|
|
17127
|
+
[WellKnownProviders.Converter]: {
|
|
17128
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17129
|
+
properties: {
|
|
17130
|
+
formParts: [
|
|
17131
|
+
{
|
|
17132
|
+
previewPath: "properties.widgetData",
|
|
17133
|
+
keys: [
|
|
17134
|
+
"label",
|
|
17135
|
+
"minValue",
|
|
17136
|
+
"maxValue",
|
|
17137
|
+
"description",
|
|
17138
|
+
"useStaticLabel",
|
|
17139
|
+
"staticLabel",
|
|
17140
|
+
],
|
|
17141
|
+
},
|
|
17142
|
+
],
|
|
17143
|
+
},
|
|
17144
|
+
},
|
|
17145
|
+
},
|
|
17146
|
+
},
|
|
17147
|
+
{
|
|
17148
|
+
// data source configuration section
|
|
17149
|
+
id: "dataSource",
|
|
17150
|
+
componentType: DataSourceConfigurationComponent.lateLoadKey,
|
|
17151
|
+
properties: {
|
|
17152
|
+
// for the DataSourceConfigurationComponent, this defines the list of data sources to pick from
|
|
17153
|
+
dataSourceProviders: [],
|
|
17154
|
+
errorComponent: DataSourceErrorComponent.lateLoadKey,
|
|
17155
|
+
},
|
|
17156
|
+
providers: {
|
|
17157
|
+
// converter transforms the data source metadata between the widget and the form
|
|
17158
|
+
[WellKnownProviders.Converter]: {
|
|
17159
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17160
|
+
properties: {
|
|
17161
|
+
formParts: [
|
|
17162
|
+
{
|
|
17163
|
+
// this component updates 'providerId' of 'dataSource'
|
|
17164
|
+
previewPath: "providers.dataSource",
|
|
17165
|
+
// TODO: Remove 'properties' key in v10 - NUI-5831
|
|
17166
|
+
keys: ["providerId", "properties"],
|
|
17167
|
+
},
|
|
17168
|
+
{
|
|
17169
|
+
// this component updates 'properties' of 'dataSource' via an adapter
|
|
17170
|
+
previewPath: "providers.adapter.properties.dataSource",
|
|
17171
|
+
keys: ["properties"],
|
|
17172
|
+
},
|
|
17173
|
+
],
|
|
17174
|
+
},
|
|
17175
|
+
},
|
|
17176
|
+
[WellKnownProviders.Broadcaster]: {
|
|
17177
|
+
providerId: NOVA_PIZZAGNA_BROADCASTER,
|
|
17178
|
+
properties: {
|
|
17179
|
+
configs: [
|
|
17180
|
+
{
|
|
17181
|
+
trackOn: "component",
|
|
17182
|
+
key: "dataFieldIds",
|
|
17183
|
+
paths: [
|
|
17184
|
+
"data.{parentComponentId}/formatting.properties.dataFieldIds",
|
|
17185
|
+
],
|
|
17186
|
+
},
|
|
17187
|
+
],
|
|
17188
|
+
},
|
|
17189
|
+
},
|
|
17190
|
+
},
|
|
17191
|
+
},
|
|
17192
|
+
{
|
|
17193
|
+
id: "formatting",
|
|
17194
|
+
componentType: PresentationConfigurationComponent.lateLoadKey,
|
|
17195
|
+
providers: {
|
|
17196
|
+
[WellKnownProviders.Converter]: {
|
|
17197
|
+
providerId: NOVA_KPI_SECTION_CONVERTER,
|
|
17198
|
+
properties: {
|
|
17199
|
+
formParts: [
|
|
17200
|
+
{
|
|
17201
|
+
previewPath: "properties.configuration.formatters.Value",
|
|
17202
|
+
keys: ["formatter"],
|
|
17203
|
+
},
|
|
17204
|
+
],
|
|
17205
|
+
},
|
|
17206
|
+
},
|
|
17207
|
+
},
|
|
17208
|
+
properties: {
|
|
17209
|
+
// Note: Now you should define your formatters in the KpiFormatterRegistry which can contain more formatter options
|
|
17210
|
+
// formatters: DEFAULT_RISK_SCORE_FORMATTERS,
|
|
17211
|
+
// Set default formatter to the configuration section as RawFormatterComponent.
|
|
17212
|
+
// In case Risk Scrore doesn't use the formatters yet, it will be overridden with default formatter value on first save
|
|
17213
|
+
formatter: {
|
|
17214
|
+
componentType: RawFormatterComponent.lateLoadKey,
|
|
17215
|
+
properties: {
|
|
17216
|
+
dataFieldIds: {
|
|
17217
|
+
value: "value",
|
|
17218
|
+
},
|
|
17219
|
+
},
|
|
17220
|
+
},
|
|
17221
|
+
},
|
|
17222
|
+
},
|
|
17223
|
+
],
|
|
17224
|
+
},
|
|
17225
|
+
providers: {
|
|
17226
|
+
// converter transforms the data between the widget and the form
|
|
17227
|
+
[WellKnownProviders.Converter]: {
|
|
17228
|
+
providerId: NOVA_KPI_TILES_CONVERTER,
|
|
17229
|
+
},
|
|
17230
|
+
},
|
|
17231
|
+
},
|
|
17232
|
+
},
|
|
17233
|
+
};
|
|
17234
|
+
|
|
17235
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17236
|
+
const riskScoreWidget = {
|
|
17237
|
+
[PizzagnaLayer.Structure]: Object.assign(Object.assign({ [DEFAULT_PIZZAGNA_ROOT]: {
|
|
17238
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17239
|
+
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
17240
|
+
componentType: StackComponent.lateLoadKey,
|
|
17241
|
+
providers: {
|
|
17242
|
+
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
17243
|
+
[WellKnownProviders.Refresher]: refresher(),
|
|
17244
|
+
// event proxy manages the transmission of events between widget and dashboard
|
|
17245
|
+
[WellKnownProviders.EventProxy]: EVENT_PROXY,
|
|
17246
|
+
},
|
|
17247
|
+
properties: {
|
|
17248
|
+
nodes: ["header", "loading", "body"],
|
|
17249
|
+
},
|
|
17250
|
+
},
|
|
17251
|
+
// widget header
|
|
17252
|
+
header: WIDGET_HEADER,
|
|
17253
|
+
// this is the loading bar below the header
|
|
17254
|
+
loading: WIDGET_LOADING,
|
|
17255
|
+
// widget body
|
|
17256
|
+
body: Object.assign(Object.assign({}, WIDGET_BODY), { properties: Object.assign(Object.assign({}, WIDGET_BODY.properties), { elementClass: "overflow-hidden" }) }) }, widgetBodyContentNodes("tiles", NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER)), {
|
|
17257
|
+
// the main content node specifying a component that manages layout of the KPI tiles in a CSS grid
|
|
17258
|
+
tiles: {
|
|
17259
|
+
id: "tiles",
|
|
17260
|
+
componentType: TilesComponent.lateLoadKey,
|
|
17261
|
+
properties: {
|
|
17262
|
+
elementClass: "flex-grow-1 pt-2 px-3 pb-3 w-100",
|
|
17263
|
+
template: {
|
|
17264
|
+
componentType: RiskScoreTileComponent.lateLoadKey,
|
|
17265
|
+
providers: {
|
|
17266
|
+
[WellKnownProviders.Adapter]: {
|
|
17267
|
+
providerId: NOVA_KPI_DATASOURCE_ADAPTER,
|
|
17268
|
+
properties: {
|
|
17269
|
+
propertyPath: "widgetData",
|
|
17270
|
+
},
|
|
17271
|
+
},
|
|
17272
|
+
},
|
|
17273
|
+
properties: {
|
|
17274
|
+
elementClass: "flex-grow-1",
|
|
17275
|
+
},
|
|
17276
|
+
},
|
|
17277
|
+
},
|
|
17278
|
+
} }),
|
|
17279
|
+
[PizzagnaLayer.Configuration]: {
|
|
17280
|
+
[DEFAULT_PIZZAGNA_ROOT]: {
|
|
17281
|
+
id: DEFAULT_PIZZAGNA_ROOT,
|
|
17282
|
+
providers: {
|
|
17283
|
+
// default refresher configuration
|
|
17284
|
+
[WellKnownProviders.Refresher]: refresher(false, 60),
|
|
17285
|
+
},
|
|
17286
|
+
},
|
|
17287
|
+
// default header configuration
|
|
17288
|
+
header: {
|
|
17289
|
+
properties: {
|
|
17290
|
+
title: $localize `Empty Risk Score Widget`,
|
|
17291
|
+
},
|
|
17292
|
+
},
|
|
17293
|
+
},
|
|
17294
|
+
};
|
|
17295
|
+
|
|
17296
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17297
|
+
const tileDescriptionConfiguratorTemplatePath = `tiles.properties.template[0]`;
|
|
17298
|
+
const dataSourceConfiguratorTemplatePath = `tiles.properties.template[1]`;
|
|
17299
|
+
/***********************************************************************************************************
|
|
17300
|
+
* KPI widget definition starts here
|
|
17301
|
+
***********************************************************************************************************/
|
|
17302
|
+
const riskScore = {
|
|
17303
|
+
/***************************************************************************************************
|
|
17304
|
+
* Paths to important settings in this type definition
|
|
17305
|
+
***************************************************************************************************/
|
|
17306
|
+
paths: {
|
|
17307
|
+
widget: {
|
|
17308
|
+
[WellKnownPathKey.Root]: DEFAULT_PIZZAGNA_ROOT,
|
|
17309
|
+
},
|
|
17310
|
+
configurator: {
|
|
17311
|
+
[WellKnownPathKey.Root]: DEFAULT_PIZZAGNA_ROOT,
|
|
17312
|
+
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
17313
|
+
[WellKnownPathKey.DataSourceConfigComponentType]: `${dataSourceConfiguratorTemplatePath}.componentType`,
|
|
17314
|
+
// this points at the component type you need to change if you want to change the component for tile description configuration
|
|
17315
|
+
[WellKnownPathKey.TileDescriptionConfigComponentType]: `${tileDescriptionConfiguratorTemplatePath}.componentType`,
|
|
17316
|
+
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
17317
|
+
[WellKnownPathKey.DataSourceProviders]: `${dataSourceConfiguratorTemplatePath}.properties.dataSourceProviders`,
|
|
17318
|
+
},
|
|
17319
|
+
},
|
|
17320
|
+
/***************************************************************************************************
|
|
17321
|
+
* Widget section describes the structural part of the KPI widget
|
|
17322
|
+
***************************************************************************************************/
|
|
17323
|
+
widget: riskScoreWidget,
|
|
17324
|
+
/***************************************************************************************************
|
|
17325
|
+
* Configurator section describes the form that is used to configure the widget
|
|
17326
|
+
***************************************************************************************************/
|
|
17327
|
+
configurator: riskScoreConfigurator,
|
|
17328
|
+
};
|
|
17329
|
+
|
|
16794
17330
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
16795
17331
|
/* eslint-enable max-len */
|
|
16796
17332
|
const tableConfigurator = {
|
|
@@ -17274,6 +17810,7 @@ const dashboardComponents = [
|
|
|
17274
17810
|
EmbeddedContentComponent,
|
|
17275
17811
|
GridsterItemWidgetIdDirective,
|
|
17276
17812
|
KpiComponent,
|
|
17813
|
+
RiskScoreTileComponent,
|
|
17277
17814
|
LineChartComponent,
|
|
17278
17815
|
LoadingComponent,
|
|
17279
17816
|
ProportionalWidgetComponent,
|
|
@@ -17304,6 +17841,7 @@ const dashboardComponents = [
|
|
|
17304
17841
|
const entryComponents = [
|
|
17305
17842
|
EmbeddedContentComponent,
|
|
17306
17843
|
KpiComponent,
|
|
17844
|
+
RiskScoreTileComponent,
|
|
17307
17845
|
LineChartComponent,
|
|
17308
17846
|
LoadingComponent,
|
|
17309
17847
|
ProportionalWidgetComponent,
|
|
@@ -17329,8 +17867,9 @@ const entryComponents = [
|
|
|
17329
17867
|
ProportionalDonutContentComponent,
|
|
17330
17868
|
];
|
|
17331
17869
|
class NuiDashboardsModule {
|
|
17332
|
-
constructor(widgetTypesService, componentRegistry, eventRegistry, kpiFormattersRegistry) {
|
|
17870
|
+
constructor(widgetTypesService, componentRegistry, eventRegistry, kpiFormattersRegistry, riskScoreFormattersRegistry) {
|
|
17333
17871
|
widgetTypesService.registerWidgetType("kpi", 1, kpi);
|
|
17872
|
+
widgetTypesService.registerWidgetType("risk-score", 1, riskScore);
|
|
17334
17873
|
widgetTypesService.registerWidgetType("table", 1, table);
|
|
17335
17874
|
widgetTypesService.registerWidgetType("proportional", 1, proportional);
|
|
17336
17875
|
widgetTypesService.registerWidgetType("timeseries", 1, timeseries);
|
|
@@ -17354,13 +17893,15 @@ class NuiDashboardsModule {
|
|
|
17354
17893
|
eventRegistry.registerEvent(DATA_SOURCE_OUTPUT);
|
|
17355
17894
|
eventRegistry.registerEvent(DATA_SOURCE_BUSY);
|
|
17356
17895
|
kpiFormattersRegistry.addItems(DEFAULT_KPI_FORMATTERS);
|
|
17896
|
+
riskScoreFormattersRegistry.addItems(DEFAULT_RISK_SCORE_FORMATTERS);
|
|
17357
17897
|
}
|
|
17358
17898
|
}
|
|
17359
|
-
/** @nocollapse */ NuiDashboardsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NuiDashboardsModule, deps: [{ token: WidgetTypesService }, { token: ComponentRegistryService }, { token: EventRegistryService }, { token: KpiFormattersRegistryService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17899
|
+
/** @nocollapse */ NuiDashboardsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NuiDashboardsModule, deps: [{ token: WidgetTypesService }, { token: ComponentRegistryService }, { token: EventRegistryService }, { token: KpiFormattersRegistryService }, { token: RiskScoreFormattersRegistryService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17360
17900
|
/** @nocollapse */ NuiDashboardsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NuiDashboardsModule, declarations: [DashboardComponent,
|
|
17361
17901
|
EmbeddedContentComponent,
|
|
17362
17902
|
GridsterItemWidgetIdDirective,
|
|
17363
17903
|
KpiComponent,
|
|
17904
|
+
RiskScoreTileComponent,
|
|
17364
17905
|
LineChartComponent,
|
|
17365
17906
|
LoadingComponent,
|
|
17366
17907
|
ProportionalWidgetComponent,
|
|
@@ -17408,11 +17949,13 @@ class NuiDashboardsModule {
|
|
|
17408
17949
|
NuiSearchModule,
|
|
17409
17950
|
NuiCommonModule,
|
|
17410
17951
|
NuiRepeatModule,
|
|
17952
|
+
NuiRiskScoreModule,
|
|
17411
17953
|
NuiSelectModule,
|
|
17412
17954
|
NuiPopoverModule], exports: [DashboardComponent,
|
|
17413
17955
|
EmbeddedContentComponent,
|
|
17414
17956
|
GridsterItemWidgetIdDirective,
|
|
17415
17957
|
KpiComponent,
|
|
17958
|
+
RiskScoreTileComponent,
|
|
17416
17959
|
LineChartComponent,
|
|
17417
17960
|
LoadingComponent,
|
|
17418
17961
|
ProportionalWidgetComponent,
|
|
@@ -17467,6 +18010,7 @@ class NuiDashboardsModule {
|
|
|
17467
18010
|
NuiSearchModule,
|
|
17468
18011
|
NuiCommonModule,
|
|
17469
18012
|
NuiRepeatModule,
|
|
18013
|
+
NuiRiskScoreModule,
|
|
17470
18014
|
NuiSelectModule,
|
|
17471
18015
|
NuiPopoverModule,
|
|
17472
18016
|
]] });
|
|
@@ -17496,6 +18040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
17496
18040
|
NuiSearchModule,
|
|
17497
18041
|
NuiCommonModule,
|
|
17498
18042
|
NuiRepeatModule,
|
|
18043
|
+
NuiRiskScoreModule,
|
|
17499
18044
|
NuiSelectModule,
|
|
17500
18045
|
NuiPopoverModule,
|
|
17501
18046
|
],
|
|
@@ -17509,7 +18054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
17509
18054
|
exports: dashboardComponents,
|
|
17510
18055
|
entryComponents: entryComponents,
|
|
17511
18056
|
}]
|
|
17512
|
-
}], ctorParameters: function () { return [{ type: WidgetTypesService }, { type: ComponentRegistryService }, { type: EventRegistryService }, { type: KpiFormattersRegistryService }]; } });
|
|
18057
|
+
}], ctorParameters: function () { return [{ type: WidgetTypesService }, { type: ComponentRegistryService }, { type: EventRegistryService }, { type: KpiFormattersRegistryService }, { type: RiskScoreFormattersRegistryService }]; } });
|
|
17513
18058
|
|
|
17514
18059
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17515
18060
|
|
|
@@ -17519,6 +18064,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
17519
18064
|
|
|
17520
18065
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17521
18066
|
|
|
18067
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18068
|
+
|
|
18069
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18070
|
+
|
|
18071
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18072
|
+
|
|
17522
18073
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17523
18074
|
|
|
17524
18075
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -17594,6 +18145,33 @@ var KpiFormatterTypes;
|
|
|
17594
18145
|
|
|
17595
18146
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17596
18147
|
|
|
18148
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18149
|
+
//
|
|
18150
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18151
|
+
// of this software and associated documentation files (the "Software"), to
|
|
18152
|
+
// deal in the Software without restriction, including without limitation the
|
|
18153
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
18154
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
18155
|
+
// furnished to do so, subject to the following conditions:
|
|
18156
|
+
//
|
|
18157
|
+
// The above copyright notice and this permission notice shall be included in
|
|
18158
|
+
// all copies or substantial portions of the Software.
|
|
18159
|
+
//
|
|
18160
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18161
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18162
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18163
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18164
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18165
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
18166
|
+
// THE SOFTWARE.
|
|
18167
|
+
var RiskScoreFormatterTypes;
|
|
18168
|
+
(function (RiskScoreFormatterTypes) {
|
|
18169
|
+
// ROOT ?
|
|
18170
|
+
RiskScoreFormatterTypes["Value"] = "Value";
|
|
18171
|
+
})(RiskScoreFormatterTypes || (RiskScoreFormatterTypes = {}));
|
|
18172
|
+
|
|
18173
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
18174
|
+
|
|
17597
18175
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17598
18176
|
/**
|
|
17599
18177
|
* Use this function to apply endpoints on status data returned by a data source so that when the status
|
|
@@ -17799,5 +18377,5 @@ const DONUT_CONTENT_CONFIGURATION_SLICE = {
|
|
|
17799
18377
|
* Generated bundle index. Do not edit.
|
|
17800
18378
|
*/
|
|
17801
18379
|
|
|
17802
|
-
export { AccordionState, AddDataPipe, AggregatorMetricSelectorConfigurationComponent, BackgroundColorRulesConfigurationComponent, BaseLayout, CHART_METRIC_REMOVE, CHART_PALETTE_CS3_ALTERNATIVE_NAMES, CHART_PALETTE_CS_S_EXTENDED_ALTERNATIVE_NAMES, CONFIGURATOR_CONVERTER, ColorPickerComponent, ComponentPortalDirective, ComponentPortalService, ComponentRegistryService, ConfiguratorComponent, ConfiguratorHeadingComponent, ConfiguratorHeadingService, ConfiguratorService, DASHBOARD_EDIT_MODE, DASHBOARD_EVENT_BUS, DATA_SOURCE, DATA_SOURCE_BUSY, DATA_SOURCE_CHANGE, DATA_SOURCE_CREATED, DATA_SOURCE_DESTROYED, DATA_SOURCE_INVOKED, DATA_SOURCE_OUTPUT, DEFAULT_COMPARATORS, DEFAULT_KPI_BACKGROUND_COLORS, DEFAULT_KPI_FORMATTERS, DEFAULT_KPI_TILE_COLOR, DEFAULT_LEGEND_FORMATTERS, DEFAULT_PIZZAGNA_ROOT, DEFAULT_PROPORTIONAL_CONTENT_AGGREGATORS, DEFAULT_PROPORTIONAL_CONTENT_FORMATTERS, DEFAULT_REFRESH_INTERVAL, DEFAULT_UNIT_CONVERSION_THRESHOLD, DONUT_CONTENT_CONFIGURATION_SLICE, DRILLDOWN, DashboardComponent, DashboardUnitConversionPipe, DashwizButtonsComponent, DashwizComponent, DashwizStepComponent, DataSourceAdapter, DataSourceConfigurationComponent, DataSourceConfigurationV2Component, DataSourceErrorComponent, DelayedMousePresenceDetectionDirective, DescriptionConfigurationComponent, DescriptionConfigurationV2Component, DonutChartFormatterConfiguratorComponent, DonutContentConfigurationComponent, DonutContentPercentageConfigurationComponent, DonutContentPercentageFormatterComponent, DonutContentRawFormatterComponent, DonutContentSumFormatterComponent, DropAreaComponent, DynamicComponentCreator, ERROR_FALLBACK_MAP, ERROR_NODES, EVENT_PROXY, EmbeddedContentComponent, EmbeddedContentConfigurationComponent, EmbeddedContentMode, EntityFormattingConfigurationComponent, ErrorNodeKey, EventRegistryService, FORMATTERS_REGISTRY, FieldMapperAggregatorConfiguratorComponent, FormHeaderIconPipePipe, FormStackComponent, FormatterConfiguratorComponent, FormatterRegistryService, GridsterItemWidgetIdDirective, GroupingConfigurationComponent, HEADER_LINK_PROVIDER, HttpStatusCode, INTERACTION, IconFormatterComponent, InfoMessageConfigurationComponent, InteractionHandler, ItemsDynamicComponent, KpiColorComparatorsRegistryService, KpiComponent, KpiDescriptionConfigurationComponent, KpiFormatterTypes, KpiFormattersRegistryService, KpiTilesConfigurationComponent, KpiTilesConverterService, KpiWidgetColorService, KpiWidgetFontSizes, KpiWidgetThresholdColors, LegendPlacement, LineChartComponent, LinkConfiguratorComponent, LinkFormatterComponent, ListGroupItemComponent, ListLeafItemComponent, ListNavigationBarComponent, ListWidgetComponent, LoadingComponent, NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER, NOVA_DASHBOARD_EVENT_PROXY, NOVA_DATASOURCE_ADAPTER, NOVA_DATASOURCE_INTERVAL_REFRESHER, NOVA_DRILLDOWN_DATASOURCE_ADAPTER, NOVA_EVENT_BUS_DEBUGGER, NOVA_GENERIC_ARRAY_CONVERTER, NOVA_GENERIC_CONVERTER, NOVA_KPI_COLOR_PRIORITIZER, NOVA_KPI_DATASOURCE_ADAPTER, NOVA_KPI_FORMATTERS_REGISTRY, NOVA_KPI_SCALE_SYNC_BROKER, NOVA_KPI_SECTION_CONVERTER, NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_KPI_TILES_CONVERTER, NOVA_LOADING_ADAPTER, NOVA_PIZZAGNA_BROADCASTER, NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY, NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER, NOVA_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_TABLE_COLUMNS_CONVERTER, NOVA_TABLE_DATASOURCE_ADAPTER, NOVA_TABLE_FILTERS_CONVERTER, NOVA_TABLE_FORMATTERS_REGISTRY, NOVA_TEST_REGISTRY, NOVA_TIMESERIES_DATASOURCE_ADAPTER, NOVA_TIMESERIES_METADATA_CONVERTER, NOVA_TIMESERIES_SERIES_CONVERTER, NOVA_TIMESERIES_TILE_INDICATOR_DATA_CONVERTER, NOVA_TITLE_AND_DESCRIPTION_CONVERTER, NOVA_URL_INTERACTION_HANDLER, NOVA_VIRTUAL_VIEWPORT_MANAGER, NuiDashboardConfiguratorModule, NuiDashboardsCommonModule, NuiDashboardsModule, NuiPizzagnaModule, PIZZAGNA_EVENT_BUS, PREVIEW_EVENT, PercentageFormatterComponent, PizzagnaComponent, PizzagnaLayer, PizzagnaRootPipe, PizzagnaService, PresentationConfigurationComponent, PresentationConfigurationV2Component, PreviewOverlayComponent, PreviewPlaceholderComponent, PreviewService, ProportionalChartOptionsEditorComponent, ProportionalChartOptionsEditorV2Component, ProportionalContentAggregatorsRegistryService, ProportionalDonutContentComponent, ProportionalDonutContentFormattersRegistryService, ProportionalLegendFormattersRegistryService, ProportionalWidgetChartOptionsConverterService, ProportionalWidgetChartTypes, ProportionalWidgetComponent, ProviderRegistryService, REFRESH, REFRESHER_CONFIGURATOR, RawFormatterComponent, RefreshRateConfiguratorComponent, Refresher, RefresherConfigurationComponent, RefresherSettingsService, SCROLL_NEXT_PAGE, SET_PROPERTY_VALUE, SET_TIMEFRAME, SUMMARY_LEGEND_BCG_COLOR, SUMMARY_LEGEND_COLOR, SiUnitsFormatterComponent, StackComponent, StackedAreaChartComponent, StackedBarChartComponent, StackedPercentageAreaChartComponent, StatusBarChartComponent, StatusWithIconFormatterComponent, TEST_REGISTRY, TIMESERIES_INSPECTION_MENU_CLEAR, TIMESERIES_INSPECTION_MENU_CLOSE, TIMESERIES_INSPECTION_MENU_EXPLORE, TIMESERIES_INSPECTION_MENU_SYNCHRONIZE, TIMESERIES_INSPECTION_MENU_ZOOM_IN, TIMESERIES_INSPECTION_MENU_ZOOM_OUT, TableColumnConfigurationComponent, TableColumnsConfigurationComponent, TableColumnsConfigurationV2Component, TableDataSourceAdapter, TableDataSourceErrorComponent, TableFiltersEditorComponent, TableFormatterRegistryService, TableWidgetComponent, TemplateLoadErrorComponent, ThresholdsConfigurationComponent, TilesComponent, TimeframeSelectionComponent, TimeframeSerializationService, TimeseriesChartPreset, TimeseriesChartPresetService, TimeseriesChartTypes, TimeseriesDataSourceAdapter, TimeseriesInspectionMenuComponent, TimeseriesInteractionType, TimeseriesMetadataConfigurationComponent, TimeseriesScaleType, TimeseriesSeriesCollectionConfigurationComponent, TimeseriesSeriesConverterService, TimeseriesTileDescriptionConfigurationComponent, TimeseriesTileIndicatorDataConfigurationComponent, TimeseriesTransformer, TimeseriesWidgetComponent, TimeseriesWidgetProjectType, TitleAndDescriptionConfigurationComponent, TitleAndDescriptionConverterService, UrlInteractionHandler, UrlInteractionService, ValueSelectorComponent, WIDGET_BODY, WIDGET_CREATE, WIDGET_EDIT, WIDGET_HEADER, WIDGET_LOADING, WIDGET_POSITION_CHANGE, WIDGET_READY, WIDGET_REMOVE, WIDGET_RESIZE, WIDGET_SEARCH, WellKnownDataSourceFeatures, WellKnownPathKey, WellKnownProviders, WidgetBodyComponent, WidgetBodyContentComponent, WidgetClonerComponent, WidgetClonerService, WidgetComponent, WidgetConfigurationService, WidgetConfiguratorSectionComponent, WidgetConfiguratorSectionHeaderPipe, WidgetEditorAccordionComponent, WidgetEditorAccordionFormStatePipe, WidgetEditorComponent, WidgetEditorDirective, WidgetEditorService, WidgetErrorComponent, WidgetHeaderComponent, WidgetSearchComponent, WidgetToDashboardEventProxyService, WidgetTypesService, WindowObject, XYChartComponent, applyStatusEndpoints, chartPaletteColorMap, fieldMapper, getPizzagnaPropertyPath, hasControlInErrorState, hasTimeseriesWidgetSummaryLegend, mapDataToFormatterProperties, mergeChanges, metricsSeriesMeasurementsMinMax, percentageAggregator, refresher, sumAggregator, timeSeriesDatetimeFormatter, transformChangePoint, transformDifference, transformFloatingAverage, transformLinReg, transformLoessSmoothing, transformLoessStandardize, transformNormalize, transformPercentileStd, transformStandardize, widgetBodyContentNodes };
|
|
18380
|
+
export { AccordionState, AddDataPipe, AggregatorMetricSelectorConfigurationComponent, BackgroundColorRulesConfigurationComponent, BaseLayout, CHART_METRIC_REMOVE, CHART_PALETTE_CS3_ALTERNATIVE_NAMES, CHART_PALETTE_CS_S_EXTENDED_ALTERNATIVE_NAMES, CONFIGURATOR_CONVERTER, ColorPickerComponent, ComponentPortalDirective, ComponentPortalService, ComponentRegistryService, ConfiguratorComponent, ConfiguratorHeadingComponent, ConfiguratorHeadingService, ConfiguratorService, DASHBOARD_EDIT_MODE, DASHBOARD_EVENT_BUS, DATA_SOURCE, DATA_SOURCE_BUSY, DATA_SOURCE_CHANGE, DATA_SOURCE_CREATED, DATA_SOURCE_DESTROYED, DATA_SOURCE_INVOKED, DATA_SOURCE_OUTPUT, DEFAULT_COMPARATORS, DEFAULT_KPI_BACKGROUND_COLORS, DEFAULT_KPI_FORMATTERS, DEFAULT_KPI_TILE_COLOR, DEFAULT_LEGEND_FORMATTERS, DEFAULT_PIZZAGNA_ROOT, DEFAULT_PROPORTIONAL_CONTENT_AGGREGATORS, DEFAULT_PROPORTIONAL_CONTENT_FORMATTERS, DEFAULT_REFRESH_INTERVAL, DEFAULT_UNIT_CONVERSION_THRESHOLD, DONUT_CONTENT_CONFIGURATION_SLICE, DRILLDOWN, DashboardComponent, DashboardUnitConversionPipe, DashwizButtonsComponent, DashwizComponent, DashwizStepComponent, DataSourceAdapter, DataSourceConfigurationComponent, DataSourceConfigurationV2Component, DataSourceErrorComponent, DelayedMousePresenceDetectionDirective, DescriptionConfigurationComponent, DescriptionConfigurationV2Component, DonutChartFormatterConfiguratorComponent, DonutContentConfigurationComponent, DonutContentPercentageConfigurationComponent, DonutContentPercentageFormatterComponent, DonutContentRawFormatterComponent, DonutContentSumFormatterComponent, DropAreaComponent, DynamicComponentCreator, ERROR_FALLBACK_MAP, ERROR_NODES, EVENT_PROXY, EmbeddedContentComponent, EmbeddedContentConfigurationComponent, EmbeddedContentMode, EntityFormattingConfigurationComponent, ErrorNodeKey, EventRegistryService, FORMATTERS_REGISTRY, FieldMapperAggregatorConfiguratorComponent, FormHeaderIconPipePipe, FormStackComponent, FormatterConfiguratorComponent, FormatterRegistryService, GridsterItemWidgetIdDirective, GroupingConfigurationComponent, HEADER_LINK_PROVIDER, HttpStatusCode, INTERACTION, IconFormatterComponent, InfoMessageConfigurationComponent, InteractionHandler, ItemsDynamicComponent, KpiColorComparatorsRegistryService, KpiComponent, KpiDescriptionConfigurationComponent, KpiFormatterTypes, KpiFormattersRegistryService, KpiTilesConfigurationComponent, KpiTilesConverterService, KpiWidgetColorService, KpiWidgetFontSizes, KpiWidgetThresholdColors, LegendPlacement, LineChartComponent, LinkConfiguratorComponent, LinkFormatterComponent, ListGroupItemComponent, ListLeafItemComponent, ListNavigationBarComponent, ListWidgetComponent, LoadingComponent, NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER, NOVA_DASHBOARD_EVENT_PROXY, NOVA_DATASOURCE_ADAPTER, NOVA_DATASOURCE_INTERVAL_REFRESHER, NOVA_DRILLDOWN_DATASOURCE_ADAPTER, NOVA_EVENT_BUS_DEBUGGER, NOVA_GENERIC_ARRAY_CONVERTER, NOVA_GENERIC_CONVERTER, NOVA_KPI_COLOR_PRIORITIZER, NOVA_KPI_DATASOURCE_ADAPTER, NOVA_KPI_FORMATTERS_REGISTRY, NOVA_KPI_SCALE_SYNC_BROKER, NOVA_KPI_SECTION_CONVERTER, NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_KPI_TILES_CONVERTER, NOVA_LOADING_ADAPTER, NOVA_PIZZAGNA_BROADCASTER, NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY, NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER, NOVA_RISK_SCORE_FORMATTERS_REGISTRY, NOVA_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_TABLE_COLUMNS_CONVERTER, NOVA_TABLE_DATASOURCE_ADAPTER, NOVA_TABLE_FILTERS_CONVERTER, NOVA_TABLE_FORMATTERS_REGISTRY, NOVA_TEST_REGISTRY, NOVA_TIMESERIES_DATASOURCE_ADAPTER, NOVA_TIMESERIES_METADATA_CONVERTER, NOVA_TIMESERIES_SERIES_CONVERTER, NOVA_TIMESERIES_TILE_INDICATOR_DATA_CONVERTER, NOVA_TITLE_AND_DESCRIPTION_CONVERTER, NOVA_URL_INTERACTION_HANDLER, NOVA_VIRTUAL_VIEWPORT_MANAGER, NuiDashboardConfiguratorModule, NuiDashboardsCommonModule, NuiDashboardsModule, NuiPizzagnaModule, PIZZAGNA_EVENT_BUS, PREVIEW_EVENT, PercentageFormatterComponent, PizzagnaComponent, PizzagnaLayer, PizzagnaRootPipe, PizzagnaService, PresentationConfigurationComponent, PresentationConfigurationV2Component, PreviewOverlayComponent, PreviewPlaceholderComponent, PreviewService, ProportionalChartOptionsEditorComponent, ProportionalChartOptionsEditorV2Component, ProportionalContentAggregatorsRegistryService, ProportionalDonutContentComponent, ProportionalDonutContentFormattersRegistryService, ProportionalLegendFormattersRegistryService, ProportionalWidgetChartOptionsConverterService, ProportionalWidgetChartTypes, ProportionalWidgetComponent, ProviderRegistryService, REFRESH, REFRESHER_CONFIGURATOR, RawFormatterComponent, RefreshRateConfiguratorComponent, Refresher, RefresherConfigurationComponent, RefresherSettingsService, RiskScoreFormatterTypes, RiskScoreFormattersRegistryService, RiskScoreTileComponent, RiskScoreTileDescriptionConfigurationComponent, RiskScoreTilesConfigurationComponent, SCROLL_NEXT_PAGE, SET_PROPERTY_VALUE, SET_TIMEFRAME, SUMMARY_LEGEND_BCG_COLOR, SUMMARY_LEGEND_COLOR, SiUnitsFormatterComponent, StackComponent, StackedAreaChartComponent, StackedBarChartComponent, StackedPercentageAreaChartComponent, StatusBarChartComponent, StatusWithIconFormatterComponent, TEST_REGISTRY, TIMESERIES_INSPECTION_MENU_CLEAR, TIMESERIES_INSPECTION_MENU_CLOSE, TIMESERIES_INSPECTION_MENU_EXPLORE, TIMESERIES_INSPECTION_MENU_SYNCHRONIZE, TIMESERIES_INSPECTION_MENU_ZOOM_IN, TIMESERIES_INSPECTION_MENU_ZOOM_OUT, TableColumnConfigurationComponent, TableColumnsConfigurationComponent, TableColumnsConfigurationV2Component, TableDataSourceAdapter, TableDataSourceErrorComponent, TableFiltersEditorComponent, TableFormatterRegistryService, TableWidgetComponent, TemplateLoadErrorComponent, ThresholdsConfigurationComponent, TilesComponent, TimeframeSelectionComponent, TimeframeSerializationService, TimeseriesChartPreset, TimeseriesChartPresetService, TimeseriesChartTypes, TimeseriesDataSourceAdapter, TimeseriesInspectionMenuComponent, TimeseriesInteractionType, TimeseriesMetadataConfigurationComponent, TimeseriesScaleType, TimeseriesSeriesCollectionConfigurationComponent, TimeseriesSeriesConverterService, TimeseriesTileDescriptionConfigurationComponent, TimeseriesTileIndicatorDataConfigurationComponent, TimeseriesTransformer, TimeseriesWidgetComponent, TimeseriesWidgetProjectType, TitleAndDescriptionConfigurationComponent, TitleAndDescriptionConverterService, UrlInteractionHandler, UrlInteractionService, ValueSelectorComponent, WIDGET_BODY, WIDGET_CREATE, WIDGET_EDIT, WIDGET_HEADER, WIDGET_LOADING, WIDGET_POSITION_CHANGE, WIDGET_READY, WIDGET_REMOVE, WIDGET_RESIZE, WIDGET_SEARCH, WellKnownDataSourceFeatures, WellKnownPathKey, WellKnownProviders, WidgetBodyComponent, WidgetBodyContentComponent, WidgetClonerComponent, WidgetClonerService, WidgetComponent, WidgetConfigurationService, WidgetConfiguratorSectionComponent, WidgetConfiguratorSectionHeaderPipe, WidgetEditorAccordionComponent, WidgetEditorAccordionFormStatePipe, WidgetEditorComponent, WidgetEditorDirective, WidgetEditorService, WidgetErrorComponent, WidgetHeaderComponent, WidgetSearchComponent, WidgetToDashboardEventProxyService, WidgetTypesService, WindowObject, XYChartComponent, applyStatusEndpoints, chartPaletteColorMap, fieldMapper, getPizzagnaPropertyPath, hasControlInErrorState, hasTimeseriesWidgetSummaryLegend, mapDataToFormatterProperties, mergeChanges, metricsSeriesMeasurementsMinMax, percentageAggregator, refresher, sumAggregator, timeSeriesDatetimeFormatter, transformChangePoint, transformDifference, transformFloatingAverage, transformLinReg, transformLoessSmoothing, transformLoessStandardize, transformNormalize, transformPercentileStd, transformStandardize, widgetBodyContentNodes };
|
|
17803
18381
|
//# sourceMappingURL=nova-ui-dashboards.js.map
|