quail-ui 0.2.3 → 0.2.4
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 +59 -58
- 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 S, watch as n1, onMounted as h1, withDirectives as X, vModelText as i1, computed as F, createVNode as c1, Transition as u1, withCtx as C1, normalizeStyle as M1, withModifiers as f1, toDisplayString as O, renderSlot as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as e1, defineComponent as T, ref as S, watch as n1, onMounted as h1, withDirectives as X, vModelText as i1, computed as F, createVNode as c1, Transition as u1, withCtx as C1, normalizeStyle as M1, withModifiers as f1, toDisplayString as O, renderSlot as l1, createCommentVNode as U, getCurrentInstance as k1, resolveComponent as d1, normalizeClass as W, unref as K, createBlock as Z, resolveDynamicComponent as t1, Fragment as x1, renderList as H1, vModelCheckbox as y1, pushScopeId as L1, popScopeId as V1, createTextVNode as z1 } 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
|
})(O0, 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", a1 = "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) {
|
|
@@ -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() !== a1;
|
|
1115
1115
|
}, c.isSame = function(r, d) {
|
|
1116
1116
|
var i = H(r);
|
|
1117
1117
|
return this.startOf(d) <= i && i <= this.endOf(d);
|
|
@@ -1188,7 +1188,7 @@ 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 ||
|
|
1191
|
+
return i.invalidDate || a1;
|
|
1192
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, D = function(z, Q, P, J) {
|
|
1193
1193
|
return z && (z[Q] || z(d, u)) || P[Q].slice(0, J);
|
|
1194
1194
|
}, q = function(z) {
|
|
@@ -1307,9 +1307,9 @@ var w1 = { exports: {} };
|
|
|
1307
1307
|
}, c.toString = function() {
|
|
1308
1308
|
return this.$d.toUTCString();
|
|
1309
1309
|
}, h;
|
|
1310
|
-
}(),
|
|
1311
|
-
return H.prototype =
|
|
1312
|
-
|
|
1310
|
+
}(), _1 = R.prototype;
|
|
1311
|
+
return H.prototype = _1, [["$ms", p], ["$s", v], ["$m", f], ["$H", x], ["$W", $], ["$M", L], ["$y", b], ["$D", Y]].forEach(function(h) {
|
|
1312
|
+
_1[h[1]] = function(c) {
|
|
1313
1313
|
return this.$g(c, h[0], h[1]);
|
|
1314
1314
|
};
|
|
1315
1315
|
}), H.extend = function(h, c) {
|
|
@@ -1426,10 +1426,10 @@ const q0 = /* @__PURE__ */ l(E0, [["__scopeId", "data-v-9b99e67f"]]), P0 = ["onC
|
|
|
1426
1426
|
onClick: f1(v, ["stop"])
|
|
1427
1427
|
}, [
|
|
1428
1428
|
o("div", W0, [
|
|
1429
|
-
t.title ? (n(), s("div", N0, O(t.title), 1)) :
|
|
1429
|
+
t.title ? (n(), s("div", N0, O(t.title), 1)) : l1(f.$slots, "header", { key: 1 }, void 0, !0)
|
|
1430
1430
|
]),
|
|
1431
1431
|
o("div", G0, [
|
|
1432
|
-
|
|
1432
|
+
l1(f.$slots, "default", {}, void 0, !0)
|
|
1433
1433
|
])
|
|
1434
1434
|
], 12, P0)
|
|
1435
1435
|
]),
|
|
@@ -1438,10 +1438,10 @@ const q0 = /* @__PURE__ */ l(E0, [["__scopeId", "data-v-9b99e67f"]]), P0 = ["onC
|
|
|
1438
1438
|
])) : U("", !0);
|
|
1439
1439
|
}
|
|
1440
1440
|
});
|
|
1441
|
-
const J0 = /* @__PURE__ */ l(R0, [["__scopeId", "data-v-dff1e7ea"]]), K0 = ["href"], X0 = { class: "fence-text" },
|
|
1441
|
+
const J0 = /* @__PURE__ */ l(R0, [["__scopeId", "data-v-dff1e7ea"]]), K0 = ["href"], X0 = { class: "fence-text" }, t9 = {
|
|
1442
1442
|
key: 1,
|
|
1443
1443
|
class: "fence-inner"
|
|
1444
|
-
},
|
|
1444
|
+
}, e9 = { class: "fence-text" }, n9 = /* @__PURE__ */ T({
|
|
1445
1445
|
__name: "QFence",
|
|
1446
1446
|
props: {
|
|
1447
1447
|
link: {
|
|
@@ -1464,7 +1464,7 @@ const J0 = /* @__PURE__ */ l(R0, [["__scopeId", "data-v-dff1e7ea"]]), K0 = ["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 = d1("QIconHelp");
|
|
1468
1468
|
return n(), s("div", {
|
|
1469
1469
|
class: W(["fence", t.type])
|
|
1470
1470
|
}, [
|
|
@@ -1482,7 +1482,7 @@ const J0 = /* @__PURE__ */ l(R0, [["__scopeId", "data-v-dff1e7ea"]]), K0 = ["hre
|
|
|
1482
1482
|
class: "icon"
|
|
1483
1483
|
})),
|
|
1484
1484
|
o("div", X0, O(t.text), 1)
|
|
1485
|
-
], 8, K0)) : (n(), s("div",
|
|
1485
|
+
], 8, K0)) : (n(), s("div", t9, [
|
|
1486
1486
|
t.icon && K(e) ? (n(), Z(t1(K(e)[t.icon]), {
|
|
1487
1487
|
key: 0,
|
|
1488
1488
|
class: "icon"
|
|
@@ -1490,32 +1490,32 @@ const J0 = /* @__PURE__ */ l(R0, [["__scopeId", "data-v-dff1e7ea"]]), K0 = ["hre
|
|
|
1490
1490
|
key: 1,
|
|
1491
1491
|
class: "icon"
|
|
1492
1492
|
})),
|
|
1493
|
-
o("div",
|
|
1493
|
+
o("div", e9, O(t.text), 1)
|
|
1494
1494
|
]))
|
|
1495
1495
|
], 2);
|
|
1496
1496
|
};
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
|
-
const
|
|
1500
|
-
const
|
|
1499
|
+
const o9 = /* @__PURE__ */ l(n9, [["__scopeId", "data-v-077653b0"]]);
|
|
1500
|
+
const s9 = {}, r9 = {
|
|
1501
1501
|
class: "pa-4 mb-4 rounded-sm text-center",
|
|
1502
1502
|
color: "glass"
|
|
1503
|
-
},
|
|
1504
|
-
|
|
1503
|
+
}, i9 = /* @__PURE__ */ e1('<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), c9 = [
|
|
1504
|
+
i9
|
|
1505
1505
|
];
|
|
1506
|
-
function
|
|
1507
|
-
return n(), s("div",
|
|
1506
|
+
function l9(t, e) {
|
|
1507
|
+
return n(), s("div", r9, c9);
|
|
1508
1508
|
}
|
|
1509
|
-
const
|
|
1509
|
+
const d9 = /* @__PURE__ */ l(s9, [["render", l9], ["__scopeId", "data-v-f4d8a4f4"]]), a9 = { class: "menu frame" }, _9 = ["onClick"], h9 = {
|
|
1510
1510
|
key: 0,
|
|
1511
1511
|
class: "menu-item-divider"
|
|
1512
|
-
},
|
|
1512
|
+
}, u9 = {
|
|
1513
1513
|
key: 1,
|
|
1514
1514
|
class: "menu-item-inner"
|
|
1515
|
-
},
|
|
1515
|
+
}, C9 = ["src", "alt"], f9 = { class: "menu-item-content" }, w9 = { class: "menu-title" }, p9 = {
|
|
1516
1516
|
key: 0,
|
|
1517
1517
|
class: "menu-subtitle"
|
|
1518
|
-
},
|
|
1518
|
+
}, v9 = /* @__PURE__ */ T({
|
|
1519
1519
|
__name: "QMenu",
|
|
1520
1520
|
props: {
|
|
1521
1521
|
items: {
|
|
@@ -1533,32 +1533,32 @@ const d7 = /* @__PURE__ */ l(s7, [["render", l7], ["__scopeId", "data-v-f4d8a4f4
|
|
|
1533
1533
|
function w(p) {
|
|
1534
1534
|
p.action && p.action(p), p.disabled !== !0 && e("action", p);
|
|
1535
1535
|
}
|
|
1536
|
-
return (p, v) => (n(), s("div",
|
|
1536
|
+
return (p, v) => (n(), s("div", a9, [
|
|
1537
1537
|
(n(!0), s(x1, null, H1(_.items, (f) => (n(), s("div", {
|
|
1538
1538
|
class: W(["menu-item", a(f)]),
|
|
1539
1539
|
key: `menu-item-${f.id}`,
|
|
1540
1540
|
onClick: (x) => w(f)
|
|
1541
1541
|
}, [
|
|
1542
|
-
f.divider ? (n(), s("div",
|
|
1542
|
+
f.divider ? (n(), s("div", h9)) : (n(), s("div", u9, [
|
|
1543
1543
|
f.image ? (n(), s("img", {
|
|
1544
1544
|
key: 0,
|
|
1545
1545
|
class: "menu-image",
|
|
1546
1546
|
src: f.image,
|
|
1547
1547
|
alt: f.title
|
|
1548
|
-
}, null, 8,
|
|
1548
|
+
}, null, 8, C9)) : f.icon ? (n(), Z(t1(f.icon), {
|
|
1549
1549
|
key: 1,
|
|
1550
1550
|
class: "menu-icon mr-1"
|
|
1551
1551
|
})) : U("", !0),
|
|
1552
|
-
o("div",
|
|
1553
|
-
o("div",
|
|
1554
|
-
f.subtitle ? (n(), s("div",
|
|
1552
|
+
o("div", f9, [
|
|
1553
|
+
o("div", w9, O(f.title), 1),
|
|
1554
|
+
f.subtitle ? (n(), s("div", p9, O(f.subtitle), 1)) : U("", !0)
|
|
1555
1555
|
])
|
|
1556
1556
|
]))
|
|
1557
|
-
], 10,
|
|
1557
|
+
], 10, _9))), 128))
|
|
1558
1558
|
]));
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
|
-
const $
|
|
1561
|
+
const $9 = /* @__PURE__ */ l(v9, [["__scopeId", "data-v-f9bd95cd"]]), g9 = (t) => (L1("data-v-f5802762"), t = t(), V1(), t), m9 = ["disabled"], M9 = /* @__PURE__ */ g9(() => /* @__PURE__ */ o("div", { class: "toggle-switch" }, null, -1)), k9 = /* @__PURE__ */ T({
|
|
1562
1562
|
__name: "QSwitch",
|
|
1563
1563
|
props: {
|
|
1564
1564
|
modelValue: {
|
|
@@ -1588,14 +1588,14 @@ const $7 = /* @__PURE__ */ l(v7, [["__scopeId", "data-v-58914771"]]), g7 = (t) =
|
|
|
1588
1588
|
"onUpdate:modelValue": v[0] || (v[0] = (f) => a.value = f),
|
|
1589
1589
|
onChange: w,
|
|
1590
1590
|
disabled: _.disabled
|
|
1591
|
-
}, null, 40,
|
|
1591
|
+
}, null, 40, m9), [
|
|
1592
1592
|
[y1, a.value]
|
|
1593
1593
|
]),
|
|
1594
|
-
|
|
1594
|
+
M9
|
|
1595
1595
|
], 2));
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
|
-
const
|
|
1598
|
+
const x9 = /* @__PURE__ */ l(k9, [["__scopeId", "data-v-f5802762"]]), H9 = ["placeholder"], y9 = ["disabled"], L9 = { clas: "" }, V9 = /* @__PURE__ */ T({
|
|
1599
1599
|
__name: "QTextFieldWithButton",
|
|
1600
1600
|
props: {
|
|
1601
1601
|
type: {
|
|
@@ -1641,7 +1641,7 @@ const x7 = /* @__PURE__ */ l(k7, [["__scopeId", "data-v-f5802762"]]), H7 = ["pla
|
|
|
1641
1641
|
class: "text-field",
|
|
1642
1642
|
placeholder: _.placeholder,
|
|
1643
1643
|
"onUpdate:modelValue": k[0] || (k[0] = (L) => a.value = L)
|
|
1644
|
-
}, null, 8,
|
|
1644
|
+
}, null, 8, H9), [
|
|
1645
1645
|
[i1, a.value]
|
|
1646
1646
|
])
|
|
1647
1647
|
]),
|
|
@@ -1651,13 +1651,13 @@ const x7 = /* @__PURE__ */ l(k7, [["__scopeId", "data-v-f5802762"]]), H7 = ["pla
|
|
|
1651
1651
|
disabled: !w.value,
|
|
1652
1652
|
onClick: x
|
|
1653
1653
|
}, [
|
|
1654
|
-
o("div",
|
|
1655
|
-
], 8,
|
|
1654
|
+
o("div", L9, O(f.value), 1)
|
|
1655
|
+
], 8, y9)
|
|
1656
1656
|
])
|
|
1657
1657
|
], 2));
|
|
1658
1658
|
}
|
|
1659
1659
|
});
|
|
1660
|
-
const
|
|
1660
|
+
const z9 = /* @__PURE__ */ l(V9, [["__scopeId", "data-v-7c4dff0c"]]);
|
|
1661
1661
|
function p1() {
|
|
1662
1662
|
let t = parseInt(sessionStorage.getItem("quailui_global_popup_trigger") || "0") || 0;
|
|
1663
1663
|
sessionStorage.setItem("quailui_global_popup_trigger", t + 1 + ""), window.dispatchEvent(new StorageEvent("storage", {
|
|
@@ -1666,10 +1666,10 @@ function p1() {
|
|
|
1666
1666
|
oldValue: t + ""
|
|
1667
1667
|
}));
|
|
1668
1668
|
}
|
|
1669
|
-
const
|
|
1669
|
+
const I9 = { class: "dropdown-menu" }, b9 = { class: "dropdown-menu-inner narrow-view" }, Q9 = ["onClick"], S9 = {
|
|
1670
1670
|
key: 0,
|
|
1671
1671
|
class: "dropdown-selected"
|
|
1672
|
-
},
|
|
1672
|
+
}, B9 = ["src", "alt"], D9 = /* @__PURE__ */ T({
|
|
1673
1673
|
__name: "QDropdownMenu",
|
|
1674
1674
|
props: {
|
|
1675
1675
|
items: {
|
|
@@ -1718,27 +1718,28 @@ const I7 = { class: "dropdown-menu" }, b7 = { class: "dropdown-menu-inner narrow
|
|
|
1718
1718
|
$.key === "quailui_global_popup_trigger" && $.newValue && (a.value = !1);
|
|
1719
1719
|
});
|
|
1720
1720
|
}), ($, k) => {
|
|
1721
|
-
const L =
|
|
1722
|
-
return n(), s("div",
|
|
1723
|
-
o("div",
|
|
1721
|
+
const L = d1("QIconChevronDown"), N = d1("QMenu");
|
|
1722
|
+
return n(), s("div", I9, [
|
|
1723
|
+
o("div", b9, [
|
|
1724
1724
|
o("div", {
|
|
1725
1725
|
class: W(["dropdown-menu-action", v.value]),
|
|
1726
1726
|
onClick: f1(f, ["stop"])
|
|
1727
1727
|
}, [
|
|
1728
|
-
!t.hideSelected && w.value ? (n(), s("div",
|
|
1728
|
+
!t.hideSelected && w.value ? (n(), s("div", S9, [
|
|
1729
1729
|
w.value.image ? (n(), s("img", {
|
|
1730
1730
|
key: 0,
|
|
1731
1731
|
class: "menu-image",
|
|
1732
1732
|
src: w.value.image,
|
|
1733
1733
|
alt: w.value.title
|
|
1734
|
-
}, null, 8,
|
|
1734
|
+
}, null, 8, B9)) : w.value.icon ? (n(), Z(t1(w.value.icon), {
|
|
1735
1735
|
key: 1,
|
|
1736
1736
|
class: "icon menu-icon"
|
|
1737
1737
|
})) : U("", !0),
|
|
1738
1738
|
z1(" " + O(w.value ? w.value.title : _.placeholder || "Select ..."), 1)
|
|
1739
1739
|
])) : U("", !0),
|
|
1740
|
+
l1($.$slots, "default", {}, void 0, !0),
|
|
1740
1741
|
c1(L, { class: "icon chevron-icon" })
|
|
1741
|
-
], 10,
|
|
1742
|
+
], 10, Q9),
|
|
1742
1743
|
o("div", {
|
|
1743
1744
|
ref_key: "menuWrapper",
|
|
1744
1745
|
ref: p
|
|
@@ -1759,23 +1760,23 @@ const I7 = { class: "dropdown-menu" }, b7 = { class: "dropdown-menu-inner narrow
|
|
|
1759
1760
|
};
|
|
1760
1761
|
}
|
|
1761
1762
|
});
|
|
1762
|
-
const
|
|
1763
|
+
const j9 = /* @__PURE__ */ l(D9, [["__scopeId", "data-v-031a6030"]]), Z9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1763
1764
|
__proto__: null,
|
|
1764
1765
|
QDatetimePicker: q0,
|
|
1765
1766
|
QDialog: J0,
|
|
1766
|
-
QDropdownMenu:
|
|
1767
|
-
QFence:
|
|
1768
|
-
QLoading:
|
|
1769
|
-
QMenu: $
|
|
1770
|
-
QSwitch:
|
|
1771
|
-
QTextFieldWithButton:
|
|
1767
|
+
QDropdownMenu: j9,
|
|
1768
|
+
QFence: o9,
|
|
1769
|
+
QLoading: d9,
|
|
1770
|
+
QMenu: $9,
|
|
1771
|
+
QSwitch: x9,
|
|
1772
|
+
QTextFieldWithButton: z9
|
|
1772
1773
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1773
|
-
const
|
|
1774
|
+
const T9 = {
|
|
1774
1775
|
install(t, e) {
|
|
1775
1776
|
e != null && e.debug && console.log("options", e);
|
|
1776
1777
|
for (const [_, a] of Object.entries(Z0))
|
|
1777
1778
|
e != null && e.debug && console.log("[quail-ui] register icon component", _, a), t.component(_, a);
|
|
1778
|
-
for (const [_, a] of Object.entries(
|
|
1779
|
+
for (const [_, a] of Object.entries(Z9))
|
|
1779
1780
|
e != null && e.debug && console.log("[quail-ui] register cpmmon component", _, a), t.component(_, a);
|
|
1780
1781
|
document.body.addEventListener("click", (_) => {
|
|
1781
1782
|
p1();
|
|
@@ -1783,8 +1784,8 @@ const T7 = {
|
|
|
1783
1784
|
}
|
|
1784
1785
|
};
|
|
1785
1786
|
export {
|
|
1786
|
-
|
|
1787
|
+
Z9 as Common,
|
|
1787
1788
|
Z0 as Icons,
|
|
1788
|
-
|
|
1789
|
+
T9 as QuailUI
|
|
1789
1790
|
};
|
|
1790
1791
|
//# sourceMappingURL=index.js.map
|