@wikicasa-dev/components 1.2.46 → 1.2.48
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/AccessibleSelect.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseDropDown.js +1 -1
- package/dist/SwiperCarousel.js +1 -1
- package/dist/SwiperSlide.js +14 -0
- package/dist/UIKit/BaseCard.vue.d.ts +2 -2
- package/dist/UIKit/BaseDropDown.vue.d.ts +1 -0
- package/dist/UIKit/BaseInput.vue.d.ts +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.lyHlWiC5.js +239 -0
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.DkNApxB4.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ct4_y9HP.js} +1 -1
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.D9uxpIpT.js → BaseDropDown.vue_vue_type_script_setup_true_lang.C4VH7V0e.js} +18 -15
- package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.BHI3p0bd.js → SwiperCarousel.vue_vue_type_style_index_0_lang.C_fZeeSF.js} +100 -100
- package/dist/chunks/{index.CdEglHxG.js → index.CAhFeT_E.js} +2 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +2 -2
- package/dist/components/carousel/SwiperSlide.vue.d.ts +9 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -13
- package/package.json +2 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.CJSkDBar.js +0 -204
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/SwiperCarousel.css';
|
|
2
|
-
import { defineComponent as Ce, reactive as ze, ref as ge, computed as D, onMounted as Xe, openBlock as Y, createElementBlock as $, normalizeClass as M, createElementVNode as k, renderSlot as Ye, Fragment as re, renderList as he, mergeProps as we, createCommentVNode as J, withModifiers as
|
|
2
|
+
import { defineComponent as Ce, reactive as ze, ref as ge, computed as D, onMounted as Xe, openBlock as Y, createElementBlock as $, normalizeClass as M, createElementVNode as k, renderSlot as Ye, Fragment as re, renderList as he, mergeProps as we, createCommentVNode as J, withModifiers as ne, nextTick as $e } from "vue";
|
|
3
3
|
import { Swiper as ve } from "swiper";
|
|
4
4
|
import { r as Me } from "./ObjectUtils.B1Dk4qsM.js";
|
|
5
5
|
import "./js.cookie.BaTT4o7s.js";
|
|
@@ -179,7 +179,7 @@ function Ke(r) {
|
|
|
179
179
|
return u;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function se(r, e) {
|
|
183
183
|
const u = [];
|
|
184
184
|
let o = r.parentElement;
|
|
185
185
|
for (; o; )
|
|
@@ -257,27 +257,27 @@ function Oe(r) {
|
|
|
257
257
|
get() {
|
|
258
258
|
return H;
|
|
259
259
|
},
|
|
260
|
-
set(
|
|
261
|
-
if (H !==
|
|
262
|
-
const
|
|
263
|
-
v("zoomChange",
|
|
260
|
+
set(n) {
|
|
261
|
+
if (H !== n) {
|
|
262
|
+
const s = t.imageEl, a = t.slideEl;
|
|
263
|
+
v("zoomChange", n, s, a);
|
|
264
264
|
}
|
|
265
|
-
H =
|
|
265
|
+
H = n;
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
function j() {
|
|
269
269
|
if (m.length < 2)
|
|
270
270
|
return 1;
|
|
271
|
-
const
|
|
272
|
-
return Math.sqrt((a -
|
|
271
|
+
const n = m[0].pageX, s = m[0].pageY, a = m[1].pageX, w = m[1].pageY;
|
|
272
|
+
return Math.sqrt((a - n) ** 2 + (w - s) ** 2);
|
|
273
273
|
}
|
|
274
274
|
function W() {
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
275
|
+
const n = e.params.zoom, s = t.imageWrapEl.getAttribute("data-swiper-zoom") || n.maxRatio;
|
|
276
|
+
if (n.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
|
|
277
277
|
const a = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
|
|
278
|
-
return Math.min(a,
|
|
278
|
+
return Math.min(a, s);
|
|
279
279
|
}
|
|
280
|
-
return
|
|
280
|
+
return s;
|
|
281
281
|
}
|
|
282
282
|
function Q() {
|
|
283
283
|
if (m.length < 2)
|
|
@@ -285,29 +285,29 @@ function Oe(r) {
|
|
|
285
285
|
x: null,
|
|
286
286
|
y: null
|
|
287
287
|
};
|
|
288
|
-
const
|
|
289
|
-
return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 -
|
|
288
|
+
const n = t.imageEl.getBoundingClientRect();
|
|
289
|
+
return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 - n.x - d.scrollX) / g, (m[0].pageY + (m[1].pageY - m[0].pageY) / 2 - n.y - d.scrollY) / g];
|
|
290
290
|
}
|
|
291
291
|
function V() {
|
|
292
292
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
293
293
|
}
|
|
294
|
-
function R(
|
|
295
|
-
const
|
|
296
|
-
return !!(
|
|
294
|
+
function R(n) {
|
|
295
|
+
const s = V();
|
|
296
|
+
return !!(n.target.matches(s) || e.slides.filter((a) => a.contains(n.target)).length > 0);
|
|
297
297
|
}
|
|
298
|
-
function l(
|
|
299
|
-
const
|
|
300
|
-
return !!(
|
|
298
|
+
function l(n) {
|
|
299
|
+
const s = `.${e.params.zoom.containerClass}`;
|
|
300
|
+
return !!(n.target.matches(s) || [...e.hostEl.querySelectorAll(s)].filter((a) => a.contains(n.target)).length > 0);
|
|
301
301
|
}
|
|
302
|
-
function f(
|
|
303
|
-
if (
|
|
302
|
+
function f(n) {
|
|
303
|
+
if (n.pointerType === "mouse" && m.splice(0, m.length), !R(n))
|
|
304
304
|
return;
|
|
305
|
-
const
|
|
306
|
-
if (T = !1, I = !1, m.push(
|
|
305
|
+
const s = e.params.zoom;
|
|
306
|
+
if (T = !1, I = !1, m.push(n), !(m.length < 2)) {
|
|
307
307
|
if (T = !0, t.scaleStart = j(), !t.slideEl) {
|
|
308
|
-
t.slideEl =
|
|
309
|
-
let a = t.slideEl.querySelector(`.${
|
|
310
|
-
if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl =
|
|
308
|
+
t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = e.slides[e.activeIndex]);
|
|
309
|
+
let a = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
310
|
+
if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
|
|
311
311
|
t.imageEl = void 0;
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
@@ -320,37 +320,37 @@ function Oe(r) {
|
|
|
320
320
|
y = !0;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function c(
|
|
324
|
-
if (!R(
|
|
323
|
+
function c(n) {
|
|
324
|
+
if (!R(n))
|
|
325
325
|
return;
|
|
326
|
-
const
|
|
327
|
-
w >= 0 && (m[w] =
|
|
326
|
+
const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
327
|
+
w >= 0 && (m[w] = n), !(m.length < 2) && (I = !0, t.scaleMove = j(), t.imageEl && (a.scale = t.scaleMove / t.scaleStart * g, a.scale > t.maxRatio && (a.scale = t.maxRatio - 1 + (a.scale - t.maxRatio + 1) ** 0.5), a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`));
|
|
328
328
|
}
|
|
329
|
-
function h(
|
|
330
|
-
if (!R(
|
|
329
|
+
function h(n) {
|
|
330
|
+
if (!R(n) || n.pointerType === "mouse" && n.type === "pointerout")
|
|
331
331
|
return;
|
|
332
|
-
const
|
|
333
|
-
w >= 0 && m.splice(w, 1), !(!T || !I) && (T = !1, I = !1, t.imageEl && (a.scale = Math.max(Math.min(a.scale, t.maxRatio),
|
|
332
|
+
const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
333
|
+
w >= 0 && m.splice(w, 1), !(!T || !I) && (T = !1, I = !1, t.imageEl && (a.scale = Math.max(Math.min(a.scale, t.maxRatio), s.minRatio), t.imageEl.style.transitionDuration = `${e.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, g = a.scale, y = !1, a.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${s.zoomedSlideClass}`), a.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
|
|
334
334
|
}
|
|
335
|
-
function b(
|
|
336
|
-
const
|
|
335
|
+
function b(n) {
|
|
336
|
+
const s = e.device;
|
|
337
337
|
if (!t.imageEl || i.isTouched)
|
|
338
338
|
return;
|
|
339
|
-
|
|
340
|
-
const a = m.length > 0 ? m[0] :
|
|
339
|
+
s.android && n.cancelable && n.preventDefault(), i.isTouched = !0;
|
|
340
|
+
const a = m.length > 0 ? m[0] : n;
|
|
341
341
|
i.touchesStart.x = a.pageX, i.touchesStart.y = a.pageY;
|
|
342
342
|
}
|
|
343
|
-
function N(
|
|
344
|
-
if (!R(
|
|
343
|
+
function N(n) {
|
|
344
|
+
if (!R(n) || !l(n))
|
|
345
345
|
return;
|
|
346
|
-
const
|
|
346
|
+
const s = e.zoom;
|
|
347
347
|
if (!t.imageEl || !i.isTouched || !t.slideEl)
|
|
348
348
|
return;
|
|
349
349
|
i.isMoved || (i.width = t.imageEl.offsetWidth, i.height = t.imageEl.offsetHeight, i.startX = ye(t.imageWrapEl, "x") || 0, i.startY = ye(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
|
|
350
|
-
const a = i.width *
|
|
350
|
+
const a = i.width * s.scale, w = i.height * s.scale;
|
|
351
351
|
if (a < t.slideWidth && w < t.slideHeight)
|
|
352
352
|
return;
|
|
353
|
-
if (i.minX = Math.min(t.slideWidth / 2 - a / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - w / 2, 0), i.maxY = -i.minY, i.touchesCurrent.x = m.length > 0 ? m[0].pageX :
|
|
353
|
+
if (i.minX = Math.min(t.slideWidth / 2 - a / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - w / 2, 0), i.maxY = -i.minY, i.touchesCurrent.x = m.length > 0 ? m[0].pageX : n.pageX, i.touchesCurrent.y = m.length > 0 ? m[0].pageY : n.pageY, Math.max(Math.abs(i.touchesCurrent.x - i.touchesStart.x), Math.abs(i.touchesCurrent.y - i.touchesStart.y)) > 5 && (e.allowClick = !1), !i.isMoved && !y) {
|
|
354
354
|
if (e.isHorizontal() && (Math.floor(i.minX) === Math.floor(i.startX) && i.touchesCurrent.x < i.touchesStart.x || Math.floor(i.maxX) === Math.floor(i.startX) && i.touchesCurrent.x > i.touchesStart.x)) {
|
|
355
355
|
i.isTouched = !1;
|
|
356
356
|
return;
|
|
@@ -360,15 +360,15 @@ function Oe(r) {
|
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
|
|
364
|
-
const P = (
|
|
363
|
+
n.cancelable && n.preventDefault(), n.stopPropagation(), i.isMoved = !0;
|
|
364
|
+
const P = (s.scale - g) / (t.maxRatio - e.params.zoom.minRatio), {
|
|
365
365
|
originX: L,
|
|
366
366
|
originY: A
|
|
367
367
|
} = t;
|
|
368
368
|
i.currentX = i.touchesCurrent.x - i.touchesStart.x + i.startX + P * (i.width - L * 2), i.currentY = i.touchesCurrent.y - i.touchesStart.y + i.startY + P * (i.height - A * 2), i.currentX < i.minX && (i.currentX = i.minX + 1 - (i.minX - i.currentX + 1) ** 0.8), i.currentX > i.maxX && (i.currentX = i.maxX - 1 + (i.currentX - i.maxX + 1) ** 0.8), i.currentY < i.minY && (i.currentY = i.minY + 1 - (i.minY - i.currentY + 1) ** 0.8), i.currentY > i.maxY && (i.currentY = i.maxY - 1 + (i.currentY - i.maxY + 1) ** 0.8), p.prevPositionX || (p.prevPositionX = i.touchesCurrent.x), p.prevPositionY || (p.prevPositionY = i.touchesCurrent.y), p.prevTime || (p.prevTime = Date.now()), p.x = (i.touchesCurrent.x - p.prevPositionX) / (Date.now() - p.prevTime) / 2, p.y = (i.touchesCurrent.y - p.prevPositionY) / (Date.now() - p.prevTime) / 2, Math.abs(i.touchesCurrent.x - p.prevPositionX) < 2 && (p.x = 0), Math.abs(i.touchesCurrent.y - p.prevPositionY) < 2 && (p.y = 0), p.prevPositionX = i.touchesCurrent.x, p.prevPositionY = i.touchesCurrent.y, p.prevTime = Date.now(), t.imageWrapEl.style.transform = `translate3d(${i.currentX}px, ${i.currentY}px,0)`;
|
|
369
369
|
}
|
|
370
370
|
function U() {
|
|
371
|
-
const
|
|
371
|
+
const n = e.zoom;
|
|
372
372
|
if (!t.imageEl)
|
|
373
373
|
return;
|
|
374
374
|
if (!i.isTouched || !i.isMoved) {
|
|
@@ -376,97 +376,97 @@ function Oe(r) {
|
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
378
|
i.isTouched = !1, i.isMoved = !1;
|
|
379
|
-
let
|
|
380
|
-
const w = p.x *
|
|
381
|
-
p.x !== 0 && (
|
|
382
|
-
const A = Math.max(
|
|
379
|
+
let s = 300, a = 300;
|
|
380
|
+
const w = p.x * s, S = i.currentX + w, P = p.y * a, L = i.currentY + P;
|
|
381
|
+
p.x !== 0 && (s = Math.abs((S - i.currentX) / p.x)), p.y !== 0 && (a = Math.abs((L - i.currentY) / p.y));
|
|
382
|
+
const A = Math.max(s, a);
|
|
383
383
|
i.currentX = S, i.currentY = L;
|
|
384
|
-
const G = i.width *
|
|
384
|
+
const G = i.width * n.scale, X = i.height * n.scale;
|
|
385
385
|
i.minX = Math.min(t.slideWidth / 2 - G / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - X / 2, 0), i.maxY = -i.minY, i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX), i.currentY = Math.max(Math.min(i.currentY, i.maxY), i.minY), t.imageWrapEl.style.transitionDuration = `${A}ms`, t.imageWrapEl.style.transform = `translate3d(${i.currentX}px, ${i.currentY}px,0)`;
|
|
386
386
|
}
|
|
387
387
|
function E() {
|
|
388
|
-
const
|
|
389
|
-
t.slideEl && e.activeIndex !== e.slides.indexOf(t.slideEl) && (t.imageEl && (t.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), t.imageWrapEl && (t.imageWrapEl.style.transform = "translate3d(0,0,0)"), t.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),
|
|
388
|
+
const n = e.zoom;
|
|
389
|
+
t.slideEl && e.activeIndex !== e.slides.indexOf(t.slideEl) && (t.imageEl && (t.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), t.imageWrapEl && (t.imageWrapEl.style.transform = "translate3d(0,0,0)"), t.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), n.scale = 1, g = 1, t.slideEl = void 0, t.imageEl = void 0, t.imageWrapEl = void 0, t.originX = 0, t.originY = 0);
|
|
390
390
|
}
|
|
391
|
-
function x(
|
|
392
|
-
const
|
|
391
|
+
function x(n) {
|
|
392
|
+
const s = e.zoom, a = e.params.zoom;
|
|
393
393
|
if (!t.slideEl) {
|
|
394
|
-
|
|
394
|
+
n && n.target && (t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`)), t.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl = be(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex]);
|
|
395
395
|
let q = t.slideEl.querySelector(`.${a.containerClass}`);
|
|
396
|
-
q && (q = q.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = q, q ? t.imageWrapEl =
|
|
396
|
+
q && (q = q.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = q, q ? t.imageWrapEl = se(t.imageEl, `.${a.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
397
397
|
}
|
|
398
398
|
if (!t.imageEl || !t.imageWrapEl)
|
|
399
399
|
return;
|
|
400
400
|
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${a.zoomedSlideClass}`);
|
|
401
401
|
let w, S, P, L, A, G, X, O, ce, de, me, pe, K, Z, _, ee, te, ie;
|
|
402
|
-
typeof i.touchesStart.x > "u" &&
|
|
403
|
-
const F = typeof
|
|
402
|
+
typeof i.touchesStart.x > "u" && n ? (w = n.pageX, S = n.pageY) : (w = i.touchesStart.x, S = i.touchesStart.y);
|
|
403
|
+
const F = typeof n == "number" ? n : null;
|
|
404
404
|
g === 1 && F && (w = void 0, S = void 0);
|
|
405
405
|
const fe = W();
|
|
406
|
-
|
|
406
|
+
s.scale = F || fe, g = F || fe, n && !(g === 1 && F) ? (te = t.slideEl.offsetWidth, ie = t.slideEl.offsetHeight, P = Se(t.slideEl).left + d.scrollX, L = Se(t.slideEl).top + d.scrollY, A = P + te / 2 - w, G = L + ie / 2 - S, ce = t.imageEl.offsetWidth, de = t.imageEl.offsetHeight, me = ce * s.scale, pe = de * s.scale, K = Math.min(te / 2 - me / 2, 0), Z = Math.min(ie / 2 - pe / 2, 0), _ = -K, ee = -Z, X = A * s.scale, O = G * s.scale, X < K && (X = K), X > _ && (X = _), O < Z && (O = Z), O > ee && (O = ee)) : (X = 0, O = 0), F && s.scale === 1 && (t.originX = 0, t.originY = 0), t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = `translate3d(${X}px, ${O}px,0)`, t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`;
|
|
407
407
|
}
|
|
408
408
|
function C() {
|
|
409
|
-
const
|
|
409
|
+
const n = e.zoom, s = e.params.zoom;
|
|
410
410
|
if (!t.slideEl) {
|
|
411
411
|
e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl = be(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex];
|
|
412
|
-
let a = t.slideEl.querySelector(`.${
|
|
413
|
-
a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl =
|
|
412
|
+
let a = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
413
|
+
a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
414
414
|
}
|
|
415
|
-
!t.imageEl || !t.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""),
|
|
415
|
+
!t.imageEl || !t.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), n.scale = 1, g = 1, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = "translate3d(0,0,0)", t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = "translate3d(0,0,0) scale(1)", t.slideEl.classList.remove(`${s.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0);
|
|
416
416
|
}
|
|
417
|
-
function z(
|
|
418
|
-
const
|
|
419
|
-
|
|
417
|
+
function z(n) {
|
|
418
|
+
const s = e.zoom;
|
|
419
|
+
s.scale && s.scale !== 1 ? C() : x(n);
|
|
420
420
|
}
|
|
421
421
|
function oe() {
|
|
422
|
-
const
|
|
422
|
+
const n = e.params.passiveListeners ? {
|
|
423
423
|
passive: !0,
|
|
424
424
|
capture: !1
|
|
425
|
-
} : !1,
|
|
425
|
+
} : !1, s = e.params.passiveListeners ? {
|
|
426
426
|
passive: !1,
|
|
427
427
|
capture: !0
|
|
428
428
|
} : !0;
|
|
429
429
|
return {
|
|
430
|
-
passiveListener:
|
|
431
|
-
activeListenerWithCapture:
|
|
430
|
+
passiveListener: n,
|
|
431
|
+
activeListenerWithCapture: s
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
function le() {
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
435
|
+
const n = e.zoom;
|
|
436
|
+
if (n.enabled)
|
|
437
437
|
return;
|
|
438
|
-
|
|
438
|
+
n.enabled = !0;
|
|
439
439
|
const {
|
|
440
|
-
passiveListener:
|
|
440
|
+
passiveListener: s,
|
|
441
441
|
activeListenerWithCapture: a
|
|
442
442
|
} = oe();
|
|
443
|
-
e.wrapperEl.addEventListener("pointerdown", f,
|
|
444
|
-
e.wrapperEl.addEventListener(w, h,
|
|
443
|
+
e.wrapperEl.addEventListener("pointerdown", f, s), e.wrapperEl.addEventListener("pointermove", c, a), ["pointerup", "pointercancel", "pointerout"].forEach((w) => {
|
|
444
|
+
e.wrapperEl.addEventListener(w, h, s);
|
|
445
445
|
}), e.wrapperEl.addEventListener("pointermove", N, a);
|
|
446
446
|
}
|
|
447
447
|
function ue() {
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
448
|
+
const n = e.zoom;
|
|
449
|
+
if (!n.enabled)
|
|
450
450
|
return;
|
|
451
|
-
|
|
451
|
+
n.enabled = !1;
|
|
452
452
|
const {
|
|
453
|
-
passiveListener:
|
|
453
|
+
passiveListener: s,
|
|
454
454
|
activeListenerWithCapture: a
|
|
455
455
|
} = oe();
|
|
456
|
-
e.wrapperEl.removeEventListener("pointerdown", f,
|
|
457
|
-
e.wrapperEl.removeEventListener(w, h,
|
|
456
|
+
e.wrapperEl.removeEventListener("pointerdown", f, s), e.wrapperEl.removeEventListener("pointermove", c, a), ["pointerup", "pointercancel", "pointerout"].forEach((w) => {
|
|
457
|
+
e.wrapperEl.removeEventListener(w, h, s);
|
|
458
458
|
}), e.wrapperEl.removeEventListener("pointermove", N, a);
|
|
459
459
|
}
|
|
460
460
|
o("init", () => {
|
|
461
461
|
e.params.zoom.enabled && le();
|
|
462
462
|
}), o("destroy", () => {
|
|
463
463
|
ue();
|
|
464
|
-
}), o("touchStart", (
|
|
465
|
-
e.zoom.enabled && b(
|
|
466
|
-
}), o("touchEnd", (
|
|
464
|
+
}), o("touchStart", (n, s) => {
|
|
465
|
+
e.zoom.enabled && b(s);
|
|
466
|
+
}), o("touchEnd", (n, s) => {
|
|
467
467
|
e.zoom.enabled && U();
|
|
468
|
-
}), o("doubleTap", (
|
|
469
|
-
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && z(
|
|
468
|
+
}), o("doubleTap", (n, s) => {
|
|
469
|
+
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && z(s);
|
|
470
470
|
}), o("transitionEnd", () => {
|
|
471
471
|
e.zoom.enabled && e.params.zoom.enabled && E();
|
|
472
472
|
}), o("slideChange", () => {
|
|
@@ -551,11 +551,11 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
551
551
|
};
|
|
552
552
|
return Xe(async () => {
|
|
553
553
|
if (H(), I.value) {
|
|
554
|
-
const { Keyboard: c } = await import("./index.
|
|
554
|
+
const { Keyboard: c } = await import("./index.CAhFeT_E.js");
|
|
555
555
|
d.swiperParams.modules?.push(c), d.swiperParams.keyboard = o.swiperOptions.keyboard;
|
|
556
556
|
}
|
|
557
557
|
if (t.value) {
|
|
558
|
-
const { Pagination: c } = await import("./index.
|
|
558
|
+
const { Pagination: c } = await import("./index.CAhFeT_E.js");
|
|
559
559
|
d.swiperParams.modules?.push(c), d.swiperParams.pagination = {
|
|
560
560
|
el: ".swiper-pagination",
|
|
561
561
|
renderFraction: (h, b) => `<div class="tw-rounded-xs tw-border-w-black tw-border tw-border-solid tw-px-3 tw-bg-white tw-pt-[3px] tw-pb-[3px]">
|
|
@@ -567,7 +567,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
if (m.value) {
|
|
570
|
-
const { Navigation: c } = await import("./index.
|
|
570
|
+
const { Navigation: c } = await import("./index.CAhFeT_E.js");
|
|
571
571
|
d.swiperParams.modules?.push(c);
|
|
572
572
|
const h = {
|
|
573
573
|
...o.swiperOptions.navigation.nextEl ?? {
|
|
@@ -583,7 +583,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
585
|
if (i.value) {
|
|
586
|
-
const { Autoplay: c } = await import("./index.
|
|
586
|
+
const { Autoplay: c } = await import("./index.CAhFeT_E.js");
|
|
587
587
|
d.swiperParams.modules?.push(c), d.swiperParams.autoplay = o.swiperOptions.autoplay;
|
|
588
588
|
}
|
|
589
589
|
const l = {
|
|
@@ -596,7 +596,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
596
596
|
};
|
|
597
597
|
let f = null;
|
|
598
598
|
if (o.thumbSwiperOptions) {
|
|
599
|
-
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index.
|
|
599
|
+
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index.CAhFeT_E.js");
|
|
600
600
|
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(b), f = new ve(`#thumb_${o.id}`, {
|
|
601
601
|
...o.thumbSwiperOptions,
|
|
602
602
|
modules: [h]
|
|
@@ -625,7 +625,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
625
625
|
]]),
|
|
626
626
|
onClick: f[0] || (f[0] = (c) => v("click"))
|
|
627
627
|
}, [
|
|
628
|
-
Ye(l.$slots, "
|
|
628
|
+
Ye(l.$slots, "default", {}, () => [
|
|
629
629
|
(Y(!0), $(re, null, he(l.images, (c, h) => (Y(), $("div", {
|
|
630
630
|
key: `swiper_${l.id}_${h}`,
|
|
631
631
|
class: M(["swiper-slide", l.$attrs["swiper-slide-classes"]])
|
|
@@ -656,20 +656,20 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
656
656
|
t.value ? (Y(), $("div", {
|
|
657
657
|
key: 0,
|
|
658
658
|
class: M([l.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:tw-flex [&.swiper-pagination-fraction]:tw-justify-center"]),
|
|
659
|
-
onClick: f[1] || (f[1] =
|
|
659
|
+
onClick: f[1] || (f[1] = ne(() => {
|
|
660
660
|
}, ["stop"]))
|
|
661
661
|
}, null, 2)) : J("", !0),
|
|
662
662
|
m.value ? (Y(), $(re, { key: 1 }, [
|
|
663
663
|
k("div", {
|
|
664
664
|
class: "swiper-button-prev",
|
|
665
665
|
"data-cy": "swiper-button-prev",
|
|
666
|
-
onClick: f[2] || (f[2] =
|
|
666
|
+
onClick: f[2] || (f[2] = ne(() => {
|
|
667
667
|
}, ["stop"]))
|
|
668
668
|
}),
|
|
669
669
|
k("div", {
|
|
670
670
|
class: "swiper-button-next",
|
|
671
671
|
"data-cy": "swiper-button-next",
|
|
672
|
-
onClick: f[3] || (f[3] =
|
|
672
|
+
onClick: f[3] || (f[3] = ne(() => {
|
|
673
673
|
}, ["stop"]))
|
|
674
674
|
})
|
|
675
675
|
], 64)) : J("", !0)
|
|
@@ -706,7 +706,7 @@ export {
|
|
|
706
706
|
Se as b,
|
|
707
707
|
be as c,
|
|
708
708
|
Ge as d,
|
|
709
|
-
|
|
709
|
+
se as e,
|
|
710
710
|
Je as f,
|
|
711
711
|
Te as g,
|
|
712
712
|
Ke as h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as N, a as W, e as R, b as X, c as G, d as Y, m as D, f as Z, h as j, n as J, i as F, j as Q, k as q } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
2
|
-
import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
1
|
+
import { g as N, a as W, e as R, b as X, c as G, d as Y, m as D, f as Z, h as j, n as J, i as F, j as Q, k as q } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.C_fZeeSF.js";
|
|
2
|
+
import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.C_fZeeSF.js";
|
|
3
3
|
function te(k) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: e,
|
|
@@ -32,17 +32,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
32
|
backgroundImage: boolean;
|
|
33
33
|
shiftFirstImage: boolean;
|
|
34
34
|
}>>> & {
|
|
35
|
+
onClick?: (() => any) | undefined;
|
|
35
36
|
onMoved?: ((args_0: {
|
|
36
37
|
activeIndex: number;
|
|
37
38
|
}) => any) | undefined;
|
|
38
|
-
onClick?: (() => any) | undefined;
|
|
39
39
|
onFirstSlideLoaded?: (() => any) | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
lazyLoadImages: boolean;
|
|
42
42
|
backgroundImage: boolean;
|
|
43
43
|
shiftFirstImage: boolean;
|
|
44
44
|
}, {}>, {
|
|
45
|
-
|
|
45
|
+
default?(_: {}): any;
|
|
46
46
|
}>;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -31,5 +31,6 @@ import BaseModal from './UIKit/BaseModal.vue';
|
|
|
31
31
|
import IntersectionObservable from './components/IntersectionObserver/IntersectionObservable.vue';
|
|
32
32
|
import IntersectionObserver from './components/IntersectionObserver/IntersectionObserver.vue';
|
|
33
33
|
import SwiperCarousel from './components/carousel/SwiperCarousel.vue';
|
|
34
|
+
import SwiperSlide from './components/carousel/SwiperSlide.vue';
|
|
34
35
|
import { useValidator } from './composables/useValidator';
|
|
35
|
-
export { BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BaseNavItem, BasePagination, BasePaper, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, IntersectionObservable, IntersectionObserver, useValidator, BaseModal, };
|
|
36
|
+
export { BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BaseNavItem, BasePagination, BasePaper, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, SwiperSlide, IntersectionObservable, IntersectionObserver, useValidator, BaseModal, };
|
package/dist/index.js
CHANGED
|
@@ -6,16 +6,16 @@ import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_tru
|
|
|
6
6
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.BOLdDTLM.js";
|
|
7
7
|
import { default as B } from "./CheckboxBtn.js";
|
|
8
8
|
import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C5jcwwv6.js";
|
|
9
|
-
import { default as
|
|
9
|
+
import { default as c } from "./RadioButton.js";
|
|
10
10
|
import { default as b } from "./RadioGroup.js";
|
|
11
|
-
import { _ as A } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.
|
|
11
|
+
import { _ as A } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.lyHlWiC5.js";
|
|
12
12
|
import { _ as C } from "./chunks/BaseAlert.vue_vue_type_script_setup_true_lang.HqYdk4yE.js";
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
13
|
+
import { _ as T } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ct4_y9HP.js";
|
|
14
|
+
import { _ as w } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
|
|
15
|
+
import { _ as k } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BrJbAMJ8.js";
|
|
16
16
|
import { _ as F } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
|
|
17
17
|
import { default as O } from "./BaseComplexToggle.js";
|
|
18
|
-
import { _ as R } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
18
|
+
import { _ as R } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.C4VH7V0e.js";
|
|
19
19
|
import { default as M } from "./BaseFloatingLabel.js";
|
|
20
20
|
import { default as U } from "./BaseIcon.js";
|
|
21
21
|
import { default as j } from "./BaseInput.js";
|
|
@@ -31,8 +31,9 @@ import { default as te } from "./BaseUploadFile.js";
|
|
|
31
31
|
import { default as fe } from "./BaseModal.js";
|
|
32
32
|
import { _ as me } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
|
|
33
33
|
import { _ as le } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
|
|
34
|
-
import { _ as Be } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
35
|
-
import {
|
|
34
|
+
import { _ as Be } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.C_fZeeSF.js";
|
|
35
|
+
import { default as ne } from "./SwiperSlide.js";
|
|
36
|
+
import { useValidator as ce } from "./useValidator.js";
|
|
36
37
|
export {
|
|
37
38
|
A as AccessibleSelect,
|
|
38
39
|
a as BaseAccordion,
|
|
@@ -40,9 +41,9 @@ export {
|
|
|
40
41
|
f as BaseAccordionContent,
|
|
41
42
|
m as BaseAccordionItem,
|
|
42
43
|
C as BaseAlert,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
T as BaseAutocomplete,
|
|
45
|
+
w as BaseBadge,
|
|
46
|
+
k as BaseButton,
|
|
46
47
|
F as BaseCard,
|
|
47
48
|
O as BaseComplexToggle,
|
|
48
49
|
R as BaseDropDown,
|
|
@@ -63,9 +64,10 @@ export {
|
|
|
63
64
|
n as CheckboxGroup,
|
|
64
65
|
me as IntersectionObservable,
|
|
65
66
|
le as IntersectionObserver,
|
|
66
|
-
|
|
67
|
+
c as RadioButton,
|
|
67
68
|
b as RadioGroup,
|
|
68
69
|
l as SelectItem,
|
|
69
70
|
Be as SwiperCarousel,
|
|
70
|
-
ne as
|
|
71
|
+
ne as SwiperSlide,
|
|
72
|
+
ce as useValidator
|
|
71
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.48",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@wikicasa-dev/types": "^0.9.2",
|
|
55
55
|
"@wikicasa-dev/utilities": "^0.2.1",
|
|
56
56
|
"@wikicasa-dev/svg-icons": "^0.0.1",
|
|
57
|
+
"@wikicasa-dev/vue-composables": "^0.0.3",
|
|
57
58
|
"autoprefixer": "^10.4.15",
|
|
58
59
|
"chromatic": "^11.2.0",
|
|
59
60
|
"eslint": "^8.57.0",
|