@wikicasa-dev/components 2.1.13 → 2.1.15

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.
@@ -2,7 +2,7 @@ import o from "../../packages/components/lib/components/carousel/SwiperCarousel.
2
2
  import '../../assets/packages/components/lib/components/carousel/SwiperCarousel2.css';import '../../assets/packages/components/lib/components/carousel/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-6c8fb454"]]);
5
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-581c6b6a"]]);
6
6
  export {
7
7
  e as default
8
8
  };
@@ -1,21 +1,22 @@
1
- import { defineComponent as a, withDirectives as l, createElementBlock as o, openBlock as s, normalizeClass as t, renderSlot as r, vShow as i } from "vue";
2
- const n = ["id", "aria-labelledby"], b = /* @__PURE__ */ a({
1
+ import { defineComponent as a, withDirectives as l, createElementBlock as t, openBlock as i, normalizeClass as o, renderSlot as s, vShow as r } from "vue";
2
+ const d = ["id", "aria-labelledby", "data-active"], b = /* @__PURE__ */ a({
3
3
  __name: "BaseTabPanel",
4
4
  props: {
5
5
  id: {},
6
6
  active: { type: Boolean, default: !1 },
7
7
  labelledBy: {}
8
8
  },
9
- setup(d) {
10
- return (e, p) => l((s(), o("div", {
9
+ setup(n) {
10
+ return (e, c) => l((i(), t("div", {
11
11
  id: e.id,
12
12
  role: "tabpanel",
13
13
  "aria-labelledby": e.labelledBy,
14
- class: t(e.$attrs.class)
14
+ class: o(e.$attrs.class),
15
+ "data-active": e.active
15
16
  }, [
16
- r(e.$slots, "default")
17
- ], 10, n)), [
18
- [i, e.active]
17
+ s(e.$slots, "default")
18
+ ], 10, d)), [
19
+ [r, e.active]
19
20
  ]);
20
21
  }
21
22
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as u, normalizeClass as p, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
1
+ import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as p, normalizeClass as u, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
2
2
  import { Swiper as B } from "swiper";
3
3
  import x from "../../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js";
4
4
  import '../../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css';/* empty css */
@@ -6,7 +6,7 @@ import '../../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swip
6
6
  import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
7
7
  import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
8
8
  import "../../../../../_virtual/polyline.js";
9
- const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], me = /* @__PURE__ */ J({
9
+ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], we = /* @__PURE__ */ J({
10
10
  inheritAttrs: !1,
11
11
  __name: "SwiperCarousel",
12
12
  props: {
@@ -35,16 +35,16 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
35
35
  let a = "", o = "", b = "";
36
36
  if (s.artDirection) {
37
37
  for (const n in s.artDirection) {
38
- const { mq: c, width: m } = s.artDirection[n];
39
- m && (b += b ? `,${c} ${parseInt(m)}px` : `${c} ${parseInt(m)}px`);
38
+ const { mq: c, width: w } = s.artDirection[n];
39
+ w && (b += b ? `,${c} ${parseInt(w)}px` : `${c} ${parseInt(w)}px`);
40
40
  }
41
- o = e.images.reduce((n, c, m) => {
42
- const w = Object.values(s.artDirection)[m];
43
- return !w || !w.width || (n += n ? `, ${c.storagePath} ${w.width}` : `${c.storagePath} ${w.width}`), n;
41
+ o = e.images.reduce((n, c, w) => {
42
+ const m = Object.values(s.artDirection)[w];
43
+ return !m || !m.width || (n += n ? `, ${c.storagePath} ${m.width}` : `${c.storagePath} ${m.width}`), n;
44
44
  }, ""), a = e.images[0].storagePath;
45
45
  } else {
46
46
  let n = e.images;
47
- e.images.length > 3 ? n = e.images.slice(2, 5) : s.shiftFirstImage && (n[0] = n[1]), o = n.reduce((c, m, w) => (w === 0 && (a = `${m.storagePath}`), w > 0 && (c += ", "), `${c}${m.storagePath} ${w + 1}x`), "");
47
+ e.images.length > 3 ? n = e.images.slice(2, 5) : s.shiftFirstImage && (n[0] = n[1]), o = n.reduce((c, w, m) => (m === 0 && (a = `${w.storagePath}`), m > 0 && (c += ", "), `${c}${w.storagePath} ${m + 1}x`), "");
48
48
  }
49
49
  const G = a, H = o;
50
50
  return typeof g.value == "number" && i > g.value ? (a = "", o = "", { sizes: b, "data-src": G, "data-srcset": H }) : t ? {
@@ -69,6 +69,7 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
69
69
  t && !t.src && (t.src = t?.dataset.src || "", t.srcset = t?.dataset.srcset || "");
70
70
  };
71
71
  D({
72
+ swiper: r.swiper,
72
73
  moveTo(e, i = 0, t = !0) {
73
74
  r.swiper?.slideTo(e, i, t);
74
75
  }
@@ -148,35 +149,35 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
148
149
  r.swiper?.update();
149
150
  });
150
151
  }
151
- ), (e, i) => (u(), l("div", {
152
+ ), (e, i) => (p(), l("div", {
152
153
  id: `root-${d.value}`,
153
154
  ref_key: "root",
154
155
  ref: L,
155
- class: p(["swiper-carousel-root", e.$attrs["root-classes"]])
156
+ class: u(["swiper-carousel-root", e.$attrs["root-classes"]])
156
157
  }, [
157
158
  v("div", {
158
159
  id: d.value,
159
160
  "data-cy": e.$attrs["data-cy"],
160
- class: p(["swiper", e.$attrs["swiper-classes"]])
161
+ class: u(["swiper", e.$attrs["swiper-classes"]])
161
162
  }, [
162
163
  v("div", {
163
164
  ref_key: "swiperWrapper",
164
165
  ref: S,
165
- class: p(["swiper-wrapper", [
166
+ class: u(["swiper-wrapper", [
166
167
  e.$attrs["swiper-wrapper-classes"],
167
168
  q.value === "none" && "no-transition"
168
169
  ]]),
169
170
  onClick: i[0] || (i[0] = (t) => $("click"))
170
171
  }, [
171
172
  E(e.$slots, "default", {}, () => [
172
- (u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
173
+ (p(!0), l(P, null, F(e.images, (t, a) => (p(), l("div", {
173
174
  key: `swiper_${d.value}_${a}`,
174
- class: p(["swiper-slide", e.$attrs["swiper-slide-classes"]])
175
+ class: u(["swiper-slide", e.$attrs["swiper-slide-classes"]])
175
176
  }, [
176
177
  v("div", {
177
- class: p(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
178
+ class: u(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
178
179
  }, [
179
- e.backgroundImage ? y("", !0) : (u(), l("img", T({
180
+ e.backgroundImage ? y("", !0) : (p(), l("img", T({
180
181
  key: 0,
181
182
  ref_for: !0,
182
183
  ref: (o) => {
@@ -196,13 +197,13 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
196
197
  E(e.$slots, "last_slide", {}, void 0, !0)
197
198
  ], !0)
198
199
  ], 2),
199
- I.value ? (u(), l("div", {
200
+ I.value ? (p(), l("div", {
200
201
  key: 0,
201
- class: p([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
202
+ class: u([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
202
203
  onClick: i[1] || (i[1] = O(() => {
203
204
  }, ["stop"]))
204
205
  }, null, 2)) : y("", !0),
205
- C.value ? (u(), l(P, { key: 1 }, [
206
+ C.value ? (p(), l(P, { key: 1 }, [
206
207
  v("div", {
207
208
  class: "swiper-button-prev",
208
209
  "data-cy": "swiper-button-prev",
@@ -217,18 +218,18 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
217
218
  })
218
219
  ], 64)) : y("", !0)
219
220
  ], 10, te),
220
- e.thumbSwiperOptions ? (u(), l("div", {
221
+ e.thumbSwiperOptions ? (p(), l("div", {
221
222
  key: 0,
222
223
  id: `thumb_${d.value}`,
223
224
  thumbsSlider: "",
224
- class: p(["swiper", e.$attrs["thumb-swiper-classes"]])
225
+ class: u(["swiper", e.$attrs["thumb-swiper-classes"]])
225
226
  }, [
226
227
  v("div", {
227
- class: p(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
228
+ class: u(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
228
229
  }, [
229
- (u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
230
+ (p(!0), l(P, null, F(e.images, (t, a) => (p(), l("div", {
230
231
  key: `thumb_${d.value}_${a}`,
231
- class: p(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
232
+ class: u(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
232
233
  }, [
233
234
  v("img", T({
234
235
  class: e.$attrs["thumb-img-classes"],
@@ -243,5 +244,5 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
243
244
  }
244
245
  });
245
246
  export {
246
- me as default
247
+ we as default
247
248
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",