quail-ui 0.2.41 → 0.2.43
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 +147 -146
- 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,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as a1, defineComponent as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as a1, defineComponent as A, ref as S, watch as N, onMounted as d1, withDirectives as i1, vModelText as C1, computed as I, nextTick as V1, Fragment as m1, renderSlot as t1, createBlock as Z, Transition as f1, withCtx as g1, normalizeClass as D, normalizeStyle as w1, withModifiers as p1, createCommentVNode as O, toDisplayString as P, getCurrentInstance as b1, unref as r1, resolveDynamicComponent as c1, renderList as k1, vModelCheckbox as z1, useSlots as Q1, resolveComponent as v1, createVNode as l1 } from "vue";
|
|
2
2
|
const c = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
|
-
for (const [C,
|
|
5
|
-
r[C] =
|
|
4
|
+
for (const [C, _] of t)
|
|
5
|
+
r[C] = _;
|
|
6
6
|
return r;
|
|
7
7
|
}, I1 = {}, B1 = {
|
|
8
8
|
width: "24",
|
|
@@ -1288,7 +1288,7 @@ var L1 = { exports: {} };
|
|
|
1288
1288
|
(function(r, C) {
|
|
1289
1289
|
e.exports = C();
|
|
1290
1290
|
})(a9, function() {
|
|
1291
|
-
var r = 1e3, C = 6e4,
|
|
1291
|
+
var r = 1e3, C = 6e4, _ = 36e5, d = "millisecond", u = "second", g = "minute", $ = "hour", k = "day", m = "week", h = "month", x = "quarter", z = "year", j = "date", F = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Y = /\[([^\]]+)]|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, R = { 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(w) {
|
|
1292
1292
|
var a = ["th", "st", "nd", "rd"], i = w % 100;
|
|
1293
1293
|
return "[" + w + (a[(i - 20) % 10] || a[i] || a[0]) + "]";
|
|
1294
1294
|
} }, J = function(w, a, i) {
|
|
@@ -1300,16 +1300,16 @@ var L1 = { exports: {} };
|
|
|
1300
1300
|
}, m: function w(a, i) {
|
|
1301
1301
|
if (a.date() < i.date())
|
|
1302
1302
|
return -w(i, a);
|
|
1303
|
-
var f = 12 * (i.year() - a.year()) + (i.month() - a.month()), l = a.clone().add(f,
|
|
1303
|
+
var f = 12 * (i.year() - a.year()) + (i.month() - a.month()), l = a.clone().add(f, h), p = i - l < 0, v = a.clone().add(f + (p ? -1 : 1), h);
|
|
1304
1304
|
return +(-(f + (i - l) / (p ? l - v : v - l)) || 0);
|
|
1305
1305
|
}, a: function(w) {
|
|
1306
1306
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
1307
1307
|
}, p: function(w) {
|
|
1308
|
-
return { M:
|
|
1308
|
+
return { M: h, y: z, w: m, d: k, D: j, h: $, m: g, s: u, ms: d, Q: x }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
1309
1309
|
}, u: function(w) {
|
|
1310
1310
|
return w === void 0;
|
|
1311
|
-
} }, X = "en",
|
|
1312
|
-
|
|
1311
|
+
} }, X = "en", U = {};
|
|
1312
|
+
U[X] = R;
|
|
1313
1313
|
var _1 = function(w) {
|
|
1314
1314
|
return w instanceof o1;
|
|
1315
1315
|
}, n1 = function w(a, i, f) {
|
|
@@ -1318,13 +1318,13 @@ var L1 = { exports: {} };
|
|
|
1318
1318
|
return X;
|
|
1319
1319
|
if (typeof a == "string") {
|
|
1320
1320
|
var p = a.toLowerCase();
|
|
1321
|
-
|
|
1321
|
+
U[p] && (l = p), i && (U[p] = i, l = p);
|
|
1322
1322
|
var v = a.split("-");
|
|
1323
1323
|
if (!l && v.length > 1)
|
|
1324
1324
|
return w(v[0]);
|
|
1325
1325
|
} else {
|
|
1326
1326
|
var y = a.name;
|
|
1327
|
-
|
|
1327
|
+
U[y] = a, l = y;
|
|
1328
1328
|
}
|
|
1329
1329
|
return !f && l && (X = l), l || !f && X;
|
|
1330
1330
|
}, V = function(w, a) {
|
|
@@ -1365,7 +1365,7 @@ var L1 = { exports: {} };
|
|
|
1365
1365
|
}, a.$utils = function() {
|
|
1366
1366
|
return M;
|
|
1367
1367
|
}, a.isValid = function() {
|
|
1368
|
-
return this.$d.toString() !==
|
|
1368
|
+
return this.$d.toString() !== F;
|
|
1369
1369
|
}, a.isSame = function(i, f) {
|
|
1370
1370
|
var l = V(i);
|
|
1371
1371
|
return this.startOf(f) <= l && l <= this.endOf(f);
|
|
@@ -1380,19 +1380,19 @@ var L1 = { exports: {} };
|
|
|
1380
1380
|
}, a.valueOf = function() {
|
|
1381
1381
|
return this.$d.getTime();
|
|
1382
1382
|
}, a.startOf = function(i, f) {
|
|
1383
|
-
var l = this, p = !!M.u(f) || f, v = M.p(i), y = function(
|
|
1384
|
-
var T = M.w(l.$u ? Date.UTC(l.$y, B,
|
|
1383
|
+
var l = this, p = !!M.u(f) || f, v = M.p(i), y = function(W, B) {
|
|
1384
|
+
var T = M.w(l.$u ? Date.UTC(l.$y, B, W) : new Date(l.$y, B, W), l);
|
|
1385
1385
|
return p ? T : T.endOf(k);
|
|
1386
|
-
}, H = function(
|
|
1387
|
-
return M.w(l.toDate()[
|
|
1386
|
+
}, H = function(W, B) {
|
|
1387
|
+
return M.w(l.toDate()[W].apply(l.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), l);
|
|
1388
1388
|
}, b = this.$W, Q = this.$M, q = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
1389
1389
|
switch (v) {
|
|
1390
1390
|
case z:
|
|
1391
1391
|
return p ? y(1, 0) : y(31, 11);
|
|
1392
|
-
case
|
|
1392
|
+
case h:
|
|
1393
1393
|
return p ? y(1, Q) : y(0, Q + 1);
|
|
1394
1394
|
case m:
|
|
1395
|
-
var
|
|
1395
|
+
var E = this.$locale().weekStart || 0, K = (b < E ? b + 7 : b) - E;
|
|
1396
1396
|
return y(p ? q - K : q + (6 - K), Q);
|
|
1397
1397
|
case k:
|
|
1398
1398
|
case j:
|
|
@@ -1409,8 +1409,8 @@ var L1 = { exports: {} };
|
|
|
1409
1409
|
}, a.endOf = function(i) {
|
|
1410
1410
|
return this.startOf(i, !1);
|
|
1411
1411
|
}, a.$set = function(i, f) {
|
|
1412
|
-
var l, p = M.p(i), v = "set" + (this.$u ? "UTC" : ""), y = (l = {}, l[k] = v + "Date", l[j] = v + "Date", l[
|
|
1413
|
-
if (p ===
|
|
1412
|
+
var l, p = M.p(i), v = "set" + (this.$u ? "UTC" : ""), y = (l = {}, l[k] = v + "Date", l[j] = v + "Date", l[h] = v + "Month", l[z] = v + "FullYear", l[$] = v + "Hours", l[g] = v + "Minutes", l[u] = v + "Seconds", l[d] = v + "Milliseconds", l)[p], H = p === k ? this.$D + (f - this.$W) : f;
|
|
1413
|
+
if (p === h || p === z) {
|
|
1414
1414
|
var b = this.clone().set(j, 1);
|
|
1415
1415
|
b.$d[y](H), b.init(), this.$d = b.set(j, Math.min(this.$D, b.daysInMonth())).$d;
|
|
1416
1416
|
} else
|
|
@@ -1427,31 +1427,31 @@ var L1 = { exports: {} };
|
|
|
1427
1427
|
var q = V(p);
|
|
1428
1428
|
return M.w(q.date(q.date() + Math.round(Q * i)), p);
|
|
1429
1429
|
};
|
|
1430
|
-
if (v ===
|
|
1431
|
-
return this.set(
|
|
1430
|
+
if (v === h)
|
|
1431
|
+
return this.set(h, this.$M + i);
|
|
1432
1432
|
if (v === z)
|
|
1433
1433
|
return this.set(z, this.$y + i);
|
|
1434
1434
|
if (v === k)
|
|
1435
1435
|
return y(1);
|
|
1436
1436
|
if (v === m)
|
|
1437
1437
|
return y(7);
|
|
1438
|
-
var H = (l = {}, l[g] = C, l[$] =
|
|
1438
|
+
var H = (l = {}, l[g] = C, l[$] = _, l[u] = r, l)[v] || 1, b = this.$d.getTime() + i * H;
|
|
1439
1439
|
return M.w(b, this);
|
|
1440
1440
|
}, a.subtract = function(i, f) {
|
|
1441
1441
|
return this.add(-1 * i, f);
|
|
1442
1442
|
}, a.format = function(i) {
|
|
1443
1443
|
var f = this, l = this.$locale();
|
|
1444
1444
|
if (!this.isValid())
|
|
1445
|
-
return l.invalidDate ||
|
|
1446
|
-
var p = i || "YYYY-MM-DDTHH:mm:ssZ", v = M.z(this), y = this.$H, H = this.$m, b = this.$M, Q = l.weekdays, q = l.months, G = l.meridiem,
|
|
1445
|
+
return l.invalidDate || F;
|
|
1446
|
+
var p = i || "YYYY-MM-DDTHH:mm:ssZ", v = M.z(this), y = this.$H, H = this.$m, b = this.$M, Q = l.weekdays, q = l.months, G = l.meridiem, E = function(B, T, e1, s1) {
|
|
1447
1447
|
return B && (B[T] || B(f, p)) || e1[T].slice(0, s1);
|
|
1448
1448
|
}, K = function(B) {
|
|
1449
1449
|
return M.s(y % 12 || 12, B, "0");
|
|
1450
|
-
},
|
|
1450
|
+
}, W = G || function(B, T, e1) {
|
|
1451
1451
|
var s1 = B < 12 ? "AM" : "PM";
|
|
1452
1452
|
return e1 ? s1.toLowerCase() : s1;
|
|
1453
1453
|
};
|
|
1454
|
-
return p.replace(
|
|
1454
|
+
return p.replace(Y, function(B, T) {
|
|
1455
1455
|
return T || function(e1) {
|
|
1456
1456
|
switch (e1) {
|
|
1457
1457
|
case "YY":
|
|
@@ -1463,9 +1463,9 @@ var L1 = { exports: {} };
|
|
|
1463
1463
|
case "MM":
|
|
1464
1464
|
return M.s(b + 1, 2, "0");
|
|
1465
1465
|
case "MMM":
|
|
1466
|
-
return
|
|
1466
|
+
return E(l.monthsShort, b, q, 3);
|
|
1467
1467
|
case "MMMM":
|
|
1468
|
-
return
|
|
1468
|
+
return E(q, b);
|
|
1469
1469
|
case "D":
|
|
1470
1470
|
return f.$D;
|
|
1471
1471
|
case "DD":
|
|
@@ -1473,9 +1473,9 @@ var L1 = { exports: {} };
|
|
|
1473
1473
|
case "d":
|
|
1474
1474
|
return String(f.$W);
|
|
1475
1475
|
case "dd":
|
|
1476
|
-
return
|
|
1476
|
+
return E(l.weekdaysMin, f.$W, Q, 2);
|
|
1477
1477
|
case "ddd":
|
|
1478
|
-
return
|
|
1478
|
+
return E(l.weekdaysShort, f.$W, Q, 3);
|
|
1479
1479
|
case "dddd":
|
|
1480
1480
|
return Q[f.$W];
|
|
1481
1481
|
case "H":
|
|
@@ -1487,9 +1487,9 @@ var L1 = { exports: {} };
|
|
|
1487
1487
|
case "hh":
|
|
1488
1488
|
return K(2);
|
|
1489
1489
|
case "a":
|
|
1490
|
-
return
|
|
1490
|
+
return W(y, H, !0);
|
|
1491
1491
|
case "A":
|
|
1492
|
-
return
|
|
1492
|
+
return W(y, H, !1);
|
|
1493
1493
|
case "m":
|
|
1494
1494
|
return String(H);
|
|
1495
1495
|
case "mm":
|
|
@@ -1516,7 +1516,7 @@ var L1 = { exports: {} };
|
|
|
1516
1516
|
case z:
|
|
1517
1517
|
p = q() / 12;
|
|
1518
1518
|
break;
|
|
1519
|
-
case
|
|
1519
|
+
case h:
|
|
1520
1520
|
p = q();
|
|
1521
1521
|
break;
|
|
1522
1522
|
case x:
|
|
@@ -1529,7 +1529,7 @@ var L1 = { exports: {} };
|
|
|
1529
1529
|
p = (Q - b) / 864e5;
|
|
1530
1530
|
break;
|
|
1531
1531
|
case $:
|
|
1532
|
-
p = Q /
|
|
1532
|
+
p = Q / _;
|
|
1533
1533
|
break;
|
|
1534
1534
|
case g:
|
|
1535
1535
|
p = Q / C;
|
|
@@ -1542,9 +1542,9 @@ var L1 = { exports: {} };
|
|
|
1542
1542
|
}
|
|
1543
1543
|
return l ? p : M.a(p);
|
|
1544
1544
|
}, a.daysInMonth = function() {
|
|
1545
|
-
return this.endOf(
|
|
1545
|
+
return this.endOf(h).$D;
|
|
1546
1546
|
}, a.$locale = function() {
|
|
1547
|
-
return
|
|
1547
|
+
return U[this.$L];
|
|
1548
1548
|
}, a.locale = function(i, f) {
|
|
1549
1549
|
if (!i)
|
|
1550
1550
|
return this.$L;
|
|
@@ -1562,7 +1562,7 @@ var L1 = { exports: {} };
|
|
|
1562
1562
|
return this.$d.toUTCString();
|
|
1563
1563
|
}, w;
|
|
1564
1564
|
}(), M1 = o1.prototype;
|
|
1565
|
-
return V.prototype = M1, [["$ms", d], ["$s", u], ["$m", g], ["$H", $], ["$W", k], ["$M",
|
|
1565
|
+
return V.prototype = M1, [["$ms", d], ["$s", u], ["$m", g], ["$H", $], ["$W", k], ["$M", h], ["$y", z], ["$D", j]].forEach(function(w) {
|
|
1566
1566
|
M1[w[1]] = function(a) {
|
|
1567
1567
|
return this.$g(a, w[0], w[1]);
|
|
1568
1568
|
};
|
|
@@ -1570,11 +1570,11 @@ var L1 = { exports: {} };
|
|
|
1570
1570
|
return w.$i || (w(a, o1, V), w.$i = !0), V;
|
|
1571
1571
|
}, V.locale = n1, V.isDayjs = _1, V.unix = function(w) {
|
|
1572
1572
|
return V(1e3 * w);
|
|
1573
|
-
}, V.en =
|
|
1573
|
+
}, V.en = U[X], V.Ls = U, V.p = {}, V;
|
|
1574
1574
|
});
|
|
1575
1575
|
})(L1);
|
|
1576
1576
|
var u9 = L1.exports;
|
|
1577
|
-
const h1 = /* @__PURE__ */ d9(u9), _9 = { class: "q-datetime-picker" }, h9 = ["disabled"], C9 = ["disabled"], f9 = /* @__PURE__ */
|
|
1577
|
+
const h1 = /* @__PURE__ */ d9(u9), _9 = { class: "q-datetime-picker" }, h9 = ["disabled"], C9 = ["disabled"], f9 = /* @__PURE__ */ A({
|
|
1578
1578
|
__name: "QDatetimePicker",
|
|
1579
1579
|
props: {
|
|
1580
1580
|
modelValue: {
|
|
@@ -1588,21 +1588,21 @@ const h1 = /* @__PURE__ */ d9(u9), _9 = { class: "q-datetime-picker" }, h9 = ["d
|
|
|
1588
1588
|
},
|
|
1589
1589
|
emits: ["update:modelValue", "change"],
|
|
1590
1590
|
setup(e, { emit: t }) {
|
|
1591
|
-
const r = e, C = S(""),
|
|
1592
|
-
|
|
1591
|
+
const r = e, C = S(""), _ = S("");
|
|
1592
|
+
N(
|
|
1593
1593
|
() => r.modelValue,
|
|
1594
1594
|
(u) => {
|
|
1595
1595
|
const g = h1(u);
|
|
1596
|
-
C.value = g.format("YYYY-MM-DD"),
|
|
1596
|
+
C.value = g.format("YYYY-MM-DD"), _.value = g.format("HH:mm");
|
|
1597
1597
|
}
|
|
1598
1598
|
);
|
|
1599
1599
|
function d() {
|
|
1600
|
-
const u = h1(`${C.value} ${
|
|
1600
|
+
const u = h1(`${C.value} ${_.value}`).format("YYYY-MM-DDTHH:mm:ssZ");
|
|
1601
1601
|
t("change", u), t("update:modelValue", u);
|
|
1602
1602
|
}
|
|
1603
1603
|
return d1(() => {
|
|
1604
1604
|
const u = h1();
|
|
1605
|
-
C.value = u.format("YYYY-MM-DD"),
|
|
1605
|
+
C.value = u.format("YYYY-MM-DD"), _.value = u.format("HH:mm");
|
|
1606
1606
|
}), (u, g) => (n(), s("div", _9, [
|
|
1607
1607
|
i1(o("input", {
|
|
1608
1608
|
"onUpdate:modelValue": g[0] || (g[0] = ($) => C.value = $),
|
|
@@ -1613,42 +1613,42 @@ const h1 = /* @__PURE__ */ d9(u9), _9 = { class: "q-datetime-picker" }, h9 = ["d
|
|
|
1613
1613
|
[C1, C.value]
|
|
1614
1614
|
]),
|
|
1615
1615
|
i1(o("input", {
|
|
1616
|
-
"onUpdate:modelValue": g[1] || (g[1] = ($) =>
|
|
1616
|
+
"onUpdate:modelValue": g[1] || (g[1] = ($) => _.value = $),
|
|
1617
1617
|
type: "time",
|
|
1618
1618
|
disabled: e.disabled,
|
|
1619
1619
|
onChange: d
|
|
1620
1620
|
}, null, 40, C9), [
|
|
1621
|
-
[C1,
|
|
1621
|
+
[C1, _.value]
|
|
1622
1622
|
])
|
|
1623
1623
|
]));
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
1626
|
function g9() {
|
|
1627
1627
|
function e() {
|
|
1628
|
-
const r = !!window.ActiveXObject || "ActiveXObject" in window, C = navigator.userAgent.indexOf("Edge") > -1,
|
|
1628
|
+
const r = !!window.ActiveXObject || "ActiveXObject" in window, C = navigator.userAgent.indexOf("Edge") > -1, _ = navigator.userAgent.indexOf("Chrome") > -1, d = navigator.userAgent.indexOf("Firefox") > -1, u = navigator.userAgent.indexOf("Safari") > -1, g = navigator.userAgent.indexOf("Opera") > -1, $ = navigator.userAgent.indexOf("MicroMessenger") > -1, k = !!navigator.userAgent.match(/AppleWebKit.*Mobile.*/), m = navigator.userAgent.indexOf("Android") > -1 || navigator.userAgent.indexOf("Adr") > -1, h = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), x = navigator.userAgent.indexOf("iPad") > -1, z = navigator.userAgent.indexOf("iPhone") > -1, j = navigator.userAgent.indexOf("Macintosh") > -1, F = navigator.userAgent.indexOf("Windows") > -1, L = navigator.userAgent.indexOf("Linux") > -1;
|
|
1629
1629
|
return {
|
|
1630
1630
|
isIE: r,
|
|
1631
1631
|
isEdge: C,
|
|
1632
|
-
isChrome:
|
|
1632
|
+
isChrome: _,
|
|
1633
1633
|
isFirefox: d,
|
|
1634
1634
|
isSafari: u,
|
|
1635
1635
|
isOpera: g,
|
|
1636
1636
|
isWeixin: $,
|
|
1637
1637
|
isMobile: k,
|
|
1638
1638
|
isAndroid: m,
|
|
1639
|
-
isIOS:
|
|
1639
|
+
isIOS: h,
|
|
1640
1640
|
isIpad: x,
|
|
1641
1641
|
isIphone: z,
|
|
1642
1642
|
isMac: j,
|
|
1643
|
-
isWindows:
|
|
1643
|
+
isWindows: F,
|
|
1644
1644
|
isLinux: L
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
function t(r, C) {
|
|
1648
|
-
let
|
|
1648
|
+
let _;
|
|
1649
1649
|
return function(...d) {
|
|
1650
1650
|
const u = this;
|
|
1651
|
-
clearTimeout(
|
|
1651
|
+
clearTimeout(_), _ = setTimeout(() => {
|
|
1652
1652
|
r.apply(u, d);
|
|
1653
1653
|
}, C);
|
|
1654
1654
|
};
|
|
@@ -1661,7 +1661,7 @@ function g9() {
|
|
|
1661
1661
|
const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 = { class: "q-dialog-header" }, m9 = {
|
|
1662
1662
|
key: 0,
|
|
1663
1663
|
class: "q-dialog-title"
|
|
1664
|
-
}, M9 = { class: "q-dialog-body" }, k9 = /* @__PURE__ */
|
|
1664
|
+
}, M9 = { class: "q-dialog-body" }, k9 = /* @__PURE__ */ A({
|
|
1665
1665
|
__name: "QDialog",
|
|
1666
1666
|
props: {
|
|
1667
1667
|
modelValue: Boolean,
|
|
@@ -1697,27 +1697,27 @@ const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 =
|
|
|
1697
1697
|
},
|
|
1698
1698
|
emits: ["update:modelValue", "close"],
|
|
1699
1699
|
setup(e, { emit: t }) {
|
|
1700
|
-
const r = e, { browserDetect: C } = g9(), { isMobile:
|
|
1701
|
-
const L = document.body.clientWidth < 720 ? "100%" : r.width,
|
|
1700
|
+
const r = e, { browserDetect: C } = g9(), { isMobile: _ } = C(), d = S(!1), u = S(r.modelValue), g = S({ top: "0", left: "0" }), $ = S(null), k = S(null), m = I(() => !_ && r.desktopMode === "popup"), h = I(() => {
|
|
1701
|
+
const L = document.body.clientWidth < 720 ? "100%" : r.width, Y = r.height, R = {
|
|
1702
1702
|
width: L,
|
|
1703
|
-
height:
|
|
1703
|
+
height: Y
|
|
1704
1704
|
};
|
|
1705
|
-
return m.value && (
|
|
1705
|
+
return m.value && (R.top = g.value.top, R.left = g.value.left), R;
|
|
1706
1706
|
}), x = I(() => {
|
|
1707
1707
|
let L = [];
|
|
1708
|
-
return d.value && L.push("shaking"),
|
|
1708
|
+
return d.value && L.push("shaking"), _ || L.push(`desktop-mode-${r.desktopMode}`), r.noFrame && L.push("no-frame"), L.join(" ");
|
|
1709
1709
|
}), z = I(() => {
|
|
1710
1710
|
let L = [];
|
|
1711
1711
|
return m.value && L.push("desktop-mode-popup"), L.join(" ");
|
|
1712
1712
|
});
|
|
1713
|
-
|
|
1713
|
+
N(
|
|
1714
1714
|
() => r.modelValue,
|
|
1715
1715
|
(L) => {
|
|
1716
1716
|
u.value = L, V1(() => {
|
|
1717
|
-
if (!
|
|
1718
|
-
const
|
|
1719
|
-
if (
|
|
1720
|
-
const
|
|
1717
|
+
if (!_ && r.desktopMode === "popup" && $.value.children) {
|
|
1718
|
+
const Y = $.value.children[0];
|
|
1719
|
+
if (Y) {
|
|
1720
|
+
const J = Y.getBoundingClientRect().height + 8, u1 = 0;
|
|
1721
1721
|
g.value = { top: `${J}px`, left: `${u1}px` };
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
@@ -1733,35 +1733,36 @@ const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 =
|
|
|
1733
1733
|
}
|
|
1734
1734
|
u.value = !1, t("update:modelValue", !1), t("close");
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function F() {
|
|
1737
1737
|
}
|
|
1738
1738
|
return d1(() => {
|
|
1739
1739
|
r.desktopMode === "popup" && window.addEventListener("storage", (L) => {
|
|
1740
1740
|
L.key === "quailui_global_popup_trigger" && L.newValue && j();
|
|
1741
1741
|
});
|
|
1742
|
-
}), (L,
|
|
1742
|
+
}), (L, Y) => (n(), s(m1, null, [
|
|
1743
1743
|
o("div", {
|
|
1744
|
-
class: "trigger-wrapper",
|
|
1744
|
+
class: "q-dialog-trigger-wrapper",
|
|
1745
1745
|
ref_key: "triggerWrapper",
|
|
1746
1746
|
ref: $
|
|
1747
1747
|
}, [
|
|
1748
|
-
t1(L.$slots, "trigger")
|
|
1748
|
+
t1(L.$slots, "trigger"),
|
|
1749
|
+
m.value ? (n(), Z(f1, { key: 0 }, {
|
|
1750
|
+
default: g1(() => [
|
|
1751
|
+
u.value ? (n(), s("div", {
|
|
1752
|
+
key: 0,
|
|
1753
|
+
class: D(["q-dialog", x.value]),
|
|
1754
|
+
style: w1(h.value),
|
|
1755
|
+
onClick: p1(F, ["stop"])
|
|
1756
|
+
}, [
|
|
1757
|
+
o("div", p9, [
|
|
1758
|
+
t1(L.$slots, "default")
|
|
1759
|
+
])
|
|
1760
|
+
], 14, w9)) : O("", !0)
|
|
1761
|
+
]),
|
|
1762
|
+
_: 3
|
|
1763
|
+
})) : O("", !0)
|
|
1749
1764
|
], 512),
|
|
1750
|
-
m.value ? (n(), Z(f1, { key: 0 }, {
|
|
1751
|
-
default: g1(() => [
|
|
1752
|
-
u.value ? (n(), s("div", {
|
|
1753
|
-
key: 0,
|
|
1754
|
-
class: D(["q-dialog", x.value]),
|
|
1755
|
-
style: w1(_.value),
|
|
1756
|
-
onClick: p1(Y, ["stop"])
|
|
1757
|
-
}, [
|
|
1758
|
-
o("div", p9, [
|
|
1759
|
-
t1(L.$slots, "default")
|
|
1760
|
-
])
|
|
1761
|
-
], 14, w9)) : F("", !0)
|
|
1762
|
-
]),
|
|
1763
|
-
_: 3
|
|
1764
|
-
})) : (n(), Z(f1, { key: 1 }, {
|
|
1765
|
+
m.value ? O("", !0) : (n(), Z(f1, { key: 0 }, {
|
|
1765
1766
|
default: g1(() => [
|
|
1766
1767
|
u.value ? (n(), s("div", {
|
|
1767
1768
|
key: 0,
|
|
@@ -1772,8 +1773,8 @@ const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 =
|
|
|
1772
1773
|
}, [
|
|
1773
1774
|
o("div", {
|
|
1774
1775
|
class: D(["q-dialog", x.value]),
|
|
1775
|
-
style: w1(
|
|
1776
|
-
onClick: p1(
|
|
1776
|
+
style: w1(h.value),
|
|
1777
|
+
onClick: p1(F, ["stop"])
|
|
1777
1778
|
}, [
|
|
1778
1779
|
o("div", $9, [
|
|
1779
1780
|
e.title ? (n(), s("div", m9, P(e.title), 1)) : t1(L.$slots, "header", { key: 1 })
|
|
@@ -1782,7 +1783,7 @@ const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 =
|
|
|
1782
1783
|
t1(L.$slots, "default")
|
|
1783
1784
|
])
|
|
1784
1785
|
], 14, v9)
|
|
1785
|
-
], 2)) :
|
|
1786
|
+
], 2)) : O("", !0)
|
|
1786
1787
|
]),
|
|
1787
1788
|
_: 3
|
|
1788
1789
|
}))
|
|
@@ -1792,7 +1793,7 @@ const w9 = ["onClick"], p9 = { class: "q-dialog-body" }, v9 = ["onClick"], $9 =
|
|
|
1792
1793
|
const x9 = ["href"], y9 = { class: "q-fence-text" }, L9 = {
|
|
1793
1794
|
key: 1,
|
|
1794
1795
|
class: "q-fence-inner"
|
|
1795
|
-
}, H9 = { class: "q-fence-text" }, V9 = /* @__PURE__ */
|
|
1796
|
+
}, H9 = { class: "q-fence-text" }, V9 = /* @__PURE__ */ A({
|
|
1796
1797
|
__name: "QFence",
|
|
1797
1798
|
props: {
|
|
1798
1799
|
link: {
|
|
@@ -1814,7 +1815,7 @@ const x9 = ["href"], y9 = { class: "q-fence-text" }, L9 = {
|
|
|
1814
1815
|
setup(e) {
|
|
1815
1816
|
var r;
|
|
1816
1817
|
const t = (r = b1()) == null ? void 0 : r.appContext.components;
|
|
1817
|
-
return (C,
|
|
1818
|
+
return (C, _) => (n(), s("div", {
|
|
1818
1819
|
class: D(["q-fence", e.type])
|
|
1819
1820
|
}, [
|
|
1820
1821
|
e.link ? (n(), s("a", {
|
|
@@ -1862,7 +1863,7 @@ const S9 = /* @__PURE__ */ c(b9, [["render", B9]]), j9 = { class: "q-menu" }, q9
|
|
|
1862
1863
|
}, O9 = ["src", "alt"], A9 = { class: "q-menu-item-content" }, P9 = { class: "q-menu-title" }, T9 = {
|
|
1863
1864
|
key: 0,
|
|
1864
1865
|
class: "q-menu-subtitle"
|
|
1865
|
-
}, F9 = /* @__PURE__ */
|
|
1866
|
+
}, F9 = /* @__PURE__ */ A({
|
|
1866
1867
|
__name: "QMenu",
|
|
1867
1868
|
props: {
|
|
1868
1869
|
items: {
|
|
@@ -1877,14 +1878,14 @@ const S9 = /* @__PURE__ */ c(b9, [["render", B9]]), j9 = { class: "q-menu" }, q9
|
|
|
1877
1878
|
let u = "";
|
|
1878
1879
|
return d.disabled && (u += " disabled"), d.danger && (u += " danger"), d.icon && (u += " with-icon"), d.image && (u += " with-image"), d.divider && (u += " with-divider"), u;
|
|
1879
1880
|
}
|
|
1880
|
-
function
|
|
1881
|
+
function _(d) {
|
|
1881
1882
|
d.action && d.action(d), d.disabled !== !0 && t("action", d);
|
|
1882
1883
|
}
|
|
1883
1884
|
return (d, u) => (n(), s("div", j9, [
|
|
1884
1885
|
(n(!0), s(m1, null, k1(r.items, (g) => (n(), s("div", {
|
|
1885
1886
|
class: D(["q-menu-item", C(g)]),
|
|
1886
1887
|
key: `q-menu-item-${g.id}`,
|
|
1887
|
-
onClick: ($) =>
|
|
1888
|
+
onClick: ($) => _(g)
|
|
1888
1889
|
}, [
|
|
1889
1890
|
g.divider ? (n(), s("div", D9)) : (n(), s("div", Z9, [
|
|
1890
1891
|
g.image ? (n(), s("img", {
|
|
@@ -1895,17 +1896,17 @@ const S9 = /* @__PURE__ */ c(b9, [["render", B9]]), j9 = { class: "q-menu" }, q9
|
|
|
1895
1896
|
}, null, 8, O9)) : g.icon ? (n(), Z(c1(g.icon), {
|
|
1896
1897
|
key: 1,
|
|
1897
1898
|
class: "q-menu-icon"
|
|
1898
|
-
})) :
|
|
1899
|
+
})) : O("", !0),
|
|
1899
1900
|
o("div", A9, [
|
|
1900
1901
|
o("div", P9, P(g.title), 1),
|
|
1901
|
-
g.subtitle ? (n(), s("div", T9, P(g.subtitle), 1)) :
|
|
1902
|
+
g.subtitle ? (n(), s("div", T9, P(g.subtitle), 1)) : O("", !0)
|
|
1902
1903
|
])
|
|
1903
1904
|
]))
|
|
1904
1905
|
], 10, q9))), 128))
|
|
1905
1906
|
]));
|
|
1906
1907
|
}
|
|
1907
1908
|
});
|
|
1908
|
-
const Y9 = ["disabled"], U9 = /* @__PURE__ */ o("div", { class: "q-switch-inner" }, null, -1), E9 = /* @__PURE__ */
|
|
1909
|
+
const Y9 = ["disabled"], U9 = /* @__PURE__ */ o("div", { class: "q-switch-inner" }, null, -1), E9 = /* @__PURE__ */ A({
|
|
1909
1910
|
__name: "QSwitch",
|
|
1910
1911
|
props: {
|
|
1911
1912
|
modelValue: {
|
|
@@ -1920,10 +1921,10 @@ const Y9 = ["disabled"], U9 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1920
1921
|
emits: ["update:modelValue", "change"],
|
|
1921
1922
|
setup(e, { emit: t }) {
|
|
1922
1923
|
const r = e, C = S(r.modelValue);
|
|
1923
|
-
|
|
1924
|
+
N(() => r.modelValue, (d) => {
|
|
1924
1925
|
C.value = d;
|
|
1925
1926
|
});
|
|
1926
|
-
function
|
|
1927
|
+
function _(d) {
|
|
1927
1928
|
t("update:modelValue", C.value), t("change", C.value);
|
|
1928
1929
|
}
|
|
1929
1930
|
return (d, u) => (n(), s("label", {
|
|
@@ -1933,7 +1934,7 @@ const Y9 = ["disabled"], U9 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1933
1934
|
class: "q-switch-checkbox",
|
|
1934
1935
|
type: "checkbox",
|
|
1935
1936
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => C.value = g),
|
|
1936
|
-
onChange:
|
|
1937
|
+
onChange: _,
|
|
1937
1938
|
disabled: r.disabled
|
|
1938
1939
|
}, null, 40, Y9), [
|
|
1939
1940
|
[z1, C.value]
|
|
@@ -1945,7 +1946,7 @@ const Y9 = ["disabled"], U9 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1945
1946
|
const W9 = { class: "q-text-field-wrapper" }, N9 = ["placeholder"], R9 = { class: "q-text-button-wrapper" }, G9 = ["disabled"], J9 = {
|
|
1946
1947
|
key: 0,
|
|
1947
1948
|
class: "q-button-glow"
|
|
1948
|
-
}, X9 = /* @__PURE__ */
|
|
1949
|
+
}, X9 = /* @__PURE__ */ A({
|
|
1949
1950
|
__name: "QTextFieldWithButton",
|
|
1950
1951
|
props: {
|
|
1951
1952
|
modelValue: {
|
|
@@ -1979,23 +1980,23 @@ const W9 = { class: "q-text-field-wrapper" }, N9 = ["placeholder"], R9 = { class
|
|
|
1979
1980
|
},
|
|
1980
1981
|
emits: ["submit", "update:modelValue"],
|
|
1981
1982
|
setup(e, { emit: t }) {
|
|
1982
|
-
const r = e, C = S(r.defaultText),
|
|
1983
|
-
const
|
|
1984
|
-
return r.layout === "vertical" ?
|
|
1983
|
+
const r = e, C = S(r.defaultText), _ = I(() => {
|
|
1984
|
+
const h = [];
|
|
1985
|
+
return r.layout === "vertical" ? h.push("vertical") : h.push("horizontal"), r.type === "code" && h.push("code"), r.glow && h.push(`glow-${r.glow}`), h.join(" ");
|
|
1985
1986
|
}), d = I(() => {
|
|
1986
1987
|
var x;
|
|
1987
1988
|
return r.loading || ((x = C.value) == null ? void 0 : x.trim()).length === 0 ? !1 : r.type === "email" ? u.value : r.type === "code" ? g.value : !0;
|
|
1988
1989
|
}), u = I(() => {
|
|
1989
1990
|
var x;
|
|
1990
|
-
const
|
|
1991
|
-
return !r.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(
|
|
1991
|
+
const h = (x = C.value) == null ? void 0 : x.trim();
|
|
1992
|
+
return !r.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h);
|
|
1992
1993
|
}), g = I(() => {
|
|
1993
1994
|
var x;
|
|
1994
|
-
const
|
|
1995
|
-
return /^\d{6}$/.test(
|
|
1995
|
+
const h = (x = C.value) == null ? void 0 : x.trim();
|
|
1996
|
+
return /^\d{6}$/.test(h);
|
|
1996
1997
|
}), $ = I(() => r.loading ? "Loading..." : r.actionLabel);
|
|
1997
|
-
|
|
1998
|
-
C.value =
|
|
1998
|
+
N(() => r.modelValue, (h) => {
|
|
1999
|
+
C.value = h;
|
|
1999
2000
|
});
|
|
2000
2001
|
function k() {
|
|
2001
2002
|
d.value && t("submit", { text: C.value });
|
|
@@ -2003,8 +2004,8 @@ const W9 = { class: "q-text-field-wrapper" }, N9 = ["placeholder"], R9 = { class
|
|
|
2003
2004
|
function m() {
|
|
2004
2005
|
t("update:modelValue", C.value);
|
|
2005
2006
|
}
|
|
2006
|
-
return (
|
|
2007
|
-
class: D(["q-text-field-with-button",
|
|
2007
|
+
return (h, x) => (n(), s("div", {
|
|
2008
|
+
class: D(["q-text-field-with-button", _.value])
|
|
2008
2009
|
}, [
|
|
2009
2010
|
o("div", W9, [
|
|
2010
2011
|
i1(o("input", {
|
|
@@ -2023,7 +2024,7 @@ const W9 = { class: "q-text-field-wrapper" }, N9 = ["placeholder"], R9 = { class
|
|
|
2023
2024
|
onClick: k
|
|
2024
2025
|
}, P($.value), 9, G9)
|
|
2025
2026
|
]),
|
|
2026
|
-
e.glow !== "" ? (n(), s("div", J9)) :
|
|
2027
|
+
e.glow !== "" ? (n(), s("div", J9)) : O("", !0)
|
|
2027
2028
|
], 2));
|
|
2028
2029
|
}
|
|
2029
2030
|
});
|
|
@@ -2038,7 +2039,7 @@ function H1() {
|
|
|
2038
2039
|
const K9 = { class: "q-dropdown-menu" }, e5 = { class: "q-dropdown-menu-inner narrow-view" }, t5 = ["onClick"], n5 = {
|
|
2039
2040
|
key: 0,
|
|
2040
2041
|
class: "q-dropdown-selected"
|
|
2041
|
-
}, o5 = ["src", "alt"], s5 = { class: "menu-title" }, r5 = /* @__PURE__ */
|
|
2042
|
+
}, o5 = ["src", "alt"], s5 = { class: "menu-title" }, r5 = /* @__PURE__ */ A({
|
|
2042
2043
|
__name: "QDropdownMenu",
|
|
2043
2044
|
props: {
|
|
2044
2045
|
items: {
|
|
@@ -2064,29 +2065,29 @@ const K9 = { class: "q-dropdown-menu" }, e5 = { class: "q-dropdown-menu-inner na
|
|
|
2064
2065
|
},
|
|
2065
2066
|
emits: ["change"],
|
|
2066
2067
|
setup(e, { emit: t }) {
|
|
2067
|
-
const r = e, C = Q1(),
|
|
2068
|
-
const
|
|
2069
|
-
return
|
|
2068
|
+
const r = e, C = Q1(), _ = S(!1), d = S(null), u = S(null), g = I(() => {
|
|
2069
|
+
const h = [];
|
|
2070
|
+
return _.value && h.push("expanded"), r.variant === "outlined" && h.push("frame"), r.hideSelected && h.push("hide-selected"), d.value && (d.value.icon || d.value.image) ? h.push("prepend") : h.push("no-prepend"), h.join(" ");
|
|
2070
2071
|
}), $ = I(() => C.default !== void 0);
|
|
2071
2072
|
function k() {
|
|
2072
|
-
|
|
2073
|
+
_.value || H1(), _.value = !_.value, _.value && setTimeout(() => {
|
|
2073
2074
|
const x = u.value.querySelector(".q-menu");
|
|
2074
2075
|
x.getBoundingClientRect().left < 0 && (x.style.left = "0");
|
|
2075
2076
|
}, 10);
|
|
2076
2077
|
}
|
|
2077
|
-
function m(
|
|
2078
|
-
|
|
2078
|
+
function m(h) {
|
|
2079
|
+
_.value = !1, d.value = h, t("change", h);
|
|
2079
2080
|
}
|
|
2080
|
-
return
|
|
2081
|
+
return N(
|
|
2081
2082
|
() => r.initialItem,
|
|
2082
2083
|
() => {
|
|
2083
2084
|
r.initialItem && (d.value = r.initialItem);
|
|
2084
2085
|
}
|
|
2085
2086
|
), d1(() => {
|
|
2086
|
-
r.initialItem && (d.value = r.initialItem), window.addEventListener("storage", (
|
|
2087
|
-
|
|
2087
|
+
r.initialItem && (d.value = r.initialItem), window.addEventListener("storage", (h) => {
|
|
2088
|
+
h.key === "quailui_global_popup_trigger" && h.newValue && (_.value = !1);
|
|
2088
2089
|
});
|
|
2089
|
-
}), (
|
|
2090
|
+
}), (h, x) => {
|
|
2090
2091
|
const z = v1("q-icon-chevron-down"), j = v1("q-menu");
|
|
2091
2092
|
return n(), s("div", K9, [
|
|
2092
2093
|
o("div", e5, [
|
|
@@ -2103,10 +2104,10 @@ const K9 = { class: "q-dropdown-menu" }, e5 = { class: "q-dropdown-menu-inner na
|
|
|
2103
2104
|
}, null, 8, o5)) : d.value.icon ? (n(), Z(c1(d.value.icon), {
|
|
2104
2105
|
key: 1,
|
|
2105
2106
|
class: "icon menu-icon"
|
|
2106
|
-
})) :
|
|
2107
|
+
})) : O("", !0),
|
|
2107
2108
|
o("div", s5, P(d.value ? d.value.title : r.placeholder || "Select ..."), 1)
|
|
2108
|
-
])) :
|
|
2109
|
-
t1(
|
|
2109
|
+
])) : O("", !0),
|
|
2110
|
+
t1(h.$slots, "default"),
|
|
2110
2111
|
l1(z, { class: "icon chevron-icon" })
|
|
2111
2112
|
], 10, t5),
|
|
2112
2113
|
o("div", {
|
|
@@ -2115,11 +2116,11 @@ const K9 = { class: "q-dropdown-menu" }, e5 = { class: "q-dropdown-menu-inner na
|
|
|
2115
2116
|
}, [
|
|
2116
2117
|
l1(f1, null, {
|
|
2117
2118
|
default: g1(() => [
|
|
2118
|
-
|
|
2119
|
+
_.value ? (n(), Z(j, {
|
|
2119
2120
|
key: 0,
|
|
2120
2121
|
items: e.items,
|
|
2121
2122
|
onAction: m
|
|
2122
|
-
}, null, 8, ["items"])) :
|
|
2123
|
+
}, null, 8, ["items"])) : O("", !0)
|
|
2123
2124
|
]),
|
|
2124
2125
|
_: 1
|
|
2125
2126
|
})
|
|
@@ -2135,7 +2136,7 @@ const i5 = { class: "q-pagination" }, c5 = ["disabled"], l5 = {
|
|
|
2135
2136
|
}, a5 = { class: "q-page-indicator" }, d5 = ["disabled", "onClick"], u5 = {
|
|
2136
2137
|
key: 1,
|
|
2137
2138
|
class: "q-page-indicator-simple"
|
|
2138
|
-
}, _5 = { class: "" }, h5 = ["disabled"], C5 = /* @__PURE__ */
|
|
2139
|
+
}, _5 = { class: "" }, h5 = ["disabled"], C5 = /* @__PURE__ */ A({
|
|
2139
2140
|
__name: "QPagination",
|
|
2140
2141
|
props: {
|
|
2141
2142
|
modelValue: {
|
|
@@ -2166,25 +2167,25 @@ const i5 = { class: "q-pagination" }, c5 = ["disabled"], l5 = {
|
|
|
2166
2167
|
k.push({ label: m });
|
|
2167
2168
|
else {
|
|
2168
2169
|
k.push({ label: 1 });
|
|
2169
|
-
let m =
|
|
2170
|
-
m < 2 && (m = 2,
|
|
2171
|
-
for (let x = m; x <=
|
|
2170
|
+
let m = _.value - 2, h = _.value + 2;
|
|
2171
|
+
m < 2 && (m = 2, h = m + $ - 2), h > r.totalPage - 1 && (h = r.totalPage - 1, m = h - $ + 2), m > 2 && k.push({ label: "…", disabled: !0 });
|
|
2172
|
+
for (let x = m; x <= h; x++)
|
|
2172
2173
|
k.push({ label: x });
|
|
2173
|
-
|
|
2174
|
+
h < r.totalPage - 1 && k.push({ label: "…", disabled: !0 }), k.push({ label: r.totalPage });
|
|
2174
2175
|
}
|
|
2175
2176
|
return k;
|
|
2176
|
-
}),
|
|
2177
|
-
|
|
2178
|
-
|
|
2177
|
+
}), _ = S(r.modelValue);
|
|
2178
|
+
N(() => r.modelValue, ($) => {
|
|
2179
|
+
_.value = $;
|
|
2179
2180
|
});
|
|
2180
2181
|
function d() {
|
|
2181
|
-
|
|
2182
|
+
_.value--, t("change:prev", _.value), t("update:modelValue", _.value);
|
|
2182
2183
|
}
|
|
2183
2184
|
function u() {
|
|
2184
|
-
|
|
2185
|
+
_.value++, t("change:next", _.value), t("update:modelValue", _.value);
|
|
2185
2186
|
}
|
|
2186
2187
|
function g($, k) {
|
|
2187
|
-
k.disabled || (
|
|
2188
|
+
k.disabled || (_.value = $, t("change:goto", _.value), t("update:modelValue", _.value));
|
|
2188
2189
|
}
|
|
2189
2190
|
return ($, k) => (n(), s("div", i5, [
|
|
2190
2191
|
o("button", {
|
|
@@ -2197,9 +2198,9 @@ const i5 = { class: "q-pagination" }, c5 = ["disabled"], l5 = {
|
|
|
2197
2198
|
e.totalPage !== 0 ? (n(), s("div", l5, [
|
|
2198
2199
|
(n(!0), s(m1, null, k1(C.value, (m) => (n(), s("div", a5, [
|
|
2199
2200
|
o("button", {
|
|
2200
|
-
class: D(["q-page-indicator q-button button sm plain", m.label ===
|
|
2201
|
+
class: D(["q-page-indicator q-button button sm plain", m.label === _.value ? "active" : ""]),
|
|
2201
2202
|
disabled: m.disabled,
|
|
2202
|
-
onClick: (
|
|
2203
|
+
onClick: (h) => g(m.label, m)
|
|
2203
2204
|
}, P(m.label), 11, d5)
|
|
2204
2205
|
]))), 256))
|
|
2205
2206
|
])) : (n(), s("div", u5, [
|
|
@@ -2217,7 +2218,7 @@ const i5 = { class: "q-pagination" }, c5 = ["disabled"], l5 = {
|
|
|
2217
2218
|
});
|
|
2218
2219
|
const f5 = { class: "q-progress-slot" }, g5 = /* @__PURE__ */ o("div", { class: "q-progress-bar-inner" }, null, -1), w5 = [
|
|
2219
2220
|
g5
|
|
2220
|
-
], p5 = /* @__PURE__ */
|
|
2221
|
+
], p5 = /* @__PURE__ */ A({
|
|
2221
2222
|
__name: "QProgress",
|
|
2222
2223
|
props: {
|
|
2223
2224
|
infinite: {
|
|
@@ -2239,7 +2240,7 @@ const f5 = { class: "q-progress-slot" }, g5 = /* @__PURE__ */ o("div", { class:
|
|
|
2239
2240
|
},
|
|
2240
2241
|
setup(e) {
|
|
2241
2242
|
const t = e, r = I(() => t.infinite ? "100%" : `${t.value / t.max * 100}%`), C = I(() => t.value >= t.max);
|
|
2242
|
-
return (
|
|
2243
|
+
return (_, d) => (n(), s("div", {
|
|
2243
2244
|
class: D(["q-progress", e.color])
|
|
2244
2245
|
}, [
|
|
2245
2246
|
o("div", f5, [
|
|
@@ -2251,7 +2252,7 @@ const f5 = { class: "q-progress-slot" }, g5 = /* @__PURE__ */ o("div", { class:
|
|
|
2251
2252
|
], 2));
|
|
2252
2253
|
}
|
|
2253
2254
|
});
|
|
2254
|
-
const v5 = /* @__PURE__ */
|
|
2255
|
+
const v5 = /* @__PURE__ */ A({
|
|
2255
2256
|
__name: "QLanguageSelector",
|
|
2256
2257
|
props: {
|
|
2257
2258
|
lang: {
|
|
@@ -2273,7 +2274,7 @@ const v5 = /* @__PURE__ */ O({
|
|
|
2273
2274
|
},
|
|
2274
2275
|
emits: ["change"],
|
|
2275
2276
|
setup(e, { emit: t }) {
|
|
2276
|
-
const r = e, C = S(null),
|
|
2277
|
+
const r = e, C = S(null), _ = I(() => {
|
|
2277
2278
|
let u = [
|
|
2278
2279
|
{
|
|
2279
2280
|
title_flag: "🇺🇸 English",
|
|
@@ -2316,14 +2317,14 @@ const v5 = /* @__PURE__ */ O({
|
|
|
2316
2317
|
value: u.value
|
|
2317
2318
|
});
|
|
2318
2319
|
}
|
|
2319
|
-
return
|
|
2320
|
-
C.value =
|
|
2320
|
+
return N(() => r.lang, (u) => {
|
|
2321
|
+
C.value = _.value.find((g) => u === g.value);
|
|
2321
2322
|
}), d1(() => {
|
|
2322
|
-
C.value =
|
|
2323
|
+
C.value = _.value.find((u) => r.lang === u.value || localStorage.getItem("quail-language") === u.value) || _.value[0];
|
|
2323
2324
|
}), (u, g) => {
|
|
2324
2325
|
const $ = v1("QDropdownMenu");
|
|
2325
2326
|
return n(), Z($, {
|
|
2326
|
-
items:
|
|
2327
|
+
items: _.value,
|
|
2327
2328
|
"initial-item": C.value
|
|
2328
2329
|
}, null, 8, ["items", "initial-item"]);
|
|
2329
2330
|
};
|