evo-vue-carousel 2.1.3 → 2.1.5
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/evo-vue-carousel.js +25 -9
- package/dist/main.css +1 -1
- package/package.json +1 -1
package/dist/evo-vue-carousel.js
CHANGED
|
@@ -608,8 +608,8 @@ var jt = (e, t = !1) => {
|
|
|
608
608
|
let a = k(!1), o = k(!1), c = jt(t, i), l = Ie(r, {
|
|
609
609
|
delayEnter: +t.hoverDelayEnter,
|
|
610
610
|
delayLeave: +t.hoverDelayLeave
|
|
611
|
-
}), u = R(n, async (
|
|
612
|
-
|
|
611
|
+
}), u = R(n, async (n) => {
|
|
612
|
+
n > 0 && (t.developer && console.log("[useCarousel]: slideCount watch callback called"), e.value = Be(e.value, n, c), a.value = !0, await C(), u());
|
|
613
613
|
}, { immediate: !0 });
|
|
614
614
|
R(e, (e) => {
|
|
615
615
|
f(e);
|
|
@@ -3536,7 +3536,7 @@ var ki = /* @__PURE__ */ Oi({
|
|
|
3536
3536
|
}
|
|
3537
3537
|
},
|
|
3538
3538
|
setup(e) {
|
|
3539
|
-
ie((e) => ({
|
|
3539
|
+
ie((e) => ({ v624cf122: re.value }));
|
|
3540
3540
|
let t = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, n = Object.freeze({
|
|
3541
3541
|
element: !0,
|
|
3542
3542
|
component: !0,
|
|
@@ -3547,24 +3547,40 @@ var ki = /* @__PURE__ */ Oi({
|
|
|
3547
3547
|
transform: `translate3d(${S.value}px, 0, 0)`,
|
|
3548
3548
|
transitionDuration: `${ee(M.value, a.value.transitionSpeed)}ms`
|
|
3549
3549
|
})), D = (e) => {
|
|
3550
|
+
i.developer && console.log("[Slider.vue]: called updateOffset with " + e);
|
|
3550
3551
|
let t = parseFloat(re.value);
|
|
3551
|
-
|
|
3552
|
+
T.value = a.value.wrap ? i.totalSlides + e : e;
|
|
3553
|
+
let n = (t + a.value.gap) * T.value;
|
|
3554
|
+
return i.developer && console.table({
|
|
3555
|
+
index: e,
|
|
3556
|
+
wrap: a.value.wrap,
|
|
3557
|
+
gap: a.value.gap,
|
|
3558
|
+
slideWidth: t,
|
|
3559
|
+
totalSlides: i.totalSlides,
|
|
3560
|
+
offsetSlides: T.value,
|
|
3561
|
+
centre: n,
|
|
3562
|
+
returnValue: n * -1
|
|
3563
|
+
}), n * -1;
|
|
3552
3564
|
}, O = k(null), { width: A, height: j } = Le(O), re = s(() => {
|
|
3553
3565
|
let e = a.value.gap > 0 ? a.value.gap * (a.value.perPage - 1) : 0;
|
|
3554
3566
|
return (A.value - e) / a.value.perPage + "px";
|
|
3555
3567
|
});
|
|
3556
3568
|
R(() => i.isInit, async (e) => {
|
|
3557
|
-
e && (S.value = D(o.value), await bi(2), x.value = !1);
|
|
3569
|
+
e && (i.developer && console.log("[Slider.vue]: props.isInit watcher callback called with true"), S.value = D(o.value), i.developer && console.log("[Slider.vue]: props.isInit watch callback updated offset to " + S.value), await bi(2), x.value = !1);
|
|
3558
3570
|
}, { immediate: !0 });
|
|
3559
3571
|
let M = s(() => Math.abs(S.value - C.value));
|
|
3560
3572
|
R(o, (e) => {
|
|
3561
|
-
i.
|
|
3573
|
+
i.developer && (console.log("[Slider.vue]: currentIndex watch callback"), console.table({
|
|
3574
|
+
isInit: i.isInit,
|
|
3575
|
+
currentIndex: e,
|
|
3576
|
+
isNavigating: h.value
|
|
3577
|
+
})), i.isInit && (h.value === !1 && (C.value = S.value, i.developer && console.log("[Slider.vue]: currentIndex watch callback updated offsetStart to " + C.value)), S.value = D(e), i.developer && console.log("[Slider.vue]: currentIndex watch callback updated offset to " + S.value), t && I());
|
|
3562
3578
|
}, { immediate: !0 });
|
|
3563
3579
|
let P = (e) => {
|
|
3564
|
-
e.target.classList.contains("evo-vue-carousel__viewport-track") !== !1 && g(!0);
|
|
3580
|
+
e.target.classList.contains("evo-vue-carousel__viewport-track") !== !1 && (i.developer && console.log("[Slider.vue]: onSlideTransitionStart called"), g(!0));
|
|
3565
3581
|
}, I = async (e) => {
|
|
3566
3582
|
if (e.target.classList.contains("evo-vue-carousel__viewport-track") === !1) return;
|
|
3567
|
-
x.value = !0, await bi();
|
|
3583
|
+
i.developer && console.log("[Slider.vue]: onSlideTransitionEnd called"), x.value = !0, await bi();
|
|
3568
3584
|
let t = i.totalSlides;
|
|
3569
3585
|
f(mi(o.value, 0, t)), await bi(), x.value = !1, g(!1);
|
|
3570
3586
|
};
|
|
@@ -3640,7 +3656,7 @@ var ki = /* @__PURE__ */ Oi({
|
|
|
3640
3656
|
d("tr", Gi, [t[4] ||= d("td", { class: "px-2 py-1" }, "Is Hovered:", -1), d("td", Ki, N(F(m)), 1)])
|
|
3641
3657
|
])) : l("", !0)], 8, Ii));
|
|
3642
3658
|
}
|
|
3643
|
-
}), [["__scopeId", "data-v-
|
|
3659
|
+
}), [["__scopeId", "data-v-6fc55650"]]), Ji = ["data-height"], Yi = {
|
|
3644
3660
|
__name: "Gallery",
|
|
3645
3661
|
props: {
|
|
3646
3662
|
totalSlides: {
|
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.evo-vue-carousel__pagination{pointer-events:none}.evo-vue-carousel__pagination>*{pointer-events:auto}.evo-vue-carousel__navigation{pointer-events:none}.evo-vue-carousel__navigation>*{pointer-events:auto}.evo-vue-carousel__viewport-track[data-v-
|
|
1
|
+
.evo-vue-carousel__pagination{pointer-events:none}.evo-vue-carousel__pagination>*{pointer-events:auto}.evo-vue-carousel__navigation{pointer-events:none}.evo-vue-carousel__navigation>*{pointer-events:auto}.evo-vue-carousel__viewport-track[data-v-6fc55650]{--slide-width:var(--v624cf122)}
|