@gem-sdk/swiper 0.0.19-dev.1 → 0.0.21-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shared/swiper-core.min.mjs +1 -1
- package/shared/swiper-core.min.mjs.map +1 -1
- package/shared/swiper-core.mjs +15 -5
- package/swiper-bundle.css +2 -2
- package/swiper-bundle.js +19 -9
- 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 +21 -11
- 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 +19 -9
- 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 +17 -7
- 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.21-dev.1
|
|
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: April
|
|
10
|
+
* Released on: April 6, 2026
|
|
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.21-dev.1
|
|
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: April
|
|
10
|
+
* Released on: April 6, 2026
|
|
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.21-dev.1
|
|
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: April
|
|
10
|
+
* Released on: April 6, 2026
|
|
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.21-dev.1
|
|
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: April
|
|
10
|
+
* Released on: April 6, 2026
|
|
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.21-dev.1
|
|
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: April
|
|
10
|
+
* Released on: April 6, 2026
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function () {
|
|
@@ -666,6 +666,12 @@
|
|
|
666
666
|
const createObserver = () => {
|
|
667
667
|
if (!swiper || swiper.destroyed || !swiper.initialized) return;
|
|
668
668
|
observer = new ResizeObserver(entries => {
|
|
669
|
+
// Resize observer will triggered when it is attached and when the element is removed from DOM
|
|
670
|
+
// If element is added to the DOM, ignore this resize
|
|
671
|
+
if (!swiper.__addedToDOM__) {
|
|
672
|
+
swiper.__addedToDOM__ = true;
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
669
675
|
animationFrame = window.requestAnimationFrame(() => {
|
|
670
676
|
const {
|
|
671
677
|
width,
|
|
@@ -3707,11 +3713,11 @@
|
|
|
3707
3713
|
const window = getWindow();
|
|
3708
3714
|
const shouldUseWindowSize = base === 'window';
|
|
3709
3715
|
const containerElSize = shouldUseWindowSize ? {
|
|
3710
|
-
width: containerEl.clientWidth,
|
|
3711
|
-
height: containerEl.clientHeight
|
|
3712
|
-
} : {
|
|
3713
3716
|
width: 0,
|
|
3714
3717
|
height: 0
|
|
3718
|
+
} : {
|
|
3719
|
+
width: containerEl.clientWidth,
|
|
3720
|
+
height: containerEl.clientHeight
|
|
3715
3721
|
};
|
|
3716
3722
|
const points = Object.keys(breakpoints).map(point => {
|
|
3717
3723
|
if (typeof point === 'string' && point.indexOf('@') === 0) {
|
|
@@ -4160,7 +4166,8 @@
|
|
|
4160
4166
|
// Images
|
|
4161
4167
|
imagesToLoad: [],
|
|
4162
4168
|
imagesLoaded: 0,
|
|
4163
|
-
rtl: params?.rtl
|
|
4169
|
+
rtl: params?.rtl,
|
|
4170
|
+
__addedToDOM__: false
|
|
4164
4171
|
});
|
|
4165
4172
|
swiper.emit('_swiper');
|
|
4166
4173
|
|
|
@@ -4481,6 +4488,9 @@
|
|
|
4481
4488
|
const mounted = swiper.mount(el);
|
|
4482
4489
|
if (mounted === false) return swiper;
|
|
4483
4490
|
swiper.emit('beforeInit');
|
|
4491
|
+
console.log('Swiper pấm: ', {
|
|
4492
|
+
...this.params
|
|
4493
|
+
});
|
|
4484
4494
|
if (swiper.params.breakpoints) {
|
|
4485
4495
|
swiper.setBreakpoint();
|
|
4486
4496
|
}
|
|
@@ -4513,7 +4523,6 @@
|
|
|
4513
4523
|
});
|
|
4514
4524
|
preload(swiper);
|
|
4515
4525
|
swiper.initialized = true;
|
|
4516
|
-
|
|
4517
4526
|
// Emit
|
|
4518
4527
|
swiper.emit('init');
|
|
4519
4528
|
swiper.emit('afterInit');
|
|
@@ -4538,6 +4547,7 @@
|
|
|
4538
4547
|
}
|
|
4539
4548
|
swiper.emit('beforeDestroy');
|
|
4540
4549
|
swiper.initialized = false;
|
|
4550
|
+
swiper.__addedToDOM__ = false;
|
|
4541
4551
|
swiper.detachEvents();
|
|
4542
4552
|
if (params.loop) {
|
|
4543
4553
|
swiper.loopDestroy();
|
|
@@ -9989,7 +9999,7 @@
|
|
|
9989
9999
|
}
|
|
9990
10000
|
|
|
9991
10001
|
/**
|
|
9992
|
-
* Swiper 0.0.
|
|
10002
|
+
* Swiper 0.0.21-dev.1
|
|
9993
10003
|
* Gem SDK - Swiper, Customized of swiper
|
|
9994
10004
|
* https://swiperjs.com
|
|
9995
10005
|
*
|
|
@@ -9997,7 +10007,7 @@
|
|
|
9997
10007
|
*
|
|
9998
10008
|
* Released under the MIT License
|
|
9999
10009
|
*
|
|
10000
|
-
* Released on: April
|
|
10010
|
+
* Released on: April 6, 2026
|
|
10001
10011
|
*/
|
|
10002
10012
|
|
|
10003
10013
|
|
|
@@ -10331,7 +10341,7 @@
|
|
|
10331
10341
|
}
|
|
10332
10342
|
|
|
10333
10343
|
/**
|
|
10334
|
-
* Swiper Custom Element 0.0.
|
|
10344
|
+
* Swiper Custom Element 0.0.21-dev.1
|
|
10335
10345
|
* Gem SDK - Swiper, Customized of swiper
|
|
10336
10346
|
* https://swiperjs.com
|
|
10337
10347
|
*
|
|
@@ -10339,7 +10349,7 @@
|
|
|
10339
10349
|
*
|
|
10340
10350
|
* Released under the MIT License
|
|
10341
10351
|
*
|
|
10342
|
-
* Released on: April
|
|
10352
|
+
* Released on: April 6, 2026
|
|
10343
10353
|
*/
|
|
10344
10354
|
|
|
10345
10355
|
|