quail-ui 0.2.6 → 0.2.8
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 +57 -57
- 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 e1, defineComponent as T, ref as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as e1, defineComponent as T, ref as B, watch as n1, onMounted as h1, withDirectives as X, vModelText as i1, computed as F, createBlock as S, Transition as u1, withCtx as C1, normalizeStyle as M1, withModifiers as f1, toDisplayString as O, renderSlot as c1, createCommentVNode as U, getCurrentInstance as k1, resolveComponent as l1, normalizeClass as W, unref as K, resolveDynamicComponent as t1, Fragment as x1, renderList as H1, vModelCheckbox as y1, pushScopeId as L1, popScopeId as V1, createVNode as _1 } from "vue";
|
|
2
2
|
const l = (t, e) => {
|
|
3
3
|
const _ = t.__vccOpts || t;
|
|
4
4
|
for (const [a, w] of e)
|
|
@@ -1034,7 +1034,7 @@ var w1 = { exports: {} };
|
|
|
1034
1034
|
(function(_, a) {
|
|
1035
1035
|
t.exports = a();
|
|
1036
1036
|
})(Z0, function() {
|
|
1037
|
-
var _ = 1e3, a = 6e4, w = 36e5, p = "millisecond", v = "second", f = "minute", x = "hour", $ = "day", k = "week", L = "month", N = "quarter", b = "year", Y = "date",
|
|
1037
|
+
var _ = 1e3, a = 6e4, w = 36e5, p = "millisecond", v = "second", f = "minute", x = "hour", $ = "day", k = "week", L = "month", N = "quarter", b = "year", Y = "date", d1 = "Invalid Date", v1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $1 = /\[([^\]]+)]|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, g1 = { 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(h) {
|
|
1038
1038
|
var c = ["th", "st", "nd", "rd"], r = h % 100;
|
|
1039
1039
|
return "[" + h + (c[(r - 20) % 10] || c[r] || c[0]) + "]";
|
|
1040
1040
|
} }, o1 = function(h, c, r) {
|
|
@@ -1054,8 +1054,8 @@ var w1 = { exports: {} };
|
|
|
1054
1054
|
return { M: L, y: b, w: k, d: $, D: Y, h: x, m: f, s: v, ms: p, Q: N }[h] || String(h || "").toLowerCase().replace(/s$/, "");
|
|
1055
1055
|
}, u: function(h) {
|
|
1056
1056
|
return h === void 0;
|
|
1057
|
-
} }, E = "en",
|
|
1058
|
-
|
|
1057
|
+
} }, E = "en", D = {};
|
|
1058
|
+
D[E] = g1;
|
|
1059
1059
|
var s1 = function(h) {
|
|
1060
1060
|
return h instanceof R;
|
|
1061
1061
|
}, G = function h(c, r, d) {
|
|
@@ -1064,13 +1064,13 @@ var w1 = { exports: {} };
|
|
|
1064
1064
|
return E;
|
|
1065
1065
|
if (typeof c == "string") {
|
|
1066
1066
|
var u = c.toLowerCase();
|
|
1067
|
-
|
|
1067
|
+
D[u] && (i = u), r && (D[u] = r, i = u);
|
|
1068
1068
|
var C = c.split("-");
|
|
1069
1069
|
if (!i && C.length > 1)
|
|
1070
1070
|
return h(C[0]);
|
|
1071
1071
|
} else {
|
|
1072
1072
|
var m = c.name;
|
|
1073
|
-
|
|
1073
|
+
D[m] = c, i = m;
|
|
1074
1074
|
}
|
|
1075
1075
|
return !d && i && (E = i), i || !d && E;
|
|
1076
1076
|
}, H = function(h, c) {
|
|
@@ -1111,7 +1111,7 @@ var w1 = { exports: {} };
|
|
|
1111
1111
|
}, c.$utils = function() {
|
|
1112
1112
|
return g;
|
|
1113
1113
|
}, c.isValid = function() {
|
|
1114
|
-
return this.$d.toString() !==
|
|
1114
|
+
return this.$d.toString() !== d1;
|
|
1115
1115
|
}, c.isSame = function(r, d) {
|
|
1116
1116
|
var i = H(r);
|
|
1117
1117
|
return this.startOf(d) <= i && i <= this.endOf(d);
|
|
@@ -1126,11 +1126,11 @@ var w1 = { exports: {} };
|
|
|
1126
1126
|
}, c.valueOf = function() {
|
|
1127
1127
|
return this.$d.getTime();
|
|
1128
1128
|
}, c.startOf = function(r, d) {
|
|
1129
|
-
var i = this, u = !!g.u(d) || d, C = g.p(r), m = function(
|
|
1130
|
-
var Q = g.w(i.$u ? Date.UTC(i.$y, z,
|
|
1129
|
+
var i = this, u = !!g.u(d) || d, C = g.p(r), m = function(Z, z) {
|
|
1130
|
+
var Q = g.w(i.$u ? Date.UTC(i.$y, z, Z) : new Date(i.$y, z, Z), i);
|
|
1131
1131
|
return u ? Q : Q.endOf($);
|
|
1132
|
-
}, M = function(
|
|
1133
|
-
return g.w(i.toDate()[
|
|
1132
|
+
}, M = function(Z, z) {
|
|
1133
|
+
return g.w(i.toDate()[Z].apply(i.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), i);
|
|
1134
1134
|
}, y = this.$W, V = this.$M, I = this.$D, A = "set" + (this.$u ? "UTC" : "");
|
|
1135
1135
|
switch (C) {
|
|
1136
1136
|
case b:
|
|
@@ -1138,7 +1138,7 @@ var w1 = { exports: {} };
|
|
|
1138
1138
|
case L:
|
|
1139
1139
|
return u ? m(1, V) : m(0, V + 1);
|
|
1140
1140
|
case k:
|
|
1141
|
-
var
|
|
1141
|
+
var j = this.$locale().weekStart || 0, q = (y < j ? y + 7 : y) - j;
|
|
1142
1142
|
return m(u ? I - q : I + (6 - q), V);
|
|
1143
1143
|
case $:
|
|
1144
1144
|
case Y:
|
|
@@ -1188,12 +1188,12 @@ var w1 = { exports: {} };
|
|
|
1188
1188
|
}, c.format = function(r) {
|
|
1189
1189
|
var d = this, i = this.$locale();
|
|
1190
1190
|
if (!this.isValid())
|
|
1191
|
-
return i.invalidDate ||
|
|
1192
|
-
var u = r || "YYYY-MM-DDTHH:mm:ssZ", C = g.z(this), m = this.$H, M = this.$m, y = this.$M, V = i.weekdays, I = i.months, A = i.meridiem,
|
|
1191
|
+
return i.invalidDate || d1;
|
|
1192
|
+
var u = r || "YYYY-MM-DDTHH:mm:ssZ", C = g.z(this), m = this.$H, M = this.$m, y = this.$M, V = i.weekdays, I = i.months, A = i.meridiem, j = function(z, Q, P, J) {
|
|
1193
1193
|
return z && (z[Q] || z(d, u)) || P[Q].slice(0, J);
|
|
1194
1194
|
}, q = function(z) {
|
|
1195
1195
|
return g.s(m % 12 || 12, z, "0");
|
|
1196
|
-
},
|
|
1196
|
+
}, Z = A || function(z, Q, P) {
|
|
1197
1197
|
var J = z < 12 ? "AM" : "PM";
|
|
1198
1198
|
return P ? J.toLowerCase() : J;
|
|
1199
1199
|
};
|
|
@@ -1209,9 +1209,9 @@ var w1 = { exports: {} };
|
|
|
1209
1209
|
case "MM":
|
|
1210
1210
|
return g.s(y + 1, 2, "0");
|
|
1211
1211
|
case "MMM":
|
|
1212
|
-
return
|
|
1212
|
+
return j(i.monthsShort, y, I, 3);
|
|
1213
1213
|
case "MMMM":
|
|
1214
|
-
return
|
|
1214
|
+
return j(I, y);
|
|
1215
1215
|
case "D":
|
|
1216
1216
|
return d.$D;
|
|
1217
1217
|
case "DD":
|
|
@@ -1219,9 +1219,9 @@ var w1 = { exports: {} };
|
|
|
1219
1219
|
case "d":
|
|
1220
1220
|
return String(d.$W);
|
|
1221
1221
|
case "dd":
|
|
1222
|
-
return
|
|
1222
|
+
return j(i.weekdaysMin, d.$W, V, 2);
|
|
1223
1223
|
case "ddd":
|
|
1224
|
-
return
|
|
1224
|
+
return j(i.weekdaysShort, d.$W, V, 3);
|
|
1225
1225
|
case "dddd":
|
|
1226
1226
|
return V[d.$W];
|
|
1227
1227
|
case "H":
|
|
@@ -1233,9 +1233,9 @@ var w1 = { exports: {} };
|
|
|
1233
1233
|
case "hh":
|
|
1234
1234
|
return q(2);
|
|
1235
1235
|
case "a":
|
|
1236
|
-
return
|
|
1236
|
+
return Z(m, M, !0);
|
|
1237
1237
|
case "A":
|
|
1238
|
-
return
|
|
1238
|
+
return Z(m, M, !1);
|
|
1239
1239
|
case "m":
|
|
1240
1240
|
return String(M);
|
|
1241
1241
|
case "mm":
|
|
@@ -1290,7 +1290,7 @@ var w1 = { exports: {} };
|
|
|
1290
1290
|
}, c.daysInMonth = function() {
|
|
1291
1291
|
return this.endOf(L).$D;
|
|
1292
1292
|
}, c.$locale = function() {
|
|
1293
|
-
return
|
|
1293
|
+
return D[this.$L];
|
|
1294
1294
|
}, c.locale = function(r, d) {
|
|
1295
1295
|
if (!r)
|
|
1296
1296
|
return this.$L;
|
|
@@ -1307,16 +1307,16 @@ var w1 = { exports: {} };
|
|
|
1307
1307
|
}, c.toString = function() {
|
|
1308
1308
|
return this.$d.toUTCString();
|
|
1309
1309
|
}, h;
|
|
1310
|
-
}(),
|
|
1311
|
-
return H.prototype =
|
|
1312
|
-
|
|
1310
|
+
}(), a1 = R.prototype;
|
|
1311
|
+
return H.prototype = a1, [["$ms", p], ["$s", v], ["$m", f], ["$H", x], ["$W", $], ["$M", L], ["$y", b], ["$D", Y]].forEach(function(h) {
|
|
1312
|
+
a1[h[1]] = function(c) {
|
|
1313
1313
|
return this.$g(c, h[0], h[1]);
|
|
1314
1314
|
};
|
|
1315
1315
|
}), H.extend = function(h, c) {
|
|
1316
1316
|
return h.$i || (h(c, R, H), h.$i = !0), H;
|
|
1317
1317
|
}, H.locale = G, H.isDayjs = s1, H.unix = function(h) {
|
|
1318
1318
|
return H(1e3 * h);
|
|
1319
|
-
}, H.en =
|
|
1319
|
+
}, H.en = D[E], H.Ls = D, H.p = {}, H;
|
|
1320
1320
|
});
|
|
1321
1321
|
})(w1);
|
|
1322
1322
|
var T0 = w1.exports;
|
|
@@ -1334,7 +1334,7 @@ const r1 = /* @__PURE__ */ O0(T0), Y0 = { class: "wrapper" }, A0 = ["disabled"],
|
|
|
1334
1334
|
},
|
|
1335
1335
|
emits: ["update:modelValue", "change"],
|
|
1336
1336
|
setup(t, { emit: e }) {
|
|
1337
|
-
const _ = t, a =
|
|
1337
|
+
const _ = t, a = B(""), w = B("");
|
|
1338
1338
|
n1(
|
|
1339
1339
|
() => _.modelValue,
|
|
1340
1340
|
(v) => {
|
|
@@ -1395,7 +1395,7 @@ const E0 = /* @__PURE__ */ l(U0, [["__scopeId", "data-v-9b99e67f"]]), q0 = ["onC
|
|
|
1395
1395
|
},
|
|
1396
1396
|
emits: ["update:modelValue", "close"],
|
|
1397
1397
|
setup(t, { emit: e }) {
|
|
1398
|
-
const _ = t, a =
|
|
1398
|
+
const _ = t, a = B(_.modelValue), w = F(() => {
|
|
1399
1399
|
const f = document.body.clientWidth < 720 ? "100%" : _.width, x = _.height;
|
|
1400
1400
|
return {
|
|
1401
1401
|
width: f,
|
|
@@ -1413,32 +1413,32 @@ const E0 = /* @__PURE__ */ l(U0, [["__scopeId", "data-v-9b99e67f"]]), q0 = ["onC
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function v() {
|
|
1415
1415
|
}
|
|
1416
|
-
return (f, x) =>
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1416
|
+
return (f, x) => (n(), S(u1, null, {
|
|
1417
|
+
default: C1(() => [
|
|
1418
|
+
a.value ? (n(), s("div", {
|
|
1419
|
+
key: 0,
|
|
1420
|
+
class: "dialog-mask",
|
|
1421
|
+
onClick: p
|
|
1422
|
+
}, [
|
|
1423
1423
|
o("div", {
|
|
1424
1424
|
class: "dialog",
|
|
1425
1425
|
style: M1(w.value),
|
|
1426
1426
|
onClick: f1(v, ["stop"])
|
|
1427
1427
|
}, [
|
|
1428
1428
|
o("div", P0, [
|
|
1429
|
-
t.title ? (n(), s("div", W0, O(t.title), 1)) :
|
|
1429
|
+
t.title ? (n(), s("div", W0, O(t.title), 1)) : c1(f.$slots, "header", { key: 1 }, void 0, !0)
|
|
1430
1430
|
]),
|
|
1431
1431
|
o("div", N0, [
|
|
1432
|
-
|
|
1432
|
+
c1(f.$slots, "default", {}, void 0, !0)
|
|
1433
1433
|
])
|
|
1434
1434
|
], 12, q0)
|
|
1435
|
-
]),
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1435
|
+
])) : U("", !0)
|
|
1436
|
+
]),
|
|
1437
|
+
_: 3
|
|
1438
|
+
}));
|
|
1439
1439
|
}
|
|
1440
1440
|
});
|
|
1441
|
-
const R0 = /* @__PURE__ */ l(G0, [["__scopeId", "data-v-
|
|
1441
|
+
const R0 = /* @__PURE__ */ l(G0, [["__scopeId", "data-v-cd14d61a"]]), J0 = ["href"], K0 = { class: "fence-text" }, X0 = {
|
|
1442
1442
|
key: 1,
|
|
1443
1443
|
class: "fence-inner"
|
|
1444
1444
|
}, t9 = { class: "fence-text" }, e9 = /* @__PURE__ */ T({
|
|
@@ -1464,7 +1464,7 @@ const R0 = /* @__PURE__ */ l(G0, [["__scopeId", "data-v-dff1e7ea"]]), J0 = ["hre
|
|
|
1464
1464
|
var _;
|
|
1465
1465
|
const e = (_ = k1()) == null ? void 0 : _.appContext.components;
|
|
1466
1466
|
return (a, w) => {
|
|
1467
|
-
const p =
|
|
1467
|
+
const p = l1("QIconHelp");
|
|
1468
1468
|
return n(), s("div", {
|
|
1469
1469
|
class: W(["fence", t.type])
|
|
1470
1470
|
}, [
|
|
@@ -1474,19 +1474,19 @@ const R0 = /* @__PURE__ */ l(G0, [["__scopeId", "data-v-dff1e7ea"]]), J0 = ["hre
|
|
|
1474
1474
|
href: t.link,
|
|
1475
1475
|
target: "_blank"
|
|
1476
1476
|
}, [
|
|
1477
|
-
t.icon && K(e) ? (n(),
|
|
1477
|
+
t.icon && K(e) ? (n(), S(t1(K(e)[t.icon]), {
|
|
1478
1478
|
key: 0,
|
|
1479
1479
|
class: "icon"
|
|
1480
|
-
})) : (n(),
|
|
1480
|
+
})) : (n(), S(p, {
|
|
1481
1481
|
key: 1,
|
|
1482
1482
|
class: "icon"
|
|
1483
1483
|
})),
|
|
1484
1484
|
o("div", K0, O(t.text), 1)
|
|
1485
1485
|
], 8, J0)) : (n(), s("div", X0, [
|
|
1486
|
-
t.icon && K(e) ? (n(),
|
|
1486
|
+
t.icon && K(e) ? (n(), S(t1(K(e)[t.icon]), {
|
|
1487
1487
|
key: 0,
|
|
1488
1488
|
class: "icon"
|
|
1489
|
-
})) : (n(),
|
|
1489
|
+
})) : (n(), S(p, {
|
|
1490
1490
|
key: 1,
|
|
1491
1491
|
class: "icon"
|
|
1492
1492
|
})),
|
|
@@ -1545,7 +1545,7 @@ const l9 = /* @__PURE__ */ l(o9, [["render", c9], ["__scopeId", "data-v-f4d8a4f4
|
|
|
1545
1545
|
class: "menu-image",
|
|
1546
1546
|
src: f.image,
|
|
1547
1547
|
alt: f.title
|
|
1548
|
-
}, null, 8, u9)) : f.icon ? (n(),
|
|
1548
|
+
}, null, 8, u9)) : f.icon ? (n(), S(t1(f.icon), {
|
|
1549
1549
|
key: 1,
|
|
1550
1550
|
class: "menu-icon mr-1"
|
|
1551
1551
|
})) : U("", !0),
|
|
@@ -1572,7 +1572,7 @@ const v9 = /* @__PURE__ */ l(p9, [["__scopeId", "data-v-f9bd95cd"]]), $9 = (t) =
|
|
|
1572
1572
|
},
|
|
1573
1573
|
emits: ["update:modelValue", "change"],
|
|
1574
1574
|
setup(t, { emit: e }) {
|
|
1575
|
-
const _ = t, a =
|
|
1575
|
+
const _ = t, a = B(_.modelValue);
|
|
1576
1576
|
n1(() => _.modelValue, (p) => {
|
|
1577
1577
|
a.value = p;
|
|
1578
1578
|
});
|
|
@@ -1619,7 +1619,7 @@ const k9 = /* @__PURE__ */ l(M9, [["__scopeId", "data-v-f5802762"]]), x9 = ["pla
|
|
|
1619
1619
|
},
|
|
1620
1620
|
emits: ["submit"],
|
|
1621
1621
|
setup(t, { emit: e }) {
|
|
1622
|
-
const _ = t, a =
|
|
1622
|
+
const _ = t, a = B(_.defaultText), w = F(() => {
|
|
1623
1623
|
var k;
|
|
1624
1624
|
return _.loading || ((k = a.value) == null ? void 0 : k.trim()).length === 0 ? !1 : _.type === "email" ? p.value : _.type === "code" ? v.value : !0;
|
|
1625
1625
|
}), p = F(() => {
|
|
@@ -1695,7 +1695,7 @@ const z9 = { class: "dropdown-menu" }, I9 = { class: "dropdown-menu-inner narrow
|
|
|
1695
1695
|
},
|
|
1696
1696
|
emits: ["change"],
|
|
1697
1697
|
setup(t, { emit: e }) {
|
|
1698
|
-
const _ = t, a =
|
|
1698
|
+
const _ = t, a = B(!1), w = B(null), p = B(null), v = F(() => {
|
|
1699
1699
|
const $ = [];
|
|
1700
1700
|
return a.value && $.push("expanded"), _.variant === "outlined" && $.push("frame"), $.join(" ");
|
|
1701
1701
|
});
|
|
@@ -1718,7 +1718,7 @@ const z9 = { class: "dropdown-menu" }, I9 = { class: "dropdown-menu-inner narrow
|
|
|
1718
1718
|
$.key === "quailui_global_popup_trigger" && $.newValue && (a.value = !1);
|
|
1719
1719
|
});
|
|
1720
1720
|
}), ($, k) => {
|
|
1721
|
-
const L =
|
|
1721
|
+
const L = l1("QIconChevronDown"), N = l1("QMenu");
|
|
1722
1722
|
return n(), s("div", z9, [
|
|
1723
1723
|
o("div", I9, [
|
|
1724
1724
|
o("div", {
|
|
@@ -1731,22 +1731,22 @@ const z9 = { class: "dropdown-menu" }, I9 = { class: "dropdown-menu-inner narrow
|
|
|
1731
1731
|
class: "menu-image",
|
|
1732
1732
|
src: w.value.image,
|
|
1733
1733
|
alt: w.value.title
|
|
1734
|
-
}, null, 8, S9)) : w.value.icon ? (n(),
|
|
1734
|
+
}, null, 8, S9)) : w.value.icon ? (n(), S(t1(w.value.icon), {
|
|
1735
1735
|
key: 1,
|
|
1736
1736
|
class: "icon menu-icon"
|
|
1737
1737
|
})) : U("", !0),
|
|
1738
1738
|
o("div", B9, O(w.value ? w.value.title : _.placeholder || "Select ..."), 1)
|
|
1739
1739
|
])) : U("", !0),
|
|
1740
|
-
|
|
1741
|
-
|
|
1740
|
+
c1($.$slots, "default", {}, void 0, !0),
|
|
1741
|
+
_1(L, { class: "icon chevron-icon" })
|
|
1742
1742
|
], 10, b9),
|
|
1743
1743
|
o("div", {
|
|
1744
1744
|
ref_key: "menuWrapper",
|
|
1745
1745
|
ref: p
|
|
1746
1746
|
}, [
|
|
1747
|
-
|
|
1747
|
+
_1(u1, null, {
|
|
1748
1748
|
default: C1(() => [
|
|
1749
|
-
a.value ? (n(),
|
|
1749
|
+
a.value ? (n(), S(N, {
|
|
1750
1750
|
key: 0,
|
|
1751
1751
|
items: t.items,
|
|
1752
1752
|
onAction: x
|