@defaultusr/dai-ui 1.1.16 → 1.1.17
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/main.js
CHANGED
|
@@ -676,6 +676,7 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
|
|
|
676
676
|
inheritAttrs: !1,
|
|
677
677
|
__name: "checkbox",
|
|
678
678
|
props: /* @__PURE__ */ M({
|
|
679
|
+
id: {},
|
|
679
680
|
color: { default: "primary" },
|
|
680
681
|
size: { default: "small" },
|
|
681
682
|
validators: {},
|
|
@@ -688,7 +689,7 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
|
|
|
688
689
|
}),
|
|
689
690
|
emits: ["update:modelValue"],
|
|
690
691
|
setup(e) {
|
|
691
|
-
const t = e, o =
|
|
692
|
+
const t = e, o = t.id || q(), l = x(e, "modelValue"), i = L("formElement"), { isValid: r } = T(
|
|
692
693
|
i,
|
|
693
694
|
t.validators,
|
|
694
695
|
t.showValidationError
|
|
@@ -699,9 +700,9 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
|
|
|
699
700
|
O(d("input", $({
|
|
700
701
|
ref_key: "formElement",
|
|
701
702
|
ref: i,
|
|
702
|
-
"onUpdate:modelValue": y[0] || (y[0] = (p) =>
|
|
703
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => l.value = p)
|
|
703
704
|
}, { ...n.$attrs, class: "" }, {
|
|
704
|
-
id: s(
|
|
705
|
+
id: s(o),
|
|
705
706
|
type: "checkbox",
|
|
706
707
|
class: ["dai-checkbox", {
|
|
707
708
|
[`dai-checkbox--${e.color}`]: e.color,
|
|
@@ -710,11 +711,11 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
|
|
|
710
711
|
"dai-checkbox--lg": e.size === "large"
|
|
711
712
|
}]
|
|
712
713
|
}), null, 16, Ke), [
|
|
713
|
-
[be,
|
|
714
|
+
[be, l.value]
|
|
714
715
|
]),
|
|
715
716
|
e.label || n.$slots.default ? (a(), m(F, {
|
|
716
717
|
key: 0,
|
|
717
|
-
for: s(
|
|
718
|
+
for: s(o),
|
|
718
719
|
class: "dai-checkbox-control__label"
|
|
719
720
|
}, {
|
|
720
721
|
default: c(() => [
|