@nova-ui/dashboards 16.0.2 → 16.0.3
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/esm2022/lib/components/table-widget/table-widget.component.mjs +85 -48
- package/esm2022/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +2 -2
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +2 -2
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +2 -2
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +2 -2
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +2 -2
- package/esm2022/lib/services/types.mjs +3 -1
- package/fesm2022/nova-ui-dashboards.mjs +177 -138
- package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
- package/lib/components/table-widget/table-widget.component.d.ts +21 -18
- package/lib/services/types.d.ts +2 -0
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.d.ts +19 -16
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js +83 -45
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.d.ts +2 -0
- package/sdk/atoms/src/lib/services/types.js +4 -2
- package/sdk/atoms/src/lib/services/types.js.map +1 -1
|
@@ -220,11 +220,11 @@ export class StatusBarChartComponent extends TimeseriesChartComponent {
|
|
|
220
220
|
return index === 0 ? series.legendDescriptionSecondary : "";
|
|
221
221
|
}
|
|
222
222
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusBarChartComponent, deps: [{ token: i1.IconService }, { token: DATA_SOURCE, optional: true }, { token: i2.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
223
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusBarChartComponent, 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>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></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 >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\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 >\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 >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\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\"\n ></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
|
|
223
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusBarChartComponent, 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>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></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 >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\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 >\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 >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\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\"\n ></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: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i1.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
224
224
|
}
|
|
225
225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusBarChartComponent, decorators: [{
|
|
226
226
|
type: Component,
|
|
227
|
-
args: [{ selector: "nui-status-bar-chart", template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></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 >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\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 >\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 >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\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\"\n ></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
|
|
227
|
+
args: [{ selector: "nui-status-bar-chart", template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></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 >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\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 >\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 >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\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\"\n ></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"] }]
|
|
228
228
|
}], ctorParameters: function () { return [{ type: i1.IconService }, { type: undefined, decorators: [{
|
|
229
229
|
type: Optional
|
|
230
230
|
}, {
|
|
@@ -45,11 +45,11 @@ export class LineChartComponent extends XYChartComponent {
|
|
|
45
45
|
return new ChartAssist(chart, null, palette);
|
|
46
46
|
}
|
|
47
47
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: i1.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
48
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: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: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
49
49
|
}
|
|
50
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
51
51
|
type: Component,
|
|
52
|
-
args: [{ selector: "nui-line-chart", 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"] }]
|
|
52
|
+
args: [{ selector: "nui-line-chart", 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: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"] }]
|
|
53
53
|
}], ctorParameters: function () { return [{ type: i3.EventBus, decorators: [{
|
|
54
54
|
type: Inject,
|
|
55
55
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -51,11 +51,11 @@ export class StackedAreaChartComponent extends XYChartComponent {
|
|
|
51
51
|
return new ChartAssist(chart, stackedArea, palette);
|
|
52
52
|
}
|
|
53
53
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: i1.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
54
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: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: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
55
55
|
}
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackedAreaChartComponent, decorators: [{
|
|
57
57
|
type: Component,
|
|
58
|
-
args: [{ selector: "nui-stacked-area-chart", 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"] }]
|
|
58
|
+
args: [{ selector: "nui-stacked-area-chart", 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: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"] }]
|
|
59
59
|
}], ctorParameters: function () { return [{ type: i3.EventBus, decorators: [{
|
|
60
60
|
type: Inject,
|
|
61
61
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -67,11 +67,11 @@ export class StackedBarChartComponent extends XYChartComponent {
|
|
|
67
67
|
return new ChartAssist(chart, stack, palette);
|
|
68
68
|
}
|
|
69
69
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: i1.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
70
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
70
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: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: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i3.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i3.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i3.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i3.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i3.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
71
71
|
}
|
|
72
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackedBarChartComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
74
|
-
args: [{ selector: "nui-stacked-bar-chart", 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"] }]
|
|
74
|
+
args: [{ selector: "nui-stacked-bar-chart", 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: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"] }]
|
|
75
75
|
}], ctorParameters: function () { return [{ type: i3.EventBus, decorators: [{
|
|
76
76
|
type: Inject,
|
|
77
77
|
args: [PIZZAGNA_EVENT_BUS]
|