quail-ui 0.2.55 β 0.2.56
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 +29 -29
- 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 N, defineComponent as O, ref as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as N, defineComponent as O, ref as I, watch as e1, onMounted as a1, withDirectives as n1, vModelText as c1, computed as H, nextTick as S1, Fragment as p1, renderSlot as r1, createBlock as P, Transition as v1, withCtx as C1, normalizeClass as D, normalizeStyle as l1, withModifiers as $1, createCommentVNode as q, toDisplayString as z, getCurrentInstance as q1, unref as h1, resolveDynamicComponent as f1, renderList as H1, resolveComponent as W, vModelCheckbox as Z1, useSlots as D1, createVNode as Y, pushScopeId as A1, popScopeId as P1 } from "vue";
|
|
2
2
|
const r = (e, t) => {
|
|
3
3
|
const i = e.__vccOpts || e;
|
|
4
4
|
for (const [a, d] of t)
|
|
@@ -1713,8 +1713,8 @@ var Q1 = { exports: {} };
|
|
|
1713
1713
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
1714
1714
|
var m = _.match(w);
|
|
1715
1715
|
if (m) {
|
|
1716
|
-
var L = m[2] - 1 || 0,
|
|
1717
|
-
return $ ? new Date(Date.UTC(m[1], L, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0,
|
|
1716
|
+
var L = m[2] - 1 || 0, V = (m[7] || "0").substring(0, 3);
|
|
1717
|
+
return $ ? new Date(Date.UTC(m[1], L, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, V)) : new Date(m[1], L, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, V);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
return new Date(_);
|
|
@@ -1743,7 +1743,7 @@ var Q1 = { exports: {} };
|
|
|
1743
1743
|
var _ = this, $ = !!y.u(C) || C, m = y.p(l), L = function(K, A) {
|
|
1744
1744
|
var R = y.w(_.$u ? Date.UTC(_.$y, A, K) : new Date(_.$y, A, K), _);
|
|
1745
1745
|
return $ ? R : R.endOf(k);
|
|
1746
|
-
},
|
|
1746
|
+
}, V = function(K, A) {
|
|
1747
1747
|
return y.w(_.toDate()[K].apply(_.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(A)), _);
|
|
1748
1748
|
}, j = this.$W, S = this.$M, T = this.$D, t1 = "set" + (this.$u ? "UTC" : "");
|
|
1749
1749
|
switch (m) {
|
|
@@ -1756,25 +1756,25 @@ var Q1 = { exports: {} };
|
|
|
1756
1756
|
return L($ ? T - s1 : T + (6 - s1), S);
|
|
1757
1757
|
case k:
|
|
1758
1758
|
case Z:
|
|
1759
|
-
return
|
|
1759
|
+
return V(t1 + "Hours", 0);
|
|
1760
1760
|
case p:
|
|
1761
|
-
return
|
|
1761
|
+
return V(t1 + "Minutes", 1);
|
|
1762
1762
|
case h:
|
|
1763
|
-
return
|
|
1763
|
+
return V(t1 + "Seconds", 2);
|
|
1764
1764
|
case c:
|
|
1765
|
-
return
|
|
1765
|
+
return V(t1 + "Milliseconds", 3);
|
|
1766
1766
|
default:
|
|
1767
1767
|
return this.clone();
|
|
1768
1768
|
}
|
|
1769
1769
|
}, u.endOf = function(l) {
|
|
1770
1770
|
return this.startOf(l, !1);
|
|
1771
1771
|
}, u.$set = function(l, C) {
|
|
1772
|
-
var _, $ = y.p(l), m = "set" + (this.$u ? "UTC" : ""), L = (_ = {}, _[k] = m + "Date", _[Z] = m + "Date", _[g] = m + "Month", _[b] = m + "FullYear", _[p] = m + "Hours", _[h] = m + "Minutes", _[c] = m + "Seconds", _[f] = m + "Milliseconds", _)[$],
|
|
1772
|
+
var _, $ = y.p(l), m = "set" + (this.$u ? "UTC" : ""), L = (_ = {}, _[k] = m + "Date", _[Z] = m + "Date", _[g] = m + "Month", _[b] = m + "FullYear", _[p] = m + "Hours", _[h] = m + "Minutes", _[c] = m + "Seconds", _[f] = m + "Milliseconds", _)[$], V = $ === k ? this.$D + (C - this.$W) : C;
|
|
1773
1773
|
if ($ === g || $ === b) {
|
|
1774
1774
|
var j = this.clone().set(Z, 1);
|
|
1775
|
-
j.$d[L](
|
|
1775
|
+
j.$d[L](V), j.init(), this.$d = j.set(Z, Math.min(this.$D, j.daysInMonth())).$d;
|
|
1776
1776
|
} else
|
|
1777
|
-
L && this.$d[L](
|
|
1777
|
+
L && this.$d[L](V);
|
|
1778
1778
|
return this.init(), this;
|
|
1779
1779
|
}, u.set = function(l, C) {
|
|
1780
1780
|
return this.clone().$set(l, C);
|
|
@@ -1795,7 +1795,7 @@ var Q1 = { exports: {} };
|
|
|
1795
1795
|
return L(1);
|
|
1796
1796
|
if (m === M)
|
|
1797
1797
|
return L(7);
|
|
1798
|
-
var
|
|
1798
|
+
var V = (_ = {}, _[h] = a, _[p] = d, _[c] = i, _)[m] || 1, j = this.$d.getTime() + l * V;
|
|
1799
1799
|
return y.w(j, this);
|
|
1800
1800
|
}, u.subtract = function(l, C) {
|
|
1801
1801
|
return this.add(-1 * l, C);
|
|
@@ -1803,7 +1803,7 @@ var Q1 = { exports: {} };
|
|
|
1803
1803
|
var C = this, _ = this.$locale();
|
|
1804
1804
|
if (!this.isValid())
|
|
1805
1805
|
return _.invalidDate || U;
|
|
1806
|
-
var $ = l || "YYYY-MM-DDTHH:mm:ssZ", m = y.z(this), L = this.$H,
|
|
1806
|
+
var $ = l || "YYYY-MM-DDTHH:mm:ssZ", m = y.z(this), L = this.$H, V = this.$m, j = this.$M, S = _.weekdays, T = _.months, t1 = _.meridiem, X = function(A, R, i1, u1) {
|
|
1807
1807
|
return A && (A[R] || A(C, $)) || i1[R].slice(0, u1);
|
|
1808
1808
|
}, s1 = function(A) {
|
|
1809
1809
|
return y.s(L % 12 || 12, A, "0");
|
|
@@ -1847,13 +1847,13 @@ var Q1 = { exports: {} };
|
|
|
1847
1847
|
case "hh":
|
|
1848
1848
|
return s1(2);
|
|
1849
1849
|
case "a":
|
|
1850
|
-
return K(L,
|
|
1850
|
+
return K(L, V, !0);
|
|
1851
1851
|
case "A":
|
|
1852
|
-
return K(L,
|
|
1852
|
+
return K(L, V, !1);
|
|
1853
1853
|
case "m":
|
|
1854
|
-
return String(
|
|
1854
|
+
return String(V);
|
|
1855
1855
|
case "mm":
|
|
1856
|
-
return y.s(
|
|
1856
|
+
return y.s(V, 2, "0");
|
|
1857
1857
|
case "s":
|
|
1858
1858
|
return String(C.$s);
|
|
1859
1859
|
case "ss":
|
|
@@ -1869,8 +1869,8 @@ var Q1 = { exports: {} };
|
|
|
1869
1869
|
}, u.utcOffset = function() {
|
|
1870
1870
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1871
1871
|
}, u.diff = function(l, C, _) {
|
|
1872
|
-
var $, m = this, L = y.p(C),
|
|
1873
|
-
return y.m(m,
|
|
1872
|
+
var $, m = this, L = y.p(C), V = B(l), j = (V.utcOffset() - this.utcOffset()) * a, S = this - V, T = function() {
|
|
1873
|
+
return y.m(m, V);
|
|
1874
1874
|
};
|
|
1875
1875
|
switch (L) {
|
|
1876
1876
|
case b:
|
|
@@ -1948,7 +1948,7 @@ const g1 = /* @__PURE__ */ L3(H3), V3 = { class: "q-datetime-picker" }, I3 = ["d
|
|
|
1948
1948
|
},
|
|
1949
1949
|
emits: ["update:modelValue", "change"],
|
|
1950
1950
|
setup(e, { emit: t }) {
|
|
1951
|
-
const i = e, a =
|
|
1951
|
+
const i = e, a = I(""), d = I("");
|
|
1952
1952
|
e1(
|
|
1953
1953
|
() => i.modelValue,
|
|
1954
1954
|
(c) => {
|
|
@@ -2057,7 +2057,7 @@ const j3 = ["onClick"], S3 = { class: "q-dialog-body" }, q3 = ["onClick"], Z3 =
|
|
|
2057
2057
|
},
|
|
2058
2058
|
emits: ["update:modelValue", "close"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
|
-
const i = e, { browserDetect: a } = B3(), { isMobile: d } = a(), f =
|
|
2060
|
+
const i = e, { browserDetect: a } = B3(), { isMobile: d } = a(), f = I(!1), c = I(i.modelValue), h = I({ top: "0", left: "0" }), p = I(null), k = I(null), M = H(() => !d && i.desktopMode === "popup"), g = H(() => {
|
|
2061
2061
|
const w = document.body.clientWidth < 720 ? "100%" : i.width, Q = i.height, F = {
|
|
2062
2062
|
width: w,
|
|
2063
2063
|
height: Q
|
|
@@ -2299,7 +2299,7 @@ const io = ["disabled"], ro = { class: "q-switch-inner" }, co = { class: "q-swit
|
|
|
2299
2299
|
},
|
|
2300
2300
|
emits: ["update:modelValue", "change"],
|
|
2301
2301
|
setup(e, { emit: t }) {
|
|
2302
|
-
const i = e, a =
|
|
2302
|
+
const i = e, a = I(i.modelValue);
|
|
2303
2303
|
e1(() => i.modelValue, (c) => {
|
|
2304
2304
|
a.value = c;
|
|
2305
2305
|
});
|
|
@@ -2378,7 +2378,7 @@ const ao = { class: "q-text-field-wrapper" }, _o = ["placeholder"], uo = { class
|
|
|
2378
2378
|
},
|
|
2379
2379
|
emits: ["submit", "update:modelValue"],
|
|
2380
2380
|
setup(e, { emit: t }) {
|
|
2381
|
-
const i = e, a =
|
|
2381
|
+
const i = e, a = I(i.defaultText), d = H(() => {
|
|
2382
2382
|
const g = [];
|
|
2383
2383
|
return i.layout === "vertical" ? g.push("vertical") : g.push("horizontal"), i.type === "code" && g.push("code"), i.glow && g.push(`glow-${i.glow}`), g.join(" ");
|
|
2384
2384
|
}), f = H(() => {
|
|
@@ -2498,7 +2498,7 @@ const po = { class: "q-dropdown-menu" }, wo = { class: "q-dropdown-menu-inner na
|
|
|
2498
2498
|
},
|
|
2499
2499
|
emits: ["change"],
|
|
2500
2500
|
setup(e, { emit: t }) {
|
|
2501
|
-
const i = e, a = D1(), d =
|
|
2501
|
+
const i = e, a = D1(), d = I(!1), f = I(null), c = I(null), h = I(null), p = I(""), k = I(""), M = H(() => {
|
|
2502
2502
|
const w = [];
|
|
2503
2503
|
return d.value && w.push("expanded"), i.variant === "outlined" ? w.push("frame") : i.variant === "plain" && w.push("plain"), i.hideSelected && w.push("hide-selected"), f.value && (f.value.icon || f.value.image) ? w.push("prepend") : w.push("no-prepend"), w.join(" ");
|
|
2504
2504
|
}), g = H(() => a.default !== void 0), x = H(() => {
|
|
@@ -2666,7 +2666,7 @@ const Lo = { class: "q-pagination" }, Ho = ["disabled"], Vo = {
|
|
|
2666
2666
|
g < i.totalPage - 1 && k.push({ label: "β¦", disabled: !0 }), k.push({ label: i.totalPage });
|
|
2667
2667
|
}
|
|
2668
2668
|
return k;
|
|
2669
|
-
}), d =
|
|
2669
|
+
}), d = I(i.modelValue);
|
|
2670
2670
|
e1(() => i.modelValue, (p) => {
|
|
2671
2671
|
d.value = p;
|
|
2672
2672
|
});
|
|
@@ -2766,7 +2766,7 @@ const Po = /* @__PURE__ */ O({
|
|
|
2766
2766
|
},
|
|
2767
2767
|
emits: ["change"],
|
|
2768
2768
|
setup(e, { emit: t }) {
|
|
2769
|
-
const i = e, a =
|
|
2769
|
+
const i = e, a = I(null), d = H(() => {
|
|
2770
2770
|
let c = [
|
|
2771
2771
|
{
|
|
2772
2772
|
title_flag: "πΊπΈ English",
|
|
@@ -2927,10 +2927,10 @@ const Xo = ["src", "alt"], L1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2I
|
|
|
2927
2927
|
}
|
|
2928
2928
|
},
|
|
2929
2929
|
setup(e) {
|
|
2930
|
-
const t = e, i =
|
|
2930
|
+
const t = e, i = H(() => t.src || L1), a = H(() => {
|
|
2931
2931
|
const c = [];
|
|
2932
2932
|
return t.variant === "circle" ? c.push("circle") : t.variant === "rounded" ? c.push("rounded") : t.variant === "square" && c.push("square"), c.join(" ");
|
|
2933
|
-
}), d =
|
|
2933
|
+
}), d = I({
|
|
2934
2934
|
width: `${t.size}px`,
|
|
2935
2935
|
height: `${t.size}px`
|
|
2936
2936
|
});
|
|
@@ -2987,7 +2987,7 @@ const e8 = { class: "q-dropdown-menu-with-text-field" }, t8 = { class: "q-dropdo
|
|
|
2987
2987
|
},
|
|
2988
2988
|
emits: ["change"],
|
|
2989
2989
|
setup(e, { emit: t }) {
|
|
2990
|
-
const i = e, a =
|
|
2990
|
+
const i = e, a = I(i.defaultText), d = I(i.defaultSelection), f = I(null), c = H(() => i.fillActionLabel !== "" || i.hintText !== "");
|
|
2991
2991
|
function h(g) {
|
|
2992
2992
|
d.value = g, k();
|
|
2993
2993
|
}
|