@wikicasa-dev/components 2.1.4-alpha.8 → 2.1.4
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/BaseAlert.d.ts +9 -20
- package/dist/UIKit/BaseBadge.d.ts +5 -40
- package/dist/UIKit/BaseBreadcrumb.js +2 -3
- package/dist/UIKit/BaseButton.d.ts +8 -9
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +0 -5
- package/dist/UIKit/BaseFloatingLabel.js +3 -1
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +3 -1
- package/dist/UIKit/BasePagination.d.ts +3 -10
- package/dist/UIKit/BaseSlider.d.ts +10 -14
- package/dist/UIKit/BaseSlider.js +4 -1
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +8 -5
- package/dist/UIKit/BaseToggle.js +4 -1
- package/dist/UIKit/BaseTooltip.d.ts +20 -10
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
- package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
- package/dist/UIKit/Slider/SimpleSlider.js +7 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
- package/dist/UIKit/types.d.ts +6 -11
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +2 -6
- package/dist/index.js +85 -100
- 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/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/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +45 -48
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +66 -70
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +134 -89
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +26 -20
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -5
- package/package.json +17 -20
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
- package/dist/UIKit/BaseBanner.js +0 -4
- package/dist/UIKit/BaseChip.js +0 -4
- package/dist/UIKit/BaseCollapse.js +0 -7
- package/dist/UIKit/BaseNotificationBadge.js +0 -4
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BasePin.js +0 -5
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/UIKit/DatePicker.js +0 -5
- package/dist/UIKit/InputDropdown.js +0 -4
- package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
- package/dist/UIKit/Navigation/NavigationBar.js +0 -5
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
- package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
- package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
- package/dist/UIKit/Tab/BaseTabItem.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/create-plugin.js +0 -4
- package/dist/_virtual/createPlugin.js +0 -4
- package/dist/_virtual/plugin.js +0 -7
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -19
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -16
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -29
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -33
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +0 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
- package/dist/plugins/buttonPlugin.d.ts +0 -4
- package/dist/plugins/buttonPlugin.js +0 -232
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-
|
|
4
|
-
|
|
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({
|
|
5
9
|
__name: "BaseModal",
|
|
6
10
|
props: {
|
|
7
|
-
id: {},
|
|
11
|
+
id: { default: "base-bt-modal" },
|
|
8
12
|
size: { default: "modal-md" },
|
|
9
13
|
customBackdropClasses: {},
|
|
10
14
|
customModalDialogClasses: {},
|
|
@@ -23,33 +27,25 @@ const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
|
23
27
|
titleClasses: {}
|
|
24
28
|
},
|
|
25
29
|
emits: ["closed", "opened", "dialogClick"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
setTimeout(() => {
|
|
29
|
-
try {
|
|
30
|
-
e && e(), m();
|
|
31
|
-
} catch ($) {
|
|
32
|
-
O($);
|
|
33
|
-
}
|
|
34
|
-
}, n);
|
|
35
|
-
}), c = C, t = d(!1), p = d(null), a = D("modalDialog"), k = d(!1), u = d(!1), B = K(), L = N(() => s.id || B), v = ({ key: e }) => {
|
|
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 }) => {
|
|
36
32
|
e === "Escape" && i();
|
|
37
|
-
},
|
|
38
|
-
document?.body.addEventListener("keydown",
|
|
39
|
-
},
|
|
40
|
-
document?.body.removeEventListener("keydown",
|
|
41
|
-
},
|
|
42
|
-
t.value = !0,
|
|
43
|
-
|
|
44
|
-
}),
|
|
33
|
+
}, g = () => {
|
|
34
|
+
document?.body.addEventListener("keydown", f);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
document?.body.removeEventListener("keydown", f);
|
|
37
|
+
}, M = async () => {
|
|
38
|
+
t.value = !0, N(() => {
|
|
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(() => {
|
|
45
41
|
i();
|
|
46
|
-
},
|
|
47
|
-
},
|
|
42
|
+
}, l.autoClose);
|
|
43
|
+
}, B = (e) => {
|
|
48
44
|
a.value && a.value.contains(e.target) && (u.value = !0);
|
|
49
45
|
}, x = (e) => {
|
|
50
46
|
a.value && a.value.contains(e.target) && (u.value = !1);
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
47
|
+
}, L = async () => {
|
|
48
|
+
if (l.closeOnClickOut) {
|
|
53
49
|
if (u.value) {
|
|
54
50
|
u.value = !1;
|
|
55
51
|
return;
|
|
@@ -57,41 +53,41 @@ const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
|
57
53
|
await i();
|
|
58
54
|
}
|
|
59
55
|
}, i = async () => {
|
|
60
|
-
t.value = !1,
|
|
61
|
-
|
|
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");
|
|
62
58
|
}, 250);
|
|
63
59
|
};
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
() =>
|
|
60
|
+
return H(() => {
|
|
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,
|
|
68
64
|
async (e) => {
|
|
69
|
-
!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;
|
|
70
66
|
},
|
|
71
67
|
{ immediate: !0 }
|
|
72
|
-
), (e,
|
|
73
|
-
|
|
68
|
+
), (e, b) => (k(), O($, { to: "body" }, [
|
|
69
|
+
s("div", {
|
|
74
70
|
ref_key: "backdropEl",
|
|
75
|
-
ref:
|
|
71
|
+
ref: m,
|
|
76
72
|
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
77
73
|
e.customBackdropClasses,
|
|
78
74
|
{
|
|
79
|
-
"uikit-
|
|
75
|
+
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
80
76
|
},
|
|
81
77
|
{ "uikit-bg-transparent": !t.value },
|
|
82
78
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
83
|
-
{ hide:
|
|
79
|
+
{ hide: c.value }
|
|
84
80
|
]]),
|
|
85
81
|
style: { "z-index": "1062" },
|
|
86
|
-
onClick:
|
|
87
|
-
onMousedown:
|
|
82
|
+
onClick: L,
|
|
83
|
+
onMousedown: B,
|
|
88
84
|
onMouseup: x
|
|
89
85
|
}, [
|
|
90
|
-
|
|
91
|
-
id:
|
|
86
|
+
s("dialog", {
|
|
87
|
+
id: e.id,
|
|
92
88
|
ref: "modalDialog",
|
|
93
89
|
"data-cy": e.dataCy,
|
|
94
|
-
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
|
|
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", [
|
|
95
91
|
e.customModalDialogClasses,
|
|
96
92
|
{ show: t.value },
|
|
97
93
|
{ "closed uikit-overflow-hidden": !t.value },
|
|
@@ -101,50 +97,50 @@ const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
|
101
97
|
`base-${e.size}`,
|
|
102
98
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
103
99
|
]]),
|
|
104
|
-
onClick:
|
|
100
|
+
onClick: b[0] || (b[0] = v((E) => r("dialogClick", E), ["stop"]))
|
|
105
101
|
}, [
|
|
106
|
-
|
|
107
|
-
class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-
|
|
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]])
|
|
108
104
|
}, [
|
|
109
|
-
|
|
110
|
-
l("span", {
|
|
111
|
-
class: o(["uikit-w-auto uikit-grow", e.titleClasses]),
|
|
112
|
-
innerHTML: e.headerTitle
|
|
113
|
-
}, null, 10, q)
|
|
114
|
-
]),
|
|
115
|
-
e.withCloseIcon ? (f(), w("button", {
|
|
105
|
+
e.withCloseIcon ? (k(), y("button", {
|
|
116
106
|
key: 0,
|
|
117
107
|
id: "close-icon-btn",
|
|
118
108
|
"data-cy": "bbt-default-close-icon-btn",
|
|
119
|
-
class: o(["uikit-
|
|
109
|
+
class: o(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
120
110
|
type: "button",
|
|
121
111
|
"aria-label": "Close",
|
|
122
|
-
onClick:
|
|
112
|
+
onClick: v(i, ["prevent", "stop"])
|
|
123
113
|
}, [
|
|
124
|
-
|
|
125
|
-
class: "bbt-close-icon uikit-box-border",
|
|
126
|
-
width:
|
|
127
|
-
height:
|
|
114
|
+
D(K(V), {
|
|
115
|
+
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
116
|
+
width: 30,
|
|
117
|
+
height: 30
|
|
128
118
|
})
|
|
129
|
-
], 2)) : h("", !0)
|
|
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]),
|
|
123
|
+
innerHTML: e.headerTitle
|
|
124
|
+
}, null, 10, U)
|
|
125
|
+
])
|
|
130
126
|
], 2),
|
|
131
|
-
|
|
132
|
-
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-
|
|
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]])
|
|
133
129
|
}, [
|
|
134
|
-
|
|
130
|
+
d(e.$slots, "body", { closeModal: i })
|
|
135
131
|
], 2),
|
|
136
|
-
e.$slots.footer ? (
|
|
132
|
+
e.$slots.footer ? (k(), y("div", {
|
|
137
133
|
key: 0,
|
|
138
|
-
class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-
|
|
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])
|
|
139
135
|
}, [
|
|
140
|
-
|
|
136
|
+
d(e.$slots, "footer", { closeModal: i })
|
|
141
137
|
], 2)) : h("", !0),
|
|
142
|
-
|
|
143
|
-
], 10,
|
|
138
|
+
d(e.$slots, "fixed-bottom")
|
|
139
|
+
], 10, F)
|
|
144
140
|
], 34)
|
|
145
141
|
]));
|
|
146
142
|
}
|
|
147
143
|
});
|
|
148
144
|
export {
|
|
149
|
-
|
|
145
|
+
J as default
|
|
150
146
|
};
|
|
@@ -1,15 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "../../../../
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as j, mergeModels as P, useModel as S, computed as s, createElementBlock as l, 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 "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { formatInteger as d } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js";
|
|
4
|
+
import "../../../../_virtual/polyline.js";
|
|
5
|
+
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
6
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
7
|
+
const D = {
|
|
8
|
+
"aria-label": "Page navigation",
|
|
9
|
+
class: "uikit-overflow-auto"
|
|
10
|
+
}, $ = {
|
|
11
|
+
key: 0,
|
|
12
|
+
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
|
+
}, B = ["data-cy"], O = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
16
|
+
}, A = {
|
|
17
|
+
key: 1,
|
|
18
|
+
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
|
+
}, F = ["onClick"], V = ["onClick"], E = {
|
|
20
|
+
key: 0,
|
|
21
|
+
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
|
+
}, z = ["data-cy"], q = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
25
|
+
}, T = /* @__PURE__ */ j({
|
|
7
26
|
__name: "BasePagination",
|
|
8
27
|
props: /* @__PURE__ */ P({
|
|
9
28
|
count: { default: 0 },
|
|
10
29
|
limit: { default: 25 },
|
|
11
|
-
siblings: {},
|
|
30
|
+
siblings: { default: 3 },
|
|
31
|
+
additionalCount: { default: 0 },
|
|
12
32
|
arrowColor: { default: "#2B5DFF" },
|
|
33
|
+
small: { type: Boolean, default: !1 },
|
|
13
34
|
prevLabel: { default: "" },
|
|
14
35
|
nextLabel: { default: "" },
|
|
15
36
|
prevDataCy: {},
|
|
@@ -19,89 +40,113 @@ const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }
|
|
|
19
40
|
pageNumberModifiers: {}
|
|
20
41
|
}),
|
|
21
42
|
emits: ["update:pageNumber"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
]
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
43
|
+
setup(a) {
|
|
44
|
+
const u = S(a, "pageNumber"), n = s(() => Math.ceil((a.count + a.additionalCount) / a.limit)), g = s(() => (u.value || 0) > a.siblings + 2), f = s(
|
|
45
|
+
() => (u.value || 0) < n.value - a.siblings - 1
|
|
46
|
+
), b = s(() => {
|
|
47
|
+
let e = u.value || 0, t = 0;
|
|
48
|
+
for (; e > 2 && t < a.siblings; )
|
|
49
|
+
e--, t++;
|
|
50
|
+
return t;
|
|
51
|
+
}), w = s(() => {
|
|
52
|
+
let e = u.value || 0, t = 0;
|
|
53
|
+
for (; e < n.value - 1 && t < a.siblings; )
|
|
54
|
+
e++, t++;
|
|
55
|
+
return t;
|
|
56
|
+
}), N = s(() => {
|
|
57
|
+
const i = b.value + /* Filling with the remaining right siblings */
|
|
58
|
+
Math.abs(w.value - a.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
59
|
+
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
60
|
+
new Number(u.value === n.value).valueOf();
|
|
61
|
+
let e = Math.max((u.value || 0) - i, 2);
|
|
62
|
+
const t = [];
|
|
63
|
+
for (e; e < (u.value || 0); e++) t.push(e);
|
|
64
|
+
return t;
|
|
65
|
+
}), M = s(() => {
|
|
66
|
+
const i = w.value + /* Filling with the remaining left siblings */
|
|
67
|
+
Math.abs(b.value - a.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
68
|
+
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
69
|
+
new Number(u.value === 1).valueOf();
|
|
70
|
+
let e = Math.min(u.value || 0, n.value - 1);
|
|
71
|
+
const t = [];
|
|
72
|
+
for (e; e < Math.min((u.value || 0) + i, n.value - 1); e++)
|
|
73
|
+
t.push(e + 1);
|
|
74
|
+
return t;
|
|
75
|
+
}), k = (i) => {
|
|
76
|
+
let e = i;
|
|
77
|
+
i < 1 ? e = 1 : i > n.value && (e = n.value), u.value = e;
|
|
78
|
+
};
|
|
79
|
+
return (i, e) => (r(), l("nav", D, [
|
|
80
|
+
i.count > 0 ? (r(), l("ul", $, [
|
|
81
|
+
p("li", {
|
|
82
|
+
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": u.value !== 1,
|
|
84
|
+
"hover:uikit-text-white": i.small && u.value !== 1,
|
|
85
|
+
"uikit-rounded-xs": i.small && i.prevLabel
|
|
86
|
+
}]),
|
|
87
|
+
"data-cy": i.prevDataCy,
|
|
88
|
+
onClick: e[0] || (e[0] = (t) => k((u.value || 0) - 1))
|
|
89
|
+
}, [
|
|
90
|
+
y(v(C), {
|
|
91
|
+
width: 20,
|
|
92
|
+
height: 11,
|
|
93
|
+
"stroke-color": u.value === 1 ? "#8996A9" : i.arrowColor,
|
|
94
|
+
class: "uikit-inline-block uikit-rotate-90"
|
|
95
|
+
}, null, 8, ["stroke-color"]),
|
|
96
|
+
i.small && i.prevLabel ? (r(), l("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
97
|
+
], 10, B),
|
|
98
|
+
i.small ? o("", !0) : (r(), l(m, { key: 0 }, [
|
|
99
|
+
(u.value || 0) > 1 ? (r(), l("li", {
|
|
100
|
+
key: 0,
|
|
101
|
+
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] = (t) => k(0))
|
|
103
|
+
}, " 1 ")) : o("", !0),
|
|
104
|
+
g.value ? (r(), l("li", A, " ... ")) : o("", !0),
|
|
105
|
+
(r(!0), l(m, null, x(N.value, (t) => (r(), l("li", {
|
|
106
|
+
key: t,
|
|
107
|
+
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(t)
|
|
109
|
+
}, c(v(d)(t)), 9, F))), 128))
|
|
110
|
+
], 64)),
|
|
111
|
+
p("li", {
|
|
112
|
+
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
|
+
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
114
|
+
}])
|
|
115
|
+
}, c(u.value || 0), 3),
|
|
116
|
+
i.small ? o("", !0) : (r(), l(m, { key: 1 }, [
|
|
117
|
+
(r(!0), l(m, null, x(M.value, (t) => (r(), l("li", {
|
|
118
|
+
key: t,
|
|
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",
|
|
120
|
+
onClick: (L) => k(t)
|
|
121
|
+
}, c(v(d)(t)), 9, V))), 128)),
|
|
122
|
+
f.value ? (r(), l("li", E, " ... ")) : o("", !0),
|
|
123
|
+
(u.value || 0) < n.value ? (r(), l("li", {
|
|
124
|
+
key: 1,
|
|
125
|
+
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] = (t) => k(n.value))
|
|
127
|
+
}, c(v(d)(n.value)), 1)) : o("", !0)
|
|
128
|
+
], 64)),
|
|
129
|
+
p("li", {
|
|
130
|
+
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": (u.value || 0) < n.value,
|
|
132
|
+
"hover:uikit-text-white": i.small && (u.value || 0) < n.value,
|
|
133
|
+
"uikit-rounded-xs": i.small && i.nextLabel
|
|
134
|
+
}]),
|
|
135
|
+
"data-cy": i.nextDataCy,
|
|
136
|
+
onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
|
|
137
|
+
}, [
|
|
138
|
+
i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
|
|
139
|
+
y(v(C), {
|
|
140
|
+
"stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
|
|
141
|
+
width: 20,
|
|
142
|
+
height: 11,
|
|
143
|
+
class: "uikit-inline-block -uikit-rotate-90"
|
|
144
|
+
}, null, 8, ["stroke-color"])
|
|
145
|
+
], 10, z)
|
|
146
|
+
])) : o("", !0)
|
|
147
|
+
]));
|
|
103
148
|
}
|
|
104
149
|
});
|
|
105
150
|
export {
|
|
106
|
-
|
|
151
|
+
T as default
|
|
107
152
|
};
|