@gem-sdk/swiper 0.0.8 → 0.0.10
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/package.json +2 -2
- package/shared/swiper-core.min.mjs +1 -1
- package/shared/swiper-core.min.mjs.map +1 -1
- package/shared/swiper-core.mjs +61 -1
- package/swiper-bundle.css +2 -2
- package/swiper-bundle.js +65 -5
- package/swiper-bundle.min.css +2 -2
- package/swiper-bundle.min.js +3 -3
- package/swiper-bundle.min.js.map +1 -1
- package/swiper-bundle.min.mjs +2 -2
- package/swiper-bundle.mjs +2 -2
- package/swiper-effect-utils.min.mjs +2 -2
- package/swiper-effect-utils.mjs +2 -2
- package/swiper-element-bundle.js +67 -7
- package/swiper-element-bundle.min.js +3 -3
- package/swiper-element-bundle.min.js.map +1 -1
- package/swiper-element-bundle.min.mjs +2 -2
- package/swiper-element-bundle.mjs +2 -2
- package/swiper-element.js +65 -5
- package/swiper-element.min.js +3 -3
- package/swiper-element.min.js.map +1 -1
- package/swiper-element.min.mjs +2 -2
- package/swiper-element.mjs +2 -2
- package/swiper-react.mjs +2 -2
- package/swiper-vue.mjs +2 -2
- package/swiper.css +2 -2
- package/swiper.js +63 -3
- package/swiper.less +2 -2
- package/swiper.min.css +2 -2
- package/swiper.min.js +3 -3
- package/swiper.min.js.map +1 -1
- package/swiper.min.mjs +2 -2
- package/swiper.mjs +2 -2
- package/swiper.scss +2 -2
package/swiper-bundle.min.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 0.0.
|
|
2
|
+
* Swiper 0.0.10
|
|
3
3
|
* Gem SDK - Swiper, Customized of swiper
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 23, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import{S as Swiper}from"./shared/swiper-core.min.mjs";import Virtual from"./modules/virtual.min.mjs";import Keyboard from"./modules/keyboard.min.mjs";import Mousewheel from"./modules/mousewheel.min.mjs";import Navigation from"./modules/navigation.min.mjs";import Pagination from"./modules/pagination.min.mjs";import Scrollbar from"./modules/scrollbar.min.mjs";import Parallax from"./modules/parallax.min.mjs";import Zoom from"./modules/zoom.min.mjs";import Controller from"./modules/controller.min.mjs";import A11y from"./modules/a11y.min.mjs";import History from"./modules/history.min.mjs";import HashNavigation from"./modules/hash-navigation.min.mjs";import Autoplay from"./modules/autoplay.min.mjs";import Thumb from"./modules/thumbs.min.mjs";import freeMode from"./modules/free-mode.min.mjs";import Grid from"./modules/grid.min.mjs";import Manipulation from"./modules/manipulation.min.mjs";import EffectFade from"./modules/effect-fade.min.mjs";import EffectCube from"./modules/effect-cube.min.mjs";import EffectFlip from"./modules/effect-flip.min.mjs";import EffectCoverflow from"./modules/effect-coverflow.min.mjs";import EffectCreative from"./modules/effect-creative.min.mjs";import EffectCards from"./modules/effect-cards.min.mjs";const modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,EffectCoverflow,EffectCreative,EffectCards];Swiper.use(modules);export{Swiper,Swiper as default};
|
package/swiper-bundle.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 0.0.
|
|
2
|
+
* Swiper 0.0.10
|
|
3
3
|
* Gem SDK - Swiper, Customized of swiper
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 23, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { S as Swiper } from './shared/swiper-core.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 0.0.
|
|
2
|
+
* Swiper 0.0.10
|
|
3
3
|
* Gem SDK - Swiper, Customized of swiper
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 23, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
export{c as createShadow}from"./shared/create-shadow.min.mjs";export{e as effectInit}from"./shared/effect-init.min.mjs";export{e as effectTarget}from"./shared/effect-target.min.mjs";export{e as effectVirtualTransitionEnd}from"./shared/effect-virtual-transition-end.min.mjs";export{g as getSlideTransformEl}from"./shared/utils.min.mjs";
|
package/swiper-effect-utils.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 0.0.
|
|
2
|
+
* Swiper 0.0.10
|
|
3
3
|
* Gem SDK - Swiper, Customized of swiper
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 23, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
export { c as createShadow } from './shared/create-shadow.mjs';
|
package/swiper-element-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper Custom Element 0.0.
|
|
2
|
+
* Swiper Custom Element 0.0.10
|
|
3
3
|
* Gem SDK - Swiper, Customized of swiper
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 23, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function () {
|
|
@@ -2226,7 +2226,27 @@
|
|
|
2226
2226
|
if (params.rewind && swiper.isEnd) {
|
|
2227
2227
|
return swiper.slideTo(0, speed, runCallbacks, internal);
|
|
2228
2228
|
}
|
|
2229
|
-
|
|
2229
|
+
requestAnimationFrame(() => {
|
|
2230
|
+
swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);
|
|
2231
|
+
const slides = swiper.slides;
|
|
2232
|
+
if (swiper.params?.isSneakPeekCenter && slides.length > 1 && (swiper.activeIndex === slides.length - 1 || swiper.isEnd)) {
|
|
2233
|
+
const lastSnapGridIndex = swiper.snapGrid.length - 1;
|
|
2234
|
+
const gap = Math.abs(swiper.snapGrid[lastSnapGridIndex] - swiper.snapGrid[lastSnapGridIndex - 1]);
|
|
2235
|
+
const swiperTranslate = structuredClone(swiper.snapGrid[lastSnapGridIndex - 1]);
|
|
2236
|
+
|
|
2237
|
+
// Move first item to last position only if active slide is the last slide
|
|
2238
|
+
const firstSlide = slides[0];
|
|
2239
|
+
firstSlide.swiperLoopMoveDOM = true;
|
|
2240
|
+
swiper.slidesEl.append(firstSlide);
|
|
2241
|
+
firstSlide.swiperLoopMoveDOM = false;
|
|
2242
|
+
swiper.setTransition(0);
|
|
2243
|
+
swiper.setTranslate(-(swiperTranslate - gap));
|
|
2244
|
+
swiper.recalcSlides();
|
|
2245
|
+
swiper.updateSlides();
|
|
2246
|
+
swiper.setTransition(swiper.params.speed);
|
|
2247
|
+
swiper.setTranslate(-swiperTranslate);
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2230
2250
|
}
|
|
2231
2251
|
|
|
2232
2252
|
/* eslint no-unused-vars: "off" */
|
|
@@ -4611,6 +4631,46 @@
|
|
|
4611
4631
|
});
|
|
4612
4632
|
return true;
|
|
4613
4633
|
}
|
|
4634
|
+
syncSneakPeekCenter(_temp) {
|
|
4635
|
+
let {
|
|
4636
|
+
speed = 0
|
|
4637
|
+
} = _temp === void 0 ? {} : _temp;
|
|
4638
|
+
const swiper = this;
|
|
4639
|
+
requestAnimationFrame(() => {
|
|
4640
|
+
const slides = swiper.slides;
|
|
4641
|
+
if (swiper.params?.isSneakPeekCenter && slides.length > 1) {
|
|
4642
|
+
const isFirstSlide = swiper.activeIndex === 0;
|
|
4643
|
+
const isLastSlide = swiper.activeIndex === slides.length - 1 || swiper.isEnd;
|
|
4644
|
+
const gap = Math.abs(swiper.snapGrid[1] - swiper.snapGrid[0]);
|
|
4645
|
+
const swiperTranslate = structuredClone(swiper.snapGrid[1]);
|
|
4646
|
+
if (isFirstSlide) {
|
|
4647
|
+
// Move last item to first position when at first slide
|
|
4648
|
+
const lastSlide = slides.at(-1);
|
|
4649
|
+
lastSlide.swiperLoopMoveDOM = true;
|
|
4650
|
+
swiper.slidesEl.prepend(lastSlide);
|
|
4651
|
+
lastSlide.swiperLoopMoveDOM = false;
|
|
4652
|
+
swiper.setTransition(0);
|
|
4653
|
+
swiper.setTranslate(-(swiperTranslate + gap));
|
|
4654
|
+
swiper.recalcSlides();
|
|
4655
|
+
swiper.updateSlides();
|
|
4656
|
+
swiper.setTransition(speed);
|
|
4657
|
+
swiper.setTranslate(-swiperTranslate);
|
|
4658
|
+
} else if (isLastSlide) {
|
|
4659
|
+
// Move first item to last position when at last slide
|
|
4660
|
+
const firstSlide = slides[0];
|
|
4661
|
+
firstSlide.swiperLoopMoveDOM = true;
|
|
4662
|
+
swiper.slidesEl.append(firstSlide);
|
|
4663
|
+
firstSlide.swiperLoopMoveDOM = false;
|
|
4664
|
+
swiper.setTransition(0);
|
|
4665
|
+
swiper.setTranslate(-(swiperTranslate - gap));
|
|
4666
|
+
swiper.recalcSlides();
|
|
4667
|
+
swiper.updateSlides();
|
|
4668
|
+
swiper.setTransition(speed);
|
|
4669
|
+
swiper.setTranslate(-swiperTranslate);
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
});
|
|
4673
|
+
}
|
|
4614
4674
|
init(el) {
|
|
4615
4675
|
const swiper = this;
|
|
4616
4676
|
if (swiper.initialized) return swiper;
|
|
@@ -10162,7 +10222,7 @@
|
|
|
10162
10222
|
}
|
|
10163
10223
|
|
|
10164
10224
|
/**
|
|
10165
|
-
* Swiper 0.0.
|
|
10225
|
+
* Swiper 0.0.10
|
|
10166
10226
|
* Gem SDK - Swiper, Customized of swiper
|
|
10167
10227
|
* https://swiperjs.com
|
|
10168
10228
|
*
|
|
@@ -10170,7 +10230,7 @@
|
|
|
10170
10230
|
*
|
|
10171
10231
|
* Released under the MIT License
|
|
10172
10232
|
*
|
|
10173
|
-
* Released on:
|
|
10233
|
+
* Released on: December 23, 2025
|
|
10174
10234
|
*/
|
|
10175
10235
|
|
|
10176
10236
|
|
|
@@ -10504,7 +10564,7 @@
|
|
|
10504
10564
|
}
|
|
10505
10565
|
|
|
10506
10566
|
/**
|
|
10507
|
-
* Swiper Custom Element 0.0.
|
|
10567
|
+
* Swiper Custom Element 0.0.10
|
|
10508
10568
|
* Gem SDK - Swiper, Customized of swiper
|
|
10509
10569
|
* https://swiperjs.com
|
|
10510
10570
|
*
|
|
@@ -10512,7 +10572,7 @@
|
|
|
10512
10572
|
*
|
|
10513
10573
|
* Released under the MIT License
|
|
10514
10574
|
*
|
|
10515
|
-
* Released on:
|
|
10575
|
+
* Released on: December 23, 2025
|
|
10516
10576
|
*/
|
|
10517
10577
|
|
|
10518
10578
|
|