@nova-ui/charts 20.0.8 → 20.0.9
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/fesm2022/nova-ui-charts.mjs +86 -11
- package/fesm2022/nova-ui-charts.mjs.map +1 -1
- package/index.d.ts +15 -2
- package/package.json +2 -2
|
@@ -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 { Input, ChangeDetectionStrategy, Component, Directive, InjectionToken, ViewChildren, EventEmitter, ViewChild, Output, forwardRef, Injectable, Inject, ViewEncapsulation, HostListener,
|
|
5
|
+
import { Input, ChangeDetectionStrategy, Component, Directive, InjectionToken, ViewChildren, EventEmitter, ViewChild, Output, forwardRef, HostBinding, Injectable, Inject, ViewEncapsulation, HostListener, 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';
|
|
@@ -70,7 +70,7 @@ import findIndex from 'lodash/findIndex';
|
|
|
70
70
|
class ChartTooltipComponent {
|
|
71
71
|
template;
|
|
72
72
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", 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: [
|
|
73
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartTooltipComponent, isStandalone: false, selector: "nui-chart-tooltip", inputs: { template: "template" }, ngImport: i0, template: "<div>\n <!-- TODO: NUI-6278 - Keyboard access to chart tooltip content (WCAG 2.1.1) -->\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: [
|
|
74
74
|
trigger("tooltip", [
|
|
75
75
|
transition(":enter", [
|
|
76
76
|
style({ opacity: 0 }),
|
|
@@ -90,7 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
90
90
|
]),
|
|
91
91
|
transition(":leave", [animate(300, style({ opacity: 0 }))]),
|
|
92
92
|
]),
|
|
93
|
-
], 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"] }]
|
|
93
|
+
], standalone: false, template: "<div>\n <!-- TODO: NUI-6278 - Keyboard access to chart tooltip content (WCAG 2.1.1) -->\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"] }]
|
|
94
94
|
}], propDecorators: { template: [{
|
|
95
95
|
type: Input
|
|
96
96
|
}] } });
|
|
@@ -145,6 +145,11 @@ class ChartTooltipDirective {
|
|
|
145
145
|
positionStrategy: this.positionStrategy,
|
|
146
146
|
scrollStrategy: this.scrollStrategyOptions.close(),
|
|
147
147
|
});
|
|
148
|
+
// a11y: the overlay element persists in the DOM between show/hide cycles.
|
|
149
|
+
// Setting aria-live here (not on the component) ensures the live region is
|
|
150
|
+
// registered once and reliably announces tooltip content to screen readers.
|
|
151
|
+
this.overlayRef.overlayElement.setAttribute("aria-live", "polite");
|
|
152
|
+
this.overlayRef.overlayElement.setAttribute("aria-atomic", "true");
|
|
148
153
|
if (this.openRemoteControl) {
|
|
149
154
|
this.openSubscription = this.openRemoteControl.subscribe(() => {
|
|
150
155
|
this.show();
|
|
@@ -1539,11 +1544,11 @@ class ChartMarkerComponent {
|
|
|
1539
1544
|
});
|
|
1540
1545
|
}
|
|
1541
1546
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartMarkerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1542
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartMarkerComponent, isStandalone: false, selector: "nui-chart-marker", inputs: { marker: "marker", drawLine: "drawLine", color: "color", maxSize: "maxSize" }, viewQueries: [{ propertyName: "svgContent", first: true, predicate: ["svgContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] });
|
|
1547
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartMarkerComponent, isStandalone: false, selector: "nui-chart-marker", inputs: { marker: "marker", drawLine: "drawLine", color: "color", maxSize: "maxSize" }, viewQueries: [{ propertyName: "svgContent", first: true, predicate: ["svgContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\" aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] });
|
|
1543
1548
|
}
|
|
1544
1549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartMarkerComponent, decorators: [{
|
|
1545
1550
|
type: Component,
|
|
1546
|
-
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
|
+
args: [{ selector: "nui-chart-marker", standalone: false, template: "<svg [attr.width]=\"width\" [attr.height]=\"height\" [attr.viewBox]=\"viewBox\" aria-hidden=\"true\">\n <g #svgContent></g>\n</svg>\n", styles: [":host{font-size:0}\n"] }]
|
|
1547
1552
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { marker: [{
|
|
1548
1553
|
type: Input
|
|
1549
1554
|
}], drawLine: [{
|
|
@@ -1581,6 +1586,18 @@ class ChartComponent {
|
|
|
1581
1586
|
ngZone;
|
|
1582
1587
|
cd;
|
|
1583
1588
|
chart;
|
|
1589
|
+
/** Accessible name for the chart. Should be a localized string describing the chart content (WCAG 1.1.1). */
|
|
1590
|
+
ariaLabel;
|
|
1591
|
+
// Only expose role="img" when an accessible name is present; an img role
|
|
1592
|
+
// without a name is a WCAG 1.1.1 violation (axe: role-img-alt). When no
|
|
1593
|
+
// ariaLabel is supplied the inner svg stays aria-hidden, so the chart is
|
|
1594
|
+
// treated as decorative.
|
|
1595
|
+
get role() {
|
|
1596
|
+
return this.ariaLabel ? "img" : null;
|
|
1597
|
+
}
|
|
1598
|
+
get a11yLabel() {
|
|
1599
|
+
return this.ariaLabel || null;
|
|
1600
|
+
}
|
|
1584
1601
|
resizeObserver;
|
|
1585
1602
|
resizeHandler;
|
|
1586
1603
|
intersectionObserver;
|
|
@@ -1641,7 +1658,7 @@ class ChartComponent {
|
|
|
1641
1658
|
.next({ data });
|
|
1642
1659
|
};
|
|
1643
1660
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1644
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartComponent, isStandalone: false, selector: "nui-chart", inputs: { chart: "chart" }, providers: [
|
|
1661
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ChartComponent, isStandalone: false, selector: "nui-chart", inputs: { chart: "chart", ariaLabel: "ariaLabel" }, host: { properties: { "attr.role": "this.role", "attr.aria-label": "this.a11yLabel" } }, providers: [
|
|
1645
1662
|
{
|
|
1646
1663
|
provide: CHART_COMPONENT,
|
|
1647
1664
|
useExisting: forwardRef(() => ChartComponent),
|
|
@@ -1663,6 +1680,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
1663
1680
|
}]
|
|
1664
1681
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { chart: [{
|
|
1665
1682
|
type: Input
|
|
1683
|
+
}], ariaLabel: [{
|
|
1684
|
+
type: Input
|
|
1685
|
+
}], role: [{
|
|
1686
|
+
type: HostBinding,
|
|
1687
|
+
args: ["attr.role"]
|
|
1688
|
+
}], a11yLabel: [{
|
|
1689
|
+
type: HostBinding,
|
|
1690
|
+
args: ["attr.aria-label"]
|
|
1666
1691
|
}] } });
|
|
1667
1692
|
|
|
1668
1693
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -1988,6 +2013,10 @@ var LegendOrientation;
|
|
|
1988
2013
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1989
2014
|
// THE SOFTWARE.
|
|
1990
2015
|
class LegendComponent {
|
|
2016
|
+
/**
|
|
2017
|
+
* The accessible name of the legend. Defaults to "Legend".
|
|
2018
|
+
*/
|
|
2019
|
+
ariaLabel = $localize `Legend`;
|
|
1991
2020
|
/**
|
|
1992
2021
|
* EventEmitter for notifying subscribers of a change in the active state
|
|
1993
2022
|
*/
|
|
@@ -2025,12 +2054,18 @@ class LegendComponent {
|
|
|
2025
2054
|
this.activeChanged.complete();
|
|
2026
2055
|
}
|
|
2027
2056
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2028
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", 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" });
|
|
2057
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendComponent, isStandalone: false, selector: "nui-legend", inputs: { ariaLabel: "ariaLabel", active: "active", interactive: "interactive", orientation: "orientation", seriesColor: "seriesColor", seriesIcon: "seriesIcon", seriesUnitLabel: "seriesUnitLabel" }, host: { properties: { "attr.role": "interactive ? 'group' : 'list'", "attr.aria-label": "ariaLabel" }, classAttribute: "d-inline-block" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" });
|
|
2029
2058
|
}
|
|
2030
2059
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendComponent, decorators: [{
|
|
2031
2060
|
type: Component,
|
|
2032
|
-
args: [{ selector: "nui-legend", host: {
|
|
2033
|
-
|
|
2061
|
+
args: [{ selector: "nui-legend", host: {
|
|
2062
|
+
"class": "d-inline-block",
|
|
2063
|
+
"[attr.role]": "interactive ? 'group' : 'list'",
|
|
2064
|
+
"[attr.aria-label]": "ariaLabel",
|
|
2065
|
+
}, encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n class=\"nui-legend d-flex flex-wrap\"\n [class.flex-column]=\"orientation === 'vertical'\"\n>\n <ng-content></ng-content>\n</div>\n" }]
|
|
2066
|
+
}], propDecorators: { ariaLabel: [{
|
|
2067
|
+
type: Input
|
|
2068
|
+
}], active: [{
|
|
2034
2069
|
type: Input
|
|
2035
2070
|
}], interactive: [{
|
|
2036
2071
|
type: Input
|
|
@@ -2132,6 +2167,18 @@ class LegendSeriesComponent {
|
|
|
2132
2167
|
get isActiveClassApplied() {
|
|
2133
2168
|
return this._active && this.seriesRenderState !== RenderState.hidden;
|
|
2134
2169
|
}
|
|
2170
|
+
get role() {
|
|
2171
|
+
if (this._interactive) {
|
|
2172
|
+
return "checkbox";
|
|
2173
|
+
}
|
|
2174
|
+
return this.legend?.interactive === false ? "listitem" : null;
|
|
2175
|
+
}
|
|
2176
|
+
get interactiveTabIndex() {
|
|
2177
|
+
return this._interactive ? 0 : null;
|
|
2178
|
+
}
|
|
2179
|
+
get interactiveAriaChecked() {
|
|
2180
|
+
return this._interactive ? this.isSelected : null;
|
|
2181
|
+
}
|
|
2135
2182
|
_seriesRenderState;
|
|
2136
2183
|
_active = false;
|
|
2137
2184
|
_interactive;
|
|
@@ -2156,6 +2203,17 @@ class LegendSeriesComponent {
|
|
|
2156
2203
|
this.isSelectedChange.next(!this.isSelected);
|
|
2157
2204
|
}
|
|
2158
2205
|
}
|
|
2206
|
+
onEnterKey() {
|
|
2207
|
+
if (this.interactive) {
|
|
2208
|
+
this.isSelectedChange.emit(!this.isSelected);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
onSpaceKey(event) {
|
|
2212
|
+
if (this.interactive) {
|
|
2213
|
+
event.preventDefault();
|
|
2214
|
+
this.isSelectedChange.emit(!this.isSelected);
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2159
2217
|
/**
|
|
2160
2218
|
* @returns boolean indicating whether the series has a primary or secondary description
|
|
2161
2219
|
*/
|
|
@@ -2171,11 +2229,11 @@ class LegendSeriesComponent {
|
|
|
2171
2229
|
this.projectedDescription.nativeElement.children.length !== 0);
|
|
2172
2230
|
}
|
|
2173
2231
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendSeriesComponent, deps: [{ token: LegendComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2174
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendSeriesComponent, isStandalone: false, selector: "nui-legend-series", inputs: { active: "active", interactive: "interactive", isSelected: "isSelected", descriptionPrimary: "descriptionPrimary", descriptionSecondary: "descriptionSecondary", icon: "icon", color: "color", seriesRenderState: "seriesRenderState" }, outputs: { isSelectedChange: "isSelectedChange" }, host: { listeners: { "click": "onClick()" }, 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 });
|
|
2232
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LegendSeriesComponent, isStandalone: false, selector: "nui-legend-series", inputs: { active: "active", interactive: "interactive", isSelected: "isSelected", descriptionPrimary: "descriptionPrimary", descriptionSecondary: "descriptionSecondary", icon: "icon", color: "color", seriesRenderState: "seriesRenderState" }, outputs: { isSelectedChange: "isSelectedChange" }, host: { listeners: { "click": "onClick()", "keydown.enter": "onEnterKey()", "keydown.space": "onSpaceKey($event)" }, properties: { "class.nui-legend-series--interactive": "this.isInteractiveClassApplied", "class.nui-legend-series--horizontal": "this.isHorizontalClassApplied", "class.inverse": "this.isActiveClassApplied", "attr.role": "this.role", "attr.tabindex": "this.interactiveTabIndex", "attr.aria-checked": "this.interactiveAriaChecked" }, classAttribute: "nui-legend-series" }, viewQueries: [{ propertyName: "projectedDescription", first: true, predicate: ["projectedDescription"], descendants: true }], ngImport: i0, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2175
2233
|
}
|
|
2176
2234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LegendSeriesComponent, decorators: [{
|
|
2177
2235
|
type: Component,
|
|
2178
|
-
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" }]
|
|
2236
|
+
args: [{ host: { class: LEGEND_SERIES_CLASS_NAME }, selector: "nui-legend-series", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n aria-hidden=\"true\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n" }]
|
|
2179
2237
|
}], ctorParameters: () => [{ type: LegendComponent, decorators: [{
|
|
2180
2238
|
type: Optional
|
|
2181
2239
|
}, {
|
|
@@ -2210,9 +2268,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
2210
2268
|
}], isActiveClassApplied: [{
|
|
2211
2269
|
type: HostBinding,
|
|
2212
2270
|
args: [`class.inverse`]
|
|
2271
|
+
}], role: [{
|
|
2272
|
+
type: HostBinding,
|
|
2273
|
+
args: ["attr.role"]
|
|
2274
|
+
}], interactiveTabIndex: [{
|
|
2275
|
+
type: HostBinding,
|
|
2276
|
+
args: ["attr.tabindex"]
|
|
2277
|
+
}], interactiveAriaChecked: [{
|
|
2278
|
+
type: HostBinding,
|
|
2279
|
+
args: ["attr.aria-checked"]
|
|
2213
2280
|
}], onClick: [{
|
|
2214
2281
|
type: HostListener,
|
|
2215
2282
|
args: ["click"]
|
|
2283
|
+
}], onEnterKey: [{
|
|
2284
|
+
type: HostListener,
|
|
2285
|
+
args: ["keydown.enter"]
|
|
2286
|
+
}], onSpaceKey: [{
|
|
2287
|
+
type: HostListener,
|
|
2288
|
+
args: ["keydown.space", ["$event"]]
|
|
2216
2289
|
}] } });
|
|
2217
2290
|
|
|
2218
2291
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -5482,6 +5555,8 @@ class Chart {
|
|
|
5482
5555
|
class: "nui-chart",
|
|
5483
5556
|
height: "100%",
|
|
5484
5557
|
width: "100%",
|
|
5558
|
+
// aria-hidden: the accessible label is carried by the nui-chart host element (role="img")
|
|
5559
|
+
"aria-hidden": "true",
|
|
5485
5560
|
});
|
|
5486
5561
|
this.configureCssFilters();
|
|
5487
5562
|
this.buildGrid();
|