quail-ui 0.2.28 → 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 +40 -42
- 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
|
@@ -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: {
|
|
@@ -1857,13 +1857,13 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1857
1857
|
return console.log("validatedCode", a), /^\d{6}$/.test(a);
|
|
1858
1858
|
}), $ = I(() => i.loading ? "Loading..." : i.actionLabel);
|
|
1859
1859
|
E(() => i.modelValue, (a) => {
|
|
1860
|
-
u.value = a;
|
|
1860
|
+
console.log("watch modelValue", a), u.value = a;
|
|
1861
1861
|
});
|
|
1862
1862
|
function M() {
|
|
1863
1863
|
h.value && e("submit", { text: u.value });
|
|
1864
1864
|
}
|
|
1865
1865
|
function x() {
|
|
1866
|
-
e("update:modelValue", u.value);
|
|
1866
|
+
console.log("changed", u.value), e("update:modelValue", u.value);
|
|
1867
1867
|
}
|
|
1868
1868
|
return (a, L) => (n(), s("div", {
|
|
1869
1869
|
class: j(["q-text-field-with-button", C.value])
|
|
@@ -1883,11 +1883,9 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1883
1883
|
class: "q-button button primary",
|
|
1884
1884
|
disabled: !h.value,
|
|
1885
1885
|
onClick: M
|
|
1886
|
-
},
|
|
1887
|
-
o("div", H5, q($.value), 1)
|
|
1888
|
-
], 8, V5)
|
|
1886
|
+
}, q($.value), 9, V5)
|
|
1889
1887
|
]),
|
|
1890
|
-
t.glow !== "" ? (n(), s("div",
|
|
1888
|
+
t.glow !== "" ? (n(), s("div", H5)) : F("", !0)
|
|
1891
1889
|
], 2));
|
|
1892
1890
|
}
|
|
1893
1891
|
});
|
|
@@ -1899,10 +1897,10 @@ function M1() {
|
|
|
1899
1897
|
oldValue: t + ""
|
|
1900
1898
|
}));
|
|
1901
1899
|
}
|
|
1902
|
-
const
|
|
1900
|
+
const z5 = { class: "q-dropdown-menu" }, Q5 = { class: "q-dropdown-menu-inner narrow-view" }, B5 = ["onClick"], I5 = {
|
|
1903
1901
|
key: 0,
|
|
1904
1902
|
class: "q-dropdown-selected"
|
|
1905
|
-
},
|
|
1903
|
+
}, S5 = ["src", "alt"], j5 = { class: "menu-title" }, q5 = /* @__PURE__ */ D({
|
|
1906
1904
|
__name: "QDropdownMenu",
|
|
1907
1905
|
props: {
|
|
1908
1906
|
items: {
|
|
@@ -1952,27 +1950,27 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1952
1950
|
});
|
|
1953
1951
|
}), (a, L) => {
|
|
1954
1952
|
const Q = d1("q-icon-chevron-down"), Z = d1("q-menu");
|
|
1955
|
-
return n(), s("div",
|
|
1956
|
-
o("div",
|
|
1953
|
+
return n(), s("div", z5, [
|
|
1954
|
+
o("div", Q5, [
|
|
1957
1955
|
o("div", {
|
|
1958
1956
|
class: j(["q-dropdown-menu-action", p.value]),
|
|
1959
1957
|
onClick: w1(M, ["stop"])
|
|
1960
1958
|
}, [
|
|
1961
|
-
!t.hideSelected && h.value && !$.value ? (n(), s("div",
|
|
1959
|
+
!t.hideSelected && h.value && !$.value ? (n(), s("div", I5, [
|
|
1962
1960
|
h.value.image ? (n(), s("img", {
|
|
1963
1961
|
key: 0,
|
|
1964
1962
|
class: "menu-image",
|
|
1965
1963
|
src: h.value.image,
|
|
1966
1964
|
alt: h.value.title
|
|
1967
|
-
}, null, 8,
|
|
1965
|
+
}, null, 8, S5)) : h.value.icon ? (n(), P(e1(h.value.icon), {
|
|
1968
1966
|
key: 1,
|
|
1969
1967
|
class: "icon menu-icon"
|
|
1970
1968
|
})) : F("", !0),
|
|
1971
|
-
o("div",
|
|
1969
|
+
o("div", j5, q(h.value ? h.value.title : i.placeholder || "Select ..."), 1)
|
|
1972
1970
|
])) : F("", !0),
|
|
1973
1971
|
l1(a.$slots, "default"),
|
|
1974
1972
|
n1(Q, { class: "icon chevron-icon" })
|
|
1975
|
-
], 10,
|
|
1973
|
+
], 10, B5),
|
|
1976
1974
|
o("div", {
|
|
1977
1975
|
ref_key: "menuWrapper",
|
|
1978
1976
|
ref: v
|
|
@@ -1993,13 +1991,13 @@ const Q5 = { class: "q-dropdown-menu" }, B5 = { class: "q-dropdown-menu-inner na
|
|
|
1993
1991
|
};
|
|
1994
1992
|
}
|
|
1995
1993
|
});
|
|
1996
|
-
const
|
|
1994
|
+
const D5 = { class: "q-pagination" }, Z5 = ["disabled"], O5 = {
|
|
1997
1995
|
key: 0,
|
|
1998
1996
|
class: "q-page-indicators"
|
|
1999
|
-
},
|
|
1997
|
+
}, P5 = { class: "q-page-indicator" }, T5 = ["disabled", "onClick"], Y5 = {
|
|
2000
1998
|
key: 1,
|
|
2001
1999
|
class: "q-page-indicator-simple"
|
|
2002
|
-
},
|
|
2000
|
+
}, A5 = { class: "" }, F5 = ["disabled"], U5 = /* @__PURE__ */ D({
|
|
2003
2001
|
__name: "QPagination",
|
|
2004
2002
|
props: {
|
|
2005
2003
|
modelValue: {
|
|
@@ -2050,24 +2048,24 @@ const Z5 = { class: "q-pagination" }, O5 = ["disabled"], P5 = {
|
|
|
2050
2048
|
function p($, M) {
|
|
2051
2049
|
M.disabled || (C.value = $, e("change:goto", C.value), e("update:modelValue", C.value));
|
|
2052
2050
|
}
|
|
2053
|
-
return ($, M) => (n(), s("div",
|
|
2051
|
+
return ($, M) => (n(), s("div", D5, [
|
|
2054
2052
|
o("button", {
|
|
2055
2053
|
class: "prev q-button button sm outlined icon",
|
|
2056
2054
|
onClick: h,
|
|
2057
2055
|
disabled: !i.hasPrev
|
|
2058
2056
|
}, [
|
|
2059
2057
|
n1(v1, { class: "icon" })
|
|
2060
|
-
], 8,
|
|
2061
|
-
t.totalPage !== 0 ? (n(), s("div",
|
|
2062
|
-
(n(!0), s(g1, null, p1(u.value, (x) => (n(), s("div",
|
|
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, [
|
|
2063
2061
|
o("button", {
|
|
2064
2062
|
class: j(["q-page-indicator q-button button sm plain", x.label === C.value ? "active" : ""]),
|
|
2065
2063
|
disabled: x.disabled,
|
|
2066
2064
|
onClick: (a) => p(x.label, x)
|
|
2067
|
-
}, q(x.label), 11,
|
|
2065
|
+
}, q(x.label), 11, T5)
|
|
2068
2066
|
]))), 256))
|
|
2069
|
-
])) : (n(), s("div",
|
|
2070
|
-
o("div",
|
|
2067
|
+
])) : (n(), s("div", Y5, [
|
|
2068
|
+
o("div", A5, q(t.modelValue), 1)
|
|
2071
2069
|
])),
|
|
2072
2070
|
o("button", {
|
|
2073
2071
|
class: "next q-button button sm outlined icon",
|
|
@@ -2075,13 +2073,13 @@ const Z5 = { class: "q-pagination" }, O5 = ["disabled"], P5 = {
|
|
|
2075
2073
|
disabled: !i.hasNext
|
|
2076
2074
|
}, [
|
|
2077
2075
|
n1($1, { class: "icon" })
|
|
2078
|
-
], 8,
|
|
2076
|
+
], 8, F5)
|
|
2079
2077
|
]));
|
|
2080
2078
|
}
|
|
2081
2079
|
});
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2084
|
-
],
|
|
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({
|
|
2085
2083
|
__name: "QProgress",
|
|
2086
2084
|
props: {
|
|
2087
2085
|
infinite: {
|
|
@@ -2106,34 +2104,34 @@ const W5 = { class: "q-progress-slot" }, N5 = /* @__PURE__ */ o("div", { class:
|
|
|
2106
2104
|
return (C, h) => (n(), s("div", {
|
|
2107
2105
|
class: j(["q-progress", t.color])
|
|
2108
2106
|
}, [
|
|
2109
|
-
o("div",
|
|
2107
|
+
o("div", E5, [
|
|
2110
2108
|
o("div", {
|
|
2111
2109
|
class: j(["q-progress-bar", u.value ? "" : "animated"]),
|
|
2112
2110
|
style: f1({ width: i.value })
|
|
2113
|
-
},
|
|
2111
|
+
}, N5, 6)
|
|
2114
2112
|
])
|
|
2115
2113
|
], 2));
|
|
2116
2114
|
}
|
|
2117
2115
|
});
|
|
2118
|
-
const
|
|
2116
|
+
const R5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2119
2117
|
__proto__: null,
|
|
2120
2118
|
QDatetimePicker: G9,
|
|
2121
2119
|
QDialog: t5,
|
|
2122
|
-
QDropdownMenu:
|
|
2120
|
+
QDropdownMenu: q5,
|
|
2123
2121
|
QFence: r5,
|
|
2124
2122
|
QLoading: _5,
|
|
2125
2123
|
QMenu: $5,
|
|
2126
|
-
QPagination:
|
|
2127
|
-
QProgress:
|
|
2124
|
+
QPagination: U5,
|
|
2125
|
+
QProgress: G5,
|
|
2128
2126
|
QSwitch: k5,
|
|
2129
|
-
QTextFieldWithButton:
|
|
2127
|
+
QTextFieldWithButton: b5
|
|
2130
2128
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2131
|
-
const
|
|
2129
|
+
const K5 = {
|
|
2132
2130
|
install(t, e) {
|
|
2133
2131
|
e != null && e.debug && console.log("options", e);
|
|
2134
2132
|
for (const [i, u] of Object.entries(Y9))
|
|
2135
2133
|
e != null && e.debug && console.log("[quail-ui] register icon component", i, u), t.component(i, u);
|
|
2136
|
-
for (const [i, u] of Object.entries(
|
|
2134
|
+
for (const [i, u] of Object.entries(R5))
|
|
2137
2135
|
e != null && e.debug && console.log("[quail-ui] register common component", i, u), t.component(i, u);
|
|
2138
2136
|
document.body.addEventListener("click", (i) => {
|
|
2139
2137
|
M1();
|
|
@@ -2141,9 +2139,9 @@ const X5 = {
|
|
|
2141
2139
|
}
|
|
2142
2140
|
};
|
|
2143
2141
|
export {
|
|
2144
|
-
|
|
2142
|
+
R5 as Common,
|
|
2145
2143
|
Y9 as Icons,
|
|
2146
|
-
|
|
2147
|
-
|
|
2144
|
+
K5 as QuailUI,
|
|
2145
|
+
K5 as default
|
|
2148
2146
|
};
|
|
2149
2147
|
//# sourceMappingURL=index.js.map
|