@wikicasa-dev/components 2.0.23 → 2.0.24
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 +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.C1NwpE7V.js} +10 -10
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js → RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js} +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/CheckboxGroup.js
CHANGED
package/dist/RadioGroup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as v, ref as x, computed as
|
|
1
|
+
import { defineComponent as v, ref as x, computed as i, watch as D, renderSlot as m, createElementVNode as E, normalizeClass as $, openBlock as b, createElementBlock as B, Fragment as I, renderList as R, createBlock as A, unref as K, createCommentVNode as L } from "vue";
|
|
2
2
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
3
3
|
import V from "../CheckboxBtn.js";
|
|
4
|
-
const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(), a.replace(" ", "-").toLowerCase()),
|
|
4
|
+
const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(), a.replace(" ", "-").toLowerCase()), M = ["id", "data-cy"], z = /* @__PURE__ */ v({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "CheckboxGroup",
|
|
7
7
|
props: {
|
|
@@ -22,11 +22,11 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
24
24
|
setup(a, { emit: g }) {
|
|
25
|
-
const o = a, s = g, l = x(/* @__PURE__ */ new Map()), r =
|
|
25
|
+
const o = a, s = g, l = x(/* @__PURE__ */ new Map()), r = i(() => {
|
|
26
26
|
for (const e of o.checkboxData)
|
|
27
27
|
if (e.reset) return e;
|
|
28
28
|
return null;
|
|
29
|
-
}), C =
|
|
29
|
+
}), C = i(() => o.checkboxData.length), f = i(() => {
|
|
30
30
|
let e = 0;
|
|
31
31
|
return l.value.forEach((t) => {
|
|
32
32
|
t.checked && e++;
|
|
@@ -39,7 +39,7 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
39
39
|
`${t.id}`,
|
|
40
40
|
t
|
|
41
41
|
), t.checked && e.push(t);
|
|
42
|
-
|
|
42
|
+
s("update:modelValue", e);
|
|
43
43
|
})();
|
|
44
44
|
const u = (e, t) => {
|
|
45
45
|
const c = l.value.get(e);
|
|
@@ -56,7 +56,7 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
56
56
|
});
|
|
57
57
|
}, p = () => {
|
|
58
58
|
k(), s("update:modelValue", []), s("resetted");
|
|
59
|
-
}, d = (e) => l.value.get(o.getKey(e))?.checked ?? !1,
|
|
59
|
+
}, d = (e) => l.value.get(o.getKey(e))?.checked ?? !1, h = (e) => {
|
|
60
60
|
if (w(o.checkboxData)) return;
|
|
61
61
|
const t = l.value.get(e.id);
|
|
62
62
|
t?.reset && e.checked ? k() : r.value && !t?.reset && u(o.getKey(r.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && r.value && f.value === C.value - 1 && l.value.forEach((n) => {
|
|
@@ -74,7 +74,7 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
74
74
|
}
|
|
75
75
|
), (e, t) => m(e.$slots, "default", {
|
|
76
76
|
isActive: d,
|
|
77
|
-
handleChange:
|
|
77
|
+
handleChange: h,
|
|
78
78
|
checkboxesData: e.checkboxData
|
|
79
79
|
}, () => [
|
|
80
80
|
E("div", {
|
|
@@ -84,7 +84,7 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
84
84
|
}, [
|
|
85
85
|
m(e.$slots, "checkbox_elements", {
|
|
86
86
|
isActive: d,
|
|
87
|
-
handleChange:
|
|
87
|
+
handleChange: h,
|
|
88
88
|
checkboxesData: e.checkboxData,
|
|
89
89
|
reset: p
|
|
90
90
|
}, () => [
|
|
@@ -99,10 +99,10 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
99
99
|
e.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px",
|
|
100
100
|
e.checkboxContainerClasses
|
|
101
101
|
],
|
|
102
|
-
onChange:
|
|
102
|
+
onChange: h
|
|
103
103
|
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : L("", !0)
|
|
104
104
|
])
|
|
105
|
-
], 10,
|
|
105
|
+
], 10, M)
|
|
106
106
|
]);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as d, useModel as C, ref as h, watch as $, renderSlot as u, createElementVNode as V, normalizeClass as c, openBlock as m, createElementBlock as
|
|
1
|
+
import { defineComponent as p, mergeModels as d, useModel as C, ref as h, watch as $, renderSlot as u, createElementVNode as V, normalizeClass as c, openBlock as m, createElementBlock as k, Fragment as R, renderList as g, createBlock as y } from "vue";
|
|
2
2
|
import { _ } from "./RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js";
|
|
3
|
-
const b = ["data-cy"],
|
|
3
|
+
const b = ["data-cy"], w = /* @__PURE__ */ p({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "RadioGroup",
|
|
6
6
|
props: /* @__PURE__ */ d({
|
|
@@ -27,7 +27,7 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
})(), $(n, (e) => {
|
|
30
|
-
|
|
30
|
+
e && t();
|
|
31
31
|
}), (e, M) => u(e.$slots, "default", {
|
|
32
32
|
handleClick: l,
|
|
33
33
|
activeValue: a.value,
|
|
@@ -44,7 +44,7 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
44
44
|
reset: t,
|
|
45
45
|
isActive: r
|
|
46
46
|
}, () => [
|
|
47
|
-
(m(!0), R
|
|
47
|
+
(m(!0), k(R, null, g(e.radioValues, (s, v) => (m(), y(_, {
|
|
48
48
|
id: s.id,
|
|
49
49
|
key: v,
|
|
50
50
|
class: c(e.radioContainerClasses),
|
|
@@ -58,5 +58,5 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
w as _
|
|
62
62
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@ 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.Caagpb9M.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 u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
7
|
+
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C1NwpE7V.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.Ar2KNVYH.js";
|
|
10
10
|
import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js";
|
|
11
|
-
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.
|
|
11
|
+
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js";
|
|
12
12
|
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.ClV6kObA.js";
|
|
13
13
|
import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
|
|
14
14
|
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CCR6X0si.js";
|