@voidable/ui 0.9.0 → 0.11.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/base-entry.d.ts +1 -0
- package/dist/base.d.ts +8 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BGrS4eIl.js +307 -0
- package/dist/chunks/data-BpiiNapL.js +95 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-hivQ4YoU.js → modal-DWGkNdNG.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-CH7L4N-h.js} +2 -2
- package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
- package/dist/chunks/{base-CMruMbxC.js → projection-oPe6ipjL.js} +105 -389
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +2 -2
- package/dist/components/action-input.js +56 -54
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +11 -4
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.d.ts +8 -2
- package/dist/components/badge.js +1 -4
- package/dist/components/banner.d.ts +9 -0
- package/dist/components/banner.js +11 -4
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +67 -43
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +40 -2
- package/dist/components/calendar.js +170 -79
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +20 -19
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +13 -12
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.js +17 -16
- package/dist/components/compose-input.js +13 -11
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +96 -68
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +4 -4
- package/dist/components/editable.js +13 -12
- package/dist/components/error-fallback.js +2 -2
- package/dist/components/field.js +10 -9
- package/dist/components/file-upload.d.ts +20 -5
- package/dist/components/file-upload.js +52 -20
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +209 -135
- package/dist/components/hamburger.d.ts +12 -1
- package/dist/components/hamburger.js +33 -20
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.js +41 -39
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +80 -56
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.js +30 -29
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.js +20 -19
- package/dist/components/number-input.js +17 -15
- package/dist/components/pagination.js +22 -20
- package/dist/components/panel.js +2 -2
- package/dist/components/pin-input.js +32 -30
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.js +13 -11
- package/dist/components/radio.d.ts +25 -0
- package/dist/components/radio.js +78 -29
- package/dist/components/scroll-area.js +8 -7
- package/dist/components/segmented-control.js +21 -21
- package/dist/components/select.js +49 -47
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +16 -14
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +29 -19
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.js +14 -12
- package/dist/components/table.d.ts +4 -0
- package/dist/components/table.js +42 -29
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.js +24 -22
- package/dist/components/textarea.js +34 -32
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +15 -13
- package/dist/custom-elements.json +320 -88
- package/dist/dev/types.d.ts +3 -1
- package/dist/dev.js +85 -16
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +1 -1
- package/dist/parts.d.ts +5 -0
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- package/dist/reference.md +84 -59
- package/dist/types/elements.d.ts +13 -13
- package/dist/types/react.d.ts +2 -2
- package/dist/types/solid.d.ts +2 -2
- package/dist/types/svelte.d.ts +2 -2
- package/dist/types/vue.d.ts +2 -2
- package/dist/vscode.html-custom-data.json +108 -28
- package/dist/web-types.json +189 -60
- package/package.json +1 -1
|
@@ -84,21 +84,40 @@ export declare class VoidGauge extends VoidElement {
|
|
|
84
84
|
segmentation but more arc sacrificed; the precision-vs-clarity tradeoff. */
|
|
85
85
|
gaps: boolean | number;
|
|
86
86
|
/**
|
|
87
|
-
* Accessible name of the gauge, such as `Disk usage
|
|
88
|
-
*
|
|
87
|
+
* Accessible name of the gauge, such as `Disk usage`; it is also the caption of the data table.
|
|
88
|
+
* Set it: the drawing itself is hidden from assistive technology.
|
|
89
89
|
*/
|
|
90
90
|
ariaLabel: string;
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Show the data table (the reading with its range, or one row per segment) below the gauge. The table
|
|
93
|
+
* is always there for assistive technology; this makes it visible too.
|
|
94
|
+
*/
|
|
95
|
+
showTable: boolean;
|
|
96
|
+
private _zones;
|
|
97
|
+
private _zonesSource;
|
|
98
|
+
/**
|
|
99
|
+
* Colour bands over the value range: an array of `{ from, to, color }`; the fill takes the colour of the
|
|
100
|
+
* zone containing the value. Give it as a property or as JSON in the `zones` attribute:
|
|
101
|
+
* `<void-gauge zones='[{"from":0,"to":60,"color":"green"},{"from":60,"to":100,"color":"red"}]'>`.
|
|
102
|
+
* Invalid JSON draws no zones and is reported by `@voidable/ui/dev`. Not reflected to the attribute.
|
|
103
|
+
* @default []
|
|
104
|
+
*/
|
|
105
|
+
get zones(): GaugeZone[];
|
|
106
|
+
set zones(input: GaugeZone[]);
|
|
94
107
|
private _data;
|
|
108
|
+
private _source;
|
|
95
109
|
/**
|
|
96
110
|
* Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the
|
|
97
|
-
* optional `value` is the headline reading.
|
|
98
|
-
* animate to it
|
|
111
|
+
* optional `value` is the headline reading. Give it as a property (assign a new object to update the
|
|
112
|
+
* gauge and animate to it) or as JSON in the `data` attribute:
|
|
113
|
+
* `<void-gauge data='{"segments":[{"name":"Used","value":40},{"name":"Cache","value":15}]}'>`. Invalid
|
|
114
|
+
* JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the
|
|
115
|
+
* attribute, and an attribute a server morph leaves unchanged does not animate again. For a single
|
|
116
|
+
* reading, set the `value` attribute instead.
|
|
117
|
+
* @default {}
|
|
99
118
|
*/
|
|
100
119
|
get data(): GaugeData;
|
|
101
|
-
set data(
|
|
120
|
+
set data(input: GaugeData);
|
|
102
121
|
private _phase;
|
|
103
122
|
private _hoverSegment;
|
|
104
123
|
private _hoverX;
|
|
@@ -132,6 +151,11 @@ export declare class VoidGauge extends VoidElement {
|
|
|
132
151
|
private _hasTicks;
|
|
133
152
|
private _renderTicks;
|
|
134
153
|
render(): import('lit').TemplateResult<1>;
|
|
154
|
+
/**
|
|
155
|
+
* The data table for assistive technology (and `show-table`), from the data as given, not the animated
|
|
156
|
+
* state: the reading with its range, or the segments in the order they are drawn.
|
|
157
|
+
*/
|
|
158
|
+
private _table;
|
|
135
159
|
private _renderHoverTooltip;
|
|
136
160
|
}
|
|
137
161
|
declare global {
|
package/dist/components/gauge.js
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BGrS4eIl.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { r as n } from "../chunks/projection-oPe6ipjL.js";
|
|
4
|
+
import { i as r, l as i, n as a, o, r as s, s as c, t as l } from "../chunks/data-BpiiNapL.js";
|
|
5
|
+
import { html as u, nothing as d, svg as f } from "lit";
|
|
6
|
+
import { property as p, state as m } from "lit/decorators.js";
|
|
7
|
+
import { guard as h } from "lit/directives/guard.js";
|
|
5
8
|
//#region src/components/gauge.ts
|
|
6
|
-
|
|
9
|
+
n();
|
|
10
|
+
function g(e) {
|
|
7
11
|
return 1 - (1 - e) ** 3;
|
|
8
12
|
}
|
|
9
|
-
function
|
|
13
|
+
function _(e) {
|
|
10
14
|
return Math.abs(e) >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
|
|
11
15
|
}
|
|
12
|
-
function
|
|
16
|
+
function v(e, t, n, r, i) {
|
|
13
17
|
let a = i - r, o = Math.abs(a) >= 2 * Math.PI ? r + Math.sign(a) * (2 * Math.PI - 1e-4) : i, s = e + n * Math.cos(r), c = t + n * Math.sin(r), l = e + n * Math.cos(o), u = t + n * Math.sin(o), d = +(Math.abs(o - r) > Math.PI), f = +(o - r >= 0);
|
|
14
18
|
return `M ${s.toFixed(2)} ${c.toFixed(2)} A ${n} ${n} 0 ${d} ${f} ${l.toFixed(2)} ${u.toFixed(2)}`;
|
|
15
19
|
}
|
|
16
|
-
function
|
|
20
|
+
function y(e, t, n, r, i, a) {
|
|
17
21
|
let o = n + r / 2, s = Math.max(0, n - r / 2), c = r / 2, l = a - i, u = Math.abs(l) >= 2 * Math.PI ? i + Math.sign(l) * (2 * Math.PI - 1e-4) : a, d = e + o * Math.cos(i), f = t + o * Math.sin(i), p = e + o * Math.cos(u), m = t + o * Math.sin(u), h = e + s * Math.cos(i), g = t + s * Math.sin(i), _ = e + s * Math.cos(u), v = t + s * Math.sin(u), y = +(Math.abs(u - i) > Math.PI);
|
|
18
22
|
return `M ${d.toFixed(2)} ${f.toFixed(2)} A ${o} ${o} 0 ${y} 1 ${p.toFixed(2)} ${m.toFixed(2)} A ${c} ${c} 0 0 1 ${_.toFixed(2)} ${v.toFixed(2)} A ${s} ${s} 0 ${y} 0 ${h.toFixed(2)} ${g.toFixed(2)} A ${c} ${c} 0 0 1 ${d.toFixed(2)} ${f.toFixed(2)} Z`;
|
|
19
23
|
}
|
|
20
|
-
function
|
|
24
|
+
function b(e, t, n, r, i, a, o, s) {
|
|
21
25
|
let c = n + r / 2, l = Math.max(0, n - r / 2), u = r / 2, d = a - i, f = Math.abs(d) >= 2 * Math.PI ? i + Math.sign(d) * (2 * Math.PI - 1e-4) : a, p = e + c * Math.cos(i), m = t + c * Math.sin(i), h = e + c * Math.cos(f), g = t + c * Math.sin(f), _ = e + l * Math.cos(i), v = t + l * Math.sin(i), y = e + l * Math.cos(f), b = t + l * Math.sin(f), x = +(Math.abs(f - i) > Math.PI), S = `M ${p.toFixed(2)} ${m.toFixed(2)} `;
|
|
22
26
|
return S += `A ${c} ${c} 0 ${x} 1 ${h.toFixed(2)} ${g.toFixed(2)} `, s === "round" ? S += `A ${u} ${u} 0 0 1 ${y.toFixed(2)} ${b.toFixed(2)} ` : S += `L ${y.toFixed(2)} ${b.toFixed(2)} `, S += `A ${l} ${l} 0 ${x} 0 ${_.toFixed(2)} ${v.toFixed(2)} `, o === "round" ? S += `A ${u} ${u} 0 0 1 ${p.toFixed(2)} ${m.toFixed(2)} ` : o === "cup" ? S += `A ${u} ${u} 0 0 0 ${p.toFixed(2)} ${m.toFixed(2)} ` : S += `L ${p.toFixed(2)} ${m.toFixed(2)} `, S += "Z", S;
|
|
23
27
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
28
|
+
var x = 1.5 * 5;
|
|
29
|
+
function S(e) {
|
|
26
30
|
let t = Math.PI;
|
|
27
31
|
return e === "full" ? {
|
|
28
32
|
startAngle: -t / 2,
|
|
@@ -38,9 +42,9 @@ function p(e) {
|
|
|
38
42
|
totalSweep: 3 * t / 2
|
|
39
43
|
};
|
|
40
44
|
}
|
|
41
|
-
var
|
|
45
|
+
var C = class extends e {
|
|
42
46
|
constructor(...e) {
|
|
43
|
-
super(...e), this.unit = "", this.value = 0, this.min = 0, this.max = 100, this.size = 220, this.thickness = 14, this.circular = "triple", this.variant = "filled", this.hideValue = !1, this.unitInline = !1, this.tickMajor = 0, this.tickMinor = 0, this.hideTickMin = !1, this.hideTickMax = !1, this.segmentsSort = "value", this.gaps = !1, this.ariaLabel = "", this.
|
|
47
|
+
super(...e), this.unit = "", this.value = 0, this.min = 0, this.max = 100, this.size = 220, this.thickness = 14, this.circular = "triple", this.variant = "filled", this.hideValue = !1, this.unitInline = !1, this.tickMajor = 0, this.tickMinor = 0, this.hideTickMin = !1, this.hideTickMax = !1, this.segmentsSort = "value", this.gaps = !1, this.ariaLabel = "", this.showTable = !1, this._zones = [], this._zonesSource = { text: null }, this._data = {}, this._source = { text: null }, this._phase = "pre", this._hoverSegment = null, this._hoverX = 0, this._hoverY = 0, this._displayValue = 0, this._displayValueFrom = 0, this._targetValue = 0, this._displaySegments = /* @__PURE__ */ new Map(), this._segmentsFrom = /* @__PURE__ */ new Map(), this._targetSegments = /* @__PURE__ */ new Map(), this._animStart = 0, this._animDuration = 0, this._rafHandle = 0, this._hasAnimated = !1, this._onMouseMove = (e) => {
|
|
44
48
|
let t = this.querySelector("svg");
|
|
45
49
|
if (!t) return;
|
|
46
50
|
let n = this._data.segments;
|
|
@@ -50,27 +54,27 @@ var m = class extends e {
|
|
|
50
54
|
}
|
|
51
55
|
let r = t.getBoundingClientRect();
|
|
52
56
|
if (r.width === 0) return;
|
|
53
|
-
let i = this._viewBoxHeight(), a = (e.clientX - r.left) / r.width * this.size, o = (e.clientY - r.top) / r.height * i, s = this.size / 2, c = this.size / 2, l = a - s, u = o - c, d = Math.sqrt(l * l + u * u), f = this.size / 2 - Math.max(8, this.thickness / 2),
|
|
54
|
-
if (d < f -
|
|
57
|
+
let i = this._viewBoxHeight(), a = (e.clientX - r.left) / r.width * this.size, o = (e.clientY - r.top) / r.height * i, s = this.size / 2, c = this.size / 2, l = a - s, u = o - c, d = Math.sqrt(l * l + u * u), f = this.size / 2 - Math.max(8, this.thickness / 2), p = this.thickness / 2;
|
|
58
|
+
if (d < f - p || d > f + p) {
|
|
55
59
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
56
60
|
return;
|
|
57
61
|
}
|
|
58
|
-
let { startAngle:
|
|
59
|
-
for (;
|
|
60
|
-
for (;
|
|
61
|
-
if (
|
|
62
|
+
let { startAngle: m, totalSweep: h } = S(this.circular), g = m + h, _ = Math.atan2(u, l);
|
|
63
|
+
for (; _ < m;) _ += 2 * Math.PI;
|
|
64
|
+
for (; _ > m + 2 * Math.PI;) _ -= 2 * Math.PI;
|
|
65
|
+
if (_ > g) {
|
|
62
66
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
63
67
|
return;
|
|
64
68
|
}
|
|
65
|
-
let
|
|
66
|
-
if (
|
|
69
|
+
let v = this.max - this.min === 0 ? 0 : (this._displayValue - this.min) / (this.max - this.min), y = m + Math.max(0, Math.min(1, v)) * h;
|
|
70
|
+
if (_ > y) {
|
|
67
71
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
68
72
|
return;
|
|
69
73
|
}
|
|
70
|
-
let
|
|
71
|
-
for (let e = 0; e <
|
|
72
|
-
let t =
|
|
73
|
-
if (
|
|
74
|
+
let b = this.segmentsSort === "value" ? [...n].sort((e, t) => t.value - e.value) : n, x = [...this._displaySegments.values()].reduce((e, t) => e + t, 0) || this._displayValue || 1, C = y - m, w = m;
|
|
75
|
+
for (let e = 0; e < b.length; e++) {
|
|
76
|
+
let t = b[e], r = n.indexOf(t), i = (this._displaySegments.get(r) ?? 0) / x * C;
|
|
77
|
+
if (_ >= w && _ < w + i) {
|
|
74
78
|
this._hoverSegment !== r && (this._hoverSegment = r), this._hoverX = a, this._hoverY = o;
|
|
75
79
|
return;
|
|
76
80
|
}
|
|
@@ -80,7 +84,7 @@ var m = class extends e {
|
|
|
80
84
|
}, this._onMouseLeave = () => {
|
|
81
85
|
this._hoverSegment = null;
|
|
82
86
|
}, this._tick = (e) => {
|
|
83
|
-
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r =
|
|
87
|
+
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r = g(n);
|
|
84
88
|
this._displayValue = this._displayValueFrom + (this._targetValue - this._displayValueFrom) * r;
|
|
85
89
|
for (let [e, t] of this._targetSegments) {
|
|
86
90
|
let n = this._segmentsFrom.get(e) ?? 0;
|
|
@@ -89,17 +93,48 @@ var m = class extends e {
|
|
|
89
93
|
this.requestUpdate(), n < 1 ? this._rafHandle = requestAnimationFrame(this._tick) : this._phase = "idle";
|
|
90
94
|
};
|
|
91
95
|
}
|
|
96
|
+
get zones() {
|
|
97
|
+
return this._zones;
|
|
98
|
+
}
|
|
99
|
+
set zones(e) {
|
|
100
|
+
let t = o(e, this._zonesSource, {
|
|
101
|
+
attr: "zones",
|
|
102
|
+
shape: "[{\"from\":0,\"to\":60,\"color\":\"green\"},{\"from\":60,\"to\":100,\"color\":\"red\"}]",
|
|
103
|
+
empty: () => [],
|
|
104
|
+
normalize: (e) => Array.isArray(e) ? e.filter(s).map((e) => ({
|
|
105
|
+
from: Number(e.from),
|
|
106
|
+
to: Number(e.to),
|
|
107
|
+
color: String(e.color ?? "")
|
|
108
|
+
})) : null,
|
|
109
|
+
warn: (e, t) => this.reportDev("invalid-data", e, t)
|
|
110
|
+
});
|
|
111
|
+
t && (this._zones = t.value);
|
|
112
|
+
}
|
|
92
113
|
get data() {
|
|
93
114
|
return this._data;
|
|
94
115
|
}
|
|
95
116
|
set data(e) {
|
|
96
|
-
let t =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
117
|
+
let t = o(e, this._source, {
|
|
118
|
+
attr: "data",
|
|
119
|
+
shape: "{\"segments\":[{\"name\":\"Used\",\"value\":40},{\"name\":\"Cache\",\"value\":15}]}",
|
|
120
|
+
empty: () => ({}),
|
|
121
|
+
normalize: (e) => {
|
|
122
|
+
if (!s(e)) return null;
|
|
123
|
+
let t = e.segments === void 0 ? void 0 : r(e.segments);
|
|
124
|
+
if (t === null) return null;
|
|
125
|
+
let n = {};
|
|
126
|
+
return e.value !== void 0 && (n.value = Number(e.value)), t && (n.segments = t), n;
|
|
127
|
+
},
|
|
128
|
+
warn: (e, t) => this.reportDev("invalid-data", e, t)
|
|
129
|
+
});
|
|
130
|
+
if (!t) return;
|
|
131
|
+
let n = t.value, i = this._data, a = this._displayValue, c = new Map(this._displaySegments);
|
|
132
|
+
this._data = n, this._refreshTargets(), this.requestUpdate(), this._hasAnimated && this.updateComplete.then(() => {
|
|
133
|
+
let e = i.segments ?? [], t = /* @__PURE__ */ new Map();
|
|
134
|
+
for (let n = 0; n < e.length; n++) t.set(n, c.get(n) ?? 0);
|
|
135
|
+
let r = n.segments ?? [];
|
|
136
|
+
for (let e = 0; e < r.length; e++) t.has(e) || t.set(e, 0);
|
|
137
|
+
this._startAnimation(t, a, !0);
|
|
103
138
|
});
|
|
104
139
|
}
|
|
105
140
|
willUpdate(e) {
|
|
@@ -117,7 +152,7 @@ var m = class extends e {
|
|
|
117
152
|
return e && e.length > 0 ? e.reduce((e, t) => e + t.value, 0) : this.value;
|
|
118
153
|
}
|
|
119
154
|
connectedCallback() {
|
|
120
|
-
super.connectedCallback(), this.setHostAttribute("role", "
|
|
155
|
+
super.connectedCallback(), this.setHostAttribute("role", "figure"), this._refreshTargets(), requestAnimationFrame(() => {
|
|
121
156
|
let e = /* @__PURE__ */ new Map(), t = this._data.segments ?? [];
|
|
122
157
|
for (let n = 0; n < t.length; n++) e.set(n, 0);
|
|
123
158
|
this._startAnimation(e, 0, !1);
|
|
@@ -139,7 +174,7 @@ var m = class extends e {
|
|
|
139
174
|
return this.circular === "semi" ? this.size * .6 : this.circular === "triple" ? this.size * .85 : this.size;
|
|
140
175
|
}
|
|
141
176
|
_angleAt(e) {
|
|
142
|
-
let { startAngle: t, totalSweep: n } =
|
|
177
|
+
let { startAngle: t, totalSweep: n } = S(this.circular), r = Math.max(this.min, Math.min(this.max, e));
|
|
143
178
|
return t + (this.max - this.min === 0 ? 0 : (r - this.min) / (this.max - this.min)) * n;
|
|
144
179
|
}
|
|
145
180
|
_resolveFillColor() {
|
|
@@ -152,145 +187,144 @@ var m = class extends e {
|
|
|
152
187
|
_hasSegments() {
|
|
153
188
|
return (this._data.segments?.length ?? 0) > 0;
|
|
154
189
|
}
|
|
155
|
-
_renderZones(e, t, n,
|
|
156
|
-
if (this.zones.length === 0 || this._hasSegments()) return
|
|
190
|
+
_renderZones(e, t, n, r) {
|
|
191
|
+
if (this.zones.length === 0 || this._hasSegments()) return d;
|
|
157
192
|
if (this.variant === "outline") {
|
|
158
|
-
let
|
|
159
|
-
for (let
|
|
160
|
-
let
|
|
161
|
-
if (
|
|
162
|
-
let
|
|
163
|
-
|
|
164
|
-
let
|
|
165
|
-
|
|
193
|
+
let i = r > this._angleAt(this.min) + 1e-6, a = [];
|
|
194
|
+
for (let o = 0; o < this.zones.length; o++) {
|
|
195
|
+
let s = this.zones[o], c = this._angleAt(s.from), l = this._angleAt(s.to);
|
|
196
|
+
if (l <= r + 1e-6) continue;
|
|
197
|
+
let u = c <= r + 1e-6, d = u ? r : c, p = "butt";
|
|
198
|
+
u && i ? p = "cup" : Math.abs(s.from - this.min) < 1e-6 && (p = "round");
|
|
199
|
+
let m = o === this.zones.length - 1 && Math.abs(s.to - this.max) < 1e-6 ? "round" : "butt";
|
|
200
|
+
a.push(f`
|
|
166
201
|
<path
|
|
167
202
|
class="void-gauge-zone"
|
|
168
|
-
style="--zone-color: ${
|
|
169
|
-
d=${
|
|
203
|
+
style="--zone-color: ${s.color};"
|
|
204
|
+
d=${b(e, t, n, this.thickness, d, l, p, m)}
|
|
170
205
|
></path>
|
|
171
206
|
`);
|
|
172
207
|
}
|
|
173
|
-
return
|
|
208
|
+
return f`<g class="void-gauge-zones">${a}</g>`;
|
|
174
209
|
}
|
|
175
|
-
let
|
|
176
|
-
for (let r of this.zones)
|
|
210
|
+
let i = this.variant === "wireframe" ? x : this.thickness, a = [];
|
|
211
|
+
for (let r of this.zones) a.push(f`
|
|
177
212
|
<path
|
|
178
213
|
class="void-gauge-zone"
|
|
179
|
-
style="--zone-color: ${r.color}; --gauge-stroke-width: ${
|
|
180
|
-
d=${
|
|
214
|
+
style="--zone-color: ${r.color}; --gauge-stroke-width: ${i};"
|
|
215
|
+
d=${v(e, t, n, this._angleAt(r.from), this._angleAt(r.to))}
|
|
181
216
|
></path>
|
|
182
217
|
`);
|
|
183
|
-
let
|
|
184
|
-
let a = Math.cos(r),
|
|
185
|
-
return `M ${(e + (n -
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
let
|
|
189
|
-
return
|
|
218
|
+
let o = i / 2, s = (r, i) => {
|
|
219
|
+
let a = Math.cos(r), s = Math.sin(r);
|
|
220
|
+
return `M ${(e + (n - o) * a).toFixed(2)} ${(t + (n - o) * s).toFixed(2)} A ${o} ${o} 0 0 ${i} ${(e + (n + o) * a).toFixed(2)} ${(t + (n + o) * s).toFixed(2)} Z`;
|
|
221
|
+
}, c = [], l = this.zones[0];
|
|
222
|
+
l && Math.abs(l.from - this.min) < 1e-6 && c.push(f`<path class="void-gauge-zone-cap" d=${s(this._angleAt(l.from), 1)} style="--zone-color: ${l.color};"></path>`);
|
|
223
|
+
let u = this.zones[this.zones.length - 1];
|
|
224
|
+
return u && Math.abs(u.to - this.max) < 1e-6 && c.push(f`<path class="void-gauge-zone-cap" d=${s(this._angleAt(u.to), 0)} style="--zone-color: ${u.color};"></path>`), f`<g class="void-gauge-zones">${a}${c}</g>`;
|
|
190
225
|
}
|
|
191
|
-
_renderSegments(e, t, n,
|
|
192
|
-
if (!this._hasSegments()) return
|
|
193
|
-
let
|
|
194
|
-
for (let r = 0; r <
|
|
195
|
-
let
|
|
196
|
-
if (S <= 0 ||
|
|
197
|
-
|
|
226
|
+
_renderSegments(e, t, n, r, i, a) {
|
|
227
|
+
if (!this._hasSegments()) return d;
|
|
228
|
+
let o = this._data.segments, s = this.segmentsSort === "value" ? [...o].sort((e, t) => t.value - e.value) : o, c = a - r, l = (this.gaps === !0 ? 1 : this.gaps === !1 ? 0 : this.gaps) / 100 * c, u = s.length, p = (u > 1 ? l / (u - 1) : 0) / 2, m = [], h = r, g = null, _ = null, b = null, x = null;
|
|
229
|
+
for (let r = 0; r < s.length; r++) {
|
|
230
|
+
let l = s[r], d = o.indexOf(l), S = this._displaySegments.get(d) ?? 0;
|
|
231
|
+
if (S <= 0 || i <= 0) {
|
|
232
|
+
h += 0;
|
|
198
233
|
continue;
|
|
199
234
|
}
|
|
200
|
-
let C = S /
|
|
235
|
+
let C = S / i * c, w = Math.min(h + C, a), T = r > 0 ? h + p : h, E = r < u - 1 ? w - p : w;
|
|
201
236
|
if (E > T + .001) {
|
|
202
|
-
let r =
|
|
203
|
-
|
|
237
|
+
let r = l.color ?? "var(--void-color-accent)", i = this.variant === "outline" ? y(e, t, n, this.thickness, T, E) : v(e, t, n, T, E);
|
|
238
|
+
m.push(f`
|
|
204
239
|
<path
|
|
205
240
|
class="void-gauge-segment"
|
|
206
|
-
d=${
|
|
241
|
+
d=${i}
|
|
207
242
|
style="--segment-color: ${r}; --gauge-stroke-width: ${this.thickness};"
|
|
208
|
-
data-segment-index=${
|
|
243
|
+
data-segment-index=${d}
|
|
209
244
|
></path>
|
|
210
|
-
`),
|
|
245
|
+
`), g === null && (g = r, _ = T), b = r, x = E;
|
|
211
246
|
}
|
|
212
|
-
|
|
247
|
+
h += C;
|
|
213
248
|
}
|
|
214
|
-
if (
|
|
249
|
+
if (m.length === 0) return d;
|
|
215
250
|
let S = this.thickness / 2, C = [];
|
|
216
|
-
if (
|
|
217
|
-
let r = e + n * Math.cos(
|
|
218
|
-
C.push(
|
|
251
|
+
if (_ !== null && g !== null) {
|
|
252
|
+
let r = e + n * Math.cos(_), i = t + n * Math.sin(_);
|
|
253
|
+
C.push(f`<circle class="void-gauge-segment-cap" cx=${r} cy=${i} r=${S} style="--segment-color: ${g};"></circle>`);
|
|
219
254
|
}
|
|
220
255
|
if (x !== null && b !== null) {
|
|
221
|
-
let r = e + n * Math.cos(x),
|
|
222
|
-
C.push(
|
|
256
|
+
let r = e + n * Math.cos(x), i = t + n * Math.sin(x);
|
|
257
|
+
C.push(f`<circle class="void-gauge-segment-cap" cx=${r} cy=${i} r=${S} style="--segment-color: ${b};"></circle>`);
|
|
223
258
|
}
|
|
224
|
-
return
|
|
259
|
+
return f`<g class="void-gauge-segments">${C}${m}</g>`;
|
|
225
260
|
}
|
|
226
261
|
_renderCenter(e, t) {
|
|
227
|
-
let n = this._displayValue,
|
|
228
|
-
return this.unitInline && this.unit ?
|
|
262
|
+
let n = this._displayValue, r = _(n), i = this.circular === "semi" ? t * .7 : t, a = i + 20;
|
|
263
|
+
return this.unitInline && this.unit ? f`
|
|
229
264
|
<text
|
|
230
265
|
class="void-gauge-center-value"
|
|
231
266
|
x=${e}
|
|
232
|
-
y=${
|
|
267
|
+
y=${i}
|
|
233
268
|
text-anchor="middle"
|
|
234
269
|
dy="0.32em"
|
|
235
|
-
>${
|
|
236
|
-
` :
|
|
270
|
+
>${r}<tspan class="void-gauge-center-unit-inline" dx="6">${this.unit}</tspan></text>
|
|
271
|
+
` : f`
|
|
237
272
|
<text
|
|
238
273
|
class="void-gauge-center-value"
|
|
239
274
|
x=${e}
|
|
240
|
-
y=${
|
|
275
|
+
y=${i}
|
|
241
276
|
text-anchor="middle"
|
|
242
277
|
dy="0.32em"
|
|
243
|
-
>${
|
|
244
|
-
${this.unit ?
|
|
278
|
+
>${r}</text>
|
|
279
|
+
${this.unit ? f`
|
|
245
280
|
<text
|
|
246
281
|
class="void-gauge-center-unit"
|
|
247
282
|
x=${e}
|
|
248
|
-
y=${
|
|
283
|
+
y=${a}
|
|
249
284
|
text-anchor="middle"
|
|
250
285
|
dy="0.32em"
|
|
251
286
|
>${this.unit}</text>
|
|
252
|
-
` :
|
|
287
|
+
` : d}
|
|
253
288
|
`;
|
|
254
289
|
}
|
|
255
290
|
_hasTicks() {
|
|
256
291
|
return this.tickMajor > 0 || this.tickMinor > 0;
|
|
257
292
|
}
|
|
258
293
|
_renderTicks(e, t, n) {
|
|
259
|
-
if (!this._hasTicks() || this.max - this.min <= 0) return
|
|
260
|
-
let
|
|
261
|
-
if (
|
|
262
|
-
this.hideTickMin ||
|
|
294
|
+
if (!this._hasTicks() || this.max - this.min <= 0) return d;
|
|
295
|
+
let r = Math.max(0, n - this.thickness / 2), i = Math.max(0, r - 3), a = Math.max(0, i - 5), o = Math.max(0, i - 10), s = [], c = this.tickMinor > 0 ? this.tickMinor : this.tickMajor;
|
|
296
|
+
if (c <= 0) return d;
|
|
297
|
+
this.hideTickMin || s.push({
|
|
263
298
|
v: this.min,
|
|
264
299
|
major: !0
|
|
265
300
|
});
|
|
266
|
-
let
|
|
267
|
-
for (let e = this.min +
|
|
301
|
+
let l = c * 1e-6;
|
|
302
|
+
for (let e = this.min + c; e < this.max - l; e += c) {
|
|
268
303
|
let t = this.tickMajor > 0 && Math.abs((e - this.min) / this.tickMajor - Math.round((e - this.min) / this.tickMajor)) < 1e-6;
|
|
269
|
-
|
|
304
|
+
s.push({
|
|
270
305
|
v: e,
|
|
271
306
|
major: t
|
|
272
307
|
});
|
|
273
308
|
}
|
|
274
|
-
let
|
|
309
|
+
let u = (this.max - this.min) / c, p = Math.abs(u - Math.round(u)) < l;
|
|
275
310
|
if (!this.hideTickMax || p) {
|
|
276
311
|
let e = this.tickMajor > 0 && Math.abs((this.max - this.min) / this.tickMajor - Math.round((this.max - this.min) / this.tickMajor)) < 1e-6;
|
|
277
|
-
|
|
312
|
+
s.push({
|
|
278
313
|
v: this.max,
|
|
279
314
|
major: !this.hideTickMax || e
|
|
280
315
|
});
|
|
281
316
|
}
|
|
282
|
-
return
|
|
283
|
-
let
|
|
284
|
-
return
|
|
317
|
+
return s.length === 0 ? d : f`<g class="void-gauge-ticks">${s.map(({ v: n, major: r }) => {
|
|
318
|
+
let s = this._angleAt(n), c = r ? o : a, l = (e + i * Math.cos(s)).toFixed(2), u = (t + i * Math.sin(s)).toFixed(2), d = (e + c * Math.cos(s)).toFixed(2), p = (t + c * Math.sin(s)).toFixed(2);
|
|
319
|
+
return f`<line class="void-gauge-tick ${r ? "void-gauge-tick-major" : "void-gauge-tick-minor"}" x1=${l} y1=${u} x2=${d} y2=${p}></line>`;
|
|
285
320
|
})}</g>`;
|
|
286
321
|
}
|
|
287
322
|
render() {
|
|
288
|
-
let { startAngle: e, endAngle: t, totalSweep:
|
|
289
|
-
return
|
|
323
|
+
let { startAngle: e, endAngle: t, totalSweep: n } = S(this.circular), r = this.size / 2, i = this.size / 2, a = Math.max(8, this.thickness / 2), o = this.size / 2 - a, s = this._viewBoxHeight(), c = [...this._displaySegments.values()].reduce((e, t) => e + t, 0), l = Math.max(this.min, Math.min(this.max, this._displayValue)), p = this.max - this.min === 0 ? 0 : (l - this.min) / (this.max - this.min), m = e + Math.max(0, Math.min(1, p)) * n, h = this._resolveFillColor(), g = m > e + .001;
|
|
324
|
+
return u`
|
|
290
325
|
<svg
|
|
291
|
-
viewBox="0 0 ${this.size} ${
|
|
292
|
-
|
|
293
|
-
aria-label=${this.ariaLabel || "Gauge chart"}
|
|
326
|
+
viewBox="0 0 ${this.size} ${s}"
|
|
327
|
+
aria-hidden="true"
|
|
294
328
|
data-phase=${this._phase}
|
|
295
329
|
>
|
|
296
330
|
<!-- Track — full arc, always. Gaps between segments reveal the
|
|
@@ -300,95 +334,131 @@ var m = class extends e {
|
|
|
300
334
|
<path
|
|
301
335
|
class="void-gauge-track"
|
|
302
336
|
style="--gauge-stroke-width: ${this.thickness};"
|
|
303
|
-
d=${
|
|
337
|
+
d=${v(r, i, o, e, t)}
|
|
304
338
|
></path>
|
|
305
339
|
|
|
306
340
|
<!-- Zone bands. Filled variant: zones render full-width and are
|
|
307
341
|
covered by the value's opaque stroke. Outline variant: zones
|
|
308
342
|
under the fill are clipped so the active-zone color reads
|
|
309
343
|
contiguously (otherwise the 14% tint composites through). -->
|
|
310
|
-
${this._renderZones(
|
|
344
|
+
${this._renderZones(r, i, o, m)}
|
|
311
345
|
|
|
312
346
|
<!-- Value fill (skip when segments are present — segments paint
|
|
313
347
|
their own colors directly). For the 'outline' variant use a
|
|
314
348
|
closed band shape so SVG fill renders the faint tint AND
|
|
315
349
|
stroke renders a hairline border. Other variants use a
|
|
316
350
|
stroked centerline arc. -->
|
|
317
|
-
${
|
|
351
|
+
${g && !this._hasSegments() ? f`
|
|
318
352
|
<path
|
|
319
353
|
class="void-gauge-value"
|
|
320
|
-
style="--value-color: ${
|
|
321
|
-
d=${this.variant === "outline" ?
|
|
354
|
+
style="--value-color: ${h}; --gauge-stroke-width: ${this.thickness};"
|
|
355
|
+
d=${this.variant === "outline" ? y(r, i, o, this.thickness, e, m) : v(r, i, o, e, m)}
|
|
322
356
|
></path>
|
|
323
|
-
` :
|
|
357
|
+
` : d}
|
|
324
358
|
|
|
325
359
|
<!-- Segment overlays -->
|
|
326
|
-
${this._renderSegments(
|
|
360
|
+
${this._renderSegments(r, i, o, e, c, m)}
|
|
327
361
|
|
|
328
362
|
<!-- Tick marks (outside the band) -->
|
|
329
|
-
${this._renderTicks(
|
|
363
|
+
${this._renderTicks(r, i, o)}
|
|
330
364
|
|
|
331
365
|
<!-- Center label -->
|
|
332
|
-
${this.hideValue ?
|
|
366
|
+
${this.hideValue ? d : this._renderCenter(r, i)}
|
|
333
367
|
|
|
334
368
|
<!-- Hover tooltip -->
|
|
335
|
-
${this._hoverSegment !== null && this._data.segments && this._hoverSegment < this._data.segments.length ? this._renderHoverTooltip(this._data.segments, this._hoverSegment) :
|
|
369
|
+
${this._hoverSegment !== null && this._data.segments && this._hoverSegment < this._data.segments.length ? this._renderHoverTooltip(this._data.segments, this._hoverSegment) : d}
|
|
336
370
|
</svg>
|
|
371
|
+
${this._table()}
|
|
337
372
|
`;
|
|
338
373
|
}
|
|
374
|
+
_table() {
|
|
375
|
+
let { value: e, min: t, max: n, unit: r, segmentsSort: o, _data: s } = this, u = this.ariaLabel || "Gauge chart";
|
|
376
|
+
return h([
|
|
377
|
+
e,
|
|
378
|
+
t,
|
|
379
|
+
n,
|
|
380
|
+
r,
|
|
381
|
+
o,
|
|
382
|
+
s,
|
|
383
|
+
u,
|
|
384
|
+
l(this)
|
|
385
|
+
], () => {
|
|
386
|
+
let l, d = s.segments ?? [];
|
|
387
|
+
if (d.length > 0) {
|
|
388
|
+
let e = o === "value" ? [...d].sort((e, t) => t.value - e.value) : d;
|
|
389
|
+
l = c(this, u, e);
|
|
390
|
+
} else {
|
|
391
|
+
let a = i(this), o = s.value ?? e, c = (e) => a.number(e) + (r ? /^[\p{L}]/u.test(r) ? ` ${r}` : r : "");
|
|
392
|
+
l = {
|
|
393
|
+
caption: u,
|
|
394
|
+
head: [
|
|
395
|
+
"Value",
|
|
396
|
+
"Minimum",
|
|
397
|
+
"Maximum"
|
|
398
|
+
],
|
|
399
|
+
rows: [{ cells: [
|
|
400
|
+
c(o),
|
|
401
|
+
c(t),
|
|
402
|
+
c(n)
|
|
403
|
+
] }]
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
return a("void-gauge-table", l);
|
|
407
|
+
});
|
|
408
|
+
}
|
|
339
409
|
_renderHoverTooltip(e, t) {
|
|
340
|
-
let n = e[t], r = this._displaySegments.get(t) ?? n.value,
|
|
341
|
-
return
|
|
410
|
+
let n = e[t], r = this._displaySegments.get(t) ?? n.value, i = [...this._displaySegments.values()].reduce((e, t) => e + t, 0) || this._displayValue || 1, a = Math.round(r / i * 100), o = this._viewBoxHeight(), s = this._hoverX + 12, c = this._hoverY + 12;
|
|
411
|
+
return s + 140 > this.size && (s = this._hoverX - 12 - 140), c + 44 > o && (c = this._hoverY - 12 - 44), s < 0 && (s = 0), c < 0 && (c = 0), f`
|
|
342
412
|
<g class="void-gauge-hover" pointer-events="none">
|
|
343
413
|
<rect
|
|
344
414
|
class="void-gauge-tooltip-bg"
|
|
345
|
-
x=${
|
|
415
|
+
x=${s} y=${c}
|
|
346
416
|
width=${140} height=${44}
|
|
347
417
|
rx="6" ry="6"
|
|
348
418
|
></rect>
|
|
349
419
|
<text
|
|
350
420
|
class="void-gauge-tooltip-name"
|
|
351
|
-
x=${
|
|
352
|
-
y=${
|
|
421
|
+
x=${s + 8}
|
|
422
|
+
y=${c + 8 + 10}
|
|
353
423
|
>${n.name}</text>
|
|
354
424
|
<text
|
|
355
425
|
class="void-gauge-tooltip-value"
|
|
356
|
-
x=${
|
|
357
|
-
y=${
|
|
358
|
-
>${
|
|
426
|
+
x=${s + 8}
|
|
427
|
+
y=${c + 8 + 14 + 10}
|
|
428
|
+
>${_(r)} <tspan class="void-gauge-tooltip-pct">(${a}%)</tspan></text>
|
|
359
429
|
</g>
|
|
360
430
|
`;
|
|
361
431
|
}
|
|
362
432
|
};
|
|
363
|
-
t([
|
|
433
|
+
t([p()], C.prototype, "unit", void 0), t([p({
|
|
364
434
|
type: Number,
|
|
365
435
|
reflect: !0
|
|
366
|
-
})],
|
|
436
|
+
})], C.prototype, "value", void 0), t([p({ type: Number })], C.prototype, "min", void 0), t([p({ type: Number })], C.prototype, "max", void 0), t([p({
|
|
367
437
|
type: Number,
|
|
368
438
|
reflect: !0
|
|
369
|
-
})],
|
|
439
|
+
})], C.prototype, "size", void 0), t([p({ type: Number })], C.prototype, "thickness", void 0), t([p({ reflect: !0 })], C.prototype, "circular", void 0), t([p({ reflect: !0 })], C.prototype, "variant", void 0), t([p({
|
|
370
440
|
type: Boolean,
|
|
371
441
|
attribute: "hide-value",
|
|
372
442
|
reflect: !0
|
|
373
|
-
})],
|
|
443
|
+
})], C.prototype, "hideValue", void 0), t([p({
|
|
374
444
|
type: Boolean,
|
|
375
445
|
attribute: "unit-inline",
|
|
376
446
|
reflect: !0
|
|
377
|
-
})],
|
|
447
|
+
})], C.prototype, "unitInline", void 0), t([p({
|
|
378
448
|
type: Number,
|
|
379
449
|
attribute: "tick-major"
|
|
380
|
-
})],
|
|
450
|
+
})], C.prototype, "tickMajor", void 0), t([p({
|
|
381
451
|
type: Number,
|
|
382
452
|
attribute: "tick-minor"
|
|
383
|
-
})],
|
|
453
|
+
})], C.prototype, "tickMinor", void 0), t([p({
|
|
384
454
|
type: Boolean,
|
|
385
455
|
attribute: "hide-tick-min",
|
|
386
456
|
reflect: !0
|
|
387
|
-
})],
|
|
457
|
+
})], C.prototype, "hideTickMin", void 0), t([p({
|
|
388
458
|
type: Boolean,
|
|
389
459
|
attribute: "hide-tick-max",
|
|
390
460
|
reflect: !0
|
|
391
|
-
})],
|
|
461
|
+
})], C.prototype, "hideTickMax", void 0), t([p({ attribute: "segments-sort" })], C.prototype, "segmentsSort", void 0), t([p({ converter: {
|
|
392
462
|
fromAttribute(e) {
|
|
393
463
|
if (e === null || e === "" || e === "true") return !0;
|
|
394
464
|
if (e === "false") return !1;
|
|
@@ -398,6 +468,10 @@ t([a()], m.prototype, "unit", void 0), t([a({
|
|
|
398
468
|
toAttribute(e) {
|
|
399
469
|
return e === !0 ? "" : e === !1 ? "false" : String(e);
|
|
400
470
|
}
|
|
401
|
-
} })],
|
|
471
|
+
} })], C.prototype, "gaps", void 0), t([p({ attribute: "aria-label" })], C.prototype, "ariaLabel", void 0), t([p({
|
|
472
|
+
type: Boolean,
|
|
473
|
+
attribute: "show-table",
|
|
474
|
+
reflect: !0
|
|
475
|
+
})], C.prototype, "showTable", void 0), t([p({ attribute: "zones" })], C.prototype, "zones", null), t([p({ attribute: "data" })], C.prototype, "data", null), t([m()], C.prototype, "_phase", void 0), t([m()], C.prototype, "_hoverSegment", void 0), t([m()], C.prototype, "_hoverX", void 0), t([m()], C.prototype, "_hoverY", void 0), customElements.get("void-gauge") || customElements.define("void-gauge", C);
|
|
402
476
|
//#endregion
|
|
403
|
-
export {
|
|
477
|
+
export { C as VoidGauge };
|