index.cjs.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. 'use strict';
  5. Object.defineProperty(exports, '__esModule', { value: true });
  6. const animation = require('./animation-ab2d3449.js');
  7. const index = require('./index-1eff7149.js');
  8. const ios_transition = require('./ios.transition-a131cd4d.js');
  9. const md_transition = require('./md.transition-e018ebe5.js');
  10. const cubicBezier = require('./cubic-bezier-f2dccc53.js');
  11. const index$1 = require('./index-ee07ed59.js');
  12. const ionicGlobal = require('./ionic-global-6dea5a96.js');
  13. const helpers = require('./helpers-8a48fdea.js');
  14. const index$2 = require('./index-cc858e97.js');
  15. const config = require('./config-f6225ae7.js');
  16. const theme = require('./theme-d1c573d2.js');
  17. const index$3 = require('./index-a96d31ae.js');
  18. const overlays = require('./overlays-4c291a05.js');
  19. require('./index-c8d52405.js');
  20. require('./index-2e236a04.js');
  21. require('./gesture-controller-9436f482.js');
  22. require('./hardware-back-button-3d2b1004.js');
  23. require('./framework-delegate-862d9d00.js');
  24. const IonicSlides = (opts) => {
  25. const { swiper, extendParams } = opts;
  26. const slidesParams = {
  27. effect: undefined,
  28. direction: 'horizontal',
  29. initialSlide: 0,
  30. loop: false,
  31. parallax: false,
  32. slidesPerView: 1,
  33. spaceBetween: 0,
  34. speed: 300,
  35. slidesPerColumn: 1,
  36. slidesPerColumnFill: 'column',
  37. slidesPerGroup: 1,
  38. centeredSlides: false,
  39. slidesOffsetBefore: 0,
  40. slidesOffsetAfter: 0,
  41. touchEventsTarget: 'container',
  42. freeMode: false,
  43. freeModeMomentum: true,
  44. freeModeMomentumRatio: 1,
  45. freeModeMomentumBounce: true,
  46. freeModeMomentumBounceRatio: 1,
  47. freeModeMomentumVelocityRatio: 1,
  48. freeModeSticky: false,
  49. freeModeMinimumVelocity: 0.02,
  50. autoHeight: false,
  51. setWrapperSize: false,
  52. zoom: {
  53. maxRatio: 3,
  54. minRatio: 1,
  55. toggle: false,
  56. },
  57. touchRatio: 1,
  58. touchAngle: 45,
  59. simulateTouch: true,
  60. touchStartPreventDefault: false,
  61. shortSwipes: true,
  62. longSwipes: true,
  63. longSwipesRatio: 0.5,
  64. longSwipesMs: 300,
  65. followFinger: true,
  66. threshold: 0,
  67. touchMoveStopPropagation: true,
  68. touchReleaseOnEdges: false,
  69. iOSEdgeSwipeDetection: false,
  70. iOSEdgeSwipeThreshold: 20,
  71. resistance: true,
  72. resistanceRatio: 0.85,
  73. watchSlidesProgress: false,
  74. watchSlidesVisibility: false,
  75. preventClicks: true,
  76. preventClicksPropagation: true,
  77. slideToClickedSlide: false,
  78. loopAdditionalSlides: 0,
  79. noSwiping: true,
  80. runCallbacksOnInit: true,
  81. coverflowEffect: {
  82. rotate: 50,
  83. stretch: 0,
  84. depth: 100,
  85. modifier: 1,
  86. slideShadows: true,
  87. },
  88. flipEffect: {
  89. slideShadows: true,
  90. limitRotation: true,
  91. },
  92. cubeEffect: {
  93. slideShadows: true,
  94. shadow: true,
  95. shadowOffset: 20,
  96. shadowScale: 0.94,
  97. },
  98. fadeEffect: {
  99. crossFade: false,
  100. },
  101. a11y: {
  102. prevSlideMessage: 'Previous slide',
  103. nextSlideMessage: 'Next slide',
  104. firstSlideMessage: 'This is the first slide',
  105. lastSlideMessage: 'This is the last slide',
  106. },
  107. };
  108. if (swiper.pagination) {
  109. slidesParams.pagination = {
  110. type: 'bullets',
  111. clickable: false,
  112. hideOnClick: false,
  113. };
  114. }
  115. if (swiper.scrollbar) {
  116. slidesParams.scrollbar = {
  117. hide: true,
  118. };
  119. }
  120. extendParams(slidesParams);
  121. };
  122. exports.createAnimation = animation.createAnimation;
  123. exports.LIFECYCLE_DID_ENTER = index.LIFECYCLE_DID_ENTER;
  124. exports.LIFECYCLE_DID_LEAVE = index.LIFECYCLE_DID_LEAVE;
  125. exports.LIFECYCLE_WILL_ENTER = index.LIFECYCLE_WILL_ENTER;
  126. exports.LIFECYCLE_WILL_LEAVE = index.LIFECYCLE_WILL_LEAVE;
  127. exports.LIFECYCLE_WILL_UNLOAD = index.LIFECYCLE_WILL_UNLOAD;
  128. exports.getIonPageElement = index.getIonPageElement;
  129. exports.iosTransitionAnimation = ios_transition.iosTransitionAnimation;
  130. exports.mdTransitionAnimation = md_transition.mdTransitionAnimation;
  131. exports.getTimeGivenProgression = cubicBezier.getTimeGivenProgression;
  132. exports.createGesture = index$1.createGesture;
  133. exports.getPlatforms = ionicGlobal.getPlatforms;
  134. exports.initialize = ionicGlobal.initialize;
  135. exports.isPlatform = ionicGlobal.isPlatform;
  136. exports.componentOnReady = helpers.componentOnReady;
  137. Object.defineProperty(exports, 'LogLevel', {
  138. enumerable: true,
  139. get: function () {
  140. return index$2.LogLevel;
  141. }
  142. });
  143. exports.IonicSafeString = config.IonicSafeString;
  144. exports.getMode = config.getMode;
  145. exports.setupConfig = config.setupConfig;
  146. exports.openURL = theme.openURL;
  147. exports.menuController = index$3.menuController;
  148. exports.actionSheetController = overlays.actionSheetController;
  149. exports.alertController = overlays.alertController;
  150. exports.loadingController = overlays.loadingController;
  151. exports.modalController = overlays.modalController;
  152. exports.pickerController = overlays.pickerController;
  153. exports.popoverController = overlays.popoverController;
  154. exports.toastController = overlays.toastController;
  155. exports.IonicSlides = IonicSlides;