@vue-interface/btn-dropdown 2.0.0-beta.5 → 2.0.0-beta.9
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 → btn-dropdown.js} +477 -394
- package/dist/{btn-dropdown.umd.js → btn-dropdown.umd.cjs} +2 -2
- package/{index.js → dist/index.d.ts} +1 -4
- package/dist/src/BtnDropdown.vue.d.ts +9 -0
- package/dist/src/BtnDropdownAction.vue.d.ts +43 -0
- package/dist/src/BtnDropdownSingle.vue.d.ts +236 -0
- package/dist/src/BtnDropdownSplit.vue.d.ts +238 -0
- package/dist/src/DropdownHandler.d.ts +463 -0
- package/package.json +20 -13
- package/src/BtnDropdown.vue +0 -121
- package/src/BtnDropdownAction.vue +0 -38
- package/src/BtnDropdownSingle.vue +0 -45
- package/src/BtnDropdownSplit.vue +0 -79
- package/src/DropdownHandler.js +0 -458
- /package/dist/{btn-dropdown.css → style.css} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j],
|
|
3
|
-
return e.concat([t + "-" +
|
|
1
|
+
import { defineComponent as F, openBlock as H, createBlock as te, resolveDynamicComponent as Ue, mergeProps as me, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Xe, normalizeClass as W, h as Lt, Fragment as Vt, resolveComponent as re, createVNode as we, normalizeProps as ae, guardReactiveProps as Re, normalizeStyle as It, withKeys as yt, withModifiers as wt, createCommentVNode as ce, createSlots as qt } from "vue";
|
|
2
|
+
var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j], se = "start", $e = "end", Ft = "clippingParents", $t = "viewport", ve = "popper", Wt = "reference", lt = /* @__PURE__ */ xe.reduce(function(e, t) {
|
|
3
|
+
return e.concat([t + "-" + se, t + "-" + $e]);
|
|
4
4
|
}, []), Ot = /* @__PURE__ */ [].concat(xe, [Te]).reduce(function(e, t) {
|
|
5
|
-
return e.concat([t, t + "-" +
|
|
6
|
-
}, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite",
|
|
7
|
-
function
|
|
5
|
+
return e.concat([t, t + "-" + se, t + "-" + $e]);
|
|
6
|
+
}, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite", Fe = [Ht, Ut, Xt, Yt, Kt, Gt, Jt, Qt, Zt];
|
|
7
|
+
function U(e) {
|
|
8
8
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function L(e) {
|
|
11
11
|
if (e == null)
|
|
12
12
|
return window;
|
|
13
13
|
if (e.toString() !== "[object Window]") {
|
|
@@ -16,25 +16,25 @@ function I(e) {
|
|
|
16
16
|
}
|
|
17
17
|
return e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
var t =
|
|
19
|
+
function oe(e) {
|
|
20
|
+
var t = L(e).Element;
|
|
21
21
|
return e instanceof t || e instanceof Element;
|
|
22
22
|
}
|
|
23
23
|
function z(e) {
|
|
24
|
-
var t =
|
|
24
|
+
var t = L(e).HTMLElement;
|
|
25
25
|
return e instanceof t || e instanceof HTMLElement;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ye(e) {
|
|
28
28
|
if (typeof ShadowRoot > "u")
|
|
29
29
|
return !1;
|
|
30
|
-
var t =
|
|
30
|
+
var t = L(e).ShadowRoot;
|
|
31
31
|
return e instanceof t || e instanceof ShadowRoot;
|
|
32
32
|
}
|
|
33
33
|
function _t(e) {
|
|
34
34
|
var t = e.state;
|
|
35
35
|
Object.keys(t.elements).forEach(function(r) {
|
|
36
36
|
var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
|
|
37
|
-
!z(i) || !
|
|
37
|
+
!z(i) || !U(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
|
|
38
38
|
var l = o[a];
|
|
39
39
|
l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l);
|
|
40
40
|
}));
|
|
@@ -58,7 +58,7 @@ function er(e) {
|
|
|
58
58
|
var o = t.elements[n], i = t.attributes[n] || {}, a = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = a.reduce(function(s, f) {
|
|
59
59
|
return s[f] = "", s;
|
|
60
60
|
}, {});
|
|
61
|
-
!z(o) || !
|
|
61
|
+
!z(o) || !U(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
|
|
62
62
|
o.removeAttribute(s);
|
|
63
63
|
}));
|
|
64
64
|
});
|
|
@@ -72,24 +72,24 @@ const tr = {
|
|
|
72
72
|
effect: er,
|
|
73
73
|
requires: ["computeStyles"]
|
|
74
74
|
};
|
|
75
|
-
function
|
|
75
|
+
function I(e) {
|
|
76
76
|
return e.split("-")[0];
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
78
|
+
var ne = Math.max, je = Math.min, le = Math.round;
|
|
79
|
+
function We() {
|
|
80
80
|
var e = navigator.userAgentData;
|
|
81
81
|
return e != null && e.brands ? e.brands.map(function(t) {
|
|
82
82
|
return t.brand + "/" + t.version;
|
|
83
83
|
}).join(" ") : navigator.userAgent;
|
|
84
84
|
}
|
|
85
85
|
function xt() {
|
|
86
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
86
|
+
return !/^((?!chrome|android).)*safari/i.test(We());
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function pe(e, t, r) {
|
|
89
89
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
90
90
|
var n = e.getBoundingClientRect(), o = 1, i = 1;
|
|
91
|
-
t && z(e) && (o = e.offsetWidth > 0 &&
|
|
92
|
-
var a =
|
|
91
|
+
t && z(e) && (o = e.offsetWidth > 0 && le(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && le(n.height) / e.offsetHeight || 1);
|
|
92
|
+
var a = oe(e) ? L(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,8 +101,8 @@ function le(e, t, r) {
|
|
|
101
101
|
y: p
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var t =
|
|
104
|
+
function Ke(e) {
|
|
105
|
+
var t = pe(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,
|
|
108
108
|
y: e.offsetTop,
|
|
@@ -110,11 +110,11 @@ function Ye(e) {
|
|
|
110
110
|
height: n
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ct(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 && Ye(r)) {
|
|
118
118
|
var n = t;
|
|
119
119
|
do {
|
|
120
120
|
if (n && e.isSameNode(n))
|
|
@@ -125,42 +125,42 @@ function $t(e, t) {
|
|
|
125
125
|
return !1;
|
|
126
126
|
}
|
|
127
127
|
function q(e) {
|
|
128
|
-
return
|
|
128
|
+
return L(e).getComputedStyle(e);
|
|
129
129
|
}
|
|
130
130
|
function rr(e) {
|
|
131
|
-
return ["table", "td", "th"].indexOf(
|
|
131
|
+
return ["table", "td", "th"].indexOf(U(e)) >= 0;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return ((
|
|
133
|
+
function K(e) {
|
|
134
|
+
return ((oe(e) ? e.ownerDocument : (
|
|
135
135
|
// $FlowFixMe[prop-missing]
|
|
136
136
|
e.document
|
|
137
137
|
)) || window.document).documentElement;
|
|
138
138
|
}
|
|
139
139
|
function ze(e) {
|
|
140
|
-
return
|
|
140
|
+
return U(e) === "html" ? e : (
|
|
141
141
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
142
142
|
// $FlowFixMe[incompatible-return]
|
|
143
143
|
// $FlowFixMe[prop-missing]
|
|
144
144
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
145
145
|
e.parentNode || // DOM Element detected
|
|
146
|
-
(
|
|
146
|
+
(Ye(e) ? e.host : null) || // ShadowRoot detected
|
|
147
147
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
148
|
-
|
|
148
|
+
K(e)
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function pt(e) {
|
|
152
152
|
return !z(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
153
153
|
q(e).position === "fixed" ? null : e.offsetParent;
|
|
154
154
|
}
|
|
155
155
|
function nr(e) {
|
|
156
|
-
var t = /firefox/i.test(
|
|
156
|
+
var t = /firefox/i.test(We()), r = /Trident/i.test(We());
|
|
157
157
|
if (r && z(e)) {
|
|
158
158
|
var n = q(e);
|
|
159
159
|
if (n.position === "fixed")
|
|
160
160
|
return null;
|
|
161
161
|
}
|
|
162
162
|
var o = ze(e);
|
|
163
|
-
for (
|
|
163
|
+
for (Ye(o) && (o = o.host); z(o) && ["html", "body"].indexOf(U(o)) < 0; ) {
|
|
164
164
|
var i = q(o);
|
|
165
165
|
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")
|
|
166
166
|
return o;
|
|
@@ -168,22 +168,22 @@ function nr(e) {
|
|
|
168
168
|
}
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
for (var t =
|
|
173
|
-
r =
|
|
174
|
-
return r && (
|
|
171
|
+
function Ce(e) {
|
|
172
|
+
for (var t = L(e), r = pt(e); r && rr(r) && q(r).position === "static"; )
|
|
173
|
+
r = pt(r);
|
|
174
|
+
return r && (U(r) === "html" || U(r) === "body" && q(r).position === "static") ? t : r || nr(e) || t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ge(e) {
|
|
177
177
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function he(e, t, r) {
|
|
180
|
+
return ne(e, je(t, r));
|
|
181
181
|
}
|
|
182
182
|
function or(e, t, r) {
|
|
183
|
-
var n =
|
|
183
|
+
var n = he(e, t, r);
|
|
184
184
|
return n > r ? r : n;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Pt() {
|
|
187
187
|
return {
|
|
188
188
|
top: 0,
|
|
189
189
|
right: 0,
|
|
@@ -191,10 +191,10 @@ function Ct() {
|
|
|
191
191
|
left: 0
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return Object.assign({},
|
|
194
|
+
function Et(e) {
|
|
195
|
+
return Object.assign({}, Pt(), e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function St(e, t) {
|
|
198
198
|
return t.reduce(function(r, n) {
|
|
199
199
|
return r[n] = e, r;
|
|
200
200
|
}, {});
|
|
@@ -202,19 +202,19 @@ function Et(e, t) {
|
|
|
202
202
|
var ir = function(t, r) {
|
|
203
203
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
204
204
|
placement: r.placement
|
|
205
|
-
})) : t,
|
|
205
|
+
})) : t, Et(typeof t != "number" ? t : St(t, xe));
|
|
206
206
|
};
|
|
207
207
|
function ar(e) {
|
|
208
|
-
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l =
|
|
208
|
+
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = I(r.placement), s = Ge(l), f = [j, M].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
209
209
|
if (!(!i || !a)) {
|
|
210
|
-
var h = ir(o.padding, r), y =
|
|
211
|
-
r.modifiersData[n] = (t = {}, t[E] =
|
|
210
|
+
var h = ir(o.padding, r), y = Ke(i), u = s === "y" ? R : j, $ = s === "y" ? N : M, g = 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, x = g / 2 - v / 2, d = h[u], m = C - y[p] - h[$], c = C / 2 - y[p] / 2 + x, O = he(d, c, m), E = s;
|
|
211
|
+
r.modifiersData[n] = (t = {}, t[E] = O, t.centerOffset = O - c, t);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
function sr(e) {
|
|
215
215
|
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
216
216
|
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
217
|
-
if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))),
|
|
217
|
+
if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !Ct(t.elements.popper, o)) {
|
|
218
218
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
@@ -230,7 +230,7 @@ const lr = {
|
|
|
230
230
|
requires: ["popperOffsets"],
|
|
231
231
|
requiresIfExists: ["preventOverflow"]
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function fe(e) {
|
|
234
234
|
return e.split("-")[1];
|
|
235
235
|
}
|
|
236
236
|
var pr = {
|
|
@@ -242,33 +242,33 @@ var pr = {
|
|
|
242
242
|
function fr(e) {
|
|
243
243
|
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
244
244
|
return {
|
|
245
|
-
x:
|
|
246
|
-
y:
|
|
245
|
+
x: le(t * o) / o || 0,
|
|
246
|
+
y: le(r * o) / o || 0
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
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,
|
|
249
|
+
function ft(e) {
|
|
250
|
+
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, $ = a.y, g = $ === void 0 ? 0 : $, v = typeof p == "function" ? p({
|
|
251
251
|
x: u,
|
|
252
|
-
y:
|
|
252
|
+
y: g
|
|
253
253
|
}) : {
|
|
254
254
|
x: u,
|
|
255
|
-
y:
|
|
255
|
+
y: g
|
|
256
256
|
};
|
|
257
|
-
u = v.x,
|
|
258
|
-
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"),
|
|
257
|
+
u = v.x, g = v.y;
|
|
258
|
+
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), x = j, d = R, m = window;
|
|
259
259
|
if (f) {
|
|
260
|
-
var c =
|
|
261
|
-
if (c ===
|
|
260
|
+
var c = Ce(r), O = "clientHeight", E = "clientWidth";
|
|
261
|
+
if (c === L(r) && (c = K(r), q(c).position !== "static" && l === "absolute" && (O = "scrollHeight", E = "scrollWidth")), c = c, o === R || (o === j || o === M) && i === $e) {
|
|
262
262
|
d = N;
|
|
263
|
-
var S = h && c ===
|
|
263
|
+
var S = h && c === m && m.visualViewport ? m.visualViewport.height : (
|
|
264
264
|
// $FlowFixMe[prop-missing]
|
|
265
|
-
c[
|
|
265
|
+
c[O]
|
|
266
266
|
);
|
|
267
|
-
|
|
267
|
+
g -= S - n.height, g *= s ? 1 : -1;
|
|
268
268
|
}
|
|
269
|
-
if (o === j || (o === R || o === N) && i ===
|
|
270
|
-
|
|
271
|
-
var k = h && c ===
|
|
269
|
+
if (o === j || (o === R || o === N) && i === $e) {
|
|
270
|
+
x = M;
|
|
271
|
+
var k = h && c === m && m.visualViewport ? m.visualViewport.width : (
|
|
272
272
|
// $FlowFixMe[prop-missing]
|
|
273
273
|
c[E]
|
|
274
274
|
);
|
|
@@ -279,16 +279,16 @@ function pt(e) {
|
|
|
279
279
|
position: l
|
|
280
280
|
}, f && pr), D = p === !0 ? fr({
|
|
281
281
|
x: u,
|
|
282
|
-
y:
|
|
282
|
+
y: g
|
|
283
283
|
}) : {
|
|
284
284
|
x: u,
|
|
285
|
-
y:
|
|
285
|
+
y: g
|
|
286
286
|
};
|
|
287
|
-
if (u = D.x,
|
|
287
|
+
if (u = D.x, g = D.y, s) {
|
|
288
288
|
var A;
|
|
289
|
-
return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[
|
|
289
|
+
return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[x] = w ? "0" : "", A.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + g + "px)" : "translate3d(" + u + "px, " + g + "px, 0)", A));
|
|
290
290
|
}
|
|
291
|
-
return Object.assign({}, b, (t = {}, t[d] = C ?
|
|
291
|
+
return Object.assign({}, b, (t = {}, t[d] = C ? g + "px" : "", t[x] = w ? u + "px" : "", t.transform = "", t));
|
|
292
292
|
}
|
|
293
293
|
function ur(e) {
|
|
294
294
|
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
|
|
@@ -303,19 +303,19 @@ function ur(e) {
|
|
|
303
303
|
`, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
304
304
|
}
|
|
305
305
|
var p = {
|
|
306
|
-
placement:
|
|
307
|
-
variation:
|
|
306
|
+
placement: I(t.placement),
|
|
307
|
+
variation: fe(t.placement),
|
|
308
308
|
popper: t.elements.popper,
|
|
309
309
|
popperRect: t.rects.popper,
|
|
310
310
|
gpuAcceleration: o,
|
|
311
311
|
isFixed: t.options.strategy === "fixed"
|
|
312
312
|
};
|
|
313
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
313
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ft(Object.assign({}, p, {
|
|
314
314
|
offsets: t.modifiersData.popperOffsets,
|
|
315
315
|
position: t.options.strategy,
|
|
316
316
|
adaptive: a,
|
|
317
317
|
roundOffsets: s
|
|
318
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
318
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ft(Object.assign({}, p, {
|
|
319
319
|
offsets: t.modifiersData.arrow,
|
|
320
320
|
position: "absolute",
|
|
321
321
|
adaptive: !1,
|
|
@@ -335,7 +335,7 @@ var De = {
|
|
|
335
335
|
passive: !0
|
|
336
336
|
};
|
|
337
337
|
function cr(e) {
|
|
338
|
-
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s =
|
|
338
|
+
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = L(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
339
339
|
return i && f.forEach(function(p) {
|
|
340
340
|
p.addEventListener("scroll", r.update, De);
|
|
341
341
|
}), l && s.addEventListener("resize", r.update, De), function() {
|
|
@@ -364,27 +364,27 @@ function Ae(e) {
|
|
|
364
364
|
return hr[t];
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var gr = {
|
|
368
368
|
start: "end",
|
|
369
369
|
end: "start"
|
|
370
370
|
};
|
|
371
|
-
function
|
|
371
|
+
function ut(e) {
|
|
372
372
|
return e.replace(/start|end/g, function(t) {
|
|
373
|
-
return
|
|
373
|
+
return gr[t];
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
var t =
|
|
376
|
+
function Je(e) {
|
|
377
|
+
var t = L(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
378
378
|
return {
|
|
379
379
|
scrollLeft: r,
|
|
380
380
|
scrollTop: n
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function Qe(e) {
|
|
384
|
+
return pe(K(e)).left + Je(e).scrollLeft;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
var r =
|
|
386
|
+
function mr(e, t) {
|
|
387
|
+
var r = L(e), n = K(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
|
|
388
388
|
if (o) {
|
|
389
389
|
i = o.width, a = o.height;
|
|
390
390
|
var f = xt();
|
|
@@ -393,36 +393,36 @@ function gr(e, t) {
|
|
|
393
393
|
return {
|
|
394
394
|
width: i,
|
|
395
395
|
height: a,
|
|
396
|
-
x: l +
|
|
396
|
+
x: l + Qe(e),
|
|
397
397
|
y: s
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
function br(e) {
|
|
401
|
-
var t, r =
|
|
402
|
-
return q(o || r).direction === "rtl" && (l +=
|
|
401
|
+
var t, r = K(e), n = Je(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = ne(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = ne(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Qe(e), s = -n.scrollTop;
|
|
402
|
+
return q(o || r).direction === "rtl" && (l += ne(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
403
403
|
width: i,
|
|
404
404
|
height: a,
|
|
405
405
|
x: l,
|
|
406
406
|
y: s
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ze(e) {
|
|
410
410
|
var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
411
411
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
return ["html", "body", "#document"].indexOf(
|
|
413
|
+
function kt(e) {
|
|
414
|
+
return ["html", "body", "#document"].indexOf(U(e)) >= 0 ? e.ownerDocument.body : z(e) && Ze(e) ? e : kt(ze(e));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function ge(e, t) {
|
|
417
417
|
var r;
|
|
418
418
|
t === void 0 && (t = []);
|
|
419
|
-
var n =
|
|
419
|
+
var n = kt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = L(n), a = o ? [i].concat(i.visualViewport || [], Ze(n) ? n : []) : n, l = t.concat(a);
|
|
420
420
|
return o ? l : (
|
|
421
421
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
422
|
-
l.concat(
|
|
422
|
+
l.concat(ge(ze(a)))
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function He(e) {
|
|
426
426
|
return Object.assign({}, e, {
|
|
427
427
|
left: e.x,
|
|
428
428
|
top: e.y,
|
|
@@ -431,27 +431,27 @@ function We(e) {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
function yr(e, t) {
|
|
434
|
-
var r =
|
|
434
|
+
var r = pe(e, !1, t === "fixed");
|
|
435
435
|
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;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return t ===
|
|
437
|
+
function dt(e, t, r) {
|
|
438
|
+
return t === $t ? He(mr(e, r)) : oe(t) ? yr(t, r) : He(br(K(e)));
|
|
439
439
|
}
|
|
440
440
|
function wr(e) {
|
|
441
|
-
var t =
|
|
442
|
-
return
|
|
443
|
-
return
|
|
441
|
+
var t = ge(ze(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && z(e) ? Ce(e) : e;
|
|
442
|
+
return oe(n) ? t.filter(function(o) {
|
|
443
|
+
return oe(o) && Ct(o, n) && U(o) !== "body";
|
|
444
444
|
}) : [];
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function $r(e, t, r, n) {
|
|
447
447
|
var o = t === "clippingParents" ? wr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
|
|
448
|
-
var p =
|
|
449
|
-
return s.top =
|
|
450
|
-
},
|
|
448
|
+
var p = dt(e, f, n);
|
|
449
|
+
return s.top = ne(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = ne(p.left, s.left), s;
|
|
450
|
+
}, dt(e, a, n));
|
|
451
451
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
var t = e.reference, r = e.element, n = e.placement, o = n ?
|
|
453
|
+
function Bt(e) {
|
|
454
|
+
var t = e.reference, r = e.element, n = e.placement, o = n ? I(n) : null, i = n ? fe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
|
|
455
455
|
switch (o) {
|
|
456
456
|
case R:
|
|
457
457
|
s = {
|
|
@@ -483,14 +483,14 @@ function kt(e) {
|
|
|
483
483
|
y: t.y
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
var f = o ?
|
|
486
|
+
var f = o ? Ge(o) : null;
|
|
487
487
|
if (f != null) {
|
|
488
488
|
var p = f === "y" ? "height" : "width";
|
|
489
489
|
switch (i) {
|
|
490
|
-
case
|
|
490
|
+
case se:
|
|
491
491
|
s[f] = s[f] - (t[p] / 2 - r[p] / 2);
|
|
492
492
|
break;
|
|
493
|
-
case
|
|
493
|
+
case $e:
|
|
494
494
|
s[f] = s[f] + (t[p] / 2 - r[p] / 2);
|
|
495
495
|
break;
|
|
496
496
|
}
|
|
@@ -499,95 +499,95 @@ function kt(e) {
|
|
|
499
499
|
}
|
|
500
500
|
function Oe(e, t) {
|
|
501
501
|
t === void 0 && (t = {});
|
|
502
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ?
|
|
502
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ? $t : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, $ = u === void 0 ? !1 : u, g = r.padding, v = g === void 0 ? 0 : g, w = Et(typeof v != "number" ? v : St(v, xe)), C = y === ve ? Wt : ve, x = e.rects.popper, d = e.elements[$ ? C : y], m = $r(oe(d) ? d : d.contextElement || K(e.elements.popper), s, p, a), c = pe(e.elements.reference), O = Bt({
|
|
503
503
|
reference: c,
|
|
504
|
-
element:
|
|
504
|
+
element: x,
|
|
505
505
|
strategy: "absolute",
|
|
506
506
|
placement: o
|
|
507
|
-
}), E =
|
|
508
|
-
top:
|
|
509
|
-
bottom: S.bottom -
|
|
510
|
-
left:
|
|
511
|
-
right: S.right -
|
|
507
|
+
}), E = He(Object.assign({}, x, O)), S = y === ve ? E : c, k = {
|
|
508
|
+
top: m.top - S.top + w.top,
|
|
509
|
+
bottom: S.bottom - m.bottom + w.bottom,
|
|
510
|
+
left: m.left - S.left + w.left,
|
|
511
|
+
right: S.right - m.right + w.right
|
|
512
512
|
}, b = e.modifiersData.offset;
|
|
513
|
-
if (y ===
|
|
513
|
+
if (y === ve && b) {
|
|
514
514
|
var D = b[o];
|
|
515
515
|
Object.keys(k).forEach(function(A) {
|
|
516
|
-
var
|
|
517
|
-
k[A] += D[
|
|
516
|
+
var G = [M, N].indexOf(A) >= 0 ? 1 : -1, J = [R, N].indexOf(A) >= 0 ? "y" : "x";
|
|
517
|
+
k[A] += D[J] * G;
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
return k;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Or(e, t) {
|
|
523
523
|
t === void 0 && (t = {});
|
|
524
|
-
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 =
|
|
525
|
-
return
|
|
526
|
-
}) : xe, y = h.filter(function(
|
|
527
|
-
return f.indexOf(
|
|
524
|
+
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 = fe(n), h = p ? l ? lt : lt.filter(function($) {
|
|
525
|
+
return fe($) === p;
|
|
526
|
+
}) : xe, y = h.filter(function($) {
|
|
527
|
+
return f.indexOf($) >= 0;
|
|
528
528
|
});
|
|
529
529
|
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(" ")));
|
|
530
|
-
var u = y.reduce(function(
|
|
531
|
-
return
|
|
532
|
-
placement:
|
|
530
|
+
var u = y.reduce(function($, g) {
|
|
531
|
+
return $[g] = Oe(e, {
|
|
532
|
+
placement: g,
|
|
533
533
|
boundary: o,
|
|
534
534
|
rootBoundary: i,
|
|
535
535
|
padding: a
|
|
536
|
-
})[
|
|
536
|
+
})[I(g)], $;
|
|
537
537
|
}, {});
|
|
538
|
-
return Object.keys(u).sort(function(
|
|
539
|
-
return u[
|
|
538
|
+
return Object.keys(u).sort(function($, g) {
|
|
539
|
+
return u[$] - u[g];
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
if (
|
|
542
|
+
function xr(e) {
|
|
543
|
+
if (I(e) === Te)
|
|
544
544
|
return [];
|
|
545
545
|
var t = Ae(e);
|
|
546
|
-
return [
|
|
546
|
+
return [ut(e), t, ut(t)];
|
|
547
547
|
}
|
|
548
548
|
function Cr(e) {
|
|
549
549
|
var t = e.state, r = e.options, n = e.name;
|
|
550
550
|
if (!t.modifiersData[n]._skip) {
|
|
551
|
-
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,
|
|
552
|
-
return
|
|
553
|
-
placement:
|
|
551
|
+
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, $ = u === void 0 ? !0 : u, g = r.allowedAutoPlacements, v = t.options.placement, w = I(v), C = w === v, x = s || (C || !$ ? [Ae(v)] : xr(v)), d = [v].concat(x).reduce(function(ie, X) {
|
|
552
|
+
return ie.concat(I(X) === Te ? Or(t, {
|
|
553
|
+
placement: X,
|
|
554
554
|
boundary: p,
|
|
555
555
|
rootBoundary: h,
|
|
556
556
|
padding: f,
|
|
557
|
-
flipVariations:
|
|
558
|
-
allowedAutoPlacements:
|
|
559
|
-
}) :
|
|
560
|
-
}, []),
|
|
561
|
-
var b = d[k], D =
|
|
557
|
+
flipVariations: $,
|
|
558
|
+
allowedAutoPlacements: g
|
|
559
|
+
}) : X);
|
|
560
|
+
}, []), m = t.rects.reference, c = t.rects.popper, O = /* @__PURE__ */ new Map(), E = !0, S = d[0], k = 0; k < d.length; k++) {
|
|
561
|
+
var b = d[k], D = I(b), A = fe(b) === se, G = [R, N].indexOf(D) >= 0, J = G ? "width" : "height", T = Oe(t, {
|
|
562
562
|
placement: b,
|
|
563
563
|
boundary: p,
|
|
564
564
|
rootBoundary: h,
|
|
565
565
|
altBoundary: y,
|
|
566
566
|
padding: f
|
|
567
|
-
}),
|
|
568
|
-
|
|
569
|
-
var Pe = Ae(
|
|
570
|
-
if (i &&
|
|
571
|
-
return
|
|
567
|
+
}), V = G ? A ? M : j : A ? N : R;
|
|
568
|
+
m[J] > c[J] && (V = Ae(V));
|
|
569
|
+
var Pe = Ae(V), Q = [];
|
|
570
|
+
if (i && Q.push(T[D] <= 0), l && Q.push(T[V] <= 0, T[Pe] <= 0), Q.every(function(ie) {
|
|
571
|
+
return ie;
|
|
572
572
|
})) {
|
|
573
573
|
S = b, E = !1;
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
|
-
|
|
576
|
+
O.set(b, Q);
|
|
577
577
|
}
|
|
578
578
|
if (E)
|
|
579
|
-
for (var Ee =
|
|
580
|
-
var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
return
|
|
584
|
-
return
|
|
579
|
+
for (var Ee = $ ? 3 : 1, Me = function(X) {
|
|
580
|
+
var de = d.find(function(ke) {
|
|
581
|
+
var Z = O.get(ke);
|
|
582
|
+
if (Z)
|
|
583
|
+
return Z.slice(0, X).every(function(Le) {
|
|
584
|
+
return Le;
|
|
585
585
|
});
|
|
586
586
|
});
|
|
587
|
-
if (
|
|
588
|
-
return S =
|
|
589
|
-
},
|
|
590
|
-
var Se =
|
|
587
|
+
if (de)
|
|
588
|
+
return S = de, "break";
|
|
589
|
+
}, ue = Ee; ue > 0; ue--) {
|
|
590
|
+
var Se = Me(ue);
|
|
591
591
|
if (Se === "break")
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
@@ -604,7 +604,7 @@ const Pr = {
|
|
|
604
604
|
_skip: !1
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
|
-
function
|
|
607
|
+
function ct(e, t, r) {
|
|
608
608
|
return r === void 0 && (r = {
|
|
609
609
|
x: 0,
|
|
610
610
|
y: 0
|
|
@@ -615,7 +615,7 @@ function dt(e, t, r) {
|
|
|
615
615
|
left: e.left - t.width - r.x
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function vt(e) {
|
|
619
619
|
return [R, M, N, j].some(function(t) {
|
|
620
620
|
return e[t] >= 0;
|
|
621
621
|
});
|
|
@@ -625,7 +625,7 @@ function Er(e) {
|
|
|
625
625
|
elementContext: "reference"
|
|
626
626
|
}), l = Oe(t, {
|
|
627
627
|
altBoundary: !0
|
|
628
|
-
}), s =
|
|
628
|
+
}), s = ct(a, n), f = ct(l, o, i), p = vt(s), h = vt(f);
|
|
629
629
|
t.modifiersData[r] = {
|
|
630
630
|
referenceClippingOffsets: s,
|
|
631
631
|
popperEscapeOffsets: f,
|
|
@@ -644,7 +644,7 @@ const Sr = {
|
|
|
644
644
|
fn: Er
|
|
645
645
|
};
|
|
646
646
|
function kr(e, t, r) {
|
|
647
|
-
var n =
|
|
647
|
+
var n = I(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
648
648
|
placement: e
|
|
649
649
|
})) : r, a = i[0], l = i[1];
|
|
650
650
|
return a = a || 0, l = (l || 0) * o, [j, M].indexOf(n) >= 0 ? {
|
|
@@ -670,7 +670,7 @@ const Dr = {
|
|
|
670
670
|
};
|
|
671
671
|
function Ar(e) {
|
|
672
672
|
var t = e.state, r = e.name;
|
|
673
|
-
t.modifiersData[r] =
|
|
673
|
+
t.modifiersData[r] = Bt({
|
|
674
674
|
reference: t.rects.reference,
|
|
675
675
|
element: t.rects.popper,
|
|
676
676
|
strategy: "absolute",
|
|
@@ -688,14 +688,14 @@ function jr(e) {
|
|
|
688
688
|
return e === "x" ? "y" : "x";
|
|
689
689
|
}
|
|
690
690
|
function Tr(e) {
|
|
691
|
-
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,
|
|
691
|
+
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, $ = r.tetherOffset, g = $ === void 0 ? 0 : $, v = Oe(t, {
|
|
692
692
|
boundary: s,
|
|
693
693
|
rootBoundary: f,
|
|
694
694
|
padding: h,
|
|
695
695
|
altBoundary: p
|
|
696
|
-
}), w =
|
|
696
|
+
}), w = I(t.placement), C = fe(t.placement), x = !C, d = Ge(w), m = jr(d), c = t.modifiersData.popperOffsets, O = t.rects.reference, E = t.rects.popper, S = typeof g == "function" ? g(Object.assign({}, t.rects, {
|
|
697
697
|
placement: t.placement
|
|
698
|
-
})) :
|
|
698
|
+
})) : g, k = typeof S == "number" ? {
|
|
699
699
|
mainAxis: S,
|
|
700
700
|
altAxis: S
|
|
701
701
|
} : Object.assign({
|
|
@@ -707,15 +707,15 @@ function Tr(e) {
|
|
|
707
707
|
};
|
|
708
708
|
if (c) {
|
|
709
709
|
if (i) {
|
|
710
|
-
var A,
|
|
710
|
+
var A, G = d === "y" ? R : j, J = d === "y" ? N : M, T = d === "y" ? "height" : "width", V = c[d], Pe = V + v[G], Q = V - v[J], Ee = u ? -E[T] / 2 : 0, Me = C === se ? O[T] : E[T], ue = C === se ? -E[T] : -O[T], Se = t.elements.arrow, ie = u && Se ? Ke(Se) : {
|
|
711
711
|
width: 0,
|
|
712
712
|
height: 0
|
|
713
|
-
},
|
|
714
|
-
c[d] =
|
|
713
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Pt(), de = X[G], ke = X[J], Z = he(0, O[T], ie[T]), Le = x ? O[T] / 2 - Ee - Z - de - k.mainAxis : Me - Z - de - k.mainAxis, Rt = x ? -O[T] / 2 + Ee + Z + ke + k.mainAxis : ue + Z + ke + k.mainAxis, Ve = t.elements.arrow && Ce(t.elements.arrow), jt = Ve ? d === "y" ? Ve.clientTop || 0 : Ve.clientLeft || 0 : 0, _e = (A = b == null ? void 0 : b[d]) != null ? A : 0, Tt = V + Le - _e - jt, zt = V + Rt - _e, et = he(u ? je(Pe, Tt) : Pe, V, u ? ne(Q, zt) : Q);
|
|
714
|
+
c[d] = et, D[d] = et - V;
|
|
715
715
|
}
|
|
716
716
|
if (l) {
|
|
717
|
-
var
|
|
718
|
-
c[
|
|
717
|
+
var tt, Nt = d === "x" ? R : j, Mt = d === "x" ? N : M, _ = c[m], Be = m === "y" ? "height" : "width", rt = _ + v[Nt], nt = _ - v[Mt], Ie = [R, j].indexOf(w) !== -1, ot = (tt = b == null ? void 0 : b[m]) != null ? tt : 0, it = Ie ? rt : _ - O[Be] - E[Be] - ot + k.altAxis, at = Ie ? _ + O[Be] + E[Be] - ot - k.altAxis : nt, st = u && Ie ? or(it, _, at) : he(u ? it : rt, _, u ? at : nt);
|
|
718
|
+
c[m] = st, D[m] = st - _;
|
|
719
719
|
}
|
|
720
720
|
t.modifiersData[n] = D;
|
|
721
721
|
}
|
|
@@ -734,30 +734,30 @@ function Nr(e) {
|
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
function Mr(e) {
|
|
737
|
-
return e ===
|
|
737
|
+
return e === L(e) || !z(e) ? Je(e) : Nr(e);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
var t = e.getBoundingClientRect(), r =
|
|
739
|
+
function Lr(e) {
|
|
740
|
+
var t = e.getBoundingClientRect(), r = le(t.width) / e.offsetWidth || 1, n = le(t.height) / e.offsetHeight || 1;
|
|
741
741
|
return r !== 1 || n !== 1;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Vr(e, t, r) {
|
|
744
744
|
r === void 0 && (r = !1);
|
|
745
|
-
var n = z(t), o = z(t) &&
|
|
745
|
+
var n = z(t), o = z(t) && Lr(t), i = K(t), a = pe(e, o, r), l = {
|
|
746
746
|
scrollLeft: 0,
|
|
747
747
|
scrollTop: 0
|
|
748
748
|
}, s = {
|
|
749
749
|
x: 0,
|
|
750
750
|
y: 0
|
|
751
751
|
};
|
|
752
|
-
return (n || !n && !r) && ((
|
|
753
|
-
|
|
752
|
+
return (n || !n && !r) && ((U(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
753
|
+
Ze(i)) && (l = Mr(t)), z(t) ? (s = pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Qe(i))), {
|
|
754
754
|
x: a.left + l.scrollLeft - s.x,
|
|
755
755
|
y: a.top + l.scrollTop - s.y,
|
|
756
756
|
width: a.width,
|
|
757
757
|
height: a.height
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function Ir(e) {
|
|
761
761
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
762
762
|
e.forEach(function(i) {
|
|
763
763
|
t.set(i.name, i);
|
|
@@ -777,8 +777,8 @@ function Vr(e) {
|
|
|
777
777
|
}), n;
|
|
778
778
|
}
|
|
779
779
|
function qr(e) {
|
|
780
|
-
var t =
|
|
781
|
-
return
|
|
780
|
+
var t = Ir(e);
|
|
781
|
+
return Fe.reduce(function(r, n) {
|
|
782
782
|
return r.concat(t.filter(function(o) {
|
|
783
783
|
return o.phase === n;
|
|
784
784
|
}));
|
|
@@ -794,53 +794,53 @@ function Fr(e) {
|
|
|
794
794
|
})), t;
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Y(e) {
|
|
798
798
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
799
799
|
r[n - 1] = arguments[n];
|
|
800
800
|
return [].concat(r).reduce(function(o, i) {
|
|
801
801
|
return o.replace(/%s/, i);
|
|
802
802
|
}, e);
|
|
803
803
|
}
|
|
804
|
-
var
|
|
804
|
+
var ee = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', ht = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
805
805
|
function Hr(e) {
|
|
806
806
|
e.forEach(function(t) {
|
|
807
|
-
[].concat(Object.keys(t),
|
|
807
|
+
[].concat(Object.keys(t), ht).filter(function(r, n, o) {
|
|
808
808
|
return o.indexOf(r) === n;
|
|
809
809
|
}).forEach(function(r) {
|
|
810
810
|
switch (r) {
|
|
811
811
|
case "name":
|
|
812
|
-
typeof t.name != "string" && console.error(
|
|
812
|
+
typeof t.name != "string" && console.error(Y(ee, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
813
813
|
break;
|
|
814
814
|
case "enabled":
|
|
815
|
-
typeof t.enabled != "boolean" && console.error(
|
|
815
|
+
typeof t.enabled != "boolean" && console.error(Y(ee, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
816
816
|
break;
|
|
817
817
|
case "phase":
|
|
818
|
-
|
|
818
|
+
Fe.indexOf(t.phase) < 0 && console.error(Y(ee, t.name, '"phase"', "either " + Fe.join(", "), '"' + String(t.phase) + '"'));
|
|
819
819
|
break;
|
|
820
820
|
case "fn":
|
|
821
|
-
typeof t.fn != "function" && console.error(
|
|
821
|
+
typeof t.fn != "function" && console.error(Y(ee, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
822
822
|
break;
|
|
823
823
|
case "effect":
|
|
824
|
-
t.effect != null && typeof t.effect != "function" && console.error(
|
|
824
|
+
t.effect != null && typeof t.effect != "function" && console.error(Y(ee, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
825
825
|
break;
|
|
826
826
|
case "requires":
|
|
827
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(
|
|
827
|
+
t.requires != null && !Array.isArray(t.requires) && console.error(Y(ee, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
828
828
|
break;
|
|
829
829
|
case "requiresIfExists":
|
|
830
|
-
Array.isArray(t.requiresIfExists) || console.error(
|
|
830
|
+
Array.isArray(t.requiresIfExists) || console.error(Y(ee, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
|
|
831
831
|
break;
|
|
832
832
|
case "options":
|
|
833
833
|
case "data":
|
|
834
834
|
break;
|
|
835
835
|
default:
|
|
836
|
-
console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' +
|
|
836
|
+
console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + ht.map(function(n) {
|
|
837
837
|
return '"' + n + '"';
|
|
838
838
|
}).join(", ") + '; but "' + r + '" was provided.');
|
|
839
839
|
}
|
|
840
840
|
t.requires && t.requires.forEach(function(n) {
|
|
841
841
|
e.find(function(o) {
|
|
842
842
|
return o.name === n;
|
|
843
|
-
}) == null && console.error(
|
|
843
|
+
}) == null && console.error(Y(Wr, String(t.name), n, n));
|
|
844
844
|
});
|
|
845
845
|
});
|
|
846
846
|
});
|
|
@@ -865,12 +865,12 @@ function Xr(e) {
|
|
|
865
865
|
return t[r];
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
|
-
var
|
|
868
|
+
var gt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Yr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
|
|
869
869
|
placement: "bottom",
|
|
870
870
|
modifiers: [],
|
|
871
871
|
strategy: "absolute"
|
|
872
872
|
};
|
|
873
|
-
function
|
|
873
|
+
function bt() {
|
|
874
874
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
875
875
|
t[r] = arguments[r];
|
|
876
876
|
return !t.some(function(n) {
|
|
@@ -897,31 +897,31 @@ function Kr(e) {
|
|
|
897
897
|
state: p,
|
|
898
898
|
setOptions: function(w) {
|
|
899
899
|
var C = typeof w == "function" ? w(p.options) : w;
|
|
900
|
-
|
|
901
|
-
reference:
|
|
902
|
-
popper:
|
|
900
|
+
g(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
|
|
901
|
+
reference: oe(l) ? ge(l) : l.contextElement ? ge(l.contextElement) : [],
|
|
902
|
+
popper: ge(s)
|
|
903
903
|
};
|
|
904
|
-
var
|
|
905
|
-
if (p.orderedModifiers =
|
|
904
|
+
var x = qr(Xr([].concat(n, p.options.modifiers)));
|
|
905
|
+
if (p.orderedModifiers = x.filter(function(b) {
|
|
906
906
|
return b.enabled;
|
|
907
907
|
}), process.env.NODE_ENV !== "production") {
|
|
908
|
-
var d = Ur([].concat(
|
|
908
|
+
var d = Ur([].concat(x, p.options.modifiers), function(b) {
|
|
909
909
|
var D = b.name;
|
|
910
910
|
return D;
|
|
911
911
|
});
|
|
912
|
-
if (Hr(d),
|
|
913
|
-
var
|
|
912
|
+
if (Hr(d), I(p.options.placement) === Te) {
|
|
913
|
+
var m = p.orderedModifiers.find(function(b) {
|
|
914
914
|
var D = b.name;
|
|
915
915
|
return D === "flip";
|
|
916
916
|
});
|
|
917
|
-
|
|
917
|
+
m || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
918
918
|
}
|
|
919
|
-
var c = q(s),
|
|
920
|
-
[
|
|
919
|
+
var c = q(s), O = c.marginTop, E = c.marginRight, S = c.marginBottom, k = c.marginLeft;
|
|
920
|
+
[O, E, S, k].some(function(b) {
|
|
921
921
|
return parseFloat(b);
|
|
922
922
|
}) && 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(" "));
|
|
923
923
|
}
|
|
924
|
-
return
|
|
924
|
+
return $(), u.update();
|
|
925
925
|
},
|
|
926
926
|
// Sync update – it will always be executed, even if not necessary. This
|
|
927
927
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -930,28 +930,28 @@ function Kr(e) {
|
|
|
930
930
|
// prefer the async Popper#update method
|
|
931
931
|
forceUpdate: function() {
|
|
932
932
|
if (!y) {
|
|
933
|
-
var w = p.elements, C = w.reference,
|
|
934
|
-
if (!
|
|
935
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
933
|
+
var w = p.elements, C = w.reference, x = w.popper;
|
|
934
|
+
if (!bt(C, x)) {
|
|
935
|
+
process.env.NODE_ENV !== "production" && console.error(gt);
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
938
|
p.rects = {
|
|
939
|
-
reference:
|
|
940
|
-
popper:
|
|
939
|
+
reference: Vr(C, Ce(x), p.options.strategy === "fixed"),
|
|
940
|
+
popper: Ke(x)
|
|
941
941
|
}, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
|
|
942
942
|
return p.modifiersData[b.name] = Object.assign({}, b.data);
|
|
943
943
|
});
|
|
944
|
-
for (var d = 0,
|
|
944
|
+
for (var d = 0, m = 0; m < p.orderedModifiers.length; m++) {
|
|
945
945
|
if (process.env.NODE_ENV !== "production" && (d += 1, d > 100)) {
|
|
946
946
|
console.error(Yr);
|
|
947
947
|
break;
|
|
948
948
|
}
|
|
949
949
|
if (p.reset === !0) {
|
|
950
|
-
p.reset = !1,
|
|
950
|
+
p.reset = !1, m = -1;
|
|
951
951
|
continue;
|
|
952
952
|
}
|
|
953
|
-
var c = p.orderedModifiers[
|
|
954
|
-
typeof
|
|
953
|
+
var c = p.orderedModifiers[m], O = c.fn, E = c.options, S = E === void 0 ? {} : E, k = c.name;
|
|
954
|
+
typeof O == "function" && (p = O({
|
|
955
955
|
state: p,
|
|
956
956
|
options: S,
|
|
957
957
|
name: k,
|
|
@@ -968,30 +968,30 @@ function Kr(e) {
|
|
|
968
968
|
});
|
|
969
969
|
}),
|
|
970
970
|
destroy: function() {
|
|
971
|
-
|
|
971
|
+
g(), y = !0;
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
if (!
|
|
975
|
-
return process.env.NODE_ENV !== "production" && console.error(
|
|
974
|
+
if (!bt(l, s))
|
|
975
|
+
return process.env.NODE_ENV !== "production" && console.error(gt), u;
|
|
976
976
|
u.setOptions(f).then(function(v) {
|
|
977
977
|
!y && f.onFirstUpdate && f.onFirstUpdate(v);
|
|
978
978
|
});
|
|
979
|
-
function
|
|
979
|
+
function $() {
|
|
980
980
|
p.orderedModifiers.forEach(function(v) {
|
|
981
|
-
var w = v.name, C = v.options,
|
|
981
|
+
var w = v.name, C = v.options, x = C === void 0 ? {} : C, d = v.effect;
|
|
982
982
|
if (typeof d == "function") {
|
|
983
|
-
var
|
|
983
|
+
var m = d({
|
|
984
984
|
state: p,
|
|
985
985
|
name: w,
|
|
986
986
|
instance: u,
|
|
987
|
-
options:
|
|
987
|
+
options: x
|
|
988
988
|
}), c = function() {
|
|
989
989
|
};
|
|
990
|
-
h.push(
|
|
990
|
+
h.push(m || c);
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function g() {
|
|
995
995
|
h.forEach(function(v) {
|
|
996
996
|
return v();
|
|
997
997
|
}), h = [];
|
|
@@ -1002,24 +1002,45 @@ function Kr(e) {
|
|
|
1002
1002
|
var Gr = [vr, Rr, dr, tr, Dr, Pr, zr, lr, Sr], Jr = /* @__PURE__ */ Kr({
|
|
1003
1003
|
defaultModifiers: Gr
|
|
1004
1004
|
});
|
|
1005
|
-
const Qr = {
|
|
1005
|
+
const Qr = F({
|
|
1006
1006
|
props: {
|
|
1007
|
+
/**
|
|
1008
|
+
* The generic component prefix.
|
|
1009
|
+
*/
|
|
1007
1010
|
componentPrefix: String,
|
|
1011
|
+
/**
|
|
1012
|
+
* The size name.
|
|
1013
|
+
*/
|
|
1008
1014
|
size: String,
|
|
1015
|
+
/**
|
|
1016
|
+
* The sizable prefix. Should use to component prefix, unless the
|
|
1017
|
+
* sizeable prefix is different than the component prefix.
|
|
1018
|
+
*/
|
|
1009
1019
|
sizePrefix: String
|
|
1010
1020
|
},
|
|
1011
1021
|
computed: {
|
|
1022
|
+
/**
|
|
1023
|
+
* The computed sizeable class prefix.
|
|
1024
|
+
*/
|
|
1012
1025
|
sizeableClassPrefix() {
|
|
1013
1026
|
return this.sizePrefix || this.componentPrefix;
|
|
1014
1027
|
},
|
|
1028
|
+
/**
|
|
1029
|
+
* Determines if the size already has the prefix.
|
|
1030
|
+
*/
|
|
1015
1031
|
hasSizeablePrefix() {
|
|
1016
|
-
return this.size === void 0 ? !1 : !!this.size.match(
|
|
1032
|
+
return this.size === void 0 ? !1 : !!this.size.match(
|
|
1033
|
+
new RegExp(`^${this.sizeableClassPrefix}`)
|
|
1034
|
+
);
|
|
1017
1035
|
},
|
|
1036
|
+
/**
|
|
1037
|
+
* The size classes that get injected into the DOM.
|
|
1038
|
+
*/
|
|
1018
1039
|
sizeableClass() {
|
|
1019
1040
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1020
1041
|
}
|
|
1021
1042
|
}
|
|
1022
|
-
}, Zr = {
|
|
1043
|
+
}), Zr = {
|
|
1023
1044
|
props: {
|
|
1024
1045
|
componentPrefix: String,
|
|
1025
1046
|
variant: String,
|
|
@@ -1030,14 +1051,19 @@ const Qr = {
|
|
|
1030
1051
|
return this.variantPrefix || this.componentPrefix;
|
|
1031
1052
|
},
|
|
1032
1053
|
hasVariantPrefix() {
|
|
1033
|
-
return this.variant === void 0 ? !1 : !!this.variant.match(
|
|
1054
|
+
return this.variant === void 0 ? !1 : !!this.variant.match(
|
|
1055
|
+
new RegExp(`^${this.variantClassPrefix}`)
|
|
1056
|
+
);
|
|
1034
1057
|
},
|
|
1035
1058
|
variantClass() {
|
|
1036
1059
|
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1037
1060
|
}
|
|
1038
1061
|
}
|
|
1039
|
-
}, _r =
|
|
1040
|
-
mixins: [
|
|
1062
|
+
}, _r = F({
|
|
1063
|
+
mixins: [
|
|
1064
|
+
Qr,
|
|
1065
|
+
Zr
|
|
1066
|
+
],
|
|
1041
1067
|
props: {
|
|
1042
1068
|
active: Boolean,
|
|
1043
1069
|
block: Boolean,
|
|
@@ -1056,7 +1082,14 @@ const Qr = {
|
|
|
1056
1082
|
},
|
|
1057
1083
|
computed: {
|
|
1058
1084
|
classes() {
|
|
1059
|
-
return [
|
|
1085
|
+
return [
|
|
1086
|
+
"btn",
|
|
1087
|
+
this.variantClass,
|
|
1088
|
+
this.sizeableClass,
|
|
1089
|
+
this.active && "active",
|
|
1090
|
+
this.block && "btn-block",
|
|
1091
|
+
this.disabled && "disabled"
|
|
1092
|
+
];
|
|
1060
1093
|
},
|
|
1061
1094
|
component() {
|
|
1062
1095
|
return this.tag ? this.tag : this.$attrs.href ? "a" : "button";
|
|
@@ -1072,16 +1105,20 @@ const Qr = {
|
|
|
1072
1105
|
return r;
|
|
1073
1106
|
};
|
|
1074
1107
|
function tn(e, t, r, n, o, i) {
|
|
1075
|
-
return
|
|
1108
|
+
return H(), te(Ue(e.component), me(e.$attrs, {
|
|
1076
1109
|
disabled: e.disabled,
|
|
1077
1110
|
class: e.classes,
|
|
1078
1111
|
role: "button"
|
|
1079
1112
|
}), {
|
|
1080
|
-
default: B(() => [
|
|
1113
|
+
default: B(() => [
|
|
1114
|
+
P(e.$slots, "default", {}, () => [
|
|
1115
|
+
be(ye(e.label), 1)
|
|
1116
|
+
])
|
|
1117
|
+
]),
|
|
1081
1118
|
_: 3
|
|
1082
1119
|
}, 16, ["disabled", "class"]);
|
|
1083
1120
|
}
|
|
1084
|
-
const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
|
|
1121
|
+
const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = F({
|
|
1085
1122
|
props: {
|
|
1086
1123
|
componentPrefix: String,
|
|
1087
1124
|
size: String,
|
|
@@ -1092,28 +1129,42 @@ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
|
|
|
1092
1129
|
return this.sizePrefix || this.componentPrefix;
|
|
1093
1130
|
},
|
|
1094
1131
|
hasSizeablePrefix() {
|
|
1095
|
-
return this.size
|
|
1132
|
+
return this.size === void 0 ? !1 : !!this.size.match(
|
|
1133
|
+
new RegExp(`^${this.sizeableClassPrefix}`)
|
|
1134
|
+
);
|
|
1096
1135
|
},
|
|
1097
1136
|
sizeableClass() {
|
|
1098
1137
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1099
1138
|
}
|
|
1100
1139
|
}
|
|
1101
|
-
}, on = (
|
|
1102
|
-
const r = e.__vccOpts || e;
|
|
1103
|
-
for (const [n, o] of t)
|
|
1104
|
-
r[n] = o;
|
|
1105
|
-
return r;
|
|
1106
|
-
}, an = {
|
|
1140
|
+
}), on = F({
|
|
1107
1141
|
name: "BtnGroup",
|
|
1108
|
-
mixins: [
|
|
1142
|
+
mixins: [
|
|
1143
|
+
nn
|
|
1144
|
+
],
|
|
1109
1145
|
props: {
|
|
1146
|
+
/**
|
|
1147
|
+
* The size prefix.
|
|
1148
|
+
*
|
|
1149
|
+
* @param {String}
|
|
1150
|
+
*/
|
|
1110
1151
|
sizePrefix: {
|
|
1111
1152
|
type: String,
|
|
1112
1153
|
default() {
|
|
1113
1154
|
return "btn-group";
|
|
1114
1155
|
}
|
|
1115
1156
|
},
|
|
1157
|
+
/**
|
|
1158
|
+
* Denote the button group as toggle buttons
|
|
1159
|
+
*
|
|
1160
|
+
* @type {Boolean}
|
|
1161
|
+
*/
|
|
1116
1162
|
toggle: Boolean,
|
|
1163
|
+
/**
|
|
1164
|
+
* Display the buttons vertically
|
|
1165
|
+
*
|
|
1166
|
+
* @type {Boolean}
|
|
1167
|
+
*/
|
|
1117
1168
|
vertical: Boolean
|
|
1118
1169
|
},
|
|
1119
1170
|
computed: {
|
|
@@ -1126,35 +1177,40 @@ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
|
|
|
1126
1177
|
};
|
|
1127
1178
|
}
|
|
1128
1179
|
}
|
|
1180
|
+
}), an = (e, t) => {
|
|
1181
|
+
const r = e.__vccOpts || e;
|
|
1182
|
+
for (const [n, o] of t)
|
|
1183
|
+
r[n] = o;
|
|
1184
|
+
return r;
|
|
1129
1185
|
}, sn = ["data-toggle"];
|
|
1130
1186
|
function ln(e, t, r, n, o, i) {
|
|
1131
|
-
return
|
|
1132
|
-
class:
|
|
1133
|
-
"data-toggle":
|
|
1187
|
+
return H(), Xe("div", {
|
|
1188
|
+
class: W(e.classes),
|
|
1189
|
+
"data-toggle": e.toggle ? "buttons" : !1,
|
|
1134
1190
|
role: "group"
|
|
1135
|
-
}, [
|
|
1191
|
+
}, [
|
|
1192
|
+
P(e.$slots, "default")
|
|
1193
|
+
], 10, sn);
|
|
1136
1194
|
}
|
|
1137
|
-
const pn = /* @__PURE__ */ on
|
|
1138
|
-
|
|
1195
|
+
const pn = /* @__PURE__ */ an(on, [["render", ln]]);
|
|
1196
|
+
F({
|
|
1197
|
+
name: "BtnGroupToggle"
|
|
1198
|
+
});
|
|
1199
|
+
function qe(e, t) {
|
|
1139
1200
|
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1140
1201
|
}
|
|
1141
|
-
function
|
|
1202
|
+
function Dt(e) {
|
|
1142
1203
|
for (const t of e) {
|
|
1143
|
-
t.type ===
|
|
1204
|
+
t.type === Vt && Dt(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1144
1205
|
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1145
|
-
typeof t.type == "string" && t.type.match(/^h\d$/) ?
|
|
1206
|
+
typeof t.type == "string" && t.type.match(/^h\d$/) ? qe(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", qe(t, "dropdown-divider")) : !r && !n && qe(t, "dropdown-item");
|
|
1146
1207
|
}
|
|
1147
1208
|
return e;
|
|
1148
1209
|
}
|
|
1149
|
-
const fn = (e, t) =>
|
|
1150
|
-
const r = e.__vccOpts || e;
|
|
1151
|
-
for (const [n, o] of t)
|
|
1152
|
-
r[n] = o;
|
|
1153
|
-
return r;
|
|
1154
|
-
}, dn = {
|
|
1210
|
+
const fn = (e, t) => Lt("div", {}, Dt(t.slots.default())), un = F({
|
|
1155
1211
|
name: "DropdownMenu",
|
|
1156
1212
|
components: {
|
|
1157
|
-
DropdownMenuItems:
|
|
1213
|
+
DropdownMenuItems: fn
|
|
1158
1214
|
},
|
|
1159
1215
|
props: {
|
|
1160
1216
|
/**
|
|
@@ -1176,48 +1232,65 @@ const fn = (e, t) => It("div", {}, Bt(t.slots.default())), un = fn, Ce = (e, t)
|
|
|
1176
1232
|
*/
|
|
1177
1233
|
show: Boolean
|
|
1178
1234
|
}
|
|
1235
|
+
}), dn = (e, t) => {
|
|
1236
|
+
const r = e.__vccOpts || e;
|
|
1237
|
+
for (const [n, o] of t)
|
|
1238
|
+
r[n] = o;
|
|
1239
|
+
return r;
|
|
1179
1240
|
}, cn = ["aria-labelledby"];
|
|
1180
1241
|
function vn(e, t, r, n, o, i) {
|
|
1181
|
-
const a =
|
|
1182
|
-
return
|
|
1183
|
-
class:
|
|
1184
|
-
"dropdown-menu-left":
|
|
1185
|
-
"dropdown-menu-right":
|
|
1186
|
-
show:
|
|
1242
|
+
const a = re("dropdown-menu-items");
|
|
1243
|
+
return H(), Xe("div", {
|
|
1244
|
+
class: W(["dropdown-menu", {
|
|
1245
|
+
"dropdown-menu-left": e.align === "left",
|
|
1246
|
+
"dropdown-menu-right": e.align === "right",
|
|
1247
|
+
show: e.show
|
|
1187
1248
|
}]),
|
|
1188
1249
|
"aria-labelledby": e.$attrs.id
|
|
1189
1250
|
}, [
|
|
1190
|
-
|
|
1251
|
+
we(a, null, {
|
|
1191
1252
|
default: B(() => [
|
|
1192
|
-
P(e.$slots, "default"
|
|
1193
|
-
onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
|
|
1194
|
-
})
|
|
1253
|
+
P(e.$slots, "default")
|
|
1195
1254
|
]),
|
|
1196
1255
|
_: 3
|
|
1197
1256
|
})
|
|
1198
1257
|
], 10, cn);
|
|
1199
1258
|
}
|
|
1200
|
-
const hn = /* @__PURE__ */
|
|
1259
|
+
const hn = /* @__PURE__ */ dn(un, [["render", vn]]), gn = F({
|
|
1201
1260
|
props: {
|
|
1202
1261
|
expanded: {
|
|
1203
1262
|
type: Boolean,
|
|
1204
1263
|
default: !1
|
|
1205
1264
|
},
|
|
1206
|
-
id:
|
|
1207
|
-
|
|
1208
|
-
|
|
1265
|
+
id: {
|
|
1266
|
+
type: String,
|
|
1267
|
+
default: void 0
|
|
1268
|
+
},
|
|
1269
|
+
href: {
|
|
1270
|
+
type: String,
|
|
1271
|
+
default: void 0
|
|
1272
|
+
},
|
|
1273
|
+
to: {
|
|
1274
|
+
type: [String, Object],
|
|
1275
|
+
default: void 0
|
|
1276
|
+
}
|
|
1209
1277
|
},
|
|
1210
1278
|
computed: {
|
|
1211
1279
|
is() {
|
|
1212
1280
|
return this.to ? "router-link" : this.href ? "a" : "button";
|
|
1213
1281
|
}
|
|
1214
1282
|
}
|
|
1283
|
+
}), Ne = (e, t) => {
|
|
1284
|
+
const r = e.__vccOpts || e;
|
|
1285
|
+
for (const [n, o] of t)
|
|
1286
|
+
r[n] = o;
|
|
1287
|
+
return r;
|
|
1215
1288
|
};
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1289
|
+
function mn(e, t, r, n, o, i) {
|
|
1290
|
+
return H(), te(Ue(e.is), me({ id: e.id }, e.to ? { to: e.to } : { href: e.href }, {
|
|
1218
1291
|
"aria-haspopup": "true",
|
|
1219
|
-
"aria-expanded":
|
|
1220
|
-
type:
|
|
1292
|
+
"aria-expanded": e.expanded,
|
|
1293
|
+
type: e.is === "button" ? "button" : void 0
|
|
1221
1294
|
}), {
|
|
1222
1295
|
default: B(() => [
|
|
1223
1296
|
P(e.$slots, "default")
|
|
@@ -1225,14 +1298,13 @@ function gn(e, t, r, n, o, i) {
|
|
|
1225
1298
|
_: 3
|
|
1226
1299
|
}, 16, ["id", "aria-expanded", "type"]);
|
|
1227
1300
|
}
|
|
1228
|
-
const bn = /* @__PURE__ */
|
|
1301
|
+
const bn = /* @__PURE__ */ Ne(gn, [["render", mn]]), At = F({
|
|
1229
1302
|
components: {
|
|
1230
1303
|
BtnDropdownAction: bn,
|
|
1231
1304
|
BtnGroup: pn,
|
|
1232
1305
|
DropdownMenu: hn
|
|
1233
1306
|
},
|
|
1234
1307
|
extends: rn,
|
|
1235
|
-
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1236
1308
|
props: {
|
|
1237
1309
|
/**
|
|
1238
1310
|
* Display the dropdown menu aligned left or right
|
|
@@ -1375,6 +1447,12 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1375
1447
|
*/
|
|
1376
1448
|
width: String
|
|
1377
1449
|
},
|
|
1450
|
+
emits: [
|
|
1451
|
+
"click-toggle",
|
|
1452
|
+
"show",
|
|
1453
|
+
"hide",
|
|
1454
|
+
"toggle"
|
|
1455
|
+
],
|
|
1378
1456
|
data() {
|
|
1379
1457
|
return {
|
|
1380
1458
|
popper: null,
|
|
@@ -1458,6 +1536,15 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1458
1536
|
});
|
|
1459
1537
|
}
|
|
1460
1538
|
},
|
|
1539
|
+
watch: {
|
|
1540
|
+
expanded(e) {
|
|
1541
|
+
this.$nextTick(() => {
|
|
1542
|
+
this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
|
|
1543
|
+
}), setTimeout(() => {
|
|
1544
|
+
e ? document.addEventListener("click", this.onClickDocument) : document.removeEventListener("click", this.onClickDocument);
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1461
1548
|
beforeUnmount() {
|
|
1462
1549
|
this.popper && this.popper.destroy();
|
|
1463
1550
|
},
|
|
@@ -1468,7 +1555,8 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1468
1555
|
* @return void
|
|
1469
1556
|
*/
|
|
1470
1557
|
focus() {
|
|
1471
|
-
|
|
1558
|
+
var e;
|
|
1559
|
+
(e = this.$el) == null || e.querySelector(".dropdown-toggle").focus();
|
|
1472
1560
|
},
|
|
1473
1561
|
/**
|
|
1474
1562
|
* Focus on the the dropdown toggle button
|
|
@@ -1476,7 +1564,8 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1476
1564
|
* @return void
|
|
1477
1565
|
*/
|
|
1478
1566
|
queryFocusable() {
|
|
1479
|
-
|
|
1567
|
+
var e;
|
|
1568
|
+
return (e = this.$el) == null ? void 0 : e.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1480
1569
|
},
|
|
1481
1570
|
/**
|
|
1482
1571
|
* Method to check if the given element is focusable.
|
|
@@ -1485,7 +1574,7 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1485
1574
|
*/
|
|
1486
1575
|
isFocusable(e) {
|
|
1487
1576
|
const t = this.queryFocusable();
|
|
1488
|
-
for (
|
|
1577
|
+
for (const r in t)
|
|
1489
1578
|
if (e === t[r])
|
|
1490
1579
|
return !0;
|
|
1491
1580
|
return !1;
|
|
@@ -1495,7 +1584,7 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1495
1584
|
*
|
|
1496
1585
|
* @return void
|
|
1497
1586
|
*/
|
|
1498
|
-
toggle(
|
|
1587
|
+
toggle() {
|
|
1499
1588
|
this.expanded ? this.hide() : this.show();
|
|
1500
1589
|
},
|
|
1501
1590
|
/**
|
|
@@ -1504,20 +1593,23 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1504
1593
|
* @return void
|
|
1505
1594
|
*/
|
|
1506
1595
|
show() {
|
|
1596
|
+
var t, r;
|
|
1507
1597
|
this.expanded = !0;
|
|
1508
|
-
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1509
|
-
!this.nav && !this.popper ? this.popper = Jr(e, this.$refs.menu.$el, {
|
|
1598
|
+
const e = this.$refs.split && ((t = this.$refs.split) == null ? void 0 : t.$el) || this.$el;
|
|
1599
|
+
!this.nav && !this.popper ? this.popper = Jr(e, (r = this.$refs.menu) == null ? void 0 : r.$el, {
|
|
1510
1600
|
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1511
1601
|
onFirstUpdate: () => {
|
|
1512
1602
|
this.triggerAnimation = this.animated;
|
|
1513
1603
|
},
|
|
1514
|
-
modifiers: [
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1604
|
+
modifiers: [
|
|
1605
|
+
{
|
|
1606
|
+
name: "offset",
|
|
1607
|
+
options: {
|
|
1608
|
+
offset: [0, this.nav ? 1 : this.offset]
|
|
1609
|
+
// offset: ['.125rem', !this.nav ? 4 : 1],
|
|
1610
|
+
}
|
|
1519
1611
|
}
|
|
1520
|
-
|
|
1612
|
+
]
|
|
1521
1613
|
}) : this.popper && this.popper.update();
|
|
1522
1614
|
},
|
|
1523
1615
|
/**
|
|
@@ -1534,10 +1626,11 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1534
1626
|
* @return void
|
|
1535
1627
|
*/
|
|
1536
1628
|
onBlur(e) {
|
|
1537
|
-
|
|
1629
|
+
var t;
|
|
1630
|
+
(this.$refs.menu && !((t = this.$refs.menu) != null && t.$el.contains(e.relatedTarget)) || !(this != null && this.$el.contains(e.relatedTarget))) && this.hide();
|
|
1538
1631
|
},
|
|
1539
1632
|
onClickDocument(e) {
|
|
1540
|
-
this.$el.contains(e.target) || this.hide();
|
|
1633
|
+
this != null && this.$el.contains(e.target) || this.hide();
|
|
1541
1634
|
},
|
|
1542
1635
|
/**
|
|
1543
1636
|
* A callback function for the `click-item` event.
|
|
@@ -1558,74 +1651,118 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
|
|
|
1558
1651
|
onKeydown(e) {
|
|
1559
1652
|
e.target.parentElement.lastElementChild === e.target && this.hide();
|
|
1560
1653
|
}
|
|
1561
|
-
},
|
|
1562
|
-
watch: {
|
|
1563
|
-
expanded(e) {
|
|
1564
|
-
this.$nextTick(() => {
|
|
1565
|
-
this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
|
|
1566
|
-
}), setTimeout(() => {
|
|
1567
|
-
e ? document.addEventListener("click", this.onClickDocument) : document.removeEventListener("click", this.onClickDocument);
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
1654
|
}
|
|
1571
|
-
}, yn = {
|
|
1655
|
+
}), yn = F({
|
|
1656
|
+
mixins: [
|
|
1657
|
+
At
|
|
1658
|
+
]
|
|
1659
|
+
});
|
|
1660
|
+
function wn(e, t, r, n, o, i) {
|
|
1661
|
+
const a = re("btn-dropdown-action"), l = re("dropdown-menu"), s = re("btn-group");
|
|
1662
|
+
return H(), te(s, {
|
|
1663
|
+
class: W(e.classes)
|
|
1664
|
+
}, {
|
|
1665
|
+
default: B(() => [
|
|
1666
|
+
P(e.$slots, "button", ae(Re(e.scope)), () => [
|
|
1667
|
+
we(a, {
|
|
1668
|
+
id: e.$attrs.id,
|
|
1669
|
+
ref: "button",
|
|
1670
|
+
expanded: e.expanded,
|
|
1671
|
+
href: e.href,
|
|
1672
|
+
to: e.to,
|
|
1673
|
+
style: It(e.toggleStyle),
|
|
1674
|
+
class: W(e.toggleClasses),
|
|
1675
|
+
onBlur: e.onBlur,
|
|
1676
|
+
onClick: e.onClickToggle
|
|
1677
|
+
}, {
|
|
1678
|
+
default: B(() => [
|
|
1679
|
+
P(e.$slots, "icon"),
|
|
1680
|
+
P(e.$slots, "label", {}, () => [
|
|
1681
|
+
be(ye(e.label), 1)
|
|
1682
|
+
])
|
|
1683
|
+
]),
|
|
1684
|
+
_: 3
|
|
1685
|
+
}, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
|
|
1686
|
+
]),
|
|
1687
|
+
we(l, {
|
|
1688
|
+
id: e.$attrs.id,
|
|
1689
|
+
ref: "menu",
|
|
1690
|
+
align: e.align,
|
|
1691
|
+
show: e.expanded,
|
|
1692
|
+
class: W({ animated: e.triggerAnimation }),
|
|
1693
|
+
onBlur: e.onBlur,
|
|
1694
|
+
onClick: e.onClickItem,
|
|
1695
|
+
onKeydown: yt(e.onKeydown, ["tab"]),
|
|
1696
|
+
onMousedown: t[0] || (t[0] = wt(() => {
|
|
1697
|
+
}, ["prevent"]))
|
|
1698
|
+
}, {
|
|
1699
|
+
default: B(() => [
|
|
1700
|
+
P(e.$slots, "default")
|
|
1701
|
+
]),
|
|
1702
|
+
_: 3
|
|
1703
|
+
}, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
|
|
1704
|
+
]),
|
|
1705
|
+
_: 3
|
|
1706
|
+
}, 8, ["class"]);
|
|
1707
|
+
}
|
|
1708
|
+
const $n = /* @__PURE__ */ Ne(yn, [["render", wn]]), On = F({
|
|
1572
1709
|
mixins: [
|
|
1573
|
-
|
|
1710
|
+
At
|
|
1574
1711
|
],
|
|
1575
1712
|
emits: [
|
|
1576
1713
|
"click"
|
|
1577
1714
|
]
|
|
1578
|
-
},
|
|
1579
|
-
function
|
|
1580
|
-
const a =
|
|
1581
|
-
return
|
|
1582
|
-
class:
|
|
1715
|
+
}), xn = ["id", "aria-expanded"];
|
|
1716
|
+
function Cn(e, t, r, n, o, i) {
|
|
1717
|
+
const a = re("btn-dropdown-action"), l = re("dropdown-menu"), s = re("btn-group");
|
|
1718
|
+
return H(), te(s, {
|
|
1719
|
+
class: W([e.classes, "btn-dropdown-split"])
|
|
1583
1720
|
}, {
|
|
1584
1721
|
default: B(() => [
|
|
1585
|
-
e.dropleft ?
|
|
1586
|
-
e.dropleft ?
|
|
1722
|
+
e.dropleft ? ce("", !0) : P(e.$slots, "button", ae(me({ key: 0 }, e.scope)), () => [
|
|
1723
|
+
e.dropleft ? ce("", !0) : (H(), te(a, {
|
|
1587
1724
|
key: 0,
|
|
1588
1725
|
id: e.$attrs.id,
|
|
1589
1726
|
ref: "button",
|
|
1590
1727
|
expanded: e.expanded,
|
|
1591
1728
|
href: e.href,
|
|
1592
1729
|
to: e.to,
|
|
1593
|
-
class:
|
|
1730
|
+
class: W(e.actionClasses),
|
|
1594
1731
|
onClick: t[0] || (t[0] = (f) => e.$emit("click", f))
|
|
1595
1732
|
}, {
|
|
1596
1733
|
default: B(() => [
|
|
1597
1734
|
P(e.$slots, "icon"),
|
|
1598
1735
|
P(e.$slots, "label", {}, () => [
|
|
1599
|
-
|
|
1736
|
+
be(ye(e.label), 1)
|
|
1600
1737
|
])
|
|
1601
1738
|
]),
|
|
1602
1739
|
_: 3
|
|
1603
1740
|
}, 8, ["id", "expanded", "href", "to", "class"]))
|
|
1604
1741
|
]),
|
|
1605
|
-
|
|
1742
|
+
we(s, { ref: "split" }, {
|
|
1606
1743
|
default: B(() => [
|
|
1607
|
-
P(e.$slots, "split",
|
|
1608
|
-
e.split ? (
|
|
1744
|
+
P(e.$slots, "split", ae(Re(e.scope)), () => [
|
|
1745
|
+
e.split ? (H(), Xe("button", {
|
|
1609
1746
|
key: 0,
|
|
1610
1747
|
id: e.$attrs.id,
|
|
1611
1748
|
type: "button",
|
|
1612
1749
|
"aria-haspopup": "true",
|
|
1613
1750
|
"aria-expanded": e.expanded,
|
|
1614
|
-
class:
|
|
1751
|
+
class: W(e.toggleClasses),
|
|
1615
1752
|
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1616
1753
|
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1617
|
-
}, null, 42,
|
|
1754
|
+
}, null, 42, xn)) : ce("", !0)
|
|
1618
1755
|
]),
|
|
1619
|
-
|
|
1756
|
+
we(l, {
|
|
1620
1757
|
id: e.$attrs.id,
|
|
1621
1758
|
ref: "menu",
|
|
1622
1759
|
align: e.align,
|
|
1623
1760
|
show: e.expanded,
|
|
1624
|
-
class:
|
|
1761
|
+
class: W({ animated: e.triggerAnimation }),
|
|
1625
1762
|
onBlur: e.onBlur,
|
|
1626
1763
|
onClick: e.onClickItem,
|
|
1627
|
-
onKeydown:
|
|
1628
|
-
onMousedown: t[3] || (t[3] =
|
|
1764
|
+
onKeydown: yt(e.onKeydown, ["tab"]),
|
|
1765
|
+
onMousedown: t[3] || (t[3] = wt(() => {
|
|
1629
1766
|
}, ["prevent"]))
|
|
1630
1767
|
}, {
|
|
1631
1768
|
default: B(() => [
|
|
@@ -1636,89 +1773,35 @@ function On(e, t, r, n, o, i) {
|
|
|
1636
1773
|
]),
|
|
1637
1774
|
_: 3
|
|
1638
1775
|
}, 512),
|
|
1639
|
-
e.dropleft ? P(e.$slots, "button",
|
|
1640
|
-
e.dropleft ? (
|
|
1776
|
+
e.dropleft ? P(e.$slots, "button", ae(me({ key: 1 }, e.scope)), () => [
|
|
1777
|
+
e.dropleft ? (H(), te(a, {
|
|
1641
1778
|
key: 0,
|
|
1642
1779
|
id: e.$attrs.id,
|
|
1643
1780
|
ref: "button",
|
|
1644
1781
|
expanded: e.expanded,
|
|
1645
1782
|
href: e.href,
|
|
1646
1783
|
to: e.to,
|
|
1647
|
-
class:
|
|
1784
|
+
class: W(e.actionClasses),
|
|
1648
1785
|
onClick: t[4] || (t[4] = (f) => e.$emit("click", f))
|
|
1649
1786
|
}, {
|
|
1650
1787
|
default: B(() => [
|
|
1651
1788
|
P(e.$slots, "icon"),
|
|
1652
1789
|
P(e.$slots, "label", {}, () => [
|
|
1653
|
-
|
|
1790
|
+
be(ye(e.label), 1)
|
|
1654
1791
|
])
|
|
1655
1792
|
]),
|
|
1656
1793
|
_: 3
|
|
1657
|
-
}, 8, ["id", "expanded", "href", "to", "class"])) :
|
|
1658
|
-
]) :
|
|
1794
|
+
}, 8, ["id", "expanded", "href", "to", "class"])) : ce("", !0)
|
|
1795
|
+
]) : ce("", !0)
|
|
1659
1796
|
]),
|
|
1660
1797
|
_: 3
|
|
1661
1798
|
}, 8, ["class"]);
|
|
1662
1799
|
}
|
|
1663
|
-
const
|
|
1664
|
-
mixins: [
|
|
1665
|
-
Dt
|
|
1666
|
-
]
|
|
1667
|
-
};
|
|
1668
|
-
function Cn(e, t, r, n, o, i) {
|
|
1669
|
-
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1670
|
-
return W(), ee(s, {
|
|
1671
|
-
class: F(e.classes)
|
|
1672
|
-
}, {
|
|
1673
|
-
default: B(() => [
|
|
1674
|
-
P(e.$slots, "button", ie(Re(e.scope)), () => [
|
|
1675
|
-
ye(a, {
|
|
1676
|
-
id: e.$attrs.id,
|
|
1677
|
-
ref: "button",
|
|
1678
|
-
expanded: e.expanded,
|
|
1679
|
-
href: e.href,
|
|
1680
|
-
to: e.to,
|
|
1681
|
-
style: Vt(e.toggleStyle),
|
|
1682
|
-
class: F(e.toggleClasses),
|
|
1683
|
-
onBlur: e.onBlur,
|
|
1684
|
-
onClick: e.onClickToggle
|
|
1685
|
-
}, {
|
|
1686
|
-
default: B(() => [
|
|
1687
|
-
P(e.$slots, "icon"),
|
|
1688
|
-
P(e.$slots, "label", {}, () => [
|
|
1689
|
-
ge(be(e.label), 1)
|
|
1690
|
-
])
|
|
1691
|
-
]),
|
|
1692
|
-
_: 3
|
|
1693
|
-
}, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
|
|
1694
|
-
]),
|
|
1695
|
-
ye(l, {
|
|
1696
|
-
id: e.$attrs.id,
|
|
1697
|
-
ref: "menu",
|
|
1698
|
-
align: e.align,
|
|
1699
|
-
show: e.expanded,
|
|
1700
|
-
class: F({ animated: e.triggerAnimation }),
|
|
1701
|
-
onBlur: e.onBlur,
|
|
1702
|
-
onClick: e.onClickItem,
|
|
1703
|
-
onKeydown: bt(e.onKeydown, ["tab"]),
|
|
1704
|
-
onMousedown: t[0] || (t[0] = yt(() => {
|
|
1705
|
-
}, ["prevent"]))
|
|
1706
|
-
}, {
|
|
1707
|
-
default: B(() => [
|
|
1708
|
-
P(e.$slots, "default")
|
|
1709
|
-
]),
|
|
1710
|
-
_: 3
|
|
1711
|
-
}, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
|
|
1712
|
-
]),
|
|
1713
|
-
_: 3
|
|
1714
|
-
}, 8, ["class"]);
|
|
1715
|
-
}
|
|
1716
|
-
const Pn = /* @__PURE__ */ Ce($n, [["render", Cn]]);
|
|
1717
|
-
const En = {
|
|
1800
|
+
const Pn = /* @__PURE__ */ Ne(On, [["render", Cn]]), En = F({
|
|
1718
1801
|
name: "BtnDropdown",
|
|
1719
1802
|
components: {
|
|
1720
|
-
BtnDropdownSplit:
|
|
1721
|
-
BtnDropdownSingle:
|
|
1803
|
+
BtnDropdownSplit: Pn,
|
|
1804
|
+
BtnDropdownSingle: $n
|
|
1722
1805
|
},
|
|
1723
1806
|
inheritAttrs: !1,
|
|
1724
1807
|
emits: [
|
|
@@ -1729,9 +1812,9 @@ const En = {
|
|
|
1729
1812
|
"hide",
|
|
1730
1813
|
"toggle"
|
|
1731
1814
|
]
|
|
1732
|
-
};
|
|
1815
|
+
});
|
|
1733
1816
|
function Sn(e, t, r, n, o, i) {
|
|
1734
|
-
return
|
|
1817
|
+
return H(), te(Ue(e.$attrs.split === void 0 || e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), me({ class: "btn-dropdown" }, e.$attrs, {
|
|
1735
1818
|
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1736
1819
|
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
1737
1820
|
onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
|
|
@@ -1743,10 +1826,10 @@ function Sn(e, t, r, n, o, i) {
|
|
|
1743
1826
|
P(e.$slots, "icon")
|
|
1744
1827
|
]),
|
|
1745
1828
|
button: B((a) => [
|
|
1746
|
-
P(e.$slots, "button",
|
|
1829
|
+
P(e.$slots, "button", ae(Re(a)))
|
|
1747
1830
|
]),
|
|
1748
1831
|
split: B((a) => [
|
|
1749
|
-
P(e.$slots, "split",
|
|
1832
|
+
P(e.$slots, "split", ae(Re(a)))
|
|
1750
1833
|
]),
|
|
1751
1834
|
default: B(() => [
|
|
1752
1835
|
P(e.$slots, "default")
|
|
@@ -1757,14 +1840,14 @@ function Sn(e, t, r, n, o, i) {
|
|
|
1757
1840
|
name: "label",
|
|
1758
1841
|
fn: B(() => [
|
|
1759
1842
|
P(e.$slots, "label", {}, () => [
|
|
1760
|
-
|
|
1843
|
+
be(ye(e.$attrs.label), 1)
|
|
1761
1844
|
])
|
|
1762
1845
|
]),
|
|
1763
1846
|
key: "0"
|
|
1764
1847
|
} : void 0
|
|
1765
1848
|
]), 1040);
|
|
1766
1849
|
}
|
|
1767
|
-
const Bn = /* @__PURE__ */
|
|
1850
|
+
const Bn = /* @__PURE__ */ Ne(En, [["render", Sn]]);
|
|
1768
1851
|
export {
|
|
1769
1852
|
Bn as BtnDropdown
|
|
1770
1853
|
};
|