@wikicasa-dev/components 1.2.14 → 1.2.16
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.vue_vue_type_script_setup_true_lang-BoZC-MRc.cjs +1 -0
- package/dist/AccessibleSelect.vue_vue_type_script_setup_true_lang-cO2THN1r.js +204 -0
- package/dist/ArrowIcon-BAw-0KtW.js +28 -0
- package/dist/ArrowIcon-p3-glcm0.cjs +1 -0
- package/dist/BaseAccordion.vue_vue_type_script_setup_true_lang-CoE2D2rV.js +19 -0
- package/dist/BaseAccordion.vue_vue_type_script_setup_true_lang-f0Al20X4.cjs +1 -0
- package/dist/BaseAccordionBtn.vue_vue_type_script_setup_true_lang-B5N_3-gi.js +54 -0
- package/dist/BaseAccordionBtn.vue_vue_type_script_setup_true_lang-D9D4w7Mn.cjs +1 -0
- package/dist/BaseAccordionContent.vue_vue_type_script_setup_true_lang-N7oILwdv.js +32 -0
- package/dist/BaseAccordionContent.vue_vue_type_script_setup_true_lang-U3YQw0dV.cjs +1 -0
- package/dist/BaseAccordionItem.vue_vue_type_script_setup_true_lang-34wcOXN7.js +106 -0
- package/dist/BaseAccordionItem.vue_vue_type_script_setup_true_lang-CkRPO2NI.cjs +1 -0
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-CVOeKK-H.js +173 -0
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-LiuIZMOu.cjs +1 -0
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-8iapE8e5.cjs +1 -0
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-hyGBRoUS.js +75 -0
- package/dist/BaseDropDown.vue_vue_type_script_setup_true_lang-BdoYFj6h.cjs +1 -0
- package/dist/BaseDropDown.vue_vue_type_script_setup_true_lang-t-jias47.js +111 -0
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-B28hp87l.js +93 -0
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BkB2KUyO.cjs +1 -0
- package/dist/CloseIcon-B0iqXdWk.cjs +1 -0
- package/dist/CloseIcon-o6CokGLA.js +38 -0
- package/dist/DefaultValues-S0CTWW-b.cjs +1 -0
- package/dist/DefaultValues-k7iQWtC2.js +9 -0
- package/dist/IntersectionObservable.vue_vue_type_script_setup_true_lang-D3wBzHZD.js +24 -0
- package/dist/IntersectionObservable.vue_vue_type_script_setup_true_lang-JNuYyviS.cjs +1 -0
- package/dist/IntersectionObserver.vue_vue_type_script_setup_true_lang-Bwf1jUFo.cjs +1 -0
- package/dist/IntersectionObserver.vue_vue_type_script_setup_true_lang-CQHjzQc3.js +52 -0
- package/dist/SelectItem.vue_vue_type_script_setup_true_lang-3ie26G8n.cjs +1 -0
- package/dist/SelectItem.vue_vue_type_script_setup_true_lang-BOLdDTLM.js +42 -0
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-CQsYG4_e.cjs +5 -0
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-DUANcQKT.js +716 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/autoplay-Dyvby5gX.cjs +1 -0
- package/dist/controller-Dyvby5gX.cjs +1 -0
- package/dist/free-mode-Dyvby5gX.cjs +1 -0
- package/dist/{index-1oh628Cu.js → index-6DJ6N4f8.js} +2 -2
- package/dist/index-Dz30IWWY.cjs +1 -0
- package/dist/lib/UIKit/AccessibleSelect.cjs +1 -0
- package/dist/lib/UIKit/AccessibleSelect.js +4 -0
- package/dist/lib/UIKit/Accordion/BaseAccordion.cjs +1 -0
- package/dist/lib/UIKit/Accordion/BaseAccordion.js +4 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.cjs +1 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.js +4 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionContent.cjs +1 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionContent.js +4 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionItem.cjs +1 -0
- package/dist/lib/UIKit/Accordion/BaseAccordionItem.js +4 -0
- package/dist/lib/UIKit/BaseAlert.cjs +1 -0
- package/dist/lib/UIKit/BaseAlert.js +23 -0
- package/dist/lib/UIKit/BaseAutocomplete.cjs +1 -0
- package/dist/lib/UIKit/BaseAutocomplete.js +4 -0
- package/dist/lib/UIKit/BaseBadge.cjs +1 -0
- package/dist/lib/UIKit/BaseBadge.js +20 -0
- package/dist/lib/UIKit/BaseBtModal.cjs +1 -0
- package/dist/lib/UIKit/BaseBtModal.js +179 -0
- package/dist/lib/UIKit/BaseBtModal.vue.d.ts +172 -0
- package/dist/lib/UIKit/BaseButton.cjs +1 -0
- package/dist/lib/UIKit/BaseButton.js +4 -0
- package/dist/lib/UIKit/BaseCard.cjs +1 -0
- package/dist/lib/UIKit/BaseCard.js +33 -0
- package/dist/lib/UIKit/BaseComplexToggle.cjs +1 -0
- package/dist/lib/UIKit/BaseComplexToggle.js +139 -0
- package/dist/lib/UIKit/BaseDropDown.cjs +1 -0
- package/dist/lib/UIKit/BaseDropDown.js +4 -0
- package/dist/lib/UIKit/BaseFloatingLabel.cjs +1 -0
- package/dist/lib/UIKit/BaseFloatingLabel.js +48 -0
- package/dist/lib/UIKit/BaseIcon.cjs +1 -0
- package/dist/lib/UIKit/BaseIcon.js +40 -0
- package/dist/lib/UIKit/BaseInput.cjs +1 -0
- package/dist/lib/UIKit/BaseInput.js +276 -0
- package/dist/{src → lib}/UIKit/BaseInput.vue.d.ts +3 -3
- package/dist/lib/UIKit/BaseNavItem.cjs +1 -0
- package/dist/lib/UIKit/BaseNavItem.js +58 -0
- package/dist/lib/UIKit/BasePagination.cjs +1 -0
- package/dist/lib/UIKit/BasePagination.js +151 -0
- package/dist/lib/UIKit/BasePaper.cjs +1 -0
- package/dist/lib/UIKit/BasePaper.js +14 -0
- package/dist/lib/UIKit/BaseSelect/SelectItem.cjs +1 -0
- package/dist/lib/UIKit/BaseSelect/SelectItem.js +4 -0
- package/dist/lib/UIKit/BaseSlider.cjs +8 -0
- package/dist/lib/UIKit/BaseSlider.js +261 -0
- package/dist/lib/UIKit/BaseSnackbar.cjs +1 -0
- package/dist/lib/UIKit/BaseSnackbar.js +79 -0
- package/dist/lib/UIKit/BaseSnackbar.vue.d.ts +56 -0
- package/dist/lib/UIKit/BaseTab.cjs +1 -0
- package/dist/lib/UIKit/BaseTab.js +78 -0
- package/dist/lib/UIKit/BaseTextarea.cjs +1 -0
- package/dist/lib/UIKit/BaseTextarea.js +142 -0
- package/dist/{src → lib}/UIKit/BaseTextarea.vue.d.ts +2 -2
- package/dist/lib/UIKit/BaseToggle.cjs +1 -0
- package/dist/lib/UIKit/BaseToggle.js +44 -0
- package/dist/lib/UIKit/BaseTooltip.cjs +1 -0
- package/dist/lib/UIKit/BaseTooltip.js +53 -0
- package/dist/lib/UIKit/BaseUploadFile.cjs +1 -0
- package/dist/lib/UIKit/BaseUploadFile.js +70 -0
- package/dist/lib/UIKit/Checkbox/CheckboxBtn.cjs +1 -0
- package/dist/lib/UIKit/Checkbox/CheckboxBtn.js +74 -0
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.cjs +1 -0
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.js +4 -0
- package/dist/lib/UIKit/Radio/RadioButton.cjs +1 -0
- package/dist/lib/UIKit/Radio/RadioButton.js +59 -0
- package/dist/lib/UIKit/Radio/RadioGroup.cjs +1 -0
- package/dist/lib/UIKit/Radio/RadioGroup.js +66 -0
- package/dist/lib/UIKit/StaticSpinner.cjs +1 -0
- package/dist/lib/UIKit/StaticSpinner.js +31 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.cjs +1 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.js +4 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObserver.cjs +1 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObserver.js +4 -0
- package/dist/lib/components/carousel/SwiperCarousel.cjs +1 -0
- package/dist/lib/components/carousel/SwiperCarousel.js +4 -0
- package/dist/lib/composables/useBreakpoints.cjs +1 -0
- package/dist/lib/composables/useBreakpoints.js +21 -0
- package/dist/lib/composables/useFloatingLabel.cjs +1 -0
- package/dist/lib/composables/useFloatingLabel.js +33 -0
- package/dist/lib/composables/useKeyboardController.cjs +1 -0
- package/dist/lib/composables/useKeyboardController.js +41 -0
- package/dist/lib/index.cjs +1 -0
- package/dist/lib/index.js +66 -0
- package/dist/navigation-Dyvby5gX.cjs +1 -0
- package/dist/pagination-Dyvby5gX.cjs +1 -0
- package/dist/poppins/poppins-v13-latin-300.eot +0 -0
- package/dist/poppins/poppins-v13-latin-300.svg +321 -0
- package/dist/poppins/poppins-v13-latin-300.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-300.woff +0 -0
- package/dist/poppins/poppins-v13-latin-300.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-500.eot +0 -0
- package/dist/poppins/poppins-v13-latin-500.svg +323 -0
- package/dist/poppins/poppins-v13-latin-500.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-500.woff +0 -0
- package/dist/poppins/poppins-v13-latin-500.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-600.eot +0 -0
- package/dist/poppins/poppins-v13-latin-600.svg +322 -0
- package/dist/poppins/poppins-v13-latin-600.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-600.woff +0 -0
- package/dist/poppins/poppins-v13-latin-600.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-regular.eot +0 -0
- package/dist/poppins/poppins-v13-latin-regular.svg +323 -0
- package/dist/poppins/poppins-v13-latin-regular.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-regular.woff +0 -0
- package/dist/poppins/poppins-v13-latin-regular.woff2 +0 -0
- package/dist/style.css +1 -1
- package/dist/thumbs-Dyvby5gX.cjs +1 -0
- package/dist/utilities-CBCDB5EB.js +1558 -0
- package/dist/utilities-gwVlEyWn.cjs +3 -0
- package/package.json +4 -3
- package/dist/components.js +0 -35
- package/dist/components.umd.cjs +0 -14
- package/dist/index-BYiujdKM.js +0 -4872
- package/dist/src/components/Pera.stories.d.ts +0 -6
- package/dist/src/components/base/BaseEmptyButton.stories.d.ts +0 -6
- package/dist/src/components/base/StaticSpinner.stories.d.ts +0 -6
- package/dist/src/components/input/TripleSelect.stories.d.ts +0 -6
- package/dist/src/components/insert/QualityScore.stories.d.ts +0 -6
- package/dist/src/stories/Button.stories.d.ts +0 -63
- package/dist/src/stories/Header.stories.d.ts +0 -66
- package/dist/src/stories/Page.stories.d.ts +0 -19
- package/dist/src/svgIcons/AboutUsIcon.d.ts +0 -3
- package/dist/src/svgIcons/ArrowIcon.d.ts +0 -3
- package/dist/src/svgIcons/BarChartIcon.d.ts +0 -3
- package/dist/src/svgIcons/BellIcon.d.ts +0 -3
- package/dist/src/svgIcons/BulbIcon.d.ts +0 -3
- package/dist/src/svgIcons/CloseIcon.d.ts +0 -3
- package/dist/src/svgIcons/DefaultValues.d.ts +0 -8
- package/dist/src/svgIcons/DeleteIcon.d.ts +0 -3
- package/dist/src/svgIcons/DrawIcon.d.ts +0 -3
- package/dist/src/svgIcons/GermanyFlagIcon.d.ts +0 -3
- package/dist/src/svgIcons/HeartIcon.d.ts +0 -3
- package/dist/src/svgIcons/HidePswIcon.d.ts +0 -3
- package/dist/src/svgIcons/ItalyFlagIcon.d.ts +0 -3
- package/dist/src/svgIcons/LocationIcon.d.ts +0 -3
- package/dist/src/svgIcons/LogoutIcon.d.ts +0 -3
- package/dist/src/svgIcons/MailIcon.d.ts +0 -3
- package/dist/src/svgIcons/MapIcon.d.ts +0 -3
- package/dist/src/svgIcons/NewsIcon.d.ts +0 -3
- package/dist/src/svgIcons/NotesIcon.d.ts +0 -3
- package/dist/src/svgIcons/PhoneIcon.d.ts +0 -3
- package/dist/src/svgIcons/PhotoIcon.d.ts +0 -3
- package/dist/src/svgIcons/PinIcon.d.ts +0 -3
- package/dist/src/svgIcons/PlanIcon.d.ts +0 -3
- package/dist/src/svgIcons/PlusIcon.d.ts +0 -3
- package/dist/src/svgIcons/PrestigeIcon.d.ts +0 -3
- package/dist/src/svgIcons/PrintIcon.d.ts +0 -3
- package/dist/src/svgIcons/ProfileIcon.d.ts +0 -3
- package/dist/src/svgIcons/QuotesIcon.d.ts +0 -3
- package/dist/src/svgIcons/RequestIcon.d.ts +0 -3
- package/dist/src/svgIcons/SearchIcon.d.ts +0 -3
- package/dist/src/svgIcons/ShareIcon.d.ts +0 -3
- package/dist/src/svgIcons/SuitcaseIcon.d.ts +0 -3
- package/dist/src/svgIcons/TieIcon.d.ts +0 -3
- package/dist/src/svgIcons/TourIcon.d.ts +0 -3
- package/dist/src/svgIcons/UkFlagIcon.d.ts +0 -3
- package/dist/src/svgIcons/ValuationIcon.d.ts +0 -3
- package/dist/src/svgIcons/VideoIcon.d.ts +0 -3
- package/dist/src/svgIcons/ViewPswIcon.d.ts +0 -3
- package/dist/src/svgIcons/WarningIcon.d.ts +0 -3
- package/dist/src/svgIcons/WarningIconRounded.d.ts +0 -3
- package/dist/src/svgIcons/WikiNerdIcon.d.ts +0 -3
- package/dist/src/svgIcons/WkAppIcon.d.ts +0 -3
- package/dist/vite.config.d.ts +0 -2
- package/dist/{src → lib}/UIKit/AccessibleSelect.vue.d.ts +2 -2
- package/dist/{src → lib}/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/Accordion/BaseAccordionItem.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/BaseAlert.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseAutocomplete.vue.d.ts +9 -9
- package/dist/{src → lib}/UIKit/BaseBadge.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseButton.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseCard.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseComplexToggle.vue.d.ts +2 -2
- package/dist/{src → lib}/UIKit/BaseDropDown.vue.d.ts +2 -2
- package/dist/{src → lib}/UIKit/BaseFloatingLabel.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/BaseIcon.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseNavItem.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BasePagination.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BasePaper.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseSelect/SelectItem.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/BaseSlider.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseTab.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/BaseToggle.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/BaseTooltip.vue.d.ts +1 -1
- package/dist/{src → lib}/UIKit/BaseUploadFile.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/Checkbox/CheckboxBtn.vue.d.ts +2 -2
- package/dist/{src → lib}/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/Radio/RadioButton.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/Radio/RadioGroup.vue.d.ts +0 -0
- package/dist/{src → lib}/UIKit/StaticSpinner.vue.d.ts +1 -1
- /package/dist/{src → lib}/components/IntersectionObserver/IntersectionObservable.vue.d.ts +0 -0
- /package/dist/{src → lib}/components/IntersectionObserver/IntersectionObserver.vue.d.ts +0 -0
- /package/dist/{src → lib}/components/carousel/SwiperCarousel.vue.d.ts +0 -0
- /package/dist/{src → lib}/composables/useBreakpoints.d.ts +0 -0
- /package/dist/{src → lib}/composables/useFloatingLabel.d.ts +0 -0
- /package/dist/{src → lib}/composables/useKeyboardController.d.ts +0 -0
- /package/dist/{src → lib}/index.d.ts +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import r from "./BaseNavItem.js";
|
|
2
|
+
import { defineComponent as c, resolveComponent as d, openBlock as s, createElementBlock as o, normalizeClass as m, renderSlot as p, createVNode as l, Fragment as b, renderList as k, createBlock as u } from "vue";
|
|
3
|
+
import { _ as f } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const v = c({
|
|
5
|
+
name: "BaseTab",
|
|
6
|
+
components: { BaseNavItem: r },
|
|
7
|
+
props: {
|
|
8
|
+
navTabsCustomClass: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
firstLabel: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "Tab1"
|
|
14
|
+
},
|
|
15
|
+
firstIconName: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
secondLabel: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "Tab2"
|
|
21
|
+
},
|
|
22
|
+
secondIconName: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
tabs: {
|
|
26
|
+
type: Array
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["clickedTab"],
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
selectedId: ""
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
handleClick(e) {
|
|
37
|
+
this.clickTab(e), this.$emit("clickedTab", e);
|
|
38
|
+
},
|
|
39
|
+
clickTab(e) {
|
|
40
|
+
this.selectedId = e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function C(e, a, y, I, T, $) {
|
|
45
|
+
const i = d("base-nav-item");
|
|
46
|
+
return s(), o("ul", {
|
|
47
|
+
class: m(["uikit-inline-flex uikit-flex-wrap uikit-gap-5", [e.navTabsCustomClass]])
|
|
48
|
+
}, [
|
|
49
|
+
e.tabs ? (s(!0), o(b, { key: 1 }, k(e.tabs, (t, n) => (s(), u(i, {
|
|
50
|
+
id: t.id + "_" + n,
|
|
51
|
+
key: n,
|
|
52
|
+
text: t.label,
|
|
53
|
+
"is-active": e.selectedId === t.id + "_" + n,
|
|
54
|
+
"icon-name": t.iconName,
|
|
55
|
+
onClick: (g) => e.handleClick(`${t.id + "_" + n}`)
|
|
56
|
+
}, null, 8, ["id", "text", "is-active", "icon-name", "onClick"]))), 128)) : p(e.$slots, "custom", { key: 0 }, () => [
|
|
57
|
+
l(i, {
|
|
58
|
+
id: "tab1",
|
|
59
|
+
"is-active": e.selectedId === "tab1",
|
|
60
|
+
"icon-name": e.firstIconName,
|
|
61
|
+
text: e.firstLabel,
|
|
62
|
+
onClick: a[0] || (a[0] = (t) => e.handleClick("tab1"))
|
|
63
|
+
}, null, 8, ["is-active", "icon-name", "text"]),
|
|
64
|
+
l(i, {
|
|
65
|
+
id: "tab2",
|
|
66
|
+
ref: "tab2",
|
|
67
|
+
"is-active": e.selectedId === "tab2",
|
|
68
|
+
"icon-name": e.secondIconName,
|
|
69
|
+
text: e.secondLabel,
|
|
70
|
+
onClick: a[1] || (a[1] = (t) => e.handleClick("tab2"))
|
|
71
|
+
}, null, 8, ["is-active", "icon-name", "text"])
|
|
72
|
+
])
|
|
73
|
+
], 2);
|
|
74
|
+
}
|
|
75
|
+
const h = /* @__PURE__ */ f(v, [["render", C]]);
|
|
76
|
+
export {
|
|
77
|
+
h as default
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./BaseFloatingLabel.cjs"),d=require("../composables/useFloatingLabel.cjs"),i=require("vue"),k=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs"),b=i.defineComponent({name:"BaseTextarea",components:{BaseFloatingLabel:u},inheritAttrs:!1,props:{labelText:{type:String,default:""},modelValue:{type:[String,Number]},feedback:{type:Object},isValid:{type:Boolean,default:null},textAreaStyle:{type:String,default:""},isDisabled:{type:Boolean,default:!1},resize:{type:Boolean,default:!1}},emits:["update:modelValue","focusin","focusout"],setup(e,t){const{labelState:a,setInitialLabelState:l,handleFocusIn:s,handleFocusOut:r}=d.useFloatingLabel(t.emit);return{labelState:a,setInitialLabelState:l,handleFocusIn:s,handleFocusOut:r}},data(){return{value:""}},computed:{textareaElem(){return this.$refs.textarea}},watch:{modelValue(e){`${e}`.length>0&&this.labelState!=="floating-label"&&(this.labelState="floating-label")}},created(){this.setInitialLabelState(this.modelValue)},methods:{handleOnChange({target:e}){this.value=e.value,this.$emit("update:modelValue",e.value)},handleFloatingLabelClick(){this.$refs.textarea.focus()},disableTextarea(){this.textareaElem.setAttribute("readonly","readonly"),this.textareaElem.classList.add("disabled")},clearTextareaElem(){this.textareaElem.value="",console.log(this.textareaElem.value)},disableAndFocusTextarea(){this.textareaElem.removeAttribute("readonly"),this.textareaElem.classList.remove("disabled"),this.$nextTick(()=>{this.textareaElem.focus()})}}}),p=["id","data-cy","rows","disabled","aria-labelledby","innerHTML"],m={key:0,class:"uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"},f=["innerHTML"],h=["innerHTML"];function c(e,t,a,l,s,r){const n=i.resolveComponent("base-floating-label");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.$attrs["wrapper-classes"])},[i.createElementVNode("div",{class:i.normalizeClass(["input-wrapper uikit-relative uikit-mt-15px uikit-rounded-xs uikit-px-0",[e.labelState==="floating-label"?"floating-state":"inline-state"]])},[i.createElementVNode("textarea",{id:e.$attrs.id,ref:"textarea","data-cy":e.$attrs["data-cy"],class:i.normalizeClass(["textarea-scrollbar uikit-peer/fieldset uikit-w-full uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-white uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-pt-15px uikit-outline-none",[{"uikit-bg-w-cultured":e.$attrs.disabled||e.isDisabled},{"is-invalid invalid-bg !uikit-pr-10":e.isValid===!1},{"is-valid valid-bg !uikit-pr-10":e.isValid},{"uikit-resize-none":!e.resize}]]),rows:e.$attrs.rows,disabled:e.$attrs.disabled,"aria-labelledby":e.$attrs.id,onFocusin:t[0]||(t[0]=i.withModifiers(()=>e.handleFocusIn(),["stop"])),onFocusout:t[1]||(t[1]=i.withModifiers(o=>e.handleFocusOut(`${e.modelValue}`.trim()||e.value),["stop"])),onInput:t[2]||(t[2]=i.withModifiers((...o)=>e.handleOnChange&&e.handleOnChange(...o),["stop"])),innerHTML:e.modelValue},null,42,p),i.createElementVNode("fieldset",{class:i.normalizeClass(["uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-5px uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary",[{"is-invalid":e.isValid===!1,"is-valid":e.isValid},{"uikit-border-w-danger":e.isValid===!1},{"uikit-border-w-primary":e.isValid},{"uikit-border-w-secondary":e.isValid===null}]])},[e.labelText?(i.openBlock(),i.createElementBlock("legend",m,[i.createElementVNode("span",{class:i.normalizeClass(["uikit-px-5px uikit-opacity-0",[{"uikit-visible uikit-inline-block":e.labelState==="floating-label"},{"uikit-invisible uikit-hidden":e.labelState==="inline-label"}]]),innerHTML:e.labelText},null,10,f)])):i.createCommentVNode("",!0)],2),i.createVNode(n,{for:e.$attrs.id,"label-text":e.labelText,"label-state":e.labelState,required:e.$attrs.required,"is-valid":e.isValid,onClick:e.handleFloatingLabelClick},null,8,["for","label-text","label-state","required","is-valid","onClick"])],2),(e.isValid||e.isValid===!1)&&e.feedback?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.isValid===!1?"uikit-mt-1 uikit-text-12 uikit-text-w-danger":"uikit-mt-1 uikit-text-12 uikit-text-w-primary"),innerHTML:e.isValid===!1?e.feedback.invalid:e.feedback.valid},null,10,h)):i.createCommentVNode("",!0)],2)}const v=k._export_sfc(b,[["render",c],["__scopeId","data-v-9544f55f"]]);module.exports=v;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import f from "./BaseFloatingLabel.js";
|
|
2
|
+
import { useFloatingLabel as m } from "../composables/useFloatingLabel.js";
|
|
3
|
+
import { defineComponent as h, resolveComponent as v, openBlock as l, createElementBlock as s, normalizeClass as t, createElementVNode as a, withModifiers as r, createCommentVNode as b, createVNode as g } from "vue";
|
|
4
|
+
import { _ as w } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const y = h({
|
|
6
|
+
name: "BaseTextarea",
|
|
7
|
+
components: { BaseFloatingLabel: f },
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
props: {
|
|
10
|
+
labelText: { type: String, default: "" },
|
|
11
|
+
modelValue: { type: [String, Number] },
|
|
12
|
+
feedback: { type: Object },
|
|
13
|
+
isValid: { type: Boolean, default: null },
|
|
14
|
+
textAreaStyle: { type: String, default: "" },
|
|
15
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
16
|
+
resize: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue", "focusin", "focusout"],
|
|
19
|
+
setup(e, i) {
|
|
20
|
+
const { labelState: o, setInitialLabelState: u, handleFocusIn: n, handleFocusOut: d } = m(i.emit);
|
|
21
|
+
return {
|
|
22
|
+
labelState: o,
|
|
23
|
+
setInitialLabelState: u,
|
|
24
|
+
handleFocusIn: n,
|
|
25
|
+
handleFocusOut: d
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
//This inner value is useful in case the inner value of the textarea do not match with the modelValue
|
|
31
|
+
value: ""
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
textareaElem() {
|
|
36
|
+
return this.$refs.textarea;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
modelValue(e) {
|
|
41
|
+
`${e}`.length > 0 && this.labelState !== "floating-label" && (this.labelState = "floating-label");
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
created() {
|
|
45
|
+
this.setInitialLabelState(this.modelValue);
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
handleOnChange({ target: e }) {
|
|
49
|
+
this.value = e.value, this.$emit("update:modelValue", e.value);
|
|
50
|
+
},
|
|
51
|
+
handleFloatingLabelClick() {
|
|
52
|
+
this.$refs.textarea.focus();
|
|
53
|
+
},
|
|
54
|
+
/* Favorite scenario: multiple baseTextarea */
|
|
55
|
+
disableTextarea() {
|
|
56
|
+
this.textareaElem.setAttribute("readonly", "readonly"), this.textareaElem.classList.add("disabled");
|
|
57
|
+
},
|
|
58
|
+
clearTextareaElem() {
|
|
59
|
+
this.textareaElem.value = "", console.log(this.textareaElem.value);
|
|
60
|
+
},
|
|
61
|
+
disableAndFocusTextarea() {
|
|
62
|
+
this.textareaElem.removeAttribute("readonly"), this.textareaElem.classList.remove("disabled"), this.$nextTick(() => {
|
|
63
|
+
this.textareaElem.focus();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}), V = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "innerHTML"], c = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
|
|
70
|
+
}, $ = ["innerHTML"], T = ["innerHTML"];
|
|
71
|
+
function L(e, i, o, u, n, d) {
|
|
72
|
+
const p = v("base-floating-label");
|
|
73
|
+
return l(), s("div", {
|
|
74
|
+
class: t(e.$attrs["wrapper-classes"])
|
|
75
|
+
}, [
|
|
76
|
+
a("div", {
|
|
77
|
+
class: t(["input-wrapper uikit-relative uikit-mt-15px uikit-rounded-xs uikit-px-0", [
|
|
78
|
+
e.labelState === "floating-label" ? "floating-state" : "inline-state"
|
|
79
|
+
]])
|
|
80
|
+
}, [
|
|
81
|
+
a("textarea", {
|
|
82
|
+
id: e.$attrs.id,
|
|
83
|
+
ref: "textarea",
|
|
84
|
+
"data-cy": e.$attrs["data-cy"],
|
|
85
|
+
class: t(["textarea-scrollbar uikit-peer/fieldset uikit-w-full uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-white uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-pt-15px uikit-outline-none", [
|
|
86
|
+
{ "uikit-bg-w-cultured": e.$attrs.disabled || e.isDisabled },
|
|
87
|
+
{ "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
|
|
88
|
+
{ "is-valid valid-bg !uikit-pr-10": e.isValid },
|
|
89
|
+
{ "uikit-resize-none": !e.resize }
|
|
90
|
+
]]),
|
|
91
|
+
rows: e.$attrs.rows,
|
|
92
|
+
disabled: e.$attrs.disabled,
|
|
93
|
+
"aria-labelledby": e.$attrs.id,
|
|
94
|
+
onFocusin: i[0] || (i[0] = r(() => e.handleFocusIn(), ["stop"])),
|
|
95
|
+
onFocusout: i[1] || (i[1] = r((k) => e.handleFocusOut(`${e.modelValue}`.trim() || e.value), ["stop"])),
|
|
96
|
+
onInput: i[2] || (i[2] = r((...k) => e.handleOnChange && e.handleOnChange(...k), ["stop"])),
|
|
97
|
+
innerHTML: e.modelValue
|
|
98
|
+
}, null, 42, V),
|
|
99
|
+
a("fieldset", {
|
|
100
|
+
class: t(["uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-5px uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary", [
|
|
101
|
+
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid },
|
|
102
|
+
{ "uikit-border-w-danger": e.isValid === !1 },
|
|
103
|
+
{ "uikit-border-w-primary": e.isValid },
|
|
104
|
+
{ "uikit-border-w-secondary": e.isValid === null }
|
|
105
|
+
]])
|
|
106
|
+
}, [
|
|
107
|
+
e.labelText ? (l(), s("legend", c, [
|
|
108
|
+
a("span", {
|
|
109
|
+
class: t(["uikit-px-5px uikit-opacity-0", [
|
|
110
|
+
{
|
|
111
|
+
"uikit-visible uikit-inline-block": e.labelState === "floating-label"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"uikit-invisible uikit-hidden": e.labelState === "inline-label"
|
|
115
|
+
}
|
|
116
|
+
]]),
|
|
117
|
+
innerHTML: e.labelText
|
|
118
|
+
}, null, 10, $)
|
|
119
|
+
])) : b("", !0)
|
|
120
|
+
], 2),
|
|
121
|
+
g(p, {
|
|
122
|
+
for: e.$attrs.id,
|
|
123
|
+
"label-text": e.labelText,
|
|
124
|
+
"label-state": e.labelState,
|
|
125
|
+
required: e.$attrs.required,
|
|
126
|
+
"is-valid": e.isValid,
|
|
127
|
+
onClick: e.handleFloatingLabelClick
|
|
128
|
+
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "onClick"])
|
|
129
|
+
], 2),
|
|
130
|
+
(e.isValid || e.isValid === !1) && e.feedback ? (l(), s("div", {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: t(
|
|
133
|
+
e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
|
|
134
|
+
),
|
|
135
|
+
innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
|
|
136
|
+
}, null, 10, T)) : b("", !0)
|
|
137
|
+
], 2);
|
|
138
|
+
}
|
|
139
|
+
const x = /* @__PURE__ */ w(y, [["render", L], ["__scopeId", "data-v-9544f55f"]]);
|
|
140
|
+
export {
|
|
141
|
+
x as default
|
|
142
|
+
};
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
disableTextarea(): void;
|
|
42
42
|
clearTextareaElem(): void;
|
|
43
43
|
disableAndFocusTextarea(): void;
|
|
44
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
44
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focusout" | "focusin")[], "update:modelValue" | "focusout" | "focusin", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
labelText: {
|
|
46
46
|
type: StringConstructor;
|
|
47
47
|
default: string;
|
|
@@ -73,10 +73,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
onFocusout?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
75
75
|
}, {
|
|
76
|
-
resize: boolean;
|
|
77
76
|
isValid: Nullable<boolean>;
|
|
78
77
|
labelText: string;
|
|
79
78
|
textAreaStyle: string;
|
|
80
79
|
isDisabled: boolean;
|
|
80
|
+
resize: boolean;
|
|
81
81
|
}, {}>;
|
|
82
82
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),r=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs"),l=t.defineComponent({name:"BaseToggle",inheritAttrs:!1,props:{withRightLabel:{type:Boolean,default:!0},label:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],methods:{handleToggle({target:e}){this.$emit("update:modelValue",e.checked)}}}),s=e=>(t.pushScopeId("data-v-d999e0e7"),e=e(),t.popScopeId(),e),u={class:"switch uikit-relative uikit-inline-block uikit-min-w-[40px]"},a=["data-cy","checked"],n=s(()=>t.createElementVNode("span",{class:"slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary"},null,-1)),d=["innerHTML"];function c(e,i,p,b,h,f){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["switch-container uikit-inline-block uikit-items-center",e.$attrs.class])},[t.renderSlot(e.$slots,"leftLabel",{},void 0,!0),t.createElementVNode("label",u,[t.createElementVNode("input",{"data-cy":e.$attrs["data-cy"]??"",class:"uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",type:"checkbox",checked:e.modelValue,onInput:i[0]||(i[0]=t.withModifiers(o=>e.handleToggle(o),["stop"]))},null,40,a),n]),e.withRightLabel?t.renderSlot(e.$slots,"rightLabel",{key:0},()=>[t.createElementVNode("span",{class:"uikit-ml-10px",innerHTML:e.label},null,8,d)],!0):t.createCommentVNode("",!0)],2)}const k=r._export_sfc(l,[["render",c],["__scopeId","data-v-d999e0e7"]]);module.exports=k;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as a, createElementBlock as s, normalizeClass as u, renderSlot as o, createElementVNode as t, withModifiers as n, createCommentVNode as d, pushScopeId as c, popScopeId as k } from "vue";
|
|
2
|
+
import { _ as p } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const b = l({
|
|
4
|
+
name: "BaseToggle",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
withRightLabel: { type: Boolean, default: !0 },
|
|
8
|
+
label: { type: String, default: "" },
|
|
9
|
+
modelValue: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
methods: {
|
|
13
|
+
handleToggle({ target: e }) {
|
|
14
|
+
this.$emit("update:modelValue", e.checked);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}), f = (e) => (c("data-v-d999e0e7"), e = e(), k(), e), h = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px]" }, m = ["data-cy", "checked"], g = /* @__PURE__ */ f(() => /* @__PURE__ */ t("span", { class: "slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary" }, null, -1)), w = ["innerHTML"];
|
|
18
|
+
function y(e, i, _, $, v, B) {
|
|
19
|
+
return a(), s("div", {
|
|
20
|
+
class: u(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
|
|
21
|
+
}, [
|
|
22
|
+
o(e.$slots, "leftLabel", {}, void 0, !0),
|
|
23
|
+
t("label", h, [
|
|
24
|
+
t("input", {
|
|
25
|
+
"data-cy": e.$attrs["data-cy"] ?? "",
|
|
26
|
+
class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
|
|
27
|
+
type: "checkbox",
|
|
28
|
+
checked: e.modelValue,
|
|
29
|
+
onInput: i[0] || (i[0] = n((r) => e.handleToggle(r), ["stop"]))
|
|
30
|
+
}, null, 40, m),
|
|
31
|
+
g
|
|
32
|
+
]),
|
|
33
|
+
e.withRightLabel ? o(e.$slots, "rightLabel", { key: 0 }, () => [
|
|
34
|
+
t("span", {
|
|
35
|
+
class: "uikit-ml-10px",
|
|
36
|
+
innerHTML: e.label
|
|
37
|
+
}, null, 8, w)
|
|
38
|
+
], !0) : d("", !0)
|
|
39
|
+
], 2);
|
|
40
|
+
}
|
|
41
|
+
const V = /* @__PURE__ */ p(b, [["render", y], ["__scopeId", "data-v-d999e0e7"]]);
|
|
42
|
+
export {
|
|
43
|
+
V as default
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs"),s=e.defineComponent({name:"BaseTooltip",inheritAttrs:!1,props:{theme:{type:Object,default(){return{color:"blue",size:"sm"}}},direction:{type:String,default:"top"},customTooltipClass:{type:String,default:""},showTooltipContentManually:{type:Boolean,default:!0}}});function r(t,n,a,i,p,c){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["base-tooltip",t.$attrs.class])},[e.renderSlot(t.$slots,"trigger",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass(["bg-transparent",[t.theme.size,`${t.customTooltipClass?t.customTooltipClass:"tooltip-content-wrapper"}`]])},[t.showTooltipContentManually?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10",["base-tooltip-arrow",t.direction,t.theme.color,t.theme.size]])},[e.renderSlot(t.$slots,"content",{},void 0,!0)],2)):e.createCommentVNode("",!0)],2)],2)}const l=o._export_sfc(s,[["render",r],["__scopeId","data-v-cdc2511a"]]);module.exports=l;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as o, createElementBlock as s, normalizeClass as t, renderSlot as a, createElementVNode as l, createCommentVNode as i } from "vue";
|
|
2
|
+
import { _ as n } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const p = r({
|
|
4
|
+
name: "BaseTooltip",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
theme: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default() {
|
|
10
|
+
return {
|
|
11
|
+
color: "blue",
|
|
12
|
+
size: "sm"
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
direction: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "top"
|
|
19
|
+
},
|
|
20
|
+
customTooltipClass: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
showTooltipContentManually: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function d(e, c, m, u, f, h) {
|
|
31
|
+
return o(), s("div", {
|
|
32
|
+
class: t(["base-tooltip", e.$attrs.class])
|
|
33
|
+
}, [
|
|
34
|
+
a(e.$slots, "trigger", {}, void 0, !0),
|
|
35
|
+
l("div", {
|
|
36
|
+
class: t(["bg-transparent", [
|
|
37
|
+
e.theme.size,
|
|
38
|
+
`${e.customTooltipClass ? e.customTooltipClass : "tooltip-content-wrapper"}`
|
|
39
|
+
]])
|
|
40
|
+
}, [
|
|
41
|
+
e.showTooltipContentManually ? (o(), s("div", {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: t(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", ["base-tooltip-arrow", e.direction, e.theme.color, e.theme.size]])
|
|
44
|
+
}, [
|
|
45
|
+
a(e.$slots, "content", {}, void 0, !0)
|
|
46
|
+
], 2)) : i("", !0)
|
|
47
|
+
], 2)
|
|
48
|
+
], 2);
|
|
49
|
+
}
|
|
50
|
+
const $ = /* @__PURE__ */ n(p, [["render", d], ["__scopeId", "data-v-cdc2511a"]]);
|
|
51
|
+
export {
|
|
52
|
+
$ as default
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./BaseFloatingLabel.cjs"),t=require("vue"),o=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs"),s=t.defineComponent({name:"BaseUploadFile",components:{BaseFloatingLabel:n},inheritAttrs:!1,props:{withMargin:{type:Boolean,default:!0},labelText:{type:String,default:""},clear:{type:Boolean,default:!1}},emits:["cleared","uploaded"],data(){return{filename:""}},watch:{clear(e){e&&(this.filename="",this.$emit("cleared"))}},methods:{handleInput({target:e}){if(!e)return;const i=e.files;i?.length&&(this.filename=i[0].name,this.$emit("uploaded",i[0]))}}}),u={class:"uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-h-[47px] uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-px-2 uikit-py-0 uikit-text-start"},r={class:"uikit-invisible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text"},d=["innerHTML"],p={class:"upload-file-input uikit-flex uikit-h-[42px] uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-bg-w-lavender"},k=["id","multiple","accept"];function c(e,i,f,b,h,g){const l=t.resolveComponent("BaseFloatingLabel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["base-upload-file-wrapper uikit-relative",[{"mt-10":e.withMargin},e.$attrs.class]])},[t.createElementVNode("fieldset",u,[t.createElementVNode("legend",r,[t.createElementVNode("span",{class:"uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",innerHTML:e.labelText},null,8,d)])]),e.labelText?(t.openBlock(),t.createBlock(l,{key:0,class:t.normalizeClass(e.$attrs["floating-label-classes"]),"label-text":e.labelText,"label-state":"floating-label"},null,8,["class","label-text"])):t.createCommentVNode("",!0),t.createElementVNode("label",p,[t.createElementVNode("input",{id:e.$attrs.id,multiple:e.$attrs.multiple,type:"file",class:"uikit-hidden",accept:e.$attrs.accept,onInput:i[0]||(i[0]=(...a)=>e.handleInput&&e.handleInput(...a))},null,40,k),t.renderSlot(e.$slots,"label",{filename:e.filename})])],2)}const m=o._export_sfc(s,[["render",c]]);module.exports=m;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import s from "./BaseFloatingLabel.js";
|
|
2
|
+
import { defineComponent as u, resolveComponent as r, openBlock as l, createElementBlock as d, normalizeClass as a, createElementVNode as t, createBlock as p, createCommentVNode as k, renderSlot as c } from "vue";
|
|
3
|
+
import { _ as f } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const m = u({
|
|
5
|
+
name: "BaseUploadFile",
|
|
6
|
+
components: {
|
|
7
|
+
BaseFloatingLabel: s
|
|
8
|
+
},
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
props: {
|
|
11
|
+
withMargin: { type: Boolean, default: !0 },
|
|
12
|
+
labelText: { type: String, default: "" },
|
|
13
|
+
clear: { type: Boolean, default: !1 }
|
|
14
|
+
},
|
|
15
|
+
emits: ["cleared", "uploaded"],
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
filename: ""
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
watch: {
|
|
22
|
+
clear(e) {
|
|
23
|
+
e && (this.filename = "", this.$emit("cleared"));
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
handleInput({ target: e }) {
|
|
28
|
+
if (!e)
|
|
29
|
+
return;
|
|
30
|
+
const i = e.files;
|
|
31
|
+
i?.length && (this.filename = i[0].name, this.$emit("uploaded", i[0]));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}), h = { class: "uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-h-[47px] uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-px-2 uikit-py-0 uikit-text-start" }, b = { class: "uikit-invisible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text" }, w = ["innerHTML"], $ = { class: "upload-file-input uikit-flex uikit-h-[42px] uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-bg-w-lavender" }, g = ["id", "multiple", "accept"];
|
|
35
|
+
function B(e, i, v, y, x, F) {
|
|
36
|
+
const n = r("BaseFloatingLabel");
|
|
37
|
+
return l(), d("div", {
|
|
38
|
+
class: a(["base-upload-file-wrapper uikit-relative", [{ "mt-10": e.withMargin }, e.$attrs.class]])
|
|
39
|
+
}, [
|
|
40
|
+
t("fieldset", h, [
|
|
41
|
+
t("legend", b, [
|
|
42
|
+
t("span", {
|
|
43
|
+
class: "uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",
|
|
44
|
+
innerHTML: e.labelText
|
|
45
|
+
}, null, 8, w)
|
|
46
|
+
])
|
|
47
|
+
]),
|
|
48
|
+
e.labelText ? (l(), p(n, {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: a(e.$attrs["floating-label-classes"]),
|
|
51
|
+
"label-text": e.labelText,
|
|
52
|
+
"label-state": "floating-label"
|
|
53
|
+
}, null, 8, ["class", "label-text"])) : k("", !0),
|
|
54
|
+
t("label", $, [
|
|
55
|
+
t("input", {
|
|
56
|
+
id: e.$attrs.id,
|
|
57
|
+
multiple: e.$attrs.multiple,
|
|
58
|
+
type: "file",
|
|
59
|
+
class: "uikit-hidden",
|
|
60
|
+
accept: e.$attrs.accept,
|
|
61
|
+
onInput: i[0] || (i[0] = (...o) => e.handleInput && e.handleInput(...o))
|
|
62
|
+
}, null, 40, g),
|
|
63
|
+
c(e.$slots, "label", { filename: e.filename })
|
|
64
|
+
])
|
|
65
|
+
], 2);
|
|
66
|
+
}
|
|
67
|
+
const C = /* @__PURE__ */ f(m, [["render", B]]);
|
|
68
|
+
export {
|
|
69
|
+
C as default
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),u=require("../../../_plugin-vue_export-helper-BHFhmbuH.cjs"),c=["id"],k=["id","data-cy","checked","disabled"],p=["for"],b=i.defineComponent({__name:"CheckboxBtn",props:{id:{},inputClass:{default:""},inline:{type:Boolean,default:!1},label:{default:""},labelClass:{default:""},isValid:{default:null},modelValue:{type:Boolean,default:!1},containerId:{default:""},containerClass:{default:""},handleLabelClick:{type:Boolean,default:!0}},emits:["click","change","update:modelValue"],setup(r,{emit:o}){const l=r,t=o,n=()=>{t("change",{id:l.id,label:l.label,checked:!l.modelValue}),t("update:modelValue",!l.modelValue)},s=()=>{t("click"),l.handleLabelClick&&(t("change",{id:l.id,label:l.label,checked:!l.modelValue}),t("update:modelValue",!l.modelValue))};return(e,a)=>(i.openBlock(),i.createElementBlock("div",{id:e.containerId,class:i.normalizeClass(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer",[{"uikit-mr-4 uikit-inline-flex uikit-items-center":e.inline},{"uikit-py-10px":!e.inline&&!e.$attrs["wrapper-margin-y"]},e.$attrs["wrapper-margin-y"],e.containerClass]]),onClick:i.withModifiers(s,["stop","prevent"])},[i.createElementVNode("input",{id:`${e.id}`,ref:"checkbox","data-cy":e.$attrs["data-cy"],class:i.normalizeClass(["uikit-absolute uikit-left-0 uikit-h-4 uikit-w-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer",[{"!uikit-border-w-danger":e.isValid===!1},e.inputClass,e.isValid===!1?"checked-bg-invalid":"checked-bg"]]),type:"checkbox",checked:e.$attrs.checked||e.modelValue,disabled:e.$attrs.disabled,onChange:a[0]||(a[0]=i.withModifiers(d=>n(),["stop","prevent"])),onClick:a[1]||(a[1]=i.withModifiers(d=>t("click"),["stop"]))},null,42,k),i.renderSlot(e.$slots,"label",{},()=>[i.createElementVNode("label",{class:i.normalizeClass(["uikit-pl-10px group-hover:uikit-cursor-pointer",[e.labelClass,{"uikit-text-w-danger":e.isValid===!1}]]),for:`${e.id}`},i.toDisplayString(e.label),11,p),e.$attrs.required?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["required after:uikit-content-['*']",[e.isValid!==!1?"after:uikit-text-w-primary":"after:uikit-text-w-danger"]])},null,2)):i.createCommentVNode("",!0)],!0)],10,c))}}),f=u._export_sfc(b,[["__scopeId","data-v-b97eed56"]]);module.exports=f;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as b, openBlock as r, createElementBlock as d, normalizeClass as a, withModifiers as o, createElementVNode as n, renderSlot as f, toDisplayString as m, createCommentVNode as h } from "vue";
|
|
2
|
+
import { _ as g } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const C = ["id"], V = ["id", "data-cy", "checked", "disabled"], y = ["for"], v = /* @__PURE__ */ b({
|
|
4
|
+
__name: "CheckboxBtn",
|
|
5
|
+
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
inputClass: { default: "" },
|
|
8
|
+
inline: { type: Boolean, default: !1 },
|
|
9
|
+
label: { default: "" },
|
|
10
|
+
labelClass: { default: "" },
|
|
11
|
+
isValid: { default: null },
|
|
12
|
+
modelValue: { type: Boolean, default: !1 },
|
|
13
|
+
containerId: { default: "" },
|
|
14
|
+
containerClass: { default: "" },
|
|
15
|
+
handleLabelClick: { type: Boolean, default: !0 }
|
|
16
|
+
},
|
|
17
|
+
emits: ["click", "change", "update:modelValue"],
|
|
18
|
+
setup(s, { emit: u }) {
|
|
19
|
+
const i = s, t = u, k = () => {
|
|
20
|
+
t("change", {
|
|
21
|
+
id: i.id,
|
|
22
|
+
label: i.label,
|
|
23
|
+
checked: !i.modelValue
|
|
24
|
+
}), t("update:modelValue", !i.modelValue);
|
|
25
|
+
}, c = () => {
|
|
26
|
+
t("click"), i.handleLabelClick && (t("change", {
|
|
27
|
+
id: i.id,
|
|
28
|
+
label: i.label,
|
|
29
|
+
checked: !i.modelValue
|
|
30
|
+
}), t("update:modelValue", !i.modelValue));
|
|
31
|
+
};
|
|
32
|
+
return (e, l) => (r(), d("div", {
|
|
33
|
+
id: e.containerId,
|
|
34
|
+
class: a(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer", [
|
|
35
|
+
{ "uikit-mr-4 uikit-inline-flex uikit-items-center": e.inline },
|
|
36
|
+
{ "uikit-py-10px": !e.inline && !e.$attrs["wrapper-margin-y"] },
|
|
37
|
+
e.$attrs["wrapper-margin-y"],
|
|
38
|
+
e.containerClass
|
|
39
|
+
]]),
|
|
40
|
+
onClick: o(c, ["stop", "prevent"])
|
|
41
|
+
}, [
|
|
42
|
+
n("input", {
|
|
43
|
+
id: `${e.id}`,
|
|
44
|
+
ref: "checkbox",
|
|
45
|
+
"data-cy": e.$attrs["data-cy"],
|
|
46
|
+
class: a(["uikit-absolute uikit-left-0 uikit-h-4 uikit-w-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
|
|
47
|
+
{ "!uikit-border-w-danger": e.isValid === !1 },
|
|
48
|
+
e.inputClass,
|
|
49
|
+
e.isValid === !1 ? "checked-bg-invalid" : "checked-bg"
|
|
50
|
+
]]),
|
|
51
|
+
type: "checkbox",
|
|
52
|
+
checked: e.$attrs.checked || e.modelValue,
|
|
53
|
+
disabled: e.$attrs.disabled,
|
|
54
|
+
onChange: l[0] || (l[0] = o((p) => k(), ["stop", "prevent"])),
|
|
55
|
+
onClick: l[1] || (l[1] = o((p) => t("click"), ["stop"]))
|
|
56
|
+
}, null, 42, V),
|
|
57
|
+
f(e.$slots, "label", {}, () => [
|
|
58
|
+
n("label", {
|
|
59
|
+
class: a(["uikit-pl-10px group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
|
|
60
|
+
for: `${e.id}`
|
|
61
|
+
}, m(e.label), 11, y),
|
|
62
|
+
e.$attrs.required ? (r(), d("span", {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: a(["required after:uikit-content-['*']", [
|
|
65
|
+
e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
|
|
66
|
+
]])
|
|
67
|
+
}, null, 2)) : h("", !0)
|
|
68
|
+
], !0)
|
|
69
|
+
], 10, C));
|
|
70
|
+
}
|
|
71
|
+
}), B = /* @__PURE__ */ g(v, [["__scopeId", "data-v-b97eed56"]]);
|
|
72
|
+
export {
|
|
73
|
+
B as default
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../../../CheckboxGroup.vue_vue_type_script_setup_true_lang-BkB2KUyO.cjs");module.exports=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),s=require("../../../_plugin-vue_export-helper-BHFhmbuH.cjs"),r=i.defineComponent({name:"RadioButton",inheritAttrs:!1,props:{label:{type:[String,Boolean],required:!0},isChecked:{type:Boolean}},emits:["change"],methods:{emitChange(){this.$emit("change",{id:this.$attrs.id,label:this.label,name:this.$attrs.name})},handleClick(){const e=this.$refs.checkbox;e.checked=!e.checked,this.emitChange()},handleOnInput(){this.emitChange()}}}),o=["id","value","name","checked"],a=["for"];function l(e,t,u,k,h,c){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.$attrs.class,"uikit-mb-4 uikit-mr-4 uikit-inline-block"]),onClick:t[1]||(t[1]=i.withModifiers((...n)=>e.handleClick&&e.handleClick(...n),["stop"]))},[i.createElementVNode("input",{id:e.$attrs.id,ref:"checkbox",type:"radio",class:"uikit-hidden",value:e.label,name:e.$attrs.name,checked:e.isChecked,onChange:t[0]||(t[0]=i.withModifiers((...n)=>e.handleOnInput&&e.handleOnInput(...n),["stop"]))},null,40,o),i.createElementVNode("label",{class:i.normalizeClass([e.$attrs["label-classes"],"uikit-flex uikit-cursor-pointer uikit-items-center"]),for:e.$attrs.id},[i.createElementVNode("span",{class:i.normalizeClass(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200",{"uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]":e.isChecked}])},null,2),i.createTextVNode(" "+i.toDisplayString(e.label),1)],10,a)],2)}const d=s._export_sfc(r,[["render",l]]);module.exports=d;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as a, createElementBlock as l, normalizeClass as n, withModifiers as o, createElementVNode as s, createTextVNode as d, toDisplayString as u } from "vue";
|
|
2
|
+
import { _ as k } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const h = r({
|
|
4
|
+
name: "RadioButton",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
label: { type: [String, Boolean], required: !0 },
|
|
8
|
+
isChecked: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
emits: ["change"],
|
|
11
|
+
methods: {
|
|
12
|
+
emitChange() {
|
|
13
|
+
this.$emit("change", {
|
|
14
|
+
id: this.$attrs.id,
|
|
15
|
+
label: this.label,
|
|
16
|
+
name: this.$attrs.name
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
handleClick() {
|
|
20
|
+
const i = this.$refs.checkbox;
|
|
21
|
+
i.checked = !i.checked, this.emitChange();
|
|
22
|
+
},
|
|
23
|
+
handleOnInput() {
|
|
24
|
+
this.emitChange();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}), c = ["id", "value", "name", "checked"], m = ["for"];
|
|
28
|
+
function p(i, e, b, f, C, $) {
|
|
29
|
+
return a(), l("div", {
|
|
30
|
+
class: n([i.$attrs.class, "uikit-mb-4 uikit-mr-4 uikit-inline-block"]),
|
|
31
|
+
onClick: e[1] || (e[1] = o((...t) => i.handleClick && i.handleClick(...t), ["stop"]))
|
|
32
|
+
}, [
|
|
33
|
+
s("input", {
|
|
34
|
+
id: i.$attrs.id,
|
|
35
|
+
ref: "checkbox",
|
|
36
|
+
type: "radio",
|
|
37
|
+
class: "uikit-hidden",
|
|
38
|
+
value: i.label,
|
|
39
|
+
name: i.$attrs.name,
|
|
40
|
+
checked: i.isChecked,
|
|
41
|
+
onChange: e[0] || (e[0] = o((...t) => i.handleOnInput && i.handleOnInput(...t), ["stop"]))
|
|
42
|
+
}, null, 40, c),
|
|
43
|
+
s("label", {
|
|
44
|
+
class: n([i.$attrs["label-classes"], "uikit-flex uikit-cursor-pointer uikit-items-center"]),
|
|
45
|
+
for: i.$attrs.id
|
|
46
|
+
}, [
|
|
47
|
+
s("span", {
|
|
48
|
+
class: n(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200", {
|
|
49
|
+
"uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]": i.isChecked
|
|
50
|
+
}])
|
|
51
|
+
}, null, 2),
|
|
52
|
+
d(" " + u(i.label), 1)
|
|
53
|
+
], 10, m)
|
|
54
|
+
], 2);
|
|
55
|
+
}
|
|
56
|
+
const y = /* @__PURE__ */ k(h, [["render", p]]);
|
|
57
|
+
export {
|
|
58
|
+
y as default
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./RadioButton.cjs"),t=require("vue"),n=require("../../../_plugin-vue_export-helper-BHFhmbuH.cjs"),o=t.defineComponent({name:"RadioGroup",components:{RadioButton:i},inheritAttrs:!1,props:{initialValue:{type:Object},radioValues:{type:Array},resetRadio:{type:Boolean,default:!1}},emits:["resetted","update:modelValue"],data(){return{selectedValue:null}},watch:{resetRadio(e){e&&(this.reset(),this.$emit("resetted"))}},created(){this.initialValue&&this.handleChange(this.initialValue)},methods:{handleChange(e){this.selectedValue=e,this.$emit("update:modelValue",e)},reset(){this.selectedValue=null},isActive(e){return this.selectedValue?this.selectedValue.id===e.id:!1}}}),r=["data-cy"];function d(e,c,h,p,m,V){const l=t.resolveComponent("radio-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-group-container",e.$attrs.class||""]),"data-cy":e.$attrs["data-cy"]||""},[t.renderSlot(e.$slots,"radio_element",{handleClick:e.handleChange,activeValue:e.selectedValue,reset:e.reset,isActive:e.isActive},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radioValues,(a,s)=>(t.openBlock(),t.createBlock(l,{id:a.id,key:s,label:`${a.label}`,"is-checked":a.label===e.selectedValue?.label,onChange:e.handleChange},null,8,["id","label","is-checked","onChange"]))),128))])],10,r)}const u=n._export_sfc(o,[["render",d]]);module.exports=u;
|