@nova-ui/charts 20.0.9 → 20.0.11

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.
@@ -862,11 +862,11 @@ class ChartDonutContentComponent {
862
862
  }
863
863
  }
864
864
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartDonutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
865
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartDonutContentComponent, isStandalone: false, selector: "nui-chart-donut-content", inputs: { plugin: "plugin" }, usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
865
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartDonutContentComponent, isStandalone: false, selector: "nui-chart-donut-content", inputs: { plugin: "plugin" }, usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\">\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
866
866
  }
867
867
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartDonutContentComponent, decorators: [{
868
868
  type: Component,
869
- args: [{ selector: "nui-chart-donut-content", standalone: false, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"] }]
869
+ args: [{ selector: "nui-chart-donut-content", standalone: false, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\">\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"] }]
870
870
  }], propDecorators: { plugin: [{
871
871
  type: Input
872
872
  }] } });
@@ -983,7 +983,7 @@ class ChartTooltipsPlugin extends ChartPlugin {
983
983
  .getStream(SERIES_STATE_CHANGE_EVENT)
984
984
  .pipe(takeUntil(this.destroy$))
985
985
  .subscribe((event) => {
986
- event.data.forEach((series) => {
986
+ event.data.forEach(series => {
987
987
  this.seriesVisibilityMap[series.seriesId] =
988
988
  series.state !== RenderState.hidden;
989
989
  });
@@ -1022,7 +1022,7 @@ class ChartTooltipsPlugin extends ChartPlugin {
1022
1022
  x: bbox.left - offsetParentBbox.left,
1023
1023
  y: bbox.top - offsetParentBbox.top,
1024
1024
  };
1025
- each(Object.keys(this.dataPoints), (seriesId) => {
1025
+ each(Object.keys(this.dataPoints), seriesId => {
1026
1026
  const dataPoint = this.dataPoints[seriesId];
1027
1027
  const chartSeries = this.chart
1028
1028
  .getDataManager()
@@ -1127,7 +1127,7 @@ class ChartTooltipsComponent {
1127
1127
  handleOpen() {
1128
1128
  this.changeDetector.detectChanges();
1129
1129
  const currentTooltipDirectivesIndex = {};
1130
- this.tooltips.forEach((tooltip) => {
1130
+ this.tooltips.forEach(tooltip => {
1131
1131
  // this is how we identify which series does the tooltip belong to
1132
1132
  const seriesId = tooltip.elementRef.nativeElement.getAttribute("series-id") ??
1133
1133
  undefined;
@@ -1172,7 +1172,7 @@ class ChartTooltipsComponent {
1172
1172
  avoidTooltipCollisions() {
1173
1173
  // extracted tooltip positions from tooltip directives
1174
1174
  const tooltipPositions = {};
1175
- this.tooltips.forEach((tooltip) => {
1175
+ this.tooltips.forEach(tooltip => {
1176
1176
  const element = tooltip.getOverlayElement();
1177
1177
  // this is how we identify which series does the tooltip belong to
1178
1178
  const seriesId = tooltip.elementRef.nativeElement.getAttribute("series-id") ??
@@ -1201,7 +1201,7 @@ class ChartTooltipsComponent {
1201
1201
  * @param tooltipPositions
1202
1202
  */
1203
1203
  startSimulation(tooltipIndex, tooltipPositions) {
1204
- const nodes = Object.keys(tooltipPositions).map((seriesId) => {
1204
+ const nodes = Object.keys(tooltipPositions).map(seriesId => {
1205
1205
  const position = tooltipPositions[seriesId];
1206
1206
  if (isNil(position.height) || isNil(position.width)) {
1207
1207
  throw new Error("Position height or width are not defined");
@@ -1241,11 +1241,11 @@ class ChartTooltipsComponent {
1241
1241
  return this.plugin.orientation === "right";
1242
1242
  }
1243
1243
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartTooltipsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1244
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartTooltipsComponent, isStandalone: false, selector: "nui-chart-tooltips", inputs: { plugin: "plugin", template: "template" }, viewQueries: [{ propertyName: "tooltips", predicate: ChartTooltipDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"\n ></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"\n ></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[nuiChartTooltip]", inputs: ["template", "openRemoteControl", "closeRemoteControl", "positions"] }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }] });
1244
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartTooltipsComponent, isStandalone: false, selector: "nui-chart-tooltips", inputs: { plugin: "plugin", template: "template" }, viewQueries: [{ propertyName: "tooltips", predicate: ChartTooltipDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[nuiChartTooltip]", inputs: ["template", "openRemoteControl", "closeRemoteControl", "positions"] }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }] });
1245
1245
  }
1246
1246
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartTooltipsComponent, decorators: [{
1247
1247
  type: Component,
1248
- args: [{ selector: "nui-chart-tooltips", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"\n ></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"\n ></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"] }]
1248
+ args: [{ selector: "nui-chart-tooltips", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"] }]
1249
1249
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { plugin: [{
1250
1250
  type: Input
1251
1251
  }], template: [{
@@ -1344,7 +1344,7 @@ class ChartPopoverPlugin extends ChartPlugin {
1344
1344
  if (!chartElement) {
1345
1345
  throw new Error("Chart parent node is not defined");
1346
1346
  }
1347
- const dataPointsLeft = Math.min(...valuesArray.map((d) => d.position.x));
1347
+ const dataPointsLeft = Math.min(...valuesArray.map(d => d.position.x));
1348
1348
  const left = chartElement.offsetLeft +
1349
1349
  this.chart.getGrid().config().dimension.margin.left +
1350
1350
  dataPointsLeft;
@@ -1356,7 +1356,7 @@ class ChartPopoverPlugin extends ChartPlugin {
1356
1356
  top: top,
1357
1357
  left: left,
1358
1358
  height: chartElement.offsetHeight,
1359
- width: Math.max(...valuesArray.map((d) => d.position.x + (d.position.width || 0))) - dataPointsLeft,
1359
+ width: Math.max(...valuesArray.map(d => d.position.x + (d.position.width || 0))) - dataPointsLeft,
1360
1360
  };
1361
1361
  }
1362
1362
  processDataPoints(dataPoints) {
@@ -1450,11 +1450,11 @@ class ChartPopoverComponent {
1450
1450
  });
1451
1451
  }
1452
1452
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartPopoverComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1453
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartPopoverComponent, isStandalone: false, selector: "nui-chart-popover", inputs: { plugin: "plugin", template: "template" }, outputs: { update: "update" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\"\n >\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"\n ></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$2.PopoverComponent, selector: "nui-popover", inputs: ["closePopover", "openPopover", "disabled", "trigger", "template", "placement", "popoverTitle", "icon", "modal", "container", "hasPadding", "preventClosing", "unlimited", "delay", "withGrowAfterOpen", "popoverOverlayPosition"], outputs: ["shown", "hidden"] }] });
1453
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartPopoverComponent, isStandalone: false, selector: "nui-chart-popover", inputs: { plugin: "plugin", template: "template" }, outputs: { update: "update" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\">\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$2.PopoverComponent, selector: "nui-popover", inputs: ["closePopover", "openPopover", "disabled", "trigger", "template", "placement", "popoverTitle", "icon", "modal", "container", "hasPadding", "preventClosing", "unlimited", "delay", "withGrowAfterOpen", "popoverOverlayPosition"], outputs: ["shown", "hidden"] }] });
1454
1454
  }
1455
1455
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartPopoverComponent, decorators: [{
1456
1456
  type: Component,
1457
- args: [{ selector: "nui-chart-popover", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\"\n >\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"\n ></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"] }]
1457
+ args: [{ selector: "nui-chart-popover", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\">\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"] }]
1458
1458
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { plugin: [{
1459
1459
  type: Input
1460
1460
  }], template: [{
@@ -1544,11 +1544,11 @@ class ChartMarkerComponent {
1544
1544
  });
1545
1545
  }
1546
1546
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartMarkerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1547
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartMarkerComponent, isStandalone: false, selector: "nui-chart-marker", inputs: { marker: "marker", drawLine: "drawLine", color: "color", maxSize: "maxSize" }, viewQueries: [{ propertyName: "svgContent", first: true, predicate: ["svgContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\" aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] });
1547
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartMarkerComponent, isStandalone: false, selector: "nui-chart-marker", inputs: { marker: "marker", drawLine: "drawLine", color: "color", maxSize: "maxSize" }, viewQueries: [{ propertyName: "svgContent", first: true, predicate: ["svgContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<svg\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n [attr.viewBox]=\"viewBox\"\n aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] });
1548
1548
  }
1549
1549
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartMarkerComponent, decorators: [{
1550
1550
  type: Component,
1551
- args: [{ selector: "nui-chart-marker", standalone: false, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\" aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] }]
1551
+ args: [{ selector: "nui-chart-marker", standalone: false, template: "<svg\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n [attr.viewBox]=\"viewBox\"\n aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] }]
1552
1552
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { marker: [{
1553
1553
  type: Input
1554
1554
  }], drawLine: [{
@@ -1776,7 +1776,7 @@ class ChartCollection {
1776
1776
  if (!this.eventBus) {
1777
1777
  this.initializeEventBus();
1778
1778
  }
1779
- each(this.events, (event) => {
1779
+ each(this.events, event => {
1780
1780
  this.subscribe(index, chart.getEventBus().getStream(event), (value) => {
1781
1781
  // this is where we check for the __broadcast__ flag, which means it originated in the chart collection
1782
1782
  if (!value.broadcast) {
@@ -1854,7 +1854,7 @@ class ChartCollection {
1854
1854
  * @param {string} chartKey
1855
1855
  */
1856
1856
  unsubscribeChart(chartKey) {
1857
- each(this.subscriptions[chartKey], (sub) => {
1857
+ each(this.subscriptions[chartKey], sub => {
1858
1858
  sub.unsubscribe();
1859
1859
  });
1860
1860
  delete this.subscriptions[chartKey];
@@ -2054,7 +2054,7 @@ class LegendComponent {
2054
2054
  this.activeChanged.complete();
2055
2055
  }
2056
2056
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2057
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendComponent, isStandalone: false, selector: "nui-legend", inputs: { ariaLabel: "ariaLabel", active: "active", interactive: "interactive", orientation: "orientation", seriesColor: "seriesColor", seriesIcon: "seriesIcon", seriesUnitLabel: "seriesUnitLabel" }, host: { properties: { "attr.role": "interactive ? 'group' : 'list'", "attr.aria-label": "ariaLabel" }, classAttribute: "d-inline-block" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" });
2057
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendComponent, isStandalone: false, selector: "nui-legend", inputs: { ariaLabel: "ariaLabel", active: "active", interactive: "interactive", orientation: "orientation", seriesColor: "seriesColor", seriesIcon: "seriesIcon", seriesUnitLabel: "seriesUnitLabel" }, host: { properties: { "attr.role": "interactive ? 'group' : 'list'", "attr.aria-label": "ariaLabel" }, classAttribute: "d-inline-block" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\">\n <ng-content></ng-content>\n</div>\n" });
2058
2058
  }
2059
2059
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendComponent, decorators: [{
2060
2060
  type: Component,
@@ -2062,7 +2062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
2062
2062
  "class": "d-inline-block",
2063
2063
  "[attr.role]": "interactive ? 'group' : 'list'",
2064
2064
  "[attr.aria-label]": "ariaLabel",
2065
- }, encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" }]
2065
+ }, encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\">\n <ng-content></ng-content>\n</div>\n" }]
2066
2066
  }], propDecorators: { ariaLabel: [{
2067
2067
  type: Input
2068
2068
  }], active: [{
@@ -2229,11 +2229,11 @@ class LegendSeriesComponent {
2229
2229
  this.projectedDescription.nativeElement.children.length !== 0);
2230
2230
  }
2231
2231
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendSeriesComponent, deps: [{ token: LegendComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2232
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendSeriesComponent, isStandalone: false, selector: "nui-legend-series", inputs: { active: "active", interactive: "interactive", isSelected: "isSelected", descriptionPrimary: "descriptionPrimary", descriptionSecondary: "descriptionSecondary", icon: "icon", color: "color", seriesRenderState: "seriesRenderState" }, outputs: { isSelectedChange: "isSelectedChange" }, host: { listeners: { "click": "onClick()", "keydown.enter": "onEnterKey()", "keydown.space": "onSpaceKey($event)" }, properties: { "class.nui-legend-series--interactive": "this.isInteractiveClassApplied", "class.nui-legend-series--horizontal": "this.isHorizontalClassApplied", "class.inverse": "this.isActiveClassApplied", "attr.role": "this.role", "attr.tabindex": "this.interactiveTabIndex", "attr.aria-checked": "this.interactiveAriaChecked" }, classAttribute: "nui-legend-series" }, viewQueries: [{ propertyName: "projectedDescription", first: true, predicate: ["projectedDescription"], descendants: true }], ngImport: i0, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2232
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendSeriesComponent, isStandalone: false, selector: "nui-legend-series", inputs: { active: "active", interactive: "interactive", isSelected: "isSelected", descriptionPrimary: "descriptionPrimary", descriptionSecondary: "descriptionSecondary", icon: "icon", color: "color", seriesRenderState: "seriesRenderState" }, outputs: { isSelectedChange: "isSelectedChange" }, host: { listeners: { "click": "onClick()", "keydown.enter": "onEnterKey()", "keydown.space": "onSpaceKey($event)" }, properties: { "class.nui-legend-series--interactive": "this.isInteractiveClassApplied", "class.nui-legend-series--horizontal": "this.isHorizontalClassApplied", "class.inverse": "this.isActiveClassApplied", "attr.role": "this.role", "attr.tabindex": "this.interactiveTabIndex", "attr.aria-checked": "this.interactiveAriaChecked" }, classAttribute: "nui-legend-series" }, viewQueries: [{ propertyName: "projectedDescription", first: true, predicate: ["projectedDescription"], descendants: true }], ngImport: i0, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\">\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\">\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\">\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\">\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\">\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2233
2233
  }
2234
2234
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendSeriesComponent, decorators: [{
2235
2235
  type: Component,
2236
- args: [{ host: { class: LEGEND_SERIES_CLASS_NAME }, selector: "nui-legend-series", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n" }]
2236
+ args: [{ host: { class: LEGEND_SERIES_CLASS_NAME }, selector: "nui-legend-series", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\">\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\">\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\">\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\">\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\">\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n" }]
2237
2237
  }], ctorParameters: () => [{ type: LegendComponent, decorators: [{
2238
2238
  type: Optional
2239
2239
  }, {
@@ -2383,11 +2383,11 @@ class RichLegendTileComponent {
2383
2383
  return !isNil(this.unitLabel);
2384
2384
  }
2385
2385
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RichLegendTileComponent, deps: [{ token: LegendSeriesComponent, host: true }, { token: LegendComponent, host: true, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2386
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RichLegendTileComponent, isStandalone: false, selector: "nui-rich-legend-tile", inputs: { unitLabel: "unitLabel", value: "value", backgroundColor: "backgroundColor", color: "color" }, ngImport: i0, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \"\n>\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\"\n >\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\"\n >\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\"\n >\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RichLegendTileComponent, isStandalone: false, selector: "nui-rich-legend-tile", inputs: { unitLabel: "unitLabel", value: "value", backgroundColor: "backgroundColor", color: "color" }, ngImport: i0, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \">\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\">\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\">\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\">\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2387
2387
  }
2388
2388
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RichLegendTileComponent, decorators: [{
2389
2389
  type: Component,
2390
- args: [{ selector: "nui-rich-legend-tile", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \"\n>\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\"\n >\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\"\n >\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\"\n >\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"] }]
2390
+ args: [{ selector: "nui-rich-legend-tile", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \">\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\">\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\">\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\">\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"] }]
2391
2391
  }], ctorParameters: () => [{ type: LegendSeriesComponent, decorators: [{
2392
2392
  type: Host
2393
2393
  }] }, { type: LegendComponent, decorators: [{
@@ -2875,10 +2875,10 @@ const emptyShapes = [
2875
2875
  /* eslint-enable max-len */
2876
2876
  /** Default chart marker set */
2877
2877
  const CHART_MARKERS = [
2878
- ...regularShapes.map((s) => `<path class="nui-chart--path__outline" d="${s}"></path>`),
2878
+ ...regularShapes.map(s => `<path class="nui-chart--path__outline" d="${s}"></path>`),
2879
2879
  ...emptyShapes.map((s, i) => `<path class="nui-chart--path__outline-fill" stroke="none" d="${regularShapes[i]}"></path>
2880
2880
  <path class="nui-chart--path__outline" d="${s}"></path>`),
2881
- ].map((s) => new SvgMarker(s));
2881
+ ].map(s => new SvgMarker(s));
2882
2882
 
2883
2883
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
2884
2884
  //
@@ -3338,7 +3338,7 @@ class UtilityService {
3338
3338
  }
3339
3339
  const valueAccessor = UtilityService.getValueAccessor(accessor, haystack[0]);
3340
3340
  if (typeof needle === "string") {
3341
- return haystack.findIndex((straw) => valueAccessor(straw, 0) === needle);
3341
+ return haystack.findIndex(straw => valueAccessor(straw, 0) === needle);
3342
3342
  }
3343
3343
  let closestDataIndex = this.findNearestIndex(haystack, needle, accessor);
3344
3344
  // Compensate for bisect
@@ -3373,7 +3373,7 @@ class UtilityService {
3373
3373
  }
3374
3374
  static uuid() {
3375
3375
  let dt = new Date().getTime();
3376
- const uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
3376
+ const uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
3377
3377
  // eslint-disable-next-line
3378
3378
  const r = (dt + Math.random() * 16) % 16 | 0;
3379
3379
  dt = Math.floor(dt / 16);
@@ -3740,10 +3740,10 @@ class BarRenderer extends XYRenderer {
3740
3740
  }
3741
3741
  else {
3742
3742
  const values = data && data.length > 0 ? data.map(accessor("start")) : [];
3743
- const maxLength = Math.max(...values.map((d) => (isArray(d) ? d.length : -1)));
3743
+ const maxLength = Math.max(...values.map(d => (isArray(d) ? d.length : -1)));
3744
3744
  if (maxLength >= 0) {
3745
3745
  return Array.from(Array(maxLength)).map((e, i) => {
3746
- const scalesDomains = values.map((d) => i < d.length ? d[i] : []);
3746
+ const scalesDomains = values.map(d => i < d.length ? d[i] : []);
3747
3747
  return uniq(flatten(scalesDomains));
3748
3748
  });
3749
3749
  }
@@ -3978,7 +3978,7 @@ class LineAccessors extends XYAccessors {
3978
3978
  * @param px
3979
3979
  */
3980
3980
  function isInRange(scale, px) {
3981
- const r = scale.range().map((a) => a);
3981
+ const r = scale.range().map(a => a);
3982
3982
  const min = Math.min(r[0], r[1]);
3983
3983
  const max = Math.max(r[0], r[1]);
3984
3984
  return px >= min && px <= max;
@@ -4194,11 +4194,11 @@ class LineRenderer extends XYRenderer {
4194
4194
  .classed("main", true)
4195
4195
  // Assigning null value to match ValueMap<GElement, Datum> D3's signature
4196
4196
  .attrs({
4197
- stroke: strokeValue ?? null,
4197
+ "stroke": strokeValue ?? null,
4198
4198
  "stroke-width": this.config.strokeWidth ?? null,
4199
4199
  "stroke-dasharray": this.config.strokeStyle ?? null,
4200
4200
  "stroke-linecap": this.config.strokeLinecap ?? null,
4201
- fill: "none",
4201
+ "fill": "none",
4202
4202
  });
4203
4203
  }
4204
4204
  this.drawLine(renderSeries, path);
@@ -4500,7 +4500,7 @@ class ThresholdsService {
4500
4500
  */
4501
4501
  injectThresholdsData(dataSeries, zones) {
4502
4502
  const zoneIndexes = {};
4503
- zones.forEach((z) => (z.entered = false));
4503
+ zones.forEach(z => (z.entered = false));
4504
4504
  for (let i = 0; i < dataSeries.data.length; i++) {
4505
4505
  const d = dataSeries.data[i];
4506
4506
  const x = dataSeries.accessors.data.x(d, i, dataSeries.data, dataSeries);
@@ -4536,15 +4536,15 @@ class ThresholdsService {
4536
4536
  }
4537
4537
  let data;
4538
4538
  const accessors = statusAccessors(colorProvider);
4539
- accessors.data.thickness = (d) => thicknessMap[d.status];
4539
+ accessors.data.thickness = d => thicknessMap[d.status];
4540
4540
  if (isBandScale(scales.x)) {
4541
4541
  data = cloneDeep(sourceSeries.data);
4542
4542
  accessors.data.start = sourceSeries.accessors.data.x;
4543
4543
  accessors.data.end = sourceSeries.accessors.data.x;
4544
- accessors.data.color = (d) => d.__thresholds && d.__thresholds.status
4544
+ accessors.data.color = d => d.__thresholds && d.__thresholds.status
4545
4545
  ? colorProvider.get(d.__thresholds.status)
4546
4546
  : "transparent";
4547
- accessors.data.thickness = (d) => thicknessMap[d.__thresholds.status];
4547
+ accessors.data.thickness = d => thicknessMap[d.__thresholds.status];
4548
4548
  }
4549
4549
  else {
4550
4550
  data = this.getBackgroundsDataForContinuousScale(sourceSeries, zones);
@@ -4638,9 +4638,9 @@ class ThresholdsService {
4638
4638
  zoneStartY,
4639
4639
  zoneEndY,
4640
4640
  ]
4641
- .map((y) => this.getCrossPointWithY(xy1, xy2, y)) // calculate cross points for both limits
4642
- .filter((c) => c); // take only those that actually intersect
4643
- [xy1, xy2].forEach((xy) => {
4641
+ .map(y => this.getCrossPointWithY(xy1, xy2, y)) // calculate cross points for both limits
4642
+ .filter(c => c); // take only those that actually intersect
4643
+ [xy1, xy2].forEach(xy => {
4644
4644
  if (xy.y === zoneStartY || xy.y === zoneEndY) {
4645
4645
  xy.isZoneEdge = true;
4646
4646
  }
@@ -4662,8 +4662,8 @@ class ThresholdsService {
4662
4662
  */
4663
4663
  getThresholdZones(sourceSeries, simpleZones, colorProvider) {
4664
4664
  const areaAccessors = new AreaAccessors();
4665
- areaAccessors.data.start = (d) => d.start;
4666
- areaAccessors.data.end = (d) => d.end;
4665
+ areaAccessors.data.start = d => d.start;
4666
+ areaAccessors.data.end = d => d.end;
4667
4667
  areaAccessors.series.color = (seriesId, series) => colorProvider.get(series.value);
4668
4668
  return simpleZones.map((z, i) => ({
4669
4669
  id: sourceSeries.id + "__" + z.status + "-" + i,
@@ -4679,7 +4679,7 @@ class ThresholdsService {
4679
4679
  * @param zones Zones defined as data series with IAreaAccessors
4680
4680
  */
4681
4681
  getThresholdLines(zones) {
4682
- if (-1 === zones.findIndex((z) => z.entered)) {
4682
+ if (-1 === zones.findIndex(z => z.entered)) {
4683
4683
  return [];
4684
4684
  }
4685
4685
  // TODO: works only for static thresholds
@@ -4697,7 +4697,7 @@ class ThresholdsService {
4697
4697
  addLimitEntry(z.accessors.data.end, z, ZoneBoundary.End);
4698
4698
  }
4699
4699
  }
4700
- return values(limits).map((limit) => this.getThresholdLine(limit.series, limit.accessor, limit.zoneBoundary));
4700
+ return values(limits).map(limit => this.getThresholdLine(limit.series, limit.accessor, limit.zoneBoundary));
4701
4701
  }
4702
4702
  /**
4703
4703
  * Creates a IChartAssistSeries that represents a threshold zone limit defined by given valueAccessor
@@ -4810,7 +4810,7 @@ class ThresholdsService {
4810
4810
  getSideIndicators(zones, scales, rendererConfig) {
4811
4811
  const sideIndicators = [];
4812
4812
  const renderer = new SideIndicatorRenderer(rendererConfig || cloneDeep(THRESHOLDS_MAIN_CHART_RENDERER_CONFIG));
4813
- const indicatorsActive = -1 !== zones.findIndex((z) => z.entered);
4813
+ const indicatorsActive = -1 !== zones.findIndex(z => z.entered);
4814
4814
  for (const z of zones) {
4815
4815
  const sideIndicatorAccessors = new SideIndicatorAccessors();
4816
4816
  sideIndicatorAccessors.series = {
@@ -5080,14 +5080,14 @@ class DataManager {
5080
5080
  this.chart = chart;
5081
5081
  }
5082
5082
  update(seriesSet) {
5083
- const duplicateIds = filter(seriesSet.map((series) => series.id), (val, i, iteratee) => includes(iteratee, val, i + 1));
5083
+ const duplicateIds = filter(seriesSet.map(series => series.id), (val, i, iteratee) => includes(iteratee, val, i + 1));
5084
5084
  if (duplicateIds.length > 0) {
5085
5085
  console.warn("Series set contains duplicate IDs:", duplicateIds);
5086
5086
  }
5087
5087
  this._chartSeriesSet = seriesSet || [];
5088
5088
  this.dataIndex = keyBy(this._chartSeriesSet, (s) => s.id);
5089
5089
  this._scalesIndexByKey = this.buildScalesIndex(this._chartSeriesSet);
5090
- this._scalesIndexById = keyBy(flatten(values(this._scalesIndexByKey).map((v) => v.list)), (s) => s.id);
5090
+ this._scalesIndexById = keyBy(flatten(values(this._scalesIndexByKey).map(v => v.list)), s => s.id);
5091
5091
  }
5092
5092
  getChartSeries(seriesId) {
5093
5093
  return this.dataIndex[seriesId];
@@ -5098,9 +5098,9 @@ class DataManager {
5098
5098
  }
5099
5099
  if (scale.domainCalculator) {
5100
5100
  const chartSeriesSet = this.chartSeriesSet
5101
- .filter((cs) => cs.scales[scaleKey] === scale &&
5101
+ .filter(cs => cs.scales[scaleKey] === scale &&
5102
5102
  !cs.renderer.config.ignoreForDomainCalculation)
5103
- .filter((c) => c.renderState !== RenderState.hidden);
5103
+ .filter(c => c.renderState !== RenderState.hidden);
5104
5104
  if (chartSeriesSet.length ||
5105
5105
  this.chart?.configuration?.updateDomainForEmptySeries) {
5106
5106
  const calculatedDomain = scale.domainCalculator(chartSeriesSet, scaleKey, scale);
@@ -5110,8 +5110,8 @@ class DataManager {
5110
5110
  }
5111
5111
  buildScalesIndex(chartSeries) {
5112
5112
  const scales = {};
5113
- each(chartSeries, (cs) => {
5114
- each(Object.keys(cs.scales), (scaleKey) => {
5113
+ each(chartSeries, cs => {
5114
+ each(Object.keys(cs.scales), scaleKey => {
5115
5115
  const scale = cs.scales[scaleKey];
5116
5116
  let indexEntry = scales[scaleKey];
5117
5117
  if (!indexEntry) {
@@ -5130,8 +5130,8 @@ class DataManager {
5130
5130
  return scales;
5131
5131
  }
5132
5132
  updateScaleDomains() {
5133
- each(Object.keys(this._scalesIndexByKey), (scaleKey) => {
5134
- each(this._scalesIndexByKey[scaleKey].list, (scale) => {
5133
+ each(Object.keys(this._scalesIndexByKey), scaleKey => {
5134
+ each(this._scalesIndexByKey[scaleKey].list, scale => {
5135
5135
  this.updateScaleDomain(scale, scaleKey);
5136
5136
  });
5137
5137
  });
@@ -5190,7 +5190,7 @@ class RenderEngine {
5190
5190
  each(this.dataManager.chartSeriesSet, (chartSeries) => {
5191
5191
  const childContainers = this.getSeriesChildContainers(chartSeries.id);
5192
5192
  const areDomainsValid = -1 ===
5193
- Object.values(chartSeries.scales).findIndex((scale) => {
5193
+ Object.values(chartSeries.scales).findIndex(scale => {
5194
5194
  if (typeof scaleValidity[scale.id] === "undefined") {
5195
5195
  const isValid = scale.isDomainValid();
5196
5196
  if (!isValid) {
@@ -5228,7 +5228,7 @@ class RenderEngine {
5228
5228
  let highlightChangeDetected = false;
5229
5229
  const interactionDataPoints = this.dataManager.chartSeriesSet.reduce((result, chartSeries) => {
5230
5230
  const chartValues = {};
5231
- each(Object.keys(payload.values), (scaleKey) => {
5231
+ each(Object.keys(payload.values), scaleKey => {
5232
5232
  const myScaleId = chartSeries.scales[scaleKey].id;
5233
5233
  chartValues[scaleKey] = UtilityService.getInteractionValues(payload.values[scaleKey], myScaleId);
5234
5234
  });
@@ -5303,7 +5303,7 @@ class RenderEngine {
5303
5303
  }
5304
5304
  const childContainers = this.getSeriesChildContainers(seriesId);
5305
5305
  const attrs = chartSeries.renderer.getContainerStateStyles(state);
5306
- each(values(childContainers), (cc) => {
5306
+ each(values(childContainers), cc => {
5307
5307
  cc.attrs(attrs);
5308
5308
  });
5309
5309
  chartSeries.renderer.setSeriesState(childContainers, state);
@@ -5319,8 +5319,8 @@ class RenderEngine {
5319
5319
  }
5320
5320
  buildLayerIndex(chartSeriesSet) {
5321
5321
  const layerIndex = {};
5322
- each(chartSeriesSet, (chartSeries) => {
5323
- each(chartSeries.renderer.getRequiredLayers(), (layerDef) => {
5322
+ each(chartSeriesSet, chartSeries => {
5323
+ each(chartSeries.renderer.getRequiredLayers(), layerDef => {
5324
5324
  if (STANDARD_RENDER_LAYERS[layerDef.name] &&
5325
5325
  !isEqual(STANDARD_RENDER_LAYERS[layerDef.name], layerDef)) {
5326
5326
  throw new Error(`Custom definition detected for render layer "${layerDef.name}". ` +
@@ -5340,7 +5340,7 @@ class RenderEngine {
5340
5340
  return layerIndex;
5341
5341
  }
5342
5342
  removeUnusedLayers() {
5343
- each(Object.keys(this.renderLayers), (layerName) => {
5343
+ each(Object.keys(this.renderLayers), layerName => {
5344
5344
  if (!this.layerIndex[layerName]) {
5345
5345
  this.lasagna.removeLayer(layerName);
5346
5346
  delete this.renderLayers[layerName];
@@ -5348,7 +5348,7 @@ class RenderEngine {
5348
5348
  });
5349
5349
  }
5350
5350
  addNeededLayers() {
5351
- each(this.layerIndex, (layerData) => {
5351
+ each(this.layerIndex, layerData => {
5352
5352
  if (!this.renderLayers[layerData.layerDefinition.name]) {
5353
5353
  this.renderLayers[layerData.layerDefinition.name] =
5354
5354
  this.lasagna.addLayer(layerData.layerDefinition);
@@ -5356,7 +5356,7 @@ class RenderEngine {
5356
5356
  });
5357
5357
  }
5358
5358
  updateLayerContents() {
5359
- each(Object.keys(this.renderLayers), (layerName) => {
5359
+ each(Object.keys(this.renderLayers), layerName => {
5360
5360
  const renderLayer = this.renderLayers[layerName];
5361
5361
  const containers = renderLayer
5362
5362
  .selectAll("g.data-series-container")
@@ -5374,7 +5374,7 @@ class RenderEngine {
5374
5374
  }
5375
5375
  getSeriesChildContainers(seriesId) {
5376
5376
  const childContainers = {};
5377
- each(Object.keys(this.renderLayers), (layerName) => {
5377
+ each(Object.keys(this.renderLayers), layerName => {
5378
5378
  const renderLayer = this.renderLayers[layerName];
5379
5379
  childContainers[layerName] = renderLayer.selectAll(`#${layerName}-${UtilityService.cssEscape(seriesId)}`);
5380
5380
  });
@@ -5526,7 +5526,7 @@ class Chart {
5526
5526
  this.plugins.push(plugin);
5527
5527
  }
5528
5528
  removePlugin(classRef) {
5529
- const pluginIndex = this.plugins.findIndex((plugin) => plugin instanceof classRef);
5529
+ const pluginIndex = this.plugins.findIndex(plugin => plugin instanceof classRef);
5530
5530
  if (-1 !== pluginIndex) {
5531
5531
  this.plugins[pluginIndex].destroy();
5532
5532
  this.plugins.splice(pluginIndex, 1);
@@ -5543,8 +5543,7 @@ class Chart {
5543
5543
  }
5544
5544
  }
5545
5545
  hasPlugin(classRef) {
5546
- return (-1 !==
5547
- this.plugins.findIndex((plugin) => plugin instanceof classRef));
5546
+ return (-1 !== this.plugins.findIndex(plugin => plugin instanceof classRef));
5548
5547
  }
5549
5548
  build(element) {
5550
5549
  this.element = element;
@@ -5552,9 +5551,9 @@ class Chart {
5552
5551
  this.target = select$1(this.element)
5553
5552
  .append("svg")
5554
5553
  .attrs({
5555
- class: "nui-chart",
5556
- height: "100%",
5557
- width: "100%",
5554
+ "class": "nui-chart",
5555
+ "height": "100%",
5556
+ "width": "100%",
5558
5557
  // aria-hidden: the accessible label is carried by the nui-chart host element (role="img")
5559
5558
  "aria-hidden": "true",
5560
5559
  });
@@ -5618,7 +5617,7 @@ class Chart {
5618
5617
  destroy() {
5619
5618
  this.eventBus.getStream(DESTROY_EVENT).next({ data: null });
5620
5619
  this.eventBus.destroy();
5621
- this.plugins.forEach((p) => p.destroy());
5620
+ this.plugins.forEach(p => p.destroy());
5622
5621
  this.target?.remove();
5623
5622
  this.target = undefined;
5624
5623
  }
@@ -5633,7 +5632,7 @@ class Chart {
5633
5632
  this.grid.scales = this.dataManager.scalesIndexByKey;
5634
5633
  this.dataManager.updateScaleDomains();
5635
5634
  this.grid.updateRanges();
5636
- this.plugins.forEach((p) => p.update());
5635
+ this.plugins.forEach(p => p.update());
5637
5636
  }
5638
5637
  onUpdateDimensions() {
5639
5638
  const dimensionConfig = this.grid.config().dimension;
@@ -5647,7 +5646,7 @@ class Chart {
5647
5646
  dimensions.width = this.element.clientWidth;
5648
5647
  }
5649
5648
  this.grid.updateDimensions(dimensions);
5650
- this.plugins.forEach((p) => p.updateDimensions());
5649
+ this.plugins.forEach(p => p.updateDimensions());
5651
5650
  }
5652
5651
  updateTargetDimensions(dimensionConfig) {
5653
5652
  if (!dimensionConfig.autoHeight) {
@@ -5811,12 +5810,12 @@ class ChartAssist {
5811
5810
  .getEventBus()
5812
5811
  .getStream(INTERACTION_DATA_POINTS_EVENT)
5813
5812
  .asObservable()
5814
- .pipe(filter$1((event) => event.data.interactionType === InteractionType.MouseMove), map((event) => event.data.dataPoints[chartSeries.id]));
5813
+ .pipe(filter$1(event => event.data.interactionType === InteractionType.MouseMove), map(event => event.data.dataPoints[chartSeries.id]));
5815
5814
  // if there is no highlightData, or index is "-1", we'll show the last value from series (if possible)
5816
5815
  const highlightDataPresentPredicate = (highlightData) => highlightData && highlightData.index >= 0;
5817
5816
  return seriesHighlight$.pipe(
5818
5817
  // eslint-disable-next-line import/no-deprecated
5819
- switchMap((highlightData) => highlightDataPresentPredicate(highlightData)
5818
+ switchMap(highlightData => highlightDataPresentPredicate(highlightData)
5820
5819
  ? of(highlightData.data)
5821
5820
  : of(chartSeries.data && chartSeries.data.length
5822
5821
  ? chartSeries.data[chartSeries.data.length - 1]
@@ -5827,16 +5826,16 @@ class ChartAssist {
5827
5826
  }
5828
5827
  update(inputSeriesSet, updateLegend = true) {
5829
5828
  this.inputSeriesSet = inputSeriesSet;
5830
- const processedSeriesSet = this.seriesProcessor(inputSeriesSet.map((series) => ({
5829
+ const processedSeriesSet = this.seriesProcessor(inputSeriesSet.map(series => ({
5831
5830
  ...series,
5832
5831
  data: series.data || [],
5833
5832
  })));
5834
- this.legendSeriesSet = processedSeriesSet.filter((s) => s.showInLegend || typeof s.showInLegend === "undefined");
5833
+ this.legendSeriesSet = processedSeriesSet.filter(s => s.showInLegend || typeof s.showInLegend === "undefined");
5835
5834
  if (updateLegend) {
5836
5835
  this.legendInteractionAssist.update(processedSeriesSet);
5837
5836
  }
5838
5837
  // add render states to the series for use in the chart
5839
- const seriesSet = processedSeriesSet.map((s) => Object.assign({ renderState: this.renderStatesIndex[s.id]?.state }, s));
5838
+ const seriesSet = processedSeriesSet.map(s => Object.assign({ renderState: this.renderStatesIndex[s.id]?.state }, s));
5840
5839
  this.chart.update(seriesSet);
5841
5840
  this.publishRenderStates();
5842
5841
  }
@@ -5895,7 +5894,7 @@ class ChartAssist {
5895
5894
  const dataPoint = this.highlightedDataPoints[chartSeries.id];
5896
5895
  return ChartAssist.getLabel(chartSeries, dataPoint, scaleKey, formatterName, dataAccessorKey);
5897
5896
  }
5898
- getVisibleSeriesWithLegend = () => this.legendSeriesSet.filter((s) => !this.isSeriesHidden(s.id));
5897
+ getVisibleSeriesWithLegend = () => this.legendSeriesSet.filter(s => !this.isSeriesHidden(s.id));
5899
5898
  /**
5900
5899
  * Synchronize this chart assist's actions with IChartAssistEvents emitted by the specified
5901
5900
  * chart assist, and override this chart assist's getVisibleSeriesWithLegend method with the
@@ -5913,7 +5912,7 @@ class ChartAssist {
5913
5912
  this.syncSubscription = chartAssist.chartAssistSubject
5914
5913
  .pipe(takeUntil(chartAssist.chart.getEventBus().getStream(DESTROY_EVENT)))
5915
5914
  .subscribe((event) => {
5916
- const args = Object.keys(event.payload).map((key) => event.payload[key]);
5915
+ const args = Object.keys(event.payload).map(key => event.payload[key]);
5917
5916
  this.syncHandlerMap[event.type](...args);
5918
5917
  });
5919
5918
  }
@@ -5948,8 +5947,8 @@ class ChartAssist {
5948
5947
  this.isLegendActive = data;
5949
5948
  },
5950
5949
  };
5951
- each(Object.keys(eventHandlers), (key) => {
5952
- eventBus.getStream(key).subscribe((event) => {
5950
+ each(Object.keys(eventHandlers), key => {
5951
+ eventBus.getStream(key).subscribe(event => {
5953
5952
  eventHandlers[key](event.data);
5954
5953
  if (this.onEvent) {
5955
5954
  this.onEvent(event);
@@ -5971,10 +5970,10 @@ class LegendInteractionAssist {
5971
5970
  }
5972
5971
  update(seriesSet) {
5973
5972
  this.seriesGroups = this.getSeriesGroups(seriesSet);
5974
- this.seriesIndex = keyBy(seriesSet, (s) => s.id);
5973
+ this.seriesIndex = keyBy(seriesSet, s => s.id);
5975
5974
  this.resetSeries();
5976
5975
  // override render states
5977
- for (const series of seriesSet.filter((s) => s.renderState)) {
5976
+ for (const series of seriesSet.filter(s => s.renderState)) {
5978
5977
  this.renderStatesIndex[series.id] = new ChartAssistRenderStateData(series.id, series, series.renderState === RenderState.hidden
5979
5978
  ? RenderState.default
5980
5979
  : series.renderState, series.renderState !== RenderState.hidden);
@@ -6594,21 +6593,21 @@ class MouseInteractiveArea {
6594
6593
  */
6595
6594
  function mergeDomains(domains, scale) {
6596
6595
  if (scale.isContinuous()) {
6597
- const nonEmptyDomains = domains.filter((d) => d !== EMPTY_CONTINUOUS_DOMAIN);
6596
+ const nonEmptyDomains = domains.filter(d => d !== EMPTY_CONTINUOUS_DOMAIN);
6598
6597
  if (nonEmptyDomains.length === 0) {
6599
6598
  return EMPTY_CONTINUOUS_DOMAIN;
6600
6599
  }
6601
6600
  const domainMin = min$1(nonEmptyDomains
6602
- .filter((e) => typeof e[0] !== "undefined")
6603
- .map((e) => e[0]));
6601
+ .filter(e => typeof e[0] !== "undefined")
6602
+ .map(e => e[0]));
6604
6603
  const domainMax = max$1(nonEmptyDomains
6605
- .filter((e) => typeof e[1] !== "undefined")
6606
- .map((e) => e[1]));
6604
+ .filter(e => typeof e[1] !== "undefined")
6605
+ .map(e => e[1]));
6607
6606
  return [domainMin, domainMax];
6608
6607
  }
6609
- const maxLength = Math.max(...domains.map((d) => d.length));
6608
+ const maxLength = Math.max(...domains.map(d => d.length));
6610
6609
  return Array.from(Array(maxLength)).map((e, i) => {
6611
- const scalesDomains = domains.map((d) => (i < d.length ? d[i] : []));
6610
+ const scalesDomains = domains.map(d => (i < d.length ? d[i] : []));
6612
6611
  return uniq(flatten(scalesDomains));
6613
6612
  });
6614
6613
  }
@@ -6664,7 +6663,7 @@ function getFixedDomains(chartSeriesSet, scaleId) {
6664
6663
  */
6665
6664
  const getAutomaticDomain = (chartSeriesSet, scaleKey, scale) => {
6666
6665
  const fixedDomains = getFixedDomains(chartSeriesSet, scaleKey);
6667
- const domains = chartSeriesSet.map((cs) => {
6666
+ const domains = chartSeriesSet.map(cs => {
6668
6667
  // find fixed, continuous scales that are referenced by this series
6669
6668
  const filterScales = Object.keys(fixedDomains).reduce((result, next) => {
6670
6669
  const seriesScale = cs.scales[next];
@@ -6769,7 +6768,7 @@ class Scale {
6769
6768
  }
6770
6769
  /** See {@link IScale#reverse} */
6771
6770
  isDomainValid() {
6772
- return -1 === this.domain().findIndex((value) => value === undefined);
6771
+ return -1 === this.domain().findIndex(value => value === undefined);
6773
6772
  }
6774
6773
  reverse() {
6775
6774
  return this.reversed(!this.isReversed);
@@ -6810,7 +6809,7 @@ class Scale {
6810
6809
  class LinearScale extends Scale {
6811
6810
  constructor(id) {
6812
6811
  super(id);
6813
- this.formatters.tick = (value) => value?.toLocaleString();
6812
+ this.formatters.tick = value => value?.toLocaleString();
6814
6813
  }
6815
6814
  createD3Scale() {
6816
6815
  return scaleLinear();
@@ -6825,7 +6824,7 @@ class LinearScale extends Scale {
6825
6824
  return true;
6826
6825
  }
6827
6826
  isDomainValid() {
6828
- return -1 === this.domain().findIndex((value) => isNaN(value));
6827
+ return -1 === this.domain().findIndex(value => isNaN(value));
6829
6828
  }
6830
6829
  }
6831
6830
 
@@ -7342,7 +7341,7 @@ class MouseInteractiveAreaPlugin extends ChartPlugin {
7342
7341
  .getEventBus()
7343
7342
  .getStream(MOUSE_ACTIVE_EVENT)
7344
7343
  .pipe(takeUntil(this.destroy$))
7345
- .subscribe((event) => {
7344
+ .subscribe(event => {
7346
7345
  const active = event.data;
7347
7346
  if (!active && this.chart.getDataManager().chartSeriesSet) {
7348
7347
  this.highlightReset();
@@ -7352,7 +7351,7 @@ class MouseInteractiveAreaPlugin extends ChartPlugin {
7352
7351
  .getEventBus()
7353
7352
  .getStream(INTERACTION_VALUES_ACTIVE_EVENT)
7354
7353
  .pipe(takeUntil(this.destroy$))
7355
- .subscribe((event) => (this.interactionValuesActive = event.data));
7354
+ .subscribe(event => (this.interactionValuesActive = event.data));
7356
7355
  this.mouseInteractiveArea.interaction
7357
7356
  .pipe(takeUntil(this.destroy$))
7358
7357
  .subscribe((event) => {
@@ -7445,7 +7444,7 @@ class Lasagna {
7445
7444
  return this.getLayerContainer(layer.name);
7446
7445
  }
7447
7446
  removeLayer(layerName) {
7448
- const index = this.layers.findIndex((layer) => layer.name === layerName);
7447
+ const index = this.layers.findIndex(layer => layer.name === layerName);
7449
7448
  if (index === -1) {
7450
7449
  return;
7451
7450
  }
@@ -7467,7 +7466,7 @@ class Lasagna {
7467
7466
  .enter()
7468
7467
  .append("g")
7469
7468
  .attrs({
7470
- class: (d) => `${Lasagna.LAYER_CLASS} ${Lasagna.LAYER_CLASS}-${d.name}`,
7469
+ "class": (d) => `${Lasagna.LAYER_CLASS} ${Lasagna.LAYER_CLASS}-${d.name}`,
7471
7470
  "clip-path": (d) => d.clipped ? `url(#${this.clipPath})` : "",
7472
7471
  "pointer-events": "none",
7473
7472
  });
@@ -7714,7 +7713,7 @@ class Grid {
7714
7713
  });
7715
7714
  return renderingAreaContainer.append("rect").attrs({
7716
7715
  "pointer-events": "all",
7717
- fill: "transparent",
7716
+ "fill": "transparent",
7718
7717
  });
7719
7718
  }
7720
7719
  /**
@@ -7882,7 +7881,7 @@ class XYGrid extends Grid {
7882
7881
  set scales(scales) {
7883
7882
  this._scales = scales;
7884
7883
  if (this._scales) {
7885
- Object.keys(this._scales).forEach((scaleKey) => {
7884
+ Object.keys(this._scales).forEach(scaleKey => {
7886
7885
  // Defaulting to left
7887
7886
  let config = this.config().axis.left;
7888
7887
  let axisGenerator;
@@ -7890,8 +7889,8 @@ class XYGrid extends Grid {
7890
7889
  return;
7891
7890
  }
7892
7891
  this._scales[scaleKey]?.list
7893
- ?.filter((scale) => scale instanceof LinearScale)
7894
- .forEach((scale) => {
7892
+ ?.filter(scale => scale instanceof LinearScale)
7893
+ .forEach(scale => {
7895
7894
  if (scale?.id === this.leftScaleId) {
7896
7895
  config = this.config().axis.left;
7897
7896
  axisGenerator = axisLeft;
@@ -7986,12 +7985,12 @@ class XYGrid extends Grid {
7986
7985
  calculateAxesStyles(e, axes) {
7987
7986
  const renderStates = e.data;
7988
7987
  const emphasizedSeries = renderStates
7989
- .filter((rs) => rs.state === RenderState.emphasized && rs.series)
7990
- .map((rs) => rs.series);
7988
+ .filter(rs => rs.state === RenderState.emphasized && rs.series)
7989
+ .map(rs => rs.series);
7991
7990
  if (emphasizedSeries.length > 0) {
7992
7991
  const emphasizedYScales = uniq(emphasizedSeries
7993
- .map((s) => s?.scales["y"])
7994
- .filter((s) => !!s));
7992
+ .map(s => s?.scales["y"])
7993
+ .filter(s => !!s));
7995
7994
  if (emphasizedYScales.length <= 0) {
7996
7995
  return {};
7997
7996
  }
@@ -8095,12 +8094,12 @@ class XYGrid extends Grid {
8095
8094
  const dimension = this.config().dimension;
8096
8095
  const padding = dimension.padding;
8097
8096
  if (this.scales.x) {
8098
- each(this.scales.x.list, (xScale) => {
8097
+ each(this.scales.x.list, xScale => {
8099
8098
  xScale.range([padding.left, dimension.width() - padding.right]);
8100
8099
  });
8101
8100
  }
8102
8101
  if (this.scales.y) {
8103
- each(this.scales.y.list, (yScale) => {
8102
+ each(this.scales.y.list, yScale => {
8104
8103
  yScale.range([
8105
8104
  dimension.height() - padding.bottom,
8106
8105
  padding.top,
@@ -8398,7 +8397,7 @@ class XYGrid extends Grid {
8398
8397
  }
8399
8398
  return textInsideNext;
8400
8399
  }, elementsToFilter[0] && select$1(elementsToFilter[0]).text());
8401
- return elementsToFilter.filter((element) => arr.indexOf(element) === -1);
8400
+ return elementsToFilter.filter(element => arr.indexOf(element) === -1);
8402
8401
  }
8403
8402
  getElementsToHide(elementsToFilter, measurement, isBottomAxis) {
8404
8403
  const measureType = isBottomAxis ? "width" : "height";
@@ -8415,7 +8414,7 @@ class XYGrid extends Grid {
8415
8414
  return [];
8416
8415
  }
8417
8416
  const elementsToDisplay = this.elementsFiltering(elementsToFilter, measurement, measureType);
8418
- return elementsToFilter.filter((element) => elementsToDisplay.indexOf(element) === -1);
8417
+ return elementsToFilter.filter(element => elementsToDisplay.indexOf(element) === -1);
8419
8418
  }
8420
8419
  elementsFiltering(elementsToFilter, parameter, measureType) {
8421
8420
  let elementsToDisplay;
@@ -8696,8 +8695,8 @@ class DonutGaugeThresholdsRenderer extends RadialRenderer {
8696
8695
  .append("circle")
8697
8696
  .attr("class", GAUGE_THRESHOLD_MARKER_CLASS)
8698
8697
  .merge(markerSelection)
8699
- .attr("cx", (d) => markerGenerator.centroid(d)[0])
8700
- .attr("cy", (d) => markerGenerator.centroid(d)[1])
8698
+ .attr("cx", d => markerGenerator.centroid(d)[0])
8699
+ .attr("cy", d => markerGenerator.centroid(d)[1])
8701
8700
  .attr("r", this.config.markerRadius)
8702
8701
  .style("fill", (d, i) => `var(--nui-color-${data[i].hit ? "text-light" : "icon-default"})`)
8703
8702
  .style("stroke-width", 0);
@@ -8805,7 +8804,7 @@ class DonutGaugeLabelsPlugin extends ChartPlugin {
8805
8804
  const labelGenerator = arc()
8806
8805
  .outerRadius(labelRadius)
8807
8806
  .innerRadius(labelRadius);
8808
- const formatter = thresholdsSeries?.scales.r.formatters[this.config.formatterName] ?? ((d) => d);
8807
+ const formatter = thresholdsSeries?.scales.r.formatters[this.config.formatterName] ?? (d => d);
8809
8808
  const data = cloneDeep(this.config.disableThresholdLabels ? [] : thresholdsSeries?.data);
8810
8809
  if (isUndefined(data)) {
8811
8810
  throw new Error("Gauge threshold series data is undefined");
@@ -8821,10 +8820,10 @@ class DonutGaugeLabelsPlugin extends ChartPlugin {
8821
8820
  .append("text")
8822
8821
  .attr("class", GAUGE_THRESHOLD_LABEL_CLASS)
8823
8822
  .merge(labelSelection)
8824
- .attr("transform", (d) => `translate(${labelGenerator.centroid(d)})`)
8823
+ .attr("transform", d => `translate(${labelGenerator.centroid(d)})`)
8825
8824
  .attr("title", (d, i) => formatter(data[i].value))
8826
- .style("text-anchor", (d) => this.getTextAnchor(d.startAngle))
8827
- .style("dominant-baseline", (d) => this.getAlignmentBaseline(d.startAngle))
8825
+ .style("text-anchor", d => this.getTextAnchor(d.startAngle))
8826
+ .style("dominant-baseline", d => this.getAlignmentBaseline(d.startAngle))
8828
8827
  .text((d, i) => formatter(data[i].value));
8829
8828
  }
8830
8829
  getTextAnchor(angle) {
@@ -8957,7 +8956,7 @@ class LinearGaugeLabelsPlugin extends ChartPlugin {
8957
8956
  // removing this value to avoid rendering a label for it
8958
8957
  data.pop();
8959
8958
  const formatter = this.thresholdsSeries?.scales[this.isHorizontal ? "x" : "y"]
8960
- .formatters[this.config.formatterName] ?? ((d) => d);
8959
+ .formatters[this.config.formatterName] ?? (d => d);
8961
8960
  const labelSelection = gaugeThresholdsLabelsGroup
8962
8961
  .selectAll(`text.${GAUGE_THRESHOLD_LABEL_CLASS}`)
8963
8962
  .data(data);
@@ -8969,8 +8968,8 @@ class LinearGaugeLabelsPlugin extends ChartPlugin {
8969
8968
  .merge(labelSelection)
8970
8969
  .attr("transform", (d, i) => `translate(${this.xTranslate(d, i)}, ${this.yTranslate(d, i)})`)
8971
8970
  .attr("title", (d, i) => formatter(data[i].value))
8972
- .style("text-anchor", (d) => this.getTextAnchor())
8973
- .style("dominant-baseline", (d) => this.getAlignmentBaseline())
8971
+ .style("text-anchor", d => this.getTextAnchor())
8972
+ .style("dominant-baseline", d => this.getAlignmentBaseline())
8974
8973
  .text((d, i) => formatter(data[i].value));
8975
8974
  }
8976
8975
  xTranslate = (d, i) => {
@@ -9230,7 +9229,7 @@ function gatherCategories(chartSeriesSet, type = "category") {
9230
9229
  accInner.push(categoryAccessor?.(datum, index, chartSeries.data, chartSeries));
9231
9230
  return accInner;
9232
9231
  }, []);
9233
- return unionBy(acc, categories, (d) => d.valueOf());
9232
+ return unionBy(acc, categories, d => d.valueOf());
9234
9233
  }, []);
9235
9234
  }
9236
9235
 
@@ -9258,7 +9257,7 @@ function stackedPreprocessor(chartSeriesSet, isVisible) {
9258
9257
  if (chartSeriesSet.length === 0) {
9259
9258
  return chartSeriesSet;
9260
9259
  }
9261
- const categories = gatherCategories(chartSeriesSet.filter((chartSeries) => isUndefined(chartSeries.preprocess) || chartSeries.preprocess));
9260
+ const categories = gatherCategories(chartSeriesSet.filter(chartSeries => isUndefined(chartSeries.preprocess) || chartSeries.preprocess));
9262
9261
  // This is adding metadata to the dataset and filling missing
9263
9262
  chartSeriesSet.reduce((acc, chartSeries) => {
9264
9263
  if (!isUndefined(chartSeries.preprocess) && !chartSeries.preprocess) {
@@ -9952,11 +9951,11 @@ class GaugeUtil {
9952
9951
  .sort((a, b) => a.value - b.value);
9953
9952
  const activeThreshold = gaugeConfig
9954
9953
  .thresholds?.reversed
9955
- ? thresholds?.find((threshold) => !isUndefined(threshold.hit) && !threshold.hit)
9954
+ ? thresholds?.find(threshold => !isUndefined(threshold.hit) && !threshold.hit)
9956
9955
  : thresholds
9957
9956
  ?.slice()
9958
9957
  .reverse()
9959
- .find((threshold) => threshold.hit);
9958
+ .find(threshold => threshold.hit);
9960
9959
  return {
9961
9960
  thresholds,
9962
9961
  activeThreshold,
@@ -9974,7 +9973,7 @@ class GaugeUtil {
9974
9973
  value = 0;
9975
9974
  }
9976
9975
  const thresholdDefs = gaugeConfig.thresholds?.definitions || {};
9977
- Object.keys(thresholdDefs || {}).forEach((thresholdId) => {
9976
+ Object.keys(thresholdDefs || {}).forEach(thresholdId => {
9978
9977
  const threshold = thresholdDefs[thresholdId];
9979
9978
  if (threshold) {
9980
9979
  if (threshold.value > gaugeConfig.max) {
@@ -10128,9 +10127,9 @@ class PathMarker {
10128
10127
  constructor(d) {
10129
10128
  this.element = document.createElement("path");
10130
10129
  this.setAttributes({
10131
- class: "nui-chart-element-marker nui-chart--path__outline",
10130
+ "class": "nui-chart-element-marker nui-chart--path__outline",
10132
10131
  "vector-effect": "non-scaling-stroke",
10133
- d: d,
10132
+ "d": d,
10134
10133
  });
10135
10134
  }
10136
10135
  setColor(color) {
@@ -10220,7 +10219,7 @@ const domainWithAuxiliarySeries = (additionalSeriesFn, domainCalculator) => (cha
10220
10219
  class PointScale extends Scale {
10221
10220
  constructor(id) {
10222
10221
  super(id);
10223
- this.formatters.tick = (value) => value;
10222
+ this.formatters.tick = value => value;
10224
10223
  }
10225
10224
  createD3Scale() {
10226
10225
  return scalePoint();
@@ -10369,7 +10368,7 @@ class TimeScale extends Scale {
10369
10368
  return true;
10370
10369
  }
10371
10370
  isDomainValid() {
10372
- return (-1 === this.domain().findIndex((value) => isNaN(value.getTime())));
10371
+ return -1 === this.domain().findIndex(value => isNaN(value.getTime()));
10373
10372
  }
10374
10373
  }
10375
10374
 
@@ -11056,8 +11055,8 @@ class RadialPopoverPlugin extends ChartPopoverPlugin {
11056
11055
  if (!chartElement) {
11057
11056
  throw new Error("Chart parent node is not defined");
11058
11057
  }
11059
- const dataPointsLeft = Math.min(...valArr.map((d) => d.position.x));
11060
- const dataPointsTop = Math.min(...valArr.map((d) => d.position.y));
11058
+ const dataPointsLeft = Math.min(...valArr.map(d => d.position.x));
11059
+ const dataPointsTop = Math.min(...valArr.map(d => d.position.y));
11061
11060
  const left = chartElement.offsetLeft +
11062
11061
  this.chart.getGrid().config().dimension.margin.left +
11063
11062
  dataPointsLeft +
@@ -11389,7 +11388,7 @@ class ZoomPlugin extends ChartPlugin {
11389
11388
  result[next.id] = [
11390
11389
  selection[0],
11391
11390
  selection[1] + widthCorrection,
11392
- ].map((x) => next.invert(x));
11391
+ ].map(x => next.invert(x));
11393
11392
  return result;
11394
11393
  }, {});
11395
11394
  // zoom the chart
@@ -11784,7 +11783,7 @@ class TimeseriesZoomPluginsSyncService {
11784
11783
  return;
11785
11784
  }
11786
11785
  const collection = [...this.collections[collectionId]];
11787
- const idx = collection.findIndex((p) => p === plugin);
11786
+ const idx = collection.findIndex(p => p === plugin);
11788
11787
  if (idx === -1) {
11789
11788
  return;
11790
11789
  }
@@ -11794,14 +11793,14 @@ class TimeseriesZoomPluginsSyncService {
11794
11793
  syncPositionInsideCollection(collectionId, startDate, endDate) {
11795
11794
  const collection = this.getPlugins(collectionId);
11796
11795
  setTimeout(() => {
11797
- collection.forEach((plugin) => {
11796
+ collection.forEach(plugin => {
11798
11797
  plugin.moveBrushByDate(startDate, endDate);
11799
11798
  });
11800
11799
  });
11801
11800
  }
11802
11801
  clearZoomInsideCollection(collectionId) {
11803
11802
  const collection = this.getPlugins(collectionId);
11804
- collection.forEach((plugin) => {
11803
+ collection.forEach(plugin => {
11805
11804
  plugin.clearBrush();
11806
11805
  });
11807
11806
  }
@@ -11886,7 +11885,7 @@ class SparkChartAssist {
11886
11885
  * See {@link IChartAssist#update}
11887
11886
  */
11888
11887
  update(inputSeriesSet) {
11889
- const sparks = inputSeriesSet.map((chartSeries) => ({
11888
+ const sparks = inputSeriesSet.map(chartSeries => ({
11890
11889
  id: chartSeries.id,
11891
11890
  chartSeriesSet: [chartSeries],
11892
11891
  }));
@@ -11902,7 +11901,7 @@ class SparkChartAssist {
11902
11901
  this.sparks = inputSparks.map((spark, index) => {
11903
11902
  const lastSpark = index === inputSparks.length - 1;
11904
11903
  const existingSparkIndex = spark.id
11905
- ? this.sparks.findIndex((existingSpark) => existingSpark.id === spark.id)
11904
+ ? this.sparks.findIndex(existingSpark => existingSpark.id === spark.id)
11906
11905
  : -1;
11907
11906
  if (existingSparkIndex !== -1) {
11908
11907
  spark.chart = this.reconfigureChart(this.sparks[existingSparkIndex].chart, lastSpark);
@@ -11945,15 +11944,15 @@ class SparkChartAssist {
11945
11944
  return chart;
11946
11945
  }
11947
11946
  configureEventSubscriptions(eventBus) {
11948
- eventBus.getStream(INTERACTION_DATA_POINTS_EVENT).subscribe((event) => {
11947
+ eventBus.getStream(INTERACTION_DATA_POINTS_EVENT).subscribe(event => {
11949
11948
  if (event.data.interactionType === InteractionType.MouseMove) {
11950
11949
  const dataPoints = event.data.dataPoints;
11951
- Object.keys(dataPoints).forEach((seriesId) => {
11950
+ Object.keys(dataPoints).forEach(seriesId => {
11952
11951
  this.highlightedDataPoints[seriesId] = Object.assign({}, dataPoints[seriesId]);
11953
11952
  });
11954
11953
  }
11955
11954
  });
11956
- eventBus.getStream(MOUSE_ACTIVE_EVENT).subscribe((event) => {
11955
+ eventBus.getStream(MOUSE_ACTIVE_EVENT).subscribe(event => {
11957
11956
  this.isLegendActive = event.data;
11958
11957
  });
11959
11958
  }
@@ -12727,8 +12726,8 @@ class LineSelectSeriesInteractionStrategy {
12727
12726
  .attrs({
12728
12727
  "stroke-width": renderer.config.strokeWidth +
12729
12728
  2 * this.INTERACTION_MARGIN,
12730
- stroke: "transparent",
12731
- fill: "none",
12729
+ "stroke": "transparent",
12730
+ "fill": "none",
12732
12731
  })
12733
12732
  .on("mouseenter", () => {
12734
12733
  const dataPoint = {
@@ -13200,10 +13199,10 @@ function applyStackMetadata(baseAccessorKey, valueAccessorKey, chartSeries, isVi
13200
13199
  // THE SOFTWARE.
13201
13200
  function stackedAreaAccessors(colorProvider, markerProvider) {
13202
13201
  const areaAccessors = new AreaAccessors(colorProvider, markerProvider);
13203
- areaAccessors.data.x = (d) => d.x;
13202
+ areaAccessors.data.x = d => d.x;
13204
13203
  areaAccessors.data.y = areaAccessors.data.absoluteY1;
13205
13204
  areaAccessors.data.y0 = () => 0;
13206
- areaAccessors.data.y1 = (d) => d.y;
13205
+ areaAccessors.data.y1 = d => d.y;
13207
13206
  return areaAccessors;
13208
13207
  }
13209
13208