@wikicasa-dev/components 1.9.25 → 1.9.26
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/CheckboxBtn.js +11 -11
- package/dist/assets/CheckboxBtn.css +1 -1
- package/package.json +1 -1
package/dist/CheckboxBtn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as
|
|
1
|
+
import { defineComponent as f, openBlock as n, createElementBlock as s, normalizeClass as l, withModifiers as r, createElementVNode as d, renderSlot as b, toDisplayString as m, createCommentVNode as h } from "vue";
|
|
2
2
|
import { _ as g } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
-
import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "checked", "disabled"], V = ["for"],
|
|
3
|
+
import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "checked", "disabled"], V = ["for"], $ = /* @__PURE__ */ f({
|
|
4
4
|
__name: "CheckboxBtn",
|
|
5
5
|
props: {
|
|
6
6
|
id: {},
|
|
@@ -16,16 +16,16 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["click", "change", "update:modelValue"],
|
|
18
18
|
setup(u, { emit: k }) {
|
|
19
|
-
const i = u, t = k,
|
|
19
|
+
const i = u, t = k, o = () => {
|
|
20
20
|
t("change", {
|
|
21
21
|
id: i.id,
|
|
22
22
|
label: i.label,
|
|
23
23
|
checked: !i.modelValue
|
|
24
24
|
}), t("update:modelValue", !i.modelValue);
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, c = () => {
|
|
26
|
+
o(), i.handleLabelClick && t("click");
|
|
27
27
|
};
|
|
28
|
-
return (e, a) => (
|
|
28
|
+
return (e, a) => (n(), s("div", {
|
|
29
29
|
id: e.containerId,
|
|
30
30
|
class: l(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer", [
|
|
31
31
|
{ "uikit-mr-4 uikit-inline-flex uikit-items-center": e.inline },
|
|
@@ -33,7 +33,7 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
33
33
|
e.$attrs["wrapper-margin-y"],
|
|
34
34
|
e.containerClass
|
|
35
35
|
]]),
|
|
36
|
-
onClick: r(
|
|
36
|
+
onClick: r(c, ["stop"])
|
|
37
37
|
}, [
|
|
38
38
|
d("input", {
|
|
39
39
|
id: `${e.id}`,
|
|
@@ -47,15 +47,15 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
47
47
|
type: "checkbox",
|
|
48
48
|
checked: e.$attrs.checked || e.modelValue,
|
|
49
49
|
disabled: e.$attrs.disabled,
|
|
50
|
-
onChange: a[0] || (a[0] = r((
|
|
51
|
-
onClick: a[1] || (a[1] = r((
|
|
50
|
+
onChange: a[0] || (a[0] = r((p) => o(), ["stop", "prevent"])),
|
|
51
|
+
onClick: a[1] || (a[1] = r((p) => t("click"), ["stop"]))
|
|
52
52
|
}, null, 42, y),
|
|
53
53
|
b(e.$slots, "label", {}, () => [
|
|
54
54
|
d("label", {
|
|
55
55
|
class: l(["uikit-pl-10px uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
|
|
56
56
|
for: `${e.id}`
|
|
57
57
|
}, m(e.label), 11, V),
|
|
58
|
-
e.$attrs.required ? (
|
|
58
|
+
e.$attrs.required ? (n(), s("span", {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: l(["required after:uikit-content-['*']", [
|
|
61
61
|
e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
|
|
@@ -64,7 +64,7 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
64
64
|
], !0)
|
|
65
65
|
], 10, C));
|
|
66
66
|
}
|
|
67
|
-
}), B = /* @__PURE__ */ g(
|
|
67
|
+
}), B = /* @__PURE__ */ g($, [["__scopeId", "data-v-9cc9c8aa"]]);
|
|
68
68
|
export {
|
|
69
69
|
B as default
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.checked-bg[data-v-
|
|
1
|
+
.checked-bg[data-v-9cc9c8aa]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg transform='translate(-307 -2432)'%3E%3Crect width='16' height='16' fill='%232b5dff' data-name='Rettangolo 2689' rx='3' transform='translate(307 2432)'/%3E%3Cpath fill='none' stroke='%23f4f7ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m319.499 2437.499-6 6Zm-9 3 3 3Z' data-name='Unione 5'/%3E%3C/g%3E%3C/svg%3E")}.checked-bg-invalid[data-v-9cc9c8aa]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cg transform='translate(-307 -2432)'%3E%3Crect width='16' height='16' fill='%23FA4F64' data-name='Rettangolo 2689' rx='3' transform='translate(307 2432)'/%3E%3Cpath fill='none' stroke='%23f4f7ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m319.499 2437.499-6 6Zm-9 3 3 3Z' data-name='Unione 5'/%3E%3C/g%3E%3C/svg%3E")}
|