@wikicasa-dev/components 2.1.23 → 2.1.24-alpha.1
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 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.d.ts +40 -20
- package/dist/UIKit/BaseSnackbar.js +3 -5
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- 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 +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- 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/UIKit/types.d.ts +1 -0
- package/dist/_virtual/polyline.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
- package/dist/assets/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/lib/UIKit/BaseModal.css +1 -0
- package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
- package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/node_modules/swiper/modules/autoplay.css +0 -0
- package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.d.ts +11 -4
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +89 -88
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
- package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
- package/dist/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
- package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
- package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
- package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
- package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
- package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
- package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
- package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
- package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
- package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
- package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
- package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/lib/chart/LineChart.vue.js +42 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
- package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
- package/dist/node_modules/swiper/modules/autoplay.js +128 -0
- package/dist/node_modules/swiper/modules/controller.js +100 -0
- package/dist/node_modules/swiper/modules/free-mode.js +123 -0
- package/dist/node_modules/swiper/modules/keyboard.js +66 -0
- package/dist/node_modules/swiper/modules/navigation.js +136 -0
- package/dist/node_modules/swiper/modules/pagination.js +226 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
- package/dist/node_modules/swiper/modules/zoom.js +309 -0
- package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
- package/package.json +34 -30
- 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/swiper.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/assets/packages/components/src/tailwind.css +0 -1
- 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/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/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/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/BaseAccordionBtn.vue.js +0 -60
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
- package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
- /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as
|
|
2
|
-
import "
|
|
3
|
-
import { isWindows as
|
|
4
|
-
import { awaitableSetTimeout as S } from "
|
|
5
|
-
import "
|
|
6
|
-
import { CloseIcon as V } from "
|
|
7
|
-
import "
|
|
1
|
+
import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as l, normalizeClass as s, withModifiers as y, createElementBlock as h, createCommentVNode as w, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
|
+
import "../../node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { isWindows as C } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
4
|
+
import { awaitableSetTimeout as S } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
5
|
+
import "../../_virtual/polyline.js";
|
|
6
|
+
import { CloseIcon as V } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
7
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
8
|
const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
9
9
|
__name: "BaseModal",
|
|
10
10
|
props: {
|
|
@@ -27,115 +27,115 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
27
27
|
titleClasses: {}
|
|
28
28
|
},
|
|
29
29
|
emits: ["closed", "opened", "dialogClick"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
}, g = () => {
|
|
34
|
-
document?.body.addEventListener("keydown", f);
|
|
30
|
+
setup(e, { emit: g }) {
|
|
31
|
+
const c = g, i = n(!1), m = n(null), a = z("modalDialog"), r = n(!1), u = n(!1), f = ({ key: t }) => {
|
|
32
|
+
t === "Escape" && o();
|
|
35
33
|
}, p = () => {
|
|
34
|
+
document?.body.addEventListener("keydown", f);
|
|
35
|
+
}, b = () => {
|
|
36
36
|
document?.body.removeEventListener("keydown", f);
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}),
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
a.value && a.value.contains(
|
|
45
|
-
},
|
|
46
|
-
a.value && a.value.contains(
|
|
37
|
+
}, x = async () => {
|
|
38
|
+
i.value = !0, N(() => {
|
|
39
|
+
p(), C() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
40
|
+
}), c("opened"), e.autoClose !== void 0 && setTimeout(() => {
|
|
41
|
+
o();
|
|
42
|
+
}, e.autoClose);
|
|
43
|
+
}, M = (t) => {
|
|
44
|
+
a.value && a.value.contains(t.target) && (u.value = !0);
|
|
45
|
+
}, B = (t) => {
|
|
46
|
+
a.value && a.value.contains(t.target) && (u.value = !1);
|
|
47
47
|
}, L = async () => {
|
|
48
|
-
if (
|
|
48
|
+
if (e.closeOnClickOut) {
|
|
49
49
|
if (u.value) {
|
|
50
50
|
u.value = !1;
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
await
|
|
53
|
+
await o();
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
m.value?.classList.add("uikit-hidden"),
|
|
55
|
+
}, o = async () => {
|
|
56
|
+
i.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 S(() => {
|
|
57
|
+
m.value?.classList.add("uikit-hidden"), c("closed");
|
|
58
58
|
}, 250);
|
|
59
59
|
};
|
|
60
60
|
return H(() => {
|
|
61
|
-
|
|
61
|
+
b(), document?.documentElement.classList.remove("uikit-no-scrolling"), C() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
62
62
|
}), I(
|
|
63
|
-
() =>
|
|
64
|
-
async (
|
|
65
|
-
!
|
|
63
|
+
() => e.showModal,
|
|
64
|
+
async (t) => {
|
|
65
|
+
!t && !i.value ? r.value = !0 : r.value = !1, t && !i.value && await x(), !t && i.value && await o(), i.value = t;
|
|
66
66
|
},
|
|
67
67
|
{ immediate: !0 }
|
|
68
|
-
), (
|
|
69
|
-
|
|
68
|
+
), (t, v) => (k(), O($, { to: "body" }, [
|
|
69
|
+
l("div", {
|
|
70
70
|
ref_key: "backdropEl",
|
|
71
71
|
ref: m,
|
|
72
|
-
class:
|
|
72
|
+
class: s(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
73
73
|
e.customBackdropClasses,
|
|
74
74
|
{
|
|
75
|
-
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70":
|
|
75
|
+
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": i.value
|
|
76
76
|
},
|
|
77
|
-
{ "uikit-bg-transparent": !
|
|
77
|
+
{ "uikit-bg-transparent": !i.value },
|
|
78
78
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
79
|
-
{ hide:
|
|
79
|
+
{ hide: r.value }
|
|
80
80
|
]]),
|
|
81
81
|
style: { "z-index": "1062" },
|
|
82
82
|
onClick: L,
|
|
83
|
-
onMousedown:
|
|
84
|
-
onMouseup:
|
|
83
|
+
onMousedown: M,
|
|
84
|
+
onMouseup: B
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
l("dialog", {
|
|
87
87
|
id: e.id,
|
|
88
88
|
ref: "modalDialog",
|
|
89
89
|
"data-cy": e.dataCy,
|
|
90
|
-
class:
|
|
90
|
+
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
91
|
e.customModalDialogClasses,
|
|
92
|
-
{ show:
|
|
93
|
-
{ "closed uikit-overflow-hidden": !
|
|
92
|
+
{ show: i.value },
|
|
93
|
+
{ "closed uikit-overflow-hidden": !i.value },
|
|
94
94
|
{ centered: e.centered },
|
|
95
95
|
{ "uikit-absolute": e.centered },
|
|
96
96
|
{ "uikit-static": !e.centered },
|
|
97
97
|
`base-${e.size}`,
|
|
98
98
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
99
99
|
]]),
|
|
100
|
-
onClick:
|
|
100
|
+
onClick: v[0] || (v[0] = y((E) => c("dialogClick", E), ["stop"]))
|
|
101
101
|
}, [
|
|
102
|
-
|
|
103
|
-
class:
|
|
102
|
+
l("div", {
|
|
103
|
+
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
104
|
}, [
|
|
105
|
-
e.withCloseIcon ? (k(),
|
|
105
|
+
e.withCloseIcon ? (k(), h("button", {
|
|
106
106
|
key: 0,
|
|
107
107
|
id: "close-icon-btn",
|
|
108
108
|
"data-cy": "bbt-default-close-icon-btn",
|
|
109
|
-
class:
|
|
109
|
+
class: s(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
110
110
|
type: "button",
|
|
111
111
|
"aria-label": "Close",
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: y(o, ["prevent", "stop"])
|
|
113
113
|
}, [
|
|
114
114
|
D(K(V), {
|
|
115
115
|
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
116
116
|
width: 30,
|
|
117
117
|
height: 30
|
|
118
118
|
})
|
|
119
|
-
], 2)) :
|
|
120
|
-
d(
|
|
121
|
-
|
|
122
|
-
class:
|
|
119
|
+
], 2)) : w("", !0),
|
|
120
|
+
d(t.$slots, "header", { closeModal: o }, () => [
|
|
121
|
+
l("span", {
|
|
122
|
+
class: s(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
123
123
|
innerHTML: e.headerTitle
|
|
124
124
|
}, null, 10, U)
|
|
125
125
|
])
|
|
126
126
|
], 2),
|
|
127
|
-
|
|
128
|
-
class:
|
|
127
|
+
l("div", {
|
|
128
|
+
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
129
|
}, [
|
|
130
|
-
d(
|
|
130
|
+
d(t.$slots, "body", { closeModal: o })
|
|
131
131
|
], 2),
|
|
132
|
-
|
|
132
|
+
t.$slots.footer ? (k(), h("div", {
|
|
133
133
|
key: 0,
|
|
134
|
-
class:
|
|
134
|
+
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
135
|
}, [
|
|
136
|
-
d(
|
|
137
|
-
], 2)) :
|
|
138
|
-
d(
|
|
136
|
+
d(t.$slots, "footer", { closeModal: o })
|
|
137
|
+
], 2)) : w("", !0),
|
|
138
|
+
d(t.$slots, "fixed-bottom")
|
|
139
139
|
], 10, F)
|
|
140
140
|
], 34)
|
|
141
141
|
]));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as O, mergeModels as V, useModel as A, computed as s, createElementBlock as o, openBlock as
|
|
2
|
-
import { ArrowIcon as B } from "
|
|
3
|
-
import "
|
|
1
|
+
import { defineComponent as O, mergeModels as V, useModel as A, computed as s, createElementBlock as o, openBlock as a, createCommentVNode as k, createElementVNode as P, createBlock as v, resolveDynamicComponent as m, mergeProps as h, withCtx as f, createVNode as $, unref as p, toDisplayString as g, Fragment as w, createTextVNode as x, renderList as j } from "vue";
|
|
2
|
+
import { ArrowIcon as B } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const Q = {
|
|
5
5
|
"aria-label": "Page navigation",
|
|
6
6
|
class: "uikit-overflow-auto"
|
|
@@ -42,59 +42,59 @@ const Q = {
|
|
|
42
42
|
pageNumberModifiers: {}
|
|
43
43
|
}),
|
|
44
44
|
emits: ["update:pageNumber"],
|
|
45
|
-
setup(
|
|
46
|
-
const u = A(
|
|
47
|
-
() => (u.value || 0) <
|
|
48
|
-
),
|
|
49
|
-
let
|
|
50
|
-
for (;
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
}),
|
|
54
|
-
let
|
|
55
|
-
for (;
|
|
56
|
-
|
|
57
|
-
return
|
|
45
|
+
setup(e) {
|
|
46
|
+
const u = A(e, "pageNumber"), y = s(() => (u.value || 1) + 1), b = s(() => (u.value || 1) - 1), c = s(() => e.baseUrl ? e.linkTag : "span"), r = s(() => Math.ceil((e.count + e.additionalCount) / e.limit)), D = (l = 1) => l < 1, S = (l = 1) => l === r.value, C = s(() => (u.value || 0) > e.siblings + 2), N = s(
|
|
47
|
+
() => (u.value || 0) < r.value - e.siblings - 1
|
|
48
|
+
), L = s(() => {
|
|
49
|
+
let t = u.value || 0, i = 0;
|
|
50
|
+
for (; t > 2 && i < e.siblings; )
|
|
51
|
+
t--, i++;
|
|
52
|
+
return i;
|
|
53
|
+
}), M = s(() => {
|
|
54
|
+
let t = u.value || 0, i = 0;
|
|
55
|
+
for (; t < r.value - 1 && i < e.siblings; )
|
|
56
|
+
t++, i++;
|
|
57
|
+
return i;
|
|
58
58
|
}), U = s(() => {
|
|
59
|
-
const
|
|
60
|
-
Math.abs(
|
|
61
|
-
new Number(!
|
|
62
|
-
new Number(u.value ===
|
|
63
|
-
let
|
|
64
|
-
const
|
|
65
|
-
for (
|
|
66
|
-
return
|
|
59
|
+
const l = L.value + /* Filling with the remaining right siblings */
|
|
60
|
+
Math.abs(M.value - e.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
61
|
+
new Number(!N.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
62
|
+
new Number(u.value === r.value).valueOf();
|
|
63
|
+
let t = Math.max((u.value || 0) - l, 2);
|
|
64
|
+
const i = [];
|
|
65
|
+
for (t; t < (u.value || 0); t++) i.push(t);
|
|
66
|
+
return i;
|
|
67
67
|
}), T = s(() => {
|
|
68
|
-
const
|
|
69
|
-
Math.abs(
|
|
70
|
-
new Number(!
|
|
68
|
+
const l = M.value + /* Filling with the remaining left siblings */
|
|
69
|
+
Math.abs(L.value - e.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
70
|
+
new Number(!C.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
71
71
|
new Number(u.value === 1).valueOf();
|
|
72
|
-
let
|
|
73
|
-
const
|
|
74
|
-
for (
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
u.value =
|
|
72
|
+
let t = Math.min(u.value || 0, r.value - 1);
|
|
73
|
+
const i = [];
|
|
74
|
+
for (t; t < Math.min((u.value || 0) + l, r.value - 1); t++)
|
|
75
|
+
i.push(t + 1);
|
|
76
|
+
return i;
|
|
77
|
+
}), d = (l) => {
|
|
78
|
+
l < 1 || l > r.value || setTimeout(() => {
|
|
79
|
+
u.value = l;
|
|
80
80
|
});
|
|
81
|
-
}, n = (
|
|
82
|
-
if (
|
|
81
|
+
}, n = (l = 1) => {
|
|
82
|
+
if (e.baseUrl)
|
|
83
83
|
try {
|
|
84
|
-
const
|
|
85
|
-
return
|
|
86
|
-
} catch (
|
|
87
|
-
console.error(
|
|
84
|
+
const t = new URL(e.baseUrl);
|
|
85
|
+
return l <= 1 ? (t.searchParams.delete(e.pageQueryParameter), `${t.pathname}${t.search}${t.hash}`) : (t.searchParams.set(e.pageQueryParameter, `${l}`), `${t.pathname}${t.search}${t.hash}`);
|
|
86
|
+
} catch (t) {
|
|
87
|
+
console.error(t);
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return (
|
|
92
|
-
e.count > 0 ? (
|
|
93
|
-
|
|
91
|
+
return (l, t) => (a(), o("nav", Q, [
|
|
92
|
+
e.count > 0 ? (a(), o("ul", E, [
|
|
93
|
+
P("li", {
|
|
94
94
|
"data-cy": e.prevDataCy,
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: t[0] || (t[0] = (i) => d(b.value))
|
|
96
96
|
}, [
|
|
97
|
-
(
|
|
97
|
+
(a(), v(m(D(b.value) ? "span" : c.value), h({
|
|
98
98
|
href: n(b.value),
|
|
99
99
|
to: n(b.value),
|
|
100
100
|
class: ["arrow-button prev-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
@@ -104,53 +104,52 @@ const Q = {
|
|
|
104
104
|
}]
|
|
105
105
|
}, e.linkProps), {
|
|
106
106
|
default: f(() => [
|
|
107
|
-
|
|
107
|
+
$(p(B), {
|
|
108
108
|
width: 20,
|
|
109
109
|
height: 11,
|
|
110
110
|
"stroke-color": u.value === 1 ? "#8996A9" : e.arrowColor,
|
|
111
111
|
class: "uikit-inline-block uikit-rotate-90"
|
|
112
112
|
}, null, 8, ["stroke-color"]),
|
|
113
|
-
e.small && e.prevLabel ? (
|
|
113
|
+
e.small && e.prevLabel ? (a(), o("span", q, g(e.prevLabel), 1)) : k("", !0)
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}, 16, ["href", "to", "class"]))
|
|
117
117
|
], 8, R),
|
|
118
|
-
e.small ? k("", !0) : (
|
|
119
|
-
(u.value || 0) > 1 ? (
|
|
118
|
+
e.small ? k("", !0) : (a(), o(w, { key: 0 }, [
|
|
119
|
+
(u.value || 0) > 1 ? (a(), o("li", {
|
|
120
120
|
key: 0,
|
|
121
|
-
onClick:
|
|
121
|
+
onClick: t[1] || (t[1] = (i) => d(1))
|
|
122
122
|
}, [
|
|
123
|
-
(
|
|
123
|
+
(a(), v(m(c.value), h({
|
|
124
124
|
href: n(1),
|
|
125
125
|
to: n(1),
|
|
126
126
|
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
127
127
|
}, e.linkProps), {
|
|
128
|
-
default: f(() =>
|
|
129
|
-
|
|
130
|
-
])),
|
|
128
|
+
default: f(() => [...t[4] || (t[4] = [
|
|
129
|
+
x(" 1 ", -1)
|
|
130
|
+
])]),
|
|
131
131
|
_: 1
|
|
132
132
|
}, 16, ["href", "to"]))
|
|
133
133
|
])) : k("", !0),
|
|
134
|
-
|
|
135
|
-
(
|
|
136
|
-
key:
|
|
137
|
-
onClick: (F) =>
|
|
134
|
+
C.value ? (a(), o("li", z, " ... ")) : k("", !0),
|
|
135
|
+
(a(!0), o(w, null, j(U.value, (i) => (a(), o("li", {
|
|
136
|
+
key: i,
|
|
137
|
+
onClick: (F) => d(i)
|
|
138
138
|
}, [
|
|
139
|
-
(
|
|
140
|
-
href: n(
|
|
141
|
-
to: n(
|
|
142
|
-
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
143
|
-
|
|
144
|
-
}, e.linkProps), {
|
|
139
|
+
(a(), v(m(c.value), h({
|
|
140
|
+
href: n(i),
|
|
141
|
+
to: n(i),
|
|
142
|
+
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
143
|
+
}, { ref_for: !0 }, e.linkProps), {
|
|
145
144
|
default: f(() => [
|
|
146
|
-
g(
|
|
145
|
+
x(g(e.formatter ? e.formatter(i) : i), 1)
|
|
147
146
|
]),
|
|
148
147
|
_: 2
|
|
149
148
|
}, 1040, ["href", "to"]))
|
|
150
149
|
], 8, G))), 128))
|
|
151
150
|
], 64)),
|
|
152
|
-
|
|
153
|
-
(
|
|
151
|
+
P("li", null, [
|
|
152
|
+
(a(), v(m(c.value), h({
|
|
154
153
|
href: n(u.value),
|
|
155
154
|
to: n(u.value),
|
|
156
155
|
class: ["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 uikit-no-underline", {
|
|
@@ -158,62 +157,61 @@ const Q = {
|
|
|
158
157
|
}]
|
|
159
158
|
}, e.linkProps), {
|
|
160
159
|
default: f(() => [
|
|
161
|
-
g(
|
|
160
|
+
x(g(e.formatter ? e.formatter(u.value) : u.value), 1)
|
|
162
161
|
]),
|
|
163
162
|
_: 1
|
|
164
163
|
}, 16, ["href", "to", "class"]))
|
|
165
164
|
]),
|
|
166
|
-
e.small ? k("", !0) : (
|
|
167
|
-
(
|
|
168
|
-
key:
|
|
169
|
-
onClick: (F) =>
|
|
165
|
+
e.small ? k("", !0) : (a(), o(w, { key: 1 }, [
|
|
166
|
+
(a(!0), o(w, null, j(T.value, (i) => (a(), o("li", {
|
|
167
|
+
key: i,
|
|
168
|
+
onClick: (F) => d(i)
|
|
170
169
|
}, [
|
|
171
|
-
(
|
|
172
|
-
href: n(
|
|
173
|
-
to: n(
|
|
174
|
-
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 uikit-text-w-black uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
175
|
-
|
|
176
|
-
}, e.linkProps), {
|
|
170
|
+
(a(), v(m(c.value), h({
|
|
171
|
+
href: n(i),
|
|
172
|
+
to: n(i),
|
|
173
|
+
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 uikit-text-w-black uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
174
|
+
}, { ref_for: !0 }, e.linkProps), {
|
|
177
175
|
default: f(() => [
|
|
178
|
-
g(
|
|
176
|
+
x(g(e.formatter ? e.formatter(i) : i), 1)
|
|
179
177
|
]),
|
|
180
178
|
_: 2
|
|
181
179
|
}, 1040, ["href", "to"]))
|
|
182
180
|
], 8, H))), 128)),
|
|
183
|
-
|
|
184
|
-
(u.value || 0) <
|
|
181
|
+
N.value ? (a(), o("li", J, " ... ")) : k("", !0),
|
|
182
|
+
(u.value || 0) < r.value ? (a(), o("li", {
|
|
185
183
|
key: 1,
|
|
186
|
-
onClick:
|
|
184
|
+
onClick: t[2] || (t[2] = (i) => d(r.value))
|
|
187
185
|
}, [
|
|
188
|
-
(
|
|
189
|
-
href: n(
|
|
190
|
-
to: n(
|
|
186
|
+
(a(), v(m(c.value), h({
|
|
187
|
+
href: n(r.value),
|
|
188
|
+
to: n(r.value),
|
|
191
189
|
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
192
190
|
}, e.linkProps), {
|
|
193
191
|
default: f(() => [
|
|
194
|
-
g(
|
|
192
|
+
x(g(e.formatter ? e.formatter(r.value) : r.value), 1)
|
|
195
193
|
]),
|
|
196
194
|
_: 1
|
|
197
195
|
}, 16, ["href", "to"]))
|
|
198
196
|
])) : k("", !0)
|
|
199
197
|
], 64)),
|
|
200
|
-
|
|
198
|
+
P("li", {
|
|
201
199
|
"data-cy": e.nextDataCy,
|
|
202
|
-
onClick:
|
|
200
|
+
onClick: t[3] || (t[3] = (i) => d(y.value))
|
|
203
201
|
}, [
|
|
204
|
-
(
|
|
202
|
+
(a(), v(m(S(u.value) ? "span" : c.value), h({
|
|
205
203
|
href: n(y.value),
|
|
206
204
|
to: n(y.value),
|
|
207
205
|
class: ["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", {
|
|
208
|
-
"uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": (u.value || 0) <
|
|
209
|
-
"active:max-sm:uikit-text-white hover:sm:uikit-text-white": e.small && (u.value || 0) <
|
|
206
|
+
"uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": (u.value || 0) < r.value,
|
|
207
|
+
"active:max-sm:uikit-text-white hover:sm:uikit-text-white": e.small && (u.value || 0) < r.value,
|
|
210
208
|
"uikit-rounded-xs": e.small && e.nextLabel
|
|
211
209
|
}]
|
|
212
210
|
}, e.linkProps), {
|
|
213
211
|
default: f(() => [
|
|
214
|
-
e.small && e.nextLabel ? (
|
|
215
|
-
|
|
216
|
-
"stroke-color": (u.value || 0) ===
|
|
212
|
+
e.small && e.nextLabel ? (a(), o("span", W, g(e.nextLabel), 1)) : k("", !0),
|
|
213
|
+
$(p(B), {
|
|
214
|
+
"stroke-color": (u.value || 0) === r.value ? "#8996A9" : e.arrowColor,
|
|
217
215
|
width: 20,
|
|
218
216
|
height: 11,
|
|
219
217
|
class: "uikit-inline-block -uikit-rotate-90"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as u, useTemplateRef as r, watch as m, nextTick as c, createElementBlock as d, openBlock as f, normalizeClass as k, renderSlot as v, createElementVNode as x } from "vue";
|
|
2
|
+
const p = ["tabindex"], b = ["innerHTML"], $ = /* @__PURE__ */ u({
|
|
3
|
+
__name: "SelectItem",
|
|
4
|
+
props: {
|
|
5
|
+
label: { default: "" },
|
|
6
|
+
active: { type: Boolean, default: !1 },
|
|
7
|
+
idx: { default: -1 }
|
|
8
|
+
},
|
|
9
|
+
emits: ["click", "mouseover"],
|
|
10
|
+
setup(l, { emit: a }) {
|
|
11
|
+
const n = a, t = l, o = r("liItem");
|
|
12
|
+
return m(
|
|
13
|
+
() => t.active,
|
|
14
|
+
(e) => {
|
|
15
|
+
e && c(() => {
|
|
16
|
+
o.value && o.value.focus();
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
{ immediate: !0 }
|
|
20
|
+
), (e, i) => (f(), d("li", {
|
|
21
|
+
ref: "liItem",
|
|
22
|
+
class: k(["uikit-list-none uikit-text-w-black", [
|
|
23
|
+
{ "active uikit-bg-w-cultured": l.active },
|
|
24
|
+
"uikit-outline-none",
|
|
25
|
+
e.$attrs.class
|
|
26
|
+
]]),
|
|
27
|
+
tabindex: e.$attrs.tabindex ?? -1,
|
|
28
|
+
onClick: i[0] || (i[0] = (s) => n("click", t.idx)),
|
|
29
|
+
onMouseover: i[1] || (i[1] = (s) => n("mouseover", t.idx))
|
|
30
|
+
}, [
|
|
31
|
+
v(e.$slots, "default", { itemIdx: l.idx }, () => [
|
|
32
|
+
x("span", {
|
|
33
|
+
innerHTML: t.label
|
|
34
|
+
}, null, 8, b)
|
|
35
|
+
])
|
|
36
|
+
], 42, p));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
$ as default
|
|
41
|
+
};
|