@gem-sdk/swiper 0.0.7

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.
Files changed (321) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +11 -0
  3. package/modules/a11y-element.css +9 -0
  4. package/modules/a11y-element.min.css +1 -0
  5. package/modules/a11y.css +9 -0
  6. package/modules/a11y.less +9 -0
  7. package/modules/a11y.min.css +1 -0
  8. package/modules/a11y.min.mjs +2 -0
  9. package/modules/a11y.min.mjs.map +1 -0
  10. package/modules/a11y.mjs +377 -0
  11. package/modules/a11y.scss +9 -0
  12. package/modules/autoplay-element.css +0 -0
  13. package/modules/autoplay-element.min.css +0 -0
  14. package/modules/autoplay.css +0 -0
  15. package/modules/autoplay.less +0 -0
  16. package/modules/autoplay.min.css +0 -0
  17. package/modules/autoplay.min.mjs +2 -0
  18. package/modules/autoplay.min.mjs.map +1 -0
  19. package/modules/autoplay.mjs +304 -0
  20. package/modules/autoplay.scss +0 -0
  21. package/modules/controller-element.css +0 -0
  22. package/modules/controller-element.min.css +0 -0
  23. package/modules/controller.css +0 -0
  24. package/modules/controller.less +0 -0
  25. package/modules/controller.min.css +0 -0
  26. package/modules/controller.min.mjs +2 -0
  27. package/modules/controller.min.mjs.map +1 -0
  28. package/modules/controller.mjs +191 -0
  29. package/modules/controller.scss +0 -0
  30. package/modules/effect-cards-element.css +9 -0
  31. package/modules/effect-cards-element.min.css +1 -0
  32. package/modules/effect-cards.css +9 -0
  33. package/modules/effect-cards.less +10 -0
  34. package/modules/effect-cards.min.css +1 -0
  35. package/modules/effect-cards.min.mjs +2 -0
  36. package/modules/effect-cards.min.mjs.map +1 -0
  37. package/modules/effect-cards.mjs +128 -0
  38. package/modules/effect-cards.scss +10 -0
  39. package/modules/effect-coverflow-element.css +0 -0
  40. package/modules/effect-coverflow-element.min.css +0 -0
  41. package/modules/effect-coverflow.css +0 -0
  42. package/modules/effect-coverflow.less +2 -0
  43. package/modules/effect-coverflow.min.css +0 -0
  44. package/modules/effect-coverflow.min.mjs +2 -0
  45. package/modules/effect-coverflow.min.mjs.map +1 -0
  46. package/modules/effect-coverflow.mjs +104 -0
  47. package/modules/effect-coverflow.scss +2 -0
  48. package/modules/effect-creative-element.css +6 -0
  49. package/modules/effect-creative-element.min.css +1 -0
  50. package/modules/effect-creative.css +6 -0
  51. package/modules/effect-creative.less +7 -0
  52. package/modules/effect-creative.min.css +1 -0
  53. package/modules/effect-creative.min.mjs +2 -0
  54. package/modules/effect-creative.min.mjs.map +1 -0
  55. package/modules/effect-creative.mjs +146 -0
  56. package/modules/effect-creative.scss +7 -0
  57. package/modules/effect-cube-element.css +53 -0
  58. package/modules/effect-cube-element.min.css +1 -0
  59. package/modules/effect-cube.css +62 -0
  60. package/modules/effect-cube.less +71 -0
  61. package/modules/effect-cube.min.css +1 -0
  62. package/modules/effect-cube.min.mjs +2 -0
  63. package/modules/effect-cube.min.mjs.map +1 -0
  64. package/modules/effect-cube.mjs +174 -0
  65. package/modules/effect-cube.scss +71 -0
  66. package/modules/effect-fade-element.css +16 -0
  67. package/modules/effect-fade-element.min.css +1 -0
  68. package/modules/effect-fade.css +16 -0
  69. package/modules/effect-fade.less +20 -0
  70. package/modules/effect-fade.min.css +1 -0
  71. package/modules/effect-fade.min.mjs +2 -0
  72. package/modules/effect-fade.min.mjs.map +1 -0
  73. package/modules/effect-fade.mjs +66 -0
  74. package/modules/effect-fade.scss +20 -0
  75. package/modules/effect-flip-element.css +17 -0
  76. package/modules/effect-flip-element.min.css +1 -0
  77. package/modules/effect-flip.css +26 -0
  78. package/modules/effect-flip.less +30 -0
  79. package/modules/effect-flip.min.css +1 -0
  80. package/modules/effect-flip.min.mjs +2 -0
  81. package/modules/effect-flip.min.mjs.map +1 -0
  82. package/modules/effect-flip.mjs +111 -0
  83. package/modules/effect-flip.scss +30 -0
  84. package/modules/free-mode-element.css +4 -0
  85. package/modules/free-mode-element.min.css +1 -0
  86. package/modules/free-mode.css +4 -0
  87. package/modules/free-mode.less +4 -0
  88. package/modules/free-mode.min.css +1 -0
  89. package/modules/free-mode.min.mjs +2 -0
  90. package/modules/free-mode.min.mjs.map +1 -0
  91. package/modules/free-mode.mjs +237 -0
  92. package/modules/free-mode.scss +4 -0
  93. package/modules/grid-element.css +7 -0
  94. package/modules/grid-element.min.css +1 -0
  95. package/modules/grid.css +7 -0
  96. package/modules/grid.less +7 -0
  97. package/modules/grid.min.css +1 -0
  98. package/modules/grid.min.mjs +2 -0
  99. package/modules/grid.min.mjs.map +1 -0
  100. package/modules/grid.mjs +155 -0
  101. package/modules/grid.scss +7 -0
  102. package/modules/hash-navigation-element.css +0 -0
  103. package/modules/hash-navigation-element.min.css +0 -0
  104. package/modules/hash-navigation.css +0 -0
  105. package/modules/hash-navigation.less +2 -0
  106. package/modules/hash-navigation.min.css +0 -0
  107. package/modules/hash-navigation.min.mjs +2 -0
  108. package/modules/hash-navigation.min.mjs.map +1 -0
  109. package/modules/hash-navigation.mjs +93 -0
  110. package/modules/hash-navigation.scss +0 -0
  111. package/modules/history-element.css +0 -0
  112. package/modules/history-element.min.css +0 -0
  113. package/modules/history.css +0 -0
  114. package/modules/history.less +0 -0
  115. package/modules/history.min.css +0 -0
  116. package/modules/history.min.mjs +2 -0
  117. package/modules/history.min.mjs.map +1 -0
  118. package/modules/history.mjs +142 -0
  119. package/modules/history.scss +0 -0
  120. package/modules/index.min.mjs +2 -0
  121. package/modules/index.min.mjs.map +1 -0
  122. package/modules/index.mjs +23 -0
  123. package/modules/keyboard-element.css +0 -0
  124. package/modules/keyboard-element.min.css +0 -0
  125. package/modules/keyboard.css +0 -0
  126. package/modules/keyboard.less +0 -0
  127. package/modules/keyboard.min.css +0 -0
  128. package/modules/keyboard.min.mjs +2 -0
  129. package/modules/keyboard.min.mjs.map +1 -0
  130. package/modules/keyboard.mjs +117 -0
  131. package/modules/keyboard.scss +0 -0
  132. package/modules/manipulation-element.css +0 -0
  133. package/modules/manipulation-element.min.css +0 -0
  134. package/modules/manipulation.css +0 -0
  135. package/modules/manipulation.less +0 -0
  136. package/modules/manipulation.min.css +0 -0
  137. package/modules/manipulation.min.mjs +2 -0
  138. package/modules/manipulation.min.mjs.map +1 -0
  139. package/modules/manipulation.mjs +193 -0
  140. package/modules/manipulation.scss +0 -0
  141. package/modules/mousewheel-element.css +0 -0
  142. package/modules/mousewheel-element.min.css +0 -0
  143. package/modules/mousewheel.css +0 -0
  144. package/modules/mousewheel.less +0 -0
  145. package/modules/mousewheel.min.css +0 -0
  146. package/modules/mousewheel.min.mjs +2 -0
  147. package/modules/mousewheel.min.mjs.map +1 -0
  148. package/modules/mousewheel.mjs +395 -0
  149. package/modules/mousewheel.scss +0 -0
  150. package/modules/navigation-element.css +63 -0
  151. package/modules/navigation-element.min.css +1 -0
  152. package/modules/navigation.css +86 -0
  153. package/modules/navigation.less +86 -0
  154. package/modules/navigation.min.css +1 -0
  155. package/modules/navigation.min.mjs +2 -0
  156. package/modules/navigation.min.mjs.map +1 -0
  157. package/modules/navigation.mjs +200 -0
  158. package/modules/navigation.scss +87 -0
  159. package/modules/pagination-element.css +184 -0
  160. package/modules/pagination-element.min.css +1 -0
  161. package/modules/pagination.css +184 -0
  162. package/modules/pagination.less +187 -0
  163. package/modules/pagination.min.css +1 -0
  164. package/modules/pagination.min.mjs +2 -0
  165. package/modules/pagination.min.mjs.map +1 -0
  166. package/modules/pagination.mjs +467 -0
  167. package/modules/pagination.scss +188 -0
  168. package/modules/parallax-element.css +0 -0
  169. package/modules/parallax-element.min.css +0 -0
  170. package/modules/parallax.css +0 -0
  171. package/modules/parallax.less +0 -0
  172. package/modules/parallax.min.css +0 -0
  173. package/modules/parallax.min.mjs +2 -0
  174. package/modules/parallax.min.mjs.map +1 -0
  175. package/modules/parallax.mjs +124 -0
  176. package/modules/parallax.scss +0 -0
  177. package/modules/scrollbar-element.css +58 -0
  178. package/modules/scrollbar-element.min.css +1 -0
  179. package/modules/scrollbar.css +58 -0
  180. package/modules/scrollbar.less +59 -0
  181. package/modules/scrollbar.min.css +1 -0
  182. package/modules/scrollbar.min.mjs +2 -0
  183. package/modules/scrollbar.min.mjs.map +1 -0
  184. package/modules/scrollbar.mjs +366 -0
  185. package/modules/scrollbar.scss +61 -0
  186. package/modules/thumbs-element.css +0 -0
  187. package/modules/thumbs-element.min.css +0 -0
  188. package/modules/thumbs.css +0 -0
  189. package/modules/thumbs.less +5 -0
  190. package/modules/thumbs.min.css +0 -0
  191. package/modules/thumbs.min.mjs +2 -0
  192. package/modules/thumbs.min.mjs.map +1 -0
  193. package/modules/thumbs.mjs +197 -0
  194. package/modules/thumbs.scss +5 -0
  195. package/modules/virtual-element.css +19 -0
  196. package/modules/virtual-element.min.css +1 -0
  197. package/modules/virtual.css +19 -0
  198. package/modules/virtual.less +26 -0
  199. package/modules/virtual.min.css +1 -0
  200. package/modules/virtual.min.mjs +2 -0
  201. package/modules/virtual.min.mjs.map +1 -0
  202. package/modules/virtual.mjs +349 -0
  203. package/modules/virtual.scss +26 -0
  204. package/modules/zoom-element.css +5 -0
  205. package/modules/zoom-element.min.css +1 -0
  206. package/modules/zoom.css +21 -0
  207. package/modules/zoom.less +23 -0
  208. package/modules/zoom.min.css +1 -0
  209. package/modules/zoom.min.mjs +2 -0
  210. package/modules/zoom.min.mjs.map +1 -0
  211. package/modules/zoom.mjs +701 -0
  212. package/modules/zoom.scss +21 -0
  213. package/package.json +213 -0
  214. package/shared/classes-to-selector.min.mjs +2 -0
  215. package/shared/classes-to-selector.min.mjs.map +1 -0
  216. package/shared/classes-to-selector.mjs +9 -0
  217. package/shared/create-element-if-not-defined.min.mjs +2 -0
  218. package/shared/create-element-if-not-defined.min.mjs.map +1 -0
  219. package/shared/create-element-if-not-defined.mjs +21 -0
  220. package/shared/create-shadow.min.mjs +2 -0
  221. package/shared/create-shadow.min.mjs.map +1 -0
  222. package/shared/create-shadow.mjs +14 -0
  223. package/shared/effect-init.min.mjs +2 -0
  224. package/shared/effect-init.min.mjs.map +1 -0
  225. package/shared/effect-init.mjs +58 -0
  226. package/shared/effect-target.min.mjs +2 -0
  227. package/shared/effect-target.min.mjs.map +1 -0
  228. package/shared/effect-target.mjs +12 -0
  229. package/shared/effect-virtual-transition-end.min.mjs +2 -0
  230. package/shared/effect-virtual-transition-end.min.mjs.map +1 -0
  231. package/shared/effect-virtual-transition-end.mjs +48 -0
  232. package/shared/get-element-params.min.mjs +2 -0
  233. package/shared/get-element-params.min.mjs.map +1 -0
  234. package/shared/get-element-params.mjs +113 -0
  235. package/shared/ssr-window.esm.min.mjs +2 -0
  236. package/shared/ssr-window.esm.min.mjs.map +1 -0
  237. package/shared/ssr-window.esm.mjs +146 -0
  238. package/shared/swiper-core.min.mjs +2 -0
  239. package/shared/swiper-core.min.mjs.map +1 -0
  240. package/shared/swiper-core.mjs +3969 -0
  241. package/shared/update-on-virtual-data.min.mjs +2 -0
  242. package/shared/update-on-virtual-data.min.mjs.map +1 -0
  243. package/shared/update-on-virtual-data.mjs +131 -0
  244. package/shared/update-swiper.min.mjs +2 -0
  245. package/shared/update-swiper.min.mjs.map +1 -0
  246. package/shared/update-swiper.mjs +238 -0
  247. package/shared/utils.min.mjs +2 -0
  248. package/shared/utils.min.mjs.map +1 -0
  249. package/shared/utils.mjs +343 -0
  250. package/swiper-bundle.css +735 -0
  251. package/swiper-bundle.js +9870 -0
  252. package/swiper-bundle.min.css +13 -0
  253. package/swiper-bundle.min.js +14 -0
  254. package/swiper-bundle.min.js.map +1 -0
  255. package/swiper-bundle.min.mjs +14 -0
  256. package/swiper-bundle.min.mjs.map +1 -0
  257. package/swiper-bundle.mjs +42 -0
  258. package/swiper-effect-utils.d.ts +28 -0
  259. package/swiper-effect-utils.min.mjs +14 -0
  260. package/swiper-effect-utils.min.mjs.map +1 -0
  261. package/swiper-effect-utils.mjs +17 -0
  262. package/swiper-element-bundle.js +10477 -0
  263. package/swiper-element-bundle.min.js +14 -0
  264. package/swiper-element-bundle.min.js.map +1 -0
  265. package/swiper-element-bundle.min.mjs +14 -0
  266. package/swiper-element-bundle.min.mjs.map +1 -0
  267. package/swiper-element-bundle.mjs +288 -0
  268. package/swiper-element.d.ts +444 -0
  269. package/swiper-element.js +5037 -0
  270. package/swiper-element.min.js +14 -0
  271. package/swiper-element.min.js.map +1 -0
  272. package/swiper-element.min.mjs +14 -0
  273. package/swiper-element.min.mjs.map +1 -0
  274. package/swiper-element.mjs +287 -0
  275. package/swiper-react.d.ts +501 -0
  276. package/swiper-react.mjs +394 -0
  277. package/swiper-vars.less +1 -0
  278. package/swiper-vars.scss +1 -0
  279. package/swiper-vue.d.ts +866 -0
  280. package/swiper-vue.mjs +838 -0
  281. package/swiper.css +228 -0
  282. package/swiper.d.ts +5 -0
  283. package/swiper.js +4418 -0
  284. package/swiper.less +251 -0
  285. package/swiper.min.css +13 -0
  286. package/swiper.min.js +14 -0
  287. package/swiper.min.js.map +1 -0
  288. package/swiper.min.mjs +14 -0
  289. package/swiper.min.mjs.map +1 -0
  290. package/swiper.mjs +13 -0
  291. package/swiper.scss +252 -0
  292. package/types/index.d.ts +6 -0
  293. package/types/modules/a11y.d.ts +110 -0
  294. package/types/modules/autoplay.d.ts +133 -0
  295. package/types/modules/controller.d.ts +35 -0
  296. package/types/modules/effect-cards.d.ts +33 -0
  297. package/types/modules/effect-coverflow.d.ts +45 -0
  298. package/types/modules/effect-creative.d.ts +86 -0
  299. package/types/modules/effect-cube.d.ts +30 -0
  300. package/types/modules/effect-fade.d.ts +12 -0
  301. package/types/modules/effect-flip.d.ts +18 -0
  302. package/types/modules/free-mode.d.ts +64 -0
  303. package/types/modules/grid.d.ts +21 -0
  304. package/types/modules/hash-navigation.d.ts +38 -0
  305. package/types/modules/history.d.ts +43 -0
  306. package/types/modules/index.d.ts +51 -0
  307. package/types/modules/keyboard.d.ts +46 -0
  308. package/types/modules/manipulation.d.ts +70 -0
  309. package/types/modules/mousewheel.d.ts +86 -0
  310. package/types/modules/navigation.d.ts +105 -0
  311. package/types/modules/pagination.d.ts +307 -0
  312. package/types/modules/parallax.d.ts +12 -0
  313. package/types/modules/public-api.d.ts +23 -0
  314. package/types/modules/scrollbar.d.ts +140 -0
  315. package/types/modules/thumbs.d.ts +54 -0
  316. package/types/modules/virtual.d.ts +135 -0
  317. package/types/modules/zoom.d.ts +91 -0
  318. package/types/shared.d.ts +13 -0
  319. package/types/swiper-class.d.ts +522 -0
  320. package/types/swiper-events.d.ts +359 -0
  321. package/types/swiper-options.d.ts +1217 -0
@@ -0,0 +1,522 @@
1
+ import type { SwiperOptions } from './swiper-options.d.ts';
2
+ import type { CSSSelector, SwiperModule } from './shared.d.ts';
3
+ import type { SwiperEvents } from './swiper-events.d.ts';
4
+
5
+ import type { A11yMethods } from './modules/a11y.d.ts';
6
+ import type { AutoplayMethods } from './modules/autoplay.d.ts';
7
+ import type { ControllerMethods } from './modules/controller.d.ts';
8
+ import type { CoverflowEffectMethods } from './modules/effect-coverflow.d.ts';
9
+ import type { CubeEffectMethods } from './modules/effect-cube.d.ts';
10
+ import type { FadeEffectMethods } from './modules/effect-fade.d.ts';
11
+ import type { FlipEffectMethods } from './modules/effect-flip.d.ts';
12
+ import type { CreativeEffectMethods } from './modules/effect-creative.d.ts';
13
+ import type { CardsEffectMethods } from './modules/effect-cards.d.ts';
14
+ import type { HashNavigationMethods } from './modules/hash-navigation.d.ts';
15
+ import type { HistoryMethods } from './modules/history.d.ts';
16
+ import type { KeyboardMethods } from './modules/keyboard.d.ts';
17
+ import type { MousewheelMethods } from './modules/mousewheel.d.ts';
18
+ import type { NavigationMethods } from './modules/navigation.d.ts';
19
+ import type { PaginationMethods } from './modules/pagination.d.ts';
20
+ import type { ParallaxMethods } from './modules/parallax.d.ts';
21
+ import type { ScrollbarMethods } from './modules/scrollbar.d.ts';
22
+ import type { ThumbsMethods } from './modules/thumbs.d.ts';
23
+ import type { VirtualMethods } from './modules/virtual.d.ts';
24
+ import type { ZoomMethods } from './modules/zoom.d.ts';
25
+ import type { FreeModeMethods } from './modules/free-mode.d.ts';
26
+ import type { ManipulationMethods } from './modules/manipulation.d.ts';
27
+
28
+ interface SwiperClass<Events> {
29
+ /** Add event handler */
30
+ on<E extends keyof Events>(event: E, handler: Events[E]): void;
31
+ /** Add event handler that will be removed after it was fired */
32
+ once<E extends keyof Events>(event: E, handler: Events[E]): void;
33
+ /** Remove event handler */
34
+ off<E extends keyof Events>(event: E, handler: Events[E]): void;
35
+ /** Remove all handlers for specified event */
36
+ off<E extends keyof Events>(event: E): void;
37
+ /** Fire event on instance */
38
+ emit<E extends keyof Events>(event: E, ...args: any[]): void;
39
+ }
40
+
41
+ interface Swiper extends SwiperClass<SwiperEvents> {
42
+ /**
43
+ * Object with passed initialization parameters
44
+ */
45
+ params: SwiperOptions;
46
+
47
+ /**
48
+ * Object with original initialization parameters
49
+ */
50
+ originalParams: SwiperOptions;
51
+
52
+ /**
53
+ * Slider container HTML element
54
+ */
55
+ el: HTMLElement;
56
+
57
+ /**
58
+ * Wrapper HTML element
59
+ */
60
+ wrapperEl: HTMLElement;
61
+
62
+ /**
63
+ * Wrapper HTML element
64
+ */
65
+ slidesEl: HTMLElement;
66
+
67
+ /**
68
+ * Array of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]`
69
+ */
70
+ slides: HTMLElement[];
71
+
72
+ /**
73
+ * !INTERNAL
74
+ */
75
+ loopedSlides: number | null;
76
+
77
+ /**
78
+ * Width of container
79
+ */
80
+ width: number;
81
+
82
+ /**
83
+ * Height of container
84
+ */
85
+ height: number;
86
+
87
+ /**
88
+ * Current value of wrapper translate
89
+ */
90
+ translate: number;
91
+
92
+ /**
93
+ * Current progress of wrapper translate (from 0 to 1)
94
+ */
95
+ progress: number;
96
+
97
+ /**
98
+ * Index number of currently active slide
99
+ *
100
+ * @note Note, that in loop mode active index value will be always shifted on a number of looped slides
101
+ */
102
+ activeIndex: number;
103
+
104
+ /**
105
+ * Index number of currently active slide considering rearranged slides in loop mode
106
+ */
107
+ realIndex: number;
108
+
109
+ /**
110
+ * Index number of previously active slide
111
+ */
112
+ previousIndex: number;
113
+
114
+ /**
115
+ * Index number of current snap in `snapGrid`
116
+ */
117
+ snapIndex: number;
118
+
119
+ /**
120
+ * Slides snap grid
121
+ */
122
+ snapGrid: number[];
123
+
124
+ /**
125
+ * Slides grid
126
+ */
127
+ slidesGrid: number[];
128
+
129
+ /**
130
+ * Array of widths for slides
131
+ */
132
+ slidesSizesGrid: number[];
133
+
134
+ /**
135
+ * `true` if slider on most "left"/"top" position
136
+ */
137
+ isBeginning: boolean;
138
+
139
+ /**
140
+ * `true` if slider on most "right"/"bottom" position
141
+ */
142
+ isEnd: boolean;
143
+
144
+ /**
145
+ * `true` if slide is "locked" (by `watchOverflow`) and slides can not be, e.g. when amount of slides is less that slides per view
146
+ */
147
+ isLocked: boolean;
148
+
149
+ /**
150
+ * `true` if swiper is in transition
151
+ */
152
+ animating: boolean;
153
+
154
+ /**
155
+ * Object with the following touch event properties:
156
+ *
157
+ * - `swiper.touches.startX`
158
+ * - `swiper.touches.startY`
159
+ * - `swiper.touches.currentX`
160
+ * - `swiper.touches.currentY`
161
+ * - `swiper.touches.diff`
162
+ */
163
+ touches: {
164
+ startX: number;
165
+ startY: number;
166
+ currentX: number;
167
+ currentY: number;
168
+ diff: number;
169
+ };
170
+
171
+ /**
172
+ * Index number of last clicked slide
173
+ */
174
+ clickedIndex: number;
175
+
176
+ /**
177
+ * Link to last clicked slide (HTMLElement)
178
+ */
179
+ clickedSlide: HTMLElement;
180
+
181
+ /**
182
+ * Disable / enable ability to slide to the next slides by assigning `false` / `true` to this property
183
+ */
184
+ allowSlideNext: boolean;
185
+
186
+ /**
187
+ * Disable / enable ability to slide to the previous slides by assigning `false` / `true` to this property
188
+ */
189
+ allowSlidePrev: boolean;
190
+
191
+ /**
192
+ * Disable / enable ability move slider by grabbing it with mouse or by touching it with finger (on touch screens) by assigning `false` / `true` to this property
193
+ */
194
+ allowTouchMove: boolean;
195
+
196
+ /**
197
+ * Direction of sliding
198
+ */
199
+ swipeDirection: 'prev' | 'next';
200
+
201
+ /**
202
+ * !INTERNAL
203
+ */
204
+ rtlTranslate: boolean;
205
+
206
+ /**
207
+ * `true` if Swiper is enabled, `false` otherwise
208
+ */
209
+ enabled: boolean;
210
+
211
+ /**
212
+ * Disable Swiper (if it was enabled). When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
213
+ *
214
+ */
215
+ disable(): void;
216
+
217
+ /**
218
+ * Enable Swiper (if it was disabled)
219
+ *
220
+ */
221
+ enable(): void;
222
+
223
+ /**
224
+ * Set Swiper translate progress (from 0 to 1). Where 0 - its initial position (offset) on first slide, and 1 - its maximum position (offset) on last slide
225
+ *
226
+ * @param progress Swiper translate progress (from 0 to 1).
227
+ * @param speed Transition duration (in ms).
228
+ */
229
+ setProgress(progress: number, speed?: number): void;
230
+
231
+ /**
232
+ * Run transition to next slide.
233
+ *
234
+ * @param speed Transition duration (in ms).
235
+ * @param runCallbacks Set it to false (by default it is true) and transition will
236
+ * not produce transition events.
237
+ */
238
+ slideNext(speed?: number, runCallbacks?: boolean): boolean;
239
+
240
+ /**
241
+ * Run transition to previous slide.
242
+ *
243
+ * @param speed Transition duration (in ms).
244
+ * @param runCallbacks Set it to false (by default it is true) and transition will
245
+ * not produce transition events.
246
+ */
247
+ slidePrev(speed?: number, runCallbacks?: boolean): boolean;
248
+
249
+ /**
250
+ * Run transition to the slide with index number equal to 'index' parameter for the
251
+ * duration equal to 'speed' parameter.
252
+ *
253
+ * @param index Index number of slide.
254
+ * @param speed Transition duration (in ms).
255
+ * @param runCallbacks Set it to false (by default it is true) and transition will
256
+ * not produce transition events.
257
+ */
258
+ slideTo(index: number, speed?: number, runCallbacks?: boolean): boolean;
259
+
260
+ /**
261
+ * Does the same as .slideTo but for the case when used with enabled loop. So this
262
+ * method will slide to slides with realIndex matching to passed index
263
+ *
264
+ * @param index Index number of slide.
265
+ * @param speed Transition duration (in ms).
266
+ * @param runCallbacks Set it to false (by default it is true) and transition will
267
+ * not produce transition events.
268
+ */
269
+ slideToLoop(index: number, speed?: number, runCallbacks?: boolean): Swiper;
270
+
271
+ /**
272
+ * Reset swiper position to currently active slide for the duration equal to 'speed'
273
+ * parameter.
274
+ *
275
+ * @param speed Transition duration (in ms).
276
+ * @param runCallbacks Set it to false (by default it is true) and transition will
277
+ * not produce transition events.
278
+ */
279
+ slideReset(speed?: number, runCallbacks?: boolean): boolean;
280
+
281
+ /**
282
+ * Reset swiper position to closest slide/snap point for the duration equal to 'speed' parameter.
283
+ *
284
+ * @param speed Transition duration (in ms).
285
+ * @param runCallbacks Set it to false (by default it is true) and transition will
286
+ * not produce transition events.
287
+ */
288
+ slideToClosest(speed?: number, runCallbacks?: boolean): boolean;
289
+
290
+ /**
291
+ * Get dynamically calculated amount of slides per view, useful only when slidesPerView set to `auto`
292
+ *
293
+ */
294
+ slidesPerViewDynamic(): number;
295
+
296
+ /**
297
+ * Force swiper to update its height (when autoHeight enabled) for the duration equal to
298
+ * 'speed' parameter
299
+ *
300
+ * @param speed Transition duration (in ms).
301
+ */
302
+ updateAutoHeight(speed?: number): void;
303
+
304
+ /**
305
+ * You should call it after you add/remove slides
306
+ * manually, or after you hide/show it, or do any
307
+ * custom DOM modifications with Swiper
308
+ * This method also includes subcall of the following
309
+ * methods which you can use separately:
310
+ */
311
+ update(): void;
312
+
313
+ /**
314
+ * recalculate size of swiper container
315
+ */
316
+ updateSize(): void;
317
+
318
+ /**
319
+ * recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
320
+ */
321
+ updateSlides(): void;
322
+
323
+ /**
324
+ * recalculate swiper progress
325
+ */
326
+ updateProgress(): void;
327
+
328
+ /**
329
+ * update active/prev/next classes on slides and bullets
330
+ */
331
+ updateSlidesClasses(): void;
332
+
333
+ /**
334
+ * Changes slider direction from horizontal to vertical and back.
335
+ *
336
+ * @param direction New direction. If not specified, then will automatically changed to opposite direction
337
+ * @param needUpdate Will call swiper.update(). Default true
338
+ */
339
+ changeDirection(direction?: 'horizontal' | 'vertical', needUpdate?: boolean): void;
340
+
341
+ /**
342
+ * Changes slider language
343
+ *
344
+ * @param direction New direction. Should be `rtl` or `ltr`
345
+ */
346
+ changeLanguageDirection(direction: 'rtl' | 'ltr'): void;
347
+
348
+ /**
349
+ * Detach all events listeners
350
+ */
351
+ detachEvents(): void;
352
+
353
+ /**
354
+ * Attach all events listeners again
355
+ */
356
+ attachEvents(): void;
357
+
358
+ /**
359
+ * !INTERNAL
360
+ */
361
+ loopCreate(): void;
362
+
363
+ /**
364
+ * !INTERNAL
365
+ */
366
+ loopDestroy(): void;
367
+
368
+ /**
369
+ * Initialize slider
370
+ */
371
+ init(el?: HTMLElement): Swiper;
372
+
373
+ /**
374
+ * Destroy slider instance and detach all events listeners
375
+ *
376
+ * @param deleteInstance Set it to false (by default it is true) to not to delete Swiper instance
377
+ * @param cleanStyles Set it to true (by default it is true) and all custom styles will be removed from slides, wrapper and container.
378
+ * Useful if you need to destroy Swiper and to init again with new options or in different direction
379
+ */
380
+ destroy(deleteInstance?: boolean, cleanStyles?: boolean): void;
381
+
382
+ /**
383
+ * Set custom css3 transform's translate value for swiper wrapper
384
+ */
385
+ setTranslate(translate: any): void;
386
+
387
+ /**
388
+ * Get current value of swiper wrapper css3 transform translate
389
+ */
390
+ getTranslate(): any;
391
+
392
+ /**
393
+ * Animate custom css3 transform's translate value for swiper wrapper
394
+ *
395
+ * @param translate Translate value (in px)
396
+ * @param speed Transition duration (in ms)
397
+ * @param runCallbacks Set it to false (by default it is true) and transition will not produce transition events
398
+ * @param translateBounds Set it to false (by default it is true) and transition value can extend beyond min and max translate
399
+ *
400
+ */
401
+ translateTo(
402
+ translate: number,
403
+ speed: number,
404
+ runCallbacks?: boolean,
405
+ translateBounds?: boolean,
406
+ ): any;
407
+
408
+ /**
409
+ * Get current minimal translate value
410
+ */
411
+ minTranslate(): number;
412
+
413
+ /**
414
+ * Get current maximal translate value
415
+ */
416
+ maxTranslate(): number;
417
+
418
+ /**
419
+ * Unset grab cursor
420
+ */
421
+ unsetGrabCursor(): void;
422
+
423
+ /**
424
+ * Set grab cursor
425
+ */
426
+ setGrabCursor(): void;
427
+
428
+ /**
429
+ * Add event listener that will be fired on all events
430
+ */
431
+ onAny(handler: (eventName: string, ...args: any[]) => void): void;
432
+
433
+ /**
434
+ * Remove event listener that will be fired on all events
435
+ */
436
+ offAny(handler: (eventName: string, ...args: any[]) => void): void;
437
+
438
+ /**
439
+ * !INTERNAL
440
+ */
441
+ isHorizontal(): boolean;
442
+
443
+ /**
444
+ * !INTERNAL
445
+ */
446
+ getBreakpoint(breakpoints: SwiperOptions['breakpoints']): string;
447
+
448
+ /**
449
+ * !INTERNAL
450
+ */
451
+ setBreakpoint(): void;
452
+
453
+ /**
454
+ * !INTERNAL
455
+ */
456
+ currentBreakpoint: any;
457
+
458
+ /**
459
+ * !INTERNAL
460
+ */
461
+ destroyed: boolean;
462
+
463
+ /**
464
+ * !INTERNAL
465
+ */
466
+ modules: Array<SwiperModule>;
467
+
468
+ a11y: A11yMethods;
469
+ autoplay: AutoplayMethods;
470
+ controller: ControllerMethods;
471
+ coverflowEffect: CoverflowEffectMethods;
472
+ cubeEffect: CubeEffectMethods;
473
+ fadeEffect: FadeEffectMethods;
474
+ flipEffect: FlipEffectMethods;
475
+ creativeEffect: CreativeEffectMethods;
476
+ cardsEffect: CardsEffectMethods;
477
+ hashNavigation: HashNavigationMethods;
478
+ history: HistoryMethods;
479
+ keyboard: KeyboardMethods;
480
+ mousewheel: MousewheelMethods;
481
+ navigation: NavigationMethods;
482
+ pagination: PaginationMethods;
483
+ parallax: ParallaxMethods;
484
+ scrollbar: ScrollbarMethods;
485
+ thumbs: ThumbsMethods;
486
+ virtual: VirtualMethods;
487
+ zoom: ZoomMethods;
488
+ freeMode: FreeModeMethods;
489
+ }
490
+
491
+ interface Swiper extends ManipulationMethods {}
492
+
493
+ declare class Swiper implements Swiper {
494
+ /**
495
+ * Constructs a new Swiper instance.
496
+ *
497
+ * @param container Where Swiper applies to.
498
+ * @param options Instance options.
499
+ */
500
+ constructor(container: CSSSelector | HTMLElement, options?: SwiperOptions);
501
+ /**
502
+ * Installs modules on Swiper in runtime.
503
+ */
504
+ static use(modules: SwiperModule[]): void;
505
+
506
+ /**
507
+ * Swiper default options
508
+ */
509
+ static defaults: SwiperOptions;
510
+
511
+ /**
512
+ * Extend global Swiper defaults
513
+ */
514
+ static extendDefaults(options: SwiperOptions): void;
515
+
516
+ /**
517
+ * Object with global Swiper extended options
518
+ */
519
+ static extendedDefaults: SwiperOptions;
520
+ }
521
+
522
+ export default Swiper;