quail-ui 0.2.21 → 0.2.22
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 +199 -189
- 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 s, createElementVNode as o, createStaticVNode as o1, defineComponent as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as o1, defineComponent as j, ref as Q, watch as G, onMounted as u1, withDirectives as t1, vModelText as c1, computed as B, createBlock as O, Transition as h1, withCtx as C1, normalizeClass as I, normalizeStyle as f1, withModifiers as w1, toDisplayString as S, renderSlot as l1, createCommentVNode as U, getCurrentInstance as H1, resolveComponent as d1, unref as X, resolveDynamicComponent as e1, Fragment as p1, renderList as g1, vModelCheckbox as V1, createVNode as n1 } from "vue";
|
|
2
2
|
const c = (t, e) => {
|
|
3
3
|
const d = t.__vccOpts || t;
|
|
4
4
|
for (const [_, u] of e)
|
|
@@ -1231,7 +1231,7 @@ var m1 = { exports: {} };
|
|
|
1231
1231
|
(function(d, _) {
|
|
1232
1232
|
t.exports = _();
|
|
1233
1233
|
})(Y9, function() {
|
|
1234
|
-
var d = 1e3, _ = 6e4, u = 36e5, $ = "millisecond", v = "second",
|
|
1234
|
+
var d = 1e3, _ = 6e4, u = 36e5, $ = "millisecond", v = "second", p = "minute", m = "hour", h = "day", g = "week", x = "month", D = "quarter", Z = "year", A = "date", a1 = "Invalid Date", k1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x1 = /\[([^\]]+)]|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, L1 = { 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(C) {
|
|
1235
1235
|
var l = ["th", "st", "nd", "rd"], r = C % 100;
|
|
1236
1236
|
return "[" + C + (l[(r - 20) % 10] || l[r] || l[0]) + "]";
|
|
1237
1237
|
} }, s1 = function(C, l, r) {
|
|
@@ -1243,12 +1243,12 @@ var m1 = { exports: {} };
|
|
|
1243
1243
|
}, m: function C(l, r) {
|
|
1244
1244
|
if (l.date() < r.date())
|
|
1245
1245
|
return -C(r, l);
|
|
1246
|
-
var a = 12 * (r.year() - l.year()) + (r.month() - l.month()), i = l.clone().add(a, x),
|
|
1247
|
-
return +(-(a + (r - i) / (
|
|
1246
|
+
var a = 12 * (r.year() - l.year()) + (r.month() - l.month()), i = l.clone().add(a, x), f = r - i < 0, w = l.clone().add(a + (f ? -1 : 1), x);
|
|
1247
|
+
return +(-(a + (r - i) / (f ? i - w : w - i)) || 0);
|
|
1248
1248
|
}, a: function(C) {
|
|
1249
1249
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
1250
1250
|
}, p: function(C) {
|
|
1251
|
-
return { M: x, y:
|
|
1251
|
+
return { M: x, y: Z, w: g, d: h, D: A, h: m, m: p, s: v, ms: $, Q: D }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1252
1252
|
}, u: function(C) {
|
|
1253
1253
|
return C === void 0;
|
|
1254
1254
|
} }, E = "en", P = {};
|
|
@@ -1260,11 +1260,11 @@ var m1 = { exports: {} };
|
|
|
1260
1260
|
if (!l)
|
|
1261
1261
|
return E;
|
|
1262
1262
|
if (typeof l == "string") {
|
|
1263
|
-
var
|
|
1264
|
-
P[
|
|
1265
|
-
var
|
|
1266
|
-
if (!i &&
|
|
1267
|
-
return C(
|
|
1263
|
+
var f = l.toLowerCase();
|
|
1264
|
+
P[f] && (i = f), r && (P[f] = r, i = f);
|
|
1265
|
+
var w = l.split("-");
|
|
1266
|
+
if (!i && w.length > 1)
|
|
1267
|
+
return C(w[0]);
|
|
1268
1268
|
} else {
|
|
1269
1269
|
var k = l.name;
|
|
1270
1270
|
P[k] = l, i = k;
|
|
@@ -1275,8 +1275,8 @@ var m1 = { exports: {} };
|
|
|
1275
1275
|
return C.clone();
|
|
1276
1276
|
var r = typeof l == "object" ? l : {};
|
|
1277
1277
|
return r.date = C, r.args = arguments, new J(r);
|
|
1278
|
-
},
|
|
1279
|
-
|
|
1278
|
+
}, M = y1;
|
|
1279
|
+
M.l = R, M.i = r1, M.w = function(C, l) {
|
|
1280
1280
|
return y(C, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
|
|
1281
1281
|
};
|
|
1282
1282
|
var J = function() {
|
|
@@ -1286,18 +1286,18 @@ var m1 = { exports: {} };
|
|
|
1286
1286
|
var l = C.prototype;
|
|
1287
1287
|
return l.parse = function(r) {
|
|
1288
1288
|
this.$d = function(a) {
|
|
1289
|
-
var i = a.date,
|
|
1289
|
+
var i = a.date, f = a.utc;
|
|
1290
1290
|
if (i === null)
|
|
1291
1291
|
return /* @__PURE__ */ new Date(NaN);
|
|
1292
|
-
if (
|
|
1292
|
+
if (M.u(i))
|
|
1293
1293
|
return /* @__PURE__ */ new Date();
|
|
1294
1294
|
if (i instanceof Date)
|
|
1295
1295
|
return new Date(i);
|
|
1296
1296
|
if (typeof i == "string" && !/Z$/i.test(i)) {
|
|
1297
|
-
var
|
|
1298
|
-
if (
|
|
1299
|
-
var k =
|
|
1300
|
-
return
|
|
1297
|
+
var w = i.match(k1);
|
|
1298
|
+
if (w) {
|
|
1299
|
+
var k = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
1300
|
+
return f ? new Date(Date.UTC(w[1], k, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], k, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
return new Date(i);
|
|
@@ -1306,7 +1306,7 @@ var m1 = { exports: {} };
|
|
|
1306
1306
|
var r = this.$d;
|
|
1307
1307
|
this.$y = r.getFullYear(), this.$M = r.getMonth(), this.$D = r.getDate(), this.$W = r.getDay(), this.$H = r.getHours(), this.$m = r.getMinutes(), this.$s = r.getSeconds(), this.$ms = r.getMilliseconds();
|
|
1308
1308
|
}, l.$utils = function() {
|
|
1309
|
-
return
|
|
1309
|
+
return M;
|
|
1310
1310
|
}, l.isValid = function() {
|
|
1311
1311
|
return this.$d.toString() !== a1;
|
|
1312
1312
|
}, l.isSame = function(r, a) {
|
|
@@ -1317,32 +1317,32 @@ var m1 = { exports: {} };
|
|
|
1317
1317
|
}, l.isBefore = function(r, a) {
|
|
1318
1318
|
return this.endOf(a) < y(r);
|
|
1319
1319
|
}, l.$g = function(r, a, i) {
|
|
1320
|
-
return
|
|
1320
|
+
return M.u(r) ? this[a] : this.set(i, r);
|
|
1321
1321
|
}, l.unix = function() {
|
|
1322
1322
|
return Math.floor(this.valueOf() / 1e3);
|
|
1323
1323
|
}, l.valueOf = function() {
|
|
1324
1324
|
return this.$d.getTime();
|
|
1325
1325
|
}, l.startOf = function(r, a) {
|
|
1326
|
-
var i = this,
|
|
1327
|
-
var
|
|
1328
|
-
return
|
|
1326
|
+
var i = this, f = !!M.u(a) || a, w = M.p(r), k = function(Y, b) {
|
|
1327
|
+
var q = M.w(i.$u ? Date.UTC(i.$y, b, Y) : new Date(i.$y, b, Y), i);
|
|
1328
|
+
return f ? q : q.endOf(h);
|
|
1329
1329
|
}, L = function(Y, b) {
|
|
1330
|
-
return
|
|
1330
|
+
return M.w(i.toDate()[Y].apply(i.toDate("s"), (f ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(b)), i);
|
|
1331
1331
|
}, H = this.$W, V = this.$M, z = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
1332
|
-
switch (
|
|
1333
|
-
case
|
|
1334
|
-
return
|
|
1332
|
+
switch (w) {
|
|
1333
|
+
case Z:
|
|
1334
|
+
return f ? k(1, 0) : k(31, 11);
|
|
1335
1335
|
case x:
|
|
1336
|
-
return
|
|
1336
|
+
return f ? k(1, V) : k(0, V + 1);
|
|
1337
1337
|
case g:
|
|
1338
1338
|
var T = this.$locale().weekStart || 0, W = (H < T ? H + 7 : H) - T;
|
|
1339
|
-
return k(
|
|
1340
|
-
case
|
|
1339
|
+
return k(f ? z - W : z + (6 - W), V);
|
|
1340
|
+
case h:
|
|
1341
1341
|
case A:
|
|
1342
1342
|
return L(F + "Hours", 0);
|
|
1343
|
-
case
|
|
1343
|
+
case m:
|
|
1344
1344
|
return L(F + "Minutes", 1);
|
|
1345
|
-
case
|
|
1345
|
+
case p:
|
|
1346
1346
|
return L(F + "Seconds", 2);
|
|
1347
1347
|
case v:
|
|
1348
1348
|
return L(F + "Milliseconds", 3);
|
|
@@ -1352,8 +1352,8 @@ var m1 = { exports: {} };
|
|
|
1352
1352
|
}, l.endOf = function(r) {
|
|
1353
1353
|
return this.startOf(r, !1);
|
|
1354
1354
|
}, l.$set = function(r, a) {
|
|
1355
|
-
var i,
|
|
1356
|
-
if (
|
|
1355
|
+
var i, f = M.p(r), w = "set" + (this.$u ? "UTC" : ""), k = (i = {}, i[h] = w + "Date", i[A] = w + "Date", i[x] = w + "Month", i[Z] = w + "FullYear", i[m] = w + "Hours", i[p] = w + "Minutes", i[v] = w + "Seconds", i[$] = w + "Milliseconds", i)[f], L = f === h ? this.$D + (a - this.$W) : a;
|
|
1356
|
+
if (f === x || f === Z) {
|
|
1357
1357
|
var H = this.clone().set(A, 1);
|
|
1358
1358
|
H.$d[k](L), H.init(), this.$d = H.set(A, Math.min(this.$D, H.daysInMonth())).$d;
|
|
1359
1359
|
} else
|
|
@@ -1362,49 +1362,49 @@ var m1 = { exports: {} };
|
|
|
1362
1362
|
}, l.set = function(r, a) {
|
|
1363
1363
|
return this.clone().$set(r, a);
|
|
1364
1364
|
}, l.get = function(r) {
|
|
1365
|
-
return this[
|
|
1365
|
+
return this[M.p(r)]();
|
|
1366
1366
|
}, l.add = function(r, a) {
|
|
1367
|
-
var i,
|
|
1367
|
+
var i, f = this;
|
|
1368
1368
|
r = Number(r);
|
|
1369
|
-
var
|
|
1370
|
-
var z = y(
|
|
1371
|
-
return
|
|
1369
|
+
var w = M.p(a), k = function(V) {
|
|
1370
|
+
var z = y(f);
|
|
1371
|
+
return M.w(z.date(z.date() + Math.round(V * r)), f);
|
|
1372
1372
|
};
|
|
1373
|
-
if (
|
|
1373
|
+
if (w === x)
|
|
1374
1374
|
return this.set(x, this.$M + r);
|
|
1375
|
-
if (
|
|
1376
|
-
return this.set(
|
|
1377
|
-
if (
|
|
1375
|
+
if (w === Z)
|
|
1376
|
+
return this.set(Z, this.$y + r);
|
|
1377
|
+
if (w === h)
|
|
1378
1378
|
return k(1);
|
|
1379
|
-
if (
|
|
1379
|
+
if (w === g)
|
|
1380
1380
|
return k(7);
|
|
1381
|
-
var L = (i = {}, i[
|
|
1382
|
-
return
|
|
1381
|
+
var L = (i = {}, i[p] = _, i[m] = u, i[v] = d, i)[w] || 1, H = this.$d.getTime() + r * L;
|
|
1382
|
+
return M.w(H, this);
|
|
1383
1383
|
}, l.subtract = function(r, a) {
|
|
1384
1384
|
return this.add(-1 * r, a);
|
|
1385
1385
|
}, l.format = function(r) {
|
|
1386
1386
|
var a = this, i = this.$locale();
|
|
1387
1387
|
if (!this.isValid())
|
|
1388
1388
|
return i.invalidDate || a1;
|
|
1389
|
-
var
|
|
1390
|
-
return b && (b[
|
|
1389
|
+
var f = r || "YYYY-MM-DDTHH:mm:ssZ", w = M.z(this), k = this.$H, L = this.$m, H = this.$M, V = i.weekdays, z = i.months, F = i.meridiem, T = function(b, q, N, K) {
|
|
1390
|
+
return b && (b[q] || b(a, f)) || N[q].slice(0, K);
|
|
1391
1391
|
}, W = function(b) {
|
|
1392
|
-
return
|
|
1393
|
-
}, Y = F || function(b,
|
|
1392
|
+
return M.s(k % 12 || 12, b, "0");
|
|
1393
|
+
}, Y = F || function(b, q, N) {
|
|
1394
1394
|
var K = b < 12 ? "AM" : "PM";
|
|
1395
1395
|
return N ? K.toLowerCase() : K;
|
|
1396
1396
|
};
|
|
1397
|
-
return
|
|
1398
|
-
return
|
|
1397
|
+
return f.replace(x1, function(b, q) {
|
|
1398
|
+
return q || function(N) {
|
|
1399
1399
|
switch (N) {
|
|
1400
1400
|
case "YY":
|
|
1401
1401
|
return String(a.$y).slice(-2);
|
|
1402
1402
|
case "YYYY":
|
|
1403
|
-
return
|
|
1403
|
+
return M.s(a.$y, 4, "0");
|
|
1404
1404
|
case "M":
|
|
1405
1405
|
return H + 1;
|
|
1406
1406
|
case "MM":
|
|
1407
|
-
return
|
|
1407
|
+
return M.s(H + 1, 2, "0");
|
|
1408
1408
|
case "MMM":
|
|
1409
1409
|
return T(i.monthsShort, H, z, 3);
|
|
1410
1410
|
case "MMMM":
|
|
@@ -1412,7 +1412,7 @@ var m1 = { exports: {} };
|
|
|
1412
1412
|
case "D":
|
|
1413
1413
|
return a.$D;
|
|
1414
1414
|
case "DD":
|
|
1415
|
-
return
|
|
1415
|
+
return M.s(a.$D, 2, "0");
|
|
1416
1416
|
case "d":
|
|
1417
1417
|
return String(a.$W);
|
|
1418
1418
|
case "dd":
|
|
@@ -1424,7 +1424,7 @@ var m1 = { exports: {} };
|
|
|
1424
1424
|
case "H":
|
|
1425
1425
|
return String(k);
|
|
1426
1426
|
case "HH":
|
|
1427
|
-
return
|
|
1427
|
+
return M.s(k, 2, "0");
|
|
1428
1428
|
case "h":
|
|
1429
1429
|
return W(1);
|
|
1430
1430
|
case "hh":
|
|
@@ -1436,54 +1436,54 @@ var m1 = { exports: {} };
|
|
|
1436
1436
|
case "m":
|
|
1437
1437
|
return String(L);
|
|
1438
1438
|
case "mm":
|
|
1439
|
-
return
|
|
1439
|
+
return M.s(L, 2, "0");
|
|
1440
1440
|
case "s":
|
|
1441
1441
|
return String(a.$s);
|
|
1442
1442
|
case "ss":
|
|
1443
|
-
return
|
|
1443
|
+
return M.s(a.$s, 2, "0");
|
|
1444
1444
|
case "SSS":
|
|
1445
|
-
return
|
|
1445
|
+
return M.s(a.$ms, 3, "0");
|
|
1446
1446
|
case "Z":
|
|
1447
|
-
return
|
|
1447
|
+
return w;
|
|
1448
1448
|
}
|
|
1449
1449
|
return null;
|
|
1450
|
-
}(b) ||
|
|
1450
|
+
}(b) || w.replace(":", "");
|
|
1451
1451
|
});
|
|
1452
1452
|
}, l.utcOffset = function() {
|
|
1453
1453
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1454
1454
|
}, l.diff = function(r, a, i) {
|
|
1455
|
-
var
|
|
1456
|
-
return
|
|
1455
|
+
var f, w = this, k = M.p(a), L = y(r), H = (L.utcOffset() - this.utcOffset()) * _, V = this - L, z = function() {
|
|
1456
|
+
return M.m(w, L);
|
|
1457
1457
|
};
|
|
1458
1458
|
switch (k) {
|
|
1459
|
-
case
|
|
1460
|
-
|
|
1459
|
+
case Z:
|
|
1460
|
+
f = z() / 12;
|
|
1461
1461
|
break;
|
|
1462
1462
|
case x:
|
|
1463
|
-
|
|
1463
|
+
f = z();
|
|
1464
1464
|
break;
|
|
1465
|
-
case
|
|
1466
|
-
|
|
1465
|
+
case D:
|
|
1466
|
+
f = z() / 3;
|
|
1467
1467
|
break;
|
|
1468
1468
|
case g:
|
|
1469
|
-
|
|
1469
|
+
f = (V - H) / 6048e5;
|
|
1470
1470
|
break;
|
|
1471
|
-
case
|
|
1472
|
-
|
|
1471
|
+
case h:
|
|
1472
|
+
f = (V - H) / 864e5;
|
|
1473
1473
|
break;
|
|
1474
|
-
case
|
|
1475
|
-
|
|
1474
|
+
case m:
|
|
1475
|
+
f = V / u;
|
|
1476
1476
|
break;
|
|
1477
|
-
case
|
|
1478
|
-
|
|
1477
|
+
case p:
|
|
1478
|
+
f = V / _;
|
|
1479
1479
|
break;
|
|
1480
1480
|
case v:
|
|
1481
|
-
|
|
1481
|
+
f = V / d;
|
|
1482
1482
|
break;
|
|
1483
1483
|
default:
|
|
1484
|
-
|
|
1484
|
+
f = V;
|
|
1485
1485
|
}
|
|
1486
|
-
return i ?
|
|
1486
|
+
return i ? f : M.a(f);
|
|
1487
1487
|
}, l.daysInMonth = function() {
|
|
1488
1488
|
return this.endOf(x).$D;
|
|
1489
1489
|
}, l.$locale = function() {
|
|
@@ -1491,10 +1491,10 @@ var m1 = { exports: {} };
|
|
|
1491
1491
|
}, l.locale = function(r, a) {
|
|
1492
1492
|
if (!r)
|
|
1493
1493
|
return this.$L;
|
|
1494
|
-
var i = this.clone(),
|
|
1495
|
-
return
|
|
1494
|
+
var i = this.clone(), f = R(r, a, !0);
|
|
1495
|
+
return f && (i.$L = f), i;
|
|
1496
1496
|
}, l.clone = function() {
|
|
1497
|
-
return
|
|
1497
|
+
return M.w(this.$d, this);
|
|
1498
1498
|
}, l.toDate = function() {
|
|
1499
1499
|
return new Date(this.valueOf());
|
|
1500
1500
|
}, l.toJSON = function() {
|
|
@@ -1505,7 +1505,7 @@ var m1 = { exports: {} };
|
|
|
1505
1505
|
return this.$d.toUTCString();
|
|
1506
1506
|
}, C;
|
|
1507
1507
|
}(), _1 = J.prototype;
|
|
1508
|
-
return y.prototype = _1, [["$ms", $], ["$s", v], ["$m",
|
|
1508
|
+
return y.prototype = _1, [["$ms", $], ["$s", v], ["$m", p], ["$H", m], ["$W", h], ["$M", x], ["$y", Z], ["$D", A]].forEach(function(C) {
|
|
1509
1509
|
_1[C[1]] = function(l) {
|
|
1510
1510
|
return this.$g(l, C[0], C[1]);
|
|
1511
1511
|
};
|
|
@@ -1517,7 +1517,7 @@ var m1 = { exports: {} };
|
|
|
1517
1517
|
});
|
|
1518
1518
|
})(m1);
|
|
1519
1519
|
var F9 = m1.exports;
|
|
1520
|
-
const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["disabled"], W9 = ["disabled"], N9 = /* @__PURE__ */
|
|
1520
|
+
const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["disabled"], W9 = ["disabled"], N9 = /* @__PURE__ */ j({
|
|
1521
1521
|
__name: "QDatetimePicker",
|
|
1522
1522
|
props: {
|
|
1523
1523
|
modelValue: {
|
|
@@ -1531,12 +1531,12 @@ const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["d
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["update:modelValue", "change"],
|
|
1533
1533
|
setup(t, { emit: e }) {
|
|
1534
|
-
const d = t, _ =
|
|
1534
|
+
const d = t, _ = Q(""), u = Q("");
|
|
1535
1535
|
G(
|
|
1536
1536
|
() => d.modelValue,
|
|
1537
1537
|
(v) => {
|
|
1538
|
-
const
|
|
1539
|
-
_.value =
|
|
1538
|
+
const p = i1(v);
|
|
1539
|
+
_.value = p.format("YYYY-MM-DD"), u.value = p.format("HH:mm");
|
|
1540
1540
|
}
|
|
1541
1541
|
);
|
|
1542
1542
|
function $() {
|
|
@@ -1546,9 +1546,9 @@ const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["d
|
|
|
1546
1546
|
return u1(() => {
|
|
1547
1547
|
const v = i1();
|
|
1548
1548
|
_.value = v.format("YYYY-MM-DD"), u.value = v.format("HH:mm");
|
|
1549
|
-
}), (v,
|
|
1549
|
+
}), (v, p) => (n(), s("div", U9, [
|
|
1550
1550
|
t1(o("input", {
|
|
1551
|
-
"onUpdate:modelValue":
|
|
1551
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => _.value = m),
|
|
1552
1552
|
type: "date",
|
|
1553
1553
|
disabled: t.disabled,
|
|
1554
1554
|
onChange: $
|
|
@@ -1556,7 +1556,7 @@ const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["d
|
|
|
1556
1556
|
[c1, _.value]
|
|
1557
1557
|
]),
|
|
1558
1558
|
t1(o("input", {
|
|
1559
|
-
"onUpdate:modelValue":
|
|
1559
|
+
"onUpdate:modelValue": p[1] || (p[1] = (m) => u.value = m),
|
|
1560
1560
|
type: "time",
|
|
1561
1561
|
disabled: t.disabled,
|
|
1562
1562
|
onChange: $
|
|
@@ -1569,7 +1569,7 @@ const i1 = /* @__PURE__ */ A9(F9), U9 = { class: "q-datetime-picker" }, E9 = ["d
|
|
|
1569
1569
|
const G9 = ["onClick"], R9 = { class: "q-dialog-header" }, J9 = {
|
|
1570
1570
|
key: 0,
|
|
1571
1571
|
class: "q-dialog-title"
|
|
1572
|
-
}, K9 = { class: "q-dialog-body" }, X9 = /* @__PURE__ */
|
|
1572
|
+
}, K9 = { class: "q-dialog-body" }, X9 = /* @__PURE__ */ j({
|
|
1573
1573
|
__name: "QDialog",
|
|
1574
1574
|
props: {
|
|
1575
1575
|
modelValue: Boolean,
|
|
@@ -1588,47 +1588,57 @@ const G9 = ["onClick"], R9 = { class: "q-dialog-header" }, J9 = {
|
|
|
1588
1588
|
position: {
|
|
1589
1589
|
type: String,
|
|
1590
1590
|
default: "center"
|
|
1591
|
+
},
|
|
1592
|
+
persistent: {
|
|
1593
|
+
type: Boolean,
|
|
1594
|
+
default: !1
|
|
1591
1595
|
}
|
|
1592
1596
|
},
|
|
1593
1597
|
emits: ["update:modelValue", "close"],
|
|
1594
1598
|
setup(t, { emit: e }) {
|
|
1595
|
-
const d = t, _ =
|
|
1596
|
-
const
|
|
1599
|
+
const d = t, _ = Q(!1), u = Q(d.modelValue), $ = B(() => {
|
|
1600
|
+
const m = document.body.clientWidth < 720 ? "100%" : d.width, h = d.height;
|
|
1597
1601
|
return {
|
|
1598
|
-
width:
|
|
1599
|
-
height:
|
|
1602
|
+
width: m,
|
|
1603
|
+
height: h
|
|
1600
1604
|
};
|
|
1601
1605
|
});
|
|
1602
1606
|
G(
|
|
1603
1607
|
() => d.modelValue,
|
|
1604
|
-
(
|
|
1605
|
-
|
|
1608
|
+
(m) => {
|
|
1609
|
+
u.value = m;
|
|
1606
1610
|
}
|
|
1607
1611
|
);
|
|
1608
|
-
function $() {
|
|
1609
|
-
_.value = !1, e("update:modelValue", !1), e("close");
|
|
1610
|
-
}
|
|
1611
1612
|
function v() {
|
|
1613
|
+
if (d.persistent) {
|
|
1614
|
+
_.value = !0, setTimeout(() => {
|
|
1615
|
+
_.value = !1;
|
|
1616
|
+
}, 300);
|
|
1617
|
+
return;
|
|
1618
|
+
}
|
|
1619
|
+
u.value = !1, e("update:modelValue", !1), e("close");
|
|
1620
|
+
}
|
|
1621
|
+
function p() {
|
|
1612
1622
|
}
|
|
1613
|
-
return (
|
|
1623
|
+
return (m, h) => (n(), O(h1, null, {
|
|
1614
1624
|
default: C1(() => [
|
|
1615
|
-
|
|
1625
|
+
u.value ? (n(), s("div", {
|
|
1616
1626
|
key: 0,
|
|
1617
1627
|
class: "q-dialog-mask",
|
|
1618
|
-
onClick:
|
|
1628
|
+
onClick: v
|
|
1619
1629
|
}, [
|
|
1620
1630
|
o("div", {
|
|
1621
|
-
class: "q-dialog",
|
|
1622
|
-
style: f1(
|
|
1623
|
-
onClick: w1(
|
|
1631
|
+
class: I(["q-dialog", _.value ? "shaking" : ""]),
|
|
1632
|
+
style: f1($.value),
|
|
1633
|
+
onClick: w1(p, ["stop"])
|
|
1624
1634
|
}, [
|
|
1625
1635
|
o("div", R9, [
|
|
1626
|
-
t.title ? (n(), s("div", J9,
|
|
1636
|
+
t.title ? (n(), s("div", J9, S(t.title), 1)) : l1(m.$slots, "header", { key: 1 })
|
|
1627
1637
|
]),
|
|
1628
1638
|
o("div", K9, [
|
|
1629
|
-
l1(
|
|
1639
|
+
l1(m.$slots, "default")
|
|
1630
1640
|
])
|
|
1631
|
-
],
|
|
1641
|
+
], 14, G9)
|
|
1632
1642
|
])) : U("", !0)
|
|
1633
1643
|
]),
|
|
1634
1644
|
_: 3
|
|
@@ -1638,7 +1648,7 @@ const G9 = ["onClick"], R9 = { class: "q-dialog-header" }, J9 = {
|
|
|
1638
1648
|
const t5 = ["href"], e5 = { class: "q-fence-text" }, n5 = {
|
|
1639
1649
|
key: 1,
|
|
1640
1650
|
class: "q-fence-inner"
|
|
1641
|
-
}, o5 = { class: "q-fence-text" }, s5 = /* @__PURE__ */
|
|
1651
|
+
}, o5 = { class: "q-fence-text" }, s5 = /* @__PURE__ */ j({
|
|
1642
1652
|
__name: "QFence",
|
|
1643
1653
|
props: {
|
|
1644
1654
|
link: {
|
|
@@ -1663,7 +1673,7 @@ const t5 = ["href"], e5 = { class: "q-fence-text" }, n5 = {
|
|
|
1663
1673
|
return (_, u) => {
|
|
1664
1674
|
const $ = d1("q-icon-help");
|
|
1665
1675
|
return n(), s("div", {
|
|
1666
|
-
class:
|
|
1676
|
+
class: I(["q-fence", t.type])
|
|
1667
1677
|
}, [
|
|
1668
1678
|
t.link ? (n(), s("a", {
|
|
1669
1679
|
key: 0,
|
|
@@ -1671,23 +1681,23 @@ const t5 = ["href"], e5 = { class: "q-fence-text" }, n5 = {
|
|
|
1671
1681
|
href: t.link,
|
|
1672
1682
|
target: "_blank"
|
|
1673
1683
|
}, [
|
|
1674
|
-
t.icon && X(e) ? (n(),
|
|
1684
|
+
t.icon && X(e) ? (n(), O(e1(X(e)[t.icon]), {
|
|
1675
1685
|
key: 0,
|
|
1676
1686
|
class: "icon"
|
|
1677
|
-
})) : (n(),
|
|
1687
|
+
})) : (n(), O($, {
|
|
1678
1688
|
key: 1,
|
|
1679
1689
|
class: "icon"
|
|
1680
1690
|
})),
|
|
1681
|
-
o("div", e5,
|
|
1691
|
+
o("div", e5, S(t.text), 1)
|
|
1682
1692
|
], 8, t5)) : (n(), s("div", n5, [
|
|
1683
|
-
t.icon && X(e) ? (n(),
|
|
1693
|
+
t.icon && X(e) ? (n(), O(e1(X(e)[t.icon]), {
|
|
1684
1694
|
key: 0,
|
|
1685
1695
|
class: "icon"
|
|
1686
|
-
})) : (n(),
|
|
1696
|
+
})) : (n(), O($, {
|
|
1687
1697
|
key: 1,
|
|
1688
1698
|
class: "icon"
|
|
1689
1699
|
})),
|
|
1690
|
-
o("div", o5,
|
|
1700
|
+
o("div", o5, S(t.text), 1)
|
|
1691
1701
|
]))
|
|
1692
1702
|
], 2);
|
|
1693
1703
|
};
|
|
@@ -1711,7 +1721,7 @@ const a5 = /* @__PURE__ */ c(r5, [["render", d5]]), _5 = { class: "q-menu frame"
|
|
|
1711
1721
|
}, f5 = ["src", "alt"], w5 = { class: "q-menu-item-content" }, p5 = { class: "q-menu-title" }, g5 = {
|
|
1712
1722
|
key: 0,
|
|
1713
1723
|
class: "q-menu-subtitle"
|
|
1714
|
-
}, $5 = /* @__PURE__ */
|
|
1724
|
+
}, $5 = /* @__PURE__ */ j({
|
|
1715
1725
|
__name: "QMenu",
|
|
1716
1726
|
props: {
|
|
1717
1727
|
items: {
|
|
@@ -1730,31 +1740,31 @@ const a5 = /* @__PURE__ */ c(r5, [["render", d5]]), _5 = { class: "q-menu frame"
|
|
|
1730
1740
|
$.action && $.action($), $.disabled !== !0 && e("action", $);
|
|
1731
1741
|
}
|
|
1732
1742
|
return ($, v) => (n(), s("div", _5, [
|
|
1733
|
-
(n(!0), s(p1, null, g1(d.items, (
|
|
1734
|
-
class:
|
|
1735
|
-
key: `q-menu-item-${
|
|
1736
|
-
onClick: (
|
|
1743
|
+
(n(!0), s(p1, null, g1(d.items, (p) => (n(), s("div", {
|
|
1744
|
+
class: I(["q-menu-item", _(p)]),
|
|
1745
|
+
key: `q-menu-item-${p.id}`,
|
|
1746
|
+
onClick: (m) => u(p)
|
|
1737
1747
|
}, [
|
|
1738
|
-
|
|
1739
|
-
|
|
1748
|
+
p.divider ? (n(), s("div", h5)) : (n(), s("div", C5, [
|
|
1749
|
+
p.image ? (n(), s("img", {
|
|
1740
1750
|
key: 0,
|
|
1741
1751
|
class: "q-menu-image",
|
|
1742
|
-
src:
|
|
1743
|
-
alt:
|
|
1744
|
-
}, null, 8, f5)) :
|
|
1752
|
+
src: p.image,
|
|
1753
|
+
alt: p.title
|
|
1754
|
+
}, null, 8, f5)) : p.icon ? (n(), O(e1(p.icon), {
|
|
1745
1755
|
key: 1,
|
|
1746
1756
|
class: "q-menu-icon mr-1"
|
|
1747
1757
|
})) : U("", !0),
|
|
1748
1758
|
o("div", w5, [
|
|
1749
|
-
o("div", p5,
|
|
1750
|
-
|
|
1759
|
+
o("div", p5, S(p.title), 1),
|
|
1760
|
+
p.subtitle ? (n(), s("div", g5, S(p.subtitle), 1)) : U("", !0)
|
|
1751
1761
|
])
|
|
1752
1762
|
]))
|
|
1753
1763
|
], 10, u5))), 128))
|
|
1754
1764
|
]));
|
|
1755
1765
|
}
|
|
1756
1766
|
});
|
|
1757
|
-
const v5 = ["disabled"], m5 = /* @__PURE__ */ o("div", { class: "q-switch-inner" }, null, -1), M5 = /* @__PURE__ */
|
|
1767
|
+
const v5 = ["disabled"], m5 = /* @__PURE__ */ o("div", { class: "q-switch-inner" }, null, -1), M5 = /* @__PURE__ */ j({
|
|
1758
1768
|
__name: "QSwitch",
|
|
1759
1769
|
props: {
|
|
1760
1770
|
modelValue: {
|
|
@@ -1768,7 +1778,7 @@ const v5 = ["disabled"], m5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1768
1778
|
},
|
|
1769
1779
|
emits: ["update:modelValue", "change"],
|
|
1770
1780
|
setup(t, { emit: e }) {
|
|
1771
|
-
const d = t, _ =
|
|
1781
|
+
const d = t, _ = Q(d.modelValue);
|
|
1772
1782
|
G(() => d.modelValue, ($) => {
|
|
1773
1783
|
_.value = $;
|
|
1774
1784
|
});
|
|
@@ -1776,12 +1786,12 @@ const v5 = ["disabled"], m5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1776
1786
|
e("update:modelValue", _.value), e("change", _.value);
|
|
1777
1787
|
}
|
|
1778
1788
|
return ($, v) => (n(), s("label", {
|
|
1779
|
-
class:
|
|
1789
|
+
class: I(["q-switch", t.disabled ? "disabled" : ""])
|
|
1780
1790
|
}, [
|
|
1781
1791
|
t1(o("input", {
|
|
1782
1792
|
class: "q-switch-checkbox",
|
|
1783
1793
|
type: "checkbox",
|
|
1784
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1794
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => _.value = p),
|
|
1785
1795
|
onChange: u,
|
|
1786
1796
|
disabled: d.disabled
|
|
1787
1797
|
}, null, 40, v5), [
|
|
@@ -1791,7 +1801,7 @@ const v5 = ["disabled"], m5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1791
1801
|
], 2));
|
|
1792
1802
|
}
|
|
1793
1803
|
});
|
|
1794
|
-
const k5 = ["placeholder"], x5 = ["disabled"], L5 = { clas: "" }, y5 = /* @__PURE__ */
|
|
1804
|
+
const k5 = ["placeholder"], x5 = ["disabled"], L5 = { clas: "" }, y5 = /* @__PURE__ */ j({
|
|
1795
1805
|
__name: "QTextFieldWithButton",
|
|
1796
1806
|
props: {
|
|
1797
1807
|
type: {
|
|
@@ -1815,22 +1825,22 @@ const k5 = ["placeholder"], x5 = ["disabled"], L5 = { clas: "" }, y5 = /* @__PUR
|
|
|
1815
1825
|
},
|
|
1816
1826
|
emits: ["submit"],
|
|
1817
1827
|
setup(t, { emit: e }) {
|
|
1818
|
-
const d = t, _ =
|
|
1828
|
+
const d = t, _ = Q(d.defaultText), u = B(() => {
|
|
1819
1829
|
var g;
|
|
1820
1830
|
return d.loading || ((g = _.value) == null ? void 0 : g.trim()).length === 0 ? !1 : d.type === "email" ? $.value : d.type === "code" ? v.value : !0;
|
|
1821
|
-
}), $ =
|
|
1831
|
+
}), $ = B(() => {
|
|
1822
1832
|
var g;
|
|
1823
|
-
const
|
|
1824
|
-
return !d.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(
|
|
1825
|
-
}), v =
|
|
1833
|
+
const h = (g = _.value) == null ? void 0 : g.trim();
|
|
1834
|
+
return !d.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h);
|
|
1835
|
+
}), v = B(() => {
|
|
1826
1836
|
var g;
|
|
1827
|
-
const
|
|
1828
|
-
return /^\d{6}$/.test(
|
|
1829
|
-
}),
|
|
1837
|
+
const h = (g = _.value) == null ? void 0 : g.trim();
|
|
1838
|
+
return /^\d{6}$/.test(h);
|
|
1839
|
+
}), p = B(() => d.loading ? "Loading..." : d.actionLabel), m = () => {
|
|
1830
1840
|
u.value && e("submit", { text: _.value });
|
|
1831
1841
|
};
|
|
1832
|
-
return (
|
|
1833
|
-
class:
|
|
1842
|
+
return (h, g) => (n(), s("div", {
|
|
1843
|
+
class: I(["q-text-field-with-button", d.type])
|
|
1834
1844
|
}, [
|
|
1835
1845
|
o("div", null, [
|
|
1836
1846
|
t1(o("input", {
|
|
@@ -1845,9 +1855,9 @@ const k5 = ["placeholder"], x5 = ["disabled"], L5 = { clas: "" }, y5 = /* @__PUR
|
|
|
1845
1855
|
o("button", {
|
|
1846
1856
|
class: "q-button button primary",
|
|
1847
1857
|
disabled: !u.value,
|
|
1848
|
-
onClick:
|
|
1858
|
+
onClick: m
|
|
1849
1859
|
}, [
|
|
1850
|
-
o("div", L5,
|
|
1860
|
+
o("div", L5, S(p.value), 1)
|
|
1851
1861
|
], 8, x5)
|
|
1852
1862
|
])
|
|
1853
1863
|
], 2));
|
|
@@ -1864,7 +1874,7 @@ function M1() {
|
|
|
1864
1874
|
const H5 = { class: "q-dropdown-menu" }, V5 = { class: "q-dropdown-menu-inner narrow-view" }, b5 = ["onClick"], z5 = {
|
|
1865
1875
|
key: 0,
|
|
1866
1876
|
class: "q-dropdown-selected"
|
|
1867
|
-
}, Q5 = ["src", "alt"], B5 = { class: "menu-title" }, I5 = /* @__PURE__ */
|
|
1877
|
+
}, Q5 = ["src", "alt"], B5 = { class: "menu-title" }, I5 = /* @__PURE__ */ j({
|
|
1868
1878
|
__name: "QDropdownMenu",
|
|
1869
1879
|
props: {
|
|
1870
1880
|
items: {
|
|
@@ -1890,18 +1900,18 @@ const H5 = { class: "q-dropdown-menu" }, V5 = { class: "q-dropdown-menu-inner na
|
|
|
1890
1900
|
},
|
|
1891
1901
|
emits: ["change"],
|
|
1892
1902
|
setup(t, { emit: e }) {
|
|
1893
|
-
const d = t, _ =
|
|
1894
|
-
const
|
|
1895
|
-
return _.value &&
|
|
1903
|
+
const d = t, _ = Q(!1), u = Q(null), $ = Q(null), v = B(() => {
|
|
1904
|
+
const h = [];
|
|
1905
|
+
return _.value && h.push("expanded"), d.variant === "outlined" && h.push("frame"), h.join(" ");
|
|
1896
1906
|
});
|
|
1897
|
-
function
|
|
1907
|
+
function p() {
|
|
1898
1908
|
_.value || M1(), _.value = !_.value, _.value && setTimeout(() => {
|
|
1899
1909
|
const g = $.value.querySelector(".menu");
|
|
1900
1910
|
g.getBoundingClientRect().left < 0 && (g.style.left = "0");
|
|
1901
1911
|
}, 10);
|
|
1902
1912
|
}
|
|
1903
|
-
function
|
|
1904
|
-
_.value = !1, u.value =
|
|
1913
|
+
function m(h) {
|
|
1914
|
+
_.value = !1, u.value = h, h.action && h.action(h), e("change", h);
|
|
1905
1915
|
}
|
|
1906
1916
|
return G(
|
|
1907
1917
|
() => d.initialItem,
|
|
@@ -1909,16 +1919,16 @@ const H5 = { class: "q-dropdown-menu" }, V5 = { class: "q-dropdown-menu-inner na
|
|
|
1909
1919
|
d.initialItem && (u.value = d.initialItem);
|
|
1910
1920
|
}
|
|
1911
1921
|
), u1(() => {
|
|
1912
|
-
d.initialItem && (u.value = d.initialItem), window.addEventListener("storage", (
|
|
1913
|
-
|
|
1922
|
+
d.initialItem && (u.value = d.initialItem), window.addEventListener("storage", (h) => {
|
|
1923
|
+
h.key === "quailui_global_popup_trigger" && h.newValue && (_.value = !1);
|
|
1914
1924
|
});
|
|
1915
|
-
}), (
|
|
1916
|
-
const x = d1("q-icon-chevron-down"),
|
|
1925
|
+
}), (h, g) => {
|
|
1926
|
+
const x = d1("q-icon-chevron-down"), D = d1("q-menu");
|
|
1917
1927
|
return n(), s("div", H5, [
|
|
1918
1928
|
o("div", V5, [
|
|
1919
1929
|
o("div", {
|
|
1920
|
-
class:
|
|
1921
|
-
onClick: w1(
|
|
1930
|
+
class: I(["q-dropdown-menu-action", v.value]),
|
|
1931
|
+
onClick: w1(p, ["stop"])
|
|
1922
1932
|
}, [
|
|
1923
1933
|
!t.hideSelected && u.value ? (n(), s("div", z5, [
|
|
1924
1934
|
u.value.image ? (n(), s("img", {
|
|
@@ -1926,13 +1936,13 @@ const H5 = { class: "q-dropdown-menu" }, V5 = { class: "q-dropdown-menu-inner na
|
|
|
1926
1936
|
class: "menu-image",
|
|
1927
1937
|
src: u.value.image,
|
|
1928
1938
|
alt: u.value.title
|
|
1929
|
-
}, null, 8, Q5)) : u.value.icon ? (n(),
|
|
1939
|
+
}, null, 8, Q5)) : u.value.icon ? (n(), O(e1(u.value.icon), {
|
|
1930
1940
|
key: 1,
|
|
1931
1941
|
class: "icon menu-icon"
|
|
1932
1942
|
})) : U("", !0),
|
|
1933
|
-
o("div", B5,
|
|
1943
|
+
o("div", B5, S(u.value ? u.value.title : d.placeholder || "Select ..."), 1)
|
|
1934
1944
|
])) : U("", !0),
|
|
1935
|
-
l1(
|
|
1945
|
+
l1(h.$slots, "default"),
|
|
1936
1946
|
n1(x, { class: "icon chevron-icon" })
|
|
1937
1947
|
], 10, b5),
|
|
1938
1948
|
o("div", {
|
|
@@ -1941,10 +1951,10 @@ const H5 = { class: "q-dropdown-menu" }, V5 = { class: "q-dropdown-menu-inner na
|
|
|
1941
1951
|
}, [
|
|
1942
1952
|
n1(h1, null, {
|
|
1943
1953
|
default: C1(() => [
|
|
1944
|
-
_.value ? (n(),
|
|
1954
|
+
_.value ? (n(), O(D, {
|
|
1945
1955
|
key: 0,
|
|
1946
1956
|
items: t.items,
|
|
1947
|
-
onAction:
|
|
1957
|
+
onAction: m
|
|
1948
1958
|
}, null, 8, ["items"])) : U("", !0)
|
|
1949
1959
|
]),
|
|
1950
1960
|
_: 1
|
|
@@ -1961,7 +1971,7 @@ const S5 = { class: "q-pagination" }, j5 = ["disabled"], D5 = {
|
|
|
1961
1971
|
}, Z5 = { class: "q-page-indicator" }, q5 = ["disabled", "onClick"], O5 = {
|
|
1962
1972
|
key: 1,
|
|
1963
1973
|
class: "q-page-indicator-simple"
|
|
1964
|
-
}, P5 = { class: "" }, T5 = ["disabled"], Y5 = /* @__PURE__ */
|
|
1974
|
+
}, P5 = { class: "" }, T5 = ["disabled"], Y5 = /* @__PURE__ */ j({
|
|
1965
1975
|
__name: "QPagination",
|
|
1966
1976
|
props: {
|
|
1967
1977
|
modelValue: {
|
|
@@ -1983,25 +1993,25 @@ const S5 = { class: "q-pagination" }, j5 = ["disabled"], D5 = {
|
|
|
1983
1993
|
},
|
|
1984
1994
|
emits: ["change:next", "change:prev", "change:goto", "update:modelValue"],
|
|
1985
1995
|
setup(t, { emit: e }) {
|
|
1986
|
-
const d = t, _ =
|
|
1987
|
-
let
|
|
1988
|
-
const
|
|
1996
|
+
const d = t, _ = B(() => {
|
|
1997
|
+
let m = 6;
|
|
1998
|
+
const h = [];
|
|
1989
1999
|
if (d.totalPage !== 0)
|
|
1990
|
-
if (d.totalPage <=
|
|
2000
|
+
if (d.totalPage <= m)
|
|
1991
2001
|
for (let g = 1; g <= d.totalPage; g++)
|
|
1992
|
-
|
|
2002
|
+
h.push({ label: g });
|
|
1993
2003
|
else {
|
|
1994
|
-
|
|
2004
|
+
h.push({ label: 1 });
|
|
1995
2005
|
let g = u.value - 2, x = u.value + 2;
|
|
1996
|
-
g < 2 && (g = 2, x = g +
|
|
1997
|
-
for (let
|
|
1998
|
-
|
|
1999
|
-
x < d.totalPage - 1 &&
|
|
2006
|
+
g < 2 && (g = 2, x = g + m - 2), x > d.totalPage - 1 && (x = d.totalPage - 1, g = x - m + 2), g > 2 && h.push({ label: "…", disabled: !0 });
|
|
2007
|
+
for (let D = g; D <= x; D++)
|
|
2008
|
+
h.push({ label: D });
|
|
2009
|
+
x < d.totalPage - 1 && h.push({ label: "…", disabled: !0 }), h.push({ label: d.totalPage });
|
|
2000
2010
|
}
|
|
2001
|
-
return
|
|
2002
|
-
}), u =
|
|
2003
|
-
G(() => d.modelValue, (
|
|
2004
|
-
u.value =
|
|
2011
|
+
return h;
|
|
2012
|
+
}), u = Q(d.modelValue);
|
|
2013
|
+
G(() => d.modelValue, (m) => {
|
|
2014
|
+
u.value = m;
|
|
2005
2015
|
});
|
|
2006
2016
|
function $() {
|
|
2007
2017
|
u.value--, e("change:prev", u.value), e("update:modelValue", u.value);
|
|
@@ -2009,10 +2019,10 @@ const S5 = { class: "q-pagination" }, j5 = ["disabled"], D5 = {
|
|
|
2009
2019
|
function v() {
|
|
2010
2020
|
u.value++, e("change:next", u.value), e("update:modelValue", u.value);
|
|
2011
2021
|
}
|
|
2012
|
-
function
|
|
2013
|
-
|
|
2022
|
+
function p(m, h) {
|
|
2023
|
+
h.disabled || (u.value = m, e("change:goto", u.value), e("update:modelValue", u.value));
|
|
2014
2024
|
}
|
|
2015
|
-
return (
|
|
2025
|
+
return (m, h) => (n(), s("div", S5, [
|
|
2016
2026
|
o("button", {
|
|
2017
2027
|
class: "prev q-button button sm outlined icon",
|
|
2018
2028
|
onClick: $,
|
|
@@ -2023,13 +2033,13 @@ const S5 = { class: "q-pagination" }, j5 = ["disabled"], D5 = {
|
|
|
2023
2033
|
t.totalPage !== 0 ? (n(), s("div", D5, [
|
|
2024
2034
|
(n(!0), s(p1, null, g1(_.value, (g) => (n(), s("div", Z5, [
|
|
2025
2035
|
o("button", {
|
|
2026
|
-
class:
|
|
2036
|
+
class: I(["q-page-indicator q-button button sm plain", g.label === u.value ? "active" : ""]),
|
|
2027
2037
|
disabled: g.disabled,
|
|
2028
|
-
onClick: (x) =>
|
|
2029
|
-
},
|
|
2038
|
+
onClick: (x) => p(g.label, g)
|
|
2039
|
+
}, S(g.label), 11, q5)
|
|
2030
2040
|
]))), 256))
|
|
2031
2041
|
])) : (n(), s("div", O5, [
|
|
2032
|
-
o("div", P5,
|
|
2042
|
+
o("div", P5, S(t.modelValue), 1)
|
|
2033
2043
|
])),
|
|
2034
2044
|
o("button", {
|
|
2035
2045
|
class: "next q-button button sm outlined icon",
|
|
@@ -2043,7 +2053,7 @@ const S5 = { class: "q-pagination" }, j5 = ["disabled"], D5 = {
|
|
|
2043
2053
|
});
|
|
2044
2054
|
const A5 = { class: "q-progress-slot" }, F5 = /* @__PURE__ */ o("div", { class: "q-progress-bar-inner" }, null, -1), U5 = [
|
|
2045
2055
|
F5
|
|
2046
|
-
], E5 = /* @__PURE__ */
|
|
2056
|
+
], E5 = /* @__PURE__ */ j({
|
|
2047
2057
|
__name: "QProgress",
|
|
2048
2058
|
props: {
|
|
2049
2059
|
infinite: {
|
|
@@ -2064,13 +2074,13 @@ const A5 = { class: "q-progress-slot" }, F5 = /* @__PURE__ */ o("div", { class:
|
|
|
2064
2074
|
}
|
|
2065
2075
|
},
|
|
2066
2076
|
setup(t) {
|
|
2067
|
-
const e = t, d =
|
|
2077
|
+
const e = t, d = B(() => e.infinite ? "100%" : `${e.value / e.max * 100}%`), _ = B(() => e.value >= e.max);
|
|
2068
2078
|
return (u, $) => (n(), s("div", {
|
|
2069
|
-
class:
|
|
2079
|
+
class: I(["q-progress", t.color])
|
|
2070
2080
|
}, [
|
|
2071
2081
|
o("div", A5, [
|
|
2072
2082
|
o("div", {
|
|
2073
|
-
class:
|
|
2083
|
+
class: I(["q-progress-bar", _.value ? "" : "animated"]),
|
|
2074
2084
|
style: f1({ width: d.value })
|
|
2075
2085
|
}, U5, 6)
|
|
2076
2086
|
])
|