1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,16 +0,0 @@ |
1 |
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("swiper/core"),require("rxjs")):"function"==typeof define&&define.amd?define("swiper_angular",["exports","@angular/core","@angular/common","swiper/core","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).swiper_angular={},e.ng.core,e.ng.common,e.Swiper,e.rxjs)}(this,(function(e,t,i,s,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(s); |
|
2 |
-/*! ***************************************************************************** |
|
3 |
- Copyright (c) Microsoft Corporation. |
|
4 |
- |
|
5 |
- Permission to use, copy, modify, and/or distribute this software for any |
|
6 |
- purpose with or without fee is hereby granted. |
|
7 |
- |
|
8 |
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
|
9 |
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|
10 |
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
|
11 |
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
|
12 |
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
13 |
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
14 |
- PERFORMANCE OF THIS SOFTWARE. |
|
15 |
- ***************************************************************************** */Object.create;function p(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var s,n,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(s=r.next()).done;)a.push(s.value)}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}Object.create;function l(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function u(e,t){Object.keys(t).forEach((function(i){void 0!==e[i]?e[i]&&!t[i]||(l(t[i])&&l(e[i])&&Object.keys(t[i]).length>0?u(e[i],t[i]):e[i]=t[i]):e[i]=t[i]}))}var d=["pagination","navigation","scrollbar","virtual"];function c(e,t){if(void 0===t&&(t={}),l(e))return e;var i,s=null!=(i=e)&&""+i!="false";return!0===s?t:s}var h=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","nested","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"].map((function(e){return e.replace(/_/,"")}));function g(e){void 0===e&&(e={});var t={on:{}},i={};u(t,a.default.defaults),u(t,a.default.extendedDefaults),t._emitClasses=!0;var s={};return Object.keys(e).forEach((function(n){var r=n.replace(/^_/,"");void 0!==e[r]&&(h.indexOf(r)>=0?l(e[r])?(t[r]={},i[r]={},u(t[r],e[r]),u(i[r],e[r])):(t[r]=e[r],i[r]=e[r]):s[r]=e[r])})),{params:t,passedParams:i,rest:s}}var y=function(){function e(e){this.template=e,this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}return Object.defineProperty(e.prototype,"classNames",{get:function(){return this._classNames},set:function(e){this._classNames!==e&&(this._classNames=e,this.slideData={isActive:this._hasClass(["swiper-slide-active","swiper-slide-duplicate-active"]),isVisible:this._hasClass(["swiper-slide-visible"]),isDuplicate:this._hasClass(["swiper-slide-duplicate"]),isPrev:this._hasClass(["swiper-slide-prev","swiper-slide-duplicate-prev"]),isNext:this._hasClass(["swiper-slide-next","swiper-slide-duplicate-next"])})},enumerable:!1,configurable:!0}),e.prototype._hasClass=function(e){var t=this;return e.some((function(e){return t._classNames.indexOf(e)>=0}))},e}();y.decorators=[{type:t.Directive,args:[{selector:"[swiperSlide]"}]}],y.ctorParameters=function(){return[{type:t.TemplateRef}]},y.propDecorators={virtualIndex:[{type:t.Input}]};var f=function(){function e(e,i,s){this.zone=e,this.elementRef=i,this._changeDetectorRef=s,this.init=!0,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.s__beforeBreakpoint=new t.EventEmitter,this.s__containerClasses=new t.EventEmitter,this.s__slideClass=new t.EventEmitter,this.s__swiper=new t.EventEmitter,this.s_activeIndexChange=new t.EventEmitter,this.s_afterInit=new t.EventEmitter,this.s_autoplay=new t.EventEmitter,this.s_autoplayStart=new t.EventEmitter,this.s_autoplayStop=new t.EventEmitter,this.s_beforeDestroy=new t.EventEmitter,this.s_beforeInit=new t.EventEmitter,this.s_beforeLoopFix=new t.EventEmitter,this.s_beforeResize=new t.EventEmitter,this.s_beforeSlideChangeStart=new t.EventEmitter,this.s_beforeTransitionStart=new t.EventEmitter,this.s_breakpoint=new t.EventEmitter,this.s_changeDirection=new t.EventEmitter,this.s_click=new t.EventEmitter,this.s_doubleTap=new t.EventEmitter,this.s_doubleClick=new t.EventEmitter,this.s_destroy=new t.EventEmitter,this.s_fromEdge=new t.EventEmitter,this.s_hashChange=new t.EventEmitter,this.s_hashSet=new t.EventEmitter,this.s_imagesReady=new t.EventEmitter,this.s_init=new t.EventEmitter,this.s_keyPress=new t.EventEmitter,this.s_lazyImageLoad=new t.EventEmitter,this.s_lazyImageReady=new t.EventEmitter,this.s_loopFix=new t.EventEmitter,this.s_momentumBounce=new t.EventEmitter,this.s_navigationHide=new t.EventEmitter,this.s_navigationShow=new t.EventEmitter,this.s_observerUpdate=new t.EventEmitter,this.s_orientationchange=new t.EventEmitter,this.s_paginationHide=new t.EventEmitter,this.s_paginationRender=new t.EventEmitter,this.s_paginationShow=new t.EventEmitter,this.s_paginationUpdate=new t.EventEmitter,this.s_progress=new t.EventEmitter,this.s_reachBeginning=new t.EventEmitter,this.s_reachEnd=new t.EventEmitter,this.s_realIndexChange=new t.EventEmitter,this.s_resize=new t.EventEmitter,this.s_scroll=new t.EventEmitter,this.s_scrollbarDragEnd=new t.EventEmitter,this.s_scrollbarDragMove=new t.EventEmitter,this.s_scrollbarDragStart=new t.EventEmitter,this.s_setTransition=new t.EventEmitter,this.s_setTranslate=new t.EventEmitter,this.s_slideChange=new t.EventEmitter,this.s_slideChangeTransitionEnd=new t.EventEmitter,this.s_slideChangeTransitionStart=new t.EventEmitter,this.s_slideNextTransitionEnd=new t.EventEmitter,this.s_slideNextTransitionStart=new t.EventEmitter,this.s_slidePrevTransitionEnd=new t.EventEmitter,this.s_slidePrevTransitionStart=new t.EventEmitter,this.s_slideResetTransitionStart=new t.EventEmitter,this.s_slideResetTransitionEnd=new t.EventEmitter,this.s_sliderMove=new t.EventEmitter,this.s_sliderFirstMove=new t.EventEmitter,this.s_slidesLengthChange=new t.EventEmitter,this.s_slidesGridLengthChange=new t.EventEmitter,this.s_snapGridLengthChange=new t.EventEmitter,this.s_snapIndexChange=new t.EventEmitter,this.s_tap=new t.EventEmitter,this.s_toEdge=new t.EventEmitter,this.s_touchEnd=new t.EventEmitter,this.s_touchMove=new t.EventEmitter,this.s_touchMoveOpposite=new t.EventEmitter,this.s_touchStart=new t.EventEmitter,this.s_transitionEnd=new t.EventEmitter,this.s_transitionStart=new t.EventEmitter,this.s_update=new t.EventEmitter,this.s_zoomChange=new t.EventEmitter,this.s_swiper=new t.EventEmitter,this.indexChange=new t.EventEmitter,this._activeSlides=new n.Subject,this.containerClasses="swiper-container",this.style=null}return Object.defineProperty(e.prototype,"navigation",{get:function(){return this._navigation},set:function(e){this._navigation=c(e,{nextEl:null,prevEl:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pagination",{get:function(){return this._pagination},set:function(e){this._pagination=c(e,{el:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbar",{get:function(){return this._scrollbar},set:function(e){this._scrollbar=c(e,{el:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtual},set:function(e){this._virtual=c(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{set:function(e){this.setIndex(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{set:function(e){this.updateSwiper(e);var t=g(e).params;Object.assign(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevElRef",{set:function(e){this._setElement(e,this.navigation,"navigation","prevEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextElRef",{set:function(e){this._setElement(e,this.navigation,"navigation","nextEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarElRef",{set:function(e){this._setElement(e,this.scrollbar,"scrollbar")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paginationElRef",{set:function(e){this._setElement(e,this.pagination,"pagination")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slidesEl",{set:function(e){var t=this;this.slides=e.map((function(e,i){return e.slideIndex=i,e.classNames=t.slideClass,e})),this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.virtual||(this.prependSlides=n.of(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=n.of(this.slides.slice(0,this.loopedSlides)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeSlides",{get:function(){return this.virtual?this._activeSlides:n.of(this.slides)},enumerable:!1,configurable:!0}),e.prototype._setElement=function(e,t,i,s){if(void 0===s&&(s="el"),e||t){if(t){if(t[s]===e.nativeElement)return;t[s]=e.nativeElement}var n={};n[i]=!0,this.updateInitSwiper(n)}},e.prototype.ngOnInit=function(){var e=g(this).params;Object.assign(this,e)},e.prototype.ngAfterViewInit=function(){this.init&&(this.initSwiper(),this._changeDetectorRef.detectChanges())},e.prototype.initSwiper=function(){var e=this,t=g(this),i=t.params;t.passedParams;Object.assign(this,i),i.onAny=function(t){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var n=e["s_"+t];n&&n.emit.apply(n,o(i))},Object.assign(i.on,{slideChange:function(){e.indexChange.emit(e.swiperRef.realIndex)},_containerClasses:function(e,t){this.containerClasses=t},_swiper:function(t){e.swiperRef=t,e.s_swiper.emit(e.swiperRef),t.loopCreate=function(){},t.loopDestroy=function(){},i.loop&&(t.loopedSlides=e.loopedSlides),t.virtual&&t.params.virtual.enabled&&(t.virtual.slides=e.slides,t.params.virtual.cache=!1,t.params.virtual.renderExternal=function(t){e.updateVirtualSlides(t)},t.params.virtual.renderExternalUpdate=!1),e._changeDetectorRef.detectChanges()},_slideClass:function(t,i,s){var n=parseInt(i.dataset.swiperSlideIndex);if(e.virtual){var r=e.slides.find((function(e){return e.virtualIndex&&e.virtualIndex===n}));if(r)return void(r.classNames=s)}e.slides[n].classNames=s,e._changeDetectorRef.detectChanges()}}),new a.default(this.elementRef.nativeElement,i)},e.prototype.updateVirtualSlides=function(e){var t;!this.swiperRef||this.currentVirtualData&&this.currentVirtualData.from===e.from&&this.currentVirtualData.to===e.to&&this.currentVirtualData.offset===e.offset||(this.style=this.swiperRef.isHorizontal()?((t={})[this.swiperRef.rtlTranslate?"right":"left"]=e.offset+"px",t):{top:e.offset+"px"},this.currentVirtualData=e,this._activeSlides.next(e.slides),this._changeDetectorRef.detectChanges(),this.swiperRef.updateSlides(),this.swiperRef.updateProgress(),this.swiperRef.updateSlidesClasses(),this.swiperRef.lazy&&this.swiperRef.params.lazy.enabled&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0))},e.prototype.ngOnChanges=function(e){this.updateSwiper(e),this._changeDetectorRef.detectChanges()},e.prototype.updateInitSwiper=function(e){if(e&&this.swiperRef&&!this.swiperRef.destroyed){var t=this.swiperRef,i=(t.params,t.pagination),s=t.navigation,n=t.scrollbar,r=(t.virtual,t.thumbs);if(e.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&i&&!i.el?(this.updateParameter("pagination",this.pagination),i.init(),i.render(),i.update()):(i.destroy(),i.el=null)),e.scrollbar&&(this.scrollbar&&"boolean"!=typeof this.scrollbar&&this.scrollbar.el&&n&&!n.el?(this.updateParameter("scrollbar",this.scrollbar),n.init(),n.updateSize(),n.setTranslate()):(n.destroy(),n.el=null)),e.navigation&&(this.navigation&&"boolean"!=typeof this.navigation&&this.navigation.prevEl&&this.navigation.nextEl&&s&&!s.prevEl&&!s.nextEl?(this.updateParameter("navigation",this.navigation),s.init(),s.update()):s.prevEl&&s.nextEl&&(s.destroy(),s.nextEl=null,s.prevEl=null)),e.thumbs&&this.thumbs&&this.thumbs.swiper)this.updateParameter("thumbs",this.thumbs),r.init()&&r.update(!0);e.controller&&this.controller&&this.controller.control&&(this.swiperRef.controller.control=this.controller.control),this.swiperRef.update()}},e.prototype.updateSwiper=function(e){var t,i;if(!e.config&&e&&this.swiperRef&&!this.swiperRef.destroyed){for(var s in e)if(!(d.indexOf(s)>=0)){var n=null!==(i=null===(t=e[s])||void 0===t?void 0:t.currentValue)&&void 0!==i?i:e[s];this.updateParameter(s,n)}e.allowSlideNext&&(this.swiperRef.allowSlideNext=this.allowSlideNext),e.allowSlidePrev&&(this.swiperRef.allowSlidePrev=this.allowSlidePrev),e.direction&&this.swiperRef.changeDirection(this.direction,!1),e.breakpoints&&(this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.swiperRef.currentBreakpoint=null,this.swiperRef.setBreakpoint()),this.swiperRef.update()}},e.prototype.calcLoopedSlides=function(){if(this.loop){var e=this.slidesPerView;if(this.breakpoints){var t=a.default.prototype.getBreakpoint(this.breakpoints),i=t in this.breakpoints?this.breakpoints[t]:void 0;i&&i.slidesPerView&&(e=i.slidesPerView)}if("auto"===e)return this.loopedSlides=this.slides.length,this.slides.length;var s=this.loopedSlides||e;return(s+=this.loopAdditionalSlides)>this.slides.length&&(s=this.slides.length),this.loopedSlides=s,s}},e.prototype.updateParameter=function(e,t){if(this.swiperRef&&!this.swiperRef.destroyed){var i=e.replace(/^_/,"");Object.keys(this.swiperRef.modules).indexOf(i)>=0&&u(t,this.swiperRef.modules[i].params[i]),l(this.swiperRef.params[i])&&l(t)?u(this.swiperRef.params[i],t):this.swiperRef.params[i]=t}},e.prototype.setIndex=function(e,t,i){var s=this;this.swiperRef?e!==this.swiperRef.realIndex&&this.zone.runOutsideAngular((function(){s.loop?s.swiperRef.slideToLoop(e,t,!i):s.swiperRef.slideTo(e,t,!i)})):this.initialSlide=e},e.prototype.ngOnDestroy=function(){this.swiperRef.destroy()},e}();f.decorators=[{type:t.Component,args:[{selector:"swiper, [swiper]",template:'<ng-content select="[slot=container-start]"></ng-content>\n<ng-container *ngIf="navigation">\n <div class="swiper-button-prev" #prevElRef></div>\n <div class="swiper-button-next" #nextElRef></div>\n</ng-container>\n<div *ngIf="scrollbar" class="swiper-scrollbar" #scrollbarElRef></div>\n<div *ngIf="pagination" class="swiper-pagination" #paginationElRef></div>\n<div [ngClass]="wrapperClass">\n <ng-content select="[slot=wrapper-start]"></ng-content>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: prependSlides,\n key: \'prepend\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: activeSlides,\n key: \'\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: appendSlides,\n key: \'append\'\n }\n "\n ></ng-template>\n <ng-content select="[slot=wrapper-end]"></ng-content>\n</div>\n<ng-content select="[slot=container-end]"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides="loopSlides" let-slideKey="key">\n <div\n *ngFor="let slide of loopSlides | async"\n [ngClass]="slide.classNames + \' \' + (slideKey !== \'\' ? slideDuplicateClass : \'\')"\n [attr.data-swiper-slide-index]="slide.virtualIndex ? slide.virtualIndex : slide.slideIndex"\n [style]="style"\n >\n <ng-template\n [ngTemplateOutlet]="slide.template"\n [ngTemplateOutletContext]="{\n $implicit: slide.slideData\n }"\n ></ng-template>\n </div>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:["\n swiper {\n display: block;\n }\n "]}]}],f.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},f.propDecorators={init:[{type:t.Input}],direction:[{type:t.Input}],touchEventsTarget:[{type:t.Input}],initialSlide:[{type:t.Input}],speed:[{type:t.Input}],cssMode:[{type:t.Input}],updateOnWindowResize:[{type:t.Input}],nested:[{type:t.Input}],width:[{type:t.Input}],height:[{type:t.Input}],preventInteractionOnTransition:[{type:t.Input}],userAgent:[{type:t.Input}],url:[{type:t.Input}],edgeSwipeDetection:[{type:t.Input}],edgeSwipeThreshold:[{type:t.Input}],freeMode:[{type:t.Input}],freeModeMomentum:[{type:t.Input}],freeModeMomentumRatio:[{type:t.Input}],freeModeMomentumBounce:[{type:t.Input}],freeModeMomentumBounceRatio:[{type:t.Input}],freeModeMomentumVelocityRatio:[{type:t.Input}],freeModeSticky:[{type:t.Input}],freeModeMinimumVelocity:[{type:t.Input}],autoHeight:[{type:t.Input}],setWrapperSize:[{type:t.Input}],virtualTranslate:[{type:t.Input}],effect:[{type:t.Input}],breakpoints:[{type:t.Input}],spaceBetween:[{type:t.Input}],slidesPerView:[{type:t.Input}],slidesPerColumn:[{type:t.Input}],slidesPerColumnFill:[{type:t.Input}],slidesPerGroup:[{type:t.Input}],slidesPerGroupSkip:[{type:t.Input}],centeredSlides:[{type:t.Input}],centeredSlidesBounds:[{type:t.Input}],slidesOffsetBefore:[{type:t.Input}],slidesOffsetAfter:[{type:t.Input}],normalizeSlideIndex:[{type:t.Input}],centerInsufficientSlides:[{type:t.Input}],watchOverflow:[{type:t.Input}],roundLengths:[{type:t.Input}],touchRatio:[{type:t.Input}],touchAngle:[{type:t.Input}],simulateTouch:[{type:t.Input}],shortSwipes:[{type:t.Input}],longSwipes:[{type:t.Input}],longSwipesRatio:[{type:t.Input}],longSwipesMs:[{type:t.Input}],followFinger:[{type:t.Input}],allowTouchMove:[{type:t.Input}],threshold:[{type:t.Input}],touchMoveStopPropagation:[{type:t.Input}],touchStartPreventDefault:[{type:t.Input}],touchStartForcePreventDefault:[{type:t.Input}],touchReleaseOnEdges:[{type:t.Input}],uniqueNavElements:[{type:t.Input}],resistance:[{type:t.Input}],resistanceRatio:[{type:t.Input}],watchSlidesProgress:[{type:t.Input}],watchSlidesVisibility:[{type:t.Input}],grabCursor:[{type:t.Input}],preventClicks:[{type:t.Input}],preventClicksPropagation:[{type:t.Input}],slideToClickedSlide:[{type:t.Input}],preloadImages:[{type:t.Input}],updateOnImagesReady:[{type:t.Input}],loop:[{type:t.Input}],loopAdditionalSlides:[{type:t.Input}],loopedSlides:[{type:t.Input}],loopFillGroupWithBlank:[{type:t.Input}],loopPreventsSlide:[{type:t.Input}],allowSlidePrev:[{type:t.Input}],allowSlideNext:[{type:t.Input}],swipeHandler:[{type:t.Input}],noSwiping:[{type:t.Input}],noSwipingClass:[{type:t.Input}],noSwipingSelector:[{type:t.Input}],passiveListeners:[{type:t.Input}],containerModifierClass:[{type:t.Input}],slideClass:[{type:t.Input}],slideBlankClass:[{type:t.Input}],slideActiveClass:[{type:t.Input}],slideDuplicateActiveClass:[{type:t.Input}],slideVisibleClass:[{type:t.Input}],slideDuplicateClass:[{type:t.Input}],slideNextClass:[{type:t.Input}],slideDuplicateNextClass:[{type:t.Input}],slidePrevClass:[{type:t.Input}],slideDuplicatePrevClass:[{type:t.Input}],wrapperClass:[{type:t.Input}],runCallbacksOnInit:[{type:t.Input}],a11y:[{type:t.Input}],autoplay:[{type:t.Input}],controller:[{type:t.Input}],coverflowEffect:[{type:t.Input}],cubeEffect:[{type:t.Input}],fadeEffect:[{type:t.Input}],flipEffect:[{type:t.Input}],hashNavigation:[{type:t.Input}],history:[{type:t.Input}],keyboard:[{type:t.Input}],lazy:[{type:t.Input}],mousewheel:[{type:t.Input}],parallax:[{type:t.Input}],thumbs:[{type:t.Input}],zoom:[{type:t.Input}],navigation:[{type:t.Input}],pagination:[{type:t.Input}],scrollbar:[{type:t.Input}],virtual:[{type:t.Input}],index:[{type:t.Input}],config:[{type:t.Input}],s__beforeBreakpoint:[{type:t.Output,args:["_beforeBreakpoint"]}],s__containerClasses:[{type:t.Output,args:["_containerClasses"]}],s__slideClass:[{type:t.Output,args:["_slideClass"]}],s__swiper:[{type:t.Output,args:["_swiper"]}],s_activeIndexChange:[{type:t.Output,args:["activeIndexChange"]}],s_afterInit:[{type:t.Output,args:["afterInit"]}],s_autoplay:[{type:t.Output,args:["autoplay"]}],s_autoplayStart:[{type:t.Output,args:["autoplayStart"]}],s_autoplayStop:[{type:t.Output,args:["autoplayStop"]}],s_beforeDestroy:[{type:t.Output,args:["beforeDestroy"]}],s_beforeInit:[{type:t.Output,args:["beforeInit"]}],s_beforeLoopFix:[{type:t.Output,args:["beforeLoopFix"]}],s_beforeResize:[{type:t.Output,args:["beforeResize"]}],s_beforeSlideChangeStart:[{type:t.Output,args:["beforeSlideChangeStart"]}],s_beforeTransitionStart:[{type:t.Output,args:["beforeTransitionStart"]}],s_breakpoint:[{type:t.Output,args:["breakpoint"]}],s_changeDirection:[{type:t.Output,args:["changeDirection"]}],s_click:[{type:t.Output,args:["click"]}],s_doubleTap:[{type:t.Output,args:["doubleTap"]}],s_doubleClick:[{type:t.Output,args:["doubleClick"]}],s_destroy:[{type:t.Output,args:["destroy"]}],s_fromEdge:[{type:t.Output,args:["fromEdge"]}],s_hashChange:[{type:t.Output,args:["hashChange"]}],s_hashSet:[{type:t.Output,args:["hashSet"]}],s_imagesReady:[{type:t.Output,args:["imagesReady"]}],s_init:[{type:t.Output,args:["init"]}],s_keyPress:[{type:t.Output,args:["keyPress"]}],s_lazyImageLoad:[{type:t.Output,args:["lazyImageLoad"]}],s_lazyImageReady:[{type:t.Output,args:["lazyImageReady"]}],s_loopFix:[{type:t.Output,args:["loopFix"]}],s_momentumBounce:[{type:t.Output,args:["momentumBounce"]}],s_navigationHide:[{type:t.Output,args:["navigationHide"]}],s_navigationShow:[{type:t.Output,args:["navigationShow"]}],s_observerUpdate:[{type:t.Output,args:["observerUpdate"]}],s_orientationchange:[{type:t.Output,args:["orientationchange"]}],s_paginationHide:[{type:t.Output,args:["paginationHide"]}],s_paginationRender:[{type:t.Output,args:["paginationRender"]}],s_paginationShow:[{type:t.Output,args:["paginationShow"]}],s_paginationUpdate:[{type:t.Output,args:["paginationUpdate"]}],s_progress:[{type:t.Output,args:["progress"]}],s_reachBeginning:[{type:t.Output,args:["reachBeginning"]}],s_reachEnd:[{type:t.Output,args:["reachEnd"]}],s_realIndexChange:[{type:t.Output,args:["realIndexChange"]}],s_resize:[{type:t.Output,args:["resize"]}],s_scroll:[{type:t.Output,args:["scroll"]}],s_scrollbarDragEnd:[{type:t.Output,args:["scrollbarDragEnd"]}],s_scrollbarDragMove:[{type:t.Output,args:["scrollbarDragMove"]}],s_scrollbarDragStart:[{type:t.Output,args:["scrollbarDragStart"]}],s_setTransition:[{type:t.Output,args:["setTransition"]}],s_setTranslate:[{type:t.Output,args:["setTranslate"]}],s_slideChange:[{type:t.Output,args:["slideChange"]}],s_slideChangeTransitionEnd:[{type:t.Output,args:["slideChangeTransitionEnd"]}],s_slideChangeTransitionStart:[{type:t.Output,args:["slideChangeTransitionStart"]}],s_slideNextTransitionEnd:[{type:t.Output,args:["slideNextTransitionEnd"]}],s_slideNextTransitionStart:[{type:t.Output,args:["slideNextTransitionStart"]}],s_slidePrevTransitionEnd:[{type:t.Output,args:["slidePrevTransitionEnd"]}],s_slidePrevTransitionStart:[{type:t.Output,args:["slidePrevTransitionStart"]}],s_slideResetTransitionStart:[{type:t.Output,args:["slideResetTransitionStart"]}],s_slideResetTransitionEnd:[{type:t.Output,args:["slideResetTransitionEnd"]}],s_sliderMove:[{type:t.Output,args:["sliderMove"]}],s_sliderFirstMove:[{type:t.Output,args:["sliderFirstMove"]}],s_slidesLengthChange:[{type:t.Output,args:["slidesLengthChange"]}],s_slidesGridLengthChange:[{type:t.Output,args:["slidesGridLengthChange"]}],s_snapGridLengthChange:[{type:t.Output,args:["snapGridLengthChange"]}],s_snapIndexChange:[{type:t.Output,args:["snapIndexChange"]}],s_tap:[{type:t.Output,args:["tap"]}],s_toEdge:[{type:t.Output,args:["toEdge"]}],s_touchEnd:[{type:t.Output,args:["touchEnd"]}],s_touchMove:[{type:t.Output,args:["touchMove"]}],s_touchMoveOpposite:[{type:t.Output,args:["touchMoveOpposite"]}],s_touchStart:[{type:t.Output,args:["touchStart"]}],s_transitionEnd:[{type:t.Output,args:["transitionEnd"]}],s_transitionStart:[{type:t.Output,args:["transitionStart"]}],s_update:[{type:t.Output,args:["update"]}],s_zoomChange:[{type:t.Output,args:["zoomChange"]}],s_swiper:[{type:t.Output,args:["swiper"]}],indexChange:[{type:t.Output}],prevElRef:[{type:t.ViewChild,args:["prevElRef",{static:!1}]}],nextElRef:[{type:t.ViewChild,args:["nextElRef",{static:!1}]}],scrollbarElRef:[{type:t.ViewChild,args:["scrollbarElRef",{static:!1}]}],paginationElRef:[{type:t.ViewChild,args:["paginationElRef",{static:!1}]}],slidesEl:[{type:t.ContentChildren,args:[y,{descendants:!0}]}],containerClasses:[{type:t.HostBinding,args:["class"]}]};var v=function(){};v.decorators=[{type:t.NgModule,args:[{declarations:[f,y],exports:[f,y],imports:[i.CommonModule]}]}],e.SwiperComponent=f,e.SwiperModule=v,e.SwiperSlideDirective=y,Object.defineProperty(e,"__esModule",{value:!0})})); |
|
16 |
-//# sourceMappingURL=swiper_angular.umd.min.js.map |
|
17 | 0 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,16 @@ |
1 |
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("swiper/core"),require("rxjs")):"function"==typeof define&&define.amd?define("swiper_angular",["exports","@angular/core","@angular/common","swiper/core","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).swiper_angular={},e.ng.core,e.ng.common,e.Swiper,e.rxjs)}(this,(function(e,t,i,s,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(s); |
|
2 |
+/*! ***************************************************************************** |
|
3 |
+ Copyright (c) Microsoft Corporation. |
|
4 |
+ |
|
5 |
+ Permission to use, copy, modify, and/or distribute this software for any |
|
6 |
+ purpose with or without fee is hereby granted. |
|
7 |
+ |
|
8 |
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
|
9 |
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|
10 |
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
|
11 |
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
|
12 |
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
13 |
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
14 |
+ PERFORMANCE OF THIS SOFTWARE. |
|
15 |
+ ***************************************************************************** */Object.create;function p(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var s,n,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(s=r.next()).done;)a.push(s.value)}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}Object.create;function l(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function u(e,t){Object.keys(t).forEach((function(i){void 0!==e[i]?e[i]&&!t[i]||(l(t[i])&&l(e[i])&&Object.keys(t[i]).length>0?u(e[i],t[i]):e[i]=t[i]):e[i]=t[i]}))}var d=["pagination","navigation","scrollbar","virtual"];function c(e,t){if(void 0===t&&(t={}),l(e))return e;var i,s=null!=(i=e)&&""+i!="false";return!0===s?t:s}var h=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","nested","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"].map((function(e){return e.replace(/_/,"")}));function g(e){void 0===e&&(e={});var t={on:{}},i={};u(t,a.default.defaults),u(t,a.default.extendedDefaults),t._emitClasses=!0;var s={};return Object.keys(e).forEach((function(n){var r=n.replace(/^_/,"");void 0!==e[r]&&(h.indexOf(r)>=0?l(e[r])?(t[r]={},i[r]={},u(t[r],e[r]),u(i[r],e[r])):(t[r]=e[r],i[r]=e[r]):s[r]=e[r])})),{params:t,passedParams:i,rest:s}}var y=function(){function e(e){this.template=e,this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}return Object.defineProperty(e.prototype,"classNames",{get:function(){return this._classNames},set:function(e){this._classNames!==e&&(this._classNames=e,this.slideData={isActive:this._hasClass(["swiper-slide-active","swiper-slide-duplicate-active"]),isVisible:this._hasClass(["swiper-slide-visible"]),isDuplicate:this._hasClass(["swiper-slide-duplicate"]),isPrev:this._hasClass(["swiper-slide-prev","swiper-slide-duplicate-prev"]),isNext:this._hasClass(["swiper-slide-next","swiper-slide-duplicate-next"])})},enumerable:!1,configurable:!0}),e.prototype._hasClass=function(e){var t=this;return e.some((function(e){return t._classNames.indexOf(e)>=0}))},e}();y.decorators=[{type:t.Directive,args:[{selector:"[swiperSlide]"}]}],y.ctorParameters=function(){return[{type:t.TemplateRef}]},y.propDecorators={virtualIndex:[{type:t.Input}]};var f=function(){function e(e,i,s){this.zone=e,this.elementRef=i,this._changeDetectorRef=s,this.init=!0,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.s__beforeBreakpoint=new t.EventEmitter,this.s__containerClasses=new t.EventEmitter,this.s__slideClass=new t.EventEmitter,this.s__swiper=new t.EventEmitter,this.s_activeIndexChange=new t.EventEmitter,this.s_afterInit=new t.EventEmitter,this.s_autoplay=new t.EventEmitter,this.s_autoplayStart=new t.EventEmitter,this.s_autoplayStop=new t.EventEmitter,this.s_beforeDestroy=new t.EventEmitter,this.s_beforeInit=new t.EventEmitter,this.s_beforeLoopFix=new t.EventEmitter,this.s_beforeResize=new t.EventEmitter,this.s_beforeSlideChangeStart=new t.EventEmitter,this.s_beforeTransitionStart=new t.EventEmitter,this.s_breakpoint=new t.EventEmitter,this.s_changeDirection=new t.EventEmitter,this.s_click=new t.EventEmitter,this.s_doubleTap=new t.EventEmitter,this.s_doubleClick=new t.EventEmitter,this.s_destroy=new t.EventEmitter,this.s_fromEdge=new t.EventEmitter,this.s_hashChange=new t.EventEmitter,this.s_hashSet=new t.EventEmitter,this.s_imagesReady=new t.EventEmitter,this.s_init=new t.EventEmitter,this.s_keyPress=new t.EventEmitter,this.s_lazyImageLoad=new t.EventEmitter,this.s_lazyImageReady=new t.EventEmitter,this.s_loopFix=new t.EventEmitter,this.s_momentumBounce=new t.EventEmitter,this.s_navigationHide=new t.EventEmitter,this.s_navigationShow=new t.EventEmitter,this.s_observerUpdate=new t.EventEmitter,this.s_orientationchange=new t.EventEmitter,this.s_paginationHide=new t.EventEmitter,this.s_paginationRender=new t.EventEmitter,this.s_paginationShow=new t.EventEmitter,this.s_paginationUpdate=new t.EventEmitter,this.s_progress=new t.EventEmitter,this.s_reachBeginning=new t.EventEmitter,this.s_reachEnd=new t.EventEmitter,this.s_realIndexChange=new t.EventEmitter,this.s_resize=new t.EventEmitter,this.s_scroll=new t.EventEmitter,this.s_scrollbarDragEnd=new t.EventEmitter,this.s_scrollbarDragMove=new t.EventEmitter,this.s_scrollbarDragStart=new t.EventEmitter,this.s_setTransition=new t.EventEmitter,this.s_setTranslate=new t.EventEmitter,this.s_slideChange=new t.EventEmitter,this.s_slideChangeTransitionEnd=new t.EventEmitter,this.s_slideChangeTransitionStart=new t.EventEmitter,this.s_slideNextTransitionEnd=new t.EventEmitter,this.s_slideNextTransitionStart=new t.EventEmitter,this.s_slidePrevTransitionEnd=new t.EventEmitter,this.s_slidePrevTransitionStart=new t.EventEmitter,this.s_slideResetTransitionStart=new t.EventEmitter,this.s_slideResetTransitionEnd=new t.EventEmitter,this.s_sliderMove=new t.EventEmitter,this.s_sliderFirstMove=new t.EventEmitter,this.s_slidesLengthChange=new t.EventEmitter,this.s_slidesGridLengthChange=new t.EventEmitter,this.s_snapGridLengthChange=new t.EventEmitter,this.s_snapIndexChange=new t.EventEmitter,this.s_tap=new t.EventEmitter,this.s_toEdge=new t.EventEmitter,this.s_touchEnd=new t.EventEmitter,this.s_touchMove=new t.EventEmitter,this.s_touchMoveOpposite=new t.EventEmitter,this.s_touchStart=new t.EventEmitter,this.s_transitionEnd=new t.EventEmitter,this.s_transitionStart=new t.EventEmitter,this.s_update=new t.EventEmitter,this.s_zoomChange=new t.EventEmitter,this.s_swiper=new t.EventEmitter,this.indexChange=new t.EventEmitter,this._activeSlides=new n.Subject,this.containerClasses="swiper-container",this.style=null}return Object.defineProperty(e.prototype,"navigation",{get:function(){return this._navigation},set:function(e){this._navigation=c(e,{nextEl:null,prevEl:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pagination",{get:function(){return this._pagination},set:function(e){this._pagination=c(e,{el:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbar",{get:function(){return this._scrollbar},set:function(e){this._scrollbar=c(e,{el:null})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtual},set:function(e){this._virtual=c(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{set:function(e){this.setIndex(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{set:function(e){this.updateSwiper(e);var t=g(e).params;Object.assign(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevElRef",{set:function(e){this._setElement(e,this.navigation,"navigation","prevEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextElRef",{set:function(e){this._setElement(e,this.navigation,"navigation","nextEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarElRef",{set:function(e){this._setElement(e,this.scrollbar,"scrollbar")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paginationElRef",{set:function(e){this._setElement(e,this.pagination,"pagination")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slidesEl",{set:function(e){var t=this;this.slides=e.map((function(e,i){return e.slideIndex=i,e.classNames=t.slideClass,e})),this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.virtual||(this.prependSlides=n.of(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=n.of(this.slides.slice(0,this.loopedSlides)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeSlides",{get:function(){return this.virtual?this._activeSlides:n.of(this.slides)},enumerable:!1,configurable:!0}),e.prototype._setElement=function(e,t,i,s){if(void 0===s&&(s="el"),e||t){if(t){if(t[s]===e.nativeElement)return;t[s]=e.nativeElement}var n={};n[i]=!0,this.updateInitSwiper(n)}},e.prototype.ngOnInit=function(){var e=g(this).params;Object.assign(this,e)},e.prototype.ngAfterViewInit=function(){this.init&&(this.initSwiper(),this._changeDetectorRef.detectChanges())},e.prototype.initSwiper=function(){var e=this,t=g(this),i=t.params;t.passedParams;Object.assign(this,i),i.onAny=function(t){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var n=e["s_"+t];n&&n.emit.apply(n,o(i))},Object.assign(i.on,{slideChange:function(){e.indexChange.emit(e.swiperRef.realIndex)},_containerClasses:function(e,t){this.containerClasses=t},_swiper:function(t){e.swiperRef=t,e.s_swiper.emit(e.swiperRef),t.loopCreate=function(){},t.loopDestroy=function(){},i.loop&&(t.loopedSlides=e.loopedSlides),t.virtual&&t.params.virtual.enabled&&(t.virtual.slides=e.slides,t.params.virtual.cache=!1,t.params.virtual.renderExternal=function(t){e.updateVirtualSlides(t)},t.params.virtual.renderExternalUpdate=!1),e._changeDetectorRef.detectChanges()},_slideClass:function(t,i,s){var n=parseInt(i.dataset.swiperSlideIndex);if(e.virtual){var r=e.slides.find((function(e){return e.virtualIndex&&e.virtualIndex===n}));if(r)return void(r.classNames=s)}e.slides[n].classNames=s,e._changeDetectorRef.detectChanges()}}),new a.default(this.elementRef.nativeElement,i)},e.prototype.updateVirtualSlides=function(e){var t;!this.swiperRef||this.currentVirtualData&&this.currentVirtualData.from===e.from&&this.currentVirtualData.to===e.to&&this.currentVirtualData.offset===e.offset||(this.style=this.swiperRef.isHorizontal()?((t={})[this.swiperRef.rtlTranslate?"right":"left"]=e.offset+"px",t):{top:e.offset+"px"},this.currentVirtualData=e,this._activeSlides.next(e.slides),this._changeDetectorRef.detectChanges(),this.swiperRef.updateSlides(),this.swiperRef.updateProgress(),this.swiperRef.updateSlidesClasses(),this.swiperRef.lazy&&this.swiperRef.params.lazy.enabled&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0))},e.prototype.ngOnChanges=function(e){this.updateSwiper(e),this._changeDetectorRef.detectChanges()},e.prototype.updateInitSwiper=function(e){if(e&&this.swiperRef&&!this.swiperRef.destroyed){var t=this.swiperRef,i=(t.params,t.pagination),s=t.navigation,n=t.scrollbar,r=(t.virtual,t.thumbs);if(e.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&i&&!i.el?(this.updateParameter("pagination",this.pagination),i.init(),i.render(),i.update()):(i.destroy(),i.el=null)),e.scrollbar&&(this.scrollbar&&"boolean"!=typeof this.scrollbar&&this.scrollbar.el&&n&&!n.el?(this.updateParameter("scrollbar",this.scrollbar),n.init(),n.updateSize(),n.setTranslate()):(n.destroy(),n.el=null)),e.navigation&&(this.navigation&&"boolean"!=typeof this.navigation&&this.navigation.prevEl&&this.navigation.nextEl&&s&&!s.prevEl&&!s.nextEl?(this.updateParameter("navigation",this.navigation),s.init(),s.update()):s.prevEl&&s.nextEl&&(s.destroy(),s.nextEl=null,s.prevEl=null)),e.thumbs&&this.thumbs&&this.thumbs.swiper)this.updateParameter("thumbs",this.thumbs),r.init()&&r.update(!0);e.controller&&this.controller&&this.controller.control&&(this.swiperRef.controller.control=this.controller.control),this.swiperRef.update()}},e.prototype.updateSwiper=function(e){var t,i;if(!e.config&&e&&this.swiperRef&&!this.swiperRef.destroyed){for(var s in e)if(!(d.indexOf(s)>=0)){var n=null!==(i=null===(t=e[s])||void 0===t?void 0:t.currentValue)&&void 0!==i?i:e[s];this.updateParameter(s,n)}e.allowSlideNext&&(this.swiperRef.allowSlideNext=this.allowSlideNext),e.allowSlidePrev&&(this.swiperRef.allowSlidePrev=this.allowSlidePrev),e.direction&&this.swiperRef.changeDirection(this.direction,!1),e.breakpoints&&(this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.swiperRef.currentBreakpoint=null,this.swiperRef.setBreakpoint()),this.swiperRef.update()}},e.prototype.calcLoopedSlides=function(){if(this.loop){var e=this.slidesPerView;if(this.breakpoints){var t=a.default.prototype.getBreakpoint(this.breakpoints),i=t in this.breakpoints?this.breakpoints[t]:void 0;i&&i.slidesPerView&&(e=i.slidesPerView)}if("auto"===e)return this.loopedSlides=this.slides.length,this.slides.length;var s=this.loopedSlides||e;return(s+=this.loopAdditionalSlides)>this.slides.length&&(s=this.slides.length),this.loopedSlides=s,s}},e.prototype.updateParameter=function(e,t){if(this.swiperRef&&!this.swiperRef.destroyed){var i=e.replace(/^_/,"");Object.keys(this.swiperRef.modules).indexOf(i)>=0&&u(t,this.swiperRef.modules[i].params[i]),l(this.swiperRef.params[i])&&l(t)?u(this.swiperRef.params[i],t):this.swiperRef.params[i]=t}},e.prototype.setIndex=function(e,t,i){var s=this;this.swiperRef?e!==this.swiperRef.realIndex&&this.zone.runOutsideAngular((function(){s.loop?s.swiperRef.slideToLoop(e,t,!i):s.swiperRef.slideTo(e,t,!i)})):this.initialSlide=e},e.prototype.ngOnDestroy=function(){this.swiperRef.destroy()},e}();f.decorators=[{type:t.Component,args:[{selector:"swiper, [swiper]",template:'<ng-content select="[slot=container-start]"></ng-content>\n<ng-container *ngIf="navigation">\n <div class="swiper-button-prev" #prevElRef></div>\n <div class="swiper-button-next" #nextElRef></div>\n</ng-container>\n<div *ngIf="scrollbar" class="swiper-scrollbar" #scrollbarElRef></div>\n<div *ngIf="pagination" class="swiper-pagination" #paginationElRef></div>\n<div [ngClass]="wrapperClass">\n <ng-content select="[slot=wrapper-start]"></ng-content>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: prependSlides,\n key: \'prepend\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: activeSlides,\n key: \'\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: appendSlides,\n key: \'append\'\n }\n "\n ></ng-template>\n <ng-content select="[slot=wrapper-end]"></ng-content>\n</div>\n<ng-content select="[slot=container-end]"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides="loopSlides" let-slideKey="key">\n <div\n *ngFor="let slide of loopSlides | async"\n [ngClass]="slide.classNames + \' \' + (slideKey !== \'\' ? slideDuplicateClass : \'\')"\n [attr.data-swiper-slide-index]="slide.virtualIndex ? slide.virtualIndex : slide.slideIndex"\n [style]="style"\n >\n <ng-template\n [ngTemplateOutlet]="slide.template"\n [ngTemplateOutletContext]="{\n $implicit: slide.slideData\n }"\n ></ng-template>\n </div>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:["\n swiper {\n display: block;\n }\n "]}]}],f.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},f.propDecorators={init:[{type:t.Input}],direction:[{type:t.Input}],touchEventsTarget:[{type:t.Input}],initialSlide:[{type:t.Input}],speed:[{type:t.Input}],cssMode:[{type:t.Input}],updateOnWindowResize:[{type:t.Input}],nested:[{type:t.Input}],width:[{type:t.Input}],height:[{type:t.Input}],preventInteractionOnTransition:[{type:t.Input}],userAgent:[{type:t.Input}],url:[{type:t.Input}],edgeSwipeDetection:[{type:t.Input}],edgeSwipeThreshold:[{type:t.Input}],freeMode:[{type:t.Input}],freeModeMomentum:[{type:t.Input}],freeModeMomentumRatio:[{type:t.Input}],freeModeMomentumBounce:[{type:t.Input}],freeModeMomentumBounceRatio:[{type:t.Input}],freeModeMomentumVelocityRatio:[{type:t.Input}],freeModeSticky:[{type:t.Input}],freeModeMinimumVelocity:[{type:t.Input}],autoHeight:[{type:t.Input}],setWrapperSize:[{type:t.Input}],virtualTranslate:[{type:t.Input}],effect:[{type:t.Input}],breakpoints:[{type:t.Input}],spaceBetween:[{type:t.Input}],slidesPerView:[{type:t.Input}],slidesPerColumn:[{type:t.Input}],slidesPerColumnFill:[{type:t.Input}],slidesPerGroup:[{type:t.Input}],slidesPerGroupSkip:[{type:t.Input}],centeredSlides:[{type:t.Input}],centeredSlidesBounds:[{type:t.Input}],slidesOffsetBefore:[{type:t.Input}],slidesOffsetAfter:[{type:t.Input}],normalizeSlideIndex:[{type:t.Input}],centerInsufficientSlides:[{type:t.Input}],watchOverflow:[{type:t.Input}],roundLengths:[{type:t.Input}],touchRatio:[{type:t.Input}],touchAngle:[{type:t.Input}],simulateTouch:[{type:t.Input}],shortSwipes:[{type:t.Input}],longSwipes:[{type:t.Input}],longSwipesRatio:[{type:t.Input}],longSwipesMs:[{type:t.Input}],followFinger:[{type:t.Input}],allowTouchMove:[{type:t.Input}],threshold:[{type:t.Input}],touchMoveStopPropagation:[{type:t.Input}],touchStartPreventDefault:[{type:t.Input}],touchStartForcePreventDefault:[{type:t.Input}],touchReleaseOnEdges:[{type:t.Input}],uniqueNavElements:[{type:t.Input}],resistance:[{type:t.Input}],resistanceRatio:[{type:t.Input}],watchSlidesProgress:[{type:t.Input}],watchSlidesVisibility:[{type:t.Input}],grabCursor:[{type:t.Input}],preventClicks:[{type:t.Input}],preventClicksPropagation:[{type:t.Input}],slideToClickedSlide:[{type:t.Input}],preloadImages:[{type:t.Input}],updateOnImagesReady:[{type:t.Input}],loop:[{type:t.Input}],loopAdditionalSlides:[{type:t.Input}],loopedSlides:[{type:t.Input}],loopFillGroupWithBlank:[{type:t.Input}],loopPreventsSlide:[{type:t.Input}],allowSlidePrev:[{type:t.Input}],allowSlideNext:[{type:t.Input}],swipeHandler:[{type:t.Input}],noSwiping:[{type:t.Input}],noSwipingClass:[{type:t.Input}],noSwipingSelector:[{type:t.Input}],passiveListeners:[{type:t.Input}],containerModifierClass:[{type:t.Input}],slideClass:[{type:t.Input}],slideBlankClass:[{type:t.Input}],slideActiveClass:[{type:t.Input}],slideDuplicateActiveClass:[{type:t.Input}],slideVisibleClass:[{type:t.Input}],slideDuplicateClass:[{type:t.Input}],slideNextClass:[{type:t.Input}],slideDuplicateNextClass:[{type:t.Input}],slidePrevClass:[{type:t.Input}],slideDuplicatePrevClass:[{type:t.Input}],wrapperClass:[{type:t.Input}],runCallbacksOnInit:[{type:t.Input}],a11y:[{type:t.Input}],autoplay:[{type:t.Input}],controller:[{type:t.Input}],coverflowEffect:[{type:t.Input}],cubeEffect:[{type:t.Input}],fadeEffect:[{type:t.Input}],flipEffect:[{type:t.Input}],hashNavigation:[{type:t.Input}],history:[{type:t.Input}],keyboard:[{type:t.Input}],lazy:[{type:t.Input}],mousewheel:[{type:t.Input}],parallax:[{type:t.Input}],thumbs:[{type:t.Input}],zoom:[{type:t.Input}],navigation:[{type:t.Input}],pagination:[{type:t.Input}],scrollbar:[{type:t.Input}],virtual:[{type:t.Input}],index:[{type:t.Input}],config:[{type:t.Input}],s__beforeBreakpoint:[{type:t.Output,args:["_beforeBreakpoint"]}],s__containerClasses:[{type:t.Output,args:["_containerClasses"]}],s__slideClass:[{type:t.Output,args:["_slideClass"]}],s__swiper:[{type:t.Output,args:["_swiper"]}],s_activeIndexChange:[{type:t.Output,args:["activeIndexChange"]}],s_afterInit:[{type:t.Output,args:["afterInit"]}],s_autoplay:[{type:t.Output,args:["autoplay"]}],s_autoplayStart:[{type:t.Output,args:["autoplayStart"]}],s_autoplayStop:[{type:t.Output,args:["autoplayStop"]}],s_beforeDestroy:[{type:t.Output,args:["beforeDestroy"]}],s_beforeInit:[{type:t.Output,args:["beforeInit"]}],s_beforeLoopFix:[{type:t.Output,args:["beforeLoopFix"]}],s_beforeResize:[{type:t.Output,args:["beforeResize"]}],s_beforeSlideChangeStart:[{type:t.Output,args:["beforeSlideChangeStart"]}],s_beforeTransitionStart:[{type:t.Output,args:["beforeTransitionStart"]}],s_breakpoint:[{type:t.Output,args:["breakpoint"]}],s_changeDirection:[{type:t.Output,args:["changeDirection"]}],s_click:[{type:t.Output,args:["click"]}],s_doubleTap:[{type:t.Output,args:["doubleTap"]}],s_doubleClick:[{type:t.Output,args:["doubleClick"]}],s_destroy:[{type:t.Output,args:["destroy"]}],s_fromEdge:[{type:t.Output,args:["fromEdge"]}],s_hashChange:[{type:t.Output,args:["hashChange"]}],s_hashSet:[{type:t.Output,args:["hashSet"]}],s_imagesReady:[{type:t.Output,args:["imagesReady"]}],s_init:[{type:t.Output,args:["init"]}],s_keyPress:[{type:t.Output,args:["keyPress"]}],s_lazyImageLoad:[{type:t.Output,args:["lazyImageLoad"]}],s_lazyImageReady:[{type:t.Output,args:["lazyImageReady"]}],s_loopFix:[{type:t.Output,args:["loopFix"]}],s_momentumBounce:[{type:t.Output,args:["momentumBounce"]}],s_navigationHide:[{type:t.Output,args:["navigationHide"]}],s_navigationShow:[{type:t.Output,args:["navigationShow"]}],s_observerUpdate:[{type:t.Output,args:["observerUpdate"]}],s_orientationchange:[{type:t.Output,args:["orientationchange"]}],s_paginationHide:[{type:t.Output,args:["paginationHide"]}],s_paginationRender:[{type:t.Output,args:["paginationRender"]}],s_paginationShow:[{type:t.Output,args:["paginationShow"]}],s_paginationUpdate:[{type:t.Output,args:["paginationUpdate"]}],s_progress:[{type:t.Output,args:["progress"]}],s_reachBeginning:[{type:t.Output,args:["reachBeginning"]}],s_reachEnd:[{type:t.Output,args:["reachEnd"]}],s_realIndexChange:[{type:t.Output,args:["realIndexChange"]}],s_resize:[{type:t.Output,args:["resize"]}],s_scroll:[{type:t.Output,args:["scroll"]}],s_scrollbarDragEnd:[{type:t.Output,args:["scrollbarDragEnd"]}],s_scrollbarDragMove:[{type:t.Output,args:["scrollbarDragMove"]}],s_scrollbarDragStart:[{type:t.Output,args:["scrollbarDragStart"]}],s_setTransition:[{type:t.Output,args:["setTransition"]}],s_setTranslate:[{type:t.Output,args:["setTranslate"]}],s_slideChange:[{type:t.Output,args:["slideChange"]}],s_slideChangeTransitionEnd:[{type:t.Output,args:["slideChangeTransitionEnd"]}],s_slideChangeTransitionStart:[{type:t.Output,args:["slideChangeTransitionStart"]}],s_slideNextTransitionEnd:[{type:t.Output,args:["slideNextTransitionEnd"]}],s_slideNextTransitionStart:[{type:t.Output,args:["slideNextTransitionStart"]}],s_slidePrevTransitionEnd:[{type:t.Output,args:["slidePrevTransitionEnd"]}],s_slidePrevTransitionStart:[{type:t.Output,args:["slidePrevTransitionStart"]}],s_slideResetTransitionStart:[{type:t.Output,args:["slideResetTransitionStart"]}],s_slideResetTransitionEnd:[{type:t.Output,args:["slideResetTransitionEnd"]}],s_sliderMove:[{type:t.Output,args:["sliderMove"]}],s_sliderFirstMove:[{type:t.Output,args:["sliderFirstMove"]}],s_slidesLengthChange:[{type:t.Output,args:["slidesLengthChange"]}],s_slidesGridLengthChange:[{type:t.Output,args:["slidesGridLengthChange"]}],s_snapGridLengthChange:[{type:t.Output,args:["snapGridLengthChange"]}],s_snapIndexChange:[{type:t.Output,args:["snapIndexChange"]}],s_tap:[{type:t.Output,args:["tap"]}],s_toEdge:[{type:t.Output,args:["toEdge"]}],s_touchEnd:[{type:t.Output,args:["touchEnd"]}],s_touchMove:[{type:t.Output,args:["touchMove"]}],s_touchMoveOpposite:[{type:t.Output,args:["touchMoveOpposite"]}],s_touchStart:[{type:t.Output,args:["touchStart"]}],s_transitionEnd:[{type:t.Output,args:["transitionEnd"]}],s_transitionStart:[{type:t.Output,args:["transitionStart"]}],s_update:[{type:t.Output,args:["update"]}],s_zoomChange:[{type:t.Output,args:["zoomChange"]}],s_swiper:[{type:t.Output,args:["swiper"]}],indexChange:[{type:t.Output}],prevElRef:[{type:t.ViewChild,args:["prevElRef",{static:!1}]}],nextElRef:[{type:t.ViewChild,args:["nextElRef",{static:!1}]}],scrollbarElRef:[{type:t.ViewChild,args:["scrollbarElRef",{static:!1}]}],paginationElRef:[{type:t.ViewChild,args:["paginationElRef",{static:!1}]}],slidesEl:[{type:t.ContentChildren,args:[y,{descendants:!0}]}],containerClasses:[{type:t.HostBinding,args:["class"]}]};var v=function(){};v.decorators=[{type:t.NgModule,args:[{declarations:[f,y],exports:[f,y],imports:[i.CommonModule]}]}],e.SwiperComponent=f,e.SwiperModule=v,e.SwiperSlideDirective=y,Object.defineProperty(e,"__esModule",{value:!0})})); |
|
16 |
+//# sourceMappingURL=swiper_angular.umd.min.js.map |
|
0 | 17 |
\ No newline at end of file |