@wikicasa-dev/components 2.1.2-alpha.4 → 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 -247
- /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,11 +1,16 @@
|
|
|
1
|
-
import { defineComponent as T, ref as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as T, ref as d, useTemplateRef as z, onUnmounted as H, watch as O, createBlock as $, openBlock as m, Teleport as D, createElementVNode as a, normalizeClass as s, withModifiers as y, createElementBlock as h, createCommentVNode as w, renderSlot as r, createVNode as I, unref as K, nextTick as N } from "vue";
|
|
2
|
+
import "./polyline.tNTK3v2u.js";
|
|
3
|
+
import { l as V } from "./CloseIcon.BZ4U3aiI.js";
|
|
4
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
+
import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("Windows"), A = (o, c) => new Promise((l, t) => {
|
|
6
|
+
setTimeout(() => {
|
|
7
|
+
try {
|
|
8
|
+
o && o(), l();
|
|
9
|
+
} catch {
|
|
10
|
+
t();
|
|
11
|
+
}
|
|
12
|
+
}, c);
|
|
13
|
+
}), F = ["id", "data-cy"], P = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
9
14
|
__name: "BaseModal",
|
|
10
15
|
props: {
|
|
11
16
|
id: { default: "base-bt-modal" },
|
|
@@ -27,67 +32,67 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
27
32
|
titleClasses: {}
|
|
28
33
|
},
|
|
29
34
|
emits: ["closed", "opened", "dialogClick"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
35
|
+
setup(o, { emit: c }) {
|
|
36
|
+
const l = c, t = d(!1), f = d(null), u = z("modalDialog"), k = d(!1), n = d(!1), p = ({ key: e }) => {
|
|
32
37
|
e === "Escape" && i();
|
|
33
|
-
},
|
|
34
|
-
document?.body.addEventListener("keydown",
|
|
35
|
-
},
|
|
36
|
-
document?.body.removeEventListener("keydown",
|
|
38
|
+
}, C = () => {
|
|
39
|
+
document?.body.addEventListener("keydown", p);
|
|
40
|
+
}, b = () => {
|
|
41
|
+
document?.body.removeEventListener("keydown", p);
|
|
37
42
|
}, M = async () => {
|
|
38
43
|
t.value = !0, N(() => {
|
|
39
|
-
|
|
40
|
-
}),
|
|
44
|
+
C(), g() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
45
|
+
}), l("opened"), o.autoClose !== void 0 && setTimeout(() => {
|
|
41
46
|
i();
|
|
42
|
-
},
|
|
47
|
+
}, o.autoClose);
|
|
43
48
|
}, B = (e) => {
|
|
44
|
-
|
|
49
|
+
u.value && u.value.contains(e.target) && (n.value = !0);
|
|
45
50
|
}, x = (e) => {
|
|
46
|
-
|
|
51
|
+
u.value && u.value.contains(e.target) && (n.value = !1);
|
|
47
52
|
}, L = async () => {
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
|
|
53
|
+
if (o.closeOnClickOut) {
|
|
54
|
+
if (n.value) {
|
|
55
|
+
n.value = !1;
|
|
51
56
|
return;
|
|
52
57
|
}
|
|
53
58
|
await i();
|
|
54
59
|
}
|
|
55
60
|
}, i = async () => {
|
|
56
|
-
t.value = !1,
|
|
57
|
-
|
|
61
|
+
t.value = !1, b(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await A(() => {
|
|
62
|
+
f.value?.classList.add("uikit-hidden"), l("closed");
|
|
58
63
|
}, 250);
|
|
59
64
|
};
|
|
60
65
|
return H(() => {
|
|
61
|
-
|
|
62
|
-
}),
|
|
63
|
-
() =>
|
|
66
|
+
b(), document?.documentElement.classList.remove("uikit-no-scrolling"), g() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
67
|
+
}), O(
|
|
68
|
+
() => o.showModal,
|
|
64
69
|
async (e) => {
|
|
65
|
-
!e && !t.value ?
|
|
70
|
+
!e && !t.value ? k.value = !0 : k.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
66
71
|
},
|
|
67
72
|
{ immediate: !0 }
|
|
68
|
-
), (e,
|
|
69
|
-
|
|
73
|
+
), (e, v) => (m(), $(D, { to: "body" }, [
|
|
74
|
+
a("div", {
|
|
70
75
|
ref_key: "backdropEl",
|
|
71
|
-
ref:
|
|
72
|
-
class:
|
|
76
|
+
ref: f,
|
|
77
|
+
class: s(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
73
78
|
e.customBackdropClasses,
|
|
74
79
|
{
|
|
75
80
|
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
76
81
|
},
|
|
77
82
|
{ "uikit-bg-transparent": !t.value },
|
|
78
83
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
79
|
-
{ hide:
|
|
84
|
+
{ hide: k.value }
|
|
80
85
|
]]),
|
|
81
86
|
style: { "z-index": "1062" },
|
|
82
87
|
onClick: L,
|
|
83
88
|
onMousedown: B,
|
|
84
89
|
onMouseup: x
|
|
85
90
|
}, [
|
|
86
|
-
|
|
91
|
+
a("dialog", {
|
|
87
92
|
id: e.id,
|
|
88
93
|
ref: "modalDialog",
|
|
89
94
|
"data-cy": e.dataCy,
|
|
90
|
-
class:
|
|
95
|
+
class: s(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
91
96
|
e.customModalDialogClasses,
|
|
92
97
|
{ show: t.value },
|
|
93
98
|
{ "closed uikit-overflow-hidden": !t.value },
|
|
@@ -97,50 +102,50 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
97
102
|
`base-${e.size}`,
|
|
98
103
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
99
104
|
]]),
|
|
100
|
-
onClick:
|
|
105
|
+
onClick: v[0] || (v[0] = y((E) => l("dialogClick", E), ["stop"]))
|
|
101
106
|
}, [
|
|
102
|
-
|
|
103
|
-
class:
|
|
107
|
+
a("div", {
|
|
108
|
+
class: s(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
|
|
104
109
|
}, [
|
|
105
|
-
e.withCloseIcon ? (
|
|
110
|
+
e.withCloseIcon ? (m(), h("button", {
|
|
106
111
|
key: 0,
|
|
107
112
|
id: "close-icon-btn",
|
|
108
113
|
"data-cy": "bbt-default-close-icon-btn",
|
|
109
|
-
class:
|
|
114
|
+
class: s(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
110
115
|
type: "button",
|
|
111
116
|
"aria-label": "Close",
|
|
112
|
-
onClick:
|
|
117
|
+
onClick: y(i, ["prevent", "stop"])
|
|
113
118
|
}, [
|
|
114
|
-
|
|
119
|
+
I(K(V), {
|
|
115
120
|
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
116
121
|
width: 30,
|
|
117
122
|
height: 30
|
|
118
123
|
})
|
|
119
|
-
], 2)) :
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
class:
|
|
124
|
+
], 2)) : w("", !0),
|
|
125
|
+
r(e.$slots, "header", { closeModal: i }, () => [
|
|
126
|
+
a("span", {
|
|
127
|
+
class: s(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
123
128
|
innerHTML: e.headerTitle
|
|
124
|
-
}, null, 10,
|
|
129
|
+
}, null, 10, P)
|
|
125
130
|
])
|
|
126
131
|
], 2),
|
|
127
|
-
|
|
128
|
-
class:
|
|
132
|
+
a("div", {
|
|
133
|
+
class: s(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [e.customModalBodyClasses]])
|
|
129
134
|
}, [
|
|
130
|
-
|
|
135
|
+
r(e.$slots, "body", { closeModal: i })
|
|
131
136
|
], 2),
|
|
132
|
-
e.$slots.footer ? (
|
|
137
|
+
e.$slots.footer ? (m(), h("div", {
|
|
133
138
|
key: 0,
|
|
134
|
-
class:
|
|
139
|
+
class: s(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
|
|
135
140
|
}, [
|
|
136
|
-
|
|
137
|
-
], 2)) :
|
|
138
|
-
|
|
141
|
+
r(e.$slots, "footer", { closeModal: i })
|
|
142
|
+
], 2)) : w("", !0),
|
|
143
|
+
r(e.$slots, "fixed-bottom")
|
|
139
144
|
], 10, F)
|
|
140
145
|
], 34)
|
|
141
146
|
]));
|
|
142
147
|
}
|
|
143
148
|
});
|
|
144
149
|
export {
|
|
145
|
-
|
|
150
|
+
j as _
|
|
146
151
|
};
|
|
@@ -1,28 +1,40 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as P, useModel as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { defineComponent as j, mergeModels as P, useModel as D, computed as s, createElementBlock as n, openBlock as r, createCommentVNode as o, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, Fragment as m, renderList as x } from "vue";
|
|
2
|
+
import "./polyline.tNTK3v2u.js";
|
|
3
|
+
import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
+
function d(l, t = !1) {
|
|
6
|
+
return l == null ? "" : S(t ? Math.round(l) : Math.floor(l), 0);
|
|
7
|
+
}
|
|
8
|
+
function S(l, t) {
|
|
9
|
+
return !l && l !== 0 ? "" : l.toLocaleString(
|
|
10
|
+
"it-IT",
|
|
11
|
+
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
+
{
|
|
13
|
+
minimumFractionDigits: t,
|
|
14
|
+
maximumFractionDigits: t,
|
|
15
|
+
useGrouping: "always"
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const $ = {
|
|
8
20
|
"aria-label": "Page navigation",
|
|
9
21
|
class: "uikit-overflow-auto"
|
|
10
|
-
},
|
|
22
|
+
}, B = {
|
|
11
23
|
key: 0,
|
|
12
24
|
class: "uikit-text-14 uikit-m-0 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-p-0 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
|
|
13
|
-
},
|
|
25
|
+
}, F = ["data-cy"], O = {
|
|
14
26
|
key: 0,
|
|
15
27
|
class: "uikit-mx-10px uikit-select-none"
|
|
16
|
-
},
|
|
28
|
+
}, V = {
|
|
17
29
|
key: 1,
|
|
18
30
|
class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
19
|
-
},
|
|
31
|
+
}, A = ["onClick"], E = ["onClick"], z = {
|
|
20
32
|
key: 0,
|
|
21
33
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
22
|
-
},
|
|
34
|
+
}, G = ["data-cy"], T = {
|
|
23
35
|
key: 0,
|
|
24
36
|
class: "uikit-mx-10px uikit-select-none"
|
|
25
|
-
},
|
|
37
|
+
}, Q = /* @__PURE__ */ j({
|
|
26
38
|
__name: "BasePagination",
|
|
27
39
|
props: /* @__PURE__ */ P({
|
|
28
40
|
count: { default: 0 },
|
|
@@ -40,113 +52,113 @@ const D = {
|
|
|
40
52
|
pageNumberModifiers: {}
|
|
41
53
|
}),
|
|
42
54
|
emits: ["update:pageNumber"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
() => (
|
|
55
|
+
setup(l) {
|
|
56
|
+
const t = D(l, "pageNumber"), a = s(() => Math.ceil((l.count + l.additionalCount) / l.limit)), g = s(() => (t.value || 0) > l.siblings + 2), f = s(
|
|
57
|
+
() => (t.value || 0) < a.value - l.siblings - 1
|
|
46
58
|
), b = s(() => {
|
|
47
|
-
let e =
|
|
48
|
-
for (; e > 2 &&
|
|
49
|
-
e--,
|
|
50
|
-
return
|
|
59
|
+
let e = t.value || 0, u = 0;
|
|
60
|
+
for (; e > 2 && u < l.siblings; )
|
|
61
|
+
e--, u++;
|
|
62
|
+
return u;
|
|
51
63
|
}), w = s(() => {
|
|
52
|
-
let e =
|
|
53
|
-
for (; e <
|
|
54
|
-
e++,
|
|
55
|
-
return
|
|
64
|
+
let e = t.value || 0, u = 0;
|
|
65
|
+
for (; e < a.value - 1 && u < l.siblings; )
|
|
66
|
+
e++, u++;
|
|
67
|
+
return u;
|
|
56
68
|
}), N = s(() => {
|
|
57
69
|
const i = b.value + /* Filling with the remaining right siblings */
|
|
58
|
-
Math.abs(w.value -
|
|
70
|
+
Math.abs(w.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
59
71
|
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
60
|
-
new Number(
|
|
61
|
-
let e = Math.max((
|
|
62
|
-
const
|
|
63
|
-
for (e; e < (
|
|
64
|
-
return
|
|
72
|
+
new Number(t.value === a.value).valueOf();
|
|
73
|
+
let e = Math.max((t.value || 0) - i, 2);
|
|
74
|
+
const u = [];
|
|
75
|
+
for (e; e < (t.value || 0); e++) u.push(e);
|
|
76
|
+
return u;
|
|
65
77
|
}), M = s(() => {
|
|
66
78
|
const i = w.value + /* Filling with the remaining left siblings */
|
|
67
|
-
Math.abs(b.value -
|
|
79
|
+
Math.abs(b.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
68
80
|
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
69
|
-
new Number(
|
|
70
|
-
let e = Math.min(
|
|
71
|
-
const
|
|
72
|
-
for (e; e < Math.min((
|
|
73
|
-
|
|
74
|
-
return
|
|
81
|
+
new Number(t.value === 1).valueOf();
|
|
82
|
+
let e = Math.min(t.value || 0, a.value - 1);
|
|
83
|
+
const u = [];
|
|
84
|
+
for (e; e < Math.min((t.value || 0) + i, a.value - 1); e++)
|
|
85
|
+
u.push(e + 1);
|
|
86
|
+
return u;
|
|
75
87
|
}), k = (i) => {
|
|
76
88
|
let e = i;
|
|
77
|
-
i < 1 ? e = 1 : i >
|
|
89
|
+
i < 1 ? e = 1 : i > a.value && (e = a.value), t.value = e;
|
|
78
90
|
};
|
|
79
|
-
return (i, e) => (r(),
|
|
80
|
-
i.count > 0 ? (r(),
|
|
91
|
+
return (i, e) => (r(), n("nav", $, [
|
|
92
|
+
i.count > 0 ? (r(), n("ul", B, [
|
|
81
93
|
p("li", {
|
|
82
94
|
class: h(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
83
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert":
|
|
84
|
-
"hover:uikit-text-white": i.small &&
|
|
95
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": t.value !== 1,
|
|
96
|
+
"hover:uikit-text-white": i.small && t.value !== 1,
|
|
85
97
|
"uikit-rounded-xs": i.small && i.prevLabel
|
|
86
98
|
}]),
|
|
87
99
|
"data-cy": i.prevDataCy,
|
|
88
|
-
onClick: e[0] || (e[0] = (
|
|
100
|
+
onClick: e[0] || (e[0] = (u) => k((t.value || 0) - 1))
|
|
89
101
|
}, [
|
|
90
102
|
y(v(C), {
|
|
91
103
|
width: 20,
|
|
92
104
|
height: 11,
|
|
93
|
-
"stroke-color":
|
|
105
|
+
"stroke-color": t.value === 1 ? "#8996A9" : i.arrowColor,
|
|
94
106
|
class: "uikit-inline-block uikit-rotate-90"
|
|
95
107
|
}, null, 8, ["stroke-color"]),
|
|
96
|
-
i.small && i.prevLabel ? (r(),
|
|
97
|
-
], 10,
|
|
98
|
-
i.small ? o("", !0) : (r(),
|
|
99
|
-
(
|
|
108
|
+
i.small && i.prevLabel ? (r(), n("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
109
|
+
], 10, F),
|
|
110
|
+
i.small ? o("", !0) : (r(), n(m, { key: 0 }, [
|
|
111
|
+
(t.value || 0) > 1 ? (r(), n("li", {
|
|
100
112
|
key: 0,
|
|
101
113
|
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
102
|
-
onClick: e[1] || (e[1] = (
|
|
114
|
+
onClick: e[1] || (e[1] = (u) => k(0))
|
|
103
115
|
}, " 1 ")) : o("", !0),
|
|
104
|
-
g.value ? (r(),
|
|
105
|
-
(r(!0),
|
|
106
|
-
key:
|
|
116
|
+
g.value ? (r(), n("li", V, " ... ")) : o("", !0),
|
|
117
|
+
(r(!0), n(m, null, x(N.value, (u) => (r(), n("li", {
|
|
118
|
+
key: u,
|
|
107
119
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
108
|
-
onClick: (L) => k(
|
|
109
|
-
}, c(v(d)(
|
|
120
|
+
onClick: (L) => k(u)
|
|
121
|
+
}, c(v(d)(u)), 9, A))), 128))
|
|
110
122
|
], 64)),
|
|
111
123
|
p("li", {
|
|
112
124
|
class: h(["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
113
125
|
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
114
126
|
}])
|
|
115
|
-
}, c(
|
|
116
|
-
i.small ? o("", !0) : (r(),
|
|
117
|
-
(r(!0),
|
|
118
|
-
key:
|
|
127
|
+
}, c(t.value || 0), 3),
|
|
128
|
+
i.small ? o("", !0) : (r(), n(m, { key: 1 }, [
|
|
129
|
+
(r(!0), n(m, null, x(M.value, (u) => (r(), n("li", {
|
|
130
|
+
key: u,
|
|
119
131
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
120
|
-
onClick: (L) => k(
|
|
121
|
-
}, c(v(d)(
|
|
122
|
-
f.value ? (r(),
|
|
123
|
-
(
|
|
132
|
+
onClick: (L) => k(u)
|
|
133
|
+
}, c(v(d)(u)), 9, E))), 128)),
|
|
134
|
+
f.value ? (r(), n("li", z, " ... ")) : o("", !0),
|
|
135
|
+
(t.value || 0) < a.value ? (r(), n("li", {
|
|
124
136
|
key: 1,
|
|
125
137
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
126
|
-
onClick: e[2] || (e[2] = (
|
|
127
|
-
}, c(v(d)(
|
|
138
|
+
onClick: e[2] || (e[2] = (u) => k(a.value))
|
|
139
|
+
}, c(v(d)(a.value)), 1)) : o("", !0)
|
|
128
140
|
], 64)),
|
|
129
141
|
p("li", {
|
|
130
142
|
class: h(["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
131
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (
|
|
132
|
-
"hover:uikit-text-white": i.small && (
|
|
143
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (t.value || 0) < a.value,
|
|
144
|
+
"hover:uikit-text-white": i.small && (t.value || 0) < a.value,
|
|
133
145
|
"uikit-rounded-xs": i.small && i.nextLabel
|
|
134
146
|
}]),
|
|
135
147
|
"data-cy": i.nextDataCy,
|
|
136
|
-
onClick: e[3] || (e[3] = (
|
|
148
|
+
onClick: e[3] || (e[3] = (u) => k((t.value || 0) + 1))
|
|
137
149
|
}, [
|
|
138
|
-
i.small && i.nextLabel ? (r(),
|
|
150
|
+
i.small && i.nextLabel ? (r(), n("span", T, c(i.nextLabel), 1)) : o("", !0),
|
|
139
151
|
y(v(C), {
|
|
140
|
-
"stroke-color": (
|
|
152
|
+
"stroke-color": (t.value || 0) === a.value ? "#8996A9" : i.arrowColor,
|
|
141
153
|
width: 20,
|
|
142
154
|
height: 11,
|
|
143
155
|
class: "uikit-inline-block -uikit-rotate-90"
|
|
144
156
|
}, null, 8, ["stroke-color"])
|
|
145
|
-
], 10,
|
|
157
|
+
], 10, G)
|
|
146
158
|
])) : o("", !0)
|
|
147
159
|
]));
|
|
148
160
|
}
|
|
149
161
|
});
|
|
150
162
|
export {
|
|
151
|
-
|
|
163
|
+
Q as _
|
|
152
164
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as S, mergeModels as C, useModel as z, ref as b, useId as j, useSlots as q, computed as G, provide as v, watch as k, createElementBlock as p, openBlock as
|
|
2
|
-
import R from "./BaseTabPanel.
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as S, mergeModels as C, useModel as z, ref as b, useId as j, useSlots as q, computed as G, provide as v, watch as k, createElementBlock as p, openBlock as i, normalizeClass as I, createElementVNode as H, createBlock as d, createCommentVNode as o, unref as f, toDisplayString as J, Fragment as _, renderList as K, withCtx as O, resolveDynamicComponent as Q } from "vue";
|
|
2
|
+
import { _ as R } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js";
|
|
3
|
+
import { _ as g } from "./BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js";
|
|
4
4
|
const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseTabView",
|
|
@@ -14,8 +14,8 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
14
14
|
activeIdxModifiers: {}
|
|
15
15
|
}),
|
|
16
16
|
emits: /* @__PURE__ */ C(["tabClicked"], ["update:activeIdx"]),
|
|
17
|
-
setup(
|
|
18
|
-
const B = x,
|
|
17
|
+
setup(P, { emit: x }) {
|
|
18
|
+
const B = x, l = z(P, "activeIdx"), $ = b(""), u = b(null), A = b(null), r = j(), m = q(), c = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", y = (e, a) => ({
|
|
19
19
|
renderFn: e,
|
|
20
20
|
tabId: T(a),
|
|
21
21
|
"active-tab-panel-idx": c(e)?.["active-tab-panel-idx"] ?? a,
|
|
@@ -26,13 +26,13 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
26
26
|
}), n = G(() => m.default ? m.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
|
|
27
27
|
h(t) && e.push(y(t, e.length));
|
|
28
28
|
}) : h(a) && e.push(y(a, e.length)), e), []) : []);
|
|
29
|
-
v("tabs", n), v("isTabActive", (e) =>
|
|
29
|
+
v("tabs", n), v("isTabActive", (e) => l.value === e);
|
|
30
30
|
const F = (e = -1) => u.value === e, T = (e) => `base-tab-${e}-${r}`, V = (e = -1) => `base-tab-panel-${e}-${r}`, w = (e = -1) => {
|
|
31
31
|
const a = n.value.reduce(
|
|
32
32
|
(t, s, N) => (s["active-tab-panel-idx"] !== e || t.push({ tab: s, idx: N }), t),
|
|
33
33
|
[]
|
|
34
34
|
);
|
|
35
|
-
return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx ===
|
|
35
|
+
return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx === l.value)?.tab.tabId;
|
|
36
36
|
}, D = (e) => {
|
|
37
37
|
$.value = T(e);
|
|
38
38
|
}, L = (e) => {
|
|
@@ -40,9 +40,9 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
40
40
|
u.value = a?.["active-tab-panel-idx"] ?? null;
|
|
41
41
|
};
|
|
42
42
|
v("handleClick", (e, a) => {
|
|
43
|
-
D(e),
|
|
43
|
+
D(e), l.value = e, B("tabClicked", { tabIdx: e, tabElement: a });
|
|
44
44
|
}), k(
|
|
45
|
-
|
|
45
|
+
l,
|
|
46
46
|
(e) => {
|
|
47
47
|
L(e ?? -1);
|
|
48
48
|
},
|
|
@@ -61,9 +61,9 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
61
61
|
const t = E(e, a);
|
|
62
62
|
if (t === null) return;
|
|
63
63
|
const s = n.value[t]["active-tab-panel-idx"];
|
|
64
|
-
|
|
64
|
+
l.value !== t || s === void 0 || (u.value = s);
|
|
65
65
|
}
|
|
66
|
-
), (e, a) => (
|
|
66
|
+
), (e, a) => (i(), p("div", {
|
|
67
67
|
ref_key: "root",
|
|
68
68
|
ref: A,
|
|
69
69
|
class: I(e.$attrs.class),
|
|
@@ -73,13 +73,13 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
73
73
|
id: `tablist-${f(r)}`,
|
|
74
74
|
class: "uikit-sr-only"
|
|
75
75
|
}, J(e.tabViewDescription), 9, W),
|
|
76
|
-
e.tabsPosition === "top" ? (
|
|
76
|
+
e.tabsPosition === "top" ? (i(), d(g, {
|
|
77
77
|
key: 0,
|
|
78
78
|
uid: f(r),
|
|
79
79
|
"tab-list-classes": e.tabListClasses
|
|
80
80
|
}, null, 8, ["uid", "tab-list-classes"])) : o("", !0),
|
|
81
|
-
(
|
|
82
|
-
M(s) ? (
|
|
81
|
+
(i(!0), p(_, null, K(n.value, (t, s) => (i(), p(_, { key: s }, [
|
|
82
|
+
M(s) ? (i(), d(R, {
|
|
83
83
|
key: 0,
|
|
84
84
|
id: V(t["active-tab-panel-idx"]),
|
|
85
85
|
"labelled-by": w(s) ?? "",
|
|
@@ -87,12 +87,12 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
87
87
|
class: I(t["tab-panel-classes"])
|
|
88
88
|
}, {
|
|
89
89
|
default: O(() => [
|
|
90
|
-
t.renderFn.children && t.renderFn.children.default ? (
|
|
90
|
+
t.renderFn.children && t.renderFn.children.default ? (i(), d(Q(t.renderFn.children.default), { key: 0 })) : o("", !0)
|
|
91
91
|
]),
|
|
92
92
|
_: 2
|
|
93
93
|
}, 1032, ["id", "labelled-by", "active", "class"])) : o("", !0)
|
|
94
94
|
], 64))), 128)),
|
|
95
|
-
e.tabsPosition === "bottom" ? (
|
|
95
|
+
e.tabsPosition === "bottom" ? (i(), d(g, {
|
|
96
96
|
key: 1,
|
|
97
97
|
uid: f(r),
|
|
98
98
|
"tab-list-classes": e.tabListClasses
|
|
@@ -101,5 +101,5 @@ const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
export {
|
|
104
|
-
te as
|
|
104
|
+
te as _
|
|
105
105
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as b, watch as m, createElementBlock as o, openBlock as s, normalizeClass as t, createElementVNode as l, createBlock as h, createCommentVNode as n, renderSlot as v } from "vue";
|
|
2
|
-
import w from "
|
|
2
|
+
import w from "../UIKit/BaseFloatingLabel.js";
|
|
3
3
|
const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @__PURE__ */ c({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "BaseUploadFile",
|
|
@@ -67,5 +67,5 @@ const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
export {
|
|
70
|
-
B as
|
|
70
|
+
B as _
|
|
71
71
|
};
|