@wikicasa-dev/components 2.6.7-alpha.0 → 2.6.7-alpha.1
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/assets/SwiperRootPrimitive2.css +1 -1
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +6 -6
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +9 -8
- package/dist/lazyModules/Swiper/Autoplay/index.js +1 -1
- package/dist/lazyModules/Swiper/Controller/index.js +1 -1
- package/dist/lazyModules/Swiper/Keyboard/index.js +1 -1
- package/dist/lazyModules/Swiper/Thumbs/index.js +1 -1
- package/package.json +1 -1
- /package/dist/assets/{swiper-keyboard.css → swiper-thumbs.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.swiper.uikit-carousel[data-v-
|
|
1
|
+
.swiper.uikit-carousel[data-v-f148fd97]{opacity:0}.swiper.uikit-carousel.is-initialized[data-v-f148fd97]{opacity:1}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "./SwiperRootPrimitive.vue.js";
|
|
2
|
-
import { addModuleDescriptorKey as
|
|
2
|
+
import { addModuleDescriptorKey as f, setLazyImagesLoaderKey as s } from "./SwiperRootPrimitive.vue.js";
|
|
3
3
|
import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f148fd97"]]);
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as addModuleDescriptorKey,
|
|
9
|
+
p as default,
|
|
10
|
+
s as setLazyImagesLoaderKey
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as A, shallowRef as y, useTemplateRef as N, onMounted as g, provide as I, openBlock as w, createElementBlock as P, createElementVNode as q, normalizeClass as x, renderSlot as k, createCommentVNode as B } from "vue";
|
|
2
2
|
import { createSwiper as D } from "../../../lazyModules/Swiper/factory.js";
|
|
3
3
|
import { AutoplayModule as K } from "../../../lazyModules/Swiper/Autoplay/factory.js";
|
|
4
4
|
import { KeyboardModule as R } from "../../../lazyModules/Swiper/Keyboard/factory.js";
|
|
@@ -6,7 +6,7 @@ import { ZoomModule as U } from "../../../lazyModules/Swiper/Zoom/factory.js";
|
|
|
6
6
|
const $ = { class: "uikit-relative" }, F = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "uikit-absolute uikit-inset-0"
|
|
9
|
-
}, Z = /* @__PURE__ */ Symbol(), j = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */
|
|
9
|
+
}, Z = /* @__PURE__ */ Symbol(), j = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */ A({
|
|
10
10
|
__name: "SwiperRootPrimitive",
|
|
11
11
|
props: {
|
|
12
12
|
rootClasses: {},
|
|
@@ -14,7 +14,7 @@ const $ = { class: "uikit-relative" }, F = {
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["moved", "click", "init"],
|
|
16
16
|
setup(a, { expose: b, emit: h }) {
|
|
17
|
-
const c = h, i =
|
|
17
|
+
const c = h, i = y(null), u = N("root"), n = y(!1), S = !!a.swiperOptions?.keyboard, T = !!a.swiperOptions?.autoplay, m = [];
|
|
18
18
|
let p = !1;
|
|
19
19
|
const E = (e) => {
|
|
20
20
|
"requestIdleCallback" in window ? requestIdleCallback(e) : setTimeout(e, 200);
|
|
@@ -27,13 +27,14 @@ const $ = { class: "uikit-relative" }, F = {
|
|
|
27
27
|
...v(e.slides[s], "img[data-src]")
|
|
28
28
|
));
|
|
29
29
|
return { visibleImages: r, preloadImages: l };
|
|
30
|
-
}, C = (e) => {
|
|
30
|
+
}, C = async (e) => {
|
|
31
31
|
const t = e.complete && e.src ? Promise.resolve() : new Promise((o) => {
|
|
32
32
|
e.addEventListener("load", () => o(), { once: !0 }), e.addEventListener("error", () => o(), {
|
|
33
33
|
once: !0
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
d(e), await t, await e.decode?.().catch(() => {
|
|
37
|
+
});
|
|
37
38
|
}, O = () => {
|
|
38
39
|
n.value = !0, c("init");
|
|
39
40
|
}, z = async (e) => {
|
|
@@ -79,15 +80,15 @@ const $ = { class: "uikit-relative" }, F = {
|
|
|
79
80
|
].filter(Boolean)
|
|
80
81
|
);
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
g(() => {
|
|
83
84
|
u.value && setTimeout(() => z(u.value));
|
|
84
85
|
});
|
|
85
86
|
const L = (e) => {
|
|
86
87
|
!i.value || i.value.params.slidesPerView === e || (i.value.params.slidesPerView = e, i.value.update());
|
|
87
88
|
};
|
|
88
|
-
return
|
|
89
|
+
return I(j, (e) => {
|
|
89
90
|
e && m.push(e);
|
|
90
|
-
}),
|
|
91
|
+
}), I(Z, (e) => {
|
|
91
92
|
e !== p && (p = e);
|
|
92
93
|
}), b({
|
|
93
94
|
swiper: i,
|
package/package.json
CHANGED
|
File without changes
|