@voidable/ui 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular/index.d.ts +2 -2
- package/dist/angular/index.js +2 -1
- package/dist/base.d.ts +6 -0
- package/dist/base.js +2 -2
- package/dist/chunks/activation-B8aBarKd.js +4 -0
- package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
- package/dist/chunks/carousel-C9u0bg5l.js +10 -0
- package/dist/chunks/choice-BTrsi7OW.js +16 -0
- package/dist/chunks/data-Baycjoo4.js +96 -0
- package/dist/chunks/fields-MEqz-olE.js +21 -0
- package/dist/chunks/{form-control-C0vH6gii.js → form-control-fL-Hhy91.js} +49 -48
- package/dist/chunks/{keyboard-CEhMSkws.js → keyboard-ChtDvhB_.js} +4 -23
- package/dist/chunks/{keyboard-activation-CV0m4hkn.js → keyboard-activation-BfEyoaMT.js} +4 -6
- package/dist/chunks/menu-CxRRgkJI.js +21 -0
- package/dist/chunks/{modal-CgGp_fCs.js → modal-Cz2-Ov76.js} +24 -16
- package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
- package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-BuV-4Yvt.js} +76 -69
- package/dist/chunks/overlay-K1ilWC1p.js +4 -0
- package/dist/chunks/pickers-CjlFgNke.js +36 -0
- package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
- package/dist/chunks/table-BBpqwWEi.js +4 -0
- package/dist/chunks/tabs-Buf3EBWq.js +10 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.js +23 -15
- package/dist/components/action-input.d.ts +2 -1
- package/dist/components/action-input.js +60 -56
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +10 -3
- package/dist/components/avatar.js +2 -2
- package/dist/components/badge.d.ts +8 -2
- package/dist/components/badge.js +1 -4
- package/dist/components/banner.d.ts +9 -0
- package/dist/components/banner.js +10 -3
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +68 -45
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +16 -12
- package/dist/components/button.d.ts +7 -0
- package/dist/components/button.js +24 -17
- package/dist/components/calendar.d.ts +85 -12
- package/dist/components/calendar.js +263 -120
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +22 -0
- package/dist/components/carousel.js +66 -37
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +23 -22
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.js +30 -25
- package/dist/components/collapsible.d.ts +7 -0
- package/dist/components/collapsible.js +20 -12
- package/dist/components/color-picker.js +29 -28
- package/dist/components/combobox.d.ts +13 -1
- package/dist/components/combobox.js +55 -42
- package/dist/components/compose-input.d.ts +9 -1
- package/dist/components/compose-input.js +29 -17
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +2 -2
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +97 -70
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.d.ts +22 -0
- package/dist/components/dropdown-menu.js +55 -40
- package/dist/components/editable.d.ts +11 -1
- package/dist/components/editable.js +36 -23
- package/dist/components/error-fallback.d.ts +4 -2
- package/dist/components/error-fallback.js +35 -29
- package/dist/components/field.js +2 -2
- package/dist/components/file-upload.d.ts +29 -5
- package/dist/components/file-upload.js +84 -28
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +206 -133
- package/dist/components/hamburger.d.ts +19 -1
- package/dist/components/hamburger.js +45 -25
- package/dist/components/hover-card.d.ts +7 -0
- package/dist/components/hover-card.js +23 -15
- package/dist/components/indicator.js +16 -15
- package/dist/components/input.js +3 -3
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +80 -57
- package/dist/components/list.js +1 -1
- package/dist/components/menu.d.ts +25 -0
- package/dist/components/menu.js +56 -34
- package/dist/components/multiselect.d.ts +17 -1
- package/dist/components/multiselect.js +97 -75
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.d.ts +9 -0
- package/dist/components/nav-menu.js +31 -24
- package/dist/components/number-input.d.ts +15 -1
- package/dist/components/number-input.js +72 -38
- package/dist/components/pagination.js +26 -25
- package/dist/components/panel.js +1 -1
- package/dist/components/pin-input.d.ts +11 -0
- package/dist/components/pin-input.js +47 -33
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +22 -14
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-group.js +3 -3
- package/dist/components/radio.d.ts +10 -1
- package/dist/components/radio.js +38 -33
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/segmented-control.d.ts +14 -0
- package/dist/components/segmented-control.js +41 -29
- package/dist/components/select.js +2 -2
- package/dist/components/sidebar.d.ts +1 -0
- package/dist/components/sidebar.js +15 -11
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +3 -3
- package/dist/components/spinner.d.ts +5 -3
- package/dist/components/spinner.js +22 -15
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +28 -20
- package/dist/components/status-dot.d.ts +2 -2
- package/dist/components/status-dot.js +13 -15
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +21 -14
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/switch.js +25 -17
- package/dist/components/table.d.ts +81 -1
- package/dist/components/table.js +571 -69
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.js +43 -34
- package/dist/components/tag.js +13 -12
- package/dist/components/tags-input.d.ts +10 -1
- package/dist/components/tags-input.js +43 -31
- package/dist/components/textarea.js +3 -3
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +36 -29
- package/dist/components/toggle-group.d.ts +8 -0
- package/dist/components/toggle-group.js +25 -18
- package/dist/components/toggle.d.ts +7 -0
- package/dist/components/toggle.js +24 -16
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.js +21 -13
- package/dist/components.json +108 -84
- package/dist/custom-elements.json +4520 -236
- package/dist/dev/rules.d.ts +0 -1
- package/dist/dev/types.d.ts +5 -1
- package/dist/dev.js +298 -122
- package/dist/index.d.ts +4 -0
- package/dist/index.js +69 -67
- package/dist/keyboard-activation.d.ts +9 -9
- package/dist/keyboard.d.ts +2 -10
- package/dist/keymaps/activation.d.ts +8 -0
- package/dist/keymaps/carousel.d.ts +9 -0
- package/dist/keymaps/choice.d.ts +21 -0
- package/dist/keymaps/fields.d.ts +31 -0
- package/dist/keymaps/index.d.ts +2 -0
- package/dist/keymaps/menu.d.ts +36 -0
- package/dist/keymaps/nav-menu.d.ts +11 -0
- package/dist/keymaps/overlay.d.ts +4 -0
- package/dist/keymaps/pickers.d.ts +36 -0
- package/dist/keymaps/table.d.ts +8 -0
- package/dist/keymaps/tabs.d.ts +7 -0
- package/dist/keymaps.js +51 -0
- package/dist/keys.d.ts +46 -0
- package/dist/keys.js +57 -0
- package/dist/llms.txt +11 -3
- package/dist/messages/ar.d.ts +1 -0
- package/dist/messages/ar.js +130 -0
- package/dist/messages/fr.d.ts +1 -0
- package/dist/messages/fr.js +109 -0
- package/dist/messages.d.ts +213 -0
- package/dist/messages.js +190 -0
- package/dist/modal.d.ts +7 -0
- package/dist/reference.md +885 -60
- package/dist/testing/index.d.ts +46 -0
- package/dist/testing.js +79 -0
- package/dist/types/elements.d.ts +100 -84
- package/dist/types/react.d.ts +7 -3
- package/dist/types/solid.d.ts +7 -3
- package/dist/types/solid2.d.ts +4 -0
- package/dist/types/svelte.d.ts +7 -3
- package/dist/types/vue.d.ts +7 -3
- package/dist/vscode.html-custom-data.json +478 -38
- package/dist/web-types.json +1001 -111
- package/package.json +22 -2
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
|
|
119
|
-
if (
|
|
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
|
|
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 =
|
|
151
|
+
let i = g(e, t, r.name);
|
|
133
152
|
i && n.push(i);
|
|
134
153
|
}
|
|
135
154
|
return n;
|
|
136
155
|
}
|
|
137
|
-
var
|
|
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
|
|
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 ===
|
|
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
|
|
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
|
|
157
|
-
function
|
|
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 ||
|
|
182
|
+
return !t || x(t.textContent) || x(t.getAttribute("aria-label"));
|
|
164
183
|
});
|
|
165
184
|
}
|
|
166
185
|
function te(e) {
|
|
167
|
-
if (
|
|
168
|
-
for (let t of e.querySelectorAll("[aria-label], img[alt], [title]")) if (
|
|
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) =>
|
|
177
|
-
for (let t of e.querySelectorAll("input, select, textarea, [role=\"combobox\"], [role=\"slider\"], [role=\"textbox\"], [role=\"button\"]:not(button)")) if (
|
|
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 (
|
|
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) =>
|
|
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
|
|
205
|
+
function C(e, t) {
|
|
187
206
|
let n = e[t.localName]?.n;
|
|
188
|
-
if (!n || !t.isConnected || t.closest(
|
|
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
|
|
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
|
|
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
|
|
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}.` : ""} ${
|
|
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 ${
|
|
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}.` : ""} ${
|
|
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 ${
|
|
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
|
|
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`}. ${
|
|
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
|
|
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
|
|
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
|
|
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: {
|
|
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" },
|
|
@@ -653,7 +675,9 @@ var k = {
|
|
|
653
675
|
"wireframe"
|
|
654
676
|
],
|
|
655
677
|
"aria-label": 0,
|
|
656
|
-
|
|
678
|
+
"show-table": 1,
|
|
679
|
+
stagger: 2,
|
|
680
|
+
data: 0
|
|
657
681
|
},
|
|
658
682
|
e: [],
|
|
659
683
|
l: {
|
|
@@ -702,6 +726,7 @@ var k = {
|
|
|
702
726
|
"void-button": {
|
|
703
727
|
m: "button",
|
|
704
728
|
a: {
|
|
729
|
+
keys: 0,
|
|
705
730
|
variant: [
|
|
706
731
|
"outline",
|
|
707
732
|
"filled",
|
|
@@ -743,6 +768,7 @@ var k = {
|
|
|
743
768
|
"void-calendar": {
|
|
744
769
|
m: "calendar",
|
|
745
770
|
a: {
|
|
771
|
+
keys: 0,
|
|
746
772
|
value: 0,
|
|
747
773
|
min: 0,
|
|
748
774
|
max: 0,
|
|
@@ -849,6 +875,7 @@ var k = {
|
|
|
849
875
|
"void-carousel": {
|
|
850
876
|
m: "carousel",
|
|
851
877
|
a: {
|
|
878
|
+
keys: 0,
|
|
852
879
|
index: 2,
|
|
853
880
|
loop: 1,
|
|
854
881
|
autoplay: 1,
|
|
@@ -865,6 +892,14 @@ var k = {
|
|
|
865
892
|
controls: "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows",
|
|
866
893
|
indicators: "write an empty <void-carousel-indicators></void-carousel-indicators> after the content; leave it out for no dots"
|
|
867
894
|
},
|
|
895
|
+
n: {
|
|
896
|
+
a: [
|
|
897
|
+
"aria-label",
|
|
898
|
+
"aria-labelledby",
|
|
899
|
+
"title"
|
|
900
|
+
],
|
|
901
|
+
h: "say what it shows: aria-label=\"Product photos\""
|
|
902
|
+
},
|
|
868
903
|
l: { a: {
|
|
869
904
|
controls: { fix: "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows" },
|
|
870
905
|
indicators: { fix: "write an empty <void-carousel-indicators></void-carousel-indicators> after the content; leave it out for no dots" },
|
|
@@ -872,7 +907,7 @@ var k = {
|
|
|
872
907
|
} },
|
|
873
908
|
q: {
|
|
874
909
|
k: "parts",
|
|
875
|
-
s: "<void-carousel><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
910
|
+
s: "<void-carousel aria-label=\"Slides\"><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
876
911
|
n: [
|
|
877
912
|
{
|
|
878
913
|
t: "void-carousel-content",
|
|
@@ -904,7 +939,7 @@ var k = {
|
|
|
904
939
|
c: 1,
|
|
905
940
|
q: {
|
|
906
941
|
k: "parts",
|
|
907
|
-
s: "<void-carousel><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
942
|
+
s: "<void-carousel aria-label=\"Slides\"><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
908
943
|
n: [{
|
|
909
944
|
t: "void-carousel-item",
|
|
910
945
|
r: 1
|
|
@@ -927,7 +962,7 @@ var k = {
|
|
|
927
962
|
},
|
|
928
963
|
"void-carousel-next": {
|
|
929
964
|
m: "carousel",
|
|
930
|
-
a: {},
|
|
965
|
+
a: { keys: 0 },
|
|
931
966
|
e: [],
|
|
932
967
|
p: ["void-carousel"],
|
|
933
968
|
n: {
|
|
@@ -942,7 +977,7 @@ var k = {
|
|
|
942
977
|
},
|
|
943
978
|
"void-carousel-previous": {
|
|
944
979
|
m: "carousel",
|
|
945
|
-
a: {},
|
|
980
|
+
a: { keys: 0 },
|
|
946
981
|
e: [],
|
|
947
982
|
p: ["void-carousel"],
|
|
948
983
|
n: {
|
|
@@ -958,6 +993,7 @@ var k = {
|
|
|
958
993
|
"void-checkbox": {
|
|
959
994
|
m: "checkbox",
|
|
960
995
|
a: {
|
|
996
|
+
keys: 0,
|
|
961
997
|
checked: 1,
|
|
962
998
|
disabled: 1,
|
|
963
999
|
indeterminate: 1,
|
|
@@ -1019,6 +1055,7 @@ var k = {
|
|
|
1019
1055
|
"void-collapsible": {
|
|
1020
1056
|
m: "collapsible",
|
|
1021
1057
|
a: {
|
|
1058
|
+
keys: 0,
|
|
1022
1059
|
open: 1,
|
|
1023
1060
|
disabled: 1
|
|
1024
1061
|
},
|
|
@@ -1105,6 +1142,7 @@ var k = {
|
|
|
1105
1142
|
"void-combobox": {
|
|
1106
1143
|
m: "combobox",
|
|
1107
1144
|
a: {
|
|
1145
|
+
keys: 0,
|
|
1108
1146
|
value: 0,
|
|
1109
1147
|
placeholder: 0,
|
|
1110
1148
|
disabled: 1,
|
|
@@ -1153,6 +1191,7 @@ var k = {
|
|
|
1153
1191
|
"void-compose-input": {
|
|
1154
1192
|
m: "compose-input",
|
|
1155
1193
|
a: {
|
|
1194
|
+
keys: 0,
|
|
1156
1195
|
value: 0,
|
|
1157
1196
|
placeholder: 0,
|
|
1158
1197
|
disabled: 1,
|
|
@@ -1172,6 +1211,7 @@ var k = {
|
|
|
1172
1211
|
"void-date-picker": {
|
|
1173
1212
|
m: "calendar",
|
|
1174
1213
|
a: {
|
|
1214
|
+
keys: 0,
|
|
1175
1215
|
value: 0,
|
|
1176
1216
|
min: 0,
|
|
1177
1217
|
max: 0,
|
|
@@ -1196,6 +1236,7 @@ var k = {
|
|
|
1196
1236
|
"notice",
|
|
1197
1237
|
"highlight"
|
|
1198
1238
|
],
|
|
1239
|
+
error: 0,
|
|
1199
1240
|
required: 1,
|
|
1200
1241
|
name: 0
|
|
1201
1242
|
},
|
|
@@ -1223,6 +1264,7 @@ var k = {
|
|
|
1223
1264
|
"md",
|
|
1224
1265
|
"lg"
|
|
1225
1266
|
],
|
|
1267
|
+
keys: 0,
|
|
1226
1268
|
open: 1,
|
|
1227
1269
|
"hide-close": 1
|
|
1228
1270
|
},
|
|
@@ -1323,7 +1365,9 @@ var k = {
|
|
|
1323
1365
|
],
|
|
1324
1366
|
"show-value": 1,
|
|
1325
1367
|
"show-total": 1,
|
|
1326
|
-
"aria-label": 0
|
|
1368
|
+
"aria-label": 0,
|
|
1369
|
+
"show-table": 1,
|
|
1370
|
+
data: 0
|
|
1327
1371
|
},
|
|
1328
1372
|
e: [],
|
|
1329
1373
|
l: { a: { "show-values": { to: "show-value" } } }
|
|
@@ -1345,6 +1389,7 @@ var k = {
|
|
|
1345
1389
|
"md",
|
|
1346
1390
|
"lg"
|
|
1347
1391
|
],
|
|
1392
|
+
keys: 0,
|
|
1348
1393
|
open: 1,
|
|
1349
1394
|
"hide-close": 1
|
|
1350
1395
|
},
|
|
@@ -1427,6 +1472,7 @@ var k = {
|
|
|
1427
1472
|
"void-dropdown-menu": {
|
|
1428
1473
|
m: "dropdown-menu",
|
|
1429
1474
|
a: {
|
|
1475
|
+
keys: 0,
|
|
1430
1476
|
open: 1,
|
|
1431
1477
|
side: [
|
|
1432
1478
|
"top",
|
|
@@ -1498,6 +1544,7 @@ var k = {
|
|
|
1498
1544
|
"void-dropdown-menu-item": {
|
|
1499
1545
|
m: "dropdown-menu",
|
|
1500
1546
|
a: {
|
|
1547
|
+
keys: 0,
|
|
1501
1548
|
value: 0,
|
|
1502
1549
|
disabled: 1,
|
|
1503
1550
|
destructive: 1,
|
|
@@ -1523,6 +1570,7 @@ var k = {
|
|
|
1523
1570
|
"void-editable": {
|
|
1524
1571
|
m: "editable",
|
|
1525
1572
|
a: {
|
|
1573
|
+
keys: 0,
|
|
1526
1574
|
value: 0,
|
|
1527
1575
|
editing: 1,
|
|
1528
1576
|
disabled: 1,
|
|
@@ -1618,6 +1666,7 @@ var k = {
|
|
|
1618
1666
|
"void-file-upload": {
|
|
1619
1667
|
m: "file-upload",
|
|
1620
1668
|
a: {
|
|
1669
|
+
keys: 0,
|
|
1621
1670
|
accept: 0,
|
|
1622
1671
|
multiple: 1,
|
|
1623
1672
|
disabled: 1,
|
|
@@ -1626,7 +1675,7 @@ var k = {
|
|
|
1626
1675
|
required: 1,
|
|
1627
1676
|
name: 0
|
|
1628
1677
|
},
|
|
1629
|
-
e: ["void-change"],
|
|
1678
|
+
e: ["void-change", "void-reject"],
|
|
1630
1679
|
h: ["dragging"],
|
|
1631
1680
|
n: {
|
|
1632
1681
|
a: [
|
|
@@ -1665,7 +1714,10 @@ var k = {
|
|
|
1665
1714
|
"hide-tick-max": 1,
|
|
1666
1715
|
"segments-sort": ["value", "manual"],
|
|
1667
1716
|
gaps: 0,
|
|
1668
|
-
"aria-label": 0
|
|
1717
|
+
"aria-label": 0,
|
|
1718
|
+
"show-table": 1,
|
|
1719
|
+
zones: 0,
|
|
1720
|
+
data: 0
|
|
1669
1721
|
},
|
|
1670
1722
|
e: [],
|
|
1671
1723
|
l: { a: {
|
|
@@ -1695,6 +1747,7 @@ var k = {
|
|
|
1695
1747
|
"void-hamburger": {
|
|
1696
1748
|
m: "hamburger",
|
|
1697
1749
|
a: {
|
|
1750
|
+
keys: 0,
|
|
1698
1751
|
open: 1,
|
|
1699
1752
|
size: [
|
|
1700
1753
|
"sm",
|
|
@@ -1703,6 +1756,14 @@ var k = {
|
|
|
1703
1756
|
]
|
|
1704
1757
|
},
|
|
1705
1758
|
e: ["void-close", "void-open"],
|
|
1759
|
+
n: {
|
|
1760
|
+
a: [
|
|
1761
|
+
"aria-label",
|
|
1762
|
+
"aria-labelledby",
|
|
1763
|
+
"title"
|
|
1764
|
+
],
|
|
1765
|
+
h: "say what it opens: aria-label=\"Main navigation\""
|
|
1766
|
+
},
|
|
1706
1767
|
l: {
|
|
1707
1768
|
a: { active: { to: "open" } },
|
|
1708
1769
|
e: { "void-toggle": "listen for void-open and void-close on the element itself (they do not bubble; detail.reason says why)" }
|
|
@@ -1711,6 +1772,7 @@ var k = {
|
|
|
1711
1772
|
"void-hover-card": {
|
|
1712
1773
|
m: "hover-card",
|
|
1713
1774
|
a: {
|
|
1775
|
+
keys: 0,
|
|
1714
1776
|
open: 1,
|
|
1715
1777
|
side: [
|
|
1716
1778
|
"top",
|
|
@@ -1894,7 +1956,9 @@ var k = {
|
|
|
1894
1956
|
"wireframe"
|
|
1895
1957
|
],
|
|
1896
1958
|
interpolation: ["linear", "step"],
|
|
1897
|
-
"aria-label": 0
|
|
1959
|
+
"aria-label": 0,
|
|
1960
|
+
"show-table": 1,
|
|
1961
|
+
data: 0
|
|
1898
1962
|
},
|
|
1899
1963
|
e: [],
|
|
1900
1964
|
l: { a: { "show-values": { to: "show-value" } } }
|
|
@@ -1917,6 +1981,7 @@ var k = {
|
|
|
1917
1981
|
"void-menu": {
|
|
1918
1982
|
m: "menu",
|
|
1919
1983
|
a: {
|
|
1984
|
+
keys: 0,
|
|
1920
1985
|
open: 1,
|
|
1921
1986
|
size: [
|
|
1922
1987
|
"sm",
|
|
@@ -2002,6 +2067,7 @@ var k = {
|
|
|
2002
2067
|
"void-menu-item": {
|
|
2003
2068
|
m: "menu",
|
|
2004
2069
|
a: {
|
|
2070
|
+
keys: 0,
|
|
2005
2071
|
value: 0,
|
|
2006
2072
|
disabled: 1
|
|
2007
2073
|
},
|
|
@@ -2052,6 +2118,7 @@ var k = {
|
|
|
2052
2118
|
"void-multiselect": {
|
|
2053
2119
|
m: "multiselect",
|
|
2054
2120
|
a: {
|
|
2121
|
+
keys: 0,
|
|
2055
2122
|
placeholder: 0,
|
|
2056
2123
|
disabled: 1,
|
|
2057
2124
|
size: [
|
|
@@ -2117,6 +2184,7 @@ var k = {
|
|
|
2117
2184
|
"void-nav-menu": {
|
|
2118
2185
|
m: "nav-menu",
|
|
2119
2186
|
a: {
|
|
2187
|
+
keys: 0,
|
|
2120
2188
|
orientation: ["horizontal", "vertical"],
|
|
2121
2189
|
width: 0
|
|
2122
2190
|
},
|
|
@@ -2178,6 +2246,7 @@ var k = {
|
|
|
2178
2246
|
"void-number-input": {
|
|
2179
2247
|
m: "number-input",
|
|
2180
2248
|
a: {
|
|
2249
|
+
keys: 0,
|
|
2181
2250
|
value: 2,
|
|
2182
2251
|
min: 2,
|
|
2183
2252
|
max: 2,
|
|
@@ -2261,6 +2330,15 @@ var k = {
|
|
|
2261
2330
|
] },
|
|
2262
2331
|
e: [],
|
|
2263
2332
|
x: { label: "write <void-panel-header><void-panel-title>...</void-panel-title></void-panel-header> as the first child; the title names the panel" },
|
|
2333
|
+
n: {
|
|
2334
|
+
a: [
|
|
2335
|
+
"aria-label",
|
|
2336
|
+
"aria-labelledby",
|
|
2337
|
+
"title"
|
|
2338
|
+
],
|
|
2339
|
+
h: "write its title as <void-panel-header><void-panel-title>, or give it an aria-label",
|
|
2340
|
+
t: ["void-panel-title"]
|
|
2341
|
+
},
|
|
2264
2342
|
l: { a: { label: { fix: "write <void-panel-header><void-panel-title>...</void-panel-title></void-panel-header> as the first child; the title names the panel" } } },
|
|
2265
2343
|
q: {
|
|
2266
2344
|
k: "parts",
|
|
@@ -2319,6 +2397,7 @@ var k = {
|
|
|
2319
2397
|
"void-pin-input": {
|
|
2320
2398
|
m: "pin-input",
|
|
2321
2399
|
a: {
|
|
2400
|
+
keys: 0,
|
|
2322
2401
|
length: 2,
|
|
2323
2402
|
groups: 0,
|
|
2324
2403
|
value: 0,
|
|
@@ -2362,6 +2441,7 @@ var k = {
|
|
|
2362
2441
|
"void-popover": {
|
|
2363
2442
|
m: "popover",
|
|
2364
2443
|
a: {
|
|
2444
|
+
keys: 0,
|
|
2365
2445
|
open: 1,
|
|
2366
2446
|
side: [
|
|
2367
2447
|
"top",
|
|
@@ -2454,13 +2534,14 @@ var k = {
|
|
|
2454
2534
|
"aria-labelledby",
|
|
2455
2535
|
"title"
|
|
2456
2536
|
],
|
|
2457
|
-
h: "
|
|
2537
|
+
h: "say what is progressing: aria-label=\"Uploading photo\"",
|
|
2458
2538
|
p: [["void-field", "label"], ["label"]]
|
|
2459
2539
|
}
|
|
2460
2540
|
},
|
|
2461
2541
|
"void-radio": {
|
|
2462
2542
|
m: "radio",
|
|
2463
2543
|
a: {
|
|
2544
|
+
keys: 0,
|
|
2464
2545
|
checked: 1,
|
|
2465
2546
|
disabled: 1,
|
|
2466
2547
|
name: 0,
|
|
@@ -2534,6 +2615,7 @@ var k = {
|
|
|
2534
2615
|
"void-segmented-control": {
|
|
2535
2616
|
m: "segmented-control",
|
|
2536
2617
|
a: {
|
|
2618
|
+
keys: 0,
|
|
2537
2619
|
value: 0,
|
|
2538
2620
|
disabled: 1,
|
|
2539
2621
|
size: [
|
|
@@ -2560,6 +2642,7 @@ var k = {
|
|
|
2560
2642
|
"void-segmented-control-item": {
|
|
2561
2643
|
m: "segmented-control",
|
|
2562
2644
|
a: {
|
|
2645
|
+
keys: 0,
|
|
2563
2646
|
value: 0,
|
|
2564
2647
|
disabled: 1
|
|
2565
2648
|
},
|
|
@@ -2736,6 +2819,7 @@ var k = {
|
|
|
2736
2819
|
"void-switch": {
|
|
2737
2820
|
m: "switch",
|
|
2738
2821
|
a: {
|
|
2822
|
+
keys: 0,
|
|
2739
2823
|
checked: 1,
|
|
2740
2824
|
disabled: 1,
|
|
2741
2825
|
value: 0,
|
|
@@ -2782,9 +2866,25 @@ var k = {
|
|
|
2782
2866
|
"sticky-header": 1,
|
|
2783
2867
|
"sticky-column": 1,
|
|
2784
2868
|
"max-height": 0,
|
|
2785
|
-
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
|
|
2786
2882
|
},
|
|
2787
|
-
e: [
|
|
2883
|
+
e: [
|
|
2884
|
+
"void-change",
|
|
2885
|
+
"void-filter",
|
|
2886
|
+
"void-sort"
|
|
2887
|
+
],
|
|
2788
2888
|
h: [
|
|
2789
2889
|
"data-long",
|
|
2790
2890
|
"data-overflow-end",
|
|
@@ -2792,11 +2892,72 @@ var k = {
|
|
|
2792
2892
|
"data-overflowing",
|
|
2793
2893
|
"data-stack-select",
|
|
2794
2894
|
"data-stack-title"
|
|
2795
|
-
]
|
|
2895
|
+
],
|
|
2896
|
+
n: {
|
|
2897
|
+
a: [
|
|
2898
|
+
"aria-label",
|
|
2899
|
+
"aria-labelledby",
|
|
2900
|
+
"title",
|
|
2901
|
+
"label"
|
|
2902
|
+
],
|
|
2903
|
+
h: "write a <caption> in the table, or give the void-table an aria-label",
|
|
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
|
+
]
|
|
2927
|
+
}
|
|
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
|
|
2796
2956
|
},
|
|
2797
2957
|
"void-tabs": {
|
|
2798
2958
|
m: "tabs",
|
|
2799
2959
|
a: {
|
|
2960
|
+
keys: 0,
|
|
2800
2961
|
value: 0,
|
|
2801
2962
|
size: [
|
|
2802
2963
|
"sm",
|
|
@@ -2882,6 +3043,7 @@ var k = {
|
|
|
2882
3043
|
"void-tags-input": {
|
|
2883
3044
|
m: "tags-input",
|
|
2884
3045
|
a: {
|
|
3046
|
+
keys: 0,
|
|
2885
3047
|
value: 0,
|
|
2886
3048
|
disabled: 1,
|
|
2887
3049
|
readonly: 1,
|
|
@@ -3087,6 +3249,7 @@ var k = {
|
|
|
3087
3249
|
"void-toggle": {
|
|
3088
3250
|
m: "toggle",
|
|
3089
3251
|
a: {
|
|
3252
|
+
keys: 0,
|
|
3090
3253
|
pressed: 1,
|
|
3091
3254
|
value: 0,
|
|
3092
3255
|
disabled: 1,
|
|
@@ -3121,6 +3284,7 @@ var k = {
|
|
|
3121
3284
|
"void-toggle-group": {
|
|
3122
3285
|
m: "toggle-group",
|
|
3123
3286
|
a: {
|
|
3287
|
+
keys: 0,
|
|
3124
3288
|
value: 0,
|
|
3125
3289
|
multiple: 1,
|
|
3126
3290
|
disabled: 1,
|
|
@@ -3148,6 +3312,7 @@ var k = {
|
|
|
3148
3312
|
"void-tooltip": {
|
|
3149
3313
|
m: "tooltip",
|
|
3150
3314
|
a: {
|
|
3315
|
+
keys: 0,
|
|
3151
3316
|
side: [
|
|
3152
3317
|
"top",
|
|
3153
3318
|
"bottom",
|
|
@@ -3218,7 +3383,7 @@ var k = {
|
|
|
3218
3383
|
p: ["void-tooltip"],
|
|
3219
3384
|
c: 1
|
|
3220
3385
|
}
|
|
3221
|
-
},
|
|
3386
|
+
}, M = [
|
|
3222
3387
|
"void-actions",
|
|
3223
3388
|
"void-brand",
|
|
3224
3389
|
"void-delta",
|
|
@@ -3243,93 +3408,94 @@ var k = {
|
|
|
3243
3408
|
"void-stack",
|
|
3244
3409
|
"void-state",
|
|
3245
3410
|
"void-toolbar"
|
|
3246
|
-
],
|
|
3411
|
+
], N = {
|
|
3247
3412
|
"void-carousel-slide": "write each slide as <void-carousel-item> inside <void-carousel-content>",
|
|
3248
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)"
|
|
3249
|
-
},
|
|
3414
|
+
}, ce = {
|
|
3250
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)",
|
|
3251
3416
|
"void-dismiss": "listen for void-close on the alert itself (it does not bubble; detail.reason is close-button)",
|
|
3252
3417
|
"void-close": "listen for void-close on the <void-toast> itself (it does not bubble; detail.reason is close-button, timeout or api)"
|
|
3253
|
-
},
|
|
3418
|
+
}, P = class extends Error {
|
|
3254
3419
|
constructor(e) {
|
|
3255
3420
|
super(e.message), this.name = "VoidDevError", this.warning = e;
|
|
3256
3421
|
}
|
|
3257
|
-
},
|
|
3258
|
-
function
|
|
3259
|
-
e.throw !== void 0 && (
|
|
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);
|
|
3260
3425
|
}
|
|
3261
|
-
function
|
|
3262
|
-
return
|
|
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;
|
|
3263
3428
|
}
|
|
3264
|
-
function
|
|
3265
|
-
if (!e ||
|
|
3266
|
-
if (
|
|
3429
|
+
function q(e) {
|
|
3430
|
+
if (!e || K(e)) return;
|
|
3431
|
+
if (L) throw new P(e);
|
|
3267
3432
|
let t = ae(e);
|
|
3268
|
-
|
|
3433
|
+
U.has(t) || (U.add(t), W.push(e), R ? R(e) : console.warn(e.message));
|
|
3269
3434
|
}
|
|
3270
|
-
var
|
|
3271
|
-
function
|
|
3435
|
+
var J = (e) => e.localName.startsWith("void-") && !le.has(e.localName);
|
|
3436
|
+
function Y(e) {
|
|
3272
3437
|
let t = [];
|
|
3273
|
-
if (e.nodeType === 1 &&
|
|
3438
|
+
if (e.nodeType === 1 && J(e) && t.push(e), "querySelectorAll" in e) for (let n of e.querySelectorAll("*")) J(n) && t.push(n);
|
|
3274
3439
|
return t;
|
|
3275
3440
|
}
|
|
3276
|
-
var
|
|
3277
|
-
|
|
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();
|
|
3278
3443
|
};
|
|
3279
|
-
async function
|
|
3444
|
+
async function me() {
|
|
3280
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 }));
|
|
3281
|
-
let e = globalThis[
|
|
3446
|
+
let e = globalThis[F];
|
|
3282
3447
|
for (;;) {
|
|
3283
3448
|
e && await e.ready();
|
|
3284
|
-
let t = performance.now() -
|
|
3285
|
-
if (t >=
|
|
3286
|
-
await
|
|
3449
|
+
let t = performance.now() - pe;
|
|
3450
|
+
if (t >= H) return;
|
|
3451
|
+
await fe(H - t + 5);
|
|
3287
3452
|
}
|
|
3288
3453
|
}
|
|
3289
|
-
function
|
|
3290
|
-
|
|
3291
|
-
|
|
3454
|
+
function he(e) {
|
|
3455
|
+
X.add(e), clearTimeout(ue), Z = !0, ue = setTimeout(() => {
|
|
3456
|
+
Z = !1, de = ge();
|
|
3292
3457
|
}, 50);
|
|
3293
3458
|
}
|
|
3294
|
-
async function
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
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;
|
|
3299
3465
|
for (let n of e) if (n.isConnected) {
|
|
3300
|
-
|
|
3301
|
-
for (let e of
|
|
3302
|
-
for (let e of
|
|
3303
|
-
|
|
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));
|
|
3304
3470
|
}
|
|
3305
3471
|
}
|
|
3306
|
-
function ge(e) {
|
|
3307
|
-
for (let t of g(k, e)) G(t);
|
|
3308
|
-
me(e);
|
|
3309
|
-
}
|
|
3310
3472
|
function _e(e) {
|
|
3473
|
+
for (let t of _(j, e)) q(t);
|
|
3474
|
+
he(e);
|
|
3475
|
+
}
|
|
3476
|
+
function ve(e) {
|
|
3311
3477
|
for (let t of e) {
|
|
3312
3478
|
if (t.type === "attributes") {
|
|
3313
3479
|
let e = t.target;
|
|
3314
|
-
|
|
3480
|
+
J(e) && t.attributeName && q(g(j, e, t.attributeName));
|
|
3315
3481
|
continue;
|
|
3316
3482
|
}
|
|
3317
|
-
for (let e of t.addedNodes) if (e.nodeType === 1) for (let t of
|
|
3483
|
+
for (let e of t.addedNodes) if (e.nodeType === 1) for (let t of Y(e)) _e(t);
|
|
3318
3484
|
}
|
|
3319
3485
|
}
|
|
3320
|
-
var
|
|
3321
|
-
function
|
|
3322
|
-
if (!(!
|
|
3323
|
-
|
|
3324
|
-
for (let t of
|
|
3325
|
-
|
|
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, {
|
|
3326
3492
|
subtree: !0,
|
|
3327
3493
|
childList: !0,
|
|
3328
3494
|
attributes: !0
|
|
3329
3495
|
});
|
|
3330
3496
|
}
|
|
3331
3497
|
}
|
|
3332
|
-
function
|
|
3498
|
+
function xe() {
|
|
3333
3499
|
let e = CustomElementRegistry.prototype.define;
|
|
3334
3500
|
if (CustomElementRegistry.prototype.define = function(...t) {
|
|
3335
3501
|
return Q(), e.apply(this, t);
|
|
@@ -3340,51 +3506,61 @@ function be() {
|
|
|
3340
3506
|
});
|
|
3341
3507
|
} catch {}
|
|
3342
3508
|
}
|
|
3343
|
-
function
|
|
3509
|
+
function Se() {
|
|
3344
3510
|
let e = Object.getPrototypeOf(document), t = EventTarget.prototype;
|
|
3345
3511
|
for (; e && e !== Object.prototype;) Object.hasOwn(e, "addEventListener") && (t = e), e = Object.getPrototypeOf(e);
|
|
3346
3512
|
let n = t.addEventListener;
|
|
3347
3513
|
t.addEventListener = function(e, ...t) {
|
|
3348
|
-
return typeof e == "string" && e.startsWith("void-") &&
|
|
3514
|
+
return typeof e == "string" && e.startsWith("void-") && q(ie(j, this, e, ce)), n.call(this, e, ...t);
|
|
3349
3515
|
};
|
|
3350
3516
|
}
|
|
3351
|
-
function
|
|
3517
|
+
function Ce(e = document) {
|
|
3352
3518
|
let t = [];
|
|
3353
|
-
for (let n of
|
|
3354
|
-
let e = globalThis[
|
|
3519
|
+
for (let n of Y(e)) {
|
|
3520
|
+
let e = globalThis[F] !== void 0, r = A(N, n);
|
|
3355
3521
|
for (let i of [
|
|
3356
|
-
...
|
|
3357
|
-
r ??
|
|
3358
|
-
|
|
3359
|
-
...
|
|
3360
|
-
...
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
]) !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));
|
|
3365
3531
|
}
|
|
3366
3532
|
return t;
|
|
3367
3533
|
}
|
|
3368
|
-
async function
|
|
3534
|
+
async function we() {
|
|
3369
3535
|
for (;;) {
|
|
3370
|
-
if (await
|
|
3371
|
-
await
|
|
3536
|
+
if (await de, !Z && X.size === 0) return W;
|
|
3537
|
+
await fe(10);
|
|
3372
3538
|
}
|
|
3373
3539
|
}
|
|
3374
|
-
function we() {
|
|
3375
|
-
return H;
|
|
3376
|
-
}
|
|
3377
3540
|
function Te() {
|
|
3378
|
-
|
|
3541
|
+
return W;
|
|
3379
3542
|
}
|
|
3380
3543
|
function Ee() {
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
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));
|
|
3387
3563
|
}
|
|
3388
|
-
|
|
3564
|
+
Oe();
|
|
3389
3565
|
//#endregion
|
|
3390
|
-
export {
|
|
3566
|
+
export { P as VoidDevError, Ce as check, G as configure, $ as observe, Ee as reset, we as settled, Te as warnings };
|