@wikicasa-dev/components 2.2.9-alpha.49 → 2.2.9-alpha.5
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 -4
- package/dist/UIKit/AccessibleSelect.js +2 -3
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +3 -9
- 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/BaseTextarea.d.ts +2 -2
- 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.js +83 -85
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +157 -151
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +103 -124
- 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 +73 -74
- 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 +24 -22
- package/package.json +5 -6
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- /package/dist/assets/{swiper-thumbs.css → swiper-controller.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
1
|
+
import { default as u } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
2
|
+
import { default as i } from "./packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js";
|
|
3
|
+
import { default as n } from "./packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
|
|
4
|
+
import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
5
|
+
import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
|
|
6
|
+
import { default as C } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
|
|
7
|
+
import { default as A } from "./packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
|
|
16
|
-
import { default as V } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
9
|
+
import { default as T } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
|
|
10
|
+
import { default as w } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
|
|
11
|
+
import { default as k } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
|
|
12
|
+
import { default as v } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
|
|
13
|
+
import { default as G } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
|
|
14
|
+
import { default as O } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
15
|
+
import { default as P } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
17
16
|
/* empty css */
|
|
18
|
-
import { default as
|
|
17
|
+
import { default as V } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
19
18
|
/* empty css */
|
|
20
|
-
import { default as
|
|
19
|
+
import { default as q } from "./packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js";
|
|
21
20
|
/* empty css */
|
|
22
|
-
import { default as
|
|
21
|
+
import { default as z } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
|
|
23
22
|
/* empty css */
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
|
|
27
|
-
import { default as X } from "./UIKit/
|
|
28
|
-
import { default as Z } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
|
|
23
|
+
import { default as H } from "./packages/components/lib/UIKit/BaseButton.vue.js";
|
|
24
|
+
import { default as K } from "./UIKit/BaseCard.js";
|
|
25
|
+
import { default as Q } from "./UIKit/BaseComplexToggle.js";
|
|
26
|
+
import { default as X } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
|
|
29
27
|
/* empty css */
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
28
|
+
import { default as Z } from "./UIKit/BaseFloatingLabel.js";
|
|
29
|
+
import { default as $ } from "./UIKit/BaseInput.js";
|
|
30
|
+
import { default as ae } from "./packages/components/lib/UIKit/BasePagination.vue.js";
|
|
31
|
+
import { default as te } from "./UIKit/BaseSlider.js";
|
|
32
|
+
import { default as fe } from "./UIKit/BaseTextarea.js";
|
|
33
|
+
import { default as le } from "./UIKit/BaseToggle.js";
|
|
34
|
+
import { default as me } from "./UIKit/BaseTooltip.js";
|
|
35
|
+
import { default as ue } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
|
|
36
|
+
import { default as ie } from "./packages/components/lib/UIKit/BaseModal.vue.js";
|
|
39
37
|
/* empty css */
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
38
|
+
import { default as ne } from "./UIKit/StaticSpinner.js";
|
|
39
|
+
import { default as Se } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
|
|
40
|
+
import { default as Ce } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
41
|
+
import { default as Ae } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
42
|
+
import { default as Te } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
43
|
+
import { default as we } from "./UIKit/Slider/SimpleSlider.js";
|
|
44
|
+
import { default as ke } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
|
|
47
45
|
/* empty css */
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
46
|
+
import { default as ve } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
47
|
+
import { default as Ge } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
48
|
+
import { default as Oe } from "./components/carousel/SwiperCarousel.js";
|
|
49
|
+
import { default as Pe } from "./components/carousel/SwiperSlide.js";
|
|
50
|
+
import { default as Ve } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
53
51
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
52
|
+
O as AccessibleSelect,
|
|
53
|
+
u as BaseAccordion,
|
|
54
|
+
i as BaseAccordionBtn,
|
|
55
|
+
n as BaseAccordionContent,
|
|
56
|
+
S as BaseAccordionItem,
|
|
57
|
+
P as BaseAlert,
|
|
58
|
+
V as BaseAutocomplete,
|
|
59
|
+
z as BaseBadge,
|
|
60
|
+
Ve as BaseBreadcrumb,
|
|
61
|
+
H as BaseButton,
|
|
62
|
+
K as BaseCard,
|
|
63
|
+
Q as BaseComplexToggle,
|
|
64
|
+
X as BaseDropDown,
|
|
65
|
+
Z as BaseFloatingLabel,
|
|
66
|
+
$ as BaseInput,
|
|
67
|
+
ie as BaseModal,
|
|
68
|
+
ae as BasePagination,
|
|
69
|
+
Se as BaseShimmerLoader,
|
|
70
|
+
te as BaseSlider,
|
|
71
|
+
ke as BaseSnackbar,
|
|
72
|
+
k as BaseTab,
|
|
73
|
+
w as BaseTabView,
|
|
74
|
+
fe as BaseTextarea,
|
|
75
|
+
le as BaseToggle,
|
|
76
|
+
me as BaseTooltip,
|
|
77
|
+
ue as BaseUploadFile,
|
|
78
|
+
A as CheckboxBtn,
|
|
79
|
+
T as CheckboxGroup,
|
|
80
|
+
q as ClearableAutocomplete,
|
|
81
|
+
Ae as DoughnutChart,
|
|
82
|
+
ve as IntersectionObservable,
|
|
83
|
+
Ge as IntersectionObserver,
|
|
84
|
+
Te as LineChart,
|
|
85
|
+
v as RadioButton,
|
|
86
|
+
G as RadioGroup,
|
|
87
|
+
C as SelectItem,
|
|
88
|
+
Ce as ShimmerMultiLine,
|
|
89
|
+
we as SimpleSlider,
|
|
90
|
+
ne as StaticSpinner,
|
|
91
|
+
Oe as SwiperCarousel,
|
|
92
|
+
Pe as SwiperSlide
|
|
95
93
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent 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: {},
|
|
@@ -28,173 +28,179 @@ const q = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" },
|
|
|
28
28
|
default: () => ({ id: "", label: "" })
|
|
29
29
|
},
|
|
30
30
|
modelModifiers: {},
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
toggleDropdown: { type: Boolean, default: void 0 },
|
|
32
|
+
toggleDropdownModifiers: {}
|
|
33
33
|
}),
|
|
34
|
-
emits: /* @__PURE__ */
|
|
35
|
-
setup(e, { emit:
|
|
36
|
-
const
|
|
37
|
-
|
|
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;
|
|
38
41
|
};
|
|
39
|
-
|
|
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
|
-
|
|
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), {
|
|
68
105
|
key: 0,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
75
115
|
]]),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
81
|
-
onClick: f((n) => d(), ["stop"])
|
|
82
|
-
}, [
|
|
83
|
-
P(i.$slots, "lefticon")
|
|
84
|
-
], 8, j)) : r("", !0),
|
|
85
|
-
u("button", {
|
|
86
|
-
id: `${t.value}_btn`,
|
|
87
|
-
ref: "btnEl",
|
|
88
|
-
type: "button",
|
|
89
|
-
"data-cy": e.dataCy,
|
|
90
|
-
class: s(["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]]),
|
|
91
|
-
"aria-required": !!i.$attrs.required,
|
|
92
|
-
role: "combobox",
|
|
93
|
-
"aria-haspopup": "listbox",
|
|
94
|
-
"aria-controls": `${t.value}_dropdown`,
|
|
95
|
-
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
96
|
-
"aria-expanded": b,
|
|
97
|
-
"aria-activedescendant": a >= 0 && b ? `${t.value}_element_${e.options[a].label}` : "",
|
|
98
|
-
"aria-invalid": e.isValid === !1,
|
|
99
|
-
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
100
|
-
onClick: (n) => {
|
|
101
|
-
d(), T("click", n);
|
|
102
|
-
},
|
|
103
|
-
onKeydown: (n) => {
|
|
104
|
-
["Enter", "Space"].includes(n.key) && (n.preventDefault(), n.stopPropagation(), c(a), d());
|
|
105
|
-
}
|
|
106
|
-
}, [
|
|
107
|
-
u("span", {
|
|
108
|
-
class: s(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
109
|
-
innerHTML: k.value?.visibleLabel || k.value?.label
|
|
110
|
-
}, null, 10, W),
|
|
111
|
-
u("span", D, [
|
|
112
|
-
e.isValid == !1 ? (l(), A(M(E), {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "uikit-mr-1",
|
|
115
|
-
width: 20,
|
|
116
|
-
height: 20,
|
|
117
|
-
"stroke-color": "#FA4F64"
|
|
118
|
-
})) : r("", !0),
|
|
119
|
-
$(M(R), {
|
|
120
|
-
class: s(["uikit-transition-transform motion-reduce:uikit-transition-none", [b ? "uikit-rotate-180" : "", e.arrowIcon?.classes]]),
|
|
121
|
-
width: e.arrowIcon?.width ?? 18,
|
|
122
|
-
height: e.arrowIcon?.height ?? 18,
|
|
123
|
-
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
124
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
125
|
-
])
|
|
126
|
-
], 42, U),
|
|
127
|
-
u("fieldset", {
|
|
128
|
-
"aria-hidden": "true",
|
|
129
|
-
class: s(["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", [
|
|
130
|
-
e.fieldsetClasses,
|
|
131
|
-
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
132
|
-
{
|
|
133
|
-
"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
|
|
134
|
-
},
|
|
135
|
-
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
136
|
-
]])
|
|
137
|
-
}, [
|
|
138
|
-
u("legend", {
|
|
139
|
-
class: s([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
140
|
-
}, [
|
|
141
|
-
e.label ? (l(), o("span", {
|
|
142
|
-
key: 0,
|
|
143
|
-
class: s(["uikit-mx-5px", [
|
|
144
|
-
k.value.label ? "uikit-invisible" : "uikit-hidden"
|
|
145
|
-
]]),
|
|
146
|
-
innerHTML: e.label
|
|
147
|
-
}, null, 10, G)) : r("", !0)
|
|
148
|
-
], 2)
|
|
149
|
-
], 2)
|
|
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"])
|
|
150
120
|
])
|
|
151
|
-
]),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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}`,
|
|
156
163
|
role: "option",
|
|
157
|
-
"aria-selected":
|
|
158
|
-
class:
|
|
159
|
-
onClick:
|
|
160
|
-
onMouseover:
|
|
161
|
-
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(() => {
|
|
162
169
|
}, ["stop"]))
|
|
163
170
|
}, [
|
|
164
|
-
|
|
165
|
-
|
|
171
|
+
o("label", Q, [
|
|
172
|
+
o("input", {
|
|
166
173
|
tabindex: "-1",
|
|
167
174
|
class: "uikit-m-0 uikit-appearance-none",
|
|
168
|
-
name: `${
|
|
175
|
+
name: `${l.value}_radio`,
|
|
169
176
|
type: "radio",
|
|
170
|
-
checked:
|
|
171
|
-
onInput:
|
|
172
|
-
}, null, 40,
|
|
173
|
-
|
|
174
|
-
innerHTML:
|
|
175
|
-
}, 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)
|
|
176
183
|
])
|
|
177
184
|
], 42, J))), 128))
|
|
178
|
-
])
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
e.feedback.valid ? (l(), o("span", {
|
|
185
|
+
], 10, G)
|
|
186
|
+
], 2),
|
|
187
|
+
e.feedback ? (n(), u(V, { key: 0 }, [
|
|
188
|
+
e.feedback.valid ? (n(), u("span", {
|
|
183
189
|
key: 0,
|
|
184
|
-
id: `${
|
|
190
|
+
id: `${l.value}_valid_msg`,
|
|
185
191
|
"arial-live": i.$attrs["aria-live"],
|
|
186
192
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
187
193
|
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
188
|
-
}, null, 8,
|
|
189
|
-
e.feedback.invalid ? (
|
|
194
|
+
}, null, 8, Z)) : r("", !0),
|
|
195
|
+
e.feedback.invalid ? (n(), u("span", {
|
|
190
196
|
key: 1,
|
|
191
|
-
id: `${
|
|
197
|
+
id: `${l.value}_invalid_msg`,
|
|
192
198
|
"arial-live": i.$attrs["aria-live"],
|
|
193
199
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
194
200
|
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
195
|
-
}, null, 8,
|
|
201
|
+
}, null, 8, _)) : r("", !0)
|
|
196
202
|
], 64)) : r("", !0)
|
|
197
|
-
]));
|
|
203
|
+
], 2));
|
|
198
204
|
}
|
|
199
205
|
});
|
|
200
206
|
export {
|
|
@@ -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 {
|