@vue/devtools-ui 7.1.2 → 7.2.0
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/index.cjs +1 -1
- package/dist/index.js +173 -167
- package/dist/style.css +1 -1
- package/dist/types/src/components/Dialog.d.ts +1 -1
- package/dist/types/src/components/Drawer.d.ts +1 -1
- package/dist/types/src/components/Dropdown.d.ts +1 -1
- package/dist/types/src/components/DropdownButton.d.ts +1 -1
- package/dist/types/src/components/Overlay.d.ts +19 -1
- package/dist/types/src/components/Select.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +19 -19
- package/dist/types/src/index.d.ts +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
|
|
3
|
-
import { Dropdown as
|
|
4
|
-
import {
|
|
5
|
-
import { openBlock as p, createElementBlock as _, createElementVNode as b, defineComponent as T, useAttrs as
|
|
6
|
-
const
|
|
3
|
+
import { Dropdown as ze, VClosePopper as ke, Tooltip as je } from "floating-vue";
|
|
4
|
+
import { vTooltip as Vo } from "floating-vue";
|
|
5
|
+
import { openBlock as p, createElementBlock as _, createElementVNode as b, defineComponent as T, useAttrs as xe, computed as $, useSlots as $e, createBlock as O, resolveDynamicComponent as _e, mergeProps as G, withCtx as y, renderSlot as w, unref as k, createCommentVNode as A, normalizeClass as V, ref as B, watch as R, customRef as Ce, isRef as Q, getCurrentScope as Ie, onScopeDispose as He, toRef as Je, readonly as Ve, onMounted as X, nextTick as Z, getCurrentInstance as de, shallowRef as Ue, watchEffect as q, createVNode as W, Transition as ce, normalizeStyle as fe, toDisplayString as I, h as Ke, render as ge, normalizeProps as Se, guardReactiveProps as Be, Teleport as Te, createTextVNode as H, withDirectives as pe, vModelDynamic as Ge, provide as Ye, createSlots as De, inject as Xe, Fragment as he, renderList as be, withModifiers as qe } from "vue";
|
|
6
|
+
const me = (e, o) => {
|
|
7
7
|
const t = e.__vccOpts || e;
|
|
8
8
|
for (const [a, n] of o)
|
|
9
9
|
t[a] = n;
|
|
@@ -33,7 +33,7 @@ const ge = (e, o) => {
|
|
|
33
33
|
function ot(e, o) {
|
|
34
34
|
return p(), _("div", Ze, tt);
|
|
35
35
|
}
|
|
36
|
-
const Me = /* @__PURE__ */
|
|
36
|
+
const Me = /* @__PURE__ */ me(Qe, [["render", ot]]), nt = { key: 2 }, Y = /* @__PURE__ */ T({
|
|
37
37
|
inheritAttrs: !1,
|
|
38
38
|
__name: "Button",
|
|
39
39
|
props: {
|
|
@@ -47,7 +47,7 @@ const Me = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, G = /* @__
|
|
|
47
47
|
},
|
|
48
48
|
emits: ["click"],
|
|
49
49
|
setup(e, { emit: o }) {
|
|
50
|
-
const t = e, a = o, n =
|
|
50
|
+
const t = e, a = o, n = xe(), l = $(() => n.to ? "router-link" : n.href ? "a" : "button"), r = $(() => t.loading || t.disabled);
|
|
51
51
|
function s(u) {
|
|
52
52
|
if (r.value) {
|
|
53
53
|
u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation();
|
|
@@ -92,8 +92,8 @@ const Me = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, G = /* @__
|
|
|
92
92
|
info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
|
|
93
93
|
success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
return (u, f) => (p(), O(
|
|
95
|
+
}, d = $e(), c = $(() => t.flat ? i.flat[t.type] : t.outlined ? i.outlined[t.type] : i.normal[t.type]);
|
|
96
|
+
return (u, f) => (p(), O(_e(l.value), G(u.$attrs, {
|
|
97
97
|
role: "button",
|
|
98
98
|
"aria-disabled": r.value,
|
|
99
99
|
class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
|
|
@@ -107,7 +107,7 @@ const Me = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, G = /* @__
|
|
|
107
107
|
[
|
|
108
108
|
u.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
|
|
109
109
|
u.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
|
|
110
|
-
|
|
110
|
+
c.value
|
|
111
111
|
]
|
|
112
112
|
]],
|
|
113
113
|
onClickCapture: s
|
|
@@ -120,7 +120,7 @@ const Me = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, G = /* @__
|
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "h-full w3 $ui-inline-fcc"
|
|
122
122
|
}),
|
|
123
|
-
k(
|
|
123
|
+
k(d).default ? (p(), _("div", nt, [
|
|
124
124
|
w(u.$slots, "default")
|
|
125
125
|
])) : A("", !0),
|
|
126
126
|
w(u.$slots, "icon-right")
|
|
@@ -134,7 +134,7 @@ function lt(e, o) {
|
|
|
134
134
|
w(e.$slots, "default")
|
|
135
135
|
]);
|
|
136
136
|
}
|
|
137
|
-
const co = /* @__PURE__ */
|
|
137
|
+
const co = /* @__PURE__ */ me(rt, [["render", lt]]), ue = /* @__PURE__ */ T({
|
|
138
138
|
__name: "Icon",
|
|
139
139
|
props: {
|
|
140
140
|
icon: {},
|
|
@@ -142,7 +142,7 @@ const co = /* @__PURE__ */ ge(rt, [["render", lt]]), ue = /* @__PURE__ */ T({
|
|
|
142
142
|
action: { type: Boolean, default: !1 }
|
|
143
143
|
},
|
|
144
144
|
setup(e) {
|
|
145
|
-
return (o, t) => (p(), O(
|
|
145
|
+
return (o, t) => (p(), O(_e(o.inline ? "span" : "div"), {
|
|
146
146
|
class: V(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
|
|
147
147
|
}, null, 8, ["class"]));
|
|
148
148
|
}
|
|
@@ -169,7 +169,7 @@ function N(e) {
|
|
|
169
169
|
const Oe = typeof window < "u" && typeof document < "u";
|
|
170
170
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
171
171
|
const it = (e) => typeof e < "u", ut = Object.prototype.toString, dt = (e) => ut.call(e) === "[object Object]", re = () => {
|
|
172
|
-
},
|
|
172
|
+
}, ye = /* @__PURE__ */ ct();
|
|
173
173
|
function ct() {
|
|
174
174
|
var e, o;
|
|
175
175
|
return Oe && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
@@ -189,12 +189,12 @@ function ft(e, o = {}) {
|
|
|
189
189
|
clearTimeout(s), n(), n = re;
|
|
190
190
|
};
|
|
191
191
|
return (s) => {
|
|
192
|
-
const i = N(e),
|
|
193
|
-
return t && l(t), i <= 0 ||
|
|
194
|
-
n = o.rejectOnCancel ? u :
|
|
195
|
-
t && l(t), a = null,
|
|
196
|
-
},
|
|
197
|
-
a && l(a), a = null,
|
|
192
|
+
const i = N(e), d = N(o.maxWait);
|
|
193
|
+
return t && l(t), i <= 0 || d !== void 0 && d <= 0 ? (a && (l(a), a = null), Promise.resolve(s())) : new Promise((c, u) => {
|
|
194
|
+
n = o.rejectOnCancel ? u : c, d && !a && (a = setTimeout(() => {
|
|
195
|
+
t && l(t), a = null, c(s());
|
|
196
|
+
}, d)), t = setTimeout(() => {
|
|
197
|
+
a && l(a), a = null, c(s());
|
|
198
198
|
}, i);
|
|
199
199
|
});
|
|
200
200
|
};
|
|
@@ -210,7 +210,7 @@ function pt(e = Ae) {
|
|
|
210
210
|
const n = (...l) => {
|
|
211
211
|
o.value && e(...l);
|
|
212
212
|
};
|
|
213
|
-
return { isActive:
|
|
213
|
+
return { isActive: Ve(o), pause: t, resume: a, eventFilter: n };
|
|
214
214
|
}
|
|
215
215
|
function mt(e) {
|
|
216
216
|
return e || de();
|
|
@@ -219,7 +219,7 @@ function Ne(...e) {
|
|
|
219
219
|
if (e.length !== 1)
|
|
220
220
|
return Je(...e);
|
|
221
221
|
const o = e[0];
|
|
222
|
-
return typeof o == "function" ?
|
|
222
|
+
return typeof o == "function" ? Ve(Ce(() => ({ get: o, set: re }))) : B(o);
|
|
223
223
|
}
|
|
224
224
|
function vt(e, o = 200, t = {}) {
|
|
225
225
|
return Ee(
|
|
@@ -235,7 +235,7 @@ function gt(e, o = 200, t = {}) {
|
|
|
235
235
|
}
|
|
236
236
|
function ht(e, o = {}) {
|
|
237
237
|
let t = e, a, n;
|
|
238
|
-
const l =
|
|
238
|
+
const l = Ce((f, m) => (a = f, n = m, {
|
|
239
239
|
get() {
|
|
240
240
|
return r();
|
|
241
241
|
},
|
|
@@ -294,8 +294,8 @@ function yt(e, o, t = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
), pause: r, resume: s, isActive: i };
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
mt() ?
|
|
297
|
+
function ve(e, o = !0, t) {
|
|
298
|
+
mt() ? X(e, t) : o ? e() : Z(e);
|
|
299
299
|
}
|
|
300
300
|
function wt(e = !1, o = {}) {
|
|
301
301
|
const {
|
|
@@ -312,7 +312,7 @@ function wt(e = !1, o = {}) {
|
|
|
312
312
|
}
|
|
313
313
|
return n ? r : [l, r];
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function x(e) {
|
|
316
316
|
var o;
|
|
317
317
|
const t = N(e);
|
|
318
318
|
return (o = t == null ? void 0 : t.$el) != null ? o : t;
|
|
@@ -324,22 +324,22 @@ function ae(...e) {
|
|
|
324
324
|
return re;
|
|
325
325
|
Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
|
|
326
326
|
const l = [], r = () => {
|
|
327
|
-
l.forEach((
|
|
328
|
-
}, s = (
|
|
329
|
-
() => [
|
|
330
|
-
([
|
|
331
|
-
if (r(), !
|
|
327
|
+
l.forEach((c) => c()), l.length = 0;
|
|
328
|
+
}, s = (c, u, f, m) => (c.addEventListener(u, f, m), () => c.removeEventListener(u, f, m)), i = R(
|
|
329
|
+
() => [x(o), N(n)],
|
|
330
|
+
([c, u]) => {
|
|
331
|
+
if (r(), !c)
|
|
332
332
|
return;
|
|
333
333
|
const f = dt(u) ? { ...u } : u;
|
|
334
334
|
l.push(
|
|
335
|
-
...t.flatMap((m) => a.map((g) => s(
|
|
335
|
+
...t.flatMap((m) => a.map((g) => s(c, m, g, f)))
|
|
336
336
|
);
|
|
337
337
|
},
|
|
338
338
|
{ immediate: !0, flush: "post" }
|
|
339
|
-
),
|
|
339
|
+
), d = () => {
|
|
340
340
|
i(), r();
|
|
341
341
|
};
|
|
342
|
-
return le(
|
|
342
|
+
return le(d), d;
|
|
343
343
|
}
|
|
344
344
|
function kt(e) {
|
|
345
345
|
return typeof e == "function" ? e : typeof e == "string" ? (o) => o.key === e : Array.isArray(e) ? (o) => e.includes(o.key) : () => !0;
|
|
@@ -353,13 +353,13 @@ function Pe(...e) {
|
|
|
353
353
|
passive: r = !1,
|
|
354
354
|
dedupe: s = !1
|
|
355
355
|
} = a, i = kt(o);
|
|
356
|
-
return ae(n, l, (
|
|
357
|
-
|
|
356
|
+
return ae(n, l, (c) => {
|
|
357
|
+
c.repeat && N(s) || i(c) && t(c);
|
|
358
358
|
}, r);
|
|
359
359
|
}
|
|
360
360
|
function $t() {
|
|
361
361
|
const e = B(!1), o = de();
|
|
362
|
-
return o &&
|
|
362
|
+
return o && X(() => {
|
|
363
363
|
e.value = !0;
|
|
364
364
|
}, o), e;
|
|
365
365
|
}
|
|
@@ -370,11 +370,11 @@ function We(e) {
|
|
|
370
370
|
function _t(e, o = {}) {
|
|
371
371
|
const { window: t = J } = o, a = We(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
372
372
|
let n;
|
|
373
|
-
const l = B(!1), r = (
|
|
374
|
-
l.value =
|
|
373
|
+
const l = B(!1), r = (d) => {
|
|
374
|
+
l.value = d.matches;
|
|
375
375
|
}, s = () => {
|
|
376
376
|
n && ("removeEventListener" in n ? n.removeEventListener("change", r) : n.removeListener(r));
|
|
377
|
-
}, i =
|
|
377
|
+
}, i = q(() => {
|
|
378
378
|
a.value && (s(), n = t.matchMedia(N(e)), "addEventListener" in n ? n.addEventListener("change", r) : n.addListener(r), l.value = n.matches);
|
|
379
379
|
});
|
|
380
380
|
return le(() => {
|
|
@@ -427,7 +427,7 @@ const Tt = {
|
|
|
427
427
|
read: (e) => new Date(e),
|
|
428
428
|
write: (e) => e.toISOString()
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, we = "vueuse-storage";
|
|
431
431
|
function Dt(e, o, t, a = {}) {
|
|
432
432
|
var n;
|
|
433
433
|
const {
|
|
@@ -435,15 +435,15 @@ function Dt(e, o, t, a = {}) {
|
|
|
435
435
|
deep: r = !0,
|
|
436
436
|
listenToStorageChanges: s = !0,
|
|
437
437
|
writeDefaults: i = !0,
|
|
438
|
-
mergeDefaults:
|
|
439
|
-
shallow:
|
|
438
|
+
mergeDefaults: d = !1,
|
|
439
|
+
shallow: c,
|
|
440
440
|
window: u = J,
|
|
441
441
|
eventFilter: f,
|
|
442
442
|
onError: m = (v) => {
|
|
443
443
|
console.error(v);
|
|
444
444
|
},
|
|
445
445
|
initOnMounted: g
|
|
446
|
-
} = a, h = (
|
|
446
|
+
} = a, h = (c ? Ue : B)(typeof o == "function" ? o() : o);
|
|
447
447
|
if (!t)
|
|
448
448
|
try {
|
|
449
449
|
t = Fe("getDefaultStorage", () => {
|
|
@@ -455,16 +455,16 @@ function Dt(e, o, t, a = {}) {
|
|
|
455
455
|
}
|
|
456
456
|
if (!t)
|
|
457
457
|
return h;
|
|
458
|
-
const D = N(o),
|
|
458
|
+
const D = N(o), z = Bt(D), P = (n = a.serializer) != null ? n : Tt[z], { pause: S, resume: C } = yt(
|
|
459
459
|
h,
|
|
460
460
|
() => L(h.value),
|
|
461
461
|
{ flush: l, deep: r, eventFilter: f }
|
|
462
462
|
);
|
|
463
|
-
u && s &&
|
|
464
|
-
ae(u, "storage", F), ae(u,
|
|
463
|
+
u && s && ve(() => {
|
|
464
|
+
ae(u, "storage", F), ae(u, we, ee), g && F();
|
|
465
465
|
}), g || F();
|
|
466
466
|
function E(v, M) {
|
|
467
|
-
u && u.dispatchEvent(new CustomEvent(
|
|
467
|
+
u && u.dispatchEvent(new CustomEvent(we, {
|
|
468
468
|
detail: {
|
|
469
469
|
key: e,
|
|
470
470
|
oldValue: v,
|
|
@@ -479,8 +479,8 @@ function Dt(e, o, t, a = {}) {
|
|
|
479
479
|
if (v == null)
|
|
480
480
|
E(M, null), t.removeItem(e);
|
|
481
481
|
else {
|
|
482
|
-
const
|
|
483
|
-
M !==
|
|
482
|
+
const j = P.write(v);
|
|
483
|
+
M !== j && (t.setItem(e, j), E(M, j));
|
|
484
484
|
}
|
|
485
485
|
} catch (M) {
|
|
486
486
|
m(M);
|
|
@@ -490,9 +490,9 @@ function Dt(e, o, t, a = {}) {
|
|
|
490
490
|
const M = v ? v.newValue : t.getItem(e);
|
|
491
491
|
if (M == null)
|
|
492
492
|
return i && D != null && t.setItem(e, P.write(D)), D;
|
|
493
|
-
if (!v &&
|
|
494
|
-
const
|
|
495
|
-
return typeof
|
|
493
|
+
if (!v && d) {
|
|
494
|
+
const j = P.read(M);
|
|
495
|
+
return typeof d == "function" ? d(j, D) : z === "object" && !Array.isArray(j) ? { ...D, ...j } : j;
|
|
496
496
|
} else
|
|
497
497
|
return typeof M != "string" ? M : P.read(M);
|
|
498
498
|
}
|
|
@@ -532,8 +532,8 @@ function Ot(e = {}) {
|
|
|
532
532
|
storageKey: r = "vueuse-color-scheme",
|
|
533
533
|
listenToStorageChanges: s = !0,
|
|
534
534
|
storageRef: i,
|
|
535
|
-
emitAuto:
|
|
536
|
-
disableTransition:
|
|
535
|
+
emitAuto: d,
|
|
536
|
+
disableTransition: c = !0
|
|
537
537
|
} = e, u = {
|
|
538
538
|
auto: "",
|
|
539
539
|
light: "light",
|
|
@@ -542,31 +542,31 @@ function Ot(e = {}) {
|
|
|
542
542
|
}, f = Mt({ window: n }), m = $(() => f.value ? "dark" : "light"), g = i || (r == null ? Ne(a) : Dt(r, a, l, { window: n, listenToStorageChanges: s })), h = $(() => g.value === "auto" ? m.value : g.value), D = Fe(
|
|
543
543
|
"updateHTMLAttrs",
|
|
544
544
|
(C, E, L) => {
|
|
545
|
-
const K = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) :
|
|
545
|
+
const K = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) : x(C);
|
|
546
546
|
if (!K)
|
|
547
547
|
return;
|
|
548
548
|
let F;
|
|
549
|
-
if (
|
|
549
|
+
if (c && (F = n.document.createElement("style"), F.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), n.document.head.appendChild(F)), E === "class") {
|
|
550
550
|
const ee = L.split(/\s/g);
|
|
551
551
|
Object.values(u).flatMap((v) => (v || "").split(/\s/g)).filter(Boolean).forEach((v) => {
|
|
552
552
|
ee.includes(v) ? K.classList.add(v) : K.classList.remove(v);
|
|
553
553
|
});
|
|
554
554
|
} else
|
|
555
555
|
K.setAttribute(E, L);
|
|
556
|
-
|
|
556
|
+
c && (n.getComputedStyle(F).opacity, document.head.removeChild(F));
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
|
-
function
|
|
559
|
+
function z(C) {
|
|
560
560
|
var E;
|
|
561
561
|
D(o, t, (E = u[C]) != null ? E : C);
|
|
562
562
|
}
|
|
563
563
|
function P(C) {
|
|
564
|
-
e.onChanged ? e.onChanged(C,
|
|
564
|
+
e.onChanged ? e.onChanged(C, z) : z(C);
|
|
565
565
|
}
|
|
566
|
-
R(h, P, { flush: "post", immediate: !0 }),
|
|
566
|
+
R(h, P, { flush: "post", immediate: !0 }), ve(() => P(h.value));
|
|
567
567
|
const S = $({
|
|
568
568
|
get() {
|
|
569
|
-
return
|
|
569
|
+
return d ? g.value : h.value;
|
|
570
570
|
},
|
|
571
571
|
set(C) {
|
|
572
572
|
g.value = C;
|
|
@@ -583,7 +583,7 @@ function Et(e, o, t = {}) {
|
|
|
583
583
|
let l;
|
|
584
584
|
const r = We(() => a && "ResizeObserver" in a), s = () => {
|
|
585
585
|
l && (l.disconnect(), l = void 0);
|
|
586
|
-
}, i = $(() => Array.isArray(e) ? e.map((u) =>
|
|
586
|
+
}, i = $(() => Array.isArray(e) ? e.map((u) => x(u)) : [x(e)]), d = R(
|
|
587
587
|
i,
|
|
588
588
|
(u) => {
|
|
589
589
|
if (s(), r.value && a) {
|
|
@@ -593,24 +593,24 @@ function Et(e, o, t = {}) {
|
|
|
593
593
|
}
|
|
594
594
|
},
|
|
595
595
|
{ immediate: !0, flush: "post" }
|
|
596
|
-
),
|
|
597
|
-
s(),
|
|
596
|
+
), c = () => {
|
|
597
|
+
s(), d();
|
|
598
598
|
};
|
|
599
|
-
return le(
|
|
599
|
+
return le(c), {
|
|
600
600
|
isSupported: r,
|
|
601
|
-
stop:
|
|
601
|
+
stop: c
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
605
605
|
const { window: a = J, box: n = "content-box" } = t, l = $(() => {
|
|
606
606
|
var u, f;
|
|
607
|
-
return (f = (u =
|
|
607
|
+
return (f = (u = x(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
608
608
|
}), r = B(o.width), s = B(o.height), { stop: i } = Et(
|
|
609
609
|
e,
|
|
610
610
|
([u]) => {
|
|
611
611
|
const f = n === "border-box" ? u.borderBoxSize : n === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
612
612
|
if (a && l.value) {
|
|
613
|
-
const m =
|
|
613
|
+
const m = x(e);
|
|
614
614
|
if (m) {
|
|
615
615
|
const g = a.getComputedStyle(m);
|
|
616
616
|
r.value = Number.parseFloat(g.width), s.value = Number.parseFloat(g.height);
|
|
@@ -623,23 +623,23 @@ function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
|
623
623
|
},
|
|
624
624
|
t
|
|
625
625
|
);
|
|
626
|
-
|
|
627
|
-
const u =
|
|
626
|
+
ve(() => {
|
|
627
|
+
const u = x(e);
|
|
628
628
|
u && (r.value = "offsetWidth" in u ? u.offsetWidth : o.width, s.value = "offsetHeight" in u ? u.offsetHeight : o.height);
|
|
629
629
|
});
|
|
630
|
-
const
|
|
631
|
-
() =>
|
|
630
|
+
const d = R(
|
|
631
|
+
() => x(e),
|
|
632
632
|
(u) => {
|
|
633
633
|
r.value = u ? o.width : 0, s.value = u ? o.height : 0;
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
function
|
|
637
|
-
i(),
|
|
636
|
+
function c() {
|
|
637
|
+
i(), d();
|
|
638
638
|
}
|
|
639
639
|
return {
|
|
640
640
|
width: r,
|
|
641
641
|
height: s,
|
|
642
|
-
stop:
|
|
642
|
+
stop: c
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function se(e) {
|
|
@@ -673,7 +673,7 @@ function Pt(e, o = !1) {
|
|
|
673
673
|
});
|
|
674
674
|
const n = () => {
|
|
675
675
|
const r = se(N(e));
|
|
676
|
-
!r || t.value || (
|
|
676
|
+
!r || t.value || (ye && (a = ae(
|
|
677
677
|
r,
|
|
678
678
|
"touchmove",
|
|
679
679
|
(s) => {
|
|
@@ -684,7 +684,7 @@ function Pt(e, o = !1) {
|
|
|
684
684
|
}, l = () => {
|
|
685
685
|
var r;
|
|
686
686
|
const s = se(N(e));
|
|
687
|
-
!s || !t.value || (
|
|
687
|
+
!s || !t.value || (ye && (a == null || a()), s.style.overflow = (r = ne.get(s)) != null ? r : "", ne.delete(s), t.value = !1);
|
|
688
688
|
};
|
|
689
689
|
return le(l), $({
|
|
690
690
|
get() {
|
|
@@ -700,18 +700,18 @@ function U(e, o, t, a = {}) {
|
|
|
700
700
|
const {
|
|
701
701
|
clone: s = !1,
|
|
702
702
|
passive: i = !1,
|
|
703
|
-
eventName:
|
|
704
|
-
deep:
|
|
703
|
+
eventName: d,
|
|
704
|
+
deep: c = !1,
|
|
705
705
|
defaultValue: u,
|
|
706
706
|
shouldEmit: f
|
|
707
707
|
} = a, m = de(), g = t || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((r = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
|
|
708
|
-
let h =
|
|
708
|
+
let h = d;
|
|
709
709
|
o || (o = "modelValue"), h = h || `update:${o.toString()}`;
|
|
710
|
-
const D = (S) => s ? typeof s == "function" ? s(S) : Ct(S) : S,
|
|
710
|
+
const D = (S) => s ? typeof s == "function" ? s(S) : Ct(S) : S, z = () => it(e[o]) ? D(e[o]) : u, P = (S) => {
|
|
711
711
|
f ? f(S) && g(h, S) : g(h, S);
|
|
712
712
|
};
|
|
713
713
|
if (i) {
|
|
714
|
-
const S =
|
|
714
|
+
const S = z(), C = B(S);
|
|
715
715
|
let E = !1;
|
|
716
716
|
return R(
|
|
717
717
|
() => e[o],
|
|
@@ -721,14 +721,14 @@ function U(e, o, t, a = {}) {
|
|
|
721
721
|
), R(
|
|
722
722
|
C,
|
|
723
723
|
(L) => {
|
|
724
|
-
!E && (L !== e[o] ||
|
|
724
|
+
!E && (L !== e[o] || c) && P(L);
|
|
725
725
|
},
|
|
726
|
-
{ deep:
|
|
726
|
+
{ deep: c }
|
|
727
727
|
), C;
|
|
728
728
|
} else
|
|
729
729
|
return $({
|
|
730
730
|
get() {
|
|
731
|
-
return
|
|
731
|
+
return z();
|
|
732
732
|
},
|
|
733
733
|
set(S) {
|
|
734
734
|
P(S);
|
|
@@ -757,7 +757,7 @@ const Wt = /* @__PURE__ */ T({
|
|
|
757
757
|
warning: "text-amber-4 border-amber-2 dark:border-amber-4",
|
|
758
758
|
error: "text-red-4 border-red-2 dark:border-red-4"
|
|
759
759
|
}, n = B(!1);
|
|
760
|
-
|
|
760
|
+
X(() => {
|
|
761
761
|
n.value = !0, setTimeout(() => {
|
|
762
762
|
n.value = !1;
|
|
763
763
|
}, o.duration);
|
|
@@ -803,13 +803,13 @@ function fo(e) {
|
|
|
803
803
|
o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
|
|
804
804
|
const t = e.onClose;
|
|
805
805
|
function a() {
|
|
806
|
-
|
|
806
|
+
ge(null, o);
|
|
807
807
|
}
|
|
808
808
|
e.onClose = () => {
|
|
809
809
|
a(), t == null || t(), document.body.removeChild(o);
|
|
810
810
|
};
|
|
811
811
|
const n = Ke(Wt, e);
|
|
812
|
-
|
|
812
|
+
ge(n, o);
|
|
813
813
|
}
|
|
814
814
|
const Ft = "__vue-devtools-theme__";
|
|
815
815
|
function Lt(e = {}) {
|
|
@@ -844,16 +844,16 @@ const Rt = { class: "$ui-dark-toggle-vtr" }, po = /* @__PURE__ */ T({
|
|
|
844
844
|
n.value = !n.value;
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
|
-
const i = s.clientX,
|
|
847
|
+
const i = s.clientX, d = s.clientY, c = Math.hypot(
|
|
848
848
|
Math.max(i, innerWidth - i),
|
|
849
|
-
Math.max(
|
|
849
|
+
Math.max(d, innerHeight - d)
|
|
850
850
|
);
|
|
851
851
|
document.startViewTransition(async () => {
|
|
852
852
|
n.value = !n.value, await Z();
|
|
853
853
|
}).ready.then(() => {
|
|
854
854
|
const f = [
|
|
855
|
-
`circle(0px at ${i}px ${
|
|
856
|
-
`circle(${
|
|
855
|
+
`circle(0px at ${i}px ${d}px)`,
|
|
856
|
+
`circle(${c}px at ${i}px ${d}px)`
|
|
857
857
|
];
|
|
858
858
|
document.documentElement.animate(
|
|
859
859
|
{
|
|
@@ -868,26 +868,28 @@ const Rt = { class: "$ui-dark-toggle-vtr" }, po = /* @__PURE__ */ T({
|
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
return (s, i) => (p(), _("span", Rt, [
|
|
871
|
-
w(s.$slots, "default",
|
|
871
|
+
w(s.$slots, "default", Se(Be({ mode: k(a), isDark: n.value, toggle: r })))
|
|
872
872
|
]));
|
|
873
873
|
}
|
|
874
|
-
}),
|
|
875
|
-
function
|
|
876
|
-
return p(), _("div",
|
|
874
|
+
}), zt = {}, jt = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
|
|
875
|
+
function xt(e, o) {
|
|
876
|
+
return p(), _("div", jt, [
|
|
877
877
|
w(e.$slots, "default")
|
|
878
878
|
]);
|
|
879
879
|
}
|
|
880
|
-
const mo = /* @__PURE__ */
|
|
880
|
+
const mo = /* @__PURE__ */ me(zt, [["render", xt]]), Re = /* @__PURE__ */ T({
|
|
881
881
|
__name: "Overlay",
|
|
882
882
|
props: {
|
|
883
883
|
dim: { type: Boolean },
|
|
884
|
-
blur: { type: Boolean }
|
|
884
|
+
blur: { type: Boolean },
|
|
885
|
+
position: { default: "fixed" }
|
|
885
886
|
},
|
|
886
887
|
setup(e) {
|
|
887
888
|
return (o, t) => (p(), _("div", {
|
|
888
|
-
class: V(["
|
|
889
|
+
class: V(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
|
|
889
890
|
o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
|
|
890
|
-
o.blur ? "backdrop-blur-sm" : ""
|
|
891
|
+
o.blur ? "backdrop-blur-sm" : "",
|
|
892
|
+
o.position
|
|
891
893
|
]])
|
|
892
894
|
}, [
|
|
893
895
|
w(o.$slots, "default")
|
|
@@ -906,12 +908,13 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
906
908
|
closable: { type: Boolean, default: !0 },
|
|
907
909
|
mountTo: { default: "body" },
|
|
908
910
|
dim: { type: Boolean },
|
|
909
|
-
blur: { type: Boolean }
|
|
911
|
+
blur: { type: Boolean },
|
|
912
|
+
position: {}
|
|
910
913
|
},
|
|
911
914
|
emits: ["close", "update:modelValue"],
|
|
912
915
|
setup(e, { emit: o }) {
|
|
913
916
|
const t = e, n = U(t, "modelValue", o, { passive: !0 }), l = Pt(() => window.document.documentElement);
|
|
914
|
-
|
|
917
|
+
q(() => {
|
|
915
918
|
n.value ? l.value = !0 : l.value = !1;
|
|
916
919
|
});
|
|
917
920
|
function r() {
|
|
@@ -921,7 +924,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
921
924
|
r();
|
|
922
925
|
});
|
|
923
926
|
const s = B(!1);
|
|
924
|
-
return
|
|
927
|
+
return X(() => s.value = !0), (i, d) => s.value || i.mountTo === "body" ? (p(), O(Te, {
|
|
925
928
|
key: 0,
|
|
926
929
|
to: i.mountTo
|
|
927
930
|
}, [
|
|
@@ -935,7 +938,8 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
935
938
|
k(n) ? (p(), O(Re, {
|
|
936
939
|
key: 0,
|
|
937
940
|
dim: i.dim,
|
|
938
|
-
blur: i.blur
|
|
941
|
+
blur: i.blur,
|
|
942
|
+
position: i.position
|
|
939
943
|
}, {
|
|
940
944
|
default: y(() => [
|
|
941
945
|
b("div", {
|
|
@@ -964,7 +968,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
964
968
|
w(i.$slots, "footer", {}, () => [
|
|
965
969
|
w(i.$slots, "footer", {}, () => [
|
|
966
970
|
b("div", Yt, [
|
|
967
|
-
W(
|
|
971
|
+
W(Y, {
|
|
968
972
|
type: "primary",
|
|
969
973
|
onClick: r
|
|
970
974
|
}, {
|
|
@@ -980,7 +984,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
980
984
|
], 4)
|
|
981
985
|
]),
|
|
982
986
|
_: 3
|
|
983
|
-
}, 8, ["dim", "blur"])) : A("", !0)
|
|
987
|
+
}, 8, ["dim", "blur", "position"])) : A("", !0)
|
|
984
988
|
]),
|
|
985
989
|
_: 3
|
|
986
990
|
})
|
|
@@ -1010,17 +1014,17 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1010
1014
|
onChanged(u) {
|
|
1011
1015
|
a("updateFocused", u);
|
|
1012
1016
|
}
|
|
1013
|
-
}), s = $(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), i = $(() => t.disabled || l.value),
|
|
1014
|
-
let
|
|
1015
|
-
return
|
|
1016
|
-
l.value && r.value ?
|
|
1017
|
+
}), s = $(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), i = $(() => t.disabled || l.value), d = B();
|
|
1018
|
+
let c = !1;
|
|
1019
|
+
return q(() => {
|
|
1020
|
+
l.value && r.value ? c = !0 : !l.value && c && (c = !1, Z(() => {
|
|
1017
1021
|
r.value = !0;
|
|
1018
1022
|
}));
|
|
1019
|
-
}), Y(() => {
|
|
1020
|
-
t.autoFocus && (r.value = !0);
|
|
1021
1023
|
}), X(() => {
|
|
1024
|
+
t.autoFocus && (r.value = !0);
|
|
1025
|
+
}), q(() => {
|
|
1022
1026
|
var u;
|
|
1023
|
-
r.value && ((u =
|
|
1027
|
+
r.value && ((u = d.value) == null || u.focus());
|
|
1024
1028
|
}), (u, f) => (p(), _("div", {
|
|
1025
1029
|
class: V(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100", [
|
|
1026
1030
|
{
|
|
@@ -1043,9 +1047,9 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1043
1047
|
}, [
|
|
1044
1048
|
W(ue, { icon: u.leftIcon }, null, 8, ["icon"])
|
|
1045
1049
|
])) : A("", !0),
|
|
1046
|
-
|
|
1050
|
+
pe(b("input", {
|
|
1047
1051
|
ref_key: "inputRef",
|
|
1048
|
-
ref:
|
|
1052
|
+
ref: d,
|
|
1049
1053
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => Q(n) ? n.value = m : null),
|
|
1050
1054
|
class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
|
|
1051
1055
|
type: u.type,
|
|
@@ -1090,25 +1094,25 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1090
1094
|
danger: "i-ic-round-error",
|
|
1091
1095
|
success: "i-ep:success-filled"
|
|
1092
1096
|
};
|
|
1093
|
-
return (
|
|
1097
|
+
return (d, c) => (p(), _("div", eo, [
|
|
1094
1098
|
W(Zt, {
|
|
1095
1099
|
modelValue: k(n),
|
|
1096
|
-
"onUpdate:modelValue":
|
|
1097
|
-
placeholder:
|
|
1098
|
-
onUpdateFocused:
|
|
1100
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => Q(n) ? n.value = u : null),
|
|
1101
|
+
placeholder: d.placeholder,
|
|
1102
|
+
onUpdateFocused: c[1] || (c[1] = (u) => l.value = u)
|
|
1099
1103
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1100
1104
|
b("div", {
|
|
1101
1105
|
class: V(["mt2 $ui-base text-3.5", [
|
|
1102
|
-
s[
|
|
1106
|
+
s[d.status],
|
|
1103
1107
|
{ "opacity-65": !l.value }
|
|
1104
1108
|
]])
|
|
1105
1109
|
}, [
|
|
1106
|
-
|
|
1110
|
+
d.status !== "normal" && r.value ? (p(), O(ue, {
|
|
1107
1111
|
key: 0,
|
|
1108
1112
|
inline: "",
|
|
1109
|
-
icon: i[
|
|
1113
|
+
icon: i[d.status]
|
|
1110
1114
|
}, null, 8, ["icon"])) : A("", !0),
|
|
1111
|
-
H(" " + I(r.value ?
|
|
1115
|
+
H(" " + I(r.value ? d.message : ""), 1)
|
|
1112
1116
|
], 2)
|
|
1113
1117
|
]));
|
|
1114
1118
|
}
|
|
@@ -1128,7 +1132,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1128
1132
|
emits: ["update:visible"],
|
|
1129
1133
|
setup(e) {
|
|
1130
1134
|
const o = e;
|
|
1131
|
-
return Ye("$ui-dropdown-disabled", $(() => o.disabled)), (t, a) => (p(), O(k(
|
|
1135
|
+
return Ye("$ui-dropdown-disabled", $(() => o.disabled)), (t, a) => (p(), O(k(ze), {
|
|
1132
1136
|
disabled: t.disabled,
|
|
1133
1137
|
class: "inline-block w-auto",
|
|
1134
1138
|
shown: t.shown,
|
|
@@ -1143,14 +1147,14 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1143
1147
|
}, {
|
|
1144
1148
|
popper: y(({ hide: n }) => [
|
|
1145
1149
|
b("div", to, [
|
|
1146
|
-
w(t.$slots, "popper",
|
|
1150
|
+
w(t.$slots, "popper", Se(Be({ hide: n })), () => [
|
|
1147
1151
|
oo
|
|
1148
1152
|
])
|
|
1149
1153
|
])
|
|
1150
1154
|
]),
|
|
1151
1155
|
default: y(() => [
|
|
1152
1156
|
w(t.$slots, "default", {}, () => [
|
|
1153
|
-
W(
|
|
1157
|
+
W(Y, G({
|
|
1154
1158
|
...t.buttonProps,
|
|
1155
1159
|
disabled: t.disabled
|
|
1156
1160
|
}, { class: t.buttonClass }), De({
|
|
@@ -1189,7 +1193,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1189
1193
|
},
|
|
1190
1194
|
setup(e) {
|
|
1191
1195
|
const o = e, t = Xe("$ui-dropdown-disabled", void 0);
|
|
1192
|
-
return (a, n) =>
|
|
1196
|
+
return (a, n) => pe((p(), O(Y, G({
|
|
1193
1197
|
...o,
|
|
1194
1198
|
round: !1
|
|
1195
1199
|
}, {
|
|
@@ -1204,7 +1208,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1204
1208
|
]),
|
|
1205
1209
|
_: 3
|
|
1206
1210
|
}, 16, ["disabled"])), [
|
|
1207
|
-
[k(
|
|
1211
|
+
[k(ke)]
|
|
1208
1212
|
]);
|
|
1209
1213
|
}
|
|
1210
1214
|
}), ro = { class: "$ui-fec gap2.5" }, ho = /* @__PURE__ */ T({
|
|
@@ -1223,7 +1227,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1223
1227
|
emits: ["update:modelValue", "confirm", "cancel", "close"],
|
|
1224
1228
|
setup(e, { emit: o }) {
|
|
1225
1229
|
const t = e, a = o, n = U(t, "modelValue", a);
|
|
1226
|
-
|
|
1230
|
+
q(() => {
|
|
1227
1231
|
n.value || a("close");
|
|
1228
1232
|
});
|
|
1229
1233
|
function l(r = !1) {
|
|
@@ -1239,7 +1243,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1239
1243
|
}, {
|
|
1240
1244
|
footer: y(() => [
|
|
1241
1245
|
b("div", ro, [
|
|
1242
|
-
W(
|
|
1246
|
+
W(Y, {
|
|
1243
1247
|
onClick: s[0] || (s[0] = () => {
|
|
1244
1248
|
a("cancel"), l(!0);
|
|
1245
1249
|
})
|
|
@@ -1249,7 +1253,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1249
1253
|
]),
|
|
1250
1254
|
_: 1
|
|
1251
1255
|
}),
|
|
1252
|
-
W(
|
|
1256
|
+
W(Y, {
|
|
1253
1257
|
loading: r.loading,
|
|
1254
1258
|
type: "primary",
|
|
1255
1259
|
onClick: s[1] || (s[1] = () => {
|
|
@@ -1285,47 +1289,47 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1285
1289
|
},
|
|
1286
1290
|
emits: ["update:modelValue"],
|
|
1287
1291
|
setup(e, { emit: o }) {
|
|
1288
|
-
const t = e, a = o, n =
|
|
1292
|
+
const t = e, a = o, n = $e(), l = $({
|
|
1289
1293
|
get: () => t.modelValue,
|
|
1290
1294
|
set: (i) => a("update:modelValue", i)
|
|
1291
1295
|
}), r = $(() => {
|
|
1292
|
-
const i = t.options.find((
|
|
1296
|
+
const i = t.options.find((d) => d.value === l.value);
|
|
1293
1297
|
return i != null && i.label ? t.labelRenderer(i.label) : t.placeholder;
|
|
1294
1298
|
});
|
|
1295
1299
|
function s(i) {
|
|
1296
|
-
t.multiple ? l.value = l.value.includes(i.value) ? l.value.filter((
|
|
1300
|
+
t.multiple ? l.value = l.value.includes(i.value) ? l.value.filter((d) => d !== i.value) : [...l.value, i.value] : l.value = i.value;
|
|
1297
1301
|
}
|
|
1298
|
-
return (i,
|
|
1302
|
+
return (i, d) => (p(), O(no, G({ label: r.value }, {
|
|
1299
1303
|
buttonProps: i.buttonProps,
|
|
1300
1304
|
disabled: i.disabled
|
|
1301
1305
|
}), De({
|
|
1302
1306
|
popper: y(() => [
|
|
1303
1307
|
b("div", ao, [
|
|
1304
|
-
k(n).item ? (p(!0), _(
|
|
1305
|
-
key:
|
|
1308
|
+
k(n).item ? (p(!0), _(he, { key: 0 }, be(i.options, (c) => (p(), _("div", {
|
|
1309
|
+
key: c.value,
|
|
1306
1310
|
class: "cursor-pointer",
|
|
1307
|
-
onClick: (u) => s(
|
|
1311
|
+
onClick: (u) => s(c)
|
|
1308
1312
|
}, [
|
|
1309
|
-
w(i.$slots, "item",
|
|
1310
|
-
item:
|
|
1311
|
-
active: i.multiple ? l.value.includes(
|
|
1313
|
+
w(i.$slots, "item", G({ ref_for: !0 }, {
|
|
1314
|
+
item: c,
|
|
1315
|
+
active: i.multiple ? l.value.includes(c.value) : c.value === l.value,
|
|
1312
1316
|
disabled: i.disabled
|
|
1313
|
-
}))
|
|
1314
|
-
], 8, lo))), 128)) : (p(!0), _(
|
|
1315
|
-
key:
|
|
1317
|
+
}))
|
|
1318
|
+
], 8, lo))), 128)) : (p(!0), _(he, { key: 1 }, be(i.options, (c) => pe((p(), O(Y, {
|
|
1319
|
+
key: c.value,
|
|
1316
1320
|
disabled: i.disabled,
|
|
1317
1321
|
round: "normal",
|
|
1318
1322
|
class: V(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
|
|
1319
|
-
active: i.multiple ? l.value.includes(
|
|
1323
|
+
active: i.multiple ? l.value.includes(c.value) : c.value === l.value
|
|
1320
1324
|
}]),
|
|
1321
|
-
onClick: (u) => s(
|
|
1325
|
+
onClick: (u) => s(c)
|
|
1322
1326
|
}, {
|
|
1323
1327
|
default: y(() => [
|
|
1324
|
-
H(I(
|
|
1328
|
+
H(I(c.label), 1)
|
|
1325
1329
|
]),
|
|
1326
1330
|
_: 2
|
|
1327
1331
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
1328
|
-
[k(
|
|
1332
|
+
[k(ke), i.autoClose]
|
|
1329
1333
|
])), 128))
|
|
1330
1334
|
])
|
|
1331
1335
|
]),
|
|
@@ -1409,7 +1413,8 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1409
1413
|
contentBlur: { type: Boolean, default: !1 },
|
|
1410
1414
|
top: {},
|
|
1411
1415
|
dim: { type: Boolean },
|
|
1412
|
-
blur: { type: Boolean }
|
|
1416
|
+
blur: { type: Boolean },
|
|
1417
|
+
position: {}
|
|
1413
1418
|
},
|
|
1414
1419
|
emits: ["update:modelValue", "close"],
|
|
1415
1420
|
setup(e, { emit: o }) {
|
|
@@ -1435,9 +1440,9 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1435
1440
|
t.closable && (l.value = !1);
|
|
1436
1441
|
});
|
|
1437
1442
|
const s = $(() => r[t.placement]), i = B(!1);
|
|
1438
|
-
return
|
|
1443
|
+
return X(() => i.value = !0), (d, c) => i.value || d.mountTo === "body" ? (p(), O(Te, {
|
|
1439
1444
|
key: 0,
|
|
1440
|
-
to:
|
|
1445
|
+
to: d.mountTo
|
|
1441
1446
|
}, [
|
|
1442
1447
|
W(ce, {
|
|
1443
1448
|
"enter-from-class": `${s.value.transition}`,
|
|
@@ -1447,32 +1452,33 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1447
1452
|
k(l) ? (p(), O(Re, {
|
|
1448
1453
|
key: 0,
|
|
1449
1454
|
class: V({
|
|
1450
|
-
"pointer-events-none":
|
|
1455
|
+
"pointer-events-none": d.permanent
|
|
1451
1456
|
}),
|
|
1452
|
-
dim:
|
|
1453
|
-
blur:
|
|
1454
|
-
|
|
1457
|
+
dim: d.dim,
|
|
1458
|
+
blur: d.blur,
|
|
1459
|
+
position: d.position,
|
|
1460
|
+
onClick: c[2] || (c[2] = (u) => d.closeOutside && d.closable && (l.value = !1))
|
|
1455
1461
|
}, {
|
|
1456
1462
|
default: y(() => [
|
|
1457
1463
|
b("div", {
|
|
1458
|
-
class: V([[s.value.class,
|
|
1464
|
+
class: V([[s.value.class, d.contentClass ?? "", d.contentBlur ? "$ui-glass-effect" : "$ui-bg-base"], "drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),
|
|
1459
1465
|
style: fe({
|
|
1460
|
-
top:
|
|
1461
|
-
height: ["top", "bottom"].includes(
|
|
1466
|
+
top: d.placement === "bottom" ? "auto" : `${k(n)}px`,
|
|
1467
|
+
height: ["top", "bottom"].includes(d.placement) ? "auto" : `calc(100% - ${k(n)}px)`
|
|
1462
1468
|
}),
|
|
1463
|
-
onClick:
|
|
1469
|
+
onClick: c[1] || (c[1] = qe(() => {
|
|
1464
1470
|
}, ["stop"]))
|
|
1465
1471
|
}, [
|
|
1466
|
-
|
|
1472
|
+
d.closable ? (p(), _("div", {
|
|
1467
1473
|
key: 0,
|
|
1468
1474
|
class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
|
|
1469
|
-
onClick:
|
|
1475
|
+
onClick: c[0] || (c[0] = (u) => l.value = !1)
|
|
1470
1476
|
})) : A("", !0),
|
|
1471
|
-
w(
|
|
1477
|
+
w(d.$slots, "default")
|
|
1472
1478
|
], 6)
|
|
1473
1479
|
]),
|
|
1474
1480
|
_: 3
|
|
1475
|
-
}, 8, ["class", "dim", "blur"])) : A("", !0)
|
|
1481
|
+
}, 8, ["class", "dim", "blur", "position"])) : A("", !0)
|
|
1476
1482
|
]),
|
|
1477
1483
|
_: 3
|
|
1478
1484
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
@@ -1489,7 +1495,7 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1489
1495
|
shown: { type: Boolean }
|
|
1490
1496
|
},
|
|
1491
1497
|
setup(e) {
|
|
1492
|
-
return (o, t) => (p(), O(k(
|
|
1498
|
+
return (o, t) => (p(), O(k(je), G({
|
|
1493
1499
|
disabled: o.disabled,
|
|
1494
1500
|
placement: o.placement
|
|
1495
1501
|
}, o.$attrs), {
|
|
@@ -1505,9 +1511,8 @@ const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
|
1505
1511
|
});
|
|
1506
1512
|
export {
|
|
1507
1513
|
Ft as THEME_KEY,
|
|
1508
|
-
Vo as VTooltip,
|
|
1509
1514
|
co as VueBadge,
|
|
1510
|
-
|
|
1515
|
+
Y as VueButton,
|
|
1511
1516
|
mo as VueCard,
|
|
1512
1517
|
wo as VueCheckbox,
|
|
1513
1518
|
ho as VueConfirm,
|
|
@@ -1526,5 +1531,6 @@ export {
|
|
|
1526
1531
|
yo as VueSwitch,
|
|
1527
1532
|
$o as VueTooltip,
|
|
1528
1533
|
fo as showVueNotification,
|
|
1529
|
-
Lt as useDevToolsColorMode
|
|
1534
|
+
Lt as useDevToolsColorMode,
|
|
1535
|
+
Vo as vTooltip
|
|
1530
1536
|
};
|