quail-ui 0.2.27 → 0.2.29
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 +185 -184
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +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 D, ref as S, watch as E, onMounted as u1, withDirectives as t1, vModelText as c1, computed as I, createBlock as P, Transition as h1, withCtx as C1, normalizeClass as j, normalizeStyle as f1, withModifiers as w1, toDisplayString as q, renderSlot as l1, createCommentVNode as F, getCurrentInstance as V1, resolveComponent as d1, unref as X, resolveDynamicComponent as e1, Fragment as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as o1, defineComponent as D, ref as S, watch as E, onMounted as u1, withDirectives as t1, vModelText as c1, computed as I, createBlock as P, Transition as h1, withCtx as C1, normalizeClass as j, normalizeStyle as f1, withModifiers as w1, toDisplayString as q, renderSlot as l1, createCommentVNode as F, getCurrentInstance as V1, resolveComponent as d1, unref as X, resolveDynamicComponent as e1, Fragment as g1, renderList as p1, vModelCheckbox as H1, useSlots as b1, createVNode as n1 } from "vue";
|
|
2
2
|
const l = (t, e) => {
|
|
3
3
|
const i = t.__vccOpts || t;
|
|
4
4
|
for (const [u, C] of e)
|
|
@@ -137,7 +137,7 @@ const a2 = /* @__PURE__ */ l(s2, [["render", d2]]), _2 = {}, u2 = {
|
|
|
137
137
|
function f2(t, e) {
|
|
138
138
|
return n(), s("svg", u2, C2);
|
|
139
139
|
}
|
|
140
|
-
const w2 = /* @__PURE__ */ l(_2, [["render", f2]]),
|
|
140
|
+
const w2 = /* @__PURE__ */ l(_2, [["render", f2]]), g2 = {}, p2 = {
|
|
141
141
|
width: "24",
|
|
142
142
|
height: "24",
|
|
143
143
|
viewBox: "0 0 24 24",
|
|
@@ -153,9 +153,9 @@ const w2 = /* @__PURE__ */ l(_2, [["render", f2]]), p2 = {}, g2 = {
|
|
|
153
153
|
v2
|
|
154
154
|
];
|
|
155
155
|
function m2(t, e) {
|
|
156
|
-
return n(), s("svg",
|
|
156
|
+
return n(), s("svg", p2, $2);
|
|
157
157
|
}
|
|
158
|
-
const M2 = /* @__PURE__ */ l(
|
|
158
|
+
const M2 = /* @__PURE__ */ l(g2, [["render", m2]]), k2 = {}, x2 = {
|
|
159
159
|
width: "24",
|
|
160
160
|
height: "24",
|
|
161
161
|
viewBox: "0 0 24 24",
|
|
@@ -278,7 +278,7 @@ const at = /* @__PURE__ */ l(rt, [["render", dt]]), _t = {}, ut = {
|
|
|
278
278
|
function ft(t, e) {
|
|
279
279
|
return n(), s("svg", ut, Ct);
|
|
280
280
|
}
|
|
281
|
-
const wt = /* @__PURE__ */ l(_t, [["render", ft]]),
|
|
281
|
+
const wt = /* @__PURE__ */ l(_t, [["render", ft]]), gt = {}, pt = {
|
|
282
282
|
width: "24",
|
|
283
283
|
height: "24",
|
|
284
284
|
viewBox: "0 0 24 24",
|
|
@@ -294,9 +294,9 @@ const wt = /* @__PURE__ */ l(_t, [["render", ft]]), pt = {}, gt = {
|
|
|
294
294
|
vt
|
|
295
295
|
];
|
|
296
296
|
function mt(t, e) {
|
|
297
|
-
return n(), s("svg",
|
|
297
|
+
return n(), s("svg", pt, $t);
|
|
298
298
|
}
|
|
299
|
-
const Mt = /* @__PURE__ */ l(
|
|
299
|
+
const Mt = /* @__PURE__ */ l(gt, [["render", mt]]), kt = {}, xt = {
|
|
300
300
|
width: "24",
|
|
301
301
|
height: "24",
|
|
302
302
|
viewBox: "0 0 24 24",
|
|
@@ -437,7 +437,7 @@ const ae = /* @__PURE__ */ l(re, [["render", de]]), _e = {}, ue = {
|
|
|
437
437
|
function fe(t, e) {
|
|
438
438
|
return n(), s("svg", ue, Ce);
|
|
439
439
|
}
|
|
440
|
-
const we = /* @__PURE__ */ l(_e, [["render", fe]]),
|
|
440
|
+
const we = /* @__PURE__ */ l(_e, [["render", fe]]), ge = {}, pe = {
|
|
441
441
|
width: "24",
|
|
442
442
|
height: "24",
|
|
443
443
|
viewBox: "0 0 24 24",
|
|
@@ -453,9 +453,9 @@ const we = /* @__PURE__ */ l(_e, [["render", fe]]), pe = {}, ge = {
|
|
|
453
453
|
ve
|
|
454
454
|
];
|
|
455
455
|
function me(t, e) {
|
|
456
|
-
return n(), s("svg",
|
|
456
|
+
return n(), s("svg", pe, $e);
|
|
457
457
|
}
|
|
458
|
-
const Me = /* @__PURE__ */ l(
|
|
458
|
+
const Me = /* @__PURE__ */ l(ge, [["render", me]]), ke = {}, xe = {
|
|
459
459
|
width: "24",
|
|
460
460
|
height: "24",
|
|
461
461
|
viewBox: "0 0 24 24",
|
|
@@ -607,10 +607,10 @@ const u4 = /* @__PURE__ */ l(i4, [["render", _4]]), h4 = {}, C4 = {
|
|
|
607
607
|
}, null, -1), w4 = [
|
|
608
608
|
f4
|
|
609
609
|
];
|
|
610
|
-
function
|
|
610
|
+
function g4(t, e) {
|
|
611
611
|
return n(), s("svg", C4, w4);
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const p4 = /* @__PURE__ */ l(h4, [["render", g4]]), v4 = {}, $4 = {
|
|
614
614
|
width: "24",
|
|
615
615
|
height: "24",
|
|
616
616
|
viewBox: "0 0 24 24",
|
|
@@ -755,13 +755,13 @@ const hn = /* @__PURE__ */ l(ln, [["render", un]]), Cn = {}, fn = {
|
|
|
755
755
|
"stroke-width": "2",
|
|
756
756
|
"stroke-linecap": "round",
|
|
757
757
|
"stroke-linejoin": "round"
|
|
758
|
-
}, null, -1),
|
|
758
|
+
}, null, -1), gn = [
|
|
759
759
|
wn
|
|
760
760
|
];
|
|
761
|
-
function
|
|
762
|
-
return n(), s("svg", fn,
|
|
761
|
+
function pn(t, e) {
|
|
762
|
+
return n(), s("svg", fn, gn);
|
|
763
763
|
}
|
|
764
|
-
const vn = /* @__PURE__ */ l(Cn, [["render",
|
|
764
|
+
const vn = /* @__PURE__ */ l(Cn, [["render", pn]]), $n = {}, mn = {
|
|
765
765
|
width: "24",
|
|
766
766
|
height: "24",
|
|
767
767
|
viewBox: "0 0 24 24",
|
|
@@ -914,7 +914,7 @@ const a0 = /* @__PURE__ */ l(n0, [["render", d0]]), _0 = {}, u0 = {
|
|
|
914
914
|
function f0(t, e) {
|
|
915
915
|
return n(), s("svg", u0, C0);
|
|
916
916
|
}
|
|
917
|
-
const w0 = /* @__PURE__ */ l(_0, [["render", f0]]),
|
|
917
|
+
const w0 = /* @__PURE__ */ l(_0, [["render", f0]]), g0 = {}, p0 = {
|
|
918
918
|
width: "24",
|
|
919
919
|
height: "24",
|
|
920
920
|
viewBox: "0 0 24 24",
|
|
@@ -930,9 +930,9 @@ const w0 = /* @__PURE__ */ l(_0, [["render", f0]]), p0 = {}, g0 = {
|
|
|
930
930
|
v0
|
|
931
931
|
];
|
|
932
932
|
function m0(t, e) {
|
|
933
|
-
return n(), s("svg",
|
|
933
|
+
return n(), s("svg", p0, $0);
|
|
934
934
|
}
|
|
935
|
-
const M0 = /* @__PURE__ */ l(
|
|
935
|
+
const M0 = /* @__PURE__ */ l(g0, [["render", m0]]), k0 = {}, x0 = {
|
|
936
936
|
width: "24",
|
|
937
937
|
height: "24",
|
|
938
938
|
viewBox: "0 0 24 24",
|
|
@@ -1083,7 +1083,7 @@ const _9 = /* @__PURE__ */ l(i9, [["render", a9]]), u9 = {}, h9 = {
|
|
|
1083
1083
|
function w9(t, e) {
|
|
1084
1084
|
return n(), s("svg", h9, f9);
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1086
|
+
const g9 = /* @__PURE__ */ l(u9, [["render", w9]]), p9 = {}, v9 = {
|
|
1087
1087
|
width: "24",
|
|
1088
1088
|
height: "24",
|
|
1089
1089
|
viewBox: "0 0 24 24",
|
|
@@ -1101,7 +1101,7 @@ const p9 = /* @__PURE__ */ l(u9, [["render", w9]]), g9 = {}, v9 = {
|
|
|
1101
1101
|
function M9(t, e) {
|
|
1102
1102
|
return n(), s("svg", v9, m9);
|
|
1103
1103
|
}
|
|
1104
|
-
const k9 = /* @__PURE__ */ l(
|
|
1104
|
+
const k9 = /* @__PURE__ */ l(p9, [["render", M9]]), x9 = {}, L9 = {
|
|
1105
1105
|
width: "24",
|
|
1106
1106
|
height: "24",
|
|
1107
1107
|
viewBox: "0 0 24 24",
|
|
@@ -1204,11 +1204,11 @@ const T9 = /* @__PURE__ */ l(q9, [["render", P9]]), Y9 = /* @__PURE__ */ Object.
|
|
|
1204
1204
|
QIconOrderedList: a0,
|
|
1205
1205
|
QIconPaperclip: _9,
|
|
1206
1206
|
QIconPencil: Xe,
|
|
1207
|
-
QIconPin:
|
|
1207
|
+
QIconPin: g9,
|
|
1208
1208
|
QIconPlus: r4,
|
|
1209
1209
|
QIconQuail: u4,
|
|
1210
1210
|
QIconQuote: w0,
|
|
1211
|
-
QIconSearch:
|
|
1211
|
+
QIconSearch: p4,
|
|
1212
1212
|
QIconSettings: k9,
|
|
1213
1213
|
QIconShoppingBag: b9,
|
|
1214
1214
|
QIconStrikeThrough: M0,
|
|
@@ -1231,45 +1231,45 @@ var m1 = { exports: {} };
|
|
|
1231
1231
|
(function(i, u) {
|
|
1232
1232
|
t.exports = u();
|
|
1233
1233
|
})(A9, function() {
|
|
1234
|
-
var i = 1e3, u = 6e4, C = 36e5, h = "millisecond", v = "second",
|
|
1234
|
+
var i = 1e3, u = 6e4, C = 36e5, h = "millisecond", v = "second", p = "minute", $ = "hour", M = "day", x = "week", a = "month", L = "quarter", Q = "year", Z = "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(f) {
|
|
1235
1235
|
var d = ["th", "st", "nd", "rd"], r = f % 100;
|
|
1236
1236
|
return "[" + f + (d[(r - 20) % 10] || d[r] || d[0]) + "]";
|
|
1237
1237
|
} }, s1 = function(f, d, r) {
|
|
1238
|
-
var
|
|
1239
|
-
return !
|
|
1238
|
+
var _ = String(f);
|
|
1239
|
+
return !_ || _.length >= d ? f : "" + Array(d + 1 - _.length).join(r) + f;
|
|
1240
1240
|
}, y1 = { s: s1, z: function(f) {
|
|
1241
|
-
var d = -f.utcOffset(), r = Math.abs(d),
|
|
1242
|
-
return (d <= 0 ? "+" : "-") + s1(
|
|
1241
|
+
var d = -f.utcOffset(), r = Math.abs(d), _ = Math.floor(r / 60), c = r % 60;
|
|
1242
|
+
return (d <= 0 ? "+" : "-") + s1(_, 2, "0") + ":" + s1(c, 2, "0");
|
|
1243
1243
|
}, m: function f(d, r) {
|
|
1244
1244
|
if (d.date() < r.date())
|
|
1245
1245
|
return -f(r, d);
|
|
1246
|
-
var
|
|
1247
|
-
return +(-(
|
|
1246
|
+
var _ = 12 * (r.year() - d.year()) + (r.month() - d.month()), c = d.clone().add(_, a), w = r - c < 0, g = d.clone().add(_ + (w ? -1 : 1), a);
|
|
1247
|
+
return +(-(_ + (r - c) / (w ? c - g : g - c)) || 0);
|
|
1248
1248
|
}, a: function(f) {
|
|
1249
1249
|
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
|
1250
1250
|
}, p: function(f) {
|
|
1251
|
-
return { M:
|
|
1251
|
+
return { M: a, y: Q, w: x, d: M, D: Z, h: $, m: p, s: v, ms: h, Q: L }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
|
1252
1252
|
}, u: function(f) {
|
|
1253
1253
|
return f === void 0;
|
|
1254
1254
|
} }, W = "en", T = {};
|
|
1255
1255
|
T[W] = L1;
|
|
1256
1256
|
var r1 = function(f) {
|
|
1257
1257
|
return f instanceof J;
|
|
1258
|
-
}, R = function f(d, r,
|
|
1258
|
+
}, R = function f(d, r, _) {
|
|
1259
1259
|
var c;
|
|
1260
1260
|
if (!d)
|
|
1261
1261
|
return W;
|
|
1262
1262
|
if (typeof d == "string") {
|
|
1263
1263
|
var w = d.toLowerCase();
|
|
1264
1264
|
T[w] && (c = w), r && (T[w] = r, c = w);
|
|
1265
|
-
var
|
|
1266
|
-
if (!c &&
|
|
1267
|
-
return f(
|
|
1265
|
+
var g = d.split("-");
|
|
1266
|
+
if (!c && g.length > 1)
|
|
1267
|
+
return f(g[0]);
|
|
1268
1268
|
} else {
|
|
1269
1269
|
var k = d.name;
|
|
1270
1270
|
T[k] = d, c = k;
|
|
1271
1271
|
}
|
|
1272
|
-
return !
|
|
1272
|
+
return !_ && c && (W = c), c || !_ && W;
|
|
1273
1273
|
}, V = function(f, d) {
|
|
1274
1274
|
if (r1(f))
|
|
1275
1275
|
return f.clone();
|
|
@@ -1285,8 +1285,8 @@ var m1 = { exports: {} };
|
|
|
1285
1285
|
}
|
|
1286
1286
|
var d = f.prototype;
|
|
1287
1287
|
return d.parse = function(r) {
|
|
1288
|
-
this.$d = function(
|
|
1289
|
-
var c =
|
|
1288
|
+
this.$d = function(_) {
|
|
1289
|
+
var c = _.date, w = _.utc;
|
|
1290
1290
|
if (c === null)
|
|
1291
1291
|
return /* @__PURE__ */ new Date(NaN);
|
|
1292
1292
|
if (m.u(c))
|
|
@@ -1294,10 +1294,10 @@ var m1 = { 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
|
|
1298
|
-
if (
|
|
1299
|
-
var k =
|
|
1300
|
-
return w ? new Date(Date.UTC(
|
|
1297
|
+
var g = c.match(k1);
|
|
1298
|
+
if (g) {
|
|
1299
|
+
var k = g[2] - 1 || 0, y = (g[7] || "0").substring(0, 3);
|
|
1300
|
+
return w ? new Date(Date.UTC(g[1], k, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, y)) : new Date(g[1], k, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, y);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
return new Date(c);
|
|
@@ -1309,30 +1309,30 @@ var m1 = { exports: {} };
|
|
|
1309
1309
|
return m;
|
|
1310
1310
|
}, d.isValid = function() {
|
|
1311
1311
|
return this.$d.toString() !== a1;
|
|
1312
|
-
}, d.isSame = function(r,
|
|
1312
|
+
}, d.isSame = function(r, _) {
|
|
1313
1313
|
var c = V(r);
|
|
1314
|
-
return this.startOf(
|
|
1315
|
-
}, d.isAfter = function(r,
|
|
1316
|
-
return V(r) < this.startOf(
|
|
1317
|
-
}, d.isBefore = function(r,
|
|
1318
|
-
return this.endOf(
|
|
1319
|
-
}, d.$g = function(r,
|
|
1320
|
-
return m.u(r) ? this[
|
|
1314
|
+
return this.startOf(_) <= c && c <= this.endOf(_);
|
|
1315
|
+
}, d.isAfter = function(r, _) {
|
|
1316
|
+
return V(r) < this.startOf(_);
|
|
1317
|
+
}, d.isBefore = function(r, _) {
|
|
1318
|
+
return this.endOf(_) < V(r);
|
|
1319
|
+
}, d.$g = function(r, _, c) {
|
|
1320
|
+
return m.u(r) ? this[_] : this.set(c, r);
|
|
1321
1321
|
}, d.unix = function() {
|
|
1322
1322
|
return Math.floor(this.valueOf() / 1e3);
|
|
1323
1323
|
}, d.valueOf = function() {
|
|
1324
1324
|
return this.$d.getTime();
|
|
1325
|
-
}, d.startOf = function(r,
|
|
1326
|
-
var c = this, w = !!m.u(
|
|
1325
|
+
}, d.startOf = function(r, _) {
|
|
1326
|
+
var c = this, w = !!m.u(_) || _, g = m.p(r), k = function(A, z) {
|
|
1327
1327
|
var O = m.w(c.$u ? Date.UTC(c.$y, z, A) : new Date(c.$y, z, A), c);
|
|
1328
1328
|
return w ? O : O.endOf(M);
|
|
1329
1329
|
}, y = function(A, z) {
|
|
1330
1330
|
return m.w(c.toDate()[A].apply(c.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), c);
|
|
1331
1331
|
}, H = this.$W, b = this.$M, B = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
1332
|
-
switch (
|
|
1332
|
+
switch (g) {
|
|
1333
1333
|
case Q:
|
|
1334
1334
|
return w ? k(1, 0) : k(31, 11);
|
|
1335
|
-
case
|
|
1335
|
+
case a:
|
|
1336
1336
|
return w ? k(1, b) : k(0, b + 1);
|
|
1337
1337
|
case x:
|
|
1338
1338
|
var Y = this.$locale().weekStart || 0, N = (H < Y ? H + 7 : H) - Y;
|
|
@@ -1342,7 +1342,7 @@ var m1 = { exports: {} };
|
|
|
1342
1342
|
return y(U + "Hours", 0);
|
|
1343
1343
|
case $:
|
|
1344
1344
|
return y(U + "Minutes", 1);
|
|
1345
|
-
case
|
|
1345
|
+
case p:
|
|
1346
1346
|
return y(U + "Seconds", 2);
|
|
1347
1347
|
case v:
|
|
1348
1348
|
return y(U + "Milliseconds", 3);
|
|
@@ -1351,43 +1351,43 @@ var m1 = { exports: {} };
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}, d.endOf = function(r) {
|
|
1353
1353
|
return this.startOf(r, !1);
|
|
1354
|
-
}, d.$set = function(r,
|
|
1355
|
-
var c, w = m.p(r),
|
|
1356
|
-
if (w ===
|
|
1354
|
+
}, d.$set = function(r, _) {
|
|
1355
|
+
var c, w = m.p(r), g = "set" + (this.$u ? "UTC" : ""), k = (c = {}, c[M] = g + "Date", c[Z] = g + "Date", c[a] = g + "Month", c[Q] = g + "FullYear", c[$] = g + "Hours", c[p] = g + "Minutes", c[v] = g + "Seconds", c[h] = g + "Milliseconds", c)[w], y = w === M ? this.$D + (_ - this.$W) : _;
|
|
1356
|
+
if (w === a || w === Q) {
|
|
1357
1357
|
var H = this.clone().set(Z, 1);
|
|
1358
1358
|
H.$d[k](y), H.init(), this.$d = H.set(Z, Math.min(this.$D, H.daysInMonth())).$d;
|
|
1359
1359
|
} else
|
|
1360
1360
|
k && this.$d[k](y);
|
|
1361
1361
|
return this.init(), this;
|
|
1362
|
-
}, d.set = function(r,
|
|
1363
|
-
return this.clone().$set(r,
|
|
1362
|
+
}, d.set = function(r, _) {
|
|
1363
|
+
return this.clone().$set(r, _);
|
|
1364
1364
|
}, d.get = function(r) {
|
|
1365
1365
|
return this[m.p(r)]();
|
|
1366
|
-
}, d.add = function(r,
|
|
1366
|
+
}, d.add = function(r, _) {
|
|
1367
1367
|
var c, w = this;
|
|
1368
1368
|
r = Number(r);
|
|
1369
|
-
var
|
|
1369
|
+
var g = m.p(_), k = function(b) {
|
|
1370
1370
|
var B = V(w);
|
|
1371
1371
|
return m.w(B.date(B.date() + Math.round(b * r)), w);
|
|
1372
1372
|
};
|
|
1373
|
-
if (
|
|
1374
|
-
return this.set(
|
|
1375
|
-
if (
|
|
1373
|
+
if (g === a)
|
|
1374
|
+
return this.set(a, this.$M + r);
|
|
1375
|
+
if (g === Q)
|
|
1376
1376
|
return this.set(Q, this.$y + r);
|
|
1377
|
-
if (
|
|
1377
|
+
if (g === M)
|
|
1378
1378
|
return k(1);
|
|
1379
|
-
if (
|
|
1379
|
+
if (g === x)
|
|
1380
1380
|
return k(7);
|
|
1381
|
-
var y = (c = {}, c[
|
|
1381
|
+
var y = (c = {}, c[p] = u, c[$] = C, c[v] = i, c)[g] || 1, H = this.$d.getTime() + r * y;
|
|
1382
1382
|
return m.w(H, this);
|
|
1383
|
-
}, d.subtract = function(r,
|
|
1384
|
-
return this.add(-1 * r,
|
|
1383
|
+
}, d.subtract = function(r, _) {
|
|
1384
|
+
return this.add(-1 * r, _);
|
|
1385
1385
|
}, d.format = function(r) {
|
|
1386
|
-
var
|
|
1386
|
+
var _ = this, c = this.$locale();
|
|
1387
1387
|
if (!this.isValid())
|
|
1388
1388
|
return c.invalidDate || a1;
|
|
1389
|
-
var w = r || "YYYY-MM-DDTHH:mm:ssZ",
|
|
1390
|
-
return z && (z[O] || z(
|
|
1389
|
+
var w = r || "YYYY-MM-DDTHH:mm:ssZ", g = m.z(this), k = this.$H, y = this.$m, H = this.$M, b = c.weekdays, B = c.months, U = c.meridiem, Y = function(z, O, G, K) {
|
|
1390
|
+
return z && (z[O] || z(_, w)) || G[O].slice(0, K);
|
|
1391
1391
|
}, N = function(z) {
|
|
1392
1392
|
return m.s(k % 12 || 12, z, "0");
|
|
1393
1393
|
}, A = U || function(z, O, G) {
|
|
@@ -1398,9 +1398,9 @@ var m1 = { exports: {} };
|
|
|
1398
1398
|
return O || function(G) {
|
|
1399
1399
|
switch (G) {
|
|
1400
1400
|
case "YY":
|
|
1401
|
-
return String(
|
|
1401
|
+
return String(_.$y).slice(-2);
|
|
1402
1402
|
case "YYYY":
|
|
1403
|
-
return m.s(
|
|
1403
|
+
return m.s(_.$y, 4, "0");
|
|
1404
1404
|
case "M":
|
|
1405
1405
|
return H + 1;
|
|
1406
1406
|
case "MM":
|
|
@@ -1410,17 +1410,17 @@ var m1 = { exports: {} };
|
|
|
1410
1410
|
case "MMMM":
|
|
1411
1411
|
return Y(B, H);
|
|
1412
1412
|
case "D":
|
|
1413
|
-
return
|
|
1413
|
+
return _.$D;
|
|
1414
1414
|
case "DD":
|
|
1415
|
-
return m.s(
|
|
1415
|
+
return m.s(_.$D, 2, "0");
|
|
1416
1416
|
case "d":
|
|
1417
|
-
return String(
|
|
1417
|
+
return String(_.$W);
|
|
1418
1418
|
case "dd":
|
|
1419
|
-
return Y(c.weekdaysMin,
|
|
1419
|
+
return Y(c.weekdaysMin, _.$W, b, 2);
|
|
1420
1420
|
case "ddd":
|
|
1421
|
-
return Y(c.weekdaysShort,
|
|
1421
|
+
return Y(c.weekdaysShort, _.$W, b, 3);
|
|
1422
1422
|
case "dddd":
|
|
1423
|
-
return b[
|
|
1423
|
+
return b[_.$W];
|
|
1424
1424
|
case "H":
|
|
1425
1425
|
return String(k);
|
|
1426
1426
|
case "HH":
|
|
@@ -1438,28 +1438,28 @@ var m1 = { exports: {} };
|
|
|
1438
1438
|
case "mm":
|
|
1439
1439
|
return m.s(y, 2, "0");
|
|
1440
1440
|
case "s":
|
|
1441
|
-
return String(
|
|
1441
|
+
return String(_.$s);
|
|
1442
1442
|
case "ss":
|
|
1443
|
-
return m.s(
|
|
1443
|
+
return m.s(_.$s, 2, "0");
|
|
1444
1444
|
case "SSS":
|
|
1445
|
-
return m.s(
|
|
1445
|
+
return m.s(_.$ms, 3, "0");
|
|
1446
1446
|
case "Z":
|
|
1447
|
-
return
|
|
1447
|
+
return g;
|
|
1448
1448
|
}
|
|
1449
1449
|
return null;
|
|
1450
|
-
}(z) ||
|
|
1450
|
+
}(z) || g.replace(":", "");
|
|
1451
1451
|
});
|
|
1452
1452
|
}, d.utcOffset = function() {
|
|
1453
1453
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1454
|
-
}, d.diff = function(r,
|
|
1455
|
-
var w,
|
|
1456
|
-
return m.m(
|
|
1454
|
+
}, d.diff = function(r, _, c) {
|
|
1455
|
+
var w, g = this, k = m.p(_), y = V(r), H = (y.utcOffset() - this.utcOffset()) * u, b = this - y, B = function() {
|
|
1456
|
+
return m.m(g, y);
|
|
1457
1457
|
};
|
|
1458
1458
|
switch (k) {
|
|
1459
1459
|
case Q:
|
|
1460
1460
|
w = B() / 12;
|
|
1461
1461
|
break;
|
|
1462
|
-
case
|
|
1462
|
+
case a:
|
|
1463
1463
|
w = B();
|
|
1464
1464
|
break;
|
|
1465
1465
|
case L:
|
|
@@ -1474,7 +1474,7 @@ var m1 = { exports: {} };
|
|
|
1474
1474
|
case $:
|
|
1475
1475
|
w = b / C;
|
|
1476
1476
|
break;
|
|
1477
|
-
case
|
|
1477
|
+
case p:
|
|
1478
1478
|
w = b / u;
|
|
1479
1479
|
break;
|
|
1480
1480
|
case v:
|
|
@@ -1485,13 +1485,13 @@ var m1 = { exports: {} };
|
|
|
1485
1485
|
}
|
|
1486
1486
|
return c ? w : m.a(w);
|
|
1487
1487
|
}, d.daysInMonth = function() {
|
|
1488
|
-
return this.endOf(
|
|
1488
|
+
return this.endOf(a).$D;
|
|
1489
1489
|
}, d.$locale = function() {
|
|
1490
1490
|
return T[this.$L];
|
|
1491
|
-
}, d.locale = function(r,
|
|
1491
|
+
}, d.locale = function(r, _) {
|
|
1492
1492
|
if (!r)
|
|
1493
1493
|
return this.$L;
|
|
1494
|
-
var c = this.clone(), w = R(r,
|
|
1494
|
+
var c = this.clone(), w = R(r, _, !0);
|
|
1495
1495
|
return w && (c.$L = w), c;
|
|
1496
1496
|
}, d.clone = function() {
|
|
1497
1497
|
return m.w(this.$d, this);
|
|
@@ -1505,7 +1505,7 @@ var m1 = { exports: {} };
|
|
|
1505
1505
|
return this.$d.toUTCString();
|
|
1506
1506
|
}, f;
|
|
1507
1507
|
}(), _1 = J.prototype;
|
|
1508
|
-
return V.prototype = _1, [["$ms", h], ["$s", v], ["$m",
|
|
1508
|
+
return V.prototype = _1, [["$ms", h], ["$s", v], ["$m", p], ["$H", $], ["$W", M], ["$M", a], ["$y", Q], ["$D", Z]].forEach(function(f) {
|
|
1509
1509
|
_1[f[1]] = function(d) {
|
|
1510
1510
|
return this.$g(d, f[0], f[1]);
|
|
1511
1511
|
};
|
|
@@ -1535,8 +1535,8 @@ const i1 = /* @__PURE__ */ F9(U9), E9 = { class: "q-datetime-picker" }, W9 = ["d
|
|
|
1535
1535
|
E(
|
|
1536
1536
|
() => i.modelValue,
|
|
1537
1537
|
(v) => {
|
|
1538
|
-
const
|
|
1539
|
-
u.value =
|
|
1538
|
+
const p = i1(v);
|
|
1539
|
+
u.value = p.format("YYYY-MM-DD"), C.value = p.format("HH:mm");
|
|
1540
1540
|
}
|
|
1541
1541
|
);
|
|
1542
1542
|
function h() {
|
|
@@ -1546,9 +1546,9 @@ const i1 = /* @__PURE__ */ F9(U9), E9 = { class: "q-datetime-picker" }, W9 = ["d
|
|
|
1546
1546
|
return u1(() => {
|
|
1547
1547
|
const v = i1();
|
|
1548
1548
|
u.value = v.format("YYYY-MM-DD"), C.value = v.format("HH:mm");
|
|
1549
|
-
}), (v,
|
|
1549
|
+
}), (v, p) => (n(), s("div", E9, [
|
|
1550
1550
|
t1(o("input", {
|
|
1551
|
-
"onUpdate:modelValue":
|
|
1551
|
+
"onUpdate:modelValue": p[0] || (p[0] = ($) => u.value = $),
|
|
1552
1552
|
type: "date",
|
|
1553
1553
|
disabled: t.disabled,
|
|
1554
1554
|
onChange: h
|
|
@@ -1556,7 +1556,7 @@ const i1 = /* @__PURE__ */ F9(U9), E9 = { class: "q-datetime-picker" }, W9 = ["d
|
|
|
1556
1556
|
[c1, u.value]
|
|
1557
1557
|
]),
|
|
1558
1558
|
t1(o("input", {
|
|
1559
|
-
"onUpdate:modelValue":
|
|
1559
|
+
"onUpdate:modelValue": p[1] || (p[1] = ($) => C.value = $),
|
|
1560
1560
|
type: "time",
|
|
1561
1561
|
disabled: t.disabled,
|
|
1562
1562
|
onChange: h
|
|
@@ -1618,7 +1618,7 @@ const R9 = ["onClick"], J9 = { class: "q-dialog-header" }, K9 = {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
C.value = !1, e("update:modelValue", !1), e("close");
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function p() {
|
|
1622
1622
|
}
|
|
1623
1623
|
return ($, M) => (n(), P(h1, null, {
|
|
1624
1624
|
default: C1(() => [
|
|
@@ -1630,7 +1630,7 @@ const R9 = ["onClick"], J9 = { class: "q-dialog-header" }, K9 = {
|
|
|
1630
1630
|
o("div", {
|
|
1631
1631
|
class: j(["q-dialog", u.value ? "shaking" : ""]),
|
|
1632
1632
|
style: f1(h.value),
|
|
1633
|
-
onClick: w1(
|
|
1633
|
+
onClick: w1(p, ["stop"])
|
|
1634
1634
|
}, [
|
|
1635
1635
|
o("div", J9, [
|
|
1636
1636
|
t.title ? (n(), s("div", K9, q(t.title), 1)) : l1($.$slots, "header", { key: 1 })
|
|
@@ -1718,7 +1718,7 @@ const _5 = /* @__PURE__ */ l(i5, [["render", a5]]), u5 = { class: "q-menu" }, h5
|
|
|
1718
1718
|
}, f5 = {
|
|
1719
1719
|
key: 1,
|
|
1720
1720
|
class: "q-menu-item-inner"
|
|
1721
|
-
}, w5 = ["src", "alt"],
|
|
1721
|
+
}, w5 = ["src", "alt"], g5 = { class: "q-menu-item-content" }, p5 = { class: "q-menu-title" }, v5 = {
|
|
1722
1722
|
key: 0,
|
|
1723
1723
|
class: "q-menu-subtitle"
|
|
1724
1724
|
}, $5 = /* @__PURE__ */ D({
|
|
@@ -1740,24 +1740,24 @@ const _5 = /* @__PURE__ */ l(i5, [["render", a5]]), u5 = { class: "q-menu" }, h5
|
|
|
1740
1740
|
h.action && h.action(h), h.disabled !== !0 && e("action", h);
|
|
1741
1741
|
}
|
|
1742
1742
|
return (h, v) => (n(), s("div", u5, [
|
|
1743
|
-
(n(!0), s(
|
|
1744
|
-
class: j(["q-menu-item", u(
|
|
1745
|
-
key: `q-menu-item-${
|
|
1746
|
-
onClick: ($) => C(
|
|
1743
|
+
(n(!0), s(g1, null, p1(i.items, (p) => (n(), s("div", {
|
|
1744
|
+
class: j(["q-menu-item", u(p)]),
|
|
1745
|
+
key: `q-menu-item-${p.id}`,
|
|
1746
|
+
onClick: ($) => C(p)
|
|
1747
1747
|
}, [
|
|
1748
|
-
|
|
1749
|
-
|
|
1748
|
+
p.divider ? (n(), s("div", C5)) : (n(), s("div", f5, [
|
|
1749
|
+
p.image ? (n(), s("img", {
|
|
1750
1750
|
key: 0,
|
|
1751
1751
|
class: "q-menu-image",
|
|
1752
|
-
src:
|
|
1753
|
-
alt:
|
|
1754
|
-
}, null, 8, w5)) :
|
|
1752
|
+
src: p.image,
|
|
1753
|
+
alt: p.title
|
|
1754
|
+
}, null, 8, w5)) : p.icon ? (n(), P(e1(p.icon), {
|
|
1755
1755
|
key: 1,
|
|
1756
1756
|
class: "q-menu-icon mr-1"
|
|
1757
1757
|
})) : F("", !0),
|
|
1758
|
-
o("div",
|
|
1759
|
-
o("div",
|
|
1760
|
-
|
|
1758
|
+
o("div", g5, [
|
|
1759
|
+
o("div", p5, q(p.title), 1),
|
|
1760
|
+
p.subtitle ? (n(), s("div", v5, q(p.subtitle), 1)) : F("", !0)
|
|
1761
1761
|
])
|
|
1762
1762
|
]))
|
|
1763
1763
|
], 10, h5))), 128))
|
|
@@ -1791,7 +1791,7 @@ const m5 = ["disabled"], M5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1791
1791
|
t1(o("input", {
|
|
1792
1792
|
class: "q-switch-checkbox",
|
|
1793
1793
|
type: "checkbox",
|
|
1794
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1794
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => u.value = p),
|
|
1795
1795
|
onChange: C,
|
|
1796
1796
|
disabled: i.disabled
|
|
1797
1797
|
}, null, 40, m5), [
|
|
@@ -1801,10 +1801,10 @@ const m5 = ["disabled"], M5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1801
1801
|
], 2));
|
|
1802
1802
|
}
|
|
1803
1803
|
});
|
|
1804
|
-
const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class: "q-text-button-wrapper" }, V5 = ["disabled"], H5 = {
|
|
1804
|
+
const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class: "q-text-button-wrapper" }, V5 = ["disabled"], H5 = {
|
|
1805
1805
|
key: 0,
|
|
1806
1806
|
class: "q-button-glow"
|
|
1807
|
-
},
|
|
1807
|
+
}, b5 = /* @__PURE__ */ D({
|
|
1808
1808
|
__name: "QTextFieldWithButton",
|
|
1809
1809
|
props: {
|
|
1810
1810
|
modelValue: {
|
|
@@ -1839,30 +1839,33 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1839
1839
|
emits: ["submit", "update:modelValue"],
|
|
1840
1840
|
setup(t, { emit: e }) {
|
|
1841
1841
|
const i = t, u = S(i.defaultText), C = I(() => {
|
|
1842
|
-
const
|
|
1843
|
-
return i.layout === "vertical" ?
|
|
1842
|
+
const a = [];
|
|
1843
|
+
return i.layout === "vertical" ? a.push("vertical") : a.push("horizontal"), i.type === "code" && a.push("code"), i.glow && a.push(`glow-${i.glow}`), console.log("cls", a.join(" ")), a.join(" ");
|
|
1844
1844
|
}), h = I(() => {
|
|
1845
1845
|
var L;
|
|
1846
|
-
|
|
1846
|
+
if (console.log("validated loading", i.loading), i.loading)
|
|
1847
|
+
return !1;
|
|
1848
|
+
const a = (L = u.value) == null ? void 0 : L.trim();
|
|
1849
|
+
return console.log("trimed", a), a.length === 0 ? !1 : i.type === "email" ? v.value : i.type === "code" ? p.value : !0;
|
|
1847
1850
|
}), v = I(() => {
|
|
1848
1851
|
var L;
|
|
1849
|
-
const
|
|
1850
|
-
return !i.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(
|
|
1851
|
-
}),
|
|
1852
|
+
const a = (L = u.value) == null ? void 0 : L.trim();
|
|
1853
|
+
return console.log("validateEmail", a), !i.disabled && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a);
|
|
1854
|
+
}), p = I(() => {
|
|
1852
1855
|
var L;
|
|
1853
|
-
const
|
|
1854
|
-
return /^\d{6}$/.test(
|
|
1856
|
+
const a = (L = u.value) == null ? void 0 : L.trim();
|
|
1857
|
+
return console.log("validatedCode", a), /^\d{6}$/.test(a);
|
|
1855
1858
|
}), $ = I(() => i.loading ? "Loading..." : i.actionLabel);
|
|
1856
|
-
E(() => i.modelValue, (
|
|
1857
|
-
u.value =
|
|
1859
|
+
E(() => i.modelValue, (a) => {
|
|
1860
|
+
console.log("watch modelValue", a), u.value = a;
|
|
1858
1861
|
});
|
|
1859
1862
|
function M() {
|
|
1860
1863
|
h.value && e("submit", { text: u.value });
|
|
1861
1864
|
}
|
|
1862
1865
|
function x() {
|
|
1863
|
-
e("update:modelValue", u.value);
|
|
1866
|
+
console.log("changed", u.value), e("update:modelValue", u.value);
|
|
1864
1867
|
}
|
|
1865
|
-
return (
|
|
1868
|
+
return (a, L) => (n(), s("div", {
|
|
1866
1869
|
class: j(["q-text-field-with-button", C.value])
|
|
1867
1870
|
}, [
|
|
1868
1871
|
o("div", x5, [
|
|
@@ -1880,11 +1883,9 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1880
1883
|
class: "q-button button primary",
|
|
1881
1884
|
disabled: !h.value,
|
|
1882
1885
|
onClick: M
|
|
1883
|
-
},
|
|
1884
|
-
o("div", H5, q($.value), 1)
|
|
1885
|
-
], 8, V5)
|
|
1886
|
+
}, q($.value), 9, V5)
|
|
1886
1887
|
]),
|
|
1887
|
-
t.glow !== "" ? (n(), s("div",
|
|
1888
|
+
t.glow !== "" ? (n(), s("div", H5)) : F("", !0)
|
|
1888
1889
|
], 2));
|
|
1889
1890
|
}
|
|
1890
1891
|
});
|
|
@@ -1896,10 +1897,10 @@ function M1() {
|
|
|
1896
1897
|
oldValue: t + ""
|
|
1897
1898
|
}));
|
|
1898
1899
|
}
|
|
1899
|
-
const
|
|
1900
|
+
const z5 = { class: "q-dropdown-menu" }, Q5 = { class: "q-dropdown-menu-inner narrow-view" }, B5 = ["onClick"], I5 = {
|
|
1900
1901
|
key: 0,
|
|
1901
1902
|
class: "q-dropdown-selected"
|
|
1902
|
-
},
|
|
1903
|
+
}, S5 = ["src", "alt"], j5 = { class: "menu-title" }, q5 = /* @__PURE__ */ D({
|
|
1903
1904
|
__name: "QDropdownMenu",
|
|
1904
1905
|
props: {
|
|
1905
1906
|
items: {
|
|
@@ -1925,9 +1926,9 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1925
1926
|
},
|
|
1926
1927
|
emits: ["change"],
|
|
1927
1928
|
setup(t, { emit: e }) {
|
|
1928
|
-
const i = t, u = b1(), C = S(!1), h = S(null), v = S(null),
|
|
1929
|
-
const
|
|
1930
|
-
return C.value &&
|
|
1929
|
+
const i = t, u = b1(), C = S(!1), h = S(null), v = S(null), p = I(() => {
|
|
1930
|
+
const a = [];
|
|
1931
|
+
return C.value && a.push("expanded"), i.variant === "outlined" && a.push("frame"), i.hideSelected && a.push("hide-selected"), a.join(" ");
|
|
1931
1932
|
}), $ = I(() => u.default !== void 0);
|
|
1932
1933
|
function M() {
|
|
1933
1934
|
C.value || M1(), C.value = !C.value, C.value && setTimeout(() => {
|
|
@@ -1935,8 +1936,8 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1935
1936
|
L.getBoundingClientRect().left < 0 && (L.style.left = "0");
|
|
1936
1937
|
}, 10);
|
|
1937
1938
|
}
|
|
1938
|
-
function x(
|
|
1939
|
-
C.value = !1, h.value =
|
|
1939
|
+
function x(a) {
|
|
1940
|
+
C.value = !1, h.value = a, a.action && a.action(a), e("change", a);
|
|
1940
1941
|
}
|
|
1941
1942
|
return E(
|
|
1942
1943
|
() => i.initialItem,
|
|
@@ -1944,32 +1945,32 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1944
1945
|
i.initialItem && (h.value = i.initialItem);
|
|
1945
1946
|
}
|
|
1946
1947
|
), u1(() => {
|
|
1947
|
-
i.initialItem && (h.value = i.initialItem), window.addEventListener("storage", (
|
|
1948
|
-
|
|
1948
|
+
i.initialItem && (h.value = i.initialItem), window.addEventListener("storage", (a) => {
|
|
1949
|
+
a.key === "quailui_global_popup_trigger" && a.newValue && (C.value = !1);
|
|
1949
1950
|
});
|
|
1950
|
-
}), (
|
|
1951
|
+
}), (a, L) => {
|
|
1951
1952
|
const Q = d1("q-icon-chevron-down"), Z = d1("q-menu");
|
|
1952
|
-
return n(), s("div",
|
|
1953
|
-
o("div",
|
|
1953
|
+
return n(), s("div", z5, [
|
|
1954
|
+
o("div", Q5, [
|
|
1954
1955
|
o("div", {
|
|
1955
|
-
class: j(["q-dropdown-menu-action",
|
|
1956
|
+
class: j(["q-dropdown-menu-action", p.value]),
|
|
1956
1957
|
onClick: w1(M, ["stop"])
|
|
1957
1958
|
}, [
|
|
1958
|
-
!t.hideSelected && h.value && !$.value ? (n(), s("div",
|
|
1959
|
+
!t.hideSelected && h.value && !$.value ? (n(), s("div", I5, [
|
|
1959
1960
|
h.value.image ? (n(), s("img", {
|
|
1960
1961
|
key: 0,
|
|
1961
1962
|
class: "menu-image",
|
|
1962
1963
|
src: h.value.image,
|
|
1963
1964
|
alt: h.value.title
|
|
1964
|
-
}, null, 8,
|
|
1965
|
+
}, null, 8, S5)) : h.value.icon ? (n(), P(e1(h.value.icon), {
|
|
1965
1966
|
key: 1,
|
|
1966
1967
|
class: "icon menu-icon"
|
|
1967
1968
|
})) : F("", !0),
|
|
1968
|
-
o("div",
|
|
1969
|
+
o("div", j5, q(h.value ? h.value.title : i.placeholder || "Select ..."), 1)
|
|
1969
1970
|
])) : F("", !0),
|
|
1970
|
-
l1(
|
|
1971
|
+
l1(a.$slots, "default"),
|
|
1971
1972
|
n1(Q, { class: "icon chevron-icon" })
|
|
1972
|
-
], 10,
|
|
1973
|
+
], 10, B5),
|
|
1973
1974
|
o("div", {
|
|
1974
1975
|
ref_key: "menuWrapper",
|
|
1975
1976
|
ref: v
|
|
@@ -1990,13 +1991,13 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1990
1991
|
};
|
|
1991
1992
|
}
|
|
1992
1993
|
});
|
|
1993
|
-
const
|
|
1994
|
+
const D5 = { class: "q-pagination" }, Z5 = ["disabled"], O5 = {
|
|
1994
1995
|
key: 0,
|
|
1995
1996
|
class: "q-page-indicators"
|
|
1996
|
-
},
|
|
1997
|
+
}, P5 = { class: "q-page-indicator" }, T5 = ["disabled", "onClick"], Y5 = {
|
|
1997
1998
|
key: 1,
|
|
1998
1999
|
class: "q-page-indicator-simple"
|
|
1999
|
-
},
|
|
2000
|
+
}, A5 = { class: "" }, F5 = ["disabled"], U5 = /* @__PURE__ */ D({
|
|
2000
2001
|
__name: "QPagination",
|
|
2001
2002
|
props: {
|
|
2002
2003
|
modelValue: {
|
|
@@ -2027,11 +2028,11 @@ const Z5 = { class: "q-pagination" }, O5 = ["disabled"], P5 = {
|
|
|
2027
2028
|
M.push({ label: x });
|
|
2028
2029
|
else {
|
|
2029
2030
|
M.push({ label: 1 });
|
|
2030
|
-
let x = C.value - 2,
|
|
2031
|
-
x < 2 && (x = 2,
|
|
2032
|
-
for (let L = x; L <=
|
|
2031
|
+
let x = C.value - 2, a = C.value + 2;
|
|
2032
|
+
x < 2 && (x = 2, a = x + $ - 2), a > i.totalPage - 1 && (a = i.totalPage - 1, x = a - $ + 2), x > 2 && M.push({ label: "…", disabled: !0 });
|
|
2033
|
+
for (let L = x; L <= a; L++)
|
|
2033
2034
|
M.push({ label: L });
|
|
2034
|
-
|
|
2035
|
+
a < i.totalPage - 1 && M.push({ label: "…", disabled: !0 }), M.push({ label: i.totalPage });
|
|
2035
2036
|
}
|
|
2036
2037
|
return M;
|
|
2037
2038
|
}), C = S(i.modelValue);
|
|
@@ -2044,27 +2045,27 @@ const Z5 = { class: "q-pagination" }, O5 = ["disabled"], P5 = {
|
|
|
2044
2045
|
function v() {
|
|
2045
2046
|
C.value++, e("change:next", C.value), e("update:modelValue", C.value);
|
|
2046
2047
|
}
|
|
2047
|
-
function
|
|
2048
|
+
function p($, M) {
|
|
2048
2049
|
M.disabled || (C.value = $, e("change:goto", C.value), e("update:modelValue", C.value));
|
|
2049
2050
|
}
|
|
2050
|
-
return ($, M) => (n(), s("div",
|
|
2051
|
+
return ($, M) => (n(), s("div", D5, [
|
|
2051
2052
|
o("button", {
|
|
2052
2053
|
class: "prev q-button button sm outlined icon",
|
|
2053
2054
|
onClick: h,
|
|
2054
2055
|
disabled: !i.hasPrev
|
|
2055
2056
|
}, [
|
|
2056
2057
|
n1(v1, { class: "icon" })
|
|
2057
|
-
], 8,
|
|
2058
|
-
t.totalPage !== 0 ? (n(), s("div",
|
|
2059
|
-
(n(!0), s(
|
|
2058
|
+
], 8, Z5),
|
|
2059
|
+
t.totalPage !== 0 ? (n(), s("div", O5, [
|
|
2060
|
+
(n(!0), s(g1, null, p1(u.value, (x) => (n(), s("div", P5, [
|
|
2060
2061
|
o("button", {
|
|
2061
2062
|
class: j(["q-page-indicator q-button button sm plain", x.label === C.value ? "active" : ""]),
|
|
2062
2063
|
disabled: x.disabled,
|
|
2063
|
-
onClick: (
|
|
2064
|
-
}, q(x.label), 11,
|
|
2064
|
+
onClick: (a) => p(x.label, x)
|
|
2065
|
+
}, q(x.label), 11, T5)
|
|
2065
2066
|
]))), 256))
|
|
2066
|
-
])) : (n(), s("div",
|
|
2067
|
-
o("div",
|
|
2067
|
+
])) : (n(), s("div", Y5, [
|
|
2068
|
+
o("div", A5, q(t.modelValue), 1)
|
|
2068
2069
|
])),
|
|
2069
2070
|
o("button", {
|
|
2070
2071
|
class: "next q-button button sm outlined icon",
|
|
@@ -2072,13 +2073,13 @@ const Z5 = { class: "q-pagination" }, O5 = ["disabled"], P5 = {
|
|
|
2072
2073
|
disabled: !i.hasNext
|
|
2073
2074
|
}, [
|
|
2074
2075
|
n1($1, { class: "icon" })
|
|
2075
|
-
], 8,
|
|
2076
|
+
], 8, F5)
|
|
2076
2077
|
]));
|
|
2077
2078
|
}
|
|
2078
2079
|
});
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2081
|
-
],
|
|
2080
|
+
const E5 = { class: "q-progress-slot" }, W5 = /* @__PURE__ */ o("div", { class: "q-progress-bar-inner" }, null, -1), N5 = [
|
|
2081
|
+
W5
|
|
2082
|
+
], G5 = /* @__PURE__ */ D({
|
|
2082
2083
|
__name: "QProgress",
|
|
2083
2084
|
props: {
|
|
2084
2085
|
infinite: {
|
|
@@ -2103,34 +2104,34 @@ const W5 = { class: "q-progress-slot" }, N5 = /* @__PURE__ */ o("div", { class:
|
|
|
2103
2104
|
return (C, h) => (n(), s("div", {
|
|
2104
2105
|
class: j(["q-progress", t.color])
|
|
2105
2106
|
}, [
|
|
2106
|
-
o("div",
|
|
2107
|
+
o("div", E5, [
|
|
2107
2108
|
o("div", {
|
|
2108
2109
|
class: j(["q-progress-bar", u.value ? "" : "animated"]),
|
|
2109
2110
|
style: f1({ width: i.value })
|
|
2110
|
-
},
|
|
2111
|
+
}, N5, 6)
|
|
2111
2112
|
])
|
|
2112
2113
|
], 2));
|
|
2113
2114
|
}
|
|
2114
2115
|
});
|
|
2115
|
-
const
|
|
2116
|
+
const R5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2116
2117
|
__proto__: null,
|
|
2117
2118
|
QDatetimePicker: G9,
|
|
2118
2119
|
QDialog: t5,
|
|
2119
|
-
QDropdownMenu:
|
|
2120
|
+
QDropdownMenu: q5,
|
|
2120
2121
|
QFence: r5,
|
|
2121
2122
|
QLoading: _5,
|
|
2122
2123
|
QMenu: $5,
|
|
2123
|
-
QPagination:
|
|
2124
|
-
QProgress:
|
|
2124
|
+
QPagination: U5,
|
|
2125
|
+
QProgress: G5,
|
|
2125
2126
|
QSwitch: k5,
|
|
2126
|
-
QTextFieldWithButton:
|
|
2127
|
+
QTextFieldWithButton: b5
|
|
2127
2128
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2128
|
-
const
|
|
2129
|
+
const K5 = {
|
|
2129
2130
|
install(t, e) {
|
|
2130
2131
|
e != null && e.debug && console.log("options", e);
|
|
2131
2132
|
for (const [i, u] of Object.entries(Y9))
|
|
2132
2133
|
e != null && e.debug && console.log("[quail-ui] register icon component", i, u), t.component(i, u);
|
|
2133
|
-
for (const [i, u] of Object.entries(
|
|
2134
|
+
for (const [i, u] of Object.entries(R5))
|
|
2134
2135
|
e != null && e.debug && console.log("[quail-ui] register common component", i, u), t.component(i, u);
|
|
2135
2136
|
document.body.addEventListener("click", (i) => {
|
|
2136
2137
|
M1();
|
|
@@ -2138,9 +2139,9 @@ const X5 = {
|
|
|
2138
2139
|
}
|
|
2139
2140
|
};
|
|
2140
2141
|
export {
|
|
2141
|
-
|
|
2142
|
+
R5 as Common,
|
|
2142
2143
|
Y9 as Icons,
|
|
2143
|
-
|
|
2144
|
-
|
|
2144
|
+
K5 as QuailUI,
|
|
2145
|
+
K5 as default
|
|
2145
2146
|
};
|
|
2146
2147
|
//# sourceMappingURL=index.js.map
|