diff --git a/example/package-lock.json b/example/package-lock.json index 239983c..79a07ec 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-swiper-wrapper-example", - "version": "4.7.0", + "version": "4.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -6437,15 +6437,6 @@ "limiter": "1.1.2" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -6457,6 +6448,15 @@ "strip-ansi": "3.0.1" } }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "stringstream": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", diff --git a/example/package.json b/example/package.json index 5cb3546..8eb18d6 100644 --- a/example/package.json +++ b/example/package.json @@ -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" }, diff --git a/package-lock.json b/package-lock.json index 270a7df..273bfac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-swiper-wrapper", - "version": "4.7.0", + "version": "4.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 69ee514..4fe3698 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/swiper.component.html b/src/lib/swiper.component.html index 6fbbcfc..1d2b1f3 100644 --- a/src/lib/swiper.component.html +++ b/src/lib/swiper.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/lib/swiper.component.ts b/src/lib/swiper.component.ts index 8c8175c..1b0802d 100644 --- a/src/lib/swiper.component.ts +++ b/src/lib/swiper.component.ts @@ -56,6 +56,10 @@ export class SwiperComponent implements OnInit, OnDestroy { @Output('scroll' ) S_SCROLL = new EventEmitter(); @Output('progress' ) S_PROGRESS = new EventEmitter(); + @Output('keyPress' ) S_KEYPRESS = new EventEmitter(); + + @Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter(); + @Output('afterResize' ) S_AFTERRESIZE = new EventEmitter(); @Output('setTranslate' ) S_SETTRANSLATE = new EventEmitter(); @Output('setTransition' ) S_SETTRANSITION = new EventEmitter(); diff --git a/src/lib/swiper.directive.ts b/src/lib/swiper.directive.ts index 5a79b67..0282b54 100644 --- a/src/lib/swiper.directive.ts +++ b/src/lib/swiper.directive.ts @@ -45,6 +45,10 @@ export class SwiperDirective implements OnInit, DoCheck, OnDestroy, OnChanges { @Output('scroll' ) S_SCROLL = new EventEmitter(); @Output('progress' ) S_PROGRESS = new EventEmitter(); + @Output('keyPress' ) S_KEYPRESS = new EventEmitter(); + + @Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter(); + @Output('afterResize' ) S_AFTERRESIZE = new EventEmitter(); @Output('setTranslate' ) S_SETTRANSLATE = new EventEmitter(); @Output('setTransition' ) S_SETTRANSITION = new EventEmitter(); diff --git a/src/lib/swiper.interfaces.ts b/src/lib/swiper.interfaces.ts index 80cfb4c..a753cde 100644 --- a/src/lib/swiper.interfaces.ts +++ b/src/lib/swiper.interfaces.ts @@ -6,6 +6,10 @@ export const SwiperEvents = [ 'scroll', 'progress', + 'keyPress', + + 'beforeResize', + 'afterResize', 'setTranslate', 'setTransition',