@wikicasa-dev/components 2.5.3-alpha.26 → 2.5.3-alpha.27
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/assets/SwiperRootPrimitive2.css +1 -1
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +6 -6
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js +8 -8
- 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-9a51efc9]{opacity:0}.swiper.uikit-carousel.is-initialized[data-v-9a51efc9]{opacity:1}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js";
|
|
2
|
-
import { addModuleDescriptorKey as
|
|
2
|
+
import { addModuleDescriptorKey as d, setLazyImagesLoaderKey as f } from "../../../packages/components/lib/components/carousel/Primitive/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 e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9a51efc9"]]);
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
d as addModuleDescriptorKey,
|
|
9
|
+
m as default,
|
|
10
|
+
f as setLazyImagesLoaderKey
|
|
11
11
|
};
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js
CHANGED
|
@@ -14,22 +14,22 @@ const $ = { class: "uikit-relative" }, Z = {
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["moved", "click", "init"],
|
|
16
16
|
setup(i, { expose: E, emit: S }) {
|
|
17
|
-
const m = S, l = w(null), p = D("root"),
|
|
18
|
-
let
|
|
17
|
+
const m = S, l = w(null), p = D("root"), c = w(!1), T = !!i.swiperOptions?.keyboard, C = !!i.swiperOptions?.autoplay, v = [];
|
|
18
|
+
let d = !1;
|
|
19
19
|
const O = (e) => {
|
|
20
20
|
"requestIdleCallback" in window ? requestIdleCallback(e) : setTimeout(e, 200);
|
|
21
21
|
}, f = (e) => [
|
|
22
22
|
...e?.querySelectorAll("img[data-src]") ?? []
|
|
23
23
|
], u = (e) => {
|
|
24
|
-
e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy");
|
|
24
|
+
e.src || (e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy"));
|
|
25
25
|
}, I = (e, o) => {
|
|
26
|
-
if (!
|
|
26
|
+
if (!d) return { visibleImages: [], preloadImages: [] };
|
|
27
27
|
const t = e.params.lazyPreloadPrevNext ?? 0, r = f(e.slides[o]), n = [];
|
|
28
28
|
for (let s = o - t; s <= o + t; s++)
|
|
29
29
|
s !== o && (!e.params.loop && (s < 0 || s >= e.slides.length) || n.push(...f(e.slides[s])));
|
|
30
30
|
return { visibleImages: r, preloadImages: n };
|
|
31
31
|
}, y = () => {
|
|
32
|
-
console.log("DEBUG:triggering init event"),
|
|
32
|
+
console.log("DEBUG:triggering init event"), c.value = !0, m("init");
|
|
33
33
|
}, z = async (e) => {
|
|
34
34
|
l.value = await x(
|
|
35
35
|
e,
|
|
@@ -94,18 +94,18 @@ const $ = { class: "uikit-relative" }, Z = {
|
|
|
94
94
|
return b(F, (e) => {
|
|
95
95
|
e && v.push(e);
|
|
96
96
|
}), b(j, (e) => {
|
|
97
|
-
e !==
|
|
97
|
+
e !== d && (d = e);
|
|
98
98
|
}), E({
|
|
99
99
|
swiper: l,
|
|
100
100
|
updateSlidesPerView: M
|
|
101
101
|
}), (e, o) => (h(), P("div", $, [
|
|
102
102
|
U("div", {
|
|
103
103
|
ref: "root",
|
|
104
|
-
class: q(["swiper uikit-carousel", [{ "is-initialized":
|
|
104
|
+
class: q(["swiper uikit-carousel", [{ "is-initialized": c.value }, i.rootClasses]])
|
|
105
105
|
}, [
|
|
106
106
|
k(e.$slots, "default", {}, void 0, !0)
|
|
107
107
|
], 2),
|
|
108
|
-
|
|
108
|
+
c.value ? A("", !0) : (h(), P("div", Z, [
|
|
109
109
|
k(e.$slots, "placeholder", {}, void 0, !0)
|
|
110
110
|
]))
|
|
111
111
|
]));
|
package/package.json
CHANGED
|
File without changes
|