@vue-interface/btn-dropdown 2.0.0-beta.0 → 2.0.0-beta.1
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 +115 -103
- package/dist/btn-dropdown.umd.js +2 -2
- package/package.json +8 -7
- package/src/BtnDropdown.vue +34 -25
- package/src/BtnDropdownAction.vue +13 -13
- package/src/BtnDropdownSingle.vue +15 -15
- package/src/BtnDropdownSplit.vue +20 -16
- package/src/DropdownHandler.js +10 -4
package/dist/btn-dropdown.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as
|
|
2
|
-
var R = "top", I = "bottom", N = "right", j = "left", ze = "auto", $e = [R, I, N, j], ae = "start",
|
|
3
|
-
return e.concat([t + "-" + ae, t + "-" +
|
|
4
|
-
}, []),
|
|
5
|
-
return e.concat([t, t + "-" + ae, t + "-" +
|
|
6
|
-
}, []), Ft = "beforeRead", Wt = "read", Ht = "afterRead",
|
|
1
|
+
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Ue, normalizeClass as F, h as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as Mt, createSlots as Lt } from "vue";
|
|
2
|
+
var R = "top", I = "bottom", N = "right", j = "left", ze = "auto", $e = [R, I, N, j], ae = "start", Oe = "end", Vt = "clippingParents", wt = "viewport", ve = "popper", qt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
|
|
3
|
+
return e.concat([t + "-" + ae, t + "-" + Oe]);
|
|
4
|
+
}, []), Ot = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
|
|
5
|
+
return e.concat([t, t + "-" + ae, t + "-" + Oe]);
|
|
6
|
+
}, []), Ft = "beforeRead", Wt = "read", Ht = "afterRead", Ut = "beforeMain", Xt = "main", Yt = "afterMain", Gt = "beforeWrite", Jt = "write", Kt = "afterWrite", qe = [Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt, Kt];
|
|
7
7
|
function H(e) {
|
|
8
8
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
9
|
}
|
|
@@ -24,7 +24,7 @@ function T(e) {
|
|
|
24
24
|
var t = M(e).HTMLElement;
|
|
25
25
|
return e instanceof t || e instanceof HTMLElement;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Xe(e) {
|
|
28
28
|
if (typeof ShadowRoot > "u")
|
|
29
29
|
return !1;
|
|
30
30
|
var t = M(e).ShadowRoot;
|
|
@@ -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
91
|
t && T(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) ? M(e) : window, l = a.visualViewport, s = !
|
|
92
|
+
var a = ne(e) ? M(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,
|
|
@@ -101,7 +101,7 @@ function le(e, t, r) {
|
|
|
101
101
|
y: p
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ye(e) {
|
|
105
105
|
var t = le(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
106
106
|
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
107
107
|
x: e.offsetLeft,
|
|
@@ -114,7 +114,7 @@ function $t(e, t) {
|
|
|
114
114
|
var r = t.getRootNode && t.getRootNode();
|
|
115
115
|
if (e.contains(t))
|
|
116
116
|
return !0;
|
|
117
|
-
if (r &&
|
|
117
|
+
if (r && Xe(r)) {
|
|
118
118
|
var n = t;
|
|
119
119
|
do {
|
|
120
120
|
if (n && e.isSameNode(n))
|
|
@@ -130,11 +130,11 @@ function q(e) {
|
|
|
130
130
|
function er(e) {
|
|
131
131
|
return ["table", "td", "th"].indexOf(H(e)) >= 0;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Y(e) {
|
|
134
134
|
return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
135
135
|
}
|
|
136
136
|
function Te(e) {
|
|
137
|
-
return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (
|
|
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
140
|
return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
|
|
@@ -147,7 +147,7 @@ function tr(e) {
|
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
149
149
|
var o = Te(e);
|
|
150
|
-
for (
|
|
150
|
+
for (Xe(o) && (o = o.host); T(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;
|
|
@@ -194,8 +194,8 @@ var nr = function(t, r) {
|
|
|
194
194
|
function or(e) {
|
|
195
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 = Ge(l), f = [j, N].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
196
|
if (!(!i || !a)) {
|
|
197
|
-
var h = nr(o.padding, r), y =
|
|
198
|
-
r.modifiersData[n] = (t = {}, t[E] =
|
|
197
|
+
var h = nr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? I : N, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = Ce(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, c = h[u], g = C - y[p] - h[O], d = C / 2 - y[p] / 2 + $, x = he(c, d, g), E = s;
|
|
198
|
+
r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - d, t);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function ir(e) {
|
|
@@ -234,7 +234,7 @@ function lr(e) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
function pt(e) {
|
|
237
|
-
var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y,
|
|
237
|
+
var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y, O = a.y, m = O === void 0 ? 0 : O, v = typeof p == "function" ? p({
|
|
238
238
|
x: u,
|
|
239
239
|
y: m
|
|
240
240
|
}) : {
|
|
@@ -244,13 +244,13 @@ function pt(e) {
|
|
|
244
244
|
u = v.x, m = v.y;
|
|
245
245
|
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, c = R, g = window;
|
|
246
246
|
if (f) {
|
|
247
|
-
var d = Ce(r),
|
|
248
|
-
if (d === M(r) && (d =
|
|
247
|
+
var d = Ce(r), x = "clientHeight", E = "clientWidth";
|
|
248
|
+
if (d === M(r) && (d = Y(r), q(d).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o === N) && i === Oe) {
|
|
249
249
|
c = I;
|
|
250
|
-
var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[
|
|
250
|
+
var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[x];
|
|
251
251
|
m -= S - n.height, m *= s ? 1 : -1;
|
|
252
252
|
}
|
|
253
|
-
if (o === j || (o === R || o === I) && i ===
|
|
253
|
+
if (o === j || (o === R || o === I) && i === Oe) {
|
|
254
254
|
$ = N;
|
|
255
255
|
var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
|
|
256
256
|
u -= k - n.width, u *= s ? 1 : -1;
|
|
@@ -362,13 +362,13 @@ function Je(e) {
|
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
function Ke(e) {
|
|
365
|
-
return le(
|
|
365
|
+
return le(Y(e)).left + Je(e).scrollLeft;
|
|
366
366
|
}
|
|
367
367
|
function hr(e, t) {
|
|
368
|
-
var r = M(e), n =
|
|
368
|
+
var r = M(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 {
|
|
@@ -379,7 +379,7 @@ function hr(e, t) {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
function mr(e) {
|
|
382
|
-
var t, r =
|
|
382
|
+
var t, r = Y(e), n = Je(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 + Ke(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,
|
|
@@ -413,7 +413,7 @@ function gr(e, t) {
|
|
|
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 === wt ? We(hr(e, r)) : ne(t) ? gr(t, r) : We(mr(
|
|
416
|
+
return t === wt ? We(hr(e, r)) : ne(t) ? gr(t, r) : We(mr(Y(e)));
|
|
417
417
|
}
|
|
418
418
|
function br(e) {
|
|
419
419
|
var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
|
|
@@ -468,21 +468,21 @@ function kt(e) {
|
|
|
468
468
|
case ae:
|
|
469
469
|
s[f] = s[f] - (t[p] / 2 - r[p] / 2);
|
|
470
470
|
break;
|
|
471
|
-
case
|
|
471
|
+
case Oe:
|
|
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 xe(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 ? Vt : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary,
|
|
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 ? Vt : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ve : 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, $e)), C = y === ve ? qt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = yr(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = kt({
|
|
481
481
|
reference: d,
|
|
482
482
|
element: $,
|
|
483
483
|
strategy: "absolute",
|
|
484
484
|
placement: o
|
|
485
|
-
}), E = We(Object.assign({}, $,
|
|
485
|
+
}), E = We(Object.assign({}, $, x)), S = y === ve ? E : d, 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,
|
|
@@ -499,44 +499,44 @@ function Oe(e, t) {
|
|
|
499
499
|
}
|
|
500
500
|
function wr(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 ?
|
|
503
|
-
return pe(
|
|
504
|
-
}) : $e, y = h.filter(function(
|
|
505
|
-
return f.indexOf(
|
|
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
|
+
return pe(O) === p;
|
|
504
|
+
}) : $e, y = h.filter(function(O) {
|
|
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
|
-
var u = y.reduce(function(
|
|
509
|
-
return
|
|
508
|
+
var u = y.reduce(function(O, m) {
|
|
509
|
+
return O[m] = xe(e, {
|
|
510
510
|
placement: m,
|
|
511
511
|
boundary: o,
|
|
512
512
|
rootBoundary: i,
|
|
513
513
|
padding: a
|
|
514
|
-
})[V(m)],
|
|
514
|
+
})[V(m)], O;
|
|
515
515
|
}, {});
|
|
516
|
-
return Object.keys(u).sort(function(
|
|
517
|
-
return u[
|
|
516
|
+
return Object.keys(u).sort(function(O, m) {
|
|
517
|
+
return u[O] - u[m];
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Or(e) {
|
|
521
521
|
if (V(e) === ze)
|
|
522
522
|
return [];
|
|
523
523
|
var t = Ae(e);
|
|
524
524
|
return [ft(e), t, ft(t)];
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function xr(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,
|
|
530
|
-
return oe.concat(V(
|
|
531
|
-
placement:
|
|
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)] : Or(v)), c = [v].concat($).reduce(function(oe, U) {
|
|
530
|
+
return oe.concat(V(U) === ze ? wr(t, {
|
|
531
|
+
placement: U,
|
|
532
532
|
boundary: p,
|
|
533
533
|
rootBoundary: h,
|
|
534
534
|
padding: f,
|
|
535
|
-
flipVariations:
|
|
535
|
+
flipVariations: O,
|
|
536
536
|
allowedAutoPlacements: m
|
|
537
|
-
}) :
|
|
538
|
-
}, []), g = t.rects.reference, d = t.rects.popper,
|
|
539
|
-
var b = c[k], D = V(b), A = pe(b) === ae, G = [R, I].indexOf(D) >= 0, J = G ? "width" : "height", z =
|
|
537
|
+
}) : U);
|
|
538
|
+
}, []), g = t.rects.reference, d = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = c[0], k = 0; k < c.length; k++) {
|
|
539
|
+
var b = c[k], D = V(b), A = pe(b) === ae, G = [R, I].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
|
|
540
540
|
placement: b,
|
|
541
541
|
boundary: p,
|
|
542
542
|
rootBoundary: h,
|
|
@@ -551,14 +551,14 @@ function Or(e) {
|
|
|
551
551
|
S = b, E = !1;
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
x.set(b, K);
|
|
555
555
|
}
|
|
556
556
|
if (E)
|
|
557
|
-
for (var Ee =
|
|
557
|
+
for (var Ee = O ? 3 : 1, Ie = function(U) {
|
|
558
558
|
var ce = c.find(function(ke) {
|
|
559
|
-
var Q =
|
|
559
|
+
var Q = x.get(ke);
|
|
560
560
|
if (Q)
|
|
561
|
-
return Q.slice(0,
|
|
561
|
+
return Q.slice(0, U).every(function(Ne) {
|
|
562
562
|
return Ne;
|
|
563
563
|
});
|
|
564
564
|
});
|
|
@@ -576,7 +576,7 @@ const $r = {
|
|
|
576
576
|
name: "flip",
|
|
577
577
|
enabled: !0,
|
|
578
578
|
phase: "main",
|
|
579
|
-
fn:
|
|
579
|
+
fn: xr,
|
|
580
580
|
requiresIfExists: ["offset"],
|
|
581
581
|
data: {
|
|
582
582
|
_skip: !1
|
|
@@ -599,9 +599,9 @@ function dt(e) {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function Cr(e) {
|
|
602
|
-
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a =
|
|
602
|
+
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = xe(t, {
|
|
603
603
|
elementContext: "reference"
|
|
604
|
-
}), l =
|
|
604
|
+
}), l = xe(t, {
|
|
605
605
|
altBoundary: !0
|
|
606
606
|
}), s = ct(a, n), f = ct(l, o, i), p = dt(s), h = dt(f);
|
|
607
607
|
t.modifiersData[r] = {
|
|
@@ -634,7 +634,7 @@ function Er(e, t, r) {
|
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
636
|
function Sr(e) {
|
|
637
|
-
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a =
|
|
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
638
|
return p[h] = Er(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;
|
|
@@ -666,12 +666,12 @@ function Ar(e) {
|
|
|
666
666
|
return e === "x" ? "y" : "x";
|
|
667
667
|
}
|
|
668
668
|
function Rr(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,
|
|
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 = xe(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, c = Ge(w), g = Ar(c), d = t.modifiersData.popperOffsets,
|
|
674
|
+
}), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Ar(c), d = 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,
|
|
@@ -685,14 +685,14 @@ function Rr(e) {
|
|
|
685
685
|
};
|
|
686
686
|
if (!!d) {
|
|
687
687
|
if (i) {
|
|
688
|
-
var A, G = c === "y" ? R : j, J = c === "y" ? I : N, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ie = C === ae ?
|
|
688
|
+
var A, G = c === "y" ? R : j, J = c === "y" ? I : N, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ie = C === ae ? x[z] : E[z], ue = C === ae ? -E[z] : -x[z], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
|
|
689
689
|
width: 0,
|
|
690
690
|
height: 0
|
|
691
|
-
},
|
|
691
|
+
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ne = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ie - Q - ce - k.mainAxis, At = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Rt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, jt = L + Ne - Ze - Rt, zt = L + At - Ze, _e = he(u ? je(Pe, jt) : Pe, L, u ? re(K, zt) : K);
|
|
692
692
|
d[c] = _e, D[c] = _e - L;
|
|
693
693
|
}
|
|
694
694
|
if (l) {
|
|
695
|
-
var et, Tt = c === "x" ? R : j, It = c === "x" ? I : N, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[Tt], rt = Z - v[It], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z -
|
|
695
|
+
var et, Tt = c === "x" ? R : j, It = c === "x" ? I : N, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[Tt], rt = Z - v[It], 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 ? rr(ot, Z, it) : he(u ? ot : tt, Z, u ? it : rt);
|
|
696
696
|
d[g] = at, D[g] = at - Z;
|
|
697
697
|
}
|
|
698
698
|
t.modifiersData[n] = D;
|
|
@@ -720,7 +720,7 @@ function Ir(e) {
|
|
|
720
720
|
}
|
|
721
721
|
function Nr(e, t, r) {
|
|
722
722
|
r === void 0 && (r = !1);
|
|
723
|
-
var n = T(t), o = T(t) && Ir(t), i =
|
|
723
|
+
var n = T(t), o = T(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
|
|
724
724
|
scrollLeft: 0,
|
|
725
725
|
scrollTop: 0
|
|
726
726
|
}, s = {
|
|
@@ -771,7 +771,7 @@ function Vr(e) {
|
|
|
771
771
|
})), t;
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function X(e) {
|
|
775
775
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
776
776
|
r[n - 1] = arguments[n];
|
|
777
777
|
return [].concat(r).reduce(function(o, i) {
|
|
@@ -786,25 +786,25 @@ function Fr(e) {
|
|
|
786
786
|
}).forEach(function(r) {
|
|
787
787
|
switch (r) {
|
|
788
788
|
case "name":
|
|
789
|
-
typeof t.name != "string" && console.error(
|
|
789
|
+
typeof t.name != "string" && console.error(X(_, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
790
790
|
break;
|
|
791
791
|
case "enabled":
|
|
792
|
-
typeof t.enabled != "boolean" && console.error(
|
|
792
|
+
typeof t.enabled != "boolean" && console.error(X(_, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
793
793
|
break;
|
|
794
794
|
case "phase":
|
|
795
|
-
qe.indexOf(t.phase) < 0 && console.error(
|
|
795
|
+
qe.indexOf(t.phase) < 0 && console.error(X(_, t.name, '"phase"', "either " + qe.join(", "), '"' + String(t.phase) + '"'));
|
|
796
796
|
break;
|
|
797
797
|
case "fn":
|
|
798
|
-
typeof t.fn != "function" && console.error(
|
|
798
|
+
typeof t.fn != "function" && console.error(X(_, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
799
799
|
break;
|
|
800
800
|
case "effect":
|
|
801
|
-
t.effect != null && typeof t.effect != "function" && console.error(
|
|
801
|
+
t.effect != null && typeof t.effect != "function" && console.error(X(_, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
802
802
|
break;
|
|
803
803
|
case "requires":
|
|
804
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(
|
|
804
|
+
t.requires != null && !Array.isArray(t.requires) && console.error(X(_, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
805
805
|
break;
|
|
806
806
|
case "requiresIfExists":
|
|
807
|
-
Array.isArray(t.requiresIfExists) || console.error(
|
|
807
|
+
Array.isArray(t.requiresIfExists) || console.error(X(_, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
|
|
808
808
|
break;
|
|
809
809
|
case "options":
|
|
810
810
|
case "data":
|
|
@@ -817,7 +817,7 @@ function Fr(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(
|
|
820
|
+
}) == null && console.error(X(qr, String(t.name), n, n));
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
});
|
|
@@ -842,7 +842,7 @@ function Hr(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.", Ur = "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 Xr(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) {
|
|
@@ -893,12 +893,12 @@ function Yr(e) {
|
|
|
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 d = q(s),
|
|
897
|
-
[
|
|
896
|
+
var d = q(s), x = d.marginTop, E = d.marginRight, S = d.marginBottom, k = d.marginLeft;
|
|
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(" "));
|
|
900
900
|
}
|
|
901
|
-
return
|
|
901
|
+
return O(), u.update();
|
|
902
902
|
},
|
|
903
903
|
forceUpdate: function() {
|
|
904
904
|
if (!y) {
|
|
@@ -909,21 +909,21 @@ function Yr(e) {
|
|
|
909
909
|
}
|
|
910
910
|
p.rects = {
|
|
911
911
|
reference: Nr(C, Ce($), p.options.strategy === "fixed"),
|
|
912
|
-
popper:
|
|
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
916
|
for (var c = 0, g = 0; g < p.orderedModifiers.length; g++) {
|
|
917
917
|
if (process.env.NODE_ENV !== "production" && (c += 1, c > 100)) {
|
|
918
|
-
console.error(
|
|
918
|
+
console.error(Ur);
|
|
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 d = p.orderedModifiers[g],
|
|
926
|
-
typeof
|
|
925
|
+
var d = p.orderedModifiers[g], x = d.fn, E = d.options, S = E === void 0 ? {} : E, k = d.name;
|
|
926
|
+
typeof x == "function" && (p = x({
|
|
927
927
|
state: p,
|
|
928
928
|
options: S,
|
|
929
929
|
name: k,
|
|
@@ -946,7 +946,7 @@ function Yr(e) {
|
|
|
946
946
|
u.setOptions(f).then(function(v) {
|
|
947
947
|
!y && f.onFirstUpdate && f.onFirstUpdate(v);
|
|
948
948
|
});
|
|
949
|
-
function
|
|
949
|
+
function O() {
|
|
950
950
|
p.orderedModifiers.forEach(function(v) {
|
|
951
951
|
var w = v.name, C = v.options, $ = C === void 0 ? {} : C, c = v.effect;
|
|
952
952
|
if (typeof c == "function") {
|
|
@@ -969,8 +969,8 @@ function Yr(e) {
|
|
|
969
969
|
return u;
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
var
|
|
973
|
-
defaultModifiers:
|
|
972
|
+
var Yr = [cr, Dr, fr, _t, kr, $r, jr, ar, Pr], Gr = /* @__PURE__ */ Xr({
|
|
973
|
+
defaultModifiers: Yr
|
|
974
974
|
});
|
|
975
975
|
const Jr = {
|
|
976
976
|
props: {
|
|
@@ -1117,7 +1117,7 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}, nn = ["data-toggle"];
|
|
1119
1119
|
function on(e, t, r, n, o, i) {
|
|
1120
|
-
return W(),
|
|
1120
|
+
return W(), Ue("div", {
|
|
1121
1121
|
class: F(i.classes),
|
|
1122
1122
|
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
1123
|
role: "group"
|
|
@@ -1170,7 +1170,7 @@ const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
|
|
|
1170
1170
|
}, un = ["aria-labelledby"];
|
|
1171
1171
|
function cn(e, t, r, n, o, i) {
|
|
1172
1172
|
const a = te("dropdown-menu-items");
|
|
1173
|
-
return W(),
|
|
1173
|
+
return W(), Ue("div", {
|
|
1174
1174
|
class: F(["dropdown-menu", {
|
|
1175
1175
|
"dropdown-menu-left": r.align === "left",
|
|
1176
1176
|
"dropdown-menu-right": r.align === "right",
|
|
@@ -1223,6 +1223,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1223
1223
|
DropdownMenu: dn
|
|
1224
1224
|
},
|
|
1225
1225
|
extends: _r,
|
|
1226
|
+
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1226
1227
|
props: {
|
|
1227
1228
|
align: {
|
|
1228
1229
|
type: String,
|
|
@@ -1300,7 +1301,8 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1300
1301
|
hide: this.hide,
|
|
1301
1302
|
onBlur: this.onBlur,
|
|
1302
1303
|
onClickItem: this.onClickItem,
|
|
1303
|
-
onClickToggle: this.onClickToggle
|
|
1304
|
+
onClickToggle: this.onClickToggle,
|
|
1305
|
+
expanded: this.expanded
|
|
1304
1306
|
};
|
|
1305
1307
|
},
|
|
1306
1308
|
placement() {
|
|
@@ -1355,7 +1357,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1355
1357
|
});
|
|
1356
1358
|
}
|
|
1357
1359
|
},
|
|
1358
|
-
|
|
1360
|
+
beforeUnmount() {
|
|
1359
1361
|
this.popper && this.popper.destroy();
|
|
1360
1362
|
},
|
|
1361
1363
|
methods: {
|
|
@@ -1401,7 +1403,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1401
1403
|
this.isFocusable(e.target) || this.hide();
|
|
1402
1404
|
},
|
|
1403
1405
|
onClickToggle(e) {
|
|
1404
|
-
|
|
1406
|
+
this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1405
1407
|
}
|
|
1406
1408
|
},
|
|
1407
1409
|
watch: {
|
|
@@ -1414,13 +1416,15 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1414
1416
|
}, gn = {
|
|
1415
1417
|
mixins: [
|
|
1416
1418
|
Dt
|
|
1419
|
+
],
|
|
1420
|
+
emits: [
|
|
1421
|
+
"click"
|
|
1417
1422
|
]
|
|
1418
1423
|
}, bn = ["id", "aria-expanded"];
|
|
1419
1424
|
function yn(e, t, r, n, o, i) {
|
|
1420
1425
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1421
1426
|
return W(), ee(s, {
|
|
1422
|
-
class: F([e.classes, "btn-dropdown-split"])
|
|
1423
|
-
onClick: e.onClick
|
|
1427
|
+
class: F([e.classes, "btn-dropdown-split"])
|
|
1424
1428
|
}, {
|
|
1425
1429
|
default: B(() => [
|
|
1426
1430
|
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
|
|
@@ -1446,7 +1450,7 @@ function yn(e, t, r, n, o, i) {
|
|
|
1446
1450
|
we(s, { ref: "split" }, {
|
|
1447
1451
|
default: B(() => [
|
|
1448
1452
|
P(e.$slots, "split", ie(Re(e.scope)), () => [
|
|
1449
|
-
e.split ? (W(),
|
|
1453
|
+
e.split ? (W(), Ue("button", {
|
|
1450
1454
|
key: 0,
|
|
1451
1455
|
id: e.$attrs.id,
|
|
1452
1456
|
type: "button",
|
|
@@ -1496,14 +1500,14 @@ function yn(e, t, r, n, o, i) {
|
|
|
1496
1500
|
]) : de("", !0)
|
|
1497
1501
|
]),
|
|
1498
1502
|
_: 3
|
|
1499
|
-
}, 8, ["class"
|
|
1503
|
+
}, 8, ["class"]);
|
|
1500
1504
|
}
|
|
1501
|
-
const wn = /* @__PURE__ */ fe(gn, [["render", yn]]),
|
|
1505
|
+
const wn = /* @__PURE__ */ fe(gn, [["render", yn]]), On = {
|
|
1502
1506
|
mixins: [
|
|
1503
1507
|
Dt
|
|
1504
1508
|
]
|
|
1505
1509
|
};
|
|
1506
|
-
function
|
|
1510
|
+
function xn(e, t, r, n, o, i) {
|
|
1507
1511
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1508
1512
|
return W(), ee(s, {
|
|
1509
1513
|
class: F(e.classes)
|
|
@@ -1548,23 +1552,31 @@ function On(e, t, r, n, o, i) {
|
|
|
1548
1552
|
_: 3
|
|
1549
1553
|
}, 8, ["class"]);
|
|
1550
1554
|
}
|
|
1551
|
-
const $n = /* @__PURE__ */ fe(
|
|
1555
|
+
const $n = /* @__PURE__ */ fe(On, [["render", xn]]);
|
|
1552
1556
|
const Cn = {
|
|
1553
1557
|
name: "BtnDropdown",
|
|
1554
1558
|
components: {
|
|
1555
1559
|
BtnDropdownSplit: wn,
|
|
1556
1560
|
BtnDropdownSingle: $n
|
|
1557
1561
|
},
|
|
1558
|
-
inheritAttrs: !1
|
|
1562
|
+
inheritAttrs: !1,
|
|
1563
|
+
emits: [
|
|
1564
|
+
"click",
|
|
1565
|
+
"click-toggle",
|
|
1566
|
+
"dropdown",
|
|
1567
|
+
"show",
|
|
1568
|
+
"hide",
|
|
1569
|
+
"toggle"
|
|
1570
|
+
]
|
|
1559
1571
|
};
|
|
1560
1572
|
function Pn(e, t, r, n, o, i) {
|
|
1561
1573
|
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), ge({ class: "btn-dropdown" }, e.$attrs, {
|
|
1562
|
-
onClick: t[0] || (t[0] = (...a) =>
|
|
1563
|
-
onClickToggle: t[1] || (t[1] = (...a) =>
|
|
1564
|
-
onDropdown: t[2] || (t[2] = (...a) =>
|
|
1565
|
-
onShow: t[3] || (t[3] = (...a) =>
|
|
1566
|
-
onHide: t[4] || (t[4] = (...a) =>
|
|
1567
|
-
onToggle: t[5] || (t[5] = (...a) =>
|
|
1574
|
+
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1575
|
+
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
1576
|
+
onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
|
|
1577
|
+
onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
|
|
1578
|
+
onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
|
|
1579
|
+
onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
|
|
1568
1580
|
}), Lt({
|
|
1569
1581
|
icon: B(() => [
|
|
1570
1582
|
P(e.$slots, "icon")
|
|
@@ -1580,7 +1592,7 @@ function Pn(e, t, r, n, o, i) {
|
|
|
1580
1592
|
]),
|
|
1581
1593
|
_: 2
|
|
1582
1594
|
}, [
|
|
1583
|
-
e.$attrs.label ||
|
|
1595
|
+
e.$attrs.label || e.$slots.label ? {
|
|
1584
1596
|
name: "label",
|
|
1585
1597
|
fn: B(() => [
|
|
1586
1598
|
P(e.$slots, "label", {}, () => [
|
package/dist/btn-dropdown.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(U,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(U=typeof globalThis<"u"?globalThis:U||self,i(U.BtnDropdown={},U.Vue))})(this,function(U,i){"use strict";var A="top",T="bottom",N="right",z="left",me="auto",ae=[A,T,N,z],ee="start",se="end",bt="clippingParents",Me="viewport",le="popper",yt="reference",Le=ae.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+se])},[]),qe=[].concat(ae,[me]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+se])},[]),wt="beforeRead",xt="read",Ct="afterRead",Ot="beforeMain",$t="main",Pt="afterMain",St="beforeWrite",kt="write",Bt="afterWrite",Pe=[wt,xt,Ct,Ot,$t,Pt,St,kt,Bt];function q(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function X(e){var t=V(e).Element;return e instanceof t||e instanceof Element}function R(e){var t=V(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Se(e){if(typeof ShadowRoot>"u")return!1;var t=V(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Et(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!R(a)||!q(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var p=o[s];p===!1?a.removeAttribute(s):a.setAttribute(s,p===!0?"":p)}))})}function Dt(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),p=s.reduce(function(l,c){return l[c]="",l},{});!R(o)||!q(o)||(Object.assign(o.style,p),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const At={name:"applyStyles",enabled:!0,phase:"write",fn:Et,effect:Dt,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var Y=Math.max,ve=Math.min,te=Math.round;function ke(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fe(){return!/^((?!chrome|android).)*safari/i.test(ke())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&R(e)&&(o=e.offsetWidth>0&&te(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&te(n.height)/e.offsetHeight||1);var s=X(e)?V(e):window,p=s.visualViewport,l=!Fe()&&r,c=(n.left+(l&&p?p.offsetLeft:0))/o,f=(n.top+(l&&p?p.offsetTop:0))/a,v=n.width/o,w=n.height/a;return{width:v,height:w,top:f,right:c+v,bottom:f+w,left:c,x:c,y:f}}function Be(e){var t=re(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function We(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Se(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function M(e){return V(e).getComputedStyle(e)}function zt(e){return["table","td","th"].indexOf(q(e))>=0}function F(e){return((X(e)?e.ownerDocument:e.document)||window.document).documentElement}function ge(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Se(e)?e.host:null)||F(e)}function He(e){return!R(e)||M(e).position==="fixed"?null:e.offsetParent}function Rt(e){var t=/firefox/i.test(ke()),r=/Trident/i.test(ke());if(r&&R(e)){var n=M(e);if(n.position==="fixed")return null}var o=ge(e);for(Se(o)&&(o=o.host);R(o)&&["html","body"].indexOf(q(o))<0;){var a=M(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function pe(e){for(var t=V(e),r=He(e);r&&zt(r)&&M(r).position==="static";)r=He(r);return r&&(q(r)==="html"||q(r)==="body"&&M(r).position==="static")?t:r||Rt(e)||t}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e,t,r){return Y(e,ve(t,r))}function jt(e,t,r){var n=fe(e,t,r);return n>r?r:n}function Ue(){return{top:0,right:0,bottom:0,left:0}}function Xe(e){return Object.assign({},Ue(),e)}function Ye(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Tt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Xe(typeof t!="number"?t:Ye(t,ae))};function Nt(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,p=I(r.placement),l=Ee(p),c=[z,N].indexOf(p)>=0,f=c?"height":"width";if(!(!a||!s)){var v=Tt(o.padding,r),w=Be(a),d=l==="y"?A:z,C=l==="y"?T:N,g=r.rects.reference[f]+r.rects.reference[l]-s[l]-r.rects.popper[f],m=s[l]-r.rects.reference[l],x=pe(a),P=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,$=g/2-m/2,u=v[d],b=P-w[f]-v[C],h=P/2-w[f]/2+$,O=fe(u,h,b),S=l;r.modifiersData[n]=(t={},t[S]=O,t.centerOffset=O-h,t)}}function Vt(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(R(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(" "))),!We(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const It={name:"arrow",enabled:!0,phase:"main",fn:Nt,effect:Vt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lt(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:te(t*o)/o||0,y:te(r*o)/o||0}}function Ge(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,p=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,v=e.isFixed,w=s.x,d=w===void 0?0:w,C=s.y,g=C===void 0?0:C,m=typeof f=="function"?f({x:d,y:g}):{x:d,y:g};d=m.x,g=m.y;var x=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),$=z,u=A,b=window;if(c){var h=pe(r),O="clientHeight",S="clientWidth";if(h===V(r)&&(h=F(r),M(h).position!=="static"&&p==="absolute"&&(O="scrollHeight",S="scrollWidth")),h=h,o===A||(o===z||o===N)&&a===se){u=T;var k=v&&h===b&&b.visualViewport?b.visualViewport.height:h[O];g-=k-n.height,g*=l?1:-1}if(o===z||(o===A||o===T)&&a===se){$=N;var B=v&&h===b&&b.visualViewport?b.visualViewport.width:h[S];d-=B-n.width,d*=l?1:-1}}var y=Object.assign({position:p},c&&Mt),E=f===!0?Lt({x:d,y:g}):{x:d,y:g};if(d=E.x,g=E.y,l){var D;return Object.assign({},y,(D={},D[u]=P?"0":"",D[$]=x?"0":"",D.transform=(b.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",D))}return Object.assign({},y,(t={},t[u]=P?g+"px":"",t[$]=x?d+"px":"",t.transform="",t))}function qt(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,p=r.roundOffsets,l=p===void 0?!0:p;if(process.env.NODE_ENV!=="production"){var c=M(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(v){return c.indexOf(v)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
2
2
|
|
|
3
3
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
4
4
|
|
|
5
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qt,data:{}};var be={passive:!0};function Wt(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,p=s===void 0?!0:s,l=V(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",r.update,be)}),p&&l.addEventListener("resize",r.update,be),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",r.update,be)}),p&&l.removeEventListener("resize",r.update,be)}}const Ht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wt,data:{}};var Xt={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return Xt[t]})}var Yt={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Yt[t]})}function De(e){var t=V(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ae(e){return re(F(e)).left+De(e).scrollLeft}function Ut(e,t){var r=V(e),n=F(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,p=0,l=0;if(o){a=o.width,s=o.height;var c=Fe();(c||!c&&t==="fixed")&&(p=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:p+Ae(e),y:l}}function Gt(e){var t,r=F(e),n=De(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=U(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=U(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+Ae(e),l=-n.scrollTop;return M(o||r).direction==="rtl"&&(p+=U(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:p,y:l}}function ze(e){var t=M(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ke(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Ke(ge(e))}function ce(e,t){var r;t===void 0&&(t=[]);var n=Ke(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=V(n),s=o?[a].concat(a.visualViewport||[],ze(n)?n:[]):n,p=t.concat(s);return o?p:p.concat(ce(ge(s)))}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jt(e,t){var r=re(e,!1,t==="fixed");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}function Qe(e,t,r){return t===Me?Re(Ut(e,r)):Y(t)?Jt(t,r):Re(Gt(F(e)))}function Kt(e){var t=ce(ge(e)),r=["absolute","fixed"].indexOf(M(e).position)>=0,n=r&&R(e)?pe(e):e;return Y(n)?t.filter(function(o){return Y(o)&&We(o,n)&&q(o)!=="body"}):[]}function Qt(e,t,r,n){var o=t==="clippingParents"?Kt(e):[].concat(t),a=[].concat(o,[r]),s=a[0],p=a.reduce(function(l,c){var f=Qe(e,c,n);return l.top=U(f.top,l.top),l.right=ve(f.right,l.right),l.bottom=ve(f.bottom,l.bottom),l.left=U(f.left,l.left),l},Qe(e,s,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ze(e){var t=e.reference,r=e.element,n=e.placement,o=n?I(n):null,a=n?ne(n):null,s=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,l;switch(o){case A:l={x:s,y:t.y-r.height};break;case T:l={x:s,y:t.y+t.height};break;case N:l={x:t.x+t.width,y:p};break;case z:l={x:t.x-r.width,y:p};break;default:l={x:t.x,y:t.y}}var c=o?Ee(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ee:l[c]=l[c]-(t[f]/2-r[f]/2);break;case se:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function de(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,p=r.boundary,l=p===void 0?bt:p,c=r.rootBoundary,f=c===void 0?Me:c,v=r.elementContext,w=v===void 0?le:v,d=r.altBoundary,C=d===void 0?!1:d,g=r.padding,m=g===void 0?0:g,x=Ye(typeof m!="number"?m:Ue(m,ae)),P=w===le?yt:le,$=e.rects.popper,u=e.elements[C?P:w],b=Qt(Y(u)?u:u.contextElement||F(e.elements.popper),l,f,s),h=re(e.elements.reference),O=Ze({reference:h,element:$,strategy:"absolute",placement:o}),S=Re(Object.assign({},$,O)),k=w===le?S:h,B={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},y=e.modifiersData.offset;if(w===le&&y){var E=y[o];Object.keys(B).forEach(function(D){var J=[N,T].indexOf(D)>=0?1:-1,K=[A,T].indexOf(D)>=0?"y":"x";B[D]+=E[K]*J})}return B}function Zt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,p=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qe:l,f=ne(n),v=f?p?Le:Le.filter(function(C){return ne(C)===f}):ae,w=v.filter(function(C){return c.indexOf(C)>=0});w.length===0&&(w=v,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(" ")));var d=w.reduce(function(C,g){return C[g]=de(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[I(g)],C},{});return Object.keys(d).sort(function(C,g){return d[C]-d[g]})}function _t(e){if(I(e)===me)return[];var t=ye(e);return[Je(e),t,Je(t)]}function er(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,w=r.altBoundary,d=r.flipVariations,C=d===void 0?!0:d,g=r.allowedAutoPlacements,m=t.options.placement,x=I(m),P=x===m,$=l||(P||!C?[ye(m)]:_t(m)),u=[m].concat($).reduce(function(ie,H){return ie.concat(I(H)===me?Zt(t,{placement:H,boundary:f,rootBoundary:v,padding:c,flipVariations:C,allowedAutoPlacements:g}):H)},[]),b=t.rects.reference,h=t.rects.popper,O=new Map,S=!0,k=u[0],B=0;B<u.length;B++){var y=u[B],E=I(y),D=ne(y)===ee,J=[A,T].indexOf(E)>=0,K=J?"width":"height",j=de(t,{placement:y,boundary:f,rootBoundary:v,altBoundary:w,padding:c}),L=J?D?N:z:D?T:A;b[K]>h[K]&&(L=ye(L));var we=ye(L),Q=[];if(a&&Q.push(j[E]<=0),p&&Q.push(j[L]<=0,j[we]<=0),Q.every(function(ie){return ie})){k=y,S=!1;break}O.set(y,Q)}if(S)for(var xe=C?3:1,Te=function(H){var he=u.find(function(Oe){var Z=O.get(Oe);if(Z)return Z.slice(0,H).every(function(Ne){return Ne})});if(he)return k=he,"break"},ue=xe;ue>0;ue--){var Ce=Te(ue);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const tr={name:"flip",enabled:!0,phase:"main",fn:er,requiresIfExists:["offset"],data:{_skip:!1}};function _e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function et(e){return[A,N,T,z].some(function(t){return e[t]>=0})}function rr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=de(t,{elementContext:"reference"}),p=de(t,{altBoundary:!0}),l=_e(s,n),c=_e(p,o,a),f=et(l),v=et(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const nr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rr};function or(e,t,r){var n=I(e),o=[z,A].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],p=a[1];return s=s||0,p=(p||0)*o,[z,N].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}}function ir(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=qe.reduce(function(f,v){return f[v]=or(v,t.rects,a),f},{}),p=s[t.placement],l=p.x,c=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ir};function sr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lr={name:"popperOffsets",enabled:!0,phase:"read",fn:sr,data:{}};function pr(e){return e==="x"?"y":"x"}function fr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,w=r.tether,d=w===void 0?!0:w,C=r.tetherOffset,g=C===void 0?0:C,m=de(t,{boundary:l,rootBoundary:c,padding:v,altBoundary:f}),x=I(t.placement),P=ne(t.placement),$=!P,u=Ee(x),b=pr(u),h=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!h){if(a){var D,J=u==="y"?A:z,K=u==="y"?T:N,j=u==="y"?"height":"width",L=h[u],we=L+m[J],Q=L-m[K],xe=d?-S[j]/2:0,Te=P===ee?O[j]:S[j],ue=P===ee?-S[j]:-O[j],Ce=t.elements.arrow,ie=d&&Ce?Be(Ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xe(),he=H[J],Oe=H[K],Z=fe(0,O[j],ie[j]),Ne=$?O[j]/2-xe-Z-he-B.mainAxis:Te-Z-he-B.mainAxis,_r=$?-O[j]/2+xe+Z+Oe+B.mainAxis:ue+Z+Oe+B.mainAxis,Ve=t.elements.arrow&&pe(t.elements.arrow),en=Ve?u==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,pt=(D=y==null?void 0:y[u])!=null?D:0,tn=L+Ne-pt-en,rn=L+_r-pt,ft=fe(d?ve(we,tn):we,L,d?U(Q,rn):Q);h[u]=ft,E[u]=ft-L}if(p){var ct,nn=u==="x"?A:z,on=u==="x"?T:N,_=h[b],$e=b==="y"?"height":"width",dt=_+m[nn],ut=_-m[on],Ie=[A,z].indexOf(x)!==-1,ht=(ct=y==null?void 0:y[b])!=null?ct:0,mt=Ie?dt:_-O[$e]-S[$e]-ht+B.altAxis,vt=Ie?_+O[$e]+S[$e]-ht-B.altAxis:ut,gt=d&&Ie?jt(mt,_,vt):fe(d?mt:dt,_,d?vt:ut);h[b]=gt,E[b]=gt-_}t.modifiersData[n]=E}}const cr={name:"preventOverflow",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"]};function dr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===V(e)||!R(e)?De(e):dr(e)}function hr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,n=te(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mr(e,t,r){r===void 0&&(r=!1);var n=R(t),o=R(t)&&hr(t),a=F(t),s=re(e,o,r),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||ze(a))&&(p=ur(t)),R(t)?(l=re(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ae(a))),{x:s.left+p.scrollLeft-l.x,y:s.top+p.scrollTop-l.y,width:s.width,height:s.height}}function vr(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!r.has(p)){var l=t.get(p);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gr(e){var t=vr(e);return Pe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,a){return o.replace(/%s/,a)},e)}var G='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',yr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',tt=["name","enabled","phase","fn","effect","requires","options"];function wr(e){e.forEach(function(t){[].concat(Object.keys(t),tt).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(W(G,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(W(G,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pe.indexOf(t.phase)<0&&console.error(W(G,t.name,'"phase"',"either "+Pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(W(G,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(W(G,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(W(G,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(W(G,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+tt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(W(yr,String(t.name),n,n))})})})}function xr(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function Cr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Or="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $r(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?nt:o;return function(p,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:p,popper:l},attributes:{},styles:{}},v=[],w=!1,d={state:f,setOptions:function(x){var P=typeof x=="function"?x(f.options):x;g(),f.options=Object.assign({},a,f.options,P),f.scrollParents={reference:Y(p)?ce(p):p.contextElement?ce(p.contextElement):[],popper:ce(l)};var $=gr(Cr([].concat(n,f.options.modifiers)));if(f.orderedModifiers=$.filter(function(y){return y.enabled}),process.env.NODE_ENV!=="production"){var u=xr([].concat($,f.options.modifiers),function(y){var E=y.name;return E});if(wr(u),I(f.options.placement)===me){var b=f.orderedModifiers.find(function(y){var E=y.name;return E==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=M(l),O=h.marginTop,S=h.marginRight,k=h.marginBottom,B=h.marginLeft;[O,S,k,B].some(function(y){return parseFloat(y)})&&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(" "))}return C(),d.update()},forceUpdate:function(){if(!w){var x=f.elements,P=x.reference,$=x.popper;if(!ot(P,$)){process.env.NODE_ENV!=="production"&&console.error(rt);return}f.rects={reference:mr(P,pe($),f.options.strategy==="fixed"),popper:Be($)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,b=0;b<f.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(u+=1,u>100)){console.error(Or);break}if(f.reset===!0){f.reset=!1,b=-1;continue}var h=f.orderedModifiers[b],O=h.fn,S=h.options,k=S===void 0?{}:S,B=h.name;typeof O=="function"&&(f=O({state:f,options:k,name:B,instance:d})||f)}}},update:br(function(){return new Promise(function(m){d.forceUpdate(),m(f)})}),destroy:function(){g(),w=!0}};if(!ot(p,l))return process.env.NODE_ENV!=="production"&&console.error(rt),d;d.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function C(){f.orderedModifiers.forEach(function(m){var x=m.name,P=m.options,$=P===void 0?{}:P,u=m.effect;if(typeof u=="function"){var b=u({state:f,name:x,instance:d,options:$}),h=function(){};v.push(b||h)}})}function g(){v.forEach(function(m){return m()}),v=[]}return d}}var Pr=[Ht,lr,Ft,At,ar,tr,cr,It,nr],Sr=$r({defaultModifiers:Pr});const kr={name:"Btn",mixins:[{props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},{props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant&&!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}}],props:{active:Boolean,block:Boolean,componentPrefix:{type:String,default:"btn"},disabled:Boolean,label:String,outline:Boolean,tag:String,variant:{type:String,default:"primary"}},computed:{classes(){return["btn",this.variantClass,this.sizeableClass,this.active&&"active",this.block&&"btn-block",this.disabled&&"disabled"]},component(){return this.tag?this.tag:this.$attrs.href?"a":"button"},variantClassPrefix(){return(this.variantPrefix||this.componentPrefix)+(this.outline?"-outline":"")}}},oe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Br(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),i.mergeProps(e.$attrs,{disabled:r.disabled,class:a.classes,role:"button"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(r.label),1)])]),_:3},16,["disabled","class"])}const Er=oe(kr,[["render",Br]]),Dr={props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},Ar=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},zr={name:"BtnGroup",mixins:[Dr],props:{sizePrefix:{type:String,default(){return"btn-group"}},toggle:Boolean,vertical:Boolean},computed:{classes(){return{"btn-group":!this.vertical,"btn-group-toggle":this.toggle,"btn-group-vertical":this.vertical,[this.sizeableClass]:!!this.size}}}},Rr=["data-toggle"];function jr(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.classes),"data-toggle":r.toggle?"buttons":!1,role:"group"},[i.renderSlot(e.$slots,"default")],10,Rr)}const Tr=Ar(zr,[["render",jr]]);function je(e,t){e.props.class=`${e.props.class||""} ${t}`.trim()}function it(e,t){return r=>{typeof t=="function"&&t(r),r.cancelBubble||e(r)}}function at(e,t){return e.attrs.on[t]||e.type&&e.type.listeners&&e.componentOptions.listeners[t]}function Nr(e){return e&&e.type&&(e.type==="fragment"||typeof e.type=="symbol")}function st(e){for(const t of e){if(Nr(t))return st(t.children);t.props=Object.assign({class:void 0},t.props),t.attrs=Object.assign({},t.attrs),t.attrs.on||(t.attrs.on={});const r=t.props.class&&t.props.class.match(/dropdown-item/),n=t.props.class&&t.props.class.match(/dropdown-divider/);t.attrs.on.click=it(o=>{context.parent.$emit("click-item",o,t)},at(t,"click")),t.attrs.on.blur=it(o=>{context.parent.$emit("blur-item",o,t)},at(t,"blur")),typeof t.type=="string"&&t.type.match(/^h\d$/)?je(t,"dropdown-header"):t.type==="hr"&&!n?(t.type="div",je(t,"dropdown-divider")):!r&&!n&&je(t,"dropdown-item")}return e}const Vr={name:"DropdownMenu",components:{DropdownMenuItems:(e,t)=>i.h("div",{},st(t.slots.default()))},props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},show:Boolean}},Ir=["aria-labelledby"];function Mr(e,t,r,n,o,a){const s=i.resolveComponent("dropdown-menu-items");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dropdown-menu",{"dropdown-menu-left":r.align==="left","dropdown-menu-right":r.align==="right",show:r.show}]),"aria-labelledby":e.$attrs.id},[i.createVNode(s,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{onClick:t[0]||(t[0]=(...p)=>e.onItemClick&&e.onItemClick(...p))})]),_:3})],10,Ir)}const Lr=oe(Vr,[["render",Mr]]),qr={props:{expanded:{type:Boolean,default:!1},id:String,href:String,to:[String,Object]},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}};function Fr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.is),i.mergeProps({id:r.id},r.to?{to:r.to}:{href:r.href},{"aria-haspopup":"true","aria-expanded":r.expanded,type:a.is==="button"?"button":void 0}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-expanded","type"])}const lt={components:{BtnDropdownAction:oe(qr,[["render",Fr]]),BtnGroup:Tr,DropdownMenu:Lr},extends:Er,props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},buttonClass:[Object,String],caret:{type:Boolean,default:!0},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},height:String,href:String,nav:Boolean,label:String,offset:{type:Number,default:5},rotate:{type:Boolean,default:!1},split:{type:Boolean,default:!1},to:[String,Object],type:{type:String,default:"button"},width:String},data(){return{popper:null,triggerAnimation:!1,expanded:!1}},computed:{scope(){return{placement:this.placement,variantClassPrefix:this.variantClassPrefix,sizeableClassPrefix:this.sizeableClassPrefix,classes:this.classes,actionClasses:this.actionClasses,toggleStyle:this.toggleStyle,toggleClasses:this.toggleClasses,focus:this.focus,queryFocusable:this.queryFocusable,isFocusable:this.isFocusable,toggle:this.toggle,show:this.show,hide:this.hide,onBlur:this.onBlur,onClickItem:this.onClickItem,onClickToggle:this.onClickToggle}},placement(){return this.dropup?"top":this.dropleft?"left":this.dropright?"right":"bottom"},variantClassPrefix(){return"btn"+(this.outline?"-outline":"")},sizeableClassPrefix(){return"btn"},classes(){return{dropdown:this.dropup&&this.dropright&&this.dropleft,dropup:this.dropup,dropright:this.dropright,dropleft:this.dropleft,"icon-only":!this.nav&&!this.split&&!!this.$slots.icon&&!this.$slots.label,"hide-caret":!this.caret,expanded:this.expanded,"rotate-90":!this.nav&&this.split&&this.rotate&&this.expanded}},actionClasses(){return Object.assign({btn:!this.nav,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return Object.assign({active:this.active,btn:!this.nav,"btn-block":!!this.block,"nav-link":!!this.nav,"rotate-90":!this.split&&this.rotate&&this.expanded,"dropdown-toggle":!0,"dropdown-toggle-split":!this.nav&&this.split,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})}},beforeDestroy(){this.popper&&this.popper.destroy()},methods:{focus(){this.$el.querySelector(".dropdown-toggle").focus()},queryFocusable(){return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])')},isFocusable(e){const t=this.queryFocusable();for(let r in t)if(e===t[r])return!0;return!1},toggle(e){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const e=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=Sr(e,this.$refs.menu.$el,{placement:`${this.placement}-${this.align==="left"?"start":"end"}`,onFirstUpdate:()=>{this.triggerAnimation=this.animated},modifiers:[{name:"offset",options:{offset:[0,this.nav?1:this.offset]}}]}):this.popper&&this.popper.update()},hide(){this.expanded=!1},onBlur(e){this.$el.contains(e.relatedTarget)||this.hide()},onClickItem(e){this.isFocusable(e.target)||this.hide()},onClickToggle(e){e.target.focus(),this.$emit("click-toggle",e),e.defaultPrevented||this.toggle()}},watch:{expanded(e){this.$nextTick(()=>{this.$emit(e?"show":"hide"),this.$emit("toggle",e)})}}},Wr={mixins:[lt]},Hr=["id","aria-expanded"];function Xr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([e.classes,"btn-dropdown-split"]),onClick:e.onClick},{default:i.withCtx(()=>[e.dropleft?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:0},e.scope)),()=>[e.dropleft?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"]))]),i.createVNode(l,{ref:"split"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[e.split?(i.openBlock(),i.createElementBlock("button",{key:0,id:e.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":e.expanded,class:i.normalizeClass(e.toggleClasses),onBlur:t[1]||(t[1]=(...c)=>e.onBlur&&e.onBlur(...c)),onClick:t[2]||(t[2]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},null,42,Hr)):i.createCommentVNode("",!0)]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onClickItem:e.onClickItem,onBlurItem:e.onBlur},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onClickItem","onBlurItem"])]),_:3},512),e.dropleft?i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:1},e.scope)),()=>[e.dropleft?(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[3]||(t[3]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"])):i.createCommentVNode("",!0)]):i.createCommentVNode("",!0)]),_:3},8,["class","onClick"])}const Yr=oe(Wr,[["render",Xr]]),Ur={mixins:[lt]};function Gr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(e.classes)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[i.createVNode(s,{id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,style:i.normalizeStyle(e.toggleStyle),class:i.normalizeClass(e.toggleClasses),onBlur:e.onBlur,onClick:e.onClickToggle},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","style","class","onBlur","onClick"])]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlurItem:e.onBlur,onClickItem:e.onClickItem},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlurItem","onClickItem"])]),_:3},8,["class"])}const Jr=oe(Ur,[["render",Gr]]),cn="",Kr={name:"BtnDropdown",components:{BtnDropdownSplit:Yr,BtnDropdownSingle:Jr},inheritAttrs:!1};function Qr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$attrs.split===void 0||!!e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split"),i.mergeProps({class:"btn-dropdown"},e.$attrs,{onClick:t[0]||(t[0]=(...s)=>this.$emit("click",...s)),onClickToggle:t[1]||(t[1]=(...s)=>this.$emit("click-toggle",...s)),onDropdown:t[2]||(t[2]=(...s)=>this.$emit("dropdown",...s)),onShow:t[3]||(t[3]=(...s)=>this.$emit("show",...s)),onHide:t[4]||(t[4]=(...s)=>this.$emit("hide",...s)),onToggle:t[5]||(t[5]=(...s)=>this.$emit("toggle",...s))}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(e.$slots,"icon")]),button:i.withCtx(s=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(s)))]),split:i.withCtx(s=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(s)))]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:2},[e.$attrs.label||this.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.$attrs.label),1)])]),key:"0"}:void 0]),1040)}const Zr=oe(Kr,[["render",Qr]]);X.BtnDropdown=Zr,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qt,data:{}};var be={passive:!0};function Wt(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,p=s===void 0?!0:s,l=V(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",r.update,be)}),p&&l.addEventListener("resize",r.update,be),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",r.update,be)}),p&&l.removeEventListener("resize",r.update,be)}}const Ht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wt,data:{}};var Ut={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return Ut[t]})}var Xt={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Xt[t]})}function De(e){var t=V(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ae(e){return re(F(e)).left+De(e).scrollLeft}function Yt(e,t){var r=V(e),n=F(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,p=0,l=0;if(o){a=o.width,s=o.height;var c=Fe();(c||!c&&t==="fixed")&&(p=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:p+Ae(e),y:l}}function Gt(e){var t,r=F(e),n=De(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Y(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Y(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+Ae(e),l=-n.scrollTop;return M(o||r).direction==="rtl"&&(p+=Y(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:p,y:l}}function ze(e){var t=M(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ke(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Ke(ge(e))}function ce(e,t){var r;t===void 0&&(t=[]);var n=Ke(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=V(n),s=o?[a].concat(a.visualViewport||[],ze(n)?n:[]):n,p=t.concat(s);return o?p:p.concat(ce(ge(s)))}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jt(e,t){var r=re(e,!1,t==="fixed");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}function Qe(e,t,r){return t===Me?Re(Yt(e,r)):X(t)?Jt(t,r):Re(Gt(F(e)))}function Kt(e){var t=ce(ge(e)),r=["absolute","fixed"].indexOf(M(e).position)>=0,n=r&&R(e)?pe(e):e;return X(n)?t.filter(function(o){return X(o)&&We(o,n)&&q(o)!=="body"}):[]}function Qt(e,t,r,n){var o=t==="clippingParents"?Kt(e):[].concat(t),a=[].concat(o,[r]),s=a[0],p=a.reduce(function(l,c){var f=Qe(e,c,n);return l.top=Y(f.top,l.top),l.right=ve(f.right,l.right),l.bottom=ve(f.bottom,l.bottom),l.left=Y(f.left,l.left),l},Qe(e,s,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ze(e){var t=e.reference,r=e.element,n=e.placement,o=n?I(n):null,a=n?ne(n):null,s=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,l;switch(o){case A:l={x:s,y:t.y-r.height};break;case T:l={x:s,y:t.y+t.height};break;case N:l={x:t.x+t.width,y:p};break;case z:l={x:t.x-r.width,y:p};break;default:l={x:t.x,y:t.y}}var c=o?Ee(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ee:l[c]=l[c]-(t[f]/2-r[f]/2);break;case se:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function de(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,p=r.boundary,l=p===void 0?bt:p,c=r.rootBoundary,f=c===void 0?Me:c,v=r.elementContext,w=v===void 0?le:v,d=r.altBoundary,C=d===void 0?!1:d,g=r.padding,m=g===void 0?0:g,x=Xe(typeof m!="number"?m:Ye(m,ae)),P=w===le?yt:le,$=e.rects.popper,u=e.elements[C?P:w],b=Qt(X(u)?u:u.contextElement||F(e.elements.popper),l,f,s),h=re(e.elements.reference),O=Ze({reference:h,element:$,strategy:"absolute",placement:o}),S=Re(Object.assign({},$,O)),k=w===le?S:h,B={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},y=e.modifiersData.offset;if(w===le&&y){var E=y[o];Object.keys(B).forEach(function(D){var J=[N,T].indexOf(D)>=0?1:-1,K=[A,T].indexOf(D)>=0?"y":"x";B[D]+=E[K]*J})}return B}function Zt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,p=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qe:l,f=ne(n),v=f?p?Le:Le.filter(function(C){return ne(C)===f}):ae,w=v.filter(function(C){return c.indexOf(C)>=0});w.length===0&&(w=v,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(" ")));var d=w.reduce(function(C,g){return C[g]=de(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[I(g)],C},{});return Object.keys(d).sort(function(C,g){return d[C]-d[g]})}function _t(e){if(I(e)===me)return[];var t=ye(e);return[Je(e),t,Je(t)]}function er(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,w=r.altBoundary,d=r.flipVariations,C=d===void 0?!0:d,g=r.allowedAutoPlacements,m=t.options.placement,x=I(m),P=x===m,$=l||(P||!C?[ye(m)]:_t(m)),u=[m].concat($).reduce(function(ie,H){return ie.concat(I(H)===me?Zt(t,{placement:H,boundary:f,rootBoundary:v,padding:c,flipVariations:C,allowedAutoPlacements:g}):H)},[]),b=t.rects.reference,h=t.rects.popper,O=new Map,S=!0,k=u[0],B=0;B<u.length;B++){var y=u[B],E=I(y),D=ne(y)===ee,J=[A,T].indexOf(E)>=0,K=J?"width":"height",j=de(t,{placement:y,boundary:f,rootBoundary:v,altBoundary:w,padding:c}),L=J?D?N:z:D?T:A;b[K]>h[K]&&(L=ye(L));var we=ye(L),Q=[];if(a&&Q.push(j[E]<=0),p&&Q.push(j[L]<=0,j[we]<=0),Q.every(function(ie){return ie})){k=y,S=!1;break}O.set(y,Q)}if(S)for(var xe=C?3:1,Te=function(H){var he=u.find(function(Oe){var Z=O.get(Oe);if(Z)return Z.slice(0,H).every(function(Ne){return Ne})});if(he)return k=he,"break"},ue=xe;ue>0;ue--){var Ce=Te(ue);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const tr={name:"flip",enabled:!0,phase:"main",fn:er,requiresIfExists:["offset"],data:{_skip:!1}};function _e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function et(e){return[A,N,T,z].some(function(t){return e[t]>=0})}function rr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=de(t,{elementContext:"reference"}),p=de(t,{altBoundary:!0}),l=_e(s,n),c=_e(p,o,a),f=et(l),v=et(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const nr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rr};function or(e,t,r){var n=I(e),o=[z,A].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],p=a[1];return s=s||0,p=(p||0)*o,[z,N].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}}function ir(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=qe.reduce(function(f,v){return f[v]=or(v,t.rects,a),f},{}),p=s[t.placement],l=p.x,c=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ir};function sr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lr={name:"popperOffsets",enabled:!0,phase:"read",fn:sr,data:{}};function pr(e){return e==="x"?"y":"x"}function fr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,w=r.tether,d=w===void 0?!0:w,C=r.tetherOffset,g=C===void 0?0:C,m=de(t,{boundary:l,rootBoundary:c,padding:v,altBoundary:f}),x=I(t.placement),P=ne(t.placement),$=!P,u=Ee(x),b=pr(u),h=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!h){if(a){var D,J=u==="y"?A:z,K=u==="y"?T:N,j=u==="y"?"height":"width",L=h[u],we=L+m[J],Q=L-m[K],xe=d?-S[j]/2:0,Te=P===ee?O[j]:S[j],ue=P===ee?-S[j]:-O[j],Ce=t.elements.arrow,ie=d&&Ce?Be(Ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ue(),he=H[J],Oe=H[K],Z=fe(0,O[j],ie[j]),Ne=$?O[j]/2-xe-Z-he-B.mainAxis:Te-Z-he-B.mainAxis,_r=$?-O[j]/2+xe+Z+Oe+B.mainAxis:ue+Z+Oe+B.mainAxis,Ve=t.elements.arrow&&pe(t.elements.arrow),en=Ve?u==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,pt=(D=y==null?void 0:y[u])!=null?D:0,tn=L+Ne-pt-en,rn=L+_r-pt,ft=fe(d?ve(we,tn):we,L,d?Y(Q,rn):Q);h[u]=ft,E[u]=ft-L}if(p){var ct,nn=u==="x"?A:z,on=u==="x"?T:N,_=h[b],$e=b==="y"?"height":"width",dt=_+m[nn],ut=_-m[on],Ie=[A,z].indexOf(x)!==-1,ht=(ct=y==null?void 0:y[b])!=null?ct:0,mt=Ie?dt:_-O[$e]-S[$e]-ht+B.altAxis,vt=Ie?_+O[$e]+S[$e]-ht-B.altAxis:ut,gt=d&&Ie?jt(mt,_,vt):fe(d?mt:dt,_,d?vt:ut);h[b]=gt,E[b]=gt-_}t.modifiersData[n]=E}}const cr={name:"preventOverflow",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"]};function dr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===V(e)||!R(e)?De(e):dr(e)}function hr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,n=te(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mr(e,t,r){r===void 0&&(r=!1);var n=R(t),o=R(t)&&hr(t),a=F(t),s=re(e,o,r),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||ze(a))&&(p=ur(t)),R(t)?(l=re(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ae(a))),{x:s.left+p.scrollLeft-l.x,y:s.top+p.scrollTop-l.y,width:s.width,height:s.height}}function vr(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!r.has(p)){var l=t.get(p);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gr(e){var t=vr(e);return Pe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,a){return o.replace(/%s/,a)},e)}var G='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',yr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',tt=["name","enabled","phase","fn","effect","requires","options"];function wr(e){e.forEach(function(t){[].concat(Object.keys(t),tt).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(W(G,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(W(G,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pe.indexOf(t.phase)<0&&console.error(W(G,t.name,'"phase"',"either "+Pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(W(G,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(W(G,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(W(G,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(W(G,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+tt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(W(yr,String(t.name),n,n))})})})}function xr(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function Cr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Or="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $r(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?nt:o;return function(p,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:p,popper:l},attributes:{},styles:{}},v=[],w=!1,d={state:f,setOptions:function(x){var P=typeof x=="function"?x(f.options):x;g(),f.options=Object.assign({},a,f.options,P),f.scrollParents={reference:X(p)?ce(p):p.contextElement?ce(p.contextElement):[],popper:ce(l)};var $=gr(Cr([].concat(n,f.options.modifiers)));if(f.orderedModifiers=$.filter(function(y){return y.enabled}),process.env.NODE_ENV!=="production"){var u=xr([].concat($,f.options.modifiers),function(y){var E=y.name;return E});if(wr(u),I(f.options.placement)===me){var b=f.orderedModifiers.find(function(y){var E=y.name;return E==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=M(l),O=h.marginTop,S=h.marginRight,k=h.marginBottom,B=h.marginLeft;[O,S,k,B].some(function(y){return parseFloat(y)})&&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(" "))}return C(),d.update()},forceUpdate:function(){if(!w){var x=f.elements,P=x.reference,$=x.popper;if(!ot(P,$)){process.env.NODE_ENV!=="production"&&console.error(rt);return}f.rects={reference:mr(P,pe($),f.options.strategy==="fixed"),popper:Be($)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,b=0;b<f.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(u+=1,u>100)){console.error(Or);break}if(f.reset===!0){f.reset=!1,b=-1;continue}var h=f.orderedModifiers[b],O=h.fn,S=h.options,k=S===void 0?{}:S,B=h.name;typeof O=="function"&&(f=O({state:f,options:k,name:B,instance:d})||f)}}},update:br(function(){return new Promise(function(m){d.forceUpdate(),m(f)})}),destroy:function(){g(),w=!0}};if(!ot(p,l))return process.env.NODE_ENV!=="production"&&console.error(rt),d;d.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function C(){f.orderedModifiers.forEach(function(m){var x=m.name,P=m.options,$=P===void 0?{}:P,u=m.effect;if(typeof u=="function"){var b=u({state:f,name:x,instance:d,options:$}),h=function(){};v.push(b||h)}})}function g(){v.forEach(function(m){return m()}),v=[]}return d}}var Pr=[Ht,lr,Ft,At,ar,tr,cr,It,nr],Sr=$r({defaultModifiers:Pr});const kr={name:"Btn",mixins:[{props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},{props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant&&!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}}],props:{active:Boolean,block:Boolean,componentPrefix:{type:String,default:"btn"},disabled:Boolean,label:String,outline:Boolean,tag:String,variant:{type:String,default:"primary"}},computed:{classes(){return["btn",this.variantClass,this.sizeableClass,this.active&&"active",this.block&&"btn-block",this.disabled&&"disabled"]},component(){return this.tag?this.tag:this.$attrs.href?"a":"button"},variantClassPrefix(){return(this.variantPrefix||this.componentPrefix)+(this.outline?"-outline":"")}}},oe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Br(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),i.mergeProps(e.$attrs,{disabled:r.disabled,class:a.classes,role:"button"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(r.label),1)])]),_:3},16,["disabled","class"])}const Er=oe(kr,[["render",Br]]),Dr={props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},Ar=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},zr={name:"BtnGroup",mixins:[Dr],props:{sizePrefix:{type:String,default(){return"btn-group"}},toggle:Boolean,vertical:Boolean},computed:{classes(){return{"btn-group":!this.vertical,"btn-group-toggle":this.toggle,"btn-group-vertical":this.vertical,[this.sizeableClass]:!!this.size}}}},Rr=["data-toggle"];function jr(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.classes),"data-toggle":r.toggle?"buttons":!1,role:"group"},[i.renderSlot(e.$slots,"default")],10,Rr)}const Tr=Ar(zr,[["render",jr]]);function je(e,t){e.props.class=`${e.props.class||""} ${t}`.trim()}function it(e,t){return r=>{typeof t=="function"&&t(r),r.cancelBubble||e(r)}}function at(e,t){return e.attrs.on[t]||e.type&&e.type.listeners&&e.componentOptions.listeners[t]}function Nr(e){return e&&e.type&&(e.type==="fragment"||typeof e.type=="symbol")}function st(e){for(const t of e){if(Nr(t))return st(t.children);t.props=Object.assign({class:void 0},t.props),t.attrs=Object.assign({},t.attrs),t.attrs.on||(t.attrs.on={});const r=t.props.class&&t.props.class.match(/dropdown-item/),n=t.props.class&&t.props.class.match(/dropdown-divider/);t.attrs.on.click=it(o=>{context.parent.$emit("click-item",o,t)},at(t,"click")),t.attrs.on.blur=it(o=>{context.parent.$emit("blur-item",o,t)},at(t,"blur")),typeof t.type=="string"&&t.type.match(/^h\d$/)?je(t,"dropdown-header"):t.type==="hr"&&!n?(t.type="div",je(t,"dropdown-divider")):!r&&!n&&je(t,"dropdown-item")}return e}const Vr={name:"DropdownMenu",components:{DropdownMenuItems:(e,t)=>i.h("div",{},st(t.slots.default()))},props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},show:Boolean}},Ir=["aria-labelledby"];function Mr(e,t,r,n,o,a){const s=i.resolveComponent("dropdown-menu-items");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dropdown-menu",{"dropdown-menu-left":r.align==="left","dropdown-menu-right":r.align==="right",show:r.show}]),"aria-labelledby":e.$attrs.id},[i.createVNode(s,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{onClick:t[0]||(t[0]=(...p)=>e.onItemClick&&e.onItemClick(...p))})]),_:3})],10,Ir)}const Lr=oe(Vr,[["render",Mr]]),qr={props:{expanded:{type:Boolean,default:!1},id:String,href:String,to:[String,Object]},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}};function Fr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.is),i.mergeProps({id:r.id},r.to?{to:r.to}:{href:r.href},{"aria-haspopup":"true","aria-expanded":r.expanded,type:a.is==="button"?"button":void 0}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-expanded","type"])}const lt={components:{BtnDropdownAction:oe(qr,[["render",Fr]]),BtnGroup:Tr,DropdownMenu:Lr},extends:Er,emits:["click-toggle","show","hide","toggle"],props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},buttonClass:[Object,String],caret:{type:Boolean,default:!0},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},height:String,href:String,nav:Boolean,label:String,offset:{type:Number,default:5},rotate:{type:Boolean,default:!1},split:{type:Boolean,default:!1},to:[String,Object],type:{type:String,default:"button"},width:String},data(){return{popper:null,triggerAnimation:!1,expanded:!1}},computed:{scope(){return{placement:this.placement,variantClassPrefix:this.variantClassPrefix,sizeableClassPrefix:this.sizeableClassPrefix,classes:this.classes,actionClasses:this.actionClasses,toggleStyle:this.toggleStyle,toggleClasses:this.toggleClasses,focus:this.focus,queryFocusable:this.queryFocusable,isFocusable:this.isFocusable,toggle:this.toggle,show:this.show,hide:this.hide,onBlur:this.onBlur,onClickItem:this.onClickItem,onClickToggle:this.onClickToggle,expanded:this.expanded}},placement(){return this.dropup?"top":this.dropleft?"left":this.dropright?"right":"bottom"},variantClassPrefix(){return"btn"+(this.outline?"-outline":"")},sizeableClassPrefix(){return"btn"},classes(){return{dropdown:this.dropup&&this.dropright&&this.dropleft,dropup:this.dropup,dropright:this.dropright,dropleft:this.dropleft,"icon-only":!this.nav&&!this.split&&!!this.$slots.icon&&!this.$slots.label,"hide-caret":!this.caret,expanded:this.expanded,"rotate-90":!this.nav&&this.split&&this.rotate&&this.expanded}},actionClasses(){return Object.assign({btn:!this.nav,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return Object.assign({active:this.active,btn:!this.nav,"btn-block":!!this.block,"nav-link":!!this.nav,"rotate-90":!this.split&&this.rotate&&this.expanded,"dropdown-toggle":!0,"dropdown-toggle-split":!this.nav&&this.split,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})}},beforeUnmount(){this.popper&&this.popper.destroy()},methods:{focus(){this.$el.querySelector(".dropdown-toggle").focus()},queryFocusable(){return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])')},isFocusable(e){const t=this.queryFocusable();for(let r in t)if(e===t[r])return!0;return!1},toggle(e){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const e=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=Sr(e,this.$refs.menu.$el,{placement:`${this.placement}-${this.align==="left"?"start":"end"}`,onFirstUpdate:()=>{this.triggerAnimation=this.animated},modifiers:[{name:"offset",options:{offset:[0,this.nav?1:this.offset]}}]}):this.popper&&this.popper.update()},hide(){this.expanded=!1},onBlur(e){this.$el.contains(e.relatedTarget)||this.hide()},onClickItem(e){this.isFocusable(e.target)||this.hide()},onClickToggle(e){this.$emit("click-toggle",e),e.defaultPrevented||this.toggle()}},watch:{expanded(e){this.$nextTick(()=>{this.$emit(e?"show":"hide"),this.$emit("toggle",e)})}}},Wr={mixins:[lt],emits:["click"]},Hr=["id","aria-expanded"];function Ur(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([e.classes,"btn-dropdown-split"])},{default:i.withCtx(()=>[e.dropleft?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:0},e.scope)),()=>[e.dropleft?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"]))]),i.createVNode(l,{ref:"split"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[e.split?(i.openBlock(),i.createElementBlock("button",{key:0,id:e.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":e.expanded,class:i.normalizeClass(e.toggleClasses),onBlur:t[1]||(t[1]=(...c)=>e.onBlur&&e.onBlur(...c)),onClick:t[2]||(t[2]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},null,42,Hr)):i.createCommentVNode("",!0)]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onClickItem:e.onClickItem,onBlurItem:e.onBlur},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onClickItem","onBlurItem"])]),_:3},512),e.dropleft?i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:1},e.scope)),()=>[e.dropleft?(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[3]||(t[3]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"])):i.createCommentVNode("",!0)]):i.createCommentVNode("",!0)]),_:3},8,["class"])}const Xr=oe(Wr,[["render",Ur]]),Yr={mixins:[lt]};function Gr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(e.classes)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[i.createVNode(s,{id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,style:i.normalizeStyle(e.toggleStyle),class:i.normalizeClass(e.toggleClasses),onBlur:e.onBlur,onClick:e.onClickToggle},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","style","class","onBlur","onClick"])]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlurItem:e.onBlur,onClickItem:e.onClickItem},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlurItem","onClickItem"])]),_:3},8,["class"])}const Jr=oe(Yr,[["render",Gr]]),cn="",Kr={name:"BtnDropdown",components:{BtnDropdownSplit:Xr,BtnDropdownSingle:Jr},inheritAttrs:!1,emits:["click","click-toggle","dropdown","show","hide","toggle"]};function Qr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$attrs.split===void 0||!!e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split"),i.mergeProps({class:"btn-dropdown"},e.$attrs,{onClick:t[0]||(t[0]=(...s)=>e.$emit("click",...s)),onClickToggle:t[1]||(t[1]=(...s)=>e.$emit("click-toggle",...s)),onDropdown:t[2]||(t[2]=(...s)=>e.$emit("dropdown",...s)),onShow:t[3]||(t[3]=(...s)=>e.$emit("show",...s)),onHide:t[4]||(t[4]=(...s)=>e.$emit("hide",...s)),onToggle:t[5]||(t[5]=(...s)=>e.$emit("toggle",...s))}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(e.$slots,"icon")]),button:i.withCtx(s=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(s)))]),split:i.withCtx(s=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(s)))]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:2},[e.$attrs.label||e.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.$attrs.label),1)])]),key:"0"}:void 0]),1040)}const Zr=oe(Kr,[["render",Qr]]);U.BtnDropdown=Zr,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-interface/btn-dropdown",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "A Vue button dropdown component.",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.js",
|
|
@@ -43,23 +43,24 @@
|
|
|
43
43
|
"@popperjs/core": "^2.11.2",
|
|
44
44
|
"@vue-interface/btn": "^3.0.0-beta.1",
|
|
45
45
|
"@vue-interface/btn-group": "^2.0.0-beta.0",
|
|
46
|
-
"@vue-interface/dropdown-menu": "^2.0.0-beta.
|
|
46
|
+
"@vue-interface/dropdown-menu": "^2.0.0-beta.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"vue": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@rollup/plugin-babel": "^
|
|
52
|
+
"@rollup/plugin-babel": "^6.0.0",
|
|
53
|
+
"@vitejs/plugin-vue": "^3.0.3",
|
|
53
54
|
"autoprefixer": "^10.4.2",
|
|
54
55
|
"babel-eslint": "^10.1.0",
|
|
55
56
|
"babel-preset-vue": "^2.0.2",
|
|
56
57
|
"change-case": "^4.1.2",
|
|
57
|
-
"eslint": "^
|
|
58
|
-
"eslint-plugin-vue": "^6.
|
|
58
|
+
"eslint": "^8.25.0",
|
|
59
|
+
"eslint-plugin-vue": "^9.6.0",
|
|
59
60
|
"pascalcase": "^2.0.0",
|
|
60
61
|
"postcss": "^8.4.6",
|
|
61
62
|
"tailwindcss": "^3.1.0",
|
|
62
|
-
"vite": "^3.
|
|
63
|
-
"
|
|
63
|
+
"vite": "^3.1.8",
|
|
64
|
+
"vue": "^3.2.41"
|
|
64
65
|
}
|
|
65
66
|
}
|
package/src/BtnDropdown.vue
CHANGED
|
@@ -1,18 +1,45 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import BtnDropdownSplit from './BtnDropdownSplit.vue';
|
|
3
|
+
import BtnDropdownSingle from './BtnDropdownSingle.vue';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
|
|
7
|
+
name: 'BtnDropdown',
|
|
8
|
+
|
|
9
|
+
components: {
|
|
10
|
+
BtnDropdownSplit,
|
|
11
|
+
BtnDropdownSingle
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
|
|
16
|
+
emits: [
|
|
17
|
+
'click',
|
|
18
|
+
'click-toggle',
|
|
19
|
+
'dropdown',
|
|
20
|
+
'show',
|
|
21
|
+
'hide',
|
|
22
|
+
'toggle'
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
};
|
|
26
|
+
</script>
|
|
27
|
+
|
|
1
28
|
<template>
|
|
2
29
|
<component
|
|
3
30
|
:is="$attrs.split === undefined || !!$attrs.nav ? 'btn-dropdown-single' : 'btn-dropdown-split'"
|
|
4
31
|
class="btn-dropdown"
|
|
5
32
|
v-bind="$attrs"
|
|
6
|
-
@click="(...args) =>
|
|
7
|
-
@click-toggle="(...args) =>
|
|
8
|
-
@dropdown="(...args) =>
|
|
9
|
-
@show="(...args) =>
|
|
10
|
-
@hide="(...args) =>
|
|
11
|
-
@toggle="(...args) =>
|
|
33
|
+
@click="(...args) => $emit('click', ...args)"
|
|
34
|
+
@click-toggle="(...args) => $emit('click-toggle', ...args)"
|
|
35
|
+
@dropdown="(...args) => $emit('dropdown', ...args)"
|
|
36
|
+
@show="(...args) => $emit('show', ...args)"
|
|
37
|
+
@hide="(...args) => $emit('hide', ...args)"
|
|
38
|
+
@toggle="(...args) => $emit('toggle', ...args)">
|
|
12
39
|
<template #icon>
|
|
13
40
|
<slot name="icon" />
|
|
14
41
|
</template>
|
|
15
|
-
<template v-if="$attrs.label ||
|
|
42
|
+
<template v-if="$attrs.label || $slots.label" #label>
|
|
16
43
|
<slot name="label">
|
|
17
44
|
{{ $attrs.label }}
|
|
18
45
|
</slot>
|
|
@@ -27,24 +54,6 @@
|
|
|
27
54
|
</component>
|
|
28
55
|
</template>
|
|
29
56
|
|
|
30
|
-
<script>
|
|
31
|
-
import BtnDropdownSplit from './BtnDropdownSplit.vue';
|
|
32
|
-
import BtnDropdownSingle from './BtnDropdownSingle.vue';
|
|
33
|
-
|
|
34
|
-
export default {
|
|
35
|
-
|
|
36
|
-
name: 'BtnDropdown',
|
|
37
|
-
|
|
38
|
-
components: {
|
|
39
|
-
BtnDropdownSplit,
|
|
40
|
-
BtnDropdownSingle
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
inheritAttrs: false
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
57
|
<style>
|
|
49
58
|
@keyframes btnDropdownZoomIn {
|
|
50
59
|
from {
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="is"
|
|
4
|
-
:id="id"
|
|
5
|
-
v-bind="to ? { to } : { href }"
|
|
6
|
-
aria-haspopup="true"
|
|
7
|
-
:aria-expanded="expanded"
|
|
8
|
-
:type="is === 'button' ? 'button': undefined">
|
|
9
|
-
<slot />
|
|
10
|
-
</component>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
1
|
<script>
|
|
14
2
|
export default {
|
|
15
3
|
props: {
|
|
@@ -35,4 +23,16 @@ export default {
|
|
|
35
23
|
},
|
|
36
24
|
}
|
|
37
25
|
};
|
|
38
|
-
</script>
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<component
|
|
30
|
+
:is="is"
|
|
31
|
+
:id="id"
|
|
32
|
+
v-bind="to ? { to } : { href }"
|
|
33
|
+
aria-haspopup="true"
|
|
34
|
+
:aria-expanded="expanded"
|
|
35
|
+
:type="is === 'button' ? 'button': undefined">
|
|
36
|
+
<slot />
|
|
37
|
+
</component>
|
|
38
|
+
</template>
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import DropdownHandler from './DropdownHandler';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
|
|
6
|
+
mixins: [
|
|
7
|
+
DropdownHandler
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
};
|
|
11
|
+
</script>
|
|
12
|
+
|
|
1
13
|
<template>
|
|
2
14
|
<btn-group :class="classes">
|
|
3
15
|
<slot name="button" v-bind="scope">
|
|
@@ -9,8 +21,8 @@
|
|
|
9
21
|
:to="to"
|
|
10
22
|
:style="toggleStyle"
|
|
11
23
|
:class="toggleClasses"
|
|
12
|
-
@blur
|
|
13
|
-
@click
|
|
24
|
+
@blur="onBlur"
|
|
25
|
+
@click="onClickToggle">
|
|
14
26
|
<slot name="icon" />
|
|
15
27
|
<slot name="label">
|
|
16
28
|
{{ label }}
|
|
@@ -28,16 +40,4 @@
|
|
|
28
40
|
<slot />
|
|
29
41
|
</dropdown-menu>
|
|
30
42
|
</btn-group>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import DropdownHandler from './DropdownHandler';
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
|
|
38
|
-
mixins: [
|
|
39
|
-
DropdownHandler
|
|
40
|
-
]
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
</script>
|
|
43
|
+
</template>
|
package/src/BtnDropdownSplit.vue
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import DropdownHandler from './DropdownHandler';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
|
|
6
|
+
mixins: [
|
|
7
|
+
DropdownHandler
|
|
8
|
+
],
|
|
9
|
+
|
|
10
|
+
emits: [
|
|
11
|
+
'click'
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
};
|
|
15
|
+
</script>
|
|
16
|
+
|
|
1
17
|
<template>
|
|
2
|
-
<btn-group :class="classes" class="btn-dropdown-split"
|
|
18
|
+
<btn-group :class="classes" class="btn-dropdown-split">
|
|
3
19
|
<slot v-if="!dropleft" name="button" v-bind="scope">
|
|
4
20
|
<btn-dropdown-action
|
|
5
21
|
v-if="!dropleft"
|
|
@@ -9,7 +25,7 @@
|
|
|
9
25
|
:href="href"
|
|
10
26
|
:to="to"
|
|
11
27
|
:class="actionClasses"
|
|
12
|
-
@click
|
|
28
|
+
@click="e => $emit('click', e)">
|
|
13
29
|
<slot name="icon" />
|
|
14
30
|
<slot name="label">
|
|
15
31
|
{{ label }}
|
|
@@ -50,7 +66,7 @@
|
|
|
50
66
|
:href="href"
|
|
51
67
|
:to="to"
|
|
52
68
|
:class="actionClasses"
|
|
53
|
-
@click
|
|
69
|
+
@click="e => $emit('click', e)">
|
|
54
70
|
<slot name="icon" />
|
|
55
71
|
<slot name="label">
|
|
56
72
|
{{ label }}
|
|
@@ -58,16 +74,4 @@
|
|
|
58
74
|
</btn-dropdown-action>
|
|
59
75
|
</slot>
|
|
60
76
|
</btn-group>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script>
|
|
64
|
-
import DropdownHandler from './DropdownHandler';
|
|
65
|
-
|
|
66
|
-
export default {
|
|
67
|
-
|
|
68
|
-
mixins: [
|
|
69
|
-
DropdownHandler
|
|
70
|
-
]
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
</script>
|
|
77
|
+
</template>
|
package/src/DropdownHandler.js
CHANGED
|
@@ -16,6 +16,13 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
extends: Btn,
|
|
18
18
|
|
|
19
|
+
emits: [
|
|
20
|
+
'click-toggle',
|
|
21
|
+
'show',
|
|
22
|
+
'hide',
|
|
23
|
+
'toggle'
|
|
24
|
+
],
|
|
25
|
+
|
|
19
26
|
props: {
|
|
20
27
|
|
|
21
28
|
/**
|
|
@@ -208,7 +215,8 @@ export default {
|
|
|
208
215
|
hide: this.hide,
|
|
209
216
|
onBlur: this.onBlur,
|
|
210
217
|
onClickItem: this.onClickItem,
|
|
211
|
-
onClickToggle: this.onClickToggle
|
|
218
|
+
onClickToggle: this.onClickToggle,
|
|
219
|
+
expanded: this.expanded
|
|
212
220
|
};
|
|
213
221
|
},
|
|
214
222
|
|
|
@@ -283,7 +291,7 @@ export default {
|
|
|
283
291
|
}
|
|
284
292
|
},
|
|
285
293
|
|
|
286
|
-
|
|
294
|
+
beforeUnmount() {
|
|
287
295
|
this.popper && this.popper.destroy();
|
|
288
296
|
},
|
|
289
297
|
|
|
@@ -406,8 +414,6 @@ export default {
|
|
|
406
414
|
* @return void
|
|
407
415
|
*/
|
|
408
416
|
onClickToggle(e) {
|
|
409
|
-
e.target.focus();
|
|
410
|
-
|
|
411
417
|
this.$emit('click-toggle', e);
|
|
412
418
|
|
|
413
419
|
if(!e.defaultPrevented) {
|