@nova-ui/charts 13.0.11-4574 → 15.0.0-4577
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 -1
- package/chart/chart.component.d.ts +1 -1
- package/chart-collection/chart-collection-id.directive.d.ts +1 -1
- package/chart-donut-content/chart-donut-content.component.d.ts +1 -1
- package/chart-marker/chart-marker.component.d.ts +1 -1
- package/chart-popover/chart-popover.component.d.ts +1 -1
- package/chart-tooltips/chart-tooltip.component.d.ts +1 -1
- package/chart-tooltips/chart-tooltip.directive.d.ts +1 -1
- package/chart-tooltips/chart-tooltips.component.d.ts +1 -1
- package/core/chart.d.ts +1 -1
- package/core/common/scales/types.d.ts +3 -3
- package/core/common/types.d.ts +4 -4
- package/core/grid/types.d.ts +1 -1
- package/esm2020/chart/chart.component.mjs +5 -5
- package/esm2020/chart-collection/chart-collection-id.directive.mjs +4 -4
- package/esm2020/chart-collection/chart-collection.service.mjs +4 -4
- package/esm2020/chart-donut-content/chart-donut-content.component.mjs +4 -4
- package/esm2020/chart-marker/chart-marker.component.mjs +4 -4
- package/esm2020/chart-popover/chart-popover.component.mjs +6 -6
- package/esm2020/chart-tooltips/chart-tooltip.component.mjs +4 -4
- package/esm2020/chart-tooltips/chart-tooltip.directive.mjs +4 -4
- package/esm2020/chart-tooltips/chart-tooltips.component.mjs +4 -4
- package/esm2020/charts.module.mjs +5 -5
- package/esm2020/core/chart-assists/chart-assist.mjs +33 -33
- package/esm2020/core/chart.mjs +1 -1
- package/esm2020/core/common/data-manager.mjs +8 -8
- package/esm2020/core/grid/xy-grid.mjs +13 -13
- package/esm2020/core/plugins/timeseries-zoom-plugin-sync.service.mjs +4 -4
- package/esm2020/legend/legend-series/legend-series.component.mjs +17 -17
- package/esm2020/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.mjs +4 -4
- package/esm2020/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.mjs +4 -4
- package/esm2020/legend/legend.component.mjs +4 -4
- package/esm2020/renderers/bar/accessors/horizontal-bar-accessors.mjs +1 -1
- package/esm2020/renderers/bar/accessors/status-accessors.mjs +5 -5
- package/esm2020/renderers/bar/accessors/vertical-bar-accessors.mjs +1 -1
- package/esm2020/renderers/line/line-accessors.mjs +1 -1
- package/esm2020/renderers/line/line-renderer.mjs +8 -8
- package/esm2020/renderers/types.mjs +1 -1
- package/esm2020/thresholds/thresholds-service.mjs +4 -4
- package/fesm2015/nova-ui-charts.mjs +126 -126
- package/fesm2015/nova-ui-charts.mjs.map +1 -1
- package/fesm2020/nova-ui-charts.mjs +125 -125
- package/fesm2020/nova-ui-charts.mjs.map +1 -1
- package/gauge/types.d.ts +1 -1
- package/legend/legend-series/legend-series.component.d.ts +1 -1
- package/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.d.ts +1 -1
- package/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.d.ts +1 -1
- package/legend/legend.component.d.ts +1 -1
- package/package.json +5 -4
- package/renderers/bar/highlight-strategies/bar-highlight-strategy.d.ts +1 -1
- package/renderers/types.d.ts +1 -1
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js +10 -18
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/chart.atom.js +55 -82
- package/sdk/atoms/chart/atoms/chart.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/lasagna.atom.js +9 -15
- package/sdk/atoms/chart/atoms/lasagna.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/line-series.atom.js +16 -26
- package/sdk/atoms/chart/atoms/line-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/marker-series.atom.js +2 -5
- package/sdk/atoms/chart/atoms/marker-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/marker.atom.js +14 -22
- package/sdk/atoms/chart/atoms/marker.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/radial-series.atom.js +11 -13
- package/sdk/atoms/chart/atoms/radial-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/series.atom.js +4 -10
- package/sdk/atoms/chart/atoms/series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js +5 -11
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/threshold-series.atom.js +2 -5
- package/sdk/atoms/chart/atoms/threshold-series.atom.js.map +1 -1
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js +2 -5
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js.map +1 -1
- package/sdk/atoms/chart/boosters/interactive.booster.js +6 -9
- package/sdk/atoms/chart/boosters/interactive.booster.js.map +1 -1
- package/sdk/atoms/chart/boosters/zoom.booster.js +11 -14
- package/sdk/atoms/chart/boosters/zoom.booster.js.map +1 -1
- package/sdk/atoms/chart/donut-chart-test.po.js +1 -0
- package/sdk/atoms/chart/donut-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/line-chart-test.po.js +5 -6
- package/sdk/atoms/chart/line-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/pie-chart-test.po.js +1 -0
- package/sdk/atoms/chart/pie-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/spark-chart-test.po.js +11 -18
- package/sdk/atoms/chart/spark-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/status-chart.atom.js +17 -22
- package/sdk/atoms/chart/status-chart.atom.js.map +1 -1
- package/sdk/atoms/chart/test.po.js +14 -21
- package/sdk/atoms/chart/test.po.js.map +1 -1
- package/sdk/atoms/chart/thresholds-summary-test.po.js +9 -11
- package/sdk/atoms/chart/thresholds-summary-test.po.js.map +1 -1
- package/sdk/atoms/chart/time-frame-bar-test.po.js +7 -8
- package/sdk/atoms/chart/time-frame-bar-test.po.js.map +1 -1
- package/sdk/atoms/legend/legend-series.atom.js +32 -41
- package/sdk/atoms/legend/legend-series.atom.js.map +1 -1
- package/sdk/atoms/legend/legend.atom.js +3 -2
- package/sdk/atoms/legend/legend.atom.js.map +1 -1
- package/sdk/atoms/legend/rich-legend-tile.atom.js +25 -36
- package/sdk/atoms/legend/rich-legend-tile.atom.js.map +1 -1
- /package/{nova-ui-charts.d.ts → index.d.ts} +0 -0
|
@@ -55,8 +55,8 @@ import findIndex from 'lodash/findIndex';
|
|
|
55
55
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
56
56
|
class ChartTooltipComponent {
|
|
57
57
|
}
|
|
58
|
-
ChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
59
|
-
ChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
58
|
+
ChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
ChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartTooltipComponent, 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: [
|
|
60
60
|
trigger("tooltip", [
|
|
61
61
|
transition(":enter", [
|
|
62
62
|
style({ opacity: 0 }),
|
|
@@ -65,7 +65,7 @@ ChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
65
65
|
transition(":leave", [animate(300, style({ opacity: 0 }))]),
|
|
66
66
|
]),
|
|
67
67
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
70
|
args: [{ selector: "nui-chart-tooltip", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
71
71
|
trigger("tooltip", [
|
|
@@ -134,9 +134,9 @@ class ChartTooltipDirective {
|
|
|
134
134
|
return this.overlayRef.overlayElement;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
ChartTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
138
|
-
ChartTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
137
|
+
ChartTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipDirective, deps: [{ token: i1$1.Overlay }, { token: i1$1.OverlayPositionBuilder }, { token: i1$1.ScrollStrategyOptions }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
138
|
+
ChartTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: ChartTooltipDirective, selector: "[nuiChartTooltip]", inputs: { template: "template", openRemoteControl: "openRemoteControl", closeRemoteControl: "closeRemoteControl", positions: "positions" }, ngImport: i0 });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipDirective, decorators: [{
|
|
140
140
|
type: Directive,
|
|
141
141
|
args: [{ selector: "[nuiChartTooltip]" }]
|
|
142
142
|
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: i1$1.ScrollStrategyOptions }, { type: i0.ElementRef }]; }, propDecorators: { template: [{
|
|
@@ -168,9 +168,9 @@ class ChartDonutContentComponent {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
ChartDonutContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
172
|
-
ChartDonutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
171
|
+
ChartDonutContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartDonutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
172
|
+
ChartDonutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartDonutContentComponent, 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"] }] });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartDonutContentComponent, decorators: [{
|
|
174
174
|
type: Component,
|
|
175
175
|
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"] }]
|
|
176
176
|
}], propDecorators: { plugin: [{
|
|
@@ -325,9 +325,9 @@ class ChartTooltipsComponent {
|
|
|
325
325
|
return this.plugin.orientation === "right";
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
ChartTooltipsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
329
|
-
ChartTooltipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
328
|
+
ChartTooltipsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
329
|
+
ChartTooltipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartTooltipsComponent, 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" }] });
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartTooltipsComponent, decorators: [{
|
|
331
331
|
type: Component,
|
|
332
332
|
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"] }]
|
|
333
333
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { plugin: [{
|
|
@@ -380,9 +380,9 @@ class ChartPopoverComponent {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
ChartPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
384
|
-
ChartPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
383
|
+
ChartPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartPopoverComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
384
|
+
ChartPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartPopoverComponent, 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"] }] });
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartPopoverComponent, decorators: [{
|
|
386
386
|
type: Component,
|
|
387
387
|
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"] }]
|
|
388
388
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { plugin: [{
|
|
@@ -450,9 +450,9 @@ class ChartMarkerComponent {
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
ChartMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
454
|
-
ChartMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
453
|
+
ChartMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartMarkerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
454
|
+
ChartMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartMarkerComponent, 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"] });
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartMarkerComponent, decorators: [{
|
|
456
456
|
type: Component,
|
|
457
457
|
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"] }]
|
|
458
458
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { marker: [{
|
|
@@ -709,9 +709,9 @@ class ChartCollectionService {
|
|
|
709
709
|
return collection;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
ChartCollectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
713
|
-
ChartCollectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
712
|
+
ChartCollectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartCollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
713
|
+
ChartCollectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartCollectionService });
|
|
714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartCollectionService, decorators: [{
|
|
715
715
|
type: Injectable
|
|
716
716
|
}] });
|
|
717
717
|
|
|
@@ -743,9 +743,9 @@ class ChartCollectionIdDirective {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
ChartCollectionIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
747
|
-
ChartCollectionIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
746
|
+
ChartCollectionIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartCollectionIdDirective, deps: [{ token: CHART_COMPONENT }, { token: ChartCollectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
747
|
+
ChartCollectionIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: { collectionId: ["nuiChartCollectionId", "collectionId"] }, usesOnChanges: true, ngImport: i0 });
|
|
748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartCollectionIdDirective, decorators: [{
|
|
749
749
|
type: Directive,
|
|
750
750
|
args: [{
|
|
751
751
|
selector: "[nuiChartCollectionId]",
|
|
@@ -770,7 +770,7 @@ class ChartComponent {
|
|
|
770
770
|
this.chart.updateDimensions();
|
|
771
771
|
this.cd.detectChanges();
|
|
772
772
|
};
|
|
773
|
-
this.intersectionObserverCallback = (entries
|
|
773
|
+
this.intersectionObserverCallback = (entries) => {
|
|
774
774
|
// Since we're only listening for intersection changes for one target (the chart itself), the 'entries' argument always has just one element.
|
|
775
775
|
const data = {
|
|
776
776
|
isChartInView: entries[0].isIntersecting,
|
|
@@ -820,14 +820,14 @@ class ChartComponent {
|
|
|
820
820
|
(_c = this.chart) === null || _c === void 0 ? void 0 : _c.destroy();
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
824
|
-
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
823
|
+
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
824
|
+
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ChartComponent, selector: "nui-chart", inputs: { chart: "chart" }, providers: [
|
|
825
825
|
{
|
|
826
826
|
provide: CHART_COMPONENT,
|
|
827
827
|
useExisting: forwardRef(() => ChartComponent),
|
|
828
828
|
},
|
|
829
829
|
], usesOnChanges: true, ngImport: i0, template: "", isInline: true });
|
|
830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartComponent, decorators: [{
|
|
831
831
|
type: Component,
|
|
832
832
|
args: [{
|
|
833
833
|
selector: "nui-chart",
|
|
@@ -897,9 +897,9 @@ class LegendComponent {
|
|
|
897
897
|
this.activeChanged.complete();
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
|
-
LegendComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
901
|
-
LegendComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
900
|
+
LegendComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
901
|
+
LegendComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: LegendComponent, 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" });
|
|
902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LegendComponent, decorators: [{
|
|
903
903
|
type: Component,
|
|
904
904
|
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" }]
|
|
905
905
|
}], propDecorators: { active: [{
|
|
@@ -920,19 +920,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
920
920
|
/** @ignore */
|
|
921
921
|
const LEGEND_SERIES_CLASS_NAME = "nui-legend-series";
|
|
922
922
|
class LegendSeriesComponent {
|
|
923
|
-
constructor(legend) {
|
|
924
|
-
this.legend = legend;
|
|
925
|
-
/**
|
|
926
|
-
* Set whether the series is selected
|
|
927
|
-
*/
|
|
928
|
-
this.isSelected = true;
|
|
929
|
-
/**
|
|
930
|
-
* Emits an event with a boolean value indicating a new selected status
|
|
931
|
-
*/
|
|
932
|
-
this.isSelectedChange = new EventEmitter();
|
|
933
|
-
this.isHorizontalClassApplied = false;
|
|
934
|
-
this._active = false;
|
|
935
|
-
}
|
|
936
923
|
/**
|
|
937
924
|
* Sets the series active status
|
|
938
925
|
*
|
|
@@ -972,6 +959,19 @@ class LegendSeriesComponent {
|
|
|
972
959
|
get isActiveClassApplied() {
|
|
973
960
|
return this._active && this.seriesRenderState !== RenderState.hidden;
|
|
974
961
|
}
|
|
962
|
+
constructor(legend) {
|
|
963
|
+
this.legend = legend;
|
|
964
|
+
/**
|
|
965
|
+
* Set whether the series is selected
|
|
966
|
+
*/
|
|
967
|
+
this.isSelected = true;
|
|
968
|
+
/**
|
|
969
|
+
* Emits an event with a boolean value indicating a new selected status
|
|
970
|
+
*/
|
|
971
|
+
this.isSelectedChange = new EventEmitter();
|
|
972
|
+
this.isHorizontalClassApplied = false;
|
|
973
|
+
this._active = false;
|
|
974
|
+
}
|
|
975
975
|
ngAfterContentInit() {
|
|
976
976
|
var _a;
|
|
977
977
|
if (this.legend) {
|
|
@@ -1006,9 +1006,9 @@ class LegendSeriesComponent {
|
|
|
1006
1006
|
this.projectedDescription.nativeElement.children.length !== 0);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
|
-
LegendSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1010
|
-
LegendSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1009
|
+
LegendSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LegendSeriesComponent, deps: [{ token: LegendComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1010
|
+
LegendSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: LegendSeriesComponent, 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 });
|
|
1011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LegendSeriesComponent, decorators: [{
|
|
1012
1012
|
type: Component,
|
|
1013
1013
|
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" }]
|
|
1014
1014
|
}], ctorParameters: function () {
|
|
@@ -1055,9 +1055,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1055
1055
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1056
1056
|
class BasicLegendTileComponent {
|
|
1057
1057
|
}
|
|
1058
|
-
BasicLegendTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1059
|
-
BasicLegendTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1058
|
+
BasicLegendTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasicLegendTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1059
|
+
BasicLegendTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: BasicLegendTileComponent, 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"] });
|
|
1060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasicLegendTileComponent, decorators: [{
|
|
1061
1061
|
type: Component,
|
|
1062
1062
|
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"] }]
|
|
1063
1063
|
}] });
|
|
@@ -1091,9 +1091,9 @@ class RichLegendTileComponent {
|
|
|
1091
1091
|
return !isNil(this.unitLabel);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
RichLegendTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1095
|
-
RichLegendTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1094
|
+
RichLegendTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RichLegendTileComponent, deps: [{ token: LegendSeriesComponent, host: true }, { token: LegendComponent, host: true, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1095
|
+
RichLegendTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RichLegendTileComponent, 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"] }] });
|
|
1096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RichLegendTileComponent, decorators: [{
|
|
1097
1097
|
type: Component,
|
|
1098
1098
|
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"] }]
|
|
1099
1099
|
}], ctorParameters: function () {
|
|
@@ -1665,16 +1665,16 @@ class HorizontalBarAccessors extends BarAccessors {
|
|
|
1665
1665
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1666
1666
|
// THE SOFTWARE.
|
|
1667
1667
|
class StatusAccessors {
|
|
1668
|
-
constructor(barAccessors) {
|
|
1669
|
-
this.barAccessors = barAccessors;
|
|
1670
|
-
barAccessors.data.status = (d) => d.status;
|
|
1671
|
-
}
|
|
1672
1668
|
get data() {
|
|
1673
1669
|
return this.barAccessors.data;
|
|
1674
1670
|
}
|
|
1675
1671
|
get series() {
|
|
1676
1672
|
return this.barAccessors.series;
|
|
1677
1673
|
}
|
|
1674
|
+
constructor(barAccessors) {
|
|
1675
|
+
this.barAccessors = barAccessors;
|
|
1676
|
+
barAccessors.data.status = (d) => d.status;
|
|
1677
|
+
}
|
|
1678
1678
|
}
|
|
1679
1679
|
StatusAccessors.STATUS_CATEGORY = "status";
|
|
1680
1680
|
StatusAccessors.STATUS_DOMAIN = [StatusAccessors.STATUS_CATEGORY];
|
|
@@ -2687,6 +2687,13 @@ MarkerUtils.MARKER_PATH_CLASS = "marker-path";
|
|
|
2687
2687
|
* Renderer that is able to draw line chart
|
|
2688
2688
|
*/
|
|
2689
2689
|
class LineRenderer extends XYRenderer {
|
|
2690
|
+
static getStrokeStyleDashed(width) {
|
|
2691
|
+
const dash = width * 2;
|
|
2692
|
+
return `${dash},${dash}`;
|
|
2693
|
+
}
|
|
2694
|
+
static getStrokeStyleDotted(width) {
|
|
2695
|
+
return `${width},${width}`;
|
|
2696
|
+
}
|
|
2690
2697
|
/**
|
|
2691
2698
|
* Creates an instance of LineRenderer.
|
|
2692
2699
|
* @param {ILineRendererConfig} [config={}] Renderer configuration object
|
|
@@ -2709,13 +2716,6 @@ class LineRenderer extends XYRenderer {
|
|
|
2709
2716
|
// setting default values to the properties that were not set by user
|
|
2710
2717
|
this.config = defaultsDeep(this.config, this.DEFAULT_CONFIG);
|
|
2711
2718
|
}
|
|
2712
|
-
static getStrokeStyleDashed(width) {
|
|
2713
|
-
const dash = width * 2;
|
|
2714
|
-
return `${dash},${dash}`;
|
|
2715
|
-
}
|
|
2716
|
-
static getStrokeStyleDotted(width) {
|
|
2717
|
-
return `${width},${width}`;
|
|
2718
|
-
}
|
|
2719
2719
|
/** See {@link Renderer#draw} */
|
|
2720
2720
|
draw(renderSeries, rendererSubject) {
|
|
2721
2721
|
var _a, _b, _c, _d, _e;
|
|
@@ -3364,17 +3364,17 @@ class ThresholdsService {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
3366
|
ThresholdsService.SERIES_ID_SUFFIX = "__thresholds-background";
|
|
3367
|
-
ThresholdsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3368
|
-
ThresholdsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3367
|
+
ThresholdsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsService, deps: [{ token: i1$2.LoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3368
|
+
ThresholdsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsService });
|
|
3369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsService, decorators: [{
|
|
3370
3370
|
type: Injectable
|
|
3371
3371
|
}], ctorParameters: function () { return [{ type: i1$2.LoggerService }]; } });
|
|
3372
3372
|
|
|
3373
3373
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3374
3374
|
class NuiChartsModule {
|
|
3375
3375
|
}
|
|
3376
|
-
NuiChartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3377
|
-
NuiChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
3376
|
+
NuiChartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3377
|
+
NuiChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: NuiChartsModule, declarations: [LegendComponent,
|
|
3378
3378
|
LegendSeriesComponent,
|
|
3379
3379
|
BasicLegendTileComponent,
|
|
3380
3380
|
RichLegendTileComponent,
|
|
@@ -3397,8 +3397,8 @@ NuiChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
3397
3397
|
ChartTooltipsComponent,
|
|
3398
3398
|
ChartTooltipComponent,
|
|
3399
3399
|
ChartTooltipDirective] });
|
|
3400
|
-
NuiChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3400
|
+
NuiChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiChartsModule, providers: [ChartCollectionService, ThresholdsService], imports: [NuiCommonModule, NuiIconModule, NuiPopoverModule, OverlayModule] });
|
|
3401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiChartsModule, decorators: [{
|
|
3402
3402
|
type: NgModule,
|
|
3403
3403
|
args: [{
|
|
3404
3404
|
imports: [NuiCommonModule, NuiIconModule, NuiPopoverModule, OverlayModule],
|
|
@@ -3541,13 +3541,6 @@ function domain(scale, theDomain) {
|
|
|
3541
3541
|
* Manages data and their domains
|
|
3542
3542
|
*/
|
|
3543
3543
|
class DataManager {
|
|
3544
|
-
constructor(chart) {
|
|
3545
|
-
this.chart = chart;
|
|
3546
|
-
this._chartSeriesSet = [];
|
|
3547
|
-
this.dataIndex = {};
|
|
3548
|
-
this._scalesIndexByKey = {};
|
|
3549
|
-
this._scalesIndexById = {};
|
|
3550
|
-
}
|
|
3551
3544
|
get chartSeriesSet() {
|
|
3552
3545
|
return this._chartSeriesSet;
|
|
3553
3546
|
}
|
|
@@ -3557,6 +3550,13 @@ class DataManager {
|
|
|
3557
3550
|
get scalesIndexById() {
|
|
3558
3551
|
return this._scalesIndexById;
|
|
3559
3552
|
}
|
|
3553
|
+
constructor(chart) {
|
|
3554
|
+
this.chart = chart;
|
|
3555
|
+
this._chartSeriesSet = [];
|
|
3556
|
+
this.dataIndex = {};
|
|
3557
|
+
this._scalesIndexByKey = {};
|
|
3558
|
+
this._scalesIndexById = {};
|
|
3559
|
+
}
|
|
3560
3560
|
update(seriesSet) {
|
|
3561
3561
|
const duplicateIds = filter(seriesSet.map((series) => series.id), (val, i, iteratee) => includes(iteratee, val, i + 1));
|
|
3562
3562
|
if (duplicateIds.length > 0) {
|
|
@@ -4132,6 +4132,39 @@ class ChartAssistRenderStateData {
|
|
|
4132
4132
|
* It will use the most common settings.
|
|
4133
4133
|
*/
|
|
4134
4134
|
class ChartAssist {
|
|
4135
|
+
/**
|
|
4136
|
+
* Retrieves the display value for a data point on the specified series
|
|
4137
|
+
*
|
|
4138
|
+
* @param chartSeries The series containing the data point to get a label for
|
|
4139
|
+
* @param dataPoint The data point to get a label for
|
|
4140
|
+
* @param scaleKey The key for the scale potentially containing a formatter that can be used to format the label
|
|
4141
|
+
* @param formatterName The name of the formatter to use for formatting the label
|
|
4142
|
+
* @param dataAccessorKey The accessor key to use for accessing the data value if the accessor key differs from the scale key
|
|
4143
|
+
*
|
|
4144
|
+
* @returns The display value for a data point
|
|
4145
|
+
*/
|
|
4146
|
+
static getLabel(chartSeries, dataPoint, scaleKey, formatterName, dataAccessorKey) {
|
|
4147
|
+
var _a;
|
|
4148
|
+
if (!dataPoint || chartSeries.data.length === 0) {
|
|
4149
|
+
return null;
|
|
4150
|
+
}
|
|
4151
|
+
const valueAccessor = (_a = chartSeries.accessors.data) === null || _a === void 0 ? void 0 : _a[dataAccessorKey || scaleKey];
|
|
4152
|
+
if (!valueAccessor) {
|
|
4153
|
+
return null;
|
|
4154
|
+
}
|
|
4155
|
+
const adjustedIndex = dataPoint.index < 0 ? chartSeries.data.length - 1 : dataPoint.index;
|
|
4156
|
+
const data = chartSeries.data[adjustedIndex];
|
|
4157
|
+
const rawValue = valueAccessor(data, adjustedIndex, chartSeries.data, chartSeries);
|
|
4158
|
+
const scale = chartSeries.scales[scaleKey];
|
|
4159
|
+
if (!scale || !formatterName) {
|
|
4160
|
+
return rawValue;
|
|
4161
|
+
}
|
|
4162
|
+
const formatter = scale.formatters[formatterName];
|
|
4163
|
+
if (!formatter) {
|
|
4164
|
+
return rawValue;
|
|
4165
|
+
}
|
|
4166
|
+
return formatter(rawValue);
|
|
4167
|
+
}
|
|
4135
4168
|
constructor(chart, seriesProcessor, palette = defaultPalette(), markers = defaultMarkerProvider()) {
|
|
4136
4169
|
this.chart = chart;
|
|
4137
4170
|
this.palette = palette;
|
|
@@ -4188,39 +4221,6 @@ class ChartAssist {
|
|
|
4188
4221
|
[ChartAssistEventType.ToggleSeries]: this.toggleSeries,
|
|
4189
4222
|
};
|
|
4190
4223
|
}
|
|
4191
|
-
/**
|
|
4192
|
-
* Retrieves the display value for a data point on the specified series
|
|
4193
|
-
*
|
|
4194
|
-
* @param chartSeries The series containing the data point to get a label for
|
|
4195
|
-
* @param dataPoint The data point to get a label for
|
|
4196
|
-
* @param scaleKey The key for the scale potentially containing a formatter that can be used to format the label
|
|
4197
|
-
* @param formatterName The name of the formatter to use for formatting the label
|
|
4198
|
-
* @param dataAccessorKey The accessor key to use for accessing the data value if the accessor key differs from the scale key
|
|
4199
|
-
*
|
|
4200
|
-
* @returns The display value for a data point
|
|
4201
|
-
*/
|
|
4202
|
-
static getLabel(chartSeries, dataPoint, scaleKey, formatterName, dataAccessorKey) {
|
|
4203
|
-
var _a;
|
|
4204
|
-
if (!dataPoint || chartSeries.data.length === 0) {
|
|
4205
|
-
return null;
|
|
4206
|
-
}
|
|
4207
|
-
const valueAccessor = (_a = chartSeries.accessors.data) === null || _a === void 0 ? void 0 : _a[dataAccessorKey || scaleKey];
|
|
4208
|
-
if (!valueAccessor) {
|
|
4209
|
-
return null;
|
|
4210
|
-
}
|
|
4211
|
-
const adjustedIndex = dataPoint.index < 0 ? chartSeries.data.length - 1 : dataPoint.index;
|
|
4212
|
-
const data = chartSeries.data[adjustedIndex];
|
|
4213
|
-
const rawValue = valueAccessor(data, adjustedIndex, chartSeries.data, chartSeries);
|
|
4214
|
-
const scale = chartSeries.scales[scaleKey];
|
|
4215
|
-
if (!scale || !formatterName) {
|
|
4216
|
-
return rawValue;
|
|
4217
|
-
}
|
|
4218
|
-
const formatter = scale.formatters[formatterName];
|
|
4219
|
-
if (!formatter) {
|
|
4220
|
-
return rawValue;
|
|
4221
|
-
}
|
|
4222
|
-
return formatter(rawValue);
|
|
4223
|
-
}
|
|
4224
4224
|
get renderStatesIndex() {
|
|
4225
4225
|
return this.legendInteractionAssist.renderStatesIndex;
|
|
4226
4226
|
}
|
|
@@ -5853,18 +5853,6 @@ Grid.TICK_DIMENSION_CORRECTION = 1;
|
|
|
5853
5853
|
|
|
5854
5854
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5855
5855
|
class XYGrid extends Grid {
|
|
5856
|
-
constructor(config) {
|
|
5857
|
-
super();
|
|
5858
|
-
this.axisX = {};
|
|
5859
|
-
this.axisYLeft = {};
|
|
5860
|
-
this.axisYRight = {};
|
|
5861
|
-
this.gridY = {};
|
|
5862
|
-
this.gridX = {};
|
|
5863
|
-
// map of scale id to pending debounce timeout
|
|
5864
|
-
this.handleTickLabelOverflowDebounceIndex = {};
|
|
5865
|
-
this.isApproximatelyEqual = (first, second) => Math.abs(first - second) < 0.1;
|
|
5866
|
-
this.config(config || new XYGridConfig());
|
|
5867
|
-
}
|
|
5868
5856
|
/**
|
|
5869
5857
|
* Returns the id of the bottom axis scale
|
|
5870
5858
|
*/
|
|
@@ -5959,6 +5947,18 @@ class XYGrid extends Grid {
|
|
|
5959
5947
|
this._config = config;
|
|
5960
5948
|
return this;
|
|
5961
5949
|
}
|
|
5950
|
+
constructor(config) {
|
|
5951
|
+
super();
|
|
5952
|
+
this.axisX = {};
|
|
5953
|
+
this.axisYLeft = {};
|
|
5954
|
+
this.axisYRight = {};
|
|
5955
|
+
this.gridY = {};
|
|
5956
|
+
this.gridX = {};
|
|
5957
|
+
// map of scale id to pending debounce timeout
|
|
5958
|
+
this.handleTickLabelOverflowDebounceIndex = {};
|
|
5959
|
+
this.isApproximatelyEqual = (first, second) => Math.abs(first - second) < 0.1;
|
|
5960
|
+
this.config(config || new XYGridConfig());
|
|
5961
|
+
}
|
|
5962
5962
|
/** See {@link IGrid#build} */
|
|
5963
5963
|
build() {
|
|
5964
5964
|
super.build();
|
|
@@ -9447,9 +9447,9 @@ class TimeseriesZoomPluginsSyncService {
|
|
|
9447
9447
|
});
|
|
9448
9448
|
}
|
|
9449
9449
|
}
|
|
9450
|
-
TimeseriesZoomPluginsSyncService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9451
|
-
TimeseriesZoomPluginsSyncService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
9452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9450
|
+
TimeseriesZoomPluginsSyncService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesZoomPluginsSyncService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9451
|
+
TimeseriesZoomPluginsSyncService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesZoomPluginsSyncService, providedIn: "root" });
|
|
9452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesZoomPluginsSyncService, decorators: [{
|
|
9453
9453
|
type: Injectable,
|
|
9454
9454
|
args: [{ providedIn: "root" }]
|
|
9455
9455
|
}] });
|