vrembem 4.0.0-next.1 → 4.0.0-next.2
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/dev/index.js +208 -208
- package/dev/index.js.map +1 -1
- package/dev/index.umd.cjs +208 -208
- package/dev/index.umd.cjs.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -4
package/dev/index.js
CHANGED
|
@@ -2,32 +2,32 @@ var b$2 = (t, e, n) => {
|
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + n);
|
|
4
4
|
};
|
|
5
|
-
var o$1 = (t, e, n) => (b$2(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
5
|
+
var o$1 = (t, e, n) => (b$2(t, e, "read from private field"), n ? n.call(t) : e.get(t)), h$2 = (t, e, n) => {
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
9
9
|
}, a = (t, e, n, i2) => (b$2(t, e, "write to private field"), i2 ? i2.call(t, n) : e.set(t, n), n);
|
|
10
|
-
var
|
|
10
|
+
var l$1;
|
|
11
11
|
let $$2 = class $ {
|
|
12
12
|
constructor(e, n) {
|
|
13
|
-
|
|
14
|
-
this.value = e, a(this,
|
|
13
|
+
h$2(this, l$1, void 0);
|
|
14
|
+
this.value = e, a(this, l$1, n), this.mql = null;
|
|
15
15
|
}
|
|
16
16
|
get handler() {
|
|
17
|
-
return o$1(this,
|
|
17
|
+
return o$1(this, l$1);
|
|
18
18
|
}
|
|
19
19
|
// Unmount existing handler before setting a new one.
|
|
20
20
|
set handler(e) {
|
|
21
|
-
this.mql && (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", o$1(this,
|
|
21
|
+
this.mql && (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", o$1(this, l$1)) : this.mql.removeListener(o$1(this, l$1))), a(this, l$1, e);
|
|
22
22
|
}
|
|
23
23
|
mount(e, n) {
|
|
24
|
-
return e && (this.value = e), n && a(this,
|
|
24
|
+
return e && (this.value = e), n && a(this, l$1, n), this.value ? (this.mql = window.matchMedia(`(min-width: ${this.value})`), typeof this.mql.addEventListener == "function" ? this.mql.addEventListener("change", o$1(this, l$1)) : this.mql.addListener(o$1(this, l$1)), o$1(this, l$1).call(this, this.mql), this) : this;
|
|
25
25
|
}
|
|
26
26
|
unmount() {
|
|
27
|
-
return this.mql ? (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", o$1(this,
|
|
27
|
+
return this.mql ? (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", o$1(this, l$1)) : this.mql.removeListener(o$1(this, l$1)), this.value = null, a(this, l$1, null), this.mql = null, this) : this;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
l$1 = /* @__PURE__ */ new WeakMap();
|
|
31
31
|
let T$2 = class T {
|
|
32
32
|
constructor() {
|
|
33
33
|
this.collection = [];
|
|
@@ -39,8 +39,8 @@ let T$2 = class T {
|
|
|
39
39
|
const n = this.collection.findIndex((i2) => i2 === e);
|
|
40
40
|
if (n >= 0) {
|
|
41
41
|
const i2 = this.collection[n];
|
|
42
|
-
Object.getOwnPropertyNames(i2).forEach((
|
|
43
|
-
delete i2[
|
|
42
|
+
Object.getOwnPropertyNames(i2).forEach((r3) => {
|
|
43
|
+
delete i2[r3];
|
|
44
44
|
}), this.collection.splice(n, 1);
|
|
45
45
|
}
|
|
46
46
|
return this.collection;
|
|
@@ -81,19 +81,19 @@ const s = {
|
|
|
81
81
|
`[contenteditable]${s.inert}${s.negTabIndex}`,
|
|
82
82
|
`[tabindex]${s.inert}${s.negTabIndex}`
|
|
83
83
|
];
|
|
84
|
-
var
|
|
84
|
+
var f$2, d$1, u$2;
|
|
85
85
|
let x$1 = class x {
|
|
86
86
|
constructor(e = null, n = "[data-focus]") {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.el = e, this.selectorFocus = n, a(this, d$1,
|
|
87
|
+
h$2(this, f$2, void 0);
|
|
88
|
+
h$2(this, d$1, void 0);
|
|
89
|
+
h$2(this, u$2, void 0);
|
|
90
|
+
this.el = e, this.selectorFocus = n, a(this, d$1, g$2.bind(this)), a(this, u$2, p$2.bind(this));
|
|
91
91
|
}
|
|
92
92
|
get focusable() {
|
|
93
|
-
return o$1(this,
|
|
93
|
+
return o$1(this, f$2);
|
|
94
94
|
}
|
|
95
95
|
set focusable(e) {
|
|
96
|
-
a(this,
|
|
96
|
+
a(this, f$2, e), o$1(this, f$2).length ? (document.removeEventListener("keydown", o$1(this, u$2)), document.addEventListener("keydown", o$1(this, d$1))) : (document.removeEventListener("keydown", o$1(this, d$1)), document.addEventListener("keydown", o$1(this, u$2)));
|
|
97
97
|
}
|
|
98
98
|
get focusableFirst() {
|
|
99
99
|
return this.focusable[0];
|
|
@@ -111,17 +111,17 @@ let x$1 = class x {
|
|
|
111
111
|
(e.querySelector(n) || e).focus();
|
|
112
112
|
}
|
|
113
113
|
getFocusable(e = this.el) {
|
|
114
|
-
const n = [], i2 = document.activeElement,
|
|
114
|
+
const n = [], i2 = document.activeElement, r3 = e.scrollTop;
|
|
115
115
|
return e.querySelectorAll(v$2.join(",")).forEach((m2) => {
|
|
116
116
|
m2.focus(), document.activeElement === m2 && n.push(m2);
|
|
117
|
-
}), e.scrollTop =
|
|
117
|
+
}), e.scrollTop = r3, i2.focus(), n;
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
function
|
|
120
|
+
f$2 = /* @__PURE__ */ new WeakMap(), d$1 = /* @__PURE__ */ new WeakMap(), u$2 = /* @__PURE__ */ new WeakMap();
|
|
121
|
+
function g$2(t) {
|
|
122
122
|
(t.key === "Tab" || t.keyCode === 9) && (t.shiftKey ? (document.activeElement === this.focusableFirst || document.activeElement === this.el) && (t.preventDefault(), this.focusableLast.focus()) : (document.activeElement === this.focusableLast || document.activeElement === this.el) && (t.preventDefault(), this.focusableFirst.focus()));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function p$2(t) {
|
|
125
125
|
(t.key === "Tab" || t.keyCode === 9) && t.preventDefault();
|
|
126
126
|
}
|
|
127
127
|
function q$2(t, e) {
|
|
@@ -134,17 +134,17 @@ function I$3() {
|
|
|
134
134
|
function C$2(t, e = true) {
|
|
135
135
|
const n = localStorage.getItem(t), i2 = n ? JSON.parse(n) : {};
|
|
136
136
|
return {
|
|
137
|
-
get(
|
|
138
|
-
return
|
|
137
|
+
get(r3) {
|
|
138
|
+
return r3 ? i2[r3] : i2;
|
|
139
139
|
},
|
|
140
|
-
set(
|
|
141
|
-
return c2 ? i2[
|
|
140
|
+
set(r3, c2) {
|
|
141
|
+
return c2 ? i2[r3] = c2 : delete i2[r3], e && localStorage.setItem(t, JSON.stringify(i2)), i2;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
function O$2(t, e, n) {
|
|
146
|
-
const i2 = e.nodeType === Node.COMMENT_NODE,
|
|
147
|
-
if (e = i2 ||
|
|
146
|
+
const i2 = e.nodeType === Node.COMMENT_NODE, r3 = e.nodeType === Node.ELEMENT_NODE;
|
|
147
|
+
if (e = i2 || r3 ? e : document.querySelector(e), i2 && (n = "after"), !e)
|
|
148
148
|
throw new Error(`Not a valid teleport reference: '${e}'`);
|
|
149
149
|
if (typeof e[n] != "function")
|
|
150
150
|
throw new Error(`Not a valid teleport method: '${n}'`);
|
|
@@ -152,12 +152,12 @@ function O$2(t, e, n) {
|
|
|
152
152
|
return i2 || (c2 = document.createComment("teleported #" + t.id), t.before(c2)), e[n](t), i2 && e.remove(), c2;
|
|
153
153
|
}
|
|
154
154
|
const S$3 = (t, e) => new Promise((n) => {
|
|
155
|
-
e.transition ? (t.classList.remove(e.stateClosed), t.classList.add(e.stateOpening), t.addEventListener("transitionend", function i2() {
|
|
156
|
-
t.classList.add(e.stateOpened), t.classList.remove(e.stateOpening), n(t), this.removeEventListener("transitionend", i2);
|
|
155
|
+
e.transition ? (t.classList.remove(e.stateClosed), t.classList.add(e.stateOpening), t.addEventListener("transitionend", function i2(r3) {
|
|
156
|
+
r3.target == t && (t.classList.add(e.stateOpened), t.classList.remove(e.stateOpening), n(t), this.removeEventListener("transitionend", i2));
|
|
157
157
|
})) : (t.classList.add(e.stateOpened), t.classList.remove(e.stateClosed), n(t));
|
|
158
158
|
}), F$3 = (t, e) => new Promise((n) => {
|
|
159
|
-
e.transition ? (t.classList.add(e.stateClosing), t.classList.remove(e.stateOpened), t.addEventListener("transitionend", function i2() {
|
|
160
|
-
t.classList.remove(e.stateClosing), t.classList.add(e.stateClosed), n(t), this.removeEventListener("transitionend", i2);
|
|
159
|
+
e.transition ? (t.classList.add(e.stateClosing), t.classList.remove(e.stateOpened), t.addEventListener("transitionend", function i2(r3) {
|
|
160
|
+
r3.target == t && (t.classList.remove(e.stateClosing), t.classList.add(e.stateClosed), n(t), this.removeEventListener("transitionend", i2));
|
|
161
161
|
})) : (t.classList.add(e.stateClosed), t.classList.remove(e.stateOpened), n(t));
|
|
162
162
|
});
|
|
163
163
|
function y$2(t, e) {
|
|
@@ -191,7 +191,7 @@ const i = {
|
|
|
191
191
|
stateAttr: "aria-checked",
|
|
192
192
|
stateValue: "mixed"
|
|
193
193
|
};
|
|
194
|
-
let r$
|
|
194
|
+
let r$2 = class r {
|
|
195
195
|
constructor(t) {
|
|
196
196
|
this.defaults = i, this.settings = { ...this.defaults, ...t }, this.__handlerClick = this.handlerClick.bind(this), this.settings.autoInit && this.init();
|
|
197
197
|
}
|
|
@@ -235,7 +235,7 @@ var p$1 = (t, e, s2) => (S$2(t, e, "read from private field"), s2 ? s2.call(t) :
|
|
|
235
235
|
var I$2 = (t, e, s2) => {
|
|
236
236
|
if (!e.has(t))
|
|
237
237
|
throw TypeError("Cannot " + s2);
|
|
238
|
-
}, l
|
|
238
|
+
}, l = (t, e, s2) => (I$2(t, e, "read from private field"), s2 ? s2.call(t) : e.get(t)), w$1 = (t, e, s2) => {
|
|
239
239
|
if (e.has(t))
|
|
240
240
|
throw TypeError("Cannot add the same private member more than once");
|
|
241
241
|
e instanceof WeakSet ? e.add(t) : e.set(t, s2);
|
|
@@ -245,17 +245,17 @@ let M$2 = class M {
|
|
|
245
245
|
w$1(this, c$1, void 0), this.value = e, h$1(this, c$1, s2), this.mql = null;
|
|
246
246
|
}
|
|
247
247
|
get handler() {
|
|
248
|
-
return l
|
|
248
|
+
return l(this, c$1);
|
|
249
249
|
}
|
|
250
250
|
// Unmount existing handler before setting a new one.
|
|
251
251
|
set handler(e) {
|
|
252
|
-
this.mql && (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", l
|
|
252
|
+
this.mql && (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", l(this, c$1)) : this.mql.removeListener(l(this, c$1))), h$1(this, c$1, e);
|
|
253
253
|
}
|
|
254
254
|
mount(e, s2) {
|
|
255
|
-
return e && (this.value = e), s2 && h$1(this, c$1, s2), this.value ? (this.mql = window.matchMedia(`(min-width: ${this.value})`), typeof this.mql.addEventListener == "function" ? this.mql.addEventListener("change", l
|
|
255
|
+
return e && (this.value = e), s2 && h$1(this, c$1, s2), this.value ? (this.mql = window.matchMedia(`(min-width: ${this.value})`), typeof this.mql.addEventListener == "function" ? this.mql.addEventListener("change", l(this, c$1)) : this.mql.addListener(l(this, c$1)), l(this, c$1).call(this, this.mql), this) : this;
|
|
256
256
|
}
|
|
257
257
|
unmount() {
|
|
258
|
-
return this.mql ? (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", l
|
|
258
|
+
return this.mql ? (typeof this.mql.removeEventListener == "function" ? this.mql.removeEventListener("change", l(this, c$1)) : this.mql.removeListener(l(this, c$1)), this.value = null, h$1(this, c$1, null), this.mql = null, this) : this;
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
261
|
c$1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -290,27 +290,27 @@ let P$1 = class P {
|
|
|
290
290
|
return this.collection.find((i2) => i2[s2] === e);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const r$1 = {
|
|
294
294
|
inert: ":not([inert]):not([inert] *)",
|
|
295
295
|
negTabIndex: ':not([tabindex^="-"])',
|
|
296
296
|
disabled: ":not(:disabled)"
|
|
297
297
|
}, F$2 = [
|
|
298
|
-
`a[href]${
|
|
299
|
-
`area[href]${
|
|
300
|
-
`input:not([type="hidden"]):not([type="radio"])${
|
|
301
|
-
`input[type="radio"]${
|
|
302
|
-
`select${
|
|
303
|
-
`textarea${
|
|
304
|
-
`button${
|
|
305
|
-
`details${
|
|
298
|
+
`a[href]${r$1.inert}${r$1.negTabIndex}`,
|
|
299
|
+
`area[href]${r$1.inert}${r$1.negTabIndex}`,
|
|
300
|
+
`input:not([type="hidden"]):not([type="radio"])${r$1.inert}${r$1.negTabIndex}${r$1.disabled}`,
|
|
301
|
+
`input[type="radio"]${r$1.inert}${r$1.negTabIndex}${r$1.disabled}`,
|
|
302
|
+
`select${r$1.inert}${r$1.negTabIndex}${r$1.disabled}`,
|
|
303
|
+
`textarea${r$1.inert}${r$1.negTabIndex}${r$1.disabled}`,
|
|
304
|
+
`button${r$1.inert}${r$1.negTabIndex}${r$1.disabled}`,
|
|
305
|
+
`details${r$1.inert} > summary:first-of-type${r$1.negTabIndex}`,
|
|
306
306
|
// Discard until Firefox supports `:has()`
|
|
307
307
|
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
|
308
308
|
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
|
309
|
-
`iframe${
|
|
310
|
-
`audio[controls]${
|
|
311
|
-
`video[controls]${
|
|
312
|
-
`[contenteditable]${
|
|
313
|
-
`[tabindex]${
|
|
309
|
+
`iframe${r$1.inert}${r$1.negTabIndex}`,
|
|
310
|
+
`audio[controls]${r$1.inert}${r$1.negTabIndex}`,
|
|
311
|
+
`video[controls]${r$1.inert}${r$1.negTabIndex}`,
|
|
312
|
+
`[contenteditable]${r$1.inert}${r$1.negTabIndex}`,
|
|
313
|
+
`[tabindex]${r$1.inert}${r$1.negTabIndex}`
|
|
314
314
|
];
|
|
315
315
|
var v$1, u$1, g$1;
|
|
316
316
|
let B$2 = class B {
|
|
@@ -318,10 +318,10 @@ let B$2 = class B {
|
|
|
318
318
|
w$1(this, v$1, void 0), w$1(this, u$1, void 0), w$1(this, g$1, void 0), this.el = e, this.selectorFocus = s2, h$1(this, u$1, _$2.bind(this)), h$1(this, g$1, N$2.bind(this));
|
|
319
319
|
}
|
|
320
320
|
get focusable() {
|
|
321
|
-
return l
|
|
321
|
+
return l(this, v$1);
|
|
322
322
|
}
|
|
323
323
|
set focusable(e) {
|
|
324
|
-
h$1(this, v$1, e), l
|
|
324
|
+
h$1(this, v$1, e), l(this, v$1).length ? (document.removeEventListener("keydown", l(this, g$1)), document.addEventListener("keydown", l(this, u$1))) : (document.removeEventListener("keydown", l(this, u$1)), document.addEventListener("keydown", l(this, g$1)));
|
|
325
325
|
}
|
|
326
326
|
get focusableFirst() {
|
|
327
327
|
return this.focusable[0];
|
|
@@ -333,7 +333,7 @@ let B$2 = class B {
|
|
|
333
333
|
e && (this.el = e), s2 && (this.selectorFocus = s2), this.focusable = this.getFocusable(), this.focus();
|
|
334
334
|
}
|
|
335
335
|
unmount() {
|
|
336
|
-
this.el = null, this.focusable = [], document.removeEventListener("keydown", l
|
|
336
|
+
this.el = null, this.focusable = [], document.removeEventListener("keydown", l(this, u$1)), document.removeEventListener("keydown", l(this, g$1));
|
|
337
337
|
}
|
|
338
338
|
focus(e = this.el, s2 = this.selectorFocus) {
|
|
339
339
|
(e.querySelector(s2) || e).focus();
|
|
@@ -371,12 +371,12 @@ function V(t, e = true) {
|
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
373
|
const J$2 = (t, e) => new Promise((s2) => {
|
|
374
|
-
e.transition ? (t.classList.remove(e.stateClosed), t.classList.add(e.stateOpening), t.addEventListener("transitionend", function i2() {
|
|
375
|
-
t.classList.add(e.stateOpened), t.classList.remove(e.stateOpening), s2(t), this.removeEventListener("transitionend", i2);
|
|
374
|
+
e.transition ? (t.classList.remove(e.stateClosed), t.classList.add(e.stateOpening), t.addEventListener("transitionend", function i2(n) {
|
|
375
|
+
n.target == t && (t.classList.add(e.stateOpened), t.classList.remove(e.stateOpening), s2(t), this.removeEventListener("transitionend", i2));
|
|
376
376
|
})) : (t.classList.add(e.stateOpened), t.classList.remove(e.stateClosed), s2(t));
|
|
377
377
|
}), z$1 = (t, e) => new Promise((s2) => {
|
|
378
|
-
e.transition ? (t.classList.add(e.stateClosing), t.classList.remove(e.stateOpened), t.addEventListener("transitionend", function i2() {
|
|
379
|
-
t.classList.remove(e.stateClosing), t.classList.add(e.stateClosed), s2(t), this.removeEventListener("transitionend", i2);
|
|
378
|
+
e.transition ? (t.classList.add(e.stateClosing), t.classList.remove(e.stateOpened), t.addEventListener("transitionend", function i2(n) {
|
|
379
|
+
n.target == t && (t.classList.remove(e.stateClosing), t.classList.add(e.stateClosed), s2(t), this.removeEventListener("transitionend", i2));
|
|
380
380
|
})) : (t.classList.add(e.stateClosed), t.classList.remove(e.stateOpened), s2(t));
|
|
381
381
|
});
|
|
382
382
|
function G$1(t, e) {
|
|
@@ -631,32 +631,32 @@ let it$1 = class it extends P$1 {
|
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
f$1 = /* @__PURE__ */ new WeakMap(), m$1 = /* @__PURE__ */ new WeakMap();
|
|
634
|
-
var I$1 = (
|
|
635
|
-
if (!
|
|
634
|
+
var I$1 = (e, t, s2) => {
|
|
635
|
+
if (!t.has(e))
|
|
636
636
|
throw TypeError("Cannot " + s2);
|
|
637
637
|
};
|
|
638
|
-
var f = (
|
|
639
|
-
if (
|
|
638
|
+
var f = (e, t, s2) => (I$1(e, t, "read from private field"), s2 ? s2.call(e) : t.get(e)), v = (e, t, s2) => {
|
|
639
|
+
if (t.has(e))
|
|
640
640
|
throw TypeError("Cannot add the same private member more than once");
|
|
641
|
-
|
|
642
|
-
}, b = (
|
|
643
|
-
var k$1 = (
|
|
644
|
-
if (!
|
|
641
|
+
t instanceof WeakSet ? t.add(e) : t.set(e, s2);
|
|
642
|
+
}, b = (e, t, s2, i2) => (I$1(e, t, "write to private field"), i2 ? i2.call(e, s2) : t.set(e, s2), s2);
|
|
643
|
+
var k$1 = (e, t, s2) => {
|
|
644
|
+
if (!t.has(e))
|
|
645
645
|
throw TypeError("Cannot " + s2);
|
|
646
|
-
}, o = (
|
|
647
|
-
if (
|
|
646
|
+
}, o = (e, t, s2) => (k$1(e, t, "read from private field"), s2 ? s2.call(e) : t.get(e)), y = (e, t, s2) => {
|
|
647
|
+
if (t.has(e))
|
|
648
648
|
throw TypeError("Cannot add the same private member more than once");
|
|
649
|
-
|
|
650
|
-
}, E = (
|
|
649
|
+
t instanceof WeakSet ? t.add(e) : t.set(e, s2);
|
|
650
|
+
}, E = (e, t, s2, i2) => (k$1(e, t, "write to private field"), i2 ? i2.call(e, s2) : t.set(e, s2), s2);
|
|
651
651
|
class A {
|
|
652
652
|
constructor() {
|
|
653
653
|
this.collection = [];
|
|
654
654
|
}
|
|
655
|
-
async register(
|
|
656
|
-
return await this.deregister(
|
|
655
|
+
async register(t) {
|
|
656
|
+
return await this.deregister(t), this.collection.push(t), this.collection;
|
|
657
657
|
}
|
|
658
|
-
async deregister(
|
|
659
|
-
const s2 = this.collection.findIndex((i2) => i2 ===
|
|
658
|
+
async deregister(t) {
|
|
659
|
+
const s2 = this.collection.findIndex((i2) => i2 === t);
|
|
660
660
|
if (s2 >= 0) {
|
|
661
661
|
const i2 = this.collection[s2];
|
|
662
662
|
Object.getOwnPropertyNames(i2).forEach((n) => {
|
|
@@ -665,8 +665,8 @@ class A {
|
|
|
665
665
|
}
|
|
666
666
|
return this.collection;
|
|
667
667
|
}
|
|
668
|
-
async registerCollection(
|
|
669
|
-
return await Promise.all(Array.from(
|
|
668
|
+
async registerCollection(t) {
|
|
669
|
+
return await Promise.all(Array.from(t, (s2) => {
|
|
670
670
|
this.register(s2);
|
|
671
671
|
})), this.collection;
|
|
672
672
|
}
|
|
@@ -675,42 +675,42 @@ class A {
|
|
|
675
675
|
await this.deregister(this.collection[0]);
|
|
676
676
|
return this.collection;
|
|
677
677
|
}
|
|
678
|
-
get(
|
|
679
|
-
return this.collection.find((i2) => i2[s2] ===
|
|
678
|
+
get(t, s2 = "id") {
|
|
679
|
+
return this.collection.find((i2) => i2[s2] === t);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
const
|
|
682
|
+
const r2 = {
|
|
683
683
|
inert: ":not([inert]):not([inert] *)",
|
|
684
684
|
negTabIndex: ':not([tabindex^="-"])',
|
|
685
685
|
disabled: ":not(:disabled)"
|
|
686
686
|
}, S$1 = [
|
|
687
|
-
`a[href]${
|
|
688
|
-
`area[href]${
|
|
689
|
-
`input:not([type="hidden"]):not([type="radio"])${
|
|
690
|
-
`input[type="radio"]${
|
|
691
|
-
`select${
|
|
692
|
-
`textarea${
|
|
693
|
-
`button${
|
|
694
|
-
`details${
|
|
687
|
+
`a[href]${r2.inert}${r2.negTabIndex}`,
|
|
688
|
+
`area[href]${r2.inert}${r2.negTabIndex}`,
|
|
689
|
+
`input:not([type="hidden"]):not([type="radio"])${r2.inert}${r2.negTabIndex}${r2.disabled}`,
|
|
690
|
+
`input[type="radio"]${r2.inert}${r2.negTabIndex}${r2.disabled}`,
|
|
691
|
+
`select${r2.inert}${r2.negTabIndex}${r2.disabled}`,
|
|
692
|
+
`textarea${r2.inert}${r2.negTabIndex}${r2.disabled}`,
|
|
693
|
+
`button${r2.inert}${r2.negTabIndex}${r2.disabled}`,
|
|
694
|
+
`details${r2.inert} > summary:first-of-type${r2.negTabIndex}`,
|
|
695
695
|
// Discard until Firefox supports `:has()`
|
|
696
696
|
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
|
697
697
|
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
|
698
|
-
`iframe${
|
|
699
|
-
`audio[controls]${
|
|
700
|
-
`video[controls]${
|
|
701
|
-
`[contenteditable]${
|
|
702
|
-
`[tabindex]${
|
|
698
|
+
`iframe${r2.inert}${r2.negTabIndex}`,
|
|
699
|
+
`audio[controls]${r2.inert}${r2.negTabIndex}`,
|
|
700
|
+
`video[controls]${r2.inert}${r2.negTabIndex}`,
|
|
701
|
+
`[contenteditable]${r2.inert}${r2.negTabIndex}`,
|
|
702
|
+
`[tabindex]${r2.inert}${r2.negTabIndex}`
|
|
703
703
|
];
|
|
704
704
|
var g, c, d;
|
|
705
705
|
let M$1 = class M2 {
|
|
706
|
-
constructor(
|
|
707
|
-
y(this, g, void 0), y(this, c, void 0), y(this, d, void 0), this.el =
|
|
706
|
+
constructor(t = null, s2 = "[data-focus]") {
|
|
707
|
+
y(this, g, void 0), y(this, c, void 0), y(this, d, void 0), this.el = t, this.selectorFocus = s2, E(this, c, R.bind(this)), E(this, d, N$1.bind(this));
|
|
708
708
|
}
|
|
709
709
|
get focusable() {
|
|
710
710
|
return o(this, g);
|
|
711
711
|
}
|
|
712
|
-
set focusable(
|
|
713
|
-
E(this, g,
|
|
712
|
+
set focusable(t) {
|
|
713
|
+
E(this, g, t), o(this, g).length ? (document.removeEventListener("keydown", o(this, d)), document.addEventListener("keydown", o(this, c))) : (document.removeEventListener("keydown", o(this, c)), document.addEventListener("keydown", o(this, d)));
|
|
714
714
|
}
|
|
715
715
|
get focusableFirst() {
|
|
716
716
|
return this.focusable[0];
|
|
@@ -718,63 +718,63 @@ let M$1 = class M2 {
|
|
|
718
718
|
get focusableLast() {
|
|
719
719
|
return this.focusable[this.focusable.length - 1];
|
|
720
720
|
}
|
|
721
|
-
mount(
|
|
722
|
-
|
|
721
|
+
mount(t, s2) {
|
|
722
|
+
t && (this.el = t), s2 && (this.selectorFocus = s2), this.focusable = this.getFocusable(), this.focus();
|
|
723
723
|
}
|
|
724
724
|
unmount() {
|
|
725
725
|
this.el = null, this.focusable = [], document.removeEventListener("keydown", o(this, c)), document.removeEventListener("keydown", o(this, d));
|
|
726
726
|
}
|
|
727
|
-
focus(
|
|
728
|
-
(
|
|
727
|
+
focus(t = this.el, s2 = this.selectorFocus) {
|
|
728
|
+
(t.querySelector(s2) || t).focus();
|
|
729
729
|
}
|
|
730
|
-
getFocusable(
|
|
731
|
-
const s2 = [], i2 = document.activeElement, n =
|
|
732
|
-
return
|
|
733
|
-
|
|
734
|
-
}),
|
|
730
|
+
getFocusable(t = this.el) {
|
|
731
|
+
const s2 = [], i2 = document.activeElement, n = t.scrollTop;
|
|
732
|
+
return t.querySelectorAll(S$1.join(",")).forEach((l2) => {
|
|
733
|
+
l2.focus(), document.activeElement === l2 && s2.push(l2);
|
|
734
|
+
}), t.scrollTop = n, i2.focus(), s2;
|
|
735
735
|
}
|
|
736
736
|
};
|
|
737
737
|
g = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
|
|
738
|
-
function R(
|
|
739
|
-
(
|
|
738
|
+
function R(e) {
|
|
739
|
+
(e.key === "Tab" || e.keyCode === 9) && (e.shiftKey ? (document.activeElement === this.focusableFirst || document.activeElement === this.el) && (e.preventDefault(), this.focusableLast.focus()) : (document.activeElement === this.focusableLast || document.activeElement === this.el) && (e.preventDefault(), this.focusableFirst.focus()));
|
|
740
740
|
}
|
|
741
|
-
function N$1(
|
|
742
|
-
(
|
|
741
|
+
function N$1(e) {
|
|
742
|
+
(e.key === "Tab" || e.keyCode === 9) && e.preventDefault();
|
|
743
743
|
}
|
|
744
|
-
function P2(
|
|
745
|
-
const s2 = (
|
|
744
|
+
function P2(e, t) {
|
|
745
|
+
const s2 = (e.getAttribute(`data-${t}`) || "").replace(/'/g, '"');
|
|
746
746
|
return s2 ? JSON.parse(s2) : {};
|
|
747
747
|
}
|
|
748
|
-
function T$1(
|
|
749
|
-
const i2 =
|
|
750
|
-
if (
|
|
751
|
-
throw new Error(`Not a valid teleport reference: '${
|
|
752
|
-
if (typeof
|
|
748
|
+
function T$1(e, t, s2) {
|
|
749
|
+
const i2 = t.nodeType === Node.COMMENT_NODE, n = t.nodeType === Node.ELEMENT_NODE;
|
|
750
|
+
if (t = i2 || n ? t : document.querySelector(t), i2 && (s2 = "after"), !t)
|
|
751
|
+
throw new Error(`Not a valid teleport reference: '${t}'`);
|
|
752
|
+
if (typeof t[s2] != "function")
|
|
753
753
|
throw new Error(`Not a valid teleport method: '${s2}'`);
|
|
754
|
-
let
|
|
755
|
-
return i2 || (
|
|
756
|
-
}
|
|
757
|
-
const D$1 = (
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
})) : (
|
|
761
|
-
}), F$1 = (
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
})) : (
|
|
754
|
+
let l2 = null;
|
|
755
|
+
return i2 || (l2 = document.createComment("teleported #" + e.id), e.before(l2)), t[s2](e), i2 && t.remove(), l2;
|
|
756
|
+
}
|
|
757
|
+
const D$1 = (e, t) => new Promise((s2) => {
|
|
758
|
+
t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function i2(n) {
|
|
759
|
+
n.target == e && (e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), s2(e), this.removeEventListener("transitionend", i2));
|
|
760
|
+
})) : (e.classList.add(t.stateOpened), e.classList.remove(t.stateClosed), s2(e));
|
|
761
|
+
}), F$1 = (e, t) => new Promise((s2) => {
|
|
762
|
+
t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function i2(n) {
|
|
763
|
+
n.target == e && (e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), s2(e), this.removeEventListener("transitionend", i2));
|
|
764
|
+
})) : (e.classList.add(t.stateClosed), e.classList.remove(t.stateOpened), s2(e));
|
|
765
765
|
});
|
|
766
|
-
function q(
|
|
767
|
-
|
|
768
|
-
|
|
766
|
+
function q(e, t) {
|
|
767
|
+
t && document.querySelectorAll(t).forEach((s2) => {
|
|
768
|
+
e ? s2.style.overflow = "hidden" : s2.style.removeProperty("overflow");
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
function z(
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
function z(e, t) {
|
|
772
|
+
t && document.querySelectorAll(t).forEach((s2) => {
|
|
773
|
+
e ? (s2.inert = true, s2.setAttribute("aria-hidden", true)) : (s2.inert = null, s2.removeAttribute("aria-hidden"));
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
function W(
|
|
777
|
-
z(!!
|
|
776
|
+
function W(e, t) {
|
|
777
|
+
z(!!e, t.selectorInert), q(!!e, t.selectorOverflow);
|
|
778
778
|
}
|
|
779
779
|
const _$1 = {
|
|
780
780
|
autoInit: false,
|
|
@@ -803,155 +803,155 @@ const _$1 = {
|
|
|
803
803
|
setTabindex: true,
|
|
804
804
|
transition: true
|
|
805
805
|
};
|
|
806
|
-
function L(
|
|
807
|
-
const
|
|
808
|
-
if (
|
|
809
|
-
return
|
|
810
|
-
throw new Error(`Modal not found in collection with id of "${
|
|
806
|
+
function L(e) {
|
|
807
|
+
const t = typeof e == "string" ? this.get(e) : this.get(e.id);
|
|
808
|
+
if (t)
|
|
809
|
+
return t;
|
|
810
|
+
throw new Error(`Modal not found in collection with id of "${e.id || e}".`);
|
|
811
811
|
}
|
|
812
|
-
function p(
|
|
813
|
-
return typeof
|
|
812
|
+
function p(e) {
|
|
813
|
+
return typeof e == "string" ? e : typeof e.hasAttribute == "function" ? e.hasAttribute(`data-${this.settings.dataOpen}`) ? e.getAttribute(`data-${this.settings.dataOpen}`) : e.hasAttribute(`data-${this.settings.dataClose}`) ? e.getAttribute(`data-${this.settings.dataClose}`) || false : e.hasAttribute(`data-${this.settings.dataReplace}`) ? e.getAttribute(`data-${this.settings.dataReplace}`) : e.closest(this.settings.selectorModal) ? (e = e.closest(this.settings.selectorModal), e.id || false) : false : e.id ? e.id : false;
|
|
814
814
|
}
|
|
815
|
-
function G(
|
|
816
|
-
const
|
|
817
|
-
if (
|
|
818
|
-
const s2 = document.querySelector(`#${
|
|
819
|
-
return !s2 && !i2 ? { error: new Error(`No modal elements found using the ID: "${
|
|
815
|
+
function G(e) {
|
|
816
|
+
const t = p.call(this, e);
|
|
817
|
+
if (t) {
|
|
818
|
+
const s2 = document.querySelector(`#${t}`), i2 = s2 ? s2.querySelector(this.settings.selectorDialog) : null;
|
|
819
|
+
return !s2 && !i2 ? { error: new Error(`No modal elements found using the ID: "${t}".`) } : i2 ? { modal: s2, dialog: i2 } : { error: new Error("Modal is missing dialog element.") };
|
|
820
820
|
} else
|
|
821
821
|
return { error: new Error("Could not resolve the modal ID.") };
|
|
822
822
|
}
|
|
823
823
|
function m() {
|
|
824
824
|
this.active ? this.focusTrap.mount(this.active.dialog, this.settings.selectorFocus) : (this.trigger && (this.trigger.focus(), this.trigger = null), this.focusTrap.unmount());
|
|
825
825
|
}
|
|
826
|
-
async function K$1(
|
|
827
|
-
let
|
|
826
|
+
async function K$1(e) {
|
|
827
|
+
let t = e.target.closest(
|
|
828
828
|
`[data-${this.settings.dataOpen}], [data-${this.settings.dataReplace}]`
|
|
829
829
|
);
|
|
830
|
-
if (
|
|
831
|
-
|
|
832
|
-
const i2 = this.get(p.call(this,
|
|
833
|
-
return
|
|
830
|
+
if (t) {
|
|
831
|
+
e.preventDefault(), e.target.closest(this.settings.selectorModal) || (this.trigger = t);
|
|
832
|
+
const i2 = this.get(p.call(this, t));
|
|
833
|
+
return t.matches(`[data-${this.settings.dataOpen}]`) ? i2.open() : i2.replace();
|
|
834
834
|
}
|
|
835
|
-
if (
|
|
836
|
-
|
|
837
|
-
const s2 =
|
|
835
|
+
if (t = e.target.closest(`[data-${this.settings.dataClose}]`), t) {
|
|
836
|
+
e.preventDefault();
|
|
837
|
+
const s2 = t.getAttribute(`data-${this.settings.dataClose}`);
|
|
838
838
|
return s2 === "*" ? this.closeAll() : this.close(s2);
|
|
839
839
|
}
|
|
840
|
-
if (
|
|
841
|
-
return this.close(p.call(this,
|
|
840
|
+
if (e.target.matches(this.settings.selectorModal) && !e.target.querySelector(this.settings.selectorRequired))
|
|
841
|
+
return this.close(p.call(this, e.target));
|
|
842
842
|
}
|
|
843
|
-
function J$1(
|
|
844
|
-
if (
|
|
843
|
+
function J$1(e) {
|
|
844
|
+
if (e.key === "Escape" && this.active && !this.active.dialog.matches(this.settings.selectorRequired))
|
|
845
845
|
return this.close();
|
|
846
846
|
}
|
|
847
|
-
async function w(
|
|
848
|
-
if (!
|
|
847
|
+
async function w(e, t = true) {
|
|
848
|
+
if (!e)
|
|
849
849
|
return this.collection;
|
|
850
|
-
const s2 = this.collection.findIndex((i2) => i2.id ===
|
|
850
|
+
const s2 = this.collection.findIndex((i2) => i2.id === e.id);
|
|
851
851
|
if (s2 >= 0) {
|
|
852
852
|
const i2 = this.collection[s2];
|
|
853
|
-
|
|
853
|
+
t && i2.state === "opened" ? await i2.close(false) : this.stack.remove(i2), i2.getSetting("teleport") && i2.teleportReturn(), Object.getOwnPropertyNames(i2).forEach((n) => {
|
|
854
854
|
delete i2[n];
|
|
855
855
|
}), this.collection.splice(s2, 1);
|
|
856
856
|
}
|
|
857
857
|
return this.collection;
|
|
858
858
|
}
|
|
859
|
-
async function x2(
|
|
860
|
-
const i2 = L.call(this,
|
|
861
|
-
return
|
|
859
|
+
async function x2(e, t, s2 = true) {
|
|
860
|
+
const i2 = L.call(this, e), n = { ...this.settings, ...i2.settings };
|
|
861
|
+
return t !== void 0 && (n.transition = t), this.stack.moveToTop(i2), i2.state === "closed" && (i2.state = "opening", this.stack.add(i2), await D$1(i2.el, n), i2.state = "opened"), s2 && m.call(this), i2.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "opened", {
|
|
862
862
|
detail: this,
|
|
863
863
|
bubbles: true
|
|
864
864
|
})), i2;
|
|
865
865
|
}
|
|
866
|
-
async function C(
|
|
867
|
-
const i2 =
|
|
866
|
+
async function C(e, t, s2 = true) {
|
|
867
|
+
const i2 = e ? L.call(this, e) : this.active;
|
|
868
868
|
if (i2 && i2.state === "opened") {
|
|
869
869
|
i2.state = "closing";
|
|
870
870
|
const n = { ...this.settings, ...i2.settings };
|
|
871
|
-
|
|
871
|
+
t !== void 0 && (n.transition = t), document.activeElement.blur(), await F$1(i2.el, n), this.stack.remove(i2), s2 && m.call(this), i2.state = "closed", i2.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "closed", {
|
|
872
872
|
detail: this,
|
|
873
873
|
bubbles: true
|
|
874
874
|
}));
|
|
875
875
|
}
|
|
876
876
|
return i2;
|
|
877
877
|
}
|
|
878
|
-
async function $2(
|
|
878
|
+
async function $2(e, t) {
|
|
879
879
|
const s2 = [];
|
|
880
880
|
return await Promise.all(this.stack.value.map(async (i2) => {
|
|
881
|
-
|
|
881
|
+
e && e === i2.id ? Promise.resolve() : s2.push(await C.call(this, i2, t, false)), i2.trigger = null;
|
|
882
882
|
})), s2;
|
|
883
883
|
}
|
|
884
|
-
async function O(
|
|
885
|
-
const i2 = L.call(this,
|
|
886
|
-
let n,
|
|
887
|
-
return i2.state === "opened" ? (n = i2,
|
|
884
|
+
async function O(e, t, s2 = true) {
|
|
885
|
+
const i2 = L.call(this, e);
|
|
886
|
+
let n, l2;
|
|
887
|
+
return i2.state === "opened" ? (n = i2, l2 = await $2.call(this, i2.id, t)) : (n = x2.call(this, i2, t, false), l2 = $2.call(this, false, t), await Promise.all([n, l2])), s2 && m.call(this), { opened: n, closed: l2 };
|
|
888
888
|
}
|
|
889
|
-
async function B$1(
|
|
890
|
-
await w.call(this,
|
|
889
|
+
async function B$1(e, t) {
|
|
890
|
+
await w.call(this, e, false);
|
|
891
891
|
const s2 = this, i2 = {
|
|
892
|
-
open(
|
|
893
|
-
return x2.call(s2, this,
|
|
892
|
+
open(l2, a2) {
|
|
893
|
+
return x2.call(s2, this, l2, a2);
|
|
894
894
|
},
|
|
895
|
-
close(
|
|
896
|
-
return C.call(s2, this,
|
|
895
|
+
close(l2, a2) {
|
|
896
|
+
return C.call(s2, this, l2, a2);
|
|
897
897
|
},
|
|
898
|
-
replace(
|
|
899
|
-
return O.call(s2, this,
|
|
898
|
+
replace(l2, a2) {
|
|
899
|
+
return O.call(s2, this, l2, a2);
|
|
900
900
|
},
|
|
901
901
|
deregister() {
|
|
902
902
|
return w.call(s2, this);
|
|
903
903
|
},
|
|
904
|
-
teleport(
|
|
905
|
-
return this.returnRef ? (console.error("Element has already been teleported:", this.el), false) : (this.returnRef = T$1(this.el,
|
|
904
|
+
teleport(l2 = this.getSetting("teleport"), a2 = this.getSetting("teleportMethod")) {
|
|
905
|
+
return this.returnRef ? (console.error("Element has already been teleported:", this.el), false) : (this.returnRef = T$1(this.el, l2, a2), this.el);
|
|
906
906
|
},
|
|
907
907
|
teleportReturn() {
|
|
908
908
|
return this.returnRef ? (this.returnRef = T$1(this.el, this.returnRef), this.el) : (console.error("No return reference found:", this.el), false);
|
|
909
909
|
},
|
|
910
|
-
getSetting(
|
|
911
|
-
return
|
|
910
|
+
getSetting(l2) {
|
|
911
|
+
return l2 in this.settings ? this.settings[l2] : s2.settings[l2];
|
|
912
912
|
}
|
|
913
913
|
}, n = {
|
|
914
|
-
id:
|
|
914
|
+
id: e.id,
|
|
915
915
|
state: "closed",
|
|
916
|
-
el:
|
|
917
|
-
dialog:
|
|
916
|
+
el: e,
|
|
917
|
+
dialog: t,
|
|
918
918
|
returnRef: null,
|
|
919
|
-
settings: P2(
|
|
919
|
+
settings: P2(e, this.settings.dataConfig),
|
|
920
920
|
...i2
|
|
921
921
|
};
|
|
922
922
|
return n.dialog.setAttribute("aria-modal", "true"), n.dialog.hasAttribute("role") || n.dialog.setAttribute("role", "dialog"), n.getSetting("setTabindex") && n.dialog.setAttribute("tabindex", "-1"), n.getSetting("teleport") && n.teleport(), this.collection.push(n), n.el.classList.contains(this.settings.stateOpened) ? await n.open(false) : (n.el.classList.remove(this.settings.stateOpening), n.el.classList.remove(this.settings.stateClosing), n.el.classList.add(this.settings.stateClosed)), n;
|
|
923
923
|
}
|
|
924
|
-
function H$1(
|
|
925
|
-
const
|
|
924
|
+
function H$1(e) {
|
|
925
|
+
const t = [];
|
|
926
926
|
return {
|
|
927
927
|
get value() {
|
|
928
|
-
return [...
|
|
928
|
+
return [...t];
|
|
929
929
|
},
|
|
930
930
|
get top() {
|
|
931
|
-
return
|
|
931
|
+
return t[t.length - 1];
|
|
932
932
|
},
|
|
933
933
|
updateIndex() {
|
|
934
|
-
|
|
934
|
+
t.forEach((s2, i2) => {
|
|
935
935
|
s2.el.style.zIndex = null;
|
|
936
936
|
const n = getComputedStyle(s2.el)["z-index"];
|
|
937
937
|
s2.el.style.zIndex = parseInt(n) + i2 + 1;
|
|
938
938
|
});
|
|
939
939
|
},
|
|
940
940
|
updateGlobalState() {
|
|
941
|
-
W(this.top,
|
|
941
|
+
W(this.top, e), this.updateIndex();
|
|
942
942
|
},
|
|
943
943
|
add(s2) {
|
|
944
944
|
s2.el.style.zIndex = null;
|
|
945
945
|
const i2 = getComputedStyle(s2.el)["z-index"];
|
|
946
|
-
s2.el.style.zIndex = parseInt(i2) +
|
|
946
|
+
s2.el.style.zIndex = parseInt(i2) + t.length + 1, t.push(s2), this.updateGlobalState();
|
|
947
947
|
},
|
|
948
948
|
remove(s2) {
|
|
949
|
-
const i2 =
|
|
950
|
-
i2 >= 0 && (s2.el.style.zIndex = null,
|
|
949
|
+
const i2 = t.findIndex((n) => n.id === s2.id);
|
|
950
|
+
i2 >= 0 && (s2.el.style.zIndex = null, t.splice(i2, 1), this.updateGlobalState());
|
|
951
951
|
},
|
|
952
952
|
moveToTop(s2) {
|
|
953
|
-
const i2 =
|
|
954
|
-
i2 >= 0 && (
|
|
953
|
+
const i2 = t.findIndex((n) => n.id === s2.id);
|
|
954
|
+
i2 >= 0 && (t.splice(i2, 1), this.add(s2));
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
957
|
}
|
|
@@ -998,8 +998,8 @@ class U extends A {
|
|
|
998
998
|
return O.call(this, s2, i2, n);
|
|
999
999
|
}
|
|
1000
1000
|
async closeAll(s2 = false, i2, n = true) {
|
|
1001
|
-
const
|
|
1002
|
-
return n && m.call(this),
|
|
1001
|
+
const l2 = await $2.call(this, s2, i2);
|
|
1002
|
+
return n && m.call(this), l2;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
u = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap();
|
|
@@ -2226,7 +2226,7 @@ class qr extends Ct {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
J = /* @__PURE__ */ new WeakMap();
|
|
2228
2228
|
export {
|
|
2229
|
-
r$
|
|
2229
|
+
r$2 as Checkbox,
|
|
2230
2230
|
it$1 as Drawer,
|
|
2231
2231
|
U as Modal,
|
|
2232
2232
|
qr as Popover,
|