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