@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,173 @@
|
|
|
1
|
+
import { defineComponent as z, mergeModels as $, useModel as E, ref as u, computed as b, onBeforeMount as N, watch as v, openBlock as h, createBlock as y, normalizeClass as U, withCtx as s, createVNode as A, renderSlot as V, createElementBlock as F, Fragment as K, renderList as W, unref as j, createElementVNode as q } from "vue";
|
|
2
|
+
import G from "./lib/UIKit/BaseInput.js";
|
|
3
|
+
import { _ as J } from "./BaseDropDown.vue_vue_type_script_setup_true_lang-t-jias47.js";
|
|
4
|
+
import { c as P } from "./utilities-CBCDB5EB.js";
|
|
5
|
+
import { _ as Q } from "./SelectItem.vue_vue_type_script_setup_true_lang-BOLdDTLM.js";
|
|
6
|
+
import { useKeyboardController as R } from "./lib/composables/useKeyboardController.js";
|
|
7
|
+
const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
8
|
+
__name: "BaseAutocomplete",
|
|
9
|
+
props: /* @__PURE__ */ $({
|
|
10
|
+
border: { type: Boolean, default: !0 },
|
|
11
|
+
isValid: { default: null },
|
|
12
|
+
theme: { default: "" },
|
|
13
|
+
label: { default: "" },
|
|
14
|
+
disableCb: { type: Boolean, default: !1 },
|
|
15
|
+
onInputChangeCb: {},
|
|
16
|
+
onOptionSelectedCb: { default: null },
|
|
17
|
+
manualClose: { type: Boolean, default: !1 },
|
|
18
|
+
keepState: { default: null }
|
|
19
|
+
}, {
|
|
20
|
+
modelValue: {
|
|
21
|
+
default() {
|
|
22
|
+
return { id: "", label: "" };
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
modelModifiers: {}
|
|
26
|
+
}),
|
|
27
|
+
emits: /* @__PURE__ */ $(["dropdownClosed", "changedValue", "click"], ["update:modelValue"]),
|
|
28
|
+
setup(w, { expose: S, emit: B }) {
|
|
29
|
+
const o = w, r = E(w, "modelValue"), p = B, i = u(""), a = u([]), f = u(null), d = u(!1), t = u(!1), C = u(null), M = b(() => a.value.length);
|
|
30
|
+
N(() => {
|
|
31
|
+
i.value = r.value?.label || "", f.value = P({ delay: 300 }, o.onInputChangeCb);
|
|
32
|
+
});
|
|
33
|
+
const { activeIdx: k, selectedIdx: m } = R({
|
|
34
|
+
optionsLength: M,
|
|
35
|
+
isDropdownOpen: t,
|
|
36
|
+
disableSpaceHandler: !0
|
|
37
|
+
}), I = b(() => {
|
|
38
|
+
switch (o.theme) {
|
|
39
|
+
case "bordered":
|
|
40
|
+
return "";
|
|
41
|
+
case "all-bordered":
|
|
42
|
+
return "uikit-rounded " + (t.value && "uikit-rounded-b-none");
|
|
43
|
+
case "all-bordered-thick":
|
|
44
|
+
return "uikit-rounded-xl !uikit-h-[60px] " + (t.value && "uikit-rounded-b-none");
|
|
45
|
+
default:
|
|
46
|
+
return "";
|
|
47
|
+
}
|
|
48
|
+
}), O = b(() => {
|
|
49
|
+
switch (o.theme) {
|
|
50
|
+
case "bordered":
|
|
51
|
+
return "";
|
|
52
|
+
case "all-bordered":
|
|
53
|
+
return "uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded " + (t.value ? "uikit-border-b-0 uikit-rounded-b-none" : "");
|
|
54
|
+
case "all-bordered-thick":
|
|
55
|
+
return "uikit-rounded-xl !uikit-h-[60px]" + (t.value && "uikit-rounded-b-none");
|
|
56
|
+
default:
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
}), L = b(() => {
|
|
60
|
+
let 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";
|
|
61
|
+
switch (o.theme) {
|
|
62
|
+
case "bordered":
|
|
63
|
+
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";
|
|
64
|
+
case "all-bordered":
|
|
65
|
+
return e;
|
|
66
|
+
case "all-bordered-thick":
|
|
67
|
+
return e;
|
|
68
|
+
default:
|
|
69
|
+
return "";
|
|
70
|
+
}
|
|
71
|
+
}), D = async (e) => {
|
|
72
|
+
if (i.value !== e && (p("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
|
|
73
|
+
if (r.value && !e && (r.value.label = "", t.value = !1), !e || d.value) {
|
|
74
|
+
a.value = [], d.value = !1, m.value = -1, k.value = -1, await f.value(null);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
o.disableCb || (a.value = await f.value(e), a.value.length && (t.value = !0));
|
|
78
|
+
}
|
|
79
|
+
}, g = (e, l) => {
|
|
80
|
+
o.onOptionSelectedCb && o.onOptionSelectedCb(e), d.value = !0, i.value = e.label, r.value = e, t.value = !1, m.value = l;
|
|
81
|
+
}, H = () => {
|
|
82
|
+
a.value.length && o.keepState !== "closed" && (t.value = !0);
|
|
83
|
+
};
|
|
84
|
+
return v(r, (e, l) => {
|
|
85
|
+
e !== l && (i.value = e?.label || "");
|
|
86
|
+
}), v(m, (e) => {
|
|
87
|
+
if (e === -1)
|
|
88
|
+
return;
|
|
89
|
+
const l = a.value[e];
|
|
90
|
+
d.value && l.label === r.value?.label || g(l, e);
|
|
91
|
+
}), v(
|
|
92
|
+
() => o.manualClose,
|
|
93
|
+
(e) => {
|
|
94
|
+
e && (d.value && (a.value = []), p("dropdownClosed"));
|
|
95
|
+
}
|
|
96
|
+
), S({
|
|
97
|
+
select: () => {
|
|
98
|
+
C.value?.select();
|
|
99
|
+
}
|
|
100
|
+
}), (e, l) => (h(), y(J, {
|
|
101
|
+
class: U(e.$attrs["root-classes"]),
|
|
102
|
+
"data-cy": `ac_${e.$attrs.id}`,
|
|
103
|
+
"dropdown-element": "ul",
|
|
104
|
+
"dropdown-classes": [
|
|
105
|
+
{ "bordered-dropdown": e.theme === "bordered" },
|
|
106
|
+
{ "all-bordered-dropdown": e.theme === "all-bordered" },
|
|
107
|
+
{ "all-bordered-dropdown thick": e.theme === "all-bordered-thick" },
|
|
108
|
+
{
|
|
109
|
+
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
110
|
+
},
|
|
111
|
+
L.value,
|
|
112
|
+
"!uikit-max-h-[210px] uikit-z-10",
|
|
113
|
+
e.$attrs["dropdown-classes"]
|
|
114
|
+
],
|
|
115
|
+
"open-dropdown": t.value,
|
|
116
|
+
"keep-state": a.value.length ? "" : "closed",
|
|
117
|
+
"onUpdate:dropdownState": l[0] || (l[0] = (n) => t.value = n),
|
|
118
|
+
onClick: l[1] || (l[1] = (n) => {
|
|
119
|
+
p("click"), H();
|
|
120
|
+
})
|
|
121
|
+
}, {
|
|
122
|
+
btn_slot: s(() => [
|
|
123
|
+
A(G, {
|
|
124
|
+
id: `ac_input_${e.$attrs.id}`,
|
|
125
|
+
ref_key: "baseInput",
|
|
126
|
+
ref: C,
|
|
127
|
+
"data-cy": `ac_input_${e.$attrs.id}`,
|
|
128
|
+
"label-text": e.label,
|
|
129
|
+
"model-value": r.value?.label || "",
|
|
130
|
+
"is-valid": e.isValid,
|
|
131
|
+
disabled: e.$attrs.disabled,
|
|
132
|
+
placeholder: e.$attrs.placeholder,
|
|
133
|
+
"with-left-icon": !!e.$slots.lefticon,
|
|
134
|
+
"with-right-icon": !!e.$slots.righticon,
|
|
135
|
+
border: !e.theme,
|
|
136
|
+
radius: !e.theme || e.theme === "bordered",
|
|
137
|
+
"input-class": [I.value, e.$attrs["input-classes"]],
|
|
138
|
+
"fieldset-classes": [O.value, e.$attrs["fieldset-classes"]],
|
|
139
|
+
"keep-floating-label": !!i.value,
|
|
140
|
+
"onUpdate:modelValue": D
|
|
141
|
+
}, {
|
|
142
|
+
leftIcon: s(() => [
|
|
143
|
+
V(e.$slots, "lefticon")
|
|
144
|
+
]),
|
|
145
|
+
righticon: s(({ handleClean: n }) => [
|
|
146
|
+
V(e.$slots, "righticon", { handleClean: n })
|
|
147
|
+
]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "border", "radius", "input-class", "fieldset-classes", "keep-floating-label"])
|
|
150
|
+
]),
|
|
151
|
+
default: s(() => [
|
|
152
|
+
(h(!0), F(K, null, W(a.value, (n, c) => (h(), y(Q, {
|
|
153
|
+
key: c,
|
|
154
|
+
active: j(k) === c,
|
|
155
|
+
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
156
|
+
onClick: (T) => g(n, c),
|
|
157
|
+
onMouseover: (T) => k.value = c
|
|
158
|
+
}, {
|
|
159
|
+
default: s(() => [
|
|
160
|
+
q("span", {
|
|
161
|
+
innerHTML: n.label
|
|
162
|
+
}, null, 8, X)
|
|
163
|
+
]),
|
|
164
|
+
_: 2
|
|
165
|
+
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
166
|
+
]),
|
|
167
|
+
_: 3
|
|
168
|
+
}, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state"]));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
export {
|
|
172
|
+
oe as _
|
|
173
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),S=require("./lib/UIKit/BaseInput.cjs"),I=require("./BaseDropDown.vue_vue_type_script_setup_true_lang-BdoYFj6h.cjs"),M=require("./utilities-gwVlEyWn.cjs"),q=require("./SelectItem.vue_vue_type_script_setup_true_lang-3ie26G8n.cjs"),D=require("./lib/composables/useKeyboardController.cjs"),O=["innerHTML"],L=t.defineComponent({__name:"BaseAutocomplete",props:t.mergeModels({border:{type:Boolean,default:!0},isValid:{default:null},theme:{default:""},label:{default:""},disableCb:{type:Boolean,default:!1},onInputChangeCb:{},onOptionSelectedCb:{default:null},manualClose:{type:Boolean,default:!1},keepState:{default:null}},{modelValue:{default(){return{id:"",label:""}}},modelModifiers:{}}),emits:t.mergeModels(["dropdownClosed","changedValue","click"],["update:modelValue"]),setup(f,{expose:m,emit:w}){const a=f,u=t.useModel(f,"modelValue"),c=w,i=t.ref(""),r=t.ref([]),b=t.ref(null),d=t.ref(!1),l=t.ref(!1),v=t.ref(null),C=t.computed(()=>r.value.length);t.onBeforeMount(()=>{i.value=u.value?.label||"",b.value=M.cs({delay:300},a.onInputChangeCb)});const{activeIdx:p,selectedIdx:k}=D.useKeyboardController({optionsLength:C,isDropdownOpen:l,disableSpaceHandler:!0}),g=t.computed(()=>{switch(a.theme){case"bordered":return"";case"all-bordered":return"uikit-rounded "+(l.value&&"uikit-rounded-b-none");case"all-bordered-thick":return"uikit-rounded-xl !uikit-h-[60px] "+(l.value&&"uikit-rounded-b-none");default:return""}}),$=t.computed(()=>{switch(a.theme){case"bordered":return"";case"all-bordered":return"uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded "+(l.value?"uikit-border-b-0 uikit-rounded-b-none":"");case"all-bordered-thick":return"uikit-rounded-xl !uikit-h-[60px]"+(l.value&&"uikit-rounded-b-none");default:return""}}),y=t.computed(()=>{let 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";switch(a.theme){case"bordered":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";case"all-bordered":return e;case"all-bordered-thick":return e;default:return""}}),_=async e=>{if(i.value!==e&&(c("changedValue",e),i.value=e,!!a.onInputChangeCb)){if(u.value&&!e&&(u.value.label="",l.value=!1),!e||d.value){r.value=[],d.value=!1,k.value=-1,p.value=-1,await b.value(null);return}a.disableCb||(r.value=await b.value(e),r.value.length&&(l.value=!0))}},h=(e,o)=>{a.onOptionSelectedCb&&a.onOptionSelectedCb(e),d.value=!0,i.value=e.label,u.value=e,l.value=!1,k.value=o},B=()=>{r.value.length&&a.keepState!=="closed"&&(l.value=!0)};return t.watch(u,(e,o)=>{e!==o&&(i.value=e?.label||"")}),t.watch(k,e=>{if(e===-1)return;const o=r.value[e];d.value&&o.label===u.value?.label||h(o,e)}),t.watch(()=>a.manualClose,e=>{e&&(d.value&&(r.value=[]),c("dropdownClosed"))}),m({select:()=>{v.value?.select()}}),(e,o)=>(t.openBlock(),t.createBlock(I._sfc_main,{class:t.normalizeClass(e.$attrs["root-classes"]),"data-cy":`ac_${e.$attrs.id}`,"dropdown-element":"ul","dropdown-classes":[{"bordered-dropdown":e.theme==="bordered"},{"all-bordered-dropdown":e.theme==="all-bordered"},{"all-bordered-dropdown thick":e.theme==="all-bordered-thick"},{"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs":!e.theme},y.value,"!uikit-max-h-[210px] uikit-z-10",e.$attrs["dropdown-classes"]],"open-dropdown":l.value,"keep-state":r.value.length?"":"closed","onUpdate:dropdownState":o[0]||(o[0]=n=>l.value=n),onClick:o[1]||(o[1]=n=>{c("click"),B()})},{btn_slot:t.withCtx(()=>[t.createVNode(S,{id:`ac_input_${e.$attrs.id}`,ref_key:"baseInput",ref:v,"data-cy":`ac_input_${e.$attrs.id}`,"label-text":e.label,"model-value":u.value?.label||"","is-valid":e.isValid,disabled:e.$attrs.disabled,placeholder:e.$attrs.placeholder,"with-left-icon":!!e.$slots.lefticon,"with-right-icon":!!e.$slots.righticon,border:!e.theme,radius:!e.theme||e.theme==="bordered","input-class":[g.value,e.$attrs["input-classes"]],"fieldset-classes":[$.value,e.$attrs["fieldset-classes"]],"keep-floating-label":!!i.value,"onUpdate:modelValue":_},{leftIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"lefticon")]),righticon:t.withCtx(({handleClean:n})=>[t.renderSlot(e.$slots,"righticon",{handleClean:n})]),_:3},8,["id","data-cy","label-text","model-value","is-valid","disabled","placeholder","with-left-icon","with-right-icon","border","radius","input-class","fieldset-classes","keep-floating-label"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(n,s)=>(t.openBlock(),t.createBlock(q._sfc_main,{key:s,active:t.unref(p)===s,class:"uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",onClick:V=>h(n,s),onMouseover:V=>p.value=s},{default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:n.label},null,8,O)]),_:2},1032,["active","onClick","onMouseover"]))),128))]),_:3},8,["class","data-cy","dropdown-classes","open-dropdown","keep-state"]))}});exports._sfc_main=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),m=require("./lib/UIKit/BaseIcon.cjs"),c=require("./lib/UIKit/StaticSpinner.cjs"),f=["id","data-cy","type","data-active","disabled","aria-labelledby"],p=i.defineComponent({__name:"BaseButton",props:{lazyLoadIcon:{type:Boolean,default:!0},btnClass:{default:""},iconName:{default:""},iconNameHovering:{default:""},iconClass:{default:"uikit-mr-[5px]"},isEmpty:{type:Boolean,default:!1},keepActive:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["mouseover","mouseout","click"],setup(r){const t=r,n=i.ref(!1),s=i.ref("");i.onBeforeMount(()=>{s.value=t.iconName??""});const u=()=>{n.value=!0,t.iconNameHovering&&l(t.iconNameHovering)},d=()=>{n.value=!1,t.iconNameHovering&&l(t.iconName)},l=e=>{s.value=e};return(e,o)=>(i.openBlock(),i.createElementBlock("button",{id:e.$attrs.id,"data-cy":e.$attrs["data-cy"],type:e.$attrs.type,class:i.normalizeClass([{"uikit-btn":!e.isEmpty,"uikit-btn-empty":e.isEmpty,"active uikit-font-medium":e.keepActive,"uikit-flex uikit-items-center uikit-justify-center":e.iconName||e.isLoading},e.btnClass]),style:i.normalizeStyle(e.$attrs.style),"data-active":e.keepActive,disabled:e.isLoading||e.disabled,"aria-labelledby":e.$attrs.id,onMouseover:o[0]||(o[0]=i.withModifiers(a=>{u(),e.$emit("mouseover",a)},["stop"])),onMouseout:o[1]||(o[1]=i.withModifiers(a=>{d(),e.$emit("mouseout",a)},["stop"])),onClick:o[2]||(o[2]=a=>e.$emit("click",a))},[e.iconName&&!e.isLoading?(i.openBlock(),i.createBlock(m,{key:e.$attrs.id?e.$attrs.id:`btn-${e.iconName}`,"icon-name":s.value,"icon-class":e.iconClass,"alt-attribute":"button icon","lazy-loading":e.lazyLoadIcon},null,8,["icon-name","icon-class","lazy-loading"])):i.createCommentVNode("",!0),e.isLoading?i.renderSlot(e.$slots,"spinner",{key:2},()=>[i.createVNode(c,{color:e.btnClass.includes("uikit-btn-light")?"uikit-stroke-black":"uikit-stroke-white"},null,8,["color"])]):i.renderSlot(e.$slots,"default",{key:1,hover:n.value})],46,f))}});exports._sfc_main=p;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as y, ref as l, onBeforeMount as c, openBlock as r, createElementBlock as k, normalizeClass as v, normalizeStyle as b, withModifiers as u, createBlock as g, createCommentVNode as $, renderSlot as d, createVNode as B } from "vue";
|
|
2
|
+
import N from "./lib/UIKit/BaseIcon.js";
|
|
3
|
+
import C from "./lib/UIKit/StaticSpinner.js";
|
|
4
|
+
const L = ["id", "data-cy", "type", "data-active", "disabled", "aria-labelledby"], I = /* @__PURE__ */ y({
|
|
5
|
+
__name: "BaseButton",
|
|
6
|
+
props: {
|
|
7
|
+
lazyLoadIcon: { type: Boolean, default: !0 },
|
|
8
|
+
btnClass: { default: "" },
|
|
9
|
+
iconName: { default: "" },
|
|
10
|
+
iconNameHovering: { default: "" },
|
|
11
|
+
iconClass: { default: "uikit-mr-[5px]" },
|
|
12
|
+
isEmpty: { type: Boolean, default: !1 },
|
|
13
|
+
keepActive: { type: Boolean, default: !1 },
|
|
14
|
+
isLoading: { type: Boolean, default: !1 },
|
|
15
|
+
disabled: { type: Boolean, default: !1 }
|
|
16
|
+
},
|
|
17
|
+
emits: ["mouseover", "mouseout", "click"],
|
|
18
|
+
setup(m) {
|
|
19
|
+
const a = m, t = l(!1), n = l("");
|
|
20
|
+
c(() => {
|
|
21
|
+
n.value = a.iconName ?? "";
|
|
22
|
+
});
|
|
23
|
+
const p = () => {
|
|
24
|
+
t.value = !0, a.iconNameHovering && s(a.iconNameHovering);
|
|
25
|
+
}, f = () => {
|
|
26
|
+
t.value = !1, a.iconNameHovering && s(a.iconName);
|
|
27
|
+
}, s = (e) => {
|
|
28
|
+
n.value = e;
|
|
29
|
+
};
|
|
30
|
+
return (e, o) => (r(), k("button", {
|
|
31
|
+
id: e.$attrs.id,
|
|
32
|
+
"data-cy": e.$attrs["data-cy"],
|
|
33
|
+
type: e.$attrs.type,
|
|
34
|
+
class: v([
|
|
35
|
+
{
|
|
36
|
+
"uikit-btn": !e.isEmpty,
|
|
37
|
+
"uikit-btn-empty": e.isEmpty,
|
|
38
|
+
"active uikit-font-medium": e.keepActive,
|
|
39
|
+
"uikit-flex uikit-items-center uikit-justify-center": e.iconName || e.isLoading
|
|
40
|
+
},
|
|
41
|
+
e.btnClass
|
|
42
|
+
]),
|
|
43
|
+
style: b(e.$attrs.style),
|
|
44
|
+
"data-active": e.keepActive,
|
|
45
|
+
disabled: e.isLoading || e.disabled,
|
|
46
|
+
"aria-labelledby": e.$attrs.id,
|
|
47
|
+
onMouseover: o[0] || (o[0] = u((i) => {
|
|
48
|
+
p(), e.$emit("mouseover", i);
|
|
49
|
+
}, ["stop"])),
|
|
50
|
+
onMouseout: o[1] || (o[1] = u((i) => {
|
|
51
|
+
f(), e.$emit("mouseout", i);
|
|
52
|
+
}, ["stop"])),
|
|
53
|
+
onClick: o[2] || (o[2] = (i) => e.$emit("click", i))
|
|
54
|
+
}, [
|
|
55
|
+
e.iconName && !e.isLoading ? (r(), g(N, {
|
|
56
|
+
key: e.$attrs.id ? e.$attrs.id : `btn-${e.iconName}`,
|
|
57
|
+
"icon-name": n.value,
|
|
58
|
+
"icon-class": e.iconClass,
|
|
59
|
+
"alt-attribute": "button icon",
|
|
60
|
+
"lazy-loading": e.lazyLoadIcon
|
|
61
|
+
}, null, 8, ["icon-name", "icon-class", "lazy-loading"])) : $("", !0),
|
|
62
|
+
e.isLoading ? d(e.$slots, "spinner", { key: 2 }, () => [
|
|
63
|
+
B(C, {
|
|
64
|
+
color: e.btnClass.includes("uikit-btn-light") ? "uikit-stroke-black" : "uikit-stroke-white"
|
|
65
|
+
}, null, 8, ["color"])
|
|
66
|
+
]) : d(e.$slots, "default", {
|
|
67
|
+
key: 1,
|
|
68
|
+
hover: t.value
|
|
69
|
+
})
|
|
70
|
+
], 46, L));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
I as _
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),u=require("./BaseButton.vue_vue_type_script_setup_true_lang-8iapE8e5.cjs"),c=require("./ArrowIcon-p3-glcm0.cjs"),k=["innerHTML"],p=e.defineComponent({inheritAttrs:!1,__name:"BaseDropDown",props:{id:{default:""},dropdownClasses:{default:""},containerDropdownClasses:{default:""},iconName:{default:""},iconClasses:{default:""},btnClasses:{default:""},withArrowIcon:{type:Boolean,default:!1},btnLabel:{default:""},labelClasses:{default:""},direction:{default:"down"},arrowWidth:{default:12},isAbsolute:{type:Boolean,default:!0},openDropdown:{type:Boolean,default:!1},closeWhenClickedOutside:{type:Boolean,default:!0},dropdownElement:{default:"div"},keepState:{default:""}},emits:["click","update:dropdownState"],setup(r,{emit:d}){const i=r,n=d,o=e.ref(!1);e.watch(()=>i.openDropdown,t=>{o.value=t},{immediate:!0}),e.watch(o,t=>{n("update:dropdownState",t)});const s=()=>{o.value=!1},l=()=>{i.keepState==="closed"&&!o.value||i.keepState==="opened"&&o.value||(o.value=!o.value)};return e.onBeforeMount(()=>{i.closeWhenClickedOutside&&document&&document.body.addEventListener("click",s)}),e.onUnmounted(()=>{i.closeWhenClickedOutside&&document&&document.body.removeEventListener("click",s)}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["uikit-relative uikit-block",t.$attrs.class]),onClick:a[1]||(a[1]=e.withModifiers(f=>{n("click"),l()},["stop"]))},[e.renderSlot(t.$slots,"btn_slot",{toggleDropdown:l,isOpen:o.value},()=>[e.createVNode(u._sfc_main,{id:t.id,type:"button","data-cy":t.$attrs["data-cy"],class:e.normalizeClass(["!uikit-flex uikit-w-full uikit-items-center uikit-truncate",t.btnClasses]),"aria-expanded":o.value,"btn-class":"uikit-btn-single-selection","icon-class":t.iconClasses,"icon-name":t.iconName},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["uikit-mr-5px",t.labelClasses]),innerHTML:t.btnLabel},null,10,k),t.withArrowIcon?(e.openBlock(),e.createBlock(e.unref(c.ArrowIcon),{key:0,class:e.normalizeClass(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none",o.value&&"uikit-rotate-180"]),width:t.arrowWidth,height:t.arrowWidth,"stroke-color":t.$attrs["arrow-stroke-color"]},null,8,["class","width","height","stroke-color"])):e.createCommentVNode("",!0)]),_:1},8,["id","data-cy","class","aria-expanded","icon-class","icon-name"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.dropdownElement),{id:"dropdown_"+t.id,ref:"dropdown","data-cy":t.$attrs["data-cy"]&&`${t.$attrs["data-cy"]}_dropdown`,class:e.normalizeClass(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-opacity-100 uikit-shadow uikit-no-scrollbar",[t.dropdownClasses,o.value?"uikit-flex":"uikit-hidden",{"uikit-bottom-[55px] uikit-rounded-xs":t.direction==="up"},{"uikit-rounded-b uikit-border-t-0":t.direction==="down"},{"uikit-absolute":t.isAbsolute}]]),onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{isOpen:o.value})]),_:3},8,["id","data-cy","class"]))],2))}});exports._sfc_main=p;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineComponent as w, ref as b, watch as r, onBeforeMount as h, onUnmounted as v, openBlock as n, createElementBlock as C, normalizeClass as i, withModifiers as u, renderSlot as c, createVNode as y, withCtx as p, createElementVNode as $, createBlock as k, unref as B, createCommentVNode as g, resolveDynamicComponent as D } from "vue";
|
|
2
|
+
import { _ as A } from "./BaseButton.vue_vue_type_script_setup_true_lang-hyGBRoUS.js";
|
|
3
|
+
import { A as E } from "./ArrowIcon-BAw-0KtW.js";
|
|
4
|
+
const L = ["innerHTML"], M = /* @__PURE__ */ w({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "BaseDropDown",
|
|
7
|
+
props: {
|
|
8
|
+
id: { default: "" },
|
|
9
|
+
dropdownClasses: { default: "" },
|
|
10
|
+
containerDropdownClasses: { default: "" },
|
|
11
|
+
iconName: { default: "" },
|
|
12
|
+
iconClasses: { default: "" },
|
|
13
|
+
btnClasses: { default: "" },
|
|
14
|
+
withArrowIcon: { type: Boolean, default: !1 },
|
|
15
|
+
btnLabel: { default: "" },
|
|
16
|
+
labelClasses: { default: "" },
|
|
17
|
+
direction: { default: "down" },
|
|
18
|
+
arrowWidth: { default: 12 },
|
|
19
|
+
isAbsolute: { type: Boolean, default: !0 },
|
|
20
|
+
openDropdown: { type: Boolean, default: !1 },
|
|
21
|
+
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
22
|
+
dropdownElement: { default: "div" },
|
|
23
|
+
keepState: { default: "" }
|
|
24
|
+
},
|
|
25
|
+
emits: ["click", "update:dropdownState"],
|
|
26
|
+
setup(f, { emit: m }) {
|
|
27
|
+
const o = f, l = m, t = b(!1);
|
|
28
|
+
r(
|
|
29
|
+
() => o.openDropdown,
|
|
30
|
+
(e) => {
|
|
31
|
+
t.value = e;
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
immediate: !0
|
|
35
|
+
}
|
|
36
|
+
), r(t, (e) => {
|
|
37
|
+
l("update:dropdownState", e);
|
|
38
|
+
});
|
|
39
|
+
const s = () => {
|
|
40
|
+
t.value = !1;
|
|
41
|
+
}, d = () => {
|
|
42
|
+
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
43
|
+
};
|
|
44
|
+
return h(() => {
|
|
45
|
+
o.closeWhenClickedOutside && document && document.body.addEventListener("click", s);
|
|
46
|
+
}), v(() => {
|
|
47
|
+
o.closeWhenClickedOutside && document && document.body.removeEventListener("click", s);
|
|
48
|
+
}), (e, a) => (n(), C("div", {
|
|
49
|
+
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
50
|
+
onClick: a[1] || (a[1] = u((S) => {
|
|
51
|
+
l("click"), d();
|
|
52
|
+
}, ["stop"]))
|
|
53
|
+
}, [
|
|
54
|
+
c(e.$slots, "btn_slot", {
|
|
55
|
+
toggleDropdown: d,
|
|
56
|
+
isOpen: t.value
|
|
57
|
+
}, () => [
|
|
58
|
+
y(A, {
|
|
59
|
+
id: e.id,
|
|
60
|
+
type: "button",
|
|
61
|
+
"data-cy": e.$attrs["data-cy"],
|
|
62
|
+
class: i([
|
|
63
|
+
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
64
|
+
e.btnClasses
|
|
65
|
+
]),
|
|
66
|
+
"aria-expanded": t.value,
|
|
67
|
+
"btn-class": "uikit-btn-single-selection",
|
|
68
|
+
"icon-class": e.iconClasses,
|
|
69
|
+
"icon-name": e.iconName
|
|
70
|
+
}, {
|
|
71
|
+
default: p(() => [
|
|
72
|
+
$("span", {
|
|
73
|
+
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
74
|
+
innerHTML: e.btnLabel
|
|
75
|
+
}, null, 10, L),
|
|
76
|
+
e.withArrowIcon ? (n(), k(B(E), {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value && "uikit-rotate-180"]),
|
|
79
|
+
width: e.arrowWidth,
|
|
80
|
+
height: e.arrowWidth,
|
|
81
|
+
"stroke-color": e.$attrs["arrow-stroke-color"]
|
|
82
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : g("", !0)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["id", "data-cy", "class", "aria-expanded", "icon-class", "icon-name"])
|
|
86
|
+
]),
|
|
87
|
+
(n(), k(D(e.dropdownElement), {
|
|
88
|
+
id: "dropdown_" + e.id,
|
|
89
|
+
ref: "dropdown",
|
|
90
|
+
"data-cy": e.$attrs["data-cy"] && `${e.$attrs["data-cy"]}_dropdown`,
|
|
91
|
+
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
92
|
+
e.dropdownClasses,
|
|
93
|
+
t.value ? "uikit-flex" : "uikit-hidden",
|
|
94
|
+
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
95
|
+
{ "uikit-rounded-b uikit-border-t-0": e.direction === "down" },
|
|
96
|
+
{ "uikit-absolute": e.isAbsolute }
|
|
97
|
+
]]),
|
|
98
|
+
onClick: a[0] || (a[0] = u(() => {
|
|
99
|
+
}, ["stop"]))
|
|
100
|
+
}, {
|
|
101
|
+
default: p(() => [
|
|
102
|
+
c(e.$slots, "default", { isOpen: t.value })
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
}, 8, ["id", "data-cy", "class"]))
|
|
106
|
+
], 2));
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
M as _
|
|
111
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as v, useAttrs as y, reactive as g, computed as d, watch as C, onBeforeMount as V, openBlock as u, createElementBlock as i, normalizeClass as B, renderSlot as $, Fragment as A, renderList as G, createBlock as K, unref as E, createCommentVNode as R } from "vue";
|
|
2
|
+
import { h as w, G as L } from "./utilities-CBCDB5EB.js";
|
|
3
|
+
import I from "./lib/UIKit/Checkbox/CheckboxBtn.js";
|
|
4
|
+
const _ = ["id", "data-cy"], S = /* @__PURE__ */ v({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "CheckboxGroup",
|
|
7
|
+
props: {
|
|
8
|
+
valuesObj: { default() {
|
|
9
|
+
return {};
|
|
10
|
+
} },
|
|
11
|
+
formCheckInline: { type: Boolean, default: !1 },
|
|
12
|
+
customClass: { default: "" },
|
|
13
|
+
reset: { type: Boolean, default: !1 },
|
|
14
|
+
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
15
|
+
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
16
|
+
getKey: { default() {
|
|
17
|
+
return (r) => r.id;
|
|
18
|
+
} }
|
|
19
|
+
},
|
|
20
|
+
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
21
|
+
setup(r, { emit: b }) {
|
|
22
|
+
const f = y(), t = r, o = b, s = g({
|
|
23
|
+
checkedValuesObj: {}
|
|
24
|
+
}), a = d(() => {
|
|
25
|
+
for (const e in t.valuesObj) {
|
|
26
|
+
const c = t.valuesObj[e];
|
|
27
|
+
if (c.reset)
|
|
28
|
+
return c;
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}), p = d(
|
|
32
|
+
() => Object.keys(t.valuesObj).length
|
|
33
|
+
), h = d(
|
|
34
|
+
() => Object.values(s.checkedValuesObj).reduce(
|
|
35
|
+
(e, c) => c.checked ? e + 1 : e,
|
|
36
|
+
0
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
C(
|
|
40
|
+
() => t.reset,
|
|
41
|
+
(e) => {
|
|
42
|
+
e && (k(), o("resetted"));
|
|
43
|
+
}
|
|
44
|
+
), V(() => {
|
|
45
|
+
for (const e in t.valuesObj) {
|
|
46
|
+
const c = t.valuesObj[e];
|
|
47
|
+
c.checked = !!c.checked, s.checkedValuesObj[e] = c;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const k = () => {
|
|
51
|
+
for (const e in s.checkedValuesObj)
|
|
52
|
+
s.checkedValuesObj[e].checked = !1;
|
|
53
|
+
}, n = (e) => s.checkedValuesObj[t.getKey(e)].checked, m = (e) => {
|
|
54
|
+
s.checkedValuesObj[e.id].checked = !n(e);
|
|
55
|
+
}, j = (e) => {
|
|
56
|
+
if (!(!t.valuesObj || L(t.valuesObj))) {
|
|
57
|
+
if (t.valuesObj[e.id].reset && e.checked ? k() : a.value && !t.valuesObj[e.id].reset && (s.checkedValuesObj[t.getKey(a.value)].checked = !1), s.checkedValuesObj[e.id].checked = !!e.checked, t.autoCheckResetAll && a.value && h.value === p.value - 1)
|
|
58
|
+
for (const c in s.checkedValuesObj)
|
|
59
|
+
s.checkedValuesObj[c].checked = !!s.checkedValuesObj[c].reset;
|
|
60
|
+
t.autoCheckResetEmpty && a.value && !h.value && (s.checkedValuesObj[t.getKey(a.value)].checked = !0), o(
|
|
61
|
+
"update:modelValue",
|
|
62
|
+
Object.values(s.checkedValuesObj).filter(
|
|
63
|
+
(c) => c.checked
|
|
64
|
+
)
|
|
65
|
+
), o("checkedGroup", f["group-id"] || "");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (e, c) => (u(), i("div", {
|
|
69
|
+
id: e.$attrs["group-id"] || "",
|
|
70
|
+
class: B(["checkbox-group-container", e.$attrs.class || ""]),
|
|
71
|
+
"data-cy": e.$attrs["data-cy"] || ""
|
|
72
|
+
}, [
|
|
73
|
+
$(e.$slots, "checkboxElement", {
|
|
74
|
+
isActive: n,
|
|
75
|
+
handleChange: m
|
|
76
|
+
}, () => [
|
|
77
|
+
e.valuesObj ? (u(!0), i(A, { key: 0 }, G(e.valuesObj, (l, z, O) => (u(), K(I, {
|
|
78
|
+
id: e.getKey(l),
|
|
79
|
+
key: O,
|
|
80
|
+
"data-cy": `checkbox_${E(w)(`${l.label}`)}`,
|
|
81
|
+
label: l.label,
|
|
82
|
+
inline: e.formCheckInline,
|
|
83
|
+
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
84
|
+
"model-value": n(l),
|
|
85
|
+
onChange: j
|
|
86
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : R("", !0)
|
|
87
|
+
])
|
|
88
|
+
], 10, _));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
S as _
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),h=require("./utilities-gwVlEyWn.cjs"),m=require("./lib/UIKit/Checkbox/CheckboxBtn.cjs"),v=["id","data-cy"],y=t.defineComponent({inheritAttrs:!1,__name:"CheckboxGroup",props:{valuesObj:{default(){return{}}},formCheckInline:{type:Boolean,default:!1},customClass:{default:""},reset:{type:Boolean,default:!1},autoCheckResetAll:{type:Boolean,default:!1},autoCheckResetEmpty:{type:Boolean,default:!1},getKey:{default(){return o=>o.id}}},emits:["resetted","update:modelValue","checkedGroup"],setup(o,{emit:k}){const b=t.useAttrs(),c=o,r=k,a=t.reactive({checkedValuesObj:{}}),l=t.computed(()=>{for(const e in c.valuesObj){const s=c.valuesObj[e];if(s.reset)return s}return null}),f=t.computed(()=>Object.keys(c.valuesObj).length),d=t.computed(()=>Object.values(a.checkedValuesObj).reduce((e,s)=>s.checked?e+1:e,0));t.watch(()=>c.reset,e=>{e&&(i(),r("resetted"))}),t.onBeforeMount(()=>{for(const e in c.valuesObj){const s=c.valuesObj[e];s.checked=!!s.checked,a.checkedValuesObj[e]=s}});const i=()=>{for(const e in a.checkedValuesObj)a.checkedValuesObj[e].checked=!1},u=e=>a.checkedValuesObj[c.getKey(e)].checked,p=e=>{a.checkedValuesObj[e.id].checked=!u(e)},j=e=>{if(!(!c.valuesObj||h.Gn(c.valuesObj))){if(c.valuesObj[e.id].reset&&e.checked?i():l.value&&!c.valuesObj[e.id].reset&&(a.checkedValuesObj[c.getKey(l.value)].checked=!1),a.checkedValuesObj[e.id].checked=!!e.checked,c.autoCheckResetAll&&l.value&&d.value===f.value-1)for(const s in a.checkedValuesObj)a.checkedValuesObj[s].checked=!!a.checkedValuesObj[s].reset;c.autoCheckResetEmpty&&l.value&&!d.value&&(a.checkedValuesObj[c.getKey(l.value)].checked=!0),r("update:modelValue",Object.values(a.checkedValuesObj).filter(s=>s.checked)),r("checkedGroup",b["group-id"]||"")}};return(e,s)=>(t.openBlock(),t.createElementBlock("div",{id:e.$attrs["group-id"]||"",class:t.normalizeClass(["checkbox-group-container",e.$attrs.class||""]),"data-cy":e.$attrs["data-cy"]||""},[t.renderSlot(e.$slots,"checkboxElement",{isActive:u,handleChange:p},()=>[e.valuesObj?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valuesObj,(n,C,O)=>(t.openBlock(),t.createBlock(m,{id:e.getKey(n),key:O,"data-cy":`checkbox_${t.unref(h.hs)(`${n.label}`)}`,label:n.label,inline:e.formCheckInline,"wrapper-margin-y":e.$attrs["checkbox-padding-y"],"model-value":u(n),onChange:j},null,8,["id","data-cy","label","inline","wrapper-margin-y","model-value"]))),128)):t.createCommentVNode("",!0)])],10,v))}});exports._sfc_main=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),s=require("./DefaultValues-S0CTWW-b.cjs"),h=(o,{attrs:e})=>{o={...s.getDefaultSvgPropsValues(),...o};const{width:t,height:n}=o;return i.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.558 18.558",width:`${t}`,height:`${n}`,class:o.class??"","aria-hidden":e["aria-hidden"]??"true"},i.h("g",{fill:"none",stroke:`${e["stroke-color"]??"#222"}`,"stroke-linecap":`${e["stroke-linecap"]??"round"}`,"stroke-linejoin":`${e["stroke-linejoin"]??"round"}`,"stroke-width":`${e["stroke-width"]??"3"}`},[i.h("path",{d:"m2.121 2.121 14.316 14.316"}),i.h("path",{d:"M2.121 16.437 16.244 2.121"})]))};exports.CloseIcon=h;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { h as i } from "vue";
|
|
2
|
+
import { g as r } from "./DefaultValues-k7iQWtC2.js";
|
|
3
|
+
const l = (o, { attrs: e }) => {
|
|
4
|
+
o = { ...r(), ...o };
|
|
5
|
+
const { width: t, height: n } = o;
|
|
6
|
+
return i(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
viewBox: "0 0 18.558 18.558",
|
|
11
|
+
width: `${t}`,
|
|
12
|
+
height: `${n}`,
|
|
13
|
+
class: o.class ?? "",
|
|
14
|
+
"aria-hidden": e["aria-hidden"] ?? "true"
|
|
15
|
+
},
|
|
16
|
+
i(
|
|
17
|
+
"g",
|
|
18
|
+
{
|
|
19
|
+
fill: "none",
|
|
20
|
+
stroke: `${e["stroke-color"] ?? "#222"}`,
|
|
21
|
+
"stroke-linecap": `${e["stroke-linecap"] ?? "round"}`,
|
|
22
|
+
"stroke-linejoin": `${e["stroke-linejoin"] ?? "round"}`,
|
|
23
|
+
"stroke-width": `${e["stroke-width"] ?? "3"}`
|
|
24
|
+
},
|
|
25
|
+
[
|
|
26
|
+
i("path", {
|
|
27
|
+
d: "m2.121 2.121 14.316 14.316"
|
|
28
|
+
}),
|
|
29
|
+
i("path", {
|
|
30
|
+
d: "M2.121 16.437 16.244 2.121"
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
l as C
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=()=>({width:20,height:20,strokeColor:"#222",fillColor:"none"});exports.getDefaultSvgPropsValues=e;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as t, ref as l, onMounted as a, openBlock as i, createElementBlock as b, normalizeClass as p, renderSlot as s } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ t({
|
|
3
|
+
__name: "IntersectionObservable",
|
|
4
|
+
props: {
|
|
5
|
+
observer: {},
|
|
6
|
+
isVisible: { type: Boolean }
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const r = n, o = l(null);
|
|
10
|
+
return a(() => {
|
|
11
|
+
!r.observer || !o.value || r.observer.observe(o.value);
|
|
12
|
+
}), (e, v) => e.isVisible ? s(e.$slots, "observable", { key: 1 }) : (i(), b("div", {
|
|
13
|
+
key: 0,
|
|
14
|
+
ref_key: "root",
|
|
15
|
+
ref: o,
|
|
16
|
+
class: p(e.$attrs["root-classes"])
|
|
17
|
+
}, [
|
|
18
|
+
s(e.$slots, "observable")
|
|
19
|
+
], 2));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
u as _
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=e.defineComponent({__name:"IntersectionObservable",props:{observer:{},isVisible:{type:Boolean}},setup(n){const o=n,s=e.ref(null);return e.onMounted(()=>{!o.observer||!s.value||o.observer.observe(s.value)}),(r,l)=>r.isVisible?e.renderSlot(r.$slots,"observable",{key:1}):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"root",ref:s,class:e.normalizeClass(r.$attrs["root-classes"])},[e.renderSlot(r.$slots,"observable")],2))}});exports._sfc_main=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),f=e.defineComponent({__name:"IntersectionObserver",props:{observeOnce:{type:Boolean,default:!0},skip:{type:Boolean,default:!1},threshold:{default:0}},emits:["intersection"],setup(l,{emit:u}){const a=u,t=l;let o=e.reactive({root:null,isVisible:!1});const s=e.ref(null),c=r=>{r.forEach(({target:n,isIntersecting:i})=>{i&&(o.isVisible=!0,a("intersection")),t.observeOnce&&i&&v(n)})},v=r=>{s.value&&s.value.unobserve(r)},b=()=>{s.value&&s.value.disconnect()};return e.onBeforeMount(()=>{if(t.skip){o.isVisible=!0;return}s.value=new IntersectionObserver(c,{root:null,threshold:t.threshold})}),e.onBeforeUnmount(()=>{b()}),(r,n)=>e.unref(o).isVisible?e.renderSlot(r.$slots,"observer",{key:1,observer:s.value,isVisible:e.unref(o).isVisible}):(e.openBlock(),e.createElementBlock("div",{key:0,ref:"root",class:e.normalizeClass(r.$attrs["root-classes"])},[e.renderSlot(r.$slots,"observer",{observer:s.value,isVisible:e.unref(o).isVisible})],2))}});exports._sfc_main=f;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as p, reactive as d, ref as m, onBeforeMount as h, onBeforeUnmount as V, unref as t, openBlock as k, createElementBlock as B, normalizeClass as O, renderSlot as l } from "vue";
|
|
2
|
+
const _ = /* @__PURE__ */ p({
|
|
3
|
+
__name: "IntersectionObserver",
|
|
4
|
+
props: {
|
|
5
|
+
observeOnce: { type: Boolean, default: !0 },
|
|
6
|
+
skip: { type: Boolean, default: !1 },
|
|
7
|
+
threshold: { default: 0 }
|
|
8
|
+
},
|
|
9
|
+
emits: ["intersection"],
|
|
10
|
+
setup(a, { emit: u }) {
|
|
11
|
+
const c = u, o = a;
|
|
12
|
+
let r = d({ root: null, isVisible: !1 });
|
|
13
|
+
const e = m(null), v = (s) => {
|
|
14
|
+
s.forEach(({ target: n, isIntersecting: i }) => {
|
|
15
|
+
i && (r.isVisible = !0, c("intersection")), o.observeOnce && i && b(n);
|
|
16
|
+
});
|
|
17
|
+
}, b = (s) => {
|
|
18
|
+
e.value && e.value.unobserve(s);
|
|
19
|
+
}, f = () => {
|
|
20
|
+
e.value && e.value.disconnect();
|
|
21
|
+
};
|
|
22
|
+
return h(() => {
|
|
23
|
+
if (o.skip) {
|
|
24
|
+
r.isVisible = !0;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
e.value = new IntersectionObserver(v, {
|
|
28
|
+
root: null,
|
|
29
|
+
//if the root is null, then we will check if the target is visible in the doc root!
|
|
30
|
+
threshold: o.threshold
|
|
31
|
+
});
|
|
32
|
+
}), V(() => {
|
|
33
|
+
f();
|
|
34
|
+
}), (s, n) => t(r).isVisible ? l(s.$slots, "observer", {
|
|
35
|
+
key: 1,
|
|
36
|
+
observer: e.value,
|
|
37
|
+
isVisible: t(r).isVisible
|
|
38
|
+
}) : (k(), B("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
ref: "root",
|
|
41
|
+
class: O(s.$attrs["root-classes"])
|
|
42
|
+
}, [
|
|
43
|
+
l(s.$slots, "observer", {
|
|
44
|
+
observer: e.value,
|
|
45
|
+
isVisible: t(r).isVisible
|
|
46
|
+
})
|
|
47
|
+
], 2));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
_
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),u=["tabindex"],c=["innerHTML"],d=e.defineComponent({__name:"SelectItem",props:{label:{default:""},active:{type:Boolean,default:!1},idx:{default:-1}},emits:["click","mouseover"],setup(o,{emit:a}){const l=a,i=o,s=e.ref(null);return e.watch(()=>i.active,t=>{t&&e.nextTick(()=>{s.value?.focus()})},{immediate:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"liItem",ref:s,class:e.normalizeClass(["uikit-text-w-black",[{"active uikit-bg-w-cultured":t.active},"uikit-outline-none",t.$attrs.class]]),tabindex:t.$attrs.tabindex??-1,onClick:n[0]||(n[0]=r=>l("click",i.idx)),onMouseover:n[1]||(n[1]=r=>l("mouseover",i.idx))},[e.renderSlot(t.$slots,"default",{itemIdx:t.idx},()=>[e.createElementVNode("span",{innerHTML:i.label},null,8,c)])],42,u))}});exports._sfc_main=d;
|