@codeandfunction/callaloo 3.16.5 → 3.16.7
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/chunks/{CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +1 -1
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js → CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js} +1 -1
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-C_BQCWeg.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DwNvvX0v.js → CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js} +2 -2
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-Mikbgpn2.js → CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js} +21 -24
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-C6gOJx7A.js → CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js} +53 -56
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/CLIcon/CLIcon.css +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLTable/CLTable.css +1 -1
- package/dist/components/CLTable/CLTable.js +72 -74
- package/dist/components/Containers/CLCard/CLCard.css +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +2 -2
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
- package/dist/components/Form/CLInput/CLInput.css +1 -1
- package/dist/components/Form/CLInput/CLInput.js +3 -3
- package/dist/components/Form/CLSelect/CLSelect.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +52 -56
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.css +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +69 -72
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +199 -202
- package/dist/components/Popups/CLToast/CLToast.css +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Bj9WF_mX.js +0 -253
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js +0 -87
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js +0 -34
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLDropdownMenu.css';
|
|
3
|
-
import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe,
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { b as
|
|
7
|
-
import { useDropdown as
|
|
8
|
-
import { useEsc as
|
|
9
|
-
import { CLPlacement as
|
|
10
|
-
const tt = Math.min,
|
|
3
|
+
import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe, onBeforeUnmount as ie, createElementBlock as Rt, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as re, withCtx as Et, createTextVNode as le, toDisplayString as se, normalizeStyle as ce, renderSlot as ae } from "vue";
|
|
4
|
+
import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
|
|
5
|
+
import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js";
|
|
6
|
+
import { b as de, i as mt } from "../../../chunks/helper--hRjZVm6.js";
|
|
7
|
+
import { useDropdown as me } from "../../../composables/useDropdown.js";
|
|
8
|
+
import { useEsc as he } from "../../../composables/useEsc.js";
|
|
9
|
+
import { CLPlacement as ge, CLIconSizes as Lt, CLIconNames as pe, CLColorVariants as Dt, CLSizes as we, CLColors as Tt } from "../../../index.js";
|
|
10
|
+
const tt = Math.min, W = Math.max, et = Math.round, Q = Math.floor, B = (t) => ({
|
|
11
11
|
x: t,
|
|
12
12
|
y: t
|
|
13
|
-
}),
|
|
13
|
+
}), ye = {
|
|
14
14
|
left: "right",
|
|
15
15
|
right: "left",
|
|
16
16
|
bottom: "top",
|
|
17
17
|
top: "bottom"
|
|
18
|
-
},
|
|
18
|
+
}, ve = {
|
|
19
19
|
start: "end",
|
|
20
20
|
end: "start"
|
|
21
21
|
};
|
|
22
22
|
function Bt(t, e, n) {
|
|
23
|
-
return
|
|
23
|
+
return W(t, tt(e, n));
|
|
24
24
|
}
|
|
25
25
|
function it(t, e) {
|
|
26
26
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -31,54 +31,54 @@ function N(t) {
|
|
|
31
31
|
function rt(t) {
|
|
32
32
|
return t.split("-")[1];
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Wt(t) {
|
|
35
35
|
return t === "x" ? "y" : "x";
|
|
36
36
|
}
|
|
37
37
|
function Nt(t) {
|
|
38
38
|
return t === "y" ? "height" : "width";
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
return
|
|
40
|
+
const xe = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
41
|
+
function z(t) {
|
|
42
|
+
return xe.has(N(t)) ? "y" : "x";
|
|
43
43
|
}
|
|
44
44
|
function Xt(t) {
|
|
45
|
-
return
|
|
45
|
+
return Wt(z(t));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function be(t, e, n) {
|
|
48
48
|
n === void 0 && (n = !1);
|
|
49
49
|
const o = rt(t), i = Xt(t), l = Nt(i);
|
|
50
50
|
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
51
51
|
return e.reference[l] > e.floating[l] && (r = nt(r)), [r, nt(r)];
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ce(t) {
|
|
54
54
|
const e = nt(t);
|
|
55
55
|
return [gt(t), e, gt(e)];
|
|
56
56
|
}
|
|
57
57
|
function gt(t) {
|
|
58
|
-
return t.replace(/start|end/g, (e) =>
|
|
58
|
+
return t.replace(/start|end/g, (e) => ve[e]);
|
|
59
59
|
}
|
|
60
|
-
const Pt = ["left", "right"], kt = ["right", "left"],
|
|
61
|
-
function
|
|
60
|
+
const Pt = ["left", "right"], kt = ["right", "left"], Se = ["top", "bottom"], Re = ["bottom", "top"];
|
|
61
|
+
function Ae(t, e, n) {
|
|
62
62
|
switch (t) {
|
|
63
63
|
case "top":
|
|
64
64
|
case "bottom":
|
|
65
65
|
return n ? e ? kt : Pt : e ? Pt : kt;
|
|
66
66
|
case "left":
|
|
67
67
|
case "right":
|
|
68
|
-
return e ?
|
|
68
|
+
return e ? Se : Re;
|
|
69
69
|
default:
|
|
70
70
|
return [];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Oe(t, e, n, o) {
|
|
74
74
|
const i = rt(t);
|
|
75
|
-
let l =
|
|
75
|
+
let l = Ae(N(t), n === "start", o);
|
|
76
76
|
return i && (l = l.map((r) => r + "-" + i), e && (l = l.concat(l.map(gt)))), l;
|
|
77
77
|
}
|
|
78
78
|
function nt(t) {
|
|
79
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
79
|
+
return t.replace(/left|right|bottom|top/g, (e) => ye[e]);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ee(t) {
|
|
82
82
|
return {
|
|
83
83
|
top: 0,
|
|
84
84
|
right: 0,
|
|
@@ -87,8 +87,8 @@ function Le(t) {
|
|
|
87
87
|
...t
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return typeof t != "number" ?
|
|
90
|
+
function Le(t) {
|
|
91
|
+
return typeof t != "number" ? Ee(t) : {
|
|
92
92
|
top: t,
|
|
93
93
|
right: t,
|
|
94
94
|
bottom: t,
|
|
@@ -118,7 +118,7 @@ function Vt(t, e, n) {
|
|
|
118
118
|
reference: o,
|
|
119
119
|
floating: i
|
|
120
120
|
} = t;
|
|
121
|
-
const l =
|
|
121
|
+
const l = z(e), r = Xt(e), s = Nt(r), c = N(e), a = l === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[s] / 2 - i[s] / 2;
|
|
122
122
|
let d;
|
|
123
123
|
switch (c) {
|
|
124
124
|
case "top":
|
|
@@ -161,7 +161,7 @@ function Vt(t, e, n) {
|
|
|
161
161
|
}
|
|
162
162
|
return d;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const De = async (t, e, n) => {
|
|
165
165
|
const {
|
|
166
166
|
placement: o = "bottom",
|
|
167
167
|
strategy: i = "absolute",
|
|
@@ -181,7 +181,7 @@ const Te = async (t, e, n) => {
|
|
|
181
181
|
name: v,
|
|
182
182
|
fn: g
|
|
183
183
|
} = s[y], {
|
|
184
|
-
x:
|
|
184
|
+
x: p,
|
|
185
185
|
y: x,
|
|
186
186
|
data: C,
|
|
187
187
|
reset: b
|
|
@@ -199,7 +199,7 @@ const Te = async (t, e, n) => {
|
|
|
199
199
|
floating: e
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
f =
|
|
202
|
+
f = p ?? f, u = x ?? u, d = {
|
|
203
203
|
...d,
|
|
204
204
|
[v]: {
|
|
205
205
|
...d[v],
|
|
@@ -238,12 +238,12 @@ async function jt(t, e) {
|
|
|
238
238
|
elementContext: u = "floating",
|
|
239
239
|
altBoundary: m = !1,
|
|
240
240
|
padding: d = 0
|
|
241
|
-
} = it(e, t), h =
|
|
241
|
+
} = it(e, t), h = Le(d), v = s[m ? u === "floating" ? "reference" : "floating" : u], g = ot(await l.getClippingRect({
|
|
242
242
|
element: (n = await (l.isElement == null ? void 0 : l.isElement(v))) == null || n ? v : v.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(s.floating)),
|
|
243
243
|
boundary: a,
|
|
244
244
|
rootBoundary: f,
|
|
245
245
|
strategy: c
|
|
246
|
-
})),
|
|
246
|
+
})), p = u === "floating" ? {
|
|
247
247
|
x: o,
|
|
248
248
|
y: i,
|
|
249
249
|
width: r.floating.width,
|
|
@@ -256,10 +256,10 @@ async function jt(t, e) {
|
|
|
256
256
|
y: 1
|
|
257
257
|
}, b = ot(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
258
258
|
elements: s,
|
|
259
|
-
rect:
|
|
259
|
+
rect: p,
|
|
260
260
|
offsetParent: x,
|
|
261
261
|
strategy: c
|
|
262
|
-
}) :
|
|
262
|
+
}) : p);
|
|
263
263
|
return {
|
|
264
264
|
top: (g.top - b.top + h.top) / C.y,
|
|
265
265
|
bottom: (b.bottom - g.bottom + h.bottom) / C.y,
|
|
@@ -267,7 +267,7 @@ async function jt(t, e) {
|
|
|
267
267
|
right: (b.right - g.right + h.right) / C.x
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const Te = function(t) {
|
|
271
271
|
return t === void 0 && (t = {}), {
|
|
272
272
|
name: "flip",
|
|
273
273
|
options: t,
|
|
@@ -291,23 +291,23 @@ const Be = function(t) {
|
|
|
291
291
|
} = it(t, e);
|
|
292
292
|
if ((n = l.arrow) != null && n.alignmentOffset)
|
|
293
293
|
return {};
|
|
294
|
-
const g = N(i),
|
|
295
|
-
!m && T && b.push(...
|
|
296
|
-
const
|
|
294
|
+
const g = N(i), p = z(s), x = N(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = m || (x || !y ? [nt(s)] : Ce(s)), T = h !== "none";
|
|
295
|
+
!m && T && b.push(...Oe(s, y, h, C));
|
|
296
|
+
const w = [s, ...b], S = await jt(e, v), M = [];
|
|
297
297
|
let Y = ((o = l.flip) == null ? void 0 : o.overflows) || [];
|
|
298
|
-
if (f &&
|
|
299
|
-
const H =
|
|
300
|
-
|
|
298
|
+
if (f && M.push(S[g]), u) {
|
|
299
|
+
const H = be(i, r, C);
|
|
300
|
+
M.push(S[H[0]], S[H[1]]);
|
|
301
301
|
}
|
|
302
302
|
if (Y = [...Y, {
|
|
303
303
|
placement: i,
|
|
304
|
-
overflows:
|
|
305
|
-
}], !
|
|
304
|
+
overflows: M
|
|
305
|
+
}], !M.every((H) => H <= 0)) {
|
|
306
306
|
var bt, Ct;
|
|
307
|
-
const H = (((bt = l.flip) == null ? void 0 : bt.index) || 0) + 1, ft =
|
|
308
|
-
if (ft && (!(u === "alignment" ?
|
|
307
|
+
const H = (((bt = l.flip) == null ? void 0 : bt.index) || 0) + 1, ft = w[H];
|
|
308
|
+
if (ft && (!(u === "alignment" ? p !== z(ft) : !1) || // We leave the current main axis only if every placement on that axis
|
|
309
309
|
// overflows the main axis.
|
|
310
|
-
Y.every((O) =>
|
|
310
|
+
Y.every((O) => z(O.placement) === p ? O.overflows[0] > 0 : !0)))
|
|
311
311
|
return {
|
|
312
312
|
data: {
|
|
313
313
|
index: H,
|
|
@@ -317,21 +317,21 @@ const Be = function(t) {
|
|
|
317
317
|
placement: ft
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
let G = (Ct = Y.filter((
|
|
320
|
+
let G = (Ct = Y.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Ct.placement;
|
|
321
321
|
if (!G)
|
|
322
322
|
switch (d) {
|
|
323
323
|
case "bestFit": {
|
|
324
324
|
var St;
|
|
325
|
-
const
|
|
325
|
+
const I = (St = Y.filter((O) => {
|
|
326
326
|
if (T) {
|
|
327
|
-
const $ =
|
|
328
|
-
return $ ===
|
|
327
|
+
const $ = z(O.placement);
|
|
328
|
+
return $ === p || // Create a bias to the `y` side axis due to horizontal
|
|
329
329
|
// reading directions favoring greater width.
|
|
330
330
|
$ === "y";
|
|
331
331
|
}
|
|
332
332
|
return !0;
|
|
333
333
|
}).map((O) => [O.placement, O.overflows.filter(($) => $ > 0).reduce(($, Qt) => $ + Qt, 0)]).sort((O, $) => O[1] - $[1])[0]) == null ? void 0 : St[0];
|
|
334
|
-
|
|
334
|
+
I && (G = I);
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
337
337
|
case "initialPlacement":
|
|
@@ -348,13 +348,13 @@ const Be = function(t) {
|
|
|
348
348
|
return {};
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
},
|
|
352
|
-
async function
|
|
351
|
+
}, Be = /* @__PURE__ */ new Set(["left", "top"]);
|
|
352
|
+
async function Pe(t, e) {
|
|
353
353
|
const {
|
|
354
354
|
placement: n,
|
|
355
355
|
platform: o,
|
|
356
356
|
elements: i
|
|
357
|
-
} = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), s = rt(n), c =
|
|
357
|
+
} = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), s = rt(n), c = z(n) === "y", a = Be.has(r) ? -1 : 1, f = l && c ? -1 : 1, u = it(e, t);
|
|
358
358
|
let {
|
|
359
359
|
mainAxis: m,
|
|
360
360
|
crossAxis: d,
|
|
@@ -376,7 +376,7 @@ async function ke(t, e) {
|
|
|
376
376
|
y: d * f
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const ke = function(t) {
|
|
380
380
|
return t === void 0 && (t = 0), {
|
|
381
381
|
name: "offset",
|
|
382
382
|
options: t,
|
|
@@ -387,7 +387,7 @@ const Ve = function(t) {
|
|
|
387
387
|
y: l,
|
|
388
388
|
placement: r,
|
|
389
389
|
middlewareData: s
|
|
390
|
-
} = e, c = await
|
|
390
|
+
} = e, c = await Pe(e, t);
|
|
391
391
|
return r === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
392
392
|
x: i + c.x,
|
|
393
393
|
y: l + c.y,
|
|
@@ -398,7 +398,7 @@ const Ve = function(t) {
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
},
|
|
401
|
+
}, Ve = function(t) {
|
|
402
402
|
return t === void 0 && (t = {}), {
|
|
403
403
|
name: "shift",
|
|
404
404
|
options: t,
|
|
@@ -414,11 +414,11 @@ const Ve = function(t) {
|
|
|
414
414
|
fn: (v) => {
|
|
415
415
|
let {
|
|
416
416
|
x: g,
|
|
417
|
-
y:
|
|
417
|
+
y: p
|
|
418
418
|
} = v;
|
|
419
419
|
return {
|
|
420
420
|
x: g,
|
|
421
|
-
y:
|
|
421
|
+
y: p
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
},
|
|
@@ -426,15 +426,15 @@ const Ve = function(t) {
|
|
|
426
426
|
} = it(t, e), a = {
|
|
427
427
|
x: n,
|
|
428
428
|
y: o
|
|
429
|
-
}, f = await jt(e, c), u =
|
|
429
|
+
}, f = await jt(e, c), u = z(N(i)), m = Wt(u);
|
|
430
430
|
let d = a[m], h = a[u];
|
|
431
431
|
if (l) {
|
|
432
|
-
const v = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right",
|
|
433
|
-
d = Bt(
|
|
432
|
+
const v = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", p = d + f[v], x = d - f[g];
|
|
433
|
+
d = Bt(p, d, x);
|
|
434
434
|
}
|
|
435
435
|
if (r) {
|
|
436
|
-
const v = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right",
|
|
437
|
-
h = Bt(
|
|
436
|
+
const v = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", p = h + f[v], x = h - f[g];
|
|
437
|
+
h = Bt(p, h, x);
|
|
438
438
|
}
|
|
439
439
|
const y = s.fn({
|
|
440
440
|
...e,
|
|
@@ -481,7 +481,7 @@ function P(t) {
|
|
|
481
481
|
function $t(t) {
|
|
482
482
|
return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
|
|
483
483
|
}
|
|
484
|
-
const
|
|
484
|
+
const $e = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
485
485
|
function J(t) {
|
|
486
486
|
const {
|
|
487
487
|
overflow: e,
|
|
@@ -489,15 +489,15 @@ function J(t) {
|
|
|
489
489
|
overflowY: o,
|
|
490
490
|
display: i
|
|
491
491
|
} = D(t);
|
|
492
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) &&
|
|
492
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !$e.has(i);
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
function
|
|
496
|
-
return
|
|
494
|
+
const ze = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
495
|
+
function Fe(t) {
|
|
496
|
+
return ze.has(j(t));
|
|
497
497
|
}
|
|
498
|
-
const
|
|
498
|
+
const Me = [":popover-open", ":modal"];
|
|
499
499
|
function st(t) {
|
|
500
|
-
return
|
|
500
|
+
return Me.some((e) => {
|
|
501
501
|
try {
|
|
502
502
|
return t.matches(e);
|
|
503
503
|
} catch {
|
|
@@ -505,28 +505,28 @@ function st(t) {
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
const
|
|
508
|
+
const He = ["transform", "translate", "scale", "rotate", "perspective"], Ie = ["transform", "translate", "scale", "rotate", "perspective", "filter"], We = ["paint", "layout", "strict", "content"];
|
|
509
509
|
function yt(t) {
|
|
510
510
|
const e = vt(), n = L(t) ? D(t) : t;
|
|
511
|
-
return
|
|
511
|
+
return He.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ie.some((o) => (n.willChange || "").includes(o)) || We.some((o) => (n.contain || "").includes(o));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
let e =
|
|
513
|
+
function Ne(t) {
|
|
514
|
+
let e = F(t);
|
|
515
515
|
for (; P(e) && !_(e); ) {
|
|
516
516
|
if (yt(e))
|
|
517
517
|
return e;
|
|
518
518
|
if (st(e))
|
|
519
519
|
return null;
|
|
520
|
-
e =
|
|
520
|
+
e = F(e);
|
|
521
521
|
}
|
|
522
522
|
return null;
|
|
523
523
|
}
|
|
524
524
|
function vt() {
|
|
525
525
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
526
526
|
}
|
|
527
|
-
const
|
|
527
|
+
const Xe = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
528
528
|
function _(t) {
|
|
529
|
-
return
|
|
529
|
+
return Xe.has(j(t));
|
|
530
530
|
}
|
|
531
531
|
function D(t) {
|
|
532
532
|
return R(t).getComputedStyle(t);
|
|
@@ -540,7 +540,7 @@ function ct(t) {
|
|
|
540
540
|
scrollTop: t.scrollY
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function F(t) {
|
|
544
544
|
if (j(t) === "html")
|
|
545
545
|
return t;
|
|
546
546
|
const e = (
|
|
@@ -553,7 +553,7 @@ function M(t) {
|
|
|
553
553
|
return $t(e) ? e.host : e;
|
|
554
554
|
}
|
|
555
555
|
function Yt(t) {
|
|
556
|
-
const e =
|
|
556
|
+
const e = F(t);
|
|
557
557
|
return _(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && J(e) ? e : Yt(e);
|
|
558
558
|
}
|
|
559
559
|
function Z(t, e, n) {
|
|
@@ -597,15 +597,15 @@ function U(t) {
|
|
|
597
597
|
y: s
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const je = /* @__PURE__ */ B(0);
|
|
601
601
|
function Ut(t) {
|
|
602
602
|
const e = R(t);
|
|
603
|
-
return !vt() || !e.visualViewport ?
|
|
603
|
+
return !vt() || !e.visualViewport ? je : {
|
|
604
604
|
x: e.visualViewport.offsetLeft,
|
|
605
605
|
y: e.visualViewport.offsetTop
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ye(t, e, n) {
|
|
609
609
|
return e === void 0 && (e = !1), !n || e && n !== R(t) ? !1 : e;
|
|
610
610
|
}
|
|
611
611
|
function X(t, e, n, o) {
|
|
@@ -613,13 +613,13 @@ function X(t, e, n, o) {
|
|
|
613
613
|
const i = t.getBoundingClientRect(), l = xt(t);
|
|
614
614
|
let r = B(1);
|
|
615
615
|
e && (o ? L(o) && (r = U(o)) : r = U(t));
|
|
616
|
-
const s =
|
|
616
|
+
const s = Ye(l, n, o) ? Ut(l) : B(0);
|
|
617
617
|
let c = (i.left + s.x) / r.x, a = (i.top + s.y) / r.y, f = i.width / r.x, u = i.height / r.y;
|
|
618
618
|
if (l) {
|
|
619
619
|
const m = R(l), d = o && L(o) ? R(o) : o;
|
|
620
620
|
let h = m, y = pt(h);
|
|
621
621
|
for (; y && o && d !== h; ) {
|
|
622
|
-
const v = U(y), g = y.getBoundingClientRect(),
|
|
622
|
+
const v = U(y), g = y.getBoundingClientRect(), p = D(y), x = g.left + (y.clientLeft + parseFloat(p.paddingLeft)) * v.x, C = g.top + (y.clientTop + parseFloat(p.paddingTop)) * v.y;
|
|
623
623
|
c *= v.x, a *= v.y, f *= v.x, u *= v.y, c += x, a += C, h = R(y), y = pt(h);
|
|
624
624
|
}
|
|
625
625
|
}
|
|
@@ -641,7 +641,7 @@ function _t(t, e) {
|
|
|
641
641
|
y: i
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function qe(t) {
|
|
645
645
|
let {
|
|
646
646
|
elements: e,
|
|
647
647
|
rect: n,
|
|
@@ -668,22 +668,22 @@ function Ue(t) {
|
|
|
668
668
|
y: n.y * a.y - c.scrollTop * a.y + f.y + m.y
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Ue(t) {
|
|
672
672
|
return Array.from(t.getClientRects());
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const e = k(t), n = ct(t), o = t.ownerDocument.body, i =
|
|
674
|
+
function _e(t) {
|
|
675
|
+
const e = k(t), n = ct(t), o = t.ownerDocument.body, i = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), l = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
676
676
|
let r = -n.scrollLeft + at(t);
|
|
677
677
|
const s = -n.scrollTop;
|
|
678
|
-
return D(o).direction === "rtl" && (r +=
|
|
678
|
+
return D(o).direction === "rtl" && (r += W(e.clientWidth, o.clientWidth) - i), {
|
|
679
679
|
width: i,
|
|
680
680
|
height: l,
|
|
681
681
|
x: r,
|
|
682
682
|
y: s
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
const
|
|
686
|
-
function
|
|
685
|
+
const zt = 25;
|
|
686
|
+
function Ge(t, e) {
|
|
687
687
|
const n = R(t), o = k(t), i = n.visualViewport;
|
|
688
688
|
let l = o.clientWidth, r = o.clientHeight, s = 0, c = 0;
|
|
689
689
|
if (i) {
|
|
@@ -694,8 +694,8 @@ function Ke(t, e) {
|
|
|
694
694
|
const a = at(o);
|
|
695
695
|
if (a <= 0) {
|
|
696
696
|
const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
|
|
697
|
-
h <=
|
|
698
|
-
} else a <=
|
|
697
|
+
h <= zt && (l -= h);
|
|
698
|
+
} else a <= zt && (l += a);
|
|
699
699
|
return {
|
|
700
700
|
width: l,
|
|
701
701
|
height: r,
|
|
@@ -703,8 +703,8 @@ function Ke(t, e) {
|
|
|
703
703
|
y: c
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
const
|
|
707
|
-
function
|
|
706
|
+
const Ke = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
707
|
+
function Ze(t, e) {
|
|
708
708
|
const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, l = P(t) ? U(t) : B(1), r = t.clientWidth * l.x, s = t.clientHeight * l.y, c = i * l.x, a = o * l.y;
|
|
709
709
|
return {
|
|
710
710
|
width: r,
|
|
@@ -713,14 +713,14 @@ function Je(t, e) {
|
|
|
713
713
|
y: a
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Ft(t, e, n) {
|
|
717
717
|
let o;
|
|
718
718
|
if (e === "viewport")
|
|
719
|
-
o =
|
|
719
|
+
o = Ge(t, n);
|
|
720
720
|
else if (e === "document")
|
|
721
|
-
o =
|
|
721
|
+
o = _e(k(t));
|
|
722
722
|
else if (L(e))
|
|
723
|
-
o =
|
|
723
|
+
o = Ze(e, n);
|
|
724
724
|
else {
|
|
725
725
|
const i = Ut(t);
|
|
726
726
|
o = {
|
|
@@ -733,33 +733,33 @@ function Mt(t, e, n) {
|
|
|
733
733
|
return ot(o);
|
|
734
734
|
}
|
|
735
735
|
function Gt(t, e) {
|
|
736
|
-
const n =
|
|
736
|
+
const n = F(t);
|
|
737
737
|
return n === e || !L(n) || _(n) ? !1 : D(n).position === "fixed" || Gt(n, e);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Je(t, e) {
|
|
740
740
|
const n = e.get(t);
|
|
741
741
|
if (n)
|
|
742
742
|
return n;
|
|
743
743
|
let o = Z(t, [], !1).filter((s) => L(s) && j(s) !== "body"), i = null;
|
|
744
744
|
const l = D(t).position === "fixed";
|
|
745
|
-
let r = l ?
|
|
745
|
+
let r = l ? F(t) : t;
|
|
746
746
|
for (; L(r) && !_(r); ) {
|
|
747
747
|
const s = D(r), c = yt(r);
|
|
748
|
-
!c && s.position === "fixed" && (i = null), (l ? !c && !i : !c && s.position === "static" && !!i &&
|
|
748
|
+
!c && s.position === "fixed" && (i = null), (l ? !c && !i : !c && s.position === "static" && !!i && Ke.has(i.position) || J(r) && !c && Gt(t, r)) ? o = o.filter((f) => f !== r) : i = s, r = F(r);
|
|
749
749
|
}
|
|
750
750
|
return e.set(t, o), o;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Qe(t) {
|
|
753
753
|
let {
|
|
754
754
|
element: e,
|
|
755
755
|
boundary: n,
|
|
756
756
|
rootBoundary: o,
|
|
757
757
|
strategy: i
|
|
758
758
|
} = t;
|
|
759
|
-
const r = [...n === "clippingAncestors" ? st(e) ? [] :
|
|
760
|
-
const u =
|
|
761
|
-
return a.top =
|
|
762
|
-
},
|
|
759
|
+
const r = [...n === "clippingAncestors" ? st(e) ? [] : Je(e, this._c) : [].concat(n), o], s = r[0], c = r.reduce((a, f) => {
|
|
760
|
+
const u = Ft(e, f, i);
|
|
761
|
+
return a.top = W(u.top, a.top), a.right = tt(u.right, a.right), a.bottom = tt(u.bottom, a.bottom), a.left = W(u.left, a.left), a;
|
|
762
|
+
}, Ft(e, s, i));
|
|
763
763
|
return {
|
|
764
764
|
width: c.right - c.left,
|
|
765
765
|
height: c.bottom - c.top,
|
|
@@ -767,7 +767,7 @@ function tn(t) {
|
|
|
767
767
|
y: c.top
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function tn(t) {
|
|
771
771
|
const {
|
|
772
772
|
width: e,
|
|
773
773
|
height: n
|
|
@@ -777,7 +777,7 @@ function en(t) {
|
|
|
777
777
|
height: n
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function en(t, e, n) {
|
|
781
781
|
const o = P(e), i = k(e), l = n === "fixed", r = X(t, !0, l, e);
|
|
782
782
|
let s = {
|
|
783
783
|
scrollLeft: 0,
|
|
@@ -804,7 +804,7 @@ function nn(t, e, n) {
|
|
|
804
804
|
function ht(t) {
|
|
805
805
|
return D(t).position === "static";
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function Mt(t, e) {
|
|
808
808
|
if (!P(t) || D(t).position === "fixed")
|
|
809
809
|
return null;
|
|
810
810
|
if (e)
|
|
@@ -817,23 +817,23 @@ function Kt(t, e) {
|
|
|
817
817
|
if (st(t))
|
|
818
818
|
return n;
|
|
819
819
|
if (!P(t)) {
|
|
820
|
-
let i =
|
|
820
|
+
let i = F(t);
|
|
821
821
|
for (; i && !_(i); ) {
|
|
822
822
|
if (L(i) && !ht(i))
|
|
823
823
|
return i;
|
|
824
|
-
i =
|
|
824
|
+
i = F(i);
|
|
825
825
|
}
|
|
826
826
|
return n;
|
|
827
827
|
}
|
|
828
|
-
let o =
|
|
829
|
-
for (; o &&
|
|
830
|
-
o =
|
|
831
|
-
return o && _(o) && ht(o) && !yt(o) ? n : o ||
|
|
828
|
+
let o = Mt(t, e);
|
|
829
|
+
for (; o && Fe(o) && ht(o); )
|
|
830
|
+
o = Mt(o, e);
|
|
831
|
+
return o && _(o) && ht(o) && !yt(o) ? n : o || Ne(t) || n;
|
|
832
832
|
}
|
|
833
|
-
const
|
|
833
|
+
const nn = async function(t) {
|
|
834
834
|
const e = this.getOffsetParent || Kt, n = this.getDimensions, o = await n(t.floating);
|
|
835
835
|
return {
|
|
836
|
-
reference:
|
|
836
|
+
reference: en(t.reference, await e(t.floating), t.strategy),
|
|
837
837
|
floating: {
|
|
838
838
|
x: 0,
|
|
839
839
|
y: 0,
|
|
@@ -842,25 +842,25 @@ const on = async function(t) {
|
|
|
842
842
|
}
|
|
843
843
|
};
|
|
844
844
|
};
|
|
845
|
-
function
|
|
845
|
+
function on(t) {
|
|
846
846
|
return D(t).direction === "rtl";
|
|
847
847
|
}
|
|
848
|
-
const
|
|
849
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
848
|
+
const rn = {
|
|
849
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qe,
|
|
850
850
|
getDocumentElement: k,
|
|
851
|
-
getClippingRect:
|
|
851
|
+
getClippingRect: Qe,
|
|
852
852
|
getOffsetParent: Kt,
|
|
853
|
-
getElementRects:
|
|
854
|
-
getClientRects:
|
|
855
|
-
getDimensions:
|
|
853
|
+
getElementRects: nn,
|
|
854
|
+
getClientRects: Ue,
|
|
855
|
+
getDimensions: tn,
|
|
856
856
|
getScale: U,
|
|
857
857
|
isElement: L,
|
|
858
|
-
isRTL:
|
|
858
|
+
isRTL: on
|
|
859
859
|
};
|
|
860
860
|
function Zt(t, e) {
|
|
861
861
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function ln(t, e) {
|
|
864
864
|
let n = null, o;
|
|
865
865
|
const i = k(t);
|
|
866
866
|
function l() {
|
|
@@ -879,19 +879,19 @@ function sn(t, e) {
|
|
|
879
879
|
return;
|
|
880
880
|
const h = Q(u), y = Q(i.clientWidth - (f + m)), v = Q(i.clientHeight - (u + d)), g = Q(f), x = {
|
|
881
881
|
rootMargin: -h + "px " + -y + "px " + -v + "px " + -g + "px",
|
|
882
|
-
threshold:
|
|
882
|
+
threshold: W(0, tt(1, c)) || 1
|
|
883
883
|
};
|
|
884
884
|
let C = !0;
|
|
885
885
|
function b(T) {
|
|
886
|
-
const
|
|
887
|
-
if (
|
|
886
|
+
const w = T[0].intersectionRatio;
|
|
887
|
+
if (w !== c) {
|
|
888
888
|
if (!C)
|
|
889
889
|
return r();
|
|
890
|
-
|
|
890
|
+
w ? r(!1, w) : o = setTimeout(() => {
|
|
891
891
|
r(!1, 1e-7);
|
|
892
892
|
}, 1e3);
|
|
893
893
|
}
|
|
894
|
-
|
|
894
|
+
w === 1 && !Zt(a, t.getBoundingClientRect()) && r(), C = !1;
|
|
895
895
|
}
|
|
896
896
|
try {
|
|
897
897
|
n = new IntersectionObserver(b, {
|
|
@@ -906,7 +906,7 @@ function sn(t, e) {
|
|
|
906
906
|
}
|
|
907
907
|
return r(!0), l;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function sn(t, e, n, o) {
|
|
910
910
|
o === void 0 && (o = {});
|
|
911
911
|
const {
|
|
912
912
|
ancestorScroll: i = !0,
|
|
@@ -920,11 +920,11 @@ function cn(t, e, n, o) {
|
|
|
920
920
|
passive: !0
|
|
921
921
|
}), l && g.addEventListener("resize", n);
|
|
922
922
|
});
|
|
923
|
-
const u = a && s ?
|
|
923
|
+
const u = a && s ? ln(a, n) : null;
|
|
924
924
|
let m = -1, d = null;
|
|
925
925
|
r && (d = new ResizeObserver((g) => {
|
|
926
|
-
let [
|
|
927
|
-
|
|
926
|
+
let [p] = g;
|
|
927
|
+
p && p.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
928
928
|
var x;
|
|
929
929
|
(x = d) == null || x.observe(e);
|
|
930
930
|
})), n();
|
|
@@ -937,29 +937,29 @@ function cn(t, e, n, o) {
|
|
|
937
937
|
}
|
|
938
938
|
return n(), () => {
|
|
939
939
|
var g;
|
|
940
|
-
f.forEach((
|
|
941
|
-
i &&
|
|
940
|
+
f.forEach((p) => {
|
|
941
|
+
i && p.removeEventListener("scroll", n), l && p.removeEventListener("resize", n);
|
|
942
942
|
}), u?.(), (g = d) == null || g.disconnect(), d = null, c && cancelAnimationFrame(h);
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
const
|
|
945
|
+
const cn = ke, an = Ve, fn = Te, un = (t, e, n) => {
|
|
946
946
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
947
|
-
platform:
|
|
947
|
+
platform: rn,
|
|
948
948
|
...n
|
|
949
949
|
}, l = {
|
|
950
950
|
...i.platform,
|
|
951
951
|
_c: o
|
|
952
952
|
};
|
|
953
|
-
return
|
|
953
|
+
return De(t, e, {
|
|
954
954
|
...i,
|
|
955
955
|
platform: l
|
|
956
956
|
});
|
|
957
957
|
};
|
|
958
|
-
function
|
|
958
|
+
function dn(t) {
|
|
959
959
|
return t != null && typeof t == "object" && "$el" in t;
|
|
960
960
|
}
|
|
961
961
|
function Ht(t) {
|
|
962
|
-
if (
|
|
962
|
+
if (dn(t)) {
|
|
963
963
|
const e = t.$el;
|
|
964
964
|
return wt(e) && j(e) === "#comment" ? null : e;
|
|
965
965
|
}
|
|
@@ -971,60 +971,60 @@ function K(t) {
|
|
|
971
971
|
function Jt(t) {
|
|
972
972
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function It(t, e) {
|
|
975
975
|
const n = Jt(t);
|
|
976
976
|
return Math.round(e * n) / n;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function mn(t, e, n) {
|
|
979
979
|
n === void 0 && (n = {});
|
|
980
980
|
const o = n.whileElementsMounted, i = V(() => {
|
|
981
|
-
var
|
|
982
|
-
return (
|
|
981
|
+
var w;
|
|
982
|
+
return (w = K(n.open)) != null ? w : !0;
|
|
983
983
|
}), l = V(() => K(n.middleware)), r = V(() => {
|
|
984
|
-
var
|
|
985
|
-
return (
|
|
984
|
+
var w;
|
|
985
|
+
return (w = K(n.placement)) != null ? w : "bottom";
|
|
986
986
|
}), s = V(() => {
|
|
987
|
-
var
|
|
988
|
-
return (
|
|
987
|
+
var w;
|
|
988
|
+
return (w = K(n.strategy)) != null ? w : "absolute";
|
|
989
989
|
}), c = V(() => {
|
|
990
|
-
var
|
|
991
|
-
return (
|
|
990
|
+
var w;
|
|
991
|
+
return (w = K(n.transform)) != null ? w : !0;
|
|
992
992
|
}), a = V(() => Ht(t.value)), f = V(() => Ht(e.value)), u = E(0), m = E(0), d = E(s.value), h = E(r.value), y = te({}), v = E(!1), g = V(() => {
|
|
993
|
-
const
|
|
993
|
+
const w = {
|
|
994
994
|
position: d.value,
|
|
995
995
|
left: "0",
|
|
996
996
|
top: "0"
|
|
997
997
|
};
|
|
998
998
|
if (!f.value)
|
|
999
|
-
return
|
|
1000
|
-
const S =
|
|
999
|
+
return w;
|
|
1000
|
+
const S = It(f.value, u.value), M = It(f.value, m.value);
|
|
1001
1001
|
return c.value ? {
|
|
1002
|
-
...
|
|
1003
|
-
transform: "translate(" + S + "px, " +
|
|
1002
|
+
...w,
|
|
1003
|
+
transform: "translate(" + S + "px, " + M + "px)",
|
|
1004
1004
|
...Jt(f.value) >= 1.5 && {
|
|
1005
1005
|
willChange: "transform"
|
|
1006
1006
|
}
|
|
1007
1007
|
} : {
|
|
1008
1008
|
position: d.value,
|
|
1009
1009
|
left: S + "px",
|
|
1010
|
-
top:
|
|
1010
|
+
top: M + "px"
|
|
1011
1011
|
};
|
|
1012
1012
|
});
|
|
1013
|
-
let
|
|
1013
|
+
let p;
|
|
1014
1014
|
function x() {
|
|
1015
1015
|
if (a.value == null || f.value == null)
|
|
1016
1016
|
return;
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1017
|
+
const w = i.value;
|
|
1018
|
+
un(a.value, f.value, {
|
|
1019
1019
|
middleware: l.value,
|
|
1020
1020
|
placement: r.value,
|
|
1021
1021
|
strategy: s.value
|
|
1022
1022
|
}).then((S) => {
|
|
1023
|
-
u.value = S.x, m.value = S.y, d.value = S.strategy, h.value = S.placement, y.value = S.middlewareData, v.value =
|
|
1023
|
+
u.value = S.x, m.value = S.y, d.value = S.strategy, h.value = S.placement, y.value = S.middlewareData, v.value = w !== !1;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
function C() {
|
|
1027
|
-
typeof
|
|
1027
|
+
typeof p == "function" && (p(), p = void 0);
|
|
1028
1028
|
}
|
|
1029
1029
|
function b() {
|
|
1030
1030
|
if (C(), o === void 0) {
|
|
@@ -1032,7 +1032,7 @@ function hn(t, e, n) {
|
|
|
1032
1032
|
return;
|
|
1033
1033
|
}
|
|
1034
1034
|
if (a.value != null && f.value != null) {
|
|
1035
|
-
|
|
1035
|
+
p = o(a.value, f.value, x);
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
@@ -1056,7 +1056,7 @@ function hn(t, e, n) {
|
|
|
1056
1056
|
update: x
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn = /* @__PURE__ */ oe({
|
|
1060
1060
|
name: "CLDropdownMenu",
|
|
1061
1061
|
__name: "CLDropdownMenu",
|
|
1062
1062
|
props: {
|
|
@@ -1064,7 +1064,7 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1064
1064
|
buttonBorderRadius: {},
|
|
1065
1065
|
buttonColor: { default: Tt.Secondary },
|
|
1066
1066
|
buttonHeight: { default: "auto" },
|
|
1067
|
-
buttonSize: { default:
|
|
1067
|
+
buttonSize: { default: we.Small },
|
|
1068
1068
|
buttonVariant: { default: Dt.Soft },
|
|
1069
1069
|
buttonWidth: { default: "auto" },
|
|
1070
1070
|
buttonWrapped: { type: Boolean },
|
|
@@ -1073,7 +1073,7 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1073
1073
|
containerElevated: { type: Boolean, default: !1 },
|
|
1074
1074
|
contentWidth: { default: "auto" },
|
|
1075
1075
|
dropdownId: {},
|
|
1076
|
-
iconAfter: { default:
|
|
1076
|
+
iconAfter: { default: pe.ChevronDown },
|
|
1077
1077
|
iconAfterSize: { default: Lt.Tiny },
|
|
1078
1078
|
iconBefore: {},
|
|
1079
1079
|
iconSize: { default: Lt.Tiny },
|
|
@@ -1081,51 +1081,48 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1081
1081
|
label: {},
|
|
1082
1082
|
onCloseHandler: {},
|
|
1083
1083
|
onOpenHandler: {},
|
|
1084
|
-
placement: { default:
|
|
1084
|
+
placement: { default: ge.BottomStart },
|
|
1085
1085
|
testId: { default: "clll-dropdown-menu" },
|
|
1086
1086
|
zIndex: { default: 30 }
|
|
1087
1087
|
},
|
|
1088
1088
|
setup(t) {
|
|
1089
|
-
ie((p) => ({
|
|
1090
|
-
v2fdf502c: A(a)
|
|
1091
|
-
}));
|
|
1092
1089
|
const e = t;
|
|
1093
1090
|
let n = E(), o = E();
|
|
1094
|
-
const i = E(), l = E(), r = E(e.isOpen), s = E(e.placement), c = "clll-dropdown-menu", a = V(() => e.zIndex === "auto" ||
|
|
1091
|
+
const i = E(), l = E(), r = E(e.isOpen), s = E(e.placement), c = "clll-dropdown-menu", a = V(() => e.zIndex === "auto" || de(e.zIndex) ? e.zIndex : e.zIndex.toString()), f = () => {
|
|
1095
1092
|
y.value ? u() : m();
|
|
1096
1093
|
}, u = () => {
|
|
1097
1094
|
r.value = !0, e?.onOpenHandler?.(), C(), mt && document.addEventListener("click", b);
|
|
1098
1095
|
}, m = () => {
|
|
1099
|
-
r.value = !1, e?.onCloseHandler?.(), mt && document.removeEventListener("click", b), T(),
|
|
1100
|
-
}, d = (
|
|
1101
|
-
|
|
1102
|
-
}, h = (
|
|
1103
|
-
|
|
1096
|
+
r.value = !1, e?.onCloseHandler?.(), mt && document.removeEventListener("click", b), T(), p();
|
|
1097
|
+
}, d = (w) => {
|
|
1098
|
+
w && (n.value = w);
|
|
1099
|
+
}, h = (w) => {
|
|
1100
|
+
w && (o.value = w);
|
|
1104
1101
|
}, {
|
|
1105
1102
|
open: y,
|
|
1106
1103
|
toggleDropdown: v,
|
|
1107
1104
|
closeDropdown: g,
|
|
1108
|
-
clearEventListeners:
|
|
1109
|
-
} =
|
|
1105
|
+
clearEventListeners: p
|
|
1106
|
+
} = me({
|
|
1110
1107
|
triggerElem: n,
|
|
1111
1108
|
dropdownRef: l,
|
|
1112
1109
|
openDropdownHandler: f,
|
|
1113
1110
|
closeDropdownHandler: m
|
|
1114
|
-
}), { floatingStyles: x, update: C } =
|
|
1115
|
-
middleware: [
|
|
1111
|
+
}), { floatingStyles: x, update: C } = mn(i, l, {
|
|
1112
|
+
middleware: [fn(), cn(10), an()],
|
|
1116
1113
|
placement: s,
|
|
1117
1114
|
open: r,
|
|
1118
|
-
whileElementsMounted:
|
|
1119
|
-
}), b = (
|
|
1120
|
-
r.value && l.value?.contains(
|
|
1121
|
-
}, { clearEventListeners: T } =
|
|
1122
|
-
return
|
|
1123
|
-
mt && document.removeEventListener("click", b), T(),
|
|
1124
|
-
}), (
|
|
1115
|
+
whileElementsMounted: sn
|
|
1116
|
+
}), b = (w) => {
|
|
1117
|
+
r.value && l.value?.contains(w?.target) && g();
|
|
1118
|
+
}, { clearEventListeners: T } = he({ escHandler: g, triggerElem: n });
|
|
1119
|
+
return ie(() => {
|
|
1120
|
+
mt && document.removeEventListener("click", b), T(), p();
|
|
1121
|
+
}), (w, S) => (At(), Rt("div", {
|
|
1125
1122
|
class: dt([`${c}__menu`]),
|
|
1126
1123
|
"data-testid": t.testId
|
|
1127
1124
|
}, [
|
|
1128
|
-
Ot(A(
|
|
1125
|
+
Ot(A(fe), {
|
|
1129
1126
|
id: `${c}__toggle--${t.dropdownId}`,
|
|
1130
1127
|
ref_key: "anchor",
|
|
1131
1128
|
ref: i,
|
|
@@ -1149,7 +1146,7 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1149
1146
|
onClick: A(v)
|
|
1150
1147
|
}, {
|
|
1151
1148
|
default: Et(() => [
|
|
1152
|
-
se(
|
|
1149
|
+
le(se(t.label), 1)
|
|
1153
1150
|
]),
|
|
1154
1151
|
_: 1
|
|
1155
1152
|
}, 8, ["id", "aria-controls", "aria-expanded", "aria-label", "class", "color", "border-radius", "height", "icon-after", "icon-before", "icon-size", "icon-after-size", "size", "test-id", "variant", "width", "wrap", "onClick"]),
|
|
@@ -1164,9 +1161,9 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1164
1161
|
`${c}__dropdown`,
|
|
1165
1162
|
`${c}__dropdown--${A(s)}`
|
|
1166
1163
|
]),
|
|
1167
|
-
style:
|
|
1164
|
+
style: ce({ ...A(x), zIndex: A(a) })
|
|
1168
1165
|
}, [
|
|
1169
|
-
Ot(A(
|
|
1166
|
+
Ot(A(ue), {
|
|
1170
1167
|
bordered: t.containerBordered,
|
|
1171
1168
|
"border-radius": t.containerBorderRadius,
|
|
1172
1169
|
color: A(Tt).Neutral,
|
|
@@ -1178,15 +1175,15 @@ const gn = ["data-testid"], pn = ["id", "aria-labelledby", "aria-hidden"], Rn =
|
|
|
1178
1175
|
width: t.contentWidth
|
|
1179
1176
|
}, {
|
|
1180
1177
|
default: Et(() => [
|
|
1181
|
-
|
|
1178
|
+
ae(w.$slots, "content")
|
|
1182
1179
|
]),
|
|
1183
1180
|
_: 3
|
|
1184
1181
|
}, 8, ["bordered", "border-radius", "color", "elevated", "test-id", "variant", "width"])
|
|
1185
|
-
], 14,
|
|
1186
|
-
], 10,
|
|
1182
|
+
], 14, gn)) : re("", !0)
|
|
1183
|
+
], 10, hn));
|
|
1187
1184
|
}
|
|
1188
1185
|
});
|
|
1189
1186
|
export {
|
|
1190
|
-
|
|
1191
|
-
|
|
1187
|
+
Sn as CLDropdownMenu,
|
|
1188
|
+
Sn as default
|
|
1192
1189
|
};
|