@vue-interface/btn-dropdown 2.0.0-beta.0 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/btn-dropdown.es.js +256 -261
- 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 +17 -17
- package/src/BtnDropdownSplit.vue +22 -18
- 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",
|
|
3
|
-
return e.concat([t + "-" + ae, t + "-" +
|
|
4
|
-
}, []),
|
|
5
|
-
return e.concat([t, t + "-" + ae, t + "-" +
|
|
6
|
-
}, []),
|
|
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 Tt, Fragment as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as It, createSlots as Mt } from "vue";
|
|
2
|
+
var R = "top", N = "bottom", I = "right", j = "left", ze = "auto", $e = [R, N, I, j], ae = "start", Oe = "end", Lt = "clippingParents", bt = "viewport", ve = "popper", Vt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
|
|
3
|
+
return e.concat([t + "-" + ae, t + "-" + Oe]);
|
|
4
|
+
}, []), yt = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
|
|
5
|
+
return e.concat([t, t + "-" + ae, t + "-" + Oe]);
|
|
6
|
+
}, []), qt = "beforeRead", Ft = "read", Wt = "afterRead", Ht = "beforeMain", Ut = "main", Xt = "afterMain", Yt = "beforeWrite", Gt = "write", Jt = "afterWrite", qe = [qt, Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt];
|
|
7
7
|
function H(e) {
|
|
8
8
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
9
|
}
|
|
@@ -24,13 +24,13 @@ 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;
|
|
31
31
|
return e instanceof t || e instanceof ShadowRoot;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Kt(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];
|
|
@@ -40,7 +40,7 @@ function Qt(e) {
|
|
|
40
40
|
}));
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qt(e) {
|
|
44
44
|
var t = e.state, r = {
|
|
45
45
|
popper: {
|
|
46
46
|
position: t.options.strategy,
|
|
@@ -64,12 +64,12 @@ function Zt(e) {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const Zt = {
|
|
68
68
|
name: "applyStyles",
|
|
69
69
|
enabled: !0,
|
|
70
70
|
phase: "write",
|
|
71
|
-
fn:
|
|
72
|
-
effect:
|
|
71
|
+
fn: Kt,
|
|
72
|
+
effect: Qt,
|
|
73
73
|
requires: ["computeStyles"]
|
|
74
74
|
};
|
|
75
75
|
function V(e) {
|
|
@@ -82,14 +82,14 @@ function Fe() {
|
|
|
82
82
|
return t.brand + "/" + t.version;
|
|
83
83
|
}).join(" ") : navigator.userAgent;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function wt() {
|
|
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 = !wt() && 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,
|
|
@@ -110,11 +110,11 @@ function Ue(e) {
|
|
|
110
110
|
height: n
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ot(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))
|
|
@@ -127,19 +127,19 @@ function $t(e, t) {
|
|
|
127
127
|
function q(e) {
|
|
128
128
|
return M(e).getComputedStyle(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function _t(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;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function er(e) {
|
|
143
143
|
var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
|
|
144
144
|
if (r && T(e)) {
|
|
145
145
|
var n = q(e);
|
|
@@ -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;
|
|
@@ -156,9 +156,9 @@ function tr(e) {
|
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
158
|
function Ce(e) {
|
|
159
|
-
for (var t = M(e), r = lt(e); r &&
|
|
159
|
+
for (var t = M(e), r = lt(e); r && _t(r) && q(r).position === "static"; )
|
|
160
160
|
r = lt(r);
|
|
161
|
-
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r ||
|
|
161
|
+
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || er(e) || t;
|
|
162
162
|
}
|
|
163
163
|
function Ge(e) {
|
|
164
164
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -166,11 +166,11 @@ function Ge(e) {
|
|
|
166
166
|
function he(e, t, r) {
|
|
167
167
|
return re(e, je(t, r));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function tr(e, t, r) {
|
|
170
170
|
var n = he(e, t, r);
|
|
171
171
|
return n > r ? r : n;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function xt() {
|
|
174
174
|
return {
|
|
175
175
|
top: 0,
|
|
176
176
|
right: 0,
|
|
@@ -178,55 +178,55 @@ function Ct() {
|
|
|
178
178
|
left: 0
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return Object.assign({},
|
|
181
|
+
function $t(e) {
|
|
182
|
+
return Object.assign({}, xt(), e);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ct(e, t) {
|
|
185
185
|
return t.reduce(function(r, n) {
|
|
186
186
|
return r[n] = e, r;
|
|
187
187
|
}, {});
|
|
188
188
|
}
|
|
189
|
-
var
|
|
189
|
+
var rr = function(t, r) {
|
|
190
190
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
191
191
|
placement: r.placement
|
|
192
|
-
})) : t,
|
|
192
|
+
})) : t, $t(typeof t != "number" ? t : Ct(t, $e));
|
|
193
193
|
};
|
|
194
|
-
function
|
|
195
|
-
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j,
|
|
194
|
+
function nr(e) {
|
|
195
|
+
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j, I].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
196
|
if (!(!i || !a)) {
|
|
197
|
-
var h =
|
|
198
|
-
r.modifiersData[n] = (t = {}, t[E] =
|
|
197
|
+
var h = rr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : I, 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
|
-
function
|
|
201
|
+
function or(e) {
|
|
202
202
|
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
203
203
|
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
204
|
-
if (process.env.NODE_ENV !== "production" && (T(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(" "))),
|
|
204
|
+
if (process.env.NODE_ENV !== "production" && (T(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(" "))), !Ot(t.elements.popper, o)) {
|
|
205
205
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
t.elements.arrow = o;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const ir = {
|
|
212
212
|
name: "arrow",
|
|
213
213
|
enabled: !0,
|
|
214
214
|
phase: "main",
|
|
215
|
-
fn:
|
|
216
|
-
effect:
|
|
215
|
+
fn: nr,
|
|
216
|
+
effect: or,
|
|
217
217
|
requires: ["popperOffsets"],
|
|
218
218
|
requiresIfExists: ["preventOverflow"]
|
|
219
219
|
};
|
|
220
220
|
function pe(e) {
|
|
221
221
|
return e.split("-")[1];
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var ar = {
|
|
224
224
|
top: "auto",
|
|
225
225
|
right: "auto",
|
|
226
226
|
bottom: "auto",
|
|
227
227
|
left: "auto"
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function sr(e) {
|
|
230
230
|
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
231
231
|
return {
|
|
232
232
|
x: se(t * o) / o || 0,
|
|
@@ -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,21 +244,21 @@ 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 =
|
|
249
|
-
c =
|
|
250
|
-
var S = h && d === g && g.visualViewport ? g.visualViewport.height : 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 === I) && i === Oe) {
|
|
249
|
+
c = N;
|
|
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 ===
|
|
254
|
-
$ =
|
|
253
|
+
if (o === j || (o === R || o === N) && i === Oe) {
|
|
254
|
+
$ = I;
|
|
255
255
|
var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
|
|
256
256
|
u -= k - n.width, u *= s ? 1 : -1;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var b = Object.assign({
|
|
260
260
|
position: l
|
|
261
|
-
}, f &&
|
|
261
|
+
}, f && ar), D = p === !0 ? sr({
|
|
262
262
|
x: u,
|
|
263
263
|
y: m
|
|
264
264
|
}) : {
|
|
@@ -271,7 +271,7 @@ function pt(e) {
|
|
|
271
271
|
}
|
|
272
272
|
return Object.assign({}, b, (t = {}, t[c] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function lr(e) {
|
|
275
275
|
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
|
|
276
276
|
if (process.env.NODE_ENV !== "production") {
|
|
277
277
|
var f = q(t.elements.popper).transitionProperty || "";
|
|
@@ -305,17 +305,17 @@ function pr(e) {
|
|
|
305
305
|
"data-popper-placement": t.placement
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const pr = {
|
|
309
309
|
name: "computeStyles",
|
|
310
310
|
enabled: !0,
|
|
311
311
|
phase: "beforeWrite",
|
|
312
|
-
fn:
|
|
312
|
+
fn: lr,
|
|
313
313
|
data: {}
|
|
314
314
|
};
|
|
315
315
|
var De = {
|
|
316
316
|
passive: !0
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function fr(e) {
|
|
319
319
|
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = M(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
320
320
|
return i && f.forEach(function(p) {
|
|
321
321
|
p.addEventListener("scroll", r.update, De);
|
|
@@ -325,16 +325,16 @@ function ur(e) {
|
|
|
325
325
|
}), l && s.removeEventListener("resize", r.update, De);
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
const
|
|
328
|
+
const ur = {
|
|
329
329
|
name: "eventListeners",
|
|
330
330
|
enabled: !0,
|
|
331
331
|
phase: "write",
|
|
332
332
|
fn: function() {
|
|
333
333
|
},
|
|
334
|
-
effect:
|
|
334
|
+
effect: fr,
|
|
335
335
|
data: {}
|
|
336
336
|
};
|
|
337
|
-
var
|
|
337
|
+
var cr = {
|
|
338
338
|
left: "right",
|
|
339
339
|
right: "left",
|
|
340
340
|
bottom: "top",
|
|
@@ -342,16 +342,16 @@ var dr = {
|
|
|
342
342
|
};
|
|
343
343
|
function Ae(e) {
|
|
344
344
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
345
|
-
return
|
|
345
|
+
return cr[t];
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var dr = {
|
|
349
349
|
start: "end",
|
|
350
350
|
end: "start"
|
|
351
351
|
};
|
|
352
352
|
function ft(e) {
|
|
353
353
|
return e.replace(/start|end/g, function(t) {
|
|
354
|
-
return
|
|
354
|
+
return dr[t];
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
function Je(e) {
|
|
@@ -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
|
-
function
|
|
368
|
-
var r = M(e), n =
|
|
367
|
+
function vr(e, t) {
|
|
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 = wt();
|
|
372
372
|
(f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
|
|
373
373
|
}
|
|
374
374
|
return {
|
|
@@ -378,8 +378,8 @@ function hr(e, t) {
|
|
|
378
378
|
y: s
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
var t, r =
|
|
381
|
+
function hr(e) {
|
|
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,
|
|
@@ -391,13 +391,13 @@ function Qe(e) {
|
|
|
391
391
|
var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
392
392
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e :
|
|
394
|
+
function Pt(e) {
|
|
395
|
+
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : Pt(Te(e));
|
|
396
396
|
}
|
|
397
397
|
function me(e, t) {
|
|
398
398
|
var r;
|
|
399
399
|
t === void 0 && (t = []);
|
|
400
|
-
var n =
|
|
400
|
+
var n = Pt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = M(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
|
|
401
401
|
return o ? l : l.concat(me(Te(a)));
|
|
402
402
|
}
|
|
403
403
|
function We(e) {
|
|
@@ -408,27 +408,27 @@ function We(e) {
|
|
|
408
408
|
bottom: e.y + e.height
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function mr(e, t) {
|
|
412
412
|
var r = le(e, !1, t === "fixed");
|
|
413
413
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
414
414
|
}
|
|
415
415
|
function ut(e, t, r) {
|
|
416
|
-
return t ===
|
|
416
|
+
return t === bt ? We(vr(e, r)) : ne(t) ? mr(t, r) : We(hr(Y(e)));
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function gr(e) {
|
|
419
419
|
var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
|
|
420
420
|
return ne(n) ? t.filter(function(o) {
|
|
421
|
-
return ne(o) &&
|
|
421
|
+
return ne(o) && Ot(o, n) && H(o) !== "body";
|
|
422
422
|
}) : [];
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
var o = t === "clippingParents" ?
|
|
424
|
+
function br(e, t, r, n) {
|
|
425
|
+
var o = t === "clippingParents" ? gr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
|
|
426
426
|
var p = ut(e, f, n);
|
|
427
427
|
return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
|
|
428
428
|
}, ut(e, a, n));
|
|
429
429
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Et(e) {
|
|
432
432
|
var t = e.reference, r = e.element, n = e.placement, o = n ? V(n) : null, i = n ? pe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
|
|
433
433
|
switch (o) {
|
|
434
434
|
case R:
|
|
@@ -437,13 +437,13 @@ function kt(e) {
|
|
|
437
437
|
y: t.y - r.height
|
|
438
438
|
};
|
|
439
439
|
break;
|
|
440
|
-
case
|
|
440
|
+
case N:
|
|
441
441
|
s = {
|
|
442
442
|
x: a,
|
|
443
443
|
y: t.y + t.height
|
|
444
444
|
};
|
|
445
445
|
break;
|
|
446
|
-
case
|
|
446
|
+
case I:
|
|
447
447
|
s = {
|
|
448
448
|
x: t.x + t.width,
|
|
449
449
|
y: l
|
|
@@ -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 ?
|
|
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 ? Lt : l, f = r.rootBoundary, p = f === void 0 ? bt : 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 = $t(typeof v != "number" ? v : Ct(v, $e)), C = y === ve ? Vt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = br(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = Et({
|
|
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,
|
|
@@ -491,33 +491,33 @@ function Oe(e, t) {
|
|
|
491
491
|
if (y === ve && b) {
|
|
492
492
|
var D = b[o];
|
|
493
493
|
Object.keys(k).forEach(function(A) {
|
|
494
|
-
var G = [
|
|
494
|
+
var G = [I, N].indexOf(A) >= 0 ? 1 : -1, J = [R, N].indexOf(A) >= 0 ? "y" : "x";
|
|
495
495
|
k[A] += D[J] * G;
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
498
|
return k;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function yr(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 ? yt : 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 wr(e) {
|
|
521
521
|
if (V(e) === ze)
|
|
522
522
|
return [];
|
|
523
523
|
var t = Ae(e);
|
|
@@ -526,23 +526,23 @@ function xr(e) {
|
|
|
526
526
|
function Or(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)] : wr(v)), c = [v].concat($).reduce(function(oe, U) {
|
|
530
|
+
return oe.concat(V(U) === ze ? yr(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,
|
|
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, N].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
|
|
540
540
|
placement: b,
|
|
541
541
|
boundary: p,
|
|
542
542
|
rootBoundary: h,
|
|
543
543
|
altBoundary: y,
|
|
544
544
|
padding: f
|
|
545
|
-
}), L = G ? A ?
|
|
545
|
+
}), L = G ? A ? I : j : A ? N : R;
|
|
546
546
|
g[J] > d[J] && (L = Ae(L));
|
|
547
547
|
var Pe = Ae(L), K = [];
|
|
548
548
|
if (i && K.push(z[D] <= 0), l && K.push(z[L] <= 0, z[Pe] <= 0), K.every(function(oe) {
|
|
@@ -551,28 +551,28 @@ 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, Ne = 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,
|
|
562
|
-
return
|
|
561
|
+
return Q.slice(0, U).every(function(Ie) {
|
|
562
|
+
return Ie;
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
if (ce)
|
|
566
566
|
return S = ce, "break";
|
|
567
567
|
}, ue = Ee; ue > 0; ue--) {
|
|
568
|
-
var Se =
|
|
568
|
+
var Se = Ne(ue);
|
|
569
569
|
if (Se === "break")
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const xr = {
|
|
576
576
|
name: "flip",
|
|
577
577
|
enabled: !0,
|
|
578
578
|
phase: "main",
|
|
@@ -594,14 +594,14 @@ function ct(e, t, r) {
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
function dt(e) {
|
|
597
|
-
return [R,
|
|
597
|
+
return [R, I, N, j].some(function(t) {
|
|
598
598
|
return e[t] >= 0;
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a =
|
|
601
|
+
function $r(e) {
|
|
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] = {
|
|
@@ -614,18 +614,18 @@ function Cr(e) {
|
|
|
614
614
|
"data-popper-escaped": h
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const Cr = {
|
|
618
618
|
name: "hide",
|
|
619
619
|
enabled: !0,
|
|
620
620
|
phase: "main",
|
|
621
621
|
requiresIfExists: ["preventOverflow"],
|
|
622
|
-
fn:
|
|
622
|
+
fn: $r
|
|
623
623
|
};
|
|
624
|
-
function
|
|
624
|
+
function Pr(e, t, r) {
|
|
625
625
|
var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
626
626
|
placement: e
|
|
627
627
|
})) : r, a = i[0], l = i[1];
|
|
628
|
-
return a = a || 0, l = (l || 0) * o, [j,
|
|
628
|
+
return a = a || 0, l = (l || 0) * o, [j, I].indexOf(n) >= 0 ? {
|
|
629
629
|
x: l,
|
|
630
630
|
y: a
|
|
631
631
|
} : {
|
|
@@ -633,45 +633,45 @@ function Er(e, t, r) {
|
|
|
633
633
|
y: l
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a =
|
|
638
|
-
return p[h] =
|
|
636
|
+
function Er(e) {
|
|
637
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = yt.reduce(function(p, h) {
|
|
638
|
+
return p[h] = Pr(h, t.rects, i), p;
|
|
639
639
|
}, {}), l = a[t.placement], s = l.x, f = l.y;
|
|
640
640
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Sr = {
|
|
643
643
|
name: "offset",
|
|
644
644
|
enabled: !0,
|
|
645
645
|
phase: "main",
|
|
646
646
|
requires: ["popperOffsets"],
|
|
647
|
-
fn:
|
|
647
|
+
fn: Er
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function kr(e) {
|
|
650
650
|
var t = e.state, r = e.name;
|
|
651
|
-
t.modifiersData[r] =
|
|
651
|
+
t.modifiersData[r] = Et({
|
|
652
652
|
reference: t.rects.reference,
|
|
653
653
|
element: t.rects.popper,
|
|
654
654
|
strategy: "absolute",
|
|
655
655
|
placement: t.placement
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const Br = {
|
|
659
659
|
name: "popperOffsets",
|
|
660
660
|
enabled: !0,
|
|
661
661
|
phase: "read",
|
|
662
|
-
fn:
|
|
662
|
+
fn: kr,
|
|
663
663
|
data: {}
|
|
664
664
|
};
|
|
665
|
-
function
|
|
665
|
+
function Dr(e) {
|
|
666
666
|
return e === "x" ? "y" : "x";
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y,
|
|
668
|
+
function Ar(e) {
|
|
669
|
+
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = 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 =
|
|
674
|
+
}), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Dr(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,56 +685,56 @@ function Rr(e) {
|
|
|
685
685
|
};
|
|
686
686
|
if (!!d) {
|
|
687
687
|
if (i) {
|
|
688
|
-
var A, G = c === "y" ? R : j, J = c === "y" ?
|
|
688
|
+
var A, G = c === "y" ? R : j, J = c === "y" ? N : I, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ne = 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 : xt(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ie = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ne - Q - ce - k.mainAxis, Bt = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Dt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, At = L + Ie - Ze - Dt, Rt = L + Bt - Ze, _e = he(u ? je(Pe, At) : Pe, L, u ? re(K, Rt) : K);
|
|
692
692
|
d[c] = _e, D[c] = _e - L;
|
|
693
693
|
}
|
|
694
694
|
if (l) {
|
|
695
|
-
var et,
|
|
695
|
+
var et, jt = c === "x" ? R : j, zt = c === "x" ? N : I, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[jt], rt = Z - v[zt], 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 ? tr(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;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const Rr = {
|
|
702
702
|
name: "preventOverflow",
|
|
703
703
|
enabled: !0,
|
|
704
704
|
phase: "main",
|
|
705
|
-
fn:
|
|
705
|
+
fn: Ar,
|
|
706
706
|
requiresIfExists: ["offset"]
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function jr(e) {
|
|
709
709
|
return {
|
|
710
710
|
scrollLeft: e.scrollLeft,
|
|
711
711
|
scrollTop: e.scrollTop
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return e === M(e) || !T(e) ? Je(e) :
|
|
714
|
+
function zr(e) {
|
|
715
|
+
return e === M(e) || !T(e) ? Je(e) : jr(e);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Tr(e) {
|
|
718
718
|
var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
|
|
719
719
|
return r !== 1 || n !== 1;
|
|
720
720
|
}
|
|
721
721
|
function Nr(e, t, r) {
|
|
722
722
|
r === void 0 && (r = !1);
|
|
723
|
-
var n = T(t), o = T(t) &&
|
|
723
|
+
var n = T(t), o = T(t) && Tr(t), i = Y(t), a = le(e, o, r), l = {
|
|
724
724
|
scrollLeft: 0,
|
|
725
725
|
scrollTop: 0
|
|
726
726
|
}, s = {
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0
|
|
729
729
|
};
|
|
730
|
-
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l =
|
|
730
|
+
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = zr(t)), T(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Ke(i))), {
|
|
731
731
|
x: a.left + l.scrollLeft - s.x,
|
|
732
732
|
y: a.top + l.scrollTop - s.y,
|
|
733
733
|
width: a.width,
|
|
734
734
|
height: a.height
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Ir(e) {
|
|
738
738
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
739
|
e.forEach(function(i) {
|
|
740
740
|
t.set(i.name, i);
|
|
@@ -753,15 +753,15 @@ function Mr(e) {
|
|
|
753
753
|
r.has(i.name) || o(i);
|
|
754
754
|
}), n;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var t =
|
|
756
|
+
function Mr(e) {
|
|
757
|
+
var t = Ir(e);
|
|
758
758
|
return qe.reduce(function(r, n) {
|
|
759
759
|
return r.concat(t.filter(function(o) {
|
|
760
760
|
return o.phase === n;
|
|
761
761
|
}));
|
|
762
762
|
}, []);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Lr(e) {
|
|
765
765
|
var t;
|
|
766
766
|
return function() {
|
|
767
767
|
return t || (t = new Promise(function(r) {
|
|
@@ -771,40 +771,40 @@ 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) {
|
|
778
778
|
return o.replace(/%s/, i);
|
|
779
779
|
}, e);
|
|
780
780
|
}
|
|
781
|
-
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
782
|
-
function
|
|
781
|
+
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Vr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
782
|
+
function qr(e) {
|
|
783
783
|
e.forEach(function(t) {
|
|
784
784
|
[].concat(Object.keys(t), vt).filter(function(r, n, o) {
|
|
785
785
|
return o.indexOf(r) === n;
|
|
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,12 +817,12 @@ 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(Vr, String(t.name), n, n));
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Fr(e, t) {
|
|
826
826
|
var r = /* @__PURE__ */ new Set();
|
|
827
827
|
return e.filter(function(n) {
|
|
828
828
|
var o = t(n);
|
|
@@ -830,7 +830,7 @@ function Wr(e, t) {
|
|
|
830
830
|
return r.add(o), !0;
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Wr(e) {
|
|
834
834
|
var t = e.reduce(function(r, n) {
|
|
835
835
|
var o = r[n.name];
|
|
836
836
|
return r[n.name] = o ? Object.assign({}, o, n, {
|
|
@@ -842,7 +842,7 @@ function 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.", Hr = "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 Ur(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) {
|
|
@@ -878,27 +878,27 @@ function Yr(e) {
|
|
|
878
878
|
reference: ne(l) ? me(l) : l.contextElement ? me(l.contextElement) : [],
|
|
879
879
|
popper: me(s)
|
|
880
880
|
};
|
|
881
|
-
var $ =
|
|
881
|
+
var $ = Mr(Wr([].concat(n, p.options.modifiers)));
|
|
882
882
|
if (p.orderedModifiers = $.filter(function(b) {
|
|
883
883
|
return b.enabled;
|
|
884
884
|
}), process.env.NODE_ENV !== "production") {
|
|
885
|
-
var c =
|
|
885
|
+
var c = Fr([].concat($, p.options.modifiers), function(b) {
|
|
886
886
|
var D = b.name;
|
|
887
887
|
return D;
|
|
888
888
|
});
|
|
889
|
-
if (
|
|
889
|
+
if (qr(c), V(p.options.placement) === ze) {
|
|
890
890
|
var g = p.orderedModifiers.find(function(b) {
|
|
891
891
|
var D = b.name;
|
|
892
892
|
return D === "flip";
|
|
893
893
|
});
|
|
894
894
|
g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
895
895
|
}
|
|
896
|
-
var 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(Hr);
|
|
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,
|
|
@@ -932,7 +932,7 @@ function Yr(e) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
|
-
update:
|
|
935
|
+
update: Lr(function() {
|
|
936
936
|
return new Promise(function(v) {
|
|
937
937
|
u.forceUpdate(), v(p);
|
|
938
938
|
});
|
|
@@ -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,10 +969,10 @@ function Yr(e) {
|
|
|
969
969
|
return u;
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
var
|
|
973
|
-
defaultModifiers:
|
|
972
|
+
var Xr = [ur, Br, pr, Zt, Sr, xr, Rr, ir, Cr], Yr = /* @__PURE__ */ Ur({
|
|
973
|
+
defaultModifiers: Xr
|
|
974
974
|
});
|
|
975
|
-
const
|
|
975
|
+
const Gr = {
|
|
976
976
|
props: {
|
|
977
977
|
componentPrefix: String,
|
|
978
978
|
size: String,
|
|
@@ -991,7 +991,7 @@ const Jr = {
|
|
|
991
991
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, Jr = {
|
|
995
995
|
props: {
|
|
996
996
|
componentPrefix: String,
|
|
997
997
|
variant: String,
|
|
@@ -1010,11 +1010,11 @@ const Jr = {
|
|
|
1010
1010
|
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
},
|
|
1013
|
+
}, Kr = {
|
|
1014
1014
|
name: "Btn",
|
|
1015
1015
|
mixins: [
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
Gr,
|
|
1017
|
+
Jr
|
|
1018
1018
|
],
|
|
1019
1019
|
props: {
|
|
1020
1020
|
active: Boolean,
|
|
@@ -1056,7 +1056,7 @@ const Jr = {
|
|
|
1056
1056
|
r[n] = o;
|
|
1057
1057
|
return r;
|
|
1058
1058
|
};
|
|
1059
|
-
function
|
|
1059
|
+
function Qr(e, t, r, n, o, i) {
|
|
1060
1060
|
return W(), ee(He(i.component), ge(e.$attrs, {
|
|
1061
1061
|
disabled: r.disabled,
|
|
1062
1062
|
class: i.classes,
|
|
@@ -1070,7 +1070,7 @@ function Zr(e, t, r, n, o, i) {
|
|
|
1070
1070
|
_: 3
|
|
1071
1071
|
}, 16, ["disabled", "class"]);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1073
|
+
const Zr = /* @__PURE__ */ fe(Kr, [["render", Qr]]), _r = {
|
|
1074
1074
|
props: {
|
|
1075
1075
|
componentPrefix: String,
|
|
1076
1076
|
size: String,
|
|
@@ -1087,14 +1087,14 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
|
1087
1087
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, en = (e, t) => {
|
|
1091
1091
|
const r = e.__vccOpts || e;
|
|
1092
1092
|
for (const [n, o] of t)
|
|
1093
1093
|
r[n] = o;
|
|
1094
1094
|
return r;
|
|
1095
|
-
},
|
|
1095
|
+
}, tn = {
|
|
1096
1096
|
name: "BtnGroup",
|
|
1097
|
-
mixins: [
|
|
1097
|
+
mixins: [_r],
|
|
1098
1098
|
props: {
|
|
1099
1099
|
sizePrefix: {
|
|
1100
1100
|
type: String,
|
|
@@ -1115,47 +1115,30 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
|
-
},
|
|
1119
|
-
function
|
|
1120
|
-
return W(),
|
|
1118
|
+
}, rn = ["data-toggle"];
|
|
1119
|
+
function nn(e, t, r, n, o, i) {
|
|
1120
|
+
return W(), Ue("div", {
|
|
1121
1121
|
class: F(i.classes),
|
|
1122
1122
|
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
1123
|
role: "group"
|
|
1124
|
-
}, [P(e.$slots, "default")], 10,
|
|
1124
|
+
}, [P(e.$slots, "default")], 10, rn);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1126
|
+
const on = /* @__PURE__ */ en(tn, [["render", nn]]);
|
|
1127
1127
|
function Ve(e, t) {
|
|
1128
1128
|
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return (r) => {
|
|
1132
|
-
typeof t == "function" && t(r), r.cancelBubble || e(r);
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1135
|
-
function yt(e, t) {
|
|
1136
|
-
return e.attrs.on[t] || e.type && e.type.listeners && e.componentOptions.listeners[t];
|
|
1137
|
-
}
|
|
1138
|
-
function sn(e) {
|
|
1139
|
-
return e && e.type && (e.type === "fragment" || typeof e.type == "symbol");
|
|
1140
|
-
}
|
|
1141
|
-
function Bt(e) {
|
|
1130
|
+
function St(e) {
|
|
1142
1131
|
for (const t of e) {
|
|
1143
|
-
|
|
1144
|
-
return Bt(t.children);
|
|
1145
|
-
t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1132
|
+
t.type === Nt && St(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1146
1133
|
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1147
|
-
t.
|
|
1148
|
-
context.parent.$emit("click-item", o, t);
|
|
1149
|
-
}, yt(t, "click")), t.attrs.on.blur = bt((o) => {
|
|
1150
|
-
context.parent.$emit("blur-item", o, t);
|
|
1151
|
-
}, yt(t, "blur")), typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1134
|
+
typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1152
1135
|
}
|
|
1153
1136
|
return e;
|
|
1154
1137
|
}
|
|
1155
|
-
const
|
|
1138
|
+
const an = (e, t) => Tt("div", {}, St(t.slots.default())), sn = an, ln = {
|
|
1156
1139
|
name: "DropdownMenu",
|
|
1157
1140
|
components: {
|
|
1158
|
-
DropdownMenuItems:
|
|
1141
|
+
DropdownMenuItems: sn
|
|
1159
1142
|
},
|
|
1160
1143
|
props: {
|
|
1161
1144
|
align: {
|
|
@@ -1167,10 +1150,10 @@ const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
|
|
|
1167
1150
|
},
|
|
1168
1151
|
show: Boolean
|
|
1169
1152
|
}
|
|
1170
|
-
},
|
|
1171
|
-
function
|
|
1153
|
+
}, pn = ["aria-labelledby"];
|
|
1154
|
+
function fn(e, t, r, n, o, i) {
|
|
1172
1155
|
const a = te("dropdown-menu-items");
|
|
1173
|
-
return W(),
|
|
1156
|
+
return W(), Ue("div", {
|
|
1174
1157
|
class: F(["dropdown-menu", {
|
|
1175
1158
|
"dropdown-menu-left": r.align === "left",
|
|
1176
1159
|
"dropdown-menu-right": r.align === "right",
|
|
@@ -1186,9 +1169,9 @@ function cn(e, t, r, n, o, i) {
|
|
|
1186
1169
|
]),
|
|
1187
1170
|
_: 3
|
|
1188
1171
|
})
|
|
1189
|
-
], 10,
|
|
1172
|
+
], 10, pn);
|
|
1190
1173
|
}
|
|
1191
|
-
const
|
|
1174
|
+
const un = /* @__PURE__ */ fe(ln, [["render", fn]]), cn = {
|
|
1192
1175
|
props: {
|
|
1193
1176
|
expanded: {
|
|
1194
1177
|
type: Boolean,
|
|
@@ -1204,7 +1187,7 @@ const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
|
|
|
1204
1187
|
}
|
|
1205
1188
|
}
|
|
1206
1189
|
};
|
|
1207
|
-
function
|
|
1190
|
+
function dn(e, t, r, n, o, i) {
|
|
1208
1191
|
return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
|
|
1209
1192
|
"aria-haspopup": "true",
|
|
1210
1193
|
"aria-expanded": r.expanded,
|
|
@@ -1216,13 +1199,14 @@ function hn(e, t, r, n, o, i) {
|
|
|
1216
1199
|
_: 3
|
|
1217
1200
|
}, 16, ["id", "aria-expanded", "type"]);
|
|
1218
1201
|
}
|
|
1219
|
-
const
|
|
1202
|
+
const vn = /* @__PURE__ */ fe(cn, [["render", dn]]), kt = {
|
|
1220
1203
|
components: {
|
|
1221
|
-
BtnDropdownAction:
|
|
1222
|
-
BtnGroup:
|
|
1223
|
-
DropdownMenu:
|
|
1204
|
+
BtnDropdownAction: vn,
|
|
1205
|
+
BtnGroup: on,
|
|
1206
|
+
DropdownMenu: un
|
|
1224
1207
|
},
|
|
1225
|
-
extends:
|
|
1208
|
+
extends: Zr,
|
|
1209
|
+
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1226
1210
|
props: {
|
|
1227
1211
|
align: {
|
|
1228
1212
|
type: String,
|
|
@@ -1300,7 +1284,8 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1300
1284
|
hide: this.hide,
|
|
1301
1285
|
onBlur: this.onBlur,
|
|
1302
1286
|
onClickItem: this.onClickItem,
|
|
1303
|
-
onClickToggle: this.onClickToggle
|
|
1287
|
+
onClickToggle: this.onClickToggle,
|
|
1288
|
+
expanded: this.expanded
|
|
1304
1289
|
};
|
|
1305
1290
|
},
|
|
1306
1291
|
placement() {
|
|
@@ -1355,7 +1340,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1355
1340
|
});
|
|
1356
1341
|
}
|
|
1357
1342
|
},
|
|
1358
|
-
|
|
1343
|
+
beforeUnmount() {
|
|
1359
1344
|
this.popper && this.popper.destroy();
|
|
1360
1345
|
},
|
|
1361
1346
|
methods: {
|
|
@@ -1378,7 +1363,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1378
1363
|
show() {
|
|
1379
1364
|
this.expanded = !0;
|
|
1380
1365
|
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1381
|
-
!this.nav && !this.popper ? this.popper =
|
|
1366
|
+
!this.nav && !this.popper ? this.popper = Yr(e, this.$refs.menu.$el, {
|
|
1382
1367
|
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1383
1368
|
onFirstUpdate: () => {
|
|
1384
1369
|
this.triggerAnimation = this.animated;
|
|
@@ -1401,7 +1386,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1401
1386
|
this.isFocusable(e.target) || this.hide();
|
|
1402
1387
|
},
|
|
1403
1388
|
onClickToggle(e) {
|
|
1404
|
-
|
|
1389
|
+
this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1405
1390
|
}
|
|
1406
1391
|
},
|
|
1407
1392
|
watch: {
|
|
@@ -1411,16 +1396,18 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1411
1396
|
});
|
|
1412
1397
|
}
|
|
1413
1398
|
}
|
|
1414
|
-
},
|
|
1399
|
+
}, hn = {
|
|
1415
1400
|
mixins: [
|
|
1416
|
-
|
|
1401
|
+
kt
|
|
1402
|
+
],
|
|
1403
|
+
emits: [
|
|
1404
|
+
"click"
|
|
1417
1405
|
]
|
|
1418
|
-
},
|
|
1419
|
-
function
|
|
1406
|
+
}, mn = ["id", "aria-expanded"];
|
|
1407
|
+
function gn(e, t, r, n, o, i) {
|
|
1420
1408
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1421
1409
|
return W(), ee(s, {
|
|
1422
|
-
class: F([e.classes, "btn-dropdown-split"])
|
|
1423
|
-
onClick: e.onClick
|
|
1410
|
+
class: F([e.classes, "btn-dropdown-split"])
|
|
1424
1411
|
}, {
|
|
1425
1412
|
default: B(() => [
|
|
1426
1413
|
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
|
|
@@ -1446,7 +1433,7 @@ function yn(e, t, r, n, o, i) {
|
|
|
1446
1433
|
we(s, { ref: "split" }, {
|
|
1447
1434
|
default: B(() => [
|
|
1448
1435
|
P(e.$slots, "split", ie(Re(e.scope)), () => [
|
|
1449
|
-
e.split ? (W(),
|
|
1436
|
+
e.split ? (W(), Ue("button", {
|
|
1450
1437
|
key: 0,
|
|
1451
1438
|
id: e.$attrs.id,
|
|
1452
1439
|
type: "button",
|
|
@@ -1455,7 +1442,7 @@ function yn(e, t, r, n, o, i) {
|
|
|
1455
1442
|
class: F(e.toggleClasses),
|
|
1456
1443
|
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1457
1444
|
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1458
|
-
}, null, 42,
|
|
1445
|
+
}, null, 42, mn)) : de("", !0)
|
|
1459
1446
|
]),
|
|
1460
1447
|
we(l, {
|
|
1461
1448
|
id: e.$attrs.id,
|
|
@@ -1463,14 +1450,14 @@ function yn(e, t, r, n, o, i) {
|
|
|
1463
1450
|
align: e.align,
|
|
1464
1451
|
show: e.expanded,
|
|
1465
1452
|
class: F({ animated: e.triggerAnimation }),
|
|
1466
|
-
|
|
1467
|
-
|
|
1453
|
+
onClick: e.onClickItem,
|
|
1454
|
+
onBlur: e.onBlur
|
|
1468
1455
|
}, {
|
|
1469
1456
|
default: B(() => [
|
|
1470
1457
|
P(e.$slots, "default")
|
|
1471
1458
|
]),
|
|
1472
1459
|
_: 3
|
|
1473
|
-
}, 8, ["id", "align", "show", "class", "
|
|
1460
|
+
}, 8, ["id", "align", "show", "class", "onClick", "onBlur"])
|
|
1474
1461
|
]),
|
|
1475
1462
|
_: 3
|
|
1476
1463
|
}, 512),
|
|
@@ -1496,14 +1483,14 @@ function yn(e, t, r, n, o, i) {
|
|
|
1496
1483
|
]) : de("", !0)
|
|
1497
1484
|
]),
|
|
1498
1485
|
_: 3
|
|
1499
|
-
}, 8, ["class"
|
|
1486
|
+
}, 8, ["class"]);
|
|
1500
1487
|
}
|
|
1501
|
-
const
|
|
1488
|
+
const bn = /* @__PURE__ */ fe(hn, [["render", gn]]), yn = {
|
|
1502
1489
|
mixins: [
|
|
1503
|
-
|
|
1490
|
+
kt
|
|
1504
1491
|
]
|
|
1505
1492
|
};
|
|
1506
|
-
function
|
|
1493
|
+
function wn(e, t, r, n, o, i) {
|
|
1507
1494
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1508
1495
|
return W(), ee(s, {
|
|
1509
1496
|
class: F(e.classes)
|
|
@@ -1516,7 +1503,7 @@ function On(e, t, r, n, o, i) {
|
|
|
1516
1503
|
expanded: e.expanded,
|
|
1517
1504
|
href: e.href,
|
|
1518
1505
|
to: e.to,
|
|
1519
|
-
style:
|
|
1506
|
+
style: It(e.toggleStyle),
|
|
1520
1507
|
class: F(e.toggleClasses),
|
|
1521
1508
|
onBlur: e.onBlur,
|
|
1522
1509
|
onClick: e.onClickToggle
|
|
@@ -1536,36 +1523,44 @@ function On(e, t, r, n, o, i) {
|
|
|
1536
1523
|
align: e.align,
|
|
1537
1524
|
show: e.expanded,
|
|
1538
1525
|
class: F({ animated: e.triggerAnimation }),
|
|
1539
|
-
|
|
1540
|
-
|
|
1526
|
+
onBlur: e.onBlur,
|
|
1527
|
+
onClick: e.onClickItem
|
|
1541
1528
|
}, {
|
|
1542
1529
|
default: B(() => [
|
|
1543
1530
|
P(e.$slots, "default")
|
|
1544
1531
|
]),
|
|
1545
1532
|
_: 3
|
|
1546
|
-
}, 8, ["id", "align", "show", "class", "
|
|
1533
|
+
}, 8, ["id", "align", "show", "class", "onBlur", "onClick"])
|
|
1547
1534
|
]),
|
|
1548
1535
|
_: 3
|
|
1549
1536
|
}, 8, ["class"]);
|
|
1550
1537
|
}
|
|
1551
|
-
const
|
|
1552
|
-
const
|
|
1538
|
+
const On = /* @__PURE__ */ fe(yn, [["render", wn]]);
|
|
1539
|
+
const xn = {
|
|
1553
1540
|
name: "BtnDropdown",
|
|
1554
1541
|
components: {
|
|
1555
|
-
BtnDropdownSplit:
|
|
1556
|
-
BtnDropdownSingle:
|
|
1542
|
+
BtnDropdownSplit: bn,
|
|
1543
|
+
BtnDropdownSingle: On
|
|
1557
1544
|
},
|
|
1558
|
-
inheritAttrs: !1
|
|
1545
|
+
inheritAttrs: !1,
|
|
1546
|
+
emits: [
|
|
1547
|
+
"click",
|
|
1548
|
+
"click-toggle",
|
|
1549
|
+
"dropdown",
|
|
1550
|
+
"show",
|
|
1551
|
+
"hide",
|
|
1552
|
+
"toggle"
|
|
1553
|
+
]
|
|
1559
1554
|
};
|
|
1560
|
-
function
|
|
1555
|
+
function $n(e, t, r, n, o, i) {
|
|
1561
1556
|
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) =>
|
|
1568
|
-
}),
|
|
1557
|
+
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1558
|
+
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
1559
|
+
onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
|
|
1560
|
+
onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
|
|
1561
|
+
onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
|
|
1562
|
+
onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
|
|
1563
|
+
}), Mt({
|
|
1569
1564
|
icon: B(() => [
|
|
1570
1565
|
P(e.$slots, "icon")
|
|
1571
1566
|
]),
|
|
@@ -1580,7 +1575,7 @@ function Pn(e, t, r, n, o, i) {
|
|
|
1580
1575
|
]),
|
|
1581
1576
|
_: 2
|
|
1582
1577
|
}, [
|
|
1583
|
-
e.$attrs.label ||
|
|
1578
|
+
e.$attrs.label || e.$slots.label ? {
|
|
1584
1579
|
name: "label",
|
|
1585
1580
|
fn: B(() => [
|
|
1586
1581
|
P(e.$slots, "label", {}, () => [
|
|
@@ -1591,7 +1586,7 @@ function Pn(e, t, r, n, o, i) {
|
|
|
1591
1586
|
} : void 0
|
|
1592
1587
|
]), 1040);
|
|
1593
1588
|
}
|
|
1594
|
-
const
|
|
1589
|
+
const Pn = /* @__PURE__ */ fe(xn, [["render", $n]]);
|
|
1595
1590
|
export {
|
|
1596
|
-
|
|
1591
|
+
Pn as BtnDropdown
|
|
1597
1592
|
};
|