@nova-ui/dashboards 20.0.12 → 20.0.14
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/fesm2022/nova-ui-dashboards.mjs +491 -64
- package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
- package/index.d.ts +81 -13
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.d.ts +2 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js +21 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +3 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +8 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +20 -8
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/types.d.ts +7 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js.map +1 -1
- package/sdk/atoms/src/lib/components/views/kpi-tile-view/kpi-tile-view.component.d.ts +2 -0
- package/sdk/atoms/src/lib/components/views/kpi-tile-view/kpi-tile-view.component.js +21 -0
- package/sdk/atoms/src/lib/components/views/kpi-tile-view/kpi-tile-view.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/views/proportional-chart-view/proportional-chart-view.component.d.ts +13 -1
- package/sdk/atoms/src/lib/components/views/proportional-chart-view/proportional-chart-view.component.js +52 -0
- package/sdk/atoms/src/lib/components/views/proportional-chart-view/proportional-chart-view.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.d.ts +4 -2
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js +26 -2
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.d.ts +4 -2
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js +8 -0
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.d.ts +4 -0
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.js +19 -3
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.d.ts +4 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js +25 -4
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.d.ts +4 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js +15 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/configurator.module.js +2 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/keyboard-reorder.d.ts +18 -0
- package/sdk/atoms/src/lib/configurator/keyboard-reorder.js +144 -0
- package/sdk/atoms/src/lib/configurator/keyboard-reorder.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/services/configurator.service.d.ts +2 -1
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js +44 -3
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js.map +1 -1
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.d.ts +7 -0
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js +66 -1
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i4 from '@angular/common';
|
|
2
2
|
import { CommonModule, DecimalPipe, DOCUMENT } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, HostBinding, Input, Pipe, NgModule, InjectionToken, Host, Self, Directive, Injectable, Inject, Optional, NgZone, Injector, EventEmitter, SimpleChange, Output, ViewChildren, ViewChild, ViewEncapsulation, SecurityContext, ChangeDetectionStrategy, inject, ElementRef, HostListener, Renderer2, signal, ChangeDetectorRef, KeyValueDiffers, ViewContainerRef, ContentChildren, forwardRef } from '@angular/core';
|
|
4
|
+
import { Component, HostBinding, Input, Pipe, NgModule, InjectionToken, Host, Self, Directive, Injectable, Inject, Optional, NgZone, Injector, EventEmitter, SimpleChange, Output, ViewChildren, ViewChild, ViewEncapsulation, SecurityContext, ChangeDetectionStrategy, inject, ElementRef, HostListener, Renderer2, signal, ChangeDetectorRef, KeyValueDiffers, ViewContainerRef, ContentChildren, forwardRef, afterEveryRender, afterNextRender } from '@angular/core';
|
|
5
5
|
import * as i2 from '@nova-ui/bits';
|
|
6
6
|
import { unitConversionBases, NuiImageModule, EventDefinition, immutableSet, EventBus, VirtualViewportManager, uuid, LoggerService, TimeframeService, ResizeObserverDirective, nameof, TableSelectionMode, DEFAULT_INTERACTIVE_ELEMENTS, SorterDirection, TableRowComponent, HistoryStorage, UnitBase, UnitConversionService, NuiBusyModule, NuiCommonModule, NuiIconModule, OVERLAY_CONTAINER, SpinnerSize, removeErrors, NuiMenuModule, NuiPopupModule, NuiDialogModule, NuiSpinnerModule, NuiTextboxModule, NuiFormFieldModule, NuiButtonModule, NuiOverlayAdditionsModule, NuiSelectV2Module, NuiRadioModule, NuiCheckboxModule, NuiValidationMessageModule, NuiExpanderModule, NuiPanelModule, NuiDividerModule, NuiSwitchModule, NuiMessageModule, NuiWizardModule, NuiSorterModule, NuiSearchModule, NuiRepeatModule, NuiColorPickerModule, NuiProgressModule, NuiTableModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTooltipModule, NuiRiskScoreModule, NuiSelectModule, NuiPopoverModule, NuiPaginatorModule } from '@nova-ui/bits';
|
|
7
7
|
import * as i11 from '@angular/cdk/scrolling';
|
|
@@ -40,6 +40,8 @@ import * as i1$1 from '@angular/platform-browser';
|
|
|
40
40
|
import moment, { duration } from 'moment/moment';
|
|
41
41
|
import cloneDeep from 'lodash/cloneDeep';
|
|
42
42
|
import * as d3 from 'd3';
|
|
43
|
+
import * as i2$1 from '@angular/cdk/a11y';
|
|
44
|
+
import { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
43
45
|
import * as i5$1 from '@angular/cdk/drag-drop';
|
|
44
46
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
45
47
|
import sumBy from 'lodash/sumBy';
|
|
@@ -5509,6 +5511,16 @@ class KpiTileViewComponent {
|
|
|
5509
5511
|
get isInteractive() {
|
|
5510
5512
|
return this.interactive && !this.showEmpty;
|
|
5511
5513
|
}
|
|
5514
|
+
get accessibleName() {
|
|
5515
|
+
if (this.valueTemplate) {
|
|
5516
|
+
return null;
|
|
5517
|
+
}
|
|
5518
|
+
const parts = [this.label, this.value, this.units]
|
|
5519
|
+
.filter(part => part !== null && part !== undefined)
|
|
5520
|
+
.map(part => String(part).trim())
|
|
5521
|
+
.filter(part => part.length > 0);
|
|
5522
|
+
return parts.join(" ") || $localize `KPI`;
|
|
5523
|
+
}
|
|
5512
5524
|
get showEmpty() {
|
|
5513
5525
|
if (this.empty) {
|
|
5514
5526
|
return true;
|
|
@@ -5527,6 +5539,17 @@ class KpiTileViewComponent {
|
|
|
5527
5539
|
}
|
|
5528
5540
|
this.tileClick.emit();
|
|
5529
5541
|
}
|
|
5542
|
+
onKeydown(event) {
|
|
5543
|
+
if (!this.isInteractive ||
|
|
5544
|
+
event.target !== event.currentTarget ||
|
|
5545
|
+
(event.key !== "Enter" && event.key !== " ")) {
|
|
5546
|
+
return;
|
|
5547
|
+
}
|
|
5548
|
+
event.preventDefault();
|
|
5549
|
+
if (!event.repeat) {
|
|
5550
|
+
this.onInteraction();
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5530
5553
|
getScaleBroker(id) {
|
|
5531
5554
|
if (this.syncValuesBroker) {
|
|
5532
5555
|
return this.syncValuesBroker.find(b => b.id === id);
|
|
@@ -5534,11 +5557,11 @@ class KpiTileViewComponent {
|
|
|
5534
5557
|
return undefined;
|
|
5535
5558
|
}
|
|
5536
5559
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KpiTileViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5537
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: KpiTileViewComponent, isStandalone: false, selector: "nui-kpi-tile-view", inputs: { value: "value", label: "label", units: "units", backgroundColor: "backgroundColor", textColor: "textColor", icon: "icon", link: "link", interactive: "interactive", loading: "loading", empty: "empty", fontSize: "fontSize", margin: "margin", syncValuesBroker: "syncValuesBroker", valueTemplate: "valueTemplate" }, outputs: { tileClick: "tileClick" }, ngImport: i0, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"loading\">\n <ng-container *ngIf=\"link\">\n <a class=\"nui-kpi-indicator\" [href]=\"link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!link\">\n <div
|
|
5560
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: KpiTileViewComponent, isStandalone: false, selector: "nui-kpi-tile-view", inputs: { value: "value", label: "label", units: "units", backgroundColor: "backgroundColor", textColor: "textColor", icon: "icon", link: "link", interactive: "interactive", loading: "loading", empty: "empty", fontSize: "fontSize", margin: "margin", syncValuesBroker: "syncValuesBroker", valueTemplate: "valueTemplate" }, outputs: { tileClick: "tileClick" }, ngImport: i0, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"loading\">\n <ng-container *ngIf=\"link\">\n <a class=\"nui-kpi-indicator\" [href]=\"link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!link\">\n <div\n class=\"nui-kpi-indicator\"\n [attr.role]=\"isInteractive ? 'button' : null\"\n [attr.tabindex]=\"isInteractive ? 0 : null\"\n [attr.aria-label]=\"isInteractive ? accessibleName : null\"\n (click)=\"onInteraction()\"\n (keydown)=\"onKeydown($event)\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"isInteractive\"\n [ngStyle]=\"{'background-color': backgroundColor}\">\n </div>\n <div\n class=\"nui-kpi-indicator__text\"\n [ngStyle]=\"{'color': computedTextColor}\">\n <div class=\"nui-kpi-indicator__zoom-container\">\n <div\n class=\"nui-kpi-indicator__description nui-kpi-indicator__zoom-container__row\"\n [title]=\"label || ''\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.5\"\n [scaleIN$]=\"getScaleBroker('label')?.out$\"\n [scaleOUT$]=\"getScaleBroker('label')?.in$\"\n >{{ label }}</span\n >\n </div>\n\n <ng-container *ngIf=\"valueTemplate; else kpiValueRaw\">\n <div\n class=\"nui-kpi-indicator__value nui-kpi-indicator__zoom-container__row\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [margin]=\"margin\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\">\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: { $implicit: value, label: label, units: units }\"></ng-container>\n </span>\n </div>\n </ng-container>\n\n <ng-template #kpiValueRaw>\n <div\n class=\"nui-kpi-indicator__value nui-kpi-indicator__zoom-container__row\"\n [style.font-size]=\"fontSize\"\n [title]=\"value\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [margin]=\"margin\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\">\n {{ value }}\n </span>\n </div>\n </ng-template>\n\n <div\n class=\"nui-kpi-indicator__units nui-kpi-indicator__zoom-container__row\"\n *ngIf=\"units\"\n [title]=\"units\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('units')?.out$\"\n [scaleOUT$]=\"getScaleBroker('units')?.in$\"\n [minScale]=\"0.5\"\n >{{ units }}</span\n >\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".nui-kpi-indicator{position:relative;display:block;height:100%;width:100%}.nui-kpi-indicator[role=button]:focus-visible:after{content:\"\";position:absolute;inset:0;pointer-events:none;outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa);box-shadow:inset 0 0 0 3px var(--nui-color-bg-content, #fff)}.nui-kpi-indicator__background{height:100%;width:100%;background-color:var(--nui-color-bg-secondary,#fafafa);color:var(--nui-color-text-default,#111)}.nui-kpi-indicator__text{position:absolute;width:100%;height:100%;top:0;pointer-events:none}.nui-kpi-indicator__text *>span{filter:invert(1) grayscale(1) contrast(100)}.nui-kpi-indicator__value{font-size:54px;font-weight:600;margin:auto 0;min-width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;height:100%;min-height:5px;max-height:200px}.nui-kpi-indicator__value>span.without-filter{filter:unset}.nui-kpi-indicator__units{font-size:16px;font-weight:600;min-width:0;margin-bottom:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__units>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__description{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-kpi-indicator__description>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__zoom-container{display:grid;grid-template-columns:1fr;width:100%;height:100%}.nui-kpi-indicator__zoom-container:has(.nui-kpi-indicator__zoom-container__row:nth-child(3)){grid-template-rows:30% 40% 30%}.nui-kpi-indicator__zoom-container:not(:has(.nui-kpi-indicator__zoom-container__row:nth-child(3))){grid-template-rows:30% 70%}.nui-kpi-indicator--interactive{cursor:pointer}.nui-kpi-indicator--interactive:hover{filter:brightness(90%)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5538
5561
|
}
|
|
5539
5562
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KpiTileViewComponent, decorators: [{
|
|
5540
5563
|
type: Component,
|
|
5541
|
-
args: [{ selector: "nui-kpi-tile-view", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"loading\">\n <ng-container *ngIf=\"link\">\n <a class=\"nui-kpi-indicator\" [href]=\"link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!link\">\n <div
|
|
5564
|
+
args: [{ selector: "nui-kpi-tile-view", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"loading\">\n <ng-container *ngIf=\"link\">\n <a class=\"nui-kpi-indicator\" [href]=\"link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!link\">\n <div\n class=\"nui-kpi-indicator\"\n [attr.role]=\"isInteractive ? 'button' : null\"\n [attr.tabindex]=\"isInteractive ? 0 : null\"\n [attr.aria-label]=\"isInteractive ? accessibleName : null\"\n (click)=\"onInteraction()\"\n (keydown)=\"onKeydown($event)\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"isInteractive\"\n [ngStyle]=\"{'background-color': backgroundColor}\">\n </div>\n <div\n class=\"nui-kpi-indicator__text\"\n [ngStyle]=\"{'color': computedTextColor}\">\n <div class=\"nui-kpi-indicator__zoom-container\">\n <div\n class=\"nui-kpi-indicator__description nui-kpi-indicator__zoom-container__row\"\n [title]=\"label || ''\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.5\"\n [scaleIN$]=\"getScaleBroker('label')?.out$\"\n [scaleOUT$]=\"getScaleBroker('label')?.in$\"\n >{{ label }}</span\n >\n </div>\n\n <ng-container *ngIf=\"valueTemplate; else kpiValueRaw\">\n <div\n class=\"nui-kpi-indicator__value nui-kpi-indicator__zoom-container__row\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [margin]=\"margin\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\">\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: { $implicit: value, label: label, units: units }\"></ng-container>\n </span>\n </div>\n </ng-container>\n\n <ng-template #kpiValueRaw>\n <div\n class=\"nui-kpi-indicator__value nui-kpi-indicator__zoom-container__row\"\n [style.font-size]=\"fontSize\"\n [title]=\"value\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [margin]=\"margin\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\">\n {{ value }}\n </span>\n </div>\n </ng-template>\n\n <div\n class=\"nui-kpi-indicator__units nui-kpi-indicator__zoom-container__row\"\n *ngIf=\"units\"\n [title]=\"units\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('units')?.out$\"\n [scaleOUT$]=\"getScaleBroker('units')?.in$\"\n [minScale]=\"0.5\"\n >{{ units }}</span\n >\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".nui-kpi-indicator{position:relative;display:block;height:100%;width:100%}.nui-kpi-indicator[role=button]:focus-visible:after{content:\"\";position:absolute;inset:0;pointer-events:none;outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa);box-shadow:inset 0 0 0 3px var(--nui-color-bg-content, #fff)}.nui-kpi-indicator__background{height:100%;width:100%;background-color:var(--nui-color-bg-secondary,#fafafa);color:var(--nui-color-text-default,#111)}.nui-kpi-indicator__text{position:absolute;width:100%;height:100%;top:0;pointer-events:none}.nui-kpi-indicator__text *>span{filter:invert(1) grayscale(1) contrast(100)}.nui-kpi-indicator__value{font-size:54px;font-weight:600;margin:auto 0;min-width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;height:100%;min-height:5px;max-height:200px}.nui-kpi-indicator__value>span.without-filter{filter:unset}.nui-kpi-indicator__units{font-size:16px;font-weight:600;min-width:0;margin-bottom:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__units>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__description{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-kpi-indicator__description>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__zoom-container{display:grid;grid-template-columns:1fr;width:100%;height:100%}.nui-kpi-indicator__zoom-container:has(.nui-kpi-indicator__zoom-container__row:nth-child(3)){grid-template-rows:30% 40% 30%}.nui-kpi-indicator__zoom-container:not(:has(.nui-kpi-indicator__zoom-container__row:nth-child(3))){grid-template-rows:30% 70%}.nui-kpi-indicator--interactive{cursor:pointer}.nui-kpi-indicator--interactive:hover{filter:brightness(90%)}.is-empty{display:grid;place-content:center;height:100%}\n"] }]
|
|
5542
5565
|
}], propDecorators: { value: [{
|
|
5543
5566
|
type: Input
|
|
5544
5567
|
}], label: [{
|
|
@@ -6884,7 +6907,7 @@ class ProportionalWidgetComponent {
|
|
|
6884
6907
|
!this.chartAssist);
|
|
6885
6908
|
}
|
|
6886
6909
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ProportionalWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.KeyValueDiffers }, { token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE }, { token: i2.LoggerService }, { token: i2.UnitConversionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6887
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ProportionalWidgetComponent, isStandalone: false, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\">\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\">\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n (keydown.enter)=\"onInteraction(legendSeries)\"\n (keydown.space)=\"$event.preventDefault(); onInteraction(legendSeries)\"\n [attr.role]=\"interactive ? 'button' : null\"\n [tabindex]=\"interactive ? 0 : -1\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \">\n @if (legendFormatter && legendFormatter.componentType) {\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"></ng-template>\n </ng-container>\n </div>\n } @else {\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \">\n </nui-rich-legend-tile>\n @if ( seriesToIconMap && seriesToIconMap[legendSeries.id] ) {\n <nui-icon\n legendTransclusion\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n aria-hidden=\"true\"></nui-icon>\n }\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\">\n @if (!legendSeries.link) {\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\">\n {{ legendSeries.name }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\">\n {{ legendSeries.name }}\n </a>\n }\n </div>\n }\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel"] }, { kind: "component", type: i4$1.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] }); }
|
|
6910
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ProportionalWidgetComponent, isStandalone: false, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\">\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\">\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n (keydown.enter)=\"onInteraction(legendSeries)\"\n (keydown.space)=\"$event.preventDefault(); onInteraction(legendSeries)\"\n [attr.role]=\"interactive ? 'button' : null\"\n [tabindex]=\"interactive ? 0 : -1\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \">\n @if (legendFormatter && legendFormatter.componentType) {\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"></ng-template>\n </ng-container>\n </div>\n } @else {\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \">\n </nui-rich-legend-tile>\n @if ( seriesToIconMap && seriesToIconMap[legendSeries.id] ) {\n <nui-icon\n legendTransclusion\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n aria-hidden=\"true\"></nui-icon>\n }\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\">\n @if (!legendSeries.link) {\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\">\n {{ legendSeries.name }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\">\n {{ legendSeries.name }}\n </a>\n }\n </div>\n }\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "component", type: i4$1.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] }); }
|
|
6888
6911
|
}
|
|
6889
6912
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ProportionalWidgetComponent, decorators: [{
|
|
6890
6913
|
type: Component,
|
|
@@ -6938,6 +6961,16 @@ class RiskScoreTileComponent {
|
|
|
6938
6961
|
!_isNil(this.widgetData?.value)) ||
|
|
6939
6962
|
false);
|
|
6940
6963
|
}
|
|
6964
|
+
get accessibleName() {
|
|
6965
|
+
const value = this.widgetData?.useStaticLabel
|
|
6966
|
+
? this.widgetData?.staticLabel ?? this.widgetData?.value
|
|
6967
|
+
: this.widgetData?.value;
|
|
6968
|
+
const parts = [this.widgetData?.label, value]
|
|
6969
|
+
.filter(part => part !== null && part !== undefined)
|
|
6970
|
+
.map(part => String(part).trim())
|
|
6971
|
+
.filter(part => part.length > 0);
|
|
6972
|
+
return parts.join(" ") || $localize `Risk score`;
|
|
6973
|
+
}
|
|
6941
6974
|
constructor(changeDetector, dataSource, eventBus) {
|
|
6942
6975
|
this.changeDetector = changeDetector;
|
|
6943
6976
|
this.dataSource = dataSource;
|
|
@@ -6954,6 +6987,17 @@ class RiskScoreTileComponent {
|
|
|
6954
6987
|
.getStream(INTERACTION)
|
|
6955
6988
|
.next({ payload: { data: this.widgetData } });
|
|
6956
6989
|
}
|
|
6990
|
+
onKeydown(event) {
|
|
6991
|
+
if (!this.interactive ||
|
|
6992
|
+
event.target !== event.currentTarget ||
|
|
6993
|
+
(event.key !== "Enter" && event.key !== " ")) {
|
|
6994
|
+
return;
|
|
6995
|
+
}
|
|
6996
|
+
event.preventDefault();
|
|
6997
|
+
if (!event.repeat) {
|
|
6998
|
+
this.onInteraction();
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
6957
7001
|
getScaleBroker(id) {
|
|
6958
7002
|
if (this.syncValuesBroker) {
|
|
6959
7003
|
return this.syncValuesBroker.find(b => b.id === id);
|
|
@@ -6991,11 +7035,11 @@ class RiskScoreTileComponent {
|
|
|
6991
7035
|
return formattersProperties;
|
|
6992
7036
|
}
|
|
6993
7037
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RiskScoreTileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6994
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RiskScoreTileComponent, isStandalone: false, 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
|
|
7038
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RiskScoreTileComponent, isStandalone: false, 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\n class=\"nui-risk-score-tile-indicator\"\n [attr.role]=\"interactive ? 'button' : null\"\n [attr.tabindex]=\"interactive ? 0 : null\"\n [attr.aria-label]=\"interactive ? accessibleName : null\"\n (click)=\"onInteraction()\"\n (keydown)=\"onKeydown($event)\">\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\"></div>\n <div\n class=\"nui-risk-score-tile-indicator__text\"\n [ngStyle]=\"{\n color: widgetData?.textColor || defaultColor\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 <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 <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 \"></nui-risk-score>\n </div>\n\n <div\n class=\"nui-risk-score-tile-indicator__description\"\n [title]=\"widgetData?.description\">\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 <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:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-risk-score-tile-indicator[role=button]:focus-visible:after{content:\"\";position:absolute;inset:0;pointer-events:none;outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa);box-shadow:inset 0 0 0 3px var(--nui-color-bg-content, #fff)}.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% - 40px);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;-o-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"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: i2.RiskScoreComponent, selector: "nui-risk-score", inputs: ["level", "minLevel", "maxLevel", "title"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6995
7039
|
}
|
|
6996
7040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RiskScoreTileComponent, decorators: [{
|
|
6997
7041
|
type: Component,
|
|
6998
|
-
args: [{ selector: "nui-risk-score-tile", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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
|
|
7042
|
+
args: [{ selector: "nui-risk-score-tile", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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\n class=\"nui-risk-score-tile-indicator\"\n [attr.role]=\"interactive ? 'button' : null\"\n [attr.tabindex]=\"interactive ? 0 : null\"\n [attr.aria-label]=\"interactive ? accessibleName : null\"\n (click)=\"onInteraction()\"\n (keydown)=\"onKeydown($event)\">\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\"></div>\n <div\n class=\"nui-risk-score-tile-indicator__text\"\n [ngStyle]=\"{\n color: widgetData?.textColor || defaultColor\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 <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 <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 \"></nui-risk-score>\n </div>\n\n <div\n class=\"nui-risk-score-tile-indicator__description\"\n [title]=\"widgetData?.description\">\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 <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:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-risk-score-tile-indicator[role=button]:focus-visible:after{content:\"\";position:absolute;inset:0;pointer-events:none;outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa);box-shadow:inset 0 0 0 3px var(--nui-color-bg-content, #fff)}.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% - 40px);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;-o-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"] }]
|
|
6999
7043
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
7000
7044
|
type: Optional
|
|
7001
7045
|
}, {
|
|
@@ -8249,7 +8293,7 @@ class TimeframeSelectionComponent {
|
|
|
8249
8293
|
}
|
|
8250
8294
|
}
|
|
8251
8295
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeframeSelectionComponent, deps: [{ token: PizzagnaService }, { token: i2.TimeframeService }, { token: TimeframeSerializationService }, { token: i2.HistoryStorage }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8252
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeframeSelectionComponent, isStandalone: false, selector: "nui-timeframe-selection", inputs: { componentId: "componentId", minDate: "minDate", maxDate: "maxDate", timeframe: "timeframe" }, host: { properties: { "class": "this.elementClass" } }, providers: [HistoryStorage], usesOnChanges: true, ngImport: i0, template: "<nui-time-frame-bar\n [minDate]=\"minDateAsMoment\"\n [maxDate]=\"maxDateAsMoment\"\n [timeFrame]=\"currentTimeframe\"\n (timeFrameChange)=\"onTimeframeChange(history.restart($event))\"\n [historyIndex]=\"history.index\"\n (undo)=\"onTimeframeChange(history.undo())\"\n (clear)=\"onTimeframeChange(history.restart())\">\n <!-- content for default projection slot -->\n <nui-icon icon=\"calendar\" class=\"pr-3\" aria-hidden=\"true\"></nui-icon>\n {{ currentTimeframe | timeFrame }}\n\n <!-- content for time frame selection projection slot -->\n <nui-quick-picker\n [presets]=\"timeframeService.currentPresets\"\n timeFrameSelection>\n <nui-time-frame-picker></nui-time-frame-picker>\n </nui-quick-picker>\n</nui-time-frame-bar>\n", styles: [":host{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TimeFrameBarComponent, selector: "nui-time-frame-bar", inputs: ["minDate", "maxDate", "timeFrame", "historyIndex"], outputs: ["timeFrameChange", "undo", "clear"] }, { kind: "component", type: i2.QuickPickerComponent, selector: "nui-quick-picker", inputs: ["presets", "pickerTitle", "presetsTitle", "selectedPreset", "presetKeysOrder"], outputs: ["presetSelected"] }, { kind: "component", type: i2.TimeFramePickerComponent, selector: "nui-time-frame-picker", inputs: ["minDate", "maxDate", "startModel", "appendToBody"], outputs: ["changed"] }, { kind: "pipe", type: i2.TimeFrameFormatPipe, name: "timeFrame" }] }); }
|
|
8296
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeframeSelectionComponent, isStandalone: false, selector: "nui-timeframe-selection", inputs: { componentId: "componentId", minDate: "minDate", maxDate: "maxDate", timeframe: "timeframe" }, host: { properties: { "class": "this.elementClass" } }, providers: [HistoryStorage], usesOnChanges: true, ngImport: i0, template: "<nui-time-frame-bar\n [minDate]=\"minDateAsMoment\"\n [maxDate]=\"maxDateAsMoment\"\n [timeFrame]=\"currentTimeframe\"\n (timeFrameChange)=\"onTimeframeChange(history.restart($event))\"\n [historyIndex]=\"history.index\"\n (undo)=\"onTimeframeChange(history.undo())\"\n (clear)=\"onTimeframeChange(history.restart())\">\n <!-- content for default projection slot -->\n <nui-icon icon=\"calendar\" class=\"pr-3\" aria-hidden=\"true\"></nui-icon>\n {{ currentTimeframe | timeFrame }}\n\n <!-- content for time frame selection projection slot -->\n <nui-quick-picker\n [presets]=\"timeframeService.currentPresets\"\n timeFrameSelection>\n <nui-time-frame-picker></nui-time-frame-picker>\n </nui-quick-picker>\n</nui-time-frame-bar>\n", styles: [":host{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TimeFrameBarComponent, selector: "nui-time-frame-bar", inputs: ["minDate", "maxDate", "timeFrame", "historyIndex"], outputs: ["timeFrameChange", "undo", "clear"] }, { kind: "component", type: i2.QuickPickerComponent, selector: "nui-quick-picker", inputs: ["presets", "pickerTitle", "presetsTitle", "selectedPreset", "presetKeysOrder"], outputs: ["presetSelected"] }, { kind: "component", type: i2.TimeFramePickerComponent, selector: "nui-time-frame-picker", inputs: ["minDate", "maxDate", "startModel", "appendToBody", "ariaDescribedby"], outputs: ["changed"] }, { kind: "pipe", type: i2.TimeFrameFormatPipe, name: "timeFrame" }] }); }
|
|
8253
8297
|
}
|
|
8254
8298
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeframeSelectionComponent, decorators: [{
|
|
8255
8299
|
type: Component,
|
|
@@ -8656,6 +8700,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
8656
8700
|
// THE SOFTWARE.
|
|
8657
8701
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
8658
8702
|
class TimeseriesChartComponent {
|
|
8703
|
+
getLegendDisplayValue(value) {
|
|
8704
|
+
return value === "" &&
|
|
8705
|
+
this.configuration.projectType ===
|
|
8706
|
+
TimeseriesWidgetProjectType.PerfstackApp
|
|
8707
|
+
? undefined
|
|
8708
|
+
: value ?? undefined;
|
|
8709
|
+
}
|
|
8659
8710
|
get seriesInteractive() {
|
|
8660
8711
|
return (this.configuration?.interaction === "series" ||
|
|
8661
8712
|
this.dataSource?.features?.getFeatureConfig(WellKnownDataSourceFeatures.Interactivity)?.enabled ||
|
|
@@ -8672,6 +8723,7 @@ class TimeseriesChartComponent {
|
|
|
8672
8723
|
this.buildChart$ = new Subject();
|
|
8673
8724
|
this.resetChart = false;
|
|
8674
8725
|
this.chartBuilt = false;
|
|
8726
|
+
this.timeseriesWidgetProjectType = TimeseriesWidgetProjectType;
|
|
8675
8727
|
this.buildChart$.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
8676
8728
|
this.chartBuilt = true;
|
|
8677
8729
|
});
|
|
@@ -9003,11 +9055,11 @@ class StatusBarChartComponent extends TimeseriesChartComponent {
|
|
|
9003
9055
|
return index === 0 ? series.legendDescriptionSecondary : "";
|
|
9004
9056
|
}
|
|
9005
9057
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StatusBarChartComponent, deps: [{ token: i2.IconService }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9006
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
9058
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StatusBarChartComponent, isStandalone: false, selector: "nui-status-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \">\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"></nui-chart>\n <div\n class=\"d-flex flex-column pl-2\"\n [class.justify-content-center]=\"\n configuration.type === timeseriesChartTypes.alert &&\n chartAssist.sparks.length > 1\n \"\n [class.last-legend-margin]=\"\n configuration.type === timeseriesChartTypes.alert &&\n i > 0 &&\n i === chartAssist.sparks.length - 1\n \"\n [class.layout-fixed-legend]=\"configuration.gridConfig?.fixedLayout\"\n *ngIf=\"\n spark.chartSeriesSet?.length > 0 && spark.chartSeriesSet[0];\n let series\n \">\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\">\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\">\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\n )\n )\n \"\n [backgroundColor]=\"\n i === 0\n ? summaryLegendBcgColor\n : chartAssist.palette.standardColors.get(\n series.id\n )\n \"\n [color]=\"\n i === 0\n ? summaryLegendColor\n : chartAssist.palette.textColors.get(series.id)\n \">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\n >\n </nui-rich-legend-tile>\n <div\n *ngIf=\"isStatusChart()\"\n class=\"status-bar-chart__legend__tile d-flex justify-content-center align-items-center\">\n @if ( configuration.projectType ===\n timeseriesWidgetProjectType.PerfstackApp &&\n series.data.length === 0 ) {\n <span role=\"img\" aria-label=\"No data\" i18n-aria-label\n >--</span\n >\n } @else {\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"></nui-icon>\n }\n </div>\n <button\n nui-button\n legendMenu\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(series.id)\"\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"></button>\n </nui-legend-series>\n </nui-legend>\n </div>\n </div>\n</div>\n", styles: [".status-bar-chart__legend__tile{width:60px;position:relative}.status-bar-chart__legend__tile__background{position:absolute;opacity:.4}.status-bar-chart__legend__tile__icon{position:absolute}:host ::ng-deep .description-container{flex-grow:1}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);max-width:100%}.layout-fixed-legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed-legend nui-legend{margin:0!important;width:100%}.last-legend-margin{justify-content:start!important;margin-top:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
9007
9059
|
}
|
|
9008
9060
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StatusBarChartComponent, decorators: [{
|
|
9009
9061
|
type: Component,
|
|
9010
|
-
args: [{ selector: "nui-status-bar-chart", standalone: false, template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \">\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"></nui-chart>\n <div\n class=\"d-flex flex-column pl-2\"\n [class.justify-content-center]=\"\n configuration.type === timeseriesChartTypes.alert &&\n chartAssist.sparks.length > 1\n \"\n [class.last-legend-margin]=\"\n configuration.type === timeseriesChartTypes.alert &&\n i > 0 &&\n i === chartAssist.sparks.length - 1\n \"\n [class.layout-fixed-legend]=\"configuration.gridConfig?.fixedLayout\"\n *ngIf=\"\n spark.chartSeriesSet?.length > 0 && spark.chartSeriesSet[0];\n let series\n \">\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\">\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\">\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n
|
|
9062
|
+
args: [{ selector: "nui-status-bar-chart", standalone: false, template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \">\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"></nui-chart>\n <div\n class=\"d-flex flex-column pl-2\"\n [class.justify-content-center]=\"\n configuration.type === timeseriesChartTypes.alert &&\n chartAssist.sparks.length > 1\n \"\n [class.last-legend-margin]=\"\n configuration.type === timeseriesChartTypes.alert &&\n i > 0 &&\n i === chartAssist.sparks.length - 1\n \"\n [class.layout-fixed-legend]=\"configuration.gridConfig?.fixedLayout\"\n *ngIf=\"\n spark.chartSeriesSet?.length > 0 && spark.chartSeriesSet[0];\n let series\n \">\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\">\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\">\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\n )\n )\n \"\n [backgroundColor]=\"\n i === 0\n ? summaryLegendBcgColor\n : chartAssist.palette.standardColors.get(\n series.id\n )\n \"\n [color]=\"\n i === 0\n ? summaryLegendColor\n : chartAssist.palette.textColors.get(series.id)\n \">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\n >\n </nui-rich-legend-tile>\n <div\n *ngIf=\"isStatusChart()\"\n class=\"status-bar-chart__legend__tile d-flex justify-content-center align-items-center\">\n @if ( configuration.projectType ===\n timeseriesWidgetProjectType.PerfstackApp &&\n series.data.length === 0 ) {\n <span role=\"img\" aria-label=\"No data\" i18n-aria-label\n >--</span\n >\n } @else {\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"></nui-icon>\n }\n </div>\n <button\n nui-button\n legendMenu\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(series.id)\"\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"></button>\n </nui-legend-series>\n </nui-legend>\n </div>\n </div>\n</div>\n", styles: [".status-bar-chart__legend__tile{width:60px;position:relative}.status-bar-chart__legend__tile__background{position:absolute;opacity:.4}.status-bar-chart__legend__tile__icon{position:absolute}:host ::ng-deep .description-container{flex-grow:1}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);max-width:100%}.layout-fixed-legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed-legend nui-legend{margin:0!important;width:100%}.last-legend-margin{justify-content:start!important;margin-top:7px}\n"] }]
|
|
9011
9063
|
}], ctorParameters: () => [{ type: i2.IconService }, { type: undefined, decorators: [{
|
|
9012
9064
|
type: Optional
|
|
9013
9065
|
}, {
|
|
@@ -10031,16 +10083,28 @@ class XYChartComponent extends TimeseriesChartComponent {
|
|
|
10031
10083
|
this.updateChartData();
|
|
10032
10084
|
}
|
|
10033
10085
|
getLegendValue(legendSeries, valueAccessorKey) {
|
|
10034
|
-
|
|
10035
|
-
if (this.configuration.projectType ===
|
|
10036
|
-
TimeseriesWidgetProjectType.PerfstackApp &&
|
|
10037
|
-
this.configuration.preset === TimeseriesChartPreset.StackedArea &&
|
|
10086
|
+
if (this.configuration.preset === TimeseriesChartPreset.StackedArea &&
|
|
10038
10087
|
this.configuration.units === "percent") {
|
|
10039
|
-
const
|
|
10040
|
-
const
|
|
10041
|
-
|
|
10088
|
+
const multiplier = this.widgetData?.series?.find((series) => series.id === legendSeries.id)?.legendValueMultiplier;
|
|
10089
|
+
const hasValidMultiplier = multiplier !== undefined &&
|
|
10090
|
+
Number.isFinite(multiplier) &&
|
|
10091
|
+
multiplier > 0;
|
|
10092
|
+
if (hasValidMultiplier ||
|
|
10093
|
+
this.configuration.projectType ===
|
|
10094
|
+
TimeseriesWidgetProjectType.PerfstackApp) {
|
|
10095
|
+
const legendMultiplier = hasValidMultiplier
|
|
10096
|
+
? multiplier
|
|
10097
|
+
: this.chartAssist.legendSeriesSet.length;
|
|
10098
|
+
const rawValue = this.getLegendDisplayValue(this.chartAssist.getHighlightedValue(legendSeries, "y", undefined, valueAccessorKey));
|
|
10099
|
+
if (rawValue === undefined || rawValue === "") {
|
|
10100
|
+
return rawValue;
|
|
10101
|
+
}
|
|
10102
|
+
const scaledValue = parseFloat(`${rawValue}`) * legendMultiplier;
|
|
10103
|
+
const formatter = legendSeries.scales?.y?.formatters?.tick;
|
|
10104
|
+
return this.getLegendDisplayValue(formatter ? formatter(scaledValue) : `${scaledValue} %`);
|
|
10105
|
+
}
|
|
10042
10106
|
}
|
|
10043
|
-
return
|
|
10107
|
+
return this.getLegendDisplayValue(this.chartAssist.getHighlightedValue(legendSeries, "y", "tick", valueAccessorKey));
|
|
10044
10108
|
}
|
|
10045
10109
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: XYChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10046
10110
|
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: XYChartComponent }); }
|
|
@@ -10093,11 +10157,11 @@ class LineChartComponent extends XYChartComponent {
|
|
|
10093
10157
|
return new ChartAssist(chart, null, palette);
|
|
10094
10158
|
}
|
|
10095
10159
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10096
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: LineChartComponent, isStandalone: false, selector: "nui-line-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10160
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: LineChartComponent, isStandalone: false, selector: "nui-line-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"], outputs: ["activated"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10097
10161
|
}
|
|
10098
10162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
10099
10163
|
type: Component,
|
|
10100
|
-
args: [{ selector: "nui-line-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10164
|
+
args: [{ selector: "nui-line-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10101
10165
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10102
10166
|
type: Inject,
|
|
10103
10167
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10150,11 +10214,11 @@ class StackedAreaChartComponent extends XYChartComponent {
|
|
|
10150
10214
|
return new ChartAssist(chart, stackedArea, palette);
|
|
10151
10215
|
}
|
|
10152
10216
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10153
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedAreaChartComponent, isStandalone: false, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10217
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedAreaChartComponent, isStandalone: false, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"], outputs: ["activated"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10154
10218
|
}
|
|
10155
10219
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedAreaChartComponent, decorators: [{
|
|
10156
10220
|
type: Component,
|
|
10157
|
-
args: [{ selector: "nui-stacked-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10221
|
+
args: [{ selector: "nui-stacked-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10158
10222
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10159
10223
|
type: Inject,
|
|
10160
10224
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10222,11 +10286,11 @@ class StackedBarChartComponent extends XYChartComponent {
|
|
|
10222
10286
|
return new ChartAssist(chart, stack, palette);
|
|
10223
10287
|
}
|
|
10224
10288
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10225
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedBarChartComponent, isStandalone: false, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10289
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedBarChartComponent, isStandalone: false, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"], outputs: ["activated"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10226
10290
|
}
|
|
10227
10291
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedBarChartComponent, decorators: [{
|
|
10228
10292
|
type: Component,
|
|
10229
|
-
args: [{ selector: "nui-stacked-bar-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10293
|
+
args: [{ selector: "nui-stacked-bar-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10230
10294
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10231
10295
|
type: Inject,
|
|
10232
10296
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10273,11 +10337,11 @@ class StackedPercentageAreaChartComponent extends XYChartComponent {
|
|
|
10273
10337
|
return new ChartAssist(chart, stackedPercentageArea, palette);
|
|
10274
10338
|
}
|
|
10275
10339
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10276
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedPercentageAreaChartComponent, isStandalone: false, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10340
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: StackedPercentageAreaChartComponent, isStandalone: false, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"], outputs: ["activated"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10277
10341
|
}
|
|
10278
10342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
10279
10343
|
type: Component,
|
|
10280
|
-
args: [{ selector: "nui-stacked-percentage-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\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 </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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></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 <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 <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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) {\n <!-- TODO: NUI-6288 - drill-down sits inside the nui-legend-series (role=\"checkbox\") -->\n <div\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 {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10344
|
+
args: [{ selector: "nui-stacked-percentage-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\">\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\">\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\"></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\">\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \">\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\">\n <nui-rich-legend-tile\n [value]=\"\n getLegendDisplayValue(\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\">\n <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\">\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 aria-label=\"Remove metric\"\n i18n-aria-label\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [separateControls]=\"true\"\n [toggleAriaLabel]=\"legendSeries.legendDescriptionPrimary || legendSeries.name\"\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 <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 <span\n top\n role=\"img\"\n aria-label=\"No data\"\n i18n-aria-label\n [hidden]=\"\n configuration.projectType !==\n timeseriesWidgetProjectType.PerfstackApp\n \"\n >--</span\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 </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 <div class=\"descriptions\">\n @if (!legendSeries.link) { @if (seriesInteractive) {\n <button\n type=\"button\"\n class=\"description description-primary nui-text-link-small link xy-chart__legend-drilldown\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </button>\n } @else {\n <div\n class=\"description description-primary\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n } } @else {\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\">\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n } @if (!legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <div\n class=\"description description-secondary\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n } @else if (legendSeries.secondaryLink &&\n !widgetData.summarySerie) {\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\">\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n }\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <nui-menu\n legendMenu\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\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 {{ 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-drilldown{display:block;width:100%;padding:0 5px;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.xy-chart__legend-drilldown:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.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:var(--nui-color-bg-content-hover,#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"] }]
|
|
10281
10345
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10282
10346
|
type: Inject,
|
|
10283
10347
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10622,6 +10686,8 @@ class ProportionalChartViewComponent {
|
|
|
10622
10686
|
this.chartPalette = new ChartPalette(defaultColorProvider());
|
|
10623
10687
|
this.unitConversionPipe = new DashboardUnitConversionPipe(inject(UnitConversionService));
|
|
10624
10688
|
this.chartSeries = [];
|
|
10689
|
+
this.keyboardFocusedSeriesId = null;
|
|
10690
|
+
this.mouseHoveredSeriesId = null;
|
|
10625
10691
|
}
|
|
10626
10692
|
static { this.NO_SWITCH_LAYOUT_INTERVAL_SIZE = 20; }
|
|
10627
10693
|
static { this.MAX_ROW_LAYOUT_SIZE = 360; }
|
|
@@ -10630,6 +10696,23 @@ class ProportionalChartViewComponent {
|
|
|
10630
10696
|
return !this.data || this.data.length === 0;
|
|
10631
10697
|
}
|
|
10632
10698
|
ngOnChanges(changes) {
|
|
10699
|
+
const hadKeyboardEmphasis = this.keyboardFocusedSeriesId !== null &&
|
|
10700
|
+
this.mouseHoveredSeriesId === null;
|
|
10701
|
+
if (changes.data) {
|
|
10702
|
+
if (!this.data?.some(item => item.id === this.keyboardFocusedSeriesId)) {
|
|
10703
|
+
this.keyboardFocusedSeriesId = null;
|
|
10704
|
+
}
|
|
10705
|
+
if (!this.data?.some(item => item.id === this.mouseHoveredSeriesId)) {
|
|
10706
|
+
this.mouseHoveredSeriesId = null;
|
|
10707
|
+
}
|
|
10708
|
+
}
|
|
10709
|
+
if (changes.legendPlacement && !this.hasLegend()) {
|
|
10710
|
+
this.keyboardFocusedSeriesId = null;
|
|
10711
|
+
this.mouseHoveredSeriesId = null;
|
|
10712
|
+
}
|
|
10713
|
+
if (hadKeyboardEmphasis && this.keyboardFocusedSeriesId === null) {
|
|
10714
|
+
this.chartAssist?.resetVisibleSeries();
|
|
10715
|
+
}
|
|
10633
10716
|
if (changes.data || changes.colors) {
|
|
10634
10717
|
this.updateChartColors();
|
|
10635
10718
|
}
|
|
@@ -10673,6 +10756,39 @@ class ProportionalChartViewComponent {
|
|
|
10673
10756
|
this.itemClick.emit(item);
|
|
10674
10757
|
}
|
|
10675
10758
|
}
|
|
10759
|
+
onLegendSeriesMouseEnter(legendSeries) {
|
|
10760
|
+
this.mouseHoveredSeriesId = legendSeries.id;
|
|
10761
|
+
this.chartAssist.emphasizeSeries(legendSeries.id);
|
|
10762
|
+
}
|
|
10763
|
+
onLegendMouseLeave() {
|
|
10764
|
+
this.mouseHoveredSeriesId = null;
|
|
10765
|
+
if (this.keyboardFocusedSeriesId !== null) {
|
|
10766
|
+
this.chartAssist.emphasizeSeries(this.keyboardFocusedSeriesId);
|
|
10767
|
+
}
|
|
10768
|
+
else {
|
|
10769
|
+
this.chartAssist.resetVisibleSeries();
|
|
10770
|
+
}
|
|
10771
|
+
}
|
|
10772
|
+
onLegendSeriesFocus(legendSeries, event) {
|
|
10773
|
+
const target = event.target;
|
|
10774
|
+
if (!(target instanceof HTMLElement) ||
|
|
10775
|
+
!target.matches(":focus-visible") ||
|
|
10776
|
+
!(target === event.currentTarget ||
|
|
10777
|
+
target.classList.contains("proportional-chart__legend-action") ||
|
|
10778
|
+
target instanceof HTMLAnchorElement)) {
|
|
10779
|
+
return;
|
|
10780
|
+
}
|
|
10781
|
+
this.keyboardFocusedSeriesId = legendSeries.id;
|
|
10782
|
+
if (this.mouseHoveredSeriesId === null) {
|
|
10783
|
+
this.chartAssist.emphasizeSeries(legendSeries.id);
|
|
10784
|
+
}
|
|
10785
|
+
}
|
|
10786
|
+
onLegendFocusOut() {
|
|
10787
|
+
this.keyboardFocusedSeriesId = null;
|
|
10788
|
+
if (this.mouseHoveredSeriesId === null) {
|
|
10789
|
+
this.chartAssist.resetVisibleSeries();
|
|
10790
|
+
}
|
|
10791
|
+
}
|
|
10676
10792
|
computeLegendTileValue(legendSeries) {
|
|
10677
10793
|
// @ts-ignore: Suppressing series null parameter value error
|
|
10678
10794
|
return this.accessors.data?.value?.(legendSeries, 0, null, null);
|
|
@@ -10811,11 +10927,11 @@ class ProportionalChartViewComponent {
|
|
|
10811
10927
|
}));
|
|
10812
10928
|
}
|
|
10813
10929
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ProportionalChartViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10814
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ProportionalChartViewComponent, isStandalone: false, selector: "nui-proportional-chart-view", inputs: { data: "data", chartType: "chartType", legendPlacement: "legendPlacement", colors: "colors", interactive: "interactive", donutContentTemplate: "donutContentTemplate", legendItemTemplate: "legendItemTemplate" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': isEmpty\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-chart-view__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <ng-container *ngIf=\"donutContentTemplate\">\n <ng-container\n *ngTemplateOutlet=\"donutContentTemplate; context: { $implicit: data, chartAssist: chartAssist }\"></ng-container>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom']\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"
|
|
10930
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ProportionalChartViewComponent, isStandalone: false, selector: "nui-proportional-chart-view", inputs: { data: "data", chartType: "chartType", legendPlacement: "legendPlacement", colors: "colors", interactive: "interactive", donutContentTemplate: "donutContentTemplate", legendItemTemplate: "legendItemTemplate" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': isEmpty\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-chart-view__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <ng-container *ngIf=\"donutContentTemplate\">\n <ng-container\n *ngTemplateOutlet=\"donutContentTemplate; context: { $implicit: data, chartAssist: chartAssist }\"></ng-container>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom']\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"onLegendMouseLeave()\"\n [orientation]=\"legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\">\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"let legendSeries of chartAssist.legendSeriesSet; trackBy: chartAssist.seriesTrackByFn; let i = index\"\n [focusable]=\"!interactive\"\n [ngClass]=\"(prioritizedGridRows.right || prioritizedGridRows.bottom) && 'description-min-width--unset'\"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"chartAssist.toggleSeries(legendSeries.id, $event)\"\n [seriesRenderState]=\"chartAssist.renderStatesIndex[legendSeries.id]?.state\"\n (mouseenter)=\"onLegendSeriesMouseEnter(legendSeries)\"\n (focusin)=\"onLegendSeriesFocus(legendSeries, $event)\"\n (focusout)=\"onLegendFocusOut()\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-chart-view__legend--interactive]=\"interactive\">\n <button\n *ngIf=\"interactive\"\n legendAction\n type=\"button\"\n class=\"proportional-chart__legend-action\"\n [attr.aria-label]=\"legendSeries.name + ' ' + (computeLegendTileValue(legendSeries.data[0]) | nuiDashboardUnitConversion)\"></button>\n <ng-container\n *ngIf=\"legendItemTemplate; else legendDefaultTile\">\n <div description>\n <ng-container\n *ngTemplateOutlet=\"legendItemTemplate; context: { $implicit: data[i], series: legendSeries }\"></ng-container>\n </div>\n </ng-container>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"computeLegendTileValue(legendSeries.data[0]) | nuiDashboardUnitConversion\"\n [color]=\"chartAssist.palette.textColors.get(legendSeries.id)\"\n [backgroundColor]=\"chartAssist.palette.standardColors.get(legendSeries.id)\"></nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"data[i]?.icon\"\n class=\"align-items-center\"\n [icon]=\"data[i].icon\"></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\">\n <div\n *ngIf=\"!data[i]?.link\"\n class=\"description description-primary\"\n [ngClass]=\"{ 'nui-text-link-small link': interactive }\">\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"data[i]?.link\"\n [href]=\"data[i].link\">\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".nui-proportional-chart-view__chart-donut-content{position:absolute}.nui-proportional-chart-view__legend--interactive{cursor:pointer!important}.proportional-chart__legend-series{position:relative}.proportional-chart__legend-series:focus-visible{outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa)}.proportional-chart__legend-action{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;pointer-events:none;outline:none;box-shadow:none}.proportional-chart__legend-action:focus-visible{outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa)}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["ariaLabel", "active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "focusable", "separateControls", "toggleAriaLabel", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart", "ariaLabel", "keyboardTooltips"] }, { kind: "component", type: i4$1.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] }); }
|
|
10815
10931
|
}
|
|
10816
10932
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ProportionalChartViewComponent, decorators: [{
|
|
10817
10933
|
type: Component,
|
|
10818
|
-
args: [{ selector: "nui-proportional-chart-view", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': isEmpty\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-chart-view__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <ng-container *ngIf=\"donutContentTemplate\">\n <ng-container\n *ngTemplateOutlet=\"donutContentTemplate; context: { $implicit: data, chartAssist: chartAssist }\"></ng-container>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom']\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"
|
|
10934
|
+
args: [{ selector: "nui-proportional-chart-view", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': isEmpty\n }\">\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-chart-view__chart-donut-content\"\n [plugin]=\"donutContentPlugin\">\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\">\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <ng-container *ngIf=\"donutContentTemplate\">\n <ng-container\n *ngTemplateOutlet=\"donutContentTemplate; context: { $implicit: data, chartAssist: chartAssist }\"></ng-container>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom']\"\n *ngIf=\"hasLegend() && chartAssist\">\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"onLegendMouseLeave()\"\n [orientation]=\"legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\">\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"let legendSeries of chartAssist.legendSeriesSet; trackBy: chartAssist.seriesTrackByFn; let i = index\"\n [focusable]=\"!interactive\"\n [ngClass]=\"(prioritizedGridRows.right || prioritizedGridRows.bottom) && 'description-min-width--unset'\"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"chartAssist.toggleSeries(legendSeries.id, $event)\"\n [seriesRenderState]=\"chartAssist.renderStatesIndex[legendSeries.id]?.state\"\n (mouseenter)=\"onLegendSeriesMouseEnter(legendSeries)\"\n (focusin)=\"onLegendSeriesFocus(legendSeries, $event)\"\n (focusout)=\"onLegendFocusOut()\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-chart-view__legend--interactive]=\"interactive\">\n <button\n *ngIf=\"interactive\"\n legendAction\n type=\"button\"\n class=\"proportional-chart__legend-action\"\n [attr.aria-label]=\"legendSeries.name + ' ' + (computeLegendTileValue(legendSeries.data[0]) | nuiDashboardUnitConversion)\"></button>\n <ng-container\n *ngIf=\"legendItemTemplate; else legendDefaultTile\">\n <div description>\n <ng-container\n *ngTemplateOutlet=\"legendItemTemplate; context: { $implicit: data[i], series: legendSeries }\"></ng-container>\n </div>\n </ng-container>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"computeLegendTileValue(legendSeries.data[0]) | nuiDashboardUnitConversion\"\n [color]=\"chartAssist.palette.textColors.get(legendSeries.id)\"\n [backgroundColor]=\"chartAssist.palette.standardColors.get(legendSeries.id)\"></nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"data[i]?.icon\"\n class=\"align-items-center\"\n [icon]=\"data[i].icon\"></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\">\n <div\n *ngIf=\"!data[i]?.link\"\n class=\"description description-primary\"\n [ngClass]=\"{ 'nui-text-link-small link': interactive }\">\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"data[i]?.link\"\n [href]=\"data[i].link\">\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".nui-proportional-chart-view__chart-donut-content{position:absolute}.nui-proportional-chart-view__legend--interactive{cursor:pointer!important}.proportional-chart__legend-series{position:relative}.proportional-chart__legend-series:focus-visible{outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa)}.proportional-chart__legend-action{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;pointer-events:none;outline:none;box-shadow:none}.proportional-chart__legend-action:focus-visible{outline:2px solid;outline-offset:-2px;outline-color:var(--nui-color-active,#0079aa)}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"] }]
|
|
10819
10935
|
}], propDecorators: { data: [{
|
|
10820
10936
|
type: Input
|
|
10821
10937
|
}], chartType: [{
|
|
@@ -11167,8 +11283,22 @@ class WidgetHeaderComponent {
|
|
|
11167
11283
|
this.onDestroy$.next();
|
|
11168
11284
|
this.onDestroy$.complete();
|
|
11169
11285
|
}
|
|
11170
|
-
removeWidget() {
|
|
11171
|
-
this.eventBus
|
|
11286
|
+
removeWidget(event) {
|
|
11287
|
+
this.eventBus
|
|
11288
|
+
.getStream(WIDGET_REMOVE)
|
|
11289
|
+
.next(event instanceof KeyboardEvent
|
|
11290
|
+
? { payload: { focusOrigin: "keyboard" } }
|
|
11291
|
+
: {});
|
|
11292
|
+
}
|
|
11293
|
+
onDocumentFocusIn(event) {
|
|
11294
|
+
const menu = this.removeMenu;
|
|
11295
|
+
const target = event.target;
|
|
11296
|
+
if (menu?.popup?.isOpen &&
|
|
11297
|
+
target instanceof Node &&
|
|
11298
|
+
!menu.menuToggle.nativeElement.contains(target) &&
|
|
11299
|
+
!menu.popup.popupAreaContent?.nativeElement.contains(target)) {
|
|
11300
|
+
menu.popup.closePopup();
|
|
11301
|
+
}
|
|
11172
11302
|
}
|
|
11173
11303
|
toggleCollapsed() {
|
|
11174
11304
|
this.pizzagnaService.setProperty({
|
|
@@ -11197,7 +11327,7 @@ class WidgetHeaderComponent {
|
|
|
11197
11327
|
return true;
|
|
11198
11328
|
}
|
|
11199
11329
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: WidgetHeaderComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: PizzagnaService }, { token: i0.ChangeDetectorRef }, { token: WidgetToDashboardEventProxyService, optional: true }, { token: HEADER_LINK_PROVIDER, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11200
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: WidgetHeaderComponent, isStandalone: false, selector: "nui-widget-header", inputs: { componentId: "componentId", editMode: "editMode", editable: "editable", removable: "removable", collapsible: "collapsible", reloadable: "reloadable", title: "title", titleIcon: "titleIcon", titleIconSize: "titleIconSize", titleIconTooltip: "titleIconTooltip", subtitle: "subtitle", hideMenu: "hideMenu", url: "url", collapsed: "collapsed" }, host: { properties: { "class.nui-widget-header": "this.hostClass" } }, viewQueries: [{ propertyName: "widgetHeaderCustomElement", first: true, predicate: ["widgetHeaderCustomElement"], descendants: true }], ngImport: i0, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\">\n @if (collapsed && collapsible) {\n <div\n class=\"collapse-container\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=\"Expand header\"\n i18n-aria-label\n [attr.aria-expanded]=\"false\"\n (click)=\"toggleCollapsed()\"\n (keydown.enter)=\"toggleCollapsed()\"\n (keydown.space)=\"$event.preventDefault(); toggleCollapsed()\">\n <span class=\"collapse-container__line\"></span>\n </div>\n }\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\">\n <nui-icon\n icon=\"drag\"\n iconColor=\"gray\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \">\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n } @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\">\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n [attr.aria-label]=\"linkTooltip\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \">\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n aria-label=\"Edit widget\"\n i18n-aria-label\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n aria-label=\"Collapse header\"\n i18n-aria-label\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n [attr.aria-expanded]=\"true\"\n (click)=\"toggleCollapsed()\"></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\n @if (reloadable) {\n <nui-menu-action (actionDone)=\"onReloadData()\">\n <nui-icon icon=\"reload\" aria-hidden=\"true\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n }\n </nui-menu>\n <!--TODO: After NUI-3431 should be changed to regular menu instead of popup-->\n <nui-popup\n #popup\n class=\"nui-widget-header__action-remove\"\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\">\n <span nuiTooltip=\"Remove widget\" i18n-nuiTooltip>\n <button\n nui-button\n nuiPopupToggle\n type=\"button\"\n icon=\"remove\"\n iconColor=\"red\"\n displayStyle=\"action\"\n aria-label=\"Remove widget\"\n i18n-aria-label\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"\n popup?.isOpen ? 'true' : 'false'\n \"></button>\n </span>\n <div popupAreaContent class=\"nui-menu\">\n <nui-menu-action\n type=\"destructive\"\n (actionDone)=\"removeWidget()\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </div>\n </nui-popup>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [".nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "directive", type: i2.PopupToggleDirective, selector: "[nuiPopupToggle]", inputs: ["isDisabled", "disabled", "opened", "role", "ariaControls", "toggleOnKey"], outputs: ["toggle"] }, { kind: "component", type: i2.PopupComponent, selector: "nui-popup", inputs: ["width", "overlayConfig", "contextClass", "directionTop", "directionRight", "manualOpenControl", "appendToBody", "baseElementSelector", "isHostToggleRef", "ariaLabel", "isOpen", "visible"], outputs: ["opened"] }, { kind: "directive", type: i2.TooltipDirective, selector: "[nuiTooltip]", inputs: ["tooltipPlacement", "nuiTooltipDisabled", "nuiTooltipEllipsis", "nuiTooltip"], exportAs: ["nuiTooltip"] }], animations: [
|
|
11330
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: WidgetHeaderComponent, isStandalone: false, selector: "nui-widget-header", inputs: { componentId: "componentId", editMode: "editMode", editable: "editable", removable: "removable", collapsible: "collapsible", reloadable: "reloadable", title: "title", titleIcon: "titleIcon", titleIconSize: "titleIconSize", titleIconTooltip: "titleIconTooltip", subtitle: "subtitle", hideMenu: "hideMenu", url: "url", collapsed: "collapsed" }, host: { listeners: { "document:focusin": "onDocumentFocusIn($event)" }, properties: { "class.nui-widget-header": "this.hostClass" } }, viewQueries: [{ propertyName: "widgetHeaderCustomElement", first: true, predicate: ["widgetHeaderCustomElement"], descendants: true }, { propertyName: "removeMenu", first: true, predicate: ["removeMenu"], descendants: true }], ngImport: i0, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\">\n @if (collapsed && collapsible) {\n <div\n class=\"collapse-container\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=\"Expand header\"\n i18n-aria-label\n [attr.aria-expanded]=\"false\"\n (click)=\"toggleCollapsed()\"\n (keydown.enter)=\"toggleCollapsed()\"\n (keydown.space)=\"$event.preventDefault(); toggleCollapsed()\">\n <span class=\"collapse-container__line\"></span>\n </div>\n }\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\">\n <nui-icon\n icon=\"drag\"\n iconColor=\"gray\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \">\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n } @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\">\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n [attr.aria-label]=\"linkTooltip\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \">\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n aria-label=\"Edit widget\"\n i18n-aria-label\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n aria-label=\"Collapse header\"\n i18n-aria-label\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n [attr.aria-expanded]=\"true\"\n (click)=\"toggleCollapsed()\"></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\n @if (reloadable) {\n <nui-menu-action (actionDone)=\"onReloadData()\">\n <nui-icon icon=\"reload\" aria-hidden=\"true\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n }\n </nui-menu>\n <nui-menu\n #removeMenu\n class=\"nui-widget-header__action-remove\"\n icon=\"remove\"\n displayStyle=\"action\"\n ariaLabel=\"Remove widget\"\n i18n-ariaLabel\n nuiTooltip=\"Remove widget\"\n i18n-nuiTooltip\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\">\n <nui-menu-action\n type=\"destructive\"\n (activated)=\"removeWidget($event)\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </nui-menu>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [":host ::ng-deep .nui-widget-header__action-remove .menu-button .nui-icon:not(.custom-icon-color) path,:host ::ng-deep .nui-widget-header__action-remove .menu-button .nui-icon:not(.custom-icon-color) polygon{fill:var(--nui-color-icon-critical,#dd2c00)}.nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"], outputs: ["activated"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "directive", type: i2.TooltipDirective, selector: "[nuiTooltip]", inputs: ["tooltipPlacement", "nuiTooltipDisabled", "nuiTooltipEllipsis", "nuiTooltip"], exportAs: ["nuiTooltip"] }], animations: [
|
|
11201
11331
|
trigger("expandedState", [
|
|
11202
11332
|
state("expanded", style({ height: "*" })),
|
|
11203
11333
|
state("collapsed", style({ height: "11px" })),
|
|
@@ -11217,7 +11347,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11217
11347
|
animate("350ms ease-in-out"),
|
|
11218
11348
|
]),
|
|
11219
11349
|
]),
|
|
11220
|
-
], standalone: false, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\">\n @if (collapsed && collapsible) {\n <div\n class=\"collapse-container\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=\"Expand header\"\n i18n-aria-label\n [attr.aria-expanded]=\"false\"\n (click)=\"toggleCollapsed()\"\n (keydown.enter)=\"toggleCollapsed()\"\n (keydown.space)=\"$event.preventDefault(); toggleCollapsed()\">\n <span class=\"collapse-container__line\"></span>\n </div>\n }\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\">\n <nui-icon\n icon=\"drag\"\n iconColor=\"gray\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \">\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n } @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\">\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n [attr.aria-label]=\"linkTooltip\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \">\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n aria-label=\"Edit widget\"\n i18n-aria-label\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n aria-label=\"Collapse header\"\n i18n-aria-label\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n [attr.aria-expanded]=\"true\"\n (click)=\"toggleCollapsed()\"></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\n @if (reloadable) {\n <nui-menu-action (actionDone)=\"onReloadData()\">\n <nui-icon icon=\"reload\" aria-hidden=\"true\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n }\n </nui-menu>\n <!--TODO: After NUI-3431 should be changed to regular menu instead of popup-->\n <nui-popup\n #popup\n class=\"nui-widget-header__action-remove\"\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\">\n <span nuiTooltip=\"Remove widget\" i18n-nuiTooltip>\n <button\n nui-button\n nuiPopupToggle\n type=\"button\"\n icon=\"remove\"\n iconColor=\"red\"\n displayStyle=\"action\"\n aria-label=\"Remove widget\"\n i18n-aria-label\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"\n popup?.isOpen ? 'true' : 'false'\n \"></button>\n </span>\n <div popupAreaContent class=\"nui-menu\">\n <nui-menu-action\n type=\"destructive\"\n (actionDone)=\"removeWidget()\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </div>\n </nui-popup>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [".nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"] }]
|
|
11350
|
+
], standalone: false, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\">\n @if (collapsed && collapsible) {\n <div\n class=\"collapse-container\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=\"Expand header\"\n i18n-aria-label\n [attr.aria-expanded]=\"false\"\n (click)=\"toggleCollapsed()\"\n (keydown.enter)=\"toggleCollapsed()\"\n (keydown.space)=\"$event.preventDefault(); toggleCollapsed()\">\n <span class=\"collapse-container__line\"></span>\n </div>\n }\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\">\n <nui-icon\n icon=\"drag\"\n iconColor=\"gray\"\n aria-hidden=\"true\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \">\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [attr.id]=\"titleId\"\n [title]=\"title\">\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n } @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\">\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n [attr.aria-label]=\"linkTooltip\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \">\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n aria-label=\"Edit widget\"\n i18n-aria-label\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n aria-label=\"Collapse header\"\n i18n-aria-label\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n [attr.aria-expanded]=\"true\"\n (click)=\"toggleCollapsed()\"></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\">\n @if (reloadable) {\n <nui-menu-action (actionDone)=\"onReloadData()\">\n <nui-icon icon=\"reload\" aria-hidden=\"true\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n }\n </nui-menu>\n <nui-menu\n #removeMenu\n class=\"nui-widget-header__action-remove\"\n icon=\"remove\"\n displayStyle=\"action\"\n ariaLabel=\"Remove widget\"\n i18n-ariaLabel\n nuiTooltip=\"Remove widget\"\n i18n-nuiTooltip\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\">\n <nui-menu-action\n type=\"destructive\"\n (activated)=\"removeWidget($event)\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </nui-menu>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [":host ::ng-deep .nui-widget-header__action-remove .menu-button .nui-icon:not(.custom-icon-color) path,:host ::ng-deep .nui-widget-header__action-remove .menu-button .nui-icon:not(.custom-icon-color) polygon{fill:var(--nui-color-icon-critical,#dd2c00)}.nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container:focus-visible{outline:none;box-shadow:0 0 0 2px #00c4d280}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"] }]
|
|
11221
11351
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
11222
11352
|
type: Inject,
|
|
11223
11353
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -11262,6 +11392,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11262
11392
|
}], widgetHeaderCustomElement: [{
|
|
11263
11393
|
type: ViewChild,
|
|
11264
11394
|
args: ["widgetHeaderCustomElement"]
|
|
11395
|
+
}], removeMenu: [{
|
|
11396
|
+
type: ViewChild,
|
|
11397
|
+
args: ["removeMenu"]
|
|
11398
|
+
}], onDocumentFocusIn: [{
|
|
11399
|
+
type: HostListener,
|
|
11400
|
+
args: ["document:focusin", ["$event"]]
|
|
11265
11401
|
}] } });
|
|
11266
11402
|
|
|
11267
11403
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -11485,6 +11621,9 @@ class ConfiguratorComponent {
|
|
|
11485
11621
|
};
|
|
11486
11622
|
}
|
|
11487
11623
|
}
|
|
11624
|
+
ngAfterViewInit() {
|
|
11625
|
+
this.focusTrap.focusTrap.focusInitialElementWhenReady();
|
|
11626
|
+
}
|
|
11488
11627
|
ngOnDestroy() {
|
|
11489
11628
|
this.destroy$.next();
|
|
11490
11629
|
this.destroy$.complete();
|
|
@@ -11521,7 +11660,7 @@ class ConfiguratorComponent {
|
|
|
11521
11660
|
provide: OVERLAY_CONTAINER,
|
|
11522
11661
|
useValue: ".nui-dashwiz-step--active .configurator-scrollable",
|
|
11523
11662
|
},
|
|
11524
|
-
], viewQueries: [{ propertyName: "previewPizzagnaComponent", first: true, predicate: ["previewPizzagnaComponent"], descendants: true }], ngImport: i0, template: "<div class=\"nui-configurator__backdrop\"></div>\n<div
|
|
11663
|
+
], viewQueries: [{ propertyName: "previewPizzagnaComponent", first: true, predicate: ["previewPizzagnaComponent"], descendants: true }, { propertyName: "focusTrap", first: true, predicate: CdkTrapFocus, descendants: true }], ngImport: i0, template: "<div class=\"nui-configurator__backdrop\"></div>\n<div\n class=\"nui-configurator__content\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Widget configuration\"\n i18n-aria-label\n cdkTrapFocus>\n <nui-panel\n orientation=\"right\"\n paneSize=\"30vw\"\n paneMinSize=\"20vw\"\n paneMaxSize=\"80vw\"\n isResizable=\"true\"\n class=\"h-100\"\n [headerPadding]=\"false\"\n [sidePaneBodyPadding]=\"false\">\n <div\n class=\"nui-configurator__preview d-flex align-items-center justify-content-center\">\n <div class=\"nui-configurator__preview-area\">\n <nui-preview-overlay></nui-preview-overlay>\n <nui-pizzagna\n *ngIf=\"previewWidget?.pizzagna\"\n #previewPizzagnaComponent\n class=\"flex-grow-1 w-100\"\n [rootNode]=\"previewWidget | nuiPizzagnaRoot : 'widget'\"\n [pizzagna]=\"previewWidget?.pizzagna\"\n (pizzagnaChange)=\"onPizzagnaChange($event)\">\n </nui-pizzagna>\n </div>\n </div>\n <div nuiPanelEmbeddedBody class=\"nui-configurator__body\">\n <ng-container\n [cdkPortalOutlet]=\"formPortal\"\n (attached)=\"onFormPortalAttached($event)\"></ng-container>\n </div>\n </nui-panel>\n</div>\n", styles: [".nui-configurator__backdrop{position:fixed;inset:0;z-index:1040;background-color:var(--nui-color-overlay-modal,rgba(17, 17, 17, .5));opacity:.5;filter:alpha(opacity=50)}.nui-configurator__content{position:fixed;inset:0;z-index:1040}.nui-configurator__heading{width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #d9d9d9}.nui-configurator__body{overflow-anchor:none;height:100vh}.nui-configurator__preview{height:100vh}.nui-configurator__preview-area{display:flex;width:80%;position:relative;background-color:var(--nui-color-bg-content_popover,#fff);border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);margin:auto;min-height:40vh;max-height:80vh;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PreviewOverlayComponent, selector: "nui-preview-overlay" }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: PizzagnaComponent, selector: "nui-pizzagna", inputs: ["rootNode", "pizzagna", "outputs"], outputs: ["pizzagnaChange", "output"] }, { kind: "component", type: i2.PanelComponent, selector: "nui-panel", inputs: ["panelMode", "heading", "isCollapsed", "displacePrimaryContent", "isHidden", "orientation", "isResizable", "headerPadding", "sidePaneBodyPadding", "darkBorder", "paneSize", "panelBackgroundColor", "paneCollapsedSize", "paneMinSize", "paneMaxSize"], outputs: ["collapsed", "hidden"] }, { kind: "pipe", type: PizzagnaRootPipe, name: "nuiPizzagnaRoot" }] }); }
|
|
11525
11664
|
}
|
|
11526
11665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ConfiguratorComponent, decorators: [{
|
|
11527
11666
|
type: Component,
|
|
@@ -11531,7 +11670,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11531
11670
|
provide: OVERLAY_CONTAINER,
|
|
11532
11671
|
useValue: ".nui-dashwiz-step--active .configurator-scrollable",
|
|
11533
11672
|
},
|
|
11534
|
-
], host: { class: "nui-configurator" }, standalone: false, template: "<div class=\"nui-configurator__backdrop\"></div>\n<div
|
|
11673
|
+
], host: { class: "nui-configurator" }, standalone: false, template: "<div class=\"nui-configurator__backdrop\"></div>\n<div\n class=\"nui-configurator__content\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Widget configuration\"\n i18n-aria-label\n cdkTrapFocus>\n <nui-panel\n orientation=\"right\"\n paneSize=\"30vw\"\n paneMinSize=\"20vw\"\n paneMaxSize=\"80vw\"\n isResizable=\"true\"\n class=\"h-100\"\n [headerPadding]=\"false\"\n [sidePaneBodyPadding]=\"false\">\n <div\n class=\"nui-configurator__preview d-flex align-items-center justify-content-center\">\n <div class=\"nui-configurator__preview-area\">\n <nui-preview-overlay></nui-preview-overlay>\n <nui-pizzagna\n *ngIf=\"previewWidget?.pizzagna\"\n #previewPizzagnaComponent\n class=\"flex-grow-1 w-100\"\n [rootNode]=\"previewWidget | nuiPizzagnaRoot : 'widget'\"\n [pizzagna]=\"previewWidget?.pizzagna\"\n (pizzagnaChange)=\"onPizzagnaChange($event)\">\n </nui-pizzagna>\n </div>\n </div>\n <div nuiPanelEmbeddedBody class=\"nui-configurator__body\">\n <ng-container\n [cdkPortalOutlet]=\"formPortal\"\n (attached)=\"onFormPortalAttached($event)\"></ng-container>\n </div>\n </nui-panel>\n</div>\n", styles: [".nui-configurator__backdrop{position:fixed;inset:0;z-index:1040;background-color:var(--nui-color-overlay-modal,rgba(17, 17, 17, .5));opacity:.5;filter:alpha(opacity=50)}.nui-configurator__content{position:fixed;inset:0;z-index:1040}.nui-configurator__heading{width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #d9d9d9}.nui-configurator__body{overflow-anchor:none;height:100vh}.nui-configurator__preview{height:100vh}.nui-configurator__preview-area{display:flex;width:80%;position:relative;background-color:var(--nui-color-bg-content_popover,#fff);border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);margin:auto;min-height:40vh;max-height:80vh;overflow:hidden}\n"] }]
|
|
11535
11674
|
}], ctorParameters: () => [{ type: WidgetTypesService }, { type: i0.ChangeDetectorRef }], propDecorators: { formPortal: [{
|
|
11536
11675
|
type: Input
|
|
11537
11676
|
}], previewWidget: [{
|
|
@@ -11543,6 +11682,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11543
11682
|
}], previewPizzagnaComponent: [{
|
|
11544
11683
|
type: ViewChild,
|
|
11545
11684
|
args: ["previewPizzagnaComponent", { static: false }]
|
|
11685
|
+
}], focusTrap: [{
|
|
11686
|
+
type: ViewChild,
|
|
11687
|
+
args: [CdkTrapFocus]
|
|
11546
11688
|
}] } });
|
|
11547
11689
|
|
|
11548
11690
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -12678,11 +12820,11 @@ class ConfiguratorHeadingComponent {
|
|
|
12678
12820
|
this.heading.height$.next(+getComputedStyle(this.el.nativeElement).height.slice(0, -2));
|
|
12679
12821
|
}
|
|
12680
12822
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ConfiguratorHeadingComponent, deps: [{ token: i0.ElementRef }, { token: ConfiguratorHeadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12681
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ConfiguratorHeadingComponent, isStandalone: false, selector: "nui-configurator-heading", inputs: { configuratorTitle: "configuratorTitle", disableCloseButton: "disableCloseButton" }, outputs: { close: "close" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"configurator-heading d-flex justify-content-between align-items-center p-4\">\n <span class=\"nui-text-panel nui-text-ellipsis\" [title]=\"configuratorTitle\">\n {{ configuratorTitle }}\n </span>\n <button\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"close\"\n aria-label=\"Close configurator\"\n i18n-aria-label\n [disabled]=\"disableCloseButton\"\n (click)=\"this.close.emit()\"></button>\n</div>\n", styles: [":host{z-index:1080;background-color:var(--nui-color-bg-content,#fff)}:host .configurator-heading{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }] }); }
|
|
12823
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ConfiguratorHeadingComponent, isStandalone: false, selector: "nui-configurator-heading", inputs: { configuratorTitle: "configuratorTitle", disableCloseButton: "disableCloseButton" }, outputs: { close: "close" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"configurator-heading d-flex justify-content-between align-items-center p-4\">\n <span class=\"nui-text-panel nui-text-ellipsis\" [title]=\"configuratorTitle\">\n {{ configuratorTitle }}\n </span>\n <button\n cdkFocusInitial\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"close\"\n aria-label=\"Close configurator\"\n i18n-aria-label\n [disabled]=\"disableCloseButton\"\n (click)=\"this.close.emit()\"></button>\n</div>\n", styles: [":host{z-index:1080;background-color:var(--nui-color-bg-content,#fff)}:host .configurator-heading{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }] }); }
|
|
12682
12824
|
}
|
|
12683
12825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ConfiguratorHeadingComponent, decorators: [{
|
|
12684
12826
|
type: Component,
|
|
12685
|
-
args: [{ selector: "nui-configurator-heading", standalone: false, template: "<div\n class=\"configurator-heading d-flex justify-content-between align-items-center p-4\">\n <span class=\"nui-text-panel nui-text-ellipsis\" [title]=\"configuratorTitle\">\n {{ configuratorTitle }}\n </span>\n <button\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"close\"\n aria-label=\"Close configurator\"\n i18n-aria-label\n [disabled]=\"disableCloseButton\"\n (click)=\"this.close.emit()\"></button>\n</div>\n", styles: [":host{z-index:1080;background-color:var(--nui-color-bg-content,#fff)}:host .configurator-heading{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"] }]
|
|
12827
|
+
args: [{ selector: "nui-configurator-heading", standalone: false, template: "<div\n class=\"configurator-heading d-flex justify-content-between align-items-center p-4\">\n <span class=\"nui-text-panel nui-text-ellipsis\" [title]=\"configuratorTitle\">\n {{ configuratorTitle }}\n </span>\n <button\n cdkFocusInitial\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"close\"\n aria-label=\"Close configurator\"\n i18n-aria-label\n [disabled]=\"disableCloseButton\"\n (click)=\"this.close.emit()\"></button>\n</div>\n", styles: [":host{z-index:1080;background-color:var(--nui-color-bg-content,#fff)}:host .configurator-heading{border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"] }]
|
|
12686
12828
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: ConfiguratorHeadingService }], propDecorators: { configuratorTitle: [{
|
|
12687
12829
|
type: Input
|
|
12688
12830
|
}], disableCloseButton: [{
|
|
@@ -12691,6 +12833,146 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
12691
12833
|
type: Output
|
|
12692
12834
|
}] } });
|
|
12693
12835
|
|
|
12836
|
+
/** Keyboard-only interaction for existing configurator drag handles. */
|
|
12837
|
+
class KeyboardReorder {
|
|
12838
|
+
constructor() {
|
|
12839
|
+
this.announcement = "";
|
|
12840
|
+
this.moving = false;
|
|
12841
|
+
}
|
|
12842
|
+
configure(getItems, move, isDisabled, notifyChange) {
|
|
12843
|
+
if (this.reorderContext) {
|
|
12844
|
+
throw new Error("Keyboard reorder controller context is already configured.");
|
|
12845
|
+
}
|
|
12846
|
+
this.reorderContext = { getItems, move, isDisabled, notifyChange };
|
|
12847
|
+
}
|
|
12848
|
+
get context() {
|
|
12849
|
+
if (!this.reorderContext) {
|
|
12850
|
+
throw new Error("Keyboard reorder controller context is not configured.");
|
|
12851
|
+
}
|
|
12852
|
+
return this.reorderContext;
|
|
12853
|
+
}
|
|
12854
|
+
onKeydown(event, item) {
|
|
12855
|
+
const context = this.context;
|
|
12856
|
+
this.handleKeydown(event, item);
|
|
12857
|
+
context.notifyChange?.();
|
|
12858
|
+
}
|
|
12859
|
+
handleKeydown(event, item) {
|
|
12860
|
+
const context = this.context;
|
|
12861
|
+
if (event.defaultPrevented ||
|
|
12862
|
+
event.altKey ||
|
|
12863
|
+
event.ctrlKey ||
|
|
12864
|
+
event.metaKey ||
|
|
12865
|
+
event.target !== event.currentTarget ||
|
|
12866
|
+
!(event.currentTarget instanceof HTMLElement)) {
|
|
12867
|
+
return;
|
|
12868
|
+
}
|
|
12869
|
+
const pickup = event.key === " " || event.key === "Enter";
|
|
12870
|
+
const direction = event.key === "ArrowUp" || event.key === "ArrowLeft"
|
|
12871
|
+
? -1
|
|
12872
|
+
: event.key === "ArrowDown" || event.key === "ArrowRight"
|
|
12873
|
+
? 1
|
|
12874
|
+
: 0;
|
|
12875
|
+
if (!pickup &&
|
|
12876
|
+
(!this.originalOrder || (!direction && event.key !== "Escape"))) {
|
|
12877
|
+
return;
|
|
12878
|
+
}
|
|
12879
|
+
event.preventDefault();
|
|
12880
|
+
event.stopPropagation();
|
|
12881
|
+
if (pickup && event.repeat) {
|
|
12882
|
+
return;
|
|
12883
|
+
}
|
|
12884
|
+
const items = context.getItems();
|
|
12885
|
+
if (this.originalOrder) {
|
|
12886
|
+
if (items.length !== this.expectedOrder?.length ||
|
|
12887
|
+
items.some((value, index) => value !== this.expectedOrder?.[index]) ||
|
|
12888
|
+
this.activeItem === undefined ||
|
|
12889
|
+
context.isDisabled(this.activeItem)) {
|
|
12890
|
+
this.cancel();
|
|
12891
|
+
return;
|
|
12892
|
+
}
|
|
12893
|
+
if (event.currentTarget !== this.handle) {
|
|
12894
|
+
return;
|
|
12895
|
+
}
|
|
12896
|
+
if (event.key === "Escape") {
|
|
12897
|
+
const originalIndex = this.originalOrder.indexOf(this.activeItem);
|
|
12898
|
+
this.applyMove(items.indexOf(this.activeItem), originalIndex);
|
|
12899
|
+
this.clear();
|
|
12900
|
+
this.announcement = $localize `Reordering cancelled. Original order restored.`;
|
|
12901
|
+
}
|
|
12902
|
+
else if (pickup) {
|
|
12903
|
+
this.finish();
|
|
12904
|
+
}
|
|
12905
|
+
else {
|
|
12906
|
+
const from = items.indexOf(this.activeItem);
|
|
12907
|
+
const to = from + direction;
|
|
12908
|
+
if (to < 0 || to >= items.length) {
|
|
12909
|
+
this.announcement =
|
|
12910
|
+
direction < 0
|
|
12911
|
+
? $localize `Item is already first.`
|
|
12912
|
+
: $localize `Item is already last.`;
|
|
12913
|
+
return;
|
|
12914
|
+
}
|
|
12915
|
+
this.applyMove(from, to);
|
|
12916
|
+
this.expectedOrder = [...context.getItems()];
|
|
12917
|
+
this.announcement = $localize `Item moved to position ${to + 1} of ${items.length}.`;
|
|
12918
|
+
}
|
|
12919
|
+
}
|
|
12920
|
+
else if (pickup &&
|
|
12921
|
+
items.includes(item) &&
|
|
12922
|
+
!context.isDisabled(item)) {
|
|
12923
|
+
this.activeItem = item;
|
|
12924
|
+
this.originalOrder = [...items];
|
|
12925
|
+
this.expectedOrder = [...items];
|
|
12926
|
+
this.handle = event.currentTarget;
|
|
12927
|
+
this.announcement = $localize `Item picked up. Use the arrow keys to move it. Press Space or Enter to drop, or Escape to cancel.`;
|
|
12928
|
+
}
|
|
12929
|
+
}
|
|
12930
|
+
finish() {
|
|
12931
|
+
const context = this.context;
|
|
12932
|
+
if (this.originalOrder && !this.moving) {
|
|
12933
|
+
this.clear();
|
|
12934
|
+
this.announcement = $localize `Reordering finished.`;
|
|
12935
|
+
context.notifyChange?.();
|
|
12936
|
+
}
|
|
12937
|
+
}
|
|
12938
|
+
cancel() {
|
|
12939
|
+
const context = this.context;
|
|
12940
|
+
if (this.originalOrder) {
|
|
12941
|
+
this.clear();
|
|
12942
|
+
this.announcement = $localize `Reordering cancelled because the items changed or are no longer available.`;
|
|
12943
|
+
context.notifyChange?.();
|
|
12944
|
+
}
|
|
12945
|
+
}
|
|
12946
|
+
applyMove(from, to) {
|
|
12947
|
+
const context = this.context;
|
|
12948
|
+
this.moving = true;
|
|
12949
|
+
try {
|
|
12950
|
+
if (from !== to) {
|
|
12951
|
+
context.move(from, to);
|
|
12952
|
+
}
|
|
12953
|
+
this.handle?.focus({ preventScroll: true });
|
|
12954
|
+
this.handle?.scrollIntoView({
|
|
12955
|
+
block: "nearest",
|
|
12956
|
+
inline: "nearest",
|
|
12957
|
+
});
|
|
12958
|
+
}
|
|
12959
|
+
finally {
|
|
12960
|
+
this.moving = false;
|
|
12961
|
+
}
|
|
12962
|
+
}
|
|
12963
|
+
clear() {
|
|
12964
|
+
this.activeItem = undefined;
|
|
12965
|
+
this.originalOrder = undefined;
|
|
12966
|
+
this.expectedOrder = undefined;
|
|
12967
|
+
this.handle = undefined;
|
|
12968
|
+
}
|
|
12969
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KeyboardReorder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12970
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KeyboardReorder }); }
|
|
12971
|
+
}
|
|
12972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KeyboardReorder, decorators: [{
|
|
12973
|
+
type: Injectable
|
|
12974
|
+
}] });
|
|
12975
|
+
|
|
12694
12976
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
12695
12977
|
//
|
|
12696
12978
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -12777,6 +13059,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
12777
13059
|
/** @ignore */
|
|
12778
13060
|
class ItemsDynamicComponent extends BaseLayout {
|
|
12779
13061
|
static { this.lateLoadKey = "ItemsDynamicComponent"; }
|
|
13062
|
+
static { this.reorderInstructionsCounter = 0; }
|
|
13063
|
+
/* eslint-disable @angular-eslint/prefer-inject -- Preserve the public constructor signature for existing consumers. */
|
|
12780
13064
|
constructor(changeDetector, pizzagnaService, logger, formBuilder) {
|
|
12781
13065
|
super(changeDetector, pizzagnaService, logger);
|
|
12782
13066
|
this.formBuilder = formBuilder;
|
|
@@ -12785,7 +13069,12 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12785
13069
|
this.formReady = new EventEmitter();
|
|
12786
13070
|
this.itemsChange = new EventEmitter();
|
|
12787
13071
|
this.headerMap = new Map();
|
|
13072
|
+
this.reorderInstructionsId = `nui-items-dynamic-reorder-instructions-${ItemsDynamicComponent.reorderInstructionsCounter++}`;
|
|
13073
|
+
this.reorder = inject(KeyboardReorder);
|
|
13074
|
+
this.reorder.configure(() => this.nodes ?? [], (from, to) => this.moveItem(from, to), id => !this.moveButtons ||
|
|
13075
|
+
!this.form?.at(this.nodes.indexOf(id))?.enabled, () => this.changeDetector.markForCheck());
|
|
12788
13076
|
}
|
|
13077
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
12789
13078
|
getItemForNode(node) {
|
|
12790
13079
|
return this.items.find(item => item.id === node.id);
|
|
12791
13080
|
}
|
|
@@ -12817,7 +13106,6 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12817
13106
|
setTimeout(() => {
|
|
12818
13107
|
const label = form.get(`${item.id}/description`)?.get("label");
|
|
12819
13108
|
label?.valueChanges
|
|
12820
|
-
// eslint-disable-next-line import/no-deprecated
|
|
12821
13109
|
.pipe(startWith(label.value), takeUntil(this.destroyed$))
|
|
12822
13110
|
.subscribe((value) => {
|
|
12823
13111
|
this.headerMap.set(item.id, value || "");
|
|
@@ -12847,6 +13135,7 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12847
13135
|
if (!item) {
|
|
12848
13136
|
throw new Error("Unable to remove undefined item from pizzagna");
|
|
12849
13137
|
}
|
|
13138
|
+
this.reorder.cancel();
|
|
12850
13139
|
// remove item configuration - this will cause the onFormDestroy to be called for related form after component disappears from the view
|
|
12851
13140
|
this.itemsChange.emit(this.items.filter(it => it !== item));
|
|
12852
13141
|
this.items.splice(index, 1);
|
|
@@ -12861,6 +13150,10 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12861
13150
|
const node = nodes.splice(index, 1);
|
|
12862
13151
|
nodes.splice(toIndex, 0, ...node);
|
|
12863
13152
|
this.nodes = [...nodes];
|
|
13153
|
+
if (this.reorder.activeItem !== undefined) {
|
|
13154
|
+
// Keep the local input view current while consecutive keyboard moves are made.
|
|
13155
|
+
this.items = items;
|
|
13156
|
+
}
|
|
12864
13157
|
this.moveFormValues(index, toIndex);
|
|
12865
13158
|
this.itemsChange.emit(items);
|
|
12866
13159
|
// triggers form change - setTimeout because we need to wait first for items to update
|
|
@@ -12873,6 +13166,7 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12873
13166
|
this.moveItem(event.previousIndex, event.currentIndex);
|
|
12874
13167
|
}
|
|
12875
13168
|
cdkDragStarted(event) {
|
|
13169
|
+
this.reorder.finish();
|
|
12876
13170
|
this.height = event.source.element.nativeElement.offsetHeight;
|
|
12877
13171
|
}
|
|
12878
13172
|
moveFormValues(index, toIndex) {
|
|
@@ -12885,11 +13179,11 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12885
13179
|
super.ngOnDestroy();
|
|
12886
13180
|
}
|
|
12887
13181
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ItemsDynamicComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PizzagnaService }, { token: i2.LoggerService }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12888
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ItemsDynamicComponent, isStandalone: false, selector: "nui-items-dynamic", inputs: { items: "items", moveButtons: "moveButtons", nodes: "nodes", headerPrefix: "headerPrefix" }, outputs: { formReady: "formReady", itemsChange: "itemsChange" }, usesInheritance: true, ngImport: i0, template: "
|
|
13182
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ItemsDynamicComponent, isStandalone: false, selector: "nui-items-dynamic", inputs: { items: "items", moveButtons: "moveButtons", nodes: "nodes", headerPrefix: "headerPrefix" }, outputs: { formReady: "formReady", itemsChange: "itemsChange" }, providers: [KeyboardReorder], usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-items-dynamic\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\">\n <span\n class=\"nui-items-dynamic__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this item. Use the arrow keys to move\n it. Press Space or Enter to drop it, or Escape to restore its original\n position.\n </span>\n <span\n class=\"nui-items-dynamic__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n </span>\n <div\n cdkDrag\n class=\"nui-items-dynamic__node-item\"\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n *ngFor=\"let node of nodeConfigs; let i = index; trackBy: trackBy\">\n <nui-drop-area\n class=\"nui-items-dynamic__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"height\"></nui-drop-area>\n\n <ng-template #headerText>\n @if (moveButtons) {\n <div\n class=\"nui-items-dynamic__drag-handler\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"form?.at(i)?.enabled ? 0 : -1\"\n [attr.aria-disabled]=\"form?.at(i)?.enabled ? null : 'true'\"\n [attr.aria-pressed]=\"reorder.activeItem === node.id\"\n aria-label=\"Reorder item\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, node.id)\"\n (blur)=\"reorder.finish()\">\n <nui-icon icon=\"drag\" aria-hidden=\"true\"></nui-icon>\n </div>\n }\n <span\n [title]=\"\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n \"\n class=\"nui-items-dynamic__header-text\">\n {{\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <button\n id=\"kpi-widget-remove-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n aria-label=\"Remove item\"\n i18n-aria-label\n (click)=\"removeItem(getItemForNode(node), i)\"></button>\n </div>\n </ng-template>\n\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [providers]=\"node.providers\"\n [properties]=\"\n node.properties\n | nuiAddData : headerText : 'headerTextTemplate'\n | nuiAddData : headerButtons : 'headerButtonsTemplate'\n \"\n [outputs]=\"['formReady', 'formDestroy']\"\n (output)=\"onEvent(node.id, $event)\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\">\n </ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-items-dynamic__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-items-dynamic__drag-handler{cursor:move;display:flex}.nui-items-dynamic__drag-handler:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.nui-items-dynamic__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nui-items-dynamic__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-items-dynamic__node-item .widget-configurator-section{margin:0}.nui-items-dynamic__drop-area{margin:15px}.kpi-indicators-configuration__color-preview{width:16px;height:16px;margin-right:15px;border-radius:3px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: AddDataPipe, name: "nuiAddData" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
12889
13183
|
}
|
|
12890
13184
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ItemsDynamicComponent, decorators: [{
|
|
12891
13185
|
type: Component,
|
|
12892
|
-
args: [{ selector: "nui-items-dynamic", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "
|
|
13186
|
+
args: [{ selector: "nui-items-dynamic", providers: [KeyboardReorder], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"nui-items-dynamic\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\">\n <span\n class=\"nui-items-dynamic__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this item. Use the arrow keys to move\n it. Press Space or Enter to drop it, or Escape to restore its original\n position.\n </span>\n <span\n class=\"nui-items-dynamic__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n </span>\n <div\n cdkDrag\n class=\"nui-items-dynamic__node-item\"\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n *ngFor=\"let node of nodeConfigs; let i = index; trackBy: trackBy\">\n <nui-drop-area\n class=\"nui-items-dynamic__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"height\"></nui-drop-area>\n\n <ng-template #headerText>\n @if (moveButtons) {\n <div\n class=\"nui-items-dynamic__drag-handler\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"form?.at(i)?.enabled ? 0 : -1\"\n [attr.aria-disabled]=\"form?.at(i)?.enabled ? null : 'true'\"\n [attr.aria-pressed]=\"reorder.activeItem === node.id\"\n aria-label=\"Reorder item\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, node.id)\"\n (blur)=\"reorder.finish()\">\n <nui-icon icon=\"drag\" aria-hidden=\"true\"></nui-icon>\n </div>\n }\n <span\n [title]=\"\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n \"\n class=\"nui-items-dynamic__header-text\">\n {{\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <button\n id=\"kpi-widget-remove-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n aria-label=\"Remove item\"\n i18n-aria-label\n (click)=\"removeItem(getItemForNode(node), i)\"></button>\n </div>\n </ng-template>\n\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [providers]=\"node.providers\"\n [properties]=\"\n node.properties\n | nuiAddData : headerText : 'headerTextTemplate'\n | nuiAddData : headerButtons : 'headerButtonsTemplate'\n \"\n [outputs]=\"['formReady', 'formDestroy']\"\n (output)=\"onEvent(node.id, $event)\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\">\n </ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-items-dynamic__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-items-dynamic__drag-handler{cursor:move;display:flex}.nui-items-dynamic__drag-handler:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.nui-items-dynamic__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nui-items-dynamic__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-items-dynamic__node-item .widget-configurator-section{margin:0}.nui-items-dynamic__drop-area{margin:15px}.kpi-indicators-configuration__color-preview{width:16px;height:16px;margin-right:15px;border-radius:3px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"] }]
|
|
12893
13187
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: PizzagnaService }, { type: i2.LoggerService }, { type: i1$2.FormBuilder }], propDecorators: { items: [{
|
|
12894
13188
|
type: Input
|
|
12895
13189
|
}], moveButtons: [{
|
|
@@ -14289,13 +14583,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
14289
14583
|
const DEFAULT_LABEL = "Custom Comparator";
|
|
14290
14584
|
class BackgroundColorRulesConfigurationComponent {
|
|
14291
14585
|
static { this.lateLoadKey = "BackgroundColorRulesConfigurationComponent"; }
|
|
14586
|
+
static { this.reorderInstructionsCounter = 0; }
|
|
14587
|
+
/* eslint-disable @angular-eslint/prefer-inject -- Preserve the public constructor signature for existing consumers. */
|
|
14292
14588
|
constructor(changeDetector, formBuilder, comparatorsRegistry) {
|
|
14293
14589
|
this.changeDetector = changeDetector;
|
|
14294
14590
|
this.formBuilder = formBuilder;
|
|
14295
14591
|
this.formReady = new EventEmitter();
|
|
14592
|
+
this.reorderInstructionsId = `nui-background-color-rules-reorder-instructions-${BackgroundColorRulesConfigurationComponent.reorderInstructionsCounter++}`;
|
|
14593
|
+
this.reorder = inject(KeyboardReorder);
|
|
14296
14594
|
this.destroy$ = new Subject();
|
|
14297
14595
|
this.availableComparators = comparatorsRegistry.getComparators();
|
|
14596
|
+
this.reorder.configure(() => this.formLocal?.get("rules")?.value
|
|
14597
|
+
?.controls ?? [], (from, to) => {
|
|
14598
|
+
this.move(to, from, true);
|
|
14599
|
+
this.changeDetector.detectChanges();
|
|
14600
|
+
}, rule => rule.disabled, () => this.changeDetector.markForCheck());
|
|
14298
14601
|
}
|
|
14602
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
14299
14603
|
ngOnInit() {
|
|
14300
14604
|
this.palette = [
|
|
14301
14605
|
{ color: DEFAULT_KPI_TILE_COLOR, label: $localize `Default color` },
|
|
@@ -14338,6 +14642,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
14338
14642
|
return this.availableComparators[item]?.label || DEFAULT_LABEL;
|
|
14339
14643
|
}
|
|
14340
14644
|
removeRule(controlIndex) {
|
|
14645
|
+
this.reorder.cancel();
|
|
14341
14646
|
(this.formLocal?.get("rules")?.value).removeAt(controlIndex);
|
|
14342
14647
|
}
|
|
14343
14648
|
addRule() {
|
|
@@ -14351,6 +14656,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
14351
14656
|
this.move(event.currentIndex, event.previousIndex);
|
|
14352
14657
|
}
|
|
14353
14658
|
cdkDragStarted(event) {
|
|
14659
|
+
this.reorder.finish();
|
|
14354
14660
|
this.height = event.source.element.nativeElement.offsetHeight;
|
|
14355
14661
|
}
|
|
14356
14662
|
ngOnDestroy() {
|
|
@@ -14362,7 +14668,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
14362
14668
|
rules: [this.formBuilder.array([], Validators.required)],
|
|
14363
14669
|
});
|
|
14364
14670
|
}
|
|
14365
|
-
move(currentIndex, previousIndex) {
|
|
14671
|
+
move(currentIndex, previousIndex, batchChanges = false) {
|
|
14366
14672
|
const rules = this.formLocal?.get("rules")?.value;
|
|
14367
14673
|
const dir = currentIndex > previousIndex ? 1 : -1;
|
|
14368
14674
|
if (!rules) {
|
|
@@ -14371,16 +14677,20 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
14371
14677
|
const temp = rules.at(previousIndex);
|
|
14372
14678
|
for (let i = previousIndex; i * dir < currentIndex * dir; i = i + dir) {
|
|
14373
14679
|
const current = rules.at(i + dir);
|
|
14374
|
-
rules.setControl(i, current);
|
|
14680
|
+
rules.setControl(i, current, { emitEvent: !batchChanges });
|
|
14681
|
+
}
|
|
14682
|
+
rules.setControl(currentIndex, temp, { emitEvent: !batchChanges });
|
|
14683
|
+
if (batchChanges) {
|
|
14684
|
+
// Intermediate duplicates can destroy the focused rule's view.
|
|
14685
|
+
rules.updateValueAndValidity();
|
|
14375
14686
|
}
|
|
14376
|
-
rules.setControl(currentIndex, temp);
|
|
14377
14687
|
}
|
|
14378
14688
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: KpiColorComparatorsRegistryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14379
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: BackgroundColorRulesConfigurationComponent, isStandalone: false, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\" />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <!-- TODO: NUI-6281 - Fix no keyboard alternative for drag-to-reorder -->\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n @for (rule of formLocal.get(\"rules\")?.value.controls; track\n rule; let i = $index) {\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\">\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\">\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\">\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\">\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\">\n <nui-textbox formControlName=\"value\"></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\">\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n aria-label=\"Remove rule\"\n i18n-aria-label\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"></nui-drop-area>\n </div>\n }\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n>\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-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}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect", "ariaLabel", "id"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14689
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: BackgroundColorRulesConfigurationComponent, isStandalone: false, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, providers: [KeyboardReorder], usesOnChanges: true, ngImport: i0, template: "<span\n class=\"kpi-color-rules-configuration__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this rule. Use the arrow keys to move it.\n Press Space or Enter to drop it, or Escape to restore its original position.\n</span>\n<span\n class=\"kpi-color-rules-configuration__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n</span>\n<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\" />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n @for (rule of formLocal.get(\"rules\")?.value.controls; track\n rule; let i = $index) {\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\">\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\">\n <div\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"rule.disabled ? -1 : 0\"\n [attr.aria-disabled]=\"rule.disabled ? 'true' : null\"\n [attr.aria-pressed]=\"reorder.activeItem === rule\"\n aria-label=\"Reorder rule\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, rule)\"\n (blur)=\"reorder.finish()\">\n <nui-icon\n icon=\"drag\"\n [decorative]=\"true\"></nui-icon>\n </div>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\">\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\">\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\">\n <nui-textbox formControlName=\"value\"></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\">\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n aria-label=\"Remove rule\"\n i18n-aria-label\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"></nui-drop-area>\n </div>\n }\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n>\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-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}.kpi-color-rules-configuration__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move;width:16px;height:16px}.kpi-color-rule__drag:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect", "ariaLabel", "ariaDescribedby", "id"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14380
14690
|
}
|
|
14381
14691
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, decorators: [{
|
|
14382
14692
|
type: Component,
|
|
14383
|
-
args: [{ selector: "nui-background-color-rules-configuration", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\" />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n
|
|
14693
|
+
args: [{ selector: "nui-background-color-rules-configuration", providers: [KeyboardReorder], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<span\n class=\"kpi-color-rules-configuration__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this rule. Use the arrow keys to move it.\n Press Space or Enter to drop it, or Escape to restore its original position.\n</span>\n<span\n class=\"kpi-color-rules-configuration__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n</span>\n<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\" />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n @for (rule of formLocal.get(\"rules\")?.value.controls; track\n rule; let i = $index) {\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\">\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\">\n <div\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"rule.disabled ? -1 : 0\"\n [attr.aria-disabled]=\"rule.disabled ? 'true' : null\"\n [attr.aria-pressed]=\"reorder.activeItem === rule\"\n aria-label=\"Reorder rule\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, rule)\"\n (blur)=\"reorder.finish()\">\n <nui-icon\n icon=\"drag\"\n [decorative]=\"true\"></nui-icon>\n </div>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\">\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\">\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\">\n <nui-textbox formControlName=\"value\"></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\">\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n aria-label=\"Remove rule\"\n i18n-aria-label\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"></nui-drop-area>\n </div>\n }\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n>\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-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}.kpi-color-rules-configuration__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move;width:16px;height:16px}.kpi-color-rule__drag:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.kpi-color-rule__control{min-width:30px;height:30px}\n"] }]
|
|
14384
14694
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$2.FormBuilder }, { type: KpiColorComparatorsRegistryService }], propDecorators: { rules: [{
|
|
14385
14695
|
type: Input
|
|
14386
14696
|
}], backgroundColors: [{
|
|
@@ -14902,7 +15212,7 @@ class EmbeddedContentConfigurationComponent {
|
|
|
14902
15212
|
});
|
|
14903
15213
|
}
|
|
14904
15214
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: EmbeddedContentConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14905
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: EmbeddedContentConfigurationComponent, isStandalone: false, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption>\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required>\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\">\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel", "ariaLabelledby"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "id", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15215
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: EmbeddedContentConfigurationComponent, isStandalone: false, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\">\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption>\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required>\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\">\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel", "ariaLabelledby"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "ariaDescribedby", "id", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14906
15216
|
}
|
|
14907
15217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: EmbeddedContentConfigurationComponent, decorators: [{
|
|
14908
15218
|
type: Component,
|
|
@@ -15028,7 +15338,7 @@ class KpiDescriptionConfigurationComponent {
|
|
|
15028
15338
|
}
|
|
15029
15339
|
}
|
|
15030
15340
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KpiDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15031
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: KpiDescriptionConfigurationComponent, isStandalone: false, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\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\"></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=\"kpi-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 <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\">\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\">\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\">\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-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"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect", "ariaLabel", "id"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15341
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: KpiDescriptionConfigurationComponent, isStandalone: false, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\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\"></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=\"kpi-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 <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\">\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\">\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\">\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-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"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect", "ariaLabel", "ariaDescribedby", "id"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15032
15342
|
}
|
|
15033
15343
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: KpiDescriptionConfigurationComponent, decorators: [{
|
|
15034
15344
|
type: Component,
|
|
@@ -15299,7 +15609,7 @@ class RefreshRateConfiguratorComponent {
|
|
|
15299
15609
|
useExisting: forwardRef((() => RefreshRateConfiguratorComponent)),
|
|
15300
15610
|
multi: true,
|
|
15301
15611
|
},
|
|
15302
|
-
], ngImport: i0, template: "<form [formGroup]=\"form\" class=\"d-flex flex-column\">\n <div class=\"d-flex flex-row\">\n <nui-textbox-number\n formControlName=\"number\"\n customBoxWidth=\"90px\"\n [minValue]=\"minSeconds\"\n [maxValue]=\"maxSeconds\"\n (valueChange)=\"valueChangeFix()\"></nui-textbox-number>\n\n <nui-select-v2 formControlName=\"unit\" class=\"ml-3\">\n <nui-select-v2-option\n *ngFor=\"let item of displayedUnitItems\"\n [value]=\"item\">\n {{ item.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </div>\n <nui-form-field [control]=\"form.get('number')\">\n <nui-validation-message for=\"invalidNumber\">\n {{ getNumberValidationMessage() }}\n </nui-validation-message>\n </nui-form-field>\n</form>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15612
|
+
], ngImport: i0, template: "<form [formGroup]=\"form\" class=\"d-flex flex-column\">\n <div class=\"d-flex flex-row\">\n <nui-textbox-number\n formControlName=\"number\"\n customBoxWidth=\"90px\"\n [minValue]=\"minSeconds\"\n [maxValue]=\"maxSeconds\"\n (valueChange)=\"valueChangeFix()\"></nui-textbox-number>\n\n <nui-select-v2 formControlName=\"unit\" class=\"ml-3\">\n <nui-select-v2-option\n *ngFor=\"let item of displayedUnitItems\"\n [value]=\"item\">\n {{ item.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </div>\n <nui-form-field [control]=\"form.get('number')\">\n <nui-validation-message for=\"invalidNumber\">\n {{ getNumberValidationMessage() }}\n </nui-validation-message>\n </nui-form-field>\n</form>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "ariaDescribedby", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15303
15613
|
}
|
|
15304
15614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RefreshRateConfiguratorComponent, decorators: [{
|
|
15305
15615
|
type: Component,
|
|
@@ -15449,7 +15759,7 @@ class RefresherConfigurationComponent {
|
|
|
15449
15759
|
return result;
|
|
15450
15760
|
}
|
|
15451
15761
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RefresherConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }, { token: RefresherSettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15452
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RefresherConfigurationComponent, isStandalone: false, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\">\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n>\n Refresh widget periodically\n </nui-switch>\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\">\n {{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n>\n By default, the widget will refresh every {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds )}}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\">\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel", "id"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
15762
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RefresherConfigurationComponent, isStandalone: false, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\">\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n>\n Refresh widget periodically\n </nui-switch>\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\">\n {{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n>\n By default, the widget will refresh every {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds )}}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\">\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "tabIndex", "ariaLabel", "ariaDescribedby", "id"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
15453
15763
|
}
|
|
15454
15764
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RefresherConfigurationComponent, decorators: [{
|
|
15455
15765
|
type: Component,
|
|
@@ -15547,7 +15857,7 @@ class RiskScoreTileDescriptionConfigurationComponent {
|
|
|
15547
15857
|
}
|
|
15548
15858
|
}
|
|
15549
15859
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15550
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RiskScoreTileDescriptionConfigurationComponent, isStandalone: false, 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 <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\"></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 <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></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 <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder></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 <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder></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 <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 <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder></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 <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder></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"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel", "id"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15860
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RiskScoreTileDescriptionConfigurationComponent, isStandalone: false, 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 <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\"></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 <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></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 <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder></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 <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder></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 <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 <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder></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 <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder></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"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "ariaDescribedby", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "tabIndex", "ariaLabel", "ariaDescribedby", "id"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15551
15861
|
}
|
|
15552
15862
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
15553
15863
|
type: Component,
|
|
@@ -15731,7 +16041,7 @@ class ThresholdsConfigurationComponent {
|
|
|
15731
16041
|
}
|
|
15732
16042
|
}
|
|
15733
16043
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ThresholdsConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15734
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ThresholdsConfigurationComponent, isStandalone: false, selector: "nui-thresholds-configuration", inputs: { criticalThresholdValue: "criticalThresholdValue", warningThresholdValue: "warningThresholdValue", showThresholds: "showThresholds", reversedThresholds: "reversedThresholds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'thresholds' | async\"\n [subtitle]=\"getThresholdsSubtitle(form.get('showThresholds')?.value)\"\n headerTitle=\"Thresholds\" />\n <div class=\"kpi-thresholds-configuration__accordion-content\">\n <nui-form-field\n [control]=\"form.get('showThresholds')\"\n caption=\"How do you want to set warning/critical thresholds?\"\n i18n-caption>\n <nui-radio-group\n formControlName=\"showThresholds\"\n [value]=\"radioButtonGroupValue\"\n name=\"showThresholds\"\n required>\n <nui-radio\n *ngFor=\"let thresholdOption of thresholdOptions\"\n [value]=\"thresholdOption.value\">\n {{ thresholdOption.displayValue }}\n </nui-radio>\n </nui-radio-group>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"form.get('showThresholds')?.value\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Warning value\"\n i18n-caption\n [control]=\"form.get('warningThresholdValue')\">\n <nui-textbox-number\n formControlName=\"warningThresholdValue\"\n placeholder=\"Never show the warning state\"\n i18n-placeholder></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Warning threshold should be greater than critical\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Warning threshold should be lower than critical\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Critical value\"\n i18n-caption\n [control]=\"form.get('criticalThresholdValue')\">\n <nui-textbox-number\n formControlName=\"criticalThresholdValue\"\n placeholder=\"Set critical value\"\n i18n-placeholder></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Critical threshold should be greater than warning\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Critical threshold should be lower than warning\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n [control]=\"form.get('reversedThresholds')\"\n [showOptionalText]=\"false\">\n <nui-checkbox formControlName=\"reversedThresholds\" required>\n <span class=\"nui-text-label\" i18n\n >Warning and critical when below threshold\n values</span\n >\n </nui-checkbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-thresholds-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel", "ariaLabelledby"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "id", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16044
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ThresholdsConfigurationComponent, isStandalone: false, selector: "nui-thresholds-configuration", inputs: { criticalThresholdValue: "criticalThresholdValue", warningThresholdValue: "warningThresholdValue", showThresholds: "showThresholds", reversedThresholds: "reversedThresholds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'thresholds' | async\"\n [subtitle]=\"getThresholdsSubtitle(form.get('showThresholds')?.value)\"\n headerTitle=\"Thresholds\" />\n <div class=\"kpi-thresholds-configuration__accordion-content\">\n <nui-form-field\n [control]=\"form.get('showThresholds')\"\n caption=\"How do you want to set warning/critical thresholds?\"\n i18n-caption>\n <nui-radio-group\n formControlName=\"showThresholds\"\n [value]=\"radioButtonGroupValue\"\n name=\"showThresholds\"\n required>\n <nui-radio\n *ngFor=\"let thresholdOption of thresholdOptions\"\n [value]=\"thresholdOption.value\">\n {{ thresholdOption.displayValue }}\n </nui-radio>\n </nui-radio-group>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"form.get('showThresholds')?.value\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Warning value\"\n i18n-caption\n [control]=\"form.get('warningThresholdValue')\">\n <nui-textbox-number\n formControlName=\"warningThresholdValue\"\n placeholder=\"Never show the warning state\"\n i18n-placeholder></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Warning threshold should be greater than critical\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Warning threshold should be lower than critical\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Critical value\"\n i18n-caption\n [control]=\"form.get('criticalThresholdValue')\">\n <nui-textbox-number\n formControlName=\"criticalThresholdValue\"\n placeholder=\"Set critical value\"\n i18n-placeholder></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Critical threshold should be greater than warning\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Critical threshold should be lower than warning\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n [control]=\"form.get('reversedThresholds')\"\n [showOptionalText]=\"false\">\n <nui-checkbox formControlName=\"reversedThresholds\" required>\n <span class=\"nui-text-label\" i18n\n >Warning and critical when below threshold\n values</span\n >\n </nui-checkbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-thresholds-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "ariaDescribedby", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel", "ariaLabelledby"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "ariaDescribedby", "id", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15735
16045
|
}
|
|
15736
16046
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ThresholdsConfigurationComponent, decorators: [{
|
|
15737
16047
|
type: Component,
|
|
@@ -15854,7 +16164,7 @@ class TimeseriesMetadataConfigurationComponent {
|
|
|
15854
16164
|
this.destroy$.complete();
|
|
15855
16165
|
}
|
|
15856
16166
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeseriesMetadataConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15857
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeseriesMetadataConfigurationComponent, isStandalone: false, selector: "nui-timeseries-metadata-configuration", inputs: { legendPlacements: "legendPlacements", timeSpans: "timeSpans", startingTimespan: "startingTimespan", legendPlacement: "legendPlacement", leftAxisLabel: "leftAxisLabel", preset: "preset", availableChartTypes: "availableChartTypes" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'edit' | async\"\n [iconColor]=\"form | nuiFormHeaderIconPipe : 'gray' : '' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Timeseries metadata\" />\n <div class=\"timeseries-metadata-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Starting timespan\"\n i18n-caption\n [control]=\"form.controls['startingTimespan']\">\n <nui-select-v2\n placeholder=\"Starting Timespan\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"startingTimespan\">\n <nui-select-v2-option\n *ngFor=\"let timeSpan of timeSpans\"\n [value]=\"timeSpan\">\n {{ timeSpan.name }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart legend\"\n i18n-caption\n [control]=\"form.controls['legendPlacement']\">\n <nui-select-v2\n placeholder=\"Select Legend Orientation\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"legendPlacement\">\n <nui-select-v2-option\n *ngFor=\"let legendPlacement of legendPlacements\"\n [value]=\"legendPlacement.id\">\n {{ legendPlacement.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart y-axis label\"\n i18n-caption\n [control]=\"form.controls['leftAxisLabel']\">\n <nui-textbox\n formControlName=\"leftAxisLabel\"\n placeholder=\"Set chart y-axis label\"\n i18n-placeholder></nui-textbox>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Chart type\"\n i18n-caption\n [control]=\"form.controls['preset']\">\n <nui-select-v2\n placeholder=\"Chart type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"preset\">\n <nui-select-v2-option\n *ngFor=\"let option of availableChartTypes\"\n [value]=\"option.value\"\n >{{ option.label }}</nui-select-v2-option\n >\n </nui-select-v2>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".timeseries-metadata-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
16167
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeseriesMetadataConfigurationComponent, isStandalone: false, selector: "nui-timeseries-metadata-configuration", inputs: { legendPlacements: "legendPlacements", timeSpans: "timeSpans", startingTimespan: "startingTimespan", legendPlacement: "legendPlacement", leftAxisLabel: "leftAxisLabel", preset: "preset", availableChartTypes: "availableChartTypes" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'edit' | async\"\n [iconColor]=\"form | nuiFormHeaderIconPipe : 'gray' : '' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Timeseries metadata\" />\n <div class=\"timeseries-metadata-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Starting timespan\"\n i18n-caption\n [control]=\"form.controls['startingTimespan']\">\n <nui-select-v2\n placeholder=\"Starting Timespan\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"startingTimespan\">\n <nui-select-v2-option\n *ngFor=\"let timeSpan of timeSpans\"\n [value]=\"timeSpan\">\n {{ timeSpan.name }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart legend\"\n i18n-caption\n [control]=\"form.controls['legendPlacement']\">\n <nui-select-v2\n placeholder=\"Select Legend Orientation\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"legendPlacement\">\n <nui-select-v2-option\n *ngFor=\"let legendPlacement of legendPlacements\"\n [value]=\"legendPlacement.id\">\n {{ legendPlacement.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart y-axis label\"\n i18n-caption\n [control]=\"form.controls['leftAxisLabel']\">\n <nui-textbox\n formControlName=\"leftAxisLabel\"\n placeholder=\"Set chart y-axis label\"\n i18n-placeholder></nui-textbox>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Chart type\"\n i18n-caption\n [control]=\"form.controls['preset']\">\n <nui-select-v2\n placeholder=\"Chart type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"preset\">\n <nui-select-v2-option\n *ngFor=\"let option of availableChartTypes\"\n [value]=\"option.value\"\n >{{ option.label }}</nui-select-v2-option\n >\n </nui-select-v2>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".timeseries-metadata-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
15858
16168
|
}
|
|
15859
16169
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeseriesMetadataConfigurationComponent, decorators: [{
|
|
15860
16170
|
type: Component,
|
|
@@ -15941,7 +16251,7 @@ class TitleAndDescriptionConfigurationComponent {
|
|
|
15941
16251
|
return `${forTitle}, ${forSubtitle}`;
|
|
15942
16252
|
}
|
|
15943
16253
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TitleAndDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15944
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TitleAndDescriptionConfigurationComponent, isStandalone: false, selector: "nui-title-and-description-configuration", inputs: { title: "title", url: "url", subtitle: "subtitle", description: "description", collapsible: "collapsible" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Title and Description\" />\n <div class=\"title-and-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget title\"\n i18n-caption\n [control]=\"form.get('title')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-title\"\n formControlName=\"title\"\n placeholder=\"Set widget title\"\n i18n-placeholder></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget subtitle\"\n i18n-caption\n [control]=\"form.get('subtitle')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <nui-textbox\n id=\"kpi-widget-subtitle\"\n formControlName=\"subtitle\"\n placeholder=\"Do not show a subtitle\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget link URL\"\n i18n-caption\n [control]=\"form.get('url')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-url\"\n formControlName=\"url\"\n placeholder=\"Do not link to another page\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget description\"\n i18n-caption\n [control]=\"form.get('description')\"\n hint=\"This won't be shown on the widget, but can be helpful for\n other users who want to re-use this widget on their own dashboards\"\n i18n-hint>\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"No description\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"Hide widget header\"\n [showOptionalText]=\"false\"\n i18n-caption\n [control]=\"form.get('collapsible')\">\n <nui-checkbox formControlName=\"collapsible\" i18n\n >Collapsible</nui-checkbox\n >\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".title-and-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16254
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TitleAndDescriptionConfigurationComponent, isStandalone: false, selector: "nui-title-and-description-configuration", inputs: { title: "title", url: "url", subtitle: "subtitle", description: "description", collapsible: "collapsible" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Title and Description\" />\n <div class=\"title-and-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget title\"\n i18n-caption\n [control]=\"form.get('title')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-title\"\n formControlName=\"title\"\n placeholder=\"Set widget title\"\n i18n-placeholder></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget subtitle\"\n i18n-caption\n [control]=\"form.get('subtitle')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <nui-textbox\n id=\"kpi-widget-subtitle\"\n formControlName=\"subtitle\"\n placeholder=\"Do not show a subtitle\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget link URL\"\n i18n-caption\n [control]=\"form.get('url')\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-url\"\n formControlName=\"url\"\n placeholder=\"Do not link to another page\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget description\"\n i18n-caption\n [control]=\"form.get('description')\"\n hint=\"This won't be shown on the widget, but can be helpful for\n other users who want to re-use this widget on their own dashboards\"\n i18n-hint>\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"No description\"\n i18n-placeholder></nui-textbox>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"Hide widget header\"\n [showOptionalText]=\"false\"\n i18n-caption\n [control]=\"form.get('collapsible')\">\n <nui-checkbox formControlName=\"collapsible\" i18n\n >Collapsible</nui-checkbox\n >\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".title-and-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15945
16255
|
}
|
|
15946
16256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TitleAndDescriptionConfigurationComponent, decorators: [{
|
|
15947
16257
|
type: Component,
|
|
@@ -16895,7 +17205,7 @@ class DescriptionConfigurationComponent {
|
|
|
16895
17205
|
this.formDestroy.emit(this.form);
|
|
16896
17206
|
}
|
|
16897
17207
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DescriptionConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16898
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: DescriptionConfigurationComponent, isStandalone: false, selector: "nui-table-column-description-configuration", inputs: { label: "label", isActive: "isActive", width: "width", isWidthMessageDisplayed: "isWidthMessageDisplayed" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\" />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\">\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayed\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\">\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n>\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <nui-message\n *ngIf=\"isWidthMessageDisplayed\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n>\n <b>All columns can not have fixed width.</b>\n </nui-message>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17208
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: DescriptionConfigurationComponent, isStandalone: false, selector: "nui-table-column-description-configuration", inputs: { label: "label", isActive: "isActive", width: "width", isWidthMessageDisplayed: "isWidthMessageDisplayed" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\" />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\">\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayed\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\">\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n>\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <nui-message\n *ngIf=\"isWidthMessageDisplayed\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n>\n <b>All columns can not have fixed width.</b>\n </nui-message>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "ariaDescribedby", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16899
17209
|
}
|
|
16900
17210
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DescriptionConfigurationComponent, decorators: [{
|
|
16901
17211
|
type: Component,
|
|
@@ -17059,7 +17369,7 @@ class LinkConfiguratorComponent extends FormatterConfiguratorComponent {
|
|
|
17059
17369
|
this.formReady.emit(this.form);
|
|
17060
17370
|
}
|
|
17061
17371
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LinkConfiguratorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17062
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LinkConfiguratorComponent, isStandalone: false, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption=\"\n label field caption| the entity field to be selected for the\n html label property\n \"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['value']\">\n <nui-select-v2 formControlName=\"value\">\n <nui-select-v2-option\n *ngFor=\"let itemValue of dropdownItems.value\"\n [value]=\"itemValue.id\">\n {{ itemValue.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"URL\"\n i18n-caption=\"\n url field caption| the entity field to be selected for the\n url html property\n \"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['link']\">\n <nui-select-v2 formControlName=\"link\">\n <nui-select-v2-option\n *ngFor=\"let itemLink of dropdownItems.link\"\n [value]=\"itemLink.id\">\n {{ itemLink.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n <div>\n <nui-form-field\n caption=\"Open in the same window\"\n i18n-caption=\"\n form field caption|switch configuring whether formatted link\n should open in new window/tab\n \"\n class=\"mb-3\"\n [control]=\"form.controls.targetSelf\">\n <nui-switch id=\"nui-switch-target\" formControlName=\"targetSelf\">\n </nui-switch>\n </nui-form-field>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel", "id"], outputs: ["valueChange"] }] }); }
|
|
17372
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LinkConfiguratorComponent, isStandalone: false, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption=\"\n label field caption| the entity field to be selected for the\n html label property\n \"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['value']\">\n <nui-select-v2 formControlName=\"value\">\n <nui-select-v2-option\n *ngFor=\"let itemValue of dropdownItems.value\"\n [value]=\"itemValue.id\">\n {{ itemValue.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"URL\"\n i18n-caption=\"\n url field caption| the entity field to be selected for the\n url html property\n \"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['link']\">\n <nui-select-v2 formControlName=\"link\">\n <nui-select-v2-option\n *ngFor=\"let itemLink of dropdownItems.link\"\n [value]=\"itemLink.id\">\n {{ itemLink.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n <div>\n <nui-form-field\n caption=\"Open in the same window\"\n i18n-caption=\"\n form field caption|switch configuring whether formatted link\n should open in new window/tab\n \"\n class=\"mb-3\"\n [control]=\"form.controls.targetSelf\">\n <nui-switch id=\"nui-switch-target\" formControlName=\"targetSelf\">\n </nui-switch>\n </nui-form-field>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "tabIndex", "ariaLabel", "ariaDescribedby", "id"], outputs: ["valueChange"] }] }); }
|
|
17063
17373
|
}
|
|
17064
17374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LinkConfiguratorComponent, decorators: [{
|
|
17065
17375
|
type: Component,
|
|
@@ -17707,7 +18017,7 @@ class DescriptionConfigurationV2Component {
|
|
|
17707
18017
|
useExisting: forwardRef((() => DescriptionConfigurationV2Component)),
|
|
17708
18018
|
multi: true,
|
|
17709
18019
|
},
|
|
17710
|
-
], ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\" />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\">\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayedForThisColumn()\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\">\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n>\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <div\n *ngIf=\"isWidthMessageDisplayedForThisColumn()\"\n class=\"mt-4\">\n <nui-message type=\"info\" [allowDismiss]=\"false\" i18n>\n <b>All columns cannot have fixed width.</b>\n </nui-message>\n </div>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18020
|
+
], ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\" />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\">\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayedForThisColumn()\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\">\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n>\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <div\n *ngIf=\"isWidthMessageDisplayedForThisColumn()\"\n class=\"mt-4\">\n <nui-message type=\"info\" [allowDismiss]=\"false\" i18n>\n <b>All columns cannot have fixed width.</b>\n </nui-message>\n </div>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "id", "step", "stepPrecision", "isInErrorState", "ariaLabel", "ariaDescribedby", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "id", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17711
18021
|
}
|
|
17712
18022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DescriptionConfigurationV2Component, decorators: [{
|
|
17713
18023
|
type: Component,
|
|
@@ -18162,10 +18472,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
18162
18472
|
|
|
18163
18473
|
class TableColumnsConfigurationV2Component {
|
|
18164
18474
|
static { this.lateLoadKey = "TableColumnsConfigurationV2Component"; }
|
|
18475
|
+
static { this.reorderInstructionsCounter = 0; }
|
|
18165
18476
|
get columnForms() {
|
|
18166
18477
|
return this.form.controls["columns"]
|
|
18167
18478
|
.controls;
|
|
18168
18479
|
}
|
|
18480
|
+
/* eslint-disable @angular-eslint/prefer-inject -- Preserve the public constructor signature for existing consumers. */
|
|
18169
18481
|
constructor(formBuilder, changeDetector, dialogService, pizzagnaService, dataSourceManager, tableFormatterRegistry, eventBus) {
|
|
18170
18482
|
this.formBuilder = formBuilder;
|
|
18171
18483
|
this.changeDetector = changeDetector;
|
|
@@ -18180,7 +18492,11 @@ class TableColumnsConfigurationV2Component {
|
|
|
18180
18492
|
this.dataSourceFields = [];
|
|
18181
18493
|
this.isWidthMessageDisplayed = false;
|
|
18182
18494
|
this.columnLabel = $localize `Column`;
|
|
18495
|
+
this.reorderInstructionsId = `nui-table-columns-reorder-instructions-${TableColumnsConfigurationV2Component.reorderInstructionsCounter++}`;
|
|
18496
|
+
this.reorder = inject(KeyboardReorder);
|
|
18183
18497
|
this.onDestroy$ = new Subject();
|
|
18498
|
+
this.reorder.configure(() => this.columnForms.map(control => control.value.id), (from, to) => this.moveItem(from, to), id => !this.columnForms.find(control => control.value.id === id)
|
|
18499
|
+
?.enabled, () => this.changeDetector.markForCheck());
|
|
18184
18500
|
this.form = this.formBuilder.group({
|
|
18185
18501
|
columns: this.formBuilder.array([]),
|
|
18186
18502
|
});
|
|
@@ -18227,6 +18543,7 @@ class TableColumnsConfigurationV2Component {
|
|
|
18227
18543
|
this.changeDetector.markForCheck();
|
|
18228
18544
|
});
|
|
18229
18545
|
}
|
|
18546
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
18230
18547
|
ngOnInit() {
|
|
18231
18548
|
this.formReady.emit(this.form);
|
|
18232
18549
|
if (this.template && !this.tableFormatterRegistry.getItems()?.length) {
|
|
@@ -18357,6 +18674,7 @@ class TableColumnsConfigurationV2Component {
|
|
|
18357
18674
|
}
|
|
18358
18675
|
removeItem(index) {
|
|
18359
18676
|
const columns = this.form.controls["columns"];
|
|
18677
|
+
this.reorder.cancel();
|
|
18360
18678
|
columns.removeAt(index);
|
|
18361
18679
|
this.changeDetector.detectChanges();
|
|
18362
18680
|
}
|
|
@@ -18364,15 +18682,16 @@ class TableColumnsConfigurationV2Component {
|
|
|
18364
18682
|
this.moveItem(event.previousIndex, event.currentIndex);
|
|
18365
18683
|
}
|
|
18366
18684
|
cdkDragStarted(event) {
|
|
18685
|
+
this.reorder.finish();
|
|
18367
18686
|
this.draggedItemHeight =
|
|
18368
18687
|
event.source.element.nativeElement.offsetHeight;
|
|
18369
18688
|
}
|
|
18370
18689
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableColumnsConfigurationV2Component, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i2.DialogService }, { token: PizzagnaService }, { token: ConfiguratorDataSourceManagerService }, { token: TableFormatterRegistryService }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18371
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: TableColumnsConfigurationV2Component, isStandalone: false, selector: "nui-table-columns-configuration", inputs: { columns: "columns", componentId: "componentId", template: "template" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"nui-table-columns-configuration\">\n <!-- TODO: NUI-6281 - Fix no keyboard alternative for drag-to-reorder -->\n @if (!dataSourceError && dataSourceFields.length) {\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\" [formGroup]=\"form\">\n <div formArrayName=\"columns\">\n <div\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n class=\"nui-table-columns-configuration__node-item\"\n *ngFor=\"\n let columnForm of columnForms;\n index as i;\n trackBy: trackBy\n \">\n <nui-drop-area\n class=\"nui-table-columns-configuration__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"draggedItemHeight\"></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container>\n <div\n class=\"nui-table-columns-configuration__drag-handler\"\n cdkDragHandle>\n <nui-icon icon=\"drag\" aria-hidden=\"true\"></nui-icon>\n </div>\n </ng-container>\n <span\n class=\"nui-table-columns-configuration__header-text\"\n [title]=\"\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n \">\n {{\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <button\n id=\"table-widget-remove-column-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n title=\"Remove column\"\n i18n-title\n aria-label=\"Remove column\"\n i18n-aria-label\n (click)=\"removeItem(i)\"></button>\n </div>\n </ng-template>\n\n <nui-widget-configurator-section\n class=\"no-margin\"\n [headerTextTemplate]=\"headerText\"\n [headerButtonsTemplate]=\"headerButtons\">\n <nui-table-column-configuration\n [formControl]=\"columnForm\"\n [isWidthMessageDisplayed]=\"isWidthMessageDisplayed\"></nui-table-column-configuration>\n </nui-widget-configurator-section>\n </div>\n\n <div\n class=\"pl-4 pr-4\"\n *ngIf=\"(emptyColumns$ | async) && form.touched\">\n <nui-message type=\"critical\" [allowDismiss]=\"false\">\n <b i18n>At least one column must be added.</b>\n </nui-message>\n </div>\n\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"table-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addColumn()\"\n i18n>\n Add new column\n </button>\n\n <button\n nui-button\n icon=\"reset\"\n displayStyle=\"action\"\n id=\"table-widget-reset-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"onResetColumns()\"\n i18n>\n Reset columns\n </button>\n </div>\n </div>\n }\n</div>\n", styles: [".nui-table-columns-configuration__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-table-columns-configuration__drag-handler{cursor:move;display:flex}.nui-table-columns-configuration__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-table-columns-configuration__node-item .widget-configurator-section{margin:0}.nui-table-columns-configuration__drop-area{margin:15px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: TableColumnConfigurationComponent, selector: "nui-table-column-configuration", inputs: ["formControl", "isWidthMessageDisplayed"] }, { kind: "component", type: WidgetConfiguratorSectionComponent, selector: "nui-widget-configurator-section", inputs: ["headerTextTemplate", "headerButtonsTemplate", "nodes", "headerText"], outputs: ["formReady", "formDestroy"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
18690
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: TableColumnsConfigurationV2Component, isStandalone: false, selector: "nui-table-columns-configuration", inputs: { columns: "columns", componentId: "componentId", template: "template" }, outputs: { formReady: "formReady" }, providers: [KeyboardReorder], usesOnChanges: true, ngImport: i0, template: "<div class=\"nui-table-columns-configuration\">\n <span\n class=\"nui-table-columns-configuration__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this column. Use the arrow keys to move\n it. Press Space or Enter to drop it, or Escape to restore its original\n position.\n </span>\n <span\n class=\"nui-table-columns-configuration__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n </span>\n @if (!dataSourceError && dataSourceFields.length) {\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\" [formGroup]=\"form\">\n <div formArrayName=\"columns\">\n <div\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n class=\"nui-table-columns-configuration__node-item\"\n *ngFor=\"\n let columnForm of columnForms;\n index as i;\n trackBy: trackBy\n \">\n <nui-drop-area\n class=\"nui-table-columns-configuration__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"draggedItemHeight\"></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container>\n <div\n class=\"nui-table-columns-configuration__drag-handler\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"columnForm.disabled ? -1 : 0\"\n [attr.aria-disabled]=\"columnForm.disabled ? 'true' : null\"\n [attr.aria-pressed]=\"reorder.activeItem === columnForm.value.id\"\n aria-label=\"Reorder column\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, columnForm.value.id)\"\n (blur)=\"reorder.finish()\">\n <nui-icon icon=\"drag\" aria-hidden=\"true\"></nui-icon>\n </div>\n </ng-container>\n <span\n class=\"nui-table-columns-configuration__header-text\"\n [title]=\"\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n \">\n {{\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <button\n id=\"table-widget-remove-column-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n title=\"Remove column\"\n i18n-title\n aria-label=\"Remove column\"\n i18n-aria-label\n (click)=\"removeItem(i)\"></button>\n </div>\n </ng-template>\n\n <nui-widget-configurator-section\n class=\"no-margin\"\n [headerTextTemplate]=\"headerText\"\n [headerButtonsTemplate]=\"headerButtons\">\n <nui-table-column-configuration\n [formControl]=\"columnForm\"\n [isWidthMessageDisplayed]=\"isWidthMessageDisplayed\"></nui-table-column-configuration>\n </nui-widget-configurator-section>\n </div>\n\n <div\n class=\"pl-4 pr-4\"\n *ngIf=\"(emptyColumns$ | async) && form.touched\">\n <nui-message type=\"critical\" [allowDismiss]=\"false\">\n <b i18n>At least one column must be added.</b>\n </nui-message>\n </div>\n\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"table-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addColumn()\"\n i18n>\n Add new column\n </button>\n\n <button\n nui-button\n icon=\"reset\"\n displayStyle=\"action\"\n id=\"table-widget-reset-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"onResetColumns()\"\n i18n>\n Reset columns\n </button>\n </div>\n </div>\n }\n</div>\n", styles: [".nui-table-columns-configuration__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-table-columns-configuration__drag-handler{cursor:move;display:flex}.nui-table-columns-configuration__drag-handler:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.nui-table-columns-configuration__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nui-table-columns-configuration__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-table-columns-configuration__node-item .widget-configurator-section{margin:0}.nui-table-columns-configuration__drop-area{margin:15px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: TableColumnConfigurationComponent, selector: "nui-table-column-configuration", inputs: ["formControl", "isWidthMessageDisplayed"] }, { kind: "component", type: WidgetConfiguratorSectionComponent, selector: "nui-widget-configurator-section", inputs: ["headerTextTemplate", "headerButtonsTemplate", "nodes", "headerText"], outputs: ["formReady", "formDestroy"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
18372
18691
|
}
|
|
18373
18692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableColumnsConfigurationV2Component, decorators: [{
|
|
18374
18693
|
type: Component,
|
|
18375
|
-
args: [{ selector: "nui-table-columns-configuration", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"nui-table-columns-configuration\">\n
|
|
18694
|
+
args: [{ selector: "nui-table-columns-configuration", providers: [KeyboardReorder], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"nui-table-columns-configuration\">\n <span\n class=\"nui-table-columns-configuration__a11y-text\"\n [id]=\"reorderInstructionsId\"\n i18n>\n Press Space or Enter to pick up this column. Use the arrow keys to move\n it. Press Space or Enter to drop it, or Escape to restore its original\n position.\n </span>\n <span\n class=\"nui-table-columns-configuration__a11y-text\"\n aria-live=\"polite\"\n aria-atomic=\"true\">\n {{ reorder.announcement }}\n </span>\n @if (!dataSourceError && dataSourceFields.length) {\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\" [formGroup]=\"form\">\n <div formArrayName=\"columns\">\n <div\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n class=\"nui-table-columns-configuration__node-item\"\n *ngFor=\"\n let columnForm of columnForms;\n index as i;\n trackBy: trackBy\n \">\n <nui-drop-area\n class=\"nui-table-columns-configuration__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"draggedItemHeight\"></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container>\n <div\n class=\"nui-table-columns-configuration__drag-handler\"\n cdkDragHandle\n role=\"button\"\n [attr.tabindex]=\"columnForm.disabled ? -1 : 0\"\n [attr.aria-disabled]=\"columnForm.disabled ? 'true' : null\"\n [attr.aria-pressed]=\"reorder.activeItem === columnForm.value.id\"\n aria-label=\"Reorder column\"\n i18n-aria-label\n [attr.aria-describedby]=\"reorderInstructionsId\"\n (keydown)=\"reorder.onKeydown($event, columnForm.value.id)\"\n (blur)=\"reorder.finish()\">\n <nui-icon icon=\"drag\" aria-hidden=\"true\"></nui-icon>\n </div>\n </ng-container>\n <span\n class=\"nui-table-columns-configuration__header-text\"\n [title]=\"\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n \">\n {{\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <button\n id=\"table-widget-remove-column-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n title=\"Remove column\"\n i18n-title\n aria-label=\"Remove column\"\n i18n-aria-label\n (click)=\"removeItem(i)\"></button>\n </div>\n </ng-template>\n\n <nui-widget-configurator-section\n class=\"no-margin\"\n [headerTextTemplate]=\"headerText\"\n [headerButtonsTemplate]=\"headerButtons\">\n <nui-table-column-configuration\n [formControl]=\"columnForm\"\n [isWidthMessageDisplayed]=\"isWidthMessageDisplayed\"></nui-table-column-configuration>\n </nui-widget-configurator-section>\n </div>\n\n <div\n class=\"pl-4 pr-4\"\n *ngIf=\"(emptyColumns$ | async) && form.touched\">\n <nui-message type=\"critical\" [allowDismiss]=\"false\">\n <b i18n>At least one column must be added.</b>\n </nui-message>\n </div>\n\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"table-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addColumn()\"\n i18n>\n Add new column\n </button>\n\n <button\n nui-button\n icon=\"reset\"\n displayStyle=\"action\"\n id=\"table-widget-reset-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"onResetColumns()\"\n i18n>\n Reset columns\n </button>\n </div>\n </div>\n }\n</div>\n", styles: [".nui-table-columns-configuration__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-table-columns-configuration__drag-handler{cursor:move;display:flex}.nui-table-columns-configuration__drag-handler:focus-visible{outline:2px solid;outline-offset:2px;outline-color:var(--nui-color-active,#0079aa)}.nui-table-columns-configuration__a11y-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nui-table-columns-configuration__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-table-columns-configuration__node-item .widget-configurator-section{margin:0}.nui-table-columns-configuration__drop-area{margin:15px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"] }]
|
|
18376
18695
|
}], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i2.DialogService }, { type: PizzagnaService }, { type: ConfiguratorDataSourceManagerService }, { type: TableFormatterRegistryService }, { type: i2.EventBus, decorators: [{
|
|
18377
18696
|
type: Inject,
|
|
18378
18697
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -18689,7 +19008,7 @@ class TableScrollTypeEditorComponent {
|
|
|
18689
19008
|
this.onDestroy$.complete();
|
|
18690
19009
|
}
|
|
18691
19010
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableScrollTypeEditorComponent, deps: [{ token: i1$2.FormBuilder }, { token: ConfiguratorHeadingService }, { token: i0.ChangeDetectorRef }, { token: ScrollTypeEditorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18692
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TableScrollTypeEditorComponent, isStandalone: false, selector: "nui-scroll-type-editor-component", inputs: { paginatorConfiguration: "paginatorConfiguration", hasVirtualScroll: "hasVirtualScroll", scrollType: "scrollType" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [subtitle]=\"subtitle\"\n headerIcon=\"application\"\n headerTitle=\"Scroll type\" />\n <div\n class=\"table-filters-configuration__accordion-content\"\n formGroupName=\"paginatorConfiguration\">\n <div class=\"scroll-type-field d-flex align-items-end\">\n <nui-form-field\n [showOptionalText]=\"false\"\n caption=\"Scroll Type\"\n i18n-caption>\n <nui-select-v2\n placeholder=\"Select scroll type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"scrollType\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\">\n <nui-select-v2-option\n *ngFor=\"\n let column of scrollTypeEditorService.loadStrategies\n \"\n [value]=\"column.id\">\n {{ column.title }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <div *ngIf=\"hasPaginator\">\n <div class=\"page-size-set-menu\">\n <nui-form-field\n class=\"\"\n caption=\"Page size options set\"\n i18n-caption\n [showOptionalText]=\"false\">\n <nui-menu\n title=\"Select size options\"\n [appendToBody]=\"true\"\n i18n-title>\n <nui-menu-group header=\"Item Types\" i18n-header>\n <nui-menu-option\n *ngFor=\"let option of pageSizeSetOptions\"\n (actionDone)=\"onPageSizeSetChange(option)\"\n [checked]=\"option.checked\"\n i18n\n >{{ option.value }}\n </nui-menu-option>\n </nui-menu-group>\n </nui-menu>\n <nui-validation-message\n [show]=\"displayPageSizeSetErrorMessage\"\n i18n>\n Page size set is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div\n *ngIf=\"pageSizeOptions.length > 0\"\n class=\"d-flex align-items-end\">\n <nui-form-field\n caption=\"Default page size\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['pageSize']\">\n <nui-select-v2\n placeholder=\"Select page size\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"pageSize\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\">\n <nui-select-v2-option\n *ngFor=\"let option of pageSizeOptions\"\n [value]=\"option\">\n {{ option }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message\n [show]=\"displayPageSizeErrorMessage\"\n i18n>\n Page size is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}.table-filters-configuration__accordion-content .scroll-type-field,.table-filters-configuration__accordion-content .page-size-set-menu{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "component", type: i2.MenuOptionComponent, selector: "nui-menu-option", inputs: ["name", "value", "checked"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19011
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TableScrollTypeEditorComponent, isStandalone: false, selector: "nui-scroll-type-editor-component", inputs: { paginatorConfiguration: "paginatorConfiguration", hasVirtualScroll: "hasVirtualScroll", scrollType: "scrollType" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [subtitle]=\"subtitle\"\n headerIcon=\"application\"\n headerTitle=\"Scroll type\" />\n <div\n class=\"table-filters-configuration__accordion-content\"\n formGroupName=\"paginatorConfiguration\">\n <div class=\"scroll-type-field d-flex align-items-end\">\n <nui-form-field\n [showOptionalText]=\"false\"\n caption=\"Scroll Type\"\n i18n-caption>\n <nui-select-v2\n placeholder=\"Select scroll type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"scrollType\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\">\n <nui-select-v2-option\n *ngFor=\"\n let column of scrollTypeEditorService.loadStrategies\n \"\n [value]=\"column.id\">\n {{ column.title }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <div *ngIf=\"hasPaginator\">\n <div class=\"page-size-set-menu\">\n <nui-form-field\n class=\"\"\n caption=\"Page size options set\"\n i18n-caption\n [showOptionalText]=\"false\">\n <nui-menu\n title=\"Select size options\"\n [appendToBody]=\"true\"\n i18n-title>\n <nui-menu-group header=\"Item Types\" i18n-header>\n <nui-menu-option\n *ngFor=\"let option of pageSizeSetOptions\"\n (actionDone)=\"onPageSizeSetChange(option)\"\n [checked]=\"option.checked\"\n i18n\n >{{ option.value }}\n </nui-menu-option>\n </nui-menu-group>\n </nui-menu>\n <nui-validation-message\n [show]=\"displayPageSizeSetErrorMessage\"\n i18n>\n Page size set is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div\n *ngIf=\"pageSizeOptions.length > 0\"\n class=\"d-flex align-items-end\">\n <nui-form-field\n caption=\"Default page size\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['pageSize']\">\n <nui-select-v2\n placeholder=\"Select page size\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"pageSize\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\">\n <nui-select-v2-option\n *ngFor=\"let option of pageSizeOptions\"\n [value]=\"option\">\n {{ option }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message\n [show]=\"displayPageSizeErrorMessage\"\n i18n>\n Page size is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}.table-filters-configuration__accordion-content .scroll-type-field,.table-filters-configuration__accordion-content .page-size-set-menu{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "ariaDescribedby", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "component", type: i2.MenuOptionComponent, selector: "nui-menu-option", inputs: ["name", "value", "checked"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18693
19012
|
}
|
|
18694
19013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableScrollTypeEditorComponent, decorators: [{
|
|
18695
19014
|
type: Component,
|
|
@@ -18849,7 +19168,7 @@ class TimeseriesTileDescriptionConfigurationComponent {
|
|
|
18849
19168
|
this.formDestroy.emit(this.form);
|
|
18850
19169
|
}
|
|
18851
19170
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeseriesTileDescriptionConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18852
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeseriesTileDescriptionConfigurationComponent, isStandalone: false, selector: "nui-table-column-description-configuration", inputs: { label: "label" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('label') | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'edit' | async\n \"\n [iconColor]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'gray' : '' | async\n \"\n [subtitle]=\"form.get('label')?.value\"\n headerTitle=\"Description\" />\n <div\n class=\"timeseries-tile-description-configuration__accordion-content\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\">\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19171
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TimeseriesTileDescriptionConfigurationComponent, isStandalone: false, selector: "nui-table-column-description-configuration", inputs: { label: "label" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('label') | nuiWidgetEditorAccordionFormState | async\">\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'edit' | async\n \"\n [iconColor]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'gray' : '' | async\n \"\n [subtitle]=\"form.get('label')?.value\"\n headerTitle=\"Description\" />\n <div\n class=\"timeseries-tile-description-configuration__accordion-content\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\">\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "ariaActiveDescendant", "ariaExpanded", "ariaHasPopup", "ariaControls", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "id", "value", "isInErrorState", "ariaLabel", "ariaDescribedby", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18853
19172
|
}
|
|
18854
19173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TimeseriesTileDescriptionConfigurationComponent, decorators: [{
|
|
18855
19174
|
type: Component,
|
|
@@ -18997,6 +19316,7 @@ class ConfiguratorService {
|
|
|
18997
19316
|
}));
|
|
18998
19317
|
this.updateDashboard = (dashboardComponent) => (source) => new Observable(observer => source.subscribe((widget) => {
|
|
18999
19318
|
if (widget) {
|
|
19319
|
+
const restoreFocus = this.restoreFocus;
|
|
19000
19320
|
widget.id = widget.id || uuid();
|
|
19001
19321
|
let widgetToSet;
|
|
19002
19322
|
const dashboardWidget = dashboardComponent.dashboard.widgets[widget.id];
|
|
@@ -19017,14 +19337,49 @@ class ConfiguratorService {
|
|
|
19017
19337
|
// then we wait for the removal to take effect and we create the widget again
|
|
19018
19338
|
setTimeout(() => {
|
|
19019
19339
|
dashboardComponent.updateWidget(widgetToSet);
|
|
19340
|
+
if (!restoreFocus) {
|
|
19341
|
+
return;
|
|
19342
|
+
}
|
|
19343
|
+
// Widget headers can be rendered asynchronously after the widget itself.
|
|
19344
|
+
const renderRef = afterEveryRender(() => {
|
|
19345
|
+
if (document.activeElement !==
|
|
19346
|
+
document.body ||
|
|
19347
|
+
restoreFocus()) {
|
|
19348
|
+
renderRef.destroy();
|
|
19349
|
+
}
|
|
19350
|
+
},
|
|
19351
|
+
// The originating widget and its injector were destroyed above.
|
|
19352
|
+
{ injector: this.appRef.injector });
|
|
19020
19353
|
});
|
|
19021
19354
|
}
|
|
19022
|
-
this.close();
|
|
19355
|
+
this.close(!widget);
|
|
19023
19356
|
observer.next();
|
|
19024
19357
|
}));
|
|
19025
19358
|
this.renderer = rendererFactory.createRenderer(null, null);
|
|
19026
19359
|
}
|
|
19027
19360
|
open(configurator) {
|
|
19361
|
+
const trigger = document.activeElement;
|
|
19362
|
+
if (trigger instanceof HTMLElement) {
|
|
19363
|
+
const dashboard = trigger.closest("nui-dashboard");
|
|
19364
|
+
const widgetId = trigger
|
|
19365
|
+
.closest("nui-widget")
|
|
19366
|
+
?.getAttribute("widget-id");
|
|
19367
|
+
const isEditButton = trigger.matches(".nui-widget-header__action-edit");
|
|
19368
|
+
this.restoreFocus = () => {
|
|
19369
|
+
if (trigger.isConnected) {
|
|
19370
|
+
trigger.focus({ preventScroll: true });
|
|
19371
|
+
return true;
|
|
19372
|
+
}
|
|
19373
|
+
else if (isEditButton && dashboard?.isConnected && widgetId) {
|
|
19374
|
+
const replacement = Array.from(dashboard.querySelectorAll("nui-widget"))
|
|
19375
|
+
.find(widget => widget.getAttribute("widget-id") === widgetId)
|
|
19376
|
+
?.querySelector(".nui-widget-header__action-edit");
|
|
19377
|
+
replacement?.focus({ preventScroll: true });
|
|
19378
|
+
return document.activeElement === replacement;
|
|
19379
|
+
}
|
|
19380
|
+
return true;
|
|
19381
|
+
};
|
|
19382
|
+
}
|
|
19028
19383
|
const source = {
|
|
19029
19384
|
dashboardComponent: configurator.dashboardComponent,
|
|
19030
19385
|
previewPizzagnaComponent: configurator.previewPizzagnaComponent,
|
|
@@ -19054,16 +19409,21 @@ class ConfiguratorService {
|
|
|
19054
19409
|
// @ts-ignore
|
|
19055
19410
|
.pipe(this.handleSubmit(source, configurator.trySubmit)));
|
|
19056
19411
|
}
|
|
19057
|
-
close() {
|
|
19412
|
+
close(restoreFocus = true) {
|
|
19058
19413
|
if (!this.renderer) {
|
|
19059
19414
|
return;
|
|
19060
19415
|
}
|
|
19061
19416
|
this.close$.next();
|
|
19417
|
+
const restore = this.restoreFocus;
|
|
19418
|
+
this.restoreFocus = undefined;
|
|
19062
19419
|
this.renderer.removeChild(document.body, this.componentRef.hostView
|
|
19063
19420
|
.rootNodes[0]);
|
|
19064
19421
|
this.appRef.detachView(this.componentRef.hostView);
|
|
19065
19422
|
this.componentRef.destroy();
|
|
19066
19423
|
this.renderer.removeStyle(document.body, "overflow");
|
|
19424
|
+
if (restoreFocus) {
|
|
19425
|
+
restore?.();
|
|
19426
|
+
}
|
|
19067
19427
|
}
|
|
19068
19428
|
appendComponentToBody() {
|
|
19069
19429
|
const factory = this.componentFactoryResolver.resolveComponentFactory(ConfiguratorComponent);
|
|
@@ -19075,7 +19435,7 @@ class ConfiguratorService {
|
|
|
19075
19435
|
if (this.router) {
|
|
19076
19436
|
this.router.events
|
|
19077
19437
|
.pipe(filter(event => event instanceof NavigationEnd), takeUntil(this.close$))
|
|
19078
|
-
.subscribe(() => this.close());
|
|
19438
|
+
.subscribe(() => this.close(false));
|
|
19079
19439
|
}
|
|
19080
19440
|
return componentRef;
|
|
19081
19441
|
}
|
|
@@ -19455,7 +19815,8 @@ class NuiDashboardConfiguratorModule {
|
|
|
19455
19815
|
WidgetEditorAccordionFormStatePipe,
|
|
19456
19816
|
WidgetConfiguratorSectionHeaderPipe,
|
|
19457
19817
|
FormHeaderIconPipePipe,
|
|
19458
|
-
DropAreaComponent], imports: [
|
|
19818
|
+
DropAreaComponent], imports: [A11yModule,
|
|
19819
|
+
ScrollingModule,
|
|
19459
19820
|
NuiDashboardsCommonModule,
|
|
19460
19821
|
ReactiveFormsModule,
|
|
19461
19822
|
GridsterModule,
|
|
@@ -19561,7 +19922,8 @@ class NuiDashboardConfiguratorModule {
|
|
|
19561
19922
|
TimeseriesChartPresetService,
|
|
19562
19923
|
TimeseriesScalesService,
|
|
19563
19924
|
ScrollTypeEditorService,
|
|
19564
|
-
], imports: [
|
|
19925
|
+
], imports: [A11yModule,
|
|
19926
|
+
ScrollingModule,
|
|
19565
19927
|
NuiDashboardsCommonModule,
|
|
19566
19928
|
ReactiveFormsModule,
|
|
19567
19929
|
GridsterModule,
|
|
@@ -19598,6 +19960,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
19598
19960
|
type: NgModule,
|
|
19599
19961
|
args: [{
|
|
19600
19962
|
imports: [
|
|
19963
|
+
A11yModule,
|
|
19601
19964
|
ScrollingModule,
|
|
19602
19965
|
NuiDashboardsCommonModule,
|
|
19603
19966
|
ReactiveFormsModule,
|
|
@@ -19726,6 +20089,9 @@ class WidgetEditorDirective {
|
|
|
19726
20089
|
this.widgetRemovalService = widgetRemovalService;
|
|
19727
20090
|
this.widgetTypesService = widgetTypesService;
|
|
19728
20091
|
this.destroy$ = new Subject();
|
|
20092
|
+
this.host = inject(ElementRef).nativeElement;
|
|
20093
|
+
this.injector = inject(Injector);
|
|
20094
|
+
this.document = inject(DOCUMENT);
|
|
19729
20095
|
}
|
|
19730
20096
|
ngOnInit() {
|
|
19731
20097
|
this.dashboardComponent.eventBus
|
|
@@ -19764,14 +20130,75 @@ class WidgetEditorDirective {
|
|
|
19764
20130
|
dashboardComponent: this.dashboardComponent,
|
|
19765
20131
|
widget: cloneDeep(this.dashboardComponent.dashboard.widgets[widgetId]),
|
|
19766
20132
|
};
|
|
19767
|
-
|
|
20133
|
+
this.pendingFocus?.destroy();
|
|
20134
|
+
this.pendingFocus = undefined;
|
|
20135
|
+
const removal = this.widgetRemovalService.handleRemove(this.dashboardComponent, widgetId, configuratorSource, tryRemove);
|
|
20136
|
+
const payload = event.payload;
|
|
20137
|
+
if (typeof payload !== "object" ||
|
|
20138
|
+
payload === null ||
|
|
20139
|
+
!("focusOrigin" in payload) ||
|
|
20140
|
+
payload.focusOrigin !== "keyboard") {
|
|
20141
|
+
return removal;
|
|
20142
|
+
}
|
|
20143
|
+
return removal.pipe(tap(() => this.scheduleRemovalFocus(widgetId)));
|
|
19768
20144
|
}), takeUntil(this.destroy$))
|
|
19769
20145
|
.subscribe();
|
|
19770
20146
|
}
|
|
19771
20147
|
ngOnDestroy() {
|
|
20148
|
+
this.pendingFocus?.destroy();
|
|
19772
20149
|
this.destroy$.next();
|
|
19773
20150
|
this.destroy$.complete();
|
|
19774
20151
|
}
|
|
20152
|
+
getWidgets() {
|
|
20153
|
+
return Array.from(this.host.querySelectorAll("nui-widget[widget-id]")).filter(widget => widget.closest("nui-dashboard") === this.host);
|
|
20154
|
+
}
|
|
20155
|
+
scheduleRemovalFocus(widgetId) {
|
|
20156
|
+
const widgets = this.getWidgets();
|
|
20157
|
+
const index = widgets.findIndex(widget => widget.getAttribute("widget-id") === widgetId);
|
|
20158
|
+
const widget = widgets[index];
|
|
20159
|
+
if (!widget) {
|
|
20160
|
+
return;
|
|
20161
|
+
}
|
|
20162
|
+
const active = this.document.activeElement;
|
|
20163
|
+
const menuId = widget
|
|
20164
|
+
.querySelector(".nui-widget-header__action-remove button")
|
|
20165
|
+
?.getAttribute("aria-controls");
|
|
20166
|
+
// A keyboard-opened menu may be rendered under body instead of the widget.
|
|
20167
|
+
if (!widget.contains(active) &&
|
|
20168
|
+
!(menuId && this.document.getElementById(menuId)?.contains(active))) {
|
|
20169
|
+
return;
|
|
20170
|
+
}
|
|
20171
|
+
this.pendingFocus?.destroy();
|
|
20172
|
+
this.pendingFocus = afterNextRender(() => {
|
|
20173
|
+
this.pendingFocus = undefined;
|
|
20174
|
+
if (!this.host.isConnected ||
|
|
20175
|
+
widget.isConnected ||
|
|
20176
|
+
this.dashboardComponent.dashboard.widgets[widgetId] ||
|
|
20177
|
+
this.document.activeElement !== this.document.body) {
|
|
20178
|
+
return;
|
|
20179
|
+
}
|
|
20180
|
+
const adjacent = [widgets[index + 1], widgets[index - 1]];
|
|
20181
|
+
for (const neighbor of adjacent) {
|
|
20182
|
+
if (this.focusControl(neighbor, ".nui-widget-header__action-remove button:not([disabled])")) {
|
|
20183
|
+
return;
|
|
20184
|
+
}
|
|
20185
|
+
}
|
|
20186
|
+
for (const remaining of this.getWidgets()) {
|
|
20187
|
+
if (this.focusControl(remaining, ".nui-widget-header__action-edit:not([disabled])")) {
|
|
20188
|
+
return;
|
|
20189
|
+
}
|
|
20190
|
+
}
|
|
20191
|
+
if (!this.host.hasAttribute("tabindex")) {
|
|
20192
|
+
this.host.tabIndex = -1;
|
|
20193
|
+
}
|
|
20194
|
+
this.host.focus();
|
|
20195
|
+
}, { injector: this.injector });
|
|
20196
|
+
}
|
|
20197
|
+
focusControl(widget, selector) {
|
|
20198
|
+
const control = widget?.querySelector(selector);
|
|
20199
|
+
control?.focus();
|
|
20200
|
+
return !!control && this.document.activeElement === control;
|
|
20201
|
+
}
|
|
19775
20202
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: WidgetEditorDirective, deps: [{ token: DashboardComponent, host: true, self: true }, { token: WidgetEditorService }, { token: WidgetRemovalService }, { token: WidgetTypesService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19776
20203
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.21", type: WidgetEditorDirective, isStandalone: false, selector: "[nuiWidgetEditor]", inputs: { dashboardPersistenceHandler: ["nuiWidgetEditor", "dashboardPersistenceHandler"] }, ngImport: i0 }); }
|
|
19777
20204
|
}
|