quail-ui 0.2.17 → 0.2.18
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 +210 -213
- 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,64 +1,64 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as o1, defineComponent as Z, ref as I, watch as G, onMounted as h1, withDirectives as t1, vModelText as c1, computed as Y, createBlock as D, Transition as u1, withCtx as C1, normalizeStyle as H1, withModifiers as f1, toDisplayString as Q, renderSlot as l1, createCommentVNode as U, getCurrentInstance as V1, resolveComponent as d1, normalizeClass as q, unref as X, resolveDynamicComponent as e1, Fragment as w1, renderList as p1, vModelCheckbox as y1, pushScopeId as b1, popScopeId as z1, createVNode as n1 } from "https://cdn.jsdelivr.net/npm/vue@3.3.9/+esm";
|
|
2
2
|
const r = (t, e) => {
|
|
3
3
|
const d = t.__vccOpts || t;
|
|
4
4
|
for (const [_, h] of e)
|
|
5
5
|
d[_] = h;
|
|
6
6
|
return d;
|
|
7
|
-
},
|
|
7
|
+
}, I1 = {}, Q1 = {
|
|
8
8
|
width: "24",
|
|
9
9
|
height: "24",
|
|
10
10
|
viewBox: "0 0 24 24",
|
|
11
11
|
fill: "none",
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
-
},
|
|
13
|
+
}, B1 = /* @__PURE__ */ o("path", {
|
|
14
14
|
d: "M6 18L18 6M18 6H10M18 6V14",
|
|
15
15
|
stroke: "currentColor",
|
|
16
16
|
"stroke-width": "2",
|
|
17
17
|
"stroke-linecap": "round",
|
|
18
18
|
"stroke-linejoin": "round"
|
|
19
|
-
}, null, -1),
|
|
20
|
-
|
|
19
|
+
}, null, -1), S1 = [
|
|
20
|
+
B1
|
|
21
21
|
];
|
|
22
|
-
function
|
|
23
|
-
return n(), s("svg",
|
|
22
|
+
function j1(t, e) {
|
|
23
|
+
return n(), s("svg", Q1, S1);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const D1 = /* @__PURE__ */ r(I1, [["render", j1]]), Z1 = {}, O1 = {
|
|
26
26
|
width: "24",
|
|
27
27
|
height: "24",
|
|
28
28
|
viewBox: "0 0 24 24",
|
|
29
29
|
fill: "none",
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
-
},
|
|
31
|
+
}, P1 = /* @__PURE__ */ o("path", {
|
|
32
32
|
d: "M19 12H5M5 12L12 19M5 12L12 5",
|
|
33
33
|
stroke: "currentColor",
|
|
34
34
|
"stroke-width": "2",
|
|
35
35
|
"stroke-linecap": "round",
|
|
36
36
|
"stroke-linejoin": "round"
|
|
37
|
-
}, null, -1),
|
|
38
|
-
|
|
37
|
+
}, null, -1), T1 = [
|
|
38
|
+
P1
|
|
39
39
|
];
|
|
40
|
-
function
|
|
41
|
-
return n(), s("svg",
|
|
40
|
+
function Y1(t, e) {
|
|
41
|
+
return n(), s("svg", O1, T1);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const v1 = /* @__PURE__ */ r(Z1, [["render", Y1]]), A1 = {}, F1 = {
|
|
44
44
|
width: "24",
|
|
45
45
|
height: "24",
|
|
46
46
|
viewBox: "0 0 24 24",
|
|
47
47
|
fill: "none",
|
|
48
48
|
xmlns: "http://www.w3.org/2000/svg"
|
|
49
|
-
},
|
|
49
|
+
}, U1 = /* @__PURE__ */ o("path", {
|
|
50
50
|
d: "M5 12H19M19 12L12 5M19 12L12 19",
|
|
51
51
|
stroke: "currentColor",
|
|
52
52
|
"stroke-width": "2",
|
|
53
53
|
"stroke-linecap": "round",
|
|
54
54
|
"stroke-linejoin": "round"
|
|
55
|
-
}, null, -1),
|
|
56
|
-
|
|
55
|
+
}, null, -1), q1 = [
|
|
56
|
+
U1
|
|
57
57
|
];
|
|
58
|
-
function
|
|
59
|
-
return n(), s("svg",
|
|
58
|
+
function E1(t, e) {
|
|
59
|
+
return n(), s("svg", F1, q1);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const g1 = /* @__PURE__ */ r(A1, [["render", E1]]), W1 = {}, N1 = {
|
|
62
62
|
width: "24",
|
|
63
63
|
height: "24",
|
|
64
64
|
viewBox: "0 0 24 24",
|
|
@@ -323,7 +323,7 @@ const bt = /* @__PURE__ */ r(xt, [["render", yt]]), zt = {}, It = {
|
|
|
323
323
|
height: "24",
|
|
324
324
|
preserveAspectRatio: "xMidYMid meet",
|
|
325
325
|
viewBox: "0 0 24 24"
|
|
326
|
-
}, Qt = /* @__PURE__ */
|
|
326
|
+
}, Qt = /* @__PURE__ */ o1('<g clip-path="url(#clip0_110_2)"><path d="M24 12C24 18.6281 18.6281 24 12 24C5.37188 24 0 18.6281 0 12C0 5.37188 5.37188 0 12 0C18.6281 0 24 5.37188 24 12Z" fill="#F26522"></path><path d="M7.57501 17.5266C6.67033 17.5266 5.93907 16.7953 5.93907 15.8906C5.93907 14.9859 6.67033 14.2547 7.57501 14.2547C8.4797 14.2547 9.21095 14.9859 9.21095 15.8906C9.21095 16.7906 8.4797 17.5266 7.57501 17.5266ZM11.4844 17.5266C11.4516 14.4797 8.98126 12.0094 5.93439 11.9766V9.55311C10.3266 9.58593 13.875 13.1391 13.9078 17.5266H11.4844ZM15.5906 17.5266C15.5813 14.9484 14.5734 12.5203 12.75 10.6969C10.9266 8.87343 8.50782 7.86561 5.93439 7.85624V5.4328C12.6 5.45624 18 10.8609 18.0141 17.5266H15.5906Z" fill="white"></path></g><defs><clipPath id="clip0_110_2"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2), Bt = [
|
|
327
327
|
Qt
|
|
328
328
|
];
|
|
329
329
|
function St(t, e) {
|
|
@@ -637,7 +637,7 @@ const L4 = /* @__PURE__ */ r($4, [["render", x4]]), H4 = {}, V4 = {
|
|
|
637
637
|
height: "24",
|
|
638
638
|
preserveAspectRatio: "xMidYMid meet",
|
|
639
639
|
viewBox: "0 0 24 24"
|
|
640
|
-
}, y4 = /* @__PURE__ */
|
|
640
|
+
}, y4 = /* @__PURE__ */ o1('<g clip-path="url(#clip0_110_6)"><path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="url(#paint0_linear_110_6)"></path><path d="M17.8406 6.90468L15.6984 17.7094C15.6984 17.7094 15.3984 18.4594 14.5734 18.0984L9.62811 14.3062L7.82811 13.4391L4.79999 12.4219C4.79999 12.4219 4.33592 12.2578 4.28905 11.8969C4.24217 11.5359 4.81405 11.3437 4.81405 11.3437L16.8515 6.62343C16.8515 6.61874 17.8406 6.1828 17.8406 6.90468Z" fill="white"></path><path d="M9.24375 17.5875C9.24375 17.5875 9.09844 17.5734 8.92031 17.0062C8.74219 16.439 7.82812 13.439 7.82812 13.439L15.0984 8.82185C15.0984 8.82185 15.5203 8.56873 15.5016 8.82185C15.5016 8.82185 15.5766 8.86873 15.3516 9.07498C15.1266 9.28591 9.64219 14.2172 9.64219 14.2172" fill="#D2E4F0"></path><path d="M11.5219 15.7594L9.56716 17.5453C9.56716 17.5453 9.41248 17.6625 9.24841 17.5875L9.62341 14.2734" fill="#B5CFE4"></path></g><defs><linearGradient id="paint0_linear_110_6" x1="12" y1="0" x2="12" y2="23.9124" gradientUnits="userSpaceOnUse"><stop stop-color="#41BCE7"></stop><stop offset="1" stop-color="#22A6DC"></stop></linearGradient><clipPath id="clip0_110_6"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2), b4 = [
|
|
641
641
|
y4
|
|
642
642
|
];
|
|
643
643
|
function z4(t, e) {
|
|
@@ -719,7 +719,7 @@ const e0 = /* @__PURE__ */ r(R4, [["render", t0]]), n0 = {}, o0 = {
|
|
|
719
719
|
viewBox: "0 0 24 24",
|
|
720
720
|
fill: "none",
|
|
721
721
|
xmlns: "http://www.w3.org/2000/svg"
|
|
722
|
-
}, s0 = /* @__PURE__ */
|
|
722
|
+
}, s0 = /* @__PURE__ */ o1('<path d="M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z" stroke="url(#paint0_linear_24_7)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 6L7.4336 12.2269C7.13256 12.6374 6.98205 12.8427 6.9869 13.0142C6.99113 13.1634 7.06185 13.303 7.17972 13.3947C7.31514 13.5 7.56967 13.5 8.07872 13.5H12V18L16.5664 11.7731C16.8674 11.3626 17.018 11.1573 17.0131 10.9858C17.0089 10.8366 16.9381 10.697 16.8203 10.6053C16.6849 10.5 16.4303 10.5 15.9213 10.5H12V6Z" fill="url(#paint1_linear_24_7)"></path><defs><linearGradient id="paint0_linear_24_7" x1="12" y1="3" x2="12" y2="21" gradientUnits="userSpaceOnUse"><stop stop-color="#D6AC5E"></stop><stop offset="1" stop-color="#9D5C2E"></stop></linearGradient><linearGradient id="paint1_linear_24_7" x1="12" y1="6" x2="12" y2="18" gradientUnits="userSpaceOnUse"><stop stop-color="#D7AD5E"></stop><stop offset="1" stop-color="#9C5B2D"></stop></linearGradient></defs>', 3), r0 = [
|
|
723
723
|
s0
|
|
724
724
|
];
|
|
725
725
|
function i0(t, e) {
|
|
@@ -1157,9 +1157,9 @@ function Y9(t, e) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
const A9 = /* @__PURE__ */ r(Z9, [["render", Y9]]), F9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1159
1159
|
__proto__: null,
|
|
1160
|
-
QIconArrowLeft:
|
|
1161
|
-
QIconArrowRight:
|
|
1162
|
-
QIconArrowUpRight:
|
|
1160
|
+
QIconArrowLeft: v1,
|
|
1161
|
+
QIconArrowRight: g1,
|
|
1162
|
+
QIconArrowUpRight: D1,
|
|
1163
1163
|
QIconBatteryFull: s2,
|
|
1164
1164
|
QIconBatteryMid: K1,
|
|
1165
1165
|
QIconBitcoinCircle: u0,
|
|
@@ -1226,20 +1226,20 @@ var U9 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1226
1226
|
function q9(t) {
|
|
1227
1227
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1228
1228
|
}
|
|
1229
|
-
var
|
|
1229
|
+
var $1 = { exports: {} };
|
|
1230
1230
|
(function(t, e) {
|
|
1231
1231
|
(function(d, _) {
|
|
1232
1232
|
t.exports = _();
|
|
1233
1233
|
})(U9, function() {
|
|
1234
|
-
var d = 1e3, _ = 6e4, h = 36e5,
|
|
1234
|
+
var d = 1e3, _ = 6e4, h = 36e5, g = "millisecond", $ = "second", u = "minute", M = "hour", f = "day", v = "week", x = "month", B = "quarter", S = "year", A = "date", a1 = "Invalid Date", M1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k1 = /\[([^\]]+)]|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, x1 = { 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"], i = C % 100;
|
|
1236
1236
|
return "[" + C + (l[(i - 20) % 10] || l[i] || l[0]) + "]";
|
|
1237
|
-
} },
|
|
1237
|
+
} }, s1 = function(C, l, i) {
|
|
1238
1238
|
var a = String(C);
|
|
1239
1239
|
return !a || a.length >= l ? C : "" + Array(l + 1 - a.length).join(i) + C;
|
|
1240
|
-
},
|
|
1240
|
+
}, L1 = { s: s1, z: function(C) {
|
|
1241
1241
|
var l = -C.utcOffset(), i = Math.abs(l), a = Math.floor(i / 60), c = i % 60;
|
|
1242
|
-
return (l <= 0 ? "+" : "-") +
|
|
1242
|
+
return (l <= 0 ? "+" : "-") + s1(a, 2, "0") + ":" + s1(c, 2, "0");
|
|
1243
1243
|
}, m: function C(l, i) {
|
|
1244
1244
|
if (l.date() < i.date())
|
|
1245
1245
|
return -C(i, l);
|
|
@@ -1248,14 +1248,14 @@ var v1 = { exports: {} };
|
|
|
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: S, w: v, d: f, D: A, h: M, m: u, s: $, ms: g, Q: B }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1252
1252
|
}, u: function(C) {
|
|
1253
1253
|
return C === void 0;
|
|
1254
1254
|
} }, E = "en", O = {};
|
|
1255
|
-
O[E] =
|
|
1256
|
-
var
|
|
1257
|
-
return C instanceof
|
|
1258
|
-
},
|
|
1255
|
+
O[E] = x1;
|
|
1256
|
+
var r1 = function(C) {
|
|
1257
|
+
return C instanceof J;
|
|
1258
|
+
}, R = function C(l, i, a) {
|
|
1259
1259
|
var c;
|
|
1260
1260
|
if (!l)
|
|
1261
1261
|
return E;
|
|
@@ -1271,17 +1271,17 @@ var v1 = { exports: {} };
|
|
|
1271
1271
|
}
|
|
1272
1272
|
return !a && c && (E = c), c || !a && E;
|
|
1273
1273
|
}, H = function(C, l) {
|
|
1274
|
-
if (
|
|
1274
|
+
if (r1(C))
|
|
1275
1275
|
return C.clone();
|
|
1276
1276
|
var i = typeof l == "object" ? l : {};
|
|
1277
|
-
return i.date = C, i.args = arguments, new
|
|
1278
|
-
}, m =
|
|
1279
|
-
m.l =
|
|
1277
|
+
return i.date = C, i.args = arguments, new J(i);
|
|
1278
|
+
}, m = L1;
|
|
1279
|
+
m.l = R, m.i = r1, m.w = function(C, l) {
|
|
1280
1280
|
return H(C, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
|
|
1281
1281
|
};
|
|
1282
|
-
var
|
|
1282
|
+
var J = function() {
|
|
1283
1283
|
function C(i) {
|
|
1284
|
-
this.$L =
|
|
1284
|
+
this.$L = R(i.locale, null, !0), this.parse(i);
|
|
1285
1285
|
}
|
|
1286
1286
|
var l = C.prototype;
|
|
1287
1287
|
return l.parse = function(i) {
|
|
@@ -1294,7 +1294,7 @@ var v1 = { exports: {} };
|
|
|
1294
1294
|
if (c instanceof Date)
|
|
1295
1295
|
return new Date(c);
|
|
1296
1296
|
if (typeof c == "string" && !/Z$/i.test(c)) {
|
|
1297
|
-
var p = c.match(
|
|
1297
|
+
var p = c.match(M1);
|
|
1298
1298
|
if (p) {
|
|
1299
1299
|
var k = p[2] - 1 || 0, L = (p[7] || "0").substring(0, 3);
|
|
1300
1300
|
return w ? new Date(Date.UTC(p[1], k, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, L)) : new Date(p[1], k, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, L);
|
|
@@ -1323,20 +1323,20 @@ var v1 = { exports: {} };
|
|
|
1323
1323
|
}, l.valueOf = function() {
|
|
1324
1324
|
return this.$d.getTime();
|
|
1325
1325
|
}, l.startOf = function(i, a) {
|
|
1326
|
-
var c = this, w = !!m.u(a) || a, p = m.p(i), k = function(T,
|
|
1327
|
-
var j = m.w(c.$u ? Date.UTC(c.$y,
|
|
1326
|
+
var c = this, w = !!m.u(a) || a, p = m.p(i), k = function(T, b) {
|
|
1327
|
+
var j = m.w(c.$u ? Date.UTC(c.$y, b, T) : new Date(c.$y, b, T), c);
|
|
1328
1328
|
return w ? j : j.endOf(f);
|
|
1329
|
-
}, L = function(T,
|
|
1330
|
-
return m.w(c.toDate()[T].apply(c.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
1331
|
-
}, V = this.$W, y = this.$M,
|
|
1329
|
+
}, L = function(T, b) {
|
|
1330
|
+
return m.w(c.toDate()[T].apply(c.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(b)), c);
|
|
1331
|
+
}, V = this.$W, y = this.$M, z = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
1332
1332
|
switch (p) {
|
|
1333
|
-
case
|
|
1333
|
+
case S:
|
|
1334
1334
|
return w ? k(1, 0) : k(31, 11);
|
|
1335
1335
|
case x:
|
|
1336
1336
|
return w ? k(1, y) : k(0, y + 1);
|
|
1337
|
-
case
|
|
1337
|
+
case v:
|
|
1338
1338
|
var P = this.$locale().weekStart || 0, W = (V < P ? V + 7 : V) - P;
|
|
1339
|
-
return k(w ?
|
|
1339
|
+
return k(w ? z - W : z + (6 - W), y);
|
|
1340
1340
|
case f:
|
|
1341
1341
|
case A:
|
|
1342
1342
|
return L(F + "Hours", 0);
|
|
@@ -1344,7 +1344,7 @@ var v1 = { exports: {} };
|
|
|
1344
1344
|
return L(F + "Minutes", 1);
|
|
1345
1345
|
case u:
|
|
1346
1346
|
return L(F + "Seconds", 2);
|
|
1347
|
-
case
|
|
1347
|
+
case $:
|
|
1348
1348
|
return L(F + "Milliseconds", 3);
|
|
1349
1349
|
default:
|
|
1350
1350
|
return this.clone();
|
|
@@ -1352,8 +1352,8 @@ var v1 = { exports: {} };
|
|
|
1352
1352
|
}, l.endOf = function(i) {
|
|
1353
1353
|
return this.startOf(i, !1);
|
|
1354
1354
|
}, l.$set = function(i, a) {
|
|
1355
|
-
var c, w = m.p(i), p = "set" + (this.$u ? "UTC" : ""), k = (c = {}, c[f] = p + "Date", c[A] = p + "Date", c[x] = p + "Month", c[
|
|
1356
|
-
if (w === x || w ===
|
|
1355
|
+
var c, w = m.p(i), p = "set" + (this.$u ? "UTC" : ""), k = (c = {}, c[f] = p + "Date", c[A] = p + "Date", c[x] = p + "Month", c[S] = p + "FullYear", c[M] = p + "Hours", c[u] = p + "Minutes", c[$] = p + "Seconds", c[g] = p + "Milliseconds", c)[w], L = w === f ? this.$D + (a - this.$W) : a;
|
|
1356
|
+
if (w === x || w === S) {
|
|
1357
1357
|
var V = this.clone().set(A, 1);
|
|
1358
1358
|
V.$d[k](L), V.init(), this.$d = V.set(A, Math.min(this.$D, V.daysInMonth())).$d;
|
|
1359
1359
|
} else
|
|
@@ -1367,18 +1367,18 @@ var v1 = { exports: {} };
|
|
|
1367
1367
|
var c, w = this;
|
|
1368
1368
|
i = Number(i);
|
|
1369
1369
|
var p = m.p(a), k = function(y) {
|
|
1370
|
-
var
|
|
1371
|
-
return m.w(
|
|
1370
|
+
var z = H(w);
|
|
1371
|
+
return m.w(z.date(z.date() + Math.round(y * i)), w);
|
|
1372
1372
|
};
|
|
1373
1373
|
if (p === x)
|
|
1374
1374
|
return this.set(x, this.$M + i);
|
|
1375
|
-
if (p ===
|
|
1376
|
-
return this.set(
|
|
1375
|
+
if (p === S)
|
|
1376
|
+
return this.set(S, this.$y + i);
|
|
1377
1377
|
if (p === f)
|
|
1378
1378
|
return k(1);
|
|
1379
|
-
if (p ===
|
|
1379
|
+
if (p === v)
|
|
1380
1380
|
return k(7);
|
|
1381
|
-
var L = (c = {}, c[u] = _, c[M] = h, c[
|
|
1381
|
+
var L = (c = {}, c[u] = _, c[M] = h, c[$] = d, c)[p] || 1, V = this.$d.getTime() + i * L;
|
|
1382
1382
|
return m.w(V, this);
|
|
1383
1383
|
}, l.subtract = function(i, a) {
|
|
1384
1384
|
return this.add(-1 * i, a);
|
|
@@ -1386,15 +1386,15 @@ var v1 = { exports: {} };
|
|
|
1386
1386
|
var a = this, c = this.$locale();
|
|
1387
1387
|
if (!this.isValid())
|
|
1388
1388
|
return c.invalidDate || a1;
|
|
1389
|
-
var w = i || "YYYY-MM-DDTHH:mm:ssZ", p = m.z(this), k = this.$H, L = this.$m, V = this.$M, y = c.weekdays,
|
|
1390
|
-
return
|
|
1391
|
-
}, W = function(
|
|
1392
|
-
return m.s(k % 12 || 12,
|
|
1393
|
-
}, T = F || function(
|
|
1394
|
-
var
|
|
1395
|
-
return N ?
|
|
1389
|
+
var w = i || "YYYY-MM-DDTHH:mm:ssZ", p = m.z(this), k = this.$H, L = this.$m, V = this.$M, y = c.weekdays, z = c.months, F = c.meridiem, P = function(b, j, N, K) {
|
|
1390
|
+
return b && (b[j] || b(a, w)) || N[j].slice(0, K);
|
|
1391
|
+
}, W = function(b) {
|
|
1392
|
+
return m.s(k % 12 || 12, b, "0");
|
|
1393
|
+
}, T = F || function(b, j, N) {
|
|
1394
|
+
var K = b < 12 ? "AM" : "PM";
|
|
1395
|
+
return N ? K.toLowerCase() : K;
|
|
1396
1396
|
};
|
|
1397
|
-
return w.replace(
|
|
1397
|
+
return w.replace(k1, function(b, j) {
|
|
1398
1398
|
return j || function(N) {
|
|
1399
1399
|
switch (N) {
|
|
1400
1400
|
case "YY":
|
|
@@ -1406,9 +1406,9 @@ var v1 = { exports: {} };
|
|
|
1406
1406
|
case "MM":
|
|
1407
1407
|
return m.s(V + 1, 2, "0");
|
|
1408
1408
|
case "MMM":
|
|
1409
|
-
return P(c.monthsShort, V,
|
|
1409
|
+
return P(c.monthsShort, V, z, 3);
|
|
1410
1410
|
case "MMMM":
|
|
1411
|
-
return P(
|
|
1411
|
+
return P(z, V);
|
|
1412
1412
|
case "D":
|
|
1413
1413
|
return a.$D;
|
|
1414
1414
|
case "DD":
|
|
@@ -1447,25 +1447,25 @@ var v1 = { exports: {} };
|
|
|
1447
1447
|
return p;
|
|
1448
1448
|
}
|
|
1449
1449
|
return null;
|
|
1450
|
-
}(
|
|
1450
|
+
}(b) || p.replace(":", "");
|
|
1451
1451
|
});
|
|
1452
1452
|
}, l.utcOffset = function() {
|
|
1453
1453
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1454
1454
|
}, l.diff = function(i, a, c) {
|
|
1455
|
-
var w, p = this, k = m.p(a), L = H(i), V = (L.utcOffset() - this.utcOffset()) * _, y = this - L,
|
|
1455
|
+
var w, p = this, k = m.p(a), L = H(i), V = (L.utcOffset() - this.utcOffset()) * _, y = this - L, z = function() {
|
|
1456
1456
|
return m.m(p, L);
|
|
1457
1457
|
};
|
|
1458
1458
|
switch (k) {
|
|
1459
|
-
case
|
|
1460
|
-
w =
|
|
1459
|
+
case S:
|
|
1460
|
+
w = z() / 12;
|
|
1461
1461
|
break;
|
|
1462
1462
|
case x:
|
|
1463
|
-
w =
|
|
1463
|
+
w = z();
|
|
1464
1464
|
break;
|
|
1465
|
-
case
|
|
1466
|
-
w =
|
|
1465
|
+
case B:
|
|
1466
|
+
w = z() / 3;
|
|
1467
1467
|
break;
|
|
1468
|
-
case
|
|
1468
|
+
case v:
|
|
1469
1469
|
w = (y - V) / 6048e5;
|
|
1470
1470
|
break;
|
|
1471
1471
|
case f:
|
|
@@ -1477,7 +1477,7 @@ var v1 = { exports: {} };
|
|
|
1477
1477
|
case u:
|
|
1478
1478
|
w = y / _;
|
|
1479
1479
|
break;
|
|
1480
|
-
case
|
|
1480
|
+
case $:
|
|
1481
1481
|
w = y / d;
|
|
1482
1482
|
break;
|
|
1483
1483
|
default:
|
|
@@ -1491,7 +1491,7 @@ var v1 = { exports: {} };
|
|
|
1491
1491
|
}, l.locale = function(i, a) {
|
|
1492
1492
|
if (!i)
|
|
1493
1493
|
return this.$L;
|
|
1494
|
-
var c = this.clone(), w =
|
|
1494
|
+
var c = this.clone(), w = R(i, a, !0);
|
|
1495
1495
|
return w && (c.$L = w), c;
|
|
1496
1496
|
}, l.clone = function() {
|
|
1497
1497
|
return m.w(this.$d, this);
|
|
@@ -1504,20 +1504,20 @@ var v1 = { exports: {} };
|
|
|
1504
1504
|
}, l.toString = function() {
|
|
1505
1505
|
return this.$d.toUTCString();
|
|
1506
1506
|
}, C;
|
|
1507
|
-
}(), _1 =
|
|
1508
|
-
return H.prototype = _1, [["$ms",
|
|
1507
|
+
}(), _1 = J.prototype;
|
|
1508
|
+
return H.prototype = _1, [["$ms", g], ["$s", $], ["$m", u], ["$H", M], ["$W", f], ["$M", x], ["$y", S], ["$D", A]].forEach(function(C) {
|
|
1509
1509
|
_1[C[1]] = function(l) {
|
|
1510
1510
|
return this.$g(l, C[0], C[1]);
|
|
1511
1511
|
};
|
|
1512
1512
|
}), H.extend = function(C, l) {
|
|
1513
|
-
return C.$i || (C(l,
|
|
1514
|
-
}, H.locale =
|
|
1513
|
+
return C.$i || (C(l, J, H), C.$i = !0), H;
|
|
1514
|
+
}, H.locale = R, H.isDayjs = r1, H.unix = function(C) {
|
|
1515
1515
|
return H(1e3 * C);
|
|
1516
1516
|
}, H.en = O[E], H.Ls = O, H.p = {}, H;
|
|
1517
1517
|
});
|
|
1518
|
-
})(
|
|
1519
|
-
var E9 =
|
|
1520
|
-
const
|
|
1518
|
+
})($1);
|
|
1519
|
+
var E9 = $1.exports;
|
|
1520
|
+
const i1 = /* @__PURE__ */ q9(E9), W9 = { class: "wrapper" }, N9 = ["disabled"], G9 = ["disabled"], R9 = /* @__PURE__ */ Z({
|
|
1521
1521
|
__name: "QDatetimePicker",
|
|
1522
1522
|
props: {
|
|
1523
1523
|
modelValue: {
|
|
@@ -1531,37 +1531,37 @@ const c1 = /* @__PURE__ */ q9(E9), W9 = { class: "wrapper" }, N9 = ["disabled"],
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["update:modelValue", "change"],
|
|
1533
1533
|
setup(t, { emit: e }) {
|
|
1534
|
-
const d = t, _ =
|
|
1535
|
-
|
|
1534
|
+
const d = t, _ = I(""), h = I("");
|
|
1535
|
+
G(
|
|
1536
1536
|
() => d.modelValue,
|
|
1537
|
-
(
|
|
1538
|
-
const u =
|
|
1537
|
+
($) => {
|
|
1538
|
+
const u = i1($);
|
|
1539
1539
|
_.value = u.format("YYYY-MM-DD"), h.value = u.format("HH:mm");
|
|
1540
1540
|
}
|
|
1541
1541
|
);
|
|
1542
|
-
function
|
|
1543
|
-
const
|
|
1544
|
-
e("change",
|
|
1542
|
+
function g() {
|
|
1543
|
+
const $ = i1(`${_.value} ${h.value}`).format("YYYY-MM-DDTHH:mm:ssZ");
|
|
1544
|
+
e("change", $), e("update:modelValue", $);
|
|
1545
1545
|
}
|
|
1546
1546
|
return h1(() => {
|
|
1547
|
-
const
|
|
1548
|
-
_.value =
|
|
1549
|
-
}), (
|
|
1550
|
-
|
|
1547
|
+
const $ = i1();
|
|
1548
|
+
_.value = $.format("YYYY-MM-DD"), h.value = $.format("HH:mm");
|
|
1549
|
+
}), ($, u) => (n(), s("div", W9, [
|
|
1550
|
+
t1(o("input", {
|
|
1551
1551
|
"onUpdate:modelValue": u[0] || (u[0] = (M) => _.value = M),
|
|
1552
1552
|
type: "date",
|
|
1553
1553
|
disabled: t.disabled,
|
|
1554
|
-
onChange:
|
|
1554
|
+
onChange: g
|
|
1555
1555
|
}, null, 40, N9), [
|
|
1556
|
-
[
|
|
1556
|
+
[c1, _.value]
|
|
1557
1557
|
]),
|
|
1558
|
-
|
|
1558
|
+
t1(o("input", {
|
|
1559
1559
|
"onUpdate:modelValue": u[1] || (u[1] = (M) => h.value = M),
|
|
1560
1560
|
type: "time",
|
|
1561
1561
|
disabled: t.disabled,
|
|
1562
|
-
onChange:
|
|
1562
|
+
onChange: g
|
|
1563
1563
|
}, null, 40, G9), [
|
|
1564
|
-
[
|
|
1564
|
+
[c1, h.value]
|
|
1565
1565
|
])
|
|
1566
1566
|
]));
|
|
1567
1567
|
}
|
|
@@ -1592,41 +1592,41 @@ const J9 = /* @__PURE__ */ r(R9, [["__scopeId", "data-v-f79d855e"]]), K9 = ["onC
|
|
|
1592
1592
|
},
|
|
1593
1593
|
emits: ["update:modelValue", "close"],
|
|
1594
1594
|
setup(t, { emit: e }) {
|
|
1595
|
-
const d = t, _ =
|
|
1595
|
+
const d = t, _ = I(d.modelValue), h = Y(() => {
|
|
1596
1596
|
const u = document.body.clientWidth < 720 ? "100%" : d.width, M = d.height;
|
|
1597
1597
|
return {
|
|
1598
1598
|
width: u,
|
|
1599
1599
|
height: M
|
|
1600
1600
|
};
|
|
1601
1601
|
});
|
|
1602
|
-
|
|
1602
|
+
G(
|
|
1603
1603
|
() => d.modelValue,
|
|
1604
1604
|
(u) => {
|
|
1605
1605
|
_.value = u;
|
|
1606
1606
|
}
|
|
1607
1607
|
);
|
|
1608
|
-
function
|
|
1608
|
+
function g() {
|
|
1609
1609
|
_.value = !1, e("update:modelValue", !1), e("close");
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function $() {
|
|
1612
1612
|
}
|
|
1613
1613
|
return (u, M) => (n(), D(u1, null, {
|
|
1614
1614
|
default: C1(() => [
|
|
1615
1615
|
_.value ? (n(), s("div", {
|
|
1616
1616
|
key: 0,
|
|
1617
1617
|
class: "dialog-mask",
|
|
1618
|
-
onClick:
|
|
1618
|
+
onClick: g
|
|
1619
1619
|
}, [
|
|
1620
1620
|
o("div", {
|
|
1621
1621
|
class: "dialog",
|
|
1622
|
-
style:
|
|
1623
|
-
onClick: f1(
|
|
1622
|
+
style: H1(h.value),
|
|
1623
|
+
onClick: f1($, ["stop"])
|
|
1624
1624
|
}, [
|
|
1625
1625
|
o("div", X9, [
|
|
1626
|
-
t.title ? (n(), s("div", t5,
|
|
1626
|
+
t.title ? (n(), s("div", t5, Q(t.title), 1)) : l1(u.$slots, "header", { key: 1 }, void 0, !0)
|
|
1627
1627
|
]),
|
|
1628
1628
|
o("div", e5, [
|
|
1629
|
-
|
|
1629
|
+
l1(u.$slots, "default", {}, void 0, !0)
|
|
1630
1630
|
])
|
|
1631
1631
|
], 12, K9)
|
|
1632
1632
|
])) : U("", !0)
|
|
@@ -1659,9 +1659,9 @@ const o5 = /* @__PURE__ */ r(n5, [["__scopeId", "data-v-cd14d61a"]]), s5 = ["hre
|
|
|
1659
1659
|
},
|
|
1660
1660
|
setup(t) {
|
|
1661
1661
|
var d;
|
|
1662
|
-
const e = (d =
|
|
1662
|
+
const e = (d = V1()) == null ? void 0 : d.appContext.components;
|
|
1663
1663
|
return (_, h) => {
|
|
1664
|
-
const
|
|
1664
|
+
const g = d1("q-icon-help");
|
|
1665
1665
|
return n(), s("div", {
|
|
1666
1666
|
class: q(["fence", t.type])
|
|
1667
1667
|
}, [
|
|
@@ -1671,33 +1671,33 @@ const o5 = /* @__PURE__ */ r(n5, [["__scopeId", "data-v-cd14d61a"]]), s5 = ["hre
|
|
|
1671
1671
|
href: t.link,
|
|
1672
1672
|
target: "_blank"
|
|
1673
1673
|
}, [
|
|
1674
|
-
t.icon &&
|
|
1674
|
+
t.icon && X(e) ? (n(), D(e1(X(e)[t.icon]), {
|
|
1675
1675
|
key: 0,
|
|
1676
1676
|
class: "icon"
|
|
1677
|
-
})) : (n(), D(
|
|
1677
|
+
})) : (n(), D(g, {
|
|
1678
1678
|
key: 1,
|
|
1679
1679
|
class: "icon"
|
|
1680
1680
|
})),
|
|
1681
|
-
o("div", r5,
|
|
1681
|
+
o("div", r5, Q(t.text), 1)
|
|
1682
1682
|
], 8, s5)) : (n(), s("div", i5, [
|
|
1683
|
-
t.icon &&
|
|
1683
|
+
t.icon && X(e) ? (n(), D(e1(X(e)[t.icon]), {
|
|
1684
1684
|
key: 0,
|
|
1685
1685
|
class: "icon"
|
|
1686
|
-
})) : (n(), D(
|
|
1686
|
+
})) : (n(), D(g, {
|
|
1687
1687
|
key: 1,
|
|
1688
1688
|
class: "icon"
|
|
1689
1689
|
})),
|
|
1690
|
-
o("div", c5,
|
|
1690
|
+
o("div", c5, Q(t.text), 1)
|
|
1691
1691
|
]))
|
|
1692
1692
|
], 2);
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
});
|
|
1696
|
-
const d5 = /* @__PURE__ */ r(l5, [["__scopeId", "data-v-
|
|
1696
|
+
const d5 = /* @__PURE__ */ r(l5, [["__scopeId", "data-v-38c08c55"]]);
|
|
1697
1697
|
const a5 = {}, _5 = {
|
|
1698
1698
|
class: "pa-4 mb-4 rounded-sm text-center",
|
|
1699
1699
|
color: "glass"
|
|
1700
|
-
}, h5 = /* @__PURE__ */
|
|
1700
|
+
}, h5 = /* @__PURE__ */ o1('<div class="spinners py-2 mb-2 d-flex justify-center" data-v-f4d8a4f4><i class="spinner one" aria-hidden="true" data-v-f4d8a4f4></i><i class="spinner two" aria-hidden="true" data-v-f4d8a4f4></i><i class="spinner three" aria-hidden="true" data-v-f4d8a4f4></i><i class="spinner four" aria-hidden="true" data-v-f4d8a4f4></i><i class="spinner five" aria-hidden="true" data-v-f4d8a4f4></i></div>', 1), u5 = [
|
|
1701
1701
|
h5
|
|
1702
1702
|
];
|
|
1703
1703
|
function C5(t, e) {
|
|
@@ -1723,14 +1723,14 @@ const f5 = /* @__PURE__ */ r(a5, [["render", C5], ["__scopeId", "data-v-f4d8a4f4
|
|
|
1723
1723
|
emits: ["action"],
|
|
1724
1724
|
setup(t, { emit: e }) {
|
|
1725
1725
|
const d = t;
|
|
1726
|
-
function _(
|
|
1727
|
-
let
|
|
1728
|
-
return
|
|
1726
|
+
function _(g) {
|
|
1727
|
+
let $ = "";
|
|
1728
|
+
return g.disabled && ($ += " disabled"), g.danger && ($ += " danger"), g.icon && ($ += " with-icon"), g.image && ($ += " with-image"), $;
|
|
1729
1729
|
}
|
|
1730
|
-
function h(
|
|
1731
|
-
|
|
1730
|
+
function h(g) {
|
|
1731
|
+
g.action && g.action(g), g.disabled !== !0 && e("action", g);
|
|
1732
1732
|
}
|
|
1733
|
-
return (
|
|
1733
|
+
return (g, $) => (n(), s("div", w5, [
|
|
1734
1734
|
(n(!0), s(w1, null, p1(d.items, (u) => (n(), s("div", {
|
|
1735
1735
|
class: q(["menu-item", _(u)]),
|
|
1736
1736
|
key: `menu-item-${u.id}`,
|
|
@@ -1742,20 +1742,20 @@ const f5 = /* @__PURE__ */ r(a5, [["render", C5], ["__scopeId", "data-v-f4d8a4f4
|
|
|
1742
1742
|
class: "menu-image",
|
|
1743
1743
|
src: u.image,
|
|
1744
1744
|
alt: u.title
|
|
1745
|
-
}, null, 8, $5)) : u.icon ? (n(), D(
|
|
1745
|
+
}, null, 8, $5)) : u.icon ? (n(), D(e1(u.icon), {
|
|
1746
1746
|
key: 1,
|
|
1747
1747
|
class: "menu-icon mr-1"
|
|
1748
1748
|
})) : U("", !0),
|
|
1749
1749
|
o("div", m5, [
|
|
1750
|
-
o("div", M5,
|
|
1751
|
-
u.subtitle ? (n(), s("div", k5,
|
|
1750
|
+
o("div", M5, Q(u.title), 1),
|
|
1751
|
+
u.subtitle ? (n(), s("div", k5, Q(u.subtitle), 1)) : U("", !0)
|
|
1752
1752
|
])
|
|
1753
1753
|
]))
|
|
1754
1754
|
], 10, p5))), 128))
|
|
1755
1755
|
]));
|
|
1756
1756
|
}
|
|
1757
1757
|
});
|
|
1758
|
-
const L5 = /* @__PURE__ */ r(x5, [["__scopeId", "data-v-f9bd95cd"]]), H5 = (t) => (
|
|
1758
|
+
const L5 = /* @__PURE__ */ r(x5, [["__scopeId", "data-v-f9bd95cd"]]), H5 = (t) => (b1("data-v-f5802762"), t = t(), z1(), t), V5 = ["disabled"], y5 = /* @__PURE__ */ H5(() => /* @__PURE__ */ o("div", { class: "toggle-switch" }, null, -1)), b5 = /* @__PURE__ */ Z({
|
|
1759
1759
|
__name: "QSwitch",
|
|
1760
1760
|
props: {
|
|
1761
1761
|
modelValue: {
|
|
@@ -1769,24 +1769,24 @@ const L5 = /* @__PURE__ */ r(x5, [["__scopeId", "data-v-f9bd95cd"]]), H5 = (t) =
|
|
|
1769
1769
|
},
|
|
1770
1770
|
emits: ["update:modelValue", "change"],
|
|
1771
1771
|
setup(t, { emit: e }) {
|
|
1772
|
-
const d = t, _ =
|
|
1773
|
-
|
|
1774
|
-
_.value =
|
|
1772
|
+
const d = t, _ = I(d.modelValue);
|
|
1773
|
+
G(() => d.modelValue, (g) => {
|
|
1774
|
+
_.value = g;
|
|
1775
1775
|
});
|
|
1776
|
-
function h(
|
|
1776
|
+
function h(g) {
|
|
1777
1777
|
e("update:modelValue", _.value), e("change", _.value);
|
|
1778
1778
|
}
|
|
1779
|
-
return (
|
|
1779
|
+
return (g, $) => (n(), s("label", {
|
|
1780
1780
|
class: q(["toggle", t.disabled ? "disabled" : ""])
|
|
1781
1781
|
}, [
|
|
1782
|
-
|
|
1782
|
+
t1(o("input", {
|
|
1783
1783
|
class: "toggle-checkbox",
|
|
1784
1784
|
type: "checkbox",
|
|
1785
|
-
"onUpdate:modelValue":
|
|
1785
|
+
"onUpdate:modelValue": $[0] || ($[0] = (u) => _.value = u),
|
|
1786
1786
|
onChange: h,
|
|
1787
1787
|
disabled: d.disabled
|
|
1788
1788
|
}, null, 40, V5), [
|
|
1789
|
-
[
|
|
1789
|
+
[y1, _.value]
|
|
1790
1790
|
]),
|
|
1791
1791
|
y5
|
|
1792
1792
|
], 2));
|
|
@@ -1816,30 +1816,30 @@ const z5 = /* @__PURE__ */ r(b5, [["__scopeId", "data-v-f5802762"]]), I5 = ["pla
|
|
|
1816
1816
|
},
|
|
1817
1817
|
emits: ["submit"],
|
|
1818
1818
|
setup(t, { emit: e }) {
|
|
1819
|
-
const d = t, _ =
|
|
1820
|
-
var
|
|
1821
|
-
return d.loading || ((
|
|
1822
|
-
}), v = Y(() => {
|
|
1823
|
-
var $;
|
|
1824
|
-
const f = ($ = _.value) == null ? void 0 : $.trim();
|
|
1825
|
-
return !d.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f);
|
|
1819
|
+
const d = t, _ = I(d.defaultText), h = Y(() => {
|
|
1820
|
+
var v;
|
|
1821
|
+
return d.loading || ((v = _.value) == null ? void 0 : v.trim()).length === 0 ? !1 : d.type === "email" ? g.value : d.type === "code" ? $.value : !0;
|
|
1826
1822
|
}), g = Y(() => {
|
|
1827
|
-
var
|
|
1828
|
-
const f = (
|
|
1823
|
+
var v;
|
|
1824
|
+
const f = (v = _.value) == null ? void 0 : v.trim();
|
|
1825
|
+
return !d.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f);
|
|
1826
|
+
}), $ = Y(() => {
|
|
1827
|
+
var v;
|
|
1828
|
+
const f = (v = _.value) == null ? void 0 : v.trim();
|
|
1829
1829
|
return /^\d{6}$/.test(f);
|
|
1830
1830
|
}), u = Y(() => d.loading ? "Loading..." : d.actionLabel), M = () => {
|
|
1831
1831
|
h.value && e("submit", { text: _.value });
|
|
1832
1832
|
};
|
|
1833
|
-
return (f,
|
|
1833
|
+
return (f, v) => (n(), s("div", {
|
|
1834
1834
|
class: q(["text-field-with-button", d.type])
|
|
1835
1835
|
}, [
|
|
1836
1836
|
o("div", null, [
|
|
1837
|
-
|
|
1837
|
+
t1(o("input", {
|
|
1838
1838
|
class: "text-field",
|
|
1839
1839
|
placeholder: d.placeholder,
|
|
1840
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": v[0] || (v[0] = (x) => _.value = x)
|
|
1841
1841
|
}, null, 8, I5), [
|
|
1842
|
-
[
|
|
1842
|
+
[c1, _.value]
|
|
1843
1843
|
])
|
|
1844
1844
|
]),
|
|
1845
1845
|
o("div", null, [
|
|
@@ -1848,14 +1848,14 @@ const z5 = /* @__PURE__ */ r(b5, [["__scopeId", "data-v-f5802762"]]), I5 = ["pla
|
|
|
1848
1848
|
disabled: !h.value,
|
|
1849
1849
|
onClick: M
|
|
1850
1850
|
}, [
|
|
1851
|
-
o("div", B5,
|
|
1851
|
+
o("div", B5, Q(u.value), 1)
|
|
1852
1852
|
], 8, Q5)
|
|
1853
1853
|
])
|
|
1854
1854
|
], 2));
|
|
1855
1855
|
}
|
|
1856
1856
|
});
|
|
1857
1857
|
const j5 = /* @__PURE__ */ r(S5, [["__scopeId", "data-v-7c4dff0c"]]);
|
|
1858
|
-
function
|
|
1858
|
+
function m1() {
|
|
1859
1859
|
let t = parseInt(sessionStorage.getItem("quailui_global_popup_trigger") || "0") || 0;
|
|
1860
1860
|
sessionStorage.setItem("quailui_global_popup_trigger", t + 1 + ""), window.dispatchEvent(new StorageEvent("storage", {
|
|
1861
1861
|
key: "quailui_global_popup_trigger",
|
|
@@ -1892,20 +1892,20 @@ const D5 = { class: "dropdown-menu" }, Z5 = { class: "dropdown-menu-inner narrow
|
|
|
1892
1892
|
},
|
|
1893
1893
|
emits: ["change"],
|
|
1894
1894
|
setup(t, { emit: e }) {
|
|
1895
|
-
const d = t, _ =
|
|
1895
|
+
const d = t, _ = I(!1), h = I(null), g = I(null), $ = Y(() => {
|
|
1896
1896
|
const f = [];
|
|
1897
1897
|
return _.value && f.push("expanded"), d.variant === "outlined" && f.push("frame"), f.join(" ");
|
|
1898
1898
|
});
|
|
1899
1899
|
function u() {
|
|
1900
|
-
_.value ||
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1900
|
+
_.value || m1(), _.value = !_.value, _.value && setTimeout(() => {
|
|
1901
|
+
const v = g.value.querySelector(".menu");
|
|
1902
|
+
v.getBoundingClientRect().left < 0 && (v.style.left = "0");
|
|
1903
1903
|
}, 10);
|
|
1904
1904
|
}
|
|
1905
1905
|
function M(f) {
|
|
1906
1906
|
_.value = !1, h.value = f, f.action && f.action(f), e("change", f);
|
|
1907
1907
|
}
|
|
1908
|
-
return
|
|
1908
|
+
return G(
|
|
1909
1909
|
() => d.initialItem,
|
|
1910
1910
|
() => {
|
|
1911
1911
|
d.initialItem && (h.value = d.initialItem);
|
|
@@ -1914,12 +1914,12 @@ const D5 = { class: "dropdown-menu" }, Z5 = { class: "dropdown-menu-inner narrow
|
|
|
1914
1914
|
d.initialItem && (h.value = d.initialItem), window.addEventListener("storage", (f) => {
|
|
1915
1915
|
f.key === "quailui_global_popup_trigger" && f.newValue && (_.value = !1);
|
|
1916
1916
|
});
|
|
1917
|
-
}), (f,
|
|
1918
|
-
const x =
|
|
1917
|
+
}), (f, v) => {
|
|
1918
|
+
const x = d1("q-icon-chevron-down"), B = d1("q-menu");
|
|
1919
1919
|
return n(), s("div", D5, [
|
|
1920
1920
|
o("div", Z5, [
|
|
1921
1921
|
o("div", {
|
|
1922
|
-
class: q(["dropdown-menu-action",
|
|
1922
|
+
class: q(["dropdown-menu-action", $.value]),
|
|
1923
1923
|
onClick: f1(u, ["stop"])
|
|
1924
1924
|
}, [
|
|
1925
1925
|
!t.hideSelected && h.value ? (n(), s("div", P5, [
|
|
@@ -1928,22 +1928,22 @@ const D5 = { class: "dropdown-menu" }, Z5 = { class: "dropdown-menu-inner narrow
|
|
|
1928
1928
|
class: "menu-image",
|
|
1929
1929
|
src: h.value.image,
|
|
1930
1930
|
alt: h.value.title
|
|
1931
|
-
}, null, 8, T5)) : h.value.icon ? (n(), D(
|
|
1931
|
+
}, null, 8, T5)) : h.value.icon ? (n(), D(e1(h.value.icon), {
|
|
1932
1932
|
key: 1,
|
|
1933
1933
|
class: "icon menu-icon"
|
|
1934
1934
|
})) : U("", !0),
|
|
1935
|
-
o("div", Y5,
|
|
1935
|
+
o("div", Y5, Q(h.value ? h.value.title : d.placeholder || "Select ..."), 1)
|
|
1936
1936
|
])) : U("", !0),
|
|
1937
|
-
|
|
1938
|
-
|
|
1937
|
+
l1(f.$slots, "default", {}, void 0, !0),
|
|
1938
|
+
n1(x, { class: "icon chevron-icon" })
|
|
1939
1939
|
], 10, O5),
|
|
1940
1940
|
o("div", {
|
|
1941
1941
|
ref_key: "menuWrapper",
|
|
1942
|
-
ref:
|
|
1942
|
+
ref: g
|
|
1943
1943
|
}, [
|
|
1944
|
-
|
|
1944
|
+
n1(u1, null, {
|
|
1945
1945
|
default: C1(() => [
|
|
1946
|
-
_.value ? (n(), D(
|
|
1946
|
+
_.value ? (n(), D(B, {
|
|
1947
1947
|
key: 0,
|
|
1948
1948
|
items: t.items,
|
|
1949
1949
|
onAction: M
|
|
@@ -1957,7 +1957,7 @@ const D5 = { class: "dropdown-menu" }, Z5 = { class: "dropdown-menu-inner narrow
|
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
1959
1959
|
});
|
|
1960
|
-
const F5 = /* @__PURE__ */ r(A5, [["__scopeId", "data-v-
|
|
1960
|
+
const F5 = /* @__PURE__ */ r(A5, [["__scopeId", "data-v-7ab312de"]]), U5 = { class: "pagination" }, q5 = ["disabled"], E5 = {
|
|
1961
1961
|
key: 0,
|
|
1962
1962
|
class: "page-indicators"
|
|
1963
1963
|
}, W5 = { class: "page-indicator" }, N5 = ["disabled", "onClick"], G5 = {
|
|
@@ -1990,63 +1990,60 @@ const F5 = /* @__PURE__ */ r(A5, [["__scopeId", "data-v-e8a215bd"]]), U5 = { cla
|
|
|
1990
1990
|
const f = [];
|
|
1991
1991
|
if (d.totalPage !== 0)
|
|
1992
1992
|
if (d.totalPage < M)
|
|
1993
|
-
for (let
|
|
1994
|
-
f.push({ label:
|
|
1993
|
+
for (let v = 1; v <= d.totalPage; v++)
|
|
1994
|
+
f.push({ label: v });
|
|
1995
1995
|
else {
|
|
1996
1996
|
f.push({ label: 1 });
|
|
1997
|
-
let
|
|
1998
|
-
|
|
1999
|
-
for (let
|
|
2000
|
-
f.push({ label:
|
|
1997
|
+
let v = h.value - 2, x = h.value + 2;
|
|
1998
|
+
v < 2 && (v = 2, x = v + M - 2), x > d.totalPage - 1 && (x = d.totalPage - 1, v = x - M + 2), v > 2 && f.push({ label: "…", disabled: !0 });
|
|
1999
|
+
for (let B = v; B <= x; B++)
|
|
2000
|
+
f.push({ label: B });
|
|
2001
2001
|
x < d.totalPage - 1 && f.push({ label: "…", disabled: !0 }), f.push({ label: d.totalPage });
|
|
2002
2002
|
}
|
|
2003
2003
|
return f;
|
|
2004
|
-
}), h =
|
|
2005
|
-
|
|
2004
|
+
}), h = I(d.modelValue);
|
|
2005
|
+
G(() => d.modelValue, (M) => {
|
|
2006
2006
|
h.value = M;
|
|
2007
2007
|
});
|
|
2008
|
-
function
|
|
2008
|
+
function g() {
|
|
2009
2009
|
h.value--, e("change:prev", h.value), e("update:modelValue", h.value);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function $() {
|
|
2012
2012
|
h.value++, e("change:next", h.value), e("update:modelValue", h.value);
|
|
2013
2013
|
}
|
|
2014
2014
|
function u(M, f) {
|
|
2015
2015
|
f.disabled || (h.value = M, e("change:goto", h.value), e("update:modelValue", h.value));
|
|
2016
2016
|
}
|
|
2017
|
-
return (M, f) =>
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
], 8, J5)
|
|
2045
|
-
]);
|
|
2046
|
-
};
|
|
2017
|
+
return (M, f) => (n(), s("div", U5, [
|
|
2018
|
+
o("button", {
|
|
2019
|
+
class: "prev button sm outlined icon",
|
|
2020
|
+
onClick: g,
|
|
2021
|
+
disabled: !d.hasPrev
|
|
2022
|
+
}, [
|
|
2023
|
+
n1(v1, { class: "icon" })
|
|
2024
|
+
], 8, q5),
|
|
2025
|
+
t.totalPage !== 0 ? (n(), s("div", E5, [
|
|
2026
|
+
(n(!0), s(w1, null, p1(_.value, (v) => (n(), s("div", W5, [
|
|
2027
|
+
o("button", {
|
|
2028
|
+
class: q(["page-indicator button sm plain", v.label === h.value ? "active" : ""]),
|
|
2029
|
+
disabled: v.disabled,
|
|
2030
|
+
onClick: (x) => u(v.label, v)
|
|
2031
|
+
}, Q(v.label), 11, N5)
|
|
2032
|
+
]))), 256))
|
|
2033
|
+
])) : (n(), s("div", G5, [
|
|
2034
|
+
o("div", R5, Q(t.modelValue), 1)
|
|
2035
|
+
])),
|
|
2036
|
+
o("button", {
|
|
2037
|
+
class: "next button sm outlined icon",
|
|
2038
|
+
onClick: $,
|
|
2039
|
+
disabled: !d.hasNext
|
|
2040
|
+
}, [
|
|
2041
|
+
n1(g1, { class: "icon" })
|
|
2042
|
+
], 8, J5)
|
|
2043
|
+
]));
|
|
2047
2044
|
}
|
|
2048
2045
|
});
|
|
2049
|
-
const X5 = /* @__PURE__ */ r(K5, [["__scopeId", "data-v-
|
|
2046
|
+
const X5 = /* @__PURE__ */ r(K5, [["__scopeId", "data-v-bca3dc7c"]]), t7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2050
2047
|
__proto__: null,
|
|
2051
2048
|
QDatetimePicker: J9,
|
|
2052
2049
|
QDialog: o5,
|
|
@@ -2066,7 +2063,7 @@ const n7 = {
|
|
|
2066
2063
|
for (const [d, _] of Object.entries(t7))
|
|
2067
2064
|
e != null && e.debug && console.log("[quail-ui] register common component", d, _), t.component(d, _);
|
|
2068
2065
|
document.body.addEventListener("click", (d) => {
|
|
2069
|
-
|
|
2066
|
+
m1();
|
|
2070
2067
|
});
|
|
2071
2068
|
}
|
|
2072
2069
|
};
|