@wikicasa-dev/components 2.4.2-alpha.12 → 2.4.2-alpha.14

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.
@@ -1,7 +1,7 @@
1
1
  const a = (o) => ({
2
2
  loader: () => import("./index.js").then((t) => t.default),
3
3
  ...o === void 0 ? {} : {
4
- autoplay: o
4
+ options: { autoplay: o }
5
5
  }
6
6
  });
7
7
  export {
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,7 +1,7 @@
1
- const o = (e) => ({
2
- loader: () => import("./index.js").then((l) => l.default),
3
- ...e ? { controller: e } : {}
1
+ const l = (o) => ({
2
+ loader: () => import("./index.js").then((e) => e.default),
3
+ ...o ? { options: { controller: o } } : {}
4
4
  });
5
5
  export {
6
- o as ControllerModule
6
+ l as ControllerModule
7
7
  };
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,9 +1,9 @@
1
- const o = (e) => ({
2
- loader: () => import("./index.js").then((d) => d.default),
1
+ const d = (e) => ({
2
+ loader: () => import("./index.js").then((o) => o.default),
3
3
  ...e === void 0 ? {} : {
4
- freeMode: e
4
+ options: { freeMode: e }
5
5
  }
6
6
  });
7
7
  export {
8
- o as FreemodeModule
8
+ d as FreemodeModule
9
9
  };
@@ -1,9 +1,9 @@
1
- const o = (e) => ({
2
- loader: () => import("./index.js").then((d) => d.default),
3
- ...e === void 0 ? {} : {
4
- keyboard: e
1
+ const d = (o) => ({
2
+ loader: () => import("./index.js").then((e) => e.default),
3
+ ...o === void 0 ? {} : {
4
+ options: { keyboard: o }
5
5
  }
6
6
  });
7
7
  export {
8
- o as KeyboardModule
8
+ d as KeyboardModule
9
9
  };
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,9 +1,9 @@
1
- const t = (a) => ({
2
- loader: () => import("./index.js").then((o) => o.default),
3
- ...a === void 0 ? {} : {
4
- navigation: a
1
+ const a = (o) => ({
2
+ loader: () => import("./index.js").then((t) => t.default),
3
+ ...o === void 0 ? {} : {
4
+ options: { navigation: o }
5
5
  }
6
6
  });
7
7
  export {
8
- t as NavigationModule
8
+ a as NavigationModule
9
9
  };
@@ -1,7 +1,7 @@
1
- const t = (a) => ({
2
- loader: () => import("./index.js").then((o) => o.default),
3
- ...a === void 0 ? {} : { pagination: a }
1
+ const a = (o) => ({
2
+ loader: () => import("./index.js").then((t) => t.default),
3
+ ...o === void 0 ? {} : { options: { pagination: o } }
4
4
  });
5
5
  export {
6
- t as PaginationModule
6
+ a as PaginationModule
7
7
  };
@@ -1,7 +1,7 @@
1
- const u = (e) => ({
2
- loader: () => import("./index.js").then((t) => t.default),
3
- ...e ? { thumbs: e } : {}
1
+ const o = (t) => ({
2
+ loader: () => import("./index.js").then((e) => e.default),
3
+ ...t ? { options: { thumbs: t } } : {}
4
4
  });
5
5
  export {
6
- u as ThumbsModule
6
+ o as ThumbsModule
7
7
  };
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -1,9 +1,9 @@
1
- const d = (o) => ({
1
+ const t = (o) => ({
2
2
  loader: () => import("./index.js").then((e) => e.default),
3
3
  ...o === void 0 ? {} : {
4
- zoom: o
4
+ options: { zoom: o }
5
5
  }
6
6
  });
7
7
  export {
8
- d as ZoomModule
8
+ t as ZoomModule
9
9
  };
@@ -1,16 +1,13 @@
1
- const a = async (o, r, s) => {
2
- const i = s.map((e) => e.loader()), [{ Swiper: n }, ...p] = await Promise.all([
1
+ const p = async (s, t, o) => {
2
+ const r = o.map((e) => e.loader()), [{ Swiper: i }, ...n] = await Promise.all([
3
3
  import("./index.js"),
4
- ...i
5
- ]), t = s.reduce(
4
+ ...r
5
+ ]), a = o.reduce(
6
6
  (e, c) => Object.assign(e, c.options),
7
- { ...r, modules: p }
7
+ { ...t, modules: n }
8
8
  );
9
- return console.log("DEBUG:createSwiper", {
10
- container: o,
11
- options: t
12
- }), new n(o, t);
9
+ return new i(s, a);
13
10
  };
14
11
  export {
15
- a as createSwiper
12
+ p as createSwiper
16
13
  };
@@ -1 +1 @@
1
- .uikit-carousel.swiper{visibility:hidden}.uikit-carousel.swiper.swiper-initialized{visibility:visible}.swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
1
+ .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
@@ -1 +1 @@
1
- .no-transition[data-v-d2a14d6f]{transition-duration:0ms!important}.disable-select[data-v-d2a14d6f]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-d2a14d6f]{pointer-events:auto!important}
1
+ .no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
@@ -18,6 +18,7 @@ declare function __VLS_template(): {
18
18
  slots: {
19
19
  default?(_: {}): any;
20
20
  last_slide?(_: {}): any;
21
+ placeholder?(_: {}): any;
21
22
  };
22
23
  refs: {
23
24
  swiperRef: HTMLDivElement;
@@ -2,7 +2,7 @@ import o from "../../packages/components/lib/components/carousel/SwiperCarousel.
2
2
  import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
3
3
  /* empty css */
4
4
  import r from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d2a14d6f"]]);
5
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f8f3d52a"]]);
6
6
  export {
7
- e as default
7
+ m as default
8
8
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as W, shallowRef as z, useTemplateRef as C, useId as X, computed as Y, onMounted as x, watch as _, nextTick as M, createElementBlock as n, openBlock as l, normalizeClass as d, createElementVNode as w, createCommentVNode as y, unref as ee, renderSlot as L, Fragment as k, renderList as V, mergeProps as B, withModifiers as O } from "vue";
2
- import { createSwiper as R } from "../../../../../Swiper/factory.js";
3
- import { AutoplayModule as te } from "../../../../../Swiper/Autoplay/factory.js";
4
- import { FreemodeModule as ie } from "../../../../../Swiper/FreeMode/factory.js";
5
- import { KeyboardModule as se } from "../../../../../Swiper/Keyboard/factory.js";
6
- import { NavigationModule as ae } from "../../../../../Swiper/Navigation/factory.js";
7
- import { PaginationModule as re } from "../../../../../Swiper/Pagination/factory.js";
8
- import { ThumbsModule as oe } from "../../../../../Swiper/Thumbs/factory.js";
9
- import { ZoomModule as ne } from "../../../../../Swiper/Zoom/factory.js";
10
- const le = ["id", "data-cy"], de = ["data-idx", "alt", "width", "height", "onLoad"], ue = ["id"], ce = ["alt"], $e = /* @__PURE__ */ W({
1
+ import { defineComponent as W, shallowRef as L, useTemplateRef as V, useId as X, computed as Y, onMounted as x, watch as _, nextTick as S, createElementBlock as n, openBlock as l, Fragment as $, withDirectives as ee, renderSlot as I, createCommentVNode as h, createElementVNode as f, normalizeClass as u, unref as te, renderList as R, mergeProps as T, withModifiers as P, vShow as ie } from "vue";
2
+ import { createSwiper as B } from "../../../../../Swiper/factory.js";
3
+ import { AutoplayModule as se } from "../../../../../Swiper/Autoplay/factory.js";
4
+ import { FreemodeModule as ae } from "../../../../../Swiper/FreeMode/factory.js";
5
+ import { KeyboardModule as re } from "../../../../../Swiper/Keyboard/factory.js";
6
+ import { NavigationModule as oe } from "../../../../../Swiper/Navigation/factory.js";
7
+ import { PaginationModule as ne } from "../../../../../Swiper/Pagination/factory.js";
8
+ import { ThumbsModule as le } from "../../../../../Swiper/Thumbs/factory.js";
9
+ import { ZoomModule as ue } from "../../../../../Swiper/Zoom/factory.js";
10
+ const de = ["id", "data-cy"], ce = ["data-idx", "alt", "width", "height", "onLoad"], pe = ["id"], we = ["alt"], Oe = /* @__PURE__ */ W({
11
11
  inheritAttrs: !1,
12
12
  __name: "SwiperCarousel",
13
13
  props: {
@@ -21,8 +21,8 @@ const le = ["id", "data-cy"], de = ["data-idx", "alt", "width", "height", "onLoa
21
21
  shiftFirstImage: { type: Boolean, default: !1 }
22
22
  },
23
23
  emits: ["moved", "click", "firstSlideLoaded", "init"],
24
- setup(t, { expose: T, emit: D }) {
25
- const h = D, u = z(null), $ = C("swiperRef"), F = C("thumbsRef"), A = z(!1), N = X(), m = Y(() => t.id ?? N), v = t.swiperOptions?.slidesPerView || 1, j = !!t.swiperOptions?.keyboard, S = !!t.swiperOptions.navigation, I = !!t.swiperOptions.pagination, E = !!t.swiperOptions.autoplay, q = t.swiperOptions?.effect || "slider", P = (e, i = -1, s = !1) => {
24
+ setup(t, { expose: D, emit: F }) {
25
+ const b = F, d = L(null), k = V("swiperRef"), A = V("thumbsRef"), O = L(!1), E = X(), m = Y(() => t.id ?? E), v = t.swiperOptions?.slidesPerView || 1, N = !!t.swiperOptions?.keyboard, z = !!t.swiperOptions.navigation, M = !!t.swiperOptions.pagination, j = !!t.swiperOptions.autoplay, q = t.swiperOptions?.effect || "slider", C = (e, i = -1, s = !1) => {
26
26
  if (!e.images)
27
27
  return { src: e.src || "" };
28
28
  let a = "", r = "", g = "";
@@ -32,15 +32,15 @@ const le = ["id", "data-cy"], de = ["data-idx", "alt", "width", "height", "onLoa
32
32
  p && (g += g ? `,${c} ${parseInt(p)}px` : `${c} ${parseInt(p)}px`);
33
33
  }
34
34
  r = e.images.reduce((o, c, p) => {
35
- const f = Object.values(t.artDirection)[p];
36
- return !f || !f.width || (o += o ? `, ${c.storagePath} ${f.width}` : `${c.storagePath} ${f.width}`), o;
35
+ const w = Object.values(t.artDirection)[p];
36
+ return !w || !w.width || (o += o ? `, ${c.storagePath} ${w.width}` : `${c.storagePath} ${w.width}`), o;
37
37
  }, ""), a = e.images[0].storagePath;
38
38
  } else {
39
39
  let o = e.images;
40
- e.images.length > 3 ? o = e.images.slice(2, 5) : t.shiftFirstImage && (o[0] = o[1]), r = o.reduce((c, p, f) => (f === 0 && (a = `${p.storagePath}`), f > 0 && (c += ", "), `${c}${p.storagePath} ${f + 1}x`), "");
40
+ e.images.length > 3 ? o = e.images.slice(2, 5) : t.shiftFirstImage && (o[0] = o[1]), r = o.reduce((c, p, w) => (w === 0 && (a = `${p.storagePath}`), w > 0 && (c += ", "), `${c}${p.storagePath} ${w + 1}x`), "");
41
41
  }
42
- const J = a, Q = r;
43
- return typeof v == "number" && i > v ? (a = "", r = "", { sizes: g, "data-src": J, "data-srcset": Q }) : s ? {
42
+ const Q = a, U = r;
43
+ return typeof v == "number" && i > v ? (a = "", r = "", { sizes: g, "data-src": Q, "data-srcset": U }) : s ? {
44
44
  src: a,
45
45
  srcset: r,
46
46
  sizes: g,
@@ -53,43 +53,41 @@ const le = ["id", "data-cy"], de = ["data-idx", "alt", "width", "height", "onLoa
53
53
  loading: t.lazyLoadImages || i >= v ? "lazy" : void 0,
54
54
  fetchpriority: !t.lazyLoadImages && i === 0 ? "high" : "low"
55
55
  };
56
- }, b = [], G = (e) => {
56
+ }, y = [], K = (e) => {
57
57
  if (typeof v == "string") return;
58
- const i = b[e];
58
+ const i = y[e];
59
59
  if (i && !i.src && (i.src = i.dataset.src || "", i.srcset = i.dataset.srcset || ""), e < v || e + 1 >= (t.images ?? []).length)
60
60
  return;
61
- const s = b[e + 1];
61
+ const s = y[e + 1];
62
62
  s && !s.src && (s.src = s?.dataset.src || "", s.srcset = s?.dataset.srcset || "");
63
- }, K = (e) => {
64
- e || !b?.[e] || M(() => {
65
- $.value?.setAttribute("data-first-slide-loaded", "true"), h("firstSlideLoaded");
63
+ }, Z = (e) => {
64
+ e || !y?.[e] || S(() => {
65
+ k.value?.setAttribute("data-first-slide-loaded", "true"), b("firstSlideLoaded");
66
66
  });
67
- }, U = (e) => t.thumbSwiperOptions ? R(e, t.thumbSwiperOptions, [
68
- ie(t.thumbSwiperOptions.freeMode)
69
- ]) : null, Z = async (e, i) => {
70
- console.log("DEBUG:SwiperCarousel", {
71
- rootEl: e,
72
- thumbEl: i
73
- });
74
- const s = i ? await U(i) : null;
75
- u.value = await R(
67
+ }, G = (e) => t.thumbSwiperOptions ? B(e, t.thumbSwiperOptions, [
68
+ ae(t.thumbSwiperOptions.freeMode)
69
+ ]) : null, H = async (e, i) => {
70
+ const s = i ? await G(i) : null;
71
+ d.value = await B(
76
72
  e,
77
73
  {
78
74
  on: {
79
75
  init: () => {
80
- A.value = !0, h("init");
76
+ S(() => {
77
+ O.value = !0, b("init");
78
+ });
81
79
  },
82
80
  slideChange: (a) => {
83
- G(a.activeIndex), h("moved", { activeIndex: a.activeIndex });
81
+ K(a.activeIndex), b("moved", { activeIndex: a.activeIndex });
84
82
  }
85
83
  },
86
84
  ...s ? { thumbs: { ...t.swiperOptions.thumbs, swiper: s } } : {},
87
85
  ...t.swiperOptions
88
86
  },
89
87
  [
90
- ne(t.swiperOptions.zoom),
91
- j ? se(t.swiperOptions.keyboard) : void 0,
92
- I ? re({
88
+ ue(t.swiperOptions.zoom),
89
+ N ? re(t.swiperOptions.keyboard) : void 0,
90
+ M ? ne({
93
91
  el: ".swiper-pagination",
94
92
  renderFraction: (a, r) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
95
93
  <span data-cy="swiper-pagination-current" class="${a}"></span>
@@ -98,126 +96,131 @@ const le = ["id", "data-cy"], de = ["data-idx", "alt", "width", "height", "onLoa
98
96
  </div>`,
99
97
  ...typeof t.swiperOptions.pagination == "boolean" ? {} : t.swiperOptions.pagination
100
98
  }) : void 0,
101
- S ? ae({
99
+ z ? oe({
102
100
  nextEl: ".swiper-button-next",
103
101
  prevEl: ".swiper-button-prev",
104
102
  ...typeof t.swiperOptions.navigation == "boolean" ? {} : t.swiperOptions.navigation
105
103
  }) : void 0,
106
- E ? te(t.swiperOptions.autoplay) : void 0,
104
+ j ? se(t.swiperOptions.autoplay) : void 0,
107
105
  //Thumbs specific modules
108
- s ? oe() : void 0
106
+ s ? le() : void 0
109
107
  ].filter(Boolean)
110
108
  );
111
109
  };
112
110
  x(() => {
113
- $.value && setTimeout(() => Z($.value, F.value));
111
+ k.value && setTimeout(() => H(k.value, A.value));
114
112
  });
115
- const H = (e) => {
116
- !u.value || u.value.params.slidesPerView === e || (u.value.params.slidesPerView = e, u.value.update());
113
+ const J = (e) => {
114
+ !d.value || d.value.params.slidesPerView === e || (d.value.params.slidesPerView = e, d.value.update());
117
115
  };
118
116
  return _(
119
117
  () => t.images,
120
118
  () => {
121
- M(() => {
122
- u.value?.update();
119
+ S(() => {
120
+ d.value?.update();
123
121
  });
124
122
  }
125
- ), T({
126
- swiper: u,
123
+ ), D({
124
+ swiper: d,
127
125
  moveTo(e, i = 0, s = !0) {
128
- u.value?.slideTo(e, i, s);
126
+ d.value?.slideTo(e, i, s);
129
127
  },
130
- updateSlidesPerView: H
131
- }), (e, i) => (l(), n("div", {
132
- class: d(["swiper-carousel-root", e.$attrs["root-classes"]])
133
- }, [
134
- w("div", {
135
- ref: "swiperRef",
136
- id: m.value,
137
- "data-cy": e.$attrs["data-cy"],
138
- class: d(["swiper uikit-carousel", e.$attrs["swiper-classes"]])
128
+ updateSlidesPerView: J
129
+ }), (e, i) => (l(), n($, null, [
130
+ ee(f("div", {
131
+ class: u(["swiper-carousel-root", e.$attrs["root-classes"]])
139
132
  }, [
140
- w("div", {
141
- class: d(["swiper-wrapper", [
142
- e.$attrs["swiper-wrapper-classes"],
143
- ee(q) === "none" && "no-transition"
144
- ]]),
145
- onClick: i[0] || (i[0] = (s) => h("click"))
133
+ f("div", {
134
+ ref: "swiperRef",
135
+ id: m.value,
136
+ "data-cy": e.$attrs["data-cy"],
137
+ class: u(["swiper uikit-carousel", e.$attrs["swiper-classes"]])
146
138
  }, [
147
- L(e.$slots, "default", {}, () => [
148
- (l(!0), n(k, null, V(t.images, (s, a) => (l(), n("div", {
149
- key: `swiper_${m.value}_${a}`,
150
- class: d(["swiper-slide", e.$attrs["swiper-slide-classes"]])
151
- }, [
152
- w("div", {
153
- class: d(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
139
+ f("div", {
140
+ class: u(["swiper-wrapper", [
141
+ e.$attrs["swiper-wrapper-classes"],
142
+ te(q) === "none" && "no-transition"
143
+ ]]),
144
+ onClick: i[0] || (i[0] = (s) => b("click"))
145
+ }, [
146
+ I(e.$slots, "default", {}, () => [
147
+ (l(!0), n($, null, R(t.images, (s, a) => (l(), n("div", {
148
+ key: `swiper_${m.value}_${a}`,
149
+ class: u(["swiper-slide", e.$attrs["swiper-slide-classes"]])
154
150
  }, [
155
- t.backgroundImage ? y("", !0) : (l(), n("img", B({
156
- key: 0,
157
- ref_for: !0,
158
- ref: (r) => {
159
- b.push(r);
160
- },
161
- class: ["disable-select", [e.$attrs["slide-img-classes"] || s.classes]],
162
- "data-idx": `${m.value}-slide-img-${a}`
163
- }, { ref_for: !0 }, P(s, a), {
164
- alt: s.alt,
165
- itemprop: "image",
166
- width: s.width,
167
- height: s.height,
168
- onLoad: (r) => K(a)
169
- }), null, 16, de))
170
- ], 2)
171
- ], 2))), 128)),
172
- L(e.$slots, "last_slide", {}, void 0, !0)
173
- ], !0)
174
- ], 2),
175
- I ? (l(), n("div", {
176
- key: 0,
177
- class: d([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
178
- onClick: i[1] || (i[1] = O(() => {
179
- }, ["stop"]))
180
- }, null, 2)) : y("", !0),
181
- S ? (l(), n(k, { key: 1 }, [
182
- w("div", {
183
- class: "swiper-button-prev",
184
- "data-cy": "swiper-button-prev",
185
- onClick: i[2] || (i[2] = O(() => {
151
+ f("div", {
152
+ class: u(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
153
+ }, [
154
+ t.backgroundImage ? h("", !0) : (l(), n("img", T({
155
+ key: 0,
156
+ ref_for: !0,
157
+ ref: (r) => {
158
+ y.push(r);
159
+ },
160
+ class: ["disable-select", [e.$attrs["slide-img-classes"] || s.classes]],
161
+ "data-idx": `${m.value}-slide-img-${a}`
162
+ }, { ref_for: !0 }, C(s, a), {
163
+ alt: s.alt,
164
+ itemprop: "image",
165
+ width: s.width,
166
+ height: s.height,
167
+ onLoad: (r) => Z(a)
168
+ }), null, 16, ce))
169
+ ], 2)
170
+ ], 2))), 128)),
171
+ I(e.$slots, "last_slide", {}, void 0, !0)
172
+ ], !0)
173
+ ], 2),
174
+ M ? (l(), n("div", {
175
+ key: 0,
176
+ class: u([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
177
+ onClick: i[1] || (i[1] = P(() => {
186
178
  }, ["stop"]))
187
- }),
188
- w("div", {
189
- class: "swiper-button-next",
190
- "data-cy": "swiper-button-next",
191
- onClick: i[3] || (i[3] = O(() => {
192
- }, ["stop"]))
193
- })
194
- ], 64)) : y("", !0)
195
- ], 10, le),
196
- t.thumbSwiperOptions ? (l(), n("div", {
197
- key: 0,
198
- id: `thumb_${m.value}`,
199
- ref: "thumbsRef",
200
- class: d(["swiper", e.$attrs["thumb-swiper-classes"]]),
201
- thumbsSlider: ""
202
- }, [
203
- w("div", {
204
- class: d(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
179
+ }, null, 2)) : h("", !0),
180
+ z ? (l(), n($, { key: 1 }, [
181
+ f("div", {
182
+ class: "swiper-button-prev",
183
+ "data-cy": "swiper-button-prev",
184
+ onClick: i[2] || (i[2] = P(() => {
185
+ }, ["stop"]))
186
+ }),
187
+ f("div", {
188
+ class: "swiper-button-next",
189
+ "data-cy": "swiper-button-next",
190
+ onClick: i[3] || (i[3] = P(() => {
191
+ }, ["stop"]))
192
+ })
193
+ ], 64)) : h("", !0)
194
+ ], 10, de),
195
+ t.thumbSwiperOptions ? (l(), n("div", {
196
+ key: 0,
197
+ id: `thumb_${m.value}`,
198
+ ref: "thumbsRef",
199
+ class: u(["swiper", e.$attrs["thumb-swiper-classes"]]),
200
+ thumbsSlider: ""
205
201
  }, [
206
- (l(!0), n(k, null, V(t.images, (s, a) => (l(), n("div", {
207
- key: `thumb_${m.value}_${a}`,
208
- class: d(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
202
+ f("div", {
203
+ class: u(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
209
204
  }, [
210
- w("img", B({
211
- class: e.$attrs["thumb-img-classes"]
212
- }, { ref_for: !0 }, P(s, -1, !1), {
213
- alt: s.alt
214
- }), null, 16, ce)
215
- ], 2))), 128))
216
- ], 2)
217
- ], 10, ue)) : y("", !0)
218
- ], 2));
205
+ (l(!0), n($, null, R(t.images, (s, a) => (l(), n("div", {
206
+ key: `thumb_${m.value}_${a}`,
207
+ class: u(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
208
+ }, [
209
+ f("img", T({
210
+ class: e.$attrs["thumb-img-classes"]
211
+ }, { ref_for: !0 }, C(s, -1, !1), {
212
+ alt: s.alt
213
+ }), null, 16, we)
214
+ ], 2))), 128))
215
+ ], 2)
216
+ ], 10, pe)) : h("", !0)
217
+ ], 2), [
218
+ [ie, O.value]
219
+ ]),
220
+ O.value ? h("", !0) : I(e.$slots, "placeholder", { key: 0 }, void 0, !0)
221
+ ], 64));
219
222
  }
220
223
  });
221
224
  export {
222
- $e as default
225
+ Oe as default
223
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.4.2-alpha.12",
3
+ "version": "2.4.2-alpha.14",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",