ionic-swipe-all
Advanced tools
Comparing version 1.0.1 to 1.1.0-rc1
@@ -0,8 +1,12 @@ | ||
import { ElementRef, EventEmitter, OnInit } from '@angular/core'; | ||
import { HammerGestureConfig } from '@angular/platform-browser'; | ||
export declare class IonicSwipeAll extends HammerGestureConfig { | ||
overrides: { | ||
swipe: { | ||
direction: number; | ||
}; | ||
}; | ||
export declare class IonicSwipeAll extends HammerGestureConfig implements OnInit { | ||
private elem; | ||
swipeAll: any; | ||
swipe: EventEmitter<any>; | ||
swipeup: EventEmitter<any>; | ||
swipedown: EventEmitter<any>; | ||
private hammer; | ||
constructor(elem: ElementRef); | ||
ngOnInit(): void; | ||
} |
@@ -11,3 +11,3 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
import { Injectable } from '@angular/core'; | ||
import { Directive, ElementRef, EventEmitter, Input, Output } from '@angular/core'; | ||
import { HammerGestureConfig } from '@angular/platform-browser'; | ||
@@ -17,17 +17,37 @@ import * as Hammer from 'hammerjs'; | ||
__extends(IonicSwipeAll, _super); | ||
function IonicSwipeAll() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.overrides = { | ||
swipe: { direction: Hammer.DIRECTION_ALL }, | ||
}; | ||
function IonicSwipeAll(elem) { | ||
var _this = _super.call(this) || this; | ||
_this.elem = elem; | ||
_this.swipe = new EventEmitter(); | ||
_this.swipeup = new EventEmitter(); | ||
_this.swipedown = new EventEmitter(); | ||
_this.hammer = Hammer; | ||
return _this; | ||
} | ||
IonicSwipeAll.prototype.ngOnInit = function () { | ||
var _this = this; | ||
var instance = new Hammer(this.elem.nativeElement); | ||
instance.get('swipe').set({ direction: this.hammer.DIRECTION_ALL }); | ||
instance.on('swipe', function (event) { return _this.swipe.emit(event); }); | ||
instance.on('swipeup', function (event) { return _this.swipeup.emit(event); }); | ||
instance.on('swipedown', function (event) { return _this.swipedown.emit(event); }); | ||
}; | ||
IonicSwipeAll.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[swipeAll]', | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
IonicSwipeAll.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
]; }; | ||
IonicSwipeAll.propDecorators = { | ||
'swipeAll': [{ type: Input, args: ['swipeAll',] },], | ||
'swipe': [{ type: Output },], | ||
'swipeup': [{ type: Output },], | ||
'swipedown': [{ type: Output },], | ||
}; | ||
return IonicSwipeAll; | ||
}(HammerGestureConfig)); | ||
export { IonicSwipeAll }; | ||
IonicSwipeAll.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
IonicSwipeAll.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=ionic.swipe.all.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"IonicSwipeAll":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HammerGestureConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}]}}},{"__symbolic":"module","version":1,"metadata":{"IonicSwipeAll":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HammerGestureConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}]}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"IonicSwipeAll":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HammerGestureConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[swipeAll]"}]}],"members":{"swipeAll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["swipeAll"]}]}],"swipe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"swipeup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"swipedown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"IonicSwipeAll":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HammerGestureConfig"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[swipeAll]"}]}],"members":{"swipeAll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["swipeAll"]}]}],"swipe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"swipeup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"swipedown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] |
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser'; | ||
import { IonicSwipeAll } from './ionic.swipe.all'; | ||
@@ -8,18 +7,13 @@ var IonicSwipeAllModule = (function () { | ||
} | ||
IonicSwipeAllModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [IonicSwipeAll], | ||
imports: [CommonModule], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
IonicSwipeAllModule.ctorParameters = function () { return []; }; | ||
return IonicSwipeAllModule; | ||
}()); | ||
export { IonicSwipeAllModule }; | ||
IonicSwipeAllModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
providers: [ | ||
{ | ||
provide: HAMMER_GESTURE_CONFIG, | ||
useClass: IonicSwipeAll, | ||
} | ||
], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
IonicSwipeAllModule.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=module.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"IonicSwipeAllModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HAMMER_GESTURE_CONFIG"},"useClass":{"__symbolic":"reference","module":"./ionic.swipe.all","name":"IonicSwipeAll"}}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"IonicSwipeAllModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"HAMMER_GESTURE_CONFIG"},"useClass":{"__symbolic":"reference","module":"./ionic.swipe.all","name":"IonicSwipeAll"}}]}]}]}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"IonicSwipeAllModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./ionic.swipe.all","name":"IonicSwipeAll"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"IonicSwipeAllModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./ionic.swipe.all","name":"IonicSwipeAll"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}]}}}] |
/** | ||
* @fileoverview This file is generated by the Angular template compiler. | ||
* Do not edit. | ||
* @suppress {suspiciousCode,uselessCode,missingProperties} | ||
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} | ||
*/ | ||
@@ -6,0 +6,0 @@ import * as import0 from '@angular/core'; |
/** | ||
* @fileoverview This file is generated by the Angular template compiler. | ||
* Do not edit. | ||
* @suppress {suspiciousCode,uselessCode,missingProperties} | ||
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} | ||
*/ | ||
@@ -20,4 +20,2 @@ /* tslint:disable */ | ||
import * as import2 from '@angular/common'; | ||
import * as import3 from './ionic.swipe.all'; | ||
import * as import4 from '@angular/platform-browser'; | ||
var IonicSwipeAllModuleInjector = (function (_super) { | ||
@@ -38,12 +36,2 @@ __extends(IonicSwipeAllModuleInjector, _super); | ||
}); | ||
Object.defineProperty(IonicSwipeAllModuleInjector.prototype, "_HAMMER_GESTURE_CONFIG_3", { | ||
get: function () { | ||
if ((this.__HAMMER_GESTURE_CONFIG_3 == null)) { | ||
(this.__HAMMER_GESTURE_CONFIG_3 = new import3.IonicSwipeAll()); | ||
} | ||
return this.__HAMMER_GESTURE_CONFIG_3; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
IonicSwipeAllModuleInjector.prototype.createInternal = function () { | ||
@@ -64,5 +52,2 @@ this._CommonModule_0 = new import2.CommonModule(); | ||
} | ||
if ((token === import4.HAMMER_GESTURE_CONFIG)) { | ||
return this._HAMMER_GESTURE_CONFIG_3; | ||
} | ||
return notFoundResult; | ||
@@ -69,0 +54,0 @@ }; |
{ | ||
"name": "ionic-swipe-all", | ||
"version": "1.0.1", | ||
"version": "1.1.0-rc1", | ||
"description": "Allow Ionic (≥ v2) to recognize both horizontal and vertical swipe gesture.", | ||
@@ -28,8 +28,8 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@angular/common": "4.0.1", | ||
"@angular/compiler": "4.0.1", | ||
"@angular/compiler-cli": "4.0.1", | ||
"@angular/core": "4.0.1", | ||
"@angular/platform-browser": "4.0.1", | ||
"@angular/platform-browser-dynamic": "4.0.1", | ||
"@angular/common": "4.1.3", | ||
"@angular/compiler": "4.1.3", | ||
"@angular/compiler-cli": "4.1.3", | ||
"@angular/core": "4.1.3", | ||
"@angular/platform-browser": "4.1.3", | ||
"@angular/platform-browser-dynamic": "4.1.3", | ||
"hammerjs": "2.0.8" | ||
@@ -40,6 +40,4 @@ }, | ||
"@types/hammerjs": "2.0.34", | ||
"codelyzer": "^2.0.0-beta.1", | ||
"rimraf": "^2.5.4", | ||
"tslint": "^3.15.1", | ||
"typescript": "2.2.2" | ||
"typescript": "2.4.1" | ||
}, | ||
@@ -46,0 +44,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15483
4
147
2
+ Added@angular/common@4.1.3(transitive)
+ Added@angular/compiler@4.1.3(transitive)
+ Added@angular/compiler-cli@4.1.3(transitive)
+ Added@angular/core@4.1.3(transitive)
+ Added@angular/platform-browser@4.1.3(transitive)
+ Added@angular/platform-browser-dynamic@4.1.3(transitive)
+ Added@angular/tsc-wrapped@4.1.3(transitive)
- Removed@angular/common@4.0.1(transitive)
- Removed@angular/compiler@4.0.1(transitive)
- Removed@angular/compiler-cli@4.0.1(transitive)
- Removed@angular/core@4.0.1(transitive)
- Removed@angular/platform-browser@4.0.1(transitive)
- Removed@angular/platform-browser-dynamic@4.0.1(transitive)
- Removed@angular/tsc-wrapped@4.0.1(transitive)
Updated@angular/common@4.1.3
Updated@angular/compiler@4.1.3
Updated@angular/compiler-cli@4.1.3
Updated@angular/core@4.1.3