@nova-ui/charts 11.11.0-3141 → 12.0.0-3316

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.
Files changed (49) hide show
  1. package/bundles/css/styles.css +1 -1
  2. package/bundles/nova-ui-charts.umd.js +203 -199
  3. package/bundles/nova-ui-charts.umd.js.map +1 -1
  4. package/chart/chart.component.d.ts +0 -1
  5. package/esm2015/chart/chart.component.js +1 -2
  6. package/esm2015/chart-donut-content/chart-donut-content.component.js +2 -2
  7. package/esm2015/chart-marker/chart-marker.component.js +1 -1
  8. package/esm2015/chart-popover/chart-popover.component.js +2 -2
  9. package/esm2015/chart-tooltips/chart-tooltip.component.js +1 -1
  10. package/esm2015/chart-tooltips/chart-tooltips.component.js +2 -2
  11. package/esm2015/core/chart-assists/chart-assist.js +1 -1
  12. package/esm2015/core/chart-collection.js +1 -1
  13. package/esm2015/core/chart.js +1 -1
  14. package/esm2015/core/common/data-manager.js +1 -1
  15. package/esm2015/core/common/data-series.js +2 -3
  16. package/esm2015/core/common/mouse-interactive-area.js +1 -1
  17. package/esm2015/core/common/palette/palettes.js +3 -3
  18. package/esm2015/core/common/renderer.js +1 -1
  19. package/esm2015/core/grid/default-text-overflow-handler.js +1 -1
  20. package/esm2015/core/grid/grid.js +3 -3
  21. package/esm2015/core/grid/xy-grid.js +1 -1
  22. package/esm2015/core/plugins/chart-popover-plugin.js +1 -1
  23. package/esm2015/core/plugins/gauge/donut-gauge-labels-plugin.js +1 -1
  24. package/esm2015/core/plugins/gauge/linear-gauge-labels-plugin.js +1 -1
  25. package/esm2015/core/plugins/radial-popover-plugin.js +1 -1
  26. package/esm2015/core/plugins/tooltips/chart-tooltips-plugin.js +1 -1
  27. package/esm2015/gauge/gauge-util.js +6 -3
  28. package/esm2015/legend/legend-series/legend-series.component.js +1 -1
  29. package/esm2015/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.js +1 -1
  30. package/esm2015/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.js +1 -1
  31. package/esm2015/renderers/area/area-accessors.js +1 -1
  32. package/esm2015/renderers/area/area-renderer.js +1 -1
  33. package/esm2015/renderers/bar/bar-renderer.js +5 -3
  34. package/esm2015/renderers/bar/highlight-strategies/bar-highlight-strategy.js +1 -1
  35. package/esm2015/renderers/bar/highlight-strategies/bar-series-highlight-strategy.js +1 -1
  36. package/esm2015/renderers/bar/linear-gauge-thresholds-renderer.js +1 -1
  37. package/esm2015/renderers/bar/preprocessor-utils.js +1 -1
  38. package/esm2015/renderers/line/line-renderer.js +1 -1
  39. package/esm2015/renderers/marker-utils.js +1 -1
  40. package/esm2015/renderers/radial/radial-renderer.js +3 -2
  41. package/esm2015/renderers/xy-renderer.js +1 -1
  42. package/esm2015/thresholds/thresholds-service.js +1 -1
  43. package/fesm2015/nova-ui-charts.js +23 -19
  44. package/fesm2015/nova-ui-charts.js.map +1 -1
  45. package/nova-ui-charts.metadata.json +1 -1
  46. package/package.json +5 -6
  47. package/sdk/locale/messages.en.xlf +353 -0
  48. package/bundles/nova-ui-charts.umd.min.js +0 -2
  49. package/bundles/nova-ui-charts.umd.min.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/animations'), require('d3-force'), require('d3-selection'), require('lodash/each'), require('lodash/isEqual'), require('lodash/isNil'), require('rxjs'), require('rxjs/operators'), require('@nova-ui/bits'), require('lodash/isFunction'), require('d3-selection-multi'), require('lodash/isUndefined'), require('lodash/findKey'), require('lodash/debounce'), require('resize-observer-polyfill'), require('lodash/isEmpty'), require('lodash/cloneDeep'), require('lodash/sortBy'), require('lodash/unionWith'), require('lodash/values'), require('d3-color'), require('lodash/isArray'), require('lodash/startsWith'), require('lodash/trim'), require('lodash/trimEnd'), require('lodash/trimStart'), require('d3-array'), require('lodash/defaultsDeep'), require('lodash/flatten'), require('lodash/uniq'), require('lodash/get'), require('lodash/identity'), require('d3-shape'), require('d3-scale'), require('lodash/toString'), require('lodash/indexOf'), require('lodash/keyBy'), require('lodash/unionBy'), require('lodash/filter'), require('lodash/includes'), require('lodash/orderBy'), require('d3-axis'), require('lodash/clone'), require('lodash/find'), require('d3-time'), require('moment/moment'), require('lodash/pickBy'), require('d3-brush'), require('lodash/findIndex')) :
3
- typeof define === 'function' && define.amd ? define('@nova-ui/charts', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', '@angular/animations', 'd3-force', 'd3-selection', 'lodash/each', 'lodash/isEqual', 'lodash/isNil', 'rxjs', 'rxjs/operators', '@nova-ui/bits', 'lodash/isFunction', 'd3-selection-multi', 'lodash/isUndefined', 'lodash/findKey', 'lodash/debounce', 'resize-observer-polyfill', 'lodash/isEmpty', 'lodash/cloneDeep', 'lodash/sortBy', 'lodash/unionWith', 'lodash/values', 'd3-color', 'lodash/isArray', 'lodash/startsWith', 'lodash/trim', 'lodash/trimEnd', 'lodash/trimStart', 'd3-array', 'lodash/defaultsDeep', 'lodash/flatten', 'lodash/uniq', 'lodash/get', 'lodash/identity', 'd3-shape', 'd3-scale', 'lodash/toString', 'lodash/indexOf', 'lodash/keyBy', 'lodash/unionBy', 'lodash/filter', 'lodash/includes', 'lodash/orderBy', 'd3-axis', 'lodash/clone', 'lodash/find', 'd3-time', 'moment/moment', 'lodash/pickBy', 'd3-brush', 'lodash/findIndex'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.nui = global.nui || {}, global.nui.charts = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.ng.animations, global.d3, global.d3, global._.each, global._.isEqual, global._.isNil, global.rxjs, global.rxjs.operators, global.nui.bits, global._.isFunction, global.d3, global._.isUndefined, global._.findKey, global._.debounce, global.ResizeObserver, global._.isEmpty, global._.cloneDeep, global._.sortBy, global._.unionWith, global._.values, global.d3, global._.isArray, global._.startsWith, global._.trim, global._.trimEnd, global._.trimStart, global.d3, global._.defaultsDeep, global._.flatten, global._.uniq, global._.get, global._.identity, global.d3, global.d3, global._.toString, global._.indexOf, global._.keyBy, global._.unionBy, global._.filter, global._.includes, global._.orderBy, global.d3, global._.clone, global._.find, global.d3, global.moment, global._.pickBy, global.d3, global._.findIndex));
5
- }(this, (function (exports, overlay, portal, core, animations, d3Force, d3Selection, each, isEqual, isNil, rxjs, operators, bits, isFunction, d3SelectionMulti, isUndefined, findKey, debounce, ResizeObserver, isEmpty, cloneDeep, sortBy, unionWith, values, d3Color, isArray, startsWith, trim, trimEnd, trimStart, d3Array, defaultsDeep, flatten, uniq, get, identity, d3Shape, d3Scale, toString, indexOf, keyBy, unionBy, filter, includes, orderBy, d3Axis, clone, find, d3Time, moment, pickBy, d3Brush, findIndex) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/animations'), require('d3-force'), require('d3-selection'), require('lodash/each'), require('lodash/isEqual'), require('lodash/isNil'), require('rxjs'), require('rxjs/operators'), require('@nova-ui/bits'), require('lodash/isFunction'), require('d3-selection-multi'), require('lodash/isUndefined'), require('lodash/findKey'), require('lodash/debounce'), require('lodash/isEmpty'), require('lodash/cloneDeep'), require('lodash/sortBy'), require('lodash/unionWith'), require('lodash/values'), require('d3-color'), require('lodash/isArray'), require('lodash/startsWith'), require('lodash/trim'), require('lodash/trimEnd'), require('lodash/trimStart'), require('d3-array'), require('lodash/defaultsDeep'), require('lodash/flatten'), require('lodash/uniq'), require('lodash/get'), require('lodash/identity'), require('d3-shape'), require('d3-scale'), require('lodash/toString'), require('lodash/indexOf'), require('lodash/keyBy'), require('lodash/unionBy'), require('lodash/filter'), require('lodash/includes'), require('lodash/orderBy'), require('d3-axis'), require('lodash/clone'), require('lodash/find'), require('d3-time'), require('moment/moment'), require('lodash/pickBy'), require('d3-brush'), require('lodash/findIndex')) :
3
+ typeof define === 'function' && define.amd ? define('@nova-ui/charts', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', '@angular/animations', 'd3-force', 'd3-selection', 'lodash/each', 'lodash/isEqual', 'lodash/isNil', 'rxjs', 'rxjs/operators', '@nova-ui/bits', 'lodash/isFunction', 'd3-selection-multi', 'lodash/isUndefined', 'lodash/findKey', 'lodash/debounce', 'lodash/isEmpty', 'lodash/cloneDeep', 'lodash/sortBy', 'lodash/unionWith', 'lodash/values', 'd3-color', 'lodash/isArray', 'lodash/startsWith', 'lodash/trim', 'lodash/trimEnd', 'lodash/trimStart', 'd3-array', 'lodash/defaultsDeep', 'lodash/flatten', 'lodash/uniq', 'lodash/get', 'lodash/identity', 'd3-shape', 'd3-scale', 'lodash/toString', 'lodash/indexOf', 'lodash/keyBy', 'lodash/unionBy', 'lodash/filter', 'lodash/includes', 'lodash/orderBy', 'd3-axis', 'lodash/clone', 'lodash/find', 'd3-time', 'moment/moment', 'lodash/pickBy', 'd3-brush', 'lodash/findIndex'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.nui = global.nui || {}, global.nui.charts = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.ng.animations, global.d3, global.d3, global._.each, global._.isEqual, global._.isNil, global.rxjs, global.rxjs.operators, global.nui.bits, global._.isFunction, global.d3, global._.isUndefined, global._.findKey, global._.debounce, global._.isEmpty, global._.cloneDeep, global._.sortBy, global._.unionWith, global._.values, global.d3, global._.isArray, global._.startsWith, global._.trim, global._.trimEnd, global._.trimStart, global.d3, global._.defaultsDeep, global._.flatten, global._.uniq, global._.get, global._.identity, global.d3, global.d3, global._.toString, global._.indexOf, global._.keyBy, global._.unionBy, global._.filter, global._.includes, global._.orderBy, global.d3, global._.clone, global._.find, global.d3, global.moment, global._.pickBy, global.d3, global._.findIndex));
5
+ })(this, (function (exports, overlay, portal, core, animations, d3Force, d3Selection, each, isEqual, isNil, rxjs, operators, bits, isFunction, d3SelectionMulti, isUndefined, findKey, debounce, isEmpty, cloneDeep, sortBy, unionWith, values, d3Color, isArray, startsWith, trim, trimEnd, trimStart, d3Array, defaultsDeep, flatten, uniq, get, identity, d3Shape, d3Scale, toString, indexOf, keyBy, unionBy, filter, includes, orderBy, d3Axis, clone, find, d3Time, moment, pickBy, d3Brush, findIndex) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -13,7 +13,6 @@
13
13
  var isUndefined__default = /*#__PURE__*/_interopDefaultLegacy(isUndefined);
14
14
  var findKey__default = /*#__PURE__*/_interopDefaultLegacy(findKey);
15
15
  var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
16
- var ResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(ResizeObserver);
17
16
  var isEmpty__default = /*#__PURE__*/_interopDefaultLegacy(isEmpty);
18
17
  var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
19
18
  var sortBy__default = /*#__PURE__*/_interopDefaultLegacy(sortBy);
@@ -63,7 +62,7 @@
63
62
  ]),
64
63
  ]),
65
64
  ],
66
- styles: [":host{display:block;pointer-events:none}.nui-chart-tooltip{background-color:var(--nui-color-bg-inverse,#111);color:var(--nui-color-text-inverse,#fff);line-height:normal}"]
65
+ styles: [":host{display:block;pointer-events:none}.nui-chart-tooltip{background-color:var(--nui-color-bg-inverse,#111);color:var(--nui-color-text-inverse,#fff);line-height:normal}\n"]
67
66
  },] }
68
67
  ];
69
68
  ChartTooltipComponent.propDecorators = {
@@ -168,7 +167,7 @@
168
167
  { type: core.Component, args: [{
169
168
  selector: "nui-chart-donut-content",
170
169
  template: "<div *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",
171
- styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}"]
170
+ styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"]
172
171
  },] }
173
172
  ];
174
173
  ChartDonutContentComponent.propDecorators = {
@@ -215,7 +214,7 @@
215
214
  }
216
215
  currentTooltipDirectivesIndex[seriesId] = tooltip;
217
216
  });
218
- var directivesChanged = !isEqual__default['default'](currentTooltipDirectivesIndex, this.tooltipDirectivesIndex);
217
+ var directivesChanged = !isEqual__default["default"](currentTooltipDirectivesIndex, this.tooltipDirectivesIndex);
219
218
  if (this.closePending || directivesChanged || !this.isOpen) {
220
219
  clearTimeout(this.openTimeout);
221
220
  this.openTimeout = setTimeout(function () {
@@ -285,7 +284,7 @@
285
284
  var _this = this;
286
285
  var nodes = Object.keys(tooltipPositions).map(function (seriesId) {
287
286
  var position = tooltipPositions[seriesId];
288
- if (isNil__default['default'](position.height) || isNil__default['default'](position.width)) {
287
+ if (isNil__default["default"](position.height) || isNil__default["default"](position.width)) {
289
288
  throw new Error("Position height or width are not defined");
290
289
  }
291
290
  var props = {
@@ -310,7 +309,7 @@
310
309
  .alphaDecay(0.3)
311
310
  .force("collisionForce", collisionForce);
312
311
  simulation.on("tick", function () {
313
- each__default['default'](nodes, function (node) {
312
+ each__default["default"](nodes, function (node) {
314
313
  var tooltip = tooltipIndex[node.seriesId];
315
314
  d3Selection.select(tooltip.getOverlayElement())
316
315
  .style(_this.isVertical() ? "top" : "left", (_this.isVertical() ? node.y : node.x) + "px");
@@ -327,7 +326,7 @@
327
326
  { type: core.Component, args: [{
328
327
  selector: "nui-chart-tooltips",
329
328
  template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container *ngTemplateOutlet=\"template; context: {dataPoint:item.value}\"></ng-container>\n </ng-template>\n\n <div 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",
330
- styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}"]
329
+ styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"]
331
330
  },] }
332
331
  ];
333
332
  ChartTooltipsComponent.ctorParameters = function () { return [
@@ -384,7 +383,7 @@
384
383
  { type: core.Component, args: [{
385
384
  selector: "nui-chart-popover",
386
385
  template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover 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 *ngTemplateOutlet=\"template; context: {dataPoints:plugin.dataPoints}\"></ng-container>\n </ng-template>\n</div>\n",
387
- styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}"]
386
+ styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"]
388
387
  },] }
389
388
  ];
390
389
  ChartPopoverComponent.ctorParameters = function () { return [
@@ -419,7 +418,7 @@
419
418
  if (changes["color"]) {
420
419
  this.marker.setColor(this.color);
421
420
  }
422
- if (this.marker && this.marker.getSvg && isFunction__default['default'](this.marker.getSvg)) {
421
+ if (this.marker && this.marker.getSvg && isFunction__default["default"](this.marker.getSvg)) {
423
422
  this.svg.next(this.marker.getSvg());
424
423
  }
425
424
  }
@@ -451,7 +450,7 @@
451
450
  { type: core.Component, args: [{
452
451
  selector: "nui-chart-marker",
453
452
  template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\">\n <g #svgContent></g>\n</svg>\n",
454
- styles: [":host{font-size:0}"]
453
+ styles: [":host{font-size:0}\n"]
455
454
  },] }
456
455
  ];
457
456
  ChartMarkerComponent.ctorParameters = function () { return [
@@ -765,7 +764,7 @@
765
764
  ar[i] = from[i];
766
765
  }
767
766
  }
768
- return to.concat(ar || from);
767
+ return to.concat(ar || Array.prototype.slice.call(from));
769
768
  }
770
769
  function __await(v) {
771
770
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -860,7 +859,7 @@
860
859
  };
861
860
  EventBus.prototype.destroy = function () {
862
861
  var _this = this;
863
- each__default['default'](Object.keys(this.streams), function (key) {
862
+ each__default["default"](Object.keys(this.streams), function (key) {
864
863
  _this.streams[key].complete();
865
864
  });
866
865
  };
@@ -896,7 +895,7 @@
896
895
  if (!this.eventBus) {
897
896
  this.initializeEventBus();
898
897
  }
899
- each__default['default'](this.events, function (event) {
898
+ each__default["default"](this.events, function (event) {
900
899
  _this.subscribe(index, chart.getEventBus().getStream(event), function (value) {
901
900
  var _a;
902
901
  // this is where we check for the __broadcast__ flag, which means it originated in the chart collection
@@ -919,7 +918,7 @@
919
918
  */
920
919
  ChartCollection.prototype.removeChart = function (chart) {
921
920
  var key = this.getChartKey(chart);
922
- if (isUndefined__default['default'](key)) {
921
+ if (isUndefined__default["default"](key)) {
923
922
  throw new Error("Chart not registered!");
924
923
  }
925
924
  this.unsubscribeChart(key);
@@ -984,7 +983,7 @@
984
983
  ChartCollection.prototype.subscribe = function (chartKey, observable, next) {
985
984
  var sub = observable.subscribe(next);
986
985
  var chartSubscriptions = this.subscriptions[chartKey];
987
- if (isUndefined__default['default'](chartSubscriptions)) {
986
+ if (isUndefined__default["default"](chartSubscriptions)) {
988
987
  chartSubscriptions = [];
989
988
  this.subscriptions[chartKey] = chartSubscriptions;
990
989
  }
@@ -996,13 +995,13 @@
996
995
  * @param {string} chartKey
997
996
  */
998
997
  ChartCollection.prototype.unsubscribeChart = function (chartKey) {
999
- each__default['default'](this.subscriptions[chartKey], function (sub) {
998
+ each__default["default"](this.subscriptions[chartKey], function (sub) {
1000
999
  sub.unsubscribe();
1001
1000
  });
1002
1001
  delete this.subscriptions[chartKey];
1003
1002
  };
1004
1003
  ChartCollection.prototype.getChartKey = function (chart) {
1005
- return findKey__default['default'](this.charts, function (c) { return c === chart; });
1004
+ return findKey__default["default"](this.charts, function (c) { return c === chart; });
1006
1005
  };
1007
1006
  return ChartCollection;
1008
1007
  }());
@@ -1016,7 +1015,7 @@
1016
1015
  }
1017
1016
  ChartCollectionService.prototype.getChartCollection = function (collectionId) {
1018
1017
  var collection = this.collections[collectionId];
1019
- if (isUndefined__default['default'](collection)) {
1018
+ if (isUndefined__default["default"](collection)) {
1020
1019
  collection = new ChartCollection();
1021
1020
  this.collections[collectionId] = collection;
1022
1021
  }
@@ -1097,8 +1096,8 @@
1097
1096
  };
1098
1097
  ChartComponent.prototype.ngAfterViewInit = function () {
1099
1098
  var _this = this;
1100
- this.resizeHandler = debounce__default['default'](function () { return _this.redraw(); }, 10);
1101
- this.resizeObserver = new ResizeObserver__default['default'](function () {
1099
+ this.resizeHandler = debounce__default["default"](function () { return _this.redraw(); }, 10);
1100
+ this.resizeObserver = new ResizeObserver(function () {
1102
1101
  // This was suggested here https://github.com/angular/zone.js/issues/1011
1103
1102
  _this.ngZone.run(function () { return _this.resizeHandler(); });
1104
1103
  });
@@ -1284,7 +1283,7 @@
1284
1283
  * @returns boolean indicating whether the series has a primary or secondary description
1285
1284
  */
1286
1285
  LegendSeriesComponent.prototype.hasInputDescription = function () {
1287
- return !isEmpty__default['default'](this.descriptionPrimary) || !isEmpty__default['default'](this.descriptionSecondary);
1286
+ return !isEmpty__default["default"](this.descriptionPrimary) || !isEmpty__default["default"](this.descriptionSecondary);
1288
1287
  };
1289
1288
  /**
1290
1289
  * @returns boolean indicating whether the series has a projected description
@@ -1333,7 +1332,7 @@
1333
1332
  selector: "nui-basic-legend-tile",
1334
1333
  template: "<div class=\"nui-basic-legend-tile\">\n <ng-content></ng-content>\n</div>\n",
1335
1334
  encapsulation: core.ViewEncapsulation.Emulated,
1336
- styles: [".nui-basic-legend-tile{height:100%;min-height:30px;min-width:30px;display:flex;align-items:center;justify-content:center}"]
1335
+ styles: [".nui-basic-legend-tile{height:100%;min-height:30px;min-width:30px;display:flex;align-items:center;justify-content:center}\n"]
1337
1336
  },] }
1338
1337
  ];
1339
1338
 
@@ -1356,10 +1355,10 @@
1356
1355
  }
1357
1356
  };
1358
1357
  RichLegendTileComponent.prototype.hasInputValue = function () {
1359
- return !isNil__default['default'](this.value);
1358
+ return !isNil__default["default"](this.value);
1360
1359
  };
1361
1360
  RichLegendTileComponent.prototype.hasInputUnitLabel = function () {
1362
- return !isNil__default['default'](this.unitLabel);
1361
+ return !isNil__default["default"](this.unitLabel);
1363
1362
  };
1364
1363
  return RichLegendTileComponent;
1365
1364
  }());
@@ -1368,7 +1367,7 @@
1368
1367
  selector: "nui-rich-legend-tile",
1369
1368
  template: "<div class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"rightEdge.children.length > 0\"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"seriesHasAdditionalContent\">\n <div 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 *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\">\n {{ value }}\n </div>\n <div *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",
1370
1369
  encapsulation: core.ViewEncapsulation.Emulated,
1371
- 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__icon,.nui-rich-legend-tile__point-marker{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}"]
1370
+ 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"]
1372
1371
  },] }
1373
1372
  ];
1374
1373
  RichLegendTileComponent.ctorParameters = function () { return [
@@ -1399,10 +1398,10 @@
1399
1398
  }
1400
1399
 
1401
1400
  function getColorValueByName(colorVariable) {
1402
- if (!startsWith__default['default'](colorVariable, "var(")) {
1401
+ if (!startsWith__default["default"](colorVariable, "var(")) {
1403
1402
  return colorVariable;
1404
1403
  }
1405
- var colorName = trim__default['default'](trimEnd__default['default'](trimStart__default['default'](colorVariable, "var("), ")"));
1404
+ var colorName = trim__default["default"](trimEnd__default["default"](trimStart__default["default"](colorVariable, "var("), ")"));
1406
1405
  return getComputedStyle(document.body).getPropertyValue(colorName);
1407
1406
  }
1408
1407
 
@@ -1544,7 +1543,7 @@
1544
1543
  var ChartPalette = /** @class */ (function () {
1545
1544
  function ChartPalette(colors, options) {
1546
1545
  if (options === void 0) { options = { backgroundOpacity: 0.15 }; }
1547
- if (isArray__default['default'](colors)) {
1546
+ if (isArray__default["default"](colors)) {
1548
1547
  this._standardColors = new SequentialColorProvider(colors);
1549
1548
  }
1550
1549
  else {
@@ -1593,7 +1592,7 @@
1593
1592
  return this.styledSvg || this.svg;
1594
1593
  };
1595
1594
  SvgMarker.prototype.setColor = function (color) {
1596
- this.styledSvg = isUndefined__default['default'](color) ? color : "<g fill=\"" + color + "\">" + this.svg + "</g>";
1595
+ this.styledSvg = isUndefined__default["default"](color) ? color : "<g fill=\"" + color + "\">" + this.svg + "</g>";
1597
1596
  };
1598
1597
  return SvgMarker;
1599
1598
  }());
@@ -1706,7 +1705,7 @@
1706
1705
  "m0-4 4 8-8 0z",
1707
1706
  "m0-4.95 4.95 4.95-4.95 4.95-4.95-4.95 4.95-4.95z",
1708
1707
  "m0 4-4-8 8 0z",
1709
- "m0-3.805 4.001 2.907-1.528 4.703-4.945 0-1.528-4.703z",
1708
+ "m0-3.805 4.001 2.907-1.528 4.703-4.945 0-1.528-4.703z", // pentagon
1710
1709
  ];
1711
1710
  /** Standard open shapes for chart markers */
1712
1711
  var emptyShapes = [
@@ -1715,14 +1714,14 @@
1715
1714
  "m0-4-4 8 8.001 0-4.001-8zm0 3.354 1.573 3.146-3.145 0 1.572-3.146z",
1716
1715
  "m0-2.121-2.121 2.121 2.121 2.121 2.121-2.121-2.121-2.121zm0-2.828 4.95 4.95-4.95 4.95-4.95-4.95 4.95-4.95z",
1717
1716
  "m0 4-4-8 8.001 0-4.001 8zm0-3.354 1.573-3.146-3.145 0 1.572 3.146z",
1718
- "m0-1.951-2.237 1.626.855 2.63 2.766 0 .855-2.63-2.237-1.626zm0-1.854 4.001 2.907-1.528 4.703-4.945 0-1.528-4.703 4.001-2.907z",
1717
+ "m0-1.951-2.237 1.626.855 2.63 2.766 0 .855-2.63-2.237-1.626zm0-1.854 4.001 2.907-1.528 4.703-4.945 0-1.528-4.703 4.001-2.907z", // pentagon empty
1719
1718
  ];
1720
1719
  var ɵ1$1 = function (s) { return "<path class=\"nui-chart--path__outline\" d=\"" + s + "\"></path>"; }, ɵ2$1 = function (s, i) { return "<path class=\"nui-chart--path__outline-fill\" stroke=\"none\" d=\"" + regularShapes[i] + "\"></path>\n <path class=\"nui-chart--path__outline\" d=\"" + s + "\"></path>"; }, ɵ0$1 = function (s) { return new SvgMarker(s); };
1721
1720
  /* eslint-enable max-len */
1722
1721
  /** Default chart marker set */
1723
- var CHART_MARKERS = __spread(regularShapes
1724
- .map(ɵ1$1), emptyShapes
1725
- .map(ɵ2$1)).map(ɵ0$1);
1722
+ var CHART_MARKERS = __spreadArray(__spreadArray([], __read(regularShapes
1723
+ .map(ɵ1$1))), __read(emptyShapes
1724
+ .map(ɵ2$1))).map(ɵ0$1);
1726
1725
 
1727
1726
  /**
1728
1727
  * This class matches the provided markers to given series.
@@ -1911,7 +1910,7 @@
1911
1910
  return scale.convert(value);
1912
1911
  }
1913
1912
  var bandScale = scale;
1914
- if (!isArray__default['default'](value)) {
1913
+ if (!isArray__default["default"](value)) {
1915
1914
  return bandScale.convert(value, position);
1916
1915
  }
1917
1916
  var values = value;
@@ -1947,7 +1946,7 @@
1947
1946
  return _this.config.stateStyles[state || exports.RenderState.default];
1948
1947
  };
1949
1948
  // setting default values to the properties that were not set by user
1950
- this.config = defaultsDeep__default['default'](this.config, Renderer.DEFAULT_CONFIG);
1949
+ this.config = defaultsDeep__default["default"](this.config, Renderer.DEFAULT_CONFIG);
1951
1950
  }
1952
1951
  /**
1953
1952
  * Based on provided values, return the nearest data point that the given coordinates represent. This is used for mouse hover behavior
@@ -2062,11 +2061,11 @@
2062
2061
  return [STANDARD_RENDER_LAYERS[exports.RenderLayerName.data]];
2063
2062
  };
2064
2063
  Renderer.prototype.setupInteraction = function (path, nativeEvent, target, dataPointSubject, dataPoint) {
2065
- var eventList = get__default['default'](this.interaction, path, {})[nativeEvent];
2064
+ var eventList = get__default["default"](this.interaction, path, {})[nativeEvent];
2066
2065
  if (!eventList) {
2067
2066
  return;
2068
2067
  }
2069
- each__default['default'](eventList, function (targetEvent) {
2068
+ each__default["default"](eventList, function (targetEvent) {
2070
2069
  target.on(nativeEvent, function () {
2071
2070
  var bbox = target.node().getBoundingClientRect();
2072
2071
  dataPointSubject.next({
@@ -2100,7 +2099,7 @@
2100
2099
  return 0;
2101
2100
  }
2102
2101
  var value = scale.invert(coordinate);
2103
- if (!isBandScale(scale) || isUndefined__default['default'](value)) {
2102
+ if (!isBandScale(scale) || isUndefined__default["default"](value)) {
2104
2103
  return value;
2105
2104
  }
2106
2105
  var bandScale = scale;
@@ -2108,8 +2107,8 @@
2108
2107
  return value;
2109
2108
  }
2110
2109
  var val = invert(bandScale.innerScale, coordinate - bandScale.convert(value, 0));
2111
- if (isArray__default['default'](val)) {
2112
- return __spread([value], val);
2110
+ if (isArray__default["default"](val)) {
2111
+ return __spreadArray([value], __read(val));
2113
2112
  }
2114
2113
  return [value, val];
2115
2114
  }
@@ -2258,7 +2257,7 @@
2258
2257
  * @param selector this function is used to process the `haystack` elements
2259
2258
  */
2260
2259
  UtilityService.findNearestIndex = function (haystack, needle, selector) {
2261
- if (selector === void 0) { selector = identity__default['default']; }
2260
+ if (selector === void 0) { selector = identity__default["default"]; }
2262
2261
  var low = 0, high = haystack == null ? low : haystack.length;
2263
2262
  while (low < high) {
2264
2263
  // eslint-disable-next-line no-bitwise
@@ -2284,10 +2283,10 @@
2284
2283
  var xValue = UtilityService.getScaleValues(xScales, xCoordinate);
2285
2284
  var yValue = UtilityService.getScaleValues(yScales, yCoordinate);
2286
2285
  var values = {};
2287
- if (!isEmpty__default['default'](xValue)) {
2286
+ if (!isEmpty__default["default"](xValue)) {
2288
2287
  values.x = xValue;
2289
2288
  }
2290
- if (!isEmpty__default['default'](yValue)) {
2289
+ if (!isEmpty__default["default"](yValue)) {
2291
2290
  values.y = yValue;
2292
2291
  }
2293
2292
  return values;
@@ -2301,7 +2300,7 @@
2301
2300
  UtilityService.getScaleValues = function (scales, coordinate) {
2302
2301
  function callbackFn(result, next) {
2303
2302
  var inverted = invert(next, coordinate);
2304
- if (isUndefined__default['default'](inverted)) {
2303
+ if (isUndefined__default["default"](inverted)) {
2305
2304
  return result;
2306
2305
  }
2307
2306
  result[next.id] = inverted;
@@ -2337,11 +2336,11 @@
2337
2336
  };
2338
2337
  /** See {@link Renderer#getDataPointIndex} */
2339
2338
  XYRenderer.prototype.getDataPointIndex = function (series, values, scales) {
2340
- if (isUndefined__default['default'](values.x)) {
2339
+ if (isUndefined__default["default"](values.x)) {
2341
2340
  return DATA_POINT_INTERACTION_RESET;
2342
2341
  }
2343
2342
  var index = UtilityService.getClosestIndex(series.data, function (d, i) { var _a, _b; return (_b = (_a = series.accessors.data) === null || _a === void 0 ? void 0 : _a.x) === null || _b === void 0 ? void 0 : _b.call(_a, d, i, series.data, series); }, values.x);
2344
- if (isUndefined__default['default'](index)) {
2343
+ if (isUndefined__default["default"](index)) {
2345
2344
  throw new Error("Unable to get data point index");
2346
2345
  }
2347
2346
  return index;
@@ -2372,7 +2371,7 @@
2372
2371
  };
2373
2372
  _this.barContainerClass = "bar-container";
2374
2373
  // setting default values to the properties that were not set by user
2375
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
2374
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
2376
2375
  return _this;
2377
2376
  }
2378
2377
  /** See {@link Renderer#draw} */
@@ -2407,7 +2406,8 @@
2407
2406
  .style("stroke-width", (_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.strokeWidth) !== null && _c !== void 0 ? _c : "")
2408
2407
  .style("fill", function (d, i) {
2409
2408
  var _a, _b;
2410
- return accessors.data.color ? accessors.data.color(d, i, dataSeries.data, dataSeries) : (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, dataSeries.id, dataSeries);
2409
+ return accessors.data.color ? accessors.data.color(d, i, dataSeries.data, dataSeries) :
2410
+ (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, dataSeries.id, dataSeries);
2411
2411
  })
2412
2412
  .attrs(function () {
2413
2413
  // @ts-ignore: Suppressing shadowed this and implicit any type error
@@ -2416,7 +2416,8 @@
2416
2416
  .select("rect")
2417
2417
  .style("fill", function (d, i) {
2418
2418
  var _a, _b;
2419
- return accessors.data.color ? accessors.data.color(d, i, dataSeries.data, dataSeries) : (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, dataSeries.id, dataSeries);
2419
+ return accessors.data.color ? accessors.data.color(d, i, dataSeries.data, dataSeries) :
2420
+ (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, dataSeries.id, dataSeries);
2420
2421
  })
2421
2422
  .attrs(generatedAttrs.get); // TODO: find a way to convert to ValueMap<>
2422
2423
  if (accessors.data.marker) {
@@ -2427,7 +2428,7 @@
2427
2428
  .html(function (d, i) {
2428
2429
  var _a, _b;
2429
2430
  var barSize = generatedAttrs.get(this);
2430
- if (!barSize || isUndefined__default['default'](barSize === null || barSize === void 0 ? void 0 : barSize.height) || isUndefined__default['default'](barSize === null || barSize === void 0 ? void 0 : barSize.width)) {
2431
+ if (!barSize || isUndefined__default["default"](barSize === null || barSize === void 0 ? void 0 : barSize.height) || isUndefined__default["default"](barSize === null || barSize === void 0 ? void 0 : barSize.width)) {
2431
2432
  throw new Error("barSize is undefined");
2432
2433
  }
2433
2434
  var minBarSide = Math.min(barSize.height, barSize.width) - 1;
@@ -2437,7 +2438,7 @@
2437
2438
  })
2438
2439
  .attr("transform", function () {
2439
2440
  var barAttrs = generatedAttrs.get(this);
2440
- if (!barAttrs || isUndefined__default['default'](barAttrs === null || barAttrs === void 0 ? void 0 : barAttrs.height) || isUndefined__default['default'](barAttrs === null || barAttrs === void 0 ? void 0 : barAttrs.width)) {
2441
+ if (!barAttrs || isUndefined__default["default"](barAttrs === null || barAttrs === void 0 ? void 0 : barAttrs.height) || isUndefined__default["default"](barAttrs === null || barAttrs === void 0 ? void 0 : barAttrs.width)) {
2441
2442
  throw new Error("barAttrs is undefined");
2442
2443
  }
2443
2444
  return "translate(" + (barAttrs.x + barAttrs.width / 2) + ", " + (barAttrs.y + barAttrs.height / 2) + ")";
@@ -2482,15 +2483,15 @@
2482
2483
  }
2483
2484
  else {
2484
2485
  var values_1 = data && data.length > 0 ? data.map(accessor("start")) : [];
2485
- var maxLength = Math.max.apply(Math, __spread(values_1.map(function (d) { return isArray__default['default'](d) ? d.length : -1; })));
2486
+ var maxLength = Math.max.apply(Math, __spreadArray([], __read(values_1.map(function (d) { return isArray__default["default"](d) ? d.length : -1; }))));
2486
2487
  if (maxLength >= 0) {
2487
2488
  return Array.from(Array(maxLength)).map(function (e, i) {
2488
2489
  var scalesDomains = values_1.map(function (d) { return i < d.length ? d[i] : []; });
2489
- return uniq__default['default'](flatten__default['default'](scalesDomains));
2490
+ return uniq__default["default"](flatten__default["default"](scalesDomains));
2490
2491
  });
2491
2492
  }
2492
2493
  else {
2493
- return [uniq__default['default'](values_1)];
2494
+ return [uniq__default["default"](values_1)];
2494
2495
  }
2495
2496
  }
2496
2497
  };
@@ -2520,7 +2521,7 @@
2520
2521
  var startAccessor = dataSeries.accessors.data["start" + accessorSuffix];
2521
2522
  var endAccessor = dataSeries.accessors.data["end" + accessorSuffix];
2522
2523
  thickness = thicknessAccessor === null || thicknessAccessor === void 0 ? void 0 : thicknessAccessor(d, i, dataSeries.data, dataSeries);
2523
- if (!isUndefined__default['default'](thickness)) {
2524
+ if (!isUndefined__default["default"](thickness)) {
2524
2525
  if (!startAccessor) {
2525
2526
  throw new Error("Can't compute dimensions");
2526
2527
  }
@@ -2535,7 +2536,7 @@
2535
2536
  start = Math.min(x1, x2);
2536
2537
  thickness = Math.abs(x1 - x2);
2537
2538
  if (isBandScale(scale)) {
2538
- if (isUndefined__default['default'](this.config.padding)) {
2539
+ if (isUndefined__default["default"](this.config.padding)) {
2539
2540
  throw new Error("Config is not defined");
2540
2541
  }
2541
2542
  start += this.config.padding;
@@ -2808,7 +2809,7 @@
2808
2809
  },
2809
2810
  };
2810
2811
  // setting default values to the properties that were not set by user
2811
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
2812
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
2812
2813
  return _this;
2813
2814
  }
2814
2815
  LineRenderer.getStrokeStyleDashed = function (width) {
@@ -3002,7 +3003,7 @@
3002
3003
  var _this = _super.call(this, config) || this;
3003
3004
  _this.DEFAULT_CONFIG = {};
3004
3005
  // setting default values to the properties that were not set by user
3005
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
3006
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
3006
3007
  return _this;
3007
3008
  }
3008
3009
  /** See {@link Renderer#draw} */
@@ -3108,7 +3109,7 @@
3108
3109
  */
3109
3110
  ThresholdsService.prototype.getBackgrounds = function (sourceSeries, zones, scales, colorProvider, thicknessMap, rendererConfig) {
3110
3111
  if (thicknessMap === void 0) { thicknessMap = {}; }
3111
- if (rendererConfig === void 0) { rendererConfig = cloneDeep__default['default'](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG); }
3112
+ if (rendererConfig === void 0) { rendererConfig = cloneDeep__default["default"](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG); }
3112
3113
  if (sourceSeries.data.length > 0 && typeof sourceSeries.data[0].__thresholds === "undefined") {
3113
3114
  this.loggerService.warn("Thresholds metadata is not defined on provided data series", sourceSeries);
3114
3115
  }
@@ -3116,7 +3117,7 @@
3116
3117
  var accessors = statusAccessors(colorProvider);
3117
3118
  accessors.data.thickness = function (d) { return thicknessMap[d.status]; };
3118
3119
  if (isBandScale(scales.x)) {
3119
- data = cloneDeep__default['default'](sourceSeries.data);
3120
+ data = cloneDeep__default["default"](sourceSeries.data);
3120
3121
  accessors.data.start = sourceSeries.accessors.data.x;
3121
3122
  accessors.data.end = sourceSeries.accessors.data.x;
3122
3123
  accessors.data.color = function (d) { return (d.__thresholds && d.__thresholds.status) ?
@@ -3205,7 +3206,7 @@
3205
3206
  }
3206
3207
  });
3207
3208
  // add all crossPoints, dataPoints, but only those with unique "x" coordinate
3208
- breakPoints = unionWith__default['default'](breakPoints, zoneCrossPoints, [xy1, xy2], function (a, b) { return (a === null || a === void 0 ? void 0 : a.x) === (b === null || b === void 0 ? void 0 : b.x) && (a === null || a === void 0 ? void 0 : a.isZoneEdge) === (b === null || b === void 0 ? void 0 : b.isZoneEdge); });
3209
+ breakPoints = unionWith__default["default"](breakPoints, zoneCrossPoints, [xy1, xy2], function (a, b) { return (a === null || a === void 0 ? void 0 : a.x) === (b === null || b === void 0 ? void 0 : b.x) && (a === null || a === void 0 ? void 0 : a.isZoneEdge) === (b === null || b === void 0 ? void 0 : b.isZoneEdge); });
3209
3210
  };
3210
3211
  // try every zone to see if it's limits intersect the line between our two data points
3211
3212
  for (var j = 0; j < zones.length; j++) {
@@ -3215,7 +3216,7 @@
3215
3216
  for (var i = 0; i < sourceSeries.data.length - 1; i++) {
3216
3217
  _loop_1(i);
3217
3218
  }
3218
- return sortBy__default['default'](breakPoints, "x");
3219
+ return sortBy__default["default"](breakPoints, "x");
3219
3220
  };
3220
3221
  /**
3221
3222
  * Generates threshold zone series from simplified zone definition. Simplified definition provides only two numbers to define the zone interval.
@@ -3276,7 +3277,7 @@
3276
3277
  }
3277
3278
  finally { if (e_1) throw e_1.error; }
3278
3279
  }
3279
- return values__default['default'](limits).map(function (limit) { return _this.getThresholdLine(limit.series, limit.accessor, limit.zoneBoundary); });
3280
+ return values__default["default"](limits).map(function (limit) { return _this.getThresholdLine(limit.series, limit.accessor, limit.zoneBoundary); });
3280
3281
  };
3281
3282
  /**
3282
3283
  * Creates a IChartAssistSeries that represents a threshold zone limit defined by given valueAccessor
@@ -3294,7 +3295,7 @@
3294
3295
  interactive: false,
3295
3296
  strokeWidth: 1,
3296
3297
  strokeStyle: LineRenderer.getStrokeStyleDashed(1),
3297
- stateStyles: cloneDeep__default['default'](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG.stateStyles),
3298
+ stateStyles: cloneDeep__default["default"](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG.stateStyles),
3298
3299
  ignoreForDomainCalculation: true,
3299
3300
  });
3300
3301
  return {
@@ -3399,7 +3400,7 @@
3399
3400
  ThresholdsService.prototype.getSideIndicators = function (zones, scales, rendererConfig) {
3400
3401
  var e_3, _e;
3401
3402
  var sideIndicators = [];
3402
- var renderer = new SideIndicatorRenderer(rendererConfig || cloneDeep__default['default'](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG));
3403
+ var renderer = new SideIndicatorRenderer(rendererConfig || cloneDeep__default["default"](THRESHOLDS_MAIN_CHART_RENDERER_CONFIG));
3403
3404
  var indicatorsActive = -1 !== zones.findIndex(function (z) { return z.entered; });
3404
3405
  var _loop_3 = function (z) {
3405
3406
  var sideIndicatorAccessors = new SideIndicatorAccessors();
@@ -3594,10 +3595,10 @@
3594
3595
  var domainMax = d3Array.max(nonEmptyDomains.filter(function (e) { return typeof e[1] !== undefined; }).map(function (e) { return e[1]; }));
3595
3596
  return [domainMin, domainMax];
3596
3597
  }
3597
- var maxLength = Math.max.apply(Math, __spread(domains.map(function (d) { return d.length; })));
3598
+ var maxLength = Math.max.apply(Math, __spreadArray([], __read(domains.map(function (d) { return d.length; }))));
3598
3599
  return Array.from(Array(maxLength)).map(function (e, i) {
3599
3600
  var scalesDomains = domains.map(function (d) { return i < d.length ? d[i] : []; });
3600
- return uniq__default['default'](flatten__default['default'](scalesDomains));
3601
+ return uniq__default["default"](flatten__default["default"](scalesDomains));
3601
3602
  });
3602
3603
  }
3603
3604
 
@@ -3618,7 +3619,7 @@
3618
3619
  if (!result[scaleKey]) {
3619
3620
  result[scaleKey] = [];
3620
3621
  }
3621
- if (indexOf__default['default'](result[scaleKey], scale) === -1) {
3622
+ if (indexOf__default["default"](result[scaleKey], scale) === -1) {
3622
3623
  result[scaleKey].push(scale);
3623
3624
  }
3624
3625
  }
@@ -3648,7 +3649,7 @@
3648
3649
  // find fixed, continuous scales that are referenced by this series
3649
3650
  var filterScales = Object.keys(fixedDomains).reduce(function (result, next) {
3650
3651
  var seriesScale = cs.scales[next];
3651
- if (seriesScale && seriesScale.isContinuous() && indexOf__default['default'](fixedDomains[next], seriesScale) !== -1) {
3652
+ if (seriesScale && seriesScale.isContinuous() && indexOf__default["default"](fixedDomains[next], seriesScale) !== -1) {
3652
3653
  result[next] = seriesScale;
3653
3654
  }
3654
3655
  return result;
@@ -3765,10 +3766,10 @@
3765
3766
  function BandScale(id) {
3766
3767
  var _this = _super.call(this, id) || this;
3767
3768
  _this.formatters.tick = function (value) {
3768
- if (isUndefined__default['default'](value)) {
3769
+ if (isUndefined__default["default"](value)) {
3769
3770
  throw new Error("Can't format bandFormatScale");
3770
3771
  }
3771
- return toString__default['default'](value);
3772
+ return toString__default["default"](value);
3772
3773
  };
3773
3774
  return _this;
3774
3775
  }
@@ -3941,7 +3942,7 @@
3941
3942
  if (config === void 0) { config = {}; }
3942
3943
  var _this = _super.call(this, config) || this;
3943
3944
  _this.config = config;
3944
- _this.config = defaultsDeep__default['default'](_this.config, DEFAULT_LINEAR_GAUGE_THRESHOLDS_RENDERER_CONFIG);
3945
+ _this.config = defaultsDeep__default["default"](_this.config, DEFAULT_LINEAR_GAUGE_THRESHOLDS_RENDERER_CONFIG);
3945
3946
  return _this;
3946
3947
  }
3947
3948
  /** See {@link Renderer#draw} */
@@ -3949,7 +3950,7 @@
3949
3950
  var dataContainer = renderSeries.containers[exports.RenderLayerName.unclippedData];
3950
3951
  var dataSeries = renderSeries.dataSeries;
3951
3952
  var accessors = dataSeries.accessors;
3952
- var data = cloneDeep__default['default'](this.config.enabled ? dataSeries.data : []);
3953
+ var data = cloneDeep__default["default"](this.config.enabled ? dataSeries.data : []);
3953
3954
  // last value in the thresholds series is the max value of the gauge (needed by RadialGaugeThresholdsRenderer).
3954
3955
  // removing this value to avoid rendering a marker for it
3955
3956
  data.pop();
@@ -4026,7 +4027,7 @@
4026
4027
  if (config === void 0) { config = {}; }
4027
4028
  var _this = _super.call(this, config) || this;
4028
4029
  _this.config = config;
4029
- _this.config = defaultsDeep__default['default'](_this.config, DEFAULT_RADIAL_RENDERER_CONFIG);
4030
+ _this.config = defaultsDeep__default["default"](_this.config, DEFAULT_RADIAL_RENDERER_CONFIG);
4030
4031
  return _this;
4031
4032
  }
4032
4033
  /** See {@link Renderer#draw} */
@@ -4071,7 +4072,8 @@
4071
4072
  .attr("fill", function (d, i) {
4072
4073
  var _a, _b;
4073
4074
  return accessors.data.color ?
4074
- accessors.data.color(d.data, i, data, renderSeries.dataSeries) : (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, renderSeries.dataSeries.id, renderSeries.dataSeries);
4075
+ accessors.data.color(d.data, i, data, renderSeries.dataSeries) :
4076
+ (_b = (_a = accessors.series).color) === null || _b === void 0 ? void 0 : _b.call(_a, renderSeries.dataSeries.id, renderSeries.dataSeries);
4075
4077
  });
4076
4078
  };
4077
4079
  /** See {@link Renderer#getDataPointPosition} */
@@ -4090,14 +4092,14 @@
4090
4092
  };
4091
4093
  };
4092
4094
  RadialRenderer.prototype.getInnerRadius = function (range, index) {
4093
- if (isUndefined__default['default'](this.segmentWidth) || isUndefined__default['default'](this.config.annularPadding)) {
4095
+ if (isUndefined__default["default"](this.segmentWidth) || isUndefined__default["default"](this.config.annularPadding)) {
4094
4096
  throw new Error("Can't compute inner radius");
4095
4097
  }
4096
4098
  var calculatedRadius = (range[1] - range[0] - this.segmentWidth) - index * (this.config.annularPadding + this.segmentWidth);
4097
4099
  return calculatedRadius >= 0 ? calculatedRadius : 0;
4098
4100
  };
4099
4101
  RadialRenderer.prototype.getOuterRadius = function (range, index) {
4100
- if (isUndefined__default['default'](this.segmentWidth) || isUndefined__default['default'](this.config.annularPadding)) {
4102
+ if (isUndefined__default["default"](this.segmentWidth) || isUndefined__default["default"](this.config.annularPadding)) {
4101
4103
  throw new Error("Can't compute outer radius");
4102
4104
  }
4103
4105
  var calculatedRadius = (range[1] - range[0]) - index * (this.config.annularPadding + this.segmentWidth);
@@ -4197,13 +4199,13 @@
4197
4199
  if (config === void 0) { config = {}; }
4198
4200
  var _this = _super.call(this, config) || this;
4199
4201
  _this.config = config;
4200
- _this.config = defaultsDeep__default['default'](_this.config, DEFAULT_DONUT_GAUGE_THRESHOLDS_RENDERER_CONFIG);
4202
+ _this.config = defaultsDeep__default["default"](_this.config, DEFAULT_DONUT_GAUGE_THRESHOLDS_RENDERER_CONFIG);
4201
4203
  return _this;
4202
4204
  }
4203
4205
  /** See {@link Renderer#draw} */
4204
4206
  DonutGaugeThresholdsRenderer.prototype.draw = function (renderSeries, rendererSubject) {
4205
4207
  var dataContainer = renderSeries.containers[exports.RenderLayerName.data];
4206
- var data = cloneDeep__default['default'](this.config.enabled ? renderSeries.dataSeries.data : []);
4208
+ var data = cloneDeep__default["default"](this.config.enabled ? renderSeries.dataSeries.data : []);
4207
4209
  // ensure the data is sorted in ascending order by value since we're using it to calculate circle arcs
4208
4210
  data.sort(function (a, b) { return a.value - b.value; });
4209
4211
  this.segmentWidth = this.getSegmentWidth(renderSeries);
@@ -4225,7 +4227,7 @@
4225
4227
  .style("stroke-width", 0);
4226
4228
  };
4227
4229
  DonutGaugeThresholdsRenderer.prototype.getInnerRadius = function (range, index) {
4228
- if (isUndefined__default['default'](this.segmentWidth)) {
4230
+ if (isUndefined__default["default"](this.segmentWidth)) {
4229
4231
  throw new Error("Can't compute inner radius");
4230
4232
  }
4231
4233
  var calculatedRadius = range[1] - range[0] - this.segmentWidth;
@@ -4458,7 +4460,7 @@
4458
4460
  this.syncSubscription = chartAssist.chartAssistSubject.pipe(operators.takeUntil(chartAssist.chart.getEventBus().getStream(DESTROY_EVENT))).subscribe(function (event) {
4459
4461
  var _b;
4460
4462
  var args = Object.keys(event.payload).map(function (key) { return event.payload[key]; });
4461
- (_b = _this.syncHandlerMap)[event.type].apply(_b, __spread(args));
4463
+ (_b = _this.syncHandlerMap)[event.type].apply(_b, __spreadArray([], __read(args)));
4462
4464
  });
4463
4465
  };
4464
4466
  /**
@@ -4494,7 +4496,7 @@
4494
4496
  _this.isLegendActive = data;
4495
4497
  },
4496
4498
  _b);
4497
- each__default['default'](Object.keys(eventHandlers), function (key) {
4499
+ each__default["default"](Object.keys(eventHandlers), function (key) {
4498
4500
  eventBus.getStream(key).subscribe(function (event) {
4499
4501
  eventHandlers[key](event.data);
4500
4502
  if (_this.onEvent) {
@@ -4517,7 +4519,7 @@
4517
4519
  LegendInteractionAssist.prototype.update = function (seriesSet) {
4518
4520
  var e_1, _b;
4519
4521
  this.seriesGroups = this.getSeriesGroups(seriesSet);
4520
- this.seriesIndex = keyBy__default['default'](seriesSet, function (s) { return s.id; });
4522
+ this.seriesIndex = keyBy__default["default"](seriesSet, function (s) { return s.id; });
4521
4523
  this.resetSeries();
4522
4524
  try {
4523
4525
  // override render states
@@ -4536,7 +4538,7 @@
4536
4538
  }
4537
4539
  };
4538
4540
  LegendInteractionAssist.prototype.getSeriesStates = function () {
4539
- return values__default['default'](this.renderStatesIndex);
4541
+ return values__default["default"](this.renderStatesIndex);
4540
4542
  };
4541
4543
  LegendInteractionAssist.prototype.isSeriesHidden = function (seriesId) {
4542
4544
  var renderState = this.renderStatesIndex[seriesId];
@@ -4709,7 +4711,7 @@
4709
4711
  accInner.push(categoryAccessor === null || categoryAccessor === void 0 ? void 0 : categoryAccessor(datum, index, chartSeries.data, chartSeries));
4710
4712
  return accInner;
4711
4713
  }, []);
4712
- return unionBy__default['default'](acc, categories, function (d) { return d.valueOf(); });
4714
+ return unionBy__default["default"](acc, categories, function (d) { return d.valueOf(); });
4713
4715
  }, []);
4714
4716
  }
4715
4717
 
@@ -4721,7 +4723,7 @@
4721
4723
  var categories = gatherCategories(chartSeriesSet);
4722
4724
  // This is adding metadata to the dataset and filling missing
4723
4725
  var forExtents = chartSeriesSet.reduce(function (acc, chartSeries) {
4724
- if (!isUndefined__default['default'](chartSeries.preprocess) && !chartSeries.preprocess) {
4726
+ if (!isUndefined__default["default"](chartSeries.preprocess) && !chartSeries.preprocess) {
4725
4727
  return acc;
4726
4728
  }
4727
4729
  var categoryAccessor = chartSeries.accessors.data["category"];
@@ -4762,7 +4764,7 @@
4762
4764
  if (!theDomain || theDomain.length === 0) {
4763
4765
  return;
4764
4766
  }
4765
- if (!isArray__default['default'](theDomain[0])) {
4767
+ if (!isArray__default["default"](theDomain[0])) {
4766
4768
  scale.domain(theDomain);
4767
4769
  return;
4768
4770
  }
@@ -4809,14 +4811,14 @@
4809
4811
  configurable: true
4810
4812
  });
4811
4813
  DataManager.prototype.update = function (seriesSet) {
4812
- var duplicateIds = filter__default['default'](seriesSet.map(function (series) { return series.id; }), function (val, i, iteratee) { return includes__default['default'](iteratee, val, i + 1); });
4814
+ var duplicateIds = filter__default["default"](seriesSet.map(function (series) { return series.id; }), function (val, i, iteratee) { return includes__default["default"](iteratee, val, i + 1); });
4813
4815
  if (duplicateIds.length > 0) {
4814
4816
  console.warn("Series set contains duplicate IDs:", duplicateIds);
4815
4817
  }
4816
4818
  this._chartSeriesSet = seriesSet || [];
4817
- this.dataIndex = keyBy__default['default'](this._chartSeriesSet, function (s) { return s.id; });
4819
+ this.dataIndex = keyBy__default["default"](this._chartSeriesSet, function (s) { return s.id; });
4818
4820
  this._scalesIndexByKey = this.buildScalesIndex(this._chartSeriesSet);
4819
- this._scalesIndexById = keyBy__default['default'](flatten__default['default'](values__default['default'](this._scalesIndexByKey).map(function (v) { return v.list; })), function (s) { return s.id; });
4821
+ this._scalesIndexById = keyBy__default["default"](flatten__default["default"](values__default["default"](this._scalesIndexByKey).map(function (v) { return v.list; })), function (s) { return s.id; });
4820
4822
  };
4821
4823
  DataManager.prototype.getChartSeries = function (seriesId) {
4822
4824
  return this.dataIndex[seriesId];
@@ -4838,8 +4840,8 @@
4838
4840
  };
4839
4841
  DataManager.prototype.buildScalesIndex = function (chartSeries) {
4840
4842
  var scales = {};
4841
- each__default['default'](chartSeries, function (cs) {
4842
- each__default['default'](Object.keys(cs.scales), function (scaleKey) {
4843
+ each__default["default"](chartSeries, function (cs) {
4844
+ each__default["default"](Object.keys(cs.scales), function (scaleKey) {
4843
4845
  var scale = cs.scales[scaleKey];
4844
4846
  var indexEntry = scales[scaleKey];
4845
4847
  if (!indexEntry) {
@@ -4859,8 +4861,8 @@
4859
4861
  };
4860
4862
  DataManager.prototype.updateScaleDomains = function () {
4861
4863
  var _this = this;
4862
- each__default['default'](Object.keys(this._scalesIndexByKey), function (scaleKey) {
4863
- each__default['default'](_this._scalesIndexByKey[scaleKey].list, function (scale) {
4864
+ each__default["default"](Object.keys(this._scalesIndexByKey), function (scaleKey) {
4865
+ each__default["default"](_this._scalesIndexByKey[scaleKey].list, function (scale) {
4864
4866
  _this.updateScaleDomain(scale, scaleKey);
4865
4867
  });
4866
4868
  });
@@ -4897,7 +4899,7 @@
4897
4899
  RenderEngine.prototype.update = function () {
4898
4900
  var _this = this;
4899
4901
  var scaleValidity = {};
4900
- each__default['default'](this.dataManager.chartSeriesSet, function (chartSeries) {
4902
+ each__default["default"](this.dataManager.chartSeriesSet, function (chartSeries) {
4901
4903
  var childContainers = _this.getSeriesChildContainers(chartSeries.id);
4902
4904
  var areDomainsValid = -1 === Object.values(chartSeries.scales).findIndex(function (scale) {
4903
4905
  if (typeof scaleValidity[scale.id] === "undefined") {
@@ -4934,7 +4936,7 @@
4934
4936
  var highlightChangeDetected = false;
4935
4937
  var interactionDataPoints = this.dataManager.chartSeriesSet.reduce(function (result, chartSeries) {
4936
4938
  var chartValues = {};
4937
- each__default['default'](Object.keys(payload.values), function (scaleKey) {
4939
+ each__default["default"](Object.keys(payload.values), function (scaleKey) {
4938
4940
  var myScaleId = chartSeries.scales[scaleKey].id;
4939
4941
  chartValues[scaleKey] = payload.values[scaleKey][myScaleId];
4940
4942
  });
@@ -4952,7 +4954,7 @@
4952
4954
  };
4953
4955
  if (payload.interactionType === exports.InteractionType.MouseMove) {
4954
4956
  var prevHighlight = _this.highlightedDataPoints[chartSeries.id];
4955
- if (!isUndefined__default['default'](dataIndex) && (isUndefined__default['default'](prevHighlight) ||
4957
+ if (!isUndefined__default["default"](dataIndex) && (isUndefined__default["default"](prevHighlight) ||
4956
4958
  (dataIndex === DATA_POINT_INTERACTION_RESET || dataIndex !== prevHighlight.index))) {
4957
4959
  highlightChangeDetected = true;
4958
4960
  _this.rendererSubject.next({
@@ -4996,7 +4998,7 @@
4996
4998
  */
4997
4999
  RenderEngine.prototype.setSeriesStates = function (stateDataSet) {
4998
5000
  var _this = this;
4999
- each__default['default'](stateDataSet, function (_a) {
5001
+ each__default["default"](stateDataSet, function (_a) {
5000
5002
  var seriesId = _a.seriesId, state = _a.state;
5001
5003
  var chartSeries = _this.dataManager.getChartSeries(seriesId);
5002
5004
  if (!chartSeries) {
@@ -5004,7 +5006,7 @@
5004
5006
  }
5005
5007
  var childContainers = _this.getSeriesChildContainers(seriesId);
5006
5008
  var attrs = chartSeries.renderer.getContainerStateStyles(state);
5007
- each__default['default'](values__default['default'](childContainers), function (cc) {
5009
+ each__default["default"](values__default["default"](childContainers), function (cc) {
5008
5010
  cc.attrs(attrs);
5009
5011
  });
5010
5012
  chartSeries.renderer.setSeriesState(childContainers, state);
@@ -5020,9 +5022,9 @@
5020
5022
  };
5021
5023
  RenderEngine.prototype.buildLayerIndex = function (chartSeriesSet) {
5022
5024
  var layerIndex = {};
5023
- each__default['default'](chartSeriesSet, function (chartSeries) {
5024
- each__default['default'](chartSeries.renderer.getRequiredLayers(), function (layerDef) {
5025
- if (STANDARD_RENDER_LAYERS[layerDef.name] && !isEqual__default['default'](STANDARD_RENDER_LAYERS[layerDef.name], layerDef)) {
5025
+ each__default["default"](chartSeriesSet, function (chartSeries) {
5026
+ each__default["default"](chartSeries.renderer.getRequiredLayers(), function (layerDef) {
5027
+ if (STANDARD_RENDER_LAYERS[layerDef.name] && !isEqual__default["default"](STANDARD_RENDER_LAYERS[layerDef.name], layerDef)) {
5026
5028
  throw new Error("Custom definition detected for render layer \"" + layerDef.name + "\". " +
5027
5029
  "Custom layers must use a name not already taken by the predefined layer set.");
5028
5030
  }
@@ -5041,7 +5043,7 @@
5041
5043
  };
5042
5044
  RenderEngine.prototype.removeUnusedLayers = function () {
5043
5045
  var _this = this;
5044
- each__default['default'](Object.keys(this.renderLayers), function (layerName) {
5046
+ each__default["default"](Object.keys(this.renderLayers), function (layerName) {
5045
5047
  if (!_this.layerIndex[layerName]) {
5046
5048
  _this.lasagna.removeLayer(layerName);
5047
5049
  delete _this.renderLayers[layerName];
@@ -5050,7 +5052,7 @@
5050
5052
  };
5051
5053
  RenderEngine.prototype.addNeededLayers = function () {
5052
5054
  var _this = this;
5053
- each__default['default'](this.layerIndex, function (layerData) {
5055
+ each__default["default"](this.layerIndex, function (layerData) {
5054
5056
  if (!_this.renderLayers[layerData.layerDefinition.name]) {
5055
5057
  _this.renderLayers[layerData.layerDefinition.name] = _this.lasagna.addLayer(layerData.layerDefinition);
5056
5058
  }
@@ -5058,7 +5060,7 @@
5058
5060
  };
5059
5061
  RenderEngine.prototype.updateLayerContents = function () {
5060
5062
  var _this = this;
5061
- each__default['default'](Object.keys(this.renderLayers), function (layerName) {
5063
+ each__default["default"](Object.keys(this.renderLayers), function (layerName) {
5062
5064
  var renderLayer = _this.renderLayers[layerName];
5063
5065
  var containers = renderLayer.selectAll("g.data-series-container")
5064
5066
  .data(_this.layerIndex[layerName].seriesUsing, function (d) { return d.id; })
@@ -5074,7 +5076,7 @@
5074
5076
  RenderEngine.prototype.getSeriesChildContainers = function (seriesId) {
5075
5077
  var _this = this;
5076
5078
  var childContainers = {};
5077
- each__default['default'](Object.keys(this.renderLayers), function (layerName) {
5079
+ each__default["default"](Object.keys(this.renderLayers), function (layerName) {
5078
5080
  var renderLayer = _this.renderLayers[layerName];
5079
5081
  childContainers[layerName] = renderLayer.selectAll("#" + layerName + "-" + UtilityService.cssEscape(seriesId));
5080
5082
  });
@@ -5100,7 +5102,7 @@
5100
5102
  var RenderEnginePlugin = /** @class */ (function (_super) {
5101
5103
  __extends(RenderEnginePlugin, _super);
5102
5104
  function RenderEnginePlugin() {
5103
- var _this = _super.apply(this, __spread(arguments)) || this;
5105
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
5104
5106
  // initializing isChartInView to true to ensure emission of initial data point events
5105
5107
  _this.isChartInView = true;
5106
5108
  _this.destroy$ = new rxjs.Subject();
@@ -5296,7 +5298,7 @@
5296
5298
  this.updateDimensionsSubject.next();
5297
5299
  };
5298
5300
  Chart.prototype.initialize = function () {
5299
- each__default['default'](this.plugins, function (p) {
5301
+ each__default["default"](this.plugins, function (p) {
5300
5302
  p.initialize();
5301
5303
  });
5302
5304
  };
@@ -5366,7 +5368,7 @@
5366
5368
  disableThresholdLabels: false,
5367
5369
  };
5368
5370
  _this.destroy$ = new rxjs.Subject();
5369
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
5371
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
5370
5372
  return _this;
5371
5373
  }
5372
5374
  DonutGaugeLabelsPlugin.prototype.initialize = function () {
@@ -5401,7 +5403,7 @@
5401
5403
  var _this = this;
5402
5404
  var _a, _b;
5403
5405
  var thresholdsSeries = this.chart.getDataManager().chartSeriesSet.find(function (series) { return series.renderer instanceof DonutGaugeThresholdsRenderer; });
5404
- if (isUndefined__default['default'](thresholdsSeries)) {
5406
+ if (isUndefined__default["default"](thresholdsSeries)) {
5405
5407
  console.warn("Threshold series is undefined. As a result, threshold labels for the donut gauge will not be rendered.");
5406
5408
  return;
5407
5409
  }
@@ -5413,15 +5415,15 @@
5413
5415
  }
5414
5416
  var renderer = thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.renderer;
5415
5417
  var labelRadius = (renderer === null || renderer === void 0 ? void 0 : renderer.getOuterRadius((_a = thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.scales.r.range()) !== null && _a !== void 0 ? _a : [0, 0], 0)) + this.config.padding;
5416
- if (isUndefined__default['default'](labelRadius)) {
5418
+ if (isUndefined__default["default"](labelRadius)) {
5417
5419
  throw new Error("Radius is undefined");
5418
5420
  }
5419
5421
  var labelGenerator = d3Shape.arc()
5420
5422
  .outerRadius(labelRadius)
5421
5423
  .innerRadius(labelRadius);
5422
5424
  var formatter = (_b = thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.scales.r.formatters[this.config.formatterName]) !== null && _b !== void 0 ? _b : (function (d) { return d; });
5423
- var data = cloneDeep__default['default'](this.config.disableThresholdLabels ? [] : thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.data);
5424
- if (isUndefined__default['default'](data)) {
5425
+ var data = cloneDeep__default["default"](this.config.disableThresholdLabels ? [] : thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.data);
5426
+ if (isUndefined__default["default"](data)) {
5425
5427
  throw new Error("Gauge threshold series data is undefined");
5426
5428
  }
5427
5429
  // ensure the data is sorted in ascending order by value since we're using it to calculate circle arcs
@@ -5507,7 +5509,7 @@
5507
5509
  var value = (_d = (_c = (_b = (_a = _this.thresholdsSeries) === null || _a === void 0 ? void 0 : _a.accessors) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.call(_c, d, i, thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.data, thresholdsSeries);
5508
5510
  return (_e = _this.thresholdsSeries) === null || _e === void 0 ? void 0 : _e.scales.y.convert(value);
5509
5511
  };
5510
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
5512
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
5511
5513
  return _this;
5512
5514
  }
5513
5515
  LinearGaugeLabelsPlugin.prototype.initialize = function () {
@@ -5546,7 +5548,7 @@
5546
5548
  LinearGaugeLabelsPlugin.prototype.drawThresholdLabels = function () {
5547
5549
  var _this = this;
5548
5550
  var _a, _b, _c;
5549
- if (isUndefined__default['default'](this.thresholdsSeries)) {
5551
+ if (isUndefined__default["default"](this.thresholdsSeries)) {
5550
5552
  console.warn("Threshold series is undefined. As a result, threshold labels for the linear gauge will not be rendered.");
5551
5553
  return;
5552
5554
  }
@@ -5556,8 +5558,8 @@
5556
5558
  .attr("class", GAUGE_LABELS_CONTAINER_CLASS)
5557
5559
  .style("opacity", 0);
5558
5560
  }
5559
- var data = cloneDeep__default['default'](this.config.disableThresholdLabels ? [] : (_a = this.thresholdsSeries) === null || _a === void 0 ? void 0 : _a.data);
5560
- if (isUndefined__default['default'](data)) {
5561
+ var data = cloneDeep__default["default"](this.config.disableThresholdLabels ? [] : (_a = this.thresholdsSeries) === null || _a === void 0 ? void 0 : _a.data);
5562
+ if (isUndefined__default["default"](data)) {
5561
5563
  throw new Error("Gauge threshold series data is undefined");
5562
5564
  }
5563
5565
  // last value in the thresholds series is the max value of the gauge (needed by RadialGaugeThresholdsRenderer).
@@ -5707,7 +5709,7 @@
5707
5709
  this.container = target.append("g").attr("class", Lasagna.CONTAINER_CLASS + " pointer-events");
5708
5710
  }
5709
5711
  Lasagna.prototype.addLayer = function (layer) {
5710
- this.layers = orderBy__default['default'](this.layers.concat(layer), "order");
5712
+ this.layers = orderBy__default["default"](this.layers.concat(layer), "order");
5711
5713
  this.update();
5712
5714
  return this.getLayerContainer(layer.name);
5713
5715
  };
@@ -5853,7 +5855,7 @@
5853
5855
  };
5854
5856
  /** See {@link IGrid#update} */
5855
5857
  Grid.prototype.update = function () {
5856
- if (isEmpty__default['default'](this.scales)) {
5858
+ if (isEmpty__default["default"](this.scales)) {
5857
5859
  return this;
5858
5860
  }
5859
5861
  this.updateBorders();
@@ -5899,7 +5901,7 @@
5899
5901
  var borderConfigs = this.config().borders;
5900
5902
  var borders = {};
5901
5903
  var borderKeys = Object.keys(borderConfigs);
5902
- each__default['default'](borderKeys, function (side) {
5904
+ each__default["default"](borderKeys, function (side) {
5903
5905
  var _a;
5904
5906
  // We're creating even invisible borders and updating visibility afterwards
5905
5907
  if (borderConfigs[side]) {
@@ -5991,7 +5993,7 @@
5991
5993
  "x1": this.config().dimension.width() - borderMidpoint,
5992
5994
  "y1": 0,
5993
5995
  "x2": this.config().dimension.width() - borderMidpoint,
5994
- "y2": this.config().dimension.height() + Grid.TICK_DIMENSION_CORRECTION,
5996
+ "y2": this.config().dimension.height() + Grid.TICK_DIMENSION_CORRECTION, // to get nice alignment with ticks
5995
5997
  })
5996
5998
  .classed("hidden", !((_b = this._config.borders.right) === null || _b === void 0 ? void 0 : _b.visible));
5997
5999
  }
@@ -6001,7 +6003,7 @@
6001
6003
  "x1": borderMidpoint,
6002
6004
  "y1": 0,
6003
6005
  "x2": borderMidpoint,
6004
- "y2": this.config().dimension.height() + Grid.TICK_DIMENSION_CORRECTION,
6006
+ "y2": this.config().dimension.height() + Grid.TICK_DIMENSION_CORRECTION, // to get nice alignment with ticks
6005
6007
  })
6006
6008
  .classed("hidden", !((_c = this._config.borders.left) === null || _c === void 0 ? void 0 : _c.visible));
6007
6009
  }
@@ -6029,7 +6031,7 @@
6029
6031
  var RadialGrid = /** @class */ (function (_super) {
6030
6032
  __extends(RadialGrid, _super);
6031
6033
  function RadialGrid() {
6032
- var _this = _super.apply(this, __spread(arguments)) || this;
6034
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
6033
6035
  _this.adjustRenderingArea = function () {
6034
6036
  var d = _this.config().dimension;
6035
6037
  var attrs = {
@@ -6050,10 +6052,10 @@
6050
6052
  RadialGrid.prototype.updateDimensions = function (dimensions) {
6051
6053
  var _this = this;
6052
6054
  var dimensionConfig = this.config().dimension;
6053
- if (!isUndefined__default['default'](dimensions.width)) {
6055
+ if (!isUndefined__default["default"](dimensions.width)) {
6054
6056
  dimensionConfig.outerWidth(dimensions.width);
6055
6057
  }
6056
- if (!isUndefined__default['default'](dimensions.height)) {
6058
+ if (!isUndefined__default["default"](dimensions.height)) {
6057
6059
  dimensionConfig.outerHeight(dimensions.height);
6058
6060
  }
6059
6061
  // TODO: Chart's update: this.grid.scales = collectScales(seriesSet) may not yet happened
@@ -6188,7 +6190,7 @@
6188
6190
  var getAutomaticDomainWithTicks = function (config, axisGenerator, domainCalculator) {
6189
6191
  var result = function (chartSeriesSet, scaleKey, scale) {
6190
6192
  var mergedDomains = domainCalculator(chartSeriesSet, scaleKey, scale);
6191
- var clonedScale = cloneDeep__default['default'](scale);
6193
+ var clonedScale = cloneDeep__default["default"](scale);
6192
6194
  domain(clonedScale, mergedDomains);
6193
6195
  var tickAxis = axisGenerator(clonedScale.d3Scale);
6194
6196
  var ticks = tickAxis.scale().ticks(config.approximateTicks);
@@ -6253,16 +6255,16 @@
6253
6255
  };
6254
6256
  InteractionLabelPlugin.prototype.handleLabelUpdate = function () {
6255
6257
  var scales = this.chart.getGrid().scales;
6256
- if (!this.areLabelUpdatesEnabled || this.lastInteractionValuesPayload.interactionType !== exports.InteractionType.MouseMove || isEmpty__default['default'](scales)) {
6258
+ if (!this.areLabelUpdatesEnabled || this.lastInteractionValuesPayload.interactionType !== exports.InteractionType.MouseMove || isEmpty__default["default"](scales)) {
6257
6259
  return;
6258
6260
  }
6259
6261
  var grid = this.chart.getGrid();
6260
- var xScale = find__default['default'](scales["x"].index, { id: grid.bottomScaleId });
6262
+ var xScale = find__default["default"](scales["x"].index, { id: grid.bottomScaleId });
6261
6263
  if (!xScale) {
6262
6264
  throw new Error("xScale is not defined");
6263
6265
  }
6264
6266
  var xValue = this.lastInteractionValuesPayload.values.x ? this.lastInteractionValuesPayload.values.x[xScale.id] : null;
6265
- this.updateLabel(xScale, isArray__default['default'](xValue) ? xValue.slice(0, xValue.length - 1) : xValue);
6267
+ this.updateLabel(xScale, isArray__default["default"](xValue) ? xValue.slice(0, xValue.length - 1) : xValue);
6266
6268
  };
6267
6269
  InteractionLabelPlugin.prototype.updateLabel = function (scale, value) {
6268
6270
  var interactionLabel = this.interactionLabelLayer.select("." + InteractionLabelPlugin.LAYER_NAME);
@@ -6332,7 +6334,7 @@
6332
6334
  var InteractionLinePlugin = /** @class */ (function (_super) {
6333
6335
  __extends(InteractionLinePlugin, _super);
6334
6336
  function InteractionLinePlugin() {
6335
- var _this = _super.apply(this, __spread(arguments)) || this;
6337
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
6336
6338
  _this.isChartInView = false;
6337
6339
  _this.destroy$ = new rxjs.Subject();
6338
6340
  return _this;
@@ -6363,11 +6365,11 @@
6363
6365
  };
6364
6366
  InteractionLinePlugin.prototype.handleLineUpdate = function () {
6365
6367
  var scales = this.chart.getGrid().scales;
6366
- if (this.lastInteractionValuesPayload.interactionType !== exports.InteractionType.MouseMove || isEmpty__default['default'](scales)) {
6368
+ if (this.lastInteractionValuesPayload.interactionType !== exports.InteractionType.MouseMove || isEmpty__default["default"](scales)) {
6367
6369
  return;
6368
6370
  }
6369
6371
  var grid = this.chart.getGrid();
6370
- var xScale = find__default['default'](scales["x"].index, { id: grid.bottomScaleId });
6372
+ var xScale = find__default["default"](scales["x"].index, { id: grid.bottomScaleId });
6371
6373
  if (!xScale) {
6372
6374
  throw new Error("xScale is not defined");
6373
6375
  }
@@ -6433,7 +6435,7 @@
6433
6435
  .pipe(operators.takeUntil(this.destroy$))
6434
6436
  .subscribe(function (event) {
6435
6437
  var gridScales = _this.chart.getGrid().scales;
6436
- if (isEmpty__default['default'](gridScales)) {
6438
+ if (isEmpty__default["default"](gridScales)) {
6437
6439
  return;
6438
6440
  }
6439
6441
  if (_this.interactionValuesActive) {
@@ -6600,7 +6602,7 @@
6600
6602
  if (this._bottomScaleId) {
6601
6603
  return this._bottomScaleId;
6602
6604
  }
6603
- if (!isEmpty__default['default'](this.scales)) {
6605
+ if (!isEmpty__default["default"](this.scales)) {
6604
6606
  return this.scales["x"].list[0].id;
6605
6607
  }
6606
6608
  },
@@ -6621,7 +6623,7 @@
6621
6623
  if (this._leftScaleId) {
6622
6624
  return this._leftScaleId;
6623
6625
  }
6624
- if (!isEmpty__default['default'](this.scales)) {
6626
+ if (!isEmpty__default["default"](this.scales)) {
6625
6627
  return this.scales["y"].list[0].id;
6626
6628
  }
6627
6629
  },
@@ -6764,7 +6766,7 @@
6764
6766
  .filter(function (rs) { return rs.state === exports.RenderState.emphasized && rs.series; })
6765
6767
  .map(function (rs) { return rs.series; });
6766
6768
  if (emphasizedSeries.length > 0) {
6767
- var emphasizedYScales = uniq__default['default'](emphasizedSeries.map(function (s) { return s === null || s === void 0 ? void 0 : s.scales["y"]; }).filter(function (s) { return !!s; }));
6769
+ var emphasizedYScales = uniq__default["default"](emphasizedSeries.map(function (s) { return s === null || s === void 0 ? void 0 : s.scales["y"]; }).filter(function (s) { return !!s; }));
6768
6770
  if (emphasizedYScales.length <= 0) {
6769
6771
  return {};
6770
6772
  }
@@ -6870,18 +6872,18 @@
6870
6872
  };
6871
6873
  /** See {@link IGrid#updateRanges} */
6872
6874
  XYGrid.prototype.updateRanges = function () {
6873
- if (isEmpty__default['default'](this.scales)) {
6875
+ if (isEmpty__default["default"](this.scales)) {
6874
6876
  return this;
6875
6877
  }
6876
6878
  var dimension = this.config().dimension;
6877
6879
  var padding = dimension.padding;
6878
6880
  if (this.scales.x) {
6879
- each__default['default'](this.scales.x.list, function (xScale) {
6881
+ each__default["default"](this.scales.x.list, function (xScale) {
6880
6882
  xScale.range([padding.left, dimension.width() - padding.right]);
6881
6883
  });
6882
6884
  }
6883
6885
  if (this.scales.y) {
6884
- each__default['default'](this.scales.y.list, function (yScale) {
6886
+ each__default["default"](this.scales.y.list, function (yScale) {
6885
6887
  yScale.range([dimension.height() - padding.bottom, padding.top]);
6886
6888
  });
6887
6889
  }
@@ -6983,7 +6985,7 @@
6983
6985
  if (scale.id === this.bottomScaleId) {
6984
6986
  var maxBottomWidth = axisConfig.bottom.tickLabel.maxWidth;
6985
6987
  var calculatedBottomWidth = scale.bandwidth ? scale.bandwidth() : this.getTickDistance(axisLabels);
6986
- if (!isUndefined__default['default'](maxBottomWidth)) {
6988
+ if (!isUndefined__default["default"](maxBottomWidth)) {
6987
6989
  widthLimit = calculatedBottomWidth > maxBottomWidth ? maxBottomWidth : calculatedBottomWidth;
6988
6990
  }
6989
6991
  else {
@@ -6994,7 +6996,7 @@
6994
6996
  }
6995
6997
  else if (scale.id === this.rightScaleId && !axisConfig.right.fit) {
6996
6998
  var calculatedRightWidth = margin.right - axisConfig.right.padding - axisConfig.right.tickSize;
6997
- if (!isUndefined__default['default'](maxRightWidth)) {
6999
+ if (!isUndefined__default["default"](maxRightWidth)) {
6998
7000
  widthLimit = calculatedRightWidth > maxRightWidth ? maxRightWidth : calculatedRightWidth;
6999
7001
  }
7000
7002
  else {
@@ -7005,7 +7007,7 @@
7005
7007
  }
7006
7008
  else if (scale.id === this.leftScaleId && !axisConfig.left.fit) {
7007
7009
  var calculatedLeftWidth = margin.left - axisConfig.left.padding - axisConfig.left.tickSize;
7008
- if (!isUndefined__default['default'](maxLeftWidth)) {
7010
+ if (!isUndefined__default["default"](maxLeftWidth)) {
7009
7011
  widthLimit = calculatedLeftWidth > maxLeftWidth ? maxLeftWidth : calculatedLeftWidth;
7010
7012
  }
7011
7013
  else {
@@ -7014,13 +7016,13 @@
7014
7016
  horizontalPadding = axisConfig.left.tickLabel.horizontalPadding;
7015
7017
  overflowHandler = axisConfig.left.tickLabel.overflowHandler;
7016
7018
  }
7017
- else if (scale.id === this.rightScaleId && axisConfig.right.fit && !isUndefined__default['default'](maxRightWidth)) {
7019
+ else if (scale.id === this.rightScaleId && axisConfig.right.fit && !isUndefined__default["default"](maxRightWidth)) {
7018
7020
  widthLimit = maxRightWidth;
7019
7021
  horizontalPadding = axisConfig.right.tickLabel.horizontalPadding;
7020
7022
  overflowHandler = axisConfig.right.tickLabel.overflowHandler;
7021
7023
  fixRightMargin = true;
7022
7024
  }
7023
- else if (scale.id === this.leftScaleId && axisConfig.left.fit && !isUndefined__default['default'](maxLeftWidth)) {
7025
+ else if (scale.id === this.leftScaleId && axisConfig.left.fit && !isUndefined__default["default"](maxLeftWidth)) {
7024
7026
  widthLimit = maxLeftWidth;
7025
7027
  horizontalPadding = axisConfig.left.tickLabel.horizontalPadding;
7026
7028
  overflowHandler = axisConfig.left.tickLabel.overflowHandler;
@@ -7080,7 +7082,7 @@
7080
7082
  return this.config().axis.bottom.visible ? Grid.TICK_DIMENSION_CORRECTION : 0;
7081
7083
  };
7082
7084
  XYGrid.prototype.handleMarginUpdate = function () {
7083
- var oldMargin = clone__default['default'](this._config.dimension.margin);
7085
+ var oldMargin = clone__default["default"](this._config.dimension.margin);
7084
7086
  this.recalculateMargins(this.container);
7085
7087
  this.reconcileMarginsWithDebounce(oldMargin);
7086
7088
  };
@@ -7171,7 +7173,7 @@
7171
7173
  var smallestDiff = Infinity;
7172
7174
  var arrayOfPositions = array.map(function (tick) {
7173
7175
  var transformVal = tick.getAttribute("transform");
7174
- if (isNil__default['default'](transformVal)) {
7176
+ if (isNil__default["default"](transformVal)) {
7175
7177
  throw new Error("tick transform is not defined");
7176
7178
  }
7177
7179
  return parseFloat(transformVal.slice(transformVal.indexOf("(") + 1, transformVal.indexOf(",")));
@@ -7320,7 +7322,7 @@
7320
7322
  var grid = (mode === exports.GaugeMode.Donut) ? radialGrid() : new XYGrid(linearGaugeGridConfig(mode, gaugeConfig.linearThickness));
7321
7323
  var gridConfig = grid.config();
7322
7324
  var chart = new Chart(grid);
7323
- var enableLabels = !isEmpty__default['default']((_a = gaugeConfig.thresholds) === null || _a === void 0 ? void 0 : _a.definitions) && !((_b = gaugeConfig.thresholds) === null || _b === void 0 ? void 0 : _b.disableMarkers);
7325
+ var enableLabels = !isEmpty__default["default"]((_a = gaugeConfig.thresholds) === null || _a === void 0 ? void 0 : _a.definitions) && !((_b = gaugeConfig.thresholds) === null || _b === void 0 ? void 0 : _b.disableMarkers);
7324
7326
  if (mode === exports.GaugeMode.Donut) {
7325
7327
  if (enableLabels) {
7326
7328
  chart.addPlugin(labelsPlugin !== null && labelsPlugin !== void 0 ? labelsPlugin : new DonutGaugeLabelsPlugin());
@@ -7356,7 +7358,7 @@
7356
7358
  seriesSet.push(thresholdsSeries);
7357
7359
  }
7358
7360
  var quantityAndRemainderSeriesSet = GaugeUtil.generateQuantityAndRemainderSeriesSet(clampedConfig, renderAttrs, thresholdsSeries === null || thresholdsSeries === void 0 ? void 0 : thresholdsSeries.activeThreshold);
7359
- seriesSet = __spread(quantityAndRemainderSeriesSet, seriesSet);
7361
+ seriesSet = __spreadArray(__spreadArray([], __read(quantityAndRemainderSeriesSet)), __read(seriesSet));
7360
7362
  return seriesSet;
7361
7363
  };
7362
7364
  /**
@@ -7383,7 +7385,8 @@
7383
7385
  }
7384
7386
  if (series.id === GAUGE_THRESHOLD_MARKERS_SERIES_ID) {
7385
7387
  series.renderer.config.enabled = !((_a = clampedConfig.thresholds) === null || _a === void 0 ? void 0 : _a.disableMarkers);
7386
- series.renderer.config.markerRadius = (_c = (_b = clampedConfig.thresholds) === null || _b === void 0 ? void 0 : _b.markerRadius) !== null && _c !== void 0 ? _c : exports.StandardGaugeThresholdMarkerRadius.Large;
7388
+ series.renderer.config.markerRadius =
7389
+ (_c = (_b = clampedConfig.thresholds) === null || _b === void 0 ? void 0 : _b.markerRadius) !== null && _c !== void 0 ? _c : exports.StandardGaugeThresholdMarkerRadius.Large;
7387
7390
  return Object.assign(Object.assign({}, series), thresholdsData);
7388
7391
  }
7389
7392
  return series;
@@ -7438,7 +7441,7 @@
7438
7441
  if (mode === exports.GaugeMode.Donut) {
7439
7442
  var clearance_1 = (_b = (_a = gaugeConfig.labels) === null || _a === void 0 ? void 0 : _a.clearance) !== null && _b !== void 0 ? _b : DONUT_GAUGE_LABEL_CLEARANCE_DEFAULT;
7440
7443
  // on the radial grid the maximum margin value is used for all margins, so we use the max value here
7441
- var marginValue_1 = Math.max.apply(Math, __spread(Object.values(margin), [clearance_1]));
7444
+ var marginValue_1 = Math.max.apply(Math, __spreadArray(__spreadArray([], __read(Object.values(margin))), [clearance_1]));
7442
7445
  return {
7443
7446
  top: marginValue_1,
7444
7447
  right: marginValue_1,
@@ -7603,7 +7606,7 @@
7603
7606
  var _f = GaugeUtil.prepareThresholdsData(gaugeConfig), thresholds = _f.thresholds, activeThreshold = _f.activeThreshold;
7604
7607
  return {
7605
7608
  id: GAUGE_THRESHOLD_MARKERS_SERIES_ID,
7606
- data: __spread(thresholds, [
7609
+ data: __spreadArray(__spreadArray([], __read(thresholds)), [
7607
7610
  // tack the max value onto the end (this is used for donut arc calculation)
7608
7611
  {
7609
7612
  id: "max",
@@ -7633,7 +7636,9 @@
7633
7636
  // threshold values are exclusive when in reversed mode, inclusive otherwise
7634
7637
  hit: ((_a = gaugeConfig.thresholds) === null || _a === void 0 ? void 0 : _a.reversed) ? threshold.value < gaugeConfig.value : threshold.value <= gaugeConfig.value }));
7635
7638
  }).sort(function (a, b) { return a.value - b.value; });
7636
- var activeThreshold = ((_b = gaugeConfig.thresholds) === null || _b === void 0 ? void 0 : _b.reversed) ? thresholds === null || thresholds === void 0 ? void 0 : thresholds.find(function (threshold) { return !isUndefined__default['default'](threshold.hit) && !threshold.hit; }) : thresholds === null || thresholds === void 0 ? void 0 : thresholds.slice().reverse().find(function (threshold) { return threshold.hit; });
7639
+ var activeThreshold = ((_b = gaugeConfig.thresholds) === null || _b === void 0 ? void 0 : _b.reversed) ?
7640
+ thresholds === null || thresholds === void 0 ? void 0 : thresholds.find(function (threshold) { return !isUndefined__default["default"](threshold.hit) && !threshold.hit; }) :
7641
+ thresholds === null || thresholds === void 0 ? void 0 : thresholds.slice().reverse().find(function (threshold) { return threshold.hit; });
7637
7642
  return {
7638
7643
  thresholds: thresholds,
7639
7644
  activeThreshold: activeThreshold,
@@ -7806,7 +7811,7 @@
7806
7811
  return PointScale;
7807
7812
  }(Scale));
7808
7813
 
7809
- var intlFormat = function (date, options) { return new Intl.DateTimeFormat(moment__default['default'].locale(), options).format(date); };
7814
+ var intlFormat = function (date, options) { return new Intl.DateTimeFormat(moment__default["default"].locale(), options).format(date); };
7810
7815
  var ɵ0 = intlFormat;
7811
7816
  var formatSecond = function (d) { return intlFormat(d, { hour: "numeric", minute: "2-digit", second: "2-digit" }); }, formatMinute = function (d) { return intlFormat(d, { hour: "numeric", minute: "2-digit" }); }, formatWeek = function (d) { return intlFormat(d, { month: "short", day: "2-digit" }); }, formatMonth = function (d) { return intlFormat(d, { month: "short" }); }, formatYear = function (d) { return intlFormat(d, { year: "numeric" }); };
7812
7817
  var ɵ1 = formatSecond, ɵ2 = formatMinute, ɵ3 = formatWeek, ɵ4 = formatMonth, ɵ5 = formatYear;
@@ -7875,7 +7880,7 @@
7875
7880
  standardTimeOffsetMs = isTransFromDst ? 3600000 : -3600000;
7876
7881
  }
7877
7882
  var adjustedDate = new Date(inputDate.getTime() + standardTimeOffsetMs);
7878
- var endDate = intervalDays >= 1 ? moment__default['default'](adjustedDate).add(intervalDays, "days").toDate() : moment__default['default'](adjustedDate).add(_this.interval()).toDate();
7883
+ var endDate = intervalDays >= 1 ? moment__default["default"](adjustedDate).add(intervalDays, "days").toDate() : moment__default["default"](adjustedDate).add(_this.interval()).toDate();
7879
7884
  return datetimeFormatter(adjustedDate) + " - " + datetimeFormatter(endDate);
7880
7885
  };
7881
7886
  _this.interval(interval);
@@ -7895,17 +7900,17 @@
7895
7900
  if (domain.length === 0 || domain.length % 2 !== 0) {
7896
7901
  throw new Error("TimeIntervalScale domain has to be defined as a pair of [from, to] time values.");
7897
7902
  }
7898
- var isDomainEmpty = isEqual__default['default'](domain, EMPTY_CONTINUOUS_DOMAIN);
7903
+ var isDomainEmpty = isEqual__default["default"](domain, EMPTY_CONTINUOUS_DOMAIN);
7899
7904
  var bands = [];
7900
7905
  // only try to determine bands if the domain is not empty
7901
7906
  if (!isDomainEmpty) {
7902
7907
  for (var i = 0; i + 1 < domain.length; i += 2) {
7903
- bands.push.apply(bands, __spread(this.getBandsForInterval(domain[i], domain[i + 1])));
7908
+ bands.push.apply(bands, __spreadArray([], __read(this.getBandsForInterval(domain[i], domain[i + 1]))));
7904
7909
  }
7905
7910
  }
7906
7911
  this._bandScale.domain(bands);
7907
7912
  // maintain the same domain if it's empty
7908
- var d = isDomainEmpty ? domain : [domain[0], moment__default['default'](domain[1]).add(this.interval()).toDate()];
7913
+ var d = isDomainEmpty ? domain : [domain[0], moment__default["default"](domain[1]).add(this.interval()).toDate()];
7909
7914
  return _super.prototype.domain.call(this, d);
7910
7915
  }
7911
7916
  return _super.prototype.domain.call(this);
@@ -8058,8 +8063,7 @@
8058
8063
  data: {
8059
8064
  category: function (d) { return d.name; },
8060
8065
  value: function (d) { return d.value; },
8061
- },
8062
- series: {},
8066
+ }, series: {},
8063
8067
  };
8064
8068
  }
8065
8069
  return DataSeries;
@@ -8186,7 +8190,7 @@
8186
8190
  var ChartDonutContentPlugin = /** @class */ (function (_super) {
8187
8191
  __extends(ChartDonutContentPlugin, _super);
8188
8192
  function ChartDonutContentPlugin() {
8189
- var _this = _super.apply(this, __spread(arguments)) || this;
8193
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
8190
8194
  /** Subject for getting updates on the content position */
8191
8195
  _this.contentPositionUpdateSubject = new rxjs.Subject();
8192
8196
  /** The current content position */
@@ -8200,12 +8204,12 @@
8200
8204
  }
8201
8205
  ChartDonutContentPlugin.prototype.updateDimensions = function () {
8202
8206
  var radius = this.chart.getDataManager().chartSeriesSet.reduce(function (prev, current) {
8203
- if (current.renderer instanceof RadialRenderer && !isUndefined__default['default'](prev)) {
8207
+ if (current.renderer instanceof RadialRenderer && !isUndefined__default["default"](prev)) {
8204
8208
  return Math.min(prev, current.renderer.getInnerRadius(current.scales.r.range(), current.data.length - 1));
8205
8209
  }
8206
8210
  return prev;
8207
8211
  }, Infinity);
8208
- if (isUndefined__default['default'](radius)) {
8212
+ if (isUndefined__default["default"](radius)) {
8209
8213
  throw new Error("Radius is undefined");
8210
8214
  }
8211
8215
  this.contentPosition = this.getContentPosition(radius);
@@ -8257,7 +8261,7 @@
8257
8261
  };
8258
8262
  _this.isOpen = false;
8259
8263
  _this.destroy$ = new rxjs.Subject();
8260
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
8264
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
8261
8265
  return _this;
8262
8266
  }
8263
8267
  ChartPopoverPlugin.prototype.initialize = function () {
@@ -8293,7 +8297,7 @@
8293
8297
  if (!chartElement) {
8294
8298
  throw new Error("Chart parent node is not defined");
8295
8299
  }
8296
- var dataPointsLeft = Math.min.apply(Math, __spread(valuesArray.map(function (d) { return d.position.x; })));
8300
+ var dataPointsLeft = Math.min.apply(Math, __spreadArray([], __read(valuesArray.map(function (d) { return d.position.x; }))));
8297
8301
  var left = chartElement.offsetLeft + this.chart.getGrid().config().dimension.margin.left + dataPointsLeft;
8298
8302
  var top = chartElement.offsetTop + this.chart.getGrid().config().dimension.margin.top;
8299
8303
  // area for popovers is enlarged to cover the whole chart (top to bottom),
@@ -8302,13 +8306,13 @@
8302
8306
  top: top,
8303
8307
  left: left,
8304
8308
  height: chartElement.offsetHeight,
8305
- width: Math.max.apply(Math, __spread(valuesArray.map(function (d) { return d.position.x + (d.position.width || 0); }))) - dataPointsLeft,
8309
+ width: Math.max.apply(Math, __spreadArray([], __read(valuesArray.map(function (d) { return d.position.x + (d.position.width || 0); })))) - dataPointsLeft,
8306
8310
  };
8307
8311
  };
8308
8312
  ChartPopoverPlugin.prototype.processDataPoints = function (dataPoints) {
8309
8313
  var _this = this;
8310
- var validDataPoints = pickBy__default['default'](dataPoints, function (d) { return d.index >= 0 && d.position; });
8311
- var validDataPointsValues = values__default['default'](validDataPoints);
8314
+ var validDataPoints = pickBy__default["default"](dataPoints, function (d) { return d.index >= 0 && d.position; });
8315
+ var validDataPointsValues = values__default["default"](validDataPoints);
8312
8316
  if (validDataPointsValues.length > 0) {
8313
8317
  this.popoverTargetPosition = this.getAbsolutePosition(validDataPointsValues);
8314
8318
  this.dataPoints = validDataPoints;
@@ -8346,8 +8350,8 @@
8346
8350
  if (!chartElement) {
8347
8351
  throw new Error("Chart parent node is not defined");
8348
8352
  }
8349
- var dataPointsLeft = Math.min.apply(Math, __spread(valArr.map(function (d) { return d.position.x; })));
8350
- var dataPointsTop = Math.min.apply(Math, __spread(valArr.map(function (d) { return d.position.y; })));
8353
+ var dataPointsLeft = Math.min.apply(Math, __spreadArray([], __read(valArr.map(function (d) { return d.position.x; }))));
8354
+ var dataPointsTop = Math.min.apply(Math, __spreadArray([], __read(valArr.map(function (d) { return d.position.y; }))));
8351
8355
  var left = chartElement.offsetLeft + this.chart.getGrid().config().dimension.margin.left
8352
8356
  + dataPointsLeft + this.chart.getGrid().config().dimension.width() / 2;
8353
8357
  var top = chartElement.offsetTop + dataPointsTop + this.chart.getGrid().config().dimension.height() / 2;
@@ -8463,8 +8467,8 @@
8463
8467
  ChartTooltipsPlugin.prototype.processHighlightedDataPoints = function (dataPoints) {
8464
8468
  var _this = this;
8465
8469
  var _a, _b;
8466
- var validDataPoints = pickBy__default['default'](dataPoints, function (d) { return d.index >= 0 && d.position && (_this.seriesVisibilityMap[d.seriesId] !== false); });
8467
- if (values__default['default'](validDataPoints).length === 0) {
8470
+ var validDataPoints = pickBy__default["default"](dataPoints, function (d) { return d.index >= 0 && d.position && (_this.seriesVisibilityMap[d.seriesId] !== false); });
8471
+ if (values__default["default"](validDataPoints).length === 0) {
8468
8472
  this.hideSubject.next();
8469
8473
  return;
8470
8474
  }
@@ -8479,7 +8483,7 @@
8479
8483
  x: bbox.left - offsetParentBbox.left,
8480
8484
  y: bbox.top - offsetParentBbox.top,
8481
8485
  };
8482
- each__default['default'](Object.keys(this.dataPoints), function (seriesId) {
8486
+ each__default["default"](Object.keys(this.dataPoints), function (seriesId) {
8483
8487
  var dataPoint = _this.dataPoints[seriesId];
8484
8488
  var chartSeries = _this.chart.getDataManager().getChartSeries(dataPoint.seriesId);
8485
8489
  var tooltipRelativePosition = _this.getTooltipPosition(dataPoint, chartSeries);
@@ -8624,21 +8628,21 @@
8624
8628
  _this.config = config;
8625
8629
  _this.destroy$ = new rxjs.Subject();
8626
8630
  _this.brushStart = function (xCoord) {
8627
- if (!isUndefined__default['default'](_this.brushStartX)) {
8631
+ if (!isUndefined__default["default"](_this.brushStartX)) {
8628
8632
  return;
8629
8633
  }
8630
8634
  _this.chart.getEventBus().getStream(INTERACTION_VALUES_ACTIVE_EVENT).next({ data: false });
8631
8635
  _this.brushStartX = xCoord;
8632
8636
  };
8633
8637
  _this.brushMove = function (xCoord) {
8634
- if (isUndefined__default['default'](_this.brushStartX)) {
8638
+ if (isUndefined__default["default"](_this.brushStartX)) {
8635
8639
  return;
8636
8640
  }
8637
8641
  var selection = [_this.brushStartX, xCoord].sort(function (a, b) { return a - b; });
8638
8642
  _this.brush.move(_this.brushElement, selection);
8639
8643
  };
8640
8644
  _this.brushEnd = function (xCoord) {
8641
- if (isUndefined__default['default'](_this.brushStartX)) {
8645
+ if (isUndefined__default["default"](_this.brushStartX)) {
8642
8646
  return;
8643
8647
  }
8644
8648
  var selection = [_this.brushStartX, xCoord].sort(function (a, b) { return a - b; });
@@ -8663,7 +8667,7 @@
8663
8667
  // zoom the chart
8664
8668
  _this.chart.getEventBus().getStream(SET_DOMAIN_EVENT).next({ data: data });
8665
8669
  };
8666
- _this.config = defaultsDeep__default['default'](_this.config, ZoomPlugin.DEFAULT_CONFIG);
8670
+ _this.config = defaultsDeep__default["default"](_this.config, ZoomPlugin.DEFAULT_CONFIG);
8667
8671
  _this.interactionHandlerMap = (_a = {},
8668
8672
  _a[exports.InteractionType.MouseDown] = _this.brushStart,
8669
8673
  _a[exports.InteractionType.MouseMove] = _this.brushMove,
@@ -8687,7 +8691,7 @@
8687
8691
  return;
8688
8692
  }
8689
8693
  var data = chartEvent.data;
8690
- if (isEmpty__default['default'](_this.grid.scales) || isEmpty__default['default'](data.coordinates)) {
8694
+ if (isEmpty__default["default"](_this.grid.scales) || isEmpty__default["default"](data.coordinates)) {
8691
8695
  return;
8692
8696
  }
8693
8697
  if (_this.interactionHandlerMap[data.interactionType]) {
@@ -8773,7 +8777,7 @@
8773
8777
  */
8774
8778
  SparkChartAssist.prototype.updateSparks = function (sparks) {
8775
8779
  var _this = this;
8776
- var inputSparks = cloneDeep__default['default'](sparks);
8780
+ var inputSparks = cloneDeep__default["default"](sparks);
8777
8781
  this.sparks = inputSparks.map(function (spark, index) {
8778
8782
  var lastSpark = index === inputSparks.length - 1;
8779
8783
  var existingSparkIndex = spark.id ? _this.sparks.findIndex(function (existingSpark) { return existingSpark.id === spark.id; }) : -1;
@@ -8938,10 +8942,10 @@
8938
8942
  var startAccessor = dataAccessors["start" + accessorSuffix];
8939
8943
  var endAccessor = dataAccessors["end" + accessorSuffix];
8940
8944
  if (typeof value === "string") {
8941
- return findIndex__default['default'](series.data, function (d, i) { return value === (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series)); });
8945
+ return findIndex__default["default"](series.data, function (d, i) { return value === (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series)); });
8942
8946
  }
8943
- else if (isArray__default['default'](value)) {
8944
- return findIndex__default['default'](series.data, function (d, i) {
8947
+ else if (isArray__default["default"](value)) {
8948
+ return findIndex__default["default"](series.data, function (d, i) {
8945
8949
  var start = startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series);
8946
8950
  var lengthLimit = Math.min(_this.levels, value.length, start.length);
8947
8951
  // diy efficient array comparison
@@ -8956,7 +8960,7 @@
8956
8960
  else if (value.valueOf) {
8957
8961
  var valueOf_1 = value.valueOf();
8958
8962
  if (scales && ((_a = scales[scaleKey]) === null || _a === void 0 ? void 0 : _a.isContinuous())) {
8959
- var index = findIndex__default['default'](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
8963
+ var index = findIndex__default["default"](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
8960
8964
  valueOf_1 <= (endAccessor === null || endAccessor === void 0 ? void 0 : endAccessor(d, i, series.data, series).valueOf()); });
8961
8965
  if (index === -1 && typeof endAccessor !== "undefined") {
8962
8966
  if (isBandScale(scales[scaleKey])) {
@@ -8972,7 +8976,7 @@
8972
8976
  }
8973
8977
  return index;
8974
8978
  }
8975
- return findIndex__default['default'](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
8979
+ return findIndex__default["default"](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
8976
8980
  valueOf_1 <= (endAccessor === null || endAccessor === void 0 ? void 0 : endAccessor(d, i, series.data, series).valueOf()); });
8977
8981
  }
8978
8982
  return DATA_POINT_INTERACTION_RESET;
@@ -8980,7 +8984,7 @@
8980
8984
  BarHighlightStrategy.prototype.highlightDataPoint = function (renderer, renderSeries, dataPointIndex, rendererSubject) {
8981
8985
  var target = renderSeries.containers[exports.RenderLayerName.data];
8982
8986
  var barStylesFn = renderer.getContainerStateStyles;
8983
- var selectedDataPointIdx = !isUndefined__default['default'](this.selectedDataPointIdxFn) ? this.selectedDataPointIdxFn(renderSeries.dataSeries.id) : DATA_POINT_NOT_FOUND;
8987
+ var selectedDataPointIdx = !isUndefined__default["default"](this.selectedDataPointIdxFn) ? this.selectedDataPointIdxFn(renderSeries.dataSeries.id) : DATA_POINT_NOT_FOUND;
8984
8988
  target.selectAll("g." + renderer.barContainerClass).each(function (d, index) {
8985
8989
  var renderState;
8986
8990
  if (dataPointIndex === DATA_POINT_INTERACTION_RESET) {
@@ -9035,10 +9039,10 @@
9035
9039
  var startAccessor = dataAccessors["start" + accessorSuffix];
9036
9040
  var endAccessor = dataAccessors["end" + accessorSuffix];
9037
9041
  if (typeof value === "string") {
9038
- return findIndex__default['default'](series.data, function (d, i) { return value === (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series)); });
9042
+ return findIndex__default["default"](series.data, function (d, i) { return value === (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series)); });
9039
9043
  }
9040
- else if (isArray__default['default'](value)) {
9041
- return findIndex__default['default'](series.data, function (d, i) {
9044
+ else if (isArray__default["default"](value)) {
9045
+ return findIndex__default["default"](series.data, function (d, i) {
9042
9046
  var start = startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series);
9043
9047
  var lengthLimit = Math.min(_this.levels, value.length, start.length);
9044
9048
  // diy efficient array comparison
@@ -9052,7 +9056,7 @@
9052
9056
  }
9053
9057
  else if (value.valueOf) {
9054
9058
  var valueOf_1 = value.valueOf();
9055
- return findIndex__default['default'](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
9059
+ return findIndex__default["default"](series.data, function (d, i) { return valueOf_1 >= (startAccessor === null || startAccessor === void 0 ? void 0 : startAccessor(d, i, series.data, series).valueOf()) &&
9056
9060
  valueOf_1 <= (endAccessor === null || endAccessor === void 0 ? void 0 : endAccessor(d, i, series.data, series).valueOf()); });
9057
9061
  }
9058
9062
  return DATA_POINT_INTERACTION_RESET;
@@ -9139,7 +9143,7 @@
9139
9143
  var _this = this;
9140
9144
  var target = renderSeries.containers[exports.RenderLayerName.data];
9141
9145
  var interactionPath = target.select("path.interaction");
9142
- if (isNil__default['default'](renderer.config.strokeWidth)) {
9146
+ if (isNil__default["default"](renderer.config.strokeWidth)) {
9143
9147
  throw new Error("renderer.config.strokeWidth is not defined");
9144
9148
  }
9145
9149
  if (interactionPath.empty()) {
@@ -9243,7 +9247,7 @@
9243
9247
  markerInteraction: DEFAULT_MARKER_INTERACTION_CONFIG,
9244
9248
  };
9245
9249
  // setting default values to the properties that were not set by user
9246
- _this.config = defaultsDeep__default['default'](_this.config, _this.DEFAULT_CONFIG);
9250
+ _this.config = defaultsDeep__default["default"](_this.config, _this.DEFAULT_CONFIG);
9247
9251
  return _this;
9248
9252
  }
9249
9253
  /** See {@link Renderer#draw} */
@@ -9727,11 +9731,11 @@
9727
9731
  exports.statusAccessors = statusAccessors;
9728
9732
  exports.thresholdsSummaryGridConfig = thresholdsSummaryGridConfig;
9729
9733
  exports.thresholdsTopGridConfig = thresholdsTopGridConfig;
9730
- exports.ɵ3 = ɵ3;
9731
- exports.ɵ4 = ɵ4;
9732
- exports.ɵ5 = ɵ5;
9734
+ exports["ɵ3"] = ɵ3;
9735
+ exports["ɵ4"] = ɵ4;
9736
+ exports["ɵ5"] = ɵ5;
9733
9737
 
9734
9738
  Object.defineProperty(exports, '__esModule', { value: true });
9735
9739
 
9736
- })));
9740
+ }));
9737
9741
  //# sourceMappingURL=nova-ui-charts.umd.js.map