@wikicasa-dev/components 2.0.4 → 2.0.5-0.alpha-0
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/AccessibleSelect.js +1 -1
- package/dist/BaseAccordion.js +1 -1
- package/dist/BaseAccordionBtn.js +1 -1
- package/dist/BaseAccordionContent.js +1 -1
- package/dist/BaseAccordionItem.js +1 -1
- package/dist/BaseAlert.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseBadge.js +1 -1
- package/dist/BaseBreadcrumb.js +1 -1
- package/dist/BaseButton.js +1 -1
- package/dist/BaseCard.js +16 -16
- package/dist/BaseComplexToggle.js +4 -4
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseFloatingLabel.js +21 -19
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +106 -100
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BasePaper.js +2 -2
- package/dist/BaseShimmerLoader.js +2 -2
- package/dist/BaseSlider.js +173 -222
- package/dist/BaseSnackbar.js +3 -3
- package/dist/BaseTabList.js +1 -1
- package/dist/BaseTabPanel.js +1 -1
- package/dist/BaseTabView.js +1 -1
- package/dist/BaseTextarea.js +16 -15
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +10 -6
- package/dist/CheckboxGroup.js +1 -1
- package/dist/DoughnutChart.js +1 -1
- package/dist/IntersectionObservable.js +1 -1
- package/dist/IntersectionObserver.js +1 -1
- package/dist/LineChart.js +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/SelectItem.js +1 -1
- package/dist/ShimmerMultiLine.js +1 -1
- package/dist/SimpleSlider.js +83 -0
- package/dist/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +1 -1
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +49 -103
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
- package/dist/UIKit/BaseAlert.vue.d.ts +8 -8
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +39 -198
- package/dist/UIKit/BaseBadge.vue.d.ts +7 -7
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
- package/dist/UIKit/BaseButton.vue.d.ts +17 -30
- package/dist/UIKit/BaseCard.vue.d.ts +14 -23
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
- package/dist/UIKit/BaseDropDown.vue.d.ts +39 -40
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +8 -13
- package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
- package/dist/UIKit/BaseInput.vue.d.ts +20 -20
- package/dist/UIKit/BaseModal.vue.d.ts +35 -60
- package/dist/UIKit/BasePagination.vue.d.ts +7 -14
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
- package/dist/UIKit/BaseSlider.vue.d.ts +20 -175
- package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
- package/dist/UIKit/BaseTextarea.vue.d.ts +9 -10
- package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
- package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
- package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +19 -0
- package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +8 -9
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +11 -8
- package/dist/UIKit/types.d.ts +4 -1
- package/dist/assets/BaseAlert.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/BaseSlider.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/BaseTooltip.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/SimpleSlider.css +1 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +3 -5
- package/dist/chart/LineChart.vue.d.ts +16 -6
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js +246 -0
- package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js} +89 -84
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +18 -18
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js → BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js} +59 -46
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js +151 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js +164 -0
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CpIiJy6I.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +3 -3
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +105 -0
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js} +37 -37
- package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +42 -0
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
- package/dist/chunks/SwiperCarousel.ZIrIp4kV.js +744 -0
- package/dist/chunks/{index.D6IWh9UY.js → index.D3A-yNFt.js} +9 -7
- package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
- package/dist/chunks/{types-B0dZ7OiV.D29wNgoj.js → useBreakpoints.BXk8Xcw3.js} +2854 -874
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +9 -9
- package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +35 -33
- package/dist/useChartjsModules.js +1 -1
- package/package.json +30 -28
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +0 -231
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js +0 -142
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js +0 -163
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGeL_YSc.js +0 -95
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +0 -37
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +0 -718
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { h as m, defineComponent as D, mergeModels as L, useModel as V, useId as z, computed as T, ref as B, watch as g, onMounted as E, onUnmounted as P, createElementBlock as n, openBlock as o, normalizeClass as a, createElementVNode as s, createCommentVNode as k, withModifiers as p, renderSlot as N, unref as b, createBlock as O, createVNode as S, Fragment as H, renderList as q } from "vue";
|
|
2
|
+
import { A as j } from "./useBreakpoints.BXk8Xcw3.js";
|
|
3
|
+
import { a as U } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
+
import { e as G } from "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
+
const J = (t, { attrs: w }) => {
|
|
6
|
+
t = { ...G(), ...t };
|
|
7
|
+
const { width: c, height: r } = t;
|
|
8
|
+
return m(
|
|
9
|
+
"svg",
|
|
10
|
+
{
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 11.175 13.409",
|
|
13
|
+
width: `${c}`,
|
|
14
|
+
height: `${r}`,
|
|
15
|
+
class: t.class ?? "",
|
|
16
|
+
"aria-hidden": w["aria-hidden"] ?? "true",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: t["stroke-color"] ?? "#FA4F64"
|
|
19
|
+
},
|
|
20
|
+
[
|
|
21
|
+
m("circle", {
|
|
22
|
+
cx: 6,
|
|
23
|
+
cy: 6,
|
|
24
|
+
r: 4.5
|
|
25
|
+
}),
|
|
26
|
+
m("path", {
|
|
27
|
+
"stroke-linejoin": "round",
|
|
28
|
+
d: "M5.8 3.6h.4L6 6.5z"
|
|
29
|
+
}),
|
|
30
|
+
m("circle", {
|
|
31
|
+
cx: 6,
|
|
32
|
+
cy: 8.2,
|
|
33
|
+
r: 0.6,
|
|
34
|
+
fill: t["stroke-color"] ?? "#FA4F64",
|
|
35
|
+
stroke: "none"
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
);
|
|
39
|
+
}, K = ["id", "innerHTML"], Q = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], R = ["innerHTML"], W = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, X = ["innerHTML"], Y = ["data-cy"], Z = ["id", "aria-selected", "onClick", "onMouseover"], x = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, _ = ["name", "checked", "onInput"], ee = ["innerHTML"], ie = ["id", "arial-live", "innerHTML"], te = ["id", "arial-live", "innerHTML"], ne = /* @__PURE__ */ D({
|
|
40
|
+
inheritAttrs: !1,
|
|
41
|
+
__name: "AccessibleSelect",
|
|
42
|
+
props: /* @__PURE__ */ L({
|
|
43
|
+
label: { default: "" },
|
|
44
|
+
dropdownPosition: { default: "bottom" },
|
|
45
|
+
namespace: {},
|
|
46
|
+
options: {},
|
|
47
|
+
isValid: { type: [Boolean, null], default: null },
|
|
48
|
+
feedback: {},
|
|
49
|
+
closeOnBodyPressed: { type: Boolean, default: !0 },
|
|
50
|
+
border: { type: Boolean, default: !0 },
|
|
51
|
+
fieldsetClasses: {},
|
|
52
|
+
legendClasses: {},
|
|
53
|
+
dropdownClasses: {},
|
|
54
|
+
labelClasses: {},
|
|
55
|
+
btnClasses: {},
|
|
56
|
+
dropdownItemClasses: {},
|
|
57
|
+
btnTextClasses: {},
|
|
58
|
+
arrowIcon: {},
|
|
59
|
+
dataCy: {},
|
|
60
|
+
wrapperClasses: {}
|
|
61
|
+
}, {
|
|
62
|
+
modelValue: {
|
|
63
|
+
default: () => ({ id: "", label: "" })
|
|
64
|
+
},
|
|
65
|
+
modelModifiers: {},
|
|
66
|
+
toggleDropdown: {
|
|
67
|
+
default: void 0
|
|
68
|
+
},
|
|
69
|
+
toggleDropdownModifiers: {}
|
|
70
|
+
}),
|
|
71
|
+
emits: /* @__PURE__ */ L(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
72
|
+
setup(t, { emit: w }) {
|
|
73
|
+
const c = w, r = V(t, "modelValue"), C = V(t, "toggleDropdown"), F = z(), l = T(() => t.namespace || F), i = B(!1), I = B(null), h = T(() => !!r.value.label), { activeIdx: v, selectedIdx: A } = j({
|
|
74
|
+
optionsLength: t.options.length,
|
|
75
|
+
isDropdownOpen: i
|
|
76
|
+
}), y = (e) => {
|
|
77
|
+
i.value = !1, r.value = e;
|
|
78
|
+
};
|
|
79
|
+
g(A, (e) => {
|
|
80
|
+
y(t.options[e]), i.value = !1;
|
|
81
|
+
}), g(C, (e) => {
|
|
82
|
+
e && (i.value = !i.value, C.value = !1);
|
|
83
|
+
}), g(i, (e) => {
|
|
84
|
+
c("update:dropdownState", e);
|
|
85
|
+
});
|
|
86
|
+
const $ = ({ target: e }) => {
|
|
87
|
+
`${l.value}_btn` !== e.id && (i.value = !1);
|
|
88
|
+
};
|
|
89
|
+
return E(() => {
|
|
90
|
+
t.closeOnBodyPressed && document.addEventListener("click", $);
|
|
91
|
+
}), P(() => {
|
|
92
|
+
t.closeOnBodyPressed && document.removeEventListener("click", $);
|
|
93
|
+
}), (e, u) => (o(), n("div", {
|
|
94
|
+
class: a(e.$attrs.class)
|
|
95
|
+
}, [
|
|
96
|
+
s("div", {
|
|
97
|
+
class: a(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
|
|
98
|
+
}, [
|
|
99
|
+
e.label ? (o(), n("label", {
|
|
100
|
+
key: 0,
|
|
101
|
+
id: `${l.value}_label`,
|
|
102
|
+
class: a(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
103
|
+
h.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
104
|
+
e.labelClasses,
|
|
105
|
+
{ "uikit-left-9": e.$slots.lefticon && !h.value },
|
|
106
|
+
{ "uikit-left-4": !e.$slots.lefticon && !h.value }
|
|
107
|
+
]]),
|
|
108
|
+
innerHTML: e.label
|
|
109
|
+
}, null, 10, K)) : k("", !0),
|
|
110
|
+
e.$slots.lefticon ? (o(), n("span", {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
113
|
+
onClick: u[0] || (u[0] = p((d) => i.value = !i.value, ["stop"]))
|
|
114
|
+
}, [
|
|
115
|
+
N(e.$slots, "lefticon")
|
|
116
|
+
])) : k("", !0),
|
|
117
|
+
s("button", {
|
|
118
|
+
id: `${l.value}_btn`,
|
|
119
|
+
ref_key: "btnEl",
|
|
120
|
+
ref: I,
|
|
121
|
+
type: "button",
|
|
122
|
+
"data-cy": e.dataCy,
|
|
123
|
+
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", [e.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
124
|
+
"aria-required": !!e.$attrs.required,
|
|
125
|
+
role: "combobox",
|
|
126
|
+
"aria-haspopup": "listbox",
|
|
127
|
+
"aria-controls": `${l.value}_dropdown`,
|
|
128
|
+
"aria-labelledby": `${l.value}_label ${l.value}_btn`,
|
|
129
|
+
"aria-expanded": i.value,
|
|
130
|
+
"aria-activedescendant": b(v) >= 0 && i.value ? `${l.value}_element_${e.options[b(v)].label}` : "",
|
|
131
|
+
"aria-invalid": e.isValid === !1,
|
|
132
|
+
"aria-describedby": e.isValid === !1 ? `${l.value}_invalid_msg` : void 0,
|
|
133
|
+
onClick: u[1] || (u[1] = (d) => {
|
|
134
|
+
i.value = !i.value, c("click", d);
|
|
135
|
+
})
|
|
136
|
+
}, [
|
|
137
|
+
s("span", {
|
|
138
|
+
class: a(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
139
|
+
innerHTML: r.value.visibleLabel || r.value.label
|
|
140
|
+
}, null, 10, R),
|
|
141
|
+
s("span", W, [
|
|
142
|
+
e.isValid == !1 ? (o(), O(b(J), {
|
|
143
|
+
key: 0,
|
|
144
|
+
class: "uikit-mr-1",
|
|
145
|
+
width: 20,
|
|
146
|
+
height: 20,
|
|
147
|
+
"stroke-color": "#FA4F64"
|
|
148
|
+
})) : k("", !0),
|
|
149
|
+
S(b(U), {
|
|
150
|
+
class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
|
|
151
|
+
i.value ? "uikit-rotate-180" : "",
|
|
152
|
+
e.arrowIcon?.classes
|
|
153
|
+
]]),
|
|
154
|
+
width: e.arrowIcon?.width ?? 18,
|
|
155
|
+
height: e.arrowIcon?.height ?? 18,
|
|
156
|
+
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
157
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
158
|
+
])
|
|
159
|
+
], 10, Q),
|
|
160
|
+
s("fieldset", {
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
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", [
|
|
163
|
+
e.fieldsetClasses,
|
|
164
|
+
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
165
|
+
{
|
|
166
|
+
"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
|
|
167
|
+
},
|
|
168
|
+
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
169
|
+
]])
|
|
170
|
+
}, [
|
|
171
|
+
s("legend", {
|
|
172
|
+
class: a([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
173
|
+
}, [
|
|
174
|
+
e.label ? (o(), n("span", {
|
|
175
|
+
key: 0,
|
|
176
|
+
class: a(["uikit-mx-5px", [r.value.label ? "uikit-invisible" : "uikit-hidden"]]),
|
|
177
|
+
innerHTML: e.label
|
|
178
|
+
}, null, 10, X)) : k("", !0)
|
|
179
|
+
], 2)
|
|
180
|
+
], 2),
|
|
181
|
+
s("ul", {
|
|
182
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
183
|
+
role: "listbox",
|
|
184
|
+
tabindex: -1,
|
|
185
|
+
"aria-multiselectable": !1,
|
|
186
|
+
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", [
|
|
187
|
+
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
|
|
188
|
+
{
|
|
189
|
+
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
|
|
190
|
+
},
|
|
191
|
+
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
192
|
+
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
193
|
+
e.dropdownClasses
|
|
194
|
+
]]),
|
|
195
|
+
onClick: u[3] || (u[3] = p(() => {
|
|
196
|
+
}, ["stop"]))
|
|
197
|
+
}, [
|
|
198
|
+
(o(!0), n(H, null, q(e.options, (d, f) => (o(), n("li", {
|
|
199
|
+
id: `${l.value}_element_${e.options[f].label}`,
|
|
200
|
+
key: `${d.label}_${f}`,
|
|
201
|
+
role: "option",
|
|
202
|
+
"aria-selected": b(v) === f,
|
|
203
|
+
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]),
|
|
204
|
+
onClick: p((M) => y(d), ["stop"]),
|
|
205
|
+
onMouseover: p((M) => v.value = f, ["stop"]),
|
|
206
|
+
onBlur: u[2] || (u[2] = p(() => {
|
|
207
|
+
}, ["stop"]))
|
|
208
|
+
}, [
|
|
209
|
+
s("label", x, [
|
|
210
|
+
s("input", {
|
|
211
|
+
tabindex: "-1",
|
|
212
|
+
class: "uikit-m-0 uikit-appearance-none",
|
|
213
|
+
name: `${l.value}_radio`,
|
|
214
|
+
type: "radio",
|
|
215
|
+
checked: d.label === r.value.label,
|
|
216
|
+
onInput: p((M) => y(d), ["stop"])
|
|
217
|
+
}, null, 40, _),
|
|
218
|
+
s("span", {
|
|
219
|
+
innerHTML: d.label
|
|
220
|
+
}, null, 8, ee)
|
|
221
|
+
])
|
|
222
|
+
], 42, Z))), 128))
|
|
223
|
+
], 10, Y)
|
|
224
|
+
], 2),
|
|
225
|
+
e.feedback ? (o(), n(H, { key: 0 }, [
|
|
226
|
+
e.feedback.valid ? (o(), n("span", {
|
|
227
|
+
key: 0,
|
|
228
|
+
id: `${l.value}_valid_msg`,
|
|
229
|
+
"arial-live": e.$attrs["aria-live"],
|
|
230
|
+
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
231
|
+
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
232
|
+
}, null, 8, ie)) : k("", !0),
|
|
233
|
+
e.feedback.invalid ? (o(), n("span", {
|
|
234
|
+
key: 1,
|
|
235
|
+
id: `${l.value}_invalid_msg`,
|
|
236
|
+
"arial-live": e.$attrs["aria-live"],
|
|
237
|
+
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
238
|
+
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
239
|
+
}, null, 8, te)) : k("", !0)
|
|
240
|
+
], 64)) : k("", !0)
|
|
241
|
+
], 2));
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
export {
|
|
245
|
+
ne as _
|
|
246
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, ref as u, provide as c, renderSlot as f } from "vue";
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
2
|
+
import "./polyline.DjpLdMaW.js";
|
|
3
|
+
import { u as p } from "./ObjectUtils.DwkJjVq1.js";
|
|
4
4
|
const k = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseAccordion",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as s,
|
|
2
|
-
import { a as m } from "./ArrowIcon.
|
|
3
|
-
import "./PharmacyIcon.
|
|
1
|
+
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as i, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
+
import { a as m } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
3
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
4
4
|
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -15,7 +15,7 @@ const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s(
|
|
|
15
15
|
emits: ["click"],
|
|
16
16
|
setup(C, { emit: n }) {
|
|
17
17
|
const r = n;
|
|
18
|
-
return (o, t) => (
|
|
18
|
+
return (o, t) => (d(), l("div", {
|
|
19
19
|
id: `${o.id}`,
|
|
20
20
|
class: e(["uikit-flex uikit-items-center uikit-justify-around", [
|
|
21
21
|
o.$attrs["btn-wrapper-classes"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createElementBlock as a, openBlock as s, normalizeClass as o, renderSlot as e, createElementVNode as r } from "vue";
|
|
2
2
|
const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
|
|
3
3
|
__name: "BaseAccordionContent",
|
|
4
4
|
props: {
|
|
@@ -9,7 +9,7 @@ const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
|
|
|
9
9
|
accordionContentClasses: {}
|
|
10
10
|
},
|
|
11
11
|
setup(d) {
|
|
12
|
-
return (i, c) => (
|
|
12
|
+
return (i, c) => (s(), a("div", {
|
|
13
13
|
id: `accordion-text-${i.id}`,
|
|
14
14
|
role: "region",
|
|
15
15
|
"aria-labelledby": `accordion-title-${i.id}`,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d,
|
|
2
|
-
import { _ as B } from "./BaseAccordionBtn.vue_vue_type_script_setup_true_lang.
|
|
3
|
-
import { _ as A } from "./BaseAccordionContent.vue_vue_type_script_setup_true_lang.
|
|
4
|
-
import { a as E } from "./ArrowIcon.
|
|
5
|
-
import "./PharmacyIcon.
|
|
1
|
+
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as t, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
|
|
2
|
+
import { _ as B } from "./BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js";
|
|
3
|
+
import { _ as A } from "./BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js";
|
|
4
|
+
import { a as E } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
5
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -72,7 +72,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
72
72
|
"data-cy": e.dataCy,
|
|
73
73
|
"aria-expanded": o.value,
|
|
74
74
|
"aria-controls": `accordion-text-${e.id}`,
|
|
75
|
-
onClick: s[0] || (s[0] =
|
|
75
|
+
onClick: s[0] || (s[0] = O((N) => {
|
|
76
76
|
n(), d(b)?.({ id: e.id, title: e.title, active: o.value }), a("click");
|
|
77
77
|
}, ["prevent", "stop"]))
|
|
78
78
|
}, [
|
|
@@ -90,7 +90,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
90
90
|
height: e.arrowWidth
|
|
91
91
|
}, null, 8, ["class", "arrow-classes", "width", "height"])
|
|
92
92
|
], 10, I)
|
|
93
|
-
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(),
|
|
93
|
+
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(B, {
|
|
94
94
|
key: 1,
|
|
95
95
|
id: e.id,
|
|
96
96
|
"btn-wrapper-classes": e.btnWrapperClasses,
|
|
@@ -112,7 +112,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
|
-
}, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) :
|
|
115
|
+
}, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) : g("", !0),
|
|
116
116
|
t(e.$slots, "custom_accordion", {
|
|
117
117
|
id: e.id,
|
|
118
118
|
isOpen: o.value,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as l } from "vue";
|
|
2
2
|
import '../assets/BaseAlert.css';const o = ["id"], p = /* @__PURE__ */ t({
|
|
3
3
|
__name: "BaseAlert",
|
|
4
4
|
props: {
|
|
5
5
|
alertClass: { default: "" }
|
|
6
6
|
},
|
|
7
7
|
setup(n) {
|
|
8
|
-
return (e, i) => (
|
|
8
|
+
return (e, i) => (s(), r("div", {
|
|
9
9
|
id: e.$attrs.id,
|
|
10
10
|
class: a(["uikit-alert", e.alertClass]),
|
|
11
11
|
role: "alert"
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import "./
|
|
5
|
-
import { _ as
|
|
6
|
-
import { A as
|
|
7
|
-
function
|
|
8
|
-
return (...
|
|
9
|
-
|
|
1
|
+
import { defineComponent as T, mergeModels as $, useModel as L, ref as r, computed as k, onBeforeMount as F, watch as f, createBlock as S, openBlock as C, normalizeClass as H, withCtx as s, createElementBlock as z, Fragment as A, renderList as K, unref as N, createElementVNode as U, createVNode as W, renderSlot as V } from "vue";
|
|
2
|
+
import j from "../BaseInput.js";
|
|
3
|
+
import { _ as q } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js";
|
|
4
|
+
import "./polyline.DjpLdMaW.js";
|
|
5
|
+
import { _ as G } from "./SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js";
|
|
6
|
+
import { A as J } from "./useBreakpoints.BXk8Xcw3.js";
|
|
7
|
+
function Q(t, p) {
|
|
8
|
+
return (...v) => new Promise((d, u) => {
|
|
9
|
+
t.id && clearTimeout(t.id), t.id = setTimeout(() => {
|
|
10
10
|
try {
|
|
11
|
-
const i =
|
|
12
|
-
l(i);
|
|
13
|
-
} catch (i) {
|
|
11
|
+
const i = p(...v);
|
|
14
12
|
d(i);
|
|
13
|
+
} catch (i) {
|
|
14
|
+
u(i);
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, t.delay);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
20
20
|
__name: "BaseAutocomplete",
|
|
21
|
-
props: /* @__PURE__ */
|
|
22
|
-
border: { type: Boolean, default: !0 },
|
|
21
|
+
props: /* @__PURE__ */ $({
|
|
23
22
|
isValid: { default: null },
|
|
24
23
|
theme: { default: "" },
|
|
25
24
|
label: { default: "" },
|
|
26
25
|
disableCb: { type: Boolean, default: !1 },
|
|
27
|
-
onInputChangeCb: {},
|
|
26
|
+
onInputChangeCb: { type: Function },
|
|
28
27
|
onOptionSelectedCb: { default: null },
|
|
29
28
|
keepState: { default: null },
|
|
30
29
|
cleanupOnClose: { type: Boolean, default: !0 },
|
|
31
30
|
dropdownClasses: { default: "" },
|
|
32
|
-
closeDropdownOnBodyPressed: { type: Boolean, default: !0 }
|
|
31
|
+
closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
|
|
32
|
+
inputClasses: {},
|
|
33
|
+
fieldsetClasses: {},
|
|
34
|
+
dataCy: { default: "" }
|
|
33
35
|
}, {
|
|
34
36
|
modelValue: {
|
|
35
37
|
default() {
|
|
@@ -38,18 +40,21 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
38
40
|
},
|
|
39
41
|
modelModifiers: {}
|
|
40
42
|
}),
|
|
41
|
-
emits: /* @__PURE__ */
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
44
|
+
setup(t, { expose: p, emit: v }) {
|
|
45
|
+
const d = L(
|
|
46
|
+
t,
|
|
47
|
+
"modelValue"
|
|
48
|
+
), u = v, i = r(""), n = r([]), m = r(null), c = r(!1), o = r(!1), y = r(null), B = k(() => n.value.length);
|
|
49
|
+
F(() => {
|
|
50
|
+
m.value = Q({ delay: 300 }, t.onInputChangeCb);
|
|
46
51
|
});
|
|
47
|
-
const { activeIdx:
|
|
48
|
-
optionsLength:
|
|
52
|
+
const { activeIdx: h, selectedIdx: w } = J({
|
|
53
|
+
optionsLength: B,
|
|
49
54
|
isDropdownOpen: o,
|
|
50
55
|
disableSpaceHandler: !0
|
|
51
|
-
}),
|
|
52
|
-
switch (
|
|
56
|
+
}), O = k(() => {
|
|
57
|
+
switch (t.theme) {
|
|
53
58
|
case "bordered":
|
|
54
59
|
return "";
|
|
55
60
|
case "all-bordered":
|
|
@@ -60,7 +65,7 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
60
65
|
return "";
|
|
61
66
|
}
|
|
62
67
|
}), I = k(() => {
|
|
63
|
-
switch (
|
|
68
|
+
switch (t.theme) {
|
|
64
69
|
case "bordered":
|
|
65
70
|
return "";
|
|
66
71
|
case "all-bordered":
|
|
@@ -70,9 +75,9 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
70
75
|
default:
|
|
71
76
|
return "";
|
|
72
77
|
}
|
|
73
|
-
}),
|
|
78
|
+
}), M = k(() => {
|
|
74
79
|
const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
75
|
-
switch (
|
|
80
|
+
switch (t.theme) {
|
|
76
81
|
case "bordered":
|
|
77
82
|
return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
78
83
|
case "all-bordered":
|
|
@@ -82,43 +87,43 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
82
87
|
default:
|
|
83
88
|
return "";
|
|
84
89
|
}
|
|
85
|
-
}),
|
|
86
|
-
if (
|
|
87
|
-
if (!e ||
|
|
88
|
-
n.value = [],
|
|
90
|
+
}), P = async (e) => {
|
|
91
|
+
if (i.value !== e && (u("changedValue", e), i.value = e, !!t.onInputChangeCb)) {
|
|
92
|
+
if (!e || c.value) {
|
|
93
|
+
n.value = [], c.value = !1, w.value = -1, h.value = -1, d.value && (d.value.label = ""), o.value = !1, await m.value(null);
|
|
89
94
|
return;
|
|
90
95
|
}
|
|
91
|
-
|
|
96
|
+
t.disableCb || (n.value = await m.value(e), o.value = !!n.value.length);
|
|
92
97
|
}
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
n.value.length &&
|
|
98
|
+
}, g = (e, l) => {
|
|
99
|
+
t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (n.value = []), c.value = !0, i.value = e.label, d.value = e, o.value = !1, w.value = l;
|
|
100
|
+
}, D = () => {
|
|
101
|
+
n.value.length && t.keepState !== "closed" && (o.value = !0);
|
|
97
102
|
};
|
|
98
103
|
return f(
|
|
99
104
|
d,
|
|
100
|
-
(e,
|
|
101
|
-
e ===
|
|
105
|
+
(e, l) => {
|
|
106
|
+
e === l || e?.label === i.value || (i.value = e?.label || "");
|
|
102
107
|
},
|
|
103
108
|
{ immediate: !0 }
|
|
104
|
-
), f(
|
|
109
|
+
), f(w, (e) => {
|
|
105
110
|
if (e === -1 || !n.value.length) return;
|
|
106
|
-
const
|
|
107
|
-
|
|
111
|
+
const l = n.value[e];
|
|
112
|
+
c.value && l.label === d.value?.label || g(l, e);
|
|
108
113
|
}), f(
|
|
109
|
-
() =>
|
|
114
|
+
() => t.keepState,
|
|
110
115
|
(e) => {
|
|
111
|
-
e === "closed" ? (o.value = !1,
|
|
116
|
+
e === "closed" ? (o.value = !1, t.cleanupOnClose && (n.value = [])) : e === "open" && n.value.length && (o.value = !0);
|
|
112
117
|
}
|
|
113
118
|
), f(o, (e) => {
|
|
114
|
-
|
|
115
|
-
}),
|
|
119
|
+
u("update:dropdownState", e);
|
|
120
|
+
}), p({
|
|
116
121
|
select: () => {
|
|
117
|
-
|
|
122
|
+
y.value?.select();
|
|
118
123
|
}
|
|
119
|
-
}), (e,
|
|
120
|
-
class:
|
|
121
|
-
"data-cy": `ac_${e.$attrs.id}`,
|
|
124
|
+
}), (e, l) => (C(), S(q, {
|
|
125
|
+
class: H(e.$attrs["root-classes"]),
|
|
126
|
+
"data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
|
|
122
127
|
"dropdown-element": "ul",
|
|
123
128
|
"dropdown-classes": [
|
|
124
129
|
{ "bordered-dropdown": e.theme === "bordered" },
|
|
@@ -127,63 +132,63 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
127
132
|
{
|
|
128
133
|
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
129
134
|
},
|
|
130
|
-
|
|
135
|
+
M.value,
|
|
131
136
|
"!uikit-max-h-[210px] uikit-z-30",
|
|
132
137
|
e.dropdownClasses
|
|
133
138
|
],
|
|
134
139
|
"open-dropdown": o.value,
|
|
135
|
-
"keep-state": !n.value.length ||
|
|
136
|
-
"onUpdate:dropdownState": t[3] || (t[3] = (a) => o.value = a),
|
|
137
|
-
onClick: t[4] || (t[4] = (a) => {
|
|
138
|
-
i("click"), E();
|
|
139
|
-
}),
|
|
140
|
+
"keep-state": !n.value.length || e.keepState === "closed" ? "closed" : "opened",
|
|
140
141
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
141
|
-
"activate-keyboard-controller": !1
|
|
142
|
+
"activate-keyboard-controller": !1,
|
|
143
|
+
"onUpdate:dropdownState": l[3] || (l[3] = (a) => o.value = a),
|
|
144
|
+
onClick: l[4] || (l[4] = (a) => {
|
|
145
|
+
u("click"), D();
|
|
146
|
+
})
|
|
142
147
|
}, {
|
|
143
|
-
btn_slot:
|
|
144
|
-
|
|
145
|
-
id: `ac_input_${e.$attrs.id}
|
|
148
|
+
btn_slot: s(() => [
|
|
149
|
+
W(j, {
|
|
150
|
+
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
146
151
|
ref_key: "baseInput",
|
|
147
|
-
ref:
|
|
148
|
-
"data-cy": `ac_input_${e.$attrs.id}`,
|
|
152
|
+
ref: y,
|
|
153
|
+
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
149
154
|
"label-text": e.label,
|
|
150
|
-
"model-value":
|
|
155
|
+
"model-value": i.value,
|
|
151
156
|
"is-valid": e.isValid,
|
|
152
157
|
disabled: e.$attrs.disabled,
|
|
153
158
|
placeholder: e.$attrs.placeholder,
|
|
154
159
|
"with-left-icon": !!e.$slots.lefticon,
|
|
155
160
|
"with-right-icon": !!e.$slots.righticon,
|
|
156
161
|
"input-class": [
|
|
157
|
-
|
|
158
|
-
e
|
|
162
|
+
O.value,
|
|
163
|
+
e.inputClasses,
|
|
159
164
|
"!uikit-ml-0 !uikit-w-full"
|
|
160
165
|
],
|
|
161
|
-
"fieldset-classes": [I.value, e
|
|
162
|
-
"onUpdate:modelValue":
|
|
163
|
-
onKeydown:
|
|
164
|
-
onKeydownEnterPressed:
|
|
166
|
+
"fieldset-classes": [I.value, e.fieldsetClasses],
|
|
167
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => P(a === void 0 ? "" : `${a}`)),
|
|
168
|
+
onKeydown: l[1] || (l[1] = (a) => u("keydown", a)),
|
|
169
|
+
onKeydownEnterPressed: l[2] || (l[2] = () => u("keydownEnterPressed"))
|
|
165
170
|
}, {
|
|
166
|
-
leftIcon:
|
|
167
|
-
|
|
171
|
+
leftIcon: s(() => [
|
|
172
|
+
V(e.$slots, "lefticon")
|
|
168
173
|
]),
|
|
169
|
-
righticon:
|
|
170
|
-
|
|
174
|
+
righticon: s(({ handleClean: a }) => [
|
|
175
|
+
V(e.$slots, "righticon", { handleClean: a })
|
|
171
176
|
]),
|
|
172
177
|
_: 3
|
|
173
178
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
174
179
|
]),
|
|
175
|
-
default:
|
|
176
|
-
(
|
|
180
|
+
default: s(() => [
|
|
181
|
+
(C(!0), z(A, null, K(n.value, (a, b) => (C(), S(G, {
|
|
177
182
|
key: b,
|
|
178
|
-
active:
|
|
183
|
+
active: N(h) === b,
|
|
179
184
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
180
|
-
onClick: (
|
|
181
|
-
onMouseover: (
|
|
185
|
+
onClick: (E) => g(a, b),
|
|
186
|
+
onMouseover: (E) => h.value = b
|
|
182
187
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
|
|
188
|
+
default: s(() => [
|
|
189
|
+
U("span", {
|
|
185
190
|
innerHTML: a.label
|
|
186
|
-
}, null, 8,
|
|
191
|
+
}, null, 8, R)
|
|
187
192
|
]),
|
|
188
193
|
_: 2
|
|
189
194
|
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
@@ -193,5 +198,5 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
|
193
198
|
}
|
|
194
199
|
});
|
|
195
200
|
export {
|
|
196
|
-
|
|
201
|
+
le as _
|
|
197
202
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createElementBlock as a, openBlock as t, normalizeClass as r, renderSlot as i } from "vue";
|
|
2
2
|
import '../assets/BaseBadge.css';const o = ["id"], p = /* @__PURE__ */ e({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "BaseBadge",
|
|
@@ -6,7 +6,7 @@ import '../assets/BaseBadge.css';const o = ["id"], p = /* @__PURE__ */ e({
|
|
|
6
6
|
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
7
7
|
},
|
|
8
8
|
setup(n) {
|
|
9
|
-
return (s, d) => (
|
|
9
|
+
return (s, d) => (t(), a("span", {
|
|
10
10
|
id: s.$attrs.id,
|
|
11
11
|
class: r(["uikit-badge uikit-shadow-sm", s.badgeClass, s.$attrs.class])
|
|
12
12
|
}, [
|