@vue-interface/btn-dropdown 2.0.0-beta.2 → 2.0.0-beta.4
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/btn-dropdown.es.js +295 -295
- package/dist/btn-dropdown.umd.js +2 -2
- package/package.json +1 -1
- package/src/BtnDropdownSingle.vue +3 -1
- package/src/BtnDropdownSplit.vue +3 -1
- package/src/DropdownHandler.js +24 -1
package/dist/btn-dropdown.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as
|
|
2
|
-
var R = "top", N = "bottom",
|
|
3
|
-
return e.concat([t + "-" + ae, t + "-" +
|
|
4
|
-
}, []),
|
|
5
|
-
return e.concat([t, t + "-" + ae, t + "-" +
|
|
6
|
-
}, []),
|
|
1
|
+
import { defineComponent as Mt, openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as me, withCtx as B, renderSlot as P, createTextVNode as ge, toDisplayString as be, createElementBlock as Ue, normalizeClass as F, h as It, Fragment as Lt, resolveComponent as te, createVNode as ye, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, withKeys as bt, withModifiers as yt, normalizeStyle as Vt, createSlots as qt } from "vue";
|
|
2
|
+
var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j], ae = "start", we = "end", Ft = "clippingParents", wt = "viewport", ce = "popper", Wt = "reference", st = /* @__PURE__ */ xe.reduce(function(e, t) {
|
|
3
|
+
return e.concat([t + "-" + ae, t + "-" + we]);
|
|
4
|
+
}, []), Ot = /* @__PURE__ */ [].concat(xe, [Te]).reduce(function(e, t) {
|
|
5
|
+
return e.concat([t, t + "-" + ae, t + "-" + we]);
|
|
6
|
+
}, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite", qe = [Ht, Ut, Xt, Yt, Kt, Gt, Jt, Qt, Zt];
|
|
7
7
|
function H(e) {
|
|
8
8
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function I(e) {
|
|
11
11
|
if (e == null)
|
|
12
12
|
return window;
|
|
13
13
|
if (e.toString() !== "[object Window]") {
|
|
@@ -17,30 +17,30 @@ function M(e) {
|
|
|
17
17
|
return e;
|
|
18
18
|
}
|
|
19
19
|
function ne(e) {
|
|
20
|
-
var t =
|
|
20
|
+
var t = I(e).Element;
|
|
21
21
|
return e instanceof t || e instanceof Element;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
var t =
|
|
23
|
+
function z(e) {
|
|
24
|
+
var t = I(e).HTMLElement;
|
|
25
25
|
return e instanceof t || e instanceof HTMLElement;
|
|
26
26
|
}
|
|
27
27
|
function Xe(e) {
|
|
28
28
|
if (typeof ShadowRoot > "u")
|
|
29
29
|
return !1;
|
|
30
|
-
var t =
|
|
30
|
+
var t = I(e).ShadowRoot;
|
|
31
31
|
return e instanceof t || e instanceof ShadowRoot;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function _t(e) {
|
|
34
34
|
var t = e.state;
|
|
35
35
|
Object.keys(t.elements).forEach(function(r) {
|
|
36
36
|
var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
|
|
37
|
-
!
|
|
37
|
+
!z(i) || !H(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
|
|
38
38
|
var l = o[a];
|
|
39
39
|
l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l);
|
|
40
40
|
}));
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function er(e) {
|
|
44
44
|
var t = e.state, r = {
|
|
45
45
|
popper: {
|
|
46
46
|
position: t.options.strategy,
|
|
@@ -58,18 +58,18 @@ function Qt(e) {
|
|
|
58
58
|
var o = t.elements[n], i = t.attributes[n] || {}, a = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = a.reduce(function(s, f) {
|
|
59
59
|
return s[f] = "", s;
|
|
60
60
|
}, {});
|
|
61
|
-
!
|
|
61
|
+
!z(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
|
|
62
62
|
o.removeAttribute(s);
|
|
63
63
|
}));
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const tr = {
|
|
68
68
|
name: "applyStyles",
|
|
69
69
|
enabled: !0,
|
|
70
70
|
phase: "write",
|
|
71
|
-
fn:
|
|
72
|
-
effect:
|
|
71
|
+
fn: _t,
|
|
72
|
+
effect: er,
|
|
73
73
|
requires: ["computeStyles"]
|
|
74
74
|
};
|
|
75
75
|
function V(e) {
|
|
@@ -82,14 +82,14 @@ function Fe() {
|
|
|
82
82
|
return t.brand + "/" + t.version;
|
|
83
83
|
}).join(" ") : navigator.userAgent;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function xt() {
|
|
86
86
|
return !/^((?!chrome|android).)*safari/i.test(Fe());
|
|
87
87
|
}
|
|
88
88
|
function le(e, t, r) {
|
|
89
89
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
90
90
|
var n = e.getBoundingClientRect(), o = 1, i = 1;
|
|
91
|
-
t &&
|
|
92
|
-
var a = ne(e) ?
|
|
91
|
+
t && z(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
|
|
92
|
+
var a = ne(e) ? I(e) : window, l = a.visualViewport, s = !xt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
|
|
93
93
|
return {
|
|
94
94
|
width: h,
|
|
95
95
|
height: y,
|
|
@@ -110,7 +110,7 @@ function Ye(e) {
|
|
|
110
110
|
height: n
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function $t(e, t) {
|
|
114
114
|
var r = t.getRootNode && t.getRootNode();
|
|
115
115
|
if (e.contains(t))
|
|
116
116
|
return !0;
|
|
@@ -125,29 +125,29 @@ function Ot(e, t) {
|
|
|
125
125
|
return !1;
|
|
126
126
|
}
|
|
127
127
|
function q(e) {
|
|
128
|
-
return
|
|
128
|
+
return I(e).getComputedStyle(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function rr(e) {
|
|
131
131
|
return ["table", "td", "th"].indexOf(H(e)) >= 0;
|
|
132
132
|
}
|
|
133
133
|
function Y(e) {
|
|
134
134
|
return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ze(e) {
|
|
137
137
|
return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (Xe(e) ? e.host : null) || Y(e);
|
|
138
138
|
}
|
|
139
139
|
function lt(e) {
|
|
140
|
-
return !
|
|
140
|
+
return !z(e) || q(e).position === "fixed" ? null : e.offsetParent;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function nr(e) {
|
|
143
143
|
var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
|
|
144
|
-
if (r &&
|
|
144
|
+
if (r && z(e)) {
|
|
145
145
|
var n = q(e);
|
|
146
146
|
if (n.position === "fixed")
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
149
|
-
var o =
|
|
150
|
-
for (Xe(o) && (o = o.host);
|
|
149
|
+
var o = ze(e);
|
|
150
|
+
for (Xe(o) && (o = o.host); z(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
|
|
151
151
|
var i = q(o);
|
|
152
152
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
153
153
|
return o;
|
|
@@ -155,22 +155,22 @@ function er(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
for (var t =
|
|
158
|
+
function $e(e) {
|
|
159
|
+
for (var t = I(e), r = lt(e); r && rr(r) && q(r).position === "static"; )
|
|
160
160
|
r = lt(r);
|
|
161
|
-
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r ||
|
|
161
|
+
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || nr(e) || t;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ke(e) {
|
|
164
164
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ve(e, t, r) {
|
|
167
167
|
return re(e, je(t, r));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var n =
|
|
169
|
+
function or(e, t, r) {
|
|
170
|
+
var n = ve(e, t, r);
|
|
171
171
|
return n > r ? r : n;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ct() {
|
|
174
174
|
return {
|
|
175
175
|
top: 0,
|
|
176
176
|
right: 0,
|
|
@@ -178,55 +178,55 @@ function xt() {
|
|
|
178
178
|
left: 0
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return Object.assign({},
|
|
181
|
+
function Pt(e) {
|
|
182
|
+
return Object.assign({}, Ct(), e);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Et(e, t) {
|
|
185
185
|
return t.reduce(function(r, n) {
|
|
186
186
|
return r[n] = e, r;
|
|
187
187
|
}, {});
|
|
188
188
|
}
|
|
189
|
-
var
|
|
189
|
+
var ir = function(t, r) {
|
|
190
190
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
191
191
|
placement: r.placement
|
|
192
|
-
})) : t,
|
|
192
|
+
})) : t, Pt(typeof t != "number" ? t : Et(t, xe));
|
|
193
193
|
};
|
|
194
|
-
function
|
|
195
|
-
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s =
|
|
194
|
+
function ar(e) {
|
|
195
|
+
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ke(l), f = [j, M].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
196
|
if (!(!i || !a)) {
|
|
197
|
-
var h =
|
|
198
|
-
r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x -
|
|
197
|
+
var h = ir(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : M, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = $e(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, d = h[u], g = C - y[p] - h[O], c = C / 2 - y[p] / 2 + $, x = ve(d, c, g), E = s;
|
|
198
|
+
r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - c, t);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function sr(e) {
|
|
202
202
|
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
203
203
|
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
204
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
204
|
+
if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !$t(t.elements.popper, o)) {
|
|
205
205
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
t.elements.arrow = o;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const lr = {
|
|
212
212
|
name: "arrow",
|
|
213
213
|
enabled: !0,
|
|
214
214
|
phase: "main",
|
|
215
|
-
fn:
|
|
216
|
-
effect:
|
|
215
|
+
fn: ar,
|
|
216
|
+
effect: sr,
|
|
217
217
|
requires: ["popperOffsets"],
|
|
218
218
|
requiresIfExists: ["preventOverflow"]
|
|
219
219
|
};
|
|
220
220
|
function pe(e) {
|
|
221
221
|
return e.split("-")[1];
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var pr = {
|
|
224
224
|
top: "auto",
|
|
225
225
|
right: "auto",
|
|
226
226
|
bottom: "auto",
|
|
227
227
|
left: "auto"
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function fr(e) {
|
|
230
230
|
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
231
231
|
return {
|
|
232
232
|
x: se(t * o) / o || 0,
|
|
@@ -242,23 +242,23 @@ function pt(e) {
|
|
|
242
242
|
y: m
|
|
243
243
|
};
|
|
244
244
|
u = v.x, m = v.y;
|
|
245
|
-
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j,
|
|
245
|
+
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, d = R, g = window;
|
|
246
246
|
if (f) {
|
|
247
|
-
var
|
|
248
|
-
if (
|
|
249
|
-
|
|
250
|
-
var S = h &&
|
|
247
|
+
var c = $e(r), x = "clientHeight", E = "clientWidth";
|
|
248
|
+
if (c === I(r) && (c = Y(r), q(c).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), c = c, o === R || (o === j || o === M) && i === we) {
|
|
249
|
+
d = N;
|
|
250
|
+
var S = h && c === g && g.visualViewport ? g.visualViewport.height : c[x];
|
|
251
251
|
m -= S - n.height, m *= s ? 1 : -1;
|
|
252
252
|
}
|
|
253
|
-
if (o === j || (o === R || o === N) && i ===
|
|
254
|
-
$ =
|
|
255
|
-
var k = h &&
|
|
253
|
+
if (o === j || (o === R || o === N) && i === we) {
|
|
254
|
+
$ = M;
|
|
255
|
+
var k = h && c === g && g.visualViewport ? g.visualViewport.width : c[E];
|
|
256
256
|
u -= k - n.width, u *= s ? 1 : -1;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var b = Object.assign({
|
|
260
260
|
position: l
|
|
261
|
-
}, f &&
|
|
261
|
+
}, f && pr), D = p === !0 ? fr({
|
|
262
262
|
x: u,
|
|
263
263
|
y: m
|
|
264
264
|
}) : {
|
|
@@ -267,11 +267,11 @@ function pt(e) {
|
|
|
267
267
|
};
|
|
268
268
|
if (u = D.x, m = D.y, s) {
|
|
269
269
|
var A;
|
|
270
|
-
return Object.assign({}, b, (A = {}, A[
|
|
270
|
+
return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
|
|
271
271
|
}
|
|
272
|
-
return Object.assign({}, b, (t = {}, t[
|
|
272
|
+
return Object.assign({}, b, (t = {}, t[d] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function ur(e) {
|
|
275
275
|
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
|
|
276
276
|
if (process.env.NODE_ENV !== "production") {
|
|
277
277
|
var f = q(t.elements.popper).transitionProperty || "";
|
|
@@ -305,18 +305,18 @@ function lr(e) {
|
|
|
305
305
|
"data-popper-placement": t.placement
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const dr = {
|
|
309
309
|
name: "computeStyles",
|
|
310
310
|
enabled: !0,
|
|
311
311
|
phase: "beforeWrite",
|
|
312
|
-
fn:
|
|
312
|
+
fn: ur,
|
|
313
313
|
data: {}
|
|
314
314
|
};
|
|
315
315
|
var De = {
|
|
316
316
|
passive: !0
|
|
317
317
|
};
|
|
318
|
-
function
|
|
319
|
-
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s =
|
|
318
|
+
function cr(e) {
|
|
319
|
+
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = I(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
320
320
|
return i && f.forEach(function(p) {
|
|
321
321
|
p.addEventListener("scroll", r.update, De);
|
|
322
322
|
}), l && s.addEventListener("resize", r.update, De), function() {
|
|
@@ -325,16 +325,16 @@ function fr(e) {
|
|
|
325
325
|
}), l && s.removeEventListener("resize", r.update, De);
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
const
|
|
328
|
+
const vr = {
|
|
329
329
|
name: "eventListeners",
|
|
330
330
|
enabled: !0,
|
|
331
331
|
phase: "write",
|
|
332
332
|
fn: function() {
|
|
333
333
|
},
|
|
334
|
-
effect:
|
|
334
|
+
effect: cr,
|
|
335
335
|
data: {}
|
|
336
336
|
};
|
|
337
|
-
var
|
|
337
|
+
var hr = {
|
|
338
338
|
left: "right",
|
|
339
339
|
right: "left",
|
|
340
340
|
bottom: "top",
|
|
@@ -342,44 +342,44 @@ var cr = {
|
|
|
342
342
|
};
|
|
343
343
|
function Ae(e) {
|
|
344
344
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
345
|
-
return
|
|
345
|
+
return hr[t];
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var mr = {
|
|
349
349
|
start: "end",
|
|
350
350
|
end: "start"
|
|
351
351
|
};
|
|
352
352
|
function ft(e) {
|
|
353
353
|
return e.replace(/start|end/g, function(t) {
|
|
354
|
-
return
|
|
354
|
+
return mr[t];
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
var t =
|
|
357
|
+
function Ge(e) {
|
|
358
|
+
var t = I(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
359
359
|
return {
|
|
360
360
|
scrollLeft: r,
|
|
361
361
|
scrollTop: n
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
return le(Y(e)).left +
|
|
364
|
+
function Je(e) {
|
|
365
|
+
return le(Y(e)).left + Ge(e).scrollLeft;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
var r =
|
|
367
|
+
function gr(e, t) {
|
|
368
|
+
var r = I(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
|
|
369
369
|
if (o) {
|
|
370
370
|
i = o.width, a = o.height;
|
|
371
|
-
var f =
|
|
371
|
+
var f = xt();
|
|
372
372
|
(f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
|
|
373
373
|
}
|
|
374
374
|
return {
|
|
375
375
|
width: i,
|
|
376
376
|
height: a,
|
|
377
|
-
x: l +
|
|
377
|
+
x: l + Je(e),
|
|
378
378
|
y: s
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
var t, r = Y(e), n =
|
|
381
|
+
function br(e) {
|
|
382
|
+
var t, r = Y(e), n = Ge(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Je(e), s = -n.scrollTop;
|
|
383
383
|
return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
384
384
|
width: i,
|
|
385
385
|
height: a,
|
|
@@ -391,14 +391,14 @@ function Qe(e) {
|
|
|
391
391
|
var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
392
392
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body :
|
|
394
|
+
function St(e) {
|
|
395
|
+
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : z(e) && Qe(e) ? e : St(ze(e));
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function he(e, t) {
|
|
398
398
|
var r;
|
|
399
399
|
t === void 0 && (t = []);
|
|
400
|
-
var n =
|
|
401
|
-
return o ? l : l.concat(
|
|
400
|
+
var n = St(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = I(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
|
|
401
|
+
return o ? l : l.concat(he(ze(a)));
|
|
402
402
|
}
|
|
403
403
|
function We(e) {
|
|
404
404
|
return Object.assign({}, e, {
|
|
@@ -408,27 +408,27 @@ function We(e) {
|
|
|
408
408
|
bottom: e.y + e.height
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function yr(e, t) {
|
|
412
412
|
var r = le(e, !1, t === "fixed");
|
|
413
413
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
414
414
|
}
|
|
415
415
|
function ut(e, t, r) {
|
|
416
|
-
return t ===
|
|
416
|
+
return t === wt ? We(gr(e, r)) : ne(t) ? yr(t, r) : We(br(Y(e)));
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
var t =
|
|
418
|
+
function wr(e) {
|
|
419
|
+
var t = he(ze(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && z(e) ? $e(e) : e;
|
|
420
420
|
return ne(n) ? t.filter(function(o) {
|
|
421
|
-
return ne(o) &&
|
|
421
|
+
return ne(o) && $t(o, n) && H(o) !== "body";
|
|
422
422
|
}) : [];
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
var o = t === "clippingParents" ?
|
|
424
|
+
function Or(e, t, r, n) {
|
|
425
|
+
var o = t === "clippingParents" ? wr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
|
|
426
426
|
var p = ut(e, f, n);
|
|
427
427
|
return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
|
|
428
428
|
}, ut(e, a, n));
|
|
429
429
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function kt(e) {
|
|
432
432
|
var t = e.reference, r = e.element, n = e.placement, o = n ? V(n) : null, i = n ? pe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
|
|
433
433
|
switch (o) {
|
|
434
434
|
case R:
|
|
@@ -443,7 +443,7 @@ function Et(e) {
|
|
|
443
443
|
y: t.y + t.height
|
|
444
444
|
};
|
|
445
445
|
break;
|
|
446
|
-
case
|
|
446
|
+
case M:
|
|
447
447
|
s = {
|
|
448
448
|
x: t.x + t.width,
|
|
449
449
|
y: l
|
|
@@ -461,52 +461,52 @@ function Et(e) {
|
|
|
461
461
|
y: t.y
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
-
var f = o ?
|
|
464
|
+
var f = o ? Ke(o) : null;
|
|
465
465
|
if (f != null) {
|
|
466
466
|
var p = f === "y" ? "height" : "width";
|
|
467
467
|
switch (i) {
|
|
468
468
|
case ae:
|
|
469
469
|
s[f] = s[f] - (t[p] / 2 - r[p] / 2);
|
|
470
470
|
break;
|
|
471
|
-
case
|
|
471
|
+
case we:
|
|
472
472
|
s[f] = s[f] + (t[p] / 2 - r[p] / 2);
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
return s;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Oe(e, t) {
|
|
479
479
|
t === void 0 && (t = {});
|
|
480
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ?
|
|
481
|
-
reference:
|
|
480
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ce : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = Pt(typeof v != "number" ? v : Et(v, xe)), C = y === ce ? Wt : ce, $ = e.rects.popper, d = e.elements[O ? C : y], g = Or(ne(d) ? d : d.contextElement || Y(e.elements.popper), s, p, a), c = le(e.elements.reference), x = kt({
|
|
481
|
+
reference: c,
|
|
482
482
|
element: $,
|
|
483
483
|
strategy: "absolute",
|
|
484
484
|
placement: o
|
|
485
|
-
}), E = We(Object.assign({}, $, x)), S = y ===
|
|
485
|
+
}), E = We(Object.assign({}, $, x)), S = y === ce ? E : c, k = {
|
|
486
486
|
top: g.top - S.top + w.top,
|
|
487
487
|
bottom: S.bottom - g.bottom + w.bottom,
|
|
488
488
|
left: g.left - S.left + w.left,
|
|
489
489
|
right: S.right - g.right + w.right
|
|
490
490
|
}, b = e.modifiersData.offset;
|
|
491
|
-
if (y ===
|
|
491
|
+
if (y === ce && b) {
|
|
492
492
|
var D = b[o];
|
|
493
493
|
Object.keys(k).forEach(function(A) {
|
|
494
|
-
var
|
|
495
|
-
k[A] += D[
|
|
494
|
+
var K = [M, N].indexOf(A) >= 0 ? 1 : -1, G = [R, N].indexOf(A) >= 0 ? "y" : "x";
|
|
495
|
+
k[A] += D[G] * K;
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
498
|
return k;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function xr(e, t) {
|
|
501
501
|
t === void 0 && (t = {});
|
|
502
|
-
var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ?
|
|
502
|
+
var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? Ot : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
|
|
503
503
|
return pe(O) === p;
|
|
504
|
-
}) :
|
|
504
|
+
}) : xe, y = h.filter(function(O) {
|
|
505
505
|
return f.indexOf(O) >= 0;
|
|
506
506
|
});
|
|
507
507
|
y.length === 0 && (y = h, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
|
|
508
508
|
var u = y.reduce(function(O, m) {
|
|
509
|
-
return O[m] =
|
|
509
|
+
return O[m] = Oe(e, {
|
|
510
510
|
placement: m,
|
|
511
511
|
boundary: o,
|
|
512
512
|
rootBoundary: i,
|
|
@@ -517,17 +517,17 @@ function yr(e, t) {
|
|
|
517
517
|
return u[O] - u[m];
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
if (V(e) ===
|
|
520
|
+
function $r(e) {
|
|
521
|
+
if (V(e) === Te)
|
|
522
522
|
return [];
|
|
523
523
|
var t = Ae(e);
|
|
524
524
|
return [ft(e), t, ft(t)];
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Cr(e) {
|
|
527
527
|
var t = e.state, r = e.options, n = e.name;
|
|
528
528
|
if (!t.modifiersData[n]._skip) {
|
|
529
|
-
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] :
|
|
530
|
-
return oe.concat(V(U) ===
|
|
529
|
+
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : $r(v)), d = [v].concat($).reduce(function(oe, U) {
|
|
530
|
+
return oe.concat(V(U) === Te ? xr(t, {
|
|
531
531
|
placement: U,
|
|
532
532
|
boundary: p,
|
|
533
533
|
rootBoundary: h,
|
|
@@ -535,54 +535,54 @@ function Or(e) {
|
|
|
535
535
|
flipVariations: O,
|
|
536
536
|
allowedAutoPlacements: m
|
|
537
537
|
}) : U);
|
|
538
|
-
}, []), g = t.rects.reference,
|
|
539
|
-
var b =
|
|
538
|
+
}, []), g = t.rects.reference, c = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = d[0], k = 0; k < d.length; k++) {
|
|
539
|
+
var b = d[k], D = V(b), A = pe(b) === ae, K = [R, N].indexOf(D) >= 0, G = K ? "width" : "height", T = Oe(t, {
|
|
540
540
|
placement: b,
|
|
541
541
|
boundary: p,
|
|
542
542
|
rootBoundary: h,
|
|
543
543
|
altBoundary: y,
|
|
544
544
|
padding: f
|
|
545
|
-
}), L =
|
|
546
|
-
g[
|
|
547
|
-
var Pe = Ae(L),
|
|
548
|
-
if (i &&
|
|
545
|
+
}), L = K ? A ? M : j : A ? N : R;
|
|
546
|
+
g[G] > c[G] && (L = Ae(L));
|
|
547
|
+
var Pe = Ae(L), J = [];
|
|
548
|
+
if (i && J.push(T[D] <= 0), l && J.push(T[L] <= 0, T[Pe] <= 0), J.every(function(oe) {
|
|
549
549
|
return oe;
|
|
550
550
|
})) {
|
|
551
551
|
S = b, E = !1;
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
|
-
x.set(b,
|
|
554
|
+
x.set(b, J);
|
|
555
555
|
}
|
|
556
556
|
if (E)
|
|
557
557
|
for (var Ee = O ? 3 : 1, Ne = function(U) {
|
|
558
|
-
var
|
|
558
|
+
var ue = d.find(function(ke) {
|
|
559
559
|
var Q = x.get(ke);
|
|
560
560
|
if (Q)
|
|
561
|
-
return Q.slice(0, U).every(function(
|
|
562
|
-
return
|
|
561
|
+
return Q.slice(0, U).every(function(Me) {
|
|
562
|
+
return Me;
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
|
-
if (
|
|
566
|
-
return S =
|
|
567
|
-
},
|
|
568
|
-
var Se = Ne(
|
|
565
|
+
if (ue)
|
|
566
|
+
return S = ue, "break";
|
|
567
|
+
}, fe = Ee; fe > 0; fe--) {
|
|
568
|
+
var Se = Ne(fe);
|
|
569
569
|
if (Se === "break")
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const Pr = {
|
|
576
576
|
name: "flip",
|
|
577
577
|
enabled: !0,
|
|
578
578
|
phase: "main",
|
|
579
|
-
fn:
|
|
579
|
+
fn: Cr,
|
|
580
580
|
requiresIfExists: ["offset"],
|
|
581
581
|
data: {
|
|
582
582
|
_skip: !1
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
|
-
function
|
|
585
|
+
function dt(e, t, r) {
|
|
586
586
|
return r === void 0 && (r = {
|
|
587
587
|
x: 0,
|
|
588
588
|
y: 0
|
|
@@ -593,17 +593,17 @@ function ct(e, t, r) {
|
|
|
593
593
|
left: e.left - t.width - r.x
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return [R,
|
|
596
|
+
function ct(e) {
|
|
597
|
+
return [R, M, N, j].some(function(t) {
|
|
598
598
|
return e[t] >= 0;
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a =
|
|
601
|
+
function Er(e) {
|
|
602
|
+
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = Oe(t, {
|
|
603
603
|
elementContext: "reference"
|
|
604
|
-
}), l =
|
|
604
|
+
}), l = Oe(t, {
|
|
605
605
|
altBoundary: !0
|
|
606
|
-
}), s =
|
|
606
|
+
}), s = dt(a, n), f = dt(l, o, i), p = ct(s), h = ct(f);
|
|
607
607
|
t.modifiersData[r] = {
|
|
608
608
|
referenceClippingOffsets: s,
|
|
609
609
|
popperEscapeOffsets: f,
|
|
@@ -614,18 +614,18 @@ function $r(e) {
|
|
|
614
614
|
"data-popper-escaped": h
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const Sr = {
|
|
618
618
|
name: "hide",
|
|
619
619
|
enabled: !0,
|
|
620
620
|
phase: "main",
|
|
621
621
|
requiresIfExists: ["preventOverflow"],
|
|
622
|
-
fn:
|
|
622
|
+
fn: Er
|
|
623
623
|
};
|
|
624
|
-
function
|
|
624
|
+
function kr(e, t, r) {
|
|
625
625
|
var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
626
626
|
placement: e
|
|
627
627
|
})) : r, a = i[0], l = i[1];
|
|
628
|
-
return a = a || 0, l = (l || 0) * o, [j,
|
|
628
|
+
return a = a || 0, l = (l || 0) * o, [j, M].indexOf(n) >= 0 ? {
|
|
629
629
|
x: l,
|
|
630
630
|
y: a
|
|
631
631
|
} : {
|
|
@@ -633,45 +633,45 @@ function Pr(e, t, r) {
|
|
|
633
633
|
y: l
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a =
|
|
638
|
-
return p[h] =
|
|
636
|
+
function Br(e) {
|
|
637
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = Ot.reduce(function(p, h) {
|
|
638
|
+
return p[h] = kr(h, t.rects, i), p;
|
|
639
639
|
}, {}), l = a[t.placement], s = l.x, f = l.y;
|
|
640
640
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Dr = {
|
|
643
643
|
name: "offset",
|
|
644
644
|
enabled: !0,
|
|
645
645
|
phase: "main",
|
|
646
646
|
requires: ["popperOffsets"],
|
|
647
|
-
fn:
|
|
647
|
+
fn: Br
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function Ar(e) {
|
|
650
650
|
var t = e.state, r = e.name;
|
|
651
|
-
t.modifiersData[r] =
|
|
651
|
+
t.modifiersData[r] = kt({
|
|
652
652
|
reference: t.rects.reference,
|
|
653
653
|
element: t.rects.popper,
|
|
654
654
|
strategy: "absolute",
|
|
655
655
|
placement: t.placement
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const Rr = {
|
|
659
659
|
name: "popperOffsets",
|
|
660
660
|
enabled: !0,
|
|
661
661
|
phase: "read",
|
|
662
|
-
fn:
|
|
662
|
+
fn: Ar,
|
|
663
663
|
data: {}
|
|
664
664
|
};
|
|
665
|
-
function
|
|
665
|
+
function jr(e) {
|
|
666
666
|
return e === "x" ? "y" : "x";
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v =
|
|
668
|
+
function Tr(e) {
|
|
669
|
+
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = Oe(t, {
|
|
670
670
|
boundary: s,
|
|
671
671
|
rootBoundary: f,
|
|
672
672
|
padding: h,
|
|
673
673
|
altBoundary: p
|
|
674
|
-
}), w = V(t.placement), C = pe(t.placement), $ = !C,
|
|
674
|
+
}), w = V(t.placement), C = pe(t.placement), $ = !C, d = Ke(w), g = jr(d), c = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
675
675
|
placement: t.placement
|
|
676
676
|
})) : m, k = typeof S == "number" ? {
|
|
677
677
|
mainAxis: S,
|
|
@@ -683,58 +683,58 @@ function Ar(e) {
|
|
|
683
683
|
x: 0,
|
|
684
684
|
y: 0
|
|
685
685
|
};
|
|
686
|
-
if (!!
|
|
686
|
+
if (!!c) {
|
|
687
687
|
if (i) {
|
|
688
|
-
var A,
|
|
688
|
+
var A, K = d === "y" ? R : j, G = d === "y" ? N : M, T = d === "y" ? "height" : "width", L = c[d], Pe = L + v[K], J = L - v[G], Ee = u ? -E[T] / 2 : 0, Ne = C === ae ? x[T] : E[T], fe = C === ae ? -E[T] : -x[T], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
|
|
689
689
|
width: 0,
|
|
690
690
|
height: 0
|
|
691
|
-
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
692
|
-
d
|
|
691
|
+
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ue = U[K], ke = U[G], Q = ve(0, x[T], oe[T]), Me = $ ? x[T] / 2 - Ee - Q - ue - k.mainAxis : Ne - Q - ue - k.mainAxis, At = $ ? -x[T] / 2 + Ee + Q + ke + k.mainAxis : fe + Q + ke + k.mainAxis, Ie = t.elements.arrow && $e(t.elements.arrow), Rt = Ie ? d === "y" ? Ie.clientTop || 0 : Ie.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[d]) != null ? A : 0, jt = L + Me - Ze - Rt, Tt = L + At - Ze, _e = ve(u ? je(Pe, jt) : Pe, L, u ? re(J, Tt) : J);
|
|
692
|
+
c[d] = _e, D[d] = _e - L;
|
|
693
693
|
}
|
|
694
694
|
if (l) {
|
|
695
|
-
var et,
|
|
696
|
-
|
|
695
|
+
var et, zt = d === "x" ? R : j, Nt = d === "x" ? N : M, Z = c[g], Be = g === "y" ? "height" : "width", tt = Z + v[zt], rt = Z - v[Nt], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? or(ot, Z, it) : ve(u ? ot : tt, Z, u ? it : rt);
|
|
696
|
+
c[g] = at, D[g] = at - Z;
|
|
697
697
|
}
|
|
698
698
|
t.modifiersData[n] = D;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const zr = {
|
|
702
702
|
name: "preventOverflow",
|
|
703
703
|
enabled: !0,
|
|
704
704
|
phase: "main",
|
|
705
|
-
fn:
|
|
705
|
+
fn: Tr,
|
|
706
706
|
requiresIfExists: ["offset"]
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function Nr(e) {
|
|
709
709
|
return {
|
|
710
710
|
scrollLeft: e.scrollLeft,
|
|
711
711
|
scrollTop: e.scrollTop
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return e ===
|
|
714
|
+
function Mr(e) {
|
|
715
|
+
return e === I(e) || !z(e) ? Ge(e) : Nr(e);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Ir(e) {
|
|
718
718
|
var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
|
|
719
719
|
return r !== 1 || n !== 1;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Lr(e, t, r) {
|
|
722
722
|
r === void 0 && (r = !1);
|
|
723
|
-
var n =
|
|
723
|
+
var n = z(t), o = z(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
|
|
724
724
|
scrollLeft: 0,
|
|
725
725
|
scrollTop: 0
|
|
726
726
|
}, s = {
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0
|
|
729
729
|
};
|
|
730
|
-
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l =
|
|
730
|
+
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = Mr(t)), z(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Je(i))), {
|
|
731
731
|
x: a.left + l.scrollLeft - s.x,
|
|
732
732
|
y: a.top + l.scrollTop - s.y,
|
|
733
733
|
width: a.width,
|
|
734
734
|
height: a.height
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Vr(e) {
|
|
738
738
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
739
|
e.forEach(function(i) {
|
|
740
740
|
t.set(i.name, i);
|
|
@@ -753,15 +753,15 @@ function Ir(e) {
|
|
|
753
753
|
r.has(i.name) || o(i);
|
|
754
754
|
}), n;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var t =
|
|
756
|
+
function qr(e) {
|
|
757
|
+
var t = Vr(e);
|
|
758
758
|
return qe.reduce(function(r, n) {
|
|
759
759
|
return r.concat(t.filter(function(o) {
|
|
760
760
|
return o.phase === n;
|
|
761
761
|
}));
|
|
762
762
|
}, []);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Fr(e) {
|
|
765
765
|
var t;
|
|
766
766
|
return function() {
|
|
767
767
|
return t || (t = new Promise(function(r) {
|
|
@@ -778,8 +778,8 @@ function X(e) {
|
|
|
778
778
|
return o.replace(/%s/, i);
|
|
779
779
|
}, e);
|
|
780
780
|
}
|
|
781
|
-
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
782
|
-
function
|
|
781
|
+
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
782
|
+
function Hr(e) {
|
|
783
783
|
e.forEach(function(t) {
|
|
784
784
|
[].concat(Object.keys(t), vt).filter(function(r, n, o) {
|
|
785
785
|
return o.indexOf(r) === n;
|
|
@@ -817,12 +817,12 @@ function qr(e) {
|
|
|
817
817
|
t.requires && t.requires.forEach(function(n) {
|
|
818
818
|
e.find(function(o) {
|
|
819
819
|
return o.name === n;
|
|
820
|
-
}) == null && console.error(X(
|
|
820
|
+
}) == null && console.error(X(Wr, String(t.name), n, n));
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Ur(e, t) {
|
|
826
826
|
var r = /* @__PURE__ */ new Set();
|
|
827
827
|
return e.filter(function(n) {
|
|
828
828
|
var o = t(n);
|
|
@@ -830,7 +830,7 @@ function Fr(e, t) {
|
|
|
830
830
|
return r.add(o), !0;
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Xr(e) {
|
|
834
834
|
var t = e.reduce(function(r, n) {
|
|
835
835
|
var o = r[n.name];
|
|
836
836
|
return r[n.name] = o ? Object.assign({}, o, n, {
|
|
@@ -842,7 +842,7 @@ function Wr(e) {
|
|
|
842
842
|
return t[r];
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",
|
|
845
|
+
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Yr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
|
|
846
846
|
placement: "bottom",
|
|
847
847
|
modifiers: [],
|
|
848
848
|
strategy: "absolute"
|
|
@@ -854,7 +854,7 @@ function gt() {
|
|
|
854
854
|
return !(n && typeof n.getBoundingClientRect == "function");
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Kr(e) {
|
|
858
858
|
e === void 0 && (e = {});
|
|
859
859
|
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? mt : o;
|
|
860
860
|
return function(l, s, f) {
|
|
@@ -875,25 +875,25 @@ function Ur(e) {
|
|
|
875
875
|
setOptions: function(w) {
|
|
876
876
|
var C = typeof w == "function" ? w(p.options) : w;
|
|
877
877
|
m(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
|
|
878
|
-
reference: ne(l) ?
|
|
879
|
-
popper:
|
|
878
|
+
reference: ne(l) ? he(l) : l.contextElement ? he(l.contextElement) : [],
|
|
879
|
+
popper: he(s)
|
|
880
880
|
};
|
|
881
|
-
var $ =
|
|
881
|
+
var $ = qr(Xr([].concat(n, p.options.modifiers)));
|
|
882
882
|
if (p.orderedModifiers = $.filter(function(b) {
|
|
883
883
|
return b.enabled;
|
|
884
884
|
}), process.env.NODE_ENV !== "production") {
|
|
885
|
-
var
|
|
885
|
+
var d = Ur([].concat($, p.options.modifiers), function(b) {
|
|
886
886
|
var D = b.name;
|
|
887
887
|
return D;
|
|
888
888
|
});
|
|
889
|
-
if (
|
|
889
|
+
if (Hr(d), V(p.options.placement) === Te) {
|
|
890
890
|
var g = p.orderedModifiers.find(function(b) {
|
|
891
891
|
var D = b.name;
|
|
892
892
|
return D === "flip";
|
|
893
893
|
});
|
|
894
894
|
g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
895
895
|
}
|
|
896
|
-
var
|
|
896
|
+
var c = q(s), x = c.marginTop, E = c.marginRight, S = c.marginBottom, k = c.marginLeft;
|
|
897
897
|
[x, E, S, k].some(function(b) {
|
|
898
898
|
return parseFloat(b);
|
|
899
899
|
}) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
@@ -908,21 +908,21 @@ function Ur(e) {
|
|
|
908
908
|
return;
|
|
909
909
|
}
|
|
910
910
|
p.rects = {
|
|
911
|
-
reference:
|
|
911
|
+
reference: Lr(C, $e($), p.options.strategy === "fixed"),
|
|
912
912
|
popper: Ye($)
|
|
913
913
|
}, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
|
|
914
914
|
return p.modifiersData[b.name] = Object.assign({}, b.data);
|
|
915
915
|
});
|
|
916
|
-
for (var
|
|
917
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
918
|
-
console.error(
|
|
916
|
+
for (var d = 0, g = 0; g < p.orderedModifiers.length; g++) {
|
|
917
|
+
if (process.env.NODE_ENV !== "production" && (d += 1, d > 100)) {
|
|
918
|
+
console.error(Yr);
|
|
919
919
|
break;
|
|
920
920
|
}
|
|
921
921
|
if (p.reset === !0) {
|
|
922
922
|
p.reset = !1, g = -1;
|
|
923
923
|
continue;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var c = p.orderedModifiers[g], x = c.fn, E = c.options, S = E === void 0 ? {} : E, k = c.name;
|
|
926
926
|
typeof x == "function" && (p = x({
|
|
927
927
|
state: p,
|
|
928
928
|
options: S,
|
|
@@ -932,7 +932,7 @@ function Ur(e) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
|
-
update:
|
|
935
|
+
update: Fr(function() {
|
|
936
936
|
return new Promise(function(v) {
|
|
937
937
|
u.forceUpdate(), v(p);
|
|
938
938
|
});
|
|
@@ -948,16 +948,16 @@ function Ur(e) {
|
|
|
948
948
|
});
|
|
949
949
|
function O() {
|
|
950
950
|
p.orderedModifiers.forEach(function(v) {
|
|
951
|
-
var w = v.name, C = v.options, $ = C === void 0 ? {} : C,
|
|
952
|
-
if (typeof
|
|
953
|
-
var g =
|
|
951
|
+
var w = v.name, C = v.options, $ = C === void 0 ? {} : C, d = v.effect;
|
|
952
|
+
if (typeof d == "function") {
|
|
953
|
+
var g = d({
|
|
954
954
|
state: p,
|
|
955
955
|
name: w,
|
|
956
956
|
instance: u,
|
|
957
957
|
options: $
|
|
958
|
-
}),
|
|
958
|
+
}), c = function() {
|
|
959
959
|
};
|
|
960
|
-
h.push(g ||
|
|
960
|
+
h.push(g || c);
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
@@ -969,10 +969,10 @@ function Ur(e) {
|
|
|
969
969
|
return u;
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
var
|
|
973
|
-
defaultModifiers:
|
|
972
|
+
var Gr = [vr, Rr, dr, tr, Dr, Pr, zr, lr, Sr], Jr = /* @__PURE__ */ Kr({
|
|
973
|
+
defaultModifiers: Gr
|
|
974
974
|
});
|
|
975
|
-
const
|
|
975
|
+
const Qr = {
|
|
976
976
|
props: {
|
|
977
977
|
componentPrefix: String,
|
|
978
978
|
size: String,
|
|
@@ -983,15 +983,13 @@ const Gr = {
|
|
|
983
983
|
return this.sizePrefix || this.componentPrefix;
|
|
984
984
|
},
|
|
985
985
|
hasSizeablePrefix() {
|
|
986
|
-
return this.size
|
|
987
|
-
new RegExp(`^${this.sizeableClassPrefix}`)
|
|
988
|
-
);
|
|
986
|
+
return this.size === void 0 ? !1 : !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
|
|
989
987
|
},
|
|
990
988
|
sizeableClass() {
|
|
991
989
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
992
990
|
}
|
|
993
991
|
}
|
|
994
|
-
},
|
|
992
|
+
}, Zr = {
|
|
995
993
|
props: {
|
|
996
994
|
componentPrefix: String,
|
|
997
995
|
variant: String,
|
|
@@ -1002,20 +1000,14 @@ const Gr = {
|
|
|
1002
1000
|
return this.variantPrefix || this.componentPrefix;
|
|
1003
1001
|
},
|
|
1004
1002
|
hasVariantPrefix() {
|
|
1005
|
-
return this.variant
|
|
1006
|
-
new RegExp(`^${this.variantClassPrefix}`)
|
|
1007
|
-
);
|
|
1003
|
+
return this.variant === void 0 ? !1 : !!this.variant.match(new RegExp(`^${this.variantClassPrefix}`));
|
|
1008
1004
|
},
|
|
1009
1005
|
variantClass() {
|
|
1010
1006
|
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1011
1007
|
}
|
|
1012
1008
|
}
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
mixins: [
|
|
1016
|
-
Gr,
|
|
1017
|
-
Jr
|
|
1018
|
-
],
|
|
1009
|
+
}, _r = Mt({
|
|
1010
|
+
mixins: [Qr, Zr],
|
|
1019
1011
|
props: {
|
|
1020
1012
|
active: Boolean,
|
|
1021
1013
|
block: Boolean,
|
|
@@ -1034,14 +1026,7 @@ const Gr = {
|
|
|
1034
1026
|
},
|
|
1035
1027
|
computed: {
|
|
1036
1028
|
classes() {
|
|
1037
|
-
return [
|
|
1038
|
-
"btn",
|
|
1039
|
-
this.variantClass,
|
|
1040
|
-
this.sizeableClass,
|
|
1041
|
-
this.active && "active",
|
|
1042
|
-
this.block && "btn-block",
|
|
1043
|
-
this.disabled && "disabled"
|
|
1044
|
-
];
|
|
1029
|
+
return ["btn", this.variantClass, this.sizeableClass, this.active && "active", this.block && "btn-block", this.disabled && "disabled"];
|
|
1045
1030
|
},
|
|
1046
1031
|
component() {
|
|
1047
1032
|
return this.tag ? this.tag : this.$attrs.href ? "a" : "button";
|
|
@@ -1050,27 +1035,23 @@ const Gr = {
|
|
|
1050
1035
|
return (this.variantPrefix || this.componentPrefix) + (this.outline ? "-outline" : "");
|
|
1051
1036
|
}
|
|
1052
1037
|
}
|
|
1053
|
-
},
|
|
1038
|
+
}), en = (e, t) => {
|
|
1054
1039
|
const r = e.__vccOpts || e;
|
|
1055
1040
|
for (const [n, o] of t)
|
|
1056
1041
|
r[n] = o;
|
|
1057
1042
|
return r;
|
|
1058
1043
|
};
|
|
1059
|
-
function
|
|
1060
|
-
return W(), ee(He(
|
|
1061
|
-
disabled:
|
|
1062
|
-
class:
|
|
1044
|
+
function tn(e, t, r, n, o, i) {
|
|
1045
|
+
return W(), ee(He(e.component), me(e.$attrs, {
|
|
1046
|
+
disabled: e.disabled,
|
|
1047
|
+
class: e.classes,
|
|
1063
1048
|
role: "button"
|
|
1064
1049
|
}), {
|
|
1065
|
-
default: B(() => [
|
|
1066
|
-
P(e.$slots, "default", {}, () => [
|
|
1067
|
-
be(ye(r.label), 1)
|
|
1068
|
-
])
|
|
1069
|
-
]),
|
|
1050
|
+
default: B(() => [P(e.$slots, "default", {}, () => [ge(be(e.label), 1)])]),
|
|
1070
1051
|
_: 3
|
|
1071
1052
|
}, 16, ["disabled", "class"]);
|
|
1072
1053
|
}
|
|
1073
|
-
const
|
|
1054
|
+
const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
|
|
1074
1055
|
props: {
|
|
1075
1056
|
componentPrefix: String,
|
|
1076
1057
|
size: String,
|
|
@@ -1087,14 +1068,14 @@ const Zr = /* @__PURE__ */ fe(Kr, [["render", Qr]]), _r = {
|
|
|
1087
1068
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1088
1069
|
}
|
|
1089
1070
|
}
|
|
1090
|
-
},
|
|
1071
|
+
}, on = (e, t) => {
|
|
1091
1072
|
const r = e.__vccOpts || e;
|
|
1092
1073
|
for (const [n, o] of t)
|
|
1093
1074
|
r[n] = o;
|
|
1094
1075
|
return r;
|
|
1095
|
-
},
|
|
1076
|
+
}, an = {
|
|
1096
1077
|
name: "BtnGroup",
|
|
1097
|
-
mixins: [
|
|
1078
|
+
mixins: [nn],
|
|
1098
1079
|
props: {
|
|
1099
1080
|
sizePrefix: {
|
|
1100
1081
|
type: String,
|
|
@@ -1115,30 +1096,35 @@ const Zr = /* @__PURE__ */ fe(Kr, [["render", Qr]]), _r = {
|
|
|
1115
1096
|
};
|
|
1116
1097
|
}
|
|
1117
1098
|
}
|
|
1118
|
-
},
|
|
1119
|
-
function
|
|
1099
|
+
}, sn = ["data-toggle"];
|
|
1100
|
+
function ln(e, t, r, n, o, i) {
|
|
1120
1101
|
return W(), Ue("div", {
|
|
1121
1102
|
class: F(i.classes),
|
|
1122
1103
|
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
1104
|
role: "group"
|
|
1124
|
-
}, [P(e.$slots, "default")], 10,
|
|
1105
|
+
}, [P(e.$slots, "default")], 10, sn);
|
|
1125
1106
|
}
|
|
1126
|
-
const
|
|
1107
|
+
const pn = /* @__PURE__ */ on(an, [["render", ln]]);
|
|
1127
1108
|
function Ve(e, t) {
|
|
1128
1109
|
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1129
1110
|
}
|
|
1130
|
-
function
|
|
1111
|
+
function Bt(e) {
|
|
1131
1112
|
for (const t of e) {
|
|
1132
|
-
t.type ===
|
|
1113
|
+
t.type === Lt && Bt(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1133
1114
|
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1134
1115
|
typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1135
1116
|
}
|
|
1136
1117
|
return e;
|
|
1137
1118
|
}
|
|
1138
|
-
const
|
|
1119
|
+
const fn = (e, t) => It("div", {}, Bt(t.slots.default())), un = fn, Ce = (e, t) => {
|
|
1120
|
+
const r = e.__vccOpts || e;
|
|
1121
|
+
for (const [n, o] of t)
|
|
1122
|
+
r[n] = o;
|
|
1123
|
+
return r;
|
|
1124
|
+
}, dn = {
|
|
1139
1125
|
name: "DropdownMenu",
|
|
1140
1126
|
components: {
|
|
1141
|
-
DropdownMenuItems:
|
|
1127
|
+
DropdownMenuItems: un
|
|
1142
1128
|
},
|
|
1143
1129
|
props: {
|
|
1144
1130
|
align: {
|
|
@@ -1150,8 +1136,8 @@ const an = (e, t) => Tt("div", {}, St(t.slots.default())), sn = an, ln = {
|
|
|
1150
1136
|
},
|
|
1151
1137
|
show: Boolean
|
|
1152
1138
|
}
|
|
1153
|
-
},
|
|
1154
|
-
function
|
|
1139
|
+
}, cn = ["aria-labelledby"];
|
|
1140
|
+
function vn(e, t, r, n, o, i) {
|
|
1155
1141
|
const a = te("dropdown-menu-items");
|
|
1156
1142
|
return W(), Ue("div", {
|
|
1157
1143
|
class: F(["dropdown-menu", {
|
|
@@ -1161,7 +1147,7 @@ function fn(e, t, r, n, o, i) {
|
|
|
1161
1147
|
}]),
|
|
1162
1148
|
"aria-labelledby": e.$attrs.id
|
|
1163
1149
|
}, [
|
|
1164
|
-
|
|
1150
|
+
ye(a, null, {
|
|
1165
1151
|
default: B(() => [
|
|
1166
1152
|
P(e.$slots, "default", {
|
|
1167
1153
|
onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
|
|
@@ -1169,9 +1155,9 @@ function fn(e, t, r, n, o, i) {
|
|
|
1169
1155
|
]),
|
|
1170
1156
|
_: 3
|
|
1171
1157
|
})
|
|
1172
|
-
], 10,
|
|
1158
|
+
], 10, cn);
|
|
1173
1159
|
}
|
|
1174
|
-
const
|
|
1160
|
+
const hn = /* @__PURE__ */ Ce(dn, [["render", vn]]), mn = {
|
|
1175
1161
|
props: {
|
|
1176
1162
|
expanded: {
|
|
1177
1163
|
type: Boolean,
|
|
@@ -1187,8 +1173,8 @@ const un = /* @__PURE__ */ fe(ln, [["render", fn]]), cn = {
|
|
|
1187
1173
|
}
|
|
1188
1174
|
}
|
|
1189
1175
|
};
|
|
1190
|
-
function
|
|
1191
|
-
return W(), ee(He(i.is),
|
|
1176
|
+
function gn(e, t, r, n, o, i) {
|
|
1177
|
+
return W(), ee(He(i.is), me({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
|
|
1192
1178
|
"aria-haspopup": "true",
|
|
1193
1179
|
"aria-expanded": r.expanded,
|
|
1194
1180
|
type: i.is === "button" ? "button" : void 0
|
|
@@ -1199,13 +1185,13 @@ function dn(e, t, r, n, o, i) {
|
|
|
1199
1185
|
_: 3
|
|
1200
1186
|
}, 16, ["id", "aria-expanded", "type"]);
|
|
1201
1187
|
}
|
|
1202
|
-
const
|
|
1188
|
+
const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
1203
1189
|
components: {
|
|
1204
|
-
BtnDropdownAction:
|
|
1205
|
-
BtnGroup:
|
|
1206
|
-
DropdownMenu:
|
|
1190
|
+
BtnDropdownAction: bn,
|
|
1191
|
+
BtnGroup: pn,
|
|
1192
|
+
DropdownMenu: hn
|
|
1207
1193
|
},
|
|
1208
|
-
extends:
|
|
1194
|
+
extends: rn,
|
|
1209
1195
|
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1210
1196
|
props: {
|
|
1211
1197
|
align: {
|
|
@@ -1363,7 +1349,7 @@ const vn = /* @__PURE__ */ fe(cn, [["render", dn]]), kt = {
|
|
|
1363
1349
|
show() {
|
|
1364
1350
|
this.expanded = !0;
|
|
1365
1351
|
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1366
|
-
!this.nav && !this.popper ? this.popper =
|
|
1352
|
+
!this.nav && !this.popper ? this.popper = Jr(e, this.$refs.menu.$el, {
|
|
1367
1353
|
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1368
1354
|
onFirstUpdate: () => {
|
|
1369
1355
|
this.triggerAnimation = this.animated;
|
|
@@ -1380,37 +1366,45 @@ const vn = /* @__PURE__ */ fe(cn, [["render", dn]]), kt = {
|
|
|
1380
1366
|
this.expanded = !1;
|
|
1381
1367
|
},
|
|
1382
1368
|
onBlur(e) {
|
|
1383
|
-
this.$el.contains(e.relatedTarget) || this.hide();
|
|
1369
|
+
(!this.$refs.menu.$el.contains(e.relatedTarget) || !this.$el.contains(e.relatedTarget)) && this.hide();
|
|
1370
|
+
},
|
|
1371
|
+
onClickDocument(e) {
|
|
1372
|
+
this.$el.contains(e.target) || this.hide();
|
|
1384
1373
|
},
|
|
1385
1374
|
onClickItem(e) {
|
|
1386
1375
|
this.isFocusable(e.target) || this.hide();
|
|
1387
1376
|
},
|
|
1388
1377
|
onClickToggle(e) {
|
|
1389
|
-
this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1378
|
+
e.target.dispatchEvent(new Event("focus", e)), this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1379
|
+
},
|
|
1380
|
+
onKeydown(e) {
|
|
1381
|
+
e.target.parentElement.lastElementChild === e.target && this.hide();
|
|
1390
1382
|
}
|
|
1391
1383
|
},
|
|
1392
1384
|
watch: {
|
|
1393
1385
|
expanded(e) {
|
|
1394
1386
|
this.$nextTick(() => {
|
|
1395
1387
|
this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
|
|
1388
|
+
}), setTimeout(() => {
|
|
1389
|
+
e ? document.addEventListener("click", this.onClickDocument) : document.removeEventListener("click", this.onClickDocument);
|
|
1396
1390
|
});
|
|
1397
1391
|
}
|
|
1398
1392
|
}
|
|
1399
|
-
},
|
|
1393
|
+
}, yn = {
|
|
1400
1394
|
mixins: [
|
|
1401
|
-
|
|
1395
|
+
Dt
|
|
1402
1396
|
],
|
|
1403
1397
|
emits: [
|
|
1404
1398
|
"click"
|
|
1405
1399
|
]
|
|
1406
|
-
},
|
|
1407
|
-
function
|
|
1400
|
+
}, wn = ["id", "aria-expanded"];
|
|
1401
|
+
function On(e, t, r, n, o, i) {
|
|
1408
1402
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1409
1403
|
return W(), ee(s, {
|
|
1410
1404
|
class: F([e.classes, "btn-dropdown-split"])
|
|
1411
1405
|
}, {
|
|
1412
1406
|
default: B(() => [
|
|
1413
|
-
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(
|
|
1407
|
+
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(me({ key: 0 }, e.scope)), () => [
|
|
1414
1408
|
e.dropleft ? de("", !0) : (W(), ee(a, {
|
|
1415
1409
|
key: 0,
|
|
1416
1410
|
id: e.$attrs.id,
|
|
@@ -1424,13 +1418,13 @@ function gn(e, t, r, n, o, i) {
|
|
|
1424
1418
|
default: B(() => [
|
|
1425
1419
|
P(e.$slots, "icon"),
|
|
1426
1420
|
P(e.$slots, "label", {}, () => [
|
|
1427
|
-
be(
|
|
1421
|
+
ge(be(e.label), 1)
|
|
1428
1422
|
])
|
|
1429
1423
|
]),
|
|
1430
1424
|
_: 3
|
|
1431
1425
|
}, 8, ["id", "expanded", "href", "to", "class"]))
|
|
1432
1426
|
]),
|
|
1433
|
-
|
|
1427
|
+
ye(s, { ref: "split" }, {
|
|
1434
1428
|
default: B(() => [
|
|
1435
1429
|
P(e.$slots, "split", ie(Re(e.scope)), () => [
|
|
1436
1430
|
e.split ? (W(), Ue("button", {
|
|
@@ -1442,26 +1436,29 @@ function gn(e, t, r, n, o, i) {
|
|
|
1442
1436
|
class: F(e.toggleClasses),
|
|
1443
1437
|
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1444
1438
|
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1445
|
-
}, null, 42,
|
|
1439
|
+
}, null, 42, wn)) : de("", !0)
|
|
1446
1440
|
]),
|
|
1447
|
-
|
|
1441
|
+
ye(l, {
|
|
1448
1442
|
id: e.$attrs.id,
|
|
1449
1443
|
ref: "menu",
|
|
1450
1444
|
align: e.align,
|
|
1451
1445
|
show: e.expanded,
|
|
1452
1446
|
class: F({ animated: e.triggerAnimation }),
|
|
1447
|
+
onBlur: e.onBlur,
|
|
1453
1448
|
onClick: e.onClickItem,
|
|
1454
|
-
|
|
1449
|
+
onKeydown: bt(e.onKeydown, ["tab"]),
|
|
1450
|
+
onMousedown: t[3] || (t[3] = yt(() => {
|
|
1451
|
+
}, ["prevent"]))
|
|
1455
1452
|
}, {
|
|
1456
1453
|
default: B(() => [
|
|
1457
1454
|
P(e.$slots, "default")
|
|
1458
1455
|
]),
|
|
1459
1456
|
_: 3
|
|
1460
|
-
}, 8, ["id", "align", "show", "class", "onClick", "
|
|
1457
|
+
}, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
|
|
1461
1458
|
]),
|
|
1462
1459
|
_: 3
|
|
1463
1460
|
}, 512),
|
|
1464
|
-
e.dropleft ? P(e.$slots, "button", ie(
|
|
1461
|
+
e.dropleft ? P(e.$slots, "button", ie(me({ key: 1 }, e.scope)), () => [
|
|
1465
1462
|
e.dropleft ? (W(), ee(a, {
|
|
1466
1463
|
key: 0,
|
|
1467
1464
|
id: e.$attrs.id,
|
|
@@ -1470,12 +1467,12 @@ function gn(e, t, r, n, o, i) {
|
|
|
1470
1467
|
href: e.href,
|
|
1471
1468
|
to: e.to,
|
|
1472
1469
|
class: F(e.actionClasses),
|
|
1473
|
-
onClick: t[
|
|
1470
|
+
onClick: t[4] || (t[4] = (f) => e.$emit("click", f))
|
|
1474
1471
|
}, {
|
|
1475
1472
|
default: B(() => [
|
|
1476
1473
|
P(e.$slots, "icon"),
|
|
1477
1474
|
P(e.$slots, "label", {}, () => [
|
|
1478
|
-
be(
|
|
1475
|
+
ge(be(e.label), 1)
|
|
1479
1476
|
])
|
|
1480
1477
|
]),
|
|
1481
1478
|
_: 3
|
|
@@ -1485,25 +1482,25 @@ function gn(e, t, r, n, o, i) {
|
|
|
1485
1482
|
_: 3
|
|
1486
1483
|
}, 8, ["class"]);
|
|
1487
1484
|
}
|
|
1488
|
-
const
|
|
1485
|
+
const xn = /* @__PURE__ */ Ce(yn, [["render", On]]), $n = {
|
|
1489
1486
|
mixins: [
|
|
1490
|
-
|
|
1487
|
+
Dt
|
|
1491
1488
|
]
|
|
1492
1489
|
};
|
|
1493
|
-
function
|
|
1490
|
+
function Cn(e, t, r, n, o, i) {
|
|
1494
1491
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1495
1492
|
return W(), ee(s, {
|
|
1496
1493
|
class: F(e.classes)
|
|
1497
1494
|
}, {
|
|
1498
1495
|
default: B(() => [
|
|
1499
1496
|
P(e.$slots, "button", ie(Re(e.scope)), () => [
|
|
1500
|
-
|
|
1497
|
+
ye(a, {
|
|
1501
1498
|
id: e.$attrs.id,
|
|
1502
1499
|
ref: "button",
|
|
1503
1500
|
expanded: e.expanded,
|
|
1504
1501
|
href: e.href,
|
|
1505
1502
|
to: e.to,
|
|
1506
|
-
style:
|
|
1503
|
+
style: Vt(e.toggleStyle),
|
|
1507
1504
|
class: F(e.toggleClasses),
|
|
1508
1505
|
onBlur: e.onBlur,
|
|
1509
1506
|
onClick: e.onClickToggle
|
|
@@ -1511,36 +1508,39 @@ function wn(e, t, r, n, o, i) {
|
|
|
1511
1508
|
default: B(() => [
|
|
1512
1509
|
P(e.$slots, "icon"),
|
|
1513
1510
|
P(e.$slots, "label", {}, () => [
|
|
1514
|
-
be(
|
|
1511
|
+
ge(be(e.label), 1)
|
|
1515
1512
|
])
|
|
1516
1513
|
]),
|
|
1517
1514
|
_: 3
|
|
1518
1515
|
}, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
|
|
1519
1516
|
]),
|
|
1520
|
-
|
|
1517
|
+
ye(l, {
|
|
1521
1518
|
id: e.$attrs.id,
|
|
1522
1519
|
ref: "menu",
|
|
1523
1520
|
align: e.align,
|
|
1524
1521
|
show: e.expanded,
|
|
1525
1522
|
class: F({ animated: e.triggerAnimation }),
|
|
1526
1523
|
onBlur: e.onBlur,
|
|
1527
|
-
onClick: e.onClickItem
|
|
1524
|
+
onClick: e.onClickItem,
|
|
1525
|
+
onKeydown: bt(e.onKeydown, ["tab"]),
|
|
1526
|
+
onMousedown: t[0] || (t[0] = yt(() => {
|
|
1527
|
+
}, ["prevent"]))
|
|
1528
1528
|
}, {
|
|
1529
1529
|
default: B(() => [
|
|
1530
1530
|
P(e.$slots, "default")
|
|
1531
1531
|
]),
|
|
1532
1532
|
_: 3
|
|
1533
|
-
}, 8, ["id", "align", "show", "class", "onBlur", "onClick"])
|
|
1533
|
+
}, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
|
|
1534
1534
|
]),
|
|
1535
1535
|
_: 3
|
|
1536
1536
|
}, 8, ["class"]);
|
|
1537
1537
|
}
|
|
1538
|
-
const
|
|
1539
|
-
const
|
|
1538
|
+
const Pn = /* @__PURE__ */ Ce($n, [["render", Cn]]);
|
|
1539
|
+
const En = {
|
|
1540
1540
|
name: "BtnDropdown",
|
|
1541
1541
|
components: {
|
|
1542
|
-
BtnDropdownSplit:
|
|
1543
|
-
BtnDropdownSingle:
|
|
1542
|
+
BtnDropdownSplit: xn,
|
|
1543
|
+
BtnDropdownSingle: Pn
|
|
1544
1544
|
},
|
|
1545
1545
|
inheritAttrs: !1,
|
|
1546
1546
|
emits: [
|
|
@@ -1552,15 +1552,15 @@ const xn = {
|
|
|
1552
1552
|
"toggle"
|
|
1553
1553
|
]
|
|
1554
1554
|
};
|
|
1555
|
-
function
|
|
1556
|
-
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"),
|
|
1555
|
+
function Sn(e, t, r, n, o, i) {
|
|
1556
|
+
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), me({ class: "btn-dropdown" }, e.$attrs, {
|
|
1557
1557
|
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1558
1558
|
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
1559
1559
|
onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
|
|
1560
1560
|
onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
|
|
1561
1561
|
onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
|
|
1562
1562
|
onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
|
|
1563
|
-
}),
|
|
1563
|
+
}), qt({
|
|
1564
1564
|
icon: B(() => [
|
|
1565
1565
|
P(e.$slots, "icon")
|
|
1566
1566
|
]),
|
|
@@ -1579,14 +1579,14 @@ function $n(e, t, r, n, o, i) {
|
|
|
1579
1579
|
name: "label",
|
|
1580
1580
|
fn: B(() => [
|
|
1581
1581
|
P(e.$slots, "label", {}, () => [
|
|
1582
|
-
be(
|
|
1582
|
+
ge(be(e.$attrs.label), 1)
|
|
1583
1583
|
])
|
|
1584
1584
|
]),
|
|
1585
1585
|
key: "0"
|
|
1586
1586
|
} : void 0
|
|
1587
1587
|
]), 1040);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Bn = /* @__PURE__ */ Ce(En, [["render", Sn]]);
|
|
1590
1590
|
export {
|
|
1591
|
-
|
|
1591
|
+
Bn as BtnDropdown
|
|
1592
1592
|
};
|