@voidable/ui 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/base.d.ts +6 -0
  2. package/dist/base.js +2 -2
  3. package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
  4. package/dist/chunks/data-BpiiNapL.js +95 -0
  5. package/dist/chunks/{modal-CgGp_fCs.js → modal-DWGkNdNG.js} +2 -2
  6. package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-CH7L4N-h.js} +1 -1
  7. package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
  8. package/dist/components/accordion.js +1 -1
  9. package/dist/components/action-input.js +2 -2
  10. package/dist/components/alert.d.ts +11 -0
  11. package/dist/components/alert.js +10 -3
  12. package/dist/components/avatar.js +2 -2
  13. package/dist/components/badge.d.ts +8 -2
  14. package/dist/components/badge.js +1 -4
  15. package/dist/components/banner.d.ts +9 -0
  16. package/dist/components/banner.js +10 -3
  17. package/dist/components/bar-chart.d.ts +21 -7
  18. package/dist/components/bar-chart.js +65 -43
  19. package/dist/components/breadcrumbs.js +1 -1
  20. package/dist/components/button.js +1 -1
  21. package/dist/components/calendar.d.ts +40 -2
  22. package/dist/components/calendar.js +110 -21
  23. package/dist/components/card.js +1 -1
  24. package/dist/components/carousel.js +3 -3
  25. package/dist/components/charts/data.d.ts +72 -0
  26. package/dist/components/checkbox-group.js +2 -2
  27. package/dist/components/checkbox.js +2 -2
  28. package/dist/components/collapsible.js +1 -1
  29. package/dist/components/color-picker.js +2 -2
  30. package/dist/components/combobox.js +3 -3
  31. package/dist/components/compose-input.js +2 -2
  32. package/dist/components/dialog.js +1 -1
  33. package/dist/components/divider.js +2 -2
  34. package/dist/components/donut-chart.d.ts +22 -6
  35. package/dist/components/donut-chart.js +95 -69
  36. package/dist/components/drawer.js +1 -1
  37. package/dist/components/dropdown-menu.js +2 -2
  38. package/dist/components/editable.js +2 -2
  39. package/dist/components/error-fallback.js +1 -1
  40. package/dist/components/field.js +2 -2
  41. package/dist/components/file-upload.d.ts +20 -5
  42. package/dist/components/file-upload.js +51 -21
  43. package/dist/components/gauge.d.ts +32 -8
  44. package/dist/components/gauge.js +202 -130
  45. package/dist/components/hamburger.d.ts +12 -1
  46. package/dist/components/hamburger.js +24 -13
  47. package/dist/components/hover-card.js +2 -2
  48. package/dist/components/indicator.js +2 -2
  49. package/dist/components/input.js +2 -2
  50. package/dist/components/line-chart.d.ts +22 -7
  51. package/dist/components/line-chart.js +76 -54
  52. package/dist/components/list.js +1 -1
  53. package/dist/components/menu.js +1 -1
  54. package/dist/components/multiselect.js +3 -3
  55. package/dist/components/nav-bar.d.ts +9 -0
  56. package/dist/components/nav-bar.js +16 -3
  57. package/dist/components/nav-menu.js +1 -1
  58. package/dist/components/number-input.js +2 -2
  59. package/dist/components/pagination.js +2 -2
  60. package/dist/components/panel.js +1 -1
  61. package/dist/components/pin-input.js +2 -2
  62. package/dist/components/popover.js +2 -2
  63. package/dist/components/progress.js +2 -2
  64. package/dist/components/radio-group.js +2 -2
  65. package/dist/components/radio.js +2 -2
  66. package/dist/components/scroll-area.js +2 -2
  67. package/dist/components/segmented-control.js +1 -1
  68. package/dist/components/select.js +2 -2
  69. package/dist/components/sidebar.js +1 -1
  70. package/dist/components/skeleton.js +1 -1
  71. package/dist/components/slider.js +2 -2
  72. package/dist/components/spinner.js +2 -2
  73. package/dist/components/stat.d.ts +13 -1
  74. package/dist/components/stat.js +28 -20
  75. package/dist/components/status-dot.js +1 -1
  76. package/dist/components/stepper.js +2 -2
  77. package/dist/components/switch.js +2 -2
  78. package/dist/components/table.d.ts +4 -0
  79. package/dist/components/table.js +42 -29
  80. package/dist/components/tabs.js +1 -1
  81. package/dist/components/tag.js +2 -2
  82. package/dist/components/tags-input.js +2 -2
  83. package/dist/components/textarea.js +2 -2
  84. package/dist/components/toast.js +1 -1
  85. package/dist/components/toggle-group.js +1 -1
  86. package/dist/components/toggle.js +1 -1
  87. package/dist/components/tooltip.js +2 -2
  88. package/dist/components.json +15 -13
  89. package/dist/custom-elements.json +272 -70
  90. package/dist/dev/types.d.ts +3 -1
  91. package/dist/dev.js +54 -9
  92. package/dist/index.js +1 -1
  93. package/dist/llms.txt +1 -1
  94. package/dist/reference.md +81 -56
  95. package/dist/types/elements.d.ts +13 -13
  96. package/dist/types/react.d.ts +2 -2
  97. package/dist/types/solid.d.ts +2 -2
  98. package/dist/types/svelte.d.ts +2 -2
  99. package/dist/types/vue.d.ts +2 -2
  100. package/dist/vscode.html-custom-data.json +95 -21
  101. package/dist/web-types.json +173 -44
  102. package/package.json +1 -1
@@ -1,4 +1,4 @@
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
3
  import { property as n } from "lit/decorators.js";
4
4
  //#region src/components/skeleton.ts
@@ -1,7 +1,7 @@
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
3
  import { n } from "../chunks/form-control-C0vH6gii.js";
4
- import { r } from "../chunks/projection-SnR79EHI.js";
4
+ import { r } from "../chunks/projection-oPe6ipjL.js";
5
5
  import { html as i, nothing as a } from "lit";
6
6
  import { property as o } from "lit/decorators.js";
7
7
  //#region src/components/slider.ts
@@ -1,6 +1,6 @@
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";
3
+ import { r as n } from "../chunks/projection-oPe6ipjL.js";
4
4
  import { html as r } from "lit";
5
5
  import { property as i } from "lit/decorators.js";
6
6
  //#region src/components/spinner.ts
@@ -1,5 +1,9 @@
1
1
  import { VoidElement } from '../base.js';
2
- /** Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend. */
2
+ /**
3
+ * Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.
4
+ *
5
+ * With a `label` it is a `group` named by the label; without one it has no role.
6
+ */
3
7
  export declare class VoidStat extends VoidElement {
4
8
  /** Small caption above the value, such as `Active users`. */
5
9
  label: string;
@@ -25,7 +29,15 @@ export declare class VoidStat extends VoidElement {
25
29
  color: 'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight';
26
30
  /** Size step: `sm`, `md` (default) or `lg`. */
27
31
  size: 'sm' | 'md' | 'lg';
32
+ private readonly _labelId;
28
33
  connectedCallback(): void;
34
+ protected updated(changed: Map<string, unknown>): void;
35
+ /**
36
+ * A stat with a `label` is a `group` named by it, so a reader hears "Revenue, group" and then the figures;
37
+ * without a label it is plain text and has no role. A role or name the author wrote is kept.
38
+ */
39
+ private _syncName;
40
+ private _writtenRole;
29
41
  render(): import('lit').TemplateResult<1>;
30
42
  }
31
43
  declare global {
@@ -1,47 +1,55 @@
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 { html as r } from "lit";
5
- import { property as i } from "lit/decorators.js";
3
+ import { r as n } from "../chunks/projection-oPe6ipjL.js";
4
+ import { o as r } from "../chunks/keyboard-CEhMSkws.js";
5
+ import { html as i } from "lit";
6
+ import { property as a } from "lit/decorators.js";
6
7
  //#region src/components/stat.ts
7
8
  n();
8
- var a = class extends e {
9
+ var o = class extends e {
9
10
  constructor(...e) {
10
- super(...e), this.label = "", this.value = "", this.delta = "", this.description = "", this.trend = null, this.color = "default", this.size = "md";
11
+ super(...e), this.label = "", this.value = "", this.delta = "", this.description = "", this.trend = null, this.color = "default", this.size = "md", this._labelId = r("void-stat-label"), this._writtenRole = null;
11
12
  }
12
13
  connectedCallback() {
13
- super.connectedCallback(), this.setHostAttribute("role", "figure");
14
+ super.connectedCallback(), this._syncName();
15
+ }
16
+ updated(e) {
17
+ super.updated(e), e.has("label") && this._syncName();
18
+ }
19
+ _syncName() {
20
+ let e = this.getAttribute("role");
21
+ (e === null || e === this._writtenRole) && (this._writtenRole = this.label ? "group" : null, this.setHostAttribute("role", this._writtenRole)), !this.hasAttribute("aria-label") && (!this.hasAttribute("aria-labelledby") || this.getAttribute("aria-labelledby") === this._labelId) && this.setHostAttribute("aria-labelledby", this.label ? this._labelId : null);
14
22
  }
15
23
  render() {
16
- return r`
17
- ${this.label ? r`<span class="void-stat-label">${this.label}</span>` : ""}
24
+ return i`
25
+ ${this.label ? i`<span class="void-stat-label" id=${this._labelId}>${this.label}</span>` : ""}
18
26
  <span class="void-stat-value">${this.value}</span>
19
- ${this.delta ? r`<span class="void-stat-delta">${this.delta}</span>` : ""}
20
- ${this.description ? r`<span class="void-stat-description">${this.description}</span>` : ""}
27
+ ${this.delta ? i`<span class="void-stat-delta">${this.delta}</span>` : ""}
28
+ ${this.description ? i`<span class="void-stat-description">${this.description}</span>` : ""}
21
29
  `;
22
30
  }
23
31
  };
24
- t([i({
32
+ t([a({
25
33
  type: String,
26
34
  reflect: !0
27
- })], a.prototype, "label", void 0), t([i({
35
+ })], o.prototype, "label", void 0), t([a({
28
36
  type: String,
29
37
  reflect: !0
30
- })], a.prototype, "value", void 0), t([i({
38
+ })], o.prototype, "value", void 0), t([a({
31
39
  type: String,
32
40
  reflect: !0
33
- })], a.prototype, "delta", void 0), t([i({
41
+ })], o.prototype, "delta", void 0), t([a({
34
42
  type: String,
35
43
  reflect: !0
36
- })], a.prototype, "description", void 0), t([i({
44
+ })], o.prototype, "description", void 0), t([a({
37
45
  type: String,
38
46
  reflect: !0
39
- })], a.prototype, "trend", void 0), t([i({
47
+ })], o.prototype, "trend", void 0), t([a({
40
48
  type: String,
41
49
  reflect: !0
42
- })], a.prototype, "color", void 0), t([i({
50
+ })], o.prototype, "color", void 0), t([a({
43
51
  type: String,
44
52
  reflect: !0
45
- })], a.prototype, "size", void 0), customElements.get("void-stat") || customElements.define("void-stat", a);
53
+ })], o.prototype, "size", void 0), customElements.get("void-stat") || customElements.define("void-stat", o);
46
54
  //#endregion
47
- export { a as VoidStat };
55
+ export { o as VoidStat };
@@ -1,4 +1,4 @@
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
3
  import { property as n } from "lit/decorators.js";
4
4
  //#region src/components/status-dot.ts
@@ -1,6 +1,6 @@
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";
3
+ import { r as n } from "../chunks/projection-oPe6ipjL.js";
4
4
  import { html as r, nothing as i } from "lit";
5
5
  import { property as a } from "lit/decorators.js";
6
6
  //#region src/components/stepper.ts
@@ -1,8 +1,8 @@
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
3
  import { t as n } from "../chunks/keyboard-activation-CV0m4hkn.js";
4
4
  import { t as r } from "../chunks/form-control-C0vH6gii.js";
5
- import { r as i } from "../chunks/projection-SnR79EHI.js";
5
+ import { r as i } from "../chunks/projection-oPe6ipjL.js";
6
6
  import { html as a } from "lit";
7
7
  import { property as o } from "lit/decorators.js";
8
8
  //#region src/components/switch.ts
@@ -14,6 +14,10 @@ import { VoidElement } from '../base.js';
14
14
  * `data-align="end"` on a header cell right-aligns a numeric column. Because browsers can drop table
15
15
  * semantics when `display` changes, a table with `stack` carries explicit table, row and cell roles.
16
16
  *
17
+ * **Name.** A table needs a name: write a `<caption>` (the caption part; it can be visually hidden), or an
18
+ * `aria-label` (or `label`) on the `<void-table>`, which the component copies onto the native `<table>`. `voidable check`
19
+ * reports a `<void-table>` with neither (rule `missing-name`).
20
+ *
17
21
  * **Overflow.** Nothing is clipped by default, so a menu, popover or tooltip opened from a cell is
18
22
  * always fully visible. `scrollable` makes the table its own horizontal scroll region: it is
19
23
  * focusable and labelled (`label`, else the `<caption>`, else `aria-label`) only while it actually
@@ -1,4 +1,4 @@
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
3
  import { property as n } from "lit/decorators.js";
4
4
  //#region src/components/table.ts
@@ -19,7 +19,7 @@ function s(e) {
19
19
  }
20
20
  var c = class extends e {
21
21
  constructor(...e) {
22
- super(...e), this.striped = !1, this.hoverable = !1, this.compact = !1, this.bordered = !1, this.inset = !1, this.stack = null, this.scrollable = !1, this.stickyHeader = !1, this.stickyColumn = !1, this.maxHeight = null, this.label = null, this.#e = null, this.#t = null, this.#n = !1, this.#r = /* @__PURE__ */ new WeakMap(), this.#i = /* @__PURE__ */ new WeakMap(), this.#a = /* @__PURE__ */ new WeakMap(), this.#o = null, this.#s = !1, this.#c = !1, this.#l = () => this.#v();
22
+ super(...e), this.striped = !1, this.hoverable = !1, this.compact = !1, this.bordered = !1, this.inset = !1, this.stack = null, this.scrollable = !1, this.stickyHeader = !1, this.stickyColumn = !1, this.maxHeight = null, this.label = null, this.#e = null, this.#t = null, this.#n = !1, this.#r = /* @__PURE__ */ new WeakMap(), this.#i = /* @__PURE__ */ new WeakMap(), this.#a = null, this.#o = /* @__PURE__ */ new WeakMap(), this.#s = /* @__PURE__ */ new WeakMap(), this.#c = null, this.#l = !1, this.#u = !1, this.#d = () => this.#x();
23
23
  }
24
24
  #e;
25
25
  #t;
@@ -30,8 +30,10 @@ var c = class extends e {
30
30
  #o;
31
31
  #s;
32
32
  #c;
33
+ #l;
34
+ #u;
33
35
  connectedCallback() {
34
- super.connectedCallback(), this.#e ??= new MutationObserver(() => this.#u()), this.#e.observe(this, {
36
+ super.connectedCallback(), this.#e ??= new MutationObserver(() => this.#f()), this.#e.observe(this, {
35
37
  childList: !0,
36
38
  subtree: !0,
37
39
  characterData: !0,
@@ -43,28 +45,31 @@ var c = class extends e {
43
45
  "role",
44
46
  "colspan"
45
47
  ]
46
- }), typeof ResizeObserver < "u" && (this.#t ??= new ResizeObserver(() => this.#u()), this.#t.observe(this)), this.addEventListener("scroll", this.#l, { passive: !0 }), this.#u();
48
+ }), this.#a ??= new MutationObserver(() => this.#f()), this.#a.observe(this, {
49
+ attributes: !0,
50
+ attributeFilter: ["aria-label"]
51
+ }), typeof ResizeObserver < "u" && (this.#t ??= new ResizeObserver(() => this.#f()), this.#t.observe(this)), this.addEventListener("scroll", this.#d, { passive: !0 }), this.#f();
47
52
  }
48
53
  disconnectedCallback() {
49
- super.disconnectedCallback(), this.#e?.disconnect(), this.#t?.disconnect(), this.removeEventListener("scroll", this.#l);
54
+ super.disconnectedCallback(), this.#e?.disconnect(), this.#a?.disconnect(), this.#t?.disconnect(), this.removeEventListener("scroll", this.#d);
50
55
  }
51
56
  updated(e) {
52
57
  super.updated(e), this.setHostStyle("--void-table-max-height", this.maxHeight || "");
53
58
  let t = (this.stack ?? "").trim();
54
- /^\d*\.?\d+(px|rem|em)$/.test(t) ? (this.setHostStyle("--void-table-stack-at", t), this.#c = !0) : this.#c &&= (this.setHostStyle("--void-table-stack-at", null), !1), this.#u();
59
+ /^\d*\.?\d+(px|rem|em)$/.test(t) ? (this.setHostStyle("--void-table-stack-at", t), this.#u = !0) : this.#u &&= (this.setHostStyle("--void-table-stack-at", null), !1), this.#f();
55
60
  }
56
- #l;
57
- #u() {
61
+ #d;
62
+ #f() {
58
63
  this.#n || (this.#n = !0, queueMicrotask(() => {
59
- this.#n = !1, this.isConnected && (this.#d(this.stack !== null), this.#g(), this.#e?.takeRecords());
64
+ this.#n = !1, this.isConnected && (this.#p(this.stack !== null), this.#y(), this.#e?.takeRecords());
60
65
  }));
61
66
  }
62
- #d(e) {
67
+ #p(e) {
63
68
  let t = !1, n = !1, a = 0;
64
69
  for (let i of this.querySelectorAll("table")) {
65
70
  if (i.closest("void-table") !== this) continue;
66
- e && this.#m(i);
67
- let c = this.#f(i), l = [];
71
+ this.#m(i), e && this.#_(i);
72
+ let c = this.#h(i), l = [];
68
73
  if (c) for (let e of o(c)) {
69
74
  let i = {
70
75
  label: e.hasAttribute("data-label") ? e.getAttribute("data-label") ?? "" : (e.textContent ?? "").replace(/\s+/g, " ").trim(),
@@ -80,15 +85,15 @@ var c = class extends e {
80
85
  let e = c.querySelector("[data-controls]") !== null;
81
86
  e !== c.hasAttribute("data-controls") && c.toggleAttribute("data-controls", e);
82
87
  }
83
- if (e) for (let e of i.querySelectorAll(":scope > caption, :scope > thead, :scope > tbody, :scope > tfoot")) this.#m(e);
88
+ if (e) for (let e of i.querySelectorAll(":scope > caption, :scope > thead, :scope > tbody, :scope > tfoot")) this.#_(e);
84
89
  for (let t of Array.from(i.querySelectorAll("tr"))) {
85
90
  if (t.closest("table") !== i) continue;
86
- a++, e && this.#m(t);
91
+ a++, e && this.#_(t);
87
92
  let n = t.parentElement?.tagName === "THEAD" || t === c, r = 0;
88
93
  for (let i of o(t)) {
89
- if (e && (i.tagName === "TH" ? this.#m(i, n || i.getAttribute("scope") === "col" ? "columnheader" : "rowheader") : this.#m(i)), !n) {
94
+ if (e && (i.tagName === "TH" ? this.#_(i, n || i.getAttribute("scope") === "col" ? "columnheader" : "rowheader") : this.#_(i)), !n) {
90
95
  let t = l[r];
91
- t && (e && this.#p(i, "data-label", t.label, this.#r, !0), this.#p(i, "data-stack", t.stack, this.#i), this.#p(i, "data-align", t.align, this.#a));
96
+ t && (e && this.#g(i, "data-label", t.label, this.#r, !0), this.#g(i, "data-stack", t.stack, this.#o), this.#g(i, "data-align", t.align, this.#s));
92
97
  }
93
98
  r += s(i);
94
99
  }
@@ -96,38 +101,46 @@ var c = class extends e {
96
101
  }
97
102
  this.setHostAttribute("data-stack-title", t ? "" : null), this.setHostAttribute("data-stack-select", n ? "" : null), this.setHostAttribute("data-long", a > i ? "" : null);
98
103
  }
99
- #f(e) {
104
+ #m(e) {
105
+ let t = this.getAttribute("aria-label"), n = (t !== null && t !== this.#c && t.trim() !== "" ? t : null) ?? (this.label?.trim() ? this.label : null), r = e.getAttribute("aria-label"), i = this.#i.get(e), a = r !== null && r !== i || e.hasAttribute("aria-labelledby") || e.querySelector(":scope > caption") !== null;
106
+ if (n === null || a) {
107
+ i !== void 0 && r === i && e.removeAttribute("aria-label"), this.#i.delete(e);
108
+ return;
109
+ }
110
+ r !== n && e.setAttribute("aria-label", n), this.#i.set(e, n);
111
+ }
112
+ #h(e) {
100
113
  let t = e.querySelectorAll(":scope > thead > tr");
101
114
  if (t.length) return t[t.length - 1];
102
115
  let n = e.querySelector(":scope > tbody > tr, :scope > tr");
103
116
  return n && o(n).every((e) => e.tagName === "TH") ? n : null;
104
117
  }
105
- #p(e, t, n, r, i = !1) {
118
+ #g(e, t, n, r, i = !1) {
106
119
  let a = e.getAttribute(t), o = r.get(e);
107
120
  if (a !== null && a !== o) return;
108
121
  let s = n === null || !i && n === "" ? null : n;
109
122
  s === null ? (a !== null && e.removeAttribute(t), r.delete(e)) : (a !== s && e.setAttribute(t, s), r.set(e, s));
110
123
  }
111
- #m(e, t = a[e.tagName]) {
124
+ #_(e, t = a[e.tagName]) {
112
125
  t && (e.hasAttribute("role") || e.setAttribute("role", t));
113
126
  }
114
- get #h() {
127
+ get #v() {
115
128
  return this.scrollable && this.scrollWidth > this.clientWidth + 1;
116
129
  }
117
- #g() {
118
- let e = this.#h;
130
+ #y() {
131
+ let e = this.#v;
119
132
  if (this.setHostAttribute("data-overflowing", e ? "" : null), !e) {
120
- this.#_(), this.setHostAttribute("data-overflow-start", null), this.setHostAttribute("data-overflow-end", null);
133
+ this.#b(), this.setHostAttribute("data-overflow-start", null), this.setHostAttribute("data-overflow-end", null);
121
134
  return;
122
135
  }
123
- let t = this.getAttribute("aria-label"), n = t !== null && t !== this.#o, r = this.label || (n || this.hasAttribute("aria-labelledby") ? "" : (this.querySelector("caption")?.textContent ?? "").replace(/\s+/g, " ").trim());
124
- !r && !n && !this.hasAttribute("aria-labelledby") && !this.#s && (this.#s = !0, console.warn("<void-table scrollable>: the scroll region has no accessible name. Set label, aria-label or add a <caption>.", this)), this.setHostAttribute("tabindex", "0"), (!this.hasAttribute("role") || this.getAttribute("role") === "region") && this.setHostAttribute("role", "region"), r && !n && (this.setHostAttribute("aria-label", r), this.#o = r), this.#v();
136
+ let t = this.getAttribute("aria-label"), n = t !== null && t !== this.#c, r = this.label || (n || this.hasAttribute("aria-labelledby") ? "" : (this.querySelector("caption")?.textContent ?? "").replace(/\s+/g, " ").trim());
137
+ !r && !n && !this.hasAttribute("aria-labelledby") && !this.#l && (this.#l = !0, console.warn("<void-table scrollable>: the scroll region has no accessible name. Set label, aria-label or add a <caption>.", this)), this.setHostAttribute("tabindex", "0"), (!this.hasAttribute("role") || this.getAttribute("role") === "region") && this.setHostAttribute("role", "region"), r && !n && (this.setHostAttribute("aria-label", r), this.#c = r), this.#x();
125
138
  }
126
- #_() {
127
- this.setHostAttribute("tabindex", null), this.getAttribute("role") === "region" && this.setHostAttribute("role", null), this.#o !== null && (this.getAttribute("aria-label") === this.#o && this.setHostAttribute("aria-label", null), this.#o = null);
139
+ #b() {
140
+ this.setHostAttribute("tabindex", null), this.getAttribute("role") === "region" && this.setHostAttribute("role", null), this.#c !== null && (this.getAttribute("aria-label") === this.#c && this.setHostAttribute("aria-label", null), this.#c = null);
128
141
  }
129
- #v() {
130
- if (!this.#h) return;
142
+ #x() {
143
+ if (!this.#v) return;
131
144
  let e = this.scrollWidth - this.clientWidth, t = Math.abs(this.scrollLeft);
132
145
  this.setHostAttribute("data-overflow-start", t > 1 ? "" : null), this.setHostAttribute("data-overflow-end", t < e - 1 ? "" : null);
133
146
  }
@@ -1,4 +1,4 @@
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
3
  import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { a as r, n as i, r as a } from "../chunks/keyboard-CEhMSkws.js";
@@ -1,6 +1,6 @@
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/projection-SnR79EHI.js";
3
+ import { t as n } from "../chunks/projection-oPe6ipjL.js";
4
4
  import { html as r, nothing as i } from "lit";
5
5
  import { property as a } from "lit/decorators.js";
6
6
  //#region src/components/tag.ts
@@ -1,7 +1,7 @@
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
3
  import { t as n } from "../chunks/form-control-C0vH6gii.js";
4
- import { r } from "../chunks/projection-SnR79EHI.js";
4
+ import { r } from "../chunks/projection-oPe6ipjL.js";
5
5
  import { t as i } from "../chunks/value-list-CH6GjYXM.js";
6
6
  import { html as a, nothing as o } from "lit";
7
7
  import { property as s } from "lit/decorators.js";
@@ -1,7 +1,7 @@
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
3
  import { n } from "../chunks/form-control-C0vH6gii.js";
4
- import { r } from "../chunks/projection-SnR79EHI.js";
4
+ import { r } from "../chunks/projection-oPe6ipjL.js";
5
5
  import { html as i, nothing as a } from "lit";
6
6
  import { property as o } from "lit/decorators.js";
7
7
  import { live as s } from "lit/directives/live.js";
@@ -1,4 +1,4 @@
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
3
  import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { n as r, t as i } from "../chunks/dismiss-Drsy_dE5.js";
@@ -1,4 +1,4 @@
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
3
  import { t as n } from "../chunks/form-control-C0vH6gii.js";
4
4
  import { r } from "../chunks/keyboard-CEhMSkws.js";
@@ -1,4 +1,4 @@
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
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";
@@ -1,7 +1,7 @@
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
3
  import { i as n, n as r } from "../chunks/parts-DI_3VpSy.js";
4
- import { t as i } from "../chunks/overlay-hLJ7IQHx.js";
4
+ import { t as i } from "../chunks/overlay-CH7L4N-h.js";
5
5
  import { property as a } from "lit/decorators.js";
6
6
  //#region src/components/tooltip.ts
7
7
  var o = class extends e {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "Generated from custom-elements.json by packages/ui/cem/generate.js. Do not edit.",
3
3
  "package": "@voidable/ui",
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "componentCount": 66,
6
6
  "tagCount": 78,
7
7
  "eventNames": [
@@ -15,6 +15,7 @@
15
15
  "void-expand",
16
16
  "void-input",
17
17
  "void-open",
18
+ "void-reject",
18
19
  "void-remove",
19
20
  "void-retry",
20
21
  "void-select",
@@ -832,8 +833,8 @@
832
833
  "tag": "void-bar-chart",
833
834
  "className": "VoidBarChart",
834
835
  "module": "dist/components/bar-chart.js",
835
- "attributes": 5,
836
- "properties": 6,
836
+ "attributes": 7,
837
+ "properties": 7,
837
838
  "events": []
838
839
  },
839
840
  {
@@ -966,12 +967,12 @@
966
967
  "tag": "void-date-picker",
967
968
  "className": "VoidDatePicker",
968
969
  "module": "dist/components/calendar.js",
969
- "attributes": 13,
970
- "properties": 13,
970
+ "attributes": 14,
971
+ "properties": 14,
971
972
  "events": [
973
+ "void-change",
972
974
  "void-open",
973
- "void-close",
974
- "void-change"
975
+ "void-close"
975
976
  ]
976
977
  },
977
978
  {
@@ -997,8 +998,8 @@
997
998
  "tag": "void-donut-chart",
998
999
  "className": "VoidDonutChart",
999
1000
  "module": "dist/components/donut-chart.js",
1000
- "attributes": 7,
1001
- "properties": 8,
1001
+ "attributes": 9,
1002
+ "properties": 9,
1002
1003
  "events": []
1003
1004
  },
1004
1005
  {
@@ -1071,6 +1072,7 @@
1071
1072
  "attributes": 7,
1072
1073
  "properties": 7,
1073
1074
  "events": [
1075
+ "void-reject",
1074
1076
  "void-change"
1075
1077
  ]
1076
1078
  },
@@ -1078,8 +1080,8 @@
1078
1080
  "tag": "void-gauge",
1079
1081
  "className": "VoidGauge",
1080
1082
  "module": "dist/components/gauge.js",
1081
- "attributes": 17,
1082
- "properties": 19,
1083
+ "attributes": 20,
1084
+ "properties": 20,
1083
1085
  "events": []
1084
1086
  },
1085
1087
  {
@@ -1127,8 +1129,8 @@
1127
1129
  "tag": "void-line-chart",
1128
1130
  "className": "VoidLineChart",
1129
1131
  "module": "dist/components/line-chart.js",
1130
- "attributes": 5,
1131
- "properties": 6,
1132
+ "attributes": 7,
1133
+ "properties": 7,
1132
1134
  "events": []
1133
1135
  },
1134
1136
  {