@wikicasa-dev/components 2.5.3-alpha.20 → 2.5.3-alpha.22
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/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -0
- package/dist/assets/SwiperRootPrimitive2.css +1 -1
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -1
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +2 -2
- package/dist/components/carousel/SwiperCarousel.js +1 -1
- package/dist/index.js +1 -1
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js +34 -32
- package/package.json +1 -1
- package/dist/assets/SwiperPaginationPrimitive.css +0 -1
- /package/dist/assets/{swiper-keyboard.css → swiper-thumbs.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.swiper.uikit-carousel[data-v-
|
|
1
|
+
.swiper.uikit-carousel[data-v-0ba89269]{opacity:0}.swiper.uikit-carousel.is-initialized[data-v-0ba89269]{opacity:1}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
|
|
2
|
-
import '../../../assets/
|
|
2
|
+
import '../../../assets/SwiperCarousel.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
o as default
|
|
5
5
|
};
|
|
@@ -3,9 +3,9 @@ import { addModuleDescriptorKey as d, setLazyImagesLoaderKey as f } from "../../
|
|
|
3
3
|
import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0ba89269"]]);
|
|
7
7
|
export {
|
|
8
8
|
d as addModuleDescriptorKey,
|
|
9
|
-
|
|
9
|
+
m as default,
|
|
10
10
|
f as setLazyImagesLoaderKey
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "../../packages/components/lib/components/carousel/SwiperCarousel.vue.js";
|
|
2
|
-
import '../../assets/
|
|
2
|
+
import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f8f3d52a"]]);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
2
2
|
import { default as g } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
3
|
-
import './assets/SwiperSlideImagePrimitive.css';import './assets/
|
|
3
|
+
import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperCarousel.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseCard.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
|
|
4
4
|
import { default as C } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
|
|
5
5
|
import { default as I } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
|
|
6
6
|
import { default as A } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { defineComponent as V, shallowRef as w, useTemplateRef as
|
|
2
|
-
import { createSwiper as
|
|
3
|
-
import { AutoplayModule as
|
|
4
|
-
import { KeyboardModule as
|
|
5
|
-
import { ZoomModule as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as V, shallowRef as w, useTemplateRef as A, onMounted as x, provide as I, createElementBlock as P, openBlock as k, createElementVNode as N, createCommentVNode as g, normalizeClass as q, renderSlot as S } from "vue";
|
|
2
|
+
import { createSwiper as B } from "../../../../../../Swiper/factory.js";
|
|
3
|
+
import { AutoplayModule as K } from "../../../../../../Swiper/Autoplay/factory.js";
|
|
4
|
+
import { KeyboardModule as R } from "../../../../../../Swiper/Keyboard/factory.js";
|
|
5
|
+
import { ZoomModule as D } from "../../../../../../Swiper/Zoom/factory.js";
|
|
6
|
+
const F = { class: "uikit-relative" }, U = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "uikit-absolute uikit-inset-0"
|
|
9
|
-
},
|
|
9
|
+
}, $ = /* @__PURE__ */ Symbol(), Z = /* @__PURE__ */ Symbol(), X = /* @__PURE__ */ V({
|
|
10
10
|
__name: "SwiperRootPrimitive",
|
|
11
11
|
props: {
|
|
12
12
|
rootClasses: {},
|
|
13
13
|
swiperOptions: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["moved", "click", "init"],
|
|
16
|
-
setup(o, { expose:
|
|
17
|
-
const
|
|
18
|
-
let
|
|
16
|
+
setup(o, { expose: T, emit: h }) {
|
|
17
|
+
const c = h, s = w(null), u = A("root"), l = w(!1), E = !!o.swiperOptions?.keyboard, O = !!o.swiperOptions?.autoplay, m = [];
|
|
18
|
+
let d = !1;
|
|
19
19
|
const b = (e) => [
|
|
20
20
|
...e?.querySelectorAll("img[data-src]") ?? []
|
|
21
21
|
], p = (e) => {
|
|
22
22
|
e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy");
|
|
23
23
|
}, v = (e, t) => {
|
|
24
|
-
if (!
|
|
24
|
+
if (!d) return [];
|
|
25
25
|
const i = e.params.lazyPreloadPrevNext ?? 0, a = [];
|
|
26
26
|
for (let n = t - i; n <= t + i; n++)
|
|
27
27
|
a.push(...b(e.slides[n]));
|
|
28
28
|
return a;
|
|
29
29
|
}, f = () => {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
requestAnimationFrame(() => {
|
|
31
|
+
requestAnimationFrame(() => {
|
|
32
|
+
l.value = !0, c("init");
|
|
33
|
+
});
|
|
32
34
|
});
|
|
33
35
|
}, z = async (e) => {
|
|
34
|
-
s.value = await
|
|
36
|
+
s.value = await B(
|
|
35
37
|
e,
|
|
36
38
|
{
|
|
37
39
|
on: {
|
|
@@ -59,7 +61,7 @@ const q = { class: "uikit-relative" }, Z = {
|
|
|
59
61
|
await Promise.race([L, n]), f();
|
|
60
62
|
},
|
|
61
63
|
slideChange: (t) => {
|
|
62
|
-
|
|
64
|
+
c("moved", { activeIndex: t.activeIndex }), v(t, t.activeIndex).forEach(
|
|
63
65
|
p
|
|
64
66
|
);
|
|
65
67
|
}
|
|
@@ -67,41 +69,41 @@ const q = { class: "uikit-relative" }, Z = {
|
|
|
67
69
|
...o.swiperOptions
|
|
68
70
|
},
|
|
69
71
|
[
|
|
70
|
-
|
|
71
|
-
E ?
|
|
72
|
-
O ?
|
|
72
|
+
D(o.swiperOptions?.zoom),
|
|
73
|
+
E ? R(o.swiperOptions?.keyboard) : void 0,
|
|
74
|
+
O ? K(o.swiperOptions.autoplay) : void 0,
|
|
73
75
|
...m
|
|
74
76
|
].filter(Boolean)
|
|
75
77
|
);
|
|
76
78
|
};
|
|
77
|
-
|
|
79
|
+
x(() => {
|
|
78
80
|
u.value && setTimeout(() => z(u.value));
|
|
79
81
|
});
|
|
80
82
|
const C = (e) => {
|
|
81
83
|
!s.value || s.value.params.slidesPerView === e || (s.value.params.slidesPerView = e, s.value.update());
|
|
82
84
|
};
|
|
83
|
-
return I(
|
|
85
|
+
return I(Z, (e) => {
|
|
84
86
|
e && m.push(e);
|
|
85
|
-
}), I(
|
|
86
|
-
e !==
|
|
87
|
-
}),
|
|
87
|
+
}), I($, (e) => {
|
|
88
|
+
e !== d && (d = e);
|
|
89
|
+
}), T({
|
|
88
90
|
swiper: s,
|
|
89
91
|
updateSlidesPerView: C
|
|
90
|
-
}), (e, t) => (k(), P("div",
|
|
91
|
-
|
|
92
|
+
}), (e, t) => (k(), P("div", F, [
|
|
93
|
+
N("div", {
|
|
92
94
|
ref: "root",
|
|
93
|
-
class:
|
|
95
|
+
class: q(["swiper uikit-carousel", [{ "is-initialized": l.value }, o.rootClasses]])
|
|
94
96
|
}, [
|
|
95
|
-
|
|
97
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
96
98
|
], 2),
|
|
97
|
-
l.value ? g("", !0) : (k(), P("div",
|
|
98
|
-
|
|
99
|
+
l.value ? g("", !0) : (k(), P("div", U, [
|
|
100
|
+
S(e.$slots, "placeholder", {}, void 0, !0)
|
|
99
101
|
]))
|
|
100
102
|
]));
|
|
101
103
|
}
|
|
102
104
|
});
|
|
103
105
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
Z as addModuleDescriptorKey,
|
|
107
|
+
X as default,
|
|
108
|
+
$ as setLazyImagesLoaderKey
|
|
107
109
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
|
|
File without changes
|