123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- /*!
- * (C) Ionic http://ionicframework.com - MIT License
- */
- 'use strict';
- Object.defineProperty(exports, '__esModule', { value: true });
- const animation = require('./animation-ab2d3449.js');
- const index = require('./index-1eff7149.js');
- const ios_transition = require('./ios.transition-a131cd4d.js');
- const md_transition = require('./md.transition-e018ebe5.js');
- const cubicBezier = require('./cubic-bezier-f2dccc53.js');
- const index$1 = require('./index-ee07ed59.js');
- const ionicGlobal = require('./ionic-global-6dea5a96.js');
- const helpers = require('./helpers-8a48fdea.js');
- const index$2 = require('./index-cc858e97.js');
- const config = require('./config-f6225ae7.js');
- const theme = require('./theme-d1c573d2.js');
- const index$3 = require('./index-a96d31ae.js');
- const overlays = require('./overlays-4c291a05.js');
- require('./index-c8d52405.js');
- require('./index-2e236a04.js');
- require('./gesture-controller-9436f482.js');
- require('./hardware-back-button-3d2b1004.js');
- require('./framework-delegate-862d9d00.js');
- const IonicSlides = (opts) => {
- const { swiper, extendParams } = opts;
- const slidesParams = {
- effect: undefined,
- direction: 'horizontal',
- initialSlide: 0,
- loop: false,
- parallax: false,
- slidesPerView: 1,
- spaceBetween: 0,
- speed: 300,
- slidesPerColumn: 1,
- slidesPerColumnFill: 'column',
- slidesPerGroup: 1,
- centeredSlides: false,
- slidesOffsetBefore: 0,
- slidesOffsetAfter: 0,
- touchEventsTarget: 'container',
- freeMode: false,
- freeModeMomentum: true,
- freeModeMomentumRatio: 1,
- freeModeMomentumBounce: true,
- freeModeMomentumBounceRatio: 1,
- freeModeMomentumVelocityRatio: 1,
- freeModeSticky: false,
- freeModeMinimumVelocity: 0.02,
- autoHeight: false,
- setWrapperSize: false,
- zoom: {
- maxRatio: 3,
- minRatio: 1,
- toggle: false,
- },
- touchRatio: 1,
- touchAngle: 45,
- simulateTouch: true,
- touchStartPreventDefault: false,
- shortSwipes: true,
- longSwipes: true,
- longSwipesRatio: 0.5,
- longSwipesMs: 300,
- followFinger: true,
- threshold: 0,
- touchMoveStopPropagation: true,
- touchReleaseOnEdges: false,
- iOSEdgeSwipeDetection: false,
- iOSEdgeSwipeThreshold: 20,
- resistance: true,
- resistanceRatio: 0.85,
- watchSlidesProgress: false,
- watchSlidesVisibility: false,
- preventClicks: true,
- preventClicksPropagation: true,
- slideToClickedSlide: false,
- loopAdditionalSlides: 0,
- noSwiping: true,
- runCallbacksOnInit: true,
- coverflowEffect: {
- rotate: 50,
- stretch: 0,
- depth: 100,
- modifier: 1,
- slideShadows: true,
- },
- flipEffect: {
- slideShadows: true,
- limitRotation: true,
- },
- cubeEffect: {
- slideShadows: true,
- shadow: true,
- shadowOffset: 20,
- shadowScale: 0.94,
- },
- fadeEffect: {
- crossFade: false,
- },
- a11y: {
- prevSlideMessage: 'Previous slide',
- nextSlideMessage: 'Next slide',
- firstSlideMessage: 'This is the first slide',
- lastSlideMessage: 'This is the last slide',
- },
- };
- if (swiper.pagination) {
- slidesParams.pagination = {
- type: 'bullets',
- clickable: false,
- hideOnClick: false,
- };
- }
- if (swiper.scrollbar) {
- slidesParams.scrollbar = {
- hide: true,
- };
- }
- extendParams(slidesParams);
- };
- exports.createAnimation = animation.createAnimation;
- exports.LIFECYCLE_DID_ENTER = index.LIFECYCLE_DID_ENTER;
- exports.LIFECYCLE_DID_LEAVE = index.LIFECYCLE_DID_LEAVE;
- exports.LIFECYCLE_WILL_ENTER = index.LIFECYCLE_WILL_ENTER;
- exports.LIFECYCLE_WILL_LEAVE = index.LIFECYCLE_WILL_LEAVE;
- exports.LIFECYCLE_WILL_UNLOAD = index.LIFECYCLE_WILL_UNLOAD;
- exports.getIonPageElement = index.getIonPageElement;
- exports.iosTransitionAnimation = ios_transition.iosTransitionAnimation;
- exports.mdTransitionAnimation = md_transition.mdTransitionAnimation;
- exports.getTimeGivenProgression = cubicBezier.getTimeGivenProgression;
- exports.createGesture = index$1.createGesture;
- exports.getPlatforms = ionicGlobal.getPlatforms;
- exports.initialize = ionicGlobal.initialize;
- exports.isPlatform = ionicGlobal.isPlatform;
- exports.componentOnReady = helpers.componentOnReady;
- Object.defineProperty(exports, 'LogLevel', {
- enumerable: true,
- get: function () {
- return index$2.LogLevel;
- }
- });
- exports.IonicSafeString = config.IonicSafeString;
- exports.getMode = config.getMode;
- exports.setupConfig = config.setupConfig;
- exports.openURL = theme.openURL;
- exports.menuController = index$3.menuController;
- exports.actionSheetController = overlays.actionSheetController;
- exports.alertController = overlays.alertController;
- exports.loadingController = overlays.loadingController;
- exports.modalController = overlays.modalController;
- exports.pickerController = overlays.pickerController;
- exports.popoverController = overlays.popoverController;
- exports.toastController = overlays.toastController;
- exports.IonicSlides = IonicSlides;
|