@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.
- package/dist/Swiper/Autoplay/index.js +1 -1
- package/dist/Swiper/Controller/index.js +1 -1
- package/dist/Swiper/Keyboard/index.js +1 -1
- package/dist/Swiper/Thumbs/index.js +1 -1
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js +19 -17
- package/package.json +1 -1
- /package/dist/assets/{swiper-controller.css → swiper-keyboard.css} +0 -0
package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { defineComponent as f, shallowRef as
|
|
2
|
-
import { createSwiper as
|
|
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
|
|
5
|
-
import { ZoomModule as
|
|
6
|
-
const
|
|
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
|
-
},
|
|
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 =
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
c ?
|
|
35
|
+
E(o.swiperOptions?.zoom),
|
|
36
|
+
c ? g(o.swiperOptions?.keyboard) : void 0,
|
|
35
37
|
m ? D(o.swiperOptions.autoplay) : void 0,
|
|
36
|
-
...
|
|
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(
|
|
47
|
-
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(
|
|
52
|
-
|
|
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
|
-
|
|
64
|
+
R as addModuleDescriptorKey,
|
|
63
65
|
A as default
|
|
64
66
|
};
|
package/package.json
CHANGED
|
File without changes
|