@voidable/ui 0.8.1 → 0.10.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/README.md +8 -0
- package/dist/base-entry.d.ts +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BxmMM3B7.js +298 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-D_YVy2vg.js → modal-CgGp_fCs.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
- package/dist/chunks/{parts-D30c8OoG.js → parts-DI_3VpSy.js} +25 -18
- package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
- package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
- package/dist/chunks/value-list-CH6GjYXM.js +28 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +8 -4
- package/dist/components/action-input.js +61 -49
- package/dist/components/alert.js +2 -2
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +2 -2
- package/dist/components/bar-chart.js +31 -29
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +78 -76
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +18 -17
- package/dist/components/checkbox-group.d.ts +10 -0
- package/dist/components/checkbox-group.js +36 -23
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.d.ts +4 -2
- package/dist/components/combobox.js +22 -18
- package/dist/components/compose-input.d.ts +1 -1
- package/dist/components/compose-input.js +15 -10
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.js +51 -49
- 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.d.ts +1 -1
- 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.js +19 -17
- package/dist/components/gauge.js +90 -85
- package/dist/components/hamburger.js +11 -9
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.d.ts +6 -2
- package/dist/components/input.js +46 -34
- package/dist/components/line-chart.js +41 -39
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.d.ts +9 -0
- package/dist/components/multiselect.js +64 -54
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/nav-menu.js +20 -19
- package/dist/components/number-input.d.ts +2 -2
- 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.d.ts +6 -2
- package/dist/components/pin-input.js +39 -27
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +15 -10
- 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.d.ts +1 -1
- package/dist/components/segmented-control.js +21 -21
- package/dist/components/select.d.ts +67 -16
- package/dist/components/select.js +183 -56
- 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.d.ts +2 -2
- package/dist/components/slider.js +18 -13
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.js +19 -17
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +14 -12
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.d.ts +1 -1
- package/dist/components/tags-input.js +25 -19
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +36 -31
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +5 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +3 -3
- package/dist/custom-elements.json +133 -67
- package/dist/dev/types.d.ts +2 -3
- package/dist/dev.js +81 -55
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +125 -0
- package/dist/parts.d.ts +8 -1
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- package/dist/reference.md +4575 -0
- package/dist/secret-value.d.ts +17 -0
- package/dist/types/elements.d.ts +2 -2
- package/dist/value-list.d.ts +14 -0
- package/dist/vscode.html-custom-data.json +46 -26
- package/dist/web-types.json +73 -53
- package/package.json +5 -3
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
|
+
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
+
import { t as n } from "../chunks/form-control-C0vH6gii.js";
|
|
4
|
+
import { n as r } from "../chunks/projection-SnR79EHI.js";
|
|
4
5
|
import { html as i, nothing as a } from "lit";
|
|
5
6
|
import { property as o } from "lit/decorators.js";
|
|
6
7
|
import { live as s } from "lit/directives/live.js";
|
|
7
8
|
//#region src/components/editable.ts
|
|
8
|
-
var c = class extends
|
|
9
|
-
constructor(...
|
|
10
|
-
super(...
|
|
9
|
+
var c = class extends n(e) {
|
|
10
|
+
constructor(...e) {
|
|
11
|
+
super(...e), this.value = "", this.editing = !1, this.disabled = !1, this.placeholder = "Click to edit", this.submitMode = "both", this.size = "md", this._previousValue = "", this._draft = null, this._handleClick = () => {
|
|
11
12
|
this.formDisabled || this.editing || this._enterEditMode();
|
|
12
13
|
}, this._handlePreviewKeydown = (e) => {
|
|
13
14
|
this.formDisabled || this.editing || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._enterEditMode());
|
|
@@ -26,7 +27,7 @@ var c = class extends r(t) {
|
|
|
26
27
|
}
|
|
27
28
|
e.key === "Enter" && (this.submitMode === "enter" || this.submitMode === "both") && (e.preventDefault(), this._confirm());
|
|
28
29
|
}, this._handleBlur = () => {
|
|
29
|
-
!this.editing ||
|
|
30
|
+
!this.editing || r(this) || (this.submitMode === "blur" || this.submitMode === "both" ? this._confirm() : this._cancel());
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
static {
|
|
@@ -82,20 +83,20 @@ var c = class extends r(t) {
|
|
|
82
83
|
}));
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
|
-
|
|
86
|
+
t([o({
|
|
86
87
|
type: String,
|
|
87
88
|
reflect: !0
|
|
88
|
-
})], c.prototype, "value", void 0),
|
|
89
|
+
})], c.prototype, "value", void 0), t([o({
|
|
89
90
|
type: Boolean,
|
|
90
91
|
reflect: !0
|
|
91
|
-
})], c.prototype, "editing", void 0),
|
|
92
|
+
})], c.prototype, "editing", void 0), t([o({
|
|
92
93
|
type: Boolean,
|
|
93
94
|
reflect: !0
|
|
94
|
-
})], c.prototype, "disabled", void 0),
|
|
95
|
+
})], c.prototype, "disabled", void 0), t([o({ type: String })], c.prototype, "placeholder", void 0), t([o({
|
|
95
96
|
type: String,
|
|
96
97
|
reflect: !0,
|
|
97
98
|
attribute: "submit-mode"
|
|
98
|
-
})], c.prototype, "submitMode", void 0),
|
|
99
|
+
})], c.prototype, "submitMode", void 0), t([o({
|
|
99
100
|
type: String,
|
|
100
101
|
reflect: !0
|
|
101
102
|
})], c.prototype, "size", void 0), customElements.get("void-editable") || customElements.define("void-editable", c);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import { n, t as r } from "../chunks/parts-
|
|
3
|
+
import { n, t as r } from "../chunks/parts-DI_3VpSy.js";
|
|
4
4
|
import { property as i } from "lit/decorators.js";
|
|
5
5
|
//#region src/components/error-fallback.ts
|
|
6
6
|
var a = [
|
package/dist/components/field.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
|
+
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
+
import { t as n } from "../chunks/projection-SnR79EHI.js";
|
|
3
4
|
import { html as r, nothing as i } from "lit";
|
|
4
5
|
import { property as a } from "lit/decorators.js";
|
|
5
6
|
//#region src/components/field.ts
|
|
6
|
-
var o = "", s = class extends
|
|
7
|
-
constructor(...
|
|
8
|
-
super(...
|
|
7
|
+
var o = "", s = class extends e {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.label = "", this.error = "", this.helper = "", this.required = !1, this._uid = Math.random().toString(36).slice(2), this._labelledControl = null, this._controlObserver = null, this._projection = new n(this, {
|
|
9
10
|
regions: [{
|
|
10
11
|
name: "control",
|
|
11
12
|
target: () => this.querySelector(":scope > .void-field-control")
|
|
@@ -67,16 +68,16 @@ var o = "", s = class extends t {
|
|
|
67
68
|
`;
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
+
t([a({
|
|
71
72
|
type: String,
|
|
72
73
|
reflect: !0
|
|
73
|
-
})], s.prototype, "label", void 0),
|
|
74
|
+
})], s.prototype, "label", void 0), t([a({
|
|
74
75
|
type: String,
|
|
75
76
|
reflect: !0
|
|
76
|
-
})], s.prototype, "error", void 0),
|
|
77
|
+
})], s.prototype, "error", void 0), t([a({
|
|
77
78
|
type: String,
|
|
78
79
|
reflect: !0
|
|
79
|
-
})], s.prototype, "helper", void 0),
|
|
80
|
+
})], s.prototype, "helper", void 0), t([a({
|
|
80
81
|
type: Boolean,
|
|
81
82
|
reflect: !0
|
|
82
83
|
})], s.prototype, "required", void 0), customElements.get("void-field") || customElements.define("void-field", s);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
3
|
import { t as n } from "../chunks/form-control-C0vH6gii.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { r } from "../chunks/projection-SnR79EHI.js";
|
|
5
|
+
import { html as i, nothing as a } from "lit";
|
|
6
|
+
import { property as o } from "lit/decorators.js";
|
|
6
7
|
//#region src/components/file-upload.ts
|
|
7
|
-
|
|
8
|
+
r();
|
|
9
|
+
var s = class extends n(e) {
|
|
8
10
|
constructor(...e) {
|
|
9
11
|
super(...e), this.accept = "", this.multiple = !1, this.disabled = !1, this.maxSize = 0, this.error = "", this._files = [], this._onDropzoneClick = () => {
|
|
10
12
|
this.formDisabled || this._input?.click();
|
|
@@ -40,11 +42,11 @@ var o = class extends n(e) {
|
|
|
40
42
|
return this.querySelector("input[type=\"file\"]");
|
|
41
43
|
}
|
|
42
44
|
render() {
|
|
43
|
-
return
|
|
45
|
+
return i`
|
|
44
46
|
<input
|
|
45
47
|
type="file"
|
|
46
48
|
class="void-file-upload-input"
|
|
47
|
-
accept=${this.accept ||
|
|
49
|
+
accept=${this.accept || a}
|
|
48
50
|
?multiple=${this.multiple}
|
|
49
51
|
?disabled=${this.disabled}
|
|
50
52
|
@change=${this._onInputChange}
|
|
@@ -53,7 +55,7 @@ var o = class extends n(e) {
|
|
|
53
55
|
class="void-file-upload-dropzone"
|
|
54
56
|
tabindex=${this.formDisabled ? "-1" : "0"}
|
|
55
57
|
role="button"
|
|
56
|
-
aria-disabled=${this.formDisabled ? "true" :
|
|
58
|
+
aria-disabled=${this.formDisabled ? "true" : a}
|
|
57
59
|
@click=${this._onDropzoneClick}
|
|
58
60
|
@keydown=${this._onDropzoneKeydown}
|
|
59
61
|
@dragover=${this._onDragOver}
|
|
@@ -64,9 +66,9 @@ var o = class extends n(e) {
|
|
|
64
66
|
Drop files here or <span class="void-file-upload-browse">browse</span>
|
|
65
67
|
</span>
|
|
66
68
|
</div>
|
|
67
|
-
${this._files.length > 0 ?
|
|
69
|
+
${this._files.length > 0 ? i`
|
|
68
70
|
<div class="void-file-upload-files">
|
|
69
|
-
${this._files.map((e, t) =>
|
|
71
|
+
${this._files.map((e, t) => i`
|
|
70
72
|
<div class="void-file-upload-file">
|
|
71
73
|
<span class="void-file-upload-filename">${e.name}</span>
|
|
72
74
|
<button
|
|
@@ -79,8 +81,8 @@ var o = class extends n(e) {
|
|
|
79
81
|
</div>
|
|
80
82
|
`)}
|
|
81
83
|
</div>
|
|
82
|
-
` :
|
|
83
|
-
${this.error ?
|
|
84
|
+
` : a}
|
|
85
|
+
${this.error ? i`<span class="void-file-upload-error">${this.error}</span>` : a}
|
|
84
86
|
`;
|
|
85
87
|
}
|
|
86
88
|
_addFiles(e) {
|
|
@@ -105,18 +107,18 @@ var o = class extends n(e) {
|
|
|
105
107
|
}));
|
|
106
108
|
}
|
|
107
109
|
};
|
|
108
|
-
t([
|
|
110
|
+
t([o({ type: String })], s.prototype, "accept", void 0), t([o({
|
|
109
111
|
type: Boolean,
|
|
110
112
|
reflect: !0
|
|
111
|
-
})],
|
|
113
|
+
})], s.prototype, "multiple", void 0), t([o({
|
|
112
114
|
type: Boolean,
|
|
113
115
|
reflect: !0
|
|
114
|
-
})],
|
|
116
|
+
})], s.prototype, "disabled", void 0), t([o({
|
|
115
117
|
type: Number,
|
|
116
118
|
attribute: "max-size"
|
|
117
|
-
})],
|
|
119
|
+
})], s.prototype, "maxSize", void 0), t([o({
|
|
118
120
|
type: String,
|
|
119
121
|
reflect: !0
|
|
120
|
-
})],
|
|
122
|
+
})], s.prototype, "error", void 0), customElements.get("void-file-upload") || customElements.define("void-file-upload", s);
|
|
121
123
|
//#endregion
|
|
122
|
-
export {
|
|
124
|
+
export { s as VoidFileUpload };
|
package/dist/components/gauge.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { r as n } from "../chunks/projection-SnR79EHI.js";
|
|
4
|
+
import { html as r, nothing as i, svg as a } from "lit";
|
|
5
|
+
import { property as o, state as s } from "lit/decorators.js";
|
|
5
6
|
//#region src/components/gauge.ts
|
|
6
|
-
|
|
7
|
+
n();
|
|
8
|
+
function c(e) {
|
|
7
9
|
return 1 - (1 - e) ** 3;
|
|
8
10
|
}
|
|
9
|
-
function
|
|
11
|
+
function l(e) {
|
|
10
12
|
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
13
|
}
|
|
12
|
-
function
|
|
14
|
+
function u(e, t, n, r, i) {
|
|
13
15
|
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
16
|
return `M ${s.toFixed(2)} ${c.toFixed(2)} A ${n} ${n} 0 ${d} ${f} ${l.toFixed(2)} ${u.toFixed(2)}`;
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function d(e, t, n, r, i, a) {
|
|
17
19
|
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
20
|
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
21
|
}
|
|
20
|
-
function
|
|
22
|
+
function f(e, t, n, r, i, a, o, s) {
|
|
21
23
|
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
24
|
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
25
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
+
var p = 1.5 * 5;
|
|
27
|
+
function m(e) {
|
|
26
28
|
let t = Math.PI;
|
|
27
29
|
return e === "full" ? {
|
|
28
30
|
startAngle: -t / 2,
|
|
@@ -38,7 +40,7 @@ function p(e) {
|
|
|
38
40
|
totalSweep: 3 * t / 2
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
|
-
var
|
|
43
|
+
var h = class extends e {
|
|
42
44
|
constructor(...e) {
|
|
43
45
|
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.zones = [], this._data = {}, 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
46
|
let t = this.querySelector("svg");
|
|
@@ -50,12 +52,12 @@ var m = class extends e {
|
|
|
50
52
|
}
|
|
51
53
|
let r = t.getBoundingClientRect();
|
|
52
54
|
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 -
|
|
55
|
+
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;
|
|
56
|
+
if (d < f - p || d > f + p) {
|
|
55
57
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
56
58
|
return;
|
|
57
59
|
}
|
|
58
|
-
let { startAngle: h, totalSweep: g } =
|
|
60
|
+
let { startAngle: h, totalSweep: g } = m(this.circular), _ = h + g, v = Math.atan2(u, l);
|
|
59
61
|
for (; v < h;) v += 2 * Math.PI;
|
|
60
62
|
for (; v > h + 2 * Math.PI;) v -= 2 * Math.PI;
|
|
61
63
|
if (v > _) {
|
|
@@ -80,7 +82,7 @@ var m = class extends e {
|
|
|
80
82
|
}, this._onMouseLeave = () => {
|
|
81
83
|
this._hoverSegment = null;
|
|
82
84
|
}, this._tick = (e) => {
|
|
83
|
-
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r =
|
|
85
|
+
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r = c(n);
|
|
84
86
|
this._displayValue = this._displayValueFrom + (this._targetValue - this._displayValueFrom) * r;
|
|
85
87
|
for (let [e, t] of this._targetSegments) {
|
|
86
88
|
let n = this._segmentsFrom.get(e) ?? 0;
|
|
@@ -139,7 +141,7 @@ var m = class extends e {
|
|
|
139
141
|
return this.circular === "semi" ? this.size * .6 : this.circular === "triple" ? this.size * .85 : this.size;
|
|
140
142
|
}
|
|
141
143
|
_angleAt(e) {
|
|
142
|
-
let { startAngle: t, totalSweep: n } =
|
|
144
|
+
let { startAngle: t, totalSweep: n } = m(this.circular), r = Math.max(this.min, Math.min(this.max, e));
|
|
143
145
|
return t + (this.max - this.min === 0 ? 0 : (r - this.min) / (this.max - this.min)) * n;
|
|
144
146
|
}
|
|
145
147
|
_resolveFillColor() {
|
|
@@ -152,55 +154,55 @@ var m = class extends e {
|
|
|
152
154
|
_hasSegments() {
|
|
153
155
|
return (this._data.segments?.length ?? 0) > 0;
|
|
154
156
|
}
|
|
155
|
-
_renderZones(e, t, n,
|
|
156
|
-
if (this.zones.length === 0 || this._hasSegments()) return
|
|
157
|
+
_renderZones(e, t, n, r) {
|
|
158
|
+
if (this.zones.length === 0 || this._hasSegments()) return i;
|
|
157
159
|
if (this.variant === "outline") {
|
|
158
|
-
let
|
|
160
|
+
let i = r > this._angleAt(this.min) + 1e-6, o = [];
|
|
159
161
|
for (let s = 0; s < this.zones.length; s++) {
|
|
160
162
|
let c = this.zones[s], l = this._angleAt(c.from), u = this._angleAt(c.to);
|
|
161
|
-
if (u <=
|
|
162
|
-
let
|
|
163
|
-
|
|
163
|
+
if (u <= r + 1e-6) continue;
|
|
164
|
+
let d = l <= r + 1e-6, p = d ? r : l, m = "butt";
|
|
165
|
+
d && i ? m = "cup" : Math.abs(c.from - this.min) < 1e-6 && (m = "round");
|
|
164
166
|
let h = s === this.zones.length - 1 && Math.abs(c.to - this.max) < 1e-6 ? "round" : "butt";
|
|
165
|
-
o.push(
|
|
167
|
+
o.push(a`
|
|
166
168
|
<path
|
|
167
169
|
class="void-gauge-zone"
|
|
168
170
|
style="--zone-color: ${c.color};"
|
|
169
|
-
d=${
|
|
171
|
+
d=${f(e, t, n, this.thickness, p, u, m, h)}
|
|
170
172
|
></path>
|
|
171
173
|
`);
|
|
172
174
|
}
|
|
173
|
-
return
|
|
175
|
+
return a`<g class="void-gauge-zones">${o}</g>`;
|
|
174
176
|
}
|
|
175
|
-
let o = this.variant === "wireframe" ?
|
|
176
|
-
for (let r of this.zones) s.push(
|
|
177
|
+
let o = this.variant === "wireframe" ? p : this.thickness, s = [];
|
|
178
|
+
for (let r of this.zones) s.push(a`
|
|
177
179
|
<path
|
|
178
180
|
class="void-gauge-zone"
|
|
179
181
|
style="--zone-color: ${r.color}; --gauge-stroke-width: ${o};"
|
|
180
|
-
d=${
|
|
182
|
+
d=${u(e, t, n, this._angleAt(r.from), this._angleAt(r.to))}
|
|
181
183
|
></path>
|
|
182
184
|
`);
|
|
183
|
-
let c = o / 2,
|
|
185
|
+
let c = o / 2, l = (r, i) => {
|
|
184
186
|
let a = Math.cos(r), o = Math.sin(r);
|
|
185
187
|
return `M ${(e + (n - c) * a).toFixed(2)} ${(t + (n - c) * o).toFixed(2)} A ${c} ${c} 0 0 ${i} ${(e + (n + c) * a).toFixed(2)} ${(t + (n + c) * o).toFixed(2)} Z`;
|
|
186
|
-
},
|
|
187
|
-
m && Math.abs(m.from - this.min) < 1e-6 &&
|
|
188
|
+
}, d = [], m = this.zones[0];
|
|
189
|
+
m && Math.abs(m.from - this.min) < 1e-6 && d.push(a`<path class="void-gauge-zone-cap" d=${l(this._angleAt(m.from), 1)} style="--zone-color: ${m.color};"></path>`);
|
|
188
190
|
let h = this.zones[this.zones.length - 1];
|
|
189
|
-
return h && Math.abs(h.to - this.max) < 1e-6 &&
|
|
191
|
+
return h && Math.abs(h.to - this.max) < 1e-6 && d.push(a`<path class="void-gauge-zone-cap" d=${l(this._angleAt(h.to), 0)} style="--zone-color: ${h.color};"></path>`), a`<g class="void-gauge-zones">${s}${d}</g>`;
|
|
190
192
|
}
|
|
191
|
-
_renderSegments(e, t, n,
|
|
192
|
-
if (!this._hasSegments()) return
|
|
193
|
-
let c = this._data.segments,
|
|
194
|
-
for (let r = 0; r <
|
|
195
|
-
let
|
|
193
|
+
_renderSegments(e, t, n, r, o, s) {
|
|
194
|
+
if (!this._hasSegments()) return i;
|
|
195
|
+
let c = this._data.segments, l = this.segmentsSort === "value" ? [...c].sort((e, t) => t.value - e.value) : c, f = s - r, p = (this.gaps === !0 ? 1 : this.gaps === !1 ? 0 : this.gaps) / 100 * f, m = l.length, h = (m > 1 ? p / (m - 1) : 0) / 2, g = [], _ = r, v = null, y = null, b = null, x = null;
|
|
196
|
+
for (let r = 0; r < l.length; r++) {
|
|
197
|
+
let i = l[r], p = c.indexOf(i), S = this._displaySegments.get(p) ?? 0;
|
|
196
198
|
if (S <= 0 || o <= 0) {
|
|
197
199
|
_ += 0;
|
|
198
200
|
continue;
|
|
199
201
|
}
|
|
200
202
|
let C = S / o * f, w = Math.min(_ + C, s), T = r > 0 ? _ + h : _, E = r < m - 1 ? w - h : w;
|
|
201
203
|
if (E > T + .001) {
|
|
202
|
-
let r =
|
|
203
|
-
g.push(
|
|
204
|
+
let r = i.color ?? "var(--void-color-accent)", o = this.variant === "outline" ? d(e, t, n, this.thickness, T, E) : u(e, t, n, T, E);
|
|
205
|
+
g.push(a`
|
|
204
206
|
<path
|
|
205
207
|
class="void-gauge-segment"
|
|
206
208
|
d=${o}
|
|
@@ -211,37 +213,37 @@ var m = class extends e {
|
|
|
211
213
|
}
|
|
212
214
|
_ += C;
|
|
213
215
|
}
|
|
214
|
-
if (g.length === 0) return
|
|
216
|
+
if (g.length === 0) return i;
|
|
215
217
|
let S = this.thickness / 2, C = [];
|
|
216
218
|
if (y !== null && v !== null) {
|
|
217
|
-
let r = e + n * Math.cos(y),
|
|
218
|
-
C.push(
|
|
219
|
+
let r = e + n * Math.cos(y), i = t + n * Math.sin(y);
|
|
220
|
+
C.push(a`<circle class="void-gauge-segment-cap" cx=${r} cy=${i} r=${S} style="--segment-color: ${v};"></circle>`);
|
|
219
221
|
}
|
|
220
222
|
if (x !== null && b !== null) {
|
|
221
|
-
let r = e + n * Math.cos(x),
|
|
222
|
-
C.push(
|
|
223
|
+
let r = e + n * Math.cos(x), i = t + n * Math.sin(x);
|
|
224
|
+
C.push(a`<circle class="void-gauge-segment-cap" cx=${r} cy=${i} r=${S} style="--segment-color: ${b};"></circle>`);
|
|
223
225
|
}
|
|
224
|
-
return
|
|
226
|
+
return a`<g class="void-gauge-segments">${C}${g}</g>`;
|
|
225
227
|
}
|
|
226
228
|
_renderCenter(e, t) {
|
|
227
|
-
let n = this._displayValue,
|
|
228
|
-
return this.unitInline && this.unit ?
|
|
229
|
+
let n = this._displayValue, r = l(n), o = this.circular === "semi" ? t * .7 : t, s = o + 20;
|
|
230
|
+
return this.unitInline && this.unit ? a`
|
|
229
231
|
<text
|
|
230
232
|
class="void-gauge-center-value"
|
|
231
233
|
x=${e}
|
|
232
234
|
y=${o}
|
|
233
235
|
text-anchor="middle"
|
|
234
236
|
dy="0.32em"
|
|
235
|
-
>${
|
|
236
|
-
` :
|
|
237
|
+
>${r}<tspan class="void-gauge-center-unit-inline" dx="6">${this.unit}</tspan></text>
|
|
238
|
+
` : a`
|
|
237
239
|
<text
|
|
238
240
|
class="void-gauge-center-value"
|
|
239
241
|
x=${e}
|
|
240
242
|
y=${o}
|
|
241
243
|
text-anchor="middle"
|
|
242
244
|
dy="0.32em"
|
|
243
|
-
>${
|
|
244
|
-
${this.unit ?
|
|
245
|
+
>${r}</text>
|
|
246
|
+
${this.unit ? a`
|
|
245
247
|
<text
|
|
246
248
|
class="void-gauge-center-unit"
|
|
247
249
|
x=${e}
|
|
@@ -249,16 +251,16 @@ var m = class extends e {
|
|
|
249
251
|
text-anchor="middle"
|
|
250
252
|
dy="0.32em"
|
|
251
253
|
>${this.unit}</text>
|
|
252
|
-
` :
|
|
254
|
+
` : i}
|
|
253
255
|
`;
|
|
254
256
|
}
|
|
255
257
|
_hasTicks() {
|
|
256
258
|
return this.tickMajor > 0 || this.tickMinor > 0;
|
|
257
259
|
}
|
|
258
260
|
_renderTicks(e, t, n) {
|
|
259
|
-
if (!this._hasTicks() || this.max - this.min <= 0) return
|
|
260
|
-
let
|
|
261
|
-
if (u <= 0) return
|
|
261
|
+
if (!this._hasTicks() || this.max - this.min <= 0) return i;
|
|
262
|
+
let r = Math.max(0, n - this.thickness / 2), o = Math.max(0, r - 3), s = Math.max(0, o - 5), c = Math.max(0, o - 10), l = [], u = this.tickMinor > 0 ? this.tickMinor : this.tickMajor;
|
|
263
|
+
if (u <= 0) return i;
|
|
262
264
|
this.hideTickMin || l.push({
|
|
263
265
|
v: this.min,
|
|
264
266
|
major: !0
|
|
@@ -279,14 +281,14 @@ var m = class extends e {
|
|
|
279
281
|
major: !this.hideTickMax || e
|
|
280
282
|
});
|
|
281
283
|
}
|
|
282
|
-
return l.length === 0 ?
|
|
283
|
-
let
|
|
284
|
-
return
|
|
284
|
+
return l.length === 0 ? i : a`<g class="void-gauge-ticks">${l.map(({ v: n, major: r }) => {
|
|
285
|
+
let i = this._angleAt(n), l = r ? c : s, u = (e + o * Math.cos(i)).toFixed(2), d = (t + o * Math.sin(i)).toFixed(2), f = (e + l * Math.cos(i)).toFixed(2), p = (t + l * Math.sin(i)).toFixed(2);
|
|
286
|
+
return a`<line class="void-gauge-tick ${r ? "void-gauge-tick-major" : "void-gauge-tick-minor"}" x1=${u} y1=${d} x2=${f} y2=${p}></line>`;
|
|
285
287
|
})}</g>`;
|
|
286
288
|
}
|
|
287
289
|
render() {
|
|
288
|
-
let { startAngle: e, endAngle: t, totalSweep:
|
|
289
|
-
return
|
|
290
|
+
let { startAngle: e, endAngle: t, totalSweep: n } = m(this.circular), o = this.size / 2, s = this.size / 2, c = Math.max(8, this.thickness / 2), l = this.size / 2 - c, f = this._viewBoxHeight(), p = [...this._displaySegments.values()].reduce((e, t) => e + t, 0), h = Math.max(this.min, Math.min(this.max, this._displayValue)), g = this.max - this.min === 0 ? 0 : (h - this.min) / (this.max - this.min), _ = e + Math.max(0, Math.min(1, g)) * n, v = this._resolveFillColor(), y = _ > e + .001;
|
|
291
|
+
return r`
|
|
290
292
|
<svg
|
|
291
293
|
viewBox="0 0 ${this.size} ${f}"
|
|
292
294
|
role="img"
|
|
@@ -300,92 +302,95 @@ var m = class extends e {
|
|
|
300
302
|
<path
|
|
301
303
|
class="void-gauge-track"
|
|
302
304
|
style="--gauge-stroke-width: ${this.thickness};"
|
|
303
|
-
d=${
|
|
305
|
+
d=${u(o, s, l, e, t)}
|
|
304
306
|
></path>
|
|
305
307
|
|
|
306
308
|
<!-- Zone bands. Filled variant: zones render full-width and are
|
|
307
309
|
covered by the value's opaque stroke. Outline variant: zones
|
|
308
310
|
under the fill are clipped so the active-zone color reads
|
|
309
311
|
contiguously (otherwise the 14% tint composites through). -->
|
|
310
|
-
${this._renderZones(o, s,
|
|
312
|
+
${this._renderZones(o, s, l, _)}
|
|
311
313
|
|
|
312
314
|
<!-- Value fill (skip when segments are present — segments paint
|
|
313
315
|
their own colors directly). For the 'outline' variant use a
|
|
314
316
|
closed band shape so SVG fill renders the faint tint AND
|
|
315
317
|
stroke renders a hairline border. Other variants use a
|
|
316
318
|
stroked centerline arc. -->
|
|
317
|
-
${y && !this._hasSegments() ?
|
|
319
|
+
${y && !this._hasSegments() ? a`
|
|
318
320
|
<path
|
|
319
321
|
class="void-gauge-value"
|
|
320
322
|
style="--value-color: ${v}; --gauge-stroke-width: ${this.thickness};"
|
|
321
|
-
d=${this.variant === "outline" ?
|
|
323
|
+
d=${this.variant === "outline" ? d(o, s, l, this.thickness, e, _) : u(o, s, l, e, _)}
|
|
322
324
|
></path>
|
|
323
|
-
` :
|
|
325
|
+
` : i}
|
|
324
326
|
|
|
325
327
|
<!-- Segment overlays -->
|
|
326
|
-
${this._renderSegments(o, s,
|
|
328
|
+
${this._renderSegments(o, s, l, e, p, _)}
|
|
327
329
|
|
|
328
330
|
<!-- Tick marks (outside the band) -->
|
|
329
|
-
${this._renderTicks(o, s,
|
|
331
|
+
${this._renderTicks(o, s, l)}
|
|
330
332
|
|
|
331
333
|
<!-- Center label -->
|
|
332
|
-
${this.hideValue ?
|
|
334
|
+
${this.hideValue ? i : this._renderCenter(o, s)}
|
|
333
335
|
|
|
334
336
|
<!-- Hover tooltip -->
|
|
335
|
-
${this._hoverSegment !== null && this._data.segments && this._hoverSegment < this._data.segments.length ? this._renderHoverTooltip(this._data.segments, this._hoverSegment) :
|
|
337
|
+
${this._hoverSegment !== null && this._data.segments && this._hoverSegment < this._data.segments.length ? this._renderHoverTooltip(this._data.segments, this._hoverSegment) : i}
|
|
336
338
|
</svg>
|
|
337
339
|
`;
|
|
338
340
|
}
|
|
339
341
|
_renderHoverTooltip(e, t) {
|
|
340
|
-
let n = e[t], r = this._displaySegments.get(t) ?? n.value,
|
|
341
|
-
return
|
|
342
|
+
let n = e[t], r = this._displaySegments.get(t) ?? n.value, i = [...this._displaySegments.values()].reduce((e, t) => e + t, 0) || this._displayValue || 1, o = Math.round(r / i * 100), s = this._viewBoxHeight(), c = this._hoverX + 12, u = this._hoverY + 12;
|
|
343
|
+
return c + 140 > this.size && (c = this._hoverX - 12 - 140), u + 44 > s && (u = this._hoverY - 12 - 44), c < 0 && (c = 0), u < 0 && (u = 0), a`
|
|
342
344
|
<g class="void-gauge-hover" pointer-events="none">
|
|
343
345
|
<rect
|
|
344
346
|
class="void-gauge-tooltip-bg"
|
|
345
|
-
x=${
|
|
347
|
+
x=${c} y=${u}
|
|
346
348
|
width=${140} height=${44}
|
|
347
349
|
rx="6" ry="6"
|
|
348
350
|
></rect>
|
|
349
351
|
<text
|
|
350
352
|
class="void-gauge-tooltip-name"
|
|
351
|
-
x=${
|
|
353
|
+
x=${c + 8}
|
|
352
354
|
y=${u + 8 + 10}
|
|
353
355
|
>${n.name}</text>
|
|
354
356
|
<text
|
|
355
357
|
class="void-gauge-tooltip-value"
|
|
356
|
-
x=${
|
|
358
|
+
x=${c + 8}
|
|
357
359
|
y=${u + 8 + 14 + 10}
|
|
358
|
-
>${
|
|
360
|
+
>${l(r)} <tspan class="void-gauge-tooltip-pct">(${o}%)</tspan></text>
|
|
359
361
|
</g>
|
|
360
362
|
`;
|
|
361
363
|
}
|
|
362
364
|
};
|
|
363
|
-
t([
|
|
365
|
+
t([o()], h.prototype, "unit", void 0), t([o({
|
|
366
|
+
type: Number,
|
|
367
|
+
reflect: !0
|
|
368
|
+
})], h.prototype, "value", void 0), t([o({ type: Number })], h.prototype, "min", void 0), t([o({ type: Number })], h.prototype, "max", void 0), t([o({
|
|
364
369
|
type: Number,
|
|
365
370
|
reflect: !0
|
|
366
|
-
})],
|
|
371
|
+
})], h.prototype, "size", void 0), t([o({ type: Number })], h.prototype, "thickness", void 0), t([o({ reflect: !0 })], h.prototype, "circular", void 0), t([o({ reflect: !0 })], h.prototype, "variant", void 0), t([o({
|
|
367
372
|
type: Boolean,
|
|
368
373
|
attribute: "hide-value",
|
|
369
374
|
reflect: !0
|
|
370
|
-
})],
|
|
375
|
+
})], h.prototype, "hideValue", void 0), t([o({
|
|
371
376
|
type: Boolean,
|
|
372
377
|
attribute: "unit-inline",
|
|
373
378
|
reflect: !0
|
|
374
|
-
})],
|
|
379
|
+
})], h.prototype, "unitInline", void 0), t([o({
|
|
375
380
|
type: Number,
|
|
376
381
|
attribute: "tick-major"
|
|
377
|
-
})],
|
|
382
|
+
})], h.prototype, "tickMajor", void 0), t([o({
|
|
378
383
|
type: Number,
|
|
379
384
|
attribute: "tick-minor"
|
|
380
|
-
})],
|
|
385
|
+
})], h.prototype, "tickMinor", void 0), t([o({
|
|
381
386
|
type: Boolean,
|
|
382
387
|
attribute: "hide-tick-min",
|
|
383
388
|
reflect: !0
|
|
384
|
-
})],
|
|
389
|
+
})], h.prototype, "hideTickMin", void 0), t([o({
|
|
385
390
|
type: Boolean,
|
|
386
391
|
attribute: "hide-tick-max",
|
|
387
392
|
reflect: !0
|
|
388
|
-
})],
|
|
393
|
+
})], h.prototype, "hideTickMax", void 0), t([o({ attribute: "segments-sort" })], h.prototype, "segmentsSort", void 0), t([o({ converter: {
|
|
389
394
|
fromAttribute(e) {
|
|
390
395
|
if (e === null || e === "" || e === "true") return !0;
|
|
391
396
|
if (e === "false") return !1;
|
|
@@ -395,6 +400,6 @@ t([a()], m.prototype, "unit", void 0), t([a({ type: Number })], m.prototype, "va
|
|
|
395
400
|
toAttribute(e) {
|
|
396
401
|
return e === !0 ? "" : e === !1 ? "false" : String(e);
|
|
397
402
|
}
|
|
398
|
-
} })],
|
|
403
|
+
} })], h.prototype, "gaps", void 0), t([o({ attribute: "aria-label" })], h.prototype, "ariaLabel", void 0), t([o({ attribute: !1 })], h.prototype, "zones", void 0), t([s()], h.prototype, "_phase", void 0), t([s()], h.prototype, "_hoverSegment", void 0), t([s()], h.prototype, "_hoverX", void 0), t([s()], h.prototype, "_hoverY", void 0), customElements.get("void-gauge") || customElements.define("void-gauge", h);
|
|
399
404
|
//#endregion
|
|
400
|
-
export {
|
|
405
|
+
export { h as VoidGauge };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
3
|
import { t as n } from "../chunks/keyboard-activation-CV0m4hkn.js";
|
|
4
4
|
import { i as r, r as i } from "../chunks/form-control-C0vH6gii.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { r as a } from "../chunks/projection-SnR79EHI.js";
|
|
6
|
+
import { html as o } from "lit";
|
|
7
|
+
import { property as s } from "lit/decorators.js";
|
|
7
8
|
//#region src/components/hamburger.ts
|
|
8
|
-
|
|
9
|
+
a();
|
|
10
|
+
var c = class extends e {
|
|
9
11
|
constructor(...e) {
|
|
10
12
|
super(...e), this._activation = new n(this, { disabled: () => i(this) }), this.open = !1, this.size = "md", this._unwatch = null, this._handleClick = () => {
|
|
11
13
|
if (i(this)) return;
|
|
@@ -34,7 +36,7 @@ var s = class extends e {
|
|
|
34
36
|
e.has("open") && (this.setHostAttribute("aria-expanded", String(this.open)), this.setHostAttribute("aria-label", this.open ? "Close menu" : "Menu"));
|
|
35
37
|
}
|
|
36
38
|
render() {
|
|
37
|
-
return
|
|
39
|
+
return o`
|
|
38
40
|
<span class="void-hamburger-lines">
|
|
39
41
|
<span class="void-hamburger-line"></span>
|
|
40
42
|
<span class="void-hamburger-line"></span>
|
|
@@ -43,12 +45,12 @@ var s = class extends e {
|
|
|
43
45
|
`;
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
|
-
t([
|
|
48
|
+
t([s({
|
|
47
49
|
type: Boolean,
|
|
48
50
|
reflect: !0
|
|
49
|
-
})],
|
|
51
|
+
})], c.prototype, "open", void 0), t([s({
|
|
50
52
|
type: String,
|
|
51
53
|
reflect: !0
|
|
52
|
-
})],
|
|
54
|
+
})], c.prototype, "size", void 0), customElements.get("void-hamburger") || customElements.define("void-hamburger", c);
|
|
53
55
|
//#endregion
|
|
54
|
-
export {
|
|
56
|
+
export { c as VoidHamburger };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import { i as n, n as r } from "../chunks/parts-
|
|
4
|
-
import { t as i } from "../chunks/overlay-
|
|
3
|
+
import { i as n, n as r } from "../chunks/parts-DI_3VpSy.js";
|
|
4
|
+
import { t as i } from "../chunks/overlay-hLJ7IQHx.js";
|
|
5
5
|
import { property as a } from "lit/decorators.js";
|
|
6
6
|
//#region src/components/hover-card.ts
|
|
7
7
|
var o = class extends e {
|