@wikicasa-dev/components 2.2.9-alpha.66 → 2.2.9-alpha.8
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/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/AccessibleSelect.d.ts +4 -5
- package/dist/UIKit/AccessibleSelect.js +2 -3
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +2 -7
- package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
- package/dist/UIKit/BaseButton.d.ts +8 -14
- package/dist/UIKit/BaseCard.js +3 -1
- package/dist/UIKit/BaseDropDown.d.ts +11 -17
- package/dist/UIKit/BaseFloatingLabel.js +4 -4
- package/dist/UIKit/BaseInput.d.ts +2 -3
- package/dist/UIKit/BaseInput.js +1 -1
- package/dist/UIKit/BaseSnackbar.d.ts +2 -2
- package/dist/UIKit/BaseTextarea.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +7 -14
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -5
- package/dist/UIKit/Radio/RadioButton.d.ts +23 -28
- package/dist/UIKit/Radio/RadioGroup.d.ts +50 -49
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +83 -92
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +160 -158
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +106 -112
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +24 -28
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +105 -102
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +64 -65
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +36 -42
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +17 -18
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +37 -50
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +55 -60
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +14 -16
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +33 -37
- package/dist/types/index.d.ts +0 -3
- package/package.json +7 -8
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +0 -40
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -29
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -16
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/assets/RadioButtonItem.css +0 -1
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +0 -78
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -49
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -45
- /package/dist/assets/{swiper-controller.css → swiper-thumbs.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as
|
|
2
|
-
import {
|
|
3
|
-
import S from "
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent as H, mergeModels as $, useModel as p, useId as I, computed as M, ref as D, watch as h, onMounted as F, onUnmounted as P, createElementBlock as u, openBlock as n, normalizeClass as a, createElementVNode as o, createCommentVNode as r, withModifiers as c, renderSlot as z, unref as b, createBlock as A, createVNode as E, Fragment as V, renderList as N } from "vue";
|
|
2
|
+
import { useKeyboardController as O } from "@wikicasa-dev/vue-composables";
|
|
3
|
+
import { WarningIconRounded as S, ArrowIcon as q } from "@wikicasa-dev/svg-icons";
|
|
4
|
+
const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], R = ["innerHTML"], U = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, W = ["innerHTML"], G = ["data-cy"], J = ["id", "aria-selected", "onClick", "onMouseover"], Q = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, X = ["name", "checked", "onInput"], Y = ["innerHTML"], Z = ["id", "arial-live", "innerHTML"], _ = ["id", "arial-live", "innerHTML"], le = /* @__PURE__ */ H({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
6
|
__name: "AccessibleSelect",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ $({
|
|
8
8
|
label: { default: "" },
|
|
9
9
|
dropdownPosition: { default: "bottom" },
|
|
10
10
|
namespace: {},
|
|
@@ -13,7 +13,6 @@ const q = { class: "uikit-relative uikit-flex uikit-h-[var(--btn-height)] uikit-
|
|
|
13
13
|
feedback: {},
|
|
14
14
|
closeOnBodyPressed: { type: Boolean, default: !0 },
|
|
15
15
|
border: { type: Boolean, default: !0 },
|
|
16
|
-
withFieldset: { type: Boolean, default: !0 },
|
|
17
16
|
fieldsetClasses: {},
|
|
18
17
|
legendClasses: {},
|
|
19
18
|
dropdownClasses: {},
|
|
@@ -29,178 +28,181 @@ const q = { class: "uikit-relative uikit-flex uikit-h-[var(--btn-height)] uikit-
|
|
|
29
28
|
default: () => ({ id: "", label: "" })
|
|
30
29
|
},
|
|
31
30
|
modelModifiers: {},
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
toggleDropdown: { type: Boolean, default: void 0 },
|
|
32
|
+
toggleDropdownModifiers: {}
|
|
34
33
|
}),
|
|
35
|
-
emits: /* @__PURE__ */
|
|
36
|
-
setup(e, { emit:
|
|
37
|
-
const
|
|
38
|
-
|
|
34
|
+
emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
35
|
+
setup(e, { emit: L }) {
|
|
36
|
+
const y = L, k = p(e, "modelValue"), g = p(e, "toggleDropdown"), T = I(), l = M(() => e.namespace || T), t = D(!1), m = M(() => !!k.value.label), { activeIdx: v, selectedIdx: B } = O({
|
|
37
|
+
optionsLength: e.options.length,
|
|
38
|
+
isDropdownOpen: t
|
|
39
|
+
}), w = (i) => {
|
|
40
|
+
t.value = !1, k.value = i;
|
|
39
41
|
};
|
|
40
|
-
|
|
41
|
-
()
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
42
|
+
h(B, (i) => {
|
|
43
|
+
w(e.options[i]), t.value = !1;
|
|
44
|
+
}), h(g, (i) => {
|
|
45
|
+
i && (t.value = !t.value, g.value = !1);
|
|
46
|
+
}), h(t, (i) => {
|
|
47
|
+
y("update:dropdownState", i);
|
|
48
|
+
});
|
|
49
|
+
const C = ({ target: i }) => {
|
|
50
|
+
`${l.value}_btn` !== i.id && (t.value = !1);
|
|
51
|
+
};
|
|
52
|
+
return F(() => {
|
|
53
|
+
e.closeOnBodyPressed && document.addEventListener("click", C);
|
|
54
|
+
}), P(() => {
|
|
55
|
+
e.closeOnBodyPressed && document.removeEventListener("click", C);
|
|
56
|
+
}), (i, s) => (n(), u("div", {
|
|
57
|
+
class: a(i.$attrs.class)
|
|
58
|
+
}, [
|
|
59
|
+
o("div", {
|
|
60
|
+
class: a(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
|
|
61
|
+
}, [
|
|
62
|
+
e.label ? (n(), u("label", {
|
|
63
|
+
key: 0,
|
|
64
|
+
id: `${l.value}_label`,
|
|
65
|
+
class: a(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
66
|
+
m.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
67
|
+
e.labelClasses,
|
|
68
|
+
{ "uikit-left-9": i.$slots.lefticon && !m.value },
|
|
69
|
+
{ "uikit-left-4": !i.$slots.lefticon && !m.value }
|
|
70
|
+
]]),
|
|
71
|
+
innerHTML: e.label
|
|
72
|
+
}, null, 10, j)) : r("", !0),
|
|
73
|
+
i.$slots.lefticon ? (n(), u("span", {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
76
|
+
onClick: s[0] || (s[0] = c((d) => t.value = !t.value, ["stop"]))
|
|
77
|
+
}, [
|
|
78
|
+
z(i.$slots, "lefticon")
|
|
79
|
+
])) : r("", !0),
|
|
80
|
+
o("button", {
|
|
81
|
+
id: `${l.value}_btn`,
|
|
82
|
+
ref: "btnEl",
|
|
83
|
+
type: "button",
|
|
84
|
+
"data-cy": e.dataCy,
|
|
85
|
+
class: a(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
86
|
+
"aria-required": !!i.$attrs.required,
|
|
87
|
+
role: "combobox",
|
|
88
|
+
"aria-haspopup": "listbox",
|
|
89
|
+
"aria-controls": `${l.value}_dropdown`,
|
|
90
|
+
"aria-labelledby": `${l.value}_label ${l.value}_btn`,
|
|
91
|
+
"aria-expanded": t.value,
|
|
92
|
+
"aria-activedescendant": b(v) >= 0 && t.value ? `${l.value}_element_${e.options[b(v)].label}` : "",
|
|
93
|
+
"aria-invalid": e.isValid === !1,
|
|
94
|
+
"aria-describedby": e.isValid === !1 ? `${l.value}_invalid_msg` : void 0,
|
|
95
|
+
onClick: s[1] || (s[1] = (d) => {
|
|
96
|
+
t.value = !t.value, y("click", d);
|
|
97
|
+
})
|
|
98
|
+
}, [
|
|
99
|
+
o("span", {
|
|
100
|
+
class: a(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
101
|
+
innerHTML: k.value.visibleLabel || k.value.label
|
|
102
|
+
}, null, 10, R),
|
|
103
|
+
o("span", U, [
|
|
104
|
+
e.isValid == !1 ? (n(), A(b(S), {
|
|
69
105
|
key: 0,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
106
|
+
class: "uikit-mr-1",
|
|
107
|
+
width: 20,
|
|
108
|
+
height: 20,
|
|
109
|
+
"stroke-color": "#FA4F64"
|
|
110
|
+
})) : r("", !0),
|
|
111
|
+
E(b(q), {
|
|
112
|
+
class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
|
|
113
|
+
t.value ? "uikit-rotate-180" : "",
|
|
114
|
+
e.arrowIcon?.classes
|
|
76
115
|
]]),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
82
|
-
onClick: f((s) => r(), ["stop"])
|
|
83
|
-
}, [
|
|
84
|
-
P(i.$slots, "lefticon")
|
|
85
|
-
], 8, j)) : u("", !0),
|
|
86
|
-
d("button", {
|
|
87
|
-
id: `${t.value}_btn`,
|
|
88
|
-
ref: "btnEl",
|
|
89
|
-
type: "button",
|
|
90
|
-
"data-cy": e.dataCy,
|
|
91
|
-
class: n(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
92
|
-
"aria-required": !!i.$attrs.required,
|
|
93
|
-
role: "combobox",
|
|
94
|
-
"aria-haspopup": "listbox",
|
|
95
|
-
"aria-controls": `${t.value}_dropdown`,
|
|
96
|
-
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
97
|
-
"aria-expanded": b,
|
|
98
|
-
"aria-activedescendant": o >= 0 && b ? `${t.value}_element_${e.options[o].label}` : "",
|
|
99
|
-
"aria-invalid": e.isValid === !1,
|
|
100
|
-
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
101
|
-
onClick: (s) => {
|
|
102
|
-
r(), T("click", s);
|
|
103
|
-
},
|
|
104
|
-
onKeydown: (s) => {
|
|
105
|
-
["Enter", "Space"].includes(s.key) && (s.preventDefault(), s.stopPropagation(), c(o), r());
|
|
106
|
-
}
|
|
107
|
-
}, [
|
|
108
|
-
d("span", {
|
|
109
|
-
class: n(["uikit-pointer-events-none", [e.btnTextClasses, { "uikit-mt-1": e.withFieldset }]]),
|
|
110
|
-
innerHTML: k.value?.visibleLabel || k.value?.label
|
|
111
|
-
}, null, 10, W),
|
|
112
|
-
d("span", {
|
|
113
|
-
class: n(["uikit-pointer-events-none uikit-inline-flex", [{ "uikit-mt-1": e.withFieldset }]])
|
|
114
|
-
}, [
|
|
115
|
-
e.isValid == !1 ? (l(), A(M(E), {
|
|
116
|
-
key: 0,
|
|
117
|
-
class: "uikit-mr-1",
|
|
118
|
-
width: 20,
|
|
119
|
-
height: 20,
|
|
120
|
-
"stroke-color": "#FA4F64"
|
|
121
|
-
})) : u("", !0),
|
|
122
|
-
$(M(R), {
|
|
123
|
-
class: n(["uikit-transition-transform motion-reduce:uikit-transition-none", [b ? "uikit-rotate-180" : "", e.arrowIcon?.classes]]),
|
|
124
|
-
width: e.arrowIcon?.width ?? 18,
|
|
125
|
-
height: e.arrowIcon?.height ?? 18,
|
|
126
|
-
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
127
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
128
|
-
], 2)
|
|
129
|
-
], 42, U),
|
|
130
|
-
e.withFieldset ? (l(), a("fieldset", {
|
|
131
|
-
key: 2,
|
|
132
|
-
"aria-hidden": "true",
|
|
133
|
-
class: n(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
134
|
-
e.fieldsetClasses,
|
|
135
|
-
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
136
|
-
{
|
|
137
|
-
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
138
|
-
},
|
|
139
|
-
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
140
|
-
]])
|
|
141
|
-
}, [
|
|
142
|
-
d("legend", {
|
|
143
|
-
class: n([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
144
|
-
}, [
|
|
145
|
-
e.label ? (l(), a("span", {
|
|
146
|
-
key: 0,
|
|
147
|
-
class: n(["uikit-mx-5px", [
|
|
148
|
-
k.value.label ? "uikit-invisible" : "uikit-hidden"
|
|
149
|
-
]]),
|
|
150
|
-
innerHTML: e.label
|
|
151
|
-
}, null, 10, D)) : u("", !0)
|
|
152
|
-
], 2)
|
|
153
|
-
], 2)) : u("", !0)
|
|
116
|
+
width: e.arrowIcon?.width ?? 18,
|
|
117
|
+
height: e.arrowIcon?.height ?? 18,
|
|
118
|
+
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
119
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
154
120
|
])
|
|
155
|
-
]),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
121
|
+
], 10, K),
|
|
122
|
+
o("fieldset", {
|
|
123
|
+
"aria-hidden": "true",
|
|
124
|
+
class: a(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
125
|
+
e.fieldsetClasses,
|
|
126
|
+
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
127
|
+
{
|
|
128
|
+
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
129
|
+
},
|
|
130
|
+
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
131
|
+
]])
|
|
132
|
+
}, [
|
|
133
|
+
o("legend", {
|
|
134
|
+
class: a([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
135
|
+
}, [
|
|
136
|
+
e.label ? (n(), u("span", {
|
|
137
|
+
key: 0,
|
|
138
|
+
class: a(["uikit-mx-5px", [k.value.label ? "uikit-invisible" : "uikit-hidden"]]),
|
|
139
|
+
innerHTML: e.label
|
|
140
|
+
}, null, 10, W)) : r("", !0)
|
|
141
|
+
], 2)
|
|
142
|
+
], 2),
|
|
143
|
+
o("ul", {
|
|
144
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
145
|
+
role: "listbox",
|
|
146
|
+
tabindex: -1,
|
|
147
|
+
"aria-multiselectable": !1,
|
|
148
|
+
class: a(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
|
|
149
|
+
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !t.value },
|
|
150
|
+
{
|
|
151
|
+
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": t.value
|
|
152
|
+
},
|
|
153
|
+
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
154
|
+
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
155
|
+
e.dropdownClasses
|
|
156
|
+
]]),
|
|
157
|
+
onClick: s[3] || (s[3] = c(() => {
|
|
158
|
+
}, ["stop"]))
|
|
159
|
+
}, [
|
|
160
|
+
(n(!0), u(V, null, N(e.options, (d, f) => (n(), u("li", {
|
|
161
|
+
id: `${l.value}_element_${e.options[f].label}`,
|
|
162
|
+
key: `${d.label}_${f}`,
|
|
160
163
|
role: "option",
|
|
161
|
-
"aria-selected":
|
|
162
|
-
class:
|
|
163
|
-
onClick:
|
|
164
|
-
onMouseover:
|
|
165
|
-
onBlur:
|
|
164
|
+
"aria-selected": b(v) === f,
|
|
165
|
+
class: a(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
166
|
+
onClick: c((x) => w(d), ["stop"]),
|
|
167
|
+
onMouseover: c((x) => v.value = f, ["stop"]),
|
|
168
|
+
onBlur: s[2] || (s[2] = c(() => {
|
|
166
169
|
}, ["stop"]))
|
|
167
170
|
}, [
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
o("label", Q, [
|
|
172
|
+
o("input", {
|
|
170
173
|
tabindex: "-1",
|
|
171
174
|
class: "uikit-m-0 uikit-appearance-none",
|
|
172
|
-
name: `${
|
|
175
|
+
name: `${l.value}_radio`,
|
|
173
176
|
type: "radio",
|
|
174
|
-
checked:
|
|
175
|
-
onInput:
|
|
176
|
-
}, null, 40,
|
|
177
|
-
|
|
178
|
-
innerHTML:
|
|
179
|
-
}, null, 8,
|
|
177
|
+
checked: d.label === k.value.label,
|
|
178
|
+
onInput: c((x) => w(d), ["stop"])
|
|
179
|
+
}, null, 40, X),
|
|
180
|
+
o("span", {
|
|
181
|
+
innerHTML: d.label
|
|
182
|
+
}, null, 8, Y)
|
|
180
183
|
])
|
|
181
|
-
], 42,
|
|
182
|
-
])
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
e.feedback.valid ? (l(), a("span", {
|
|
184
|
+
], 42, J))), 128))
|
|
185
|
+
], 10, G)
|
|
186
|
+
], 2),
|
|
187
|
+
e.feedback ? (n(), u(V, { key: 0 }, [
|
|
188
|
+
e.feedback.valid ? (n(), u("span", {
|
|
187
189
|
key: 0,
|
|
188
|
-
id: `${
|
|
190
|
+
id: `${l.value}_valid_msg`,
|
|
189
191
|
"arial-live": i.$attrs["aria-live"],
|
|
190
192
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
191
193
|
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
192
|
-
}, null, 8,
|
|
193
|
-
e.feedback.invalid ? (
|
|
194
|
+
}, null, 8, Z)) : r("", !0),
|
|
195
|
+
e.feedback.invalid ? (n(), u("span", {
|
|
194
196
|
key: 1,
|
|
195
|
-
id: `${
|
|
197
|
+
id: `${l.value}_invalid_msg`,
|
|
196
198
|
"arial-live": i.$attrs["aria-live"],
|
|
197
199
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
198
200
|
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
199
|
-
}, null, 8,
|
|
200
|
-
], 64)) :
|
|
201
|
-
]));
|
|
201
|
+
}, null, 8, _)) : r("", !0)
|
|
202
|
+
], 64)) : r("", !0)
|
|
203
|
+
], 2));
|
|
202
204
|
}
|
|
203
205
|
});
|
|
204
206
|
export {
|
|
205
|
-
|
|
207
|
+
le as default
|
|
206
208
|
};
|
|
@@ -17,7 +17,10 @@ const b = /* @__PURE__ */ n({
|
|
|
17
17
|
},
|
|
18
18
|
setup(e) {
|
|
19
19
|
const o = c("isActive");
|
|
20
|
-
return (i, v) => (d(), u(t(h), {
|
|
20
|
+
return (i, v) => (d(), u(t(h), {
|
|
21
|
+
value: e.value,
|
|
22
|
+
"data-cy": e.dataCy
|
|
23
|
+
}, {
|
|
21
24
|
default: a(() => [
|
|
22
25
|
s(t(m), {
|
|
23
26
|
as: e.headerTag,
|
|
@@ -29,7 +32,6 @@ const b = /* @__PURE__ */ n({
|
|
|
29
32
|
default: a(() => [
|
|
30
33
|
l(i.$slots, "header-content"),
|
|
31
34
|
s(t(g), {
|
|
32
|
-
"data-cy": e.dataCy,
|
|
33
35
|
class: r([
|
|
34
36
|
e.triggerClasses,
|
|
35
37
|
{
|
|
@@ -52,7 +54,7 @@ const b = /* @__PURE__ */ n({
|
|
|
52
54
|
])
|
|
53
55
|
]),
|
|
54
56
|
_: 3
|
|
55
|
-
}, 8, ["
|
|
57
|
+
}, 8, ["class"])
|
|
56
58
|
]),
|
|
57
59
|
_: 3
|
|
58
60
|
}, 8, ["as", "class"]),
|
|
@@ -69,7 +71,7 @@ const b = /* @__PURE__ */ n({
|
|
|
69
71
|
}, 8, ["class"])
|
|
70
72
|
]),
|
|
71
73
|
_: 3
|
|
72
|
-
}, 8, ["value"]));
|
|
74
|
+
}, 8, ["value", "data-cy"]));
|
|
73
75
|
}
|
|
74
76
|
});
|
|
75
77
|
export {
|