@wikicasa-dev/components 2.5.3-alpha.14 → 2.5.3-alpha.16
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/SwiperSlideImagePrimitive.css +1 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +3 -2
- package/dist/index.js +124 -123
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js +61 -73
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +7 -7
- package/package.json +1 -1
- /package/dist/assets/{swiper-autoplay.css → swiper-keyboard.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.swiper-slide-image-primitive img[data-src]{opacity:0}.swiper-slide-image-primitive img:not([data-src]){opacity:1;transition:opacity .3s ease-in-out}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js";
|
|
2
|
+
import '../../../assets/SwiperSlideImagePrimitive.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,140 +1,141 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import './assets/SwiperCarousel.css';import './assets/SwiperRootPrimitive.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
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
1
|
+
import { default as P } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
2
|
+
import { default as v } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
3
|
+
import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperCarousel.css';import './assets/SwiperRootPrimitive.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
|
+
import { default as T } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
|
|
5
|
+
import { default as h } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
|
|
6
|
+
import { default as w } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
|
|
7
|
+
import { default as R } from "./packages/components/lib/UIKit/Accordion/AccordionContentPrimitive.vue.js";
|
|
8
|
+
import { default as L } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
|
|
9
|
+
import { default as F } from "./packages/components/lib/UIKit/ProgressBar/ProgressRootPrimitive.vue.js";
|
|
10
|
+
import { default as O } from "./packages/components/lib/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js";
|
|
11
|
+
import { default as N } from "./packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
13
|
+
import { default as V } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
|
|
14
|
+
import { default as q } from "./packages/components/lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js";
|
|
15
|
+
import { default as z } from "./packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js";
|
|
16
|
+
import { default as J } from "./packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js";
|
|
17
|
+
import { default as Q } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
|
|
18
|
+
import { default as X } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
|
|
19
|
+
import { default as Z } from "./packages/components/lib/UIKit/Tab/v2/BaseTabs.vue.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
21
|
+
import { default as $ } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsContent.vue.js";
|
|
22
|
+
import { default as re } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsIndicator.vue.js";
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
24
|
+
import { default as te } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsList.vue.js";
|
|
25
|
+
import { default as fe } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsTrigger.vue.js";
|
|
26
|
+
import { default as ie } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
|
|
27
|
+
import { default as pe } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
|
|
28
|
+
import { default as de } from "./packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js";
|
|
29
|
+
import { default as xe } from "./packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
31
|
+
import { default as Be } from "./packages/components/lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js";
|
|
32
|
+
import { default as be } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
33
33
|
/* empty css */
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as Pe } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
35
35
|
/* empty css */
|
|
36
|
-
import { default as
|
|
36
|
+
import { default as ve } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
37
37
|
/* empty css */
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as Te } from "./packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js";
|
|
39
39
|
/* empty css */
|
|
40
|
-
import { default as
|
|
40
|
+
import { default as he } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
|
|
41
41
|
/* empty css */
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
42
|
+
import { default as we } from "./packages/components/lib/UIKit/BaseButton.vue.js";
|
|
43
|
+
import { default as Re } from "./packages/components/lib/UIKit/BaseCard.vue.js";
|
|
44
44
|
/* empty css */
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
45
|
+
import { default as Le } from "./UIKit/BaseComplexToggle.js";
|
|
46
|
+
import { default as Fe } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
|
|
47
47
|
/* empty css */
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
48
|
+
import { default as Oe } from "./UIKit/BaseFloatingLabel.js";
|
|
49
|
+
import { default as Ne } from "./UIKit/BaseInput.js";
|
|
50
|
+
import { default as Ve } from "./packages/components/lib/UIKit/BasePagination.vue.js";
|
|
51
|
+
import { default as qe } from "./UIKit/BaseSlider.js";
|
|
52
|
+
import { default as ze } from "./UIKit/BaseTextarea.js";
|
|
53
|
+
import { default as Je } from "./packages/components/lib/UIKit/BaseToggle.vue.js";
|
|
54
|
+
import { default as Qe } from "./UIKit/BaseTooltip.js";
|
|
55
|
+
import { default as Xe } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
|
|
56
|
+
import { default as Ze } from "./packages/components/lib/UIKit/BaseModal.vue.js";
|
|
57
57
|
/* empty css */
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
58
|
+
import { default as $e } from "./UIKit/StaticSpinner.js";
|
|
59
|
+
import { default as rr } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
|
|
60
|
+
import { default as tr } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
61
|
+
import { default as fr } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
62
|
+
import { default as ir } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
63
|
+
import { default as pr } from "./UIKit/Slider/SimpleSlider.js";
|
|
64
|
+
import { default as dr } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
|
|
65
65
|
/* empty css */
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
66
|
+
import { default as xr } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
67
|
+
import { default as Br } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
68
|
+
import { default as br } from "./components/carousel/SwiperCarousel.js";
|
|
69
|
+
import { default as Pr } from "./components/carousel/SwiperSlide.js";
|
|
70
|
+
import { default as vr } from "./packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js";
|
|
71
71
|
/* empty css */
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
72
|
+
import { default as Tr } from "./packages/components/lib/components/carousel/Primitive/SwiperPrimitive.vue.js";
|
|
73
|
+
import { default as hr } from "./packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
|
|
74
74
|
/* empty css */
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
|
|
75
|
+
import { default as wr } from "./packages/components/lib/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js";
|
|
76
|
+
import { default as Rr } from "./packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js";
|
|
77
|
+
/* empty css */
|
|
78
|
+
import { default as Lr } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
78
79
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
80
|
+
be as AccessibleSelect,
|
|
81
|
+
R as AccordionContentPrimitive,
|
|
82
|
+
h as AccordionHeaderPrimitive,
|
|
83
|
+
T as AccordionItemPrimitive,
|
|
84
|
+
w as AccordionTriggerPrimitive,
|
|
85
|
+
P as BaseAccordion,
|
|
86
|
+
v as BaseAccordionItem,
|
|
87
|
+
Pe as BaseAlert,
|
|
88
|
+
ve as BaseAutocomplete,
|
|
89
|
+
he as BaseBadge,
|
|
90
|
+
Lr as BaseBreadcrumb,
|
|
91
|
+
we as BaseButton,
|
|
92
|
+
Re as BaseCard,
|
|
93
|
+
Le as BaseComplexToggle,
|
|
94
|
+
Fe as BaseDropDown,
|
|
95
|
+
Oe as BaseFloatingLabel,
|
|
96
|
+
Ne as BaseInput,
|
|
97
|
+
Ze as BaseModal,
|
|
98
|
+
Ve as BasePagination,
|
|
99
|
+
rr as BaseShimmerLoader,
|
|
100
|
+
qe as BaseSlider,
|
|
101
|
+
dr as BaseSnackbar,
|
|
102
|
+
X as BaseTab,
|
|
103
|
+
Q as BaseTabView,
|
|
104
|
+
Z as BaseTabs,
|
|
105
|
+
$ as BaseTabsContent,
|
|
106
|
+
re as BaseTabsIndicator,
|
|
107
|
+
te as BaseTabsList,
|
|
108
|
+
fe as BaseTabsTrigger,
|
|
109
|
+
ze as BaseTextarea,
|
|
110
|
+
Je as BaseToggle,
|
|
111
|
+
Qe as BaseTooltip,
|
|
112
|
+
Xe as BaseUploadFile,
|
|
113
|
+
N as CheckboxBtn,
|
|
114
|
+
q as CheckboxButtonGroup,
|
|
115
|
+
V as CheckboxGroup,
|
|
116
|
+
J as CheckboxGroupItemPrimitive,
|
|
117
|
+
z as CheckboxGroupPrimitive,
|
|
118
|
+
Te as ClearableAutocomplete,
|
|
119
|
+
fr as DoughnutChart,
|
|
120
|
+
xr as IntersectionObservable,
|
|
121
|
+
Br as IntersectionObserver,
|
|
122
|
+
ir as LineChart,
|
|
123
|
+
O as ProgressIndicatorPrimitive,
|
|
124
|
+
F as ProgressRootPrimitive,
|
|
125
|
+
ie as RadioButton,
|
|
126
|
+
de as RadioButtonGroup,
|
|
127
|
+
xe as RadioButtonItem,
|
|
128
|
+
pe as RadioGroup,
|
|
129
|
+
Be as RadioGroupItemPrimitive,
|
|
130
|
+
L as SelectItem,
|
|
131
|
+
tr as ShimmerMultiLine,
|
|
132
|
+
pr as SimpleSlider,
|
|
133
|
+
$e as StaticSpinner,
|
|
134
|
+
br as SwiperCarousel,
|
|
135
|
+
wr as SwiperNavigationPrimitive,
|
|
136
|
+
hr as SwiperPaginationPrimitive,
|
|
137
|
+
Tr as SwiperPrimitive,
|
|
138
|
+
vr as SwiperRootPrimitive,
|
|
139
|
+
Pr as SwiperSlide,
|
|
140
|
+
Rr as SwiperSlideImagePrimitive
|
|
140
141
|
};
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js
CHANGED
|
@@ -1,109 +1,97 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createSwiper as
|
|
3
|
-
import { AutoplayModule as
|
|
4
|
-
import { KeyboardModule as
|
|
5
|
-
import { ZoomModule as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as b, useAttrs as g, shallowRef as f, useTemplateRef as L, onMounted as V, provide as y, createElementBlock as x, openBlock as z, Fragment as A, withDirectives as N, renderSlot as w, createCommentVNode as B, createElementVNode as C, mergeProps as D, unref as U, vShow as K, nextTick as R } from "vue";
|
|
2
|
+
import { createSwiper as $ } from "../../../../../../Swiper/factory.js";
|
|
3
|
+
import { AutoplayModule as q } from "../../../../../../Swiper/Autoplay/factory.js";
|
|
4
|
+
import { KeyboardModule as F } from "../../../../../../Swiper/Keyboard/factory.js";
|
|
5
|
+
import { ZoomModule as G } from "../../../../../../Swiper/Zoom/factory.js";
|
|
6
|
+
const Z = /* @__PURE__ */ Symbol(), j = /* @__PURE__ */ Symbol(), _ = /* @__PURE__ */ b({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "SwiperRootPrimitive",
|
|
9
9
|
props: {
|
|
10
10
|
swiperOptions: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["moved", "click", "init"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
o.push(...I(e.slides[i]));
|
|
29
|
-
return o;
|
|
30
|
-
}, P = async (e) => {
|
|
31
|
-
a.value = await N(
|
|
13
|
+
setup(r, { expose: I, emit: P }) {
|
|
14
|
+
const l = P, T = g(), s = f(null), d = L("root"), i = f(!1), h = !!r.swiperOptions?.keyboard, S = !!r.swiperOptions?.autoplay, u = [];
|
|
15
|
+
let c = !1;
|
|
16
|
+
const E = (e) => [
|
|
17
|
+
...e?.querySelectorAll("img[data-src]") ?? []
|
|
18
|
+
], m = (e) => {
|
|
19
|
+
e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy");
|
|
20
|
+
}, p = (e, t) => {
|
|
21
|
+
if (!c) return [];
|
|
22
|
+
const a = e.params.lazyPreloadPrevNext ?? 0, n = [];
|
|
23
|
+
for (let o = t - a; o <= t + a; o++)
|
|
24
|
+
n.push(...E(e.slides[o]));
|
|
25
|
+
return n;
|
|
26
|
+
}, O = async (e) => {
|
|
27
|
+
s.value = await $(
|
|
32
28
|
e,
|
|
33
29
|
{
|
|
34
30
|
on: {
|
|
35
31
|
init: (t) => {
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
|
|
32
|
+
R(async () => {
|
|
33
|
+
const a = p(t, t.activeIndex);
|
|
34
|
+
if (!a.length) {
|
|
35
|
+
i.value = !0, l("init");
|
|
40
36
|
return;
|
|
41
37
|
}
|
|
38
|
+
const n = a.map((o) => {
|
|
39
|
+
const M = o.complete ? Promise.resolve() : new Promise((v) => {
|
|
40
|
+
o.addEventListener("load", () => v(), { once: !0 }), o.addEventListener("error", () => v(), { once: !0 });
|
|
41
|
+
});
|
|
42
|
+
return m(o), M;
|
|
43
|
+
});
|
|
42
44
|
await Promise.race([
|
|
43
|
-
Promise.all(
|
|
44
|
-
o.map((r) => r.complete ? (console.log("DEBUG:img.complete", r), Promise.resolve()) : new Promise((i) => {
|
|
45
|
-
r.addEventListener(
|
|
46
|
-
"load",
|
|
47
|
-
() => {
|
|
48
|
-
console.log("DEBUG:img.load", r), i("");
|
|
49
|
-
},
|
|
50
|
-
{ once: !0 }
|
|
51
|
-
), r.addEventListener(
|
|
52
|
-
"error",
|
|
53
|
-
() => {
|
|
54
|
-
console.log("DEBUG:img.error", r), i("");
|
|
55
|
-
},
|
|
56
|
-
{ once: !0 }
|
|
57
|
-
);
|
|
58
|
-
}))
|
|
59
|
-
),
|
|
45
|
+
Promise.all(n),
|
|
60
46
|
new Promise(
|
|
61
|
-
(
|
|
62
|
-
console.log("DEBUG:not all images have loaded => TIMEOUT!"),
|
|
63
|
-
},
|
|
47
|
+
(o) => setTimeout(() => {
|
|
48
|
+
console.log("DEBUG:not all images have loaded => TIMEOUT!"), o("");
|
|
49
|
+
}, 6e3)
|
|
64
50
|
)
|
|
65
|
-
]),
|
|
51
|
+
]), i.value = !0, l("init");
|
|
66
52
|
});
|
|
67
53
|
},
|
|
68
54
|
slideChange: (t) => {
|
|
69
|
-
|
|
55
|
+
l("moved", { activeIndex: t.activeIndex }), p(t, t.activeIndex).forEach(
|
|
56
|
+
m
|
|
57
|
+
);
|
|
70
58
|
}
|
|
71
59
|
},
|
|
72
|
-
...
|
|
60
|
+
...r.swiperOptions
|
|
73
61
|
},
|
|
74
62
|
[
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
63
|
+
G(r.swiperOptions?.zoom),
|
|
64
|
+
h ? F(r.swiperOptions?.keyboard) : void 0,
|
|
65
|
+
S ? q(r.swiperOptions.autoplay) : void 0,
|
|
78
66
|
...u
|
|
79
67
|
].filter(Boolean)
|
|
80
68
|
);
|
|
81
69
|
};
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
V(() => {
|
|
71
|
+
d.value && setTimeout(() => O(d.value));
|
|
84
72
|
});
|
|
85
|
-
const
|
|
86
|
-
!
|
|
73
|
+
const k = (e) => {
|
|
74
|
+
!s.value || s.value.params.slidesPerView === e || (s.value.params.slidesPerView = e, s.value.update());
|
|
87
75
|
};
|
|
88
|
-
return
|
|
76
|
+
return y(j, (e) => {
|
|
89
77
|
e && u.push(e);
|
|
90
|
-
}),
|
|
91
|
-
e !==
|
|
92
|
-
}),
|
|
93
|
-
swiper:
|
|
94
|
-
updateSlidesPerView:
|
|
95
|
-
}), (e, t) => (
|
|
96
|
-
|
|
97
|
-
|
|
78
|
+
}), y(Z, (e) => {
|
|
79
|
+
e !== c && (c = e);
|
|
80
|
+
}), I({
|
|
81
|
+
swiper: s,
|
|
82
|
+
updateSlidesPerView: k
|
|
83
|
+
}), (e, t) => (z(), x(A, null, [
|
|
84
|
+
N(C("div", D({ ref: "root" }, U(T), { class: "swiper uikit-carousel" }), [
|
|
85
|
+
w(e.$slots, "default")
|
|
98
86
|
], 16), [
|
|
99
|
-
[
|
|
87
|
+
[K, i.value]
|
|
100
88
|
]),
|
|
101
|
-
|
|
89
|
+
i.value ? B("", !0) : w(e.$slots, "placeholder", { key: 0 })
|
|
102
90
|
], 64));
|
|
103
91
|
}
|
|
104
92
|
});
|
|
105
93
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
j as addModuleDescriptorKey,
|
|
95
|
+
_ as default,
|
|
96
|
+
Z as setLazyImagesLoaderKey
|
|
109
97
|
};
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, createPropsRestProxy as o, shallowRef as r, inject as l, createBlock as d, openBlock as m, withCtx as n, createElementVNode as g, mergeProps as u } from "vue";
|
|
2
2
|
import f from "../../../../../../components/carousel/SwiperSlide.js";
|
|
3
3
|
import { setLazyImagesLoaderKey as y } from "./SwiperRootPrimitive.vue.js";
|
|
4
4
|
import '../../../../../../assets/SwiperRootPrimitive.css';/* empty css */
|
|
5
|
-
const
|
|
5
|
+
const v = ["src", "srcset", "data-src", "data-srcset"], x = /* @__PURE__ */ c({
|
|
6
6
|
__name: "SwiperSlideImagePrimitive",
|
|
7
7
|
props: {
|
|
8
8
|
src: {},
|
|
@@ -19,16 +19,16 @@ const h = ["src", "srcset", "data-src", "data-srcset"], x = /* @__PURE__ */ i({
|
|
|
19
19
|
lazy: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
setup(e) {
|
|
22
|
-
const s = o(e, ["src", "srcset", "imgClasses"]), t = r(), a = r(),
|
|
23
|
-
return s.lazy && (t.value = e.src, a.value = e.srcset,
|
|
24
|
-
default:
|
|
22
|
+
const s = o(e, ["src", "srcset", "imgClasses"]), t = r(), a = r(), i = l(y, void 0);
|
|
23
|
+
return s.lazy && (t.value = e.src, a.value = e.srcset, i?.(!0)), (h, z) => (m(), d(f, null, {
|
|
24
|
+
default: n(() => [
|
|
25
25
|
g("img", u(s, {
|
|
26
|
-
class: e.imgClasses,
|
|
26
|
+
class: ["swiper-slide-image-primitive", e.imgClasses],
|
|
27
27
|
src: e.lazy ? void 0 : e.src,
|
|
28
28
|
srcset: e.lazy ? void 0 : e.srcset,
|
|
29
29
|
"data-src": t.value,
|
|
30
30
|
"data-srcset": a.value
|
|
31
|
-
}), null, 16,
|
|
31
|
+
}), null, 16, v)
|
|
32
32
|
]),
|
|
33
33
|
_: 1
|
|
34
34
|
}));
|
package/package.json
CHANGED
|
File without changes
|