@wikicasa-dev/components 2.1.27 → 2.1.28-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/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.d.ts +1 -1
- package/dist/UIKit/BaseAlert.js +2 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +5 -5
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.js +2 -2
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseComplexToggle.css +1 -1
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +30 -30
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/{packages/components/lib → lib}/UIKit/AccessibleSelect.vue.js +16 -18
- package/dist/lib/UIKit/Accordion/BaseAccordion.vue.js +31 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionBtn.vue.js +5 -6
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseAutocomplete.vue.js +9 -12
- package/dist/{packages/components/lib → lib}/UIKit/BaseBreadcrumb.vue.js +9 -10
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/BaseDropDown.vue.js +6 -7
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +2 -2
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +15 -20
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/BaseSnackbar.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +2 -2
- package/dist/{packages/components/lib → lib}/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxGroup.vue.js +18 -22
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/chart/DoughnutChart.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/chart/LineChart.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +32 -35
- package/package.json +16 -12
- package/dist/_virtual/polyline.js +0 -2
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.css +0 -0
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/free-mode.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper.css +0 -1
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.js +0 -128
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/controller.js +0 -100
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/free-mode.js +0 -123
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/keyboard.js +0 -66
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.js +0 -136
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.js +0 -226
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/thumbs.js +0 -120
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.js +0 -309
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.js +0 -134
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.js +0 -88
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -34
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -28
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -38
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -9
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -2
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -40
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
- package/dist/packages/components/node_modules/google-polyline/lib/decode.js +0 -22
- package/dist/packages/components/node_modules/google-polyline/lib/encode.js +0 -34
- package/dist/packages/components/node_modules/google-polyline/lib/polyline.js +0 -12
- package/dist/packages/components/node_modules/js-cookie/dist/js.cookie.js +0 -70
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseCard.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseModal.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSnackbar.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseAlert.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseBadge.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseCard.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseIcon.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseSelect/SelectItem.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseTooltip.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioButton.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioGroup.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabList.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabPanel.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabView.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObservable.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { defineComponent as Q, reactive as U, ref as k, useId as X, computed as f, onMounted as Y, watch as x, nextTick as V, createElementBlock as l, openBlock as
|
|
1
|
+
import { defineComponent as Q, reactive as U, ref as k, useId as X, computed as f, onMounted as Y, watch as x, nextTick as V, createElementBlock as l, openBlock as u, normalizeClass as d, createElementVNode as v, createCommentVNode as $, renderSlot as M, Fragment as P, renderList as E, mergeProps as F, withModifiers as O } from "vue";
|
|
2
2
|
import { Swiper as T } from "swiper";
|
|
3
|
-
import _ from "
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
import "date-fns";
|
|
9
|
-
import "../../../../../_virtual/polyline.js";
|
|
10
|
-
const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "height", "onLoad"], ae = ["id"], re = ["alt"], ve = /* @__PURE__ */ Q({
|
|
3
|
+
import { Zoom as _ } from "swiper/modules";
|
|
4
|
+
import "swiper/css";
|
|
5
|
+
import "swiper/css/zoom";
|
|
6
|
+
import { shallowCopyObjectTo as ee } from "@wikicasa-dev/utilities";
|
|
7
|
+
const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "height", "onLoad"], ae = ["id"], re = ["alt"], ce = /* @__PURE__ */ Q({
|
|
11
8
|
inheritAttrs: !1,
|
|
12
9
|
__name: "SwiperCarousel",
|
|
13
10
|
props: {
|
|
@@ -26,7 +23,7 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
26
23
|
swiperParams: { modules: [_] },
|
|
27
24
|
swiper: null,
|
|
28
25
|
initCarousel: !1
|
|
29
|
-
}), S = k(), j = k(!1), A = X(),
|
|
26
|
+
}), S = k(), j = k(!1), A = X(), p = f(() => s.id ?? A), N = f(() => a.swiper), g = f(() => s.swiperOptions?.slidesPerView || 1), W = f(() => !!s.swiperOptions?.keyboard), C = f(() => !!s.swiperOptions.navigation), I = f(() => !!s.swiperOptions.pagination), q = f(() => !!s.swiperOptions.autoplay), K = f(
|
|
30
27
|
() => s.swiperOptions?.effect || "slider"
|
|
31
28
|
), R = () => {
|
|
32
29
|
s.swiperOptions && ee(s.swiperOptions, a.swiperParams);
|
|
@@ -128,14 +125,14 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
128
125
|
import("../../../lazyModules/Swiper/free-mode.js"),
|
|
129
126
|
import("../../../lazyModules/Swiper/controller.js")
|
|
130
127
|
]);
|
|
131
|
-
a.swiperParams.modules?.push(t.Thumbs), a.swiperParams.modules?.push(o.Controller), i = new T(`#thumb_${
|
|
128
|
+
a.swiperParams.modules?.push(t.Thumbs), a.swiperParams.modules?.push(o.Controller), i = new T(`#thumb_${p.value}`, {
|
|
132
129
|
...s.thumbSwiperOptions,
|
|
133
130
|
modules: [r.FreeMode]
|
|
134
131
|
}), e.thumbs = {
|
|
135
132
|
swiper: i
|
|
136
133
|
};
|
|
137
134
|
}
|
|
138
|
-
e.lazyPreloadPrevNext = 1, a.swiper = new T(`#${
|
|
135
|
+
e.lazyPreloadPrevNext = 1, a.swiper = new T(`#${p.value}`, e), S.value?.classList.remove("uikit-hidden");
|
|
139
136
|
}), x(
|
|
140
137
|
() => s.images,
|
|
141
138
|
() => {
|
|
@@ -151,42 +148,42 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
151
148
|
updateSlidesPerView: (e) => {
|
|
152
149
|
!a.swiper || a.swiper.params.slidesPerView === e || (a.swiper.params.slidesPerView = e, a.swiper.update());
|
|
153
150
|
}
|
|
154
|
-
}), (e, i) => (
|
|
155
|
-
id: `root-${
|
|
151
|
+
}), (e, i) => (u(), l("div", {
|
|
152
|
+
id: `root-${p.value}`,
|
|
156
153
|
ref_key: "root",
|
|
157
154
|
ref: L,
|
|
158
|
-
class:
|
|
155
|
+
class: d(["swiper-carousel-root", e.$attrs["root-classes"]])
|
|
159
156
|
}, [
|
|
160
157
|
v("div", {
|
|
161
|
-
id:
|
|
158
|
+
id: p.value,
|
|
162
159
|
"data-cy": e.$attrs["data-cy"],
|
|
163
|
-
class:
|
|
160
|
+
class: d(["swiper", e.$attrs["swiper-classes"]])
|
|
164
161
|
}, [
|
|
165
162
|
v("div", {
|
|
166
163
|
ref_key: "swiperWrapper",
|
|
167
164
|
ref: S,
|
|
168
|
-
class:
|
|
165
|
+
class: d(["swiper-wrapper", [
|
|
169
166
|
e.$attrs["swiper-wrapper-classes"],
|
|
170
167
|
K.value === "none" && "no-transition"
|
|
171
168
|
]]),
|
|
172
169
|
onClick: i[0] || (i[0] = (t) => y("click"))
|
|
173
170
|
}, [
|
|
174
171
|
M(e.$slots, "default", {}, () => [
|
|
175
|
-
(
|
|
176
|
-
key: `swiper_${
|
|
177
|
-
class:
|
|
172
|
+
(u(!0), l(P, null, E(s.images, (t, r) => (u(), l("div", {
|
|
173
|
+
key: `swiper_${p.value}_${r}`,
|
|
174
|
+
class: d(["swiper-slide", e.$attrs["swiper-slide-classes"]])
|
|
178
175
|
}, [
|
|
179
176
|
v("div", {
|
|
180
|
-
class:
|
|
177
|
+
class: d(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
|
|
181
178
|
}, [
|
|
182
|
-
s.backgroundImage ? $("", !0) : (
|
|
179
|
+
s.backgroundImage ? $("", !0) : (u(), l("img", F({
|
|
183
180
|
key: 0,
|
|
184
181
|
ref_for: !0,
|
|
185
182
|
ref: (o) => {
|
|
186
183
|
h.push(o);
|
|
187
184
|
},
|
|
188
185
|
class: ["disable-select", [e.$attrs["slide-img-classes"] || t.classes]],
|
|
189
|
-
"data-idx": `${
|
|
186
|
+
"data-idx": `${p.value}-slide-img-${r}`
|
|
190
187
|
}, { ref_for: !0 }, z(t, r), {
|
|
191
188
|
alt: t.alt,
|
|
192
189
|
itemprop: "image",
|
|
@@ -199,13 +196,13 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
199
196
|
M(e.$slots, "last_slide", {}, void 0, !0)
|
|
200
197
|
], !0)
|
|
201
198
|
], 2),
|
|
202
|
-
I.value ? (
|
|
199
|
+
I.value ? (u(), l("div", {
|
|
203
200
|
key: 0,
|
|
204
|
-
class:
|
|
201
|
+
class: d([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
205
202
|
onClick: i[1] || (i[1] = O(() => {
|
|
206
203
|
}, ["stop"]))
|
|
207
204
|
}, null, 2)) : $("", !0),
|
|
208
|
-
C.value ? (
|
|
205
|
+
C.value ? (u(), l(P, { key: 1 }, [
|
|
209
206
|
v("div", {
|
|
210
207
|
class: "swiper-button-prev",
|
|
211
208
|
"data-cy": "swiper-button-prev",
|
|
@@ -220,18 +217,18 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
220
217
|
})
|
|
221
218
|
], 64)) : $("", !0)
|
|
222
219
|
], 10, se),
|
|
223
|
-
s.thumbSwiperOptions ? (
|
|
220
|
+
s.thumbSwiperOptions ? (u(), l("div", {
|
|
224
221
|
key: 0,
|
|
225
|
-
id: `thumb_${
|
|
222
|
+
id: `thumb_${p.value}`,
|
|
226
223
|
thumbsSlider: "",
|
|
227
|
-
class:
|
|
224
|
+
class: d(["swiper", e.$attrs["thumb-swiper-classes"]])
|
|
228
225
|
}, [
|
|
229
226
|
v("div", {
|
|
230
|
-
class:
|
|
227
|
+
class: d(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
|
|
231
228
|
}, [
|
|
232
|
-
(
|
|
233
|
-
key: `thumb_${
|
|
234
|
-
class:
|
|
229
|
+
(u(!0), l(P, null, E(s.images, (t, r) => (u(), l("div", {
|
|
230
|
+
key: `thumb_${p.value}_${r}`,
|
|
231
|
+
class: d(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
|
|
235
232
|
}, [
|
|
236
233
|
v("img", F({
|
|
237
234
|
class: e.$attrs["thumb-img-classes"]
|
|
@@ -245,5 +242,5 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
245
242
|
}
|
|
246
243
|
});
|
|
247
244
|
export {
|
|
248
|
-
|
|
245
|
+
ce as default
|
|
249
246
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.28-alpha.1",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,14 +42,18 @@
|
|
|
42
42
|
"homepage": "https://bitbucket.org/wikicasa/wikicasa-fe#readme",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vue": "^3.5.0",
|
|
45
|
-
"date-fns": "^4.0.0"
|
|
45
|
+
"date-fns": "^4.0.0",
|
|
46
|
+
"@wikicasa-dev/svg-icons": "^1.2.0",
|
|
47
|
+
"@wikicasa-dev/vue-composables": "^0.0.25",
|
|
48
|
+
"@wikicasa-dev/types": "^2.4.0",
|
|
49
|
+
"@wikicasa-dev/utilities": "^1.1.0"
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
52
|
"chart.js": "4.5.1",
|
|
49
53
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
50
|
-
"reka-ui": "^2.6.
|
|
54
|
+
"reka-ui": "^2.6.1",
|
|
51
55
|
"swiper": "^12.0.3",
|
|
52
|
-
"vue": "^3.5.
|
|
56
|
+
"vue": "^3.5.25",
|
|
53
57
|
"vue-chartjs": "5.3.3"
|
|
54
58
|
},
|
|
55
59
|
"devDependencies": {
|
|
@@ -59,29 +63,29 @@
|
|
|
59
63
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
60
64
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
61
65
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
62
|
-
"@wikicasa-dev/svg-icons": "1.2.
|
|
63
|
-
"@wikicasa-dev/vue-composables": "0.0.
|
|
66
|
+
"@wikicasa-dev/svg-icons": "1.2.24-alpha.0",
|
|
67
|
+
"@wikicasa-dev/vue-composables": "0.0.25",
|
|
64
68
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
65
69
|
"@wikicasa-dev/types": "2.4.6",
|
|
66
|
-
"@wikicasa-dev/utilities": "1.1.
|
|
70
|
+
"@wikicasa-dev/utilities": "1.1.23-alpha.0",
|
|
67
71
|
"autoprefixer": "^10.4.22",
|
|
68
72
|
"date-fns": "4.1.0",
|
|
69
73
|
"eslint": "^9.39",
|
|
70
|
-
"eslint-plugin-vue": "^10.
|
|
74
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
71
75
|
"jiti": "^2.6.1",
|
|
72
76
|
"glob": "^13.0.0",
|
|
73
77
|
"histoire": "^1.0.0-alpha.5",
|
|
74
78
|
"postcss": "^8.5.6",
|
|
75
|
-
"prettier": "^3.
|
|
76
|
-
"prettier-plugin-tailwindcss": "^0.7.
|
|
79
|
+
"prettier": "^3.7.4",
|
|
80
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
77
81
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
78
82
|
"tailwindcss": "3.4.15",
|
|
79
83
|
"typescript": "^5.9.3",
|
|
80
|
-
"vite": "7.2.
|
|
84
|
+
"vite": "7.2.6",
|
|
81
85
|
"vite-plugin-dts": "^4.5.4",
|
|
82
86
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
83
87
|
"vue-router": "^4.6.3",
|
|
84
|
-
"vue-tsc": "3.1.
|
|
88
|
+
"vue-tsc": "3.1.5"
|
|
85
89
|
},
|
|
86
90
|
"readme": "ERROR: No README data found!",
|
|
87
91
|
"scripts": {
|
package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.css
DELETED
|
File without changes
|
package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/free-mode.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}
|
package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;width:var(--swiper-navigation-size);height:var(--swiper-navigation-size);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-prev,.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2))}.swiper-button-prev{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev,.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));margin-left:0}.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon{transform:rotate(0)}.swiper-vertical .swiper-button-prev,.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-prev,.swiper-vertical~.swiper-button-next{left:var(--swiper-navigation-top-offset, 50%);right:auto;margin-left:calc(0px - (var(--swiper-navigation-size) / 2));margin-top:0}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{top:var(--swiper-navigation-sides-offset, 4px);bottom:auto}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset, 4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next .swiper-navigation-icon{transform:rotate(90deg)}
|
package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { g as h } from "../shared/ssr-window.esm.js";
|
|
2
|
-
function k({
|
|
3
|
-
swiper: e,
|
|
4
|
-
extendParams: C,
|
|
5
|
-
on: u,
|
|
6
|
-
emit: o,
|
|
7
|
-
params: d
|
|
8
|
-
}) {
|
|
9
|
-
e.autoplay = {
|
|
10
|
-
running: !1,
|
|
11
|
-
paused: !1,
|
|
12
|
-
timeLeft: 0
|
|
13
|
-
}, C({
|
|
14
|
-
autoplay: {
|
|
15
|
-
enabled: !1,
|
|
16
|
-
delay: 3e3,
|
|
17
|
-
waitForTransition: !0,
|
|
18
|
-
disableOnInteraction: !1,
|
|
19
|
-
stopOnLastSlide: !1,
|
|
20
|
-
reverseDirection: !1,
|
|
21
|
-
pauseOnMouseEnter: !1
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
let f, E, b = d && d.autoplay ? d.autoplay.delay : 3e3, g = d && d.autoplay ? d.autoplay.delay : 3e3, n, c = (/* @__PURE__ */ new Date()).getTime(), L, v, s, M, D, r, S;
|
|
25
|
-
function O(t) {
|
|
26
|
-
!e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", O), !(S || t.detail && t.detail.bySwiperTouchMove) && i());
|
|
27
|
-
}
|
|
28
|
-
const I = () => {
|
|
29
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
30
|
-
e.autoplay.paused ? L = !0 : L && (g = n, L = !1);
|
|
31
|
-
const t = e.autoplay.paused ? n : c + g - (/* @__PURE__ */ new Date()).getTime();
|
|
32
|
-
e.autoplay.timeLeft = t, o("autoplayTimeLeft", t, t / b), E = requestAnimationFrame(() => {
|
|
33
|
-
I();
|
|
34
|
-
});
|
|
35
|
-
}, q = () => {
|
|
36
|
-
let t;
|
|
37
|
-
return e.virtual && e.params.virtual.enabled ? t = e.slides.find((a) => a.classList.contains("swiper-slide-active")) : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
38
|
-
}, T = (t) => {
|
|
39
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
40
|
-
cancelAnimationFrame(E), I();
|
|
41
|
-
let l = typeof t > "u" ? e.params.autoplay.delay : t;
|
|
42
|
-
b = e.params.autoplay.delay, g = e.params.autoplay.delay;
|
|
43
|
-
const a = q();
|
|
44
|
-
!Number.isNaN(a) && a > 0 && typeof t > "u" && (l = a, b = a, g = a), n = l;
|
|
45
|
-
const p = e.params.speed, B = () => {
|
|
46
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(p, !0, !0), o("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, p, !0, !0), o("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(p, !0, !0), o("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, p, !0, !0), o("autoplay")), e.params.cssMode && (c = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
47
|
-
T();
|
|
48
|
-
})));
|
|
49
|
-
};
|
|
50
|
-
return l > 0 ? (clearTimeout(f), f = setTimeout(() => {
|
|
51
|
-
B();
|
|
52
|
-
}, l)) : requestAnimationFrame(() => {
|
|
53
|
-
B();
|
|
54
|
-
}), l;
|
|
55
|
-
}, A = () => {
|
|
56
|
-
c = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), o("autoplayStart");
|
|
57
|
-
}, m = () => {
|
|
58
|
-
e.autoplay.running = !1, clearTimeout(f), cancelAnimationFrame(E), o("autoplayStop");
|
|
59
|
-
}, y = (t, l) => {
|
|
60
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
61
|
-
clearTimeout(f), t || (r = !0);
|
|
62
|
-
const a = () => {
|
|
63
|
-
o("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", O) : i();
|
|
64
|
-
};
|
|
65
|
-
if (e.autoplay.paused = !0, l) {
|
|
66
|
-
D && (n = e.params.autoplay.delay), D = !1, a();
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - c), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), a());
|
|
70
|
-
}, i = () => {
|
|
71
|
-
e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (c = (/* @__PURE__ */ new Date()).getTime(), r ? (r = !1, T(n)) : T(), e.autoplay.paused = !1, o("autoplayResume"));
|
|
72
|
-
}, F = () => {
|
|
73
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
74
|
-
const t = h();
|
|
75
|
-
t.visibilityState === "hidden" && (r = !0, y(!0)), t.visibilityState === "visible" && i();
|
|
76
|
-
}, P = (t) => {
|
|
77
|
-
t.pointerType === "mouse" && (r = !0, S = !0, !(e.animating || e.autoplay.paused) && y(!0));
|
|
78
|
-
}, N = (t) => {
|
|
79
|
-
t.pointerType === "mouse" && (S = !1, e.autoplay.paused && i());
|
|
80
|
-
}, x = () => {
|
|
81
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", P), e.el.addEventListener("pointerleave", N));
|
|
82
|
-
}, R = () => {
|
|
83
|
-
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", P), e.el.removeEventListener("pointerleave", N));
|
|
84
|
-
}, _ = () => {
|
|
85
|
-
h().addEventListener("visibilitychange", F);
|
|
86
|
-
}, j = () => {
|
|
87
|
-
h().removeEventListener("visibilitychange", F);
|
|
88
|
-
};
|
|
89
|
-
u("init", () => {
|
|
90
|
-
e.params.autoplay.enabled && (x(), _(), A());
|
|
91
|
-
}), u("destroy", () => {
|
|
92
|
-
R(), j(), e.autoplay.running && m();
|
|
93
|
-
}), u("_freeModeStaticRelease", () => {
|
|
94
|
-
(s || r) && i();
|
|
95
|
-
}), u("_freeModeNoMomentumRelease", () => {
|
|
96
|
-
e.params.autoplay.disableOnInteraction ? m() : y(!0, !0);
|
|
97
|
-
}), u("beforeTransitionStart", (t, l, a) => {
|
|
98
|
-
e.destroyed || !e.autoplay.running || (a || !e.params.autoplay.disableOnInteraction ? y(!0, !0) : m());
|
|
99
|
-
}), u("sliderFirstMove", () => {
|
|
100
|
-
if (!(e.destroyed || !e.autoplay.running)) {
|
|
101
|
-
if (e.params.autoplay.disableOnInteraction) {
|
|
102
|
-
m();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
v = !0, s = !1, r = !1, M = setTimeout(() => {
|
|
106
|
-
r = !0, s = !0, y(!0);
|
|
107
|
-
}, 200);
|
|
108
|
-
}
|
|
109
|
-
}), u("touchEnd", () => {
|
|
110
|
-
if (!(e.destroyed || !e.autoplay.running || !v)) {
|
|
111
|
-
if (clearTimeout(M), clearTimeout(f), e.params.autoplay.disableOnInteraction) {
|
|
112
|
-
s = !1, v = !1;
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
s && e.params.cssMode && i(), s = !1, v = !1;
|
|
116
|
-
}
|
|
117
|
-
}), u("slideChange", () => {
|
|
118
|
-
e.destroyed || !e.autoplay.running || (D = !0);
|
|
119
|
-
}), Object.assign(e.autoplay, {
|
|
120
|
-
start: A,
|
|
121
|
-
stop: m,
|
|
122
|
-
pause: y,
|
|
123
|
-
resume: i
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
export {
|
|
127
|
-
k as default
|
|
128
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { n as v, o as S } from "../shared/utils.js";
|
|
2
|
-
function A({
|
|
3
|
-
swiper: t,
|
|
4
|
-
extendParams: h,
|
|
5
|
-
on: f
|
|
6
|
-
}) {
|
|
7
|
-
h({
|
|
8
|
-
controller: {
|
|
9
|
-
control: void 0,
|
|
10
|
-
inverse: !1,
|
|
11
|
-
by: "slide"
|
|
12
|
-
// or 'container'
|
|
13
|
-
}
|
|
14
|
-
}), t.controller = {
|
|
15
|
-
control: void 0
|
|
16
|
-
};
|
|
17
|
-
function u(i, a) {
|
|
18
|
-
const r = /* @__PURE__ */ function() {
|
|
19
|
-
let l, o, c;
|
|
20
|
-
return (m, g) => {
|
|
21
|
-
for (o = -1, l = m.length; l - o > 1; )
|
|
22
|
-
c = l + o >> 1, m[c] <= g ? o = c : l = c;
|
|
23
|
-
return l;
|
|
24
|
-
};
|
|
25
|
-
}();
|
|
26
|
-
this.x = i, this.y = a, this.lastIndex = i.length - 1;
|
|
27
|
-
let n, e;
|
|
28
|
-
return this.interpolate = function(l) {
|
|
29
|
-
return l ? (e = r(this.x, l), n = e - 1, (l - this.x[n]) * (this.y[e] - this.y[n]) / (this.x[e] - this.x[n]) + this.y[n]) : 0;
|
|
30
|
-
}, this;
|
|
31
|
-
}
|
|
32
|
-
function T(i) {
|
|
33
|
-
t.controller.spline = t.params.loop ? new u(t.slidesGrid, i.slidesGrid) : new u(t.snapGrid, i.snapGrid);
|
|
34
|
-
}
|
|
35
|
-
function y(i, a) {
|
|
36
|
-
const r = t.controller.control;
|
|
37
|
-
let n, e;
|
|
38
|
-
const s = t.constructor;
|
|
39
|
-
function l(o) {
|
|
40
|
-
if (o.destroyed) return;
|
|
41
|
-
const c = t.rtlTranslate ? -t.translate : t.translate;
|
|
42
|
-
t.params.controller.by === "slide" && (T(o), e = -t.controller.spline.interpolate(-c)), (!e || t.params.controller.by === "container") && (n = (o.maxTranslate() - o.minTranslate()) / (t.maxTranslate() - t.minTranslate()), (Number.isNaN(n) || !Number.isFinite(n)) && (n = 1), e = (c - t.minTranslate()) * n + o.minTranslate()), t.params.controller.inverse && (e = o.maxTranslate() - e), o.updateProgress(e), o.setTranslate(e, t), o.updateActiveIndex(), o.updateSlidesClasses();
|
|
43
|
-
}
|
|
44
|
-
if (Array.isArray(r))
|
|
45
|
-
for (let o = 0; o < r.length; o += 1)
|
|
46
|
-
r[o] !== a && r[o] instanceof s && l(r[o]);
|
|
47
|
-
else r instanceof s && a !== r && l(r);
|
|
48
|
-
}
|
|
49
|
-
function x(i, a) {
|
|
50
|
-
const r = t.constructor, n = t.controller.control;
|
|
51
|
-
let e;
|
|
52
|
-
function s(l) {
|
|
53
|
-
l.destroyed || (l.setTransition(i, t), i !== 0 && (l.transitionStart(), l.params.autoHeight && v(() => {
|
|
54
|
-
l.updateAutoHeight();
|
|
55
|
-
}), S(l.wrapperEl, () => {
|
|
56
|
-
n && l.transitionEnd();
|
|
57
|
-
})));
|
|
58
|
-
}
|
|
59
|
-
if (Array.isArray(n))
|
|
60
|
-
for (e = 0; e < n.length; e += 1)
|
|
61
|
-
n[e] !== a && n[e] instanceof r && s(n[e]);
|
|
62
|
-
else n instanceof r && a !== n && s(n);
|
|
63
|
-
}
|
|
64
|
-
function d() {
|
|
65
|
-
t.controller.control && t.controller.spline && (t.controller.spline = void 0, delete t.controller.spline);
|
|
66
|
-
}
|
|
67
|
-
f("beforeInit", () => {
|
|
68
|
-
if (typeof window < "u" && // eslint-disable-line
|
|
69
|
-
(typeof t.params.controller.control == "string" || t.params.controller.control instanceof HTMLElement)) {
|
|
70
|
-
(typeof t.params.controller.control == "string" ? [...document.querySelectorAll(t.params.controller.control)] : [t.params.controller.control]).forEach((a) => {
|
|
71
|
-
if (t.controller.control || (t.controller.control = []), a && a.swiper)
|
|
72
|
-
t.controller.control.push(a.swiper);
|
|
73
|
-
else if (a) {
|
|
74
|
-
const r = `${t.params.eventsPrefix}init`, n = (e) => {
|
|
75
|
-
t.controller.control.push(e.detail[0]), t.update(), a.removeEventListener(r, n);
|
|
76
|
-
};
|
|
77
|
-
a.addEventListener(r, n);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
t.controller.control = t.params.controller.control;
|
|
83
|
-
}), f("update", () => {
|
|
84
|
-
d();
|
|
85
|
-
}), f("resize", () => {
|
|
86
|
-
d();
|
|
87
|
-
}), f("observerUpdate", () => {
|
|
88
|
-
d();
|
|
89
|
-
}), f("setTranslate", (i, a, r) => {
|
|
90
|
-
!t.controller.control || t.controller.control.destroyed || t.controller.setTranslate(a, r);
|
|
91
|
-
}), f("setTransition", (i, a, r) => {
|
|
92
|
-
!t.controller.control || t.controller.control.destroyed || t.controller.setTransition(a, r);
|
|
93
|
-
}), Object.assign(t.controller, {
|
|
94
|
-
setTranslate: y,
|
|
95
|
-
setTransition: x
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
A as default
|
|
100
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { h as v, o as h } from "../shared/utils.js";
|
|
2
|
-
function z({
|
|
3
|
-
swiper: e,
|
|
4
|
-
extendParams: g,
|
|
5
|
-
emit: c,
|
|
6
|
-
once: x
|
|
7
|
-
}) {
|
|
8
|
-
g({
|
|
9
|
-
freeMode: {
|
|
10
|
-
enabled: !1,
|
|
11
|
-
momentum: !0,
|
|
12
|
-
momentumRatio: 1,
|
|
13
|
-
momentumBounce: !0,
|
|
14
|
-
momentumBounceRatio: 1,
|
|
15
|
-
momentumVelocityRatio: 1,
|
|
16
|
-
sticky: !1,
|
|
17
|
-
minimumVelocity: 0.02
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
function S() {
|
|
21
|
-
if (e.params.cssMode) return;
|
|
22
|
-
const l = e.getTranslate();
|
|
23
|
-
e.setTranslate(l), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
|
|
24
|
-
currentPos: e.rtl ? e.translate : -e.translate
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function E() {
|
|
28
|
-
if (e.params.cssMode) return;
|
|
29
|
-
const {
|
|
30
|
-
touchEventsData: l,
|
|
31
|
-
touches: t
|
|
32
|
-
} = e;
|
|
33
|
-
l.velocities.length === 0 && l.velocities.push({
|
|
34
|
-
position: t[e.isHorizontal() ? "startX" : "startY"],
|
|
35
|
-
time: l.touchStartTime
|
|
36
|
-
}), l.velocities.push({
|
|
37
|
-
position: t[e.isHorizontal() ? "currentX" : "currentY"],
|
|
38
|
-
time: v()
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function B({
|
|
42
|
-
currentPos: l
|
|
43
|
-
}) {
|
|
44
|
-
if (e.params.cssMode) return;
|
|
45
|
-
const {
|
|
46
|
-
params: t,
|
|
47
|
-
wrapperEl: f,
|
|
48
|
-
rtlTranslate: r,
|
|
49
|
-
snapGrid: i,
|
|
50
|
-
touchEventsData: m
|
|
51
|
-
} = e, b = v() - m.touchStartTime;
|
|
52
|
-
if (l < -e.minTranslate()) {
|
|
53
|
-
e.slideTo(e.activeIndex);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (l > -e.maxTranslate()) {
|
|
57
|
-
e.slides.length < i.length ? e.slideTo(i.length - 1) : e.slideTo(e.slides.length - 1);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (t.freeMode.momentum) {
|
|
61
|
-
if (m.velocities.length > 1) {
|
|
62
|
-
const n = m.velocities.pop(), a = m.velocities.pop(), R = n.position - a.position, y = n.time - a.time;
|
|
63
|
-
e.velocity = R / y, e.velocity /= 2, Math.abs(e.velocity) < t.freeMode.minimumVelocity && (e.velocity = 0), (y > 150 || v() - n.time > 300) && (e.velocity = 0);
|
|
64
|
-
} else
|
|
65
|
-
e.velocity = 0;
|
|
66
|
-
e.velocity *= t.freeMode.momentumVelocityRatio, m.velocities.length = 0;
|
|
67
|
-
let s = 1e3 * t.freeMode.momentumRatio;
|
|
68
|
-
const D = e.velocity * s;
|
|
69
|
-
let o = e.translate + D;
|
|
70
|
-
r && (o = -o);
|
|
71
|
-
let M = !1, u;
|
|
72
|
-
const d = Math.abs(e.velocity) * 20 * t.freeMode.momentumBounceRatio;
|
|
73
|
-
let T;
|
|
74
|
-
if (o < e.maxTranslate())
|
|
75
|
-
t.freeMode.momentumBounce ? (o + e.maxTranslate() < -d && (o = e.maxTranslate() - d), u = e.maxTranslate(), M = !0, m.allowMomentumBounce = !0) : o = e.maxTranslate(), t.loop && t.centeredSlides && (T = !0);
|
|
76
|
-
else if (o > e.minTranslate())
|
|
77
|
-
t.freeMode.momentumBounce ? (o - e.minTranslate() > d && (o = e.minTranslate() + d), u = e.minTranslate(), M = !0, m.allowMomentumBounce = !0) : o = e.minTranslate(), t.loop && t.centeredSlides && (T = !0);
|
|
78
|
-
else if (t.freeMode.sticky) {
|
|
79
|
-
let n;
|
|
80
|
-
for (let a = 0; a < i.length; a += 1)
|
|
81
|
-
if (i[a] > -o) {
|
|
82
|
-
n = a;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
Math.abs(i[n] - o) < Math.abs(i[n - 1] - o) || e.swipeDirection === "next" ? o = i[n] : o = i[n - 1], o = -o;
|
|
86
|
-
}
|
|
87
|
-
if (T && x("transitionEnd", () => {
|
|
88
|
-
e.loopFix();
|
|
89
|
-
}), e.velocity !== 0) {
|
|
90
|
-
if (r ? s = Math.abs((-o - e.translate) / e.velocity) : s = Math.abs((o - e.translate) / e.velocity), t.freeMode.sticky) {
|
|
91
|
-
const n = Math.abs((r ? -o : o) - e.translate), a = e.slidesSizesGrid[e.activeIndex];
|
|
92
|
-
n < a ? s = t.speed : n < 2 * a ? s = t.speed * 1.5 : s = t.speed * 2.5;
|
|
93
|
-
}
|
|
94
|
-
} else if (t.freeMode.sticky) {
|
|
95
|
-
e.slideToClosest();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
t.freeMode.momentumBounce && M ? (e.updateProgress(u), e.setTransition(s), e.setTranslate(o), e.transitionStart(!0, e.swipeDirection), e.animating = !0, h(f, () => {
|
|
99
|
-
!e || e.destroyed || !m.allowMomentumBounce || (c("momentumBounce"), e.setTransition(t.speed), setTimeout(() => {
|
|
100
|
-
e.setTranslate(u), h(f, () => {
|
|
101
|
-
!e || e.destroyed || e.transitionEnd();
|
|
102
|
-
});
|
|
103
|
-
}, 0));
|
|
104
|
-
})) : e.velocity ? (c("_freeModeNoMomentumRelease"), e.updateProgress(o), e.setTransition(s), e.setTranslate(o), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, h(f, () => {
|
|
105
|
-
!e || e.destroyed || e.transitionEnd();
|
|
106
|
-
}))) : e.updateProgress(o), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
107
|
-
} else if (t.freeMode.sticky) {
|
|
108
|
-
e.slideToClosest();
|
|
109
|
-
return;
|
|
110
|
-
} else t.freeMode && c("_freeModeNoMomentumRelease");
|
|
111
|
-
(!t.freeMode.momentum || b >= t.longSwipesMs) && (c("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
112
|
-
}
|
|
113
|
-
Object.assign(e, {
|
|
114
|
-
freeMode: {
|
|
115
|
-
onTouchStart: S,
|
|
116
|
-
onTouchMove: E,
|
|
117
|
-
onTouchEnd: B
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
export {
|
|
122
|
-
z as default
|
|
123
|
-
};
|