@vue/devtools-ui 7.0.27 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +263 -249
- package/dist/types/src/components/Badge.d.ts +1 -1
- package/dist/types/src/components/Button.d.ts +2 -2
- package/dist/types/src/components/Card.d.ts +1 -1
- package/dist/types/src/components/Checkbox.d.ts +2 -2
- package/dist/types/src/components/Confirm.d.ts +2 -2
- package/dist/types/src/components/DarkToggle.d.ts +2 -2
- package/dist/types/src/components/Dialog.d.ts +2 -2
- package/dist/types/src/components/Drawer.d.ts +5 -5
- 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/FormField.d.ts +3 -3
- package/dist/types/src/components/Icon.d.ts +1 -1
- package/dist/types/src/components/Input.d.ts +2 -2
- package/dist/types/src/components/LoadingIndicator.d.ts +1 -1
- package/dist/types/src/components/Notification.d.ts +2 -2
- package/dist/types/src/components/Overlay.d.ts +1 -1
- package/dist/types/src/components/Select.d.ts +1 -1
- package/dist/types/src/components/Switch.d.ts +2 -2
- package/dist/types/src/components/Tooltip.d.ts +1 -1
- package/dist/types/src/composables/index.d.ts +1 -0
- package/dist/types/src/composables/theme.d.ts +7 -0
- package/package.json +9 -8
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
|
|
3
3
|
import { Dropdown as xe, VClosePopper as _e, Tooltip as ze } from "floating-vue";
|
|
4
|
-
import { VTooltip as
|
|
5
|
-
import { openBlock as p, createElementBlock as
|
|
4
|
+
import { VTooltip as Vo } from "floating-vue";
|
|
5
|
+
import { openBlock as p, createElementBlock as _, createElementVNode as b, defineComponent as T, useAttrs as je, computed as $, useSlots as Ce, createBlock as O, resolveDynamicComponent as Ve, mergeProps as q, withCtx as y, renderSlot as w, unref as k, createCommentVNode as A, normalizeClass as V, ref as B, watch as R, customRef as Se, isRef as Q, getCurrentScope as Ie, onScopeDispose as He, toRef as Je, readonly as Be, onMounted as Y, nextTick as Z, getCurrentInstance as de, shallowRef as Ue, watchEffect as X, createVNode as W, Transition as ce, normalizeStyle as fe, toDisplayString as I, h as Ke, render as be, normalizeProps as pe, guardReactiveProps as me, Teleport as Te, createTextVNode as H, withDirectives as ve, vModelDynamic as Ge, provide as Ye, createSlots as De, inject as Xe, Fragment as ye, renderList as we, withModifiers as qe } from "vue";
|
|
6
6
|
const ge = (e, o) => {
|
|
7
7
|
const t = e.__vccOpts || e;
|
|
8
8
|
for (const [a, n] of o)
|
|
@@ -31,9 +31,9 @@ const ge = (e, o) => {
|
|
|
31
31
|
et
|
|
32
32
|
];
|
|
33
33
|
function ot(e, o) {
|
|
34
|
-
return p(),
|
|
34
|
+
return p(), _("div", Ze, tt);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const Me = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, G = /* @__PURE__ */ T({
|
|
37
37
|
inheritAttrs: !1,
|
|
38
38
|
__name: "Button",
|
|
39
39
|
props: {
|
|
@@ -47,7 +47,7 @@ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
47
47
|
},
|
|
48
48
|
emits: ["click"],
|
|
49
49
|
setup(e, { emit: o }) {
|
|
50
|
-
const t = e, a = o, n = je(), l =
|
|
50
|
+
const t = e, a = o, n = je(), 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 Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
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
|
-
}, c = Ce(), d =
|
|
96
|
-
return (u, f) => (p(),
|
|
95
|
+
}, c = Ce(), d = $(() => t.flat ? i.flat[t.type] : t.outlined ? i.outlined[t.type] : i.normal[t.type]);
|
|
96
|
+
return (u, f) => (p(), O(Ve(l.value), q(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", [
|
|
@@ -113,16 +113,16 @@ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
113
113
|
onClickCapture: s
|
|
114
114
|
}), {
|
|
115
115
|
default: y(() => [
|
|
116
|
-
u.loading ? (p(),
|
|
116
|
+
u.loading ? (p(), O(Me, {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: "mt0.5 h-full w3"
|
|
119
119
|
})) : w(u.$slots, "icon", {
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "h-full w3 $ui-inline-fcc"
|
|
122
122
|
}),
|
|
123
|
-
k(c).default ? (p(),
|
|
123
|
+
k(c).default ? (p(), _("div", nt, [
|
|
124
124
|
w(u.$slots, "default")
|
|
125
|
-
])) :
|
|
125
|
+
])) : A("", !0),
|
|
126
126
|
w(u.$slots, "icon-right")
|
|
127
127
|
]),
|
|
128
128
|
_: 3
|
|
@@ -130,11 +130,11 @@ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
130
130
|
}
|
|
131
131
|
}), rt = {}, at = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
|
|
132
132
|
function lt(e, o) {
|
|
133
|
-
return p(),
|
|
133
|
+
return p(), _("span", at, [
|
|
134
134
|
w(e.$slots, "default")
|
|
135
135
|
]);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const co = /* @__PURE__ */ ge(rt, [["render", lt]]), ue = /* @__PURE__ */ T({
|
|
138
138
|
__name: "Icon",
|
|
139
139
|
props: {
|
|
140
140
|
icon: {},
|
|
@@ -142,7 +142,7 @@ const io = /* @__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(),
|
|
145
|
+
return (o, t) => (p(), O(Ve(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
|
}
|
|
@@ -166,15 +166,15 @@ function st(e, o, { enumerable: t = !1, unwrap: a = !0 } = {}) {
|
|
|
166
166
|
function N(e) {
|
|
167
167
|
return typeof e == "function" ? e() : k(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
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
|
}, ke = /* @__PURE__ */ ct();
|
|
173
173
|
function ct() {
|
|
174
174
|
var e, o;
|
|
175
|
-
return
|
|
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));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ee(e, o) {
|
|
178
178
|
function t(...a) {
|
|
179
179
|
return new Promise((n, l) => {
|
|
180
180
|
Promise.resolve(e(() => o.apply(this, a), { fn: o, thisArg: this, args: a })).then(n).catch(l);
|
|
@@ -182,7 +182,7 @@ function Ae(e, o) {
|
|
|
182
182
|
}
|
|
183
183
|
return t;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const Ae = (e) => e();
|
|
186
186
|
function ft(e, o = {}) {
|
|
187
187
|
let t, a, n = re;
|
|
188
188
|
const l = (s) => {
|
|
@@ -199,7 +199,7 @@ function ft(e, o = {}) {
|
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function pt(e =
|
|
202
|
+
function pt(e = Ae) {
|
|
203
203
|
const o = B(!0);
|
|
204
204
|
function t() {
|
|
205
205
|
o.value = !1;
|
|
@@ -222,7 +222,7 @@ function Ne(...e) {
|
|
|
222
222
|
return typeof o == "function" ? Be(Se(() => ({ get: o, set: re }))) : B(o);
|
|
223
223
|
}
|
|
224
224
|
function vt(e, o = 200, t = {}) {
|
|
225
|
-
return
|
|
225
|
+
return Ee(
|
|
226
226
|
ft(o, t),
|
|
227
227
|
e
|
|
228
228
|
);
|
|
@@ -268,12 +268,12 @@ function ht(e, o = {}) {
|
|
|
268
268
|
}
|
|
269
269
|
function bt(e, o, t = {}) {
|
|
270
270
|
const {
|
|
271
|
-
eventFilter: a =
|
|
271
|
+
eventFilter: a = Ae,
|
|
272
272
|
...n
|
|
273
273
|
} = t;
|
|
274
274
|
return R(
|
|
275
275
|
e,
|
|
276
|
-
|
|
276
|
+
Ee(
|
|
277
277
|
a,
|
|
278
278
|
o
|
|
279
279
|
),
|
|
@@ -317,7 +317,7 @@ function j(e) {
|
|
|
317
317
|
const t = N(e);
|
|
318
318
|
return (o = t == null ? void 0 : t.$el) != null ? o : t;
|
|
319
319
|
}
|
|
320
|
-
const J =
|
|
320
|
+
const J = Oe ? window : void 0;
|
|
321
321
|
function ae(...e) {
|
|
322
322
|
let o, t, a, n;
|
|
323
323
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, a, n] = e, o = J) : [o, t, a, n] = e, !o)
|
|
@@ -365,7 +365,7 @@ function $t() {
|
|
|
365
365
|
}
|
|
366
366
|
function We(e) {
|
|
367
367
|
const o = $t();
|
|
368
|
-
return
|
|
368
|
+
return $(() => (o.value, !!e()));
|
|
369
369
|
}
|
|
370
370
|
function _t(e, o = {}) {
|
|
371
371
|
const { window: t = J } = o, a = We(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
@@ -463,38 +463,38 @@ function Dt(e, o, t, a = {}) {
|
|
|
463
463
|
u && s && he(() => {
|
|
464
464
|
ae(u, "storage", F), ae(u, $e, ee), g && F();
|
|
465
465
|
}), g || F();
|
|
466
|
-
function
|
|
466
|
+
function E(v, M) {
|
|
467
467
|
u && u.dispatchEvent(new CustomEvent($e, {
|
|
468
468
|
detail: {
|
|
469
469
|
key: e,
|
|
470
470
|
oldValue: v,
|
|
471
|
-
newValue:
|
|
471
|
+
newValue: M,
|
|
472
472
|
storageArea: t
|
|
473
473
|
}
|
|
474
474
|
}));
|
|
475
475
|
}
|
|
476
476
|
function L(v) {
|
|
477
477
|
try {
|
|
478
|
-
const
|
|
478
|
+
const M = t.getItem(e);
|
|
479
479
|
if (v == null)
|
|
480
|
-
|
|
480
|
+
E(M, null), t.removeItem(e);
|
|
481
481
|
else {
|
|
482
482
|
const z = P.write(v);
|
|
483
|
-
|
|
483
|
+
M !== z && (t.setItem(e, z), E(M, z));
|
|
484
484
|
}
|
|
485
|
-
} catch (
|
|
486
|
-
m(
|
|
485
|
+
} catch (M) {
|
|
486
|
+
m(M);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
489
|
+
function K(v) {
|
|
490
|
+
const M = v ? v.newValue : t.getItem(e);
|
|
491
|
+
if (M == null)
|
|
492
492
|
return i && D != null && t.setItem(e, P.write(D)), D;
|
|
493
493
|
if (!v && c) {
|
|
494
|
-
const z = P.read(
|
|
494
|
+
const z = P.read(M);
|
|
495
495
|
return typeof c == "function" ? c(z, D) : x === "object" && !Array.isArray(z) ? { ...D, ...z } : z;
|
|
496
496
|
} else
|
|
497
|
-
return typeof
|
|
497
|
+
return typeof M != "string" ? M : P.read(M);
|
|
498
498
|
}
|
|
499
499
|
function F(v) {
|
|
500
500
|
if (!(v && v.storageArea !== t)) {
|
|
@@ -505,9 +505,9 @@ function Dt(e, o, t, a = {}) {
|
|
|
505
505
|
if (!(v && v.key !== e)) {
|
|
506
506
|
S();
|
|
507
507
|
try {
|
|
508
|
-
(v == null ? void 0 : v.newValue) !== P.write(h.value) && (h.value =
|
|
509
|
-
} catch (
|
|
510
|
-
m(
|
|
508
|
+
(v == null ? void 0 : v.newValue) !== P.write(h.value) && (h.value = K(v));
|
|
509
|
+
} catch (M) {
|
|
510
|
+
m(M);
|
|
511
511
|
} finally {
|
|
512
512
|
v ? Z(C) : C();
|
|
513
513
|
}
|
|
@@ -519,10 +519,10 @@ function Dt(e, o, t, a = {}) {
|
|
|
519
519
|
}
|
|
520
520
|
return h;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Mt(e) {
|
|
523
523
|
return _t("(prefers-color-scheme: dark)", e);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ot(e = {}) {
|
|
526
526
|
const {
|
|
527
527
|
selector: o = "html",
|
|
528
528
|
attribute: t = "class",
|
|
@@ -539,32 +539,32 @@ function Mt(e = {}) {
|
|
|
539
539
|
light: "light",
|
|
540
540
|
dark: "dark",
|
|
541
541
|
...e.modes || {}
|
|
542
|
-
}, f =
|
|
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
|
-
(C,
|
|
545
|
-
const
|
|
546
|
-
if (!
|
|
544
|
+
(C, E, L) => {
|
|
545
|
+
const K = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) : j(C);
|
|
546
|
+
if (!K)
|
|
547
547
|
return;
|
|
548
548
|
let F;
|
|
549
|
-
if (d && (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)),
|
|
549
|
+
if (d && (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
|
-
ee.includes(v) ?
|
|
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
|
d && (n.getComputedStyle(F).opacity, document.head.removeChild(F));
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
function x(C) {
|
|
560
|
-
var
|
|
561
|
-
D(o, t, (
|
|
560
|
+
var E;
|
|
561
|
+
D(o, t, (E = u[C]) != null ? E : C);
|
|
562
562
|
}
|
|
563
563
|
function P(C) {
|
|
564
564
|
e.onChanged ? e.onChanged(C, x) : x(C);
|
|
565
565
|
}
|
|
566
566
|
R(h, P, { flush: "post", immediate: !0 }), he(() => P(h.value));
|
|
567
|
-
const S =
|
|
567
|
+
const S = $({
|
|
568
568
|
get() {
|
|
569
569
|
return c ? g.value : h.value;
|
|
570
570
|
},
|
|
@@ -578,12 +578,12 @@ function Mt(e = {}) {
|
|
|
578
578
|
return S;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Et(e, o, t = {}) {
|
|
582
582
|
const { window: a = J, ...n } = 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 =
|
|
586
|
+
}, i = $(() => Array.isArray(e) ? e.map((u) => j(u)) : [j(e)]), c = R(
|
|
587
587
|
i,
|
|
588
588
|
(u) => {
|
|
589
589
|
if (s(), r.value && a) {
|
|
@@ -601,11 +601,11 @@ function At(e, o, t = {}) {
|
|
|
601
601
|
stop: d
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
const { window: a = J, box: n = "content-box" } = t, l =
|
|
604
|
+
function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
605
|
+
const { window: a = J, box: n = "content-box" } = t, l = $(() => {
|
|
606
606
|
var u, f;
|
|
607
607
|
return (f = (u = j(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
608
|
-
}), r = B(o.width), s = B(o.height), { stop: i } =
|
|
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;
|
|
@@ -686,7 +686,7 @@ function Pt(e, o = !1) {
|
|
|
686
686
|
const s = se(N(e));
|
|
687
687
|
!s || !t.value || (ke && (a == null || a()), s.style.overflow = (r = ne.get(s)) != null ? r : "", ne.delete(s), t.value = !1);
|
|
688
688
|
};
|
|
689
|
-
return le(l),
|
|
689
|
+
return le(l), $({
|
|
690
690
|
get() {
|
|
691
691
|
return t.value;
|
|
692
692
|
},
|
|
@@ -712,21 +712,21 @@ function U(e, o, t, a = {}) {
|
|
|
712
712
|
};
|
|
713
713
|
if (i) {
|
|
714
714
|
const S = x(), C = B(S);
|
|
715
|
-
let
|
|
715
|
+
let E = !1;
|
|
716
716
|
return R(
|
|
717
717
|
() => e[o],
|
|
718
718
|
(L) => {
|
|
719
|
-
|
|
719
|
+
E || (E = !0, C.value = D(L), Z(() => E = !1));
|
|
720
720
|
}
|
|
721
721
|
), R(
|
|
722
722
|
C,
|
|
723
723
|
(L) => {
|
|
724
|
-
!
|
|
724
|
+
!E && (L !== e[o] || d) && P(L);
|
|
725
725
|
},
|
|
726
726
|
{ deep: d }
|
|
727
727
|
), C;
|
|
728
728
|
} else
|
|
729
|
-
return
|
|
729
|
+
return $({
|
|
730
730
|
get() {
|
|
731
731
|
return x();
|
|
732
732
|
},
|
|
@@ -735,7 +735,94 @@ function U(e, o, t, a = {}) {
|
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
const Wt =
|
|
738
|
+
const Wt = /* @__PURE__ */ T({
|
|
739
|
+
__name: "Notification",
|
|
740
|
+
props: {
|
|
741
|
+
message: {},
|
|
742
|
+
type: { default: "info" },
|
|
743
|
+
classes: {},
|
|
744
|
+
duration: { default: 3e3 },
|
|
745
|
+
placement: { default: "top-center" },
|
|
746
|
+
onClose: {}
|
|
747
|
+
},
|
|
748
|
+
setup(e) {
|
|
749
|
+
const o = e, t = {
|
|
750
|
+
success: "i-carbon-checkmark",
|
|
751
|
+
info: "i-material-symbols-light-info",
|
|
752
|
+
warning: "i-carbon-warning",
|
|
753
|
+
error: "i-carbon-close"
|
|
754
|
+
}, a = {
|
|
755
|
+
success: "text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",
|
|
756
|
+
info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
|
|
757
|
+
warning: "text-amber-4 border-amber-2 dark:border-amber-4",
|
|
758
|
+
error: "text-red-4 border-red-2 dark:border-red-4"
|
|
759
|
+
}, n = B(!1);
|
|
760
|
+
Y(() => {
|
|
761
|
+
n.value = !0, setTimeout(() => {
|
|
762
|
+
n.value = !1;
|
|
763
|
+
}, o.duration);
|
|
764
|
+
});
|
|
765
|
+
const l = $(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
|
|
766
|
+
return (r, s) => (p(), _("div", {
|
|
767
|
+
class: V(["fixed left-0 right-0 $ui-z-max-override text-center", [
|
|
768
|
+
{ "top-0": r.placement.startsWith("top") },
|
|
769
|
+
{ "bottom-0": r.placement.startsWith("bottom") }
|
|
770
|
+
]])
|
|
771
|
+
}, [
|
|
772
|
+
W(ce, {
|
|
773
|
+
"enter-from-class": l.value,
|
|
774
|
+
"leave-to-class": l.value,
|
|
775
|
+
onAfterLeave: s[0] || (s[0] = () => {
|
|
776
|
+
var i;
|
|
777
|
+
n.value || (i = r.onClose) == null || i.call(r);
|
|
778
|
+
})
|
|
779
|
+
}, {
|
|
780
|
+
default: y(() => [
|
|
781
|
+
n.value ? (p(), _("div", {
|
|
782
|
+
key: 0,
|
|
783
|
+
class: "flex transition-all duration-300",
|
|
784
|
+
style: fe({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
|
|
785
|
+
}, [
|
|
786
|
+
b("div", {
|
|
787
|
+
class: V(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, a[r.type]]])
|
|
788
|
+
}, [
|
|
789
|
+
b("div", {
|
|
790
|
+
class: V(t[r.type])
|
|
791
|
+
}, null, 2),
|
|
792
|
+
b("div", null, I(r.message), 1)
|
|
793
|
+
], 2)
|
|
794
|
+
], 4)) : A("", !0)
|
|
795
|
+
]),
|
|
796
|
+
_: 1
|
|
797
|
+
}, 8, ["enter-from-class", "leave-to-class"])
|
|
798
|
+
], 2));
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
function fo(e) {
|
|
802
|
+
const o = document.createElement("div");
|
|
803
|
+
o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
|
|
804
|
+
const t = e.onClose;
|
|
805
|
+
function a() {
|
|
806
|
+
be(null, o);
|
|
807
|
+
}
|
|
808
|
+
e.onClose = () => {
|
|
809
|
+
a(), t == null || t(), document.body.removeChild(o);
|
|
810
|
+
};
|
|
811
|
+
const n = Ke(Wt, e);
|
|
812
|
+
be(n, o);
|
|
813
|
+
}
|
|
814
|
+
const Ft = "__vue-devtools-theme__";
|
|
815
|
+
function Lt(e = {}) {
|
|
816
|
+
const o = Ot({
|
|
817
|
+
...e,
|
|
818
|
+
storageKey: Ft
|
|
819
|
+
});
|
|
820
|
+
return {
|
|
821
|
+
colorMode: o,
|
|
822
|
+
isDark: $(() => o.value === "dark")
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
const Rt = { class: "$ui-dark-toggle-vtr" }, po = /* @__PURE__ */ T({
|
|
739
826
|
__name: "DarkToggle",
|
|
740
827
|
props: {
|
|
741
828
|
isDark: { type: Boolean, default: !1 },
|
|
@@ -743,12 +830,12 @@ const Wt = { class: "$ui-dark-toggle-vtr" }, uo = /* @__PURE__ */ T({
|
|
|
743
830
|
animationDuration: { default: 400 }
|
|
744
831
|
},
|
|
745
832
|
setup(e) {
|
|
746
|
-
const o = e, t = U(o, "isDark"), a =
|
|
833
|
+
const o = e, t = U(o, "isDark"), { colorMode: a } = Lt({
|
|
747
834
|
initialValue: t.value ? "dark" : "light",
|
|
748
835
|
onChanged: (s) => {
|
|
749
836
|
t.value = s === "dark";
|
|
750
837
|
}
|
|
751
|
-
}), n =
|
|
838
|
+
}), n = $({
|
|
752
839
|
get: () => a.value === "dark",
|
|
753
840
|
set: (s) => a.value = s ? "dark" : "light"
|
|
754
841
|
}), l = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -780,24 +867,24 @@ const Wt = { class: "$ui-dark-toggle-vtr" }, uo = /* @__PURE__ */ T({
|
|
|
780
867
|
);
|
|
781
868
|
});
|
|
782
869
|
}
|
|
783
|
-
return (s, i) => (p(),
|
|
784
|
-
w(s.$slots, "default",
|
|
870
|
+
return (s, i) => (p(), _("span", Rt, [
|
|
871
|
+
w(s.$slots, "default", pe(me({ mode: k(a), isDark: n.value, toggle: r })))
|
|
785
872
|
]));
|
|
786
873
|
}
|
|
787
|
-
}),
|
|
788
|
-
function
|
|
789
|
-
return p(),
|
|
874
|
+
}), xt = {}, zt = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
|
|
875
|
+
function jt(e, o) {
|
|
876
|
+
return p(), _("div", zt, [
|
|
790
877
|
w(e.$slots, "default")
|
|
791
878
|
]);
|
|
792
879
|
}
|
|
793
|
-
const
|
|
880
|
+
const mo = /* @__PURE__ */ ge(xt, [["render", jt]]), Re = /* @__PURE__ */ T({
|
|
794
881
|
__name: "Overlay",
|
|
795
882
|
props: {
|
|
796
883
|
dim: { type: Boolean },
|
|
797
884
|
blur: { type: Boolean }
|
|
798
885
|
},
|
|
799
886
|
setup(e) {
|
|
800
|
-
return (o, t) => (p(),
|
|
887
|
+
return (o, t) => (p(), _("div", {
|
|
801
888
|
class: V(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
|
|
802
889
|
o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
|
|
803
890
|
o.blur ? "backdrop-blur-sm" : ""
|
|
@@ -806,9 +893,9 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
806
893
|
w(o.$slots, "default")
|
|
807
894
|
], 2));
|
|
808
895
|
}
|
|
809
|
-
}),
|
|
810
|
-
|
|
811
|
-
],
|
|
896
|
+
}), It = { class: "h7.5 w-full $ui-fbc" }, Ht = { class: "text-4.5" }, Jt = /* @__PURE__ */ b("div", { class: "i-carbon-close" }, null, -1), Ut = [
|
|
897
|
+
Jt
|
|
898
|
+
], Kt = { class: "content transition-all transition-duration-300" }, Gt = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, Yt = { class: "$ui-fcc" }, Xt = /* @__PURE__ */ T({
|
|
812
899
|
__name: "Dialog",
|
|
813
900
|
props: {
|
|
814
901
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -834,18 +921,18 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
834
921
|
r();
|
|
835
922
|
});
|
|
836
923
|
const s = B(!1);
|
|
837
|
-
return Y(() => s.value = !0), (i, c) => s.value || i.mountTo === "body" ? (p(),
|
|
924
|
+
return Y(() => s.value = !0), (i, c) => s.value || i.mountTo === "body" ? (p(), O(Te, {
|
|
838
925
|
key: 0,
|
|
839
926
|
to: i.mountTo
|
|
840
927
|
}, [
|
|
841
|
-
W(
|
|
928
|
+
W(ce, {
|
|
842
929
|
"enter-from-class": "opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0",
|
|
843
930
|
"enter-to-class": "opacity-100 [&_.modal]:scale-100",
|
|
844
931
|
"leave-from-class": "opacity-100 [&_.modal]:scale-100",
|
|
845
932
|
"leave-to-class": "opacity-0 [&_.modal]:scale-95"
|
|
846
933
|
}, {
|
|
847
934
|
default: y(() => [
|
|
848
|
-
k(n) ? (p(),
|
|
935
|
+
k(n) ? (p(), O(Re, {
|
|
849
936
|
key: 0,
|
|
850
937
|
dim: i.dim,
|
|
851
938
|
blur: i.blur
|
|
@@ -853,36 +940,36 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
853
940
|
default: y(() => [
|
|
854
941
|
b("div", {
|
|
855
942
|
class: "modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",
|
|
856
|
-
style:
|
|
943
|
+
style: fe({
|
|
857
944
|
width: t.width,
|
|
858
945
|
height: t.height
|
|
859
946
|
})
|
|
860
947
|
}, [
|
|
861
|
-
b("div",
|
|
862
|
-
b("div",
|
|
948
|
+
b("div", It, [
|
|
949
|
+
b("div", Ht, [
|
|
863
950
|
w(i.$slots, "title", {}, () => [
|
|
864
|
-
I(
|
|
951
|
+
H(I(t.title), 1)
|
|
865
952
|
])
|
|
866
953
|
]),
|
|
867
|
-
i.closable ? (p(),
|
|
954
|
+
i.closable ? (p(), _("div", {
|
|
868
955
|
key: 0,
|
|
869
956
|
class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
|
|
870
957
|
onClick: r
|
|
871
|
-
},
|
|
958
|
+
}, Ut)) : A("", !0)
|
|
872
959
|
]),
|
|
873
|
-
b("div",
|
|
960
|
+
b("div", Kt, [
|
|
874
961
|
w(i.$slots, "default")
|
|
875
962
|
]),
|
|
876
|
-
b("div",
|
|
963
|
+
b("div", Gt, [
|
|
877
964
|
w(i.$slots, "footer", {}, () => [
|
|
878
965
|
w(i.$slots, "footer", {}, () => [
|
|
879
|
-
b("div",
|
|
880
|
-
W(
|
|
966
|
+
b("div", Yt, [
|
|
967
|
+
W(G, {
|
|
881
968
|
type: "primary",
|
|
882
969
|
onClick: r
|
|
883
970
|
}, {
|
|
884
971
|
default: y(() => [
|
|
885
|
-
|
|
972
|
+
H(" close ")
|
|
886
973
|
]),
|
|
887
974
|
_: 1
|
|
888
975
|
})
|
|
@@ -893,16 +980,16 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
893
980
|
], 4)
|
|
894
981
|
]),
|
|
895
982
|
_: 3
|
|
896
|
-
}, 8, ["dim", "blur"])) :
|
|
983
|
+
}, 8, ["dim", "blur"])) : A("", !0)
|
|
897
984
|
]),
|
|
898
985
|
_: 3
|
|
899
986
|
})
|
|
900
|
-
], 8, ["to"])) :
|
|
987
|
+
], 8, ["to"])) : A("", !0);
|
|
901
988
|
}
|
|
902
|
-
}),
|
|
989
|
+
}), qt = ["type", "placeholder", "disabled"], Qt = {
|
|
903
990
|
key: 3,
|
|
904
991
|
class: "pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"
|
|
905
|
-
}, ie = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",
|
|
992
|
+
}, ie = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", Zt = /* @__PURE__ */ T({
|
|
906
993
|
__name: "Input",
|
|
907
994
|
props: {
|
|
908
995
|
modelValue: {},
|
|
@@ -919,11 +1006,11 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
919
1006
|
},
|
|
920
1007
|
emits: ["update:modelValue", "updateFocused", "keyTab"],
|
|
921
1008
|
setup(e, { emit: o }) {
|
|
922
|
-
const t = e, a = o, n = U(t, "modelValue", a), l = gt(
|
|
1009
|
+
const t = e, a = o, n = U(t, "modelValue", a), l = gt($(() => t.loading), t.loadingDebounceTime), r = ht(!1, {
|
|
923
1010
|
onChanged(u) {
|
|
924
1011
|
a("updateFocused", u);
|
|
925
1012
|
}
|
|
926
|
-
}), s =
|
|
1013
|
+
}), s = $(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), i = $(() => t.disabled || l.value), c = B();
|
|
927
1014
|
let d = !1;
|
|
928
1015
|
return X(() => {
|
|
929
1016
|
l.value && r.value ? d = !0 : !l.value && d && (d = !1, Z(() => {
|
|
@@ -934,7 +1021,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
934
1021
|
}), X(() => {
|
|
935
1022
|
var u;
|
|
936
1023
|
r.value && ((u = c.value) == null || u.focus());
|
|
937
|
-
}), (u, f) => (p(),
|
|
1024
|
+
}), (u, f) => (p(), _("div", {
|
|
938
1025
|
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", [
|
|
939
1026
|
{
|
|
940
1027
|
"border-none bg-transparent group": u.variant === "flat",
|
|
@@ -950,12 +1037,12 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
950
1037
|
r.value = !0;
|
|
951
1038
|
})
|
|
952
1039
|
}, [
|
|
953
|
-
u.leftIcon ? (p(),
|
|
1040
|
+
u.leftIcon ? (p(), _("div", {
|
|
954
1041
|
key: 0,
|
|
955
1042
|
class: V(ie)
|
|
956
1043
|
}, [
|
|
957
1044
|
W(ue, { icon: u.leftIcon }, null, 8, ["icon"])
|
|
958
|
-
])) :
|
|
1045
|
+
])) : A("", !0),
|
|
959
1046
|
ve(b("input", {
|
|
960
1047
|
ref_key: "inputRef",
|
|
961
1048
|
ref: c,
|
|
@@ -965,24 +1052,24 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
965
1052
|
placeholder: u.placeholder,
|
|
966
1053
|
disabled: i.value || u.readonly,
|
|
967
1054
|
onBlur: f[1] || (f[1] = (m) => r.value = !1)
|
|
968
|
-
}, null, 40,
|
|
1055
|
+
}, null, 40, qt), [
|
|
969
1056
|
[Ge, k(n)]
|
|
970
1057
|
]),
|
|
971
|
-
k(l) ? (p(),
|
|
1058
|
+
k(l) ? (p(), _("div", {
|
|
972
1059
|
key: 1,
|
|
973
1060
|
class: V(ie)
|
|
974
1061
|
}, [
|
|
975
|
-
W(
|
|
976
|
-
])) : u.rightIcon ? (p(),
|
|
1062
|
+
W(Me)
|
|
1063
|
+
])) : u.rightIcon ? (p(), _("div", {
|
|
977
1064
|
key: 2,
|
|
978
1065
|
class: V(ie)
|
|
979
1066
|
}, [
|
|
980
1067
|
W(ue, { icon: u.rightIcon }, null, 8, ["icon"])
|
|
981
|
-
])) :
|
|
982
|
-
s.value ?
|
|
1068
|
+
])) : A("", !0),
|
|
1069
|
+
s.value ? A("", !0) : (p(), _("div", Qt))
|
|
983
1070
|
], 2));
|
|
984
1071
|
}
|
|
985
|
-
}),
|
|
1072
|
+
}), eo = { class: "$ui-base" }, vo = /* @__PURE__ */ T({
|
|
986
1073
|
__name: "FormField",
|
|
987
1074
|
props: {
|
|
988
1075
|
modelValue: {},
|
|
@@ -993,7 +1080,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
993
1080
|
},
|
|
994
1081
|
emits: ["update:modelValue"],
|
|
995
1082
|
setup(e, { emit: o }) {
|
|
996
|
-
const t = e, n = U(t, "modelValue", o), l = B(!1), r =
|
|
1083
|
+
const t = e, n = U(t, "modelValue", o), l = B(!1), r = $(() => t.message && t.message.length && t.showMessage), s = {
|
|
997
1084
|
normal: "color-gray-600 dark:color-gray-400",
|
|
998
1085
|
warning: "color-warning-500 dark:color-warning-200",
|
|
999
1086
|
danger: "color-danger-500 dark:color-danger-200",
|
|
@@ -1003,8 +1090,8 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1003
1090
|
danger: "i-ic-round-error",
|
|
1004
1091
|
success: "i-ep:success-filled"
|
|
1005
1092
|
};
|
|
1006
|
-
return (c, d) => (p(),
|
|
1007
|
-
W(
|
|
1093
|
+
return (c, d) => (p(), _("div", eo, [
|
|
1094
|
+
W(Zt, {
|
|
1008
1095
|
modelValue: k(n),
|
|
1009
1096
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => Q(n) ? n.value = u : null),
|
|
1010
1097
|
placeholder: c.placeholder,
|
|
@@ -1016,16 +1103,16 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1016
1103
|
{ "opacity-65": !l.value }
|
|
1017
1104
|
]])
|
|
1018
1105
|
}, [
|
|
1019
|
-
c.status !== "normal" && r.value ? (p(),
|
|
1106
|
+
c.status !== "normal" && r.value ? (p(), O(ue, {
|
|
1020
1107
|
key: 0,
|
|
1021
1108
|
inline: "",
|
|
1022
1109
|
icon: i[c.status]
|
|
1023
|
-
}, null, 8, ["icon"])) :
|
|
1024
|
-
|
|
1110
|
+
}, null, 8, ["icon"])) : A("", !0),
|
|
1111
|
+
H(" " + I(r.value ? c.message : ""), 1)
|
|
1025
1112
|
], 2)
|
|
1026
1113
|
]));
|
|
1027
1114
|
}
|
|
1028
|
-
}),
|
|
1115
|
+
}), to = { class: "overflow-hidden rounded-lg shadow-lg" }, oo = /* @__PURE__ */ b("div", { class: "p2 opacity-40" }, " Empty... ", -1), no = /* @__PURE__ */ T({
|
|
1029
1116
|
__name: "Dropdown",
|
|
1030
1117
|
props: {
|
|
1031
1118
|
label: {},
|
|
@@ -1041,7 +1128,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1041
1128
|
emits: ["update:visible"],
|
|
1042
1129
|
setup(e) {
|
|
1043
1130
|
const o = e;
|
|
1044
|
-
return
|
|
1131
|
+
return Ye("$ui-dropdown-disabled", $(() => o.disabled)), (t, a) => (p(), O(k(xe), {
|
|
1045
1132
|
disabled: t.disabled,
|
|
1046
1133
|
class: "inline-block w-auto",
|
|
1047
1134
|
shown: t.shown,
|
|
@@ -1055,15 +1142,15 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1055
1142
|
})
|
|
1056
1143
|
}, {
|
|
1057
1144
|
popper: y(({ hide: n }) => [
|
|
1058
|
-
b("div",
|
|
1059
|
-
w(t.$slots, "popper",
|
|
1060
|
-
|
|
1145
|
+
b("div", to, [
|
|
1146
|
+
w(t.$slots, "popper", pe(me({ hide: n })), () => [
|
|
1147
|
+
oo
|
|
1061
1148
|
])
|
|
1062
1149
|
])
|
|
1063
1150
|
]),
|
|
1064
1151
|
default: y(() => [
|
|
1065
1152
|
w(t.$slots, "default", {}, () => [
|
|
1066
|
-
W(
|
|
1153
|
+
W(G, q({
|
|
1067
1154
|
...t.buttonProps,
|
|
1068
1155
|
disabled: t.disabled
|
|
1069
1156
|
}, { class: t.buttonClass }), De({
|
|
@@ -1078,7 +1165,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1078
1165
|
t.label ? {
|
|
1079
1166
|
name: "default",
|
|
1080
1167
|
fn: y(() => [
|
|
1081
|
-
I(
|
|
1168
|
+
H(I(t.label), 1)
|
|
1082
1169
|
]),
|
|
1083
1170
|
key: "0"
|
|
1084
1171
|
} : void 0
|
|
@@ -1088,7 +1175,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1088
1175
|
_: 3
|
|
1089
1176
|
}, 8, ["disabled", "shown", "triggers", "distance", "placement", "skidding"]));
|
|
1090
1177
|
}
|
|
1091
|
-
}),
|
|
1178
|
+
}), go = /* @__PURE__ */ T({
|
|
1092
1179
|
__name: "DropdownButton",
|
|
1093
1180
|
props: {
|
|
1094
1181
|
type: {},
|
|
@@ -1101,8 +1188,8 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1101
1188
|
keepOpen: { type: Boolean, default: !1 }
|
|
1102
1189
|
},
|
|
1103
1190
|
setup(e) {
|
|
1104
|
-
const o = e, t =
|
|
1105
|
-
return (a, n) => ve((p(),
|
|
1191
|
+
const o = e, t = Xe("$ui-dropdown-disabled", void 0);
|
|
1192
|
+
return (a, n) => ve((p(), O(G, q({
|
|
1106
1193
|
...o,
|
|
1107
1194
|
round: !1
|
|
1108
1195
|
}, {
|
|
@@ -1120,7 +1207,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1120
1207
|
[k(_e)]
|
|
1121
1208
|
]);
|
|
1122
1209
|
}
|
|
1123
|
-
}),
|
|
1210
|
+
}), ro = { class: "$ui-fec gap2.5" }, ho = /* @__PURE__ */ T({
|
|
1124
1211
|
__name: "Confirm",
|
|
1125
1212
|
props: {
|
|
1126
1213
|
modelValue: { type: Boolean },
|
|
@@ -1142,7 +1229,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1142
1229
|
function l(r = !1) {
|
|
1143
1230
|
(t.autoClose || r) && (n.value = !1);
|
|
1144
1231
|
}
|
|
1145
|
-
return (r, s) => (p(),
|
|
1232
|
+
return (r, s) => (p(), O(Xt, {
|
|
1146
1233
|
modelValue: k(n),
|
|
1147
1234
|
"onUpdate:modelValue": s[2] || (s[2] = (i) => Q(n) ? n.value = i : null),
|
|
1148
1235
|
width: r.width,
|
|
@@ -1151,18 +1238,18 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1151
1238
|
closable: !1
|
|
1152
1239
|
}, {
|
|
1153
1240
|
footer: y(() => [
|
|
1154
|
-
b("div",
|
|
1155
|
-
W(
|
|
1241
|
+
b("div", ro, [
|
|
1242
|
+
W(G, {
|
|
1156
1243
|
onClick: s[0] || (s[0] = () => {
|
|
1157
1244
|
a("cancel"), l(!0);
|
|
1158
1245
|
})
|
|
1159
1246
|
}, {
|
|
1160
1247
|
default: y(() => [
|
|
1161
|
-
I(
|
|
1248
|
+
H(I(r.cancelText), 1)
|
|
1162
1249
|
]),
|
|
1163
1250
|
_: 1
|
|
1164
1251
|
}),
|
|
1165
|
-
W(
|
|
1252
|
+
W(G, {
|
|
1166
1253
|
loading: r.loading,
|
|
1167
1254
|
type: "primary",
|
|
1168
1255
|
onClick: s[1] || (s[1] = () => {
|
|
@@ -1170,7 +1257,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1170
1257
|
})
|
|
1171
1258
|
}, {
|
|
1172
1259
|
default: y(() => [
|
|
1173
|
-
I(
|
|
1260
|
+
H(I(r.confirmText), 1)
|
|
1174
1261
|
]),
|
|
1175
1262
|
_: 1
|
|
1176
1263
|
}, 8, ["loading"])
|
|
@@ -1178,13 +1265,13 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1178
1265
|
]),
|
|
1179
1266
|
default: y(() => [
|
|
1180
1267
|
w(r.$slots, "default", { class: "h-auto w-auto" }, () => [
|
|
1181
|
-
I(
|
|
1268
|
+
H(I(r.content), 1)
|
|
1182
1269
|
])
|
|
1183
1270
|
]),
|
|
1184
1271
|
_: 3
|
|
1185
1272
|
}, 8, ["modelValue", "width", "height", "title"]));
|
|
1186
1273
|
}
|
|
1187
|
-
}),
|
|
1274
|
+
}), ao = { class: "m1 min-w-35 w-auto flex flex-col" }, lo = ["onClick"], so = /* @__PURE__ */ b("div", { class: "i-mdi-chevron-down" }, null, -1), bo = /* @__PURE__ */ T({
|
|
1188
1275
|
__name: "Select",
|
|
1189
1276
|
props: {
|
|
1190
1277
|
modelValue: {},
|
|
@@ -1198,33 +1285,33 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1198
1285
|
},
|
|
1199
1286
|
emits: ["update:modelValue"],
|
|
1200
1287
|
setup(e, { emit: o }) {
|
|
1201
|
-
const t = e, a = o, n = Ce(), l =
|
|
1288
|
+
const t = e, a = o, n = Ce(), l = $({
|
|
1202
1289
|
get: () => t.modelValue,
|
|
1203
1290
|
set: (i) => a("update:modelValue", i)
|
|
1204
|
-
}), r =
|
|
1291
|
+
}), r = $(() => {
|
|
1205
1292
|
const i = t.options.find((c) => c.value === l.value);
|
|
1206
1293
|
return i != null && i.label ? t.labelRenderer(i.label) : t.placeholder;
|
|
1207
1294
|
});
|
|
1208
1295
|
function s(i) {
|
|
1209
1296
|
t.multiple ? l.value = l.value.includes(i.value) ? l.value.filter((c) => c !== i.value) : [...l.value, i.value] : l.value = i.value;
|
|
1210
1297
|
}
|
|
1211
|
-
return (i, c) => (p(),
|
|
1298
|
+
return (i, c) => (p(), O(no, q({ label: r.value }, {
|
|
1212
1299
|
buttonProps: i.buttonProps,
|
|
1213
1300
|
disabled: i.disabled
|
|
1214
1301
|
}), De({
|
|
1215
1302
|
popper: y(() => [
|
|
1216
|
-
b("div",
|
|
1217
|
-
k(n).item ? (p(!0),
|
|
1303
|
+
b("div", ao, [
|
|
1304
|
+
k(n).item ? (p(!0), _(ye, { key: 0 }, we(i.options, (d) => (p(), _("div", {
|
|
1218
1305
|
key: d.value,
|
|
1219
1306
|
class: "cursor-pointer",
|
|
1220
1307
|
onClick: (u) => s(d)
|
|
1221
1308
|
}, [
|
|
1222
|
-
w(i.$slots, "item",
|
|
1309
|
+
w(i.$slots, "item", pe(me({
|
|
1223
1310
|
item: d,
|
|
1224
1311
|
active: i.multiple ? l.value.includes(d.value) : d.value === l.value,
|
|
1225
1312
|
disabled: i.disabled
|
|
1226
1313
|
})))
|
|
1227
|
-
], 8,
|
|
1314
|
+
], 8, lo))), 128)) : (p(!0), _(ye, { key: 1 }, we(i.options, (d) => ve((p(), O(G, {
|
|
1228
1315
|
key: d.value,
|
|
1229
1316
|
disabled: i.disabled,
|
|
1230
1317
|
round: "normal",
|
|
@@ -1234,7 +1321,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1234
1321
|
onClick: (u) => s(d)
|
|
1235
1322
|
}, {
|
|
1236
1323
|
default: y(() => [
|
|
1237
|
-
I(
|
|
1324
|
+
H(I(d.label), 1)
|
|
1238
1325
|
]),
|
|
1239
1326
|
_: 2
|
|
1240
1327
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
@@ -1243,7 +1330,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1243
1330
|
])
|
|
1244
1331
|
]),
|
|
1245
1332
|
"button-icon-right": y(() => [
|
|
1246
|
-
|
|
1333
|
+
so
|
|
1247
1334
|
]),
|
|
1248
1335
|
_: 2
|
|
1249
1336
|
}, [
|
|
@@ -1256,7 +1343,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1256
1343
|
} : void 0
|
|
1257
1344
|
]), 1040, ["label"]));
|
|
1258
1345
|
}
|
|
1259
|
-
}),
|
|
1346
|
+
}), yo = /* @__PURE__ */ T({
|
|
1260
1347
|
__name: "Switch",
|
|
1261
1348
|
props: {
|
|
1262
1349
|
modelValue: { type: Boolean },
|
|
@@ -1265,7 +1352,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1265
1352
|
emits: ["update:modelValue"],
|
|
1266
1353
|
setup(e, { emit: o }) {
|
|
1267
1354
|
const n = U(e, "modelValue", o), l = wt(n);
|
|
1268
|
-
return (r, s) => (p(),
|
|
1355
|
+
return (r, s) => (p(), _("div", {
|
|
1269
1356
|
class: V([[
|
|
1270
1357
|
r.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1271
1358
|
], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
|
|
@@ -1287,7 +1374,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1287
1374
|
], 2)
|
|
1288
1375
|
], 2));
|
|
1289
1376
|
}
|
|
1290
|
-
}),
|
|
1377
|
+
}), wo = /* @__PURE__ */ T({
|
|
1291
1378
|
__name: "Checkbox",
|
|
1292
1379
|
props: {
|
|
1293
1380
|
modelValue: { type: Boolean },
|
|
@@ -1296,7 +1383,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1296
1383
|
emits: ["update:modelValue"],
|
|
1297
1384
|
setup(e, { emit: o }) {
|
|
1298
1385
|
const n = U(e, "modelValue", o);
|
|
1299
|
-
return (l, r) => (p(),
|
|
1386
|
+
return (l, r) => (p(), _("div", {
|
|
1300
1387
|
class: V(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
|
|
1301
1388
|
k(n) ? l.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
|
|
1302
1389
|
]]),
|
|
@@ -1309,7 +1396,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1309
1396
|
}, null, 2)
|
|
1310
1397
|
], 2));
|
|
1311
1398
|
}
|
|
1312
|
-
}),
|
|
1399
|
+
}), ko = /* @__PURE__ */ T({
|
|
1313
1400
|
__name: "Drawer",
|
|
1314
1401
|
props: {
|
|
1315
1402
|
modelValue: { type: Boolean },
|
|
@@ -1326,7 +1413,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1326
1413
|
},
|
|
1327
1414
|
emits: ["update:modelValue", "close"],
|
|
1328
1415
|
setup(e, { emit: o }) {
|
|
1329
|
-
const t = e, a = o, { height: n } =
|
|
1416
|
+
const t = e, a = o, { height: n } = At(() => typeof t.top == "string" ? document.querySelector(t.top) : t.top, void 0, { box: "border-box" }), l = U(t, "modelValue", a), r = {
|
|
1330
1417
|
left: {
|
|
1331
1418
|
class: "left-0 h-full b-r",
|
|
1332
1419
|
transition: "[&_.drawer]:translate-x--100%"
|
|
@@ -1347,17 +1434,17 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1347
1434
|
Pe("Escape", () => {
|
|
1348
1435
|
t.closable && (l.value = !1);
|
|
1349
1436
|
});
|
|
1350
|
-
const s =
|
|
1351
|
-
return Y(() => i.value = !0), (c, d) => i.value || c.mountTo === "body" ? (p(),
|
|
1437
|
+
const s = $(() => r[t.placement]), i = B(!1);
|
|
1438
|
+
return Y(() => i.value = !0), (c, d) => i.value || c.mountTo === "body" ? (p(), O(Te, {
|
|
1352
1439
|
key: 0,
|
|
1353
1440
|
to: c.mountTo
|
|
1354
1441
|
}, [
|
|
1355
|
-
W(
|
|
1442
|
+
W(ce, {
|
|
1356
1443
|
"enter-from-class": `${s.value.transition}`,
|
|
1357
1444
|
"leave-to-class": `${s.value.transition}`
|
|
1358
1445
|
}, {
|
|
1359
1446
|
default: y(() => [
|
|
1360
|
-
k(l) ? (p(),
|
|
1447
|
+
k(l) ? (p(), O(Re, {
|
|
1361
1448
|
key: 0,
|
|
1362
1449
|
class: V({
|
|
1363
1450
|
"pointer-events-none": c.permanent
|
|
@@ -1369,91 +1456,29 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1369
1456
|
default: y(() => [
|
|
1370
1457
|
b("div", {
|
|
1371
1458
|
class: V([[s.value.class, c.contentClass ?? "", c.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"]),
|
|
1372
|
-
style:
|
|
1459
|
+
style: fe({
|
|
1373
1460
|
top: c.placement === "bottom" ? "auto" : `${k(n)}px`,
|
|
1374
1461
|
height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${k(n)}px)`
|
|
1375
1462
|
}),
|
|
1376
|
-
onClick: d[1] || (d[1] =
|
|
1463
|
+
onClick: d[1] || (d[1] = qe(() => {
|
|
1377
1464
|
}, ["stop"]))
|
|
1378
1465
|
}, [
|
|
1379
|
-
c.closable ? (p(),
|
|
1466
|
+
c.closable ? (p(), _("div", {
|
|
1380
1467
|
key: 0,
|
|
1381
1468
|
class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
|
|
1382
1469
|
onClick: d[0] || (d[0] = (u) => l.value = !1)
|
|
1383
|
-
})) :
|
|
1470
|
+
})) : A("", !0),
|
|
1384
1471
|
w(c.$slots, "default")
|
|
1385
1472
|
], 6)
|
|
1386
1473
|
]),
|
|
1387
1474
|
_: 3
|
|
1388
|
-
}, 8, ["class", "dim", "blur"])) :
|
|
1475
|
+
}, 8, ["class", "dim", "blur"])) : A("", !0)
|
|
1389
1476
|
]),
|
|
1390
1477
|
_: 3
|
|
1391
1478
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1392
|
-
], 8, ["to"])) :
|
|
1393
|
-
}
|
|
1394
|
-
}), ao = /* @__PURE__ */ T({
|
|
1395
|
-
__name: "Notification",
|
|
1396
|
-
props: {
|
|
1397
|
-
message: {},
|
|
1398
|
-
type: { default: "info" },
|
|
1399
|
-
classes: {},
|
|
1400
|
-
duration: { default: 3e3 },
|
|
1401
|
-
placement: { default: "top-center" },
|
|
1402
|
-
onClose: {}
|
|
1403
|
-
},
|
|
1404
|
-
setup(e) {
|
|
1405
|
-
const o = e, t = {
|
|
1406
|
-
success: "i-carbon-checkmark",
|
|
1407
|
-
info: "i-material-symbols-light-info",
|
|
1408
|
-
warning: "i-carbon-warning",
|
|
1409
|
-
error: "i-carbon-close"
|
|
1410
|
-
}, a = {
|
|
1411
|
-
success: "text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",
|
|
1412
|
-
info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
|
|
1413
|
-
warning: "text-amber-4 border-amber-2 dark:border-amber-4",
|
|
1414
|
-
error: "text-red-4 border-red-2 dark:border-red-4"
|
|
1415
|
-
}, n = B(!1);
|
|
1416
|
-
Y(() => {
|
|
1417
|
-
n.value = !0, setTimeout(() => {
|
|
1418
|
-
n.value = !1;
|
|
1419
|
-
}, o.duration);
|
|
1420
|
-
});
|
|
1421
|
-
const l = _(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
|
|
1422
|
-
return (r, s) => (p(), $("div", {
|
|
1423
|
-
class: V(["fixed left-0 right-0 $ui-z-max-override text-center", [
|
|
1424
|
-
{ "top-0": r.placement.startsWith("top") },
|
|
1425
|
-
{ "bottom-0": r.placement.startsWith("bottom") }
|
|
1426
|
-
]])
|
|
1427
|
-
}, [
|
|
1428
|
-
W(pe, {
|
|
1429
|
-
"enter-from-class": l.value,
|
|
1430
|
-
"leave-to-class": l.value,
|
|
1431
|
-
onAfterLeave: s[0] || (s[0] = () => {
|
|
1432
|
-
var i;
|
|
1433
|
-
n.value || (i = r.onClose) == null || i.call(r);
|
|
1434
|
-
})
|
|
1435
|
-
}, {
|
|
1436
|
-
default: y(() => [
|
|
1437
|
-
n.value ? (p(), $("div", {
|
|
1438
|
-
key: 0,
|
|
1439
|
-
class: "flex transition-all duration-300",
|
|
1440
|
-
style: me({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
|
|
1441
|
-
}, [
|
|
1442
|
-
b("div", {
|
|
1443
|
-
class: V(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, a[r.type]]])
|
|
1444
|
-
}, [
|
|
1445
|
-
b("div", {
|
|
1446
|
-
class: V(t[r.type])
|
|
1447
|
-
}, null, 2),
|
|
1448
|
-
b("div", null, H(r.message), 1)
|
|
1449
|
-
], 2)
|
|
1450
|
-
], 4)) : E("", !0)
|
|
1451
|
-
]),
|
|
1452
|
-
_: 1
|
|
1453
|
-
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1454
|
-
], 2));
|
|
1479
|
+
], 8, ["to"])) : A("", !0);
|
|
1455
1480
|
}
|
|
1456
|
-
}),
|
|
1481
|
+
}), $o = /* @__PURE__ */ T({
|
|
1457
1482
|
__name: "Tooltip",
|
|
1458
1483
|
props: {
|
|
1459
1484
|
trigger: {},
|
|
@@ -1464,7 +1489,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1464
1489
|
shown: { type: Boolean }
|
|
1465
1490
|
},
|
|
1466
1491
|
setup(e) {
|
|
1467
|
-
return (o, t) => (p(),
|
|
1492
|
+
return (o, t) => (p(), O(k(ze), q({
|
|
1468
1493
|
disabled: o.disabled,
|
|
1469
1494
|
placement: o.placement
|
|
1470
1495
|
}, o.$attrs), {
|
|
@@ -1478,39 +1503,28 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1478
1503
|
}, 16, ["disabled", "placement"]));
|
|
1479
1504
|
}
|
|
1480
1505
|
});
|
|
1481
|
-
function wo(e) {
|
|
1482
|
-
const o = document.createElement("div");
|
|
1483
|
-
o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
|
|
1484
|
-
const t = e.onClose;
|
|
1485
|
-
function a() {
|
|
1486
|
-
we(null, o);
|
|
1487
|
-
}
|
|
1488
|
-
e.onClose = () => {
|
|
1489
|
-
a(), t == null || t(), document.body.removeChild(o);
|
|
1490
|
-
};
|
|
1491
|
-
const n = qe(ao, e);
|
|
1492
|
-
we(n, o);
|
|
1493
|
-
}
|
|
1494
1506
|
export {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
+
Ft as THEME_KEY,
|
|
1508
|
+
Vo as VTooltip,
|
|
1509
|
+
co as VueBadge,
|
|
1510
|
+
G as VueButton,
|
|
1511
|
+
mo as VueCard,
|
|
1512
|
+
wo as VueCheckbox,
|
|
1513
|
+
ho as VueConfirm,
|
|
1514
|
+
po as VueDarkToggle,
|
|
1515
|
+
Xt as VueDialog,
|
|
1516
|
+
ko as VueDrawer,
|
|
1517
|
+
no as VueDropdown,
|
|
1518
|
+
go as VueDropdownButton,
|
|
1519
|
+
vo as VueFormField,
|
|
1507
1520
|
ue as VueIcon,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1521
|
+
Zt as VueInput,
|
|
1522
|
+
Me as VueLoadingIndicator,
|
|
1523
|
+
Wt as VueNotification,
|
|
1511
1524
|
Re as VueOverlay,
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1525
|
+
bo as VueSelect,
|
|
1526
|
+
yo as VueSwitch,
|
|
1527
|
+
$o as VueTooltip,
|
|
1528
|
+
fo as showVueNotification,
|
|
1529
|
+
Lt as useDevToolsColorMode
|
|
1516
1530
|
};
|