@voidable/ui 0.10.0 → 0.12.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/angular/index.d.ts +2 -2
- package/dist/angular/index.js +2 -1
- package/dist/base.d.ts +6 -0
- package/dist/base.js +2 -2
- package/dist/chunks/activation-B8aBarKd.js +4 -0
- package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
- package/dist/chunks/carousel-C9u0bg5l.js +10 -0
- package/dist/chunks/choice-BTrsi7OW.js +16 -0
- package/dist/chunks/data-Baycjoo4.js +96 -0
- package/dist/chunks/fields-MEqz-olE.js +21 -0
- package/dist/chunks/{form-control-C0vH6gii.js → form-control-fL-Hhy91.js} +49 -48
- package/dist/chunks/{keyboard-CEhMSkws.js → keyboard-ChtDvhB_.js} +4 -23
- package/dist/chunks/{keyboard-activation-CV0m4hkn.js → keyboard-activation-BfEyoaMT.js} +4 -6
- package/dist/chunks/menu-CxRRgkJI.js +21 -0
- package/dist/chunks/{modal-CgGp_fCs.js → modal-Cz2-Ov76.js} +24 -16
- package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
- package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-BuV-4Yvt.js} +76 -69
- package/dist/chunks/overlay-K1ilWC1p.js +4 -0
- package/dist/chunks/pickers-CjlFgNke.js +36 -0
- package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
- package/dist/chunks/table-BBpqwWEi.js +4 -0
- package/dist/chunks/tabs-Buf3EBWq.js +10 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.js +23 -15
- package/dist/components/action-input.d.ts +2 -1
- package/dist/components/action-input.js +60 -56
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +10 -3
- package/dist/components/avatar.js +2 -2
- 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 +10 -3
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +68 -45
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +16 -12
- package/dist/components/button.d.ts +7 -0
- package/dist/components/button.js +24 -17
- package/dist/components/calendar.d.ts +85 -12
- package/dist/components/calendar.js +263 -120
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +22 -0
- package/dist/components/carousel.js +66 -37
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +23 -22
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.js +30 -25
- package/dist/components/collapsible.d.ts +7 -0
- package/dist/components/collapsible.js +20 -12
- package/dist/components/color-picker.js +29 -28
- package/dist/components/combobox.d.ts +13 -1
- package/dist/components/combobox.js +55 -42
- package/dist/components/compose-input.d.ts +9 -1
- package/dist/components/compose-input.js +29 -17
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +2 -2
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +97 -70
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.d.ts +22 -0
- package/dist/components/dropdown-menu.js +55 -40
- package/dist/components/editable.d.ts +11 -1
- package/dist/components/editable.js +36 -23
- package/dist/components/error-fallback.d.ts +4 -2
- package/dist/components/error-fallback.js +35 -29
- package/dist/components/field.js +2 -2
- package/dist/components/file-upload.d.ts +29 -5
- package/dist/components/file-upload.js +84 -28
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +206 -133
- package/dist/components/hamburger.d.ts +19 -1
- package/dist/components/hamburger.js +45 -25
- package/dist/components/hover-card.d.ts +7 -0
- package/dist/components/hover-card.js +23 -15
- package/dist/components/indicator.js +16 -15
- package/dist/components/input.js +3 -3
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +80 -57
- package/dist/components/list.js +1 -1
- package/dist/components/menu.d.ts +25 -0
- package/dist/components/menu.js +56 -34
- package/dist/components/multiselect.d.ts +17 -1
- package/dist/components/multiselect.js +97 -75
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.d.ts +9 -0
- package/dist/components/nav-menu.js +31 -24
- package/dist/components/number-input.d.ts +15 -1
- package/dist/components/number-input.js +72 -38
- package/dist/components/pagination.js +26 -25
- package/dist/components/panel.js +1 -1
- package/dist/components/pin-input.d.ts +11 -0
- package/dist/components/pin-input.js +47 -33
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +22 -14
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-group.js +3 -3
- package/dist/components/radio.d.ts +10 -1
- package/dist/components/radio.js +38 -33
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/segmented-control.d.ts +14 -0
- package/dist/components/segmented-control.js +41 -29
- package/dist/components/select.js +2 -2
- package/dist/components/sidebar.d.ts +1 -0
- package/dist/components/sidebar.js +15 -11
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +3 -3
- package/dist/components/spinner.d.ts +5 -3
- package/dist/components/spinner.js +22 -15
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +28 -20
- package/dist/components/status-dot.d.ts +2 -2
- package/dist/components/status-dot.js +13 -15
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +21 -14
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/switch.js +25 -17
- package/dist/components/table.d.ts +81 -1
- package/dist/components/table.js +571 -69
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.js +43 -34
- package/dist/components/tag.js +13 -12
- package/dist/components/tags-input.d.ts +10 -1
- package/dist/components/tags-input.js +43 -31
- package/dist/components/textarea.js +3 -3
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +36 -29
- package/dist/components/toggle-group.d.ts +8 -0
- package/dist/components/toggle-group.js +25 -18
- package/dist/components/toggle.d.ts +7 -0
- package/dist/components/toggle.js +24 -16
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.js +21 -13
- package/dist/components.json +108 -84
- package/dist/custom-elements.json +4520 -236
- package/dist/dev/rules.d.ts +0 -1
- package/dist/dev/types.d.ts +5 -1
- package/dist/dev.js +298 -122
- package/dist/index.d.ts +4 -0
- package/dist/index.js +69 -67
- package/dist/keyboard-activation.d.ts +9 -9
- package/dist/keyboard.d.ts +2 -10
- package/dist/keymaps/activation.d.ts +8 -0
- package/dist/keymaps/carousel.d.ts +9 -0
- package/dist/keymaps/choice.d.ts +21 -0
- package/dist/keymaps/fields.d.ts +31 -0
- package/dist/keymaps/index.d.ts +2 -0
- package/dist/keymaps/menu.d.ts +36 -0
- package/dist/keymaps/nav-menu.d.ts +11 -0
- package/dist/keymaps/overlay.d.ts +4 -0
- package/dist/keymaps/pickers.d.ts +36 -0
- package/dist/keymaps/table.d.ts +8 -0
- package/dist/keymaps/tabs.d.ts +7 -0
- package/dist/keymaps.js +51 -0
- package/dist/keys.d.ts +46 -0
- package/dist/keys.js +57 -0
- package/dist/llms.txt +11 -3
- package/dist/messages/ar.d.ts +1 -0
- package/dist/messages/ar.js +130 -0
- package/dist/messages/fr.d.ts +1 -0
- package/dist/messages/fr.js +109 -0
- package/dist/messages.d.ts +213 -0
- package/dist/messages.js +190 -0
- package/dist/modal.d.ts +7 -0
- package/dist/reference.md +885 -60
- package/dist/testing/index.d.ts +46 -0
- package/dist/testing.js +79 -0
- package/dist/types/elements.d.ts +100 -84
- package/dist/types/react.d.ts +7 -3
- package/dist/types/solid.d.ts +7 -3
- package/dist/types/solid2.d.ts +4 -0
- package/dist/types/svelte.d.ts +7 -3
- package/dist/types/vue.d.ts +7 -3
- package/dist/vscode.html-custom-data.json +478 -38
- package/dist/web-types.json +1001 -111
- package/package.json +22 -2
|
@@ -1,53 +1,56 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { msg as n } from "../messages.js";
|
|
4
|
+
import { r } from "../chunks/projection-oPe6ipjL.js";
|
|
5
|
+
import { i, n as a, o, r as s, s as c, t as l } from "../chunks/data-Baycjoo4.js";
|
|
6
|
+
import { t as u } from "../chunks/shape-C_LW7EjG.js";
|
|
7
|
+
import { html as d, nothing as f, svg as p } from "lit";
|
|
8
|
+
import { property as m, state as h } from "lit/decorators.js";
|
|
9
|
+
import { guard as g } from "lit/directives/guard.js";
|
|
7
10
|
//#region src/components/donut-chart.ts
|
|
8
|
-
|
|
9
|
-
function
|
|
11
|
+
r();
|
|
12
|
+
function _(e) {
|
|
10
13
|
return Number.isFinite(e) ? e : 0;
|
|
11
14
|
}
|
|
12
|
-
function
|
|
15
|
+
function v(e) {
|
|
13
16
|
return 1 - (1 - e) ** 3;
|
|
14
17
|
}
|
|
15
|
-
function
|
|
18
|
+
function y(e) {
|
|
16
19
|
return Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
|
|
17
20
|
}
|
|
18
|
-
function
|
|
21
|
+
function b(e) {
|
|
19
22
|
return Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
|
|
20
23
|
}
|
|
21
|
-
var
|
|
24
|
+
var x = class extends e {
|
|
22
25
|
constructor(...e) {
|
|
23
|
-
super(...e), this.size = 220, this.inner = .6, this.gaps = !1, this.variant = "filled", this.showValue = !1, this.showTotal = !1, this.ariaLabel = "", this._data = { segments: [] }, this._phase = "pre", this._hoverSegment = null, this._hoverX = 0, this._hoverY = 0, this._progress = 0, this._progressFrom = 0, this._displayValues = /* @__PURE__ */ new Map(), this._targetValues = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._displayTotal = 0, this._displayTotalFrom = 0, this._targetTotal = 0, this._animStart = 0, this._animDuration = 0, this._rafHandle = 0, this._onMouseMove = (e) => {
|
|
26
|
+
super(...e), this.size = 220, this.inner = .6, this.gaps = !1, this.variant = "filled", this.showValue = !1, this.showTotal = !1, this.ariaLabel = "", this.showTable = !1, this._data = { segments: [] }, this._source = { text: null }, this._entered = !1, this._phase = "pre", this._hoverSegment = null, this._hoverX = 0, this._hoverY = 0, this._progress = 0, this._progressFrom = 0, this._displayValues = /* @__PURE__ */ new Map(), this._targetValues = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._displayTotal = 0, this._displayTotalFrom = 0, this._targetTotal = 0, this._animStart = 0, this._animDuration = 0, this._rafHandle = 0, this._onMouseMove = (e) => {
|
|
24
27
|
let t = this.querySelector("svg");
|
|
25
28
|
if (!t) return;
|
|
26
29
|
let n = this._data.segments;
|
|
27
30
|
if (n.length === 0 || this._displayTotal <= 0) return;
|
|
28
31
|
let r = t.getBoundingClientRect();
|
|
29
32
|
if (r.width === 0) return;
|
|
30
|
-
let i = (e.clientX - r.left) / r.width * this.size, a = (e.clientY - r.top) / r.height * this.size, o = this.size / 2, s = this.size / 2, c = i - o,
|
|
31
|
-
if (
|
|
33
|
+
let i = (e.clientX - r.left) / r.width * this.size, a = (e.clientY - r.top) / r.height * this.size, o = this.size / 2, s = this.size / 2, c = i - o, l = a - s, u = Math.sqrt(c * c + l * l), d = this.size / 2 - 4;
|
|
34
|
+
if (u < d * this.inner || u > d) {
|
|
32
35
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
+
let f = Math.atan2(l, c) - -Math.PI / 2;
|
|
39
|
+
f < 0 && (f += 2 * Math.PI);
|
|
40
|
+
let p = 2 * Math.PI, m = 0;
|
|
38
41
|
for (let e = 0; e < n.length; e++) {
|
|
39
|
-
let t =
|
|
40
|
-
if (
|
|
42
|
+
let t = _(n[e].value) / this._targetTotal * p;
|
|
43
|
+
if (f >= m && f < m + t) {
|
|
41
44
|
this._hoverSegment !== e && (this._hoverSegment = e), this._hoverX = i, this._hoverY = a;
|
|
42
45
|
return;
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
m += t;
|
|
45
48
|
}
|
|
46
49
|
this._hoverSegment !== null && (this._hoverSegment = null);
|
|
47
50
|
}, this._onMouseLeave = () => {
|
|
48
51
|
this._hoverSegment = null;
|
|
49
52
|
}, this._tick = (e) => {
|
|
50
|
-
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r =
|
|
53
|
+
let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r = v(n);
|
|
51
54
|
this._progress = this._progressFrom + (1 - this._progressFrom) * r;
|
|
52
55
|
for (let [e, t] of this._targetValues) {
|
|
53
56
|
let n = this._animFrom.get(e) ?? 0;
|
|
@@ -60,23 +63,35 @@ var p = class extends e {
|
|
|
60
63
|
return this._data;
|
|
61
64
|
}
|
|
62
65
|
set data(e) {
|
|
63
|
-
let t =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
let t = o(e, this._source, {
|
|
67
|
+
attr: "data",
|
|
68
|
+
shape: "{\"segments\":[{\"name\":\"Search\",\"value\":40},{\"name\":\"Direct\",\"value\":25}]}",
|
|
69
|
+
empty: () => ({ segments: [] }),
|
|
70
|
+
normalize: (e) => {
|
|
71
|
+
if (!s(e)) return null;
|
|
72
|
+
let t = i(e.segments ?? []);
|
|
73
|
+
return t ? { segments: t } : null;
|
|
74
|
+
},
|
|
75
|
+
warn: (e, t) => this.reportDev("invalid-data", e, t)
|
|
76
|
+
});
|
|
77
|
+
if (!t) return;
|
|
78
|
+
let n = t.value, r = this._data.segments, a = this._progress, c = new Map(this._displayValues), l = this._displayTotal;
|
|
79
|
+
this._data = n, this._refreshTargets(), this.requestUpdate(), this._entered && this.updateComplete.then(() => {
|
|
80
|
+
let e = /* @__PURE__ */ new Map();
|
|
81
|
+
for (let t = 0; t < r.length; t++) e.set(t, c.get(t) ?? 0);
|
|
82
|
+
for (let t = 0; t < n.segments.length; t++) e.has(t) || e.set(t, 0);
|
|
83
|
+
this._startAnimation(e, l, a >= 1 ? 1 : a, !1);
|
|
69
84
|
});
|
|
70
85
|
}
|
|
71
86
|
_refreshTargets() {
|
|
72
87
|
this._targetValues.clear();
|
|
73
88
|
let e = this._data.segments;
|
|
74
|
-
for (let t = 0; t < e.length; t++) this._targetValues.set(t,
|
|
75
|
-
this._targetTotal = e.reduce((e, t) => e +
|
|
89
|
+
for (let t = 0; t < e.length; t++) this._targetValues.set(t, _(e[t].value));
|
|
90
|
+
this._targetTotal = e.reduce((e, t) => e + _(t.value), 0);
|
|
76
91
|
}
|
|
77
92
|
connectedCallback() {
|
|
78
|
-
super.connectedCallback(), this.setHostAttribute("role", "
|
|
79
|
-
this._startAnimation(/* @__PURE__ */ new Map(), 0, 0, !0);
|
|
93
|
+
super.connectedCallback(), this.setHostAttribute("role", "figure"), this._refreshTargets(), requestAnimationFrame(() => {
|
|
94
|
+
this._entered = !0, this._startAnimation(/* @__PURE__ */ new Map(), 0, 0, !0);
|
|
80
95
|
}), this.addEventListener("mousemove", this._onMouseMove), this.addEventListener("mouseleave", this._onMouseLeave);
|
|
81
96
|
}
|
|
82
97
|
disconnectedCallback() {
|
|
@@ -92,82 +107,90 @@ var p = class extends e {
|
|
|
92
107
|
this._phase = "animating", this._rafHandle = requestAnimationFrame(this._tick);
|
|
93
108
|
}
|
|
94
109
|
render() {
|
|
95
|
-
let { segments: e } = this._data, t = e.reduce((e, t) => e +
|
|
96
|
-
if (e.length === 0 || t === 0) return
|
|
97
|
-
let n = this.size / 2,
|
|
110
|
+
let { segments: e } = this._data, t = e.reduce((e, t) => e + _(t.value), 0);
|
|
111
|
+
if (e.length === 0 || t === 0) return d`<svg viewBox="0 0 ${this.size} ${this.size}" aria-hidden="true"></svg>${this._table()}`;
|
|
112
|
+
let n = this.size / 2, r = this.size / 2, i = this.size / 2 - 4, a = i * this.inner, o = Math.max(this._displayTotal, .001), s = 2 * Math.PI, c = -Math.PI / 2 + this._progress * s, l = (this.gaps === !0 ? 1 : this.gaps === !1 ? 0 : this.gaps) / 100 * s, m = e.filter((e, t) => (this._displayValues.get(t) ?? 0) > 0).length, h = (m > 1 ? l / e.length : 0) / 2, g = [], v = -Math.PI / 2;
|
|
98
113
|
for (let t = 0; t < e.length; t++) {
|
|
99
|
-
let
|
|
100
|
-
if (
|
|
101
|
-
let e =
|
|
102
|
-
|
|
114
|
+
let l = e[t], d = this._displayValues.get(t) ?? 0, f = v, _ = f + d / o * s, y = Math.min(_, c);
|
|
115
|
+
if (y > f + .001) {
|
|
116
|
+
let e = l.color ?? `var(--void-chart-series-${t % 6 + 1})`, o = f + h, c = m === 1 && y >= f + s - 1e-9 ? o + s : Math.max(o + .001, y - h);
|
|
117
|
+
g.push(p`
|
|
103
118
|
<path
|
|
104
119
|
class="void-donut-chart-segment"
|
|
105
|
-
d=${
|
|
120
|
+
d=${u(n, r, i, o, c, a)}
|
|
106
121
|
style="--segment-color: ${e}"
|
|
107
122
|
data-segment-index=${t}
|
|
108
123
|
></path>
|
|
109
124
|
`);
|
|
110
125
|
}
|
|
111
|
-
|
|
126
|
+
v = _;
|
|
112
127
|
}
|
|
113
|
-
return
|
|
128
|
+
return d`
|
|
114
129
|
<svg
|
|
115
130
|
viewBox="0 0 ${this.size} ${this.size}"
|
|
116
|
-
|
|
117
|
-
aria-label=${this.ariaLabel || "Donut chart"}
|
|
131
|
+
aria-hidden="true"
|
|
118
132
|
data-phase=${this._phase}
|
|
119
133
|
>
|
|
120
|
-
${
|
|
121
|
-
${this.showTotal ?
|
|
134
|
+
${g}
|
|
135
|
+
${this.showTotal ? p`
|
|
122
136
|
<g class="void-donut-chart-total">
|
|
123
|
-
<text x=${n} y=${
|
|
137
|
+
<text x=${n} y=${r} text-anchor="middle" dy="0.32em">${y(this._displayTotal)}</text>
|
|
124
138
|
</g>
|
|
125
|
-
` :
|
|
126
|
-
${this.showValue ?
|
|
139
|
+
` : f}
|
|
140
|
+
${this.showValue ? p`
|
|
127
141
|
<g class="void-donut-chart-labels">
|
|
128
142
|
${e.map((e, t) => {
|
|
129
|
-
let
|
|
130
|
-
if (
|
|
131
|
-
let
|
|
132
|
-
for (let e = 0; e < t; e++)
|
|
133
|
-
let
|
|
134
|
-
return
|
|
143
|
+
let c = this._displayValues.get(t) ?? 0;
|
|
144
|
+
if (c < .001) return f;
|
|
145
|
+
let l = -Math.PI / 2;
|
|
146
|
+
for (let e = 0; e < t; e++) l += (this._displayValues.get(e) ?? 0) / o * s;
|
|
147
|
+
let u = l + c / o * s / 2, d = (i + a) / 2;
|
|
148
|
+
return p`<text x=${n + d * Math.cos(u)} y=${r + d * Math.sin(u)} text-anchor="middle" dy="0.32em">${b(c)}</text>`;
|
|
135
149
|
})}
|
|
136
150
|
</g>
|
|
137
|
-
` :
|
|
151
|
+
` : f}
|
|
138
152
|
|
|
139
|
-
${this._hoverSegment !== null && this._hoverSegment < e.length ? this._renderHoverTooltip(e, this._hoverSegment) :
|
|
153
|
+
${this._hoverSegment !== null && this._hoverSegment < e.length ? this._renderHoverTooltip(e, this._hoverSegment) : f}
|
|
140
154
|
</svg>
|
|
155
|
+
${this._table()}
|
|
141
156
|
`;
|
|
142
157
|
}
|
|
158
|
+
_table() {
|
|
159
|
+
let e = this._data.segments, t = this.ariaLabel || n(this, "chart.donut");
|
|
160
|
+
return g([
|
|
161
|
+
e,
|
|
162
|
+
t,
|
|
163
|
+
l(this)
|
|
164
|
+
], () => a("void-donut-chart-table", c(this, t, e)));
|
|
165
|
+
}
|
|
143
166
|
_renderHoverTooltip(e, t) {
|
|
144
|
-
let n = e[t], r = this._displayValues.get(t) ??
|
|
145
|
-
return
|
|
167
|
+
let n = e[t], r = this._displayValues.get(t) ?? _(n.value), i = [...this._displayValues.values()].reduce((e, t) => e + t, 0) || this._targetTotal || 1, a = Math.round(r / i * 100), o = this.size / 2, s = this._hoverX < o ? this.size - 140 - 8 : 8, c = this._hoverY - 44 / 2;
|
|
168
|
+
return c < 8 && (c = 8), c + 44 > this.size - 8 && (c = this.size - 44 - 8), p`
|
|
146
169
|
<g class="void-donut-chart-hover" pointer-events="none">
|
|
147
170
|
<rect
|
|
148
171
|
class="void-donut-chart-tooltip-bg"
|
|
149
|
-
x=${
|
|
172
|
+
x=${s} y=${c}
|
|
150
173
|
width=${140} height=${44}
|
|
151
174
|
rx="6" ry="6"
|
|
152
175
|
></rect>
|
|
153
176
|
<text
|
|
154
177
|
class="void-donut-chart-tooltip-name"
|
|
155
|
-
x=${
|
|
156
|
-
y=${
|
|
178
|
+
x=${s + 8}
|
|
179
|
+
y=${c + 8 + 10}
|
|
157
180
|
>${n.name}</text>
|
|
158
181
|
<text
|
|
159
182
|
class="void-donut-chart-tooltip-value"
|
|
160
|
-
x=${
|
|
161
|
-
y=${
|
|
162
|
-
>${
|
|
183
|
+
x=${s + 8}
|
|
184
|
+
y=${c + 8 + 14 + 10}
|
|
185
|
+
>${b(r)} <tspan class="void-donut-chart-tooltip-pct">(${a}%)</tspan></text>
|
|
163
186
|
</g>
|
|
164
187
|
`;
|
|
165
188
|
}
|
|
166
189
|
};
|
|
167
|
-
t([
|
|
190
|
+
t([m({
|
|
168
191
|
type: Number,
|
|
169
192
|
reflect: !0
|
|
170
|
-
})],
|
|
193
|
+
})], x.prototype, "size", void 0), t([m({ type: Number })], x.prototype, "inner", void 0), t([m({ converter: {
|
|
171
194
|
fromAttribute(e) {
|
|
172
195
|
if (e === null || e === "" || e === "true") return !0;
|
|
173
196
|
if (e === "false") return !1;
|
|
@@ -177,14 +200,18 @@ t([s({
|
|
|
177
200
|
toAttribute(e) {
|
|
178
201
|
return e === !0 ? "" : e === !1 ? "false" : String(e);
|
|
179
202
|
}
|
|
180
|
-
} })],
|
|
203
|
+
} })], x.prototype, "gaps", void 0), t([m({ reflect: !0 })], x.prototype, "variant", void 0), t([m({
|
|
181
204
|
type: Boolean,
|
|
182
205
|
attribute: "show-value",
|
|
183
206
|
reflect: !0
|
|
184
|
-
})],
|
|
207
|
+
})], x.prototype, "showValue", void 0), t([m({
|
|
185
208
|
type: Boolean,
|
|
186
209
|
attribute: "show-total",
|
|
187
210
|
reflect: !0
|
|
188
|
-
})],
|
|
211
|
+
})], x.prototype, "showTotal", void 0), t([m({ attribute: "aria-label" })], x.prototype, "ariaLabel", void 0), t([m({
|
|
212
|
+
type: Boolean,
|
|
213
|
+
attribute: "show-table",
|
|
214
|
+
reflect: !0
|
|
215
|
+
})], x.prototype, "showTable", void 0), t([m({ attribute: "data" })], x.prototype, "data", null), t([h()], x.prototype, "_phase", void 0), t([h()], x.prototype, "_hoverSegment", void 0), t([h()], x.prototype, "_hoverX", void 0), t([h()], x.prototype, "_hoverY", void 0), customElements.get("void-donut-chart") || customElements.define("void-donut-chart", x);
|
|
189
216
|
//#endregion
|
|
190
|
-
export {
|
|
217
|
+
export { x as VoidDonutChart };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/decorate-CaYbmmmm.js";
|
|
2
|
-
import { t } from "../chunks/modal-
|
|
2
|
+
import { t } from "../chunks/modal-Cz2-Ov76.js";
|
|
3
3
|
import { property as n } from "lit/decorators.js";
|
|
4
4
|
//#region src/components/drawer.ts
|
|
5
5
|
var r = class extends t {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VoidElement } from '../base.js';
|
|
2
2
|
import { KeyboardActivation } from '../keyboard-activation.js';
|
|
3
|
+
import { KeyOverrides } from '../keys.js';
|
|
3
4
|
import { OverlayController } from '../overlay.js';
|
|
4
5
|
import { PartsController } from '../parts.js';
|
|
5
6
|
/**
|
|
@@ -24,6 +25,21 @@ import { PartsController } from '../parts.js';
|
|
|
24
25
|
* The menu is closing. Cancelable when the user caused it (every reason but `parent` and `api`).
|
|
25
26
|
*/
|
|
26
27
|
export declare class VoidDropdownMenu extends VoidElement {
|
|
28
|
+
/** Key bindings for this element's actions, as JSON (`{"close":[]}`); `[]` switches an action off. See the keyboard guide. */
|
|
29
|
+
keys: KeyOverrides | null;
|
|
30
|
+
/** @internal The actions of this element and their default keys. */
|
|
31
|
+
static readonly keyMap: {
|
|
32
|
+
leave: string[];
|
|
33
|
+
next: string[];
|
|
34
|
+
previous: string[];
|
|
35
|
+
first: string[];
|
|
36
|
+
last: string[];
|
|
37
|
+
typeahead: string[];
|
|
38
|
+
close: string[];
|
|
39
|
+
open: string[];
|
|
40
|
+
openLast: string[];
|
|
41
|
+
activate: string[];
|
|
42
|
+
};
|
|
27
43
|
/** Whether the menu is open. A click on the trigger toggles it; choosing an item, Escape, Tab or a press outside closes it. */
|
|
28
44
|
open: boolean;
|
|
29
45
|
/** Side of the trigger the menu opens on; it flips to the opposite side when there is no room. */
|
|
@@ -61,6 +77,12 @@ export declare class VoidDropdownMenu extends VoidElement {
|
|
|
61
77
|
* @fires {CustomEvent<{ item: VoidDropdownMenuItem; value: string }>} void-select - The item was chosen.
|
|
62
78
|
*/
|
|
63
79
|
export declare class VoidDropdownMenuItem extends VoidElement {
|
|
80
|
+
/** Key bindings for this element's actions, as JSON (`{"activate":["Enter"]}`); `[]` switches an action off. See the keyboard guide. */
|
|
81
|
+
keys: KeyOverrides | null;
|
|
82
|
+
/** @internal The actions of this element and their default keys. */
|
|
83
|
+
static readonly keyMap: {
|
|
84
|
+
activate: string[];
|
|
85
|
+
};
|
|
64
86
|
/** What the item stands for, passed as `detail.value` of `void-select` (empty when not set). */
|
|
65
87
|
value: string;
|
|
66
88
|
/** Enter and Space fire a real `click`, as on a native button. */
|
|
@@ -1,14 +1,17 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { actionFor as n, keysConverter as r } from "../keys.js";
|
|
4
|
+
import { t as i } from "../chunks/keyboard-activation-BfEyoaMT.js";
|
|
5
|
+
import { t as a } from "../chunks/activation-B8aBarKd.js";
|
|
6
|
+
import { i as o, n as s } from "../chunks/parts-DI_3VpSy.js";
|
|
7
|
+
import { r as c, t as l } from "../chunks/keyboard-ChtDvhB_.js";
|
|
8
|
+
import { t as u } from "../chunks/overlay-BuV-4Yvt.js";
|
|
9
|
+
import { n as d, r as f, t as p } from "../chunks/menu-CxRRgkJI.js";
|
|
10
|
+
import { property as m } from "lit/decorators.js";
|
|
8
11
|
//#region src/components/dropdown-menu.ts
|
|
9
|
-
var
|
|
12
|
+
var h = class extends e {
|
|
10
13
|
constructor(...e) {
|
|
11
|
-
super(...e), this.open = !1, this.side = "bottom", this.align = "start", this._parts = new
|
|
14
|
+
super(...e), this.keys = null, this.open = !1, this.side = "bottom", this.align = "start", this._parts = new s(this, {
|
|
12
15
|
tags: [
|
|
13
16
|
"void-dropdown-menu-trigger",
|
|
14
17
|
"void-dropdown-menu-content",
|
|
@@ -18,7 +21,7 @@ var u = class extends e {
|
|
|
18
21
|
onChange: () => {
|
|
19
22
|
this._wire(), this.requestUpdate();
|
|
20
23
|
}
|
|
21
|
-
}), this._focusLast = !1, this._typeahead = new
|
|
24
|
+
}), this._focusLast = !1, this._typeahead = new l(), this._overlay = new u(this, {
|
|
22
25
|
kind: "menu",
|
|
23
26
|
surface: () => this._content(),
|
|
24
27
|
isOpen: () => this.open,
|
|
@@ -46,34 +49,37 @@ var u = class extends e {
|
|
|
46
49
|
t && t.contains(e.target) && this._overlay.toggle("trigger");
|
|
47
50
|
}, this._handleSelect = (e) => {
|
|
48
51
|
let t = e.target;
|
|
49
|
-
!(t instanceof
|
|
52
|
+
!(t instanceof _) || !this._parts.owns(t) || t.keepOpen || this._overlay.requestClose("select");
|
|
50
53
|
}, this._handleKeydown = (e) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
let t = e.target, r = this._triggerEl;
|
|
55
|
+
if (r && this._parts.one("void-dropdown-menu-trigger")?.contains(t)) {
|
|
56
|
+
let i = n(this, e, f);
|
|
57
|
+
i === "open" || i === "openLast" ? (e.preventDefault(), this._openAndFocus(i === "open" ? "first" : "last")) : i === "activate" && !g(r, t) && (e.preventDefault(), this.open ? this._overlay.requestClose("trigger") : this._openAndFocus("first"));
|
|
55
58
|
return;
|
|
56
59
|
}
|
|
57
|
-
let
|
|
58
|
-
if (!this.open || !
|
|
59
|
-
let
|
|
60
|
-
if (
|
|
61
|
-
else if (
|
|
62
|
-
else if (
|
|
63
|
-
else if (
|
|
64
|
-
else if (
|
|
60
|
+
let i = this._content(), a = t.closest("void-dropdown-menu-item");
|
|
61
|
+
if (!this.open || !i?.contains(t) || !a) return;
|
|
62
|
+
let o = this._items(), s = o.indexOf(a), l = o.map(() => !1), u, p = n(this, e, d);
|
|
63
|
+
if (p === "next") u = o[c(l, s, 1)];
|
|
64
|
+
else if (p === "previous") u = o[c(l, s, -1)];
|
|
65
|
+
else if (p === "first") u = o[0];
|
|
66
|
+
else if (p === "last") u = o[o.length - 1];
|
|
67
|
+
else if (p === "leave") {
|
|
65
68
|
this._overlay.requestClose("blur");
|
|
66
69
|
return;
|
|
67
|
-
} else if (
|
|
68
|
-
let t = this._typeahead.match(e.key,
|
|
69
|
-
t >= 0 && (e.preventDefault(),
|
|
70
|
+
} else if (p === "typeahead" && e.key !== " ") {
|
|
71
|
+
let t = this._typeahead.match(e.key, o.map((e) => e.textContent ?? ""), l, s);
|
|
72
|
+
t >= 0 && (e.preventDefault(), o[t].focus());
|
|
70
73
|
return;
|
|
71
74
|
} else return;
|
|
72
75
|
e.preventDefault(), u?.focus();
|
|
73
76
|
};
|
|
74
77
|
}
|
|
78
|
+
static {
|
|
79
|
+
this.keyMap = p;
|
|
80
|
+
}
|
|
75
81
|
get _triggerEl() {
|
|
76
|
-
return
|
|
82
|
+
return o(this._parts.one("void-dropdown-menu-trigger"));
|
|
77
83
|
}
|
|
78
84
|
_content() {
|
|
79
85
|
return this._parts.one("void-dropdown-menu-content");
|
|
@@ -103,24 +109,27 @@ var u = class extends e {
|
|
|
103
109
|
this._focusLast = e === "last", this._overlay.requestOpen("keyboard");
|
|
104
110
|
}
|
|
105
111
|
};
|
|
106
|
-
t([
|
|
112
|
+
t([m({
|
|
113
|
+
attribute: "keys",
|
|
114
|
+
converter: r
|
|
115
|
+
})], h.prototype, "keys", void 0), t([m({
|
|
107
116
|
type: Boolean,
|
|
108
117
|
reflect: !0
|
|
109
|
-
})],
|
|
118
|
+
})], h.prototype, "open", void 0), t([m({
|
|
110
119
|
type: String,
|
|
111
120
|
reflect: !0
|
|
112
|
-
})],
|
|
121
|
+
})], h.prototype, "side", void 0), t([m({
|
|
113
122
|
type: String,
|
|
114
123
|
reflect: !0
|
|
115
|
-
})],
|
|
116
|
-
function
|
|
124
|
+
})], h.prototype, "align", void 0);
|
|
125
|
+
function g(e, t) {
|
|
117
126
|
let n = t.closest("button, a[href], input, summary");
|
|
118
127
|
return !!n && e.contains(n);
|
|
119
128
|
}
|
|
120
|
-
customElements.get("void-dropdown-menu") || customElements.define("void-dropdown-menu",
|
|
121
|
-
var
|
|
129
|
+
customElements.get("void-dropdown-menu") || customElements.define("void-dropdown-menu", h);
|
|
130
|
+
var _ = class extends e {
|
|
122
131
|
constructor(...e) {
|
|
123
|
-
super(...e), this.value = "", this._activation = new
|
|
132
|
+
super(...e), this.keys = null, this.value = "", this._activation = new i(this, { disabled: () => this.disabled }), this.disabled = !1, this.destructive = !1, this.keepOpen = !1, this._handleClick = (e) => {
|
|
124
133
|
if (this.disabled) {
|
|
125
134
|
e.stopImmediatePropagation();
|
|
126
135
|
return;
|
|
@@ -135,6 +144,9 @@ var f = class extends e {
|
|
|
135
144
|
}));
|
|
136
145
|
};
|
|
137
146
|
}
|
|
147
|
+
static {
|
|
148
|
+
this.keyMap = a;
|
|
149
|
+
}
|
|
138
150
|
connectedCallback() {
|
|
139
151
|
super.connectedCallback(), this.setHostAttribute("role", "menuitem"), this.setHostAttribute("tabindex", "-1"), this.addEventListener("click", this._handleClick);
|
|
140
152
|
}
|
|
@@ -145,19 +157,22 @@ var f = class extends e {
|
|
|
145
157
|
e.has("disabled") && this.setHostAttribute("aria-disabled", this.disabled ? "true" : null);
|
|
146
158
|
}
|
|
147
159
|
};
|
|
148
|
-
t([
|
|
160
|
+
t([m({
|
|
161
|
+
attribute: "keys",
|
|
162
|
+
converter: r
|
|
163
|
+
})], _.prototype, "keys", void 0), t([m({
|
|
149
164
|
type: String,
|
|
150
165
|
reflect: !0
|
|
151
|
-
})],
|
|
166
|
+
})], _.prototype, "value", void 0), t([m({
|
|
152
167
|
type: Boolean,
|
|
153
168
|
reflect: !0
|
|
154
|
-
})],
|
|
169
|
+
})], _.prototype, "disabled", void 0), t([m({
|
|
155
170
|
type: Boolean,
|
|
156
171
|
reflect: !0
|
|
157
|
-
})],
|
|
172
|
+
})], _.prototype, "destructive", void 0), t([m({
|
|
158
173
|
type: Boolean,
|
|
159
174
|
reflect: !0,
|
|
160
175
|
attribute: "keep-open"
|
|
161
|
-
})],
|
|
176
|
+
})], _.prototype, "keepOpen", void 0), customElements.get("void-dropdown-menu-item") || customElements.define("void-dropdown-menu-item", _);
|
|
162
177
|
//#endregion
|
|
163
|
-
export {
|
|
178
|
+
export { h as VoidDropdownMenu, _ as VoidDropdownMenuItem };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VoidElement } from '../base.js';
|
|
2
|
+
import { KeyOverrides } from '../keys.js';
|
|
2
3
|
declare const VoidEditable_base: (new (...args: any[]) => import('../form-control.js').VoidInternalsFormControl) & typeof VoidElement;
|
|
3
4
|
/**
|
|
4
5
|
* Inline editable text for renaming items, editing headings, and click-to-edit table cells.
|
|
@@ -9,6 +10,14 @@ declare const VoidEditable_base: (new (...args: any[]) => import('../form-contro
|
|
|
9
10
|
* the previous value. Use `both` (default) or `blur` to commit on blur.
|
|
10
11
|
*/
|
|
11
12
|
export declare class VoidEditable extends VoidEditable_base {
|
|
13
|
+
/** Key bindings for this element's actions, as JSON (`{"cancel":[]}`); `[]` switches an action off. See the keyboard guide. */
|
|
14
|
+
keys: KeyOverrides | null;
|
|
15
|
+
/** @internal The actions of this element and their default keys. */
|
|
16
|
+
static readonly keyMap: {
|
|
17
|
+
submit: string[];
|
|
18
|
+
cancel: string[];
|
|
19
|
+
activate: string[];
|
|
20
|
+
};
|
|
12
21
|
/** The host's `aria-label` / `aria-labelledby` name the inner control. */
|
|
13
22
|
static labelTarget: string;
|
|
14
23
|
/** While focus is inside, a morph does not apply the server's value over what the user is typing. */
|
|
@@ -25,8 +34,9 @@ export declare class VoidEditable extends VoidEditable_base {
|
|
|
25
34
|
editing: boolean;
|
|
26
35
|
/** Stop the field entering edit mode and exclude the value from the form submission. */
|
|
27
36
|
disabled: boolean;
|
|
28
|
-
/** Text shown while the value is empty and the field is not being edited. Defaults to `Click to edit
|
|
37
|
+
/** Text shown while the value is empty and the field is not being edited. Defaults to the `editable.placeholder` message (English: `Click to edit`). */
|
|
29
38
|
placeholder: string;
|
|
39
|
+
private get _hint();
|
|
30
40
|
/**
|
|
31
41
|
* How an edit is committed: `enter` only on Enter (blur cancels), `blur` only when focus leaves, or
|
|
32
42
|
* `both` (default).
|
|
@@ -1,17 +1,20 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { actionFor as n, keysConverter as r } from "../keys.js";
|
|
4
|
+
import { msg as i } from "../messages.js";
|
|
5
|
+
import { t as a } from "../chunks/form-control-fL-Hhy91.js";
|
|
6
|
+
import { n as o } from "../chunks/projection-oPe6ipjL.js";
|
|
7
|
+
import { i as s, n as c, r as l } from "../chunks/fields-MEqz-olE.js";
|
|
8
|
+
import { html as u, nothing as d } from "lit";
|
|
9
|
+
import { property as f } from "lit/decorators.js";
|
|
10
|
+
import { live as p } from "lit/directives/live.js";
|
|
8
11
|
//#region src/components/editable.ts
|
|
9
|
-
var
|
|
12
|
+
var m = class extends a(e) {
|
|
10
13
|
constructor(...e) {
|
|
11
|
-
super(...e), this.value = "", this.editing = !1, this.disabled = !1, this.placeholder = "
|
|
14
|
+
super(...e), this.keys = null, this.value = "", this.editing = !1, this.disabled = !1, this.placeholder = "", this.submitMode = "both", this.size = "md", this._previousValue = "", this._draft = null, this._handleClick = () => {
|
|
12
15
|
this.formDisabled || this.editing || this._enterEditMode();
|
|
13
16
|
}, this._handlePreviewKeydown = (e) => {
|
|
14
|
-
this.formDisabled || this.editing || (e
|
|
17
|
+
this.formDisabled || this.editing || n(this, e, s) === "activate" && (e.preventDefault(), this._enterEditMode());
|
|
15
18
|
}, this._handleInput = (e) => {
|
|
16
19
|
if (!this.editing) return;
|
|
17
20
|
let t = e.target.value;
|
|
@@ -21,21 +24,28 @@ var c = class extends n(e) {
|
|
|
21
24
|
detail: { value: t }
|
|
22
25
|
}));
|
|
23
26
|
}, this._handleInputKeydown = (e) => {
|
|
24
|
-
|
|
27
|
+
let t = n(this, e, c);
|
|
28
|
+
if (t === "cancel") {
|
|
25
29
|
e.preventDefault(), this._cancel();
|
|
26
30
|
return;
|
|
27
31
|
}
|
|
28
|
-
|
|
32
|
+
t === "submit" && (this.submitMode === "enter" || this.submitMode === "both") && (e.preventDefault(), this._confirm());
|
|
29
33
|
}, this._handleBlur = () => {
|
|
30
|
-
!this.editing ||
|
|
34
|
+
!this.editing || o(this) || (this.submitMode === "blur" || this.submitMode === "both" ? this._confirm() : this._cancel());
|
|
31
35
|
};
|
|
32
36
|
}
|
|
37
|
+
static {
|
|
38
|
+
this.keyMap = l;
|
|
39
|
+
}
|
|
33
40
|
static {
|
|
34
41
|
this.labelTarget = ".void-editable-preview, .void-editable-input";
|
|
35
42
|
}
|
|
36
43
|
static {
|
|
37
44
|
this.editState = ["value"];
|
|
38
45
|
}
|
|
46
|
+
get _hint() {
|
|
47
|
+
return this.placeholder || i(this, "editable.placeholder");
|
|
48
|
+
}
|
|
39
49
|
static {
|
|
40
50
|
this.clientState = { _draft: "value" };
|
|
41
51
|
}
|
|
@@ -46,16 +56,16 @@ var c = class extends n(e) {
|
|
|
46
56
|
super.disconnectedCallback(), this.removeEventListener("click", this._handleClick), this.removeEventListener("dblclick", this._handleClick);
|
|
47
57
|
}
|
|
48
58
|
render() {
|
|
49
|
-
return
|
|
59
|
+
return u`
|
|
50
60
|
<span
|
|
51
61
|
class="void-editable-preview"
|
|
52
62
|
role="button"
|
|
53
|
-
tabindex=${this.formDisabled ?
|
|
63
|
+
tabindex=${this.formDisabled ? d : "0"}
|
|
54
64
|
@keydown=${this._handlePreviewKeydown}
|
|
55
|
-
>${this.value ||
|
|
65
|
+
>${this.value || u`<span class="void-editable-placeholder">${this._hint}</span>`}</span>
|
|
56
66
|
<input
|
|
57
67
|
class="void-editable-input"
|
|
58
|
-
.value=${
|
|
68
|
+
.value=${p(this._draft ?? this.value)}
|
|
59
69
|
@input=${this._handleInput}
|
|
60
70
|
@keydown=${this._handleInputKeydown}
|
|
61
71
|
@blur=${this._handleBlur}
|
|
@@ -83,22 +93,25 @@ var c = class extends n(e) {
|
|
|
83
93
|
}));
|
|
84
94
|
}
|
|
85
95
|
};
|
|
86
|
-
t([
|
|
96
|
+
t([f({
|
|
97
|
+
attribute: "keys",
|
|
98
|
+
converter: r
|
|
99
|
+
})], m.prototype, "keys", void 0), t([f({
|
|
87
100
|
type: String,
|
|
88
101
|
reflect: !0
|
|
89
|
-
})],
|
|
102
|
+
})], m.prototype, "value", void 0), t([f({
|
|
90
103
|
type: Boolean,
|
|
91
104
|
reflect: !0
|
|
92
|
-
})],
|
|
105
|
+
})], m.prototype, "editing", void 0), t([f({
|
|
93
106
|
type: Boolean,
|
|
94
107
|
reflect: !0
|
|
95
|
-
})],
|
|
108
|
+
})], m.prototype, "disabled", void 0), t([f({ type: String })], m.prototype, "placeholder", void 0), t([f({
|
|
96
109
|
type: String,
|
|
97
110
|
reflect: !0,
|
|
98
111
|
attribute: "submit-mode"
|
|
99
|
-
})],
|
|
112
|
+
})], m.prototype, "submitMode", void 0), t([f({
|
|
100
113
|
type: String,
|
|
101
114
|
reflect: !0
|
|
102
|
-
})],
|
|
115
|
+
})], m.prototype, "size", void 0), customElements.get("void-editable") || customElements.define("void-editable", m);
|
|
103
116
|
//#endregion
|
|
104
|
-
export {
|
|
117
|
+
export { m as VoidEditable };
|