@aquera/nile-visualization 1.5.0 → 1.7.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.css.js +1 -1
- 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-dumbbell-chart.css.js.map
|
|
@@ -31,6 +31,18 @@ export declare class NileDumbbellChart extends NileElement {
|
|
|
31
31
|
connectorColor: string;
|
|
32
32
|
showLegend: boolean;
|
|
33
33
|
horizontal: 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;
|
|
34
46
|
/** Apply `{ chart, aq }` config to individual properties. */
|
|
35
47
|
private applyConfig;
|
|
36
48
|
connectedCallback(): void;
|
|
@@ -26,6 +26,40 @@ let NileDumbbellChart = class NileDumbbellChart extends NileElement {
|
|
|
26
26
|
this.connectorColor = '#94a3b8';
|
|
27
27
|
this.showLegend = false;
|
|
28
28
|
this.horizontal = false;
|
|
29
|
+
// ── Container styling ──
|
|
30
|
+
this.chartBg = '';
|
|
31
|
+
this.chartBorderRadius = '';
|
|
32
|
+
this.chartBorder = '';
|
|
33
|
+
this.chartShadow = '';
|
|
34
|
+
this.chartPadding = '';
|
|
35
|
+
this.chartMinHeight = '';
|
|
36
|
+
// ── Loading ──
|
|
37
|
+
this.loadingText = 'Loading...';
|
|
38
|
+
this.loadingColor = '';
|
|
39
|
+
this.loadingFontSize = '';
|
|
40
|
+
this.loadingFontFamily = '';
|
|
41
|
+
this.loadingBg = '';
|
|
42
|
+
}
|
|
43
|
+
_syncCssVars() {
|
|
44
|
+
const set = (prop, val) => {
|
|
45
|
+
const s = typeof val === 'number'
|
|
46
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
47
|
+
: String(val ?? '').trim();
|
|
48
|
+
if (s)
|
|
49
|
+
this.style.setProperty(prop, s);
|
|
50
|
+
else
|
|
51
|
+
this.style.removeProperty(prop);
|
|
52
|
+
};
|
|
53
|
+
set('--nile-chart-bg', this.chartBg);
|
|
54
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
55
|
+
set('--nile-chart-border', this.chartBorder);
|
|
56
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
57
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
58
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
59
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
60
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
61
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
62
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
29
63
|
}
|
|
30
64
|
/** Apply `{ chart, aq }` config to individual properties. */
|
|
31
65
|
applyConfig(cfg) {
|
|
@@ -43,6 +77,7 @@ let NileDumbbellChart = class NileDumbbellChart extends NileElement {
|
|
|
43
77
|
this.resizeObserver = null;
|
|
44
78
|
}
|
|
45
79
|
firstUpdated() {
|
|
80
|
+
this._syncCssVars();
|
|
46
81
|
this.initChart();
|
|
47
82
|
this.setupResizeObserver();
|
|
48
83
|
}
|
|
@@ -51,6 +86,10 @@ let NileDumbbellChart = class NileDumbbellChart extends NileElement {
|
|
|
51
86
|
this.applyConfig(this.config);
|
|
52
87
|
return;
|
|
53
88
|
}
|
|
89
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
90
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
91
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
92
|
+
this._syncCssVars();
|
|
54
93
|
const props = [
|
|
55
94
|
'data',
|
|
56
95
|
'chartTitle',
|
|
@@ -162,7 +201,7 @@ let NileDumbbellChart = class NileDumbbellChart extends NileElement {
|
|
|
162
201
|
}
|
|
163
202
|
render() {
|
|
164
203
|
if (this.loading) {
|
|
165
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
204
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
166
205
|
}
|
|
167
206
|
return html `<div class="chart-container"></div>`;
|
|
168
207
|
}
|
|
@@ -210,6 +249,39 @@ __decorate([
|
|
|
210
249
|
__decorate([
|
|
211
250
|
property({ type: Boolean, reflect: true, attribute: 'horizontal' })
|
|
212
251
|
], NileDumbbellChart.prototype, "horizontal", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
254
|
+
], NileDumbbellChart.prototype, "chartBg", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
257
|
+
], NileDumbbellChart.prototype, "chartBorderRadius", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
property({ type: String, attribute: 'chart-border' })
|
|
260
|
+
], NileDumbbellChart.prototype, "chartBorder", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
263
|
+
], NileDumbbellChart.prototype, "chartShadow", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
266
|
+
], NileDumbbellChart.prototype, "chartPadding", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
269
|
+
], NileDumbbellChart.prototype, "chartMinHeight", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
property({ type: String, attribute: 'loading-text' })
|
|
272
|
+
], NileDumbbellChart.prototype, "loadingText", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: String, attribute: 'loading-color' })
|
|
275
|
+
], NileDumbbellChart.prototype, "loadingColor", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
278
|
+
], NileDumbbellChart.prototype, "loadingFontSize", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
281
|
+
], NileDumbbellChart.prototype, "loadingFontFamily", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
284
|
+
], NileDumbbellChart.prototype, "loadingBg", void 0);
|
|
213
285
|
NileDumbbellChart = __decorate([
|
|
214
286
|
customElement('nile-dumbbell-chart')
|
|
215
287
|
], NileDumbbellChart);
|
|
@@ -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-dumbbell-lower-chart.css.js.map
|
|
@@ -22,6 +22,18 @@ export declare class NileDumbbellLowerChart extends NileElement {
|
|
|
22
22
|
connectorColor: string;
|
|
23
23
|
showLegend: boolean;
|
|
24
24
|
horizontal: boolean;
|
|
25
|
+
chartBg: string;
|
|
26
|
+
chartBorderRadius: string | number;
|
|
27
|
+
chartBorder: string;
|
|
28
|
+
chartShadow: string;
|
|
29
|
+
chartPadding: string | number;
|
|
30
|
+
chartMinHeight: string | number;
|
|
31
|
+
loadingText: string;
|
|
32
|
+
loadingColor: string;
|
|
33
|
+
loadingFontSize: string | number;
|
|
34
|
+
loadingFontFamily: string;
|
|
35
|
+
loadingBg: string;
|
|
36
|
+
private _syncCssVars;
|
|
25
37
|
private applyConfig;
|
|
26
38
|
connectedCallback(): void;
|
|
27
39
|
disconnectedCallback(): void;
|
|
@@ -25,6 +25,40 @@ let NileDumbbellLowerChart = class NileDumbbellLowerChart extends NileElement {
|
|
|
25
25
|
this.connectorColor = '#94a3b8';
|
|
26
26
|
this.showLegend = false;
|
|
27
27
|
this.horizontal = false;
|
|
28
|
+
// ── Container styling ──
|
|
29
|
+
this.chartBg = '';
|
|
30
|
+
this.chartBorderRadius = '';
|
|
31
|
+
this.chartBorder = '';
|
|
32
|
+
this.chartShadow = '';
|
|
33
|
+
this.chartPadding = '';
|
|
34
|
+
this.chartMinHeight = '';
|
|
35
|
+
// ── Loading ──
|
|
36
|
+
this.loadingText = 'Loading...';
|
|
37
|
+
this.loadingColor = '';
|
|
38
|
+
this.loadingFontSize = '';
|
|
39
|
+
this.loadingFontFamily = '';
|
|
40
|
+
this.loadingBg = '';
|
|
41
|
+
}
|
|
42
|
+
_syncCssVars() {
|
|
43
|
+
const set = (prop, val) => {
|
|
44
|
+
const s = typeof val === 'number'
|
|
45
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
46
|
+
: String(val ?? '').trim();
|
|
47
|
+
if (s)
|
|
48
|
+
this.style.setProperty(prop, s);
|
|
49
|
+
else
|
|
50
|
+
this.style.removeProperty(prop);
|
|
51
|
+
};
|
|
52
|
+
set('--nile-chart-bg', this.chartBg);
|
|
53
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
54
|
+
set('--nile-chart-border', this.chartBorder);
|
|
55
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
56
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
57
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
58
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
59
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
60
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
61
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
28
62
|
}
|
|
29
63
|
applyConfig(cfg) {
|
|
30
64
|
applySeparatedChartConfig(this, cfg);
|
|
@@ -41,6 +75,7 @@ let NileDumbbellLowerChart = class NileDumbbellLowerChart extends NileElement {
|
|
|
41
75
|
this.resizeObserver = null;
|
|
42
76
|
}
|
|
43
77
|
firstUpdated() {
|
|
78
|
+
this._syncCssVars();
|
|
44
79
|
this.initChart();
|
|
45
80
|
this.setupResizeObserver();
|
|
46
81
|
}
|
|
@@ -49,6 +84,10 @@ let NileDumbbellLowerChart = class NileDumbbellLowerChart extends NileElement {
|
|
|
49
84
|
this.applyConfig(this.config);
|
|
50
85
|
return;
|
|
51
86
|
}
|
|
87
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
88
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
89
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
90
|
+
this._syncCssVars();
|
|
52
91
|
const props = [
|
|
53
92
|
'data',
|
|
54
93
|
'chartTitle',
|
|
@@ -159,7 +198,7 @@ let NileDumbbellLowerChart = class NileDumbbellLowerChart extends NileElement {
|
|
|
159
198
|
}
|
|
160
199
|
render() {
|
|
161
200
|
if (this.loading) {
|
|
162
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
201
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
163
202
|
}
|
|
164
203
|
return html `<div class="chart-container"></div>`;
|
|
165
204
|
}
|
|
@@ -207,6 +246,39 @@ __decorate([
|
|
|
207
246
|
__decorate([
|
|
208
247
|
property({ type: Boolean, reflect: true, attribute: 'horizontal' })
|
|
209
248
|
], NileDumbbellLowerChart.prototype, "horizontal", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
251
|
+
], NileDumbbellLowerChart.prototype, "chartBg", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
254
|
+
], NileDumbbellLowerChart.prototype, "chartBorderRadius", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
property({ type: String, attribute: 'chart-border' })
|
|
257
|
+
], NileDumbbellLowerChart.prototype, "chartBorder", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
260
|
+
], NileDumbbellLowerChart.prototype, "chartShadow", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
263
|
+
], NileDumbbellLowerChart.prototype, "chartPadding", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
266
|
+
], NileDumbbellLowerChart.prototype, "chartMinHeight", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
property({ type: String, attribute: 'loading-text' })
|
|
269
|
+
], NileDumbbellLowerChart.prototype, "loadingText", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
property({ type: String, attribute: 'loading-color' })
|
|
272
|
+
], NileDumbbellLowerChart.prototype, "loadingColor", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
275
|
+
], NileDumbbellLowerChart.prototype, "loadingFontSize", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
278
|
+
], NileDumbbellLowerChart.prototype, "loadingFontFamily", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
281
|
+
], NileDumbbellLowerChart.prototype, "loadingBg", void 0);
|
|
210
282
|
NileDumbbellLowerChart = __decorate([
|
|
211
283
|
customElement('nile-dumbbell-lower-chart')
|
|
212
284
|
], NileDumbbellLowerChart);
|
|
@@ -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-dumbbell-upper-chart.css.js.map
|
|
@@ -22,6 +22,18 @@ export declare class NileDumbbellUpperChart extends NileElement {
|
|
|
22
22
|
connectorColor: string;
|
|
23
23
|
showLegend: boolean;
|
|
24
24
|
horizontal: boolean;
|
|
25
|
+
chartBg: string;
|
|
26
|
+
chartBorderRadius: string | number;
|
|
27
|
+
chartBorder: string;
|
|
28
|
+
chartShadow: string;
|
|
29
|
+
chartPadding: string | number;
|
|
30
|
+
chartMinHeight: string | number;
|
|
31
|
+
loadingText: string;
|
|
32
|
+
loadingColor: string;
|
|
33
|
+
loadingFontSize: string | number;
|
|
34
|
+
loadingFontFamily: string;
|
|
35
|
+
loadingBg: string;
|
|
36
|
+
private _syncCssVars;
|
|
25
37
|
private applyConfig;
|
|
26
38
|
connectedCallback(): void;
|
|
27
39
|
disconnectedCallback(): void;
|
|
@@ -25,6 +25,40 @@ let NileDumbbellUpperChart = class NileDumbbellUpperChart extends NileElement {
|
|
|
25
25
|
this.connectorColor = '#94a3b8';
|
|
26
26
|
this.showLegend = false;
|
|
27
27
|
this.horizontal = false;
|
|
28
|
+
// ── Container styling ──
|
|
29
|
+
this.chartBg = '';
|
|
30
|
+
this.chartBorderRadius = '';
|
|
31
|
+
this.chartBorder = '';
|
|
32
|
+
this.chartShadow = '';
|
|
33
|
+
this.chartPadding = '';
|
|
34
|
+
this.chartMinHeight = '';
|
|
35
|
+
// ── Loading ──
|
|
36
|
+
this.loadingText = 'Loading...';
|
|
37
|
+
this.loadingColor = '';
|
|
38
|
+
this.loadingFontSize = '';
|
|
39
|
+
this.loadingFontFamily = '';
|
|
40
|
+
this.loadingBg = '';
|
|
41
|
+
}
|
|
42
|
+
_syncCssVars() {
|
|
43
|
+
const set = (prop, val) => {
|
|
44
|
+
const s = typeof val === 'number'
|
|
45
|
+
? (Number.isFinite(val) ? `${val}px` : '')
|
|
46
|
+
: String(val ?? '').trim();
|
|
47
|
+
if (s)
|
|
48
|
+
this.style.setProperty(prop, s);
|
|
49
|
+
else
|
|
50
|
+
this.style.removeProperty(prop);
|
|
51
|
+
};
|
|
52
|
+
set('--nile-chart-bg', this.chartBg);
|
|
53
|
+
set('--nile-chart-border-radius', this.chartBorderRadius);
|
|
54
|
+
set('--nile-chart-border', this.chartBorder);
|
|
55
|
+
set('--nile-chart-shadow', this.chartShadow);
|
|
56
|
+
set('--nile-chart-padding', this.chartPadding);
|
|
57
|
+
set('--nile-chart-min-height', this.chartMinHeight);
|
|
58
|
+
set('--nile-chart-loading-color', this.loadingColor);
|
|
59
|
+
set('--nile-chart-loading-font-size', this.loadingFontSize);
|
|
60
|
+
set('--nile-chart-loading-font-family', this.loadingFontFamily);
|
|
61
|
+
set('--nile-chart-loading-bg', this.loadingBg);
|
|
28
62
|
}
|
|
29
63
|
applyConfig(cfg) {
|
|
30
64
|
applySeparatedChartConfig(this, cfg);
|
|
@@ -41,6 +75,7 @@ let NileDumbbellUpperChart = class NileDumbbellUpperChart extends NileElement {
|
|
|
41
75
|
this.resizeObserver = null;
|
|
42
76
|
}
|
|
43
77
|
firstUpdated() {
|
|
78
|
+
this._syncCssVars();
|
|
44
79
|
this.initChart();
|
|
45
80
|
this.setupResizeObserver();
|
|
46
81
|
}
|
|
@@ -49,6 +84,10 @@ let NileDumbbellUpperChart = class NileDumbbellUpperChart extends NileElement {
|
|
|
49
84
|
this.applyConfig(this.config);
|
|
50
85
|
return;
|
|
51
86
|
}
|
|
87
|
+
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
88
|
+
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
89
|
+
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
90
|
+
this._syncCssVars();
|
|
52
91
|
const props = [
|
|
53
92
|
'data',
|
|
54
93
|
'chartTitle',
|
|
@@ -159,7 +198,7 @@ let NileDumbbellUpperChart = class NileDumbbellUpperChart extends NileElement {
|
|
|
159
198
|
}
|
|
160
199
|
render() {
|
|
161
200
|
if (this.loading) {
|
|
162
|
-
return html `<div class="chart-loading" style="height:${this.height}"
|
|
201
|
+
return html `<div class="chart-loading" style="height:${this.height}">${this.loadingText}</div>`;
|
|
163
202
|
}
|
|
164
203
|
return html `<div class="chart-container"></div>`;
|
|
165
204
|
}
|
|
@@ -207,6 +246,39 @@ __decorate([
|
|
|
207
246
|
__decorate([
|
|
208
247
|
property({ type: Boolean, reflect: true, attribute: 'horizontal' })
|
|
209
248
|
], NileDumbbellUpperChart.prototype, "horizontal", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
property({ type: String, attribute: 'chart-bg' })
|
|
251
|
+
], NileDumbbellUpperChart.prototype, "chartBg", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
property({ type: String, attribute: 'chart-border-radius' })
|
|
254
|
+
], NileDumbbellUpperChart.prototype, "chartBorderRadius", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
property({ type: String, attribute: 'chart-border' })
|
|
257
|
+
], NileDumbbellUpperChart.prototype, "chartBorder", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
property({ type: String, attribute: 'chart-shadow' })
|
|
260
|
+
], NileDumbbellUpperChart.prototype, "chartShadow", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
property({ type: String, attribute: 'chart-padding' })
|
|
263
|
+
], NileDumbbellUpperChart.prototype, "chartPadding", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
property({ type: String, attribute: 'chart-min-height' })
|
|
266
|
+
], NileDumbbellUpperChart.prototype, "chartMinHeight", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
property({ type: String, attribute: 'loading-text' })
|
|
269
|
+
], NileDumbbellUpperChart.prototype, "loadingText", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
property({ type: String, attribute: 'loading-color' })
|
|
272
|
+
], NileDumbbellUpperChart.prototype, "loadingColor", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: String, attribute: 'loading-font-size' })
|
|
275
|
+
], NileDumbbellUpperChart.prototype, "loadingFontSize", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
property({ type: String, attribute: 'loading-font-family' })
|
|
278
|
+
], NileDumbbellUpperChart.prototype, "loadingFontFamily", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
property({ type: String, attribute: 'loading-bg' })
|
|
281
|
+
], NileDumbbellUpperChart.prototype, "loadingBg", void 0);
|
|
210
282
|
NileDumbbellUpperChart = __decorate([
|
|
211
283
|
customElement('nile-dumbbell-upper-chart')
|
|
212
284
|
], NileDumbbellUpperChart);
|
|
@@ -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-euler-chart.css.js.map
|
|
@@ -20,6 +20,18 @@ export declare class NileEulerChart extends NileElement {
|
|
|
20
20
|
options: Highcharts.Options;
|
|
21
21
|
loading: boolean;
|
|
22
22
|
height: string;
|
|
23
|
+
chartBg: string;
|
|
24
|
+
chartBorderRadius: string | number;
|
|
25
|
+
chartBorder: string;
|
|
26
|
+
chartShadow: string;
|
|
27
|
+
chartPadding: string | number;
|
|
28
|
+
chartMinHeight: string | number;
|
|
29
|
+
loadingText: string;
|
|
30
|
+
loadingColor: string;
|
|
31
|
+
loadingFontSize: string | number;
|
|
32
|
+
loadingFontFamily: string;
|
|
33
|
+
loadingBg: string;
|
|
34
|
+
private _syncCssVars;
|
|
23
35
|
private applyConfig;
|
|
24
36
|
connectedCallback(): void;
|
|
25
37
|
disconnectedCallback(): void;
|