@comercti/web-components-hmg 0.8.9 → 0.8.11
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/comerc-style-guide.cjs.js +1 -1
- package/comerc-style-guide.es.js +10 -10
- package/comerc-style-guide.umd.js +1 -1
- package/index.d.ts +11 -11
- package/package.json +1 -1
package/comerc-style-guide.es.js
CHANGED
|
@@ -6072,20 +6072,14 @@ const y0 = { class: "w-full h-full" }, x0 = ["src", "alt"], k0 = {
|
|
|
6072
6072
|
text: {},
|
|
6073
6073
|
disabledSubmit: { type: Boolean, default: !1 },
|
|
6074
6074
|
disabledClear: { type: Boolean, default: !1 },
|
|
6075
|
-
|
|
6075
|
+
showClearButton: { type: Boolean, default: !1 }
|
|
6076
6076
|
},
|
|
6077
6077
|
emits: ["submit", "clear"],
|
|
6078
6078
|
setup(e, { emit: t }) {
|
|
6079
6079
|
const o = M(!1), n = M(null), d = M(!1), c = t, l = e;
|
|
6080
|
-
se()
|
|
6081
|
-
() => l.isOpen,
|
|
6082
|
-
(v) => {
|
|
6083
|
-
o.value = v;
|
|
6084
|
-
},
|
|
6085
|
-
{ immediate: !0 }
|
|
6086
|
-
);
|
|
6080
|
+
se();
|
|
6087
6081
|
function p() {
|
|
6088
|
-
|
|
6082
|
+
o.value = !1, c("submit");
|
|
6089
6083
|
}
|
|
6090
6084
|
function b() {
|
|
6091
6085
|
d.value = !1, c("clear");
|
|
@@ -6096,7 +6090,13 @@ const y0 = { class: "w-full h-full" }, x0 = ["src", "alt"], k0 = {
|
|
|
6096
6090
|
function u(v) {
|
|
6097
6091
|
n.value && !n.value.contains(v.target) && (o.value = !1);
|
|
6098
6092
|
}
|
|
6099
|
-
return
|
|
6093
|
+
return W(
|
|
6094
|
+
() => l.showClearButton,
|
|
6095
|
+
(v) => {
|
|
6096
|
+
d.value = v;
|
|
6097
|
+
},
|
|
6098
|
+
{ immediate: !0 }
|
|
6099
|
+
), le(() => {
|
|
6100
6100
|
document.addEventListener("mousedown", u);
|
|
6101
6101
|
}), Ee(() => {
|
|
6102
6102
|
document.removeEventListener("mousedown", u);
|