@aquera/nile-visualization 1.5.0 → 1.6.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/dist/src/internal/types/chart-anomaly-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-area-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-area-negative-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-area-range-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-area-spline-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-bar-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-bellcurve-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-boxplot-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-bubble-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-cluster-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-column-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-column-drilldown-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-column-pyramid-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-column-range-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-donut-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-dumbbell-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-euler-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-fan-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-flame-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-funnel-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-gauge-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-heatmap-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-histogram-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-line-column-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-line-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-lollipop-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-map-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-organization-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-pie-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-polygon-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-radar-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-radial-bar-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-scatter-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-spiderweb-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-spline-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-stacked-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-timeline-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-trendline-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-variable-pie-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-vector-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-waterfall-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-xrange-config.type.d.ts +12 -0
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.css.js +20 -4
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.d.ts +12 -0
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.js +95 -1
- package/dist/src/nile-area-chart/nile-area-chart.css.js +20 -4
- package/dist/src/nile-area-chart/nile-area-chart.d.ts +13 -0
- package/dist/src/nile-area-chart/nile-area-chart.js +107 -3
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.css.js +20 -4
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.d.ts +12 -0
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.js +73 -1
- package/dist/src/nile-area-range-chart/nile-area-range-chart.css.js +20 -4
- package/dist/src/nile-area-range-chart/nile-area-range-chart.d.ts +12 -0
- package/dist/src/nile-area-range-chart/nile-area-range-chart.js +73 -1
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.css.js +20 -4
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.d.ts +12 -0
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.js +73 -1
- package/dist/src/nile-bar-chart/nile-bar-chart.css.js +20 -4
- package/dist/src/nile-bar-chart/nile-bar-chart.d.ts +14 -0
- package/dist/src/nile-bar-chart/nile-bar-chart.js +104 -1
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.css.js +20 -4
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.d.ts +12 -0
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.js +73 -1
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.css.js +20 -4
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.d.ts +12 -0
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.js +73 -1
- package/dist/src/nile-bubble-chart/nile-bubble-chart.css.js +20 -4
- package/dist/src/nile-bubble-chart/nile-bubble-chart.d.ts +13 -0
- package/dist/src/nile-bubble-chart/nile-bubble-chart.js +107 -3
- package/dist/src/nile-chart/nile-chart-config.d.ts +331 -38
- package/dist/src/nile-chart/nile-chart.d.ts +0 -3
- package/dist/src/nile-chart/nile-chart.js +546 -2
- package/dist/src/nile-cluster-chart/nile-cluster-chart.css.js +20 -4
- package/dist/src/nile-cluster-chart/nile-cluster-chart.d.ts +12 -0
- package/dist/src/nile-cluster-chart/nile-cluster-chart.js +73 -1
- package/dist/src/nile-column-chart/nile-column-chart.css.js +20 -4
- package/dist/src/nile-column-chart/nile-column-chart.d.ts +13 -0
- package/dist/src/nile-column-chart/nile-column-chart.js +107 -3
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.css.js +20 -4
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.d.ts +12 -0
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.js +73 -1
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.css.js +20 -4
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.d.ts +12 -0
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.js +73 -1
- package/dist/src/nile-column-range-chart/nile-column-range-chart.css.js +20 -4
- package/dist/src/nile-column-range-chart/nile-column-range-chart.d.ts +12 -0
- package/dist/src/nile-column-range-chart/nile-column-range-chart.js +73 -1
- package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.css.js +10 -0
- package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.d.ts +10 -14
- package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.js +36 -14
- package/dist/src/nile-donut-chart/nile-donut-chart.css.js +20 -4
- package/dist/src/nile-donut-chart/nile-donut-chart.d.ts +12 -0
- package/dist/src/nile-donut-chart/nile-donut-chart.js +99 -2
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.css.js +20 -4
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.d.ts +12 -0
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.js +73 -1
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.css.js +20 -4
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.d.ts +12 -0
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.js +73 -1
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.css.js +20 -4
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.d.ts +12 -0
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.js +73 -1
- package/dist/src/nile-euler-chart/nile-euler-chart.css.js +20 -4
- package/dist/src/nile-euler-chart/nile-euler-chart.d.ts +12 -0
- package/dist/src/nile-euler-chart/nile-euler-chart.js +73 -1
- package/dist/src/nile-fan-chart/nile-fan-chart.css.js +20 -4
- package/dist/src/nile-fan-chart/nile-fan-chart.d.ts +12 -0
- package/dist/src/nile-fan-chart/nile-fan-chart.js +73 -1
- package/dist/src/nile-flame-chart/nile-flame-chart.css.js +20 -4
- package/dist/src/nile-flame-chart/nile-flame-chart.d.ts +12 -0
- package/dist/src/nile-flame-chart/nile-flame-chart.js +73 -1
- package/dist/src/nile-funnel-chart/nile-funnel-chart.css.js +20 -4
- package/dist/src/nile-funnel-chart/nile-funnel-chart.d.ts +12 -0
- package/dist/src/nile-funnel-chart/nile-funnel-chart.js +73 -1
- package/dist/src/nile-gauge-chart/nile-gauge-chart.css.js +20 -4
- package/dist/src/nile-gauge-chart/nile-gauge-chart.d.ts +12 -0
- package/dist/src/nile-gauge-chart/nile-gauge-chart.js +95 -2
- package/dist/src/nile-heatmap-chart/nile-heatmap-chart.css.js +20 -4
- package/dist/src/nile-heatmap-chart/nile-heatmap-chart.d.ts +13 -0
- package/dist/src/nile-heatmap-chart/nile-heatmap-chart.js +79 -2
- package/dist/src/nile-histogram-chart/nile-histogram-chart.css.js +20 -4
- package/dist/src/nile-histogram-chart/nile-histogram-chart.d.ts +12 -0
- package/dist/src/nile-histogram-chart/nile-histogram-chart.js +73 -1
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.css.js +20 -4
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.d.ts +12 -0
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.js +73 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.css.d.ts +1 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.css.js +54 -33
- package/dist/src/nile-kpi-chart/nile-kpi-chart.d.ts +121 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.js +366 -52
- package/dist/src/nile-line-chart/nile-line-chart.css.js +20 -4
- package/dist/src/nile-line-chart/nile-line-chart.d.ts +13 -0
- package/dist/src/nile-line-chart/nile-line-chart.js +103 -3
- package/dist/src/nile-line-column-chart/nile-line-column-chart.css.js +20 -4
- package/dist/src/nile-line-column-chart/nile-line-column-chart.d.ts +12 -0
- package/dist/src/nile-line-column-chart/nile-line-column-chart.js +73 -1
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.css.js +20 -4
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.d.ts +12 -0
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.js +73 -1
- package/dist/src/nile-map-chart/nile-map-chart.css.js +20 -4
- package/dist/src/nile-map-chart/nile-map-chart.d.ts +12 -0
- package/dist/src/nile-map-chart/nile-map-chart.js +95 -1
- package/dist/src/nile-organization-chart/nile-organization-chart.css.js +20 -4
- package/dist/src/nile-organization-chart/nile-organization-chart.d.ts +12 -0
- package/dist/src/nile-organization-chart/nile-organization-chart.js +73 -1
- package/dist/src/nile-pie-chart/nile-pie-chart.css.js +20 -4
- package/dist/src/nile-pie-chart/nile-pie-chart.d.ts +12 -0
- package/dist/src/nile-pie-chart/nile-pie-chart.js +95 -1
- package/dist/src/nile-polygon-chart/nile-polygon-chart.css.js +20 -4
- package/dist/src/nile-polygon-chart/nile-polygon-chart.d.ts +12 -0
- package/dist/src/nile-polygon-chart/nile-polygon-chart.js +73 -1
- package/dist/src/nile-radar-chart/nile-radar-chart.css.js +20 -4
- package/dist/src/nile-radar-chart/nile-radar-chart.d.ts +13 -0
- package/dist/src/nile-radar-chart/nile-radar-chart.js +103 -3
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.css.js +20 -4
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.d.ts +13 -0
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.js +79 -1
- package/dist/src/nile-scatter-chart/nile-scatter-chart.css.js +20 -4
- package/dist/src/nile-scatter-chart/nile-scatter-chart.d.ts +13 -0
- package/dist/src/nile-scatter-chart/nile-scatter-chart.js +103 -3
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.css.js +20 -4
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.d.ts +13 -0
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.js +79 -1
- package/dist/src/nile-spline-chart/nile-spline-chart.css.js +20 -4
- package/dist/src/nile-spline-chart/nile-spline-chart.d.ts +13 -0
- package/dist/src/nile-spline-chart/nile-spline-chart.js +103 -3
- package/dist/src/nile-stacked-chart/nile-stacked-chart.css.js +20 -4
- package/dist/src/nile-stacked-chart/nile-stacked-chart.d.ts +12 -0
- package/dist/src/nile-stacked-chart/nile-stacked-chart.js +73 -1
- package/dist/src/nile-timeline-chart/nile-timeline-chart.css.js +20 -4
- package/dist/src/nile-timeline-chart/nile-timeline-chart.d.ts +13 -1
- package/dist/src/nile-timeline-chart/nile-timeline-chart.js +73 -1
- package/dist/src/nile-trendline-chart/nile-trendline-chart.css.js +20 -4
- package/dist/src/nile-trendline-chart/nile-trendline-chart.d.ts +12 -0
- package/dist/src/nile-trendline-chart/nile-trendline-chart.js +95 -1
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.css.js +20 -4
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.d.ts +12 -0
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.js +73 -1
- package/dist/src/nile-vector-chart/nile-vector-chart.css.js +20 -4
- package/dist/src/nile-vector-chart/nile-vector-chart.d.ts +12 -0
- package/dist/src/nile-vector-chart/nile-vector-chart.js +73 -1
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.css.js +20 -4
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.d.ts +13 -0
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.js +103 -4
- package/dist/src/nile-xrange-chart/nile-xrange-chart.css.js +20 -4
- package/dist/src/nile-xrange-chart/nile-xrange-chart.d.ts +13 -0
- package/dist/src/nile-xrange-chart/nile-xrange-chart.js +79 -1
- package/package.json +1 -1
|
@@ -25,6 +25,18 @@ export declare class NileGaugeChart extends NileElement {
|
|
|
25
25
|
options: Highcharts.Options;
|
|
26
26
|
loading: boolean;
|
|
27
27
|
height: string;
|
|
28
|
+
chartBg: string;
|
|
29
|
+
chartBorderRadius: string | number;
|
|
30
|
+
chartBorder: string;
|
|
31
|
+
chartShadow: string;
|
|
32
|
+
chartPadding: string | number;
|
|
33
|
+
chartMinHeight: string | number;
|
|
34
|
+
loadingText: string;
|
|
35
|
+
loadingColor: string;
|
|
36
|
+
loadingFontSize: string | number;
|
|
37
|
+
loadingFontFamily: string;
|
|
38
|
+
loadingBg: string;
|
|
39
|
+
private _syncCssVars;
|
|
28
40
|
/** Apply { chart, aq } config to individual properties. */
|
|
29
41
|
private applyConfig;
|
|
30
42
|
connectedCallback(): void;
|
|
@@ -23,6 +23,40 @@ let NileGaugeChart = class NileGaugeChart extends NileElement {
|
|
|
23
23
|
this.options = {};
|
|
24
24
|
this.loading = false;
|
|
25
25
|
this.height = '280px';
|
|
26
|
+
// ── Container styling ──
|
|
27
|
+
this.chartBg = '';
|
|
28
|
+
this.chartBorderRadius = '';
|
|
29
|
+
this.chartBorder = '';
|
|
30
|
+
this.chartShadow = '';
|
|
31
|
+
this.chartPadding = '';
|
|
32
|
+
this.chartMinHeight = '';
|
|
33
|
+
// ── Loading ──
|
|
34
|
+
this.loadingText = 'Loading...';
|
|
35
|
+
this.loadingColor = '';
|
|
36
|
+
this.loadingFontSize = '';
|
|
37
|
+
this.loadingFontFamily = '';
|
|
38
|
+
this.loadingBg = '';
|
|
39
|
+
}
|
|
40
|
+
_syncCssVars() {
|
|
41
|
+
const set = (prop, val) => {
|
|
42
|
+
const s = typeof val === 'number'
|
|
43
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
44
|
+
: String(val ?? '').trim();
|
|
45
|
+
if (s)
|
|
46
|
+
this.style.setProperty(prop, s);
|
|
47
|
+
else
|
|
48
|
+
this.style.removeProperty(prop);
|
|
49
|
+
};
|
|
50
|
+
set('--nile-chart-bg', this.chartBg);
|
|
51
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
52
|
+
set('--nile-chart-border', this.chartBorder);
|
|
53
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
54
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
55
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
56
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
57
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
58
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
59
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
26
60
|
}
|
|
27
61
|
/** Apply { chart, aq } config to individual properties. */
|
|
28
62
|
applyConfig(cfg) {
|
|
@@ -45,6 +79,28 @@ let NileGaugeChart = class NileGaugeChart extends NileElement {
|
|
|
45
79
|
this.loading = gauge.loading;
|
|
46
80
|
if (gauge.options)
|
|
47
81
|
this.options = gauge.options;
|
|
82
|
+
if (gauge.chartBg !== undefined)
|
|
83
|
+
this.chartBg = gauge.chartBg;
|
|
84
|
+
if (gauge.chartBorderRadius !== undefined)
|
|
85
|
+
this.chartBorderRadius = gauge.chartBorderRadius;
|
|
86
|
+
if (gauge.chartBorder !== undefined)
|
|
87
|
+
this.chartBorder = gauge.chartBorder;
|
|
88
|
+
if (gauge.chartShadow !== undefined)
|
|
89
|
+
this.chartShadow = gauge.chartShadow;
|
|
90
|
+
if (gauge.chartPadding !== undefined)
|
|
91
|
+
this.chartPadding = gauge.chartPadding;
|
|
92
|
+
if (gauge.chartMinHeight !== undefined)
|
|
93
|
+
this.chartMinHeight = gauge.chartMinHeight;
|
|
94
|
+
if (gauge.loadingText !== undefined)
|
|
95
|
+
this.loadingText = gauge.loadingText;
|
|
96
|
+
if (gauge.loadingColor !== undefined)
|
|
97
|
+
this.loadingColor = gauge.loadingColor;
|
|
98
|
+
if (gauge.loadingFontSize !== undefined)
|
|
99
|
+
this.loadingFontSize = gauge.loadingFontSize;
|
|
100
|
+
if (gauge.loadingFontFamily !== undefined)
|
|
101
|
+
this.loadingFontFamily = gauge.loadingFontFamily;
|
|
102
|
+
if (gauge.loadingBg !== undefined)
|
|
103
|
+
this.loadingBg = gauge.loadingBg;
|
|
48
104
|
}
|
|
49
105
|
if (aq) {
|
|
50
106
|
if (aq.chartTitle)
|
|
@@ -64,13 +120,17 @@ let NileGaugeChart = class NileGaugeChart extends NileElement {
|
|
|
64
120
|
this.resizeObserver?.disconnect();
|
|
65
121
|
this.resizeObserver = null;
|
|
66
122
|
}
|
|
67
|
-
firstUpdated() { this.initChart(); this.setupResizeObserver(); }
|
|
123
|
+
firstUpdated() { this._syncCssVars(); this.initChart(); this.setupResizeObserver(); }
|
|
68
124
|
updated(changedProperties) {
|
|
69
125
|
if (changedProperties.has('config') && this.config) {
|
|
70
126
|
this.applyConfig(this.config);
|
|
71
127
|
return;
|
|
72
128
|
}
|
|
73
129
|
const props = ['value', 'min', 'max', 'suffix', 'bands', 'chartTitle', 'chartSubtitle', 'options', 'height', 'loading'];
|
|
130
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
131
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
132
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
133
|
+
this._syncCssVars();
|
|
74
134
|
if (!props.some(p => changedProperties.has(p)))
|
|
75
135
|
return;
|
|
76
136
|
if (this.loading) {
|
|
@@ -144,7 +204,7 @@ let NileGaugeChart = class NileGaugeChart extends NileElement {
|
|
|
144
204
|
} }
|
|
145
205
|
render() {
|
|
146
206
|
if (this.loading)
|
|
147
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
207
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
148
208
|
return html `<div class="chart-container"></div>`;
|
|
149
209
|
}
|
|
150
210
|
};
|
|
@@ -185,6 +245,39 @@ __decorate([
|
|
|
185
245
|
__decorate([
|
|
186
246
|
property({ type: String })
|
|
187
247
|
], NileGaugeChart.prototype, "height", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
250
|
+
], NileGaugeChart.prototype, "chartBg", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
253
|
+
], NileGaugeChart.prototype, "chartBorderRadius", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
property({ type: String, attribute: 'chart-border' })
|
|
256
|
+
], NileGaugeChart.prototype, "chartBorder", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
259
|
+
], NileGaugeChart.prototype, "chartShadow", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
262
|
+
], NileGaugeChart.prototype, "chartPadding", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
265
|
+
], NileGaugeChart.prototype, "chartMinHeight", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
property({ type: String, attribute: 'loading-text' })
|
|
268
|
+
], NileGaugeChart.prototype, "loadingText", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
property({ type: String, attribute: 'loading-color' })
|
|
271
|
+
], NileGaugeChart.prototype, "loadingColor", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
274
|
+
], NileGaugeChart.prototype, "loadingFontSize", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
277
|
+
], NileGaugeChart.prototype, "loadingFontFamily", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
280
|
+
], NileGaugeChart.prototype, "loadingBg", void 0);
|
|
188
281
|
NileGaugeChart = __decorate([
|
|
189
282
|
customElement('nile-gauge-chart')
|
|
190
283
|
], NileGaugeChart);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const styles = css `
|
|
3
3
|
:host {
|
|
4
|
+
--nile-chart-min-height: var(--nile-height-200px, var(--ng-height-200px));
|
|
5
|
+
--nile-chart-bg: transparent;
|
|
6
|
+
--nile-chart-border-radius: 0;
|
|
7
|
+
--nile-chart-border: none;
|
|
8
|
+
--nile-chart-shadow: none;
|
|
9
|
+
--nile-chart-padding: 0;
|
|
10
|
+
--nile-chart-loading-color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
11
|
+
--nile-chart-loading-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
12
|
+
--nile-chart-loading-font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
13
|
+
--nile-chart-loading-bg: transparent;
|
|
4
14
|
display: block;
|
|
5
15
|
width: 100%;
|
|
6
16
|
position: relative;
|
|
@@ -12,7 +22,12 @@ export const styles = css `
|
|
|
12
22
|
|
|
13
23
|
.chart-container {
|
|
14
24
|
width: 100%;
|
|
15
|
-
min-height: var(--nile-
|
|
25
|
+
min-height: var(--nile-chart-min-height);
|
|
26
|
+
background: var(--nile-chart-bg);
|
|
27
|
+
border-radius: var(--nile-chart-border-radius);
|
|
28
|
+
border: var(--nile-chart-border);
|
|
29
|
+
box-shadow: var(--nile-chart-shadow);
|
|
30
|
+
padding: var(--nile-chart-padding);
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
.chart-loading {
|
|
@@ -20,9 +35,10 @@ export const styles = css `
|
|
|
20
35
|
align-items: center;
|
|
21
36
|
justify-content: center;
|
|
22
37
|
min-height: inherit;
|
|
23
|
-
color: var(--nile-
|
|
24
|
-
font-family: var(--nile-
|
|
25
|
-
font-size: var(--nile-
|
|
38
|
+
color: var(--nile-chart-loading-color);
|
|
39
|
+
font-family: var(--nile-chart-loading-font-family);
|
|
40
|
+
font-size: var(--nile-chart-loading-font-size);
|
|
41
|
+
background: var(--nile-chart-loading-bg);
|
|
26
42
|
}
|
|
27
43
|
`;
|
|
28
44
|
//# sourceMappingURL=nile-heatmap-chart.css.js.map
|
|
@@ -30,6 +30,19 @@ export declare class NileHeatmapChart extends NileElement {
|
|
|
30
30
|
loading: boolean;
|
|
31
31
|
height: string;
|
|
32
32
|
showDataLabels: boolean;
|
|
33
|
+
showLegend: boolean;
|
|
34
|
+
chartBg: string;
|
|
35
|
+
chartBorderRadius: string | number;
|
|
36
|
+
chartBorder: string;
|
|
37
|
+
chartShadow: string;
|
|
38
|
+
chartPadding: string | number;
|
|
39
|
+
chartMinHeight: string | number;
|
|
40
|
+
loadingText: string;
|
|
41
|
+
loadingColor: string;
|
|
42
|
+
loadingFontSize: string | number;
|
|
43
|
+
loadingFontFamily: string;
|
|
44
|
+
loadingBg: string;
|
|
45
|
+
private _syncCssVars;
|
|
33
46
|
private applyConfig;
|
|
34
47
|
connectedCallback(): void;
|
|
35
48
|
disconnectedCallback(): void;
|
|
@@ -28,6 +28,41 @@ let NileHeatmapChart = class NileHeatmapChart extends NileElement {
|
|
|
28
28
|
this.loading = false;
|
|
29
29
|
this.height = '400px';
|
|
30
30
|
this.showDataLabels = true;
|
|
31
|
+
this.showLegend = true;
|
|
32
|
+
// ── Container styling ──
|
|
33
|
+
this.chartBg = '';
|
|
34
|
+
this.chartBorderRadius = '';
|
|
35
|
+
this.chartBorder = '';
|
|
36
|
+
this.chartShadow = '';
|
|
37
|
+
this.chartPadding = '';
|
|
38
|
+
this.chartMinHeight = '';
|
|
39
|
+
// ── Loading ──
|
|
40
|
+
this.loadingText = 'Loading...';
|
|
41
|
+
this.loadingColor = '';
|
|
42
|
+
this.loadingFontSize = '';
|
|
43
|
+
this.loadingFontFamily = '';
|
|
44
|
+
this.loadingBg = '';
|
|
45
|
+
}
|
|
46
|
+
_syncCssVars() {
|
|
47
|
+
const set = (prop, val) => {
|
|
48
|
+
const s = typeof val === 'number'
|
|
49
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
50
|
+
: String(val ?? '').trim();
|
|
51
|
+
if (s)
|
|
52
|
+
this.style.setProperty(prop, s);
|
|
53
|
+
else
|
|
54
|
+
this.style.removeProperty(prop);
|
|
55
|
+
};
|
|
56
|
+
set('--nile-chart-bg', this.chartBg);
|
|
57
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
58
|
+
set('--nile-chart-border', this.chartBorder);
|
|
59
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
60
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
61
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
62
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
63
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
64
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
65
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
31
66
|
}
|
|
32
67
|
applyConfig(cfg) {
|
|
33
68
|
applySeparatedChartConfig(this, cfg);
|
|
@@ -44,6 +79,7 @@ let NileHeatmapChart = class NileHeatmapChart extends NileElement {
|
|
|
44
79
|
this.resizeObserver = null;
|
|
45
80
|
}
|
|
46
81
|
firstUpdated() {
|
|
82
|
+
this._syncCssVars();
|
|
47
83
|
this.initChart();
|
|
48
84
|
this.setupResizeObserver();
|
|
49
85
|
}
|
|
@@ -68,7 +104,12 @@ let NileHeatmapChart = class NileHeatmapChart extends NileElement {
|
|
|
68
104
|
'height',
|
|
69
105
|
'loading',
|
|
70
106
|
'showDataLabels',
|
|
107
|
+
'showLegend',
|
|
71
108
|
];
|
|
109
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
110
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
111
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
112
|
+
this._syncCssVars();
|
|
72
113
|
if (!props.some(p => changedProperties.has(p)))
|
|
73
114
|
return;
|
|
74
115
|
if (this.loading) {
|
|
@@ -128,7 +169,7 @@ let NileHeatmapChart = class NileHeatmapChart extends NileElement {
|
|
|
128
169
|
maxColor: this.maxColor,
|
|
129
170
|
title: { text: this.colorAxisTitle || undefined },
|
|
130
171
|
},
|
|
131
|
-
legend: { align: 'right', layout: 'vertical', verticalAlign: 'top' },
|
|
172
|
+
legend: { enabled: this.showLegend, align: 'right', layout: 'vertical', verticalAlign: 'top' },
|
|
132
173
|
tooltip: {
|
|
133
174
|
formatter() {
|
|
134
175
|
const p = this.point;
|
|
@@ -195,7 +236,7 @@ let NileHeatmapChart = class NileHeatmapChart extends NileElement {
|
|
|
195
236
|
}
|
|
196
237
|
render() {
|
|
197
238
|
if (this.loading) {
|
|
198
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
239
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
199
240
|
}
|
|
200
241
|
return html `<div class="chart-container"></div>`;
|
|
201
242
|
}
|
|
@@ -252,6 +293,42 @@ __decorate([
|
|
|
252
293
|
__decorate([
|
|
253
294
|
property({ type: Boolean, attribute: 'show-data-labels' })
|
|
254
295
|
], NileHeatmapChart.prototype, "showDataLabels", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
property({ type: Boolean, attribute: 'show-legend' })
|
|
298
|
+
], NileHeatmapChart.prototype, "showLegend", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
301
|
+
], NileHeatmapChart.prototype, "chartBg", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
304
|
+
], NileHeatmapChart.prototype, "chartBorderRadius", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
property({ type: String, attribute: 'chart-border' })
|
|
307
|
+
], NileHeatmapChart.prototype, "chartBorder", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
310
|
+
], NileHeatmapChart.prototype, "chartShadow", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
313
|
+
], NileHeatmapChart.prototype, "chartPadding", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
316
|
+
], NileHeatmapChart.prototype, "chartMinHeight", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
property({ type: String, attribute: 'loading-text' })
|
|
319
|
+
], NileHeatmapChart.prototype, "loadingText", void 0);
|
|
320
|
+
__decorate([
|
|
321
|
+
property({ type: String, attribute: 'loading-color' })
|
|
322
|
+
], NileHeatmapChart.prototype, "loadingColor", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
325
|
+
], NileHeatmapChart.prototype, "loadingFontSize", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
328
|
+
], NileHeatmapChart.prototype, "loadingFontFamily", void 0);
|
|
329
|
+
__decorate([
|
|
330
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
331
|
+
], NileHeatmapChart.prototype, "loadingBg", void 0);
|
|
255
332
|
NileHeatmapChart = __decorate([
|
|
256
333
|
customElement('nile-heatmap-chart')
|
|
257
334
|
], NileHeatmapChart);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const styles = css `
|
|
3
3
|
:host {
|
|
4
|
+
--nile-chart-min-height: var(--nile-height-200px, var(--ng-height-200px));
|
|
5
|
+
--nile-chart-bg: transparent;
|
|
6
|
+
--nile-chart-border-radius: 0;
|
|
7
|
+
--nile-chart-border: none;
|
|
8
|
+
--nile-chart-shadow: none;
|
|
9
|
+
--nile-chart-padding: 0;
|
|
10
|
+
--nile-chart-loading-color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
11
|
+
--nile-chart-loading-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
12
|
+
--nile-chart-loading-font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
13
|
+
--nile-chart-loading-bg: transparent;
|
|
4
14
|
display: block;
|
|
5
15
|
width: 100%;
|
|
6
16
|
position: relative;
|
|
@@ -12,7 +22,12 @@ export const styles = css `
|
|
|
12
22
|
|
|
13
23
|
.chart-container {
|
|
14
24
|
width: 100%;
|
|
15
|
-
min-height: var(--nile-
|
|
25
|
+
min-height: var(--nile-chart-min-height);
|
|
26
|
+
background: var(--nile-chart-bg);
|
|
27
|
+
border-radius: var(--nile-chart-border-radius);
|
|
28
|
+
border: var(--nile-chart-border);
|
|
29
|
+
box-shadow: var(--nile-chart-shadow);
|
|
30
|
+
padding: var(--nile-chart-padding);
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
.chart-loading {
|
|
@@ -20,9 +35,10 @@ export const styles = css `
|
|
|
20
35
|
align-items: center;
|
|
21
36
|
justify-content: center;
|
|
22
37
|
min-height: inherit;
|
|
23
|
-
color: var(--nile-
|
|
24
|
-
font-family: var(--nile-
|
|
25
|
-
font-size: var(--nile-
|
|
38
|
+
color: var(--nile-chart-loading-color);
|
|
39
|
+
font-family: var(--nile-chart-loading-font-family);
|
|
40
|
+
font-size: var(--nile-chart-loading-font-size);
|
|
41
|
+
background: var(--nile-chart-loading-bg);
|
|
26
42
|
}
|
|
27
43
|
`;
|
|
28
44
|
//# sourceMappingURL=nile-histogram-chart.css.js.map
|
|
@@ -33,6 +33,18 @@ export declare class NileHistogramChart extends NileElement {
|
|
|
33
33
|
/** Fixed bin width; when > 0, overrides `binsNumber`. */
|
|
34
34
|
binWidth: number;
|
|
35
35
|
showLegend: boolean;
|
|
36
|
+
chartBg: string;
|
|
37
|
+
chartBorderRadius: string | number;
|
|
38
|
+
chartBorder: string;
|
|
39
|
+
chartShadow: string;
|
|
40
|
+
chartPadding: string | number;
|
|
41
|
+
chartMinHeight: string | number;
|
|
42
|
+
loadingText: string;
|
|
43
|
+
loadingColor: string;
|
|
44
|
+
loadingFontSize: string | number;
|
|
45
|
+
loadingFontFamily: string;
|
|
46
|
+
loadingBg: string;
|
|
47
|
+
private _syncCssVars;
|
|
36
48
|
/** Apply `{ chart, aq }` config to individual properties. */
|
|
37
49
|
private applyConfig;
|
|
38
50
|
connectedCallback(): void;
|
|
@@ -37,6 +37,40 @@ let NileHistogramChart = class NileHistogramChart extends NileElement {
|
|
|
37
37
|
/** Fixed bin width; when > 0, overrides `binsNumber`. */
|
|
38
38
|
this.binWidth = 0;
|
|
39
39
|
this.showLegend = true;
|
|
40
|
+
// ── Container styling ──
|
|
41
|
+
this.chartBg = '';
|
|
42
|
+
this.chartBorderRadius = '';
|
|
43
|
+
this.chartBorder = '';
|
|
44
|
+
this.chartShadow = '';
|
|
45
|
+
this.chartPadding = '';
|
|
46
|
+
this.chartMinHeight = '';
|
|
47
|
+
// ── Loading ──
|
|
48
|
+
this.loadingText = 'Loading...';
|
|
49
|
+
this.loadingColor = '';
|
|
50
|
+
this.loadingFontSize = '';
|
|
51
|
+
this.loadingFontFamily = '';
|
|
52
|
+
this.loadingBg = '';
|
|
53
|
+
}
|
|
54
|
+
_syncCssVars() {
|
|
55
|
+
const set = (prop, val) => {
|
|
56
|
+
const s = typeof val === 'number'
|
|
57
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
58
|
+
: String(val ?? '').trim();
|
|
59
|
+
if (s)
|
|
60
|
+
this.style.setProperty(prop, s);
|
|
61
|
+
else
|
|
62
|
+
this.style.removeProperty(prop);
|
|
63
|
+
};
|
|
64
|
+
set('--nile-chart-bg', this.chartBg);
|
|
65
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
66
|
+
set('--nile-chart-border', this.chartBorder);
|
|
67
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
68
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
69
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
70
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
71
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
72
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
73
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
40
74
|
}
|
|
41
75
|
/** Apply `{ chart, aq }` config to individual properties. */
|
|
42
76
|
applyConfig(cfg) {
|
|
@@ -54,6 +88,7 @@ let NileHistogramChart = class NileHistogramChart extends NileElement {
|
|
|
54
88
|
this.resizeObserver = null;
|
|
55
89
|
}
|
|
56
90
|
firstUpdated() {
|
|
91
|
+
this._syncCssVars();
|
|
57
92
|
this.initChart();
|
|
58
93
|
this.setupResizeObserver();
|
|
59
94
|
}
|
|
@@ -78,6 +113,10 @@ let NileHistogramChart = class NileHistogramChart extends NileElement {
|
|
|
78
113
|
'showLegend',
|
|
79
114
|
'loading',
|
|
80
115
|
];
|
|
116
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
117
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
118
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
119
|
+
this._syncCssVars();
|
|
81
120
|
if (!props.some(p => changedProperties.has(p)))
|
|
82
121
|
return;
|
|
83
122
|
if (this.loading) {
|
|
@@ -204,7 +243,7 @@ let NileHistogramChart = class NileHistogramChart extends NileElement {
|
|
|
204
243
|
}
|
|
205
244
|
render() {
|
|
206
245
|
if (this.loading) {
|
|
207
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
246
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
208
247
|
}
|
|
209
248
|
return html `<div class="chart-container"></div>`;
|
|
210
249
|
}
|
|
@@ -258,6 +297,39 @@ __decorate([
|
|
|
258
297
|
__decorate([
|
|
259
298
|
property({ type: Boolean, attribute: 'show-legend' })
|
|
260
299
|
], NileHistogramChart.prototype, "showLegend", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
302
|
+
], NileHistogramChart.prototype, "chartBg", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
305
|
+
], NileHistogramChart.prototype, "chartBorderRadius", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
property({ type: String, attribute: 'chart-border' })
|
|
308
|
+
], NileHistogramChart.prototype, "chartBorder", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
311
|
+
], NileHistogramChart.prototype, "chartShadow", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
314
|
+
], NileHistogramChart.prototype, "chartPadding", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
317
|
+
], NileHistogramChart.prototype, "chartMinHeight", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
property({ type: String, attribute: 'loading-text' })
|
|
320
|
+
], NileHistogramChart.prototype, "loadingText", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
property({ type: String, attribute: 'loading-color' })
|
|
323
|
+
], NileHistogramChart.prototype, "loadingColor", void 0);
|
|
324
|
+
__decorate([
|
|
325
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
326
|
+
], NileHistogramChart.prototype, "loadingFontSize", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
329
|
+
], NileHistogramChart.prototype, "loadingFontFamily", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
332
|
+
], NileHistogramChart.prototype, "loadingBg", void 0);
|
|
261
333
|
NileHistogramChart = __decorate([
|
|
262
334
|
customElement('nile-histogram-chart')
|
|
263
335
|
], NileHistogramChart);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const styles = css `
|
|
3
3
|
:host {
|
|
4
|
+
--nile-chart-min-height: var(--nile-height-200px, var(--ng-height-200px));
|
|
5
|
+
--nile-chart-bg: transparent;
|
|
6
|
+
--nile-chart-border-radius: 0;
|
|
7
|
+
--nile-chart-border: none;
|
|
8
|
+
--nile-chart-shadow: none;
|
|
9
|
+
--nile-chart-padding: 0;
|
|
10
|
+
--nile-chart-loading-color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
11
|
+
--nile-chart-loading-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
12
|
+
--nile-chart-loading-font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
13
|
+
--nile-chart-loading-bg: transparent;
|
|
4
14
|
display: block;
|
|
5
15
|
width: 100%;
|
|
6
16
|
position: relative;
|
|
@@ -12,7 +22,12 @@ export const styles = css `
|
|
|
12
22
|
|
|
13
23
|
.chart-container {
|
|
14
24
|
width: 100%;
|
|
15
|
-
min-height: var(--nile-
|
|
25
|
+
min-height: var(--nile-chart-min-height);
|
|
26
|
+
background: var(--nile-chart-bg);
|
|
27
|
+
border-radius: var(--nile-chart-border-radius);
|
|
28
|
+
border: var(--nile-chart-border);
|
|
29
|
+
box-shadow: var(--nile-chart-shadow);
|
|
30
|
+
padding: var(--nile-chart-padding);
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
.chart-loading {
|
|
@@ -20,9 +35,10 @@ export const styles = css `
|
|
|
20
35
|
align-items: center;
|
|
21
36
|
justify-content: center;
|
|
22
37
|
min-height: inherit;
|
|
23
|
-
color: var(--nile-
|
|
24
|
-
font-family: var(--nile-
|
|
25
|
-
font-size: var(--nile-
|
|
38
|
+
color: var(--nile-chart-loading-color);
|
|
39
|
+
font-family: var(--nile-chart-loading-font-family);
|
|
40
|
+
font-size: var(--nile-chart-loading-font-size);
|
|
41
|
+
background: var(--nile-chart-loading-bg);
|
|
26
42
|
}
|
|
27
43
|
`;
|
|
28
44
|
//# sourceMappingURL=nile-inverted-area-chart.css.js.map
|
|
@@ -23,6 +23,18 @@ export declare class NileInvertedAreaChart extends NileElement {
|
|
|
23
23
|
height: string;
|
|
24
24
|
yAxisTitle: string;
|
|
25
25
|
stacked: boolean;
|
|
26
|
+
chartBg: string;
|
|
27
|
+
chartBorderRadius: string | number;
|
|
28
|
+
chartBorder: string;
|
|
29
|
+
chartShadow: string;
|
|
30
|
+
chartPadding: string | number;
|
|
31
|
+
chartMinHeight: string | number;
|
|
32
|
+
loadingText: string;
|
|
33
|
+
loadingColor: string;
|
|
34
|
+
loadingFontSize: string | number;
|
|
35
|
+
loadingFontFamily: string;
|
|
36
|
+
loadingBg: string;
|
|
37
|
+
private _syncCssVars;
|
|
26
38
|
connectedCallback(): void;
|
|
27
39
|
disconnectedCallback(): void;
|
|
28
40
|
protected firstUpdated(): void;
|