infinity-forge 0.54.1 → 0.54.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/sites/fixed-components/list-blog/carousel-configs.d.ts +1 -2
  2. package/dist/sites/fixed-components/list-blog/carousel-configs.js.map +1 -1
  3. package/dist/ui/components/carousel/interfaces.d.ts +1 -2
  4. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.d.ts +2 -0
  5. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js +51 -0
  6. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js.map +1 -0
  7. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.d.ts +5 -0
  8. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js +148 -0
  9. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js.map +1 -0
  10. package/dist/ui/components/carousel/swiper/components-shared/get-params.d.ts +9 -0
  11. package/dist/ui/components/carousel/swiper/components-shared/get-params.js +61 -0
  12. package/dist/ui/components/carousel/swiper/components-shared/get-params.js.map +1 -0
  13. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.d.ts +9 -0
  14. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js +24 -0
  15. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js.map +1 -0
  16. package/dist/ui/components/carousel/swiper/components-shared/params-list.d.ts +2 -0
  17. package/dist/ui/components/carousel/swiper/components-shared/params-list.js +125 -0
  18. package/dist/ui/components/carousel/swiper/components-shared/params-list.js.map +1 -0
  19. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.d.ts +1 -0
  20. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js +18 -0
  21. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js.map +1 -0
  22. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.d.ts +11 -0
  23. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js +208 -0
  24. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js.map +1 -0
  25. package/dist/ui/components/carousel/swiper/components-shared/utils.d.ts +9 -0
  26. package/dist/ui/components/carousel/swiper/components-shared/utils.js +77 -0
  27. package/dist/ui/components/carousel/swiper/components-shared/utils.js.map +1 -0
  28. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.d.ts +1 -0
  29. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js +35 -0
  30. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js.map +1 -0
  31. package/dist/ui/components/carousel/swiper/core/breakpoints/index.d.ts +7 -0
  32. package/dist/ui/components/carousel/swiper/core/breakpoints/index.js +9 -0
  33. package/dist/ui/components/carousel/swiper/core/breakpoints/index.js.map +1 -0
  34. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.d.ts +1 -0
  35. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js +94 -0
  36. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js.map +1 -0
  37. package/dist/ui/components/carousel/swiper/core/check-overflow/index.d.ts +5 -0
  38. package/dist/ui/components/carousel/swiper/core/check-overflow/index.js +31 -0
  39. package/dist/ui/components/carousel/swiper/core/check-overflow/index.js.map +1 -0
  40. package/dist/ui/components/carousel/swiper/core/classes/addClasses.d.ts +1 -0
  41. package/dist/ui/components/carousel/swiper/core/classes/addClasses.js +43 -0
  42. package/dist/ui/components/carousel/swiper/core/classes/addClasses.js.map +1 -0
  43. package/dist/ui/components/carousel/swiper/core/classes/index.d.ts +7 -0
  44. package/dist/ui/components/carousel/swiper/core/classes/index.js +9 -0
  45. package/dist/ui/components/carousel/swiper/core/classes/index.js.map +1 -0
  46. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.d.ts +1 -0
  47. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js +13 -0
  48. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js.map +1 -0
  49. package/dist/ui/components/carousel/swiper/core/core.d.ts +116 -0
  50. package/dist/ui/components/carousel/swiper/core/core.js +654 -0
  51. package/dist/ui/components/carousel/swiper/core/core.js.map +1 -0
  52. package/dist/ui/components/carousel/swiper/core/defaults.d.ts +92 -0
  53. package/dist/ui/components/carousel/swiper/core/defaults.js +119 -0
  54. package/dist/ui/components/carousel/swiper/core/defaults.js.map +1 -0
  55. package/dist/ui/components/carousel/swiper/core/events/index.d.ts +7 -0
  56. package/dist/ui/components/carousel/swiper/core/events/index.js +77 -0
  57. package/dist/ui/components/carousel/swiper/core/events/index.js.map +1 -0
  58. package/dist/ui/components/carousel/swiper/core/events/onClick.d.ts +1 -0
  59. package/dist/ui/components/carousel/swiper/core/events/onClick.js +17 -0
  60. package/dist/ui/components/carousel/swiper/core/events/onClick.js.map +1 -0
  61. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.d.ts +1 -0
  62. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js +13 -0
  63. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js.map +1 -0
  64. package/dist/ui/components/carousel/swiper/core/events/onLoad.d.ts +1 -0
  65. package/dist/ui/components/carousel/swiper/core/events/onLoad.js +14 -0
  66. package/dist/ui/components/carousel/swiper/core/events/onLoad.js.map +1 -0
  67. package/dist/ui/components/carousel/swiper/core/events/onResize.d.ts +1 -0
  68. package/dist/ui/components/carousel/swiper/core/events/onResize.js +53 -0
  69. package/dist/ui/components/carousel/swiper/core/events/onResize.js.map +1 -0
  70. package/dist/ui/components/carousel/swiper/core/events/onScroll.d.ts +1 -0
  71. package/dist/ui/components/carousel/swiper/core/events/onScroll.js +34 -0
  72. package/dist/ui/components/carousel/swiper/core/events/onScroll.js.map +1 -0
  73. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.d.ts +1 -0
  74. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js +194 -0
  75. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js.map +1 -0
  76. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.d.ts +1 -0
  77. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js +314 -0
  78. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js.map +1 -0
  79. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.d.ts +1 -0
  80. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js +153 -0
  81. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js.map +1 -0
  82. package/dist/ui/components/carousel/swiper/core/events-emitter.d.ts +9 -0
  83. package/dist/ui/components/carousel/swiper/core/events-emitter.js +133 -0
  84. package/dist/ui/components/carousel/swiper/core/events-emitter.js.map +1 -0
  85. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.d.ts +7 -0
  86. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js +12 -0
  87. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js.map +1 -0
  88. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.d.ts +1 -0
  89. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js +22 -0
  90. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js.map +1 -0
  91. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.d.ts +1 -0
  92. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js +19 -0
  93. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js.map +1 -0
  94. package/dist/ui/components/carousel/swiper/core/loop/index.d.ts +9 -0
  95. package/dist/ui/components/carousel/swiper/core/loop/index.js +14 -0
  96. package/dist/ui/components/carousel/swiper/core/loop/index.js.map +1 -0
  97. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.d.ts +1 -0
  98. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js +57 -0
  99. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js.map +1 -0
  100. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.d.ts +1 -0
  101. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js +26 -0
  102. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js.map +1 -0
  103. package/dist/ui/components/carousel/swiper/core/loop/loopFix.d.ts +9 -0
  104. package/dist/ui/components/carousel/swiper/core/loop/loopFix.js +230 -0
  105. package/dist/ui/components/carousel/swiper/core/loop/loopFix.js.map +1 -0
  106. package/dist/ui/components/carousel/swiper/core/moduleExtendParams.d.ts +1 -0
  107. package/dist/ui/components/carousel/swiper/core/moduleExtendParams.js +42 -0
  108. package/dist/ui/components/carousel/swiper/core/moduleExtendParams.js.map +1 -0
  109. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.d.ts +6 -0
  110. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js +71 -0
  111. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js.map +1 -0
  112. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.d.ts +5 -0
  113. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js +71 -0
  114. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js.map +1 -0
  115. package/dist/ui/components/carousel/swiper/core/slide/index.d.ts +17 -0
  116. package/dist/ui/components/carousel/swiper/core/slide/index.js +22 -0
  117. package/dist/ui/components/carousel/swiper/core/slide/index.js.map +1 -0
  118. package/dist/ui/components/carousel/swiper/core/slide/slideNext.d.ts +1 -0
  119. package/dist/ui/components/carousel/swiper/core/slide/slideNext.js +38 -0
  120. package/dist/ui/components/carousel/swiper/core/slide/slideNext.js.map +1 -0
  121. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.d.ts +1 -0
  122. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js +69 -0
  123. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js.map +1 -0
  124. package/dist/ui/components/carousel/swiper/core/slide/slideReset.d.ts +1 -0
  125. package/dist/ui/components/carousel/swiper/core/slide/slideReset.js +15 -0
  126. package/dist/ui/components/carousel/swiper/core/slide/slideReset.js.map +1 -0
  127. package/dist/ui/components/carousel/swiper/core/slide/slideTo.d.ts +1 -0
  128. package/dist/ui/components/carousel/swiper/core/slide/slideTo.js +160 -0
  129. package/dist/ui/components/carousel/swiper/core/slide/slideTo.js.map +1 -0
  130. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.d.ts +1 -0
  131. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js +46 -0
  132. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js.map +1 -0
  133. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.d.ts +1 -0
  134. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js +40 -0
  135. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js.map +1 -0
  136. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.d.ts +1 -0
  137. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js +84 -0
  138. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js.map +1 -0
  139. package/dist/ui/components/carousel/swiper/core/transition/index.d.ts +9 -0
  140. package/dist/ui/components/carousel/swiper/core/transition/index.js +14 -0
  141. package/dist/ui/components/carousel/swiper/core/transition/index.js.map +1 -0
  142. package/dist/ui/components/carousel/swiper/core/transition/setTransition.d.ts +1 -0
  143. package/dist/ui/components/carousel/swiper/core/transition/setTransition.js +12 -0
  144. package/dist/ui/components/carousel/swiper/core/transition/setTransition.js.map +1 -0
  145. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.d.ts +6 -0
  146. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js +31 -0
  147. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js.map +1 -0
  148. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.d.ts +1 -0
  149. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js +18 -0
  150. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js.map +1 -0
  151. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.d.ts +1 -0
  152. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js +19 -0
  153. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js.map +1 -0
  154. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.d.ts +1 -0
  155. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js +21 -0
  156. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js.map +1 -0
  157. package/dist/ui/components/carousel/swiper/core/translate/index.d.ts +13 -0
  158. package/dist/ui/components/carousel/swiper/core/translate/index.js +18 -0
  159. package/dist/ui/components/carousel/swiper/core/translate/index.js.map +1 -0
  160. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.d.ts +1 -0
  161. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js +7 -0
  162. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js.map +1 -0
  163. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.d.ts +1 -0
  164. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js +7 -0
  165. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js.map +1 -0
  166. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.d.ts +1 -0
  167. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js +48 -0
  168. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js.map +1 -0
  169. package/dist/ui/components/carousel/swiper/core/translate/translateTo.d.ts +1 -0
  170. package/dist/ui/components/carousel/swiper/core/translate/translateTo.js +81 -0
  171. package/dist/ui/components/carousel/swiper/core/translate/translateTo.js.map +1 -0
  172. package/dist/ui/components/carousel/swiper/core/update/index.d.ts +21 -0
  173. package/dist/ui/components/carousel/swiper/core/update/index.js +26 -0
  174. package/dist/ui/components/carousel/swiper/core/update/index.js.map +1 -0
  175. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.d.ts +2 -0
  176. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js +125 -0
  177. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js.map +1 -0
  178. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.d.ts +1 -0
  179. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js +52 -0
  180. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js.map +1 -0
  181. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.d.ts +1 -0
  182. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js +55 -0
  183. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js.map +1 -0
  184. package/dist/ui/components/carousel/swiper/core/update/updateProgress.d.ts +1 -0
  185. package/dist/ui/components/carousel/swiper/core/update/updateProgress.js +67 -0
  186. package/dist/ui/components/carousel/swiper/core/update/updateProgress.js.map +1 -0
  187. package/dist/ui/components/carousel/swiper/core/update/updateSize.d.ts +1 -0
  188. package/dist/ui/components/carousel/swiper/core/update/updateSize.js +45 -0
  189. package/dist/ui/components/carousel/swiper/core/update/updateSize.js.map +1 -0
  190. package/dist/ui/components/carousel/swiper/core/update/updateSlides.d.ts +1 -0
  191. package/dist/ui/components/carousel/swiper/core/update/updateSlides.js +306 -0
  192. package/dist/ui/components/carousel/swiper/core/update/updateSlides.js.map +1 -0
  193. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.d.ts +1 -0
  194. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js +69 -0
  195. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js.map +1 -0
  196. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.d.ts +1 -0
  197. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js +20 -0
  198. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js.map +1 -0
  199. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.d.ts +1 -0
  200. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js +62 -0
  201. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js.map +1 -0
  202. package/dist/ui/components/carousel/swiper/modules/effect-fade.js +4 -4
  203. package/dist/ui/components/carousel/swiper/modules/free-mode.js +1 -1
  204. package/dist/ui/components/carousel/swiper/modules/navigation.js +2 -2
  205. package/dist/ui/components/carousel/swiper/modules/pagination.js +3 -3
  206. package/dist/ui/components/carousel/swiper/modules/virtual.js +1 -1
  207. package/dist/ui/components/carousel/swiper/react/swiper-slide.js +1 -1
  208. package/dist/ui/components/carousel/swiper/react/swiper.js +7 -7
  209. package/dist/ui/components/carousel/swiper/shared/classes-to-selector.d.ts +1 -0
  210. package/dist/ui/components/carousel/swiper/shared/classes-to-selector.js +11 -0
  211. package/dist/ui/components/carousel/swiper/shared/classes-to-selector.js.map +1 -0
  212. package/dist/ui/components/carousel/swiper/shared/classes-to-tokens.d.ts +1 -0
  213. package/dist/ui/components/carousel/swiper/shared/classes-to-tokens.js +11 -0
  214. package/dist/ui/components/carousel/swiper/shared/classes-to-tokens.js.map +1 -0
  215. package/dist/ui/components/carousel/swiper/shared/create-element-if-not-defined.d.ts +1 -0
  216. package/dist/ui/components/carousel/swiper/shared/create-element-if-not-defined.js +22 -0
  217. package/dist/ui/components/carousel/swiper/shared/create-element-if-not-defined.js.map +1 -0
  218. package/dist/ui/components/carousel/swiper/shared/create-shadow.d.ts +1 -0
  219. package/dist/ui/components/carousel/swiper/shared/create-shadow.js +15 -0
  220. package/dist/ui/components/carousel/swiper/shared/create-shadow.js.map +1 -0
  221. package/dist/ui/components/carousel/swiper/shared/effect-init.d.ts +1 -0
  222. package/dist/ui/components/carousel/swiper/shared/effect-init.js +58 -0
  223. package/dist/ui/components/carousel/swiper/shared/effect-init.js.map +1 -0
  224. package/dist/ui/components/carousel/swiper/shared/effect-target.d.ts +1 -0
  225. package/dist/ui/components/carousel/swiper/shared/effect-target.js +13 -0
  226. package/dist/ui/components/carousel/swiper/shared/effect-target.js.map +1 -0
  227. package/dist/ui/components/carousel/swiper/shared/effect-virtual-transition-end.d.ts +6 -0
  228. package/dist/ui/components/carousel/swiper/shared/effect-virtual-transition-end.js +47 -0
  229. package/dist/ui/components/carousel/swiper/shared/effect-virtual-transition-end.js.map +1 -0
  230. package/dist/ui/components/carousel/swiper/shared/get-browser.d.ts +2 -0
  231. package/dist/ui/components/carousel/swiper/shared/get-browser.js +43 -0
  232. package/dist/ui/components/carousel/swiper/shared/get-browser.js.map +1 -0
  233. package/dist/ui/components/carousel/swiper/shared/get-device.d.ts +1 -0
  234. package/dist/ui/components/carousel/swiper/shared/get-device.js +69 -0
  235. package/dist/ui/components/carousel/swiper/shared/get-device.js.map +1 -0
  236. package/dist/ui/components/carousel/swiper/shared/get-support.d.ts +2 -0
  237. package/dist/ui/components/carousel/swiper/shared/get-support.js +24 -0
  238. package/dist/ui/components/carousel/swiper/shared/get-support.js.map +1 -0
  239. package/dist/ui/components/carousel/swiper/shared/process-lazy-preloader.d.ts +2 -0
  240. package/dist/ui/components/carousel/swiper/shared/process-lazy-preloader.js +79 -0
  241. package/dist/ui/components/carousel/swiper/shared/process-lazy-preloader.js.map +1 -0
  242. package/dist/ui/components/carousel/swiper/shared/utils.d.ts +32 -0
  243. package/dist/ui/components/carousel/swiper/shared/utils.js +371 -0
  244. package/dist/ui/components/carousel/swiper/shared/utils.js.map +1 -0
  245. package/dist/ui/components/carousel/swiper/swiper-bundle.d.ts +1 -0
  246. package/dist/ui/components/carousel/swiper/swiper-bundle.js +18 -0
  247. package/dist/ui/components/carousel/swiper/swiper-bundle.js.map +1 -0
  248. package/dist/ui/components/carousel/swiper/swiper-effect-utils.d.ts +6 -0
  249. package/dist/ui/components/carousel/swiper/swiper-effect-utils.js +17 -0
  250. package/dist/ui/components/carousel/swiper/swiper-effect-utils.js.map +1 -0
  251. package/dist/ui/components/carousel/swiper/swiper-react.d.ts +4 -0
  252. package/dist/ui/components/carousel/swiper/swiper-react.js +11 -0
  253. package/dist/ui/components/carousel/swiper/swiper-react.js.map +1 -0
  254. package/dist/ui/components/carousel/swiper/swiper.d.ts +1 -0
  255. package/dist/ui/components/carousel/swiper/swiper.js +10 -0
  256. package/dist/ui/components/carousel/swiper/swiper.js.map +1 -0
  257. package/package.json +1 -1
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateSwiper = void 0;
4
+ var utils_1 = require("./utils.js");
5
+ function updateSwiper(_a) {
6
+ var swiper = _a.swiper, slides = _a.slides, passedParams = _a.passedParams, changedParams = _a.changedParams, nextEl = _a.nextEl, prevEl = _a.prevEl, scrollbarEl = _a.scrollbarEl, paginationEl = _a.paginationEl;
7
+ var updateParams = changedParams.filter(function (key) { return key !== 'children' && key !== 'direction' && key !== 'wrapperClass'; });
8
+ var currentParams = swiper.params, pagination = swiper.pagination, navigation = swiper.navigation, scrollbar = swiper.scrollbar, virtual = swiper.virtual, thumbs = swiper.thumbs;
9
+ var needThumbsInit;
10
+ var needControllerInit;
11
+ var needPaginationInit;
12
+ var needScrollbarInit;
13
+ var needNavigationInit;
14
+ var loopNeedDestroy;
15
+ var loopNeedEnable;
16
+ var loopNeedReloop;
17
+ if (changedParams.includes('thumbs') &&
18
+ passedParams.thumbs &&
19
+ passedParams.thumbs.swiper &&
20
+ currentParams.thumbs &&
21
+ !currentParams.thumbs.swiper) {
22
+ needThumbsInit = true;
23
+ }
24
+ if (changedParams.includes('controller') &&
25
+ passedParams.controller &&
26
+ passedParams.controller.control &&
27
+ currentParams.controller &&
28
+ !currentParams.controller.control) {
29
+ needControllerInit = true;
30
+ }
31
+ if (changedParams.includes('pagination') &&
32
+ passedParams.pagination &&
33
+ (passedParams.pagination.el || paginationEl) &&
34
+ (currentParams.pagination || currentParams.pagination === false) &&
35
+ pagination &&
36
+ !pagination.el) {
37
+ needPaginationInit = true;
38
+ }
39
+ if (changedParams.includes('scrollbar') &&
40
+ passedParams.scrollbar &&
41
+ (passedParams.scrollbar.el || scrollbarEl) &&
42
+ (currentParams.scrollbar || currentParams.scrollbar === false) &&
43
+ scrollbar &&
44
+ !scrollbar.el) {
45
+ needScrollbarInit = true;
46
+ }
47
+ if (changedParams.includes('navigation') &&
48
+ passedParams.navigation &&
49
+ (passedParams.navigation.prevEl || prevEl) &&
50
+ (passedParams.navigation.nextEl || nextEl) &&
51
+ (currentParams.navigation || currentParams.navigation === false) &&
52
+ navigation &&
53
+ !navigation.prevEl &&
54
+ !navigation.nextEl) {
55
+ needNavigationInit = true;
56
+ }
57
+ var destroyModule = function (mod) {
58
+ if (!swiper[mod])
59
+ return;
60
+ swiper[mod].destroy();
61
+ if (mod === 'navigation') {
62
+ if (swiper.isElement) {
63
+ swiper[mod].prevEl.remove();
64
+ swiper[mod].nextEl.remove();
65
+ }
66
+ currentParams[mod].prevEl = undefined;
67
+ currentParams[mod].nextEl = undefined;
68
+ swiper[mod].prevEl = undefined;
69
+ swiper[mod].nextEl = undefined;
70
+ }
71
+ else {
72
+ if (swiper.isElement) {
73
+ swiper[mod].el.remove();
74
+ }
75
+ currentParams[mod].el = undefined;
76
+ swiper[mod].el = undefined;
77
+ }
78
+ };
79
+ if (changedParams.includes('loop') && swiper.isElement) {
80
+ if (currentParams.loop && !passedParams.loop) {
81
+ loopNeedDestroy = true;
82
+ }
83
+ else if (!currentParams.loop && passedParams.loop) {
84
+ loopNeedEnable = true;
85
+ }
86
+ else {
87
+ loopNeedReloop = true;
88
+ }
89
+ }
90
+ updateParams.forEach(function (key) {
91
+ if ((0, utils_1.isObject)(currentParams[key]) && (0, utils_1.isObject)(passedParams[key])) {
92
+ Object.assign(currentParams[key], passedParams[key]);
93
+ if ((key === 'navigation' || key === 'pagination' || key === 'scrollbar') &&
94
+ 'enabled' in passedParams[key] &&
95
+ !passedParams[key].enabled) {
96
+ destroyModule(key);
97
+ }
98
+ }
99
+ else {
100
+ var newValue = passedParams[key];
101
+ if ((newValue === true || newValue === false) &&
102
+ (key === 'navigation' || key === 'pagination' || key === 'scrollbar')) {
103
+ if (newValue === false) {
104
+ destroyModule(key);
105
+ }
106
+ }
107
+ else {
108
+ currentParams[key] = passedParams[key];
109
+ }
110
+ }
111
+ });
112
+ if (updateParams.includes('controller') &&
113
+ !needControllerInit &&
114
+ swiper.controller &&
115
+ swiper.controller.control &&
116
+ currentParams.controller &&
117
+ currentParams.controller.control) {
118
+ swiper.controller.control = currentParams.controller.control;
119
+ }
120
+ if (changedParams.includes('children') && slides && virtual && currentParams.virtual.enabled) {
121
+ virtual.slides = slides;
122
+ virtual.update(true);
123
+ }
124
+ else if (changedParams.includes('virtual') && virtual && currentParams.virtual.enabled) {
125
+ if (slides)
126
+ virtual.slides = slides;
127
+ virtual.update(true);
128
+ }
129
+ if (changedParams.includes('children') && slides && currentParams.loop) {
130
+ loopNeedReloop = true;
131
+ }
132
+ if (needThumbsInit) {
133
+ var initialized = thumbs.init();
134
+ if (initialized)
135
+ thumbs.update(true);
136
+ }
137
+ if (needControllerInit) {
138
+ swiper.controller.control = currentParams.controller.control;
139
+ }
140
+ if (needPaginationInit) {
141
+ if (swiper.isElement && (!paginationEl || typeof paginationEl === 'string')) {
142
+ paginationEl = document.createElement('div');
143
+ paginationEl.classList.add('swiper-pagination');
144
+ paginationEl.part.add('pagination');
145
+ swiper.el.appendChild(paginationEl);
146
+ }
147
+ if (paginationEl)
148
+ currentParams.pagination.el = paginationEl;
149
+ pagination.init();
150
+ pagination.render();
151
+ pagination.update();
152
+ }
153
+ if (needScrollbarInit) {
154
+ if (swiper.isElement && (!scrollbarEl || typeof scrollbarEl === 'string')) {
155
+ scrollbarEl = document.createElement('div');
156
+ scrollbarEl.classList.add('swiper-scrollbar');
157
+ scrollbarEl.part.add('scrollbar');
158
+ swiper.el.appendChild(scrollbarEl);
159
+ }
160
+ if (scrollbarEl)
161
+ currentParams.scrollbar.el = scrollbarEl;
162
+ scrollbar.init();
163
+ scrollbar.updateSize();
164
+ scrollbar.setTranslate();
165
+ }
166
+ if (needNavigationInit) {
167
+ if (swiper.isElement) {
168
+ if (!nextEl || typeof nextEl === 'string') {
169
+ nextEl = document.createElement('div');
170
+ nextEl.classList.add('swiper-button-next');
171
+ nextEl.innerHTML = swiper.hostEl.constructor.nextButtonSvg;
172
+ nextEl.part.add('button-next');
173
+ swiper.el.appendChild(nextEl);
174
+ }
175
+ if (!prevEl || typeof prevEl === 'string') {
176
+ prevEl = document.createElement('div');
177
+ prevEl.classList.add('swiper-button-prev');
178
+ prevEl.innerHTML = swiper.hostEl.constructor.prevButtonSvg;
179
+ prevEl.part.add('button-prev');
180
+ swiper.el.appendChild(prevEl);
181
+ }
182
+ }
183
+ if (nextEl)
184
+ currentParams.navigation.nextEl = nextEl;
185
+ if (prevEl)
186
+ currentParams.navigation.prevEl = prevEl;
187
+ navigation.init();
188
+ navigation.update();
189
+ }
190
+ if (changedParams.includes('allowSlideNext')) {
191
+ swiper.allowSlideNext = passedParams.allowSlideNext;
192
+ }
193
+ if (changedParams.includes('allowSlidePrev')) {
194
+ swiper.allowSlidePrev = passedParams.allowSlidePrev;
195
+ }
196
+ if (changedParams.includes('direction')) {
197
+ swiper.changeDirection(passedParams.direction, false);
198
+ }
199
+ if (loopNeedDestroy || loopNeedReloop) {
200
+ swiper.loopDestroy();
201
+ }
202
+ if (loopNeedEnable || loopNeedReloop) {
203
+ swiper.loopCreate();
204
+ }
205
+ swiper.update();
206
+ }
207
+ exports.updateSwiper = updateSwiper;
208
+ //# sourceMappingURL=update-swiper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-swiper.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/update-swiper.tsx"],"names":[],"mappings":";;;AAAA,iCAA2C;AAE3C,SAAS,YAAY,CAAC,EASrB;QARC,MAAM,YAAA,EACN,MAAM,YAAA,EACN,YAAY,kBAAA,EACZ,aAAa,mBAAA,EACb,MAAM,YAAA,EACN,MAAM,YAAA,EACN,WAAW,iBAAA,EACX,YAAY,kBAAA;IAEZ,IAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CACvC,UAAC,GAAG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,aAAa,CAAC,CAAC;gBAC/B,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QACD,IAAI,MAAM;YAAE,aAAa,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACrD,IAAI,MAAM;YAAE,aAAa,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACrD,UAAU,CAAC,IAAI,EAAE,CAAC;QAClB,UAAU,CAAC,MAAM,EAAE,CAAC;IACtB,CAAC;IAED,IAAI,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC;IACtD,CAAC;IACD,IAAI,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC;IACtD,CAAC;IACD,IAAI,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QACxC,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IACD,IAAI,eAAe,IAAI,cAAc,EAAE,CAAC;QACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,cAAc,IAAI,cAAc,EAAE,CAAC;QACrC,MAAM,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IACD,MAAM,CAAC,MAAM,EAAE,CAAC;AAClB,CAAC;AACQ,oCAAY"}
@@ -0,0 +1,9 @@
1
+ declare function isObject(o: any): boolean;
2
+ declare function extend(target: any, src: any): void;
3
+ declare function needsNavigation(params?: {}): boolean;
4
+ declare function needsPagination(params?: {}): boolean;
5
+ declare function needsScrollbar(params?: {}): boolean;
6
+ declare function uniqueClasses(classNames?: string): string;
7
+ declare function attrToProp(attrName?: string): string;
8
+ declare function wrapperClass(className?: string): string;
9
+ export { isObject, extend, needsNavigation, needsPagination, needsScrollbar, uniqueClasses, attrToProp, wrapperClass, };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapperClass = exports.attrToProp = exports.uniqueClasses = exports.needsScrollbar = exports.needsPagination = exports.needsNavigation = exports.extend = exports.isObject = void 0;
4
+ //@ts-nocheck
5
+ function isObject(o) {
6
+ return (typeof o === 'object' &&
7
+ o !== null &&
8
+ o.constructor &&
9
+ Object.prototype.toString.call(o).slice(8, -1) === 'Object' &&
10
+ !o.__swiper__);
11
+ }
12
+ exports.isObject = isObject;
13
+ function extend(target, src) {
14
+ var noExtend = ['__proto__', 'constructor', 'prototype'];
15
+ Object.keys(src)
16
+ .filter(function (key) { return noExtend.indexOf(key) < 0; })
17
+ .forEach(function (key) {
18
+ if (typeof target[key] === 'undefined')
19
+ target[key] = src[key];
20
+ else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
21
+ if (src[key].__swiper__)
22
+ target[key] = src[key];
23
+ else
24
+ extend(target[key], src[key]);
25
+ }
26
+ else {
27
+ target[key] = src[key];
28
+ }
29
+ });
30
+ }
31
+ exports.extend = extend;
32
+ function needsNavigation(params) {
33
+ if (params === void 0) { params = {}; }
34
+ return (params.navigation &&
35
+ typeof params.navigation.nextEl === 'undefined' &&
36
+ typeof params.navigation.prevEl === 'undefined');
37
+ }
38
+ exports.needsNavigation = needsNavigation;
39
+ function needsPagination(params) {
40
+ if (params === void 0) { params = {}; }
41
+ return params.pagination && typeof params.pagination.el === 'undefined';
42
+ }
43
+ exports.needsPagination = needsPagination;
44
+ function needsScrollbar(params) {
45
+ if (params === void 0) { params = {}; }
46
+ return params.scrollbar && typeof params.scrollbar.el === 'undefined';
47
+ }
48
+ exports.needsScrollbar = needsScrollbar;
49
+ function uniqueClasses(classNames) {
50
+ if (classNames === void 0) { classNames = ''; }
51
+ var classes = classNames
52
+ .split(' ')
53
+ .map(function (c) { return c.trim(); })
54
+ .filter(function (c) { return !!c; });
55
+ var unique = [];
56
+ classes.forEach(function (c) {
57
+ if (unique.indexOf(c) < 0)
58
+ unique.push(c);
59
+ });
60
+ return unique.join(' ');
61
+ }
62
+ exports.uniqueClasses = uniqueClasses;
63
+ function attrToProp(attrName) {
64
+ if (attrName === void 0) { attrName = ''; }
65
+ return attrName.replace(/-[a-z]/g, function (l) { return l.toUpperCase().replace('-', ''); });
66
+ }
67
+ exports.attrToProp = attrToProp;
68
+ function wrapperClass(className) {
69
+ if (className === void 0) { className = ''; }
70
+ if (!className)
71
+ return 'swiper-wrapper';
72
+ if (!className.includes('swiper-wrapper'))
73
+ return "swiper-wrapper ".concat(className);
74
+ return className;
75
+ }
76
+ exports.wrapperClass = wrapperClass;
77
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/components-shared/utils.tsx"],"names":[],"mappings":";;;AAAA,aAAa;AACb,SAAS,QAAQ,CAAC,CAAC;IACjB,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,KAAK,IAAI;QACV,CAAC,CAAC,WAAW;QACb,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3D,CAAC,CAAC,CAAC,UAAU,CACd,CAAC;AACJ,CAAC;AAqDC,4BAAQ;AAnDV,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG;IACzB,IAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACb,MAAM,CAAC,UAAC,GAAG,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAzB,CAAyB,CAAC;SAC1C,OAAO,CAAC,UAA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ty(exports, "__esModule", { value: true });
3
+ //@ts-nocheck
4
+ var ssr_window_1 = require("ssr-window");
5
+ function getBreakpoint(breakpoints, base, containerEl) {
6
+ if (base === void 0) { base = 'window'; }
7
+ if (!breakpoints || (base === 'container' && !containerEl))
8
+ return undefined;
9
+ var breakpoint = false;
10
+ var window = (0, ssr_window_1.getWindow)();
11
+ var currentHeight = base === 'window' ? window.innerHeight : containerEl.clientHeight;
12
+ var points = Object.keys(breakpoints).map(function (point) {
13
+ if (typeof point === 'string' && point.indexOf('@') === 0) {
14
+ var minRatio = parseFloat(point.substr(1));
15
+ var value = currentHeight * minRatio;
16
+ return { value: value, point: point };
17
+ }
18
+ return { value: point, point: point };
19
+ });
20
+ points.sort(function (a, b) { return parseInt(a.value, 10) - parseInt(b.value, 10); });
21
+ for (var i = 0; i < points.length; i += 1) {
22
+ var _a = points[i], point = _a.point, value = _a.value;
23
+ if (base === 'window') {
24
+ if (window.matchMedia("(min-width: ".concat(value, "px)")).matches) {
25
+ breakpoint = point;
26
+ }
27
+ }
28
+ else if (value <= containerEl.clientWidth) {
29
+ breakpoint = point;
30
+ }
31
+ }
32
+ return breakpoint || 'max';
33
+ }
34
+ exports.default = getBreakpoint;
35
+ //# sourceMappingURL=getBreakpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBreakpoint.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.tsx"],"names":[],"mappings":";;AAAA,aAAa;AACb,yCAAuC;AAEvC,SAAwB,aAAa,CAAC,WAAW,EAAE,IAAe,EAAE,WAAW;IAA5B,qBAAA,EAAA,eAAe;IAChE,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,WAAW,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7E,IAAI,UAAU,GAAG,KAAK,CAAC;IAEvB,IAAM,MAAM,GAAG,IAAA,sBAAS,GAAE,CAAC;IAC3B,IAAM,aAAa,GAAG,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,GAAG,KAAK,CAAC;QACrB,CAAC;IACH,CAAC;IACD,OAAO,UAAU,IAAI,KAAK,CAAC;AAC7B,CAAC;AA5BD,gCA4BC"}
@@ -0,0 +1,7 @@
1
+ import setBreakpoint from './setBreakpoint.js';
2
+ import getBreakpoint from './getBreakpoint.js';
3
+ declare const _default: {
4
+ setBreakpoint: typeof setBreakpoint;
5
+ getBreakpoint: typeof getBreakpoint;
6
+ };
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var setBreakpoint_1 = __importDefault(require("./setBreakpoint.js"));
7
+ var getBreakpoint_1 = __importDefault(require("./getBreakpoint.js"));
8
+ exports.default = { setBreakpoint: setBreakpoint_1.default, getBreakpoint: getBreakpoint_1.default };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/breakpoints/index.tsx"],"names":[],"mappings":";;;;;AAAA,kEAA4C;AAC5C,kEAA4C;AAE5C,kBAAe,EAAE,aAAa,yBAAA,EAAE,aAAa,yBAAA,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export default function setBreakpoint(): void;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var utils_1 = require("../../shared/utils.js");
4
+ var isGridEnabled = function (swiper, params) {
5
+ return swiper.grid && params.grid && params.grid.rows > 1;
6
+ };
7
+ function setBreakpoint() {
8
+ var swiper = this;
9
+ var realIndex = swiper.realIndex, initialized = swiper.initialized, params = swiper.params, el = swiper.el;
10
+ var breakpoints = params.breakpoints;
11
+ if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0))
12
+ return;
13
+ // Get breakpoint for window width and update parameters
14
+ var breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);
15
+ if (!breakpoint || swiper.currentBreakpoint === breakpoint)
16
+ return;
17
+ var breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;
18
+ var breakpointParams = breakpointOnlyParams || swiper.originalParams;
19
+ var wasMultiRow = isGridEnabled(swiper, params);
20
+ var isMultiRow = isGridEnabled(swiper, breakpointParams);
21
+ var wasGrabCursor = swiper.params.grabCursor;
22
+ var isGrabCursor = breakpointParams.grabCursor;
23
+ var wasEnabled = params.enabled;
24
+ if (wasMultiRow && !isMultiRow) {
25
+ el.classList.remove("".concat(params.containerModifierClass, "grid"), "".concat(params.containerModifierClass, "grid-column"));
26
+ swiper.emitContainerClasses();
27
+ }
28
+ else if (!wasMultiRow && isMultiRow) {
29
+ el.classList.add("".concat(params.containerModifierClass, "grid"));
30
+ if ((breakpointParams.grid.fill && breakpointParams.grid.fill === 'column') ||
31
+ (!breakpointParams.grid.fill && params.grid.fill === 'column')) {
32
+ el.classList.add("".concat(params.containerModifierClass, "grid-column"));
33
+ }
34
+ swiper.emitContainerClasses();
35
+ }
36
+ if (wasGrabCursor && !isGrabCursor) {
37
+ swiper.unsetGrabCursor();
38
+ }
39
+ else if (!wasGrabCursor && isGrabCursor) {
40
+ swiper.setGrabCursor();
41
+ }
42
+ // Toggle navigation, pagination, scrollbar
43
+ ['navigation', 'pagination', 'scrollbar'].forEach(function (prop) {
44
+ if (typeof breakpointParams[prop] === 'undefined')
45
+ return;
46
+ var wasModuleEnabled = params[prop] && params[prop].enabled;
47
+ var isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
48
+ if (wasModuleEnabled && !isModuleEnabled) {
49
+ swiper[prop].disable();
50
+ }
51
+ if (!wasModuleEnabled && isModuleEnabled) {
52
+ swiper[prop].enable();
53
+ }
54
+ });
55
+ var directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;
56
+ var needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);
57
+ var wasLoop = params.loop;
58
+ if (directionChanged && initialized) {
59
+ swiper.changeDirection();
60
+ }
61
+ (0, utils_1.extend)(swiper.params, breakpointParams);
62
+ var isEnabled = swiper.params.enabled;
63
+ var hasLoop = swiper.params.loop;
64
+ Object.assign(swiper, {
65
+ allowTouchMove: swiper.params.allowTouchMove,
66
+ allowSlideNext: swiper.params.allowSlideNext,
67
+ allowSlidePrev: swiper.params.allowSlidePrev,
68
+ });
69
+ if (wasEnabled && !isEnabled) {
70
+ swiper.disable();
71
+ }
72
+ else if (!wasEnabled && isEnabled) {
73
+ swiper.enable();
74
+ }
75
+ swiper.currentBreakpoint = breakpoint;
76
+ swiper.emit('_beforeBreakpoint', breakpointParams);
77
+ if (initialized) {
78
+ if (needsReLoop) {
79
+ swiper.loopDestroy();
80
+ swiper.loopCreate(realIndex);
81
+ swiper.updateSlides();
82
+ }
83
+ else if (!wasLoop && hasLoop) {
84
+ swiper.loopCreate(realIndex);
85
+ swiper.updateSlides();
86
+ }
87
+ else if (wasLoop && !hasLoop) {
88
+ swiper.loopDestroy();
89
+ }
90
+ }
91
+ swiper.emit('breakpoint', breakpointParams);
92
+ }
93
+ exports.default = setBreakpoint;
94
+ //# sourceMappingURL=setBreakpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBreakpoint.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.tsx"],"names":[],"mappings":";;AAAA,4CAA4C;AAE5C,IAAM,aAAa,GAAG,UAAC,MAAM,EAAE,MAAM;IACnC,OAAO,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;AAC5D,CAAC,CAAC;AAEF,SAAwB,aAAa;IACnC,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,SAAS,GAA8B,MAAM,UAApC,EAAE,WAAW,GAAiB,MAAM,YAAvB,E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C,CAAC;YAC7B,MAAM,CAAC,YAAY,EAAE,CAAC;QACxB,CAAC;aAAM,IAAI,CAAC,OAAO,IAAI,OAAO,EAAE,CAAC;YAC/B,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YAC7B,MAAM,CAAC,YAAY,EAAE,CAAC;QACxB,CAAC;aAAM,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YAC/B,MAAM,CAAC,WAAW,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAC9C,CAAC;AArGD,gCAqGC"}
@@ -0,0 +1,5 @@
1
+ declare function checkOverflow(): void;
2
+ declare const _default: {
3
+ checkOverflow: typeof checkOverflow;
4
+ };
5
+ export default _default;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function checkOverflow() {
4
+ var swiper = this;
5
+ var wasLocked = swiper.isLocked, params = swiper.params;
6
+ var slidesOffsetBefore = params.slidesOffsetBefore;
7
+ if (slidesOffsetBefore) {
8
+ var lastSlideIndex = swiper.slides.length - 1;
9
+ var lastSlideRightEdge = swiper.slidesGrid[lastSlideIndex] +
10
+ swiper.slidesSizesGrid[lastSlideIndex] +
11
+ slidesOffsetBefore * 2;
12
+ swiper.isLocked = swiper.size > lastSlideRightEdge;
13
+ }
14
+ else {
15
+ swiper.isLocked = swiper.snapGrid.length === 1;
16
+ }
17
+ if (params.allowSlideNext === true) {
18
+ swiper.allowSlideNext = !swiper.isLocked;
19
+ }
20
+ if (params.allowSlidePrev === true) {
21
+ swiper.allowSlidePrev = !swiper.isLocked;
22
+ }
23
+ if (wasLocked && wasLocked !== swiper.isLocked) {
24
+ swiper.isEnd = false;
25
+ }
26
+ if (wasLocked !== swiper.isLocked) {
27
+ swiper.emit(swiper.isLocked ? 'lock' : 'unlock');
28
+ }
29
+ }
30
+ exports.default = { checkOverflow: checkOverflow };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/check-overflow/index.tsx"],"names":[],"mappings":";;AAAA,SAAS,aAAa;IACpB,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAU,SAAS,GAAa,MAAM,SAAnB,EAAE,MAAM,GAAK,MAAM,OAAX,CAAY;IACvC,IAAA,kBAAkB,GAAK,MAAM,mBAAX,CAAY;IAEtC,IAAI,kBAAkB,EAAE,CAAC;QACvB,IAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAChD,IAAM,kBAAkB,GACtB,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC;YACjC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC;YACtC,kBAAkB,GAAG,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACrD,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QACnC,MAAM,CAAC,cAAc,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3C,CAAC;IACD,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QACnC,MAAM,CAAC,cAAc,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3C,CAAC;IAED,IAAI,SAAS,IAAI,SAAS,KAAK,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC/C,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IACD,IAAI,SAAS,KAAK,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;AAED,kBAAe,EAAE,aAAa,eAAA,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export default function addClasses(): void;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function prepareClasses(entries, prefix) {
4
+ var resultClasses = [];
5
+ entries.forEach(function (item) {
6
+ if (typeof item === 'object') {
7
+ Object.keys(item).forEach(function (classNames) {
8
+ if (item[classNames]) {
9
+ resultClasses.push(prefix + classNames);
10
+ }
11
+ });
12
+ }
13
+ else if (typeof item === 'string') {
14
+ resultClasses.push(prefix + item);
15
+ }
16
+ });
17
+ return resultClasses;
18
+ }
19
+ function addClasses() {
20
+ var _a;
21
+ var swiper = this;
22
+ var classNames = swiper.classNames, params = swiper.params, rtl = swiper.rtl, el = swiper.el, device = swiper.device;
23
+ // prettier-ignore
24
+ var suffixes = prepareClasses([
25
+ 'initialized',
26
+ params.direction,
27
+ { 'free-mode': swiper.params.freeMode && params.freeMode.enabled },
28
+ { 'autoheight': params.autoHeight },
29
+ { 'rtl': rtl },
30
+ { 'grid': params.grid && params.grid.rows > 1 },
31
+ { 'grid-column': params.grid && params.grid.rows > 1 && params.grid.fill === 'column' },
32
+ { 'android': device.android },
33
+ { 'ios': device.ios },
34
+ { 'css-mode': params.cssMode },
35
+ { 'centered': params.cssMode && params.centeredSlides },
36
+ { 'watch-progress': params.watchSlidesProgress },
37
+ ], params.containerModifierClass);
38
+ classNames.push.apply(classNames, suffixes);
39
+ (_a = el.classList).add.apply(_a, classNames);
40
+ swiper.emitContainerClasses();
41
+ }
42
+ exports.default = addClasses;
43
+ //# sourceMappingURL=addClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addClasses.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/classes/addClasses.tsx"],"names":[],"mappings":";;AAAA,SAAS,cAAc,CA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AAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;QACvF,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE;QAC7B,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE;QACrB,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE;QAC9B,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,cAAc,EAAE;QACvD,EAAE,gBAAgB,EAAE,MAAM,CAAC,mBAAmB,EAAE;KACjD,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAClC,UAAU,CAAC,IAAI,OAAf,UAAU,EAAS,QAAQ,EAAE;IAC7B,CAAA,KAAA,EAAE,CAAC,SAAS,CAAA,CAAC,GAAG,WAAI,UAAU,EAAE;IAChC,MAAM,CAAC,oBAAoB,EAAE,CAAC;AAChC,CAAC;AArBD,6BAqBC"}
@@ -0,0 +1,7 @@
1
+ import addClasses from './addClasses.js';
2
+ import removeClasses from './removeClasses.js';
3
+ declare const _default: {
4
+ addClasses: typeof addClasses;
5
+ removeClasses: typeof removeClasses;
6
+ };
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var addClasses_1 = __importDefault(require("./addClasses.js"));
7
+ var removeClasses_1 = __importDefault(require("./removeClasses.js"));
8
+ exports.default = { addClasses: addClasses_1.default, removeClasses: removeClasses_1.default };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/classes/index.tsx"],"names":[],"mappings":";;;;;AAAA,4DAAsC;AACtC,kEAA4C;AAE5C,kBAAe,EAAE,UAAU,sBAAA,EAAE,aAAa,yBAAA,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export default function removeClasses(): void;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function removeClasses() {
4
+ var _a;
5
+ var swiper = this;
6
+ var el = swiper.el, classNames = swiper.classNames;
7
+ if (!el || typeof el === 'string')
8
+ return;
9
+ (_a = el.classList).remove.apply(_a, classNames);
10
+ swiper.emitContainerClasses();
11
+ }
12
+ exports.default = removeClasses;
13
+ //# sourceMappingURL=removeClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeClasses.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/classes/removeClasses.tsx"],"names":[],"mappings":";;AAAA,SAAwB,aAAa;;IACnC,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,EAAE,GAAiB,MAAM,GAAvB,EAAE,UAAU,GAAK,MAAM,WAAX,CAAY;IAClC,IAAI,CAAC,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ;QAAE,OAAO;IAE1C,CAAA,KAAA,EAAE,CAAC,SAAS,CAAA,CAAC,MAAM,WAAI,UAAU,EAAE;IACnC,MAAM,CAAC,oBAAoB,EAAE,CAAC;AAChC,CAAC;AAPD,gCAOC"}