@quidgest/ui 0.9.4 → 0.9.5
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/ui.esm.js +77 -77
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +1 -1
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +27 -27
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as De, computed as w, ref as T, provide as ze, inject as Ce, watch as P, defineComponent as S, openBlock as u, createElementBlock as p, normalizeClass as E, normalizeStyle as pe, createElementVNode as Y, withModifiers as de, createVNode as A, unref as v, createCommentVNode as I, Fragment as oe, createTextVNode as ue, toDisplayString as N, renderSlot as m, toRef as Le, mergeModels as H, useModel as X, createBlock as V, withCtx as
|
|
1
|
+
import { getCurrentInstance as De, computed as w, ref as T, provide as ze, inject as Ce, watch as P, defineComponent as S, openBlock as u, createElementBlock as p, normalizeClass as E, normalizeStyle as pe, createElementVNode as Y, withModifiers as de, createVNode as A, unref as v, createCommentVNode as I, Fragment as oe, createTextVNode as ue, toDisplayString as N, renderSlot as m, toRef as Le, mergeModels as H, useModel as X, createBlock as V, withCtx as k, renderList as ye, resolveDynamicComponent as Qe, h as Se, normalizeProps as ne, mergeProps as se, reactive as He, onBeforeUnmount as Ke, onMounted as Ae, nextTick as U, Teleport as Ge, Transition as We, withKeys as je, createSlots as _e, withDirectives as Pe, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
|
|
2
2
|
function ge(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -252,9 +252,9 @@ function B(t) {
|
|
|
252
252
|
return o(e, n);
|
|
253
253
|
const d = new Proxy(e, {
|
|
254
254
|
get(i, c) {
|
|
255
|
-
var
|
|
256
|
-
const q = Reflect.get(i, c),
|
|
257
|
-
return typeof c == "string" && !dt(r.vnode, c) ?
|
|
255
|
+
var _;
|
|
256
|
+
const q = Reflect.get(i, c), g = (_ = a.value) == null ? void 0 : _[c];
|
|
257
|
+
return typeof c == "string" && !dt(r.vnode, c) ? g ?? q : q;
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
return o(d, n);
|
|
@@ -375,7 +375,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
375
375
|
borderless: o.borderless,
|
|
376
376
|
elevated: o.elevated
|
|
377
377
|
}, {
|
|
378
|
-
default:
|
|
378
|
+
default: k(() => [
|
|
379
379
|
(u(!0), p(oe, null, ye(o.options, (d) => (u(), V(v(fe), {
|
|
380
380
|
key: d.key,
|
|
381
381
|
title: d.title,
|
|
@@ -383,7 +383,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
383
383
|
active: e.value === d.key,
|
|
384
384
|
onClick: () => n(d)
|
|
385
385
|
}, {
|
|
386
|
-
default:
|
|
386
|
+
default: k(() => [
|
|
387
387
|
m(a.$slots, d.key)
|
|
388
388
|
]),
|
|
389
389
|
_: 2
|
|
@@ -642,10 +642,10 @@ const qt = /* @__PURE__ */ S({
|
|
|
642
642
|
function q() {
|
|
643
643
|
a.value = !0;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function g() {
|
|
646
646
|
a.value = !1;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function _(f) {
|
|
649
649
|
var l;
|
|
650
650
|
if ((l = i.value) != null && l.contains(f.relatedTarget))
|
|
651
651
|
return;
|
|
@@ -744,18 +744,18 @@ const qt = /* @__PURE__ */ S({
|
|
|
744
744
|
class: E(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
745
745
|
role: "listbox",
|
|
746
746
|
tabindex: e.disabled ? -1 : 0,
|
|
747
|
-
onFocus:
|
|
747
|
+
onFocus: _,
|
|
748
748
|
onMousedown: q,
|
|
749
|
-
onMouseup:
|
|
749
|
+
onMouseup: g,
|
|
750
750
|
onKeydown: F
|
|
751
751
|
}, {
|
|
752
|
-
default:
|
|
752
|
+
default: k(() => [
|
|
753
753
|
(u(!0), p(oe, null, ye(d.value, ($) => (u(), V(v(Ft), {
|
|
754
754
|
key: $.id,
|
|
755
755
|
title: d.value.length === 1 ? void 0 : $.title,
|
|
756
756
|
disabled: $.disabled
|
|
757
757
|
}, {
|
|
758
|
-
default:
|
|
758
|
+
default: k(() => [
|
|
759
759
|
(u(!0), p(oe, null, ye(J($.id), (l) => (u(), V(v(At), {
|
|
760
760
|
key: l[e.itemValue],
|
|
761
761
|
value: l[e.itemValue],
|
|
@@ -766,7 +766,7 @@ const qt = /* @__PURE__ */ S({
|
|
|
766
766
|
selected: n.value === l[e.itemValue],
|
|
767
767
|
onSelect: c
|
|
768
768
|
}, {
|
|
769
|
-
default:
|
|
769
|
+
default: k(() => [
|
|
770
770
|
m(f.$slots, "item", { item: l })
|
|
771
771
|
]),
|
|
772
772
|
_: 2
|
|
@@ -859,24 +859,24 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
|
|
|
859
859
|
}), Oe = B(xt), At = B(Dt), Ft = B(Qt);
|
|
860
860
|
function Mt(t, o, e = "right", n) {
|
|
861
861
|
const a = t.getBoundingClientRect(), r = a.x + window.scrollX, d = a.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), c = (i == null ? void 0 : i.width) ?? 0, q = (i == null ? void 0 : i.height) ?? 0;
|
|
862
|
-
let
|
|
863
|
-
i && !Ue(a, i,
|
|
864
|
-
const
|
|
865
|
-
switch (
|
|
862
|
+
let g = e;
|
|
863
|
+
i && !Ue(a, i, g) && (g = Rt(a, i, g));
|
|
864
|
+
const _ = { x: 0, y: 0, placement: g };
|
|
865
|
+
switch (g) {
|
|
866
866
|
case "top":
|
|
867
|
-
n === "anchor" ?
|
|
867
|
+
n === "anchor" ? _.x = r : _.x = r + (a.width - c) / 2, _.y = d - q;
|
|
868
868
|
break;
|
|
869
869
|
case "bottom":
|
|
870
|
-
n === "anchor" ?
|
|
870
|
+
n === "anchor" ? _.x = r : _.x = r + (a.width - c) / 2, _.y = d + a.height;
|
|
871
871
|
break;
|
|
872
872
|
case "left":
|
|
873
|
-
|
|
873
|
+
_.x = r - c, _.y = d + a.height / 2 - q / 2;
|
|
874
874
|
break;
|
|
875
875
|
case "right":
|
|
876
|
-
|
|
876
|
+
_.x = r + a.width, _.y = d + a.height / 2 - q / 2;
|
|
877
877
|
break;
|
|
878
878
|
}
|
|
879
|
-
return n === "anchor" && a.width >= c && (
|
|
879
|
+
return n === "anchor" && a.width >= c && (_.width = a.width), _;
|
|
880
880
|
}
|
|
881
881
|
function Ue(t, o, e) {
|
|
882
882
|
let n = !1, a = !1;
|
|
@@ -981,7 +981,7 @@ const Ot = ["role"], Ut = {
|
|
|
981
981
|
};
|
|
982
982
|
return i.width !== void 0 && ["top", "bottom"].includes(i.placement) && (O.width = `${i.width}px`), O;
|
|
983
983
|
}), q = T(null);
|
|
984
|
-
function
|
|
984
|
+
function g() {
|
|
985
985
|
if (e.anchor) {
|
|
986
986
|
const l = ae(e.anchor);
|
|
987
987
|
if (l) {
|
|
@@ -995,8 +995,8 @@ const Ot = ["role"], Ut = {
|
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
P([a, () => e.placement],
|
|
999
|
-
let
|
|
998
|
+
P([a, () => e.placement], g);
|
|
999
|
+
let _;
|
|
1000
1000
|
function F() {
|
|
1001
1001
|
z(0);
|
|
1002
1002
|
}
|
|
@@ -1004,7 +1004,7 @@ const Ot = ["role"], Ut = {
|
|
|
1004
1004
|
z(e.delay);
|
|
1005
1005
|
}
|
|
1006
1006
|
function z(l) {
|
|
1007
|
-
|
|
1007
|
+
_ || (_ = window.setTimeout(() => {
|
|
1008
1008
|
a.value = !0, U(() => {
|
|
1009
1009
|
var h;
|
|
1010
1010
|
e.trigger === "click" && ((h = q.value) == null || h.focus());
|
|
@@ -1012,7 +1012,7 @@ const Ot = ["role"], Ut = {
|
|
|
1012
1012
|
}, l));
|
|
1013
1013
|
}
|
|
1014
1014
|
function L() {
|
|
1015
|
-
clearTimeout(
|
|
1015
|
+
clearTimeout(_), _ = void 0, a.value = !1, U(() => {
|
|
1016
1016
|
if (e.anchor && e.trigger === "click") {
|
|
1017
1017
|
const l = ae(e.anchor);
|
|
1018
1018
|
l == null || l.focus();
|
|
@@ -1048,12 +1048,12 @@ const Ot = ["role"], Ut = {
|
|
|
1048
1048
|
if (!e.anchor)
|
|
1049
1049
|
return;
|
|
1050
1050
|
const l = ae(e.anchor);
|
|
1051
|
-
l && (window.addEventListener("resize",
|
|
1051
|
+
l && (window.addEventListener("resize", g), C = new MutationObserver(g), C.observe(l, {
|
|
1052
1052
|
attributes: !1,
|
|
1053
1053
|
childList: !0,
|
|
1054
1054
|
characterData: !0,
|
|
1055
1055
|
subtree: !0
|
|
1056
|
-
}),
|
|
1056
|
+
}), g());
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
1059
|
function R() {
|
|
@@ -1071,13 +1071,13 @@ const Ot = ["role"], Ut = {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
function Z() {
|
|
1074
|
-
window.removeEventListener("resize",
|
|
1074
|
+
window.removeEventListener("resize", g), C == null || C.disconnect();
|
|
1075
1075
|
}
|
|
1076
1076
|
let J;
|
|
1077
1077
|
function f() {
|
|
1078
1078
|
if (!e.anchor)
|
|
1079
1079
|
return;
|
|
1080
|
-
ae(e.anchor) ? (
|
|
1080
|
+
ae(e.anchor) ? (g(), J = window.setTimeout(f, 100)) : L();
|
|
1081
1081
|
}
|
|
1082
1082
|
function y() {
|
|
1083
1083
|
W(), e.spy && f(), e.anchor && document.addEventListener("scroll", L);
|
|
@@ -1089,7 +1089,7 @@ const Ot = ["role"], Ut = {
|
|
|
1089
1089
|
R(), $();
|
|
1090
1090
|
}), Ae(() => {
|
|
1091
1091
|
U(() => {
|
|
1092
|
-
M(),
|
|
1092
|
+
M(), g();
|
|
1093
1093
|
});
|
|
1094
1094
|
}), P(
|
|
1095
1095
|
a,
|
|
@@ -1114,7 +1114,7 @@ const Ot = ["role"], Ut = {
|
|
|
1114
1114
|
onEnter: le,
|
|
1115
1115
|
onLeave: G
|
|
1116
1116
|
}, {
|
|
1117
|
-
default:
|
|
1117
|
+
default: k(() => [
|
|
1118
1118
|
a.value ? (u(), p("div", {
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
class: E(r.value),
|
|
@@ -1249,15 +1249,15 @@ const Ot = ["role"], Ut = {
|
|
|
1249
1249
|
disabled: e.disabled,
|
|
1250
1250
|
required: e.required
|
|
1251
1251
|
}, _e({
|
|
1252
|
-
"label.prepend":
|
|
1252
|
+
"label.prepend": k(() => [
|
|
1253
1253
|
m(c.$slots, "label.prepend")
|
|
1254
1254
|
]),
|
|
1255
|
-
"label.append":
|
|
1255
|
+
"label.append": k(() => [
|
|
1256
1256
|
m(c.$slots, "label.append")
|
|
1257
1257
|
]),
|
|
1258
|
-
default:
|
|
1258
|
+
default: k(() => [
|
|
1259
1259
|
Pe(Y("input", se({
|
|
1260
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
1260
|
+
"onUpdate:modelValue": q[0] || (q[0] = (g) => n.value = g),
|
|
1261
1261
|
ref_key: "inputRef",
|
|
1262
1262
|
ref: d,
|
|
1263
1263
|
id: v(a),
|
|
@@ -1277,21 +1277,21 @@ const Ot = ["role"], Ut = {
|
|
|
1277
1277
|
}, [
|
|
1278
1278
|
c.$slots.prepend ? {
|
|
1279
1279
|
name: "prepend",
|
|
1280
|
-
fn:
|
|
1280
|
+
fn: k(() => [
|
|
1281
1281
|
m(c.$slots, "prepend")
|
|
1282
1282
|
]),
|
|
1283
1283
|
key: "0"
|
|
1284
1284
|
} : void 0,
|
|
1285
1285
|
c.$slots.append ? {
|
|
1286
1286
|
name: "append",
|
|
1287
|
-
fn:
|
|
1287
|
+
fn: k(() => [
|
|
1288
1288
|
m(c.$slots, "append")
|
|
1289
1289
|
]),
|
|
1290
1290
|
key: "1"
|
|
1291
1291
|
} : void 0,
|
|
1292
1292
|
c.$slots.extras ? {
|
|
1293
1293
|
name: "extras",
|
|
1294
|
-
fn:
|
|
1294
|
+
fn: k(() => [
|
|
1295
1295
|
m(c.$slots, "extras")
|
|
1296
1296
|
]),
|
|
1297
1297
|
key: "2"
|
|
@@ -1347,7 +1347,7 @@ const Ot = ["role"], Ut = {
|
|
|
1347
1347
|
}),
|
|
1348
1348
|
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1349
1349
|
setup(t, { expose: o, emit: e }) {
|
|
1350
|
-
const n = t, a = e, r = X(t, "modelValue"), d = X(t, "open"), i = X(t, "search"), c = T(void 0), q = T(null),
|
|
1350
|
+
const n = t, a = e, r = X(t, "modelValue"), d = X(t, "open"), i = X(t, "search"), c = T(void 0), q = T(null), g = T(null), _ = T(null);
|
|
1351
1351
|
Ae(M);
|
|
1352
1352
|
const F = w(() => n.clearable && !n.readonly && !n.disabled), D = w(() => {
|
|
1353
1353
|
var s;
|
|
@@ -1365,7 +1365,7 @@ const Ot = ["role"], Ut = {
|
|
|
1365
1365
|
var b;
|
|
1366
1366
|
if (c.value === void 0)
|
|
1367
1367
|
return;
|
|
1368
|
-
const s = (b =
|
|
1368
|
+
const s = (b = g.value) == null ? void 0 : b.getItem(c.value);
|
|
1369
1369
|
return s == null ? void 0 : s.id;
|
|
1370
1370
|
}), G = w(() => {
|
|
1371
1371
|
var s;
|
|
@@ -1418,30 +1418,30 @@ const Ot = ["role"], Ut = {
|
|
|
1418
1418
|
return;
|
|
1419
1419
|
C(K.value[n.itemValue]);
|
|
1420
1420
|
} else
|
|
1421
|
-
s.key === "Home" ? c.value = (b =
|
|
1421
|
+
s.key === "Home" ? c.value = (b = g.value) == null ? void 0 : b.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (x = g.value) == null ? void 0 : x.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && W();
|
|
1422
1422
|
}
|
|
1423
1423
|
function $() {
|
|
1424
1424
|
var s, b;
|
|
1425
1425
|
if (L.value)
|
|
1426
|
-
c.value = (b =
|
|
1426
|
+
c.value = (b = g.value) == null ? void 0 : b.getFirstFocusableItemIndex();
|
|
1427
1427
|
else {
|
|
1428
1428
|
const x = D.value.findIndex(
|
|
1429
1429
|
(Q) => Q[n.itemValue] === r.value
|
|
1430
1430
|
);
|
|
1431
|
-
x === -1 ? c.value = (s =
|
|
1431
|
+
x === -1 ? c.value = (s = g.value) == null ? void 0 : s.getFirstFocusableItemIndex() : c.value = x;
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
function l() {
|
|
1435
1435
|
var s;
|
|
1436
|
-
c.value = (s =
|
|
1436
|
+
c.value = (s = g.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1437
1437
|
}
|
|
1438
1438
|
function h(s, b) {
|
|
1439
1439
|
var x;
|
|
1440
|
-
c.value = (x =
|
|
1440
|
+
c.value = (x = g.value) == null ? void 0 : x.getAdjacentItemIndex(s, b);
|
|
1441
1441
|
}
|
|
1442
1442
|
function O(s) {
|
|
1443
1443
|
var b, x, Q;
|
|
1444
|
-
!((b =
|
|
1444
|
+
!((b = _.value) != null && b.contains(s.relatedTarget)) && !((Q = (x = q.value) == null ? void 0 : x.fieldRef) != null && Q.contains(s.relatedTarget)) ? (R(), F.value && !i.value && (r.value = n.emptyValue), M()) : (s.preventDefault(), s.stopPropagation());
|
|
1445
1445
|
}
|
|
1446
1446
|
function ee() {
|
|
1447
1447
|
var s, b;
|
|
@@ -1458,8 +1458,8 @@ const Ot = ["role"], Ut = {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
function Ie(s) {
|
|
1460
1460
|
var x;
|
|
1461
|
-
const b = (x =
|
|
1462
|
-
b == null
|
|
1461
|
+
const b = (x = g.value) == null ? void 0 : x.getItem(s);
|
|
1462
|
+
g.value && (g.value.$el.scrollTop = b == null ? void 0 : b.offsetTop);
|
|
1463
1463
|
}
|
|
1464
1464
|
return P(r, M), P(
|
|
1465
1465
|
() => n.items,
|
|
@@ -1516,13 +1516,13 @@ const Ot = ["role"], Ut = {
|
|
|
1516
1516
|
onFocusout: O,
|
|
1517
1517
|
onKeydown: de(y, ["stop"])
|
|
1518
1518
|
}, _e({
|
|
1519
|
-
"label.prepend":
|
|
1519
|
+
"label.prepend": k(() => [
|
|
1520
1520
|
m(s.$slots, "label.prepend")
|
|
1521
1521
|
]),
|
|
1522
|
-
"label.append":
|
|
1522
|
+
"label.append": k(() => [
|
|
1523
1523
|
m(s.$slots, "label.append")
|
|
1524
1524
|
]),
|
|
1525
|
-
append:
|
|
1525
|
+
append: k(() => [
|
|
1526
1526
|
m(s.$slots, "append"),
|
|
1527
1527
|
F.value && i.value ? (u(), V(v(fe), {
|
|
1528
1528
|
key: 0,
|
|
@@ -1532,7 +1532,7 @@ const Ot = ["role"], Ut = {
|
|
|
1532
1532
|
tabindex: "-1",
|
|
1533
1533
|
onClick: J
|
|
1534
1534
|
}, {
|
|
1535
|
-
default:
|
|
1535
|
+
default: k(() => [
|
|
1536
1536
|
A(v(te), ne(ie(n.icons.clear)), null, 16)
|
|
1537
1537
|
]),
|
|
1538
1538
|
_: 1
|
|
@@ -1546,7 +1546,7 @@ const Ot = ["role"], Ut = {
|
|
|
1546
1546
|
disabled: n.disabled,
|
|
1547
1547
|
onClick: Z
|
|
1548
1548
|
}, {
|
|
1549
|
-
default:
|
|
1549
|
+
default: k(() => [
|
|
1550
1550
|
A(v(te), ne(ie(n.icons.chevron)), null, 16)
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 1
|
|
@@ -1556,14 +1556,14 @@ const Ot = ["role"], Ut = {
|
|
|
1556
1556
|
}, [
|
|
1557
1557
|
s.$slots.prepend ? {
|
|
1558
1558
|
name: "prepend",
|
|
1559
|
-
fn:
|
|
1559
|
+
fn: k(() => [
|
|
1560
1560
|
m(s.$slots, "prepend")
|
|
1561
1561
|
]),
|
|
1562
1562
|
key: "0"
|
|
1563
1563
|
} : void 0,
|
|
1564
1564
|
s.$slots.extras ? {
|
|
1565
1565
|
name: "extras",
|
|
1566
|
-
fn:
|
|
1566
|
+
fn: k(() => [
|
|
1567
1567
|
m(s.$slots, "extras")
|
|
1568
1568
|
]),
|
|
1569
1569
|
key: "1"
|
|
@@ -1581,12 +1581,12 @@ const Ot = ["role"], Ut = {
|
|
|
1581
1581
|
onEnter: ve,
|
|
1582
1582
|
onLeave: Ne
|
|
1583
1583
|
}, {
|
|
1584
|
-
default:
|
|
1584
|
+
default: k(() => {
|
|
1585
1585
|
var Q;
|
|
1586
1586
|
return [
|
|
1587
1587
|
Y("div", {
|
|
1588
1588
|
ref_key: "contentRef",
|
|
1589
|
-
ref:
|
|
1589
|
+
ref: _,
|
|
1590
1590
|
"data-testid": "combobox-dropdown",
|
|
1591
1591
|
"data-key": n.id,
|
|
1592
1592
|
class: "q-select__body",
|
|
@@ -1598,7 +1598,7 @@ const Ot = ["role"], Ut = {
|
|
|
1598
1598
|
])) : D.value.length ? (u(), V(v(Oe), {
|
|
1599
1599
|
key: 1,
|
|
1600
1600
|
ref_key: "listRef",
|
|
1601
|
-
ref:
|
|
1601
|
+
ref: g,
|
|
1602
1602
|
class: "q-select__items",
|
|
1603
1603
|
modelValue: r.value,
|
|
1604
1604
|
"onUpdate:modelValue": [
|
|
@@ -1612,7 +1612,7 @@ const Ot = ["role"], Ut = {
|
|
|
1612
1612
|
"item-value": n.itemValue,
|
|
1613
1613
|
onMouseup: j
|
|
1614
1614
|
}, {
|
|
1615
|
-
item:
|
|
1615
|
+
item: k(({ item: be }) => [
|
|
1616
1616
|
m(s.$slots, "item", { item: be })
|
|
1617
1617
|
]),
|
|
1618
1618
|
_: 3
|
|
@@ -1656,7 +1656,7 @@ const Ot = ["role"], Ut = {
|
|
|
1656
1656
|
required: o.required,
|
|
1657
1657
|
size: o.size
|
|
1658
1658
|
}, {
|
|
1659
|
-
default:
|
|
1659
|
+
default: k(() => [
|
|
1660
1660
|
e.$slots.prepend || o.prependIcon ? (u(), p("div", so, [
|
|
1661
1661
|
o.prependIcon ? (u(), p("span", io, [
|
|
1662
1662
|
A(v(te), ne(ie(o.prependIcon)), null, 16)
|
|
@@ -1720,7 +1720,7 @@ const Ot = ["role"], Ut = {
|
|
|
1720
1720
|
disabled: o.disabled,
|
|
1721
1721
|
placement: o.placement
|
|
1722
1722
|
}, {
|
|
1723
|
-
default:
|
|
1723
|
+
default: k(() => [
|
|
1724
1724
|
o.title || n.$slots.header ? (u(), p("h3", po, [
|
|
1725
1725
|
ue(N(o.title) + " ", 1),
|
|
1726
1726
|
m(n.$slots, "header")
|
|
@@ -1781,13 +1781,13 @@ const Ot = ["role"], Ut = {
|
|
|
1781
1781
|
}),
|
|
1782
1782
|
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1783
1783
|
setup(t, { emit: o }) {
|
|
1784
|
-
const e = t, n = o, a = X(t, "modelValue"), r = T(!1), d = T(""), i = T(null), c = T(null), q = T(null),
|
|
1784
|
+
const e = t, n = o, a = X(t, "modelValue"), r = T(!1), d = T(""), i = T(null), c = T(null), q = T(null), g = w(() => _.value === void 0), _ = w(
|
|
1785
1785
|
() => {
|
|
1786
1786
|
var l;
|
|
1787
1787
|
return (l = e.items) == null ? void 0 : l.find((h) => h[e.itemValue] === a.value);
|
|
1788
1788
|
}
|
|
1789
1789
|
), F = w(
|
|
1790
|
-
() =>
|
|
1790
|
+
() => _.value ? _.value[e.itemLabel] : ""
|
|
1791
1791
|
), D = w(
|
|
1792
1792
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1793
1793
|
);
|
|
@@ -1882,7 +1882,7 @@ const Ot = ["role"], Ut = {
|
|
|
1882
1882
|
onClick: K,
|
|
1883
1883
|
onKeydown: de(R, ["stop"])
|
|
1884
1884
|
}, _e({
|
|
1885
|
-
append:
|
|
1885
|
+
append: k(() => [
|
|
1886
1886
|
m(l.$slots, "append"),
|
|
1887
1887
|
D.value && a.value ? (u(), V(v(fe), {
|
|
1888
1888
|
key: 0,
|
|
@@ -1892,7 +1892,7 @@ const Ot = ["role"], Ut = {
|
|
|
1892
1892
|
tabindex: "-1",
|
|
1893
1893
|
onClick: L
|
|
1894
1894
|
}, {
|
|
1895
|
-
default:
|
|
1895
|
+
default: k(() => [
|
|
1896
1896
|
A(v(te), ne(ie(e.icons.clear)), null, 16)
|
|
1897
1897
|
]),
|
|
1898
1898
|
_: 1
|
|
@@ -1906,14 +1906,14 @@ const Ot = ["role"], Ut = {
|
|
|
1906
1906
|
disabled: e.disabled,
|
|
1907
1907
|
onClick: M
|
|
1908
1908
|
}, {
|
|
1909
|
-
default:
|
|
1909
|
+
default: k(() => [
|
|
1910
1910
|
A(v(te), ne(ie(e.icons.chevron)), null, 16)
|
|
1911
1911
|
]),
|
|
1912
1912
|
_: 1
|
|
1913
1913
|
}, 8, ["disabled"]))
|
|
1914
1914
|
]),
|
|
1915
|
-
default:
|
|
1916
|
-
|
|
1915
|
+
default: k(() => [
|
|
1916
|
+
g.value ? (u(), p("span", go, [
|
|
1917
1917
|
!e.readonly && !e.disabled ? (u(), p(oe, { key: 0 }, [
|
|
1918
1918
|
ue(N(l.texts.placeholder), 1)
|
|
1919
1919
|
], 64)) : I("", !0)
|
|
@@ -1921,20 +1921,20 @@ const Ot = ["role"], Ut = {
|
|
|
1921
1921
|
]),
|
|
1922
1922
|
_: 2
|
|
1923
1923
|
}, [
|
|
1924
|
-
(O =
|
|
1924
|
+
(O = _.value) != null && O.icon || l.$slots.prepend ? {
|
|
1925
1925
|
name: "prepend",
|
|
1926
|
-
fn:
|
|
1926
|
+
fn: k(() => {
|
|
1927
1927
|
var j, ve;
|
|
1928
1928
|
return [
|
|
1929
1929
|
m(l.$slots, "prepend"),
|
|
1930
|
-
(j =
|
|
1930
|
+
(j = _.value) != null && j.icon ? (u(), V(v(te), ne(se({ key: 0 }, (ve = _.value) == null ? void 0 : ve.icon)), null, 16)) : I("", !0)
|
|
1931
1931
|
];
|
|
1932
1932
|
}),
|
|
1933
1933
|
key: "0"
|
|
1934
1934
|
} : void 0,
|
|
1935
1935
|
l.$slots.extras ? {
|
|
1936
1936
|
name: "extras",
|
|
1937
|
-
fn:
|
|
1937
|
+
fn: k(() => [
|
|
1938
1938
|
m(l.$slots, "extras")
|
|
1939
1939
|
]),
|
|
1940
1940
|
key: "1"
|
|
@@ -1952,7 +1952,7 @@ const Ot = ["role"], Ut = {
|
|
|
1952
1952
|
onEnter: Z,
|
|
1953
1953
|
onLeave: J
|
|
1954
1954
|
}, {
|
|
1955
|
-
default:
|
|
1955
|
+
default: k(() => [
|
|
1956
1956
|
Y("div", {
|
|
1957
1957
|
ref_key: "contentRef",
|
|
1958
1958
|
ref: q,
|
|
@@ -1981,7 +1981,7 @@ const Ot = ["role"], Ut = {
|
|
|
1981
1981
|
"item-label": e.itemLabel,
|
|
1982
1982
|
"item-value": e.itemValue
|
|
1983
1983
|
}, {
|
|
1984
|
-
item:
|
|
1984
|
+
item: k(({ item: j }) => [
|
|
1985
1985
|
m(l.$slots, "item", { item: j })
|
|
1986
1986
|
]),
|
|
1987
1987
|
_: 3
|
|
@@ -2047,7 +2047,7 @@ const Ot = ["role"], Ut = {
|
|
|
2047
2047
|
placement: o.placement,
|
|
2048
2048
|
trigger: o.trigger
|
|
2049
2049
|
}, {
|
|
2050
|
-
default:
|
|
2050
|
+
default: k(() => [
|
|
2051
2051
|
o.html ? (u(), p("span", {
|
|
2052
2052
|
key: 0,
|
|
2053
2053
|
innerHTML: o.text
|