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

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