@nova-ui/dashboards 12.0.41 → 12.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nova-ui-dashboards.umd.js +14 -17
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/timeseries-helpers.js +2 -2
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +6 -9
- package/fesm2015/nova-ui-dashboards.js +10 -13
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +5 -8
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
|
@@ -6420,7 +6420,7 @@ class TimeseriesScalesService {
|
|
|
6420
6420
|
* @param scaleConfig
|
|
6421
6421
|
*/
|
|
6422
6422
|
updateConfiguration(scale, scaleConfig, widgetConfig) {
|
|
6423
|
-
var _a, _b, _c, _d, _e, _f
|
|
6423
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6424
6424
|
switch (scaleConfig.type) {
|
|
6425
6425
|
case TimeseriesScaleType.Time: {
|
|
6426
6426
|
const interval = (_a = scaleConfig.properties) === null || _a === void 0 ? void 0 : _a.timeInterval;
|
|
@@ -6448,18 +6448,15 @@ class TimeseriesScalesService {
|
|
|
6448
6448
|
if ((_c = scaleConfig.properties) === null || _c === void 0 ? void 0 : _c.axisUnits) {
|
|
6449
6449
|
scale.scaleUnits = scaleConfig.properties.axisUnits;
|
|
6450
6450
|
}
|
|
6451
|
-
if ((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) === TimeseriesChartPreset.StatusBar
|
|
6452
|
-
((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
|
|
6453
|
-
TimeseriesChartPreset.StackedArea &&
|
|
6454
|
-
((_d = scaleConfig.properties) === null || _d === void 0 ? void 0 : _d.axisUnits) === "percent")) {
|
|
6451
|
+
if ((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) === TimeseriesChartPreset.StatusBar) {
|
|
6455
6452
|
return;
|
|
6456
6453
|
}
|
|
6457
|
-
if (((
|
|
6454
|
+
if (((_d = scaleConfig.properties) === null || _d === void 0 ? void 0 : _d.axisUnits) === "percent" &&
|
|
6458
6455
|
scale.setFixDomainValues) {
|
|
6459
6456
|
scale.setFixDomainValues([0, 25, 50, 75, 100]);
|
|
6460
6457
|
}
|
|
6461
|
-
if (((
|
|
6462
|
-
((
|
|
6458
|
+
if (((_e = scaleConfig.properties) === null || _e === void 0 ? void 0 : _e.axisUnits) !== "percent" &&
|
|
6459
|
+
((_f = scaleConfig.properties) === null || _f === void 0 ? void 0 : _f.domain) &&
|
|
6463
6460
|
scale.setFixDomainValues) {
|
|
6464
6461
|
let domainAdjusted;
|
|
6465
6462
|
switch (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) {
|
|
@@ -6555,7 +6552,7 @@ function hasTimeseriesWidgetSummaryLegend(type) {
|
|
|
6555
6552
|
type === TimeseriesChartTypes.multi);
|
|
6556
6553
|
}
|
|
6557
6554
|
const SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-chart-sum)";
|
|
6558
|
-
const SUMMARY_LEGEND_COLOR = "var(--nui-color-text-
|
|
6555
|
+
const SUMMARY_LEGEND_COLOR = "var(--nui-color-text-inverse)";
|
|
6559
6556
|
|
|
6560
6557
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6561
6558
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
@@ -7754,7 +7751,7 @@ class LineChartComponent extends XYChartComponent {
|
|
|
7754
7751
|
}
|
|
7755
7752
|
LineChartComponent.lateLoadKey = "LineChartComponent";
|
|
7756
7753
|
/** @nocollapse */ LineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7757
|
-
/** @nocollapse */ LineChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7754
|
+
/** @nocollapse */ LineChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7758
7755
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
7759
7756
|
type: Component,
|
|
7760
7757
|
args: [{
|
|
@@ -7798,7 +7795,7 @@ class StackedAreaChartComponent extends XYChartComponent {
|
|
|
7798
7795
|
}
|
|
7799
7796
|
StackedAreaChartComponent.lateLoadKey = "StackedAreaChartComponent";
|
|
7800
7797
|
/** @nocollapse */ StackedAreaChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7801
|
-
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7798
|
+
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7802
7799
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedAreaChartComponent, decorators: [{
|
|
7803
7800
|
type: Component,
|
|
7804
7801
|
args: [{
|
|
@@ -7857,7 +7854,7 @@ class StackedBarChartComponent extends XYChartComponent {
|
|
|
7857
7854
|
}
|
|
7858
7855
|
StackedBarChartComponent.lateLoadKey = "StackedBarChartComponent";
|
|
7859
7856
|
/** @nocollapse */ StackedBarChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7860
|
-
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7857
|
+
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7861
7858
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedBarChartComponent, decorators: [{
|
|
7862
7859
|
type: Component,
|
|
7863
7860
|
args: [{
|
|
@@ -7894,7 +7891,7 @@ class StackedPercentageAreaChartComponent extends XYChartComponent {
|
|
|
7894
7891
|
}
|
|
7895
7892
|
StackedPercentageAreaChartComponent.lateLoadKey = "StackedPercentageAreaChartComponent";
|
|
7896
7893
|
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7897
|
-
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}:host ::ng-deep nui-legend[ng-reflect-active=true] .summary-serie .nui-rich-legend-tile__tilebox{color:#111!important}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7894
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, 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>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:#f2f2f2;cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3.MapKeyValuePipe } });
|
|
7898
7895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
7899
7896
|
type: Component,
|
|
7900
7897
|
args: [{
|