quail-ui 0.2.50 → 0.2.51
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.js +264 -260
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as i, createElementVNode as o, createStaticVNode as W, defineComponent as
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createElementVNode as o, createStaticVNode as W, defineComponent as P, ref as b, watch as e1, onMounted as a1, withDirectives as n1, vModelText as c1, computed as V, nextTick as q1, Fragment as p1, renderSlot as r1, createBlock as A, Transition as v1, withCtx as C1, normalizeClass as O, normalizeStyle as l1, withModifiers as $1, createCommentVNode as j, toDisplayString as U, getCurrentInstance as B1, unref as h1, resolveDynamicComponent as f1, renderList as L1, resolveComponent as z, vModelCheckbox as j1, useSlots as Z1, createVNode as Y, pushScopeId as D1, popScopeId as A1 } from "vue";
|
|
2
2
|
const r = (e, t) => {
|
|
3
3
|
const s = e.__vccOpts || e;
|
|
4
4
|
for (const [a, d] of t)
|
|
@@ -155,7 +155,7 @@ const x2 = /* @__PURE__ */ r(v2, [["render", M2]]), y2 = {}, L2 = {
|
|
|
155
155
|
function b2(e, t) {
|
|
156
156
|
return n(), i("svg", L2, H2);
|
|
157
157
|
}
|
|
158
|
-
const Q2 = /* @__PURE__ */ r(y2, [["render", b2]]),
|
|
158
|
+
const Q2 = /* @__PURE__ */ r(y2, [["render", b2]]), I2 = {}, S2 = {
|
|
159
159
|
width: "24",
|
|
160
160
|
height: "24",
|
|
161
161
|
viewBox: "0 0 24 24",
|
|
@@ -171,9 +171,9 @@ const Q2 = /* @__PURE__ */ r(y2, [["render", b2]]), S2 = {}, I2 = {
|
|
|
171
171
|
q2
|
|
172
172
|
];
|
|
173
173
|
function j2(e, t) {
|
|
174
|
-
return n(), i("svg",
|
|
174
|
+
return n(), i("svg", S2, B2);
|
|
175
175
|
}
|
|
176
|
-
const Z2 = /* @__PURE__ */ r(
|
|
176
|
+
const Z2 = /* @__PURE__ */ r(I2, [["render", j2]]), D2 = {}, A2 = {
|
|
177
177
|
width: "24",
|
|
178
178
|
height: "24",
|
|
179
179
|
viewBox: "0 0 24 24",
|
|
@@ -310,7 +310,7 @@ const xe = /* @__PURE__ */ r(ve, [["render", Me]]), ye = {}, Le = {
|
|
|
310
310
|
function be(e, t) {
|
|
311
311
|
return n(), i("svg", Le, He);
|
|
312
312
|
}
|
|
313
|
-
const Qe = /* @__PURE__ */ r(ye, [["render", be]]),
|
|
313
|
+
const Qe = /* @__PURE__ */ r(ye, [["render", be]]), Ie = {}, Se = {
|
|
314
314
|
width: "24",
|
|
315
315
|
height: "24",
|
|
316
316
|
viewBox: "0 0 24 24",
|
|
@@ -326,9 +326,9 @@ const Qe = /* @__PURE__ */ r(ye, [["render", be]]), Se = {}, Ie = {
|
|
|
326
326
|
qe
|
|
327
327
|
];
|
|
328
328
|
function je(e, t) {
|
|
329
|
-
return n(), i("svg",
|
|
329
|
+
return n(), i("svg", Se, Be);
|
|
330
330
|
}
|
|
331
|
-
const Ze = /* @__PURE__ */ r(
|
|
331
|
+
const Ze = /* @__PURE__ */ r(Ie, [["render", je]]), De = {}, Ae = {
|
|
332
332
|
width: "24",
|
|
333
333
|
height: "24",
|
|
334
334
|
viewBox: "0 0 24 24",
|
|
@@ -472,23 +472,23 @@ const Mt = /* @__PURE__ */ r(gt, [["render", kt]]), xt = {}, yt = {
|
|
|
472
472
|
function Ht(e, t) {
|
|
473
473
|
return n(), i("svg", yt, Vt);
|
|
474
474
|
}
|
|
475
|
-
const bt = /* @__PURE__ */ r(xt, [["render", Ht]]), Qt = {},
|
|
475
|
+
const bt = /* @__PURE__ */ r(xt, [["render", Ht]]), Qt = {}, It = {
|
|
476
476
|
width: "24",
|
|
477
477
|
height: "24",
|
|
478
478
|
viewBox: "0 0 24 24",
|
|
479
479
|
fill: "none",
|
|
480
480
|
xmlns: "http://www.w3.org/2000/svg"
|
|
481
|
-
},
|
|
481
|
+
}, St = /* @__PURE__ */ o("path", {
|
|
482
482
|
d: "M3 12H21M3 6H21M3 18H15",
|
|
483
483
|
stroke: "currentColor",
|
|
484
484
|
"stroke-width": "2",
|
|
485
485
|
"stroke-linecap": "round",
|
|
486
486
|
"stroke-linejoin": "round"
|
|
487
487
|
}, null, -1), qt = [
|
|
488
|
-
|
|
488
|
+
St
|
|
489
489
|
];
|
|
490
490
|
function Bt(e, t) {
|
|
491
|
-
return n(), i("svg",
|
|
491
|
+
return n(), i("svg", It, qt);
|
|
492
492
|
}
|
|
493
493
|
const jt = /* @__PURE__ */ r(Qt, [["render", Bt]]), Zt = {}, Dt = {
|
|
494
494
|
width: "24",
|
|
@@ -646,7 +646,7 @@ const y4 = /* @__PURE__ */ r($4, [["render", x4]]), L4 = {}, V4 = {
|
|
|
646
646
|
function Q4(e, t) {
|
|
647
647
|
return n(), i("svg", V4, b4);
|
|
648
648
|
}
|
|
649
|
-
const
|
|
649
|
+
const I4 = /* @__PURE__ */ r(L4, [["render", Q4]]), S4 = {}, q4 = {
|
|
650
650
|
width: "24",
|
|
651
651
|
height: "24",
|
|
652
652
|
viewBox: "0 0 24 24",
|
|
@@ -664,7 +664,7 @@ const S4 = /* @__PURE__ */ r(L4, [["render", Q4]]), I4 = {}, q4 = {
|
|
|
664
664
|
function Z4(e, t) {
|
|
665
665
|
return n(), i("svg", q4, j4);
|
|
666
666
|
}
|
|
667
|
-
const D4 = /* @__PURE__ */ r(
|
|
667
|
+
const D4 = /* @__PURE__ */ r(S4, [["render", Z4]]), A4 = {}, O4 = {
|
|
668
668
|
width: "24",
|
|
669
669
|
height: "24",
|
|
670
670
|
viewBox: "0 0 24 24",
|
|
@@ -796,10 +796,10 @@ const Ln = /* @__PURE__ */ r(mn, [["render", yn]]), Vn = {}, Hn = {
|
|
|
796
796
|
}, null, -1), Qn = [
|
|
797
797
|
bn
|
|
798
798
|
];
|
|
799
|
-
function
|
|
799
|
+
function In(e, t) {
|
|
800
800
|
return n(), i("svg", Hn, Qn);
|
|
801
801
|
}
|
|
802
|
-
const
|
|
802
|
+
const Sn = /* @__PURE__ */ r(Vn, [["render", In]]), qn = {}, Bn = {
|
|
803
803
|
width: "24",
|
|
804
804
|
height: "24",
|
|
805
805
|
viewBox: "0 0 24 24",
|
|
@@ -952,23 +952,23 @@ const M0 = /* @__PURE__ */ r(g0, [["render", k0]]), x0 = {}, y0 = {
|
|
|
952
952
|
function H0(e, t) {
|
|
953
953
|
return n(), i("svg", y0, V0);
|
|
954
954
|
}
|
|
955
|
-
const b0 = /* @__PURE__ */ r(x0, [["render", H0]]), Q0 = {},
|
|
955
|
+
const b0 = /* @__PURE__ */ r(x0, [["render", H0]]), Q0 = {}, I0 = {
|
|
956
956
|
width: "24",
|
|
957
957
|
height: "24",
|
|
958
958
|
viewBox: "0 0 24 24",
|
|
959
959
|
fill: "none",
|
|
960
960
|
xmlns: "http://www.w3.org/2000/svg"
|
|
961
|
-
},
|
|
961
|
+
}, S0 = /* @__PURE__ */ o("path", {
|
|
962
962
|
d: "M9 11L11 13L15.5 8.5M11.9932 5.13581C9.9938 2.7984 6.65975 2.16964 4.15469 4.31001C1.64964 6.45038 1.29697 10.029 3.2642 12.5604C4.75009 14.4724 8.97129 18.311 10.948 20.0749C11.3114 20.3991 11.4931 20.5613 11.7058 20.6251C11.8905 20.6805 12.0958 20.6805 12.2805 20.6251C12.4932 20.5613 12.6749 20.3991 13.0383 20.0749C15.015 18.311 19.2362 14.4724 20.7221 12.5604C22.6893 10.029 22.3797 6.42787 19.8316 4.31001C17.2835 2.19216 13.9925 2.7984 11.9932 5.13581Z",
|
|
963
963
|
stroke: "currentColor",
|
|
964
964
|
"stroke-width": "2",
|
|
965
965
|
"stroke-linecap": "round",
|
|
966
966
|
"stroke-linejoin": "round"
|
|
967
967
|
}, null, -1), q0 = [
|
|
968
|
-
|
|
968
|
+
S0
|
|
969
969
|
];
|
|
970
970
|
function B0(e, t) {
|
|
971
|
-
return n(), i("svg",
|
|
971
|
+
return n(), i("svg", I0, q0);
|
|
972
972
|
}
|
|
973
973
|
const j0 = /* @__PURE__ */ r(Q0, [["render", B0]]), Z0 = {}, D0 = {
|
|
974
974
|
width: "24",
|
|
@@ -1121,7 +1121,7 @@ const x5 = /* @__PURE__ */ r(v5, [["render", M5]]), y5 = {}, L5 = {
|
|
|
1121
1121
|
function b5(e, t) {
|
|
1122
1122
|
return n(), i("svg", L5, H5);
|
|
1123
1123
|
}
|
|
1124
|
-
const Q5 = /* @__PURE__ */ r(y5, [["render", b5]]),
|
|
1124
|
+
const Q5 = /* @__PURE__ */ r(y5, [["render", b5]]), I5 = {}, S5 = {
|
|
1125
1125
|
width: "24",
|
|
1126
1126
|
height: "24",
|
|
1127
1127
|
viewBox: "0 0 24 24",
|
|
@@ -1137,9 +1137,9 @@ const Q5 = /* @__PURE__ */ r(y5, [["render", b5]]), S5 = {}, I5 = {
|
|
|
1137
1137
|
q5
|
|
1138
1138
|
];
|
|
1139
1139
|
function j5(e, t) {
|
|
1140
|
-
return n(), i("svg",
|
|
1140
|
+
return n(), i("svg", S5, B5);
|
|
1141
1141
|
}
|
|
1142
|
-
const Z5 = /* @__PURE__ */ r(
|
|
1142
|
+
const Z5 = /* @__PURE__ */ r(I5, [["render", j5]]), D5 = {}, A5 = {
|
|
1143
1143
|
width: "24",
|
|
1144
1144
|
height: "24",
|
|
1145
1145
|
viewBox: "0 0 24 24",
|
|
@@ -1283,7 +1283,7 @@ const x9 = /* @__PURE__ */ r(v9, [["render", M9]]), y9 = {}, L9 = {
|
|
|
1283
1283
|
function b9(e, t) {
|
|
1284
1284
|
return n(), i("svg", L9, H9);
|
|
1285
1285
|
}
|
|
1286
|
-
const Q9 = /* @__PURE__ */ r(y9, [["render", b9]]),
|
|
1286
|
+
const Q9 = /* @__PURE__ */ r(y9, [["render", b9]]), I9 = {}, S9 = {
|
|
1287
1287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1288
1288
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1289
1289
|
"aria-hidden": "true",
|
|
@@ -1296,9 +1296,9 @@ const Q9 = /* @__PURE__ */ r(y9, [["render", b9]]), S9 = {}, I9 = {
|
|
|
1296
1296
|
q9
|
|
1297
1297
|
];
|
|
1298
1298
|
function j9(e, t) {
|
|
1299
|
-
return n(), i("svg",
|
|
1299
|
+
return n(), i("svg", S9, B9);
|
|
1300
1300
|
}
|
|
1301
|
-
const x1 = /* @__PURE__ */ r(
|
|
1301
|
+
const x1 = /* @__PURE__ */ r(I9, [["render", j9]]), Z9 = {}, D9 = {
|
|
1302
1302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1303
1303
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1304
1304
|
"aria-hidden": "true",
|
|
@@ -1421,7 +1421,7 @@ const k7 = /* @__PURE__ */ r(w7, [["render", m7]]), M7 = /* @__PURE__ */ Object.
|
|
|
1421
1421
|
QIconDollarCircle: Cn,
|
|
1422
1422
|
QIconDownloadCloud: ge,
|
|
1423
1423
|
QIconEcosystem: xe,
|
|
1424
|
-
QIconExpand:
|
|
1424
|
+
QIconExpand: Sn,
|
|
1425
1425
|
QIconFaceFrown: Qe,
|
|
1426
1426
|
QIconFaceHappy: T5,
|
|
1427
1427
|
QIconFeather: Ze,
|
|
@@ -1459,7 +1459,7 @@ const k7 = /* @__PURE__ */ r(w7, [["render", m7]]), M7 = /* @__PURE__ */ Object.
|
|
|
1459
1459
|
QIconStrikeThrough: w0,
|
|
1460
1460
|
QIconSun: y4,
|
|
1461
1461
|
QIconTelegram: x1,
|
|
1462
|
-
QIconTooling:
|
|
1462
|
+
QIconTooling: I4,
|
|
1463
1463
|
QIconTrash: D4,
|
|
1464
1464
|
QIconUnorderedList: M0,
|
|
1465
1465
|
QIconUnsplash: U4,
|
|
@@ -1477,7 +1477,7 @@ var Q1 = { exports: {} };
|
|
|
1477
1477
|
(function(s, a) {
|
|
1478
1478
|
e.exports = a();
|
|
1479
1479
|
})(x7, function() {
|
|
1480
|
-
var s = 1e3, a = 6e4, d = 36e5,
|
|
1480
|
+
var s = 1e3, a = 6e4, d = 36e5, p = "millisecond", c = "second", C = "minute", f = "hour", k = "day", M = "week", g = "month", x = "quarter", Q = "year", Z = "date", E = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
1481
1481
|
var _ = ["th", "st", "nd", "rd"], l = v % 100;
|
|
1482
1482
|
return "[" + v + (_[(l - 20) % 10] || _[l] || _[0]) + "]";
|
|
1483
1483
|
} }, G = function(v, _, l) {
|
|
@@ -1494,7 +1494,7 @@ var Q1 = { exports: {} };
|
|
|
1494
1494
|
}, a: function(v) {
|
|
1495
1495
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
1496
1496
|
}, p: function(v) {
|
|
1497
|
-
return { M: g, y:
|
|
1497
|
+
return { M: g, y: Q, w: M, d: k, D: Z, h: f, m: C, s: c, ms: p, Q: x }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
1498
1498
|
}, u: function(v) {
|
|
1499
1499
|
return v === void 0;
|
|
1500
1500
|
} }, N = "en", J = {};
|
|
@@ -1516,14 +1516,14 @@ var Q1 = { exports: {} };
|
|
|
1516
1516
|
J[L] = _, u = L;
|
|
1517
1517
|
}
|
|
1518
1518
|
return !h && u && (N = u), u || !h && N;
|
|
1519
|
-
},
|
|
1519
|
+
}, S = function(v, _) {
|
|
1520
1520
|
if (w1(v))
|
|
1521
1521
|
return v.clone();
|
|
1522
1522
|
var l = typeof _ == "object" ? _ : {};
|
|
1523
1523
|
return l.date = v, l.args = arguments, new u1(l);
|
|
1524
1524
|
}, y = o1;
|
|
1525
1525
|
y.l = d1, y.i = w1, y.w = function(v, _) {
|
|
1526
|
-
return
|
|
1526
|
+
return S(v, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
1527
1527
|
};
|
|
1528
1528
|
var u1 = function() {
|
|
1529
1529
|
function v(l) {
|
|
@@ -1540,7 +1540,7 @@ var Q1 = { exports: {} };
|
|
|
1540
1540
|
if (u instanceof Date)
|
|
1541
1541
|
return new Date(u);
|
|
1542
1542
|
if (typeof u == "string" && !/Z$/i.test(u)) {
|
|
1543
|
-
var m = u.match(
|
|
1543
|
+
var m = u.match(w);
|
|
1544
1544
|
if (m) {
|
|
1545
1545
|
var L = m[2] - 1 || 0, H = (m[7] || "0").substring(0, 3);
|
|
1546
1546
|
return $ ? new Date(Date.UTC(m[1], L, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, H)) : new Date(m[1], L, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, H);
|
|
@@ -1556,12 +1556,12 @@ var Q1 = { exports: {} };
|
|
|
1556
1556
|
}, _.isValid = function() {
|
|
1557
1557
|
return this.$d.toString() !== E;
|
|
1558
1558
|
}, _.isSame = function(l, h) {
|
|
1559
|
-
var u =
|
|
1559
|
+
var u = S(l);
|
|
1560
1560
|
return this.startOf(h) <= u && u <= this.endOf(h);
|
|
1561
1561
|
}, _.isAfter = function(l, h) {
|
|
1562
|
-
return
|
|
1562
|
+
return S(l) < this.startOf(h);
|
|
1563
1563
|
}, _.isBefore = function(l, h) {
|
|
1564
|
-
return this.endOf(h) <
|
|
1564
|
+
return this.endOf(h) < S(l);
|
|
1565
1565
|
}, _.$g = function(l, h, u) {
|
|
1566
1566
|
return y.u(l) ? this[h] : this.set(u, l);
|
|
1567
1567
|
}, _.unix = function() {
|
|
@@ -1569,22 +1569,22 @@ var Q1 = { exports: {} };
|
|
|
1569
1569
|
}, _.valueOf = function() {
|
|
1570
1570
|
return this.$d.getTime();
|
|
1571
1571
|
}, _.startOf = function(l, h) {
|
|
1572
|
-
var u = this, $ = !!y.u(h) || h, m = y.p(l), L = function(K,
|
|
1573
|
-
var R = y.w(u.$u ? Date.UTC(u.$y,
|
|
1574
|
-
return $ ? R : R.endOf(
|
|
1575
|
-
}, H = function(K,
|
|
1576
|
-
return y.w(u.toDate()[K].apply(u.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
1572
|
+
var u = this, $ = !!y.u(h) || h, m = y.p(l), L = function(K, D) {
|
|
1573
|
+
var R = y.w(u.$u ? Date.UTC(u.$y, D, K) : new Date(u.$y, D, K), u);
|
|
1574
|
+
return $ ? R : R.endOf(k);
|
|
1575
|
+
}, H = function(K, D) {
|
|
1576
|
+
return y.w(u.toDate()[K].apply(u.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), u);
|
|
1577
1577
|
}, q = this.$W, B = this.$M, T = this.$D, t1 = "set" + (this.$u ? "UTC" : "");
|
|
1578
1578
|
switch (m) {
|
|
1579
|
-
case
|
|
1579
|
+
case Q:
|
|
1580
1580
|
return $ ? L(1, 0) : L(31, 11);
|
|
1581
1581
|
case g:
|
|
1582
1582
|
return $ ? L(1, B) : L(0, B + 1);
|
|
1583
|
-
case
|
|
1583
|
+
case M:
|
|
1584
1584
|
var X = this.$locale().weekStart || 0, s1 = (q < X ? q + 7 : q) - X;
|
|
1585
1585
|
return L($ ? T - s1 : T + (6 - s1), B);
|
|
1586
|
-
case
|
|
1587
|
-
case
|
|
1586
|
+
case k:
|
|
1587
|
+
case Z:
|
|
1588
1588
|
return H(t1 + "Hours", 0);
|
|
1589
1589
|
case f:
|
|
1590
1590
|
return H(t1 + "Minutes", 1);
|
|
@@ -1598,10 +1598,10 @@ var Q1 = { exports: {} };
|
|
|
1598
1598
|
}, _.endOf = function(l) {
|
|
1599
1599
|
return this.startOf(l, !1);
|
|
1600
1600
|
}, _.$set = function(l, h) {
|
|
1601
|
-
var u, $ = y.p(l), m = "set" + (this.$u ? "UTC" : ""), L = (u = {}, u[
|
|
1602
|
-
if ($ === g || $ ===
|
|
1603
|
-
var q = this.clone().set(
|
|
1604
|
-
q.$d[L](H), q.init(), this.$d = q.set(
|
|
1601
|
+
var u, $ = y.p(l), m = "set" + (this.$u ? "UTC" : ""), L = (u = {}, u[k] = m + "Date", u[Z] = m + "Date", u[g] = m + "Month", u[Q] = m + "FullYear", u[f] = m + "Hours", u[C] = m + "Minutes", u[c] = m + "Seconds", u[p] = m + "Milliseconds", u)[$], H = $ === k ? this.$D + (h - this.$W) : h;
|
|
1602
|
+
if ($ === g || $ === Q) {
|
|
1603
|
+
var q = this.clone().set(Z, 1);
|
|
1604
|
+
q.$d[L](H), q.init(), this.$d = q.set(Z, Math.min(this.$D, q.daysInMonth())).$d;
|
|
1605
1605
|
} else
|
|
1606
1606
|
L && this.$d[L](H);
|
|
1607
1607
|
return this.init(), this;
|
|
@@ -1613,16 +1613,16 @@ var Q1 = { exports: {} };
|
|
|
1613
1613
|
var u, $ = this;
|
|
1614
1614
|
l = Number(l);
|
|
1615
1615
|
var m = y.p(h), L = function(B) {
|
|
1616
|
-
var T =
|
|
1616
|
+
var T = S($);
|
|
1617
1617
|
return y.w(T.date(T.date() + Math.round(B * l)), $);
|
|
1618
1618
|
};
|
|
1619
1619
|
if (m === g)
|
|
1620
1620
|
return this.set(g, this.$M + l);
|
|
1621
|
-
if (m ===
|
|
1622
|
-
return this.set(
|
|
1623
|
-
if (m === M)
|
|
1624
|
-
return L(1);
|
|
1621
|
+
if (m === Q)
|
|
1622
|
+
return this.set(Q, this.$y + l);
|
|
1625
1623
|
if (m === k)
|
|
1624
|
+
return L(1);
|
|
1625
|
+
if (m === M)
|
|
1626
1626
|
return L(7);
|
|
1627
1627
|
var H = (u = {}, u[C] = a, u[f] = d, u[c] = s, u)[m] || 1, q = this.$d.getTime() + l * H;
|
|
1628
1628
|
return y.w(q, this);
|
|
@@ -1632,15 +1632,15 @@ var Q1 = { exports: {} };
|
|
|
1632
1632
|
var h = this, u = this.$locale();
|
|
1633
1633
|
if (!this.isValid())
|
|
1634
1634
|
return u.invalidDate || E;
|
|
1635
|
-
var $ = l || "YYYY-MM-DDTHH:mm:ssZ", m = y.z(this), L = this.$H, H = this.$m, q = this.$M, B = u.weekdays, T = u.months, t1 = u.meridiem, X = function(
|
|
1636
|
-
return
|
|
1637
|
-
}, s1 = function(
|
|
1638
|
-
return y.s(L % 12 || 12,
|
|
1639
|
-
}, K = t1 || function(
|
|
1640
|
-
var _1 =
|
|
1635
|
+
var $ = l || "YYYY-MM-DDTHH:mm:ssZ", m = y.z(this), L = this.$H, H = this.$m, q = this.$M, B = u.weekdays, T = u.months, t1 = u.meridiem, X = function(D, R, i1, _1) {
|
|
1636
|
+
return D && (D[R] || D(h, $)) || i1[R].slice(0, _1);
|
|
1637
|
+
}, s1 = function(D) {
|
|
1638
|
+
return y.s(L % 12 || 12, D, "0");
|
|
1639
|
+
}, K = t1 || function(D, R, i1) {
|
|
1640
|
+
var _1 = D < 12 ? "AM" : "PM";
|
|
1641
1641
|
return i1 ? _1.toLowerCase() : _1;
|
|
1642
1642
|
};
|
|
1643
|
-
return $.replace(
|
|
1643
|
+
return $.replace(I, function(D, R) {
|
|
1644
1644
|
return R || function(i1) {
|
|
1645
1645
|
switch (i1) {
|
|
1646
1646
|
case "YY":
|
|
@@ -1693,16 +1693,16 @@ var Q1 = { exports: {} };
|
|
|
1693
1693
|
return m;
|
|
1694
1694
|
}
|
|
1695
1695
|
return null;
|
|
1696
|
-
}(
|
|
1696
|
+
}(D) || m.replace(":", "");
|
|
1697
1697
|
});
|
|
1698
1698
|
}, _.utcOffset = function() {
|
|
1699
1699
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1700
1700
|
}, _.diff = function(l, h, u) {
|
|
1701
|
-
var $, m = this, L = y.p(h), H =
|
|
1701
|
+
var $, m = this, L = y.p(h), H = S(l), q = (H.utcOffset() - this.utcOffset()) * a, B = this - H, T = function() {
|
|
1702
1702
|
return y.m(m, H);
|
|
1703
1703
|
};
|
|
1704
1704
|
switch (L) {
|
|
1705
|
-
case
|
|
1705
|
+
case Q:
|
|
1706
1706
|
$ = T() / 12;
|
|
1707
1707
|
break;
|
|
1708
1708
|
case g:
|
|
@@ -1711,10 +1711,10 @@ var Q1 = { exports: {} };
|
|
|
1711
1711
|
case x:
|
|
1712
1712
|
$ = T() / 3;
|
|
1713
1713
|
break;
|
|
1714
|
-
case
|
|
1714
|
+
case M:
|
|
1715
1715
|
$ = (B - q) / 6048e5;
|
|
1716
1716
|
break;
|
|
1717
|
-
case
|
|
1717
|
+
case k:
|
|
1718
1718
|
$ = (B - q) / 864e5;
|
|
1719
1719
|
break;
|
|
1720
1720
|
case f:
|
|
@@ -1751,19 +1751,19 @@ var Q1 = { exports: {} };
|
|
|
1751
1751
|
return this.$d.toUTCString();
|
|
1752
1752
|
}, v;
|
|
1753
1753
|
}(), M1 = u1.prototype;
|
|
1754
|
-
return
|
|
1754
|
+
return S.prototype = M1, [["$ms", p], ["$s", c], ["$m", C], ["$H", f], ["$W", k], ["$M", g], ["$y", Q], ["$D", Z]].forEach(function(v) {
|
|
1755
1755
|
M1[v[1]] = function(_) {
|
|
1756
1756
|
return this.$g(_, v[0], v[1]);
|
|
1757
1757
|
};
|
|
1758
|
-
}),
|
|
1759
|
-
return v.$i || (v(_, u1,
|
|
1760
|
-
},
|
|
1761
|
-
return
|
|
1762
|
-
},
|
|
1758
|
+
}), S.extend = function(v, _) {
|
|
1759
|
+
return v.$i || (v(_, u1, S), v.$i = !0), S;
|
|
1760
|
+
}, S.locale = d1, S.isDayjs = w1, S.unix = function(v) {
|
|
1761
|
+
return S(1e3 * v);
|
|
1762
|
+
}, S.en = J[N], S.Ls = J, S.p = {}, S;
|
|
1763
1763
|
});
|
|
1764
1764
|
})(Q1);
|
|
1765
1765
|
var L7 = Q1.exports;
|
|
1766
|
-
const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["disabled"], b7 = ["disabled"], Q7 = /* @__PURE__ */
|
|
1766
|
+
const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["disabled"], b7 = ["disabled"], Q7 = /* @__PURE__ */ P({
|
|
1767
1767
|
__name: "QDatetimePicker",
|
|
1768
1768
|
props: {
|
|
1769
1769
|
modelValue: {
|
|
@@ -1777,7 +1777,7 @@ const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["d
|
|
|
1777
1777
|
},
|
|
1778
1778
|
emits: ["update:modelValue", "change"],
|
|
1779
1779
|
setup(e, { emit: t }) {
|
|
1780
|
-
const s = e, a =
|
|
1780
|
+
const s = e, a = b(""), d = b("");
|
|
1781
1781
|
e1(
|
|
1782
1782
|
() => s.modelValue,
|
|
1783
1783
|
(c) => {
|
|
@@ -1785,7 +1785,7 @@ const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["d
|
|
|
1785
1785
|
a.value = C.format("YYYY-MM-DD"), d.value = C.format("HH:mm");
|
|
1786
1786
|
}
|
|
1787
1787
|
);
|
|
1788
|
-
function
|
|
1788
|
+
function p() {
|
|
1789
1789
|
const c = g1(`${a.value} ${d.value}`).format("YYYY-MM-DDTHH:mm:ssZ");
|
|
1790
1790
|
t("change", c), t("update:modelValue", c);
|
|
1791
1791
|
}
|
|
@@ -1797,7 +1797,7 @@ const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["d
|
|
|
1797
1797
|
"onUpdate:modelValue": C[0] || (C[0] = (f) => a.value = f),
|
|
1798
1798
|
type: "date",
|
|
1799
1799
|
disabled: e.disabled,
|
|
1800
|
-
onChange:
|
|
1800
|
+
onChange: p
|
|
1801
1801
|
}, null, 40, H7), [
|
|
1802
1802
|
[c1, a.value]
|
|
1803
1803
|
]),
|
|
@@ -1805,40 +1805,40 @@ const g1 = /* @__PURE__ */ y7(L7), V7 = { class: "q-datetime-picker" }, H7 = ["d
|
|
|
1805
1805
|
"onUpdate:modelValue": C[1] || (C[1] = (f) => d.value = f),
|
|
1806
1806
|
type: "time",
|
|
1807
1807
|
disabled: e.disabled,
|
|
1808
|
-
onChange:
|
|
1808
|
+
onChange: p
|
|
1809
1809
|
}, null, 40, b7), [
|
|
1810
1810
|
[c1, d.value]
|
|
1811
1811
|
])
|
|
1812
1812
|
]));
|
|
1813
1813
|
}
|
|
1814
1814
|
});
|
|
1815
|
-
function
|
|
1815
|
+
function I7() {
|
|
1816
1816
|
function e() {
|
|
1817
|
-
const s = !!window.ActiveXObject || "ActiveXObject" in window, a = navigator.userAgent.indexOf("Edge") > -1, d = navigator.userAgent.indexOf("Chrome") > -1,
|
|
1817
|
+
const s = !!window.ActiveXObject || "ActiveXObject" in window, a = navigator.userAgent.indexOf("Edge") > -1, d = navigator.userAgent.indexOf("Chrome") > -1, p = navigator.userAgent.indexOf("Firefox") > -1, c = navigator.userAgent.indexOf("Safari") > -1, C = navigator.userAgent.indexOf("Opera") > -1, f = navigator.userAgent.indexOf("MicroMessenger") > -1, k = !!navigator.userAgent.match(/AppleWebKit.*Mobile.*/), M = navigator.userAgent.indexOf("Android") > -1 || navigator.userAgent.indexOf("Adr") > -1, g = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), x = navigator.userAgent.indexOf("iPad") > -1, Q = navigator.userAgent.indexOf("iPhone") > -1, Z = navigator.userAgent.indexOf("Macintosh") > -1, E = navigator.userAgent.indexOf("Windows") > -1, w = navigator.userAgent.indexOf("Linux") > -1;
|
|
1818
1818
|
return {
|
|
1819
1819
|
isIE: s,
|
|
1820
1820
|
isEdge: a,
|
|
1821
1821
|
isChrome: d,
|
|
1822
|
-
isFirefox:
|
|
1822
|
+
isFirefox: p,
|
|
1823
1823
|
isSafari: c,
|
|
1824
1824
|
isOpera: C,
|
|
1825
1825
|
isWeixin: f,
|
|
1826
|
-
isMobile:
|
|
1827
|
-
isAndroid:
|
|
1826
|
+
isMobile: k,
|
|
1827
|
+
isAndroid: M,
|
|
1828
1828
|
isIOS: g,
|
|
1829
1829
|
isIpad: x,
|
|
1830
|
-
isIphone:
|
|
1831
|
-
isMac:
|
|
1830
|
+
isIphone: Q,
|
|
1831
|
+
isMac: Z,
|
|
1832
1832
|
isWindows: E,
|
|
1833
|
-
isLinux:
|
|
1833
|
+
isLinux: w
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
1836
|
function t(s, a) {
|
|
1837
1837
|
let d;
|
|
1838
|
-
return function(...
|
|
1838
|
+
return function(...p) {
|
|
1839
1839
|
const c = this;
|
|
1840
1840
|
clearTimeout(d), d = setTimeout(() => {
|
|
1841
|
-
s.apply(c,
|
|
1841
|
+
s.apply(c, p);
|
|
1842
1842
|
}, a);
|
|
1843
1843
|
};
|
|
1844
1844
|
}
|
|
@@ -1847,10 +1847,10 @@ function S7() {
|
|
|
1847
1847
|
debounce: t
|
|
1848
1848
|
};
|
|
1849
1849
|
}
|
|
1850
|
-
const
|
|
1850
|
+
const S7 = ["onClick"], q7 = { class: "q-dialog-body" }, B7 = ["onClick"], j7 = { class: "q-dialog-header" }, Z7 = {
|
|
1851
1851
|
key: 0,
|
|
1852
1852
|
class: "q-dialog-title"
|
|
1853
|
-
}, D7 = { class: "q-dialog-body" }, A7 = /* @__PURE__ */
|
|
1853
|
+
}, D7 = { class: "q-dialog-body" }, A7 = /* @__PURE__ */ P({
|
|
1854
1854
|
__name: "QDialog",
|
|
1855
1855
|
props: {
|
|
1856
1856
|
modelValue: Boolean,
|
|
@@ -1886,38 +1886,38 @@ const I7 = ["onClick"], q7 = { class: "q-dialog-body" }, B7 = ["onClick"], j7 =
|
|
|
1886
1886
|
},
|
|
1887
1887
|
emits: ["update:modelValue", "close"],
|
|
1888
1888
|
setup(e, { emit: t }) {
|
|
1889
|
-
const s = e, { browserDetect: a } =
|
|
1890
|
-
const
|
|
1891
|
-
width:
|
|
1892
|
-
height:
|
|
1889
|
+
const s = e, { browserDetect: a } = I7(), { isMobile: d } = a(), p = b(!1), c = b(s.modelValue), C = b({ top: "0", left: "0" }), f = b(null), k = b(null), M = V(() => !d && s.desktopMode === "popup"), g = V(() => {
|
|
1890
|
+
const w = document.body.clientWidth < 720 ? "100%" : s.width, I = s.height, F = {
|
|
1891
|
+
width: w,
|
|
1892
|
+
height: I
|
|
1893
1893
|
};
|
|
1894
|
-
return
|
|
1894
|
+
return M.value && (F.top = C.value.top, F.left = C.value.left), F;
|
|
1895
1895
|
}), x = V(() => {
|
|
1896
|
-
let
|
|
1897
|
-
return
|
|
1898
|
-
}),
|
|
1899
|
-
let
|
|
1900
|
-
return
|
|
1896
|
+
let w = [];
|
|
1897
|
+
return p.value && w.push("shaking"), d || w.push(`desktop-mode-${s.desktopMode}`), s.noFrame && w.push("no-frame"), w.join(" ");
|
|
1898
|
+
}), Q = V(() => {
|
|
1899
|
+
let w = [];
|
|
1900
|
+
return M.value && w.push("desktop-mode-popup"), w.join(" ");
|
|
1901
1901
|
});
|
|
1902
1902
|
e1(
|
|
1903
1903
|
() => s.modelValue,
|
|
1904
|
-
(
|
|
1905
|
-
c.value =
|
|
1904
|
+
(w) => {
|
|
1905
|
+
c.value = w, q1(() => {
|
|
1906
1906
|
if (!d && s.desktopMode === "popup" && f.value.children) {
|
|
1907
|
-
const
|
|
1908
|
-
if (
|
|
1909
|
-
const G =
|
|
1907
|
+
const I = f.value.children[0];
|
|
1908
|
+
if (I) {
|
|
1909
|
+
const G = I.getBoundingClientRect().height + 8, o1 = 0;
|
|
1910
1910
|
C.value = { top: `${G}px`, left: `${o1}px` };
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
|
|
1913
|
+
w ? document.body.style.overflowY = "hidden" : document.body.style.overflowY = "auto";
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
1916
|
);
|
|
1917
|
-
function
|
|
1917
|
+
function Z() {
|
|
1918
1918
|
if (s.persistent) {
|
|
1919
|
-
|
|
1920
|
-
|
|
1919
|
+
p.value = !0, setTimeout(() => {
|
|
1920
|
+
p.value = !1;
|
|
1921
1921
|
}, 300);
|
|
1922
1922
|
return;
|
|
1923
1923
|
}
|
|
@@ -1926,51 +1926,51 @@ const I7 = ["onClick"], q7 = { class: "q-dialog-body" }, B7 = ["onClick"], j7 =
|
|
|
1926
1926
|
function E() {
|
|
1927
1927
|
}
|
|
1928
1928
|
return a1(() => {
|
|
1929
|
-
s.desktopMode === "popup" && window.addEventListener("storage", (
|
|
1930
|
-
|
|
1929
|
+
s.desktopMode === "popup" && window.addEventListener("storage", (w) => {
|
|
1930
|
+
w.key === "quailui_global_popup_trigger" && w.newValue && Z();
|
|
1931
1931
|
});
|
|
1932
|
-
}), (
|
|
1932
|
+
}), (w, I) => (n(), i(p1, null, [
|
|
1933
1933
|
o("div", {
|
|
1934
1934
|
class: "q-dialog-trigger-wrapper",
|
|
1935
1935
|
ref_key: "triggerWrapper",
|
|
1936
1936
|
ref: f
|
|
1937
1937
|
}, [
|
|
1938
|
-
r1(
|
|
1939
|
-
|
|
1938
|
+
r1(w.$slots, "trigger"),
|
|
1939
|
+
M.value ? (n(), A(v1, { key: 0 }, {
|
|
1940
1940
|
default: C1(() => [
|
|
1941
1941
|
c.value ? (n(), i("div", {
|
|
1942
1942
|
key: 0,
|
|
1943
|
-
class:
|
|
1943
|
+
class: O(["q-dialog", x.value]),
|
|
1944
1944
|
style: l1(g.value),
|
|
1945
1945
|
onClick: $1(E, ["stop"])
|
|
1946
1946
|
}, [
|
|
1947
1947
|
o("div", q7, [
|
|
1948
|
-
r1(
|
|
1948
|
+
r1(w.$slots, "default")
|
|
1949
1949
|
])
|
|
1950
|
-
], 14,
|
|
1950
|
+
], 14, S7)) : j("", !0)
|
|
1951
1951
|
]),
|
|
1952
1952
|
_: 3
|
|
1953
1953
|
})) : j("", !0)
|
|
1954
1954
|
], 512),
|
|
1955
|
-
|
|
1955
|
+
M.value ? j("", !0) : (n(), A(v1, { key: 0 }, {
|
|
1956
1956
|
default: C1(() => [
|
|
1957
1957
|
c.value ? (n(), i("div", {
|
|
1958
1958
|
key: 0,
|
|
1959
|
-
class:
|
|
1960
|
-
onClick:
|
|
1959
|
+
class: O(["q-dialog-mask", Q.value]),
|
|
1960
|
+
onClick: Z,
|
|
1961
1961
|
ref_key: "dialogMask",
|
|
1962
|
-
ref:
|
|
1962
|
+
ref: k
|
|
1963
1963
|
}, [
|
|
1964
1964
|
o("div", {
|
|
1965
|
-
class:
|
|
1965
|
+
class: O(["q-dialog", x.value]),
|
|
1966
1966
|
style: l1(g.value),
|
|
1967
1967
|
onClick: $1(E, ["stop"])
|
|
1968
1968
|
}, [
|
|
1969
1969
|
o("div", j7, [
|
|
1970
|
-
e.title ? (n(), i("div", Z7, U(e.title), 1)) : r1(
|
|
1970
|
+
e.title ? (n(), i("div", Z7, U(e.title), 1)) : r1(w.$slots, "header", { key: 1 })
|
|
1971
1971
|
]),
|
|
1972
1972
|
o("div", D7, [
|
|
1973
|
-
r1(
|
|
1973
|
+
r1(w.$slots, "default")
|
|
1974
1974
|
])
|
|
1975
1975
|
], 14, B7)
|
|
1976
1976
|
], 2)) : j("", !0)
|
|
@@ -1983,7 +1983,7 @@ const I7 = ["onClick"], q7 = { class: "q-dialog-body" }, B7 = ["onClick"], j7 =
|
|
|
1983
1983
|
const O7 = ["href"], P7 = { class: "q-fence-text" }, F7 = {
|
|
1984
1984
|
key: 1,
|
|
1985
1985
|
class: "q-fence-inner"
|
|
1986
|
-
}, T7 = { class: "q-fence-text" }, U7 = /* @__PURE__ */
|
|
1986
|
+
}, T7 = { class: "q-fence-text" }, U7 = /* @__PURE__ */ P({
|
|
1987
1987
|
__name: "QFence",
|
|
1988
1988
|
props: {
|
|
1989
1989
|
link: {
|
|
@@ -2006,7 +2006,7 @@ const O7 = ["href"], P7 = { class: "q-fence-text" }, F7 = {
|
|
|
2006
2006
|
var s;
|
|
2007
2007
|
const t = (s = B1()) == null ? void 0 : s.appContext.components;
|
|
2008
2008
|
return (a, d) => (n(), i("div", {
|
|
2009
|
-
class:
|
|
2009
|
+
class: O(["q-fence", e.type])
|
|
2010
2010
|
}, [
|
|
2011
2011
|
e.link ? (n(), i("a", {
|
|
2012
2012
|
key: 0,
|
|
@@ -2014,19 +2014,19 @@ const O7 = ["href"], P7 = { class: "q-fence-text" }, F7 = {
|
|
|
2014
2014
|
href: e.link,
|
|
2015
2015
|
target: "_blank"
|
|
2016
2016
|
}, [
|
|
2017
|
-
e.icon && h1(t) ? (n(),
|
|
2017
|
+
e.icon && h1(t) ? (n(), A(f1(h1(t)[e.icon]), {
|
|
2018
2018
|
key: 0,
|
|
2019
2019
|
class: "icon"
|
|
2020
|
-
})) : (n(),
|
|
2020
|
+
})) : (n(), A(m1, {
|
|
2021
2021
|
key: 1,
|
|
2022
2022
|
class: "icon"
|
|
2023
2023
|
})),
|
|
2024
2024
|
o("div", P7, U(e.text), 1)
|
|
2025
2025
|
], 8, O7)) : (n(), i("div", F7, [
|
|
2026
|
-
e.icon && h1(t) ? (n(),
|
|
2026
|
+
e.icon && h1(t) ? (n(), A(f1(h1(t)[e.icon]), {
|
|
2027
2027
|
key: 0,
|
|
2028
2028
|
class: "icon"
|
|
2029
|
-
})) : (n(),
|
|
2029
|
+
})) : (n(), A(m1, {
|
|
2030
2030
|
key: 1,
|
|
2031
2031
|
class: "icon"
|
|
2032
2032
|
})),
|
|
@@ -2053,7 +2053,7 @@ const G7 = /* @__PURE__ */ r(z7, [["render", N7]]), R7 = ["onClick"], J7 = {
|
|
|
2053
2053
|
}, K7 = ["src", "alt"], eo = { class: "q-menu-item-content" }, to = { class: "q-menu-title" }, no = {
|
|
2054
2054
|
key: 0,
|
|
2055
2055
|
class: "q-menu-subtitle"
|
|
2056
|
-
}, oo = /* @__PURE__ */
|
|
2056
|
+
}, oo = /* @__PURE__ */ P({
|
|
2057
2057
|
__name: "QMenu",
|
|
2058
2058
|
props: {
|
|
2059
2059
|
items: {
|
|
@@ -2079,16 +2079,16 @@ const G7 = /* @__PURE__ */ r(z7, [["render", N7]]), R7 = ["onClick"], J7 = {
|
|
|
2079
2079
|
let C = "";
|
|
2080
2080
|
return c.disabled && (C += " disabled"), c.danger && (C += " danger"), c.icon && (C += " with-icon"), c.image && (C += " with-image"), c.divider && (C += " with-divider"), C;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function p(c) {
|
|
2083
2083
|
c.action && c.action(c), c.disabled !== !0 && t("action", c);
|
|
2084
2084
|
}
|
|
2085
2085
|
return (c, C) => (n(), i("div", {
|
|
2086
|
-
class:
|
|
2086
|
+
class: O(["q-menu", a.value])
|
|
2087
2087
|
}, [
|
|
2088
2088
|
(n(!0), i(p1, null, L1(s.items, (f) => (n(), i("div", {
|
|
2089
|
-
class:
|
|
2089
|
+
class: O(["q-menu-item", d(f)]),
|
|
2090
2090
|
key: `q-menu-item-${f.id}`,
|
|
2091
|
-
onClick: (
|
|
2091
|
+
onClick: (k) => p(f)
|
|
2092
2092
|
}, [
|
|
2093
2093
|
f.divider ? (n(), i("div", J7)) : (n(), i("div", X7, [
|
|
2094
2094
|
f.image ? (n(), i("img", {
|
|
@@ -2096,7 +2096,7 @@ const G7 = /* @__PURE__ */ r(z7, [["render", N7]]), R7 = ["onClick"], J7 = {
|
|
|
2096
2096
|
class: "q-menu-image",
|
|
2097
2097
|
src: f.image,
|
|
2098
2098
|
alt: f.title
|
|
2099
|
-
}, null, 8, K7)) : f.icon ? (n(),
|
|
2099
|
+
}, null, 8, K7)) : f.icon ? (n(), A(f1(f.icon), {
|
|
2100
2100
|
key: 1,
|
|
2101
2101
|
class: "q-menu-icon"
|
|
2102
2102
|
})) : j("", !0),
|
|
@@ -2109,7 +2109,7 @@ const G7 = /* @__PURE__ */ r(z7, [["render", N7]]), R7 = ["onClick"], J7 = {
|
|
|
2109
2109
|
], 2));
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
|
-
const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-switch-handle" }, co = /* @__PURE__ */
|
|
2112
|
+
const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-switch-handle" }, co = /* @__PURE__ */ P({
|
|
2113
2113
|
__name: "QSwitch",
|
|
2114
2114
|
props: {
|
|
2115
2115
|
modelValue: {
|
|
@@ -2128,7 +2128,7 @@ const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-swit
|
|
|
2128
2128
|
},
|
|
2129
2129
|
emits: ["update:modelValue", "change"],
|
|
2130
2130
|
setup(e, { emit: t }) {
|
|
2131
|
-
const s = e, a =
|
|
2131
|
+
const s = e, a = b(s.modelValue);
|
|
2132
2132
|
e1(() => s.modelValue, (c) => {
|
|
2133
2133
|
a.value = c;
|
|
2134
2134
|
});
|
|
@@ -2136,19 +2136,19 @@ const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-swit
|
|
|
2136
2136
|
const c = [];
|
|
2137
2137
|
return s.theme && c.push(`theme-${s.theme}`), s.disabled && c.push("disabled"), c.join(" ");
|
|
2138
2138
|
});
|
|
2139
|
-
function
|
|
2139
|
+
function p(c) {
|
|
2140
2140
|
t("update:modelValue", a.value), t("change", a.value);
|
|
2141
2141
|
}
|
|
2142
2142
|
return (c, C) => {
|
|
2143
|
-
const f = z("q-icon-sun"),
|
|
2143
|
+
const f = z("q-icon-sun"), k = z("q-icon-moon-star");
|
|
2144
2144
|
return n(), i("label", {
|
|
2145
|
-
class:
|
|
2145
|
+
class: O(["q-switch", d.value])
|
|
2146
2146
|
}, [
|
|
2147
2147
|
n1(o("input", {
|
|
2148
2148
|
class: "q-switch-checkbox",
|
|
2149
2149
|
type: "checkbox",
|
|
2150
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2151
|
-
onChange:
|
|
2150
|
+
"onUpdate:modelValue": C[0] || (C[0] = (M) => a.value = M),
|
|
2151
|
+
onChange: p,
|
|
2152
2152
|
disabled: s.disabled
|
|
2153
2153
|
}, null, 40, so), [
|
|
2154
2154
|
[j1, a.value]
|
|
@@ -2156,10 +2156,10 @@ const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-swit
|
|
|
2156
2156
|
o("div", io, [
|
|
2157
2157
|
o("div", ro, [
|
|
2158
2158
|
s.theme === "plastic" ? (n(), i(p1, { key: 0 }, [
|
|
2159
|
-
a.value ? (n(),
|
|
2159
|
+
a.value ? (n(), A(f, {
|
|
2160
2160
|
key: 0,
|
|
2161
2161
|
class: "q-switch-icon"
|
|
2162
|
-
})) : (n(),
|
|
2162
|
+
})) : (n(), A(k, {
|
|
2163
2163
|
key: 1,
|
|
2164
2164
|
class: "q-switch-icon"
|
|
2165
2165
|
}))
|
|
@@ -2173,7 +2173,7 @@ const so = ["disabled"], io = { class: "q-switch-inner" }, ro = { class: "q-swit
|
|
|
2173
2173
|
const lo = { class: "q-text-field-wrapper" }, ao = ["placeholder"], uo = { class: "q-text-button-wrapper" }, _o = ["disabled"], ho = {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
class: "q-button-glow"
|
|
2176
|
-
}, Co = /* @__PURE__ */
|
|
2176
|
+
}, Co = /* @__PURE__ */ P({
|
|
2177
2177
|
__name: "QTextFieldWithButton",
|
|
2178
2178
|
props: {
|
|
2179
2179
|
modelValue: {
|
|
@@ -2207,10 +2207,10 @@ const lo = { class: "q-text-field-wrapper" }, ao = ["placeholder"], uo = { class
|
|
|
2207
2207
|
},
|
|
2208
2208
|
emits: ["submit", "update:modelValue"],
|
|
2209
2209
|
setup(e, { emit: t }) {
|
|
2210
|
-
const s = e, a =
|
|
2210
|
+
const s = e, a = b(s.defaultText), d = V(() => {
|
|
2211
2211
|
const g = [];
|
|
2212
2212
|
return s.layout === "vertical" ? g.push("vertical") : g.push("horizontal"), s.type === "code" && g.push("code"), s.glow && g.push(`glow-${s.glow}`), g.join(" ");
|
|
2213
|
-
}),
|
|
2213
|
+
}), p = V(() => {
|
|
2214
2214
|
var x;
|
|
2215
2215
|
return s.loading || ((x = a.value) == null ? void 0 : x.trim()).length === 0 ? !1 : s.type === "email" ? c.value : s.type === "code" ? C.value : !0;
|
|
2216
2216
|
}), c = V(() => {
|
|
@@ -2225,21 +2225,21 @@ const lo = { class: "q-text-field-wrapper" }, ao = ["placeholder"], uo = { class
|
|
|
2225
2225
|
e1(() => s.modelValue, (g) => {
|
|
2226
2226
|
a.value = g;
|
|
2227
2227
|
});
|
|
2228
|
-
function M() {
|
|
2229
|
-
w.value && t("submit", { text: a.value });
|
|
2230
|
-
}
|
|
2231
2228
|
function k() {
|
|
2229
|
+
p.value && t("submit", { text: a.value });
|
|
2230
|
+
}
|
|
2231
|
+
function M() {
|
|
2232
2232
|
t("update:modelValue", a.value);
|
|
2233
2233
|
}
|
|
2234
2234
|
return (g, x) => (n(), i("div", {
|
|
2235
|
-
class:
|
|
2235
|
+
class: O(["q-text-field-with-button", d.value])
|
|
2236
2236
|
}, [
|
|
2237
2237
|
o("div", lo, [
|
|
2238
2238
|
n1(o("input", {
|
|
2239
2239
|
class: "q-text-field text-field",
|
|
2240
2240
|
placeholder: s.placeholder,
|
|
2241
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
2242
|
-
onChange:
|
|
2241
|
+
"onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
|
|
2242
|
+
onChange: M
|
|
2243
2243
|
}, null, 40, ao), [
|
|
2244
2244
|
[c1, a.value]
|
|
2245
2245
|
])
|
|
@@ -2247,15 +2247,15 @@ const lo = { class: "q-text-field-wrapper" }, ao = ["placeholder"], uo = { class
|
|
|
2247
2247
|
o("div", uo, [
|
|
2248
2248
|
o("button", {
|
|
2249
2249
|
class: "q-button button primary",
|
|
2250
|
-
disabled: !
|
|
2251
|
-
onClick:
|
|
2250
|
+
disabled: !p.value,
|
|
2251
|
+
onClick: k
|
|
2252
2252
|
}, U(f.value), 9, _o)
|
|
2253
2253
|
]),
|
|
2254
2254
|
e.glow !== "" ? (n(), i("div", ho)) : j("", !0)
|
|
2255
2255
|
], 2));
|
|
2256
2256
|
}
|
|
2257
2257
|
});
|
|
2258
|
-
function
|
|
2258
|
+
function I1() {
|
|
2259
2259
|
let e = parseInt(sessionStorage.getItem("quailui_global_popup_trigger") || "0") || 0;
|
|
2260
2260
|
sessionStorage.setItem("quailui_global_popup_trigger", e + 1 + ""), window.dispatchEvent(new StorageEvent("storage", {
|
|
2261
2261
|
key: "quailui_global_popup_trigger",
|
|
@@ -2281,7 +2281,7 @@ const fo = { class: "q-dropdown-menu" }, po = { class: "q-dropdown-menu-inner na
|
|
|
2281
2281
|
}, mo = { class: "q-menu-popup-body" }, ko = {
|
|
2282
2282
|
key: 0,
|
|
2283
2283
|
class: "filter-area"
|
|
2284
|
-
}, Mo = ["textContent"], xo = /* @__PURE__ */
|
|
2284
|
+
}, Mo = ["textContent"], xo = /* @__PURE__ */ P({
|
|
2285
2285
|
__name: "QDropdownMenu",
|
|
2286
2286
|
props: {
|
|
2287
2287
|
items: {
|
|
@@ -2327,77 +2327,77 @@ const fo = { class: "q-dropdown-menu" }, po = { class: "q-dropdown-menu-inner na
|
|
|
2327
2327
|
},
|
|
2328
2328
|
emits: ["change"],
|
|
2329
2329
|
setup(e, { emit: t }) {
|
|
2330
|
-
const s = e, a = Z1(), d =
|
|
2331
|
-
const
|
|
2332
|
-
return d.value &&
|
|
2330
|
+
const s = e, a = Z1(), d = b(!1), p = b(null), c = b(null), C = b(null), f = b(""), k = b(""), M = V(() => {
|
|
2331
|
+
const w = [];
|
|
2332
|
+
return d.value && w.push("expanded"), s.variant === "outlined" ? w.push("frame") : s.variant === "plain" && w.push("plain"), s.hideSelected && w.push("hide-selected"), p.value && (p.value.icon || p.value.image) ? w.push("prepend") : w.push("no-prepend"), w.join(" ");
|
|
2333
2333
|
}), g = V(() => a.default !== void 0), x = V(() => {
|
|
2334
2334
|
if (s.items && s.items.length > 0) {
|
|
2335
|
-
if (
|
|
2335
|
+
if (k.value.trim() === "")
|
|
2336
2336
|
return s.items;
|
|
2337
|
-
const
|
|
2338
|
-
return s.items.filter((
|
|
2337
|
+
const w = k.value.toLowerCase();
|
|
2338
|
+
return s.items.filter((I) => {
|
|
2339
2339
|
var F;
|
|
2340
|
-
return !!((F =
|
|
2340
|
+
return !!((F = I == null ? void 0 : I.title) != null && F.toLowerCase().includes(w));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
2343
|
return [];
|
|
2344
|
-
}),
|
|
2345
|
-
function
|
|
2346
|
-
d.value ||
|
|
2347
|
-
var
|
|
2348
|
-
(
|
|
2344
|
+
}), Q = V(() => s.useDialog === "always" ? !0 : s.useDialog === "never" ? !1 : window.innerWidth < 768);
|
|
2345
|
+
function Z() {
|
|
2346
|
+
d.value || I1(), d.value = !d.value, d.value && (Q.value ? k1(() => {
|
|
2347
|
+
var w;
|
|
2348
|
+
(w = C == null ? void 0 : C.value) == null || w.addEventListener("scroll", () => {
|
|
2349
2349
|
k1(() => {
|
|
2350
2350
|
f.value = C.value.scrollTop > 0 ? "scrolled" : "";
|
|
2351
2351
|
}, 100)();
|
|
2352
2352
|
});
|
|
2353
2353
|
}, 1e3)() : setTimeout(() => {
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2354
|
+
const w = c == null ? void 0 : c.value, I = w == null ? void 0 : w.querySelector(".q-menu");
|
|
2355
|
+
I.getBoundingClientRect().left < 0 && (I.style.left = "0");
|
|
2356
2356
|
}, 10));
|
|
2357
2357
|
}
|
|
2358
|
-
function E(
|
|
2359
|
-
d.value = !1,
|
|
2358
|
+
function E(w) {
|
|
2359
|
+
d.value = !1, p.value = w, t("change", w);
|
|
2360
2360
|
}
|
|
2361
2361
|
return e1(
|
|
2362
2362
|
() => s.initialItem,
|
|
2363
2363
|
() => {
|
|
2364
|
-
s.initialItem && (
|
|
2364
|
+
s.initialItem && (p.value = s.initialItem);
|
|
2365
2365
|
}
|
|
2366
2366
|
), a1(() => {
|
|
2367
|
-
s.initialItem && (
|
|
2368
|
-
|
|
2367
|
+
s.initialItem && (p.value = s.initialItem), window.addEventListener("storage", (w) => {
|
|
2368
|
+
w.key === "quailui_global_popup_trigger" && w.newValue && (d.value = !1);
|
|
2369
2369
|
});
|
|
2370
|
-
}), (
|
|
2370
|
+
}), (w, I) => {
|
|
2371
2371
|
const F = z("q-icon-chevron-down"), G = z("q-menu"), o1 = z("q-dialog");
|
|
2372
2372
|
return n(), i("div", fo, [
|
|
2373
2373
|
o("div", po, [
|
|
2374
2374
|
o("div", {
|
|
2375
|
-
class:
|
|
2376
|
-
onClick: $1(
|
|
2375
|
+
class: O(["q-dropdown-menu-action", M.value]),
|
|
2376
|
+
onClick: $1(Z, ["stop"])
|
|
2377
2377
|
}, [
|
|
2378
|
-
!e.hideSelected &&
|
|
2379
|
-
|
|
2378
|
+
!e.hideSelected && p.value && !g.value ? (n(), i("div", go, [
|
|
2379
|
+
p.value.image ? (n(), i("img", {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
class: "menu-image",
|
|
2382
|
-
src:
|
|
2383
|
-
alt:
|
|
2384
|
-
}, null, 8, vo)) :
|
|
2382
|
+
src: p.value.image,
|
|
2383
|
+
alt: p.value.title
|
|
2384
|
+
}, null, 8, vo)) : p.value.icon ? (n(), A(f1(p.value.icon), {
|
|
2385
2385
|
key: 1,
|
|
2386
2386
|
class: "icon menu-icon"
|
|
2387
2387
|
})) : j("", !0),
|
|
2388
|
-
e.hideActionLabel ? j("", !0) : (n(), i("div", $o, U(
|
|
2388
|
+
e.hideActionLabel ? j("", !0) : (n(), i("div", $o, U(p.value ? p.value.title : s.placeholder || "Select ..."), 1))
|
|
2389
2389
|
])) : j("", !0),
|
|
2390
|
-
r1(
|
|
2390
|
+
r1(w.$slots, "default"),
|
|
2391
2391
|
Y(F, { class: "icon chevron-icon" })
|
|
2392
2392
|
], 10, wo),
|
|
2393
|
-
|
|
2393
|
+
Q.value ? j("", !0) : (n(), i("div", {
|
|
2394
2394
|
key: 0,
|
|
2395
2395
|
ref_key: "menuWrapper",
|
|
2396
2396
|
ref: c
|
|
2397
2397
|
}, [
|
|
2398
2398
|
Y(v1, null, {
|
|
2399
2399
|
default: C1(() => [
|
|
2400
|
-
d.value ? (n(),
|
|
2400
|
+
d.value ? (n(), A(G, {
|
|
2401
2401
|
key: 0,
|
|
2402
2402
|
items: e.items,
|
|
2403
2403
|
onAction: E
|
|
@@ -2406,10 +2406,10 @@ const fo = { class: "q-dropdown-menu" }, po = { class: "q-dropdown-menu-inner na
|
|
|
2406
2406
|
_: 1
|
|
2407
2407
|
})
|
|
2408
2408
|
], 512)),
|
|
2409
|
-
|
|
2409
|
+
Q.value ? (n(), A(o1, {
|
|
2410
2410
|
key: 1,
|
|
2411
2411
|
modelValue: d.value,
|
|
2412
|
-
"onUpdate:modelValue":
|
|
2412
|
+
"onUpdate:modelValue": I[1] || (I[1] = (N) => d.value = N),
|
|
2413
2413
|
"no-frame": ""
|
|
2414
2414
|
}, {
|
|
2415
2415
|
default: C1(() => [
|
|
@@ -2419,18 +2419,18 @@ const fo = { class: "q-dropdown-menu" }, po = { class: "q-dropdown-menu-inner na
|
|
|
2419
2419
|
type: "text",
|
|
2420
2420
|
class: "filter-input text-field",
|
|
2421
2421
|
placeholder: "Filter",
|
|
2422
|
-
"onUpdate:modelValue":
|
|
2422
|
+
"onUpdate:modelValue": I[0] || (I[0] = (N) => k.value = N)
|
|
2423
2423
|
}, null, 512), [
|
|
2424
|
-
[c1,
|
|
2424
|
+
[c1, k.value]
|
|
2425
2425
|
])
|
|
2426
2426
|
])) : j("", !0),
|
|
2427
2427
|
o("div", {
|
|
2428
|
-
class:
|
|
2428
|
+
class: O(["scroll-area", f.value]),
|
|
2429
2429
|
ref_key: "scrollArea",
|
|
2430
2430
|
ref: C,
|
|
2431
2431
|
style: l1({ height: s.scrollHeight, maxHeight: s.scrollHeight })
|
|
2432
2432
|
}, [
|
|
2433
|
-
x.value ? (n(),
|
|
2433
|
+
x.value ? (n(), A(G, {
|
|
2434
2434
|
key: 0,
|
|
2435
2435
|
items: x.value,
|
|
2436
2436
|
onAction: E,
|
|
@@ -2457,7 +2457,7 @@ const yo = { class: "q-pagination" }, Lo = ["disabled"], Vo = {
|
|
|
2457
2457
|
}, Ho = { class: "q-page-indicator" }, bo = ["disabled", "onClick"], Qo = {
|
|
2458
2458
|
key: 1,
|
|
2459
2459
|
class: "q-page-indicator-simple"
|
|
2460
|
-
},
|
|
2460
|
+
}, Io = { class: "" }, So = ["disabled"], qo = /* @__PURE__ */ P({
|
|
2461
2461
|
__name: "QPagination",
|
|
2462
2462
|
props: {
|
|
2463
2463
|
modelValue: {
|
|
@@ -2481,51 +2481,51 @@ const yo = { class: "q-pagination" }, Lo = ["disabled"], Vo = {
|
|
|
2481
2481
|
setup(e, { emit: t }) {
|
|
2482
2482
|
const s = e, a = V(() => {
|
|
2483
2483
|
let f = 6;
|
|
2484
|
-
const
|
|
2484
|
+
const k = [];
|
|
2485
2485
|
if (s.totalPage !== 0)
|
|
2486
2486
|
if (s.totalPage <= f)
|
|
2487
|
-
for (let
|
|
2488
|
-
|
|
2487
|
+
for (let M = 1; M <= s.totalPage; M++)
|
|
2488
|
+
k.push({ label: M });
|
|
2489
2489
|
else {
|
|
2490
|
-
|
|
2491
|
-
let
|
|
2492
|
-
|
|
2493
|
-
for (let x =
|
|
2494
|
-
|
|
2495
|
-
g < s.totalPage - 1 &&
|
|
2490
|
+
k.push({ label: 1 });
|
|
2491
|
+
let M = d.value - 2, g = d.value + 2;
|
|
2492
|
+
M < 2 && (M = 2, g = M + f - 2), g > s.totalPage - 1 && (g = s.totalPage - 1, M = g - f + 2), M > 2 && k.push({ label: "…", disabled: !0 });
|
|
2493
|
+
for (let x = M; x <= g; x++)
|
|
2494
|
+
k.push({ label: x });
|
|
2495
|
+
g < s.totalPage - 1 && k.push({ label: "…", disabled: !0 }), k.push({ label: s.totalPage });
|
|
2496
2496
|
}
|
|
2497
|
-
return
|
|
2498
|
-
}), d =
|
|
2497
|
+
return k;
|
|
2498
|
+
}), d = b(s.modelValue);
|
|
2499
2499
|
e1(() => s.modelValue, (f) => {
|
|
2500
2500
|
d.value = f;
|
|
2501
2501
|
});
|
|
2502
|
-
function
|
|
2502
|
+
function p() {
|
|
2503
2503
|
d.value--, t("change:prev", d.value), t("update:modelValue", d.value);
|
|
2504
2504
|
}
|
|
2505
2505
|
function c() {
|
|
2506
2506
|
d.value++, t("change:next", d.value), t("update:modelValue", d.value);
|
|
2507
2507
|
}
|
|
2508
|
-
function C(f,
|
|
2509
|
-
|
|
2508
|
+
function C(f, k) {
|
|
2509
|
+
k.disabled || (d.value = f, t("change:goto", d.value), t("update:modelValue", d.value));
|
|
2510
2510
|
}
|
|
2511
|
-
return (f,
|
|
2511
|
+
return (f, k) => (n(), i("div", yo, [
|
|
2512
2512
|
o("button", {
|
|
2513
2513
|
class: "prev q-button button sm outlined icon",
|
|
2514
|
-
onClick:
|
|
2514
|
+
onClick: p,
|
|
2515
2515
|
disabled: !s.hasPrev
|
|
2516
2516
|
}, [
|
|
2517
2517
|
Y(H1, { class: "icon" })
|
|
2518
2518
|
], 8, Lo),
|
|
2519
2519
|
e.totalPage !== 0 ? (n(), i("div", Vo, [
|
|
2520
|
-
(n(!0), i(p1, null, L1(a.value, (
|
|
2520
|
+
(n(!0), i(p1, null, L1(a.value, (M) => (n(), i("div", Ho, [
|
|
2521
2521
|
o("button", {
|
|
2522
|
-
class:
|
|
2523
|
-
disabled:
|
|
2524
|
-
onClick: (g) => C(
|
|
2525
|
-
}, U(
|
|
2522
|
+
class: O(["q-page-indicator q-button button sm plain", M.label === d.value ? "active" : ""]),
|
|
2523
|
+
disabled: M.disabled,
|
|
2524
|
+
onClick: (g) => C(M.label, M)
|
|
2525
|
+
}, U(M.label), 11, bo)
|
|
2526
2526
|
]))), 256))
|
|
2527
2527
|
])) : (n(), i("div", Qo, [
|
|
2528
|
-
o("div",
|
|
2528
|
+
o("div", Io, U(e.modelValue), 1)
|
|
2529
2529
|
])),
|
|
2530
2530
|
o("button", {
|
|
2531
2531
|
class: "next q-button button sm outlined icon",
|
|
@@ -2533,13 +2533,13 @@ const yo = { class: "q-pagination" }, Lo = ["disabled"], Vo = {
|
|
|
2533
2533
|
disabled: !s.hasNext
|
|
2534
2534
|
}, [
|
|
2535
2535
|
Y(b1, { class: "icon" })
|
|
2536
|
-
], 8,
|
|
2536
|
+
], 8, So)
|
|
2537
2537
|
]));
|
|
2538
2538
|
}
|
|
2539
2539
|
});
|
|
2540
2540
|
const Bo = { class: "q-progress-slot" }, jo = /* @__PURE__ */ o("div", { class: "q-progress-bar-inner" }, null, -1), Zo = [
|
|
2541
2541
|
jo
|
|
2542
|
-
], Do = /* @__PURE__ */
|
|
2542
|
+
], Do = /* @__PURE__ */ P({
|
|
2543
2543
|
__name: "QProgress",
|
|
2544
2544
|
props: {
|
|
2545
2545
|
infinite: {
|
|
@@ -2561,19 +2561,19 @@ const Bo = { class: "q-progress-slot" }, jo = /* @__PURE__ */ o("div", { class:
|
|
|
2561
2561
|
},
|
|
2562
2562
|
setup(e) {
|
|
2563
2563
|
const t = e, s = V(() => t.infinite ? "100%" : `${t.value / t.max * 100}%`), a = V(() => t.value >= t.max);
|
|
2564
|
-
return (d,
|
|
2565
|
-
class:
|
|
2564
|
+
return (d, p) => (n(), i("div", {
|
|
2565
|
+
class: O(["q-progress", e.color])
|
|
2566
2566
|
}, [
|
|
2567
2567
|
o("div", Bo, [
|
|
2568
2568
|
o("div", {
|
|
2569
|
-
class:
|
|
2569
|
+
class: O(["q-progress-bar", a.value ? "" : "animated"]),
|
|
2570
2570
|
style: l1({ width: s.value })
|
|
2571
2571
|
}, Zo, 6)
|
|
2572
2572
|
])
|
|
2573
2573
|
], 2));
|
|
2574
2574
|
}
|
|
2575
2575
|
});
|
|
2576
|
-
const Ao = /* @__PURE__ */
|
|
2576
|
+
const Ao = /* @__PURE__ */ P({
|
|
2577
2577
|
__name: "QLanguageSelector",
|
|
2578
2578
|
props: {
|
|
2579
2579
|
lang: {
|
|
@@ -2595,44 +2595,44 @@ const Ao = /* @__PURE__ */ O({
|
|
|
2595
2595
|
},
|
|
2596
2596
|
emits: ["change"],
|
|
2597
2597
|
setup(e, { emit: t }) {
|
|
2598
|
-
const s = e, a =
|
|
2598
|
+
const s = e, a = b(null), d = V(() => {
|
|
2599
2599
|
let c = [
|
|
2600
2600
|
{
|
|
2601
2601
|
title_flag: "🇺🇸 English",
|
|
2602
2602
|
title_no_flag: "English",
|
|
2603
2603
|
value: "en",
|
|
2604
|
-
action:
|
|
2604
|
+
action: p
|
|
2605
2605
|
},
|
|
2606
2606
|
{
|
|
2607
2607
|
title_flag: "🇨🇳 简体中文",
|
|
2608
2608
|
title_no_flag: "简体中文",
|
|
2609
2609
|
value: "zh",
|
|
2610
|
-
action:
|
|
2610
|
+
action: p
|
|
2611
2611
|
},
|
|
2612
2612
|
{
|
|
2613
2613
|
title_flag: "🇹🇼 正體中文",
|
|
2614
2614
|
title_no_flag: "正體中文",
|
|
2615
2615
|
value: "zh-tw",
|
|
2616
|
-
action:
|
|
2616
|
+
action: p
|
|
2617
2617
|
},
|
|
2618
2618
|
{
|
|
2619
2619
|
title_flag: "🇯🇵 日本語",
|
|
2620
2620
|
title_no_flag: "日本語",
|
|
2621
2621
|
value: "ja",
|
|
2622
|
-
action:
|
|
2622
|
+
action: p
|
|
2623
2623
|
}
|
|
2624
2624
|
];
|
|
2625
2625
|
return s.auto && c.unshift({
|
|
2626
2626
|
title_flag: "🌐 Auto",
|
|
2627
2627
|
title_no_flag: "Auto",
|
|
2628
2628
|
value: "",
|
|
2629
|
-
action:
|
|
2629
|
+
action: p
|
|
2630
2630
|
}), c = c.map((C) => ({
|
|
2631
2631
|
...C,
|
|
2632
2632
|
title: s.noFlag ? C.title_no_flag : C.title_flag
|
|
2633
2633
|
})), c;
|
|
2634
2634
|
});
|
|
2635
|
-
function
|
|
2635
|
+
function p(c) {
|
|
2636
2636
|
s.presist && localStorage.setItem("quail-language", c.value), t("change", {
|
|
2637
2637
|
title: s.noFlag ? c.title_no_flag : c.title,
|
|
2638
2638
|
value: c.value
|
|
@@ -2644,13 +2644,13 @@ const Ao = /* @__PURE__ */ O({
|
|
|
2644
2644
|
a.value = d.value.find((c) => s.lang === c.value || localStorage.getItem("quail-language") === c.value) || d.value[0];
|
|
2645
2645
|
}), (c, C) => {
|
|
2646
2646
|
const f = z("QDropdownMenu");
|
|
2647
|
-
return n(),
|
|
2647
|
+
return n(), A(f, {
|
|
2648
2648
|
items: d.value,
|
|
2649
2649
|
"initial-item": a.value
|
|
2650
2650
|
}, null, 8, ["items", "initial-item"]);
|
|
2651
2651
|
};
|
|
2652
2652
|
}
|
|
2653
|
-
}),
|
|
2653
|
+
}), S1 = (e) => (D1("data-v-c163c615"), e = e(), A1(), e), Oo = { class: "q-pack-cover block-drop-shadow" }, Po = /* @__PURE__ */ S1(() => /* @__PURE__ */ o("div", { class: "q-pack-cover-layer one" }, null, -1)), Fo = /* @__PURE__ */ S1(() => /* @__PURE__ */ o("div", { class: "q-pack-cover-layer two" }, null, -1)), To = { class: "q-pack-cover-inner" }, Uo = ["src", "alt"], zo = /* @__PURE__ */ P({
|
|
2654
2654
|
__name: "QPackCover",
|
|
2655
2655
|
props: {
|
|
2656
2656
|
src: {
|
|
@@ -2675,7 +2675,7 @@ const Ao = /* @__PURE__ */ O({
|
|
|
2675
2675
|
]));
|
|
2676
2676
|
}
|
|
2677
2677
|
});
|
|
2678
|
-
const Eo = /* @__PURE__ */ r(zo, [["__scopeId", "data-v-c163c615"]]), Yo = ["href"], Wo = ["href"], No = ["href"], Go = ["href"], Ro = /* @__PURE__ */
|
|
2678
|
+
const Eo = /* @__PURE__ */ r(zo, [["__scopeId", "data-v-c163c615"]]), Yo = ["href"], Wo = ["href"], No = ["href"], Go = ["href"], Ro = /* @__PURE__ */ P({
|
|
2679
2679
|
__name: "QShare",
|
|
2680
2680
|
props: {
|
|
2681
2681
|
url: {
|
|
@@ -2693,10 +2693,10 @@ const Eo = /* @__PURE__ */ r(zo, [["__scopeId", "data-v-c163c615"]]), Yo = ["hre
|
|
|
2693
2693
|
},
|
|
2694
2694
|
setup(e) {
|
|
2695
2695
|
const t = e, s = V(() => t.layout === "row" ? "q-share-layout-row" : t.layout === "column" ? "q-share-layout-column" : "q-share-layout-row"), a = V(() => t.url ? encodeURIComponent(t.url) : encodeURIComponent(window.location.href));
|
|
2696
|
-
return (d,
|
|
2697
|
-
const c = z("q-icon-color-twitter"), C = z("q-icon-color-facebook"), f = z("q-icon-color-hackernews"),
|
|
2696
|
+
return (d, p) => {
|
|
2697
|
+
const c = z("q-icon-color-twitter"), C = z("q-icon-color-facebook"), f = z("q-icon-color-hackernews"), k = z("q-icon-color-linkedin");
|
|
2698
2698
|
return n(), i("div", {
|
|
2699
|
-
class:
|
|
2699
|
+
class: O(["q-share", s.value])
|
|
2700
2700
|
}, [
|
|
2701
2701
|
o("a", {
|
|
2702
2702
|
href: `https://twitter.com/intent/tweet?url=${a.value}&text=${t.text}`,
|
|
@@ -2728,13 +2728,13 @@ const Eo = /* @__PURE__ */ r(zo, [["__scopeId", "data-v-c163c615"]]), Yo = ["hre
|
|
|
2728
2728
|
title: "Share on linkedin",
|
|
2729
2729
|
class: "q-share-link linkedin"
|
|
2730
2730
|
}, [
|
|
2731
|
-
Y(
|
|
2731
|
+
Y(k, { class: "icon share-icon" })
|
|
2732
2732
|
], 8, Go)
|
|
2733
2733
|
], 2);
|
|
2734
2734
|
};
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
|
-
const Jo = ["src", "alt"], Xo = /* @__PURE__ */
|
|
2737
|
+
const Jo = ["src", "alt"], Xo = /* @__PURE__ */ P({
|
|
2738
2738
|
__name: "QAvatar",
|
|
2739
2739
|
props: {
|
|
2740
2740
|
src: {
|
|
@@ -2746,12 +2746,12 @@ const Jo = ["src", "alt"], Xo = /* @__PURE__ */ O({
|
|
|
2746
2746
|
default: "An Avatar"
|
|
2747
2747
|
},
|
|
2748
2748
|
size: {
|
|
2749
|
-
type:
|
|
2750
|
-
default:
|
|
2749
|
+
type: Number,
|
|
2750
|
+
default: 32
|
|
2751
2751
|
}
|
|
2752
2752
|
},
|
|
2753
2753
|
setup(e) {
|
|
2754
|
-
const t = e, s =
|
|
2754
|
+
const t = e, s = b({
|
|
2755
2755
|
width: `${t.size}px`,
|
|
2756
2756
|
height: `${t.size}px`
|
|
2757
2757
|
});
|
|
@@ -2769,7 +2769,7 @@ const Jo = ["src", "alt"], Xo = /* @__PURE__ */ O({
|
|
|
2769
2769
|
const Ko = { class: "q-dropdown-menu-with-text-field" }, e3 = { class: "q-dropdown-menu-with-text-field-top" }, t3 = { class: "q-dropdown-menu-wrapper" }, n3 = { class: "q-text-field-wrapper" }, o3 = ["placeholder"], s3 = {
|
|
2770
2770
|
key: 0,
|
|
2771
2771
|
class: "q-dropdown-menu-with-text-field-bottom"
|
|
2772
|
-
}, i3 = ["textContent"], r3 = { class: "text-xs text-hint" }, c3 = ["textContent"], l3 = /* @__PURE__ */
|
|
2772
|
+
}, i3 = ["textContent"], r3 = { class: "text-xs text-hint" }, c3 = ["textContent"], l3 = /* @__PURE__ */ P({
|
|
2773
2773
|
__name: "QDropdownMenuWithTextField",
|
|
2774
2774
|
props: {
|
|
2775
2775
|
items: {
|
|
@@ -2803,33 +2803,35 @@ const Ko = { class: "q-dropdown-menu-with-text-field" }, e3 = { class: "q-dropdo
|
|
|
2803
2803
|
},
|
|
2804
2804
|
emits: ["change"],
|
|
2805
2805
|
setup(e, { emit: t }) {
|
|
2806
|
-
const s = e, a =
|
|
2807
|
-
function
|
|
2808
|
-
d.value =
|
|
2809
|
-
}
|
|
2810
|
-
function C() {
|
|
2811
|
-
f();
|
|
2806
|
+
const s = e, a = b(s.defaultText), d = b(s.defaultSelection), p = b(null), c = V(() => s.fillActionLabel !== "" || s.hintText !== "");
|
|
2807
|
+
function C(g) {
|
|
2808
|
+
d.value = g, k();
|
|
2812
2809
|
}
|
|
2813
2810
|
function f() {
|
|
2814
|
-
|
|
2811
|
+
k();
|
|
2812
|
+
}
|
|
2813
|
+
function k() {
|
|
2814
|
+
const g = {
|
|
2815
2815
|
selected: d.value,
|
|
2816
2816
|
text: a.value
|
|
2817
2817
|
};
|
|
2818
|
-
t("change",
|
|
2818
|
+
t("change", g);
|
|
2819
2819
|
}
|
|
2820
2820
|
function M() {
|
|
2821
|
-
a.value = s.fillActionValue;
|
|
2821
|
+
a.value = s.fillActionValue, k();
|
|
2822
2822
|
}
|
|
2823
2823
|
return a1(() => {
|
|
2824
2824
|
k1(() => {
|
|
2825
|
-
d.value = s.defaultSelection, a.value = s.defaultText, (d.value === null || d.value === void 0) && (d.value = s.items[0])
|
|
2825
|
+
d.value = s.defaultSelection, a.value = s.defaultText, (d.value === null || d.value === void 0) && (d.value = s.items[0]), p.value.addEventListener("focus", () => {
|
|
2826
|
+
p.value.select();
|
|
2827
|
+
});
|
|
2826
2828
|
}, 300)();
|
|
2827
|
-
}), (
|
|
2828
|
-
const
|
|
2829
|
+
}), (g, x) => {
|
|
2830
|
+
const Q = z("q-dropdown-menu");
|
|
2829
2831
|
return n(), i("div", Ko, [
|
|
2830
2832
|
o("div", e3, [
|
|
2831
2833
|
o("div", t3, [
|
|
2832
|
-
Y(
|
|
2834
|
+
Y(Q, {
|
|
2833
2835
|
items: e.items,
|
|
2834
2836
|
"initial-item": d.value,
|
|
2835
2837
|
"use-dialog": "always",
|
|
@@ -2837,21 +2839,23 @@ const Ko = { class: "q-dropdown-menu-with-text-field" }, e3 = { class: "q-dropdo
|
|
|
2837
2839
|
"scroll-height": "400px",
|
|
2838
2840
|
"hide-action-label": "",
|
|
2839
2841
|
variant: "plain",
|
|
2840
|
-
onChange:
|
|
2842
|
+
onChange: C
|
|
2841
2843
|
}, null, 8, ["items", "initial-item"])
|
|
2842
2844
|
]),
|
|
2843
2845
|
o("div", n3, [
|
|
2844
2846
|
n1(o("input", {
|
|
2847
|
+
ref_key: "textField",
|
|
2848
|
+
ref: p,
|
|
2845
2849
|
class: "q-text-field text-field",
|
|
2846
2850
|
placeholder: s.placeholder,
|
|
2847
|
-
"onUpdate:modelValue":
|
|
2848
|
-
onChange:
|
|
2851
|
+
"onUpdate:modelValue": x[0] || (x[0] = (Z) => a.value = Z),
|
|
2852
|
+
onChange: f
|
|
2849
2853
|
}, null, 40, o3), [
|
|
2850
2854
|
[c1, a.value]
|
|
2851
2855
|
])
|
|
2852
2856
|
])
|
|
2853
2857
|
]),
|
|
2854
|
-
|
|
2858
|
+
c.value ? (n(), i("div", s3, [
|
|
2855
2859
|
o("div", {
|
|
2856
2860
|
class: "fill-action text-xs plain flex",
|
|
2857
2861
|
onClick: M
|
|
@@ -2871,7 +2875,7 @@ const Ko = { class: "q-dropdown-menu-with-text-field" }, e3 = { class: "q-dropdo
|
|
|
2871
2875
|
};
|
|
2872
2876
|
}
|
|
2873
2877
|
});
|
|
2874
|
-
const a3 = /* @__PURE__ */ r(l3, [["__scopeId", "data-v-
|
|
2878
|
+
const a3 = /* @__PURE__ */ r(l3, [["__scopeId", "data-v-b298c252"]]), d3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2875
2879
|
__proto__: null,
|
|
2876
2880
|
QAvatar: Xo,
|
|
2877
2881
|
QDatetimePicker: Q7,
|
|
@@ -2897,7 +2901,7 @@ const _3 = {
|
|
|
2897
2901
|
for (const [s, a] of Object.entries(d3))
|
|
2898
2902
|
t != null && t.debug && console.log("[quail-ui] register common component", s, a), e.component(s, a);
|
|
2899
2903
|
document.body.addEventListener("click", (s) => {
|
|
2900
|
-
|
|
2904
|
+
I1();
|
|
2901
2905
|
});
|
|
2902
2906
|
}
|
|
2903
2907
|
};
|