@wikicasa-dev/components 1.2.50 → 1.2.51
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/CheckboxGroup.js
CHANGED
|
@@ -20,7 +20,7 @@ const G = (c = "") => !c || !c.trim() ? "" : (c = c.trim(), c.replace(" ", "-").
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
22
22
|
setup(c, { emit: f }) {
|
|
23
|
-
const p = v(), t = c,
|
|
23
|
+
const p = v(), t = c, r = f, s = y({
|
|
24
24
|
checkedValuesObj: {}
|
|
25
25
|
}), l = n(() => {
|
|
26
26
|
for (const e in t.valuesObj) {
|
|
@@ -40,7 +40,7 @@ const G = (c = "") => !c || !c.trim() ? "" : (c = c.trim(), c.replace(" ", "-").
|
|
|
40
40
|
C(
|
|
41
41
|
() => t.reset,
|
|
42
42
|
(e) => {
|
|
43
|
-
e && (i(),
|
|
43
|
+
e && (i(), r("update:modelValue", []), r("resetted"));
|
|
44
44
|
}
|
|
45
45
|
), g(() => {
|
|
46
46
|
for (const e in t.valuesObj) {
|
|
@@ -56,12 +56,12 @@ const G = (c = "") => !c || !c.trim() ? "" : (c = c.trim(), c.replace(" ", "-").
|
|
|
56
56
|
if (t.valuesObj[e.id].reset && e.checked ? i() : l.value && !t.valuesObj[e.id].reset && (s.checkedValuesObj[t.getKey(l.value)].checked = !1), s.checkedValuesObj[e.id].checked = !!e.checked, t.autoCheckResetAll && l.value && d.value === m.value - 1)
|
|
57
57
|
for (const a in s.checkedValuesObj)
|
|
58
58
|
s.checkedValuesObj[a].checked = !!s.checkedValuesObj[a].reset;
|
|
59
|
-
t.autoCheckResetEmpty && l.value && !d.value && (s.checkedValuesObj[t.getKey(l.value)].checked = !0),
|
|
59
|
+
t.autoCheckResetEmpty && l.value && !d.value && (s.checkedValuesObj[t.getKey(l.value)].checked = !0), r(
|
|
60
60
|
"update:modelValue",
|
|
61
61
|
Object.values(s.checkedValuesObj).filter(
|
|
62
62
|
(a) => a.checked
|
|
63
63
|
)
|
|
64
|
-
),
|
|
64
|
+
), r("checkedGroup", p["group-id"] || "");
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
return (e, a) => (u(), b("div", {
|
|
@@ -74,14 +74,14 @@ const G = (c = "") => !c || !c.trim() ? "" : (c = c.trim(), c.replace(" ", "-").
|
|
|
74
74
|
handleChange: k,
|
|
75
75
|
checkboxesData: e.valuesObj
|
|
76
76
|
}, () => [
|
|
77
|
-
e.valuesObj ? (u(!0), b($, { key: 0 }, A(e.valuesObj, (
|
|
78
|
-
id: e.getKey(
|
|
77
|
+
e.valuesObj ? (u(!0), b($, { key: 0 }, A(e.valuesObj, (o, z, j) => (u(), K(E, {
|
|
78
|
+
id: e.getKey(o),
|
|
79
79
|
key: j,
|
|
80
|
-
"data-cy": `checkbox_${w(G)(`${
|
|
81
|
-
label:
|
|
80
|
+
"data-cy": `checkbox_${w(G)(`${o.label}`)}`,
|
|
81
|
+
label: o.label,
|
|
82
82
|
inline: e.formCheckInline,
|
|
83
83
|
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
84
|
-
"model-value": h(
|
|
84
|
+
"model-value": h(o),
|
|
85
85
|
onChange: k
|
|
86
86
|
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : L("", !0)
|
|
87
87
|
])
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_
|
|
|
5
5
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.B6RfqbZ9.js";
|
|
6
6
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.BOLdDTLM.js";
|
|
7
7
|
import { default as B } from "./CheckboxBtn.js";
|
|
8
|
-
import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
8
|
+
import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.Cer4uTE3.js";
|
|
9
9
|
import { default as c } from "./RadioButton.js";
|
|
10
10
|
import { default as b } from "./RadioGroup.js";
|
|
11
11
|
import { _ as A } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.lyHlWiC5.js";
|