@wikicasa-dev/components 2.5.3-alpha.5 → 2.5.3-alpha.6

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,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -1,25 +1,27 @@
1
- import { defineComponent as f, shallowRef as l, useTemplateRef as y, onMounted as k, provide as h, createElementBlock as S, openBlock as O, Fragment as V, withDirectives as P, renderSlot as u, createCommentVNode as b, createElementVNode as M, vShow as x, nextTick as C } from "vue";
2
- import { createSwiper as B } from "../../../../../../Swiper/factory.js";
1
+ import { defineComponent as f, shallowRef as a, useTemplateRef as y, onMounted as k, provide as h, createElementBlock as S, openBlock as O, Fragment as P, withDirectives as V, renderSlot as u, createCommentVNode as b, createElementVNode as M, vShow as x, nextTick as B } from "vue";
2
+ import { createSwiper as C } from "../../../../../../Swiper/factory.js";
3
3
  import { AutoplayModule as D } from "../../../../../../Swiper/Autoplay/factory.js";
4
- import { KeyboardModule as E } from "../../../../../../Swiper/Keyboard/factory.js";
5
- import { ZoomModule as I } from "../../../../../../Swiper/Zoom/factory.js";
6
- const R = {
4
+ import { KeyboardModule as g } from "../../../../../../Swiper/Keyboard/factory.js";
5
+ import { ZoomModule as E } from "../../../../../../Swiper/Zoom/factory.js";
6
+ const I = {
7
7
  class: "swiper uikit-carousel",
8
8
  ref: "root"
9
- }, T = /* @__PURE__ */ Symbol(), A = /* @__PURE__ */ f({
9
+ }, R = /* @__PURE__ */ Symbol(), A = /* @__PURE__ */ f({
10
10
  __name: "SwiperRootPrimitive",
11
11
  props: {
12
12
  swiperOptions: {}
13
13
  },
14
14
  emits: ["moved", "click", "init"],
15
15
  setup(o, { expose: d, emit: p }) {
16
- const s = p, t = l(null), n = y("root"), i = l(!1), c = !!o.swiperOptions?.keyboard, m = !!o.swiperOptions?.autoplay, a = [], v = async (e) => {
17
- t.value = await B(
16
+ const s = p, t = a(null), n = y("root"), i = a(!1), c = !!o.swiperOptions?.keyboard, m = !!o.swiperOptions?.autoplay, l = [], v = async (e) => {
17
+ console.log("DEBUG:swiperRootPrimitive:init", {
18
+ swiperRootEl: e
19
+ }), t.value = await C(
18
20
  e,
19
21
  {
20
22
  on: {
21
23
  init: () => {
22
- C(() => {
24
+ B(() => {
23
25
  i.value = !0, s("init");
24
26
  });
25
27
  },
@@ -30,10 +32,10 @@ const R = {
30
32
  ...o.swiperOptions
31
33
  },
32
34
  [
33
- I(o.swiperOptions?.zoom),
34
- c ? E(o.swiperOptions?.keyboard) : void 0,
35
+ E(o.swiperOptions?.zoom),
36
+ c ? g(o.swiperOptions?.keyboard) : void 0,
35
37
  m ? D(o.swiperOptions.autoplay) : void 0,
36
- ...a
38
+ ...l
37
39
  ].filter(Boolean)
38
40
  );
39
41
  };
@@ -43,13 +45,13 @@ const R = {
43
45
  const w = (e) => {
44
46
  !t.value || t.value.params.slidesPerView === e || (t.value.params.slidesPerView = e, t.value.update());
45
47
  };
46
- return h(T, (e) => {
47
- e && a.push(e);
48
+ return h(R, (e) => {
49
+ e && l.push(e);
48
50
  }), d({
49
51
  swiper: t,
50
52
  updateSlidesPerView: w
51
- }), (e, r) => (O(), S(V, null, [
52
- P(M("div", R, [
53
+ }), (e, r) => (O(), S(P, null, [
54
+ V(M("div", I, [
53
55
  u(e.$slots, "default")
54
56
  ], 512), [
55
57
  [x, i.value]
@@ -59,6 +61,6 @@ const R = {
59
61
  }
60
62
  });
61
63
  export {
62
- T as addModuleDescriptorKey,
64
+ R as addModuleDescriptorKey,
63
65
  A as default
64
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.5.3-alpha.5",
3
+ "version": "2.5.3-alpha.6",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",