infinity-forge 0.54.3 → 0.54.6
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 +14 -14
- package/dist/ui/components/carousel/swiper/core/core.js.map +1 -1
- 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 +154 -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/modules/autoplay.js +6 -6
- package/dist/ui/components/carousel/swiper/modules/autoplay.js.map +1 -1
- package/dist/ui/components/carousel/swiper/modules/virtual.js +2 -2
- package/dist/ui/components/carousel/swiper/modules/virtual.js.map +1 -1
- package/dist/ui/components/carousel/swiper/react/swiper-slide.js +1 -1
- package/dist/ui/components/carousel/swiper/react/swiper.js +6 -6
- package/dist/ui/components/carousel/swiper/shared/get-browser.js +2 -2
- package/dist/ui/components/carousel/swiper/shared/get-browser.js.map +1 -1
- package/dist/ui/components/carousel/swiper/shared/get-device.js +2 -2
- package/dist/ui/components/carousel/swiper/shared/get-device.js.map +1 -1
- package/dist/ui/components/carousel/swiper/shared/get-support.js +4 -3
- package/dist/ui/components/carousel/swiper/shared/get-support.js.map +1 -1
- package/dist/ui/components/carousel/swiper/shared/utils.js +9 -8
- package/dist/ui/components/carousel/swiper/shared/utils.js.map +1 -1
- package/dist/ui/components/carousel/swiper/ssr-window/document.d.ts +36 -0
- package/dist/ui/components/carousel/swiper/ssr-window/document.js +65 -0
- package/dist/ui/components/carousel/swiper/ssr-window/document.js.map +1 -0
- package/dist/ui/components/carousel/swiper/ssr-window/extend.d.ts +2 -0
- package/dist/ui/components/carousel/swiper/ssr-window/extend.js +24 -0
- package/dist/ui/components/carousel/swiper/ssr-window/extend.js.map +1 -0
- package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.d.ts +4 -0
- package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.js +15 -0
- package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.js.map +1 -0
- package/dist/ui/components/carousel/swiper/ssr-window/window.d.ts +72 -0
- package/dist/ui/components/carousel/swiper/ssr-window/window.js +71 -0
- package/dist/ui/components/carousel/swiper/ssr-window/window.js.map +1 -0
- package/package.json +1 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChangedParams = void 0;
|
|
4
|
+
var params_list_1 = require("./params-list.js");
|
|
5
|
+
var utils_1 = require("./utils.js");
|
|
6
|
+
function getChangedParams(swiperParams, oldParams, children, oldChildren, getKey) {
|
|
7
|
+
var keys = [];
|
|
8
|
+
if (!oldParams)
|
|
9
|
+
return keys;
|
|
10
|
+
var addKey = function (key) {
|
|
11
|
+
if (keys.indexOf(key) < 0)
|
|
12
|
+
keys.push(key);
|
|
13
|
+
};
|
|
14
|
+
if (children && oldChildren) {
|
|
15
|
+
var oldChildrenKeys = oldChildren.map(getKey);
|
|
16
|
+
var childrenKeys = children.map(getKey);
|
|
17
|
+
if (oldChildrenKeys.join('') !== childrenKeys.join(''))
|
|
18
|
+
addKey('children');
|
|
19
|
+
if (oldChildren.length !== children.length)
|
|
20
|
+
addKey('children');
|
|
21
|
+
}
|
|
22
|
+
var watchParams = params_list_1.paramsList.filter(function (key) { return key[0] === '_'; }).map(function (key) { return key.replace(/_/, ''); });
|
|
23
|
+
watchParams.forEach(function (key) {
|
|
24
|
+
if (key in swiperParams && key in oldParams) {
|
|
25
|
+
if ((0, utils_1.isObject)(swiperParams[key]) && (0, utils_1.isObject)(oldParams[key])) {
|
|
26
|
+
var newKeys = Object.keys(swiperParams[key]);
|
|
27
|
+
var oldKeys = Object.keys(oldParams[key]);
|
|
28
|
+
if (newKeys.length !== oldKeys.length) {
|
|
29
|
+
addKey(key);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
newKeys.forEach(function (newKey) {
|
|
33
|
+
if (swiperParams[key][newKey] !== oldParams[key][newKey]) {
|
|
34
|
+
addKey(key);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
oldKeys.forEach(function (oldKey) {
|
|
38
|
+
if (swiperParams[key][oldKey] !== oldParams[key][oldKey])
|
|
39
|
+
addKey(key);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else if (swiperParams[key] !== oldParams[key]) {
|
|
44
|
+
addKey(key);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return keys;
|
|
49
|
+
}
|
|
50
|
+
exports.getChangedParams = getChangedParams;
|
|
51
|
+
//# sourceMappingURL=get-changed-params.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-changed-params.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/get-changed-params.tsx"],"names":[],"mappings":";;;AAAA,6CAA2C;AAC3C,iCAAmC;AAEnC,SAAS,gBAAgB,CAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM;IAC9E,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,IAAM,MAAM,GAAG,UAAC,GAAG;QACjB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC,CAAC;IACF,IAAI,QAAQ,IAAI,WAAW,EAAE,CAAC;QAC5B,IAAM,eAAe,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAChD,IAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE,MAAM,CAAC,UAAU,CAAC,CAAC;QAC3E,IAAI,WAAW,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;YAAE,MAAM,CAAC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oBACxE,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;iBAAM,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAEQ,4CAAgB"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getParams = void 0;
|
|
27
|
+
//@ts-nocheck
|
|
28
|
+
var utils_1 = require("./utils.js");
|
|
29
|
+
var params_list_1 = require("./params-list.js");
|
|
30
|
+
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
31
|
+
var formatValue = function (val) {
|
|
32
|
+
if (parseFloat(val) === Number(val))
|
|
33
|
+
return Number(val);
|
|
34
|
+
if (val === 'true')
|
|
35
|
+
return true;
|
|
36
|
+
if (val === '')
|
|
37
|
+
return true;
|
|
38
|
+
if (val === 'false')
|
|
39
|
+
return false;
|
|
40
|
+
if (val === 'null')
|
|
41
|
+
return null;
|
|
42
|
+
if (val === 'undefined')
|
|
43
|
+
return undefined;
|
|
44
|
+
if (typeof val === 'string' && val.includes('{') && val.includes('}') && val.includes('"')) {
|
|
45
|
+
var v = void 0;
|
|
46
|
+
try {
|
|
47
|
+
v = JSON.parse(val);
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
v = val;
|
|
51
|
+
}
|
|
52
|
+
return v;
|
|
53
|
+
}
|
|
54
|
+
return val;
|
|
55
|
+
};
|
|
56
|
+
var modulesParamsList = [
|
|
57
|
+
'a11y',
|
|
58
|
+
'autoplay',
|
|
59
|
+
'controller',
|
|
60
|
+
'cards-effect',
|
|
61
|
+
'coverflow-effect',
|
|
62
|
+
'creative-effect',
|
|
63
|
+
'cube-effect',
|
|
64
|
+
'fade-effect',
|
|
65
|
+
'flip-effect',
|
|
66
|
+
'free-mode',
|
|
67
|
+
'grid',
|
|
68
|
+
'hash-navigation',
|
|
69
|
+
'history',
|
|
70
|
+
'keyboard',
|
|
71
|
+
'mousewheel',
|
|
72
|
+
'navigation',
|
|
73
|
+
'pagination',
|
|
74
|
+
'parallax',
|
|
75
|
+
'scrollbar',
|
|
76
|
+
'thumbs',
|
|
77
|
+
'virtual',
|
|
78
|
+
'zoom',
|
|
79
|
+
];
|
|
80
|
+
function getParams(element, propName, propValue) {
|
|
81
|
+
var params = {};
|
|
82
|
+
var passedParams = {};
|
|
83
|
+
(0, utils_1.extend)(params, defaults_1.default);
|
|
84
|
+
var localParamsList = __spreadArray(__spreadArray([], params_list_1.paramsList, true), ['on'], false);
|
|
85
|
+
var allowedParams = localParamsList.map(function (key) { return key.replace(/_/, ''); });
|
|
86
|
+
// First check props
|
|
87
|
+
localParamsList.forEach(function (paramName) {
|
|
88
|
+
paramName = paramName.replace('_', '');
|
|
89
|
+
if (typeof element[paramName] !== 'undefined') {
|
|
90
|
+
passedParams[paramName] = element[paramName];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
// Attributes
|
|
94
|
+
var attrsList = __spreadArray([], element.attributes, true);
|
|
95
|
+
if (typeof propName === 'string' && typeof propValue !== 'undefined') {
|
|
96
|
+
attrsList.push({ name: propName, value: (0, utils_1.isObject)(propValue) ? __assign({}, propValue) : propValue });
|
|
97
|
+
}
|
|
98
|
+
attrsList.forEach(function (attr) {
|
|
99
|
+
var moduleParam = modulesParamsList.filter(function (mParam) { return attr.name.indexOf("".concat(mParam, "-")) === 0; })[0];
|
|
100
|
+
if (moduleParam) {
|
|
101
|
+
var parentObjName = (0, utils_1.attrToProp)(moduleParam);
|
|
102
|
+
var subObjName = (0, utils_1.attrToProp)(attr.name.split("".concat(moduleParam, "-"))[1]);
|
|
103
|
+
if (typeof passedParams[parentObjName] === 'undefined')
|
|
104
|
+
passedParams[parentObjName] = {};
|
|
105
|
+
if (passedParams[parentObjName] === true) {
|
|
106
|
+
passedParams[parentObjName] = { enabled: true };
|
|
107
|
+
}
|
|
108
|
+
passedParams[parentObjName][subObjName] = formatValue(attr.value);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
var name_1 = (0, utils_1.attrToProp)(attr.name);
|
|
112
|
+
if (!allowedParams.includes(name_1))
|
|
113
|
+
return;
|
|
114
|
+
var value = formatValue(attr.value);
|
|
115
|
+
if (passedParams[name_1] && modulesParamsList.includes(attr.name) && !(0, utils_1.isObject)(value)) {
|
|
116
|
+
if (passedParams[name_1].constructor !== Object) {
|
|
117
|
+
passedParams[name_1] = {};
|
|
118
|
+
}
|
|
119
|
+
passedParams[name_1].enabled = !!value;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
passedParams[name_1] = value;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
(0, utils_1.extend)(params, passedParams);
|
|
127
|
+
if (params.navigation) {
|
|
128
|
+
params.navigation = __assign({ prevEl: '.swiper-button-prev', nextEl: '.swiper-button-next' }, (params.navigation !== true ? params.navigation : {}));
|
|
129
|
+
}
|
|
130
|
+
else if (params.navigation === false) {
|
|
131
|
+
delete params.navigation;
|
|
132
|
+
}
|
|
133
|
+
if (params.scrollbar) {
|
|
134
|
+
params.scrollbar = __assign({ el: '.swiper-scrollbar' }, (params.scrollbar !== true ? params.scrollbar : {}));
|
|
135
|
+
}
|
|
136
|
+
else if (params.scrollbar === false) {
|
|
137
|
+
delete params.scrollbar;
|
|
138
|
+
}
|
|
139
|
+
if (params.pagination) {
|
|
140
|
+
params.pagination = __assign({ el: '.swiper-pagination' }, (params.pagination !== true ? params.pagination : {}));
|
|
141
|
+
}
|
|
142
|
+
else if (params.pagination === false) {
|
|
143
|
+
delete params.pagination;
|
|
144
|
+
}
|
|
145
|
+
return { params: params, passedParams: passedParams };
|
|
146
|
+
}
|
|
147
|
+
exports.getParams = getParams;
|
|
148
|
+
//# sourceMappingURL=get-element-params.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-element-params.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/get-element-params.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,iCAAuD;AACvD,6CAA2C;AAC3C,8DAAwC;AAExC,IAAM,WAAW,GAAG,UAAC,GAAG;IACtB,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACxD,IAAI,GAAG,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAChC,IAAI,GAAG,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IAC5B,IAAI,GAAG,KAAK,OAAO;QAAE,OAAO,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AAC;SAAM,IAAI,MAAM,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,CAAC,SAAS,cACd,EAAE,EAAE,mBAAmB,IACpB,CAAC,MAAM,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CACvD,CAAC;IACJ,CAAC;SAAM,IAAI,MAAM,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;QACtC,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,CAAC,UAAU,cACf,EAAE,EAAE,oBAAoB,IACrB,CAAC,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CACzD,CAAC;IACJ,CAAC;SAAM,IAAI,MAAM,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,CAAC;IAC3B,CAAC;IACD,OAAO,EAAE,MAAM,QAAA,EAAE,YAAY,cAAA,EAAE,CAAC;AAClC,CAAC;AAEQ,8BAAS"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
exports.getParams = void 0;
|
|
7
|
+
//@ts-nocheck
|
|
8
|
+
var utils_1 = require("./utils.js");
|
|
9
|
+
var params_list_1 = require("./params-list.js");
|
|
10
|
+
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
11
|
+
function getParams(obj, splitEvents) {
|
|
12
|
+
if (obj === void 0) { obj = {}; }
|
|
13
|
+
if (splitEvents === void 0) { splitEvents = true; }
|
|
14
|
+
var params = {
|
|
15
|
+
on: {},
|
|
16
|
+
};
|
|
17
|
+
var events = {};
|
|
18
|
+
var passedParams = {};
|
|
19
|
+
(0, utils_1.extend)(params, defaults_1.default);
|
|
20
|
+
params._emitClasses = true;
|
|
21
|
+
params.init = false;
|
|
22
|
+
var rest = {};
|
|
23
|
+
var allowedParams = params_list_1.paramsList.map(function (key) { return key.replace(/_/, ''); });
|
|
24
|
+
var plainObj = Object.assign({}, obj);
|
|
25
|
+
Object.keys(plainObj).forEach(function (key) {
|
|
26
|
+
if (typeof obj[key] === 'undefined')
|
|
27
|
+
return;
|
|
28
|
+
if (allowedParams.indexOf(key) >= 0) {
|
|
29
|
+
if ((0, utils_1.isObject)(obj[key])) {
|
|
30
|
+
params[key] = {};
|
|
31
|
+
passedParams[key] = {};
|
|
32
|
+
(0, utils_1.extend)(params[key], obj[key]);
|
|
33
|
+
(0, utils_1.extend)(passedParams[key], obj[key]);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
params[key] = obj[key];
|
|
37
|
+
passedParams[key] = obj[key];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else if (key.search(/on[A-Z]/) === 0 && typeof obj[key] === 'function') {
|
|
41
|
+
if (splitEvents) {
|
|
42
|
+
events["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
params.on["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
rest[key] = obj[key];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
['navigation', 'pagination', 'scrollbar'].forEach(function (key) {
|
|
53
|
+
if (params[key] === true)
|
|
54
|
+
params[key] = {};
|
|
55
|
+
if (params[key] === false)
|
|
56
|
+
delete params[key];
|
|
57
|
+
});
|
|
58
|
+
return { params: params, passedParams: passedParams, rest: rest, events: events };
|
|
59
|
+
}
|
|
60
|
+
exports.getParams = getParams;
|
|
61
|
+
//# sourceMappingURL=get-params.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-params.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/get-params.tsx"],"names":[],"mappings":";;;;;;AAAA,aAAa;AACb,iCAA2C;AAC3C,6CAA2C;AAC3C,8DAAwC;AAExC,SAAS,SAAS,CAAC,GAAQ,EAAE,WAAkB;IAA5B,oBAAA,EAAA,QAAQ;IAAE,4BAAA,EAAA,kBAAkB;IAC7C,IAAM,MAAM,GAAG;QACb,EAAE,EAAE,EAAE;KACP,CAAC;IACF,IAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAA,cAAM,EAAC,MAAM,EAAE,kBAAQ,CAAC,CAAC;IACzB,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC;IAEpB,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,IAAM,aAAa,GAAG,wBAAU,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAApB,CAAoB,CAAC,CAAC;IACpE,IAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,UAAC,GAAG;QAChC,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,WAAW;YAAE,OAAO;QAC5C,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACpC,IAAI,IAAA,gBAAQ,EAAC,GAAG,CAAC,GAAG,CAAC,CAAC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AK,IAAI;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;QAC3C,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,KAAK;YAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,QAAA,EAAE,YAAY,cAAA,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,CAAC;AAChD,CAAC;AAEQ,8BAAS"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mountSwiper = void 0;
|
|
4
|
+
var utils_1 = require("./utils.js");
|
|
5
|
+
function mountSwiper(_a, swiperParams) {
|
|
6
|
+
var el = _a.el, nextEl = _a.nextEl, prevEl = _a.prevEl, paginationEl = _a.paginationEl, scrollbarEl = _a.scrollbarEl, swiper = _a.swiper;
|
|
7
|
+
if ((0, utils_1.needsNavigation)(swiperParams) && nextEl && prevEl) {
|
|
8
|
+
swiper.params.navigation.nextEl = nextEl;
|
|
9
|
+
swiper.originalParams.navigation.nextEl = nextEl;
|
|
10
|
+
swiper.params.navigation.prevEl = prevEl;
|
|
11
|
+
swiper.originalParams.navigation.prevEl = prevEl;
|
|
12
|
+
}
|
|
13
|
+
if ((0, utils_1.needsPagination)(swiperParams) && paginationEl) {
|
|
14
|
+
swiper.params.pagination.el = paginationEl;
|
|
15
|
+
swiper.originalParams.pagination.el = paginationEl;
|
|
16
|
+
}
|
|
17
|
+
if ((0, utils_1.needsScrollbar)(swiperParams) && scrollbarEl) {
|
|
18
|
+
swiper.params.scrollbar.el = scrollbarEl;
|
|
19
|
+
swiper.originalParams.scrollbar.el = scrollbarEl;
|
|
20
|
+
}
|
|
21
|
+
swiper.init(el);
|
|
22
|
+
}
|
|
23
|
+
exports.mountSwiper = mountSwiper;
|
|
24
|
+
//# sourceMappingURL=mount-swiper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount-swiper.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/mount-swiper.tsx"],"names":[],"mappings":";;;AAAA,iCAA2E;AAE3E,SAAS,WAAW,CAAC,EAAyD,EAAE,YAAY;QAArE,EAAE,QAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,YAAY,kBAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA;IAC1E,IAAI,IAAA,uBAAe,EAAC,YAAY,CAAC,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;QACtD,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACzC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACjD,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACzC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;IACnD,CAAC;IACD,IAAI,IAAA,uBAAe,EAAC,YAAY,CAAC,IAAI,YAAY,EAAE,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,YAAY,CAAC;QAC3C,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,GAAG,YAAY,CAAC;IACrD,CAAC;IACD,IAAI,IAAA,sBAAc,EAAC,YAAY,CAAC,IAAI,WAAW,EAAE,CAAC;QAChD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,WAAW,CAAC;QACzC,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,GAAG,WAAW,CAAC;IACnD,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AAEQ,kCAAW"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paramsList = void 0;
|
|
4
|
+
/* underscore in name -> watch for changes */
|
|
5
|
+
var paramsList = [
|
|
6
|
+
'eventsPrefix',
|
|
7
|
+
'injectStyles',
|
|
8
|
+
'injectStylesUrls',
|
|
9
|
+
'modules',
|
|
10
|
+
'init',
|
|
11
|
+
'_direction',
|
|
12
|
+
'oneWayMovement',
|
|
13
|
+
'swiperElementNodeName',
|
|
14
|
+
'touchEventsTarget',
|
|
15
|
+
'initialSlide',
|
|
16
|
+
'_speed',
|
|
17
|
+
'cssMode',
|
|
18
|
+
'updateOnWindowResize',
|
|
19
|
+
'resizeObserver',
|
|
20
|
+
'nested',
|
|
21
|
+
'focusableElements',
|
|
22
|
+
'_enabled',
|
|
23
|
+
'_width',
|
|
24
|
+
'_height',
|
|
25
|
+
'preventInteractionOnTransition',
|
|
26
|
+
'userAgent',
|
|
27
|
+
'url',
|
|
28
|
+
'_edgeSwipeDetection',
|
|
29
|
+
'_edgeSwipeThreshold',
|
|
30
|
+
'_freeMode',
|
|
31
|
+
'_autoHeight',
|
|
32
|
+
'setWrapperSize',
|
|
33
|
+
'virtualTranslate',
|
|
34
|
+
'_effect',
|
|
35
|
+
'breakpoints',
|
|
36
|
+
'breakpointsBase',
|
|
37
|
+
'_spaceBetween',
|
|
38
|
+
'_slidesPerView',
|
|
39
|
+
'maxBackfaceHiddenSlides',
|
|
40
|
+
'_grid',
|
|
41
|
+
'_slidesPerGroup',
|
|
42
|
+
'_slidesPerGroupSkip',
|
|
43
|
+
'_slidesPerGroupAuto',
|
|
44
|
+
'_centeredSlides',
|
|
45
|
+
'_centeredSlidesBounds',
|
|
46
|
+
'_slidesOffsetBefore',
|
|
47
|
+
'_slidesOffsetAfter',
|
|
48
|
+
'normalizeSlideIndex',
|
|
49
|
+
'_centerInsufficientSlides',
|
|
50
|
+
'_watchOverflow',
|
|
51
|
+
'roundLengths',
|
|
52
|
+
'touchRatio',
|
|
53
|
+
'touchAngle',
|
|
54
|
+
'simulateTouch',
|
|
55
|
+
'_shortSwipes',
|
|
56
|
+
'_longSwipes',
|
|
57
|
+
'longSwipesRatio',
|
|
58
|
+
'longSwipesMs',
|
|
59
|
+
'_followFinger',
|
|
60
|
+
'allowTouchMove',
|
|
61
|
+
'_threshold',
|
|
62
|
+
'touchMoveStopPropagation',
|
|
63
|
+
'touchStartPreventDefault',
|
|
64
|
+
'touchStartForcePreventDefault',
|
|
65
|
+
'touchReleaseOnEdges',
|
|
66
|
+
'uniqueNavElements',
|
|
67
|
+
'_resistance',
|
|
68
|
+
'_resistanceRatio',
|
|
69
|
+
'_watchSlidesProgress',
|
|
70
|
+
'_grabCursor',
|
|
71
|
+
'preventClicks',
|
|
72
|
+
'preventClicksPropagation',
|
|
73
|
+
'_slideToClickedSlide',
|
|
74
|
+
'_loop',
|
|
75
|
+
'loopAdditionalSlides',
|
|
76
|
+
'loopAddBlankSlides',
|
|
77
|
+
'loopPreventsSliding',
|
|
78
|
+
'_rewind',
|
|
79
|
+
'_allowSlidePrev',
|
|
80
|
+
'_allowSlideNext',
|
|
81
|
+
'_swipeHandler',
|
|
82
|
+
'_noSwiping',
|
|
83
|
+
'noSwipingClass',
|
|
84
|
+
'noSwipingSelector',
|
|
85
|
+
'passiveListeners',
|
|
86
|
+
'containerModifierClass',
|
|
87
|
+
'slideClass',
|
|
88
|
+
'slideActiveClass',
|
|
89
|
+
'slideVisibleClass',
|
|
90
|
+
'slideFullyVisibleClass',
|
|
91
|
+
'slideNextClass',
|
|
92
|
+
'slidePrevClass',
|
|
93
|
+
'slideBlankClass',
|
|
94
|
+
'wrapperClass',
|
|
95
|
+
'lazyPreloaderClass',
|
|
96
|
+
'lazyPreloadPrevNext',
|
|
97
|
+
'runCallbacksOnInit',
|
|
98
|
+
'observer',
|
|
99
|
+
'observeParents',
|
|
100
|
+
'observeSlideChildren',
|
|
101
|
+
// modules
|
|
102
|
+
'a11y',
|
|
103
|
+
'_autoplay',
|
|
104
|
+
'_controller',
|
|
105
|
+
'coverflowEffect',
|
|
106
|
+
'cubeEffect',
|
|
107
|
+
'fadeEffect',
|
|
108
|
+
'flipEffect',
|
|
109
|
+
'creativeEffect',
|
|
110
|
+
'cardsEffect',
|
|
111
|
+
'hashNavigation',
|
|
112
|
+
'history',
|
|
113
|
+
'keyboard',
|
|
114
|
+
'mousewheel',
|
|
115
|
+
'_navigation',
|
|
116
|
+
'_pagination',
|
|
117
|
+
'parallax',
|
|
118
|
+
'_scrollbar',
|
|
119
|
+
'_thumbs',
|
|
120
|
+
'virtual',
|
|
121
|
+
'zoom',
|
|
122
|
+
'control',
|
|
123
|
+
];
|
|
124
|
+
exports.paramsList = paramsList;
|
|
125
|
+
//# sourceMappingURL=params-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params-list.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/params-list.tsx"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,IAAM,UAAU,GAAG;IACjB,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,SAAS;IACT,MAAM;IACN,YAAY;IACZ,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;IACnB,cAAc;IACd,QAAQ;IACR,SAAS;IACT,sBAAsB;IACtB,gBAAgB;IAChB,QAAQ;IACR,mBAAmB;IACnB,UAAU;IACV,QAAQ;IACR,SAAS;IACT,gCAAgC;IAChC,WAAW;IACX,KAAK;IACL,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;IACX,aAAa;IACb,gBAAgB;IAChB,kBAAkB;IAClB,SAAS;IACT,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,yBAAyB;IACzB,OAAO;IACP,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;IACvB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,2BAA2B;IAC3B,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,0BAA0B;IAC1B,0BAA0B;IAC1B,+BAA+B;IAC/B,qBAAqB;IACrB,mBAAmB;IACnB,aAAa;IACb,kBAAkB;IAClB,sBAAsB;IACtB,aAAa;IACb,eAAe;IACf,0BAA0B;IAC1B,sBAAsB;IACtB,OAAO;IACP,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,SAAS;IACT,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,wBAAwB;IACxB,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;IACxB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,UAAU;IACV,gBAAgB;IAChB,sBAAsB;IAEtB,UAAU;IACV,MAAM;IACN,WAAW;IACX,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,gBAAgB;IAChB,SAAS;IACT,UAAU;IACV,YAAY;IACZ,aAAa;IACb,aAAa;IACb,UAAU;IACV,YAAY;IACZ,SAAS;IACT,SAAS;IACT,MAAM;IACN,SAAS;CACV,CAAC;AACO,gCAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const updateOnVirtualData: (swiper: any) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOnVirtualData = void 0;
|
|
4
|
+
var updateOnVirtualData = function (swiper) {
|
|
5
|
+
if (!swiper ||
|
|
6
|
+
swiper.destroyed ||
|
|
7
|
+
!swiper.params.virtual ||
|
|
8
|
+
(swiper.params.virtual && !swiper.params.virtual.enabled))
|
|
9
|
+
return;
|
|
10
|
+
swiper.updateSlides();
|
|
11
|
+
swiper.updateProgress();
|
|
12
|
+
swiper.updateSlidesClasses();
|
|
13
|
+
if (swiper.parallax && swiper.params.parallax && swiper.params.parallax.enabled) {
|
|
14
|
+
swiper.parallax.setTranslate();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.updateOnVirtualData = updateOnVirtualData;
|
|
18
|
+
//# sourceMappingURL=update-on-virtual-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-on-virtual-data.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/update-on-virtual-data.tsx"],"names":[],"mappings":";;;AAAO,IAAM,mBAAmB,GAAG,UAAC,MAAM;IACxC,IACE,CAAC,MAAM;QACP,MAAM,CAAC,SAAS;QAChB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO;QACtB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;QAEzD,OAAO;IACT,MAAM,CAAC,YAAY,EAAE,CAAC;IACtB,MAAM,CAAC,cAAc,EAAE,CAAC;IACxB,MAAM,CAAC,mBAAmB,EAAE,CAAC;IAC7B,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QAChF,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,mBAAmB,uBAc9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function updateSwiper({ swiper, slides, passedParams, changedParams, nextEl, prevEl, scrollbarEl, paginationEl, }: {
|
|
2
|
+
swiper: any;
|
|
3
|
+
slides: any;
|
|
4
|
+
passedParams: any;
|
|
5
|
+
changedParams: any;
|
|
6
|
+
nextEl: any;
|
|
7
|
+
prevEl: any;
|
|
8
|
+
scrollbarEl: any;
|
|
9
|
+
paginationEl: any;
|
|
10
|
+
}): void;
|
|
11
|
+
export { updateSwiper };
|