Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Commit

Permalink
Added missing keyPress and before/afterResize events
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Dec 12, 2017
1 parent 65093b2 commit 673152e
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 14 deletions.
20 changes: 10 additions & 10 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ngx-swiper-wrapper-example",
"description": "Example app for the ngx-swiper-wrapper",
"license": "MIT",
"version": "4.7.0",
"version": "4.8.0",
"tslint": {
"extends": "./tslint.json"
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Angular wrapper library for Swiper",
"bugs": "https://github.com/zefoy/ngx-swiper-wrapper/issues",
"license": "MIT",
"version": "4.7.0",
"version": "4.8.0",
"main": "bundles/ngx-swiper-wrapper.umd.js",
"module": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/swiper.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="swiper-container" [swiper]="getConfig()" [index]="index" [hidden]="hidden" [fxHide]="fxHide" [fxShow]="fxShow" [disabled]="disabled" [useSwiperClass]="useSwiperClass" [runInsideAngular]="runInsideAngular" (indexChange)="indexChange.emit($event)" (init)="S_INIT.emit($event)" (destroy)="S_DESTROY.emit($event)" (scroll)="S_SCROLL.emit($event)" (progress)="S_PROGRESS.emit($event)" (setTranslate)="S_SETTRANSLATE.emit($event)" (setTransition)="S_SETTRANSITION.emit($event)" (autoplay)="S_AUTOPLAY.emit($event)" (autoplayStart)="S_AUTOPLAYSTART.emit($event)" (autoplayStop)="S_AUTOPLAYSTOP.emit($event)" (reachBeginning)="S_REACHBEGINNING.emit($event)" (reachEnd)="S_REACHEND.emit($event)" (slideChangeStart)="S_SLIDECHANGESTART.emit($event)" (slideChangeEnd)="S_SLIDECHANGEEND.emit($event)" (slideNextStart)="S_SLIDENEXTSTART.emit($event)" (slideNextEnd)="S_SLIDENEXTEND.emit($event)" (slidePrevStart)="S_SLIDEPREVSTART.emit($event)" (slidePrevEnd)="S_SLIDEPREVEND.emit($event)" (sliderMove)="S_SLIDERMOVE.emit($event)" (swiperClick)="S_CLICK.emit($event)" (swiperTap)="S_TAP.emit($event)" (swiperDoubleTap)="S_DOUBLETAP.emit($event)" (swiperTouchStart)="S_TOUCHSTART.emit($event)" (swiperTouchMove)="S_TOUCHMOVE.emit($event)" (swiperTouchMoveOpposite)="S_TOUCHMOVEOPPOSITE.emit($event)" (swiperTouchEnd)="S_TOUCHEND.emit($event)" (swiperTransitionStart)="S_TRANSITIONSTART.emit($event)" (swiperTransitionEnd)="S_TRANSITIONEND.emit($event)" (imagesReady)="S_IMAGESREADY.emit($event)" (lazyImageLoad)="S_LAZYIMAGELOAD.emit($event)" (lazyImageReady)="S_LAZYIMAGEREADY.emit($event)" (paginationRendered)="S_PAGINATIONRENDERED.emit($event)">
<div class="swiper-container" [swiper]="getConfig()" [index]="index" [hidden]="hidden" [fxHide]="fxHide" [fxShow]="fxShow" [disabled]="disabled" [useSwiperClass]="useSwiperClass" [runInsideAngular]="runInsideAngular" (indexChange)="indexChange.emit($event)" (init)="S_INIT.emit($event)" (destroy)="S_DESTROY.emit($event)" (scroll)="S_SCROLL.emit($event)" (progress)="S_PROGRESS.emit($event)" (keyPress)="S_KEYPRESS.emit($event)" (beforeResize)="S_BEFORERESIZE.emit($event)" (afterResize)="S_AFTERRESIZE.emit($event)" (setTranslate)="S_SETTRANSLATE.emit($event)" (setTransition)="S_SETTRANSITION.emit($event)" (autoplay)="S_AUTOPLAY.emit($event)" (autoplayStart)="S_AUTOPLAYSTART.emit($event)" (autoplayStop)="S_AUTOPLAYSTOP.emit($event)" (reachBeginning)="S_REACHBEGINNING.emit($event)" (reachEnd)="S_REACHEND.emit($event)" (slideChangeStart)="S_SLIDECHANGESTART.emit($event)" (slideChangeEnd)="S_SLIDECHANGEEND.emit($event)" (slideNextStart)="S_SLIDENEXTSTART.emit($event)" (slideNextEnd)="S_SLIDENEXTEND.emit($event)" (slidePrevStart)="S_SLIDEPREVSTART.emit($event)" (slidePrevEnd)="S_SLIDEPREVEND.emit($event)" (sliderMove)="S_SLIDERMOVE.emit($event)" (swiperClick)="S_CLICK.emit($event)" (swiperTap)="S_TAP.emit($event)" (swiperDoubleTap)="S_DOUBLETAP.emit($event)" (swiperTouchStart)="S_TOUCHSTART.emit($event)" (swiperTouchMove)="S_TOUCHMOVE.emit($event)" (swiperTouchMoveOpposite)="S_TOUCHMOVEOPPOSITE.emit($event)" (swiperTouchEnd)="S_TOUCHEND.emit($event)" (swiperTransitionStart)="S_TRANSITIONSTART.emit($event)" (swiperTransitionEnd)="S_TRANSITIONEND.emit($event)" (imagesReady)="S_IMAGESREADY.emit($event)" (lazyImageLoad)="S_LAZYIMAGELOAD.emit($event)" (lazyImageReady)="S_LAZYIMAGEREADY.emit($event)" (paginationRendered)="S_PAGINATIONRENDERED.emit($event)">
<div #swiperSlides class="swiper-wrapper">
<ng-content></ng-content>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/lib/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export class SwiperComponent implements OnInit, OnDestroy {

@Output('scroll' ) S_SCROLL = new EventEmitter<any>();
@Output('progress' ) S_PROGRESS = new EventEmitter<any>();
@Output('keyPress' ) S_KEYPRESS = new EventEmitter<any>();

@Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter<any>();
@Output('afterResize' ) S_AFTERRESIZE = new EventEmitter<any>();

@Output('setTranslate' ) S_SETTRANSLATE = new EventEmitter<any>();
@Output('setTransition' ) S_SETTRANSITION = new EventEmitter<any>();
Expand Down
4 changes: 4 additions & 0 deletions src/lib/swiper.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class SwiperDirective implements OnInit, DoCheck, OnDestroy, OnChanges {

@Output('scroll' ) S_SCROLL = new EventEmitter<any>();
@Output('progress' ) S_PROGRESS = new EventEmitter<any>();
@Output('keyPress' ) S_KEYPRESS = new EventEmitter<any>();

@Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter<any>();
@Output('afterResize' ) S_AFTERRESIZE = new EventEmitter<any>();

@Output('setTranslate' ) S_SETTRANSLATE = new EventEmitter<any>();
@Output('setTransition' ) S_SETTRANSITION = new EventEmitter<any>();
Expand Down
4 changes: 4 additions & 0 deletions src/lib/swiper.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const SwiperEvents = [

'scroll',
'progress',
'keyPress',

'beforeResize',
'afterResize',

'setTranslate',
'setTransition',
Expand Down

0 comments on commit 673152e

Please sign in to comment.