@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.
- package/dist/angular/index.d.ts +2 -2
- package/dist/angular/index.js +2 -1
- package/dist/chunks/activation-B8aBarKd.js +4 -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-DWGkNdNG.js → modal-Cz2-Ov76.js} +23 -15
- package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
- package/dist/chunks/{overlay-CH7L4N-h.js → overlay-BuV-4Yvt.js} +75 -68
- package/dist/chunks/overlay-K1ilWC1p.js +4 -0
- package/dist/chunks/pickers-CjlFgNke.js +36 -0
- 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 +22 -14
- package/dist/components/action-input.d.ts +2 -1
- package/dist/components/action-input.js +59 -55
- package/dist/components/bar-chart.js +41 -40
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +15 -11
- package/dist/components/button.d.ts +7 -0
- package/dist/components/button.js +23 -16
- package/dist/components/calendar.d.ts +45 -10
- package/dist/components/calendar.js +183 -129
- package/dist/components/carousel.d.ts +22 -0
- package/dist/components/carousel.js +64 -35
- package/dist/components/charts/data.d.ts +2 -2
- package/dist/components/checkbox-group.js +22 -21
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.js +29 -24
- package/dist/components/collapsible.d.ts +7 -0
- package/dist/components/collapsible.js +19 -11
- package/dist/components/color-picker.js +28 -27
- package/dist/components/combobox.d.ts +13 -1
- package/dist/components/combobox.js +54 -41
- package/dist/components/compose-input.d.ts +9 -1
- package/dist/components/compose-input.js +28 -16
- package/dist/components/dialog.js +1 -1
- package/dist/components/donut-chart.js +57 -56
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.d.ts +22 -0
- package/dist/components/dropdown-menu.js +54 -39
- package/dist/components/editable.d.ts +11 -1
- package/dist/components/editable.js +35 -22
- package/dist/components/error-fallback.d.ts +4 -2
- package/dist/components/error-fallback.js +34 -28
- package/dist/components/file-upload.d.ts +9 -0
- package/dist/components/file-upload.js +54 -28
- package/dist/components/gauge.js +108 -107
- package/dist/components/hamburger.d.ts +7 -0
- package/dist/components/hamburger.js +28 -19
- package/dist/components/hover-card.d.ts +7 -0
- package/dist/components/hover-card.js +22 -14
- package/dist/components/indicator.js +15 -14
- package/dist/components/input.js +1 -1
- package/dist/components/line-chart.js +43 -42
- package/dist/components/menu.d.ts +25 -0
- package/dist/components/menu.js +55 -33
- package/dist/components/multiselect.d.ts +17 -1
- package/dist/components/multiselect.js +96 -74
- package/dist/components/nav-menu.d.ts +9 -0
- package/dist/components/nav-menu.js +30 -23
- package/dist/components/number-input.d.ts +15 -1
- package/dist/components/number-input.js +71 -37
- package/dist/components/pagination.js +25 -24
- package/dist/components/pin-input.d.ts +11 -0
- package/dist/components/pin-input.js +46 -32
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +21 -13
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio.d.ts +10 -1
- package/dist/components/radio.js +37 -32
- package/dist/components/segmented-control.d.ts +14 -0
- package/dist/components/segmented-control.js +40 -28
- package/dist/components/sidebar.d.ts +1 -0
- package/dist/components/sidebar.js +14 -10
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +5 -3
- package/dist/components/spinner.js +21 -14
- package/dist/components/stat.js +1 -1
- package/dist/components/status-dot.d.ts +2 -2
- package/dist/components/status-dot.js +12 -14
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +20 -13
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/switch.js +24 -16
- package/dist/components/table.d.ts +77 -1
- package/dist/components/table.js +562 -73
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.js +42 -33
- package/dist/components/tag.js +12 -11
- package/dist/components/tags-input.d.ts +10 -1
- package/dist/components/tags-input.js +42 -30
- package/dist/components/textarea.js +1 -1
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +35 -28
- package/dist/components/toggle-group.d.ts +8 -0
- package/dist/components/toggle-group.js +24 -17
- package/dist/components/toggle.d.ts +7 -0
- package/dist/components/toggle.js +23 -15
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.js +20 -12
- package/dist/components.json +96 -74
- package/dist/custom-elements.json +4213 -131
- package/dist/dev/rules.d.ts +0 -1
- package/dist/dev/types.d.ts +3 -1
- package/dist/dev.js +244 -113
- package/dist/index.d.ts +4 -0
- package/dist/index.js +68 -66
- 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 +817 -17
- package/dist/testing/index.d.ts +46 -0
- package/dist/testing.js +79 -0
- package/dist/types/elements.d.ts +89 -73
- package/dist/types/react.d.ts +5 -1
- package/dist/types/solid.d.ts +5 -1
- package/dist/types/solid2.d.ts +4 -0
- package/dist/types/svelte.d.ts +5 -1
- package/dist/types/vue.d.ts +5 -1
- package/dist/vscode.html-custom-data.json +384 -18
- package/dist/web-types.json +830 -69
- package/package.json +22 -2
- 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
|
|
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" },
|
|
@@ -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
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3418
|
+
}, P = class extends Error {
|
|
3299
3419
|
constructor(e) {
|
|
3300
3420
|
super(e.message), this.name = "VoidDevError", this.warning = e;
|
|
3301
3421
|
}
|
|
3302
|
-
},
|
|
3303
|
-
function
|
|
3304
|
-
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);
|
|
3305
3425
|
}
|
|
3306
|
-
function
|
|
3307
|
-
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;
|
|
3308
3428
|
}
|
|
3309
|
-
function
|
|
3310
|
-
if (!e ||
|
|
3311
|
-
if (
|
|
3429
|
+
function q(e) {
|
|
3430
|
+
if (!e || K(e)) return;
|
|
3431
|
+
if (L) throw new P(e);
|
|
3312
3432
|
let t = ae(e);
|
|
3313
|
-
|
|
3433
|
+
U.has(t) || (U.add(t), W.push(e), R ? R(e) : console.warn(e.message));
|
|
3314
3434
|
}
|
|
3315
|
-
var
|
|
3316
|
-
function
|
|
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 &&
|
|
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
|
|
3322
|
-
|
|
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
|
|
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[
|
|
3446
|
+
let e = globalThis[F];
|
|
3327
3447
|
for (;;) {
|
|
3328
3448
|
e && await e.ready();
|
|
3329
|
-
let t = performance.now() -
|
|
3330
|
-
if (t >=
|
|
3331
|
-
await
|
|
3449
|
+
let t = performance.now() - pe;
|
|
3450
|
+
if (t >= H) return;
|
|
3451
|
+
await fe(H - t + 5);
|
|
3332
3452
|
}
|
|
3333
3453
|
}
|
|
3334
|
-
function
|
|
3335
|
-
|
|
3336
|
-
|
|
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
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
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
|
-
|
|
3346
|
-
for (let e of
|
|
3347
|
-
for (let e of
|
|
3348
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
3366
|
-
function
|
|
3367
|
-
if (!(!
|
|
3368
|
-
|
|
3369
|
-
for (let t of
|
|
3370
|
-
|
|
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
|
|
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
|
|
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-") &&
|
|
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
|
|
3517
|
+
function Ce(e = document) {
|
|
3397
3518
|
let t = [];
|
|
3398
|
-
for (let n of
|
|
3399
|
-
let e = globalThis[
|
|
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
|
-
...
|
|
3402
|
-
r ??
|
|
3403
|
-
|
|
3404
|
-
...
|
|
3405
|
-
...
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
]) !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
|
|
3534
|
+
async function we() {
|
|
3414
3535
|
for (;;) {
|
|
3415
|
-
if (await
|
|
3416
|
-
await
|
|
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
|
-
|
|
3541
|
+
return W;
|
|
3424
3542
|
}
|
|
3425
3543
|
function Ee() {
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
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
|
-
|
|
3564
|
+
Oe();
|
|
3434
3565
|
//#endregion
|
|
3435
|
-
export {
|
|
3566
|
+
export { P as VoidDevError, Ce as check, G as configure, $ as observe, Ee as reset, we as settled, Te as warnings };
|