infinity-forge 0.54.3 → 0.54.5
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/ui/components/carousel/swiper/components-shared/get-changed-params.d.ts +2 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js +51 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-element-params.d.ts +5 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js +148 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-params.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-params.js +61 -0
- package/dist/ui/components/carousel/swiper/components-shared/get-params.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js +24 -0
- package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/params-list.d.ts +2 -0
- package/dist/ui/components/carousel/swiper/components-shared/params-list.js +125 -0
- package/dist/ui/components/carousel/swiper/components-shared/params-list.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js +18 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-swiper.d.ts +11 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js +208 -0
- package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js.map +1 -0
- package/dist/ui/components/carousel/swiper/components-shared/utils.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/components-shared/utils.js +77 -0
- package/dist/ui/components/carousel/swiper/components-shared/utils.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js +35 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/index.d.ts +7 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/index.js +9 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js +94 -0
- package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/check-overflow/index.d.ts +5 -0
- package/dist/ui/components/carousel/swiper/core/check-overflow/index.js +31 -0
- package/dist/ui/components/carousel/swiper/core/check-overflow/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/classes/addClasses.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/classes/addClasses.js +43 -0
- package/dist/ui/components/carousel/swiper/core/classes/addClasses.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/classes/index.d.ts +7 -0
- package/dist/ui/components/carousel/swiper/core/classes/index.js +9 -0
- package/dist/ui/components/carousel/swiper/core/classes/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/classes/removeClasses.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js +13 -0
- package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/core.js +12 -12
- package/dist/ui/components/carousel/swiper/core/events/index.d.ts +7 -0
- package/dist/ui/components/carousel/swiper/core/events/index.js +77 -0
- package/dist/ui/components/carousel/swiper/core/events/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onClick.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onClick.js +17 -0
- package/dist/ui/components/carousel/swiper/core/events/onClick.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js +13 -0
- package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onLoad.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onLoad.js +14 -0
- package/dist/ui/components/carousel/swiper/core/events/onLoad.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onResize.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onResize.js +53 -0
- package/dist/ui/components/carousel/swiper/core/events/onResize.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onScroll.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onScroll.js +34 -0
- package/dist/ui/components/carousel/swiper/core/events/onScroll.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js +194 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchMove.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js +314 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchStart.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js +153 -0
- package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/index.d.ts +7 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js +12 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js +22 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js +19 -0
- package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/index.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/core/loop/index.js +14 -0
- package/dist/ui/components/carousel/swiper/core/loop/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopCreate.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js +57 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js +26 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopFix.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopFix.js +230 -0
- package/dist/ui/components/carousel/swiper/core/loop/loopFix.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/modules/observer/observer.d.ts +6 -0
- package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js +71 -0
- package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/modules/resize/resize.d.ts +5 -0
- package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js +71 -0
- package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/index.d.ts +17 -0
- package/dist/ui/components/carousel/swiper/core/slide/index.js +22 -0
- package/dist/ui/components/carousel/swiper/core/slide/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideNext.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideNext.js +38 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideNext.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slidePrev.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js +69 -0
- package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideReset.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideReset.js +15 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideReset.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideTo.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideTo.js +160 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideTo.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js +46 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js +40 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js +84 -0
- package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/index.d.ts +9 -0
- package/dist/ui/components/carousel/swiper/core/transition/index.js +14 -0
- package/dist/ui/components/carousel/swiper/core/transition/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/setTransition.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/setTransition.js +12 -0
- package/dist/ui/components/carousel/swiper/core/transition/setTransition.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.d.ts +6 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js +31 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js +18 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionStart.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js +19 -0
- package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/getTranslate.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js +21 -0
- package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/index.d.ts +13 -0
- package/dist/ui/components/carousel/swiper/core/translate/index.js +18 -0
- package/dist/ui/components/carousel/swiper/core/translate/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js +7 -0
- package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/minTranslate.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js +7 -0
- package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/setTranslate.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js +48 -0
- package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/translateTo.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/translate/translateTo.js +81 -0
- package/dist/ui/components/carousel/swiper/core/translate/translateTo.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/index.d.ts +21 -0
- package/dist/ui/components/carousel/swiper/core/update/index.js +26 -0
- package/dist/ui/components/carousel/swiper/core/update/index.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.d.ts +2 -0
- package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js +125 -0
- package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js +52 -0
- package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js +55 -0
- package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateProgress.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateProgress.js +67 -0
- package/dist/ui/components/carousel/swiper/core/update/updateProgress.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSize.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSize.js +45 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSize.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlides.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlides.js +306 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlides.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js +69 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js +20 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js.map +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.d.ts +1 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js +62 -0
- package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js.map +1 -0
- package/dist/ui/components/carousel/swiper/react/swiper-slide.js +1 -1
- package/dist/ui/components/carousel/swiper/react/swiper.js +6 -6
- package/package.json +1 -1
|
@@ -19,19 +19,19 @@ var utils_1 = require("../shared/utils.js");
|
|
|
19
19
|
var get_support_1 = require("../shared/get-support.js");
|
|
20
20
|
var get_device_1 = require("../shared/get-device.js");
|
|
21
21
|
var get_browser_1 = require("../shared/get-browser.js");
|
|
22
|
-
var resize_1 = __importDefault(require("./modules/resize/resize"));
|
|
23
|
-
var observer_1 = __importDefault(require("./modules/observer/observer"));
|
|
22
|
+
var resize_1 = __importDefault(require("./modules/resize/resize.js"));
|
|
23
|
+
var observer_1 = __importDefault(require("./modules/observer/observer.js"));
|
|
24
24
|
var events_emitter_1 = __importDefault(require("./events-emitter.js"));
|
|
25
|
-
var index_1 = __importDefault(require("./update/index"));
|
|
26
|
-
var index_2 = __importDefault(require("./translate/index"));
|
|
27
|
-
var index_3 = __importDefault(require("./transition/index"));
|
|
28
|
-
var index_4 = __importDefault(require("./slide/index"));
|
|
29
|
-
var index_5 = __importDefault(require("./loop/index"));
|
|
30
|
-
var index_6 = __importDefault(require("./grab-cursor/index"));
|
|
31
|
-
var index_7 = __importDefault(require("./events/index"));
|
|
32
|
-
var index_8 = __importDefault(require("./breakpoints/index"));
|
|
33
|
-
var index_9 = __importDefault(require("./classes/index"));
|
|
34
|
-
var index_10 = __importDefault(require("./check-overflow/index"));
|
|
25
|
+
var index_1 = __importDefault(require("./update/index.js"));
|
|
26
|
+
var index_2 = __importDefault(require("./translate/index.js"));
|
|
27
|
+
var index_3 = __importDefault(require("./transition/index.js"));
|
|
28
|
+
var index_4 = __importDefault(require("./slide/index.js"));
|
|
29
|
+
var index_5 = __importDefault(require("./loop/index.js"));
|
|
30
|
+
var index_6 = __importDefault(require("./grab-cursor/index.js"));
|
|
31
|
+
var index_7 = __importDefault(require("./events/index.js"));
|
|
32
|
+
var index_8 = __importDefault(require("./breakpoints/index.js"));
|
|
33
|
+
var index_9 = __importDefault(require("./classes/index.js"));
|
|
34
|
+
var index_10 = __importDefault(require("./check-overflow/index.js"));
|
|
35
35
|
var defaults_1 = __importDefault(require("./defaults.js"));
|
|
36
36
|
var moduleExtendParams_1 = __importDefault(require("./moduleExtendParams.js"));
|
|
37
37
|
var process_lazy_preloader_1 = require("../shared/process-lazy-preloader.js");
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var ssr_window_1 = require("ssr-window");
|
|
7
|
+
var onTouchStart_1 = __importDefault(require("./onTouchStart.js"));
|
|
8
|
+
var onTouchMove_1 = __importDefault(require("./onTouchMove.js"));
|
|
9
|
+
var onTouchEnd_1 = __importDefault(require("./onTouchEnd.js"));
|
|
10
|
+
var onResize_1 = __importDefault(require("./onResize.js"));
|
|
11
|
+
var onClick_1 = __importDefault(require("./onClick.js"));
|
|
12
|
+
var onScroll_1 = __importDefault(require("./onScroll.js"));
|
|
13
|
+
var onLoad_1 = __importDefault(require("./onLoad.js"));
|
|
14
|
+
var onDocumentTouchStart_1 = __importDefault(require("./onDocumentTouchStart.js"));
|
|
15
|
+
var events = function (swiper, method) {
|
|
16
|
+
var document = (0, ssr_window_1.getDocument)();
|
|
17
|
+
var params = swiper.params, el = swiper.el, wrapperEl = swiper.wrapperEl, device = swiper.device;
|
|
18
|
+
var capture = !!params.nested;
|
|
19
|
+
var domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';
|
|
20
|
+
var swiperMethod = method;
|
|
21
|
+
if (!el || typeof el === 'string')
|
|
22
|
+
return;
|
|
23
|
+
// Touch Events
|
|
24
|
+
document[domMethod]('touchstart', swiper.onDocumentTouchStart, { passive: false, capture: capture });
|
|
25
|
+
el[domMethod]('touchstart', swiper.onTouchStart, { passive: false });
|
|
26
|
+
el[domMethod]('pointerdown', swiper.onTouchStart, { passive: false });
|
|
27
|
+
document[domMethod]('touchmove', swiper.onTouchMove, { passive: false, capture: capture });
|
|
28
|
+
document[domMethod]('pointermove', swiper.onTouchMove, { passive: false, capture: capture });
|
|
29
|
+
document[domMethod]('touchend', swiper.onTouchEnd, { passive: true });
|
|
30
|
+
document[domMethod]('pointerup', swiper.onTouchEnd, { passive: true });
|
|
31
|
+
document[domMethod]('pointercancel', swiper.onTouchEnd, { passive: true });
|
|
32
|
+
document[domMethod]('touchcancel', swiper.onTouchEnd, { passive: true });
|
|
33
|
+
document[domMethod]('pointerout', swiper.onTouchEnd, { passive: true });
|
|
34
|
+
document[domMethod]('pointerleave', swiper.onTouchEnd, { passive: true });
|
|
35
|
+
document[domMethod]('contextmenu', swiper.onTouchEnd, { passive: true });
|
|
36
|
+
// Prevent Links Clicks
|
|
37
|
+
if (params.preventClicks || params.preventClicksPropagation) {
|
|
38
|
+
el[domMethod]('click', swiper.onClick, true);
|
|
39
|
+
}
|
|
40
|
+
if (params.cssMode) {
|
|
41
|
+
wrapperEl[domMethod]('scroll', swiper.onScroll);
|
|
42
|
+
}
|
|
43
|
+
// Resize handler
|
|
44
|
+
if (params.updateOnWindowResize) {
|
|
45
|
+
swiper[swiperMethod](device.ios || device.android
|
|
46
|
+
? 'resize orientationchange observerUpdate'
|
|
47
|
+
: 'resize observerUpdate', onResize_1.default, true);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
swiper[swiperMethod]('observerUpdate', onResize_1.default, true);
|
|
51
|
+
}
|
|
52
|
+
// Images loader
|
|
53
|
+
el[domMethod]('load', swiper.onLoad, { capture: true });
|
|
54
|
+
};
|
|
55
|
+
function attachEvents() {
|
|
56
|
+
var swiper = this;
|
|
57
|
+
var params = swiper.params;
|
|
58
|
+
swiper.onTouchStart = onTouchStart_1.default.bind(swiper);
|
|
59
|
+
swiper.onTouchMove = onTouchMove_1.default.bind(swiper);
|
|
60
|
+
swiper.onTouchEnd = onTouchEnd_1.default.bind(swiper);
|
|
61
|
+
swiper.onDocumentTouchStart = onDocumentTouchStart_1.default.bind(swiper);
|
|
62
|
+
if (params.cssMode) {
|
|
63
|
+
swiper.onScroll = onScroll_1.default.bind(swiper);
|
|
64
|
+
}
|
|
65
|
+
swiper.onClick = onClick_1.default.bind(swiper);
|
|
66
|
+
swiper.onLoad = onLoad_1.default.bind(swiper);
|
|
67
|
+
events(swiper, 'on');
|
|
68
|
+
}
|
|
69
|
+
function detachEvents() {
|
|
70
|
+
var swiper = this;
|
|
71
|
+
events(swiper, 'off');
|
|
72
|
+
}
|
|
73
|
+
exports.default = {
|
|
74
|
+
attachEvents: attachEvents,
|
|
75
|
+
detachEvents: detachEvents,
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/index.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAyC;AAEzC,gEAA0C;AAC1C,8DAAwC;AACxC,4DAAsC;AACtC,wDAAkC;AAClC,sDAAgC;AAChC,wDAAkC;AAClC,oDAA8B;AAC9B,gFAA0D;AAE1D,IAAM,MAAM,GAAG,UAAC,MAAM,EAAE,MAAM;IAC5B,IAAM,QAAQ,GAAG,IAAA,wBAAW,GAAE,CAAC;IACvB,IAAA,MAAM,GAA4B,MAAM,OAAlC,EAAE,EAAE,GAAwB,MAAM,GAA9B,EAAE,SAAS,GAAa,MAAM,UAAnB,EAAE,MAAM,GAAK,MAAM,OAAX,CAAY;IACjD,IAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,MA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AAC;AAC1D,CAAC,CAAC;AAEF,SAAS,YAAY;IACnB,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,MAAM,GAAK,MAAM,OAAX,CAAY;IAE1B,MAAM,CAAC,YAAY,GAAG,sBAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,CAAC,WAAW,GAAG,qBAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,CAAC,UAAU,GAAG,oBAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,CAAC,oBAAoB,GAAG,8BAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEhE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,CAAC,QAAQ,GAAG,kBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,iBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,MAAM,GAAG,gBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEpC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACvB,CAAC;AAED,SAAS,YAAY;IACnB,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACxB,CAAC;AAED,kBAAe;IACb,YAAY,cAAA;IACZ,YAAY,cAAA;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onClick(e: any): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function onClick(e) {
|
|
4
|
+
var swiper = this;
|
|
5
|
+
if (!swiper.enabled)
|
|
6
|
+
return;
|
|
7
|
+
if (!swiper.allowClick) {
|
|
8
|
+
if (swiper.params.preventClicks)
|
|
9
|
+
e.preventDefault();
|
|
10
|
+
if (swiper.params.preventClicksPropagation && swiper.animating) {
|
|
11
|
+
e.stopPropagation();
|
|
12
|
+
e.stopImmediatePropagation();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.default = onClick;
|
|
17
|
+
//# sourceMappingURL=onClick.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onClick.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onClick.tsx"],"names":[],"mappings":";;AAAA,SAAwB,OAAO,CAAC,CAAC;IAC/B,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO;IAC5B,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa;YAAE,CAAC,CAAC,cAAc,EAAE,CAAC;QACpD,IAAI,MAAM,CAAC,MAAM,CAAC,wBAAwB,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YAC/D,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,CAAC,CAAC,wBAAwB,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;AACH,CAAC;AAVD,0BAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onDocumentTouchStart(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function onDocumentTouchStart() {
|
|
4
|
+
var swiper = this;
|
|
5
|
+
if (swiper.documentTouchHandlerProceeded)
|
|
6
|
+
return;
|
|
7
|
+
swiper.documentTouchHandlerProceeded = true;
|
|
8
|
+
if (swiper.params.touchReleaseOnEdges) {
|
|
9
|
+
swiper.el.style.touchAction = 'auto';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = onDocumentTouchStart;
|
|
13
|
+
//# sourceMappingURL=onDocumentTouchStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onDocumentTouchStart.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onDocumentTouchStart.tsx"],"names":[],"mappings":";;AAAA,SAAwB,oBAAoB;IAC1C,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,MAAM,CAAC,6BAA6B;QAAE,OAAO;IACjD,MAAM,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAC5C,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACtC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC;IACvC,CAAC;AACH,CAAC;AAPD,uCAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onLoad(e: any): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var process_lazy_preloader_1 = require("../../shared/process-lazy-preloader.js");
|
|
4
|
+
function onLoad(e) {
|
|
5
|
+
var swiper = this;
|
|
6
|
+
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, e.target);
|
|
7
|
+
if (swiper.params.cssMode ||
|
|
8
|
+
(swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
swiper.update();
|
|
12
|
+
}
|
|
13
|
+
exports.default = onLoad;
|
|
14
|
+
//# sourceMappingURL=onLoad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onLoad.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onLoad.tsx"],"names":[],"mappings":";;AAAA,8EAA2E;AAE3E,SAAwB,MAAM,CAAC,CAAC;IAC9B,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAA,6CAAoB,EAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACvC,IACE,MAAM,CAAC,MAAM,CAAC,OAAO;QACrB,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EACrE,CAAC;QACD,OAAO;IACT,CAAC;IACD,MAAM,CAAC,MAAM,EAAE,CAAC;AAClB,CAAC;AAVD,yBAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onResize(): void;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function onResize() {
|
|
4
|
+
var swiper = this;
|
|
5
|
+
var params = swiper.params, el = swiper.el;
|
|
6
|
+
if (el && el.offsetWidth === 0)
|
|
7
|
+
return;
|
|
8
|
+
// Breakpoints
|
|
9
|
+
if (params.breakpoints) {
|
|
10
|
+
swiper.setBreakpoint();
|
|
11
|
+
}
|
|
12
|
+
// Save locks
|
|
13
|
+
var allowSlideNext = swiper.allowSlideNext, allowSlidePrev = swiper.allowSlidePrev, snapGrid = swiper.snapGrid;
|
|
14
|
+
var isVirtual = swiper.virtual && swiper.params.virtual.enabled;
|
|
15
|
+
// Disable locks on resize
|
|
16
|
+
swiper.allowSlideNext = true;
|
|
17
|
+
swiper.allowSlidePrev = true;
|
|
18
|
+
swiper.updateSize();
|
|
19
|
+
swiper.updateSlides();
|
|
20
|
+
swiper.updateSlidesClasses();
|
|
21
|
+
var isVirtualLoop = isVirtual && params.loop;
|
|
22
|
+
if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) &&
|
|
23
|
+
swiper.isEnd &&
|
|
24
|
+
!swiper.isBeginning &&
|
|
25
|
+
!swiper.params.centeredSlides &&
|
|
26
|
+
!isVirtualLoop) {
|
|
27
|
+
swiper.slideTo(swiper.slides.length - 1, 0, false, true);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (swiper.params.loop && !isVirtual) {
|
|
31
|
+
swiper.slideToLoop(swiper.realIndex, 0, false, true);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
swiper.slideTo(swiper.activeIndex, 0, false, true);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
|
|
38
|
+
clearTimeout(swiper.autoplay.resizeTimeout);
|
|
39
|
+
swiper.autoplay.resizeTimeout = setTimeout(function () {
|
|
40
|
+
if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
|
|
41
|
+
swiper.autoplay.resume();
|
|
42
|
+
}
|
|
43
|
+
}, 500);
|
|
44
|
+
}
|
|
45
|
+
// Return locks after resize
|
|
46
|
+
swiper.allowSlidePrev = allowSlidePrev;
|
|
47
|
+
swiper.allowSlideNext = allowSlideNext;
|
|
48
|
+
if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {
|
|
49
|
+
swiper.checkOverflow();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = onResize;
|
|
53
|
+
//# sourceMappingURL=onResize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onResize.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onResize.tsx"],"names":[],"mappings":";;AAAA,SAAwB,QAAQ;IAC9B,IAAM,MAAM,GAAG,IAAI,CAAC;IAEZ,IAAA,MAAM,GAAS,MAAM,OAAf,EAAE,EAAE,GAAK,MAAM,GAAX,CAAY;IAE9B,IAAI,EAAE,IAAI,EAAE,CAAC,WAAW,KAAK,CAAC;QAAE,OAAO;IAEvC,cAAc;IACd,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACvB,MAAM,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC;IAED,aAAa;IACL,IAAA,cAAc,GAA+B,MAAM,eAArC,EAAE,cAAc,GAAe,MAAM,eAArB,EAAE,QAAQ,GAAK,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C,CAAC;QAC5C,MAAM,CAAC,QAAQ,CAAC,aAAa,GAAG,UAAU,CAAC;YACzC,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACzE,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC3B,CAAC;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;IACD,4BAA4B;IAC5B,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;IAEvC,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,IAAI,QAAQ,KAAK,MAAM,CAAC,QAAQ,EAAE,CAAC;QAChE,MAAM,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC;AACH,CAAC;AAzDD,2BAyDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onScroll(): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function onScroll() {
|
|
4
|
+
var swiper = this;
|
|
5
|
+
var wrapperEl = swiper.wrapperEl, rtlTranslate = swiper.rtlTranslate, enabled = swiper.enabled;
|
|
6
|
+
if (!enabled)
|
|
7
|
+
return;
|
|
8
|
+
swiper.previousTranslate = swiper.translate;
|
|
9
|
+
if (swiper.isHorizontal()) {
|
|
10
|
+
swiper.translate = -wrapperEl.scrollLeft;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
swiper.translate = -wrapperEl.scrollTop;
|
|
14
|
+
}
|
|
15
|
+
// eslint-disable-next-line
|
|
16
|
+
if (swiper.translate === 0)
|
|
17
|
+
swiper.translate = 0;
|
|
18
|
+
swiper.updateActiveIndex();
|
|
19
|
+
swiper.updateSlidesClasses();
|
|
20
|
+
var newProgress;
|
|
21
|
+
var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
|
|
22
|
+
if (translatesDiff === 0) {
|
|
23
|
+
newProgress = 0;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;
|
|
27
|
+
}
|
|
28
|
+
if (newProgress !== swiper.progress) {
|
|
29
|
+
swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);
|
|
30
|
+
}
|
|
31
|
+
swiper.emit('setTranslate', swiper.translate, false);
|
|
32
|
+
}
|
|
33
|
+
exports.default = onScroll;
|
|
34
|
+
//# sourceMappingURL=onScroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onScroll.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onScroll.tsx"],"names":[],"mappings":";;AAAA,SAAwB,QAAQ;IAC9B,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,SAAS,GAA4B,MAAM,UAAlC,EAAE,YAAY,GAAc,MAAM,aAApB,EAAE,OAAO,GAAK,MAAM,QAAX,CAAY;IACpD,IAAI,CAAC,OAAO;QAAE,OAAO;IACrB,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5C,IAAI,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC;QAC1B,MAAM,CAAC,SAAS,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC;IAC3C,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,SAAS,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC;IAC1C,CAAC;IACD,2BAA2B;IAC3B,IAAI,MAAM,CAAC,SAAS,KAAK,CAAC;QAAE,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC;IAEjD,MAAM,CAAC,iBAAiB,EAAE,CAAC;IAC3B,MAAM,CAAC,mBAAmB,EAAE,CAAC;IAE7B,IAAI,WAAW,CAAC;IAChB,IAAM,cAAc,GAAG,MAAM,CAAC,YAAY,EAAE,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;IACrE,IAAI,cAAc,KAAK,CAAC,EAAE,CAAC;QACzB,WAAW,GAAG,CAAC,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC,GAAG,cAAc,CAAC;IAC5E,CAAC;IACD,IAAI,WAAW,KAAK,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AA5BD,2BA4BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function onTouchEnd(event: any): void;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
var utils_1 = require("../../shared/utils.js");
|
|
13
|
+
function onTouchEnd(event) {
|
|
14
|
+
var swiper = this;
|
|
15
|
+
var data = swiper.touchEventsData;
|
|
16
|
+
var e = event;
|
|
17
|
+
if (e.originalEvent)
|
|
18
|
+
e = e.originalEvent;
|
|
19
|
+
var targetTouch;
|
|
20
|
+
var isTouchEvent = e.type === 'touchend' || e.type === 'touchcancel';
|
|
21
|
+
if (!isTouchEvent) {
|
|
22
|
+
if (data.touchId !== null)
|
|
23
|
+
return; // return from pointer if we use touch
|
|
24
|
+
if (e.pointerId !== data.pointerId)
|
|
25
|
+
return;
|
|
26
|
+
targetTouch = e;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
targetTouch = __spreadArray([], e.changedTouches, true).filter(function (t) { return t.identifier === data.touchId; })[0];
|
|
30
|
+
if (!targetTouch || targetTouch.identifier !== data.touchId)
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (['pointercancel', 'pointerout', 'pointerleave', 'contextmenu'].includes(e.type)) {
|
|
34
|
+
var proceed = ['pointercancel', 'contextmenu'].includes(e.type) &&
|
|
35
|
+
(swiper.browser.isSafari || swiper.browser.isWebView);
|
|
36
|
+
if (!proceed) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
data.pointerId = null;
|
|
41
|
+
data.touchId = null;
|
|
42
|
+
var params = swiper.params, touches = swiper.touches, rtl = swiper.rtlTranslate, slidesGrid = swiper.slidesGrid, enabled = swiper.enabled;
|
|
43
|
+
if (!enabled)
|
|
44
|
+
return;
|
|
45
|
+
if (!params.simulateTouch && e.pointerType === 'mouse')
|
|
46
|
+
return;
|
|
47
|
+
if (data.allowTouchCallbacks) {
|
|
48
|
+
swiper.emit('touchEnd', e);
|
|
49
|
+
}
|
|
50
|
+
data.allowTouchCallbacks = false;
|
|
51
|
+
if (!data.isTouched) {
|
|
52
|
+
if (data.isMoved && params.grabCursor) {
|
|
53
|
+
swiper.setGrabCursor(false);
|
|
54
|
+
}
|
|
55
|
+
data.isMoved = false;
|
|
56
|
+
data.startMoving = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// Return Grab Cursor
|
|
60
|
+
if (params.grabCursor &&
|
|
61
|
+
data.isMoved &&
|
|
62
|
+
data.isTouched &&
|
|
63
|
+
(swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
|
|
64
|
+
swiper.setGrabCursor(false);
|
|
65
|
+
}
|
|
66
|
+
// Time diff
|
|
67
|
+
var touchEndTime = (0, utils_1.now)();
|
|
68
|
+
var timeDiff = touchEndTime - data.touchStartTime;
|
|
69
|
+
// Tap, doubleTap, Click
|
|
70
|
+
if (swiper.allowClick) {
|
|
71
|
+
var pathTree = e.path || (e.composedPath && e.composedPath());
|
|
72
|
+
swiper.updateClickedSlide((pathTree && pathTree[0]) || e.target, pathTree);
|
|
73
|
+
swiper.emit('tap click', e);
|
|
74
|
+
if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {
|
|
75
|
+
swiper.emit('doubleTap doubleClick', e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
data.lastClickTime = (0, utils_1.now)();
|
|
79
|
+
(0, utils_1.nextTick)(function () {
|
|
80
|
+
if (!swiper.destroyed)
|
|
81
|
+
swiper.allowClick = true;
|
|
82
|
+
});
|
|
83
|
+
if (!data.isTouched ||
|
|
84
|
+
!data.isMoved ||
|
|
85
|
+
!swiper.swipeDirection ||
|
|
86
|
+
(touches.diff === 0 && !data.loopSwapReset) ||
|
|
87
|
+
(data.currentTranslate === data.startTranslate && !data.loopSwapReset)) {
|
|
88
|
+
data.isTouched = false;
|
|
89
|
+
data.isMoved = false;
|
|
90
|
+
data.startMoving = false;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
data.isTouched = false;
|
|
94
|
+
data.isMoved = false;
|
|
95
|
+
data.startMoving = false;
|
|
96
|
+
var currentPos;
|
|
97
|
+
if (params.followFinger) {
|
|
98
|
+
currentPos = rtl ? swiper.translate : -swiper.translate;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
currentPos = -data.currentTranslate;
|
|
102
|
+
}
|
|
103
|
+
if (params.cssMode) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (params.freeMode && params.freeMode.enabled) {
|
|
107
|
+
swiper.freeMode.onTouchEnd({ currentPos: currentPos });
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
// Find current slide
|
|
111
|
+
var swipeToLast = currentPos >= -swiper.maxTranslate() && !swiper.params.loop;
|
|
112
|
+
var stopIndex = 0;
|
|
113
|
+
var groupSize = swiper.slidesSizesGrid[0];
|
|
114
|
+
for (var i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {
|
|
115
|
+
var increment_1 = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
|
|
116
|
+
if (typeof slidesGrid[i + increment_1] !== 'undefined') {
|
|
117
|
+
if (swipeToLast || (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment_1])) {
|
|
118
|
+
stopIndex = i;
|
|
119
|
+
groupSize = slidesGrid[i + increment_1] - slidesGrid[i];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else if (swipeToLast || currentPos >= slidesGrid[i]) {
|
|
123
|
+
stopIndex = i;
|
|
124
|
+
groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
var rewindFirstIndex = null;
|
|
128
|
+
var rewindLastIndex = null;
|
|
129
|
+
if (params.rewind) {
|
|
130
|
+
if (swiper.isBeginning) {
|
|
131
|
+
rewindLastIndex =
|
|
132
|
+
params.virtual && params.virtual.enabled && swiper.virtual
|
|
133
|
+
? swiper.virtual.slides.length - 1
|
|
134
|
+
: swiper.slides.length - 1;
|
|
135
|
+
}
|
|
136
|
+
else if (swiper.isEnd) {
|
|
137
|
+
rewindFirstIndex = 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Find current slide size
|
|
141
|
+
var ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;
|
|
142
|
+
var increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
|
|
143
|
+
if (timeDiff > params.longSwipesMs) {
|
|
144
|
+
// Long touches
|
|
145
|
+
if (!params.longSwipes) {
|
|
146
|
+
swiper.slideTo(swiper.activeIndex);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (swiper.swipeDirection === 'next') {
|
|
150
|
+
if (ratio >= params.longSwipesRatio)
|
|
151
|
+
swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);
|
|
152
|
+
else
|
|
153
|
+
swiper.slideTo(stopIndex);
|
|
154
|
+
}
|
|
155
|
+
if (swiper.swipeDirection === 'prev') {
|
|
156
|
+
if (ratio > 1 - params.longSwipesRatio) {
|
|
157
|
+
swiper.slideTo(stopIndex + increment);
|
|
158
|
+
}
|
|
159
|
+
else if (rewindLastIndex !== null &&
|
|
160
|
+
ratio < 0 &&
|
|
161
|
+
Math.abs(ratio) > params.longSwipesRatio) {
|
|
162
|
+
swiper.slideTo(rewindLastIndex);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
swiper.slideTo(stopIndex);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
// Short swipes
|
|
171
|
+
if (!params.shortSwipes) {
|
|
172
|
+
swiper.slideTo(swiper.activeIndex);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
var isNavButtonTarget = swiper.navigation &&
|
|
176
|
+
(e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);
|
|
177
|
+
if (!isNavButtonTarget) {
|
|
178
|
+
if (swiper.swipeDirection === 'next') {
|
|
179
|
+
swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);
|
|
180
|
+
}
|
|
181
|
+
if (swiper.swipeDirection === 'prev') {
|
|
182
|
+
swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
else if (e.target === swiper.navigation.nextEl) {
|
|
186
|
+
swiper.slideTo(stopIndex + increment);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
swiper.slideTo(stopIndex);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.default = onTouchEnd;
|
|
194
|
+
//# sourceMappingURL=onTouchEnd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onTouchEnd.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/events/onTouchEnd.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAAmD;AAEnD,SAAwB,UAAU,CAAC,KAAK;IACtC,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAM,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC;IAEpC,IAAI,CAAC,GAAG,KAAK,CAAC;IACd,IAAI,CAAC,CAAC,aAAa;QAAE,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC;IACzC,IAAI,WAAW,CAAC;IAChB,IAAM,YAAY,GAAG,CAAC,CAAC,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa,CAAC;IACvE,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI;YAAE,OAAO,CAAC,sCAAsC;QACzE,IAAI,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS;YAAE,OAAO;QAC3C,WAAW,GAAG,CAAC,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,kBAAI,CAAC,CAAC,cAAc,QAAE,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,EAA7B,CAA6B,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO;YAAE,OAAO;IACtE,CAAC;IAED,IAAI,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,CAA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