@visitscotland/component-library 5.71.1 → 5.71.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.
|
@@ -3998,7 +3998,7 @@ var normalizeInput = (e, t) => {
|
|
|
3998
3998
|
leaveActiveClass: "",
|
|
3999
3999
|
enterFromClass: "",
|
|
4000
4000
|
leaveFromClass: ""
|
|
4001
|
-
} }), V = useBreakpoints(breakpointsBootstrapV5).
|
|
4001
|
+
} }), V = useBreakpoints(breakpointsBootstrapV5).smaller(() => a.responsive ?? "xs"), P = ref(!1);
|
|
4002
4002
|
onMounted(() => {
|
|
4003
4003
|
a.responsive !== void 0 && (P.value = !V.value, o("breakpoint", F("breakpoint"), P.value));
|
|
4004
4004
|
}), useSafeScrollLock(p, () => a.bodyScrolling || P.value), onKeyStroke("Escape", () => {
|
|
@@ -17717,7 +17717,7 @@ function updateSwiper(e) {
|
|
|
17717
17717
|
const { swiper: r, slides: s, passedParams: i, changedParams: l } = e, c = l.filter((w) => w !== "children" && w !== "direction" && w !== "wrapperClass"), { params: d, pagination: u, navigation: f, scrollbar: p, virtual: m, thumbs: g } = r, b = i, v = d;
|
|
17718
17718
|
let _, k, C, T, D, I, E, O;
|
|
17719
17719
|
const F = b.thumbs, N = v.thumbs;
|
|
17720
|
-
l.includes("thumbs") && isObject$1(F) &&
|
|
17720
|
+
l.includes("thumbs") && isObject$1(F) && F.swiper && !F.swiper.destroyed && isObject$1(N) && (!N.swiper || N.swiper.destroyed) && (_ = !0);
|
|
17721
17721
|
const M = b.controller, S = v.controller;
|
|
17722
17722
|
l.includes("controller") && isObject$1(M) && M.control && isObject$1(S) && !S.control && (k = !0);
|
|
17723
17723
|
const V = b.pagination;
|
|
@@ -37043,7 +37043,7 @@ function useSwipeDrawer(e, t) {
|
|
|
37043
37043
|
), p = computed$1(() => {
|
|
37044
37044
|
if (i.value)
|
|
37045
37045
|
return {
|
|
37046
|
-
height: `calc(
|
|
37046
|
+
height: `calc(100dvh - ${u}px)`,
|
|
37047
37047
|
top: `${u}px`,
|
|
37048
37048
|
transform: `translateY(${n.value}px)`,
|
|
37049
37049
|
transition: s.value ? "none" : "transform 0.5s ease"
|
|
@@ -37070,7 +37070,7 @@ function useSwipeDrawer(e, t) {
|
|
|
37070
37070
|
return watchEffect(() => {
|
|
37071
37071
|
n.value = e.value ? c : f.value;
|
|
37072
37072
|
}), onMounted(() => {
|
|
37073
|
-
|
|
37073
|
+
r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), window.addEventListener("resize", v);
|
|
37074
37074
|
}), onUnmounted(() => {
|
|
37075
37075
|
document.documentElement.classList.remove("map-page"), document.body.classList.remove("map-page"), window.removeEventListener("resize", v);
|
|
37076
37076
|
}), {
|
package/package.json
CHANGED