@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.
Files changed (177) hide show
  1. package/dist/angular/index.d.ts +2 -2
  2. package/dist/angular/index.js +2 -1
  3. package/dist/base.d.ts +6 -0
  4. package/dist/base.js +2 -2
  5. package/dist/chunks/activation-B8aBarKd.js +4 -0
  6. package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
  7. package/dist/chunks/carousel-C9u0bg5l.js +10 -0
  8. package/dist/chunks/choice-BTrsi7OW.js +16 -0
  9. package/dist/chunks/data-Baycjoo4.js +96 -0
  10. package/dist/chunks/fields-MEqz-olE.js +21 -0
  11. package/dist/chunks/{form-control-C0vH6gii.js → form-control-fL-Hhy91.js} +49 -48
  12. package/dist/chunks/{keyboard-CEhMSkws.js → keyboard-ChtDvhB_.js} +4 -23
  13. package/dist/chunks/{keyboard-activation-CV0m4hkn.js → keyboard-activation-BfEyoaMT.js} +4 -6
  14. package/dist/chunks/menu-CxRRgkJI.js +21 -0
  15. package/dist/chunks/{modal-CgGp_fCs.js → modal-Cz2-Ov76.js} +24 -16
  16. package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
  17. package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-BuV-4Yvt.js} +76 -69
  18. package/dist/chunks/overlay-K1ilWC1p.js +4 -0
  19. package/dist/chunks/pickers-CjlFgNke.js +36 -0
  20. package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
  21. package/dist/chunks/table-BBpqwWEi.js +4 -0
  22. package/dist/chunks/tabs-Buf3EBWq.js +10 -0
  23. package/dist/components/accordion.d.ts +7 -0
  24. package/dist/components/accordion.js +23 -15
  25. package/dist/components/action-input.d.ts +2 -1
  26. package/dist/components/action-input.js +60 -56
  27. package/dist/components/alert.d.ts +11 -0
  28. package/dist/components/alert.js +10 -3
  29. package/dist/components/avatar.js +2 -2
  30. package/dist/components/badge.d.ts +8 -2
  31. package/dist/components/badge.js +1 -4
  32. package/dist/components/banner.d.ts +9 -0
  33. package/dist/components/banner.js +10 -3
  34. package/dist/components/bar-chart.d.ts +21 -7
  35. package/dist/components/bar-chart.js +68 -45
  36. package/dist/components/breadcrumbs.d.ts +2 -0
  37. package/dist/components/breadcrumbs.js +16 -12
  38. package/dist/components/button.d.ts +7 -0
  39. package/dist/components/button.js +24 -17
  40. package/dist/components/calendar.d.ts +85 -12
  41. package/dist/components/calendar.js +263 -120
  42. package/dist/components/card.js +1 -1
  43. package/dist/components/carousel.d.ts +22 -0
  44. package/dist/components/carousel.js +66 -37
  45. package/dist/components/charts/data.d.ts +72 -0
  46. package/dist/components/checkbox-group.js +23 -22
  47. package/dist/components/checkbox.d.ts +7 -0
  48. package/dist/components/checkbox.js +30 -25
  49. package/dist/components/collapsible.d.ts +7 -0
  50. package/dist/components/collapsible.js +20 -12
  51. package/dist/components/color-picker.js +29 -28
  52. package/dist/components/combobox.d.ts +13 -1
  53. package/dist/components/combobox.js +55 -42
  54. package/dist/components/compose-input.d.ts +9 -1
  55. package/dist/components/compose-input.js +29 -17
  56. package/dist/components/dialog.js +1 -1
  57. package/dist/components/divider.js +2 -2
  58. package/dist/components/donut-chart.d.ts +22 -6
  59. package/dist/components/donut-chart.js +97 -70
  60. package/dist/components/drawer.js +1 -1
  61. package/dist/components/dropdown-menu.d.ts +22 -0
  62. package/dist/components/dropdown-menu.js +55 -40
  63. package/dist/components/editable.d.ts +11 -1
  64. package/dist/components/editable.js +36 -23
  65. package/dist/components/error-fallback.d.ts +4 -2
  66. package/dist/components/error-fallback.js +35 -29
  67. package/dist/components/field.js +2 -2
  68. package/dist/components/file-upload.d.ts +29 -5
  69. package/dist/components/file-upload.js +84 -28
  70. package/dist/components/gauge.d.ts +32 -8
  71. package/dist/components/gauge.js +206 -133
  72. package/dist/components/hamburger.d.ts +19 -1
  73. package/dist/components/hamburger.js +45 -25
  74. package/dist/components/hover-card.d.ts +7 -0
  75. package/dist/components/hover-card.js +23 -15
  76. package/dist/components/indicator.js +16 -15
  77. package/dist/components/input.js +3 -3
  78. package/dist/components/line-chart.d.ts +22 -7
  79. package/dist/components/line-chart.js +80 -57
  80. package/dist/components/list.js +1 -1
  81. package/dist/components/menu.d.ts +25 -0
  82. package/dist/components/menu.js +56 -34
  83. package/dist/components/multiselect.d.ts +17 -1
  84. package/dist/components/multiselect.js +97 -75
  85. package/dist/components/nav-bar.d.ts +9 -0
  86. package/dist/components/nav-bar.js +16 -3
  87. package/dist/components/nav-menu.d.ts +9 -0
  88. package/dist/components/nav-menu.js +31 -24
  89. package/dist/components/number-input.d.ts +15 -1
  90. package/dist/components/number-input.js +72 -38
  91. package/dist/components/pagination.js +26 -25
  92. package/dist/components/panel.js +1 -1
  93. package/dist/components/pin-input.d.ts +11 -0
  94. package/dist/components/pin-input.js +47 -33
  95. package/dist/components/popover.d.ts +7 -0
  96. package/dist/components/popover.js +22 -14
  97. package/dist/components/progress.js +2 -2
  98. package/dist/components/radio-group.js +3 -3
  99. package/dist/components/radio.d.ts +10 -1
  100. package/dist/components/radio.js +38 -33
  101. package/dist/components/scroll-area.js +2 -2
  102. package/dist/components/segmented-control.d.ts +14 -0
  103. package/dist/components/segmented-control.js +41 -29
  104. package/dist/components/select.js +2 -2
  105. package/dist/components/sidebar.d.ts +1 -0
  106. package/dist/components/sidebar.js +15 -11
  107. package/dist/components/skeleton.js +1 -1
  108. package/dist/components/slider.js +3 -3
  109. package/dist/components/spinner.d.ts +5 -3
  110. package/dist/components/spinner.js +22 -15
  111. package/dist/components/stat.d.ts +13 -1
  112. package/dist/components/stat.js +28 -20
  113. package/dist/components/status-dot.d.ts +2 -2
  114. package/dist/components/status-dot.js +13 -15
  115. package/dist/components/stepper.d.ts +2 -0
  116. package/dist/components/stepper.js +21 -14
  117. package/dist/components/switch.d.ts +7 -0
  118. package/dist/components/switch.js +25 -17
  119. package/dist/components/table.d.ts +81 -1
  120. package/dist/components/table.js +571 -69
  121. package/dist/components/tabs.d.ts +11 -0
  122. package/dist/components/tabs.js +43 -34
  123. package/dist/components/tag.js +13 -12
  124. package/dist/components/tags-input.d.ts +10 -1
  125. package/dist/components/tags-input.js +43 -31
  126. package/dist/components/textarea.js +3 -3
  127. package/dist/components/toast.d.ts +2 -0
  128. package/dist/components/toast.js +36 -29
  129. package/dist/components/toggle-group.d.ts +8 -0
  130. package/dist/components/toggle-group.js +25 -18
  131. package/dist/components/toggle.d.ts +7 -0
  132. package/dist/components/toggle.js +24 -16
  133. package/dist/components/tooltip.d.ts +7 -0
  134. package/dist/components/tooltip.js +21 -13
  135. package/dist/components.json +108 -84
  136. package/dist/custom-elements.json +4520 -236
  137. package/dist/dev/rules.d.ts +0 -1
  138. package/dist/dev/types.d.ts +5 -1
  139. package/dist/dev.js +298 -122
  140. package/dist/index.d.ts +4 -0
  141. package/dist/index.js +69 -67
  142. package/dist/keyboard-activation.d.ts +9 -9
  143. package/dist/keyboard.d.ts +2 -10
  144. package/dist/keymaps/activation.d.ts +8 -0
  145. package/dist/keymaps/carousel.d.ts +9 -0
  146. package/dist/keymaps/choice.d.ts +21 -0
  147. package/dist/keymaps/fields.d.ts +31 -0
  148. package/dist/keymaps/index.d.ts +2 -0
  149. package/dist/keymaps/menu.d.ts +36 -0
  150. package/dist/keymaps/nav-menu.d.ts +11 -0
  151. package/dist/keymaps/overlay.d.ts +4 -0
  152. package/dist/keymaps/pickers.d.ts +36 -0
  153. package/dist/keymaps/table.d.ts +8 -0
  154. package/dist/keymaps/tabs.d.ts +7 -0
  155. package/dist/keymaps.js +51 -0
  156. package/dist/keys.d.ts +46 -0
  157. package/dist/keys.js +57 -0
  158. package/dist/llms.txt +11 -3
  159. package/dist/messages/ar.d.ts +1 -0
  160. package/dist/messages/ar.js +130 -0
  161. package/dist/messages/fr.d.ts +1 -0
  162. package/dist/messages/fr.js +109 -0
  163. package/dist/messages.d.ts +213 -0
  164. package/dist/messages.js +190 -0
  165. package/dist/modal.d.ts +7 -0
  166. package/dist/reference.md +885 -60
  167. package/dist/testing/index.d.ts +46 -0
  168. package/dist/testing.js +79 -0
  169. package/dist/types/elements.d.ts +100 -84
  170. package/dist/types/react.d.ts +7 -3
  171. package/dist/types/solid.d.ts +7 -3
  172. package/dist/types/solid2.d.ts +4 -0
  173. package/dist/types/svelte.d.ts +7 -3
  174. package/dist/types/vue.d.ts +7 -3
  175. package/dist/vscode.html-custom-data.json +478 -38
  176. package/dist/web-types.json +1001 -111
  177. package/package.json +22 -2
@@ -1,53 +1,56 @@
1
- import { t as e } from "../chunks/base-BxmMM3B7.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { r as n } from "../chunks/projection-SnR79EHI.js";
4
- import { t as r } from "../chunks/shape-C_LW7EjG.js";
5
- import { html as i, nothing as a, svg as o } from "lit";
6
- import { property as s, state as c } from "lit/decorators.js";
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
- n();
9
- function l(e) {
11
+ r();
12
+ function _(e) {
10
13
  return Number.isFinite(e) ? e : 0;
11
14
  }
12
- function u(e) {
15
+ function v(e) {
13
16
  return 1 - (1 - e) ** 3;
14
17
  }
15
- function d(e) {
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 f(e) {
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 p = class extends e {
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, u = a - s, d = Math.sqrt(c * c + u * u), f = this.size / 2 - 4;
31
- if (d < f * this.inner || d > f) {
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 p = Math.atan2(u, c) - -Math.PI / 2;
36
- p < 0 && (p += 2 * Math.PI);
37
- let m = 2 * Math.PI, h = 0;
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 = l(n[e].value) / this._targetTotal * m;
40
- if (p >= h && p < h + t) {
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
- h += t;
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 = u(n);
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 = this._data.segments, n = this._progress, r = new Map(this._displayValues), i = this._displayTotal;
64
- this._data = e, this._refreshTargets(), this.requestUpdate(), this.updateComplete.then(() => {
65
- let a = /* @__PURE__ */ new Map();
66
- for (let e = 0; e < t.length; e++) a.set(e, r.get(e) ?? 0);
67
- for (let t = 0; t < e.segments.length; t++) a.has(t) || a.set(t, 0);
68
- this._startAnimation(a, i, n >= 1 ? 1 : n, !1);
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, l(e[t].value));
75
- this._targetTotal = e.reduce((e, t) => e + l(t.value), 0);
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", "img"), this._refreshTargets(), requestAnimationFrame(() => {
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 + l(t.value), 0);
96
- if (e.length === 0 || t === 0) return i`<svg viewBox="0 0 ${this.size} ${this.size}" role="img" aria-label=${this.ariaLabel || "Donut chart"}></svg>`;
97
- let n = this.size / 2, s = this.size / 2, c = this.size / 2 - 4, u = c * this.inner, p = Math.max(this._displayTotal, .001), m = 2 * Math.PI, h = -Math.PI / 2 + this._progress * m, g = (this.gaps === !0 ? 1 : this.gaps === !1 ? 0 : this.gaps) / 100 * m, _ = e.filter((e, t) => (this._displayValues.get(t) ?? 0) > 0).length, v = (_ > 1 ? g / e.length : 0) / 2, y = [], b = -Math.PI / 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 i = e[t], a = this._displayValues.get(t) ?? 0, l = b, d = l + a / p * m, f = Math.min(d, h);
100
- if (f > l + .001) {
101
- let e = i.color ?? `var(--void-chart-series-${t % 6 + 1})`, a = l + v, d = _ === 1 && f >= l + m - 1e-9 ? a + m : Math.max(a + .001, f - v);
102
- y.push(o`
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=${r(n, s, c, a, d, u)}
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
- b = d;
126
+ v = _;
112
127
  }
113
- return i`
128
+ return d`
114
129
  <svg
115
130
  viewBox="0 0 ${this.size} ${this.size}"
116
- role="img"
117
- aria-label=${this.ariaLabel || "Donut chart"}
131
+ aria-hidden="true"
118
132
  data-phase=${this._phase}
119
133
  >
120
- ${y}
121
- ${this.showTotal ? o`
134
+ ${g}
135
+ ${this.showTotal ? p`
122
136
  <g class="void-donut-chart-total">
123
- <text x=${n} y=${s} text-anchor="middle" dy="0.32em">${d(this._displayTotal)}</text>
137
+ <text x=${n} y=${r} text-anchor="middle" dy="0.32em">${y(this._displayTotal)}</text>
124
138
  </g>
125
- ` : a}
126
- ${this.showValue ? o`
139
+ ` : f}
140
+ ${this.showValue ? p`
127
141
  <g class="void-donut-chart-labels">
128
142
  ${e.map((e, t) => {
129
- let r = this._displayValues.get(t) ?? 0;
130
- if (r < .001) return a;
131
- let i = -Math.PI / 2;
132
- for (let e = 0; e < t; e++) i += (this._displayValues.get(e) ?? 0) / p * m;
133
- let l = i + r / p * m / 2, d = (c + u) / 2;
134
- return o`<text x=${n + d * Math.cos(l)} y=${s + d * Math.sin(l)} text-anchor="middle" dy="0.32em">${f(r)}</text>`;
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
- ` : a}
151
+ ` : f}
138
152
 
139
- ${this._hoverSegment !== null && this._hoverSegment < e.length ? this._renderHoverTooltip(e, this._hoverSegment) : a}
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) ?? l(n.value), i = [...this._displayValues.values()].reduce((e, t) => e + t, 0) || this._targetTotal || 1, a = Math.round(r / i * 100), s = this.size / 2, c = this._hoverX < s ? this.size - 140 - 8 : 8, u = this._hoverY - 44 / 2;
145
- return u < 8 && (u = 8), u + 44 > this.size - 8 && (u = this.size - 44 - 8), o`
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=${c} y=${u}
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=${c + 8}
156
- y=${u + 8 + 10}
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=${c + 8}
161
- y=${u + 8 + 14 + 10}
162
- >${f(r)} <tspan class="void-donut-chart-tooltip-pct">(${a}%)</tspan></text>
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([s({
190
+ t([m({
168
191
  type: Number,
169
192
  reflect: !0
170
- })], p.prototype, "size", void 0), t([s({ type: Number })], p.prototype, "inner", void 0), t([s({ converter: {
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
- } })], p.prototype, "gaps", void 0), t([s({ reflect: !0 })], p.prototype, "variant", void 0), t([s({
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
- })], p.prototype, "showValue", void 0), t([s({
207
+ })], x.prototype, "showValue", void 0), t([m({
185
208
  type: Boolean,
186
209
  attribute: "show-total",
187
210
  reflect: !0
188
- })], p.prototype, "showTotal", void 0), t([s({ attribute: "aria-label" })], p.prototype, "ariaLabel", void 0), t([c()], p.prototype, "_phase", void 0), t([c()], p.prototype, "_hoverSegment", void 0), t([c()], p.prototype, "_hoverX", void 0), t([c()], p.prototype, "_hoverY", void 0), customElements.get("void-donut-chart") || customElements.define("void-donut-chart", p);
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 { p as VoidDonutChart };
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-CgGp_fCs.js";
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-BxmMM3B7.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { t as n } from "../chunks/keyboard-activation-CV0m4hkn.js";
4
- import { i as r, n as i } from "../chunks/parts-DI_3VpSy.js";
5
- import { a, i as o, t as s } from "../chunks/keyboard-CEhMSkws.js";
6
- import { t as c } from "../chunks/overlay-hLJ7IQHx.js";
7
- import { property as l } from "lit/decorators.js";
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 u = class extends e {
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 i(this, {
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 s(), this._overlay = new c(this, {
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 f) || !this._parts.owns(t) || t.keepOpen || this._overlay.requestClose("select");
52
+ !(t instanceof _) || !this._parts.owns(t) || t.keepOpen || this._overlay.requestClose("select");
50
53
  }, this._handleKeydown = (e) => {
51
- if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey || e.isComposing) return;
52
- let t = e.target, n = this._triggerEl;
53
- if (n && this._parts.one("void-dropdown-menu-trigger")?.contains(t)) {
54
- e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), this._openAndFocus(e.key === "ArrowDown" ? "first" : "last")) : (e.key === "Enter" || e.key === " ") && !d(n, t) && (e.preventDefault(), this.open ? this._overlay.requestClose("trigger") : this._openAndFocus("first"));
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 r = this._content(), i = t.closest("void-dropdown-menu-item");
58
- if (!this.open || !r?.contains(t) || !i) return;
59
- let s = this._items(), c = s.indexOf(i), l = s.map(() => !1), u;
60
- if (e.key === "ArrowDown") u = s[a(l, c, 1)];
61
- else if (e.key === "ArrowUp") u = s[a(l, c, -1)];
62
- else if (e.key === "Home") u = s[0];
63
- else if (e.key === "End") u = s[s.length - 1];
64
- else if (e.key === "Tab") {
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 (o(e) && e.key !== " ") {
68
- let t = this._typeahead.match(e.key, s.map((e) => e.textContent ?? ""), l, c);
69
- t >= 0 && (e.preventDefault(), s[t].focus());
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 r(this._parts.one("void-dropdown-menu-trigger"));
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([l({
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
- })], u.prototype, "open", void 0), t([l({
118
+ })], h.prototype, "open", void 0), t([m({
110
119
  type: String,
111
120
  reflect: !0
112
- })], u.prototype, "side", void 0), t([l({
121
+ })], h.prototype, "side", void 0), t([m({
113
122
  type: String,
114
123
  reflect: !0
115
- })], u.prototype, "align", void 0);
116
- function d(e, t) {
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", u);
121
- var f = class extends e {
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 n(this, { disabled: () => this.disabled }), this.disabled = !1, this.destructive = !1, this.keepOpen = !1, this._handleClick = (e) => {
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([l({
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
- })], f.prototype, "value", void 0), t([l({
166
+ })], _.prototype, "value", void 0), t([m({
152
167
  type: Boolean,
153
168
  reflect: !0
154
- })], f.prototype, "disabled", void 0), t([l({
169
+ })], _.prototype, "disabled", void 0), t([m({
155
170
  type: Boolean,
156
171
  reflect: !0
157
- })], f.prototype, "destructive", void 0), t([l({
172
+ })], _.prototype, "destructive", void 0), t([m({
158
173
  type: Boolean,
159
174
  reflect: !0,
160
175
  attribute: "keep-open"
161
- })], f.prototype, "keepOpen", void 0), customElements.get("void-dropdown-menu-item") || customElements.define("void-dropdown-menu-item", f);
176
+ })], _.prototype, "keepOpen", void 0), customElements.get("void-dropdown-menu-item") || customElements.define("void-dropdown-menu-item", _);
162
177
  //#endregion
163
- export { u as VoidDropdownMenu, f as VoidDropdownMenuItem };
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-BxmMM3B7.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
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";
5
- import { html as i, nothing as a } from "lit";
6
- import { property as o } from "lit/decorators.js";
7
- import { live as s } from "lit/directives/live.js";
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 c = class extends n(e) {
12
+ var m = class extends a(e) {
10
13
  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 = () => {
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.key === "Enter" || e.key === " ") && (e.preventDefault(), this._enterEditMode());
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
- if (e.key === "Escape") {
27
+ let t = n(this, e, c);
28
+ if (t === "cancel") {
25
29
  e.preventDefault(), this._cancel();
26
30
  return;
27
31
  }
28
- e.key === "Enter" && (this.submitMode === "enter" || this.submitMode === "both") && (e.preventDefault(), this._confirm());
32
+ t === "submit" && (this.submitMode === "enter" || this.submitMode === "both") && (e.preventDefault(), this._confirm());
29
33
  }, this._handleBlur = () => {
30
- !this.editing || r(this) || (this.submitMode === "blur" || this.submitMode === "both" ? this._confirm() : this._cancel());
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 i`
59
+ return u`
50
60
  <span
51
61
  class="void-editable-preview"
52
62
  role="button"
53
- tabindex=${this.formDisabled ? a : "0"}
63
+ tabindex=${this.formDisabled ? d : "0"}
54
64
  @keydown=${this._handlePreviewKeydown}
55
- >${this.value || i`<span class="void-editable-placeholder">${this.placeholder}</span>`}</span>
65
+ >${this.value || u`<span class="void-editable-placeholder">${this._hint}</span>`}</span>
56
66
  <input
57
67
  class="void-editable-input"
58
- .value=${s(this._draft ?? this.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([o({
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
- })], c.prototype, "value", void 0), t([o({
102
+ })], m.prototype, "value", void 0), t([f({
90
103
  type: Boolean,
91
104
  reflect: !0
92
- })], c.prototype, "editing", void 0), t([o({
105
+ })], m.prototype, "editing", void 0), t([f({
93
106
  type: Boolean,
94
107
  reflect: !0
95
- })], c.prototype, "disabled", void 0), t([o({ type: String })], c.prototype, "placeholder", void 0), t([o({
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
- })], c.prototype, "submitMode", void 0), t([o({
112
+ })], m.prototype, "submitMode", void 0), t([f({
100
113
  type: String,
101
114
  reflect: !0
102
- })], c.prototype, "size", void 0), customElements.get("void-editable") || customElements.define("void-editable", c);
115
+ })], m.prototype, "size", void 0), customElements.get("void-editable") || customElements.define("void-editable", m);
103
116
  //#endregion
104
- export { c as VoidEditable };
117
+ export { m as VoidEditable };