@wikicasa-dev/components 2.1.2 → 2.1.3
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/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +5 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.js +5 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +5 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.js +5 -41
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +5 -81
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -1593
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +89 -85
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +129 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +101 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +125 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +127 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +227 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +121 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +85 -0
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +21 -21
- package/dist/{chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → packages/components/lib/UIKit/BaseAlert.vue.js} +2 -2
- package/dist/{chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +64 -74
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +5 -5
- package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js → packages/components/lib/UIKit/BaseButton.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/{chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
- package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js → packages/components/lib/UIKit/BaseModal.vue.js} +56 -61
- package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js → packages/components/lib/UIKit/BasePagination.vue.js} +71 -83
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +207 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +114 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +9 -9
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +8 -8
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +1 -1
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +247 -0
- package/package.json +1 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/polyline.tNTK3v2u.js +0 -129
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
- /package/dist/assets/{BaseAlert.css → packages/components/lib/UIKit/BaseAlert.css} +0 -0
- /package/dist/assets/{BaseBadge.css → packages/components/lib/UIKit/BaseBadge.css} +0 -0
- /package/dist/assets/{BaseCard.css → packages/components/lib/UIKit/BaseCard.css} +0 -0
- /package/dist/assets/{BaseComplexToggle.css → packages/components/lib/UIKit/BaseComplexToggle.css} +0 -0
- /package/dist/assets/{BaseFloatingLabel.css → packages/components/lib/UIKit/BaseFloatingLabel.css} +0 -0
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BaseInput.css → packages/components/lib/UIKit/BaseInput.css} +0 -0
- /package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{BaseSlider.css → packages/components/lib/UIKit/BaseSlider.css} +0 -0
- /package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +0 -0
- /package/dist/assets/{BaseTextarea.css → packages/components/lib/UIKit/BaseTextarea.css} +0 -0
- /package/dist/assets/{BaseToggle.css → packages/components/lib/UIKit/BaseToggle.css} +0 -0
- /package/dist/assets/{BaseTooltip.css → packages/components/lib/UIKit/BaseTooltip.css} +0 -0
- /package/dist/assets/{CheckboxBtn.css → packages/components/lib/UIKit/Checkbox/CheckboxBtn.css} +0 -0
- /package/dist/assets/{BaseShimmerLoader.css → packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css} +0 -0
- /package/dist/assets/{SimpleSlider.css → packages/components/lib/UIKit/Slider/SimpleSlider.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
- /package/dist/assets/{index.css → packages/components/src/tailwind.css} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { e as i, c as m } from "./utils.js";
|
|
2
|
+
function o(f, a, n, l) {
|
|
3
|
+
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
+
if (!n[e] && n.auto === !0) {
|
|
5
|
+
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
+
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
+
}
|
|
8
|
+
}), n;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
o as c
|
|
12
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
3
|
+
}
|
|
4
|
+
function o(e, n) {
|
|
5
|
+
e === void 0 && (e = {}), n === void 0 && (n = {});
|
|
6
|
+
const u = ["__proto__", "constructor", "prototype"];
|
|
7
|
+
Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
|
|
8
|
+
typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
const i = {
|
|
12
|
+
body: {},
|
|
13
|
+
addEventListener() {
|
|
14
|
+
},
|
|
15
|
+
removeEventListener() {
|
|
16
|
+
},
|
|
17
|
+
activeElement: {
|
|
18
|
+
blur() {
|
|
19
|
+
},
|
|
20
|
+
nodeName: ""
|
|
21
|
+
},
|
|
22
|
+
querySelector() {
|
|
23
|
+
return null;
|
|
24
|
+
},
|
|
25
|
+
querySelectorAll() {
|
|
26
|
+
return [];
|
|
27
|
+
},
|
|
28
|
+
getElementById() {
|
|
29
|
+
return null;
|
|
30
|
+
},
|
|
31
|
+
createEvent() {
|
|
32
|
+
return {
|
|
33
|
+
initEvent() {
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
createElement() {
|
|
38
|
+
return {
|
|
39
|
+
children: [],
|
|
40
|
+
childNodes: [],
|
|
41
|
+
style: {},
|
|
42
|
+
setAttribute() {
|
|
43
|
+
},
|
|
44
|
+
getElementsByTagName() {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
createElementNS() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
importNode() {
|
|
53
|
+
return null;
|
|
54
|
+
},
|
|
55
|
+
location: {
|
|
56
|
+
hash: "",
|
|
57
|
+
host: "",
|
|
58
|
+
hostname: "",
|
|
59
|
+
href: "",
|
|
60
|
+
origin: "",
|
|
61
|
+
pathname: "",
|
|
62
|
+
protocol: "",
|
|
63
|
+
search: ""
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function s() {
|
|
67
|
+
const e = typeof document < "u" ? document : {};
|
|
68
|
+
return o(e, i), e;
|
|
69
|
+
}
|
|
70
|
+
const c = {
|
|
71
|
+
document: i,
|
|
72
|
+
navigator: {
|
|
73
|
+
userAgent: ""
|
|
74
|
+
},
|
|
75
|
+
location: {
|
|
76
|
+
hash: "",
|
|
77
|
+
host: "",
|
|
78
|
+
hostname: "",
|
|
79
|
+
href: "",
|
|
80
|
+
origin: "",
|
|
81
|
+
pathname: "",
|
|
82
|
+
protocol: "",
|
|
83
|
+
search: ""
|
|
84
|
+
},
|
|
85
|
+
history: {
|
|
86
|
+
replaceState() {
|
|
87
|
+
},
|
|
88
|
+
pushState() {
|
|
89
|
+
},
|
|
90
|
+
go() {
|
|
91
|
+
},
|
|
92
|
+
back() {
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
CustomEvent: function() {
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
addEventListener() {
|
|
99
|
+
},
|
|
100
|
+
removeEventListener() {
|
|
101
|
+
},
|
|
102
|
+
getComputedStyle() {
|
|
103
|
+
return {
|
|
104
|
+
getPropertyValue() {
|
|
105
|
+
return "";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
Image() {
|
|
110
|
+
},
|
|
111
|
+
Date() {
|
|
112
|
+
},
|
|
113
|
+
screen: {},
|
|
114
|
+
setTimeout() {
|
|
115
|
+
},
|
|
116
|
+
clearTimeout() {
|
|
117
|
+
},
|
|
118
|
+
matchMedia() {
|
|
119
|
+
return {};
|
|
120
|
+
},
|
|
121
|
+
requestAnimationFrame(e) {
|
|
122
|
+
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
123
|
+
},
|
|
124
|
+
cancelAnimationFrame(e) {
|
|
125
|
+
typeof setTimeout > "u" || clearTimeout(e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
function a() {
|
|
129
|
+
const e = typeof window < "u" ? window : {};
|
|
130
|
+
return o(e, c), e;
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
a,
|
|
134
|
+
s as g
|
|
135
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { a, g as c } from "./ssr-window.esm.js";
|
|
2
|
+
function u(t) {
|
|
3
|
+
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
4
|
+
}
|
|
5
|
+
function d(t, e) {
|
|
6
|
+
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
7
|
+
}
|
|
8
|
+
function g() {
|
|
9
|
+
return Date.now();
|
|
10
|
+
}
|
|
11
|
+
function m(t) {
|
|
12
|
+
const e = a();
|
|
13
|
+
let n;
|
|
14
|
+
return e.getComputedStyle && (n = e.getComputedStyle(t, null)), !n && t.currentStyle && (n = t.currentStyle), n || (n = t.style), n;
|
|
15
|
+
}
|
|
16
|
+
function y(t, e) {
|
|
17
|
+
e === void 0 && (e = "x");
|
|
18
|
+
const n = a();
|
|
19
|
+
let r, i, l;
|
|
20
|
+
const o = m(t);
|
|
21
|
+
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((s) => s.replace(",", ".")).join(", ")), l = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (l = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = l.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = l.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = l.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
22
|
+
}
|
|
23
|
+
function S(t) {
|
|
24
|
+
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
25
|
+
}
|
|
26
|
+
function h(t, e) {
|
|
27
|
+
e === void 0 && (e = "");
|
|
28
|
+
const n = a(), r = [...t.children];
|
|
29
|
+
return n.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((i) => i.matches(e)) : r;
|
|
30
|
+
}
|
|
31
|
+
function w(t, e) {
|
|
32
|
+
e === void 0 && (e = []);
|
|
33
|
+
const n = document.createElement(t);
|
|
34
|
+
return n.classList.add(...Array.isArray(e) ? e : u(e)), n;
|
|
35
|
+
}
|
|
36
|
+
function T(t) {
|
|
37
|
+
const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body, l = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, s = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
|
|
38
|
+
return {
|
|
39
|
+
top: r.top + s - l,
|
|
40
|
+
left: r.left + f - o
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function b(t) {
|
|
44
|
+
let e = t, n;
|
|
45
|
+
if (e) {
|
|
46
|
+
for (n = 0; (e = e.previousSibling) !== null; )
|
|
47
|
+
e.nodeType === 1 && (n += 1);
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function C(t, e) {
|
|
52
|
+
const n = [];
|
|
53
|
+
let r = t.parentElement;
|
|
54
|
+
for (; r; )
|
|
55
|
+
e ? r.matches(e) && n.push(r) : n.push(r), r = r.parentElement;
|
|
56
|
+
return n;
|
|
57
|
+
}
|
|
58
|
+
function E(t, e) {
|
|
59
|
+
function n(r) {
|
|
60
|
+
r.target === t && (e.call(t, r), t.removeEventListener("transitionend", n));
|
|
61
|
+
}
|
|
62
|
+
e && t.addEventListener("transitionend", n);
|
|
63
|
+
}
|
|
64
|
+
function x(t, e, n) {
|
|
65
|
+
const r = a();
|
|
66
|
+
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
67
|
+
}
|
|
68
|
+
function L(t) {
|
|
69
|
+
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
C as a,
|
|
73
|
+
T as b,
|
|
74
|
+
w as c,
|
|
75
|
+
g as d,
|
|
76
|
+
h as e,
|
|
77
|
+
x as f,
|
|
78
|
+
b as h,
|
|
79
|
+
u as i,
|
|
80
|
+
y as j,
|
|
81
|
+
E as k,
|
|
82
|
+
S as l,
|
|
83
|
+
L as m,
|
|
84
|
+
d as n
|
|
85
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css';/* empty css */
|
|
3
|
+
export {
|
|
4
|
+
i as Navigation
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css';/* empty css */
|
|
3
|
+
export {
|
|
4
|
+
i as Pagination
|
|
5
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
|
|
2
|
+
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
+
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
|
+
const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "AccessibleSelect",
|
|
9
|
+
props: /* @__PURE__ */ $({
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
dropdownPosition: { default: "bottom" },
|
|
12
|
+
namespace: {},
|
|
13
|
+
options: {},
|
|
14
|
+
isValid: { type: [Boolean, null], default: null },
|
|
15
|
+
feedback: {},
|
|
16
|
+
closeOnBodyPressed: { type: Boolean, default: !0 },
|
|
17
|
+
border: { type: Boolean, default: !0 },
|
|
18
|
+
fieldsetClasses: {},
|
|
19
|
+
legendClasses: {},
|
|
20
|
+
dropdownClasses: {},
|
|
21
|
+
labelClasses: {},
|
|
22
|
+
btnClasses: {},
|
|
23
|
+
dropdownItemClasses: {},
|
|
24
|
+
btnTextClasses: {},
|
|
25
|
+
arrowIcon: {},
|
|
26
|
+
dataCy: {},
|
|
27
|
+
wrapperClasses: {}
|
|
28
|
+
}, {
|
|
29
|
+
modelValue: {
|
|
30
|
+
default: () => ({ id: "", label: "" })
|
|
31
|
+
},
|
|
32
|
+
modelModifiers: {},
|
|
33
|
+
toggleDropdown: {
|
|
34
|
+
default: void 0
|
|
35
|
+
},
|
|
36
|
+
toggleDropdownModifiers: {}
|
|
37
|
+
}),
|
|
38
|
+
emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
39
|
+
setup(u, { emit: B }) {
|
|
40
|
+
const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: c, selectedIdx: D } = q({
|
|
41
|
+
optionsLength: u.options.length,
|
|
42
|
+
isDropdownOpen: i
|
|
43
|
+
}), m = (e) => {
|
|
44
|
+
i.value = !1, k.value = e;
|
|
45
|
+
};
|
|
46
|
+
w(D, (e) => {
|
|
47
|
+
m(u.options[e]), i.value = !1;
|
|
48
|
+
}), w(y, (e) => {
|
|
49
|
+
e && (i.value = !i.value, y.value = !1);
|
|
50
|
+
}), w(i, (e) => {
|
|
51
|
+
h("update:dropdownState", e);
|
|
52
|
+
});
|
|
53
|
+
const g = ({ target: e }) => {
|
|
54
|
+
`${t.value}_btn` !== e.id && (i.value = !1);
|
|
55
|
+
};
|
|
56
|
+
return E(() => {
|
|
57
|
+
u.closeOnBodyPressed && document.addEventListener("click", g);
|
|
58
|
+
}), P(() => {
|
|
59
|
+
u.closeOnBodyPressed && document.removeEventListener("click", g);
|
|
60
|
+
}), (e, n) => (a(), s("div", {
|
|
61
|
+
class: l(e.$attrs.class)
|
|
62
|
+
}, [
|
|
63
|
+
o("div", {
|
|
64
|
+
class: l(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
|
|
65
|
+
}, [
|
|
66
|
+
e.label ? (a(), s("label", {
|
|
67
|
+
key: 0,
|
|
68
|
+
id: `${t.value}_label`,
|
|
69
|
+
class: l(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
70
|
+
f.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
71
|
+
e.labelClasses,
|
|
72
|
+
{ "uikit-left-9": e.$slots.lefticon && !f.value },
|
|
73
|
+
{ "uikit-left-4": !e.$slots.lefticon && !f.value }
|
|
74
|
+
]]),
|
|
75
|
+
innerHTML: e.label
|
|
76
|
+
}, null, 10, R)) : d("", !0),
|
|
77
|
+
e.$slots.lefticon ? (a(), s("span", {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
80
|
+
onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
|
|
81
|
+
}, [
|
|
82
|
+
z(e.$slots, "lefticon")
|
|
83
|
+
])) : d("", !0),
|
|
84
|
+
o("button", {
|
|
85
|
+
id: `${t.value}_btn`,
|
|
86
|
+
ref_key: "btnEl",
|
|
87
|
+
ref: I,
|
|
88
|
+
type: "button",
|
|
89
|
+
"data-cy": e.dataCy,
|
|
90
|
+
class: l(["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]]),
|
|
91
|
+
"aria-required": !!e.$attrs.required,
|
|
92
|
+
role: "combobox",
|
|
93
|
+
"aria-haspopup": "listbox",
|
|
94
|
+
"aria-controls": `${t.value}_dropdown`,
|
|
95
|
+
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
96
|
+
"aria-expanded": i.value,
|
|
97
|
+
"aria-activedescendant": b(c) >= 0 && i.value ? `${t.value}_element_${e.options[b(c)].label}` : "",
|
|
98
|
+
"aria-invalid": e.isValid === !1,
|
|
99
|
+
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
100
|
+
onClick: n[1] || (n[1] = (r) => {
|
|
101
|
+
i.value = !i.value, h("click", r);
|
|
102
|
+
})
|
|
103
|
+
}, [
|
|
104
|
+
o("span", {
|
|
105
|
+
class: l(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
106
|
+
innerHTML: k.value.visibleLabel || k.value.label
|
|
107
|
+
}, null, 10, W),
|
|
108
|
+
o("span", G, [
|
|
109
|
+
e.isValid == !1 ? (a(), N(b(K), {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: "uikit-mr-1",
|
|
112
|
+
width: 20,
|
|
113
|
+
height: 20,
|
|
114
|
+
"stroke-color": "#FA4F64"
|
|
115
|
+
})) : d("", !0),
|
|
116
|
+
O(b(j), {
|
|
117
|
+
class: l(["uikit-transition-transform motion-reduce:uikit-transition-none", [
|
|
118
|
+
i.value ? "uikit-rotate-180" : "",
|
|
119
|
+
e.arrowIcon?.classes
|
|
120
|
+
]]),
|
|
121
|
+
width: e.arrowIcon?.width ?? 18,
|
|
122
|
+
height: e.arrowIcon?.height ?? 18,
|
|
123
|
+
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
124
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
125
|
+
])
|
|
126
|
+
], 10, U),
|
|
127
|
+
o("fieldset", {
|
|
128
|
+
"aria-hidden": "true",
|
|
129
|
+
class: l(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
130
|
+
e.fieldsetClasses,
|
|
131
|
+
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
132
|
+
{
|
|
133
|
+
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
134
|
+
},
|
|
135
|
+
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
136
|
+
]])
|
|
137
|
+
}, [
|
|
138
|
+
o("legend", {
|
|
139
|
+
class: l([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
140
|
+
}, [
|
|
141
|
+
e.label ? (a(), s("span", {
|
|
142
|
+
key: 0,
|
|
143
|
+
class: l(["uikit-mx-5px", [k.value.label ? "uikit-invisible" : "uikit-hidden"]]),
|
|
144
|
+
innerHTML: e.label
|
|
145
|
+
}, null, 10, J)) : d("", !0)
|
|
146
|
+
], 2)
|
|
147
|
+
], 2),
|
|
148
|
+
o("ul", {
|
|
149
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
150
|
+
role: "listbox",
|
|
151
|
+
tabindex: -1,
|
|
152
|
+
"aria-multiselectable": !1,
|
|
153
|
+
class: l(["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", [
|
|
154
|
+
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
|
|
155
|
+
{
|
|
156
|
+
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
|
|
157
|
+
},
|
|
158
|
+
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
159
|
+
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
160
|
+
e.dropdownClasses
|
|
161
|
+
]]),
|
|
162
|
+
onClick: n[3] || (n[3] = p(() => {
|
|
163
|
+
}, ["stop"]))
|
|
164
|
+
}, [
|
|
165
|
+
(a(!0), s(T, null, S(e.options, (r, v) => (a(), s("li", {
|
|
166
|
+
id: `${t.value}_element_${e.options[v].label}`,
|
|
167
|
+
key: `${r.label}_${v}`,
|
|
168
|
+
role: "option",
|
|
169
|
+
"aria-selected": b(c) === v,
|
|
170
|
+
class: l(["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]),
|
|
171
|
+
onClick: p((C) => m(r), ["stop"]),
|
|
172
|
+
onMouseover: p((C) => c.value = v, ["stop"]),
|
|
173
|
+
onBlur: n[2] || (n[2] = p(() => {
|
|
174
|
+
}, ["stop"]))
|
|
175
|
+
}, [
|
|
176
|
+
o("label", Y, [
|
|
177
|
+
o("input", {
|
|
178
|
+
tabindex: "-1",
|
|
179
|
+
class: "uikit-m-0 uikit-appearance-none",
|
|
180
|
+
name: `${t.value}_radio`,
|
|
181
|
+
type: "radio",
|
|
182
|
+
checked: r.label === k.value.label,
|
|
183
|
+
onInput: p((C) => m(r), ["stop"])
|
|
184
|
+
}, null, 40, Z),
|
|
185
|
+
o("span", {
|
|
186
|
+
innerHTML: r.label
|
|
187
|
+
}, null, 8, x)
|
|
188
|
+
])
|
|
189
|
+
], 42, X))), 128))
|
|
190
|
+
], 10, Q)
|
|
191
|
+
], 2),
|
|
192
|
+
e.feedback ? (a(), s(T, { key: 0 }, [
|
|
193
|
+
e.feedback.valid ? (a(), s("span", {
|
|
194
|
+
key: 0,
|
|
195
|
+
id: `${t.value}_valid_msg`,
|
|
196
|
+
"arial-live": e.$attrs["aria-live"],
|
|
197
|
+
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
198
|
+
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
199
|
+
}, null, 8, _)) : d("", !0),
|
|
200
|
+
e.feedback.invalid ? (a(), s("span", {
|
|
201
|
+
key: 1,
|
|
202
|
+
id: `${t.value}_invalid_msg`,
|
|
203
|
+
"arial-live": e.$attrs["aria-live"],
|
|
204
|
+
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
205
|
+
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
206
|
+
}, null, 8, ee)) : d("", !0)
|
|
207
|
+
], 64)) : d("", !0)
|
|
208
|
+
], 2));
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
export {
|
|
212
|
+
se as default
|
|
213
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as p, ref as u, provide as c, renderSlot as d } from "vue";
|
|
2
|
+
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
4
|
+
import "../../../../../_virtual/polyline.js";
|
|
5
|
+
const k = /* @__PURE__ */ p({
|
|
6
|
+
__name: "BaseAccordion",
|
|
7
|
+
props: {
|
|
8
|
+
autoClose: { type: Boolean, default: !0 },
|
|
9
|
+
autoUpdate: { type: Boolean, default: !0 }
|
|
10
|
+
},
|
|
11
|
+
setup(l) {
|
|
12
|
+
const n = u(null), o = u(
|
|
13
|
+
{}
|
|
14
|
+
), i = (e, t) => {
|
|
15
|
+
if (l.autoClose && t && !f(t))
|
|
16
|
+
for (const a in t)
|
|
17
|
+
a !== `${e}` && (t[a].active = !1);
|
|
18
|
+
}, s = (e, t) => {
|
|
19
|
+
t && (t[e].active = !(t[e].active ?? !1));
|
|
20
|
+
}, r = (e, t) => {
|
|
21
|
+
i(e.id, t ?? o.value), n.value = e, s(e.id, t ?? o.value);
|
|
22
|
+
};
|
|
23
|
+
return c("handleClick", (e) => {
|
|
24
|
+
l.autoUpdate && r(e);
|
|
25
|
+
}), c("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
26
|
+
updatePrev: r,
|
|
27
|
+
prev: n.value
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
k as default
|
|
33
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
1
|
+
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
+
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -13,8 +13,8 @@ const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s(
|
|
|
13
13
|
toggleAccordion: { type: Function }
|
|
14
14
|
},
|
|
15
15
|
emits: ["click"],
|
|
16
|
-
setup(C, { emit:
|
|
17
|
-
const r =
|
|
16
|
+
setup(C, { emit: i }) {
|
|
17
|
+
const r = i;
|
|
18
18
|
return (o, t) => (d(), l("div", {
|
|
19
19
|
id: `${o.id}`,
|
|
20
20
|
class: e(["uikit-flex uikit-items-center uikit-justify-around", [
|
|
@@ -23,8 +23,8 @@ const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s(
|
|
|
23
23
|
]]),
|
|
24
24
|
onClick: t[1] || (t[1] = (a) => o.onContainerClickExpand && o.toggleAccordion())
|
|
25
25
|
}, [
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
n(o.$slots, "custom_content"),
|
|
27
|
+
n(o.$slots, "custom_btn", {
|
|
28
28
|
btnId: `btn-${o.id}`,
|
|
29
29
|
isOpen: o.accordionOpen,
|
|
30
30
|
toggleAccordion: o.toggleAccordion
|
|
@@ -56,5 +56,5 @@ const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s(
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
b as
|
|
59
|
+
b as default
|
|
60
60
|
};
|