@voidable/ui 0.11.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 (151) hide show
  1. package/dist/angular/index.d.ts +2 -2
  2. package/dist/angular/index.js +2 -1
  3. package/dist/chunks/activation-B8aBarKd.js +4 -0
  4. package/dist/chunks/carousel-C9u0bg5l.js +10 -0
  5. package/dist/chunks/choice-BTrsi7OW.js +16 -0
  6. package/dist/chunks/data-Baycjoo4.js +96 -0
  7. package/dist/chunks/fields-MEqz-olE.js +21 -0
  8. package/dist/chunks/{form-control-C0vH6gii.js → form-control-fL-Hhy91.js} +49 -48
  9. package/dist/chunks/{keyboard-CEhMSkws.js → keyboard-ChtDvhB_.js} +4 -23
  10. package/dist/chunks/{keyboard-activation-CV0m4hkn.js → keyboard-activation-BfEyoaMT.js} +4 -6
  11. package/dist/chunks/menu-CxRRgkJI.js +21 -0
  12. package/dist/chunks/{modal-DWGkNdNG.js → modal-Cz2-Ov76.js} +23 -15
  13. package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
  14. package/dist/chunks/{overlay-CH7L4N-h.js → overlay-BuV-4Yvt.js} +75 -68
  15. package/dist/chunks/overlay-K1ilWC1p.js +4 -0
  16. package/dist/chunks/pickers-CjlFgNke.js +36 -0
  17. package/dist/chunks/table-BBpqwWEi.js +4 -0
  18. package/dist/chunks/tabs-Buf3EBWq.js +10 -0
  19. package/dist/components/accordion.d.ts +7 -0
  20. package/dist/components/accordion.js +22 -14
  21. package/dist/components/action-input.d.ts +2 -1
  22. package/dist/components/action-input.js +59 -55
  23. package/dist/components/bar-chart.js +41 -40
  24. package/dist/components/breadcrumbs.d.ts +2 -0
  25. package/dist/components/breadcrumbs.js +15 -11
  26. package/dist/components/button.d.ts +7 -0
  27. package/dist/components/button.js +23 -16
  28. package/dist/components/calendar.d.ts +45 -10
  29. package/dist/components/calendar.js +183 -129
  30. package/dist/components/carousel.d.ts +22 -0
  31. package/dist/components/carousel.js +64 -35
  32. package/dist/components/charts/data.d.ts +2 -2
  33. package/dist/components/checkbox-group.js +22 -21
  34. package/dist/components/checkbox.d.ts +7 -0
  35. package/dist/components/checkbox.js +29 -24
  36. package/dist/components/collapsible.d.ts +7 -0
  37. package/dist/components/collapsible.js +19 -11
  38. package/dist/components/color-picker.js +28 -27
  39. package/dist/components/combobox.d.ts +13 -1
  40. package/dist/components/combobox.js +54 -41
  41. package/dist/components/compose-input.d.ts +9 -1
  42. package/dist/components/compose-input.js +28 -16
  43. package/dist/components/dialog.js +1 -1
  44. package/dist/components/donut-chart.js +57 -56
  45. package/dist/components/drawer.js +1 -1
  46. package/dist/components/dropdown-menu.d.ts +22 -0
  47. package/dist/components/dropdown-menu.js +54 -39
  48. package/dist/components/editable.d.ts +11 -1
  49. package/dist/components/editable.js +35 -22
  50. package/dist/components/error-fallback.d.ts +4 -2
  51. package/dist/components/error-fallback.js +34 -28
  52. package/dist/components/file-upload.d.ts +9 -0
  53. package/dist/components/file-upload.js +54 -28
  54. package/dist/components/gauge.js +108 -107
  55. package/dist/components/hamburger.d.ts +7 -0
  56. package/dist/components/hamburger.js +28 -19
  57. package/dist/components/hover-card.d.ts +7 -0
  58. package/dist/components/hover-card.js +22 -14
  59. package/dist/components/indicator.js +15 -14
  60. package/dist/components/input.js +1 -1
  61. package/dist/components/line-chart.js +43 -42
  62. package/dist/components/menu.d.ts +25 -0
  63. package/dist/components/menu.js +55 -33
  64. package/dist/components/multiselect.d.ts +17 -1
  65. package/dist/components/multiselect.js +96 -74
  66. package/dist/components/nav-menu.d.ts +9 -0
  67. package/dist/components/nav-menu.js +30 -23
  68. package/dist/components/number-input.d.ts +15 -1
  69. package/dist/components/number-input.js +71 -37
  70. package/dist/components/pagination.js +25 -24
  71. package/dist/components/pin-input.d.ts +11 -0
  72. package/dist/components/pin-input.js +46 -32
  73. package/dist/components/popover.d.ts +7 -0
  74. package/dist/components/popover.js +21 -13
  75. package/dist/components/radio-group.js +1 -1
  76. package/dist/components/radio.d.ts +10 -1
  77. package/dist/components/radio.js +37 -32
  78. package/dist/components/segmented-control.d.ts +14 -0
  79. package/dist/components/segmented-control.js +40 -28
  80. package/dist/components/sidebar.d.ts +1 -0
  81. package/dist/components/sidebar.js +14 -10
  82. package/dist/components/slider.js +1 -1
  83. package/dist/components/spinner.d.ts +5 -3
  84. package/dist/components/spinner.js +21 -14
  85. package/dist/components/stat.js +1 -1
  86. package/dist/components/status-dot.d.ts +2 -2
  87. package/dist/components/status-dot.js +12 -14
  88. package/dist/components/stepper.d.ts +2 -0
  89. package/dist/components/stepper.js +20 -13
  90. package/dist/components/switch.d.ts +7 -0
  91. package/dist/components/switch.js +24 -16
  92. package/dist/components/table.d.ts +77 -1
  93. package/dist/components/table.js +562 -73
  94. package/dist/components/tabs.d.ts +11 -0
  95. package/dist/components/tabs.js +42 -33
  96. package/dist/components/tag.js +12 -11
  97. package/dist/components/tags-input.d.ts +10 -1
  98. package/dist/components/tags-input.js +42 -30
  99. package/dist/components/textarea.js +1 -1
  100. package/dist/components/toast.d.ts +2 -0
  101. package/dist/components/toast.js +35 -28
  102. package/dist/components/toggle-group.d.ts +8 -0
  103. package/dist/components/toggle-group.js +24 -17
  104. package/dist/components/toggle.d.ts +7 -0
  105. package/dist/components/toggle.js +23 -15
  106. package/dist/components/tooltip.d.ts +7 -0
  107. package/dist/components/tooltip.js +20 -12
  108. package/dist/components.json +96 -74
  109. package/dist/custom-elements.json +4213 -131
  110. package/dist/dev/rules.d.ts +0 -1
  111. package/dist/dev/types.d.ts +3 -1
  112. package/dist/dev.js +244 -113
  113. package/dist/index.d.ts +4 -0
  114. package/dist/index.js +68 -66
  115. package/dist/keyboard-activation.d.ts +9 -9
  116. package/dist/keyboard.d.ts +2 -10
  117. package/dist/keymaps/activation.d.ts +8 -0
  118. package/dist/keymaps/carousel.d.ts +9 -0
  119. package/dist/keymaps/choice.d.ts +21 -0
  120. package/dist/keymaps/fields.d.ts +31 -0
  121. package/dist/keymaps/index.d.ts +2 -0
  122. package/dist/keymaps/menu.d.ts +36 -0
  123. package/dist/keymaps/nav-menu.d.ts +11 -0
  124. package/dist/keymaps/overlay.d.ts +4 -0
  125. package/dist/keymaps/pickers.d.ts +36 -0
  126. package/dist/keymaps/table.d.ts +8 -0
  127. package/dist/keymaps/tabs.d.ts +7 -0
  128. package/dist/keymaps.js +51 -0
  129. package/dist/keys.d.ts +46 -0
  130. package/dist/keys.js +57 -0
  131. package/dist/llms.txt +11 -3
  132. package/dist/messages/ar.d.ts +1 -0
  133. package/dist/messages/ar.js +130 -0
  134. package/dist/messages/fr.d.ts +1 -0
  135. package/dist/messages/fr.js +109 -0
  136. package/dist/messages.d.ts +213 -0
  137. package/dist/messages.js +190 -0
  138. package/dist/modal.d.ts +7 -0
  139. package/dist/reference.md +817 -17
  140. package/dist/testing/index.d.ts +46 -0
  141. package/dist/testing.js +79 -0
  142. package/dist/types/elements.d.ts +89 -73
  143. package/dist/types/react.d.ts +5 -1
  144. package/dist/types/solid.d.ts +5 -1
  145. package/dist/types/solid2.d.ts +4 -0
  146. package/dist/types/svelte.d.ts +5 -1
  147. package/dist/types/vue.d.ts +5 -1
  148. package/dist/vscode.html-custom-data.json +384 -18
  149. package/dist/web-types.json +830 -69
  150. package/package.json +22 -2
  151. package/dist/chunks/data-BpiiNapL.js +0 -95
package/dist/dev.js CHANGED
@@ -96,11 +96,30 @@ function m(e, t) {
96
96
  return t === "" ? e : `${e}="${t}"`;
97
97
  }
98
98
  function h(e, t, n) {
99
+ if (!t.trim()) return;
100
+ let r;
101
+ try {
102
+ r = JSON.parse(t);
103
+ } catch {
104
+ r = void 0;
105
+ }
106
+ if (!r || typeof r != "object" || Array.isArray(r)) return d("keys", e.localName, "keys", `${n}: keys must be a JSON object such as {"close":[]}, so it is ignored.`, e);
107
+ let i = customElements.get(e.localName)?.keyMap;
108
+ if (!i) return;
109
+ let a = Object.keys(i);
110
+ for (let t of Object.keys(r)) {
111
+ if (t in i) continue;
112
+ let r = s(t, a);
113
+ return d("keys", e.localName, t, `${n}: ${e.localName} has no key action "${t}", so it does nothing. ${r ? `Did you mean "${r}"?` : `Its actions: ${a.join(", ")}.`}`, e);
114
+ }
115
+ }
116
+ function g(e, t, n) {
99
117
  let i = e[t.localName];
100
118
  if (!i) return;
101
119
  let a = Object.hasOwn(i.a, n) ? i.a[n] : void 0, o = t.getAttribute(n);
102
120
  if (o === null) return;
103
121
  let l = u(t, n);
122
+ if (n === "keys" && a !== void 0) return h(t, o, l);
104
123
  if (a === void 0) {
105
124
  if (i.h?.includes(n) || r(n)) return;
106
125
  let e = i.l?.a && Object.hasOwn(i.l.a, n) ? i.l.a[n] : void 0;
@@ -115,8 +134,8 @@ function h(e, t, n) {
115
134
  ].filter(Boolean);
116
135
  return d("unknown-attribute", t.localName, n, `${l}: "${n}" is not an attribute of ${t.localName}, so it does nothing. ${h.join(" ")}`.trim(), t);
117
136
  }
118
- let h = i.l?.v?.[n] && Object.hasOwn(i.l.v[n], o) ? i.l.v[n][o] : void 0;
119
- if (h !== void 0 && !(Array.isArray(a) && a.includes(o))) return d("legacy-markup", t.localName, n, `${l}: ${n}="${o}" was renamed in Void UI 0.8, so it is ignored. Write ${n}="${h}" instead.`, t);
137
+ let g = i.l?.v?.[n] && Object.hasOwn(i.l.v[n], o) ? i.l.v[n][o] : void 0;
138
+ if (g !== void 0 && !(Array.isArray(a) && a.includes(o))) return d("legacy-markup", t.localName, n, `${l}: ${n}="${o}" was renamed in Void UI 0.8, so it is ignored. Write ${n}="${g}" instead.`, t);
120
139
  if (Array.isArray(a)) {
121
140
  if (a.includes(o)) return;
122
141
  let e = a.map((e) => e === "" ? "\"\"" : e), r = s(o, a.filter((e) => e !== ""), !0);
@@ -125,47 +144,47 @@ function h(e, t, n) {
125
144
  if (a === 1) return o.toLowerCase() === "false" ? d("boolean-false", t.localName, n, `${l}: ${n} is a boolean attribute, on whenever it is present, so ${n}="false" does not turn it off. Remove the attribute to turn it off.`, t) : void 0;
126
145
  if (a === 2 && !f(o)) return d("invalid-value", t.localName, n, `${l}: "${o}" is not a number, so ${n} is ignored. Write a plain number such as ${n}="10".`, t);
127
146
  }
128
- function g(e, t) {
147
+ function _(e, t) {
129
148
  let n = [];
130
149
  if (!e[t.localName]) return n;
131
150
  for (let r of Array.from(t.attributes)) {
132
- let i = h(e, t, r.name);
151
+ let i = g(e, t, r.name);
133
152
  i && n.push(i);
134
153
  }
135
154
  return n;
136
155
  }
137
- var _ = "void-projection-park";
156
+ var v = "void-projection-park";
138
157
  function ee(e) {
139
158
  for (let t = e.parentElement; t; t = t.parentElement) if (t.localName.startsWith("void-")) return t;
140
159
  return null;
141
160
  }
142
- function v(e, t) {
161
+ function y(e, t) {
143
162
  let n = e[t.localName]?.p;
144
163
  if (!n || !t.isConnected) return;
145
- for (let e = t.parentElement; e; e = e.parentElement) if (e.localName === _ || n.includes(e.localName)) return;
164
+ for (let e = t.parentElement; e; e = e.parentElement) if (e.localName === v || n.includes(e.localName)) return;
146
165
  let r = ee(t), i = r ? `it is inside <${r.localName}>` : "it has no void-* parent", a = r?.localName === "void-select" ? " <void-select> takes a native <select> with native <option>s inside." : "";
147
166
  return d("wrong-parent", t.localName, r?.localName ?? "", `${u(t)} only works inside ${l(n)}, and ${i}, so it is not used.${a}`, t);
148
167
  }
149
- function y(e, t) {
168
+ function b(e, t) {
150
169
  let n = e[t.localName]?.r;
151
170
  if (!n || !t.isConnected) return [];
152
171
  let r = [];
153
172
  for (let e of n) t.querySelector(e) || r.push(d("missing-child", t.localName, e, `${u(t)} has no <${e}> child, which it needs to show anything. Add at least one <${e}>.`, t));
154
173
  return r;
155
174
  }
156
- var b = (e) => !!e && e.trim() !== "";
157
- function x(e) {
175
+ var x = (e) => !!e && e.trim() !== "";
176
+ function S(e) {
158
177
  let t = (e.getAttribute("aria-labelledby") ?? "").split(/\s+/).filter(Boolean);
159
178
  if (!t.length) return !1;
160
179
  let n = e.getRootNode();
161
180
  return t.some((e) => {
162
181
  let t = n.getElementById?.(e);
163
- return !t || b(t.textContent) || b(t.getAttribute("aria-label"));
182
+ return !t || x(t.textContent) || x(t.getAttribute("aria-label"));
164
183
  });
165
184
  }
166
185
  function te(e) {
167
- if (b(e.textContent)) return !0;
168
- for (let t of e.querySelectorAll("[aria-label], img[alt], [title]")) if (b(t.getAttribute("aria-label")) || b(t.getAttribute("alt")) || b(t.getAttribute("title"))) return !0;
186
+ if (x(e.textContent)) return !0;
187
+ for (let t of e.querySelectorAll("[aria-label], img[alt], [title]")) if (x(t.getAttribute("aria-label")) || x(t.getAttribute("alt")) || x(t.getAttribute("title"))) return !0;
169
188
  return !1;
170
189
  }
171
190
  function ne(e) {
@@ -173,19 +192,19 @@ function ne(e) {
173
192
  return t.querySelectorAll ? [e, ...e.querySelectorAll("input, select, textarea, button, [role=\"combobox\"], [role=\"slider\"]")].map((e) => e.id).filter(Boolean).some((e) => Array.from(t.querySelectorAll("label[for]")).some((t) => t.getAttribute("for") === e)) : !1;
174
193
  }
175
194
  function re(e, t) {
176
- if (t.a.some((t) => b(e.getAttribute(t))) || x(e)) return !0;
177
- for (let t of e.querySelectorAll("input, select, textarea, [role=\"combobox\"], [role=\"slider\"], [role=\"textbox\"], [role=\"button\"]:not(button)")) if (b(t.getAttribute("aria-label")) || x(t) || t.labels?.length) return !0;
195
+ if (t.a.some((t) => x(e.getAttribute(t))) || S(e)) return !0;
196
+ for (let t of e.querySelectorAll("input, select, textarea, [role=\"combobox\"], [role=\"slider\"], [role=\"textbox\"], [role=\"button\"]:not(button)")) if (x(t.getAttribute("aria-label")) || S(t) || t.labels?.length) return !0;
178
197
  if (t.c && te(e)) return !0;
179
- for (let n of t.t ?? []) for (let t of e.querySelectorAll(n)) if (b(t.textContent) || b(t.getAttribute("aria-label")) || x(t)) return !0;
198
+ for (let n of t.t ?? []) for (let t of e.querySelectorAll(n)) if (x(t.textContent) || x(t.getAttribute("aria-label")) || S(t)) return !0;
180
199
  for (let [n, ...r] of t.p ?? []) {
181
200
  let t = e.parentElement?.closest(n);
182
- if (t && (!r.length || r.some((e) => b(t.getAttribute(e))))) return !0;
201
+ if (t && (!r.length || r.some((e) => x(t.getAttribute(e))))) return !0;
183
202
  }
184
203
  return ne(e);
185
204
  }
186
- function S(e, t) {
205
+ function C(e, t) {
187
206
  let n = e[t.localName]?.n;
188
- if (!n || !t.isConnected || t.closest(_) || re(t, n)) return;
207
+ if (!n || !t.isConnected || t.closest(v) || re(t, n)) return;
189
208
  let r = [
190
209
  n.a.some((e) => !/^(aria-|title$)/.test(e)) ? `a ${c(n.a.filter((e) => !/^(aria-|title$)/.test(e)))} attribute` : "",
191
210
  "aria-label",
@@ -195,7 +214,7 @@ function S(e, t) {
195
214
  ].filter(Boolean);
196
215
  return d("missing-name", t.localName, "", `${u(t)} has no accessible name, so a screen reader announces it as nothing. Name it with ${r.join(", ")}: ${n.h}.`, t);
197
216
  }
198
- function C(e, t, n, r = []) {
217
+ function w(e, t, n, r = []) {
199
218
  let i = t.localName;
200
219
  if (!i.startsWith("void-") || customElements.get(i) || r.includes(i)) return;
201
220
  let a = e[i];
@@ -240,11 +259,11 @@ function se(e, t) {
240
259
  };
241
260
  return r(e), n;
242
261
  }
243
- var w = (e) => `Correct markup: ${e.s}`, ce = (e) => {
262
+ var T = (e) => `Correct markup: ${e.s}`, E = (e) => {
244
263
  let t = e.map((e) => `<${e}>`);
245
264
  return t.length < 2 ? t.join("") : `${t.slice(0, -1).join(", ")} and ${t[t.length - 1]}`;
246
265
  };
247
- function T(e, t) {
266
+ function D(e, t) {
248
267
  let n = e[t.localName]?.q;
249
268
  if (!n || !t.isConnected) return [];
250
269
  let r = [], i = u(t), a = n.n.map((e) => e.t), o = se(t, n.t), s = /* @__PURE__ */ new Map(), c = -1, l = !0;
@@ -252,48 +271,48 @@ function T(e, t) {
252
271
  if (f.nodeType === 3) {
253
272
  if (n.k === "parts" && (f.textContent ?? "").trim()) {
254
273
  let e = (f.textContent ?? "").trim();
255
- r.push(d("unknown-child", t.localName, "#text", `${i} has text outside its parts ("${e.length > 24 ? `${e.slice(0, 24)}...` : e}"), which is not shown where you expect.${n.l ? ` Instead ${n.l}.` : ""} ${w(n)}`, t));
274
+ r.push(d("unknown-child", t.localName, "#text", `${i} has text outside its parts ("${e.length > 24 ? `${e.slice(0, 24)}...` : e}"), which is not shown where you expect.${n.l ? ` Instead ${n.l}.` : ""} ${T(n)}`, t));
256
275
  }
257
276
  continue;
258
277
  }
259
278
  if (f.nodeType !== 1) continue;
260
279
  let o = f, p = o.localName, m = a.indexOf(p);
261
280
  if (m < 0) {
262
- n.k === "parts" && !oe.has(p) && !e[p]?.p && r.push(d("unknown-child", t.localName, p, `${u(o)} is not a part of <${t.localName}>, which takes only ${ce(a)}.${n.l ? ` Instead ${n.l}.` : ""} ${w(n)}`, o));
281
+ n.k === "parts" && !oe.has(p) && !e[p]?.p && r.push(d("unknown-child", t.localName, p, `${u(o)} is not a part of <${t.localName}>, which takes only ${E(a)}.${n.l ? ` Instead ${n.l}.` : ""} ${T(n)}`, o));
263
282
  continue;
264
283
  }
265
284
  s.set(p, (s.get(p) ?? 0) + 1), m < c && (l = !1), c = Math.max(c, m);
266
285
  }
267
286
  for (let e of n.n) {
268
287
  let a = s.get(e.t) ?? 0;
269
- e.r && a === 0 && r.push(d("missing-part", t.localName, e.t, `${i} has no <${e.t}>, which it needs.${n.l ? ` If you wrote the content directly inside it: ${n.l}.` : ""} ${w(n)}`, t)), e.x && a > e.x && r.push(d("part-misuse", t.localName, e.t, `${i} has ${a} <${e.t}> parts; it takes at most ${e.x}, and the others are ignored. ${w(n)}`, t));
288
+ e.r && a === 0 && r.push(d("missing-part", t.localName, e.t, `${i} has no <${e.t}>, which it needs.${n.l ? ` If you wrote the content directly inside it: ${n.l}.` : ""} ${T(n)}`, t)), e.x && a > e.x && r.push(d("part-misuse", t.localName, e.t, `${i} has ${a} <${e.t}> parts; it takes at most ${e.x}, and the others are ignored. ${T(n)}`, t));
270
289
  }
271
- return n.o && !l && r.push(d("part-misuse", t.localName, "order", `${i}: its parts are out of order, so they read in the wrong order (screen readers and Tab follow the markup). Write them as ${ce(a.filter((e) => s.has(e))).replace(" and ", ", ")}, in that order. ${w(n)}`, t)), r;
290
+ return n.o && !l && r.push(d("part-misuse", t.localName, "order", `${i}: its parts are out of order, so they read in the wrong order (screen readers and Tab follow the markup). Write them as ${E(a.filter((e) => s.has(e))).replace(" and ", ", ")}, in that order. ${T(n)}`, t)), r;
272
291
  }
273
- function E(e, t) {
292
+ function O(e, t) {
274
293
  let n = e[t.localName];
275
294
  if (!(!n?.c || !n.p)) for (let r of n.p) {
276
295
  if (!e[r]?.q?.n.find((e) => e.t === t.localName)?.c) continue;
277
296
  let n = t.children.length, i = Array.from(t.childNodes).some((e) => e.nodeType === 3 && (e.textContent ?? "").trim());
278
297
  if (n === 1 && !i) return;
279
298
  let a = e[r].q;
280
- return d("unknown-child", t.localName, n ? "controls" : "control", `${u(t)} must wrap exactly one element, the control that gets the ARIA (a <void-button>, a <button>, a link); it has ${n === 0 ? i ? "only text" : "nothing" : `${n} elements`}. ${w(a)}`, t);
299
+ return d("unknown-child", t.localName, n ? "controls" : "control", `${u(t)} must wrap exactly one element, the control that gets the ARIA (a <void-button>, a <button>, a link); it has ${n === 0 ? i ? "only text" : "nothing" : `${n} elements`}. ${T(a)}`, t);
281
300
  }
282
301
  }
283
- function D(e, t) {
302
+ function k(e, t) {
284
303
  let n = e[t.localName]?.v;
285
304
  if (!n || !t.isConnected) return;
286
305
  for (let e of Array.from(t.querySelectorAll(n.tag))) if (e.closest(t.localName) === t) return;
287
306
  let r = Array.from(t.children).some((e) => e.localName === "option" || e.localName === "optgroup");
288
307
  return d(r ? "legacy-markup" : "missing-part", t.localName, n.tag, `${u(t)} has no native <${n.tag}> inside${r ? ": its options are written straight into it, which no longer works" : ""}. Instead ${n.fix}.`, t);
289
308
  }
290
- function O(e, t) {
309
+ function A(e, t) {
291
310
  let n = e[t.localName];
292
311
  if (n) return d("legacy-markup", t.localName, t.localName, `${u(t)} no longer exists, so it does nothing. Instead ${n}.`, t);
293
312
  }
294
313
  //#endregion
295
314
  //#region src/dev/table.generated.ts
296
- var k = {
315
+ var j = {
297
316
  "void-accordion": {
298
317
  m: "accordion",
299
318
  a: { multiple: 1 },
@@ -317,7 +336,10 @@ var k = {
317
336
  },
318
337
  "void-accordion-item": {
319
338
  m: "accordion",
320
- a: { open: 1 },
339
+ a: {
340
+ keys: 0,
341
+ open: 1
342
+ },
321
343
  e: ["void-close", "void-open"],
322
344
  p: ["void-accordion"],
323
345
  x: { heading: "write the heading as <void-accordion-trigger>...</void-accordion-trigger> and the content in <void-accordion-content> after it" },
@@ -704,6 +726,7 @@ var k = {
704
726
  "void-button": {
705
727
  m: "button",
706
728
  a: {
729
+ keys: 0,
707
730
  variant: [
708
731
  "outline",
709
732
  "filled",
@@ -745,6 +768,7 @@ var k = {
745
768
  "void-calendar": {
746
769
  m: "calendar",
747
770
  a: {
771
+ keys: 0,
748
772
  value: 0,
749
773
  min: 0,
750
774
  max: 0,
@@ -851,6 +875,7 @@ var k = {
851
875
  "void-carousel": {
852
876
  m: "carousel",
853
877
  a: {
878
+ keys: 0,
854
879
  index: 2,
855
880
  loop: 1,
856
881
  autoplay: 1,
@@ -937,7 +962,7 @@ var k = {
937
962
  },
938
963
  "void-carousel-next": {
939
964
  m: "carousel",
940
- a: {},
965
+ a: { keys: 0 },
941
966
  e: [],
942
967
  p: ["void-carousel"],
943
968
  n: {
@@ -952,7 +977,7 @@ var k = {
952
977
  },
953
978
  "void-carousel-previous": {
954
979
  m: "carousel",
955
- a: {},
980
+ a: { keys: 0 },
956
981
  e: [],
957
982
  p: ["void-carousel"],
958
983
  n: {
@@ -968,6 +993,7 @@ var k = {
968
993
  "void-checkbox": {
969
994
  m: "checkbox",
970
995
  a: {
996
+ keys: 0,
971
997
  checked: 1,
972
998
  disabled: 1,
973
999
  indeterminate: 1,
@@ -1029,6 +1055,7 @@ var k = {
1029
1055
  "void-collapsible": {
1030
1056
  m: "collapsible",
1031
1057
  a: {
1058
+ keys: 0,
1032
1059
  open: 1,
1033
1060
  disabled: 1
1034
1061
  },
@@ -1115,6 +1142,7 @@ var k = {
1115
1142
  "void-combobox": {
1116
1143
  m: "combobox",
1117
1144
  a: {
1145
+ keys: 0,
1118
1146
  value: 0,
1119
1147
  placeholder: 0,
1120
1148
  disabled: 1,
@@ -1163,6 +1191,7 @@ var k = {
1163
1191
  "void-compose-input": {
1164
1192
  m: "compose-input",
1165
1193
  a: {
1194
+ keys: 0,
1166
1195
  value: 0,
1167
1196
  placeholder: 0,
1168
1197
  disabled: 1,
@@ -1182,6 +1211,7 @@ var k = {
1182
1211
  "void-date-picker": {
1183
1212
  m: "calendar",
1184
1213
  a: {
1214
+ keys: 0,
1185
1215
  value: 0,
1186
1216
  min: 0,
1187
1217
  max: 0,
@@ -1234,6 +1264,7 @@ var k = {
1234
1264
  "md",
1235
1265
  "lg"
1236
1266
  ],
1267
+ keys: 0,
1237
1268
  open: 1,
1238
1269
  "hide-close": 1
1239
1270
  },
@@ -1358,6 +1389,7 @@ var k = {
1358
1389
  "md",
1359
1390
  "lg"
1360
1391
  ],
1392
+ keys: 0,
1361
1393
  open: 1,
1362
1394
  "hide-close": 1
1363
1395
  },
@@ -1440,6 +1472,7 @@ var k = {
1440
1472
  "void-dropdown-menu": {
1441
1473
  m: "dropdown-menu",
1442
1474
  a: {
1475
+ keys: 0,
1443
1476
  open: 1,
1444
1477
  side: [
1445
1478
  "top",
@@ -1511,6 +1544,7 @@ var k = {
1511
1544
  "void-dropdown-menu-item": {
1512
1545
  m: "dropdown-menu",
1513
1546
  a: {
1547
+ keys: 0,
1514
1548
  value: 0,
1515
1549
  disabled: 1,
1516
1550
  destructive: 1,
@@ -1536,6 +1570,7 @@ var k = {
1536
1570
  "void-editable": {
1537
1571
  m: "editable",
1538
1572
  a: {
1573
+ keys: 0,
1539
1574
  value: 0,
1540
1575
  editing: 1,
1541
1576
  disabled: 1,
@@ -1631,6 +1666,7 @@ var k = {
1631
1666
  "void-file-upload": {
1632
1667
  m: "file-upload",
1633
1668
  a: {
1669
+ keys: 0,
1634
1670
  accept: 0,
1635
1671
  multiple: 1,
1636
1672
  disabled: 1,
@@ -1711,6 +1747,7 @@ var k = {
1711
1747
  "void-hamburger": {
1712
1748
  m: "hamburger",
1713
1749
  a: {
1750
+ keys: 0,
1714
1751
  open: 1,
1715
1752
  size: [
1716
1753
  "sm",
@@ -1735,6 +1772,7 @@ var k = {
1735
1772
  "void-hover-card": {
1736
1773
  m: "hover-card",
1737
1774
  a: {
1775
+ keys: 0,
1738
1776
  open: 1,
1739
1777
  side: [
1740
1778
  "top",
@@ -1943,6 +1981,7 @@ var k = {
1943
1981
  "void-menu": {
1944
1982
  m: "menu",
1945
1983
  a: {
1984
+ keys: 0,
1946
1985
  open: 1,
1947
1986
  size: [
1948
1987
  "sm",
@@ -2028,6 +2067,7 @@ var k = {
2028
2067
  "void-menu-item": {
2029
2068
  m: "menu",
2030
2069
  a: {
2070
+ keys: 0,
2031
2071
  value: 0,
2032
2072
  disabled: 1
2033
2073
  },
@@ -2078,6 +2118,7 @@ var k = {
2078
2118
  "void-multiselect": {
2079
2119
  m: "multiselect",
2080
2120
  a: {
2121
+ keys: 0,
2081
2122
  placeholder: 0,
2082
2123
  disabled: 1,
2083
2124
  size: [
@@ -2143,6 +2184,7 @@ var k = {
2143
2184
  "void-nav-menu": {
2144
2185
  m: "nav-menu",
2145
2186
  a: {
2187
+ keys: 0,
2146
2188
  orientation: ["horizontal", "vertical"],
2147
2189
  width: 0
2148
2190
  },
@@ -2204,6 +2246,7 @@ var k = {
2204
2246
  "void-number-input": {
2205
2247
  m: "number-input",
2206
2248
  a: {
2249
+ keys: 0,
2207
2250
  value: 2,
2208
2251
  min: 2,
2209
2252
  max: 2,
@@ -2354,6 +2397,7 @@ var k = {
2354
2397
  "void-pin-input": {
2355
2398
  m: "pin-input",
2356
2399
  a: {
2400
+ keys: 0,
2357
2401
  length: 2,
2358
2402
  groups: 0,
2359
2403
  value: 0,
@@ -2397,6 +2441,7 @@ var k = {
2397
2441
  "void-popover": {
2398
2442
  m: "popover",
2399
2443
  a: {
2444
+ keys: 0,
2400
2445
  open: 1,
2401
2446
  side: [
2402
2447
  "top",
@@ -2496,6 +2541,7 @@ var k = {
2496
2541
  "void-radio": {
2497
2542
  m: "radio",
2498
2543
  a: {
2544
+ keys: 0,
2499
2545
  checked: 1,
2500
2546
  disabled: 1,
2501
2547
  name: 0,
@@ -2569,6 +2615,7 @@ var k = {
2569
2615
  "void-segmented-control": {
2570
2616
  m: "segmented-control",
2571
2617
  a: {
2618
+ keys: 0,
2572
2619
  value: 0,
2573
2620
  disabled: 1,
2574
2621
  size: [
@@ -2595,6 +2642,7 @@ var k = {
2595
2642
  "void-segmented-control-item": {
2596
2643
  m: "segmented-control",
2597
2644
  a: {
2645
+ keys: 0,
2598
2646
  value: 0,
2599
2647
  disabled: 1
2600
2648
  },
@@ -2771,6 +2819,7 @@ var k = {
2771
2819
  "void-switch": {
2772
2820
  m: "switch",
2773
2821
  a: {
2822
+ keys: 0,
2774
2823
  checked: 1,
2775
2824
  disabled: 1,
2776
2825
  value: 0,
@@ -2817,9 +2866,25 @@ var k = {
2817
2866
  "sticky-header": 1,
2818
2867
  "sticky-column": 1,
2819
2868
  "max-height": 0,
2820
- label: 0
2869
+ label: 0,
2870
+ sort: 0,
2871
+ "sort-direction": 0,
2872
+ filter: 0,
2873
+ "filter-columns": 0,
2874
+ selectable: 0,
2875
+ manual: 1,
2876
+ "total-rows": 2,
2877
+ "all-selected": 1,
2878
+ keys: 0,
2879
+ value: 0,
2880
+ required: 1,
2881
+ name: 0
2821
2882
  },
2822
- e: [],
2883
+ e: [
2884
+ "void-change",
2885
+ "void-filter",
2886
+ "void-sort"
2887
+ ],
2823
2888
  h: [
2824
2889
  "data-long",
2825
2890
  "data-overflow-end",
@@ -2837,11 +2902,62 @@ var k = {
2837
2902
  ],
2838
2903
  h: "write a <caption> in the table, or give the void-table an aria-label",
2839
2904
  t: ["caption"]
2905
+ },
2906
+ q: {
2907
+ k: "any",
2908
+ s: "<void-table selectable filter-columns=\"name\" aria-label=\"Team\"><void-table-filter><input type=\"search\" aria-label=\"Filter team\"></void-table-filter><table><thead><tr><th data-stack=\"select\"><void-checkbox></void-checkbox></th><th data-key=\"name\" data-sort>Name</th><th data-key=\"seats\" data-sort=\"number\" data-align=\"end\">Seats</th></tr></thead><tbody><tr data-value=\"ada\"><td><void-checkbox aria-label=\"Select Ada\"></void-checkbox></td><td>Ada</td><td>4</td></tr></tbody></table><void-table-empty hidden>No one matches.</void-table-empty><void-table-selection hidden><span data-count></span> selected<void-button size=\"sm\">Remove</void-button></void-table-selection></void-table>",
2909
+ n: [
2910
+ {
2911
+ t: "void-table-filter",
2912
+ x: 1
2913
+ },
2914
+ {
2915
+ t: "void-table-empty",
2916
+ x: 1
2917
+ },
2918
+ {
2919
+ t: "void-table-selection",
2920
+ x: 1
2921
+ },
2922
+ {
2923
+ t: "void-table-select-all",
2924
+ x: 1
2925
+ }
2926
+ ]
2840
2927
  }
2841
2928
  },
2929
+ "void-table-empty": {
2930
+ m: "table",
2931
+ a: {},
2932
+ e: [],
2933
+ p: ["void-table"],
2934
+ c: 1
2935
+ },
2936
+ "void-table-filter": {
2937
+ m: "table",
2938
+ a: {},
2939
+ e: [],
2940
+ p: ["void-table"],
2941
+ c: 1
2942
+ },
2943
+ "void-table-select-all": {
2944
+ m: "table",
2945
+ a: {},
2946
+ e: [],
2947
+ p: ["void-table"],
2948
+ c: 1
2949
+ },
2950
+ "void-table-selection": {
2951
+ m: "table",
2952
+ a: {},
2953
+ e: [],
2954
+ p: ["void-table"],
2955
+ c: 1
2956
+ },
2842
2957
  "void-tabs": {
2843
2958
  m: "tabs",
2844
2959
  a: {
2960
+ keys: 0,
2845
2961
  value: 0,
2846
2962
  size: [
2847
2963
  "sm",
@@ -2927,6 +3043,7 @@ var k = {
2927
3043
  "void-tags-input": {
2928
3044
  m: "tags-input",
2929
3045
  a: {
3046
+ keys: 0,
2930
3047
  value: 0,
2931
3048
  disabled: 1,
2932
3049
  readonly: 1,
@@ -3132,6 +3249,7 @@ var k = {
3132
3249
  "void-toggle": {
3133
3250
  m: "toggle",
3134
3251
  a: {
3252
+ keys: 0,
3135
3253
  pressed: 1,
3136
3254
  value: 0,
3137
3255
  disabled: 1,
@@ -3166,6 +3284,7 @@ var k = {
3166
3284
  "void-toggle-group": {
3167
3285
  m: "toggle-group",
3168
3286
  a: {
3287
+ keys: 0,
3169
3288
  value: 0,
3170
3289
  multiple: 1,
3171
3290
  disabled: 1,
@@ -3193,6 +3312,7 @@ var k = {
3193
3312
  "void-tooltip": {
3194
3313
  m: "tooltip",
3195
3314
  a: {
3315
+ keys: 0,
3196
3316
  side: [
3197
3317
  "top",
3198
3318
  "bottom",
@@ -3263,7 +3383,7 @@ var k = {
3263
3383
  p: ["void-tooltip"],
3264
3384
  c: 1
3265
3385
  }
3266
- }, A = [
3386
+ }, M = [
3267
3387
  "void-actions",
3268
3388
  "void-brand",
3269
3389
  "void-delta",
@@ -3288,93 +3408,94 @@ var k = {
3288
3408
  "void-stack",
3289
3409
  "void-state",
3290
3410
  "void-toolbar"
3291
- ], j = {
3411
+ ], N = {
3292
3412
  "void-carousel-slide": "write each slide as <void-carousel-item> inside <void-carousel-content>",
3293
3413
  "void-tab-panel": "write the tabs as <void-tabs-list><void-tabs-trigger value=\"a\">Label</void-tabs-trigger></void-tabs-list> and each panel as <void-tabs-content value=\"a\">...</void-tabs-content> (tab=\"a\" becomes value=\"a\"; label=\"...\" becomes the trigger text)"
3294
- }, le = {
3414
+ }, ce = {
3295
3415
  "void-toggle": "listen for void-open and void-close on each <void-accordion-item> (they do not bubble; or listen on the accordion in the capture phase)",
3296
3416
  "void-dismiss": "listen for void-close on the alert itself (it does not bubble; detail.reason is close-button)",
3297
3417
  "void-close": "listen for void-close on the <void-toast> itself (it does not bubble; detail.reason is close-button, timeout or api)"
3298
- }, M = class extends Error {
3418
+ }, P = class extends Error {
3299
3419
  constructor(e) {
3300
3420
  super(e.message), this.name = "VoidDevError", this.warning = e;
3301
3421
  }
3302
- }, ue = new Set(["void-projection-park"]), N = Symbol.for("voidable.autoloader"), P = Symbol.for("voidable.dev"), F = !1, I, L = /* @__PURE__ */ new Set(), R = [], z = /* @__PURE__ */ new Set(), B = 500, V = /* @__PURE__ */ new Set(), H = [];
3303
- function U(e) {
3304
- e.throw !== void 0 && (F = e.throw), "onWarning" in e && (I = e.onWarning), e.ignoreTags && (L = new Set(e.ignoreTags)), e.ignoreAttributes && (R = [...e.ignoreAttributes]), e.ignoreEvents && (z = new Set(e.ignoreEvents)), e.settleMs !== void 0 && (B = e.settleMs);
3422
+ }, le = new Set(["void-projection-park"]), F = Symbol.for("voidable.autoloader"), I = Symbol.for("voidable.dev"), L = !1, R, z = /* @__PURE__ */ new Set(), B = [], V = /* @__PURE__ */ new Set(), H = 500, U = /* @__PURE__ */ new Set(), W = [];
3423
+ function G(e) {
3424
+ e.throw !== void 0 && (L = e.throw), "onWarning" in e && (R = e.onWarning), e.ignoreTags && (z = new Set(e.ignoreTags)), e.ignoreAttributes && (B = [...e.ignoreAttributes]), e.ignoreEvents && (V = new Set(e.ignoreEvents)), e.settleMs !== void 0 && (H = e.settleMs);
3305
3425
  }
3306
- function W(e) {
3307
- return L.has(e.tag) ? !0 : e.kind === "unknown-event" ? z.has(e.subject) : e.kind === "unknown-attribute" || e.kind === "invalid-value" || e.kind === "boolean-false" ? R.some((t) => typeof t == "string" ? t === e.subject : t.test(e.subject)) : !1;
3426
+ function K(e) {
3427
+ return z.has(e.tag) ? !0 : e.kind === "unknown-event" ? V.has(e.subject) : e.kind === "unknown-attribute" || e.kind === "invalid-value" || e.kind === "boolean-false" ? B.some((t) => typeof t == "string" ? t === e.subject : t.test(e.subject)) : !1;
3308
3428
  }
3309
- function G(e) {
3310
- if (!e || W(e)) return;
3311
- if (F) throw new M(e);
3429
+ function q(e) {
3430
+ if (!e || K(e)) return;
3431
+ if (L) throw new P(e);
3312
3432
  let t = ae(e);
3313
- V.has(t) || (V.add(t), H.push(e), I ? I(e) : console.warn(e.message));
3433
+ U.has(t) || (U.add(t), W.push(e), R ? R(e) : console.warn(e.message));
3314
3434
  }
3315
- var K = (e) => e.localName.startsWith("void-") && !ue.has(e.localName);
3316
- function q(e) {
3435
+ var J = (e) => e.localName.startsWith("void-") && !le.has(e.localName);
3436
+ function Y(e) {
3317
3437
  let t = [];
3318
- if (e.nodeType === 1 && K(e) && t.push(e), "querySelectorAll" in e) for (let n of e.querySelectorAll("*")) K(n) && t.push(n);
3438
+ if (e.nodeType === 1 && J(e) && t.push(e), "querySelectorAll" in e) for (let n of e.querySelectorAll("*")) J(n) && t.push(n);
3319
3439
  return t;
3320
3440
  }
3321
- var J = /* @__PURE__ */ new Set(), Y, X = !1, Z = Promise.resolve(), de = (e) => new Promise((t) => setTimeout(t, e)), fe = typeof performance > "u" ? 0 : performance.now(), Q = () => {
3322
- fe = performance.now();
3441
+ var X = /* @__PURE__ */ new Set(), ue, Z = !1, de = Promise.resolve(), fe = (e) => new Promise((t) => setTimeout(t, e)), pe = typeof performance > "u" ? 0 : performance.now(), Q = () => {
3442
+ pe = performance.now();
3323
3443
  };
3324
- async function pe() {
3444
+ async function me() {
3325
3445
  document.readyState === "loading" && await new Promise((e) => document.addEventListener("DOMContentLoaded", () => e(), { once: !0 })), document.readyState !== "complete" && await new Promise((e) => window.addEventListener("load", () => e(), { once: !0 }));
3326
- let e = globalThis[N];
3446
+ let e = globalThis[F];
3327
3447
  for (;;) {
3328
3448
  e && await e.ready();
3329
- let t = performance.now() - fe;
3330
- if (t >= B) return;
3331
- await de(B - t + 5);
3449
+ let t = performance.now() - pe;
3450
+ if (t >= H) return;
3451
+ await fe(H - t + 5);
3332
3452
  }
3333
3453
  }
3334
- function me(e) {
3335
- J.add(e), clearTimeout(Y), X = !0, Y = setTimeout(() => {
3336
- X = !1, Z = he();
3454
+ function he(e) {
3455
+ X.add(e), clearTimeout(ue), Z = !0, ue = setTimeout(() => {
3456
+ Z = !1, de = ge();
3337
3457
  }, 50);
3338
3458
  }
3339
- async function he() {
3340
- await pe();
3341
- let e = [...J];
3342
- J.clear();
3343
- let t = globalThis[N] !== void 0;
3459
+ async function ge() {
3460
+ if (typeof document > "u") return;
3461
+ await me();
3462
+ let e = [...X];
3463
+ X.clear();
3464
+ let t = globalThis[F] !== void 0;
3344
3465
  for (let n of e) if (n.isConnected) {
3345
- G(O(j, n) ?? C(k, n, t, A)), G(v(k, n));
3346
- for (let e of y(k, n)) G(e);
3347
- for (let e of T(k, n)) G(e);
3348
- G(D(k, n)), G(E(k, n)), G(S(k, n));
3466
+ q(A(N, n) ?? w(j, n, t, M)), q(y(j, n));
3467
+ for (let e of b(j, n)) q(e);
3468
+ for (let e of D(j, n)) q(e);
3469
+ q(k(j, n)), q(O(j, n)), q(C(j, n));
3349
3470
  }
3350
3471
  }
3351
- function ge(e) {
3352
- for (let t of g(k, e)) G(t);
3353
- me(e);
3354
- }
3355
3472
  function _e(e) {
3473
+ for (let t of _(j, e)) q(t);
3474
+ he(e);
3475
+ }
3476
+ function ve(e) {
3356
3477
  for (let t of e) {
3357
3478
  if (t.type === "attributes") {
3358
3479
  let e = t.target;
3359
- K(e) && t.attributeName && G(h(k, e, t.attributeName));
3480
+ J(e) && t.attributeName && q(g(j, e, t.attributeName));
3360
3481
  continue;
3361
3482
  }
3362
- for (let e of t.addedNodes) if (e.nodeType === 1) for (let t of q(e)) ge(t);
3483
+ for (let e of t.addedNodes) if (e.nodeType === 1) for (let t of Y(e)) _e(t);
3363
3484
  }
3364
3485
  }
3365
- var ve = typeof MutationObserver > "u" ? void 0 : new MutationObserver(_e), $ = /* @__PURE__ */ new Set();
3366
- function ye(e) {
3367
- if (!(!ve || $.has(e))) {
3368
- $.add(e);
3369
- for (let t of q(e)) ge(t);
3370
- ve.observe(e, {
3486
+ var ye = typeof MutationObserver > "u" ? void 0 : new MutationObserver(ve), be = /* @__PURE__ */ new Set();
3487
+ function $(e) {
3488
+ if (!(!ye || be.has(e))) {
3489
+ be.add(e);
3490
+ for (let t of Y(e)) _e(t);
3491
+ ye.observe(e, {
3371
3492
  subtree: !0,
3372
3493
  childList: !0,
3373
3494
  attributes: !0
3374
3495
  });
3375
3496
  }
3376
3497
  }
3377
- function be() {
3498
+ function xe() {
3378
3499
  let e = CustomElementRegistry.prototype.define;
3379
3500
  if (CustomElementRegistry.prototype.define = function(...t) {
3380
3501
  return Q(), e.apply(this, t);
@@ -3385,51 +3506,61 @@ function be() {
3385
3506
  });
3386
3507
  } catch {}
3387
3508
  }
3388
- function xe() {
3509
+ function Se() {
3389
3510
  let e = Object.getPrototypeOf(document), t = EventTarget.prototype;
3390
3511
  for (; e && e !== Object.prototype;) Object.hasOwn(e, "addEventListener") && (t = e), e = Object.getPrototypeOf(e);
3391
3512
  let n = t.addEventListener;
3392
3513
  t.addEventListener = function(e, ...t) {
3393
- return typeof e == "string" && e.startsWith("void-") && G(ie(k, this, e, le)), n.call(this, e, ...t);
3514
+ return typeof e == "string" && e.startsWith("void-") && q(ie(j, this, e, ce)), n.call(this, e, ...t);
3394
3515
  };
3395
3516
  }
3396
- function Se(e = document) {
3517
+ function Ce(e = document) {
3397
3518
  let t = [];
3398
- for (let n of q(e)) {
3399
- let e = globalThis[N] !== void 0, r = O(j, n);
3519
+ for (let n of Y(e)) {
3520
+ let e = globalThis[F] !== void 0, r = A(N, n);
3400
3521
  for (let i of [
3401
- ...g(k, n),
3402
- r ?? C(k, n, e, A),
3403
- v(k, n),
3404
- ...y(k, n),
3405
- ...T(k, n),
3406
- D(k, n),
3407
- E(k, n),
3408
- S(k, n)
3409
- ]) !i || W(i) || (t.push(i), G(i));
3522
+ ..._(j, n),
3523
+ r ?? w(j, n, e, M),
3524
+ y(j, n),
3525
+ ...b(j, n),
3526
+ ...D(j, n),
3527
+ k(j, n),
3528
+ O(j, n),
3529
+ C(j, n)
3530
+ ]) !i || K(i) || (t.push(i), q(i));
3410
3531
  }
3411
3532
  return t;
3412
3533
  }
3413
- async function Ce() {
3534
+ async function we() {
3414
3535
  for (;;) {
3415
- if (await Z, !X && J.size === 0) return H;
3416
- await de(10);
3536
+ if (await de, !Z && X.size === 0) return W;
3537
+ await fe(10);
3417
3538
  }
3418
3539
  }
3419
- function we() {
3420
- return H;
3421
- }
3422
3540
  function Te() {
3423
- V.clear(), H.length = 0;
3541
+ return W;
3424
3542
  }
3425
3543
  function Ee() {
3426
- typeof document > "u" || globalThis[P] || (globalThis[P] = {
3427
- settled: Ce,
3428
- check: Se,
3429
- warnings: we,
3430
- report: G
3431
- }, globalThis.VOIDABLE_DEV && U(globalThis.VOIDABLE_DEV), be(), xe(), ye(document));
3544
+ U.clear(), W.length = 0;
3545
+ }
3546
+ function De(e, t) {
3547
+ let n = customElements.get(e)?.keyMap;
3548
+ if (n) for (let r of Object.keys(t)) r in n || q({
3549
+ kind: "keys",
3550
+ tag: e,
3551
+ subject: r,
3552
+ message: `[voidable] configureKeys('${e}'): ${e} has no key action "${r}", so it does nothing. Its actions: ${Object.keys(n).join(", ")}.`
3553
+ });
3554
+ }
3555
+ function Oe() {
3556
+ typeof document > "u" || globalThis[I] || (globalThis[I] = {
3557
+ settled: we,
3558
+ check: Ce,
3559
+ warnings: Te,
3560
+ report: q,
3561
+ keys: De
3562
+ }, globalThis.VOIDABLE_DEV && G(globalThis.VOIDABLE_DEV), xe(), Se(), $(document));
3432
3563
  }
3433
- Ee();
3564
+ Oe();
3434
3565
  //#endregion
3435
- export { M as VoidDevError, Se as check, U as configure, ye as observe, Te as reset, Ce as settled, we as warnings };
3566
+ export { P as VoidDevError, Ce as check, G as configure, $ as observe, Ee as reset, we as settled, Te as warnings };