@nova-ui/dashboards 12.0.34 → 12.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nova-ui-dashboards.umd.js +143 -80
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +46 -14
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +7 -7
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +9 -8
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +17 -12
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +7 -7
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +25 -13
- package/esm2015/lib/components/timeseries-widget/timeseries-helpers.js +9 -1
- package/esm2015/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js +7 -1
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +8 -6
- package/esm2015/lib/components/timeseries-widget/timeseries-widget.component.js +23 -7
- package/esm2015/lib/components/timeseries-widget/types.js +3 -3
- package/fesm2015/nova-ui-dashboards.js +138 -77
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +10 -5
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +3 -3
- package/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +9 -6
- package/lib/components/timeseries-widget/timeseries-helpers.d.ts +4 -1
- package/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +1 -0
- package/lib/components/timeseries-widget/timeseries-widget.component.d.ts +4 -3
- package/lib/components/timeseries-widget/types.d.ts +5 -2
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +9 -4
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +41 -10
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +3 -4
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +5 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +13 -9
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +3 -4
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +8 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +19 -7
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +4 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +10 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js +7 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +7 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.d.ts +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js +21 -5
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/types.d.ts +5 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js.map +1 -1
- package/sdk/locale/messages.en.xlf +18 -18
|
@@ -7096,11 +7096,11 @@
|
|
|
7096
7096
|
/** Enumeration of timeseries chart types recieved from the backend */
|
|
7097
7097
|
exports.TimeseriesChartTypes = void 0;
|
|
7098
7098
|
(function (TimeseriesChartTypes) {
|
|
7099
|
-
TimeseriesChartTypes[TimeseriesChartTypes["
|
|
7099
|
+
TimeseriesChartTypes[TimeseriesChartTypes["line"] = 1] = "line";
|
|
7100
7100
|
TimeseriesChartTypes[TimeseriesChartTypes["counter"] = 2] = "counter";
|
|
7101
7101
|
TimeseriesChartTypes[TimeseriesChartTypes["event"] = 3] = "event";
|
|
7102
7102
|
TimeseriesChartTypes[TimeseriesChartTypes["alert"] = 4] = "alert";
|
|
7103
|
-
TimeseriesChartTypes[TimeseriesChartTypes["
|
|
7103
|
+
TimeseriesChartTypes[TimeseriesChartTypes["status"] = 5] = "status";
|
|
7104
7104
|
TimeseriesChartTypes[TimeseriesChartTypes["multi"] = 6] = "multi";
|
|
7105
7105
|
TimeseriesChartTypes[TimeseriesChartTypes["dpaWaitTime"] = 7] = "dpaWaitTime";
|
|
7106
7106
|
})(exports.TimeseriesChartTypes || (exports.TimeseriesChartTypes = {}));
|
|
@@ -7124,24 +7124,6 @@
|
|
|
7124
7124
|
})(exports.TimeseriesWidgetProjectType || (exports.TimeseriesWidgetProjectType = {}));
|
|
7125
7125
|
|
|
7126
7126
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7127
|
-
//
|
|
7128
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7129
|
-
// of this software and associated documentation files (the "Software"), to
|
|
7130
|
-
// deal in the Software without restriction, including without limitation the
|
|
7131
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7132
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
7133
|
-
// furnished to do so, subject to the following conditions:
|
|
7134
|
-
//
|
|
7135
|
-
// The above copyright notice and this permission notice shall be included in
|
|
7136
|
-
// all copies or substantial portions of the Software.
|
|
7137
|
-
//
|
|
7138
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7139
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7140
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7141
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7142
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7143
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
7144
|
-
// THE SOFTWARE.
|
|
7145
7127
|
function metricsSeriesMeasurementsMinMax(series, axisUnits) {
|
|
7146
7128
|
if (axisUnits === "percent") {
|
|
7147
7129
|
return { min: 0, max: 100 };
|
|
@@ -7158,6 +7140,13 @@
|
|
|
7158
7140
|
max: Math.max(acc.max, measurement.y),
|
|
7159
7141
|
}); }, { min: measurements[0].y, max: measurements[0].y });
|
|
7160
7142
|
}
|
|
7143
|
+
function hasTimeseriesWidgetSummaryLegend(type) {
|
|
7144
|
+
return (type === exports.TimeseriesChartTypes.alert ||
|
|
7145
|
+
type === exports.TimeseriesChartTypes.event ||
|
|
7146
|
+
type === exports.TimeseriesChartTypes.multi);
|
|
7147
|
+
}
|
|
7148
|
+
var SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-brand-six)";
|
|
7149
|
+
var SUMMARY_LEGEND_COLOR = "var(--nui-color-text-light)";
|
|
7161
7150
|
|
|
7162
7151
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7163
7152
|
//
|
|
@@ -7262,7 +7251,7 @@
|
|
|
7262
7251
|
* @param scaleConfig
|
|
7263
7252
|
*/
|
|
7264
7253
|
TimeseriesScalesService.prototype.updateConfiguration = function (scale, scaleConfig, widgetConfig) {
|
|
7265
|
-
var _a, _b, _c, _d, _e, _f;
|
|
7254
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7266
7255
|
switch (scaleConfig.type) {
|
|
7267
7256
|
case exports.TimeseriesScaleType.Time: {
|
|
7268
7257
|
var interval = (_a = scaleConfig.properties) === null || _a === void 0 ? void 0 : _a.timeInterval;
|
|
@@ -7291,15 +7280,17 @@
|
|
|
7291
7280
|
scale.scaleUnits = scaleConfig.properties.axisUnits;
|
|
7292
7281
|
}
|
|
7293
7282
|
if ((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) === exports.TimeseriesChartPreset.StatusBar ||
|
|
7294
|
-
(widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
|
|
7283
|
+
((widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
|
|
7284
|
+
exports.TimeseriesChartPreset.StackedArea &&
|
|
7285
|
+
((_d = scaleConfig.properties) === null || _d === void 0 ? void 0 : _d.axisUnits) === "percent")) {
|
|
7295
7286
|
return;
|
|
7296
7287
|
}
|
|
7297
|
-
if (((
|
|
7288
|
+
if (((_e = scaleConfig.properties) === null || _e === void 0 ? void 0 : _e.axisUnits) === "percent" &&
|
|
7298
7289
|
scale.setFixDomainValues) {
|
|
7299
7290
|
scale.setFixDomainValues([0, 25, 50, 75, 100]);
|
|
7300
7291
|
}
|
|
7301
|
-
if (((
|
|
7302
|
-
((
|
|
7292
|
+
if (((_f = scaleConfig.properties) === null || _f === void 0 ? void 0 : _f.axisUnits) !== "percent" &&
|
|
7293
|
+
((_g = scaleConfig.properties) === null || _g === void 0 ? void 0 : _g.domain) &&
|
|
7303
7294
|
scale.setFixDomainValues) {
|
|
7304
7295
|
var domainAdjusted = (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
|
|
7305
7296
|
exports.TimeseriesChartPreset.StackedBar
|
|
@@ -7311,8 +7302,8 @@
|
|
|
7311
7302
|
}
|
|
7312
7303
|
}
|
|
7313
7304
|
};
|
|
7314
|
-
TimeseriesScalesService.prototype.getStackedBarScaleDomain = function (
|
|
7315
|
-
var min =
|
|
7305
|
+
TimeseriesScalesService.prototype.getStackedBarScaleDomain = function (_h) {
|
|
7306
|
+
var min = _h.min, max = _h.max;
|
|
7316
7307
|
if (max === 0 || max % 4 > 0) {
|
|
7317
7308
|
max = max + 4 - (max % 4);
|
|
7318
7309
|
}
|
|
@@ -7325,8 +7316,8 @@
|
|
|
7325
7316
|
max,
|
|
7326
7317
|
];
|
|
7327
7318
|
};
|
|
7328
|
-
TimeseriesScalesService.prototype.getLineScaleDomain = function (
|
|
7329
|
-
var min =
|
|
7319
|
+
TimeseriesScalesService.prototype.getLineScaleDomain = function (_h) {
|
|
7320
|
+
var min = _h.min, max = _h.max;
|
|
7330
7321
|
if (min > max) {
|
|
7331
7322
|
var tmp = min;
|
|
7332
7323
|
min = max;
|
|
@@ -7543,15 +7534,17 @@
|
|
|
7543
7534
|
|
|
7544
7535
|
var StatusBarChartComponent = /** @class */ (function (_super) {
|
|
7545
7536
|
__extends(StatusBarChartComponent, _super);
|
|
7546
|
-
function StatusBarChartComponent(iconService, dataSource, timeseriesScalesService, changeDetector, eventBus
|
|
7537
|
+
function StatusBarChartComponent(iconService, dataSource, timeseriesScalesService, changeDetector, eventBus) {
|
|
7547
7538
|
var _this = _super.call(this, eventBus, timeseriesScalesService, dataSource) || this;
|
|
7548
7539
|
_this.iconService = iconService;
|
|
7549
7540
|
_this.timeseriesScalesService = timeseriesScalesService;
|
|
7550
7541
|
_this.changeDetector = changeDetector;
|
|
7551
7542
|
_this.eventBus = eventBus;
|
|
7552
|
-
_this.zoomPluginsSyncService = zoomPluginsSyncService;
|
|
7553
7543
|
_this.collectionId = i3.uuid("timeseries-status-charts");
|
|
7554
7544
|
_this.chartUpdate$ = new rxjs.Subject();
|
|
7545
|
+
_this.timeseriesChartTypes = exports.TimeseriesChartTypes;
|
|
7546
|
+
_this.summaryLegendBcgColor = SUMMARY_LEGEND_BCG_COLOR;
|
|
7547
|
+
_this.summaryLegendColor = SUMMARY_LEGEND_COLOR;
|
|
7555
7548
|
return _this;
|
|
7556
7549
|
}
|
|
7557
7550
|
StatusBarChartComponent.prototype.ngOnInit = function () { };
|
|
@@ -7567,6 +7560,7 @@
|
|
|
7567
7560
|
};
|
|
7568
7561
|
StatusBarChartComponent.prototype.buildChart = function () {
|
|
7569
7562
|
var _this = this;
|
|
7563
|
+
var _a;
|
|
7570
7564
|
this.buildChart$.next();
|
|
7571
7565
|
this.chartAssist = new i2.SparkChartAssist();
|
|
7572
7566
|
this.accessors = i2.statusAccessors(this.chartAssist.palette.standardColors);
|
|
@@ -7580,9 +7574,13 @@
|
|
|
7580
7574
|
this.accessors.data.marker = function (data) { return data.icon
|
|
7581
7575
|
? _this.iconService.getIconResized(_this.iconService.getIconData(data.icon).code, iconSize)
|
|
7582
7576
|
: undefined; };
|
|
7577
|
+
this.accessors.data.y = function (d) { return d.value; };
|
|
7583
7578
|
// disable pointer events on bars to ensure the zoom drag target is the mouse interactive area rather than the bars
|
|
7584
7579
|
this.renderer = new i2.BarRenderer({
|
|
7585
|
-
highlightStrategy:
|
|
7580
|
+
highlightStrategy: ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
7581
|
+
exports.TimeseriesWidgetProjectType.PerfstackApp
|
|
7582
|
+
? new i2.BarHighlightStrategyOutline("x")
|
|
7583
|
+
: new i2.BarHighlightStrategy("x"),
|
|
7586
7584
|
pointerEvents: false,
|
|
7587
7585
|
});
|
|
7588
7586
|
this.setGridConfigFromConfiguration(this.chartAssist.gridConfig);
|
|
@@ -7596,8 +7594,8 @@
|
|
|
7596
7594
|
};
|
|
7597
7595
|
StatusBarChartComponent.prototype.updateChartData = function () {
|
|
7598
7596
|
var _this = this;
|
|
7599
|
-
var _a, _b, _c, _d, _e, _f;
|
|
7600
|
-
var
|
|
7597
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7598
|
+
var _h = this.chartAssist, gridConfig = _h.gridConfig, lastGridConfig = _h.lastGridConfig;
|
|
7601
7599
|
// hides botom axis if it's not last chart in the group
|
|
7602
7600
|
gridConfig.axis.bottom.visible = !((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.hasAdjacentChart);
|
|
7603
7601
|
lastGridConfig.axis.bottom.visible =
|
|
@@ -7610,16 +7608,26 @@
|
|
|
7610
7608
|
: "nui-chart-border nui-chart-border--thick";
|
|
7611
7609
|
this.chartUpdate$.next();
|
|
7612
7610
|
// Assemble the series set
|
|
7613
|
-
var
|
|
7611
|
+
var series = this.widgetData.series;
|
|
7612
|
+
var summarySerie = this.widgetData.summarySerie
|
|
7613
|
+
? [this.widgetData.summarySerie]
|
|
7614
|
+
: [];
|
|
7615
|
+
if (series.length === 1 &&
|
|
7616
|
+
series[0].id === ((_e = this.widgetData.summarySerie) === null || _e === void 0 ? void 0 : _e.id)) {
|
|
7617
|
+
// if the series contains only one item and its the same as the summary serie,
|
|
7618
|
+
// there is no submetric and only the summary serie should be displayed
|
|
7619
|
+
series = [];
|
|
7620
|
+
}
|
|
7621
|
+
var seriesSet = __spreadArray(__spreadArray([], __read(summarySerie)), __read(series)).map(function (d) { return (Object.assign(Object.assign({}, d), { data: _this.transformData(d.data, _this.scales.x instanceof i2.TimeIntervalScale), accessors: _this.accessors, renderer: _this.renderer, scales: _this.scales })); });
|
|
7614
7622
|
// Update the chart
|
|
7615
7623
|
this.chartAssist.update(seriesSet);
|
|
7616
7624
|
if (this.configuration.enableZoom) {
|
|
7617
|
-
this.chartAssist.sparks.forEach(function (spark) {
|
|
7625
|
+
this.chartAssist.sparks.forEach(function (spark, i) {
|
|
7618
7626
|
var _a, _b, _c, _d, _e;
|
|
7619
7627
|
if (((_a = _this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
7620
7628
|
exports.TimeseriesWidgetProjectType.PerfstackApp) {
|
|
7621
7629
|
if (!((_b = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _b === void 0 ? void 0 : _b.hasPlugin(i2.TimeseriesZoomPlugin))) {
|
|
7622
|
-
(_c = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _c === void 0 ? void 0 : _c.addPlugin(
|
|
7630
|
+
(_c = spark === null || spark === void 0 ? void 0 : spark.chart) === null || _c === void 0 ? void 0 : _c.addPlugin(_this.zoomPlugins[i]);
|
|
7623
7631
|
}
|
|
7624
7632
|
}
|
|
7625
7633
|
else {
|
|
@@ -7629,7 +7637,7 @@
|
|
|
7629
7637
|
}
|
|
7630
7638
|
});
|
|
7631
7639
|
// only need to subscribe to one chart's SET_DOMAIN_EVENT
|
|
7632
|
-
(
|
|
7640
|
+
(_f = this.chartAssist.sparks[0].chart) === null || _f === void 0 ? void 0 : _f.getEventBus().getStream(i2.SET_DOMAIN_EVENT).pipe(operators.takeUntil(rxjs.merge(this.chartUpdate$, (_g = this.chartAssist.sparks[0].chart) === null || _g === void 0 ? void 0 : _g.eventBus.getStream(i2.DESTROY_EVENT), this.buildChart$))).subscribe(function (event) {
|
|
7633
7641
|
var payload = event.data;
|
|
7634
7642
|
var newDomain = payload[Object.keys(payload)[0]];
|
|
7635
7643
|
_this.eventBus.getStream(SET_TIMEFRAME).next({
|
|
@@ -7661,6 +7669,7 @@
|
|
|
7661
7669
|
color: d.color,
|
|
7662
7670
|
thick: d.thick,
|
|
7663
7671
|
icon: d.icon,
|
|
7672
|
+
value: d.y,
|
|
7664
7673
|
});
|
|
7665
7674
|
}
|
|
7666
7675
|
});
|
|
@@ -7690,11 +7699,21 @@
|
|
|
7690
7699
|
this.configuration.projectType ===
|
|
7691
7700
|
exports.TimeseriesWidgetProjectType.PerfstackApp);
|
|
7692
7701
|
};
|
|
7702
|
+
StatusBarChartComponent.prototype.isStatusChart = function () {
|
|
7703
|
+
var _a;
|
|
7704
|
+
return ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.type) !== exports.TimeseriesChartTypes.alert;
|
|
7705
|
+
};
|
|
7706
|
+
StatusBarChartComponent.prototype.getDescriptionSecondary = function (series, index) {
|
|
7707
|
+
if (this.isStatusChart()) {
|
|
7708
|
+
return series.legendDescriptionSecondary;
|
|
7709
|
+
}
|
|
7710
|
+
return index === 0 ? series.legendDescriptionSecondary : "";
|
|
7711
|
+
};
|
|
7693
7712
|
return StatusBarChartComponent;
|
|
7694
7713
|
}(TimeseriesChartComponent));
|
|
7695
7714
|
StatusBarChartComponent.lateLoadKey = "StatusChartComponent";
|
|
7696
|
-
/** @nocollapse */ StatusBarChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StatusBarChartComponent, deps: [{ token: i3__namespace.IconService }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }
|
|
7697
|
-
/** @nocollapse */ StatusBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StatusBarChartComponent, selector: "nui-status-bar-chart", usesInheritance: true, ngImport: i0__namespace, 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=\"let spark of chartAssist.sparks
|
|
7715
|
+
/** @nocollapse */ StatusBarChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StatusBarChartComponent, deps: [{ token: i3__namespace.IconService }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7716
|
+
/** @nocollapse */ StatusBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StatusBarChartComponent, selector: "nui-status-bar-chart", usesInheritance: true, ngImport: i0__namespace, 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:#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"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.ButtonComponent, selector: "[nui-button]", inputs: ["ariaLabel", "isRepeat", "iconColor", "size", "displayStyle", "icon", "iconRight", "isBusy", "isEmpty"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }] });
|
|
7698
7717
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StatusBarChartComponent, decorators: [{
|
|
7699
7718
|
type: i0.Component,
|
|
7700
7719
|
args: [{
|
|
@@ -7711,7 +7730,7 @@
|
|
|
7711
7730
|
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.EventBus, decorators: [{
|
|
7712
7731
|
type: i0.Inject,
|
|
7713
7732
|
args: [PIZZAGNA_EVENT_BUS]
|
|
7714
|
-
}] }
|
|
7733
|
+
}] }];
|
|
7715
7734
|
} });
|
|
7716
7735
|
|
|
7717
7736
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -8247,14 +8266,16 @@
|
|
|
8247
8266
|
|
|
8248
8267
|
var XYChartComponent = /** @class */ (function (_super) {
|
|
8249
8268
|
__extends(XYChartComponent, _super);
|
|
8250
|
-
function XYChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8269
|
+
function XYChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
8251
8270
|
var _this = _super.call(this, eventBus, timeseriesScalesService, dataSource) || this;
|
|
8252
8271
|
_this.eventBus = eventBus;
|
|
8253
8272
|
_this.timeseriesScalesService = timeseriesScalesService;
|
|
8254
8273
|
_this.changeDetector = changeDetector;
|
|
8255
|
-
_this.zoomPluginsSyncService = zoomPluginsSyncService;
|
|
8256
8274
|
_this.valueAccessorKey = "y";
|
|
8257
8275
|
_this.collectionId = "";
|
|
8276
|
+
_this.timeseriesChartTypes = exports.TimeseriesChartTypes;
|
|
8277
|
+
_this.summaryLegendBcgColor = SUMMARY_LEGEND_BCG_COLOR;
|
|
8278
|
+
_this.summaryLegendColor = SUMMARY_LEGEND_COLOR;
|
|
8258
8279
|
_this.transformers = new Map([
|
|
8259
8280
|
[
|
|
8260
8281
|
exports.TimeseriesTransformer.None,
|
|
@@ -8329,7 +8350,7 @@
|
|
|
8329
8350
|
if (scales.yRight) {
|
|
8330
8351
|
yScales.push(scales.yRight);
|
|
8331
8352
|
}
|
|
8332
|
-
|
|
8353
|
+
var dataMapped = data.map(function (series) {
|
|
8333
8354
|
var _a;
|
|
8334
8355
|
// matches scale units to the metric unit for either left y-axis scale or right y-axis scale
|
|
8335
8356
|
var yScale = yScales.find(function (yScale) { return yScale.scaleUnits === series.metricUnits; });
|
|
@@ -8342,6 +8363,16 @@
|
|
|
8342
8363
|
y: yScale,
|
|
8343
8364
|
}, renderer: _this.renderer, accessors: _this.accessors });
|
|
8344
8365
|
});
|
|
8366
|
+
if (this.widgetData.summarySerie) {
|
|
8367
|
+
this.summarySerie = Object.assign(Object.assign({}, this.widgetData.summarySerie), { accessors: new i2.XYAccessors(), renderer: new i2.XYRenderer({
|
|
8368
|
+
ignoreForDomainCalculation: true,
|
|
8369
|
+
}), scales: {
|
|
8370
|
+
x: scales.x,
|
|
8371
|
+
y: scales.y,
|
|
8372
|
+
}, showInLegend: false, preprocess: false });
|
|
8373
|
+
dataMapped.push(this.summarySerie);
|
|
8374
|
+
}
|
|
8375
|
+
return dataMapped;
|
|
8345
8376
|
};
|
|
8346
8377
|
/** Checks if legend should be shown. */
|
|
8347
8378
|
XYChartComponent.prototype.hasLegend = function () {
|
|
@@ -8422,8 +8453,8 @@
|
|
|
8422
8453
|
gridConfig.dimension.margin.right =
|
|
8423
8454
|
this.configuration.gridConfig.sideMargin;
|
|
8424
8455
|
}
|
|
8425
|
-
if (this.configuration.enableZoom) {
|
|
8426
|
-
chart.addPlugin(this.
|
|
8456
|
+
if (this.configuration.enableZoom && this.zoomPlugins.length) {
|
|
8457
|
+
chart.addPlugin(this.zoomPlugins[0]);
|
|
8427
8458
|
}
|
|
8428
8459
|
chart
|
|
8429
8460
|
.getEventBus()
|
|
@@ -8507,7 +8538,7 @@
|
|
|
8507
8538
|
};
|
|
8508
8539
|
return XYChartComponent;
|
|
8509
8540
|
}(TimeseriesChartComponent));
|
|
8510
|
-
/** @nocollapse */ XYChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: XYChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }
|
|
8541
|
+
/** @nocollapse */ XYChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: XYChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
8511
8542
|
/** @nocollapse */ XYChartComponent.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: XYChartComponent });
|
|
8512
8543
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: XYChartComponent, decorators: [{
|
|
8513
8544
|
type: i0.Injectable
|
|
@@ -8520,14 +8551,14 @@
|
|
|
8520
8551
|
}, {
|
|
8521
8552
|
type: i0.Inject,
|
|
8522
8553
|
args: [DATA_SOURCE]
|
|
8523
|
-
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }
|
|
8554
|
+
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8524
8555
|
} });
|
|
8525
8556
|
var templateObject_1$z, templateObject_2$o, templateObject_3$i, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$5, templateObject_8$3, templateObject_9$2, templateObject_10$2;
|
|
8526
8557
|
|
|
8527
8558
|
var LineChartComponent = /** @class */ (function (_super) {
|
|
8528
8559
|
__extends(LineChartComponent, _super);
|
|
8529
|
-
function LineChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8530
|
-
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8560
|
+
function LineChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
8561
|
+
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector) || this;
|
|
8531
8562
|
_this.renderer = new i2.LineRenderer();
|
|
8532
8563
|
return _this;
|
|
8533
8564
|
}
|
|
@@ -8544,8 +8575,8 @@
|
|
|
8544
8575
|
return LineChartComponent;
|
|
8545
8576
|
}(XYChartComponent));
|
|
8546
8577
|
LineChartComponent.lateLoadKey = "LineChartComponent";
|
|
8547
|
-
/** @nocollapse */ LineChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }
|
|
8548
|
-
/** @nocollapse */ LineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, selector: "nui-line-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n 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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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=\"!legendSeries.secondaryLink\"\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=\"legendSeries.secondaryLink\"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8578
|
+
/** @nocollapse */ LineChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8579
|
+
/** @nocollapse */ LineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LineChartComponent, selector: "nui-line-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n [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 </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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8549
8580
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LineChartComponent, decorators: [{
|
|
8550
8581
|
type: i0.Component,
|
|
8551
8582
|
args: [{
|
|
@@ -8562,13 +8593,13 @@
|
|
|
8562
8593
|
}, {
|
|
8563
8594
|
type: i0.Inject,
|
|
8564
8595
|
args: [DATA_SOURCE]
|
|
8565
|
-
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }
|
|
8596
|
+
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8566
8597
|
} });
|
|
8567
8598
|
|
|
8568
8599
|
var StackedAreaChartComponent = /** @class */ (function (_super) {
|
|
8569
8600
|
__extends(StackedAreaChartComponent, _super);
|
|
8570
|
-
function StackedAreaChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8571
|
-
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8601
|
+
function StackedAreaChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
8602
|
+
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector) || this;
|
|
8572
8603
|
_this.renderer = new i2.AreaRenderer();
|
|
8573
8604
|
_this.valueAccessorKey = "y1";
|
|
8574
8605
|
return _this;
|
|
@@ -8582,7 +8613,8 @@
|
|
|
8582
8613
|
var gridConfig = grid.config();
|
|
8583
8614
|
gridConfig.axis.left.fit = true;
|
|
8584
8615
|
var chart = new i2.Chart(grid);
|
|
8585
|
-
if ((_a = this.configuration.gridConfig) === null || _a === void 0 ? void 0 : _a.hideYAxisTicksLabels)
|
|
8616
|
+
if (((_a = this.configuration.gridConfig) === null || _a === void 0 ? void 0 : _a.hideYAxisTicksLabels) &&
|
|
8617
|
+
this.configuration.units === "percent") {
|
|
8586
8618
|
gridConfig.axis.left.visible = false;
|
|
8587
8619
|
gridConfig.axis.right.visible = false;
|
|
8588
8620
|
}
|
|
@@ -8591,8 +8623,8 @@
|
|
|
8591
8623
|
return StackedAreaChartComponent;
|
|
8592
8624
|
}(XYChartComponent));
|
|
8593
8625
|
StackedAreaChartComponent.lateLoadKey = "StackedAreaChartComponent";
|
|
8594
|
-
/** @nocollapse */ StackedAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }
|
|
8595
|
-
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n 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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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=\"!legendSeries.secondaryLink\"\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=\"legendSeries.secondaryLink\"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8626
|
+
/** @nocollapse */ StackedAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8627
|
+
/** @nocollapse */ StackedAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedAreaChartComponent, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n [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 </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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8596
8628
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedAreaChartComponent, decorators: [{
|
|
8597
8629
|
type: i0.Component,
|
|
8598
8630
|
args: [{
|
|
@@ -8609,19 +8641,14 @@
|
|
|
8609
8641
|
}, {
|
|
8610
8642
|
type: i0.Inject,
|
|
8611
8643
|
args: [DATA_SOURCE]
|
|
8612
|
-
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }
|
|
8644
|
+
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8613
8645
|
} });
|
|
8614
8646
|
|
|
8615
8647
|
var StackedBarChartComponent = /** @class */ (function (_super) {
|
|
8616
8648
|
__extends(StackedBarChartComponent, _super);
|
|
8617
|
-
function StackedBarChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8618
|
-
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8649
|
+
function StackedBarChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
8650
|
+
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector) || this;
|
|
8619
8651
|
_this.valueAccessorKey = "value";
|
|
8620
|
-
// disable pointer events on bars to ensure the zoom drag target is the mouse interactive area rather than the bars
|
|
8621
|
-
_this.renderer = new i2.BarRenderer({
|
|
8622
|
-
highlightStrategy: new i2.BarHighlightStrategy("x"),
|
|
8623
|
-
pointerEvents: false,
|
|
8624
|
-
});
|
|
8625
8652
|
return _this;
|
|
8626
8653
|
}
|
|
8627
8654
|
StackedBarChartComponent.prototype.mapSeriesSet = function (data, scales) {
|
|
@@ -8642,6 +8669,15 @@
|
|
|
8642
8669
|
return accessors;
|
|
8643
8670
|
};
|
|
8644
8671
|
StackedBarChartComponent.prototype.createChartAssist = function (palette) {
|
|
8672
|
+
var _a;
|
|
8673
|
+
// disable pointer events on bars to ensure the zoom drag target is the mouse interactive area rather than the bars
|
|
8674
|
+
this.renderer = new i2.BarRenderer({
|
|
8675
|
+
highlightStrategy: ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
8676
|
+
exports.TimeseriesWidgetProjectType.PerfstackApp
|
|
8677
|
+
? new i2.BarHighlightStrategyOutline("x")
|
|
8678
|
+
: new i2.BarHighlightStrategy("x"),
|
|
8679
|
+
pointerEvents: false,
|
|
8680
|
+
});
|
|
8645
8681
|
var chart = new i2.Chart(i2.barGrid());
|
|
8646
8682
|
chart.addPlugin(new i2.InteractionLinePlugin());
|
|
8647
8683
|
chart.addPlugin(new i2.InteractionLabelPlugin());
|
|
@@ -8650,8 +8686,8 @@
|
|
|
8650
8686
|
return StackedBarChartComponent;
|
|
8651
8687
|
}(XYChartComponent));
|
|
8652
8688
|
StackedBarChartComponent.lateLoadKey = "StackedBarChartComponent";
|
|
8653
|
-
/** @nocollapse */ StackedBarChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }
|
|
8654
|
-
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n 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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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=\"!legendSeries.secondaryLink\"\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=\"legendSeries.secondaryLink\"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8689
|
+
/** @nocollapse */ StackedBarChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8690
|
+
/** @nocollapse */ StackedBarChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedBarChartComponent, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n [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 </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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8655
8691
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedBarChartComponent, decorators: [{
|
|
8656
8692
|
type: i0.Component,
|
|
8657
8693
|
args: [{
|
|
@@ -8668,13 +8704,13 @@
|
|
|
8668
8704
|
}, {
|
|
8669
8705
|
type: i0.Inject,
|
|
8670
8706
|
args: [DATA_SOURCE]
|
|
8671
|
-
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }
|
|
8707
|
+
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8672
8708
|
} });
|
|
8673
8709
|
|
|
8674
8710
|
var StackedPercentageAreaChartComponent = /** @class */ (function (_super) {
|
|
8675
8711
|
__extends(StackedPercentageAreaChartComponent, _super);
|
|
8676
|
-
function StackedPercentageAreaChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8677
|
-
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector
|
|
8712
|
+
function StackedPercentageAreaChartComponent(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
8713
|
+
var _this = _super.call(this, eventBus, dataSource, timeseriesScalesService, changeDetector) || this;
|
|
8678
8714
|
_this.renderer = new i2.AreaRenderer();
|
|
8679
8715
|
_this.valueAccessorKey = "y1";
|
|
8680
8716
|
return _this;
|
|
@@ -8691,8 +8727,8 @@
|
|
|
8691
8727
|
return StackedPercentageAreaChartComponent;
|
|
8692
8728
|
}(XYChartComponent));
|
|
8693
8729
|
StackedPercentageAreaChartComponent.lateLoadKey = "StackedPercentageAreaChartComponent";
|
|
8694
|
-
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }
|
|
8695
|
-
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n 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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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=\"!legendSeries.secondaryLink\"\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=\"legendSeries.secondaryLink\"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8730
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8731
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: StackedPercentageAreaChartComponent, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n [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 </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]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\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.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-icon{padding:0 5px;align-items:center}:host ::ng-deep div:has(> .description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(> .description-container) .descriptions{overflow:hidden}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}\n"], components: [{ type: i2__namespace.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2__namespace.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2__namespace.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["isSelected", "active", "interactive", "seriesRenderState", "icon", "descriptionPrimary", "descriptionSecondary", "color"], outputs: ["isSelectedChange"] }, { type: i2__namespace.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "backgroundColor", "value", "color"] }, { type: i2__namespace.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["maxSize", "marker", "drawLine", "color"] }, { type: i3__namespace.IconComponent, selector: "nui-icon", inputs: ["brushType", "fillContainer", "counter", "iconColor", "iconHoverColor", "iconSize", "cssClass", "status", "childStatus", "icon"] }, { type: i3__namespace.MenuComponent, selector: "nui-menu", inputs: ["icon", "widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "itemsSource"], outputs: ["blurred"] }, { type: i3__namespace.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { type: i3__namespace.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "nuiMapKeyValue": i3__namespace.MapKeyValuePipe } });
|
|
8696
8732
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
8697
8733
|
type: i0.Component,
|
|
8698
8734
|
args: [{
|
|
@@ -8709,7 +8745,7 @@
|
|
|
8709
8745
|
}, {
|
|
8710
8746
|
type: i0.Inject,
|
|
8711
8747
|
args: [DATA_SOURCE]
|
|
8712
|
-
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }
|
|
8748
|
+
}] }, { type: TimeseriesScalesService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
8713
8749
|
} });
|
|
8714
8750
|
|
|
8715
8751
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -8761,6 +8797,9 @@
|
|
|
8761
8797
|
var TIMESERIES_INSPECTION_MENU_SYNCHRONIZE = {
|
|
8762
8798
|
id: "TIMESERIES_INSPECTION_MENU_SYNCHRONIZE",
|
|
8763
8799
|
};
|
|
8800
|
+
var TIMESERIES_INSPECTION_MENU_CLEAR = {
|
|
8801
|
+
id: "TIMESERIES_INSPECTION_MENU_CLEAR",
|
|
8802
|
+
};
|
|
8764
8803
|
var TimeseriesInspectionMenuComponent = /** @class */ (function () {
|
|
8765
8804
|
function TimeseriesInspectionMenuComponent(element, eventBus, syncService) {
|
|
8766
8805
|
this.element = element;
|
|
@@ -8784,6 +8823,9 @@
|
|
|
8784
8823
|
_this.syncService.syncPositionInsideCollection((_a = _this.collectionId) !== null && _a !== void 0 ? _a : "", startDate, endDate);
|
|
8785
8824
|
}
|
|
8786
8825
|
});
|
|
8826
|
+
this.eventBus
|
|
8827
|
+
.getStream(TIMESERIES_INSPECTION_MENU_CLEAR)
|
|
8828
|
+
.subscribe(function () { return _this.clearZoom(); });
|
|
8787
8829
|
(_a = this.plugin) === null || _a === void 0 ? void 0 : _a.openPopover$.pipe(operators.takeUntil(this.destroy$)).subscribe(function (x) {
|
|
8788
8830
|
// moves element to the correct position
|
|
8789
8831
|
_this.element.nativeElement.style.left = _this.offset + x + "px";
|
|
@@ -8882,19 +8924,36 @@
|
|
|
8882
8924
|
this.changeDetector = changeDetector;
|
|
8883
8925
|
this.zoomPluginsSyncService = zoomPluginsSyncService;
|
|
8884
8926
|
this.elementClass = "";
|
|
8927
|
+
this.zoomPlugins = [];
|
|
8885
8928
|
this.allowPopover = false;
|
|
8886
8929
|
this.timeseriesWidgetProjectType = exports.TimeseriesWidgetProjectType;
|
|
8887
8930
|
}
|
|
8888
8931
|
TimeseriesWidgetComponent.prototype.ngOnInit = function () {
|
|
8889
|
-
var
|
|
8932
|
+
var _this = this;
|
|
8933
|
+
var _a, _b, _c, _d;
|
|
8890
8934
|
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.projectType) ===
|
|
8891
8935
|
exports.TimeseriesWidgetProjectType.PerfstackApp) {
|
|
8892
|
-
|
|
8936
|
+
if (this.configuration.type === exports.TimeseriesChartTypes.alert) {
|
|
8937
|
+
// adds timeseries zoom plugin for each subcharts to make the synchronization working for the alert chart
|
|
8938
|
+
(_b = this.widgetData) === null || _b === void 0 ? void 0 : _b.series.forEach(function () { return _this.zoomPlugins.push(_this.getTimeseriesZoomPlugin()); });
|
|
8939
|
+
// doesn't add zoom plugin for a summary serie when there are no sub charts and only sumary serie will be displayed
|
|
8940
|
+
if (!(((_c = this.widgetData) === null || _c === void 0 ? void 0 : _c.series.length) === 1 &&
|
|
8941
|
+
this.widgetData.series[0].id ===
|
|
8942
|
+
((_d = this.widgetData.summarySerie) === null || _d === void 0 ? void 0 : _d.id))) {
|
|
8943
|
+
this.zoomPlugins.push(this.getTimeseriesZoomPlugin());
|
|
8944
|
+
}
|
|
8945
|
+
}
|
|
8946
|
+
else {
|
|
8947
|
+
this.zoomPlugins.push(this.getTimeseriesZoomPlugin());
|
|
8948
|
+
}
|
|
8893
8949
|
}
|
|
8894
8950
|
else {
|
|
8895
|
-
this.
|
|
8951
|
+
this.zoomPlugins.push(new i2.ZoomPlugin());
|
|
8896
8952
|
}
|
|
8897
8953
|
};
|
|
8954
|
+
TimeseriesWidgetComponent.prototype.getTimeseriesZoomPlugin = function () {
|
|
8955
|
+
return new i2.TimeseriesZoomPlugin({ collectionId: this.collectionId }, this.zoomPluginsSyncService);
|
|
8956
|
+
};
|
|
8898
8957
|
TimeseriesWidgetComponent.prototype.ngOnChanges = function (changes) {
|
|
8899
8958
|
var _a, _b;
|
|
8900
8959
|
if (changes.configuration) {
|
|
@@ -8919,15 +8978,15 @@
|
|
|
8919
8978
|
};
|
|
8920
8979
|
TimeseriesWidgetComponent.prototype.isExploringEnabled = function () {
|
|
8921
8980
|
var _a, _b, _c;
|
|
8922
|
-
return (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.type) !== exports.TimeseriesChartTypes.
|
|
8981
|
+
return (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.type) !== exports.TimeseriesChartTypes.line &&
|
|
8923
8982
|
((_b = this.configuration) === null || _b === void 0 ? void 0 : _b.type) !== exports.TimeseriesChartTypes.multi &&
|
|
8924
|
-
((_c = this.configuration) === null || _c === void 0 ? void 0 : _c.type) !== exports.TimeseriesChartTypes.
|
|
8983
|
+
((_c = this.configuration) === null || _c === void 0 ? void 0 : _c.type) !== exports.TimeseriesChartTypes.status);
|
|
8925
8984
|
};
|
|
8926
8985
|
return TimeseriesWidgetComponent;
|
|
8927
8986
|
}());
|
|
8928
8987
|
TimeseriesWidgetComponent.lateLoadKey = "TimeseriesWidgetComponent";
|
|
8929
8988
|
/** @nocollapse */ TimeseriesWidgetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesWidgetComponent, deps: [{ token: TimeseriesChartPresetService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.TimeseriesZoomPluginsSyncService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8930
|
-
/** @nocollapse */ TimeseriesWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: TimeseriesWidgetComponent, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n
|
|
8989
|
+
/** @nocollapse */ TimeseriesWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: TimeseriesWidgetComponent, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n zoomPlugins: zoomPlugins\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n <nui-timeseries-inspection-menu\n *ngIf=\"\n configuration?.enableZoom &&\n configuration?.projectType ===\n timeseriesWidgetProjectType.PerfstackApp &&\n zoomPlugins.length\n \"\n [allowed]=\"allowPopover\"\n [plugin]=\"zoomPlugins[0]\"\n [collectionId]=\"collectionId\"\n [exploringEnabled]=\"isExploringEnabled()\"\n [metricIds]=\"configuration?.metricIds\"\n ></nui-timeseries-inspection-menu>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", styles: [".timeseries-widget-content{padding:10px;position:relative}\n"], components: [{ type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: ["plugin", "exploringEnabled", "metricIds", "collectionId", "allowed"] }, { type: i3__namespace.ImageComponent, selector: "nui-image", inputs: ["width", "height", "image", "description", "float", "margin", "isWatermark", "autoFill"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
8931
8990
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TimeseriesWidgetComponent, decorators: [{
|
|
8932
8991
|
type: i0.Component,
|
|
8933
8992
|
args: [{
|
|
@@ -18949,6 +19008,8 @@
|
|
|
18949
19008
|
exports.SCROLL_NEXT_PAGE = SCROLL_NEXT_PAGE;
|
|
18950
19009
|
exports.SET_PROPERTY_VALUE = SET_PROPERTY_VALUE;
|
|
18951
19010
|
exports.SET_TIMEFRAME = SET_TIMEFRAME;
|
|
19011
|
+
exports.SUMMARY_LEGEND_BCG_COLOR = SUMMARY_LEGEND_BCG_COLOR;
|
|
19012
|
+
exports.SUMMARY_LEGEND_COLOR = SUMMARY_LEGEND_COLOR;
|
|
18952
19013
|
exports.SiUnitsFormatterComponent = SiUnitsFormatterComponent;
|
|
18953
19014
|
exports.StackComponent = StackComponent;
|
|
18954
19015
|
exports.StackedAreaChartComponent = StackedAreaChartComponent;
|
|
@@ -18957,6 +19018,7 @@
|
|
|
18957
19018
|
exports.StatusBarChartComponent = StatusBarChartComponent;
|
|
18958
19019
|
exports.StatusWithIconFormatterComponent = StatusWithIconFormatterComponent;
|
|
18959
19020
|
exports.TEST_REGISTRY = TEST_REGISTRY;
|
|
19021
|
+
exports.TIMESERIES_INSPECTION_MENU_CLEAR = TIMESERIES_INSPECTION_MENU_CLEAR;
|
|
18960
19022
|
exports.TIMESERIES_INSPECTION_MENU_CLOSE = TIMESERIES_INSPECTION_MENU_CLOSE;
|
|
18961
19023
|
exports.TIMESERIES_INSPECTION_MENU_EXPLORE = TIMESERIES_INSPECTION_MENU_EXPLORE;
|
|
18962
19024
|
exports.TIMESERIES_INSPECTION_MENU_SYNCHRONIZE = TIMESERIES_INSPECTION_MENU_SYNCHRONIZE;
|
|
@@ -19022,6 +19084,7 @@
|
|
|
19022
19084
|
exports.fieldMapper = fieldMapper;
|
|
19023
19085
|
exports.getPizzagnaPropertyPath = getPizzagnaPropertyPath;
|
|
19024
19086
|
exports.hasControlInErrorState = hasControlInErrorState;
|
|
19087
|
+
exports.hasTimeseriesWidgetSummaryLegend = hasTimeseriesWidgetSummaryLegend;
|
|
19025
19088
|
exports.mapDataToFormatterProperties = mapDataToFormatterProperties;
|
|
19026
19089
|
exports.mergeChanges = mergeChanges;
|
|
19027
19090
|
exports.metricsSeriesMeasurementsMinMax = metricsSeriesMeasurementsMinMax;
|