@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
|
@@ -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-area-range-chart.css.js.map
|
|
@@ -23,6 +23,18 @@ export declare class NileAreaRangeChart extends NileElement {
|
|
|
23
23
|
loading: boolean;
|
|
24
24
|
height: string;
|
|
25
25
|
yAxisTitle: string;
|
|
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
|
private applyConfig;
|
|
27
39
|
connectedCallback(): void;
|
|
28
40
|
disconnectedCallback(): void;
|
|
@@ -21,6 +21,40 @@ let NileAreaRangeChart = class NileAreaRangeChart extends NileElement {
|
|
|
21
21
|
this.loading = false;
|
|
22
22
|
this.height = '400px';
|
|
23
23
|
this.yAxisTitle = '';
|
|
24
|
+
// ── Container styling ──
|
|
25
|
+
this.chartBg = '';
|
|
26
|
+
this.chartBorderRadius = '';
|
|
27
|
+
this.chartBorder = '';
|
|
28
|
+
this.chartShadow = '';
|
|
29
|
+
this.chartPadding = '';
|
|
30
|
+
this.chartMinHeight = '';
|
|
31
|
+
// ── Loading ──
|
|
32
|
+
this.loadingText = 'Loading...';
|
|
33
|
+
this.loadingColor = '';
|
|
34
|
+
this.loadingFontSize = '';
|
|
35
|
+
this.loadingFontFamily = '';
|
|
36
|
+
this.loadingBg = '';
|
|
37
|
+
}
|
|
38
|
+
_syncCssVars() {
|
|
39
|
+
const set = (prop, val) => {
|
|
40
|
+
const s = typeof val === 'number'
|
|
41
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
42
|
+
: String(val ?? '').trim();
|
|
43
|
+
if (s)
|
|
44
|
+
this.style.setProperty(prop, s);
|
|
45
|
+
else
|
|
46
|
+
this.style.removeProperty(prop);
|
|
47
|
+
};
|
|
48
|
+
set('--nile-chart-bg', this.chartBg);
|
|
49
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
50
|
+
set('--nile-chart-border', this.chartBorder);
|
|
51
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
52
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
53
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
54
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
55
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
56
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
57
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
24
58
|
}
|
|
25
59
|
applyConfig(cfg) {
|
|
26
60
|
applySeparatedChartConfig(this, cfg);
|
|
@@ -37,6 +71,7 @@ let NileAreaRangeChart = class NileAreaRangeChart extends NileElement {
|
|
|
37
71
|
this.resizeObserver = null;
|
|
38
72
|
}
|
|
39
73
|
firstUpdated() {
|
|
74
|
+
this._syncCssVars();
|
|
40
75
|
this.initChart();
|
|
41
76
|
this.setupResizeObserver();
|
|
42
77
|
}
|
|
@@ -45,6 +80,10 @@ let NileAreaRangeChart = class NileAreaRangeChart extends NileElement {
|
|
|
45
80
|
this.applyConfig(this.config);
|
|
46
81
|
return;
|
|
47
82
|
}
|
|
83
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
84
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
85
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
86
|
+
this._syncCssVars();
|
|
48
87
|
const props = [
|
|
49
88
|
'data',
|
|
50
89
|
'categories',
|
|
@@ -130,7 +169,7 @@ let NileAreaRangeChart = class NileAreaRangeChart extends NileElement {
|
|
|
130
169
|
}
|
|
131
170
|
render() {
|
|
132
171
|
if (this.loading) {
|
|
133
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
172
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
134
173
|
}
|
|
135
174
|
return html `<div class="chart-container"></div>`;
|
|
136
175
|
}
|
|
@@ -166,6 +205,39 @@ __decorate([
|
|
|
166
205
|
__decorate([
|
|
167
206
|
property({ type: String, attribute: 'y-axis-title' })
|
|
168
207
|
], NileAreaRangeChart.prototype, "yAxisTitle", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
210
|
+
], NileAreaRangeChart.prototype, "chartBg", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
213
|
+
], NileAreaRangeChart.prototype, "chartBorderRadius", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
property({ type: String, attribute: 'chart-border' })
|
|
216
|
+
], NileAreaRangeChart.prototype, "chartBorder", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
219
|
+
], NileAreaRangeChart.prototype, "chartShadow", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
222
|
+
], NileAreaRangeChart.prototype, "chartPadding", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
225
|
+
], NileAreaRangeChart.prototype, "chartMinHeight", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
property({ type: String, attribute: 'loading-text' })
|
|
228
|
+
], NileAreaRangeChart.prototype, "loadingText", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
property({ type: String, attribute: 'loading-color' })
|
|
231
|
+
], NileAreaRangeChart.prototype, "loadingColor", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
234
|
+
], NileAreaRangeChart.prototype, "loadingFontSize", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
237
|
+
], NileAreaRangeChart.prototype, "loadingFontFamily", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
240
|
+
], NileAreaRangeChart.prototype, "loadingBg", void 0);
|
|
169
241
|
NileAreaRangeChart = __decorate([
|
|
170
242
|
customElement('nile-area-range-chart')
|
|
171
243
|
], NileAreaRangeChart);
|
|
@@ -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-area-spline-chart.css.js.map
|
|
@@ -23,6 +23,18 @@ export declare class NileAreaSplineChart 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
|
private applyConfig;
|
|
27
39
|
connectedCallback(): void;
|
|
28
40
|
disconnectedCallback(): void;
|
|
@@ -22,6 +22,40 @@ let NileAreaSplineChart = class NileAreaSplineChart extends NileElement {
|
|
|
22
22
|
this.height = '400px';
|
|
23
23
|
this.yAxisTitle = '';
|
|
24
24
|
this.stacked = false;
|
|
25
|
+
// ── Container styling ──
|
|
26
|
+
this.chartBg = '';
|
|
27
|
+
this.chartBorderRadius = '';
|
|
28
|
+
this.chartBorder = '';
|
|
29
|
+
this.chartShadow = '';
|
|
30
|
+
this.chartPadding = '';
|
|
31
|
+
this.chartMinHeight = '';
|
|
32
|
+
// ── Loading ──
|
|
33
|
+
this.loadingText = 'Loading...';
|
|
34
|
+
this.loadingColor = '';
|
|
35
|
+
this.loadingFontSize = '';
|
|
36
|
+
this.loadingFontFamily = '';
|
|
37
|
+
this.loadingBg = '';
|
|
38
|
+
}
|
|
39
|
+
_syncCssVars() {
|
|
40
|
+
const set = (prop, val) => {
|
|
41
|
+
const s = typeof val === 'number'
|
|
42
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
43
|
+
: String(val ?? '').trim();
|
|
44
|
+
if (s)
|
|
45
|
+
this.style.setProperty(prop, s);
|
|
46
|
+
else
|
|
47
|
+
this.style.removeProperty(prop);
|
|
48
|
+
};
|
|
49
|
+
set('--nile-chart-bg', this.chartBg);
|
|
50
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
51
|
+
set('--nile-chart-border', this.chartBorder);
|
|
52
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
53
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
54
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
55
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
56
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
57
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
58
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
25
59
|
}
|
|
26
60
|
applyConfig(cfg) {
|
|
27
61
|
applySeparatedChartConfig(this, cfg);
|
|
@@ -38,6 +72,7 @@ let NileAreaSplineChart = class NileAreaSplineChart extends NileElement {
|
|
|
38
72
|
this.resizeObserver = null;
|
|
39
73
|
}
|
|
40
74
|
firstUpdated() {
|
|
75
|
+
this._syncCssVars();
|
|
41
76
|
this.initChart();
|
|
42
77
|
this.setupResizeObserver();
|
|
43
78
|
}
|
|
@@ -46,6 +81,10 @@ let NileAreaSplineChart = class NileAreaSplineChart extends NileElement {
|
|
|
46
81
|
this.applyConfig(this.config);
|
|
47
82
|
return;
|
|
48
83
|
}
|
|
84
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
85
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
86
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
87
|
+
this._syncCssVars();
|
|
49
88
|
const props = [
|
|
50
89
|
'data',
|
|
51
90
|
'categories',
|
|
@@ -128,7 +167,7 @@ let NileAreaSplineChart = class NileAreaSplineChart extends NileElement {
|
|
|
128
167
|
}
|
|
129
168
|
render() {
|
|
130
169
|
if (this.loading) {
|
|
131
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
170
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
132
171
|
}
|
|
133
172
|
return html `<div class="chart-container"></div>`;
|
|
134
173
|
}
|
|
@@ -167,6 +206,39 @@ __decorate([
|
|
|
167
206
|
__decorate([
|
|
168
207
|
property({ type: Boolean })
|
|
169
208
|
], NileAreaSplineChart.prototype, "stacked", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
211
|
+
], NileAreaSplineChart.prototype, "chartBg", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
214
|
+
], NileAreaSplineChart.prototype, "chartBorderRadius", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
property({ type: String, attribute: 'chart-border' })
|
|
217
|
+
], NileAreaSplineChart.prototype, "chartBorder", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
220
|
+
], NileAreaSplineChart.prototype, "chartShadow", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
223
|
+
], NileAreaSplineChart.prototype, "chartPadding", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
226
|
+
], NileAreaSplineChart.prototype, "chartMinHeight", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
property({ type: String, attribute: 'loading-text' })
|
|
229
|
+
], NileAreaSplineChart.prototype, "loadingText", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
property({ type: String, attribute: 'loading-color' })
|
|
232
|
+
], NileAreaSplineChart.prototype, "loadingColor", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
235
|
+
], NileAreaSplineChart.prototype, "loadingFontSize", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
238
|
+
], NileAreaSplineChart.prototype, "loadingFontFamily", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
241
|
+
], NileAreaSplineChart.prototype, "loadingBg", void 0);
|
|
170
242
|
NileAreaSplineChart = __decorate([
|
|
171
243
|
customElement('nile-area-spline-chart')
|
|
172
244
|
], NileAreaSplineChart);
|
|
@@ -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-bar-chart.css.js.map
|
|
@@ -31,6 +31,20 @@ export declare class NileBarChart extends NileElement {
|
|
|
31
31
|
height: string;
|
|
32
32
|
/** Y-axis title text. */
|
|
33
33
|
yAxisTitle: string;
|
|
34
|
+
/** Whether to enable the legend. */
|
|
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;
|
|
34
48
|
/** Apply { chart, aq } config to individual properties. */
|
|
35
49
|
private applyConfig;
|
|
36
50
|
connectedCallback(): void;
|
|
@@ -29,6 +29,42 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
29
29
|
this.height = '400px';
|
|
30
30
|
/** Y-axis title text. */
|
|
31
31
|
this.yAxisTitle = '';
|
|
32
|
+
/** Whether to enable the legend. */
|
|
33
|
+
this.showLegend = true;
|
|
34
|
+
// ── Container styling ──
|
|
35
|
+
this.chartBg = '';
|
|
36
|
+
this.chartBorderRadius = '';
|
|
37
|
+
this.chartBorder = '';
|
|
38
|
+
this.chartShadow = '';
|
|
39
|
+
this.chartPadding = '';
|
|
40
|
+
this.chartMinHeight = '';
|
|
41
|
+
// ── Loading ──
|
|
42
|
+
this.loadingText = 'Loading...';
|
|
43
|
+
this.loadingColor = '';
|
|
44
|
+
this.loadingFontSize = '';
|
|
45
|
+
this.loadingFontFamily = '';
|
|
46
|
+
this.loadingBg = '';
|
|
47
|
+
}
|
|
48
|
+
_syncCssVars() {
|
|
49
|
+
const set = (prop, val) => {
|
|
50
|
+
const s = typeof val === 'number'
|
|
51
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
52
|
+
: String(val ?? '').trim();
|
|
53
|
+
if (s)
|
|
54
|
+
this.style.setProperty(prop, s);
|
|
55
|
+
else
|
|
56
|
+
this.style.removeProperty(prop);
|
|
57
|
+
};
|
|
58
|
+
set('--nile-chart-bg', this.chartBg);
|
|
59
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
60
|
+
set('--nile-chart-border', this.chartBorder);
|
|
61
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
62
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
63
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
64
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
65
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
66
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
67
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
32
68
|
}
|
|
33
69
|
/** Apply { chart, aq } config to individual properties. */
|
|
34
70
|
applyConfig(cfg) {
|
|
@@ -47,6 +83,30 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
47
83
|
this.loading = bar.loading;
|
|
48
84
|
if (bar.options)
|
|
49
85
|
this.options = bar.options;
|
|
86
|
+
if (bar.chartBg !== undefined)
|
|
87
|
+
this.chartBg = bar.chartBg;
|
|
88
|
+
if (bar.chartBorderRadius !== undefined)
|
|
89
|
+
this.chartBorderRadius = bar.chartBorderRadius;
|
|
90
|
+
if (bar.chartBorder !== undefined)
|
|
91
|
+
this.chartBorder = bar.chartBorder;
|
|
92
|
+
if (bar.chartShadow !== undefined)
|
|
93
|
+
this.chartShadow = bar.chartShadow;
|
|
94
|
+
if (bar.chartPadding !== undefined)
|
|
95
|
+
this.chartPadding = bar.chartPadding;
|
|
96
|
+
if (bar.chartMinHeight !== undefined)
|
|
97
|
+
this.chartMinHeight = bar.chartMinHeight;
|
|
98
|
+
if (bar.loadingText !== undefined)
|
|
99
|
+
this.loadingText = bar.loadingText;
|
|
100
|
+
if (bar.loadingColor !== undefined)
|
|
101
|
+
this.loadingColor = bar.loadingColor;
|
|
102
|
+
if (bar.loadingFontSize !== undefined)
|
|
103
|
+
this.loadingFontSize = bar.loadingFontSize;
|
|
104
|
+
if (bar.loadingFontFamily !== undefined)
|
|
105
|
+
this.loadingFontFamily = bar.loadingFontFamily;
|
|
106
|
+
if (bar.loadingBg !== undefined)
|
|
107
|
+
this.loadingBg = bar.loadingBg;
|
|
108
|
+
if (bar.showLegend !== undefined)
|
|
109
|
+
this.showLegend = bar.showLegend;
|
|
50
110
|
}
|
|
51
111
|
if (aq) {
|
|
52
112
|
if (aq.chartTitle)
|
|
@@ -67,6 +127,7 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
67
127
|
this.resizeObserver = null;
|
|
68
128
|
}
|
|
69
129
|
firstUpdated() {
|
|
130
|
+
this._syncCssVars();
|
|
70
131
|
this.initChart();
|
|
71
132
|
this.setupResizeObserver();
|
|
72
133
|
}
|
|
@@ -75,6 +136,10 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
75
136
|
this.applyConfig(this.config);
|
|
76
137
|
return;
|
|
77
138
|
}
|
|
139
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
140
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
141
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
142
|
+
this._syncCssVars();
|
|
78
143
|
const chartProps = [
|
|
79
144
|
'data',
|
|
80
145
|
'categories',
|
|
@@ -84,6 +149,7 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
84
149
|
'height',
|
|
85
150
|
'yAxisTitle',
|
|
86
151
|
'loading',
|
|
152
|
+
'showLegend',
|
|
87
153
|
];
|
|
88
154
|
const needsUpdate = chartProps.some(p => changedProperties.has(p));
|
|
89
155
|
if (!needsUpdate)
|
|
@@ -159,6 +225,7 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
159
225
|
data: s.data,
|
|
160
226
|
color: s.color,
|
|
161
227
|
})),
|
|
228
|
+
legend: { enabled: this.showLegend },
|
|
162
229
|
credits: {
|
|
163
230
|
enabled: false,
|
|
164
231
|
},
|
|
@@ -181,7 +248,7 @@ let NileBarChart = class NileBarChart extends NileElement {
|
|
|
181
248
|
}
|
|
182
249
|
render() {
|
|
183
250
|
if (this.loading) {
|
|
184
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
251
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
185
252
|
}
|
|
186
253
|
return html `<div class="chart-container"></div>`;
|
|
187
254
|
}
|
|
@@ -217,6 +284,42 @@ __decorate([
|
|
|
217
284
|
__decorate([
|
|
218
285
|
property({ type: String, attribute: 'y-axis-title' })
|
|
219
286
|
], NileBarChart.prototype, "yAxisTitle", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
property({ type: Boolean, attribute: 'show-legend' })
|
|
289
|
+
], NileBarChart.prototype, "showLegend", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
292
|
+
], NileBarChart.prototype, "chartBg", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
295
|
+
], NileBarChart.prototype, "chartBorderRadius", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
property({ type: String, attribute: 'chart-border' })
|
|
298
|
+
], NileBarChart.prototype, "chartBorder", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
301
|
+
], NileBarChart.prototype, "chartShadow", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
304
|
+
], NileBarChart.prototype, "chartPadding", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
307
|
+
], NileBarChart.prototype, "chartMinHeight", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
property({ type: String, attribute: 'loading-text' })
|
|
310
|
+
], NileBarChart.prototype, "loadingText", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
property({ type: String, attribute: 'loading-color' })
|
|
313
|
+
], NileBarChart.prototype, "loadingColor", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
316
|
+
], NileBarChart.prototype, "loadingFontSize", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
319
|
+
], NileBarChart.prototype, "loadingFontFamily", void 0);
|
|
320
|
+
__decorate([
|
|
321
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
322
|
+
], NileBarChart.prototype, "loadingBg", void 0);
|
|
220
323
|
NileBarChart = __decorate([
|
|
221
324
|
customElement('nile-bar-chart')
|
|
222
325
|
], NileBarChart);
|
|
@@ -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-bellcurve-chart.css.js.map
|
|
@@ -30,6 +30,18 @@ export declare class NileBellcurveChart extends NileElement {
|
|
|
30
30
|
/** Samples per interval; higher values yield a smoother curve. */
|
|
31
31
|
pointsInInterval: number;
|
|
32
32
|
showLegend: boolean;
|
|
33
|
+
chartBg: string;
|
|
34
|
+
chartBorderRadius: string | number;
|
|
35
|
+
chartBorder: string;
|
|
36
|
+
chartShadow: string;
|
|
37
|
+
chartPadding: string | number;
|
|
38
|
+
chartMinHeight: string | number;
|
|
39
|
+
loadingText: string;
|
|
40
|
+
loadingColor: string;
|
|
41
|
+
loadingFontSize: string | number;
|
|
42
|
+
loadingFontFamily: string;
|
|
43
|
+
loadingBg: string;
|
|
44
|
+
private _syncCssVars;
|
|
33
45
|
/** Apply `{ chart, aq }` config to individual properties. */
|
|
34
46
|
private applyConfig;
|
|
35
47
|
connectedCallback(): void;
|