@wikicasa-dev/components 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +5 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.js +5 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +5 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.js +5 -41
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +5 -81
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -1593
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +89 -85
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +129 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +101 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +125 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +127 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +227 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +121 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +85 -0
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +21 -21
- package/dist/{chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → packages/components/lib/UIKit/BaseAlert.vue.js} +2 -2
- package/dist/{chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +64 -74
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +5 -5
- package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js → packages/components/lib/UIKit/BaseButton.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/{chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
- package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js → packages/components/lib/UIKit/BaseModal.vue.js} +56 -61
- package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js → packages/components/lib/UIKit/BasePagination.vue.js} +71 -83
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +207 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +114 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +9 -9
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +8 -8
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +1 -1
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +247 -0
- package/package.json +1 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/polyline.tNTK3v2u.js +0 -129
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
- /package/dist/assets/{BaseAlert.css → packages/components/lib/UIKit/BaseAlert.css} +0 -0
- /package/dist/assets/{BaseBadge.css → packages/components/lib/UIKit/BaseBadge.css} +0 -0
- /package/dist/assets/{BaseCard.css → packages/components/lib/UIKit/BaseCard.css} +0 -0
- /package/dist/assets/{BaseComplexToggle.css → packages/components/lib/UIKit/BaseComplexToggle.css} +0 -0
- /package/dist/assets/{BaseFloatingLabel.css → packages/components/lib/UIKit/BaseFloatingLabel.css} +0 -0
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BaseInput.css → packages/components/lib/UIKit/BaseInput.css} +0 -0
- /package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{BaseSlider.css → packages/components/lib/UIKit/BaseSlider.css} +0 -0
- /package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +0 -0
- /package/dist/assets/{BaseTextarea.css → packages/components/lib/UIKit/BaseTextarea.css} +0 -0
- /package/dist/assets/{BaseToggle.css → packages/components/lib/UIKit/BaseToggle.css} +0 -0
- /package/dist/assets/{BaseTooltip.css → packages/components/lib/UIKit/BaseTooltip.css} +0 -0
- /package/dist/assets/{CheckboxBtn.css → packages/components/lib/UIKit/Checkbox/CheckboxBtn.css} +0 -0
- /package/dist/assets/{BaseShimmerLoader.css → packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css} +0 -0
- /package/dist/assets/{SimpleSlider.css → packages/components/lib/UIKit/Slider/SimpleSlider.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
- /package/dist/assets/{index.css → packages/components/src/tailwind.css} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
const F = ["innerHTML"], Z = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import R from "./BaseButton.vue.js";
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
|
+
const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
9
9
|
props: /* @__PURE__ */ b({
|
|
@@ -30,8 +30,8 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
30
30
|
}),
|
|
31
31
|
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
32
|
setup(p, { emit: B }) {
|
|
33
|
-
const o = p, c =
|
|
34
|
-
optionsLength:
|
|
33
|
+
const o = p, c = M(), f = B, k = E(p, "toggleDropdown"), t = h(!1), d = h([]), I = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
+
optionsLength: I,
|
|
35
35
|
isDropdownOpen: t,
|
|
36
36
|
activate: o.activateKeyboardController
|
|
37
37
|
});
|
|
@@ -44,9 +44,9 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
44
44
|
immediate: !0
|
|
45
45
|
}
|
|
46
46
|
), n(t, (e) => {
|
|
47
|
-
|
|
48
|
-
}), n(
|
|
49
|
-
e && (t.value = !t.value,
|
|
47
|
+
f("update:dropdownState", e);
|
|
48
|
+
}), n(k, (e) => {
|
|
49
|
+
e && (t.value = !t.value, k.value = !1);
|
|
50
50
|
}), n(r, (e) => {
|
|
51
51
|
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
52
52
|
});
|
|
@@ -54,28 +54,28 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
54
54
|
t.value = !1;
|
|
55
55
|
}, s = () => {
|
|
56
56
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
-
},
|
|
57
|
+
}, S = (e) => {
|
|
58
58
|
e != null && (m.value = e);
|
|
59
|
-
},
|
|
59
|
+
}, A = (e) => {
|
|
60
60
|
e != null && (r.value = e);
|
|
61
61
|
};
|
|
62
62
|
return $(() => {
|
|
63
63
|
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
64
|
}), H(() => {
|
|
65
65
|
w.value && (d.value = w.value.children || []);
|
|
66
|
-
}),
|
|
66
|
+
}), K(() => {
|
|
67
67
|
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
-
}), (e, a) => (u(),
|
|
68
|
+
}), (e, a) => (u(), N("div", {
|
|
69
69
|
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
70
|
-
onClick: a[1] || (a[1] =
|
|
71
|
-
|
|
70
|
+
onClick: a[1] || (a[1] = C((G) => {
|
|
71
|
+
f("click"), s();
|
|
72
72
|
}, ["stop"]))
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
g(e.$slots, "btn_slot", {
|
|
75
75
|
toggleDropdown: s,
|
|
76
76
|
isOpen: t.value
|
|
77
77
|
}, () => [
|
|
78
|
-
|
|
78
|
+
T(R, {
|
|
79
79
|
id: l(c),
|
|
80
80
|
type: "button",
|
|
81
81
|
"data-cy": e.dataCy,
|
|
@@ -87,7 +87,7 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
87
87
|
"btn-class": "uikit-btn-single-selection"
|
|
88
88
|
}, {
|
|
89
89
|
default: D(() => [
|
|
90
|
-
|
|
90
|
+
V("span", {
|
|
91
91
|
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
92
92
|
innerHTML: e.btnLabel
|
|
93
93
|
}, null, 10, F),
|
|
@@ -114,17 +114,17 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
114
114
|
{ "uikit-absolute": e.isAbsolute }
|
|
115
115
|
]]),
|
|
116
116
|
"aria-hidden": !t.value,
|
|
117
|
-
onClick: a[0] || (a[0] =
|
|
117
|
+
onClick: a[0] || (a[0] = C(() => {
|
|
118
118
|
}, ["stop"]))
|
|
119
119
|
}, {
|
|
120
120
|
default: D(() => [
|
|
121
|
-
|
|
121
|
+
g(e.$slots, "default", {
|
|
122
122
|
isOpen: t.value,
|
|
123
123
|
toggleDropdown: s,
|
|
124
124
|
activeIdx: l(m),
|
|
125
125
|
selectedIdx: l(r),
|
|
126
|
-
setActiveIdx:
|
|
127
|
-
setSelectedIdx:
|
|
126
|
+
setActiveIdx: S,
|
|
127
|
+
setSelectedIdx: A
|
|
128
128
|
})
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
@@ -133,5 +133,5 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
export {
|
|
136
|
-
Z as
|
|
136
|
+
Z as default
|
|
137
137
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as l, openBlock as s, withModifiers as r, normalizeClass as t, createElementVNode as u, createCommentVNode as d } from "vue";
|
|
2
|
+
const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
|
|
3
|
+
__name: "BaseFloatingLabel",
|
|
4
|
+
props: {
|
|
5
|
+
labelState: { default: "inline-label" },
|
|
6
|
+
isValid: { default: null },
|
|
7
|
+
labelText: {},
|
|
8
|
+
disabled: { type: [String, Boolean], default: !1 },
|
|
9
|
+
labelClasses: {},
|
|
10
|
+
labelTextClasses: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["click"],
|
|
13
|
+
setup(m, { emit: a }) {
|
|
14
|
+
const n = a;
|
|
15
|
+
return (e, i) => (s(), l("label", {
|
|
16
|
+
for: e.$attrs.for,
|
|
17
|
+
class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
|
|
18
|
+
onClick: i[0] || (i[0] = r((p) => n("click"), ["stop"]))
|
|
19
|
+
}, [
|
|
20
|
+
u("span", {
|
|
21
|
+
class: t(["uikit-text uikit-font-medium", [
|
|
22
|
+
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
23
|
+
e.labelTextClasses
|
|
24
|
+
]]),
|
|
25
|
+
innerHTML: e.labelText
|
|
26
|
+
}, null, 10, b),
|
|
27
|
+
e.$attrs.required ? (s(), l("sup", {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
|
|
30
|
+
{ "uikit-text-w-secondary": e.disabled },
|
|
31
|
+
{ "uikit-text-w-danger": e.isValid === !1 },
|
|
32
|
+
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
33
|
+
]])
|
|
34
|
+
}, " *", 2)) : d("", !0)
|
|
35
|
+
], 10, k));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
c as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as e, createElementBlock as i, openBlock as a, normalizeStyle as l, normalizeClass as o } from "vue";
|
|
2
|
+
const s = ["id", "alt", "src", "width", "height", "loading"], h = /* @__PURE__ */ e({
|
|
3
|
+
__name: "BaseIcon",
|
|
4
|
+
props: {
|
|
5
|
+
lazyLoading: { type: Boolean },
|
|
6
|
+
altAttribute: {},
|
|
7
|
+
iconType: { default: "icon-md" },
|
|
8
|
+
iconClass: { default: "uikit-mr-5px" },
|
|
9
|
+
width: {},
|
|
10
|
+
height: {}
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
return (t, r) => (a(), i("img", {
|
|
14
|
+
id: t.$attrs.id,
|
|
15
|
+
class: o(["uikit-inline-block", t.iconType, t.iconClass]),
|
|
16
|
+
alt: t.altAttribute || t.$attrs.alt,
|
|
17
|
+
style: l(t.$attrs.style),
|
|
18
|
+
src: t.$attrs.src ? t.$attrs.src : "",
|
|
19
|
+
width: t.width,
|
|
20
|
+
height: t.height,
|
|
21
|
+
loading: t.lazyLoading ? "lazy" : "eager"
|
|
22
|
+
}, null, 14, s));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
h as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, createBlock as O, createCommentVNode as w, withKeys as j, withModifiers as y, Fragment as T, renderList as M } from "vue";
|
|
2
|
+
import D from "../../../../UIKit/BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as G } from "../../../../composables/useFloatingLabel.js";
|
|
4
|
+
const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Q = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, W = ["innerHTML"], X = ["innerHTML"], Y = ["innerHTML"], Z = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "under-label uikit-absolute uikit-text-12"
|
|
7
|
+
}, ie = /* @__PURE__ */ z({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "BaseInput",
|
|
10
|
+
props: /* @__PURE__ */ C({
|
|
11
|
+
inputClass: {},
|
|
12
|
+
labelText: { default: "" },
|
|
13
|
+
feedback: {},
|
|
14
|
+
isValid: { default: null },
|
|
15
|
+
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
|
+
formatter: { default: null },
|
|
17
|
+
labelClasses: {},
|
|
18
|
+
fieldsetClasses: {},
|
|
19
|
+
labelTextClasses: {},
|
|
20
|
+
withLeftIcon: { type: Boolean, default: () => {
|
|
21
|
+
} },
|
|
22
|
+
withRightIcon: { type: Boolean, default: () => {
|
|
23
|
+
} },
|
|
24
|
+
dataCy: {}
|
|
25
|
+
}, {
|
|
26
|
+
modelValue: { default: "" },
|
|
27
|
+
modelModifiers: {}
|
|
28
|
+
}),
|
|
29
|
+
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
|
+
setup(l, { expose: B, emit: E }) {
|
|
31
|
+
const o = A(l, "modelValue"), a = m(""), k = E, {
|
|
32
|
+
labelState: d,
|
|
33
|
+
handleFocusIn: H,
|
|
34
|
+
handleFocusOut: $,
|
|
35
|
+
setInlineLabel: V,
|
|
36
|
+
setFloatingLabel: I
|
|
37
|
+
} = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
38
|
+
l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
|
|
39
|
+
}, L = (e, i) => {
|
|
40
|
+
if (!l.formatter || !l.formatter.formatFn)
|
|
41
|
+
return a.value = e, "";
|
|
42
|
+
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
43
|
+
return i && (i.value = t), a.value = t, t;
|
|
44
|
+
}, F = (e, i = !0) => {
|
|
45
|
+
if (i && (!l.formatter || !l.formatter.unFormatFn))
|
|
46
|
+
return o.value = e, e;
|
|
47
|
+
if (!i || !l.formatter || !l.formatter.unFormatFn) return;
|
|
48
|
+
const t = l.formatter.unFormatFn(e);
|
|
49
|
+
return o.value = t ?? "", t;
|
|
50
|
+
}, P = ({ target: e }) => {
|
|
51
|
+
const i = e, t = F(i.value);
|
|
52
|
+
L(
|
|
53
|
+
`${t}`,
|
|
54
|
+
t === o.value ? i : void 0
|
|
55
|
+
);
|
|
56
|
+
}, q = () => {
|
|
57
|
+
o.value = "", V();
|
|
58
|
+
}, K = () => {
|
|
59
|
+
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
|
+
};
|
|
61
|
+
g(
|
|
62
|
+
() => l.feedback,
|
|
63
|
+
() => {
|
|
64
|
+
R();
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
immediate: !0
|
|
68
|
+
}
|
|
69
|
+
), g(
|
|
70
|
+
o,
|
|
71
|
+
(e) => {
|
|
72
|
+
L(
|
|
73
|
+
`${e}`,
|
|
74
|
+
F(`${e}`, !1) === e ? b.value : void 0
|
|
75
|
+
), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
immediate: !0
|
|
79
|
+
}
|
|
80
|
+
), g(
|
|
81
|
+
() => l.keepFloatingLabel,
|
|
82
|
+
(e) => {
|
|
83
|
+
e ? I() : $(o.value);
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
const S = N();
|
|
87
|
+
return n.value = S.type || "text", B({
|
|
88
|
+
select: () => {
|
|
89
|
+
b.value?.select();
|
|
90
|
+
}
|
|
91
|
+
}), (e, i) => (u(), r("div", {
|
|
92
|
+
class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
|
|
93
|
+
e.$attrs.class,
|
|
94
|
+
{ "floating-label": e.labelText },
|
|
95
|
+
s(d) === "floating-label" ? "floating-state" : "inline-state",
|
|
96
|
+
{
|
|
97
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
101
|
+
},
|
|
102
|
+
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
103
|
+
]])
|
|
104
|
+
}, [
|
|
105
|
+
p(e.$slots, "leftIcon", {}, void 0, !0),
|
|
106
|
+
p(e.$slots, "righticon", {
|
|
107
|
+
handleClean: q,
|
|
108
|
+
handleShowPasswd: K,
|
|
109
|
+
curType: n.value
|
|
110
|
+
}, void 0, !0),
|
|
111
|
+
h("input", {
|
|
112
|
+
id: e.$attrs.id,
|
|
113
|
+
ref_key: "baseInputEl",
|
|
114
|
+
ref: b,
|
|
115
|
+
"data-cy": e.dataCy,
|
|
116
|
+
name: e.$attrs.name,
|
|
117
|
+
class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
|
|
118
|
+
{
|
|
119
|
+
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
120
|
+
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
127
|
+
},
|
|
128
|
+
e.inputClass
|
|
129
|
+
]]),
|
|
130
|
+
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
131
|
+
disabled: e.$attrs.disabled,
|
|
132
|
+
"aria-labelledby": e.$attrs.id,
|
|
133
|
+
readonly: e.$attrs.readonly,
|
|
134
|
+
type: n.value,
|
|
135
|
+
pattern: e.$attrs.pattern,
|
|
136
|
+
min: e.$attrs.min,
|
|
137
|
+
max: e.$attrs.max,
|
|
138
|
+
maxlength: e.$attrs.maxlength,
|
|
139
|
+
inputmode: e.$attrs.inputmode,
|
|
140
|
+
placeholder: e.$attrs.placeholder,
|
|
141
|
+
value: a.value,
|
|
142
|
+
onClick: i[0] || (i[0] = (t) => k("click", t)),
|
|
143
|
+
onFocusin: i[1] || (i[1] = y(() => e.labelText && s(H)(), ["stop"])),
|
|
144
|
+
onFocusout: i[2] || (i[2] = y((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
|
|
145
|
+
onInput: y(P, ["stop"]),
|
|
146
|
+
onKeydown: [
|
|
147
|
+
i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
|
|
148
|
+
i[4] || (i[4] = (t) => k("keydown", t))
|
|
149
|
+
],
|
|
150
|
+
onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
|
|
151
|
+
}, null, 42, J),
|
|
152
|
+
h("fieldset", {
|
|
153
|
+
class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
|
|
154
|
+
{
|
|
155
|
+
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
156
|
+
"is-valid uikit-border-w-primary": e.isValid,
|
|
157
|
+
"uikit-border-w-secondary": e.isValid === null
|
|
158
|
+
},
|
|
159
|
+
{ "uikit-top-0": !e.labelText },
|
|
160
|
+
e.fieldsetClasses
|
|
161
|
+
]])
|
|
162
|
+
}, [
|
|
163
|
+
h("legend", Q, [
|
|
164
|
+
h("span", {
|
|
165
|
+
class: v(["visible-label uikit-opacity-0", [
|
|
166
|
+
{ "uikit-mx-5px": e.labelText },
|
|
167
|
+
{
|
|
168
|
+
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
172
|
+
}
|
|
173
|
+
]]),
|
|
174
|
+
innerHTML: e.labelText
|
|
175
|
+
}, null, 10, W)
|
|
176
|
+
])
|
|
177
|
+
], 2),
|
|
178
|
+
e.labelText ? (u(), O(D, {
|
|
179
|
+
key: 0,
|
|
180
|
+
for: e.$attrs.id,
|
|
181
|
+
"label-text": e.labelText,
|
|
182
|
+
"label-state": s(d),
|
|
183
|
+
"is-valid": e.isValid,
|
|
184
|
+
required: e.$attrs.required,
|
|
185
|
+
disabled: e.$attrs.disabled,
|
|
186
|
+
"label-classes": [
|
|
187
|
+
s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
188
|
+
e.labelClasses
|
|
189
|
+
],
|
|
190
|
+
"label-text-classes": e.labelTextClasses
|
|
191
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : w("", !0),
|
|
192
|
+
p(e.$slots, "feedback", {}, () => [
|
|
193
|
+
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, M(f.value.invalid, (t, c) => (u(), r("div", {
|
|
194
|
+
key: `${e.$attrs.id}_invalid_${c}`,
|
|
195
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
196
|
+
innerHTML: t
|
|
197
|
+
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, M(f.value.valid, (t, c) => (u(), r("div", {
|
|
198
|
+
key: `${e.$attrs.id}_valid_${c}`,
|
|
199
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
200
|
+
innerHTML: t
|
|
201
|
+
}, null, 8, Y))), 128)) : w("", !0)
|
|
202
|
+
], !0),
|
|
203
|
+
e.$slots["under-label"] ? (u(), r("div", Z, [
|
|
204
|
+
p(e.$slots, "under-label", {}, void 0, !0)
|
|
205
|
+
])) : w("", !0)
|
|
206
|
+
], 2));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
export {
|
|
210
|
+
ie as default
|
|
211
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { defineComponent as T, ref as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} catch {
|
|
10
|
-
t();
|
|
11
|
-
}
|
|
12
|
-
}, c);
|
|
13
|
-
}), F = ["id", "data-cy"], P = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
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 s, normalizeClass as o, withModifiers as v, createElementBlock as y, createCommentVNode as h, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
|
+
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
4
|
+
import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
5
|
+
import "../../../../_virtual/polyline.js";
|
|
6
|
+
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
7
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
|
+
const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
14
9
|
__name: "BaseModal",
|
|
15
10
|
props: {
|
|
16
11
|
id: { default: "base-bt-modal" },
|
|
@@ -32,67 +27,67 @@ import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("
|
|
|
32
27
|
titleClasses: {}
|
|
33
28
|
},
|
|
34
29
|
emits: ["closed", "opened", "dialogClick"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
30
|
+
setup(l, { emit: C }) {
|
|
31
|
+
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1), f = ({ key: e }) => {
|
|
37
32
|
e === "Escape" && i();
|
|
38
|
-
},
|
|
39
|
-
document?.body.addEventListener("keydown",
|
|
40
|
-
},
|
|
41
|
-
document?.body.removeEventListener("keydown",
|
|
33
|
+
}, g = () => {
|
|
34
|
+
document?.body.addEventListener("keydown", f);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
document?.body.removeEventListener("keydown", f);
|
|
42
37
|
}, M = async () => {
|
|
43
38
|
t.value = !0, N(() => {
|
|
44
|
-
|
|
45
|
-
}),
|
|
39
|
+
g(), w() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
40
|
+
}), r("opened"), l.autoClose !== void 0 && setTimeout(() => {
|
|
46
41
|
i();
|
|
47
|
-
},
|
|
42
|
+
}, l.autoClose);
|
|
48
43
|
}, B = (e) => {
|
|
49
|
-
|
|
44
|
+
a.value && a.value.contains(e.target) && (u.value = !0);
|
|
50
45
|
}, x = (e) => {
|
|
51
|
-
|
|
46
|
+
a.value && a.value.contains(e.target) && (u.value = !1);
|
|
52
47
|
}, L = async () => {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
55
|
-
|
|
48
|
+
if (l.closeOnClickOut) {
|
|
49
|
+
if (u.value) {
|
|
50
|
+
u.value = !1;
|
|
56
51
|
return;
|
|
57
52
|
}
|
|
58
53
|
await i();
|
|
59
54
|
}
|
|
60
55
|
}, i = async () => {
|
|
61
|
-
t.value = !1,
|
|
62
|
-
|
|
56
|
+
t.value = !1, p(), 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"), r("closed");
|
|
63
58
|
}, 250);
|
|
64
59
|
};
|
|
65
60
|
return H(() => {
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
() =>
|
|
61
|
+
p(), document?.documentElement.classList.remove("uikit-no-scrolling"), w() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
62
|
+
}), I(
|
|
63
|
+
() => l.showModal,
|
|
69
64
|
async (e) => {
|
|
70
|
-
!e && !t.value ?
|
|
65
|
+
!e && !t.value ? c.value = !0 : c.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
71
66
|
},
|
|
72
67
|
{ immediate: !0 }
|
|
73
|
-
), (e,
|
|
74
|
-
|
|
68
|
+
), (e, b) => (k(), O($, { to: "body" }, [
|
|
69
|
+
s("div", {
|
|
75
70
|
ref_key: "backdropEl",
|
|
76
|
-
ref:
|
|
77
|
-
class:
|
|
71
|
+
ref: m,
|
|
72
|
+
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
78
73
|
e.customBackdropClasses,
|
|
79
74
|
{
|
|
80
75
|
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
81
76
|
},
|
|
82
77
|
{ "uikit-bg-transparent": !t.value },
|
|
83
78
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
84
|
-
{ hide:
|
|
79
|
+
{ hide: c.value }
|
|
85
80
|
]]),
|
|
86
81
|
style: { "z-index": "1062" },
|
|
87
82
|
onClick: L,
|
|
88
83
|
onMousedown: B,
|
|
89
84
|
onMouseup: x
|
|
90
85
|
}, [
|
|
91
|
-
|
|
86
|
+
s("dialog", {
|
|
92
87
|
id: e.id,
|
|
93
88
|
ref: "modalDialog",
|
|
94
89
|
"data-cy": e.dataCy,
|
|
95
|
-
class:
|
|
90
|
+
class: o(["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", [
|
|
96
91
|
e.customModalDialogClasses,
|
|
97
92
|
{ show: t.value },
|
|
98
93
|
{ "closed uikit-overflow-hidden": !t.value },
|
|
@@ -102,50 +97,50 @@ import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("
|
|
|
102
97
|
`base-${e.size}`,
|
|
103
98
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
104
99
|
]]),
|
|
105
|
-
onClick:
|
|
100
|
+
onClick: b[0] || (b[0] = v((E) => r("dialogClick", E), ["stop"]))
|
|
106
101
|
}, [
|
|
107
|
-
|
|
108
|
-
class:
|
|
102
|
+
s("div", {
|
|
103
|
+
class: o(["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]])
|
|
109
104
|
}, [
|
|
110
|
-
e.withCloseIcon ? (
|
|
105
|
+
e.withCloseIcon ? (k(), y("button", {
|
|
111
106
|
key: 0,
|
|
112
107
|
id: "close-icon-btn",
|
|
113
108
|
"data-cy": "bbt-default-close-icon-btn",
|
|
114
|
-
class:
|
|
109
|
+
class: o(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
115
110
|
type: "button",
|
|
116
111
|
"aria-label": "Close",
|
|
117
|
-
onClick:
|
|
112
|
+
onClick: v(i, ["prevent", "stop"])
|
|
118
113
|
}, [
|
|
119
|
-
|
|
114
|
+
D(K(V), {
|
|
120
115
|
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
121
116
|
width: 30,
|
|
122
117
|
height: 30
|
|
123
118
|
})
|
|
124
|
-
], 2)) :
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
class:
|
|
119
|
+
], 2)) : h("", !0),
|
|
120
|
+
d(e.$slots, "header", { closeModal: i }, () => [
|
|
121
|
+
s("span", {
|
|
122
|
+
class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
128
123
|
innerHTML: e.headerTitle
|
|
129
|
-
}, null, 10,
|
|
124
|
+
}, null, 10, U)
|
|
130
125
|
])
|
|
131
126
|
], 2),
|
|
132
|
-
|
|
133
|
-
class:
|
|
127
|
+
s("div", {
|
|
128
|
+
class: o(["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]])
|
|
134
129
|
}, [
|
|
135
|
-
|
|
130
|
+
d(e.$slots, "body", { closeModal: i })
|
|
136
131
|
], 2),
|
|
137
|
-
e.$slots.footer ? (
|
|
132
|
+
e.$slots.footer ? (k(), y("div", {
|
|
138
133
|
key: 0,
|
|
139
|
-
class:
|
|
134
|
+
class: o(["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])
|
|
140
135
|
}, [
|
|
141
|
-
|
|
142
|
-
], 2)) :
|
|
143
|
-
|
|
136
|
+
d(e.$slots, "footer", { closeModal: i })
|
|
137
|
+
], 2)) : h("", !0),
|
|
138
|
+
d(e.$slots, "fixed-bottom")
|
|
144
139
|
], 10, F)
|
|
145
140
|
], 34)
|
|
146
141
|
]));
|
|
147
142
|
}
|
|
148
143
|
});
|
|
149
144
|
export {
|
|
150
|
-
|
|
145
|
+
J as default
|
|
151
146
|
};
|