@wikicasa-dev/components 2.1.2-alpha.3 → 2.1.2
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 +2 -3
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -3
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +36 -5
- package/dist/UIKit/BaseComplexToggle.js +105 -5
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +39 -5
- package/dist/UIKit/BaseIcon.js +25 -4
- package/dist/UIKit/BaseInput.js +210 -5
- package/dist/UIKit/BaseModal.js +2 -3
- 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 +206 -5
- package/dist/UIKit/BaseSnackbar.js +80 -5
- package/dist/UIKit/BaseTextarea.js +126 -5
- package/dist/UIKit/BaseToggle.js +41 -5
- package/dist/UIKit/BaseTooltip.js +40 -5
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +74 -5
- 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 +20 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +81 -5
- package/dist/UIKit/StaticSpinner.js +26 -5
- 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/assets/SwiperCarousel.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +246 -0
- package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js → chunks/ArrowIcon.Bq6Xr3uH.js} +3 -3
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +32 -0
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js → chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +8 -8
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js → chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js → chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +21 -21
- package/dist/{packages/components/lib/UIKit/BaseAlert.vue.js → chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/{packages/components/lib/UIKit/BaseAutocomplete.vue.js → chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +74 -64
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +19 -0
- package/dist/{packages/components/lib/UIKit/BaseBreadcrumb.vue.js → chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +5 -5
- package/dist/{packages/components/lib/UIKit/BaseButton.vue.js → chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +6 -6
- package/dist/{packages/components/lib/UIKit/BaseDropDown.vue.js → chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +25 -25
- package/dist/{packages/components/lib/UIKit/BaseModal.vue.js → chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +61 -56
- package/dist/{packages/components/lib/UIKit/BasePagination.vue.js → chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +83 -71
- package/dist/{packages/components/lib/UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabList.vue.js → chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js → chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabView.vue.js → chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +17 -17
- package/dist/{packages/components/lib/UIKit/BaseUploadFile.vue.js → chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +111 -0
- package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js → chunks/CloseIcon.BZ4U3aiI.js} +11 -11
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +27 -0
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js → chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +5 -5
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js → chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +4 -4
- package/dist/{packages/components/lib/chart/LineChart.vue.js → chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +2 -2
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/{packages/components/lib/UIKit/Radio/RadioButton.vue.js → chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +9 -9
- package/dist/{packages/components/lib/UIKit/Radio/RadioGroup.vue.js → chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
- package/dist/{packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js → chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +1 -1
- package/dist/{packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js → chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +8 -8
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/dist/chunks/polyline.tNTK3v2u.js +129 -0
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +1593 -6
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +85 -89
- package/package.json +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/_virtual/polyline.js +0 -2
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +0 -1
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +0 -1
- 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 +0 -9
- 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 +0 -2
- 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 +0 -40
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- 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 +0 -41
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +0 -22
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +0 -34
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +0 -12
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +0 -71
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +0 -121
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +0 -135
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +0 -85
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -33
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +0 -106
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +0 -40
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +0 -211
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +0 -7
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +0 -207
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +0 -127
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +0 -42
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +0 -27
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +0 -242
- /package/dist/assets/{packages/components/lib/UIKit/BaseAlert.css → BaseAlert.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseBadge.css → BaseBadge.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseCard.css → BaseCard.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseComplexToggle.css → BaseComplexToggle.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseFloatingLabel.css → BaseFloatingLabel.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseIcon.css → BaseIcon.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseInput.css → BaseInput.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseModal.css → BaseModal.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BasePaper.css → BasePaper.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css → BaseShimmerLoader.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseSlider.css → BaseSlider.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseSnackbar.css → BaseSnackbar.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseTextarea.css → BaseTextarea.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseToggle.css → BaseToggle.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseTooltip.css → BaseTooltip.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/Checkbox/CheckboxBtn.css → CheckboxBtn.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/Slider/SimpleSlider.css → SimpleSlider.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/StaticSpinner.css → StaticSpinner.css} +0 -0
- /package/dist/assets/{packages/components/src/tailwind.css → index.css} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
1
|
+
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as t, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
|
|
2
|
+
import { _ as B } from "./BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js";
|
|
3
|
+
import { _ as A } from "./BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js";
|
|
4
|
+
import { a as E } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
5
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -36,16 +36,16 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
36
36
|
() => {
|
|
37
37
|
},
|
|
38
38
|
!0
|
|
39
|
-
), C = (e,
|
|
40
|
-
a(
|
|
39
|
+
), C = (e, s = !1) => {
|
|
40
|
+
a(s ? "accordionOpened" : "accordionClosed", e), a("update:accordionState", s);
|
|
41
41
|
};
|
|
42
42
|
r && (r.value[i.id] = { id: i.id, title: i.title, active: i.active }), l(
|
|
43
43
|
() => d(r),
|
|
44
44
|
(e) => {
|
|
45
|
-
const
|
|
46
|
-
!
|
|
47
|
-
{ id: i.id, title: i.title, active:
|
|
48
|
-
|
|
45
|
+
const s = e?.[i.id];
|
|
46
|
+
!s || o.value === s.active || (o.value = s.active ?? !1, C(
|
|
47
|
+
{ id: i.id, title: i.title, active: s.active },
|
|
48
|
+
s.active
|
|
49
49
|
));
|
|
50
50
|
},
|
|
51
51
|
{ deep: !0, immediate: !0 }
|
|
@@ -61,7 +61,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
61
61
|
const n = () => {
|
|
62
62
|
o.value = !o.value;
|
|
63
63
|
};
|
|
64
|
-
return (e,
|
|
64
|
+
return (e, s) => (u(), v("div", {
|
|
65
65
|
class: m(e.rootClasses)
|
|
66
66
|
}, [
|
|
67
67
|
!e.$slots.custom_content && !e.$slots.custom_btn && !e.$slots.custom_accordion ? (u(), v("div", W, [
|
|
@@ -72,7 +72,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
72
72
|
"data-cy": e.dataCy,
|
|
73
73
|
"aria-expanded": o.value,
|
|
74
74
|
"aria-controls": `accordion-text-${e.id}`,
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: s[0] || (s[0] = O((N) => {
|
|
76
76
|
n(), d(b)?.({ id: e.id, title: e.title, active: o.value }), a("click");
|
|
77
77
|
}, ["prevent", "stop"]))
|
|
78
78
|
}, [
|
|
@@ -90,7 +90,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
90
90
|
height: e.arrowWidth
|
|
91
91
|
}, null, 8, ["class", "arrow-classes", "width", "height"])
|
|
92
92
|
], 10, I)
|
|
93
|
-
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(
|
|
93
|
+
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(B, {
|
|
94
94
|
key: 1,
|
|
95
95
|
id: e.id,
|
|
96
96
|
"btn-wrapper-classes": e.btnWrapperClasses,
|
|
@@ -102,10 +102,10 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
102
102
|
"accordion-open": o.value
|
|
103
103
|
}, {
|
|
104
104
|
custom_content: c(() => [
|
|
105
|
-
|
|
105
|
+
t(e.$slots, "custom_content")
|
|
106
106
|
]),
|
|
107
107
|
custom_btn: c(() => [
|
|
108
|
-
|
|
108
|
+
t(e.$slots, "custom_btn", {
|
|
109
109
|
btnId: `btn-${e.id}`,
|
|
110
110
|
isOpen: o.value,
|
|
111
111
|
toggleAccordion: n
|
|
@@ -113,12 +113,12 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
115
|
}, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) : g("", !0),
|
|
116
|
-
|
|
116
|
+
t(e.$slots, "custom_accordion", {
|
|
117
117
|
id: e.id,
|
|
118
118
|
isOpen: o.value,
|
|
119
119
|
toggleAccordion: n
|
|
120
120
|
}, () => [
|
|
121
|
-
k(
|
|
121
|
+
k(A, {
|
|
122
122
|
id: e.id,
|
|
123
123
|
"accordion-open": o.value,
|
|
124
124
|
"accordion-open-classes": e.accordionOpenClasses,
|
|
@@ -127,10 +127,10 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
127
127
|
"accordion-classes": e.accordionClasses
|
|
128
128
|
}, {
|
|
129
129
|
custom_accordion_content: c(() => [
|
|
130
|
-
|
|
130
|
+
t(e.$slots, "custom_accordion_content", { isOpen: o.value })
|
|
131
131
|
]),
|
|
132
132
|
default: c(() => [
|
|
133
|
-
|
|
133
|
+
t(e.$slots, "default", { isOpen: o.value })
|
|
134
134
|
]),
|
|
135
135
|
_: 3
|
|
136
136
|
}, 8, ["id", "accordion-open", "accordion-open-classes", "accordion-close-classes", "accordion-content-classes", "accordion-classes"])
|
|
@@ -139,5 +139,5 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
export {
|
|
142
|
-
P as
|
|
142
|
+
P as _
|
|
143
143
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as l } from "vue";
|
|
2
|
-
const o = ["id"], p = /* @__PURE__ */ t({
|
|
2
|
+
import '../assets/BaseAlert.css';const o = ["id"], p = /* @__PURE__ */ t({
|
|
3
3
|
__name: "BaseAlert",
|
|
4
4
|
props: {
|
|
5
5
|
alertClass: { default: "" }
|
|
@@ -15,5 +15,5 @@ const o = ["id"], p = /* @__PURE__ */ t({
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
p as
|
|
18
|
+
p as _
|
|
19
19
|
};
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import j from "
|
|
3
|
-
import q from "./BaseDropDown.
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { defineComponent as T, mergeModels as $, useModel as L, ref as r, computed as k, onBeforeMount as F, watch as f, createBlock as S, openBlock as C, normalizeClass as H, withCtx as s, createElementBlock as z, Fragment as A, renderList as K, unref as N, createElementVNode as U, createVNode as W, renderSlot as V } from "vue";
|
|
2
|
+
import j from "../UIKit/BaseInput.js";
|
|
3
|
+
import { _ as q } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js";
|
|
4
|
+
import "./polyline.tNTK3v2u.js";
|
|
5
|
+
import { _ as G } from "./SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js";
|
|
6
|
+
import { A as J } from "./useKeyboardController.Cs_5GQTJ.js";
|
|
7
|
+
function Q(t, p) {
|
|
8
|
+
return (...v) => new Promise((d, u) => {
|
|
9
|
+
t.id && clearTimeout(t.id), t.id = setTimeout(() => {
|
|
10
|
+
try {
|
|
11
|
+
const i = p(...v);
|
|
12
|
+
d(i);
|
|
13
|
+
} catch (i) {
|
|
14
|
+
u(i);
|
|
15
|
+
}
|
|
16
|
+
}, t.delay);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
10
20
|
__name: "BaseAutocomplete",
|
|
11
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ $({
|
|
12
22
|
isValid: { default: null },
|
|
13
23
|
theme: { default: "" },
|
|
14
24
|
label: { default: "" },
|
|
@@ -30,44 +40,44 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
30
40
|
},
|
|
31
41
|
modelModifiers: {}
|
|
32
42
|
}),
|
|
33
|
-
emits: /* @__PURE__ */
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
43
|
+
emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
44
|
+
setup(t, { expose: p, emit: v }) {
|
|
45
|
+
const d = L(
|
|
46
|
+
t,
|
|
37
47
|
"modelValue"
|
|
38
|
-
), u =
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
), u = v, i = r(""), n = r([]), m = r(null), c = r(!1), o = r(!1), y = r(null), B = k(() => n.value.length);
|
|
49
|
+
F(() => {
|
|
50
|
+
m.value = Q({ delay: 300 }, t.onInputChangeCb);
|
|
41
51
|
});
|
|
42
|
-
const { activeIdx:
|
|
52
|
+
const { activeIdx: h, selectedIdx: w } = J({
|
|
43
53
|
optionsLength: B,
|
|
44
|
-
isDropdownOpen:
|
|
54
|
+
isDropdownOpen: o,
|
|
45
55
|
disableSpaceHandler: !0
|
|
46
56
|
}), O = k(() => {
|
|
47
|
-
switch (
|
|
57
|
+
switch (t.theme) {
|
|
48
58
|
case "bordered":
|
|
49
59
|
return "";
|
|
50
60
|
case "all-bordered":
|
|
51
|
-
return "!uikit-rounded " + (
|
|
61
|
+
return "!uikit-rounded " + (o.value && "!uikit-rounded-b-none");
|
|
52
62
|
case "all-bordered-thick":
|
|
53
|
-
return "!uikit-rounded-xl !uikit-h-[52px] " + (
|
|
63
|
+
return "!uikit-rounded-xl !uikit-h-[52px] " + (o.value && "!uikit-rounded-b-none");
|
|
54
64
|
default:
|
|
55
65
|
return "";
|
|
56
66
|
}
|
|
57
67
|
}), I = k(() => {
|
|
58
|
-
switch (
|
|
68
|
+
switch (t.theme) {
|
|
59
69
|
case "bordered":
|
|
60
70
|
return "";
|
|
61
71
|
case "all-bordered":
|
|
62
|
-
return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (
|
|
72
|
+
return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (o.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
|
|
63
73
|
case "all-bordered-thick":
|
|
64
|
-
return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (
|
|
74
|
+
return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (o.value ? "!uikit-rounded-b-none" : "");
|
|
65
75
|
default:
|
|
66
76
|
return "";
|
|
67
77
|
}
|
|
68
78
|
}), M = k(() => {
|
|
69
79
|
const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
70
|
-
switch (
|
|
80
|
+
switch (t.theme) {
|
|
71
81
|
case "bordered":
|
|
72
82
|
return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
73
83
|
case "all-bordered":
|
|
@@ -77,42 +87,42 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
77
87
|
default:
|
|
78
88
|
return "";
|
|
79
89
|
}
|
|
80
|
-
}),
|
|
81
|
-
if (i.value !== e && (u("changedValue", e), i.value = e, !!
|
|
82
|
-
if (!e ||
|
|
83
|
-
n.value = [],
|
|
90
|
+
}), P = async (e) => {
|
|
91
|
+
if (i.value !== e && (u("changedValue", e), i.value = e, !!t.onInputChangeCb)) {
|
|
92
|
+
if (!e || c.value) {
|
|
93
|
+
n.value = [], c.value = !1, w.value = -1, h.value = -1, d.value && (d.value.label = ""), o.value = !1, await m.value(null);
|
|
84
94
|
return;
|
|
85
95
|
}
|
|
86
|
-
|
|
96
|
+
t.disableCb || (n.value = await m.value(e), o.value = !!n.value.length);
|
|
87
97
|
}
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
n.value.length &&
|
|
98
|
+
}, g = (e, l) => {
|
|
99
|
+
t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (n.value = []), c.value = !0, i.value = e.label, d.value = e, o.value = !1, w.value = l;
|
|
100
|
+
}, D = () => {
|
|
101
|
+
n.value.length && t.keepState !== "closed" && (o.value = !0);
|
|
92
102
|
};
|
|
93
103
|
return f(
|
|
94
|
-
|
|
95
|
-
(e,
|
|
96
|
-
e ===
|
|
104
|
+
d,
|
|
105
|
+
(e, l) => {
|
|
106
|
+
e === l || e?.label === i.value || (i.value = e?.label || "");
|
|
97
107
|
},
|
|
98
108
|
{ immediate: !0 }
|
|
99
|
-
), f(
|
|
109
|
+
), f(w, (e) => {
|
|
100
110
|
if (e === -1 || !n.value.length) return;
|
|
101
|
-
const
|
|
102
|
-
|
|
111
|
+
const l = n.value[e];
|
|
112
|
+
c.value && l.label === d.value?.label || g(l, e);
|
|
103
113
|
}), f(
|
|
104
|
-
() =>
|
|
114
|
+
() => t.keepState,
|
|
105
115
|
(e) => {
|
|
106
|
-
e === "closed" ? (
|
|
116
|
+
e === "closed" ? (o.value = !1, t.cleanupOnClose && (n.value = [])) : e === "open" && n.value.length && (o.value = !0);
|
|
107
117
|
}
|
|
108
|
-
), f(
|
|
118
|
+
), f(o, (e) => {
|
|
109
119
|
u("update:dropdownState", e);
|
|
110
|
-
}),
|
|
120
|
+
}), p({
|
|
111
121
|
select: () => {
|
|
112
|
-
|
|
122
|
+
y.value?.select();
|
|
113
123
|
}
|
|
114
|
-
}), (e,
|
|
115
|
-
class:
|
|
124
|
+
}), (e, l) => (C(), S(q, {
|
|
125
|
+
class: H(e.$attrs["root-classes"]),
|
|
116
126
|
"data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
|
|
117
127
|
"dropdown-element": "ul",
|
|
118
128
|
"dropdown-classes": [
|
|
@@ -126,20 +136,20 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
126
136
|
"!uikit-max-h-[210px] uikit-z-30",
|
|
127
137
|
e.dropdownClasses
|
|
128
138
|
],
|
|
129
|
-
"open-dropdown":
|
|
139
|
+
"open-dropdown": o.value,
|
|
130
140
|
"keep-state": !n.value.length || e.keepState === "closed" ? "closed" : "opened",
|
|
131
141
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
132
142
|
"activate-keyboard-controller": !1,
|
|
133
|
-
"onUpdate:dropdownState":
|
|
134
|
-
onClick:
|
|
135
|
-
u("click"),
|
|
143
|
+
"onUpdate:dropdownState": l[3] || (l[3] = (a) => o.value = a),
|
|
144
|
+
onClick: l[4] || (l[4] = (a) => {
|
|
145
|
+
u("click"), D();
|
|
136
146
|
})
|
|
137
147
|
}, {
|
|
138
148
|
btn_slot: s(() => [
|
|
139
149
|
W(j, {
|
|
140
150
|
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
141
151
|
ref_key: "baseInput",
|
|
142
|
-
ref:
|
|
152
|
+
ref: y,
|
|
143
153
|
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
144
154
|
"label-text": e.label,
|
|
145
155
|
"model-value": i.value,
|
|
@@ -154,26 +164,26 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
154
164
|
"!uikit-ml-0 !uikit-w-full"
|
|
155
165
|
],
|
|
156
166
|
"fieldset-classes": [I.value, e.fieldsetClasses],
|
|
157
|
-
"onUpdate:modelValue":
|
|
158
|
-
onKeydown:
|
|
159
|
-
onKeydownEnterPressed:
|
|
167
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => P(a === void 0 ? "" : `${a}`)),
|
|
168
|
+
onKeydown: l[1] || (l[1] = (a) => u("keydown", a)),
|
|
169
|
+
onKeydownEnterPressed: l[2] || (l[2] = () => u("keydownEnterPressed"))
|
|
160
170
|
}, {
|
|
161
171
|
leftIcon: s(() => [
|
|
162
|
-
|
|
172
|
+
V(e.$slots, "lefticon")
|
|
163
173
|
]),
|
|
164
174
|
righticon: s(({ handleClean: a }) => [
|
|
165
|
-
|
|
175
|
+
V(e.$slots, "righticon", { handleClean: a })
|
|
166
176
|
]),
|
|
167
177
|
_: 3
|
|
168
178
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
169
179
|
]),
|
|
170
180
|
default: s(() => [
|
|
171
|
-
(
|
|
172
|
-
key:
|
|
173
|
-
active: N(
|
|
181
|
+
(C(!0), z(A, null, K(n.value, (a, b) => (C(), S(G, {
|
|
182
|
+
key: b,
|
|
183
|
+
active: N(h) === b,
|
|
174
184
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
175
|
-
onClick: (
|
|
176
|
-
onMouseover: (
|
|
185
|
+
onClick: (E) => g(a, b),
|
|
186
|
+
onMouseover: (E) => h.value = b
|
|
177
187
|
}, {
|
|
178
188
|
default: s(() => [
|
|
179
189
|
U("span", {
|
|
@@ -188,5 +198,5 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
188
198
|
}
|
|
189
199
|
});
|
|
190
200
|
export {
|
|
191
|
-
|
|
201
|
+
le as _
|
|
192
202
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as e, createElementBlock as a, openBlock as t, normalizeClass as r, renderSlot as i } from "vue";
|
|
2
|
+
import '../assets/BaseBadge.css';const o = ["id"], p = /* @__PURE__ */ e({
|
|
3
|
+
inheritAttrs: !1,
|
|
4
|
+
__name: "BaseBadge",
|
|
5
|
+
props: {
|
|
6
|
+
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
return (s, d) => (t(), a("span", {
|
|
10
|
+
id: s.$attrs.id,
|
|
11
|
+
class: r(["uikit-badge uikit-shadow-sm", s.badgeClass, s.$attrs.class])
|
|
12
|
+
}, [
|
|
13
|
+
i(s.$slots, "default")
|
|
14
|
+
], 10, o));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
p as _
|
|
19
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, computed as k, createElementBlock as s, openBlock as i, createElementVNode as n, normalizeClass as a, Fragment as u, renderList as p, renderSlot as c, toDisplayString as h, createVNode as b, unref as f } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"],
|
|
2
|
+
import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
3
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
4
|
+
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], B = ["href"], $ = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
7
7
|
items: {},
|
|
@@ -32,7 +32,7 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v
|
|
|
32
32
|
n("a", {
|
|
33
33
|
class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
34
34
|
href: t.link
|
|
35
|
-
}, h(t.label), 11,
|
|
35
|
+
}, h(t.label), 11, B)
|
|
36
36
|
])
|
|
37
37
|
], 10, w)) : (i(), s("li", {
|
|
38
38
|
key: `breadcrumb-li-no-label-${o}`,
|
|
@@ -54,5 +54,5 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
$ as _
|
|
58
58
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, computed as
|
|
2
|
-
import M from "
|
|
1
|
+
import { defineComponent as y, ref as b, computed as s, createElementBlock as f, openBlock as v, withModifiers as l, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as c } from "vue";
|
|
2
|
+
import M from "../UIKit/StaticSpinner.js";
|
|
3
3
|
const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
|
|
4
4
|
__name: "BaseButton",
|
|
5
5
|
props: {
|
|
@@ -17,7 +17,7 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["mouseover", "mouseout", "click"],
|
|
19
19
|
setup(o, { emit: r }) {
|
|
20
|
-
const a = r, n = b(!1), d =
|
|
20
|
+
const a = r, n = b(!1), d = s(() => o.size ? `uikit-btn-${o.size}` : ""), m = s(() => o.outlined ? "uikit-btn-outline" : ""), p = () => {
|
|
21
21
|
n.value = !0;
|
|
22
22
|
}, k = () => {
|
|
23
23
|
n.value = !1;
|
|
@@ -42,10 +42,10 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
42
42
|
disabled: e.isLoading || e.disabled,
|
|
43
43
|
"aria-label": e.ariaLabel,
|
|
44
44
|
title: e.title,
|
|
45
|
-
onMouseover: t[0] || (t[0] =
|
|
45
|
+
onMouseover: t[0] || (t[0] = l((i) => {
|
|
46
46
|
p(), a("mouseover", i);
|
|
47
47
|
}, ["stop"])),
|
|
48
|
-
onMouseout: t[1] || (t[1] =
|
|
48
|
+
onMouseout: t[1] || (t[1] = l((i) => {
|
|
49
49
|
k(), a("mouseout", i);
|
|
50
50
|
}, ["stop"])),
|
|
51
51
|
onClick: t[2] || (t[2] = (i) => a("click", i))
|
|
@@ -62,5 +62,5 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
export {
|
|
65
|
-
S as
|
|
65
|
+
S as _
|
|
66
66
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import R from "./BaseButton.
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
const F = ["innerHTML"], Z = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as M, mergeModels as b, useId as A, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as N, createElementBlock as T, openBlock as u, withModifiers as g, normalizeClass as i, renderSlot as C, createBlock as y, createVNode as V, unref as l, withCtx as D, createElementVNode as K, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import { _ as R } from "./BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js";
|
|
3
|
+
import { a as U } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
+
import { A as j } from "./useKeyboardController.Cs_5GQTJ.js";
|
|
6
|
+
const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
9
9
|
props: /* @__PURE__ */ b({
|
|
@@ -30,8 +30,8 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
30
30
|
}),
|
|
31
31
|
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
32
|
setup(p, { emit: B }) {
|
|
33
|
-
const o = p, c =
|
|
34
|
-
optionsLength:
|
|
33
|
+
const o = p, c = A(), k = B, f = E(p, "toggleDropdown"), t = h(!1), d = h([]), S = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
+
optionsLength: S,
|
|
35
35
|
isDropdownOpen: t,
|
|
36
36
|
activate: o.activateKeyboardController
|
|
37
37
|
});
|
|
@@ -44,9 +44,9 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
44
44
|
immediate: !0
|
|
45
45
|
}
|
|
46
46
|
), n(t, (e) => {
|
|
47
|
-
|
|
48
|
-
}), n(
|
|
49
|
-
e && (t.value = !t.value,
|
|
47
|
+
k("update:dropdownState", e);
|
|
48
|
+
}), n(f, (e) => {
|
|
49
|
+
e && (t.value = !t.value, f.value = !1);
|
|
50
50
|
}), n(r, (e) => {
|
|
51
51
|
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
52
52
|
});
|
|
@@ -54,28 +54,28 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
54
54
|
t.value = !1;
|
|
55
55
|
}, s = () => {
|
|
56
56
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
-
},
|
|
57
|
+
}, I = (e) => {
|
|
58
58
|
e != null && (m.value = e);
|
|
59
|
-
},
|
|
59
|
+
}, L = (e) => {
|
|
60
60
|
e != null && (r.value = e);
|
|
61
61
|
};
|
|
62
62
|
return $(() => {
|
|
63
63
|
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
64
|
}), H(() => {
|
|
65
65
|
w.value && (d.value = w.value.children || []);
|
|
66
|
-
}),
|
|
66
|
+
}), N(() => {
|
|
67
67
|
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
-
}), (e, a) => (u(),
|
|
68
|
+
}), (e, a) => (u(), T("div", {
|
|
69
69
|
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
70
|
-
onClick: a[1] || (a[1] =
|
|
71
|
-
|
|
70
|
+
onClick: a[1] || (a[1] = g((G) => {
|
|
71
|
+
k("click"), s();
|
|
72
72
|
}, ["stop"]))
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
C(e.$slots, "btn_slot", {
|
|
75
75
|
toggleDropdown: s,
|
|
76
76
|
isOpen: t.value
|
|
77
77
|
}, () => [
|
|
78
|
-
|
|
78
|
+
V(R, {
|
|
79
79
|
id: l(c),
|
|
80
80
|
type: "button",
|
|
81
81
|
"data-cy": e.dataCy,
|
|
@@ -87,7 +87,7 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
87
87
|
"btn-class": "uikit-btn-single-selection"
|
|
88
88
|
}, {
|
|
89
89
|
default: D(() => [
|
|
90
|
-
|
|
90
|
+
K("span", {
|
|
91
91
|
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
92
92
|
innerHTML: e.btnLabel
|
|
93
93
|
}, null, 10, F),
|
|
@@ -114,17 +114,17 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
114
114
|
{ "uikit-absolute": e.isAbsolute }
|
|
115
115
|
]]),
|
|
116
116
|
"aria-hidden": !t.value,
|
|
117
|
-
onClick: a[0] || (a[0] =
|
|
117
|
+
onClick: a[0] || (a[0] = g(() => {
|
|
118
118
|
}, ["stop"]))
|
|
119
119
|
}, {
|
|
120
120
|
default: D(() => [
|
|
121
|
-
|
|
121
|
+
C(e.$slots, "default", {
|
|
122
122
|
isOpen: t.value,
|
|
123
123
|
toggleDropdown: s,
|
|
124
124
|
activeIdx: l(m),
|
|
125
125
|
selectedIdx: l(r),
|
|
126
|
-
setActiveIdx:
|
|
127
|
-
setSelectedIdx:
|
|
126
|
+
setActiveIdx: I,
|
|
127
|
+
setSelectedIdx: L
|
|
128
128
|
})
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
@@ -133,5 +133,5 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
export {
|
|
136
|
-
Z as
|
|
136
|
+
Z as _
|
|
137
137
|
};
|