evo-vue-carousel 2.1.4 → 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.
@@ -3536,7 +3536,7 @@ var ki = /* @__PURE__ */ Oi({
3536
3536
  }
3537
3537
  },
3538
3538
  setup(e) {
3539
- ie((e) => ({ v7cdf5b58: re.value }));
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,8 +3547,20 @@ 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
- return T.value = a.value.wrap ? i.totalSlides + e : e, (t + a.value.gap) * T.value * -1;
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";
@@ -3562,7 +3574,7 @@ var ki = /* @__PURE__ */ Oi({
3562
3574
  isInit: i.isInit,
3563
3575
  currentIndex: e,
3564
3576
  isNavigating: h.value
3565
- })), i.isInit && (h.value === !1 && (C.value = S.value), S.value = D(e), i.developer && console.log("[Slider.vue]: currentIndex watch callback updated offset to " + S.value), t && I());
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());
3566
3578
  }, { immediate: !0 });
3567
3579
  let P = (e) => {
3568
3580
  e.target.classList.contains("evo-vue-carousel__viewport-track") !== !1 && (i.developer && console.log("[Slider.vue]: onSlideTransitionStart called"), g(!0));
@@ -3644,7 +3656,7 @@ var ki = /* @__PURE__ */ Oi({
3644
3656
  d("tr", Gi, [t[4] ||= d("td", { class: "px-2 py-1" }, "Is Hovered:", -1), d("td", Ki, N(F(m)), 1)])
3645
3657
  ])) : l("", !0)], 8, Ii));
3646
3658
  }
3647
- }), [["__scopeId", "data-v-346f9ad3"]]), Ji = ["data-height"], Yi = {
3659
+ }), [["__scopeId", "data-v-6fc55650"]]), Ji = ["data-height"], Yi = {
3648
3660
  __name: "Gallery",
3649
3661
  props: {
3650
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-346f9ad3]{--slide-width:var(--v7cdf5b58)}
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)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo-vue-carousel",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "type": "module",
5
5
  "license": "GPL-3.0-only",
6
6
  "files": [