@wikicasa-dev/components 1.9.29 → 1.9.30
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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as y, useAttrs as C, ref as j, computed as i, watch as O, renderSlot as p, createElementVNode as $, normalizeClass as B, openBlock as m, createElementBlock as E, Fragment as
|
|
1
|
+
import { defineComponent as y, useAttrs as C, ref as j, computed as i, watch as O, renderSlot as p, createElementVNode as $, normalizeClass as B, openBlock as m, createElementBlock as E, Fragment as R, renderList as w, createBlock as A, unref as K, createCommentVNode as L } from "vue";
|
|
2
2
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
3
3
|
import { s as G } from "./ObjectUtils.BOUbloeg.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import D from "../CheckboxBtn.js";
|
|
5
|
+
const I = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").toLowerCase()), M = ["id", "data-cy"], q = /* @__PURE__ */ y({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "CheckboxGroup",
|
|
8
8
|
props: {
|
|
@@ -46,9 +46,7 @@ const D = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").
|
|
|
46
46
|
const t = a.valuesObj[s];
|
|
47
47
|
t.checked = !!t.checked, o.value.set(s, t), t.checked && e.push(t);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
initialSelected: e
|
|
51
|
-
}), r("update:modelValue", e);
|
|
49
|
+
r("update:modelValue", e);
|
|
52
50
|
})();
|
|
53
51
|
const c = (e, s) => {
|
|
54
52
|
const t = o.value.get(e);
|
|
@@ -82,10 +80,10 @@ const D = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").
|
|
|
82
80
|
handleChange: d,
|
|
83
81
|
checkboxesData: e.valuesObj
|
|
84
82
|
}, () => [
|
|
85
|
-
e.valuesObj ? (m(!0), E(
|
|
83
|
+
e.valuesObj ? (m(!0), E(R, { key: 0 }, w(e.valuesObj, (t, S, g) => (m(), A(D, {
|
|
86
84
|
id: e.getKey(t),
|
|
87
85
|
key: g,
|
|
88
|
-
"data-cy": `checkbox_${K(
|
|
86
|
+
"data-cy": `checkbox_${K(I)(`${t.label}`)}`,
|
|
89
87
|
label: t.label,
|
|
90
88
|
inline: e.formCheckInline,
|
|
91
89
|
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
@@ -93,7 +91,7 @@ const D = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").
|
|
|
93
91
|
onChange: d
|
|
94
92
|
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : L("", !0)
|
|
95
93
|
])
|
|
96
|
-
], 10,
|
|
94
|
+
], 10, M)
|
|
97
95
|
]);
|
|
98
96
|
}
|
|
99
97
|
});
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_
|
|
|
4
4
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.CR-nWss7.js";
|
|
5
5
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js";
|
|
6
6
|
import { default as d } from "./CheckboxBtn.js";
|
|
7
|
-
import { _ as i } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
7
|
+
import { _ as i } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.D-AjsQLI.js";
|
|
8
8
|
import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js";
|
|
9
9
|
import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.RbxW2M0Y.js";
|
|
10
10
|
import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
|