index.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. export { c as createAnimation } from './animation-8b25e105.js';
  5. export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-68c0d151.js';
  6. export { iosTransitionAnimation } from './ios.transition-4047cb68.js';
  7. export { mdTransitionAnimation } from './md.transition-30ce8d1b.js';
  8. export { g as getTimeGivenProgression } from './cubic-bezier-fe2083dc.js';
  9. export { createGesture } from './index-39782642.js';
  10. export { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-b26f573e.js';
  11. export { c as componentOnReady } from './helpers-d94bc8ad.js';
  12. export { L as LogLevel } from './index-cfd9c1f2.js';
  13. export { I as IonicSafeString, g as getMode, s as setupConfig } from './config-9898ed97.js';
  14. export { o as openURL } from './theme-01f3f29c.js';
  15. export { m as menuController } from './index-18f31305.js';
  16. export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-d99dcb0a.js';
  17. import './index-a5d50daf.js';
  18. import './index-527b9e34.js';
  19. import './gesture-controller-314a54f6.js';
  20. import './hardware-back-button-a7eb8233.js';
  21. import './framework-delegate-56b467ad.js';
  22. const IonicSlides = (opts) => {
  23. const { swiper, extendParams } = opts;
  24. const slidesParams = {
  25. effect: undefined,
  26. direction: 'horizontal',
  27. initialSlide: 0,
  28. loop: false,
  29. parallax: false,
  30. slidesPerView: 1,
  31. spaceBetween: 0,
  32. speed: 300,
  33. slidesPerColumn: 1,
  34. slidesPerColumnFill: 'column',
  35. slidesPerGroup: 1,
  36. centeredSlides: false,
  37. slidesOffsetBefore: 0,
  38. slidesOffsetAfter: 0,
  39. touchEventsTarget: 'container',
  40. freeMode: false,
  41. freeModeMomentum: true,
  42. freeModeMomentumRatio: 1,
  43. freeModeMomentumBounce: true,
  44. freeModeMomentumBounceRatio: 1,
  45. freeModeMomentumVelocityRatio: 1,
  46. freeModeSticky: false,
  47. freeModeMinimumVelocity: 0.02,
  48. autoHeight: false,
  49. setWrapperSize: false,
  50. zoom: {
  51. maxRatio: 3,
  52. minRatio: 1,
  53. toggle: false,
  54. },
  55. touchRatio: 1,
  56. touchAngle: 45,
  57. simulateTouch: true,
  58. touchStartPreventDefault: false,
  59. shortSwipes: true,
  60. longSwipes: true,
  61. longSwipesRatio: 0.5,
  62. longSwipesMs: 300,
  63. followFinger: true,
  64. threshold: 0,
  65. touchMoveStopPropagation: true,
  66. touchReleaseOnEdges: false,
  67. iOSEdgeSwipeDetection: false,
  68. iOSEdgeSwipeThreshold: 20,
  69. resistance: true,
  70. resistanceRatio: 0.85,
  71. watchSlidesProgress: false,
  72. watchSlidesVisibility: false,
  73. preventClicks: true,
  74. preventClicksPropagation: true,
  75. slideToClickedSlide: false,
  76. loopAdditionalSlides: 0,
  77. noSwiping: true,
  78. runCallbacksOnInit: true,
  79. coverflowEffect: {
  80. rotate: 50,
  81. stretch: 0,
  82. depth: 100,
  83. modifier: 1,
  84. slideShadows: true,
  85. },
  86. flipEffect: {
  87. slideShadows: true,
  88. limitRotation: true,
  89. },
  90. cubeEffect: {
  91. slideShadows: true,
  92. shadow: true,
  93. shadowOffset: 20,
  94. shadowScale: 0.94,
  95. },
  96. fadeEffect: {
  97. crossFade: false,
  98. },
  99. a11y: {
  100. prevSlideMessage: 'Previous slide',
  101. nextSlideMessage: 'Next slide',
  102. firstSlideMessage: 'This is the first slide',
  103. lastSlideMessage: 'This is the last slide',
  104. },
  105. };
  106. if (swiper.pagination) {
  107. slidesParams.pagination = {
  108. type: 'bullets',
  109. clickable: false,
  110. hideOnClick: false,
  111. };
  112. }
  113. if (swiper.scrollbar) {
  114. slidesParams.scrollbar = {
  115. hide: true,
  116. };
  117. }
  118. extendParams(slidesParams);
  119. };
  120. export { IonicSlides };