Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-virtual-swiper

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-virtual-swiper - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0-rc.0

esm2015/lib/utils.js

94

bundles/ngx-virtual-swiper.umd.js

@@ -16,3 +16,3 @@ (function (global, factory) {

finalizeTime: 400,
preventDefaultClick: true
preventClicks: true
};

@@ -51,2 +51,19 @@

*/
/** @type {?} */
var touchPredicate = function (e, key) { return e && key && e.touches && e.touches[0] && e.touches[0][key]; };
/** @type {?} */
var clickPredicate = function (e, key) { return e && key && e[key]; };
/** @type {?} */
var getPositions = function (originalEvent) {
/** @type {?} */
var clientX = touchPredicate(originalEvent, 'clientX') || clickPredicate(originalEvent, 'clientX');
/** @type {?} */
var clientY = touchPredicate(originalEvent, 'clientY') || clickPredicate(originalEvent, 'clientY');
return { clientX: clientX, clientY: clientY, originalEvent: originalEvent };
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxVirtualSwiperDirective = /** @class */ (function () {

@@ -56,6 +73,16 @@ function NgxVirtualSwiperDirective() {

this.subscription = new rxjs.Subscription();
this.mousedown = function (e) { return _this.start(getPositions(e)); };
this.touchstart = function (e) { return _this.start(getPositions(e)); };
this.mousemove = function (e) { return _this.move(getPositions(e)); };
this.touchmove = function (e) { return _this.move(getPositions(e)); };
this.mouseup = function () { return _this.finish(); };
this.touchend = function () { return _this.finish(); };
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
};
this._mousemoveX = function (e) {
if (e) {
/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetXFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -70,3 +97,3 @@ var value = offset - e.clientX + _this._clientX;

/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetYFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -78,3 +105,13 @@ var value = offset - e.clientY + _this._clientY;

};
this.mousemove = function (e) {
this.start = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
if (_this.options.preventClicks) {
e.originalEvent.preventDefault();
}
};
this.move = function (e) {
if (_this._isSwiped) {

@@ -89,25 +126,8 @@ if (_this.cdk.orientation === 'horizontal') {

};
this.mousedown = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
e.preventDefault();
};
this.click = function (e) {
if (_this.changed && _this.options.preventDefaultClick) {
e.preventDefault();
}
};
this.mouseup = function () {
this.finish = function () {
if (_this._isSwiped) {
_this.toggleSwiped(false);
_this.finalize();
}
};
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
_this.finalize();
};
this.toggleSwiped = function (value) {

@@ -118,4 +138,3 @@ _this._isSwiped = value;

if (_this.options.finalize) {
clearTimeout(_this._scrollTimer);
_this._scrollTimer = setTimeout(_this.scrollToNearestIndex, _this.options.finalizeTime);
_this.scrollToNearestIndex();
}

@@ -136,2 +155,18 @@ };

};
this.addEventListener = function () {
_this.cdk.elementRef.nativeElement.addEventListener('click', _this.preventClicks, true);
};
this.removeEventListener = function () {
_this.cdk.elementRef.nativeElement.removeEventListener('click', _this.preventClicks, true);
};
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
*/
this.preventClicks = function (e) {
if (_this.changed && _this.options.preventClicks) {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
}
};
}

@@ -159,2 +194,3 @@ /**

}
this.addEventListener();
this.subscription.add(this.cdk.scrolledIndexChange.subscribe(function (i) { return _this._index = i; }));

@@ -170,3 +206,3 @@ };

this.subscription.unsubscribe();
clearTimeout(this._scrollTimer);
this.removeEventListener();
};

@@ -205,6 +241,8 @@ Object.defineProperty(NgxVirtualSwiperDirective.prototype, "changed", {

itemSize: [{ type: core.Input }],
mousedown: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }],
touchstart: [{ type: core.HostListener, args: ['touchstart', ['$event'],] }],
mousemove: [{ type: core.HostListener, args: ['mousemove', ['$event'],] }],
mousedown: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }],
click: [{ type: core.HostListener, args: ['click', ['$event'],] }],
touchmove: [{ type: core.HostListener, args: ['touchmove', ['$event'],] }],
mouseup: [{ type: core.HostListener, args: ['document:mouseup',] }],
touchend: [{ type: core.HostListener, args: ['touchend',] }],
scroll: [{ type: core.HostListener, args: ['scroll', ['$event'],] }]

@@ -211,0 +249,0 @@ };

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/scrolling"),require("rxjs"),require("util"),require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-virtual-swiper",["exports","@angular/cdk/scrolling","rxjs","util","@angular/core"],t):t(e["ngx-virtual-swiper"]={},e.ng.cdk.scrolling,e.rxjs,e.util,e.ng.core)}(this,function(e,t,o,r,i){"use strict";var n={threshold:20,finalize:!0,finalizeTime:400,preventDefaultClick:!0},s=function(){return(s=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=function(){function e(){var i=this;this.subscription=new o.Subscription,this._mousemoveX=function(e){if(e){var t=i.cdk.measureScrollOffset(i.options.offsetXFrom)-e.clientX+i._clientX;i.cdk.scrollToOffset(t),i._clientX=e.clientX}},this._mousemoveY=function(e){if(e){var t=i.cdk.measureScrollOffset(i.options.offsetYFrom)-e.clientY+i._clientY;i.cdk.scrollToOffset(t),i._clientY=e.clientY}},this.mousemove=function(e){i._isSwiped&&("horizontal"===i.cdk.orientation?i._mousemoveX(e):"vertical"===i.cdk.orientation&&i._mousemoveY(e))},this.mousedown=function(e){i.toggleSwiped(!0),i._clientX=e.clientX,i._clientY=e.clientY,i._prevClientX=e.clientX,i._prevClientY=e.clientY,e.preventDefault()},this.click=function(e){i.changed&&i.options.preventDefaultClick&&e.preventDefault()},this.mouseup=function(){i._isSwiped&&i.toggleSwiped(!1)},this.scroll=function(e){i._scrollLeft=e.target.scrollLeft,i._scrollTop=e.target.scrollTop,i.finalize()},this.toggleSwiped=function(e){i._isSwiped=e},this.finalize=function(){i.options.finalize&&(clearTimeout(i._scrollTimer),i._scrollTimer=setTimeout(i.scrollToNearestIndex,i.options.finalizeTime))},this.scrollToNearestIndex=function(){var e="horizontal"===i.cdk.orientation?i._scrollLeft:"vertical"===i.cdk.orientation?i._scrollTop:null;if(r.isNumber(e)&&r.isNumber(i._halfItemSize)){var t=e-i.itemSize*i._index>i._halfItemSize?i._index+1:i._index;i.cdk.scrollToIndex(t,"smooth")}}}return e.prototype.ngOnChanges=function(){this.options=s({},n,this.options),this._halfItemSize=this.itemSize/2},e.prototype.ngOnInit=function(){var t=this;if(!this.cdk)throw new Error("CdkVirtualScrollViewport is not present.");this.subscription.add(this.cdk.scrolledIndexChange.subscribe(function(e){return t._index=e}))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),clearTimeout(this._scrollTimer)},Object.defineProperty(e.prototype,"changed",{get:function(){var e=!1;r.isNumber(this._prevClientX)&&r.isNumber(this.options.threshold)&&(e=Math.abs(this._prevClientX-this._clientX)>=this.options.threshold);if(r.isNumber(this._prevClientY)&&r.isNumber(this.options.threshold)){var t=Math.abs(this._prevClientY-this._clientY);e=e||t>=this.options.threshold}return e},enumerable:!0,configurable:!0}),e.decorators=[{type:i.Directive,args:[{selector:"[ngxVirtualSwiper]"}]}],e.ctorParameters=function(){return[]},e.propDecorators={cdk:[{type:i.ContentChild,args:[t.CdkVirtualScrollViewport]}],options:[{type:i.Input,args:["ngxVirtualSwiper"]}],itemSize:[{type:i.Input}],mousemove:[{type:i.HostListener,args:["mousemove",["$event"]]}],mousedown:[{type:i.HostListener,args:["mousedown",["$event"]]}],click:[{type:i.HostListener,args:["click",["$event"]]}],mouseup:[{type:i.HostListener,args:["document:mouseup"]}],scroll:[{type:i.HostListener,args:["scroll",["$event"]]}]},e}(),c=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[],declarations:[l],exports:[l]}]}],e}();e.NgxVirtualSwiperOptions=n,e.NgxVirtualSwiperDirective=l,e.NgxVirtualSwiperModule=c,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/scrolling"),require("rxjs"),require("util"),require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-virtual-swiper",["exports","@angular/cdk/scrolling","rxjs","util","@angular/core"],t):t(e["ngx-virtual-swiper"]={},e.ng.cdk.scrolling,e.rxjs,e.util,e.ng.core)}(this,function(e,t,n,r,i){"use strict";var o={threshold:20,finalize:!0,finalizeTime:400,preventClicks:!0},s=function(){return(s=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=function(e,t){return e&&t&&e.touches&&e.touches[0]&&e.touches[0][t]},l=function(e,t){return e&&t&&e[t]},u=function(e){return{clientX:c(e,"clientX")||l(e,"clientX"),clientY:c(e,"clientY")||l(e,"clientY"),originalEvent:e}},a=function(){function e(){var i=this;this.subscription=new n.Subscription,this.mousedown=function(e){return i.start(u(e))},this.touchstart=function(e){return i.start(u(e))},this.mousemove=function(e){return i.move(u(e))},this.touchmove=function(e){return i.move(u(e))},this.mouseup=function(){return i.finish()},this.touchend=function(){return i.finish()},this.scroll=function(e){i._scrollLeft=e.target.scrollLeft,i._scrollTop=e.target.scrollTop},this._mousemoveX=function(e){if(e){var t=i.cdk.measureScrollOffset()-e.clientX+i._clientX;i.cdk.scrollToOffset(t),i._clientX=e.clientX}},this._mousemoveY=function(e){if(e){var t=i.cdk.measureScrollOffset()-e.clientY+i._clientY;i.cdk.scrollToOffset(t),i._clientY=e.clientY}},this.start=function(e){i.toggleSwiped(!0),i._clientX=e.clientX,i._clientY=e.clientY,i._prevClientX=e.clientX,i._prevClientY=e.clientY,i.options.preventClicks&&e.originalEvent.preventDefault()},this.move=function(e){i._isSwiped&&("horizontal"===i.cdk.orientation?i._mousemoveX(e):"vertical"===i.cdk.orientation&&i._mousemoveY(e))},this.finish=function(){i._isSwiped&&(i.toggleSwiped(!1),i.finalize())},this.toggleSwiped=function(e){i._isSwiped=e},this.finalize=function(){i.options.finalize&&i.scrollToNearestIndex()},this.scrollToNearestIndex=function(){var e="horizontal"===i.cdk.orientation?i._scrollLeft:"vertical"===i.cdk.orientation?i._scrollTop:null;if(r.isNumber(e)&&r.isNumber(i._halfItemSize)){var t=e-i.itemSize*i._index>i._halfItemSize?i._index+1:i._index;i.cdk.scrollToIndex(t,"smooth")}},this.addEventListener=function(){i.cdk.elementRef.nativeElement.addEventListener("click",i.preventClicks,!0)},this.removeEventListener=function(){i.cdk.elementRef.nativeElement.removeEventListener("click",i.preventClicks,!0)},this.preventClicks=function(e){i.changed&&i.options.preventClicks&&(e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation())}}return e.prototype.ngOnChanges=function(){this.options=s({},o,this.options),this._halfItemSize=this.itemSize/2},e.prototype.ngOnInit=function(){var t=this;if(!this.cdk)throw new Error("CdkVirtualScrollViewport is not present.");this.addEventListener(),this.subscription.add(this.cdk.scrolledIndexChange.subscribe(function(e){return t._index=e}))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.removeEventListener()},Object.defineProperty(e.prototype,"changed",{get:function(){var e=!1;r.isNumber(this._prevClientX)&&r.isNumber(this.options.threshold)&&(e=Math.abs(this._prevClientX-this._clientX)>=this.options.threshold);if(r.isNumber(this._prevClientY)&&r.isNumber(this.options.threshold)){var t=Math.abs(this._prevClientY-this._clientY);e=e||t>=this.options.threshold}return e},enumerable:!0,configurable:!0}),e.decorators=[{type:i.Directive,args:[{selector:"[ngxVirtualSwiper]"}]}],e.ctorParameters=function(){return[]},e.propDecorators={cdk:[{type:i.ContentChild,args:[t.CdkVirtualScrollViewport]}],options:[{type:i.Input,args:["ngxVirtualSwiper"]}],itemSize:[{type:i.Input}],mousedown:[{type:i.HostListener,args:["mousedown",["$event"]]}],touchstart:[{type:i.HostListener,args:["touchstart",["$event"]]}],mousemove:[{type:i.HostListener,args:["mousemove",["$event"]]}],touchmove:[{type:i.HostListener,args:["touchmove",["$event"]]}],mouseup:[{type:i.HostListener,args:["document:mouseup"]}],touchend:[{type:i.HostListener,args:["touchend"]}],scroll:[{type:i.HostListener,args:["scroll",["$event"]]}]},e}(),p=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[],declarations:[a],exports:[a]}]}],e}();e.NgxVirtualSwiperOptions=o,e.NgxVirtualSwiperDirective=a,e.NgxVirtualSwiperModule=p,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-virtual-swiper.umd.min.js.map

@@ -10,4 +10,4 @@ /**

finalizeTime: 400,
preventDefaultClick: true
preventClicks: true
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXZpcnR1YWwtc3dpcGVyLyIsInNvdXJjZXMiOlsibGliL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLE1BQU0sT0FBTyx1QkFBdUIsR0FBc0M7SUFDdEUsU0FBUyxFQUFFLEVBQUU7SUFDYixRQUFRLEVBQUUsSUFBSTtJQUNkLFlBQVksRUFBRSxHQUFHO0lBQ2pCLG1CQUFtQixFQUFFLElBQUk7Q0FDNUIiLCJ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cbiJdfQ==

@@ -10,8 +10,4 @@ /**

if (false) {
/** @type {?} */
INgxVirtualSwiperOptions.prototype.offsetXFrom;
/** @type {?} */
INgxVirtualSwiperOptions.prototype.offsetYFrom;
/**
* the property returns to actual integer index
* returns to actual integer index
* @type {?}

@@ -26,3 +22,3 @@ */

/**
* the property is required by links, the library should know is it real swipe or fake
* is required by links, the library should know is it real swipe or fake
* @type {?}

@@ -32,7 +28,20 @@ */

/**
* the property prevent default last click
* prevent all type of clicks (e.g. links, Angular`s click)
* @type {?}
*/
INgxVirtualSwiperOptions.prototype.preventDefaultClick;
INgxVirtualSwiperOptions.prototype.preventClicks;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC12aXJ0dWFsLXN3aXBlci8iLCJzb3VyY2VzIjpbImxpYi9pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFFQSw4Q0FXQzs7O0lBVkcsK0NBQXdCOztJQUN4QiwrQ0FBd0I7Ozs7O0lBRXhCLDRDQUFrQjs7Ozs7SUFFbEIsZ0RBQXFCOzs7OztJQUVyQiw2Q0FBa0I7Ozs7O0lBRWxCLHVEQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE9mZnNldEZyb20gPSAndG9wJyB8ICdsZWZ0JyB8ICdyaWdodCcgfCAnYm90dG9tJyB8ICdzdGFydCcgfCAnZW5kJztcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSU5neFZpcnR1YWxTd2lwZXJPcHRpb25zIHtcclxuICAgIG9mZnNldFhGcm9tOiBPZmZzZXRGcm9tO1xyXG4gICAgb2Zmc2V0WUZyb206IE9mZnNldEZyb207XHJcbiAgICAvKiogdGhlIHByb3BlcnR5IHJldHVybnMgdG8gYWN0dWFsIGludGVnZXIgaW5kZXggKi9cclxuICAgIGZpbmFsaXplOiBib29sZWFuO1xyXG4gICAgLyoqIHRoZSB0aW1lIHdoZW4gdGhlIHtAbGluayBmaW5hbGl6ZX0gd2lsbCBiZSBjYWxsZWQgYWZ0ZXIgc2Nyb2xsIGV2ZW50ICovXHJcbiAgICBmaW5hbGl6ZVRpbWU6IG51bWJlcjtcclxuICAgIC8qKiB0aGUgcHJvcGVydHkgaXMgcmVxdWlyZWQgYnkgbGlua3MsIHRoZSBsaWJyYXJ5IHNob3VsZCBrbm93IGlzIGl0IHJlYWwgc3dpcGUgb3IgZmFrZSAqL1xyXG4gICAgdGhyZXNob2xkOiBudW1iZXI7XHJcbiAgICAvKiogdGhlIHByb3BlcnR5IHByZXZlbnQgZGVmYXVsdCBsYXN0IGNsaWNrICovXHJcbiAgICBwcmV2ZW50RGVmYXVsdENsaWNrOiBib29sZWFuO1xyXG59XHJcbiJdfQ==
/**
* prevent bugs at SSR
* @record
*/
export function IPositionEvent() { }
if (false) {
/** @type {?} */
IPositionEvent.prototype.clientX;
/** @type {?} */
IPositionEvent.prototype.clientY;
/** @type {?} */
IPositionEvent.prototype.originalEvent;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC12aXJ0dWFsLXN3aXBlci8iLCJzb3VyY2VzIjpbImxpYi9pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSw4Q0FTQzs7Ozs7O0lBUEcsNENBQWtCOzs7OztJQUVsQixnREFBcUI7Ozs7O0lBRXJCLDZDQUFrQjs7Ozs7SUFFbEIsaURBQXVCOzs7Ozs7QUFJM0Isb0NBSUM7OztJQUhHLGlDQUFnQjs7SUFDaEIsaUNBQWdCOztJQUNoQix1Q0FBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElOZ3hWaXJ0dWFsU3dpcGVyT3B0aW9ucyB7XHJcbiAgICAvKiogcmV0dXJucyB0byBhY3R1YWwgaW50ZWdlciBpbmRleCAqL1xyXG4gICAgZmluYWxpemU6IGJvb2xlYW47XHJcbiAgICAvKiogdGhlIHRpbWUgd2hlbiB0aGUge0BsaW5rIGZpbmFsaXplfSB3aWxsIGJlIGNhbGxlZCBhZnRlciBzY3JvbGwgZXZlbnQgKi9cclxuICAgIGZpbmFsaXplVGltZTogbnVtYmVyO1xyXG4gICAgLyoqIGlzIHJlcXVpcmVkIGJ5IGxpbmtzLCB0aGUgbGlicmFyeSBzaG91bGQga25vdyBpcyBpdCByZWFsIHN3aXBlIG9yIGZha2UgKi9cclxuICAgIHRocmVzaG9sZDogbnVtYmVyO1xyXG4gICAgLyoqIHByZXZlbnQgYWxsIHR5cGUgb2YgY2xpY2tzIChlLmcuIGxpbmtzLCBBbmd1bGFyYHMgY2xpY2spICovXHJcbiAgICBwcmV2ZW50Q2xpY2tzOiBib29sZWFuO1xyXG59XHJcblxyXG4vKiogcHJldmVudCBidWdzIGF0IFNTUiAqL1xyXG5leHBvcnQgaW50ZXJmYWNlIElQb3NpdGlvbkV2ZW50IHtcclxuICAgIGNsaWVudFg6IG51bWJlcjtcclxuICAgIGNsaWVudFk6IG51bWJlcjtcclxuICAgIG9yaWdpbmFsRXZlbnQ6IGFueTtcclxufVxyXG4iXX0=

@@ -10,9 +10,20 @@ /**

import { NgxVirtualSwiperOptions } from './constants';
import { getPositions } from './utils';
export class NgxVirtualSwiperDirective {
constructor() {
this.subscription = new Subscription();
this.mousedown = (e) => this.start(getPositions(e));
this.touchstart = (e) => this.start(getPositions(e));
this.mousemove = (e) => this.move(getPositions(e));
this.touchmove = (e) => this.move(getPositions(e));
this.mouseup = () => this.finish();
this.touchend = () => this.finish();
this.scroll = (e) => {
this._scrollLeft = e.target.scrollLeft;
this._scrollTop = e.target.scrollTop;
};
this._mousemoveX = (e) => {
if (e) {
/** @type {?} */
const offset = this.cdk.measureScrollOffset(this.options.offsetXFrom);
const offset = this.cdk.measureScrollOffset();
/** @type {?} */

@@ -27,3 +38,3 @@ const value = offset - e.clientX + this._clientX;

/** @type {?} */
const offset = this.cdk.measureScrollOffset(this.options.offsetYFrom);
const offset = this.cdk.measureScrollOffset();
/** @type {?} */

@@ -35,3 +46,13 @@ const value = offset - e.clientY + this._clientY;

};
this.mousemove = (e) => {
this.start = (e) => {
this.toggleSwiped(true);
this._clientX = e.clientX;
this._clientY = e.clientY;
this._prevClientX = e.clientX;
this._prevClientY = e.clientY;
if (this.options.preventClicks) {
e.originalEvent.preventDefault();
}
};
this.move = (e) => {
if (this._isSwiped) {

@@ -46,25 +67,8 @@ if (this.cdk.orientation === 'horizontal') {

};
this.mousedown = (e) => {
this.toggleSwiped(true);
this._clientX = e.clientX;
this._clientY = e.clientY;
this._prevClientX = e.clientX;
this._prevClientY = e.clientY;
e.preventDefault();
};
this.click = (e) => {
if (this.changed && this.options.preventDefaultClick) {
e.preventDefault();
}
};
this.mouseup = () => {
this.finish = () => {
if (this._isSwiped) {
this.toggleSwiped(false);
this.finalize();
}
};
this.scroll = (e) => {
this._scrollLeft = e.target.scrollLeft;
this._scrollTop = e.target.scrollTop;
this.finalize();
};
this.toggleSwiped = (value) => {

@@ -75,4 +79,3 @@ this._isSwiped = value;

if (this.options.finalize) {
clearTimeout(this._scrollTimer);
this._scrollTimer = setTimeout(this.scrollToNearestIndex, this.options.finalizeTime);
this.scrollToNearestIndex();
}

@@ -93,2 +96,18 @@ };

};
this.addEventListener = () => {
this.cdk.elementRef.nativeElement.addEventListener('click', this.preventClicks, true);
};
this.removeEventListener = () => {
this.cdk.elementRef.nativeElement.removeEventListener('click', this.preventClicks, true);
};
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
*/
this.preventClicks = (e) => {
if (this.changed && this.options.preventClicks) {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
}
};
}

@@ -109,2 +128,3 @@ /**

}
this.addEventListener();
this.subscription.add(this.cdk.scrolledIndexChange.subscribe(i => this._index = i));

@@ -117,3 +137,3 @@ }

this.subscription.unsubscribe();
clearTimeout(this._scrollTimer);
this.removeEventListener();
}

@@ -150,6 +170,8 @@ /**

itemSize: [{ type: Input }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
touchstart: [{ type: HostListener, args: ['touchstart', ['$event'],] }],
mousemove: [{ type: HostListener, args: ['mousemove', ['$event'],] }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
click: [{ type: HostListener, args: ['click', ['$event'],] }],
touchmove: [{ type: HostListener, args: ['touchmove', ['$event'],] }],
mouseup: [{ type: HostListener, args: ['document:mouseup',] }],
touchend: [{ type: HostListener, args: ['touchend',] }],
scroll: [{ type: HostListener, args: ['scroll', ['$event'],] }]

@@ -193,22 +215,27 @@ };

NgxVirtualSwiperDirective.prototype._scrollLeft;
/**
* contains id of the last {\@link setTimeout}
* @type {?}
*/
NgxVirtualSwiperDirective.prototype._scrollTimer;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveX;
NgxVirtualSwiperDirective.prototype.mousedown;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveY;
NgxVirtualSwiperDirective.prototype.touchstart;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mousemove;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mousedown;
NgxVirtualSwiperDirective.prototype.touchmove;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.click;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mouseup;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.touchend;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.scroll;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveX;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveY;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.start;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.move;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.finish;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.toggleSwiped;

@@ -219,3 +246,12 @@ /** @type {?} */

NgxVirtualSwiperDirective.prototype.scrollToNearestIndex;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.addEventListener;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.removeEventListener;
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
* @type {?}
*/
NgxVirtualSwiperDirective.prototype.preventClicks;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXZpcnR1YWwtc3dpcGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC12aXJ0dWFsLXN3aXBlci8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtdmlydHVhbC1zd2lwZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFnQyxNQUFNLGVBQWUsQ0FBQztBQUMzRyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3BDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDaEMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBTXRELE1BQU0sT0FBTyx5QkFBeUI7SUFxQmxDO1FBZlMsaUJBQVksR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBK0MzQyxnQkFBVyxHQUFHLENBQUMsQ0FBQyxFQUFRLEVBQUU7WUFDdEIsSUFBSSxDQUFDLEVBQUU7O3NCQUNHLE1BQU0sR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLG1CQUFtQixDQUFDLElB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vT2Zmc2V0KHZhbHVlKTtcclxuICAgICAgICAgICAgdGhpcy5fY2xpZW50WCA9IGUuY2xpZW50WDtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgX21vdXNlbW92ZVkgPSAoZTogSVBvc2l0aW9uRXZlbnQpOiB2b2lkID0+IHtcclxuICAgICAgICBpZiAoZSkge1xyXG4gICAgICAgICAgICBjb25zdCBvZmZzZXQgPSB0aGlzLmNkay5tZWFzdXJlU2Nyb2xsT2Zmc2V0KCk7XHJcbiAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gb2Zmc2V0IC0gZS5jbGllbnRZICsgdGhpcy5fY2xpZW50WTtcclxuICAgICAgICAgICAgdGhpcy5jZGsuc2Nyb2xsVG9PZmZzZXQodmFsdWUpO1xyXG4gICAgICAgICAgICB0aGlzLl9jbGllbnRZID0gZS5jbGllbnRZO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBzdGFydCA9IChlOiBJUG9zaXRpb25FdmVudCk6IHZvaWQgPT4ge1xyXG4gICAgICAgIHRoaXMudG9nZ2xlU3dpcGVkKHRydWUpO1xyXG4gICAgICAgIHRoaXMuX2NsaWVudFggPSBlLmNsaWVudFg7XHJcbiAgICAgICAgdGhpcy5fY2xpZW50WSA9IGUuY2xpZW50WTtcclxuICAgICAgICB0aGlzLl9wcmV2Q2xpZW50WCA9IGUuY2xpZW50WDtcclxuICAgICAgICB0aGlzLl9wcmV2Q2xpZW50WSA9IGUuY2xpZW50WTtcclxuICAgICAgICBpZiAodGhpcy5vcHRpb25zLnByZXZlbnRDbGlja3MpIHtcclxuICAgICAgICAgICAgZS5vcmlnaW5hbEV2ZW50LnByZXZlbnREZWZhdWx0KCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIG1vdmUgPSAoZTogSVBvc2l0aW9uRXZlbnQpOiB2b2lkID0+IHtcclxuICAgICAgICBpZiAodGhpcy5faXNTd2lwZWQpIHtcclxuICAgICAgIC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bnMucHJldmVudENsaWNrcykge1xyXG4gICAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpO1xyXG4gICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XHJcbiAgICAgICAgICAgIGUuc3RvcEltbWVkaWF0ZVByb3BhZ2F0aW9uKCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcbiJdfQ==

@@ -10,4 +10,4 @@ /**

finalizeTime: 400,
preventDefaultClick: true
preventClicks: true
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXZpcnR1YWwtc3dpcGVyLyIsInNvdXJjZXMiOlsibGliL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLE1BQU0sS0FBTyx1QkFBdUIsR0FBc0M7SUFDdEUsU0FBUyxFQUFFLEVBQUU7SUFDYixRQUFRLEVBQUUsSUFBSTtJQUNkLFlBQVksRUFBRSxHQUFHO0lBQ2pCLG1CQUFtQixFQUFFLElBQUk7Q0FDNUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJTmd4VmlydHVhbFN3aXBlck9wdGlvbnMgfSBmcm9tICcuL2ludGVyZmFjZXMnO1xyXG5cclxuZXhwb3J0IGNvbnN0IE5neFZpcnR1YWxTd2lwZXJPcHRpb25zOiBQYXJ0aWFsPElOZ3hWaXJ0dWFsU3dpcGVyT3B0aW9ucz4gPSB7XHJcbiAgICB0aHJlc2hvbGQ6IDIwLFxyXG4gICAgZmluYWxpemU6IHRydWUsXHJcbiAgICBmaW5hbGl6ZVRpbWU6IDQwMCxcclxuICAgIHByZXZlbnREZWZhdWx0Q2xpY2s6IHRydWVcclxufTtcclxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXZpcnR1YWwtc3dpcGVyLyIsInNvdXJjZXMiOlsibGliL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLE1BQU0sS0FBTyx1QkFBdUIsR0FBc0M7SUFDdEUsU0FBUyxFQUFFLEVBQUU7SUFDYixRQUFRLEVBQUUsSUFBSTtJQUNkLFlBQVksRUFBRSxHQUFHO0lBQ2pCLGFBQWEsRUFBRSxJQUFJO0NBQ3RCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSU5neFZpcnR1YWxTd2lwZXJPcHRpb25zIH0gZnJvbSAnLi9pbnRlcmZhY2VzJztcclxuXHJcbmV4cG9ydCBjb25zdCBOZ3hWaXJ0dWFsU3dpcGVyT3B0aW9uczogUGFydGlhbDxJTmd4VmlydHVhbFN3aXBlck9wdGlvbnM+ID0ge1xyXG4gICAgdGhyZXNob2xkOiAyMCxcclxuICAgIGZpbmFsaXplOiB0cnVlLFxyXG4gICAgZmluYWxpemVUaW1lOiA0MDAsXHJcbiAgICBwcmV2ZW50Q2xpY2tzOiB0cnVlXHJcbn07XHJcbiJdfQ==

@@ -10,8 +10,4 @@ /**

if (false) {
/** @type {?} */
INgxVirtualSwiperOptions.prototype.offsetXFrom;
/** @type {?} */
INgxVirtualSwiperOptions.prototype.offsetYFrom;
/**
* the property returns to actual integer index
* returns to actual integer index
* @type {?}

@@ -26,3 +22,3 @@ */

/**
* the property is required by links, the library should know is it real swipe or fake
* is required by links, the library should know is it real swipe or fake
* @type {?}

@@ -32,7 +28,20 @@ */

/**
* the property prevent default last click
* prevent all type of clicks (e.g. links, Angular`s click)
* @type {?}
*/
INgxVirtualSwiperOptions.prototype.preventDefaultClick;
INgxVirtualSwiperOptions.prototype.preventClicks;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiJ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dENsaWNrOiBib29sZWFuO1xyXG59XHJcbiJdfQ==
/**
* prevent bugs at SSR
* @record
*/
export function IPositionEvent() { }
if (false) {
/** @type {?} */
IPositionEvent.prototype.clientX;
/** @type {?} */
IPositionEvent.prototype.clientY;
/** @type {?} */
IPositionEvent.prototype.originalEvent;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC12aXJ0dWFsLXN3aXBlci8iLCJzb3VyY2VzIjpbImxpYi9pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSw4Q0FTQzs7Ozs7O0lBUEcsNENBQWtCOzs7OztJQUVsQixnREFBcUI7Ozs7O0lBRXJCLDZDQUFrQjs7Ozs7SUFFbEIsaURBQXVCOzs7Ozs7QUFJM0Isb0NBSUM7OztJQUhHLGlDQUFnQjs7SUFDaEIsaUNBQWdCOztJQUNoQix1Q0FBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElOZ3hWaXJ0dWFsU3dpcGVyT3B0aW9ucyB7XHJcbiAgICAvKiogcmV0dXJucyB0byBhY3R1YWwgaW50ZWdlciBpbmRleCAqL1xyXG4gICAgZmluYWxpemU6IGJvb2xlYW47XHJcbiAgICAvKiogdGhlIHRpbWUgd2hlbiB0aGUge0BsaW5rIGZpbmFsaXplfSB3aWxsIGJlIGNhbGxlZCBhZnRlciBzY3JvbGwgZXZlbnQgKi9cclxuICAgIGZpbmFsaXplVGltZTogbnVtYmVyO1xyXG4gICAgLyoqIGlzIHJlcXVpcmVkIGJ5IGxpbmtzLCB0aGUgbGlicmFyeSBzaG91bGQga25vdyBpcyBpdCByZWFsIHN3aXBlIG9yIGZha2UgKi9cclxuICAgIHRocmVzaG9sZDogbnVtYmVyO1xyXG4gICAgLyoqIHByZXZlbnQgYWxsIHR5cGUgb2YgY2xpY2tzIChlLmcuIGxpbmtzLCBBbmd1bGFyYHMgY2xpY2spICovXHJcbiAgICBwcmV2ZW50Q2xpY2tzOiBib29sZWFuO1xyXG59XHJcblxyXG4vKiogcHJldmVudCBidWdzIGF0IFNTUiAqL1xyXG5leHBvcnQgaW50ZXJmYWNlIElQb3NpdGlvbkV2ZW50IHtcclxuICAgIGNsaWVudFg6IG51bWJlcjtcclxuICAgIGNsaWVudFk6IG51bWJlcjtcclxuICAgIG9yaWdpbmFsRXZlbnQ6IGFueTtcclxufVxyXG4iXX0=

@@ -11,2 +11,3 @@ /**

import { NgxVirtualSwiperOptions } from './constants';
import { getPositions } from './utils';
var NgxVirtualSwiperDirective = /** @class */ (function () {

@@ -16,6 +17,16 @@ function NgxVirtualSwiperDirective() {

this.subscription = new Subscription();
this.mousedown = function (e) { return _this.start(getPositions(e)); };
this.touchstart = function (e) { return _this.start(getPositions(e)); };
this.mousemove = function (e) { return _this.move(getPositions(e)); };
this.touchmove = function (e) { return _this.move(getPositions(e)); };
this.mouseup = function () { return _this.finish(); };
this.touchend = function () { return _this.finish(); };
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
};
this._mousemoveX = function (e) {
if (e) {
/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetXFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -30,3 +41,3 @@ var value = offset - e.clientX + _this._clientX;

/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetYFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -38,3 +49,13 @@ var value = offset - e.clientY + _this._clientY;

};
this.mousemove = function (e) {
this.start = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
if (_this.options.preventClicks) {
e.originalEvent.preventDefault();
}
};
this.move = function (e) {
if (_this._isSwiped) {

@@ -49,25 +70,8 @@ if (_this.cdk.orientation === 'horizontal') {

};
this.mousedown = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
e.preventDefault();
};
this.click = function (e) {
if (_this.changed && _this.options.preventDefaultClick) {
e.preventDefault();
}
};
this.mouseup = function () {
this.finish = function () {
if (_this._isSwiped) {
_this.toggleSwiped(false);
_this.finalize();
}
};
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
_this.finalize();
};
this.toggleSwiped = function (value) {

@@ -78,4 +82,3 @@ _this._isSwiped = value;

if (_this.options.finalize) {
clearTimeout(_this._scrollTimer);
_this._scrollTimer = setTimeout(_this.scrollToNearestIndex, _this.options.finalizeTime);
_this.scrollToNearestIndex();
}

@@ -96,2 +99,18 @@ };

};
this.addEventListener = function () {
_this.cdk.elementRef.nativeElement.addEventListener('click', _this.preventClicks, true);
};
this.removeEventListener = function () {
_this.cdk.elementRef.nativeElement.removeEventListener('click', _this.preventClicks, true);
};
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
*/
this.preventClicks = function (e) {
if (_this.changed && _this.options.preventClicks) {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
}
};
}

@@ -119,2 +138,3 @@ /**

}
this.addEventListener();
this.subscription.add(this.cdk.scrolledIndexChange.subscribe(function (i) { return _this._index = i; }));

@@ -130,3 +150,3 @@ };

this.subscription.unsubscribe();
clearTimeout(this._scrollTimer);
this.removeEventListener();
};

@@ -166,6 +186,8 @@ Object.defineProperty(NgxVirtualSwiperDirective.prototype, "changed", {

itemSize: [{ type: Input }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
touchstart: [{ type: HostListener, args: ['touchstart', ['$event'],] }],
mousemove: [{ type: HostListener, args: ['mousemove', ['$event'],] }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
click: [{ type: HostListener, args: ['click', ['$event'],] }],
touchmove: [{ type: HostListener, args: ['touchmove', ['$event'],] }],
mouseup: [{ type: HostListener, args: ['document:mouseup',] }],
touchend: [{ type: HostListener, args: ['touchend',] }],
scroll: [{ type: HostListener, args: ['scroll', ['$event'],] }]

@@ -212,22 +234,27 @@ };

NgxVirtualSwiperDirective.prototype._scrollLeft;
/**
* contains id of the last {\@link setTimeout}
* @type {?}
*/
NgxVirtualSwiperDirective.prototype._scrollTimer;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveX;
NgxVirtualSwiperDirective.prototype.mousedown;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveY;
NgxVirtualSwiperDirective.prototype.touchstart;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mousemove;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mousedown;
NgxVirtualSwiperDirective.prototype.touchmove;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.click;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.mouseup;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.touchend;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.scroll;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveX;
/** @type {?} */
NgxVirtualSwiperDirective.prototype._mousemoveY;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.start;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.move;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.finish;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.toggleSwiped;

@@ -238,3 +265,12 @@ /** @type {?} */

NgxVirtualSwiperDirective.prototype.scrollToNearestIndex;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.addEventListener;
/** @type {?} */
NgxVirtualSwiperDirective.prototype.removeEventListener;
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
* @type {?}
*/
NgxVirtualSwiperDirective.prototype.preventClicks;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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yXG4gICAgICAgIGlmIChlKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IG9mZnNldCA9IHRoaXMuY2RrLm1lYXN1cmVTY3JvbGxPZmZzZXQodGhpcy5vcHRpb25zLm9mZnNldFhGcm9tKTtcclxuICAgICAgICAgICAgY29uc3QgdmFsdWUgPSBvZmZzZXQgLSBlLmNsaWVudFggKyB0aGlzLl9jbGllbnRYO1xyXG4gICAgICAgICAgICB0aGlzLmNkay5zY3JvbGxUb09mZnNldCh2YWx1ZSk7XHJcbiAgICAgICAgICAgIHRoaXMuX2NsaWVudFggPSBlLmNsaWVudFg7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIF9tb3VzZW1vdmVZID0gKGUpOiB2b2lkID0+IHtcclxuICAgICAgICBpZiAoZSkge1xyXG4gICAgICAgICAgICBjb25zdCBvZmZzZXQgPSB0aGlzLmNkay5tZWFzdXJlU2Nyb2xsT2Zmc2V0KHRoaXMub3B0aW9ucy5vZmZzZXRZRnJvbSk7XHJcbiAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gb2Zmc2V0IC0gZS5jbGllbnRZICsgdGhpcy5fY2xpZW50WTtcclxuICAgICAgICAgICAgdGhpcy5jZGsuc2Nyb2xsVG9PZmZzZXQodmFsdWUpO1xyXG4gICAgICAgICAgICB0aGlzLl9jbGllbnRZID0gZS5jbGllbnRZO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBASG9zdExpc3RlbmVyKCdtb3VzZW1vdmUnLCBbJyRldmVudCddKSBtb3VzZW1vdmUgPSAoZSk6IHZvaWQgPT4ge1xyXG4gICAgICAgIGlmICh0aGlzLl9pc1N3aXBlZCkge1xyXG4gICAgICAgICAgICBpZiAodGhpcy5jZGsub3JpZW50YXRpb24gPT09ICdob3Jpem9udGFsJykge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5fbW91c2Vtb3ZlWChlKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHN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clxufVxyXG4iXX0=

@@ -15,3 +15,3 @@ import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';

finalizeTime: 400,
preventDefaultClick: true
preventClicks: true
};

@@ -28,9 +28,36 @@

*/
/** @type {?} */
const touchPredicate = (e, key) => e && key && e.touches && e.touches[0] && e.touches[0][key];
/** @type {?} */
const clickPredicate = (e, key) => e && key && e[key];
/** @type {?} */
const getPositions = (originalEvent) => {
/** @type {?} */
const clientX = touchPredicate(originalEvent, 'clientX') || clickPredicate(originalEvent, 'clientX');
/** @type {?} */
const clientY = touchPredicate(originalEvent, 'clientY') || clickPredicate(originalEvent, 'clientY');
return { clientX, clientY, originalEvent };
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class NgxVirtualSwiperDirective {
constructor() {
this.subscription = new Subscription();
this.mousedown = (e) => this.start(getPositions(e));
this.touchstart = (e) => this.start(getPositions(e));
this.mousemove = (e) => this.move(getPositions(e));
this.touchmove = (e) => this.move(getPositions(e));
this.mouseup = () => this.finish();
this.touchend = () => this.finish();
this.scroll = (e) => {
this._scrollLeft = e.target.scrollLeft;
this._scrollTop = e.target.scrollTop;
};
this._mousemoveX = (e) => {
if (e) {
/** @type {?} */
const offset = this.cdk.measureScrollOffset(this.options.offsetXFrom);
const offset = this.cdk.measureScrollOffset();
/** @type {?} */

@@ -45,3 +72,3 @@ const value = offset - e.clientX + this._clientX;

/** @type {?} */
const offset = this.cdk.measureScrollOffset(this.options.offsetYFrom);
const offset = this.cdk.measureScrollOffset();
/** @type {?} */

@@ -53,3 +80,13 @@ const value = offset - e.clientY + this._clientY;

};
this.mousemove = (e) => {
this.start = (e) => {
this.toggleSwiped(true);
this._clientX = e.clientX;
this._clientY = e.clientY;
this._prevClientX = e.clientX;
this._prevClientY = e.clientY;
if (this.options.preventClicks) {
e.originalEvent.preventDefault();
}
};
this.move = (e) => {
if (this._isSwiped) {

@@ -64,25 +101,8 @@ if (this.cdk.orientation === 'horizontal') {

};
this.mousedown = (e) => {
this.toggleSwiped(true);
this._clientX = e.clientX;
this._clientY = e.clientY;
this._prevClientX = e.clientX;
this._prevClientY = e.clientY;
e.preventDefault();
};
this.click = (e) => {
if (this.changed && this.options.preventDefaultClick) {
e.preventDefault();
}
};
this.mouseup = () => {
this.finish = () => {
if (this._isSwiped) {
this.toggleSwiped(false);
this.finalize();
}
};
this.scroll = (e) => {
this._scrollLeft = e.target.scrollLeft;
this._scrollTop = e.target.scrollTop;
this.finalize();
};
this.toggleSwiped = (value) => {

@@ -93,4 +113,3 @@ this._isSwiped = value;

if (this.options.finalize) {
clearTimeout(this._scrollTimer);
this._scrollTimer = setTimeout(this.scrollToNearestIndex, this.options.finalizeTime);
this.scrollToNearestIndex();
}

@@ -111,2 +130,18 @@ };

};
this.addEventListener = () => {
this.cdk.elementRef.nativeElement.addEventListener('click', this.preventClicks, true);
};
this.removeEventListener = () => {
this.cdk.elementRef.nativeElement.removeEventListener('click', this.preventClicks, true);
};
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
*/
this.preventClicks = (e) => {
if (this.changed && this.options.preventClicks) {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
}
};
}

@@ -127,2 +162,3 @@ /**

}
this.addEventListener();
this.subscription.add(this.cdk.scrolledIndexChange.subscribe(i => this._index = i));

@@ -135,3 +171,3 @@ }

this.subscription.unsubscribe();
clearTimeout(this._scrollTimer);
this.removeEventListener();
}

@@ -168,6 +204,8 @@ /**

itemSize: [{ type: Input }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
touchstart: [{ type: HostListener, args: ['touchstart', ['$event'],] }],
mousemove: [{ type: HostListener, args: ['mousemove', ['$event'],] }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
click: [{ type: HostListener, args: ['click', ['$event'],] }],
touchmove: [{ type: HostListener, args: ['touchmove', ['$event'],] }],
mouseup: [{ type: HostListener, args: ['document:mouseup',] }],
touchend: [{ type: HostListener, args: ['touchend',] }],
scroll: [{ type: HostListener, args: ['scroll', ['$event'],] }]

@@ -174,0 +212,0 @@ };

@@ -16,3 +16,3 @@ import { __assign } from 'tslib';

finalizeTime: 400,
preventDefaultClick: true
preventClicks: true
};

@@ -29,2 +29,19 @@

*/
/** @type {?} */
var touchPredicate = function (e, key) { return e && key && e.touches && e.touches[0] && e.touches[0][key]; };
/** @type {?} */
var clickPredicate = function (e, key) { return e && key && e[key]; };
/** @type {?} */
var getPositions = function (originalEvent) {
/** @type {?} */
var clientX = touchPredicate(originalEvent, 'clientX') || clickPredicate(originalEvent, 'clientX');
/** @type {?} */
var clientY = touchPredicate(originalEvent, 'clientY') || clickPredicate(originalEvent, 'clientY');
return { clientX: clientX, clientY: clientY, originalEvent: originalEvent };
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxVirtualSwiperDirective = /** @class */ (function () {

@@ -34,6 +51,16 @@ function NgxVirtualSwiperDirective() {

this.subscription = new Subscription();
this.mousedown = function (e) { return _this.start(getPositions(e)); };
this.touchstart = function (e) { return _this.start(getPositions(e)); };
this.mousemove = function (e) { return _this.move(getPositions(e)); };
this.touchmove = function (e) { return _this.move(getPositions(e)); };
this.mouseup = function () { return _this.finish(); };
this.touchend = function () { return _this.finish(); };
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
};
this._mousemoveX = function (e) {
if (e) {
/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetXFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -48,3 +75,3 @@ var value = offset - e.clientX + _this._clientX;

/** @type {?} */
var offset = _this.cdk.measureScrollOffset(_this.options.offsetYFrom);
var offset = _this.cdk.measureScrollOffset();
/** @type {?} */

@@ -56,3 +83,13 @@ var value = offset - e.clientY + _this._clientY;

};
this.mousemove = function (e) {
this.start = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
if (_this.options.preventClicks) {
e.originalEvent.preventDefault();
}
};
this.move = function (e) {
if (_this._isSwiped) {

@@ -67,25 +104,8 @@ if (_this.cdk.orientation === 'horizontal') {

};
this.mousedown = function (e) {
_this.toggleSwiped(true);
_this._clientX = e.clientX;
_this._clientY = e.clientY;
_this._prevClientX = e.clientX;
_this._prevClientY = e.clientY;
e.preventDefault();
};
this.click = function (e) {
if (_this.changed && _this.options.preventDefaultClick) {
e.preventDefault();
}
};
this.mouseup = function () {
this.finish = function () {
if (_this._isSwiped) {
_this.toggleSwiped(false);
_this.finalize();
}
};
this.scroll = function (e) {
_this._scrollLeft = e.target.scrollLeft;
_this._scrollTop = e.target.scrollTop;
_this.finalize();
};
this.toggleSwiped = function (value) {

@@ -96,4 +116,3 @@ _this._isSwiped = value;

if (_this.options.finalize) {
clearTimeout(_this._scrollTimer);
_this._scrollTimer = setTimeout(_this.scrollToNearestIndex, _this.options.finalizeTime);
_this.scrollToNearestIndex();
}

@@ -114,2 +133,18 @@ };

};
this.addEventListener = function () {
_this.cdk.elementRef.nativeElement.addEventListener('click', _this.preventClicks, true);
};
this.removeEventListener = function () {
_this.cdk.elementRef.nativeElement.removeEventListener('click', _this.preventClicks, true);
};
/**
* prevent all type of clicks (e.g. click on links, Angular`s click)
*/
this.preventClicks = function (e) {
if (_this.changed && _this.options.preventClicks) {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
}
};
}

@@ -137,2 +172,3 @@ /**

}
this.addEventListener();
this.subscription.add(this.cdk.scrolledIndexChange.subscribe(function (i) { return _this._index = i; }));

@@ -148,3 +184,3 @@ };

this.subscription.unsubscribe();
clearTimeout(this._scrollTimer);
this.removeEventListener();
};

@@ -184,6 +220,8 @@ Object.defineProperty(NgxVirtualSwiperDirective.prototype, "changed", {

itemSize: [{ type: Input }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
touchstart: [{ type: HostListener, args: ['touchstart', ['$event'],] }],
mousemove: [{ type: HostListener, args: ['mousemove', ['$event'],] }],
mousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
click: [{ type: HostListener, args: ['click', ['$event'],] }],
touchmove: [{ type: HostListener, args: ['touchmove', ['$event'],] }],
mouseup: [{ type: HostListener, args: ['document:mouseup',] }],
touchend: [{ type: HostListener, args: ['touchend',] }],
scroll: [{ type: HostListener, args: ['scroll', ['$event'],] }]

@@ -190,0 +228,0 @@ };

@@ -1,13 +0,16 @@

export declare type OffsetFrom = 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end';
export interface INgxVirtualSwiperOptions {
offsetXFrom: OffsetFrom;
offsetYFrom: OffsetFrom;
/** the property returns to actual integer index */
/** returns to actual integer index */
finalize: boolean;
/** the time when the {@link finalize} will be called after scroll event */
finalizeTime: number;
/** the property is required by links, the library should know is it real swipe or fake */
/** is required by links, the library should know is it real swipe or fake */
threshold: number;
/** the property prevent default last click */
preventDefaultClick: boolean;
/** prevent all type of clicks (e.g. links, Angular`s click) */
preventClicks: boolean;
}
/** prevent bugs at SSR */
export interface IPositionEvent {
clientX: number;
clientY: number;
originalEvent: any;
}
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
import { OnChanges, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs';
import { INgxVirtualSwiperOptions } from './interfaces';
import { INgxVirtualSwiperOptions, IPositionEvent } from './interfaces';
export declare class NgxVirtualSwiperDirective implements OnChanges, OnInit, OnDestroy {

@@ -22,4 +22,2 @@ /** to lean more see https://material.angular.io/cdk/scrolling/api */

_scrollLeft: number;
/** contains id of the last {@link setTimeout} */
_scrollTimer: any;
constructor();

@@ -29,13 +27,22 @@ ngOnChanges(): void;

ngOnDestroy(): void;
readonly changed: boolean;
_mousemoveX: (e: any) => void;
_mousemoveY: (e: any) => void;
mousedown: (e: any) => void;
touchstart: (e: any) => void;
mousemove: (e: any) => void;
mousedown: (e: any) => void;
click: (e: any) => void;
touchmove: (e: any) => void;
mouseup: () => void;
touchend: () => void;
scroll: (e: any) => void;
readonly changed: boolean;
_mousemoveX: (e: IPositionEvent) => void;
_mousemoveY: (e: IPositionEvent) => void;
start: (e: IPositionEvent) => void;
move: (e: IPositionEvent) => void;
finish: () => void;
toggleSwiped: (value: boolean) => void;
finalize: () => void;
scrollToNearestIndex: () => void;
addEventListener: () => void;
removeEventListener: () => void;
/** prevent all type of clicks (e.g. click on links, Angular`s click) */
preventClicks: (e: any) => void;
}

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"NgxVirtualSwiperOptions":{"threshold":20,"finalize":true,"finalizeTime":400,"preventDefaultClick":true},"OffsetFrom":{"__symbolic":"interface"},"INgxVirtualSwiperOptions":{"__symbolic":"interface"},"NgxVirtualSwiperDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[ngxVirtualSwiper]"}]}],"members":{"cdk":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":13,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"CdkVirtualScrollViewport","line":13,"character":18}]}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5},"arguments":["ngxVirtualSwiper"]}]}],"itemSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"mousemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":81,"character":5},"arguments":["mousemove",["$event"]]}]}],"mousedown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":92,"character":5},"arguments":["mousedown",["$event"]]}]}],"click":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":101,"character":5},"arguments":["click",["$event"]]}]}],"mouseup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":107,"character":5},"arguments":["document:mouseup"]}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":113,"character":5},"arguments":["scroll",["$event"]]}]}]}},"NgxVirtualSwiperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[{"__symbolic":"reference","name":"NgxVirtualSwiperDirective"}],"exports":[{"__symbolic":"reference","name":"NgxVirtualSwiperDirective"}]}]}],"members":{}}},"origins":{"NgxVirtualSwiperOptions":"./lib/constants","OffsetFrom":"./lib/interfaces","INgxVirtualSwiperOptions":"./lib/interfaces","NgxVirtualSwiperDirective":"./lib/ngx-virtual-swiper.directive","NgxVirtualSwiperModule":"./lib/ngx-virtual-swiper.module"},"importAs":"ngx-virtual-swiper"}
{"__symbolic":"module","version":4,"metadata":{"NgxVirtualSwiperOptions":{"threshold":20,"finalize":true,"finalizeTime":400,"preventClicks":true},"INgxVirtualSwiperOptions":{"__symbolic":"interface"},"IPositionEvent":{"__symbolic":"interface"},"NgxVirtualSwiperDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[ngxVirtualSwiper]"}]}],"members":{"cdk":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":14,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"CdkVirtualScrollViewport","line":14,"character":18}]}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":5},"arguments":["ngxVirtualSwiper"]}]}],"itemSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"mousedown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":50,"character":5},"arguments":["mousedown",["$event"]]}]}],"touchstart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":52,"character":5},"arguments":["touchstart",["$event"]]}]}],"mousemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":54,"character":5},"arguments":["mousemove",["$event"]]}]}],"touchmove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":56,"character":5},"arguments":["touchmove",["$event"]]}]}],"mouseup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":58,"character":5},"arguments":["document:mouseup"]}]}],"touchend":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":60,"character":5},"arguments":["touchend"]}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":62,"character":5},"arguments":["scroll",["$event"]]}]}]}},"NgxVirtualSwiperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[{"__symbolic":"reference","name":"NgxVirtualSwiperDirective"}],"exports":[{"__symbolic":"reference","name":"NgxVirtualSwiperDirective"}]}]}],"members":{}}},"origins":{"NgxVirtualSwiperOptions":"./lib/constants","INgxVirtualSwiperOptions":"./lib/interfaces","IPositionEvent":"./lib/interfaces","NgxVirtualSwiperDirective":"./lib/ngx-virtual-swiper.directive","NgxVirtualSwiperModule":"./lib/ngx-virtual-swiper.module"},"importAs":"ngx-virtual-swiper"}
{
"name": "ngx-virtual-swiper",
"version": "0.0.4",
"version": "0.1.0-rc.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "keywords": [

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc