@nova-ui/charts 16.0.8 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/css/styles.css +1 -3
- package/chart-collection/chart-collection-id.directive.d.ts +1 -1
- package/chart-tooltips/chart-tooltips.component.d.ts +1 -1
- package/core/chart-assists/chart-assist.d.ts +1 -1
- package/core/chart-assists/spark-chart-assist.d.ts +1 -1
- package/core/chart-assists/types.d.ts +1 -2
- package/core/common/mouse-interactive-area.d.ts +1 -1
- package/core/common/render-engine.d.ts +1 -1
- package/core/common/renderer.d.ts +1 -1
- package/core/common/scales/scale.d.ts +1 -0
- package/core/common/types.d.ts +3 -3
- package/core/grid/config/linear-gauge-grid-config-fn.d.ts +1 -1
- package/core/grid/types.d.ts +1 -2
- package/core/plugins/chart-donut-content-plugin.d.ts +1 -1
- package/core/plugins/chart-popover-plugin.d.ts +1 -1
- package/core/plugins/gauge/donut-gauge-labels-plugin.d.ts +1 -1
- package/core/plugins/gauge/linear-gauge-labels-plugin.d.ts +1 -1
- package/core/plugins/tooltips/bar-tooltips-plugin.d.ts +1 -1
- package/core/plugins/tooltips/radial-tooltips-plugin.d.ts +1 -1
- package/core/types.d.ts +1 -1
- package/fesm2022/nova-ui-charts.mjs +225 -219
- package/fesm2022/nova-ui-charts.mjs.map +1 -1
- package/gauge/gauge-util.d.ts +2 -2
- package/package.json +11 -13
- package/renderers/area/stacked-area-accessors.d.ts +1 -1
- package/renderers/area/stacked-area-preprocessor.d.ts +1 -1
- package/renderers/area/stacked-percentage-area-preprocessor.d.ts +1 -1
- package/renderers/bar/accessors/horizontal-bar-accessors.d.ts +1 -1
- package/renderers/bar/accessors/status-accessors-fn.d.ts +1 -1
- package/renderers/bar/accessors/status-accessors.d.ts +1 -1
- package/renderers/bar/accessors/vertical-bar-accessors.d.ts +1 -1
- package/renderers/bar/bar-grid.d.ts +1 -1
- package/renderers/bar/bar-scales.d.ts +1 -1
- package/renderers/bar/preprocessor-utils.d.ts +1 -1
- package/renderers/bar/stacked-preprocessor.d.ts +1 -1
- package/renderers/constants.d.ts +1 -1
- package/renderers/noop-renderer.d.ts +2 -2
- package/renderers/radial/radial-preprocessor.d.ts +1 -1
- package/renderers/side-indicator-renderer.d.ts +2 -2
- package/renderers/types.d.ts +3 -3
- package/renderers/xy-renderer.d.ts +1 -1
- package/sdk/atoms/chart/atoms/chart.atom.js +1 -1
- package/sdk/atoms/chart/atoms/chart.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/lasagna.atom.js.map +1 -1
- package/sdk/atoms/chart/boosters/zoom.booster.js.map +1 -1
- package/sdk/atoms/chart/status-chart.atom.js.map +1 -1
- package/sdk/atoms/chart/test.po.js.map +1 -1
- package/sdk/atoms/chart/time-frame-bar-test.po.js.map +1 -1
- package/sdk/atoms/legend/legend-series.atom.js.map +1 -1
- package/sdk/atoms/legend/rich-legend-tile.atom.js.map +1 -1
- package/thresholds/thresholds-service.d.ts +1 -1
- package/esm2022/chart/chart.component.mjs +0 -111
- package/esm2022/chart-collection/chart-collection-id.directive.mjs +0 -69
- package/esm2022/chart-collection/chart-collection.service.mjs +0 -43
- package/esm2022/chart-collection/public-api.mjs +0 -22
- package/esm2022/chart-donut-content/chart-donut-content.component.mjs +0 -54
- package/esm2022/chart-marker/chart-marker.component.mjs +0 -100
- package/esm2022/chart-popover/chart-popover.component.mjs +0 -90
- package/esm2022/chart-tooltips/chart-tooltip.component.mjs +0 -51
- package/esm2022/chart-tooltips/chart-tooltip.directive.mjs +0 -107
- package/esm2022/chart-tooltips/chart-tooltips.component.mjs +0 -201
- package/esm2022/charts.module.mjs +0 -101
- package/esm2022/constants.mjs +0 -70
- package/esm2022/core/chart-assists/chart-assist.mjs +0 -366
- package/esm2022/core/chart-assists/public-api.mjs +0 -23
- package/esm2022/core/chart-assists/spark-chart-assist.mjs +0 -156
- package/esm2022/core/chart-assists/types.mjs +0 -46
- package/esm2022/core/chart-collection.mjs +0 -145
- package/esm2022/core/chart.mjs +0 -204
- package/esm2022/core/common/chart-plugin.mjs +0 -28
- package/esm2022/core/common/data-manager.mjs +0 -109
- package/esm2022/core/common/data-series.mjs +0 -39
- package/esm2022/core/common/event-bus.mjs +0 -36
- package/esm2022/core/common/lasagna.mjs +0 -69
- package/esm2022/core/common/mouse-interactive-area.mjs +0 -136
- package/esm2022/core/common/palette/chart-palette.mjs +0 -58
- package/esm2022/core/common/palette/color.helper.mjs +0 -31
- package/esm2022/core/common/palette/default-providers.mjs +0 -33
- package/esm2022/core/common/palette/mapped-value-provider.mjs +0 -35
- package/esm2022/core/common/palette/markers/path-marker.mjs +0 -56
- package/esm2022/core/common/palette/markers/svg-marker.mjs +0 -39
- package/esm2022/core/common/palette/palettes.mjs +0 -149
- package/esm2022/core/common/palette/processed-color-provider.mjs +0 -49
- package/esm2022/core/common/palette/public-api.mjs +0 -32
- package/esm2022/core/common/palette/sequential-chart-marker-provider.mjs +0 -32
- package/esm2022/core/common/palette/sequential-color-provider.mjs +0 -32
- package/esm2022/core/common/palette/sequential-value-provider.mjs +0 -46
- package/esm2022/core/common/palette/text-color-provider.mjs +0 -87
- package/esm2022/core/common/public-api.mjs +0 -32
- package/esm2022/core/common/render-engine.mjs +0 -255
- package/esm2022/core/common/renderer.mjs +0 -185
- package/esm2022/core/common/scales/band-scale.mjs +0 -160
- package/esm2022/core/common/scales/constants.mjs +0 -22
- package/esm2022/core/common/scales/domain-calculation/automatic-domain.mjs +0 -83
- package/esm2022/core/common/scales/domain-calculation/domain-with-auxiliary-series.mjs +0 -27
- package/esm2022/core/common/scales/domain-calculation/domain-with-ticks.mjs +0 -44
- package/esm2022/core/common/scales/domain-calculation/merge-domains.mjs +0 -50
- package/esm2022/core/common/scales/formatters/datetime-formatter.mjs +0 -50
- package/esm2022/core/common/scales/formatters/public-api.mjs +0 -21
- package/esm2022/core/common/scales/helpers/convert.mjs +0 -49
- package/esm2022/core/common/scales/helpers/domain.mjs +0 -37
- package/esm2022/core/common/scales/helpers/invert.mjs +0 -41
- package/esm2022/core/common/scales/helpers/is-in-range.mjs +0 -32
- package/esm2022/core/common/scales/linear-scale.mjs +0 -46
- package/esm2022/core/common/scales/noop-scale.mjs +0 -63
- package/esm2022/core/common/scales/point-scale.mjs +0 -83
- package/esm2022/core/common/scales/public-api.mjs +0 -35
- package/esm2022/core/common/scales/scale.mjs +0 -92
- package/esm2022/core/common/scales/time-interval-scale.mjs +0 -186
- package/esm2022/core/common/scales/time-scale.mjs +0 -51
- package/esm2022/core/common/scales/types.mjs +0 -34
- package/esm2022/core/common/types.mjs +0 -38
- package/esm2022/core/common/utility.service.mjs +0 -232
- package/esm2022/core/grid/config/area-grid-config.mjs +0 -30
- package/esm2022/core/grid/config/axis-config.mjs +0 -47
- package/esm2022/core/grid/config/bar-grid-config.mjs +0 -38
- package/esm2022/core/grid/config/bar-horizontal-grid-config.mjs +0 -40
- package/esm2022/core/grid/config/bar-status-grid-config.mjs +0 -41
- package/esm2022/core/grid/config/border-config.mjs +0 -30
- package/esm2022/core/grid/config/dimension-config.mjs +0 -83
- package/esm2022/core/grid/config/grid-config.mjs +0 -48
- package/esm2022/core/grid/config/linear-gauge-grid-config-fn.mjs +0 -54
- package/esm2022/core/grid/config/public-api.mjs +0 -31
- package/esm2022/core/grid/config/spark-chart-grid-config.mjs +0 -51
- package/esm2022/core/grid/config/xy-grid-config.mjs +0 -62
- package/esm2022/core/grid/default-text-overflow-handler.mjs +0 -56
- package/esm2022/core/grid/grid.mjs +0 -331
- package/esm2022/core/grid/public-api.mjs +0 -25
- package/esm2022/core/grid/radial-grid.mjs +0 -72
- package/esm2022/core/grid/types.mjs +0 -21
- package/esm2022/core/grid/xy-grid.mjs +0 -778
- package/esm2022/core/plugins/chart-donut-content-plugin.mjs +0 -69
- package/esm2022/core/plugins/chart-popover-plugin.mjs +0 -137
- package/esm2022/core/plugins/gauge/constants.mjs +0 -32
- package/esm2022/core/plugins/gauge/donut-gauge-labels-plugin.mjs +0 -158
- package/esm2022/core/plugins/gauge/linear-gauge-labels-plugin.mjs +0 -171
- package/esm2022/core/plugins/gauge/public-api.mjs +0 -24
- package/esm2022/core/plugins/gauge/types.mjs +0 -21
- package/esm2022/core/plugins/interaction/interaction-label-plugin.mjs +0 -180
- package/esm2022/core/plugins/interaction/interaction-line-plugin.mjs +0 -117
- package/esm2022/core/plugins/interaction/public-api.mjs +0 -22
- package/esm2022/core/plugins/mouse-interactive-area-plugin.mjs +0 -113
- package/esm2022/core/plugins/public-api.mjs +0 -32
- package/esm2022/core/plugins/radial-popover-plugin.mjs +0 -47
- package/esm2022/core/plugins/render-engine-plugin.mjs +0 -87
- package/esm2022/core/plugins/timeseries-zoom-plugin-sync.service.mjs +0 -69
- package/esm2022/core/plugins/timeseries-zoom-plugin.mjs +0 -364
- package/esm2022/core/plugins/tooltips/bar-tooltips-plugin.mjs +0 -26
- package/esm2022/core/plugins/tooltips/chart-tooltips-plugin.mjs +0 -205
- package/esm2022/core/plugins/tooltips/index.mjs +0 -23
- package/esm2022/core/plugins/tooltips/radial-tooltips-plugin.mjs +0 -104
- package/esm2022/core/plugins/types.mjs +0 -21
- package/esm2022/core/plugins/zoom-plugin.mjs +0 -167
- package/esm2022/core/public-api.mjs +0 -27
- package/esm2022/core/types.mjs +0 -34
- package/esm2022/gauge/constants.mjs +0 -83
- package/esm2022/gauge/gauge-util.mjs +0 -484
- package/esm2022/gauge/public-api.mjs +0 -23
- package/esm2022/gauge/types.mjs +0 -21
- package/esm2022/legend/legend-series/legend-series.component.mjs +0 -179
- package/esm2022/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.mjs +0 -30
- package/esm2022/legend/legend-tile/public-api.mjs +0 -22
- package/esm2022/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.mjs +0 -96
- package/esm2022/legend/legend.component.mjs +0 -79
- package/esm2022/legend/public-api.mjs +0 -23
- package/esm2022/legend/types.mjs +0 -25
- package/esm2022/nova-ui-charts.mjs +0 -5
- package/esm2022/public-api.mjs +0 -35
- package/esm2022/renderers/accessors/noop-accessors.mjs +0 -28
- package/esm2022/renderers/accessors/public-api.mjs +0 -23
- package/esm2022/renderers/accessors/rectangle-accessors.mjs +0 -25
- package/esm2022/renderers/accessors/xy-accessors.mjs +0 -27
- package/esm2022/renderers/area/area-accessors.mjs +0 -47
- package/esm2022/renderers/area/area-grid.mjs +0 -32
- package/esm2022/renderers/area/area-renderer.mjs +0 -164
- package/esm2022/renderers/area/public-api.mjs +0 -26
- package/esm2022/renderers/area/stacked-area-accessors.mjs +0 -29
- package/esm2022/renderers/area/stacked-area-preprocessor.mjs +0 -60
- package/esm2022/renderers/area/stacked-percentage-area-preprocessor.mjs +0 -83
- package/esm2022/renderers/bar/accessors/bar-accessors-fn.mjs +0 -36
- package/esm2022/renderers/bar/accessors/bar-accessors.mjs +0 -88
- package/esm2022/renderers/bar/accessors/horizontal-bar-accessors.mjs +0 -36
- package/esm2022/renderers/bar/accessors/public-api.mjs +0 -26
- package/esm2022/renderers/bar/accessors/status-accessors-fn.mjs +0 -28
- package/esm2022/renderers/bar/accessors/status-accessors.mjs +0 -35
- package/esm2022/renderers/bar/accessors/vertical-bar-accessors.mjs +0 -36
- package/esm2022/renderers/bar/bar-grid.mjs +0 -37
- package/esm2022/renderers/bar/bar-renderer.mjs +0 -251
- package/esm2022/renderers/bar/bar-scales.mjs +0 -50
- package/esm2022/renderers/bar/highlight-strategies/bar-highlight-strategy-outline.mjs +0 -82
- package/esm2022/renderers/bar/highlight-strategies/bar-highlight-strategy.mjs +0 -140
- package/esm2022/renderers/bar/highlight-strategies/bar-series-highlight-strategy.mjs +0 -84
- package/esm2022/renderers/bar/highlight-strategies/public-api.mjs +0 -23
- package/esm2022/renderers/bar/linear-gauge-renderer-config.mjs +0 -32
- package/esm2022/renderers/bar/linear-gauge-thresholds-renderer.mjs +0 -78
- package/esm2022/renderers/bar/preprocessor-utils.mjs +0 -32
- package/esm2022/renderers/bar/public-api.mjs +0 -28
- package/esm2022/renderers/bar/stacked-preprocessor.mjs +0 -66
- package/esm2022/renderers/bar/types.mjs +0 -21
- package/esm2022/renderers/constants.mjs +0 -66
- package/esm2022/renderers/line/calculate-missing-data.mjs +0 -66
- package/esm2022/renderers/line/interaction-strategies/line-select-series-interaction-strategy.mjs +0 -96
- package/esm2022/renderers/line/interaction-strategies/public-api.mjs +0 -21
- package/esm2022/renderers/line/line-accessors.mjs +0 -46
- package/esm2022/renderers/line/line-renderer.mjs +0 -211
- package/esm2022/renderers/line/missing-data-line-renderer-config.mjs +0 -28
- package/esm2022/renderers/line/public-api.mjs +0 -25
- package/esm2022/renderers/marker-utils.mjs +0 -149
- package/esm2022/renderers/noop-renderer.mjs +0 -39
- package/esm2022/renderers/public-api.mjs +0 -30
- package/esm2022/renderers/radial/accessors/radial-accessors.mjs +0 -35
- package/esm2022/renderers/radial/gauge/donut-gauge-renderer-config.mjs +0 -31
- package/esm2022/renderers/radial/gauge/donut-gauge-rendering-util.mjs +0 -47
- package/esm2022/renderers/radial/gauge/donut-gauge-thresholds-renderer.mjs +0 -85
- package/esm2022/renderers/radial/pie-renderer.mjs +0 -29
- package/esm2022/renderers/radial/public-api.mjs +0 -29
- package/esm2022/renderers/radial/radial-grid-fn.mjs +0 -27
- package/esm2022/renderers/radial/radial-preprocessor.mjs +0 -54
- package/esm2022/renderers/radial/radial-renderer.mjs +0 -180
- package/esm2022/renderers/radial/radial-scales.mjs +0 -30
- package/esm2022/renderers/side-indicator-renderer.mjs +0 -101
- package/esm2022/renderers/types.mjs +0 -34
- package/esm2022/renderers/xy-renderer.mjs +0 -54
- package/esm2022/thresholds/public-api.mjs +0 -24
- package/esm2022/thresholds/thresholds-service.mjs +0 -392
- package/esm2022/thresholds/thresholds-summary-grid-config.mjs +0 -34
- package/esm2022/thresholds/thresholds-top-grid-config.mjs +0 -32
- package/esm2022/thresholds/types.mjs +0 -28
- package/sdk/locale/messages.en.xlf +0 -374
|
@@ -2,7 +2,7 @@ import * as i1$1 from '@angular/cdk/overlay';
|
|
|
2
2
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
3
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { Input, ChangeDetectionStrategy, Component, Directive, InjectionToken, ViewChildren, EventEmitter, ViewChild, Output, forwardRef, Injectable, Inject, ViewEncapsulation, HostListener, HostBinding, Optional, Host, NgModule } from '@angular/core';
|
|
6
6
|
import { Subject, BehaviorSubject, of } from 'rxjs';
|
|
7
7
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
8
8
|
import * as i1 from '@angular/common';
|
|
@@ -21,8 +21,8 @@ import * as i1$2 from '@nova-ui/bits';
|
|
|
21
21
|
import { PopoverComponent, UtilService, NuiCommonModule, NuiIconModule, NuiPopoverModule } from '@nova-ui/bits';
|
|
22
22
|
import isFunction from 'lodash/isFunction';
|
|
23
23
|
import 'd3-selection-multi';
|
|
24
|
-
import findKey from 'lodash/findKey';
|
|
25
24
|
import debounce from 'lodash/debounce';
|
|
25
|
+
import findKey from 'lodash/findKey';
|
|
26
26
|
import isEmpty from 'lodash/isEmpty';
|
|
27
27
|
import cloneDeep from 'lodash/cloneDeep';
|
|
28
28
|
import sortBy from 'lodash/sortBy';
|
|
@@ -73,8 +73,8 @@ import findIndex from 'lodash/findIndex';
|
|
|
73
73
|
// THE SOFTWARE.
|
|
74
74
|
class ChartTooltipComponent {
|
|
75
75
|
template;
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartTooltipComponent, isStandalone: false, selector: "nui-chart-tooltip", inputs: { template: "template" }, ngImport: i0, template: "<div>\n <div @tooltip class=\"nui-chart-tooltip px-2 py-1 nui-text-small\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", 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"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
78
78
|
trigger("tooltip", [
|
|
79
79
|
transition(":enter", [
|
|
80
80
|
style({ opacity: 0 }),
|
|
@@ -84,7 +84,7 @@ class ChartTooltipComponent {
|
|
|
84
84
|
]),
|
|
85
85
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
86
86
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipComponent, decorators: [{
|
|
88
88
|
type: Component,
|
|
89
89
|
args: [{ selector: "nui-chart-tooltip", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
90
90
|
trigger("tooltip", [
|
|
@@ -94,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
94
94
|
]),
|
|
95
95
|
transition(":leave", [animate(300, style({ opacity: 0 }))]),
|
|
96
96
|
]),
|
|
97
|
-
], template: "<div>\n <div @tooltip class=\"nui-chart-tooltip px-2 py-1 nui-text-small\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", 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"] }]
|
|
97
|
+
], standalone: false, template: "<div>\n <div @tooltip class=\"nui-chart-tooltip px-2 py-1 nui-text-small\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", 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"] }]
|
|
98
98
|
}], propDecorators: { template: [{
|
|
99
99
|
type: Input
|
|
100
100
|
}] } });
|
|
@@ -183,13 +183,16 @@ class ChartTooltipDirective {
|
|
|
183
183
|
getOverlayElement() {
|
|
184
184
|
return this.overlayRef.overlayElement;
|
|
185
185
|
}
|
|
186
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipDirective, deps: [{ token: i1$1.Overlay }, { token: i1$1.OverlayPositionBuilder }, { token: i1$1.ScrollStrategyOptions }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
187
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.7", type: ChartTooltipDirective, isStandalone: false, selector: "[nuiChartTooltip]", inputs: { template: "template", openRemoteControl: "openRemoteControl", closeRemoteControl: "closeRemoteControl", positions: "positions" }, ngImport: i0 });
|
|
188
188
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipDirective, decorators: [{
|
|
190
190
|
type: Directive,
|
|
191
|
-
args: [{
|
|
192
|
-
|
|
191
|
+
args: [{
|
|
192
|
+
selector: "[nuiChartTooltip]",
|
|
193
|
+
standalone: false,
|
|
194
|
+
}]
|
|
195
|
+
}], ctorParameters: () => [{ type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: i1$1.ScrollStrategyOptions }, { type: i0.ElementRef }], propDecorators: { template: [{
|
|
193
196
|
type: Input
|
|
194
197
|
}], openRemoteControl: [{
|
|
195
198
|
type: Input
|
|
@@ -857,12 +860,12 @@ class ChartDonutContentComponent {
|
|
|
857
860
|
this.contentPositionUpdateSubscription.unsubscribe();
|
|
858
861
|
}
|
|
859
862
|
}
|
|
860
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
861
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
863
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartDonutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
864
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartDonutContentComponent, isStandalone: false, selector: "nui-chart-donut-content", inputs: { plugin: "plugin" }, usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
862
865
|
}
|
|
863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartDonutContentComponent, decorators: [{
|
|
864
867
|
type: Component,
|
|
865
|
-
args: [{ selector: "nui-chart-donut-content", template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
868
|
+
args: [{ selector: "nui-chart-donut-content", standalone: false, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
866
869
|
}], propDecorators: { plugin: [{
|
|
867
870
|
type: Input
|
|
868
871
|
}] } });
|
|
@@ -1236,13 +1239,13 @@ class ChartTooltipsComponent {
|
|
|
1236
1239
|
isVertical() {
|
|
1237
1240
|
return this.plugin.orientation === "right";
|
|
1238
1241
|
}
|
|
1239
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1240
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartTooltipsComponent, isStandalone: false, selector: "nui-chart-tooltips", inputs: { plugin: "plugin", template: "template" }, viewQueries: [{ propertyName: "tooltips", predicate: ChartTooltipDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"\n ></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"\n ></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[nuiChartTooltip]", inputs: ["template", "openRemoteControl", "closeRemoteControl", "positions"] }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }] });
|
|
1241
1244
|
}
|
|
1242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartTooltipsComponent, decorators: [{
|
|
1243
1246
|
type: Component,
|
|
1244
|
-
args: [{ selector: "nui-chart-tooltips", template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"\n ></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"\n ></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"] }]
|
|
1245
|
-
}], ctorParameters:
|
|
1247
|
+
args: [{ selector: "nui-chart-tooltips", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <div *ngFor=\"let item of plugin.dataPoints | keyvalue; trackBy: trackByFn\">\n <ng-template #tooltipTemplate>\n <ng-container\n *ngTemplateOutlet=\"template; context: { dataPoint: item.value }\"\n ></ng-container>\n </ng-template>\n\n <div\n nuiChartTooltip\n *ngIf=\"plugin.dataPointPositions[item.key]\"\n [attr.series-id]=\"item.key\"\n [template]=\"tooltipTemplate\"\n [openRemoteControl]=\"openTooltips\"\n [closeRemoteControl]=\"closeTooltips\"\n [positions]=\"plugin.dataPointPositions[item.key].overlayPositions\"\n class=\"chart-tooltips__popover\"\n [style.left.px]=\"plugin.dataPointPositions[item.key].x\"\n [style.top.px]=\"plugin.dataPointPositions[item.key].y\"\n [style.height.px]=\"plugin.dataPointPositions[item.key].height\"\n [style.width.px]=\"plugin.dataPointPositions[item.key].width\"\n ></div>\n </div>\n</div>\n", styles: [".chart-tooltips__popover{position:absolute;pointer-events:none}\n"] }]
|
|
1248
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { plugin: [{
|
|
1246
1249
|
type: Input
|
|
1247
1250
|
}], template: [{
|
|
1248
1251
|
type: Input
|
|
@@ -1445,13 +1448,13 @@ class ChartPopoverComponent {
|
|
|
1445
1448
|
this.update.next(this.plugin?.dataPoints);
|
|
1446
1449
|
});
|
|
1447
1450
|
}
|
|
1448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1449
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1451
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartPopoverComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1452
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartPopoverComponent, isStandalone: false, selector: "nui-chart-popover", inputs: { plugin: "plugin", template: "template" }, outputs: { update: "update" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\"\n >\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"\n ></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$2.PopoverComponent, selector: "nui-popover", inputs: ["closePopover", "openPopover", "disabled", "trigger", "template", "placement", "popoverTitle", "icon", "modal", "container", "hasPadding", "preventClosing", "unlimited", "delay", "withGrowAfterOpen", "popoverOverlayPosition"], outputs: ["shown", "hidden"] }] });
|
|
1450
1453
|
}
|
|
1451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartPopoverComponent, decorators: [{
|
|
1452
1455
|
type: Component,
|
|
1453
|
-
args: [{ selector: "nui-chart-popover", template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\"\n >\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"\n ></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"] }]
|
|
1454
|
-
}], ctorParameters:
|
|
1456
|
+
args: [{ selector: "nui-chart-popover", standalone: false, template: "<div *ngIf=\"plugin && plugin.dataPoints\">\n <nui-popover\n class=\"chart-popover__popover\"\n trigger=\"openPopoverSubject\"\n placement=\"top\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [openPopover]=\"plugin.openPopoverSubject\"\n [closePopover]=\"plugin.closePopoverSubject\"\n [hasPadding]=\"false\"\n [container]=\"element.nativeElement\"\n [style.height.px]=\"plugin.popoverTargetPosition.height\"\n [withGrowAfterOpen]=\"true\"\n >\n </nui-popover>\n\n <ng-template #popoverTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n template;\n context: { dataPoints: plugin.dataPoints }\n \"\n ></ng-container>\n </ng-template>\n</div>\n", styles: [":host{position:absolute}.chart-popover__popover{position:absolute;pointer-events:none}\n"] }]
|
|
1457
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { plugin: [{
|
|
1455
1458
|
type: Input
|
|
1456
1459
|
}], template: [{
|
|
1457
1460
|
type: Input
|
|
@@ -1539,13 +1542,13 @@ class ChartMarkerComponent {
|
|
|
1539
1542
|
this.changeDetector.markForCheck();
|
|
1540
1543
|
});
|
|
1541
1544
|
}
|
|
1542
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1543
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartMarkerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1546
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartMarkerComponent, isStandalone: false, selector: "nui-chart-marker", inputs: { marker: "marker", drawLine: "drawLine", color: "color", maxSize: "maxSize" }, viewQueries: [{ propertyName: "svgContent", first: true, predicate: ["svgContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] });
|
|
1544
1547
|
}
|
|
1545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartMarkerComponent, decorators: [{
|
|
1546
1549
|
type: Component,
|
|
1547
|
-
args: [{ selector: "nui-chart-marker", template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] }]
|
|
1548
|
-
}], ctorParameters:
|
|
1550
|
+
args: [{ selector: "nui-chart-marker", standalone: false, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] }]
|
|
1551
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { marker: [{
|
|
1549
1552
|
type: Input
|
|
1550
1553
|
}], drawLine: [{
|
|
1551
1554
|
type: Input
|
|
@@ -1558,6 +1561,114 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1558
1561
|
args: ["svgContent"]
|
|
1559
1562
|
}] } });
|
|
1560
1563
|
|
|
1564
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1565
|
+
//
|
|
1566
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1567
|
+
// of this software and associated documentation files (the "Software"), to
|
|
1568
|
+
// deal in the Software without restriction, including without limitation the
|
|
1569
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1570
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
1571
|
+
// furnished to do so, subject to the following conditions:
|
|
1572
|
+
//
|
|
1573
|
+
// The above copyright notice and this permission notice shall be included in
|
|
1574
|
+
// all copies or substantial portions of the Software.
|
|
1575
|
+
//
|
|
1576
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1577
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1578
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1579
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1580
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1581
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1582
|
+
// THE SOFTWARE.
|
|
1583
|
+
class ChartComponent {
|
|
1584
|
+
elRef;
|
|
1585
|
+
ngZone;
|
|
1586
|
+
cd;
|
|
1587
|
+
chart;
|
|
1588
|
+
resizeObserver;
|
|
1589
|
+
resizeHandler;
|
|
1590
|
+
intersectionObserver;
|
|
1591
|
+
constructor(elRef, ngZone, cd) {
|
|
1592
|
+
this.elRef = elRef;
|
|
1593
|
+
this.ngZone = ngZone;
|
|
1594
|
+
this.cd = cd;
|
|
1595
|
+
}
|
|
1596
|
+
ngOnInit() {
|
|
1597
|
+
this.intersectionObserver = new IntersectionObserver(this.intersectionObserverCallback);
|
|
1598
|
+
this.intersectionObserver.observe(this.elRef.nativeElement);
|
|
1599
|
+
}
|
|
1600
|
+
ngOnChanges(changes) {
|
|
1601
|
+
if (changes["chart"]) {
|
|
1602
|
+
const previousChart = changes["chart"].previousValue;
|
|
1603
|
+
if (previousChart) {
|
|
1604
|
+
previousChart.destroy();
|
|
1605
|
+
}
|
|
1606
|
+
if (this.chart) {
|
|
1607
|
+
this.chart.build(this.elRef.nativeElement);
|
|
1608
|
+
this.redraw();
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
ngAfterContentInit() {
|
|
1613
|
+
this.chart
|
|
1614
|
+
.getEventBus()
|
|
1615
|
+
.getStream(REFRESH_EVENT)
|
|
1616
|
+
.subscribe(() => {
|
|
1617
|
+
this.chart.updateDimensions();
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
ngAfterViewInit() {
|
|
1621
|
+
this.resizeHandler = debounce(() => this.redraw(), 10);
|
|
1622
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
1623
|
+
// This was suggested here https://github.com/angular/zone.js/issues/1011
|
|
1624
|
+
this.ngZone.run(() => this.resizeHandler());
|
|
1625
|
+
});
|
|
1626
|
+
this.ngZone.runOutsideAngular(() => this.resizeObserver?.observe(this.elRef.nativeElement));
|
|
1627
|
+
}
|
|
1628
|
+
ngOnDestroy() {
|
|
1629
|
+
this.intersectionObserver?.unobserve(this.elRef.nativeElement);
|
|
1630
|
+
this.resizeObserver?.unobserve(this.elRef.nativeElement);
|
|
1631
|
+
this.chart?.destroy();
|
|
1632
|
+
}
|
|
1633
|
+
redraw = () => {
|
|
1634
|
+
this.chart.updateDimensions();
|
|
1635
|
+
this.cd.detectChanges();
|
|
1636
|
+
};
|
|
1637
|
+
intersectionObserverCallback = (entries) => {
|
|
1638
|
+
// Since we're only listening for intersection changes for one target (the chart itself), the 'entries' argument always has just one element.
|
|
1639
|
+
const data = {
|
|
1640
|
+
isChartInView: entries[0].isIntersecting,
|
|
1641
|
+
};
|
|
1642
|
+
this.chart
|
|
1643
|
+
.getEventBus()
|
|
1644
|
+
.getStream(CHART_VIEW_STATUS_EVENT)
|
|
1645
|
+
.next({ data });
|
|
1646
|
+
};
|
|
1647
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1648
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: ChartComponent, isStandalone: false, selector: "nui-chart", inputs: { chart: "chart" }, providers: [
|
|
1649
|
+
{
|
|
1650
|
+
provide: CHART_COMPONENT,
|
|
1651
|
+
useExisting: forwardRef(() => ChartComponent),
|
|
1652
|
+
},
|
|
1653
|
+
], usesOnChanges: true, ngImport: i0, template: "", isInline: true });
|
|
1654
|
+
}
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartComponent, decorators: [{
|
|
1656
|
+
type: Component,
|
|
1657
|
+
args: [{
|
|
1658
|
+
selector: "nui-chart",
|
|
1659
|
+
template: "",
|
|
1660
|
+
providers: [
|
|
1661
|
+
{
|
|
1662
|
+
provide: CHART_COMPONENT,
|
|
1663
|
+
useExisting: forwardRef(() => ChartComponent),
|
|
1664
|
+
},
|
|
1665
|
+
],
|
|
1666
|
+
standalone: false,
|
|
1667
|
+
}]
|
|
1668
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { chart: [{
|
|
1669
|
+
type: Input
|
|
1670
|
+
}] } });
|
|
1671
|
+
|
|
1561
1672
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1562
1673
|
//
|
|
1563
1674
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1764,10 +1875,10 @@ class ChartCollectionService {
|
|
|
1764
1875
|
}
|
|
1765
1876
|
return collection;
|
|
1766
1877
|
}
|
|
1767
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1768
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1878
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartCollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1879
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartCollectionService });
|
|
1769
1880
|
}
|
|
1770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartCollectionService, decorators: [{
|
|
1771
1882
|
type: Injectable
|
|
1772
1883
|
}] });
|
|
1773
1884
|
|
|
@@ -1819,129 +1930,23 @@ class ChartCollectionIdDirective {
|
|
|
1819
1930
|
}
|
|
1820
1931
|
}
|
|
1821
1932
|
}
|
|
1822
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1823
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1933
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartCollectionIdDirective, deps: [{ token: CHART_COMPONENT }, { token: ChartCollectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1934
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.7", type: ChartCollectionIdDirective, isStandalone: false, selector: "[nuiChartCollectionId]", inputs: { collectionId: ["nuiChartCollectionId", "collectionId"] }, usesOnChanges: true, ngImport: i0 });
|
|
1824
1935
|
}
|
|
1825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ChartCollectionIdDirective, decorators: [{
|
|
1826
1937
|
type: Directive,
|
|
1827
1938
|
args: [{
|
|
1828
1939
|
selector: "[nuiChartCollectionId]",
|
|
1940
|
+
standalone: false,
|
|
1829
1941
|
}]
|
|
1830
|
-
}], ctorParameters:
|
|
1942
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1831
1943
|
type: Inject,
|
|
1832
1944
|
args: [CHART_COMPONENT]
|
|
1833
|
-
}] }, { type: ChartCollectionService }]
|
|
1945
|
+
}] }, { type: ChartCollectionService }], propDecorators: { collectionId: [{
|
|
1834
1946
|
type: Input,
|
|
1835
1947
|
args: ["nuiChartCollectionId"]
|
|
1836
1948
|
}] } });
|
|
1837
1949
|
|
|
1838
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1839
|
-
//
|
|
1840
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1841
|
-
// of this software and associated documentation files (the "Software"), to
|
|
1842
|
-
// deal in the Software without restriction, including without limitation the
|
|
1843
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1844
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
1845
|
-
// furnished to do so, subject to the following conditions:
|
|
1846
|
-
//
|
|
1847
|
-
// The above copyright notice and this permission notice shall be included in
|
|
1848
|
-
// all copies or substantial portions of the Software.
|
|
1849
|
-
//
|
|
1850
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1851
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1852
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1853
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1854
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1855
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1856
|
-
// THE SOFTWARE.
|
|
1857
|
-
class ChartComponent {
|
|
1858
|
-
elRef;
|
|
1859
|
-
ngZone;
|
|
1860
|
-
cd;
|
|
1861
|
-
chart;
|
|
1862
|
-
resizeObserver;
|
|
1863
|
-
resizeHandler;
|
|
1864
|
-
intersectionObserver;
|
|
1865
|
-
constructor(elRef, ngZone, cd) {
|
|
1866
|
-
this.elRef = elRef;
|
|
1867
|
-
this.ngZone = ngZone;
|
|
1868
|
-
this.cd = cd;
|
|
1869
|
-
}
|
|
1870
|
-
ngOnInit() {
|
|
1871
|
-
this.intersectionObserver = new IntersectionObserver(this.intersectionObserverCallback);
|
|
1872
|
-
this.intersectionObserver.observe(this.elRef.nativeElement);
|
|
1873
|
-
}
|
|
1874
|
-
ngOnChanges(changes) {
|
|
1875
|
-
if (changes["chart"]) {
|
|
1876
|
-
const previousChart = changes["chart"].previousValue;
|
|
1877
|
-
if (previousChart) {
|
|
1878
|
-
previousChart.destroy();
|
|
1879
|
-
}
|
|
1880
|
-
if (this.chart) {
|
|
1881
|
-
this.chart.build(this.elRef.nativeElement);
|
|
1882
|
-
this.redraw();
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
ngAfterContentInit() {
|
|
1887
|
-
this.chart
|
|
1888
|
-
.getEventBus()
|
|
1889
|
-
.getStream(REFRESH_EVENT)
|
|
1890
|
-
.subscribe(() => {
|
|
1891
|
-
this.chart.updateDimensions();
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
ngAfterViewInit() {
|
|
1895
|
-
this.resizeHandler = debounce(() => this.redraw(), 10);
|
|
1896
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
1897
|
-
// This was suggested here https://github.com/angular/zone.js/issues/1011
|
|
1898
|
-
this.ngZone.run(() => this.resizeHandler());
|
|
1899
|
-
});
|
|
1900
|
-
this.ngZone.runOutsideAngular(() => this.resizeObserver?.observe(this.elRef.nativeElement));
|
|
1901
|
-
}
|
|
1902
|
-
ngOnDestroy() {
|
|
1903
|
-
this.intersectionObserver?.unobserve(this.elRef.nativeElement);
|
|
1904
|
-
this.resizeObserver?.unobserve(this.elRef.nativeElement);
|
|
1905
|
-
this.chart?.destroy();
|
|
1906
|
-
}
|
|
1907
|
-
redraw = () => {
|
|
1908
|
-
this.chart.updateDimensions();
|
|
1909
|
-
this.cd.detectChanges();
|
|
1910
|
-
};
|
|
1911
|
-
intersectionObserverCallback = (entries) => {
|
|
1912
|
-
// Since we're only listening for intersection changes for one target (the chart itself), the 'entries' argument always has just one element.
|
|
1913
|
-
const data = {
|
|
1914
|
-
isChartInView: entries[0].isIntersecting,
|
|
1915
|
-
};
|
|
1916
|
-
this.chart
|
|
1917
|
-
.getEventBus()
|
|
1918
|
-
.getStream(CHART_VIEW_STATUS_EVENT)
|
|
1919
|
-
.next({ data });
|
|
1920
|
-
};
|
|
1921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1922
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChartComponent, selector: "nui-chart", inputs: { chart: "chart" }, providers: [
|
|
1923
|
-
{
|
|
1924
|
-
provide: CHART_COMPONENT,
|
|
1925
|
-
useExisting: forwardRef(() => ChartComponent),
|
|
1926
|
-
},
|
|
1927
|
-
], usesOnChanges: true, ngImport: i0, template: "", isInline: true });
|
|
1928
|
-
}
|
|
1929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartComponent, decorators: [{
|
|
1930
|
-
type: Component,
|
|
1931
|
-
args: [{
|
|
1932
|
-
selector: "nui-chart",
|
|
1933
|
-
template: "",
|
|
1934
|
-
providers: [
|
|
1935
|
-
{
|
|
1936
|
-
provide: CHART_COMPONENT,
|
|
1937
|
-
useExisting: forwardRef(() => ChartComponent),
|
|
1938
|
-
},
|
|
1939
|
-
],
|
|
1940
|
-
}]
|
|
1941
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { chart: [{
|
|
1942
|
-
type: Input
|
|
1943
|
-
}] } });
|
|
1944
|
-
|
|
1945
1950
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1946
1951
|
//
|
|
1947
1952
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -2023,12 +2028,12 @@ class LegendComponent {
|
|
|
2023
2028
|
ngOnDestroy() {
|
|
2024
2029
|
this.activeChanged.complete();
|
|
2025
2030
|
}
|
|
2026
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2027
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2031
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: LegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2032
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: LegendComponent, isStandalone: false, selector: "nui-legend", inputs: { active: "active", interactive: "interactive", orientation: "orientation", seriesColor: "seriesColor", seriesIcon: "seriesIcon", seriesUnitLabel: "seriesUnitLabel" }, host: { classAttribute: "d-inline-block" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" });
|
|
2028
2033
|
}
|
|
2029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: LegendComponent, decorators: [{
|
|
2030
2035
|
type: Component,
|
|
2031
|
-
args: [{ selector: "nui-legend", host: { class: "d-inline-block" }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" }]
|
|
2036
|
+
args: [{ selector: "nui-legend", host: { class: "d-inline-block" }, encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" }]
|
|
2032
2037
|
}], propDecorators: { active: [{
|
|
2033
2038
|
type: Input
|
|
2034
2039
|
}], interactive: [{
|
|
@@ -2169,17 +2174,17 @@ class LegendSeriesComponent {
|
|
|
2169
2174
|
return (!!this.projectedDescription &&
|
|
2170
2175
|
this.projectedDescription.nativeElement.children.length !== 0);
|
|
2171
2176
|
}
|
|
2172
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: LegendSeriesComponent, deps: [{ token: LegendComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: LegendSeriesComponent, isStandalone: false, selector: "nui-legend-series", inputs: { active: "active", interactive: "interactive", isSelected: "isSelected", descriptionPrimary: "descriptionPrimary", descriptionSecondary: "descriptionSecondary", icon: "icon", color: "color", seriesRenderState: "seriesRenderState" }, outputs: { isSelectedChange: "isSelectedChange" }, host: { listeners: { "click": "onClick()" }, properties: { "class.nui-legend-series--interactive": "this.isInteractiveClassApplied", "class.nui-legend-series--horizontal": "this.isHorizontalClassApplied", "class.inverse": "this.isActiveClassApplied" }, classAttribute: "nui-legend-series" }, viewQueries: [{ propertyName: "projectedDescription", first: true, predicate: ["projectedDescription"], descendants: true }], ngImport: i0, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2174
2179
|
}
|
|
2175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: LegendSeriesComponent, decorators: [{
|
|
2176
2181
|
type: Component,
|
|
2177
|
-
args: [{ host: { class: LEGEND_SERIES_CLASS_NAME }, selector: "nui-legend-series", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n" }]
|
|
2178
|
-
}], ctorParameters:
|
|
2182
|
+
args: [{ host: { class: LEGEND_SERIES_CLASS_NAME }, selector: "nui-legend-series", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n" }]
|
|
2183
|
+
}], ctorParameters: () => [{ type: LegendComponent, decorators: [{
|
|
2179
2184
|
type: Optional
|
|
2180
2185
|
}, {
|
|
2181
2186
|
type: Host
|
|
2182
|
-
}] }]
|
|
2187
|
+
}] }], propDecorators: { active: [{
|
|
2183
2188
|
type: Input
|
|
2184
2189
|
}], interactive: [{
|
|
2185
2190
|
type: Input
|
|
@@ -2234,12 +2239,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2234
2239
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2235
2240
|
// THE SOFTWARE.
|
|
2236
2241
|
class BasicLegendTileComponent {
|
|
2237
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2238
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BasicLegendTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: BasicLegendTileComponent, isStandalone: false, selector: "nui-basic-legend-tile", ngImport: i0, template: "<div class=\"nui-basic-legend-tile\">\n <ng-content></ng-content>\n</div>\n", styles: [".nui-basic-legend-tile{height:100%;min-height:30px;min-width:30px;display:flex;align-items:center;justify-content:center}\n"] });
|
|
2239
2244
|
}
|
|
2240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BasicLegendTileComponent, decorators: [{
|
|
2241
2246
|
type: Component,
|
|
2242
|
-
args: [{ selector: "nui-basic-legend-tile", encapsulation: ViewEncapsulation.Emulated, template: "<div class=\"nui-basic-legend-tile\">\n <ng-content></ng-content>\n</div>\n", styles: [".nui-basic-legend-tile{height:100%;min-height:30px;min-width:30px;display:flex;align-items:center;justify-content:center}\n"] }]
|
|
2247
|
+
args: [{ selector: "nui-basic-legend-tile", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div class=\"nui-basic-legend-tile\">\n <ng-content></ng-content>\n</div>\n", styles: [".nui-basic-legend-tile{height:100%;min-height:30px;min-width:30px;display:flex;align-items:center;justify-content:center}\n"] }]
|
|
2243
2248
|
}] });
|
|
2244
2249
|
|
|
2245
2250
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -2308,19 +2313,19 @@ class RichLegendTileComponent {
|
|
|
2308
2313
|
hasInputUnitLabel() {
|
|
2309
2314
|
return !isNil(this.unitLabel);
|
|
2310
2315
|
}
|
|
2311
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2312
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: RichLegendTileComponent, deps: [{ token: LegendSeriesComponent, host: true }, { token: LegendComponent, host: true, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2317
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: RichLegendTileComponent, isStandalone: false, selector: "nui-rich-legend-tile", inputs: { unitLabel: "unitLabel", value: "value", backgroundColor: "backgroundColor", color: "color" }, ngImport: i0, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \"\n>\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\"\n >\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\"\n >\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\"\n >\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2313
2318
|
}
|
|
2314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: RichLegendTileComponent, decorators: [{
|
|
2315
2320
|
type: Component,
|
|
2316
|
-
args: [{ selector: "nui-rich-legend-tile", encapsulation: ViewEncapsulation.Emulated, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \"\n>\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\"\n >\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\"\n >\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\"\n >\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"] }]
|
|
2317
|
-
}], ctorParameters:
|
|
2321
|
+
args: [{ selector: "nui-rich-legend-tile", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-rich-legend-tile\"\n [class.nui-rich-legend-tile--has-point-marker]=\"\n rightEdge.children.length > 0\n \"\n [class.nui-rich-legend-tile--series-has-additional-content]=\"\n seriesHasAdditionalContent\n \"\n>\n <div\n class=\"nui-rich-legend-tile__tilebox d-flex justify-content-center align-items-end flex-column\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n [style.color]=\"color\"\n >\n <div\n *ngIf=\"hasInputValue(); else projectedTopContent\"\n class=\"nui-rich-legend-tile__tilebox-value nui-rich-legend-tile__ellipsified\"\n >\n {{ value }}\n </div>\n <div\n *ngIf=\"hasInputUnitLabel(); else projectedBottomContent\"\n class=\"nui-rich-legend-tile__tilebox-unit nui-rich-legend-tile__ellipsified\"\n >\n {{ unitLabel }}\n </div>\n <ng-content></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__icon\" #icon>\n <ng-content select=\"[leftEdge]\"></ng-content>\n </div>\n <div class=\"nui-rich-legend-tile__point-marker\" #rightEdge>\n <ng-content select=\"[rightEdge]\"></ng-content>\n </div>\n</div>\n<ng-template #projectedTopContent>\n <ng-content select=\"[top]\"></ng-content>\n</ng-template>\n<ng-template #projectedBottomContent>\n <ng-content select=\"[bottom]\"></ng-content>\n</ng-template>\n", styles: [".nui-rich-legend-tile{position:relative;width:60px;height:100%;line-height:18px}.nui-rich-legend-tile :empty{display:none}.nui-rich-legend-tile__tilebox{width:100%;height:100%;padding:0 5px;background-color:var(--nui-color-bg-light,#fff)}.nui-rich-legend-tile__ellipsified{max-width:100%;overflow:hidden;text-overflow:ellipsis}.nui-rich-legend-tile__tilebox-value{text-align:right;font-weight:600}.nui-rich-legend-tile__tilebox-value:not(:last-child){margin-bottom:-3px}.nui-rich-legend-tile__tilebox-unit{text-align:right;font-size:11px}.nui-rich-legend-tile__tilebox-unit:not(:first-child){margin-top:-3px}.nui-rich-legend-tile__point-marker,.nui-rich-legend-tile__icon{position:absolute;line-height:0;top:50%;pointer-events:none}.nui-rich-legend-tile__point-marker{right:0;transform:translate(50%,-50%)}.nui-rich-legend-tile__icon{left:0;transform:translate(-50%,-50%)}.nui-rich-legend-tile--has-point-marker.nui-rich-legend-tile--series-has-additional-content{margin-right:5px}.nui-rich-legend-tile--has-point-marker .nui-rich-legend-tile__tilebox{padding-right:7px}\n"] }]
|
|
2322
|
+
}], ctorParameters: () => [{ type: LegendSeriesComponent, decorators: [{
|
|
2318
2323
|
type: Host
|
|
2319
2324
|
}] }, { type: LegendComponent, decorators: [{
|
|
2320
2325
|
type: Optional
|
|
2321
2326
|
}, {
|
|
2322
2327
|
type: Host
|
|
2323
|
-
}] }, { type: i0.ChangeDetectorRef }]
|
|
2328
|
+
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { unitLabel: [{
|
|
2324
2329
|
type: Input
|
|
2325
2330
|
}], value: [{
|
|
2326
2331
|
type: Input
|
|
@@ -2330,6 +2335,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2330
2335
|
type: Input
|
|
2331
2336
|
}] } });
|
|
2332
2337
|
|
|
2338
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2339
|
+
//
|
|
2340
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2341
|
+
// of this software and associated documentation files (the "Software"), to
|
|
2342
|
+
// deal in the Software without restriction, including without limitation the
|
|
2343
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
2344
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
2345
|
+
// furnished to do so, subject to the following conditions:
|
|
2346
|
+
//
|
|
2347
|
+
// The above copyright notice and this permission notice shall be included in
|
|
2348
|
+
// all copies or substantial portions of the Software.
|
|
2349
|
+
//
|
|
2350
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2351
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2352
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2353
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2354
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2355
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2356
|
+
// THE SOFTWARE.
|
|
2357
|
+
/**
|
|
2358
|
+
* Used for specifying the start or end boundary of a zone
|
|
2359
|
+
*/
|
|
2360
|
+
var ZoneBoundary;
|
|
2361
|
+
(function (ZoneBoundary) {
|
|
2362
|
+
ZoneBoundary["Start"] = "start";
|
|
2363
|
+
ZoneBoundary["End"] = "end";
|
|
2364
|
+
})(ZoneBoundary || (ZoneBoundary = {}));
|
|
2365
|
+
|
|
2333
2366
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2334
2367
|
//
|
|
2335
2368
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -2781,20 +2814,20 @@ const CHART_PALETTE_CS_S_EXTENDED = [
|
|
|
2781
2814
|
/* eslint-disable max-len */
|
|
2782
2815
|
/** Standard shapes for chart markers */
|
|
2783
2816
|
const regularShapes = [
|
|
2784
|
-
"m0 0m-4 0a4 4 0 1 0 8 0 4 4 0 1 0-8 0z",
|
|
2785
|
-
"m-4,-4l8,0l0,8l-8,0l0,-8z",
|
|
2786
|
-
"m0-4 4 8-8 0z",
|
|
2787
|
-
"m0-4.95 4.95 4.95-4.95 4.95-4.95-4.95 4.95-4.95z",
|
|
2788
|
-
"m0 4-4-8 8 0z",
|
|
2817
|
+
"m0 0m-4 0a4 4 0 1 0 8 0 4 4 0 1 0-8 0z", // circle
|
|
2818
|
+
"m-4,-4l8,0l0,8l-8,0l0,-8z", // square
|
|
2819
|
+
"m0-4 4 8-8 0z", // triangle up
|
|
2820
|
+
"m0-4.95 4.95 4.95-4.95 4.95-4.95-4.95 4.95-4.95z", // diamond
|
|
2821
|
+
"m0 4-4-8 8 0z", // triangle down
|
|
2789
2822
|
"m0-3.805 4.001 2.907-1.528 4.703-4.945 0-1.528-4.703z", // pentagon
|
|
2790
2823
|
];
|
|
2791
2824
|
/** Standard open shapes for chart markers */
|
|
2792
2825
|
const emptyShapes = [
|
|
2793
|
-
"m0 2c1.105 0 2-.895 2-2 0-1.105-.895-2-2-2-1.105 0-2 .895-2 2 0 1.105.895 2 2 2zm0 2c-2.209 0-4-1.791-4-4 0-2.209 1.791-4 4-4 2.209 0 4 1.791 4 4 0 2.209-1.791 4-4 4z",
|
|
2794
|
-
"m-2-2 0 4 4 0 0-4-4 0zm-2-2 8 0 0 8-8 0 0-8z",
|
|
2795
|
-
"m0-4-4 8 8.001 0-4.001-8zm0 3.354 1.573 3.146-3.145 0 1.572-3.146z",
|
|
2796
|
-
"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",
|
|
2797
|
-
"m0 4-4-8 8.001 0-4.001 8zm0-3.354 1.573-3.146-3.145 0 1.572 3.146z",
|
|
2826
|
+
"m0 2c1.105 0 2-.895 2-2 0-1.105-.895-2-2-2-1.105 0-2 .895-2 2 0 1.105.895 2 2 2zm0 2c-2.209 0-4-1.791-4-4 0-2.209 1.791-4 4-4 2.209 0 4 1.791 4 4 0 2.209-1.791 4-4 4z", // circle empty
|
|
2827
|
+
"m-2-2 0 4 4 0 0-4-4 0zm-2-2 8 0 0 8-8 0 0-8z", // square empty
|
|
2828
|
+
"m0-4-4 8 8.001 0-4.001-8zm0 3.354 1.573 3.146-3.145 0 1.572-3.146z", // triangle up empty
|
|
2829
|
+
"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", // diamond empty
|
|
2830
|
+
"m0 4-4-8 8.001 0-4.001 8zm0-3.354 1.573-3.146-3.145 0 1.572 3.146z", // triangle down empty
|
|
2798
2831
|
"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
|
|
2799
2832
|
];
|
|
2800
2833
|
/* eslint-enable max-len */
|
|
@@ -4387,34 +4420,6 @@ class SideIndicatorRenderer extends XYRenderer {
|
|
|
4387
4420
|
}
|
|
4388
4421
|
}
|
|
4389
4422
|
|
|
4390
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4391
|
-
//
|
|
4392
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4393
|
-
// of this software and associated documentation files (the "Software"), to
|
|
4394
|
-
// deal in the Software without restriction, including without limitation the
|
|
4395
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
4396
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
4397
|
-
// furnished to do so, subject to the following conditions:
|
|
4398
|
-
//
|
|
4399
|
-
// The above copyright notice and this permission notice shall be included in
|
|
4400
|
-
// all copies or substantial portions of the Software.
|
|
4401
|
-
//
|
|
4402
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4403
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4404
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4405
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4406
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4407
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4408
|
-
// THE SOFTWARE.
|
|
4409
|
-
/**
|
|
4410
|
-
* Used for specifying the start or end boundary of a zone
|
|
4411
|
-
*/
|
|
4412
|
-
var ZoneBoundary;
|
|
4413
|
-
(function (ZoneBoundary) {
|
|
4414
|
-
ZoneBoundary["Start"] = "start";
|
|
4415
|
-
ZoneBoundary["End"] = "end";
|
|
4416
|
-
})(ZoneBoundary || (ZoneBoundary = {}));
|
|
4417
|
-
|
|
4418
4423
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4419
4424
|
//
|
|
4420
4425
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -4783,12 +4788,12 @@ class ThresholdsService {
|
|
|
4783
4788
|
}
|
|
4784
4789
|
return sideIndicators;
|
|
4785
4790
|
}
|
|
4786
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4787
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ThresholdsService, deps: [{ token: i1$2.LoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4792
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ThresholdsService });
|
|
4788
4793
|
}
|
|
4789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ThresholdsService, decorators: [{
|
|
4790
4795
|
type: Injectable
|
|
4791
|
-
}], ctorParameters:
|
|
4796
|
+
}], ctorParameters: () => [{ type: i1$2.LoggerService }] });
|
|
4792
4797
|
|
|
4793
4798
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4794
4799
|
//
|
|
@@ -4810,8 +4815,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4810
4815
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4811
4816
|
// THE SOFTWARE.
|
|
4812
4817
|
class NuiChartsModule {
|
|
4813
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4814
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4818
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4819
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: NuiChartsModule, declarations: [LegendComponent,
|
|
4815
4820
|
LegendSeriesComponent,
|
|
4816
4821
|
BasicLegendTileComponent,
|
|
4817
4822
|
RichLegendTileComponent,
|
|
@@ -4834,9 +4839,9 @@ class NuiChartsModule {
|
|
|
4834
4839
|
ChartTooltipsComponent,
|
|
4835
4840
|
ChartTooltipComponent,
|
|
4836
4841
|
ChartTooltipDirective] });
|
|
4837
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4842
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiChartsModule, providers: [ChartCollectionService, ThresholdsService], imports: [NuiCommonModule, NuiIconModule, NuiPopoverModule, OverlayModule] });
|
|
4838
4843
|
}
|
|
4839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiChartsModule, decorators: [{
|
|
4840
4845
|
type: NgModule,
|
|
4841
4846
|
args: [{
|
|
4842
4847
|
imports: [NuiCommonModule, NuiIconModule, NuiPopoverModule, OverlayModule],
|
|
@@ -6550,10 +6555,10 @@ function mergeDomains(domains, scale) {
|
|
|
6550
6555
|
return EMPTY_CONTINUOUS_DOMAIN;
|
|
6551
6556
|
}
|
|
6552
6557
|
const domainMin = min$1(nonEmptyDomains
|
|
6553
|
-
.filter((e) => typeof e[0] !== undefined)
|
|
6558
|
+
.filter((e) => typeof e[0] !== "undefined")
|
|
6554
6559
|
.map((e) => e[0]));
|
|
6555
6560
|
const domainMax = max$1(nonEmptyDomains
|
|
6556
|
-
.filter((e) => typeof e[1] !== undefined)
|
|
6561
|
+
.filter((e) => typeof e[1] !== "undefined")
|
|
6557
6562
|
.map((e) => e[1]));
|
|
6558
6563
|
return [domainMin, domainMax];
|
|
6559
6564
|
}
|
|
@@ -6671,6 +6676,7 @@ class Scale {
|
|
|
6671
6676
|
isDomainFixed;
|
|
6672
6677
|
scaleUnits;
|
|
6673
6678
|
isTimeseriesScale = false;
|
|
6679
|
+
__domainCalculatedWithTicks;
|
|
6674
6680
|
isReversed = false;
|
|
6675
6681
|
_fixDomainValues = [];
|
|
6676
6682
|
_d3Scale;
|
|
@@ -7700,7 +7706,7 @@ class Grid {
|
|
|
7700
7706
|
x1: 0,
|
|
7701
7707
|
y1: this.config().dimension.height() - borderMidpoint,
|
|
7702
7708
|
x2: this.config().dimension.width() +
|
|
7703
|
-
Grid.TICK_DIMENSION_CORRECTION,
|
|
7709
|
+
Grid.TICK_DIMENSION_CORRECTION, // to get nice alignment with ticks
|
|
7704
7710
|
y2: this.config().dimension.height() - borderMidpoint,
|
|
7705
7711
|
class: this._config.borders.bottom.className ||
|
|
7706
7712
|
Grid.DEFAULT_BORDER_CLASS_NAME,
|
|
@@ -7718,9 +7724,9 @@ class Grid {
|
|
|
7718
7724
|
select$1(this.borders.top)
|
|
7719
7725
|
.attrs({
|
|
7720
7726
|
x1: 0,
|
|
7721
|
-
y1: borderMidpoint,
|
|
7727
|
+
y1: borderMidpoint, // the line was outside of the viewport in some browser when set to 0
|
|
7722
7728
|
x2: this.config().dimension.width() +
|
|
7723
|
-
Grid.TICK_DIMENSION_CORRECTION,
|
|
7729
|
+
Grid.TICK_DIMENSION_CORRECTION, // to get nice alignment with ticks
|
|
7724
7730
|
y2: borderMidpoint,
|
|
7725
7731
|
})
|
|
7726
7732
|
.classed("hidden", !this._config.borders.top?.visible);
|
|
@@ -11755,10 +11761,10 @@ class TimeseriesZoomPluginsSyncService {
|
|
|
11755
11761
|
plugin.clearBrush();
|
|
11756
11762
|
});
|
|
11757
11763
|
}
|
|
11758
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11759
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11764
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TimeseriesZoomPluginsSyncService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11765
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TimeseriesZoomPluginsSyncService, providedIn: "root" });
|
|
11760
11766
|
}
|
|
11761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TimeseriesZoomPluginsSyncService, decorators: [{
|
|
11762
11768
|
type: Injectable,
|
|
11763
11769
|
args: [{ providedIn: "root" }]
|
|
11764
11770
|
}] });
|