ngx-infinite-scroller-fixed
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -499,2 +499,3 @@ (function (global, factory) { | ||
var initialScrollPositionValue = _super.prototype.getInitialScrollPositionValue.call(this, InitialScrollPosition.TOP); | ||
console.log("this.directive.scrollTo(initialScrollPositionValue)"); | ||
this.directive.scrollTo(initialScrollPositionValue); | ||
@@ -504,2 +505,3 @@ }; | ||
var prevScrollPosition = this.state.previousScrollTop; | ||
console.log("this.directive.scrollTo(prevScrollPosition)"); | ||
this.directive.scrollTo(prevScrollPosition); | ||
@@ -716,2 +718,3 @@ }; | ||
NgxInfiniteScrollerDirective.prototype.useStrategy = function () { | ||
console.log("useStrategy"); | ||
switch (this.strategy) { | ||
@@ -718,0 +721,0 @@ case 'scrollingToBoth': |
@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("is-number")):"function"==typeof define&&define.amd?define("ngx-infinite-scroller-fixed",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","is-number"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-infinite-scroller-fixed"]={},t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.isNumber)}(this,(function(t,e,o,i,r,n){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=l(n),c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},c(t,e)}; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */function u(t,e){function o(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var p,a=function(){function t(){}return Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this._el.nativeElement.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this._el.nativeElement.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientHeight",{get:function(){return this._el.nativeElement.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"initMode",{get:function(){return this._initMode},set:function(t){this._initMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollStreamActive",{get:function(){return this._scrollStreamActive},set:function(t){this._scrollStreamActive=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollPositionpUpdated",{get:function(){return this._previousScrollPositionpUpdated},set:function(t){this._previousScrollPositionpUpdated=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollTop",{get:function(){return this._previousScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollHeight",{get:function(){return this._previousScrollHeight},enumerable:!1,configurable:!0}),t.prototype.setup=function(t){this._el=t.el,this._initMode=t.initMode,this._scrollStreamActive=t.scrollStreamActive,this._previousScrollPositionpUpdated=t.previousScrollPositionpUpdated,this.updatePreviousScrollTop(),this.updatePreviousScrollHeight()},t.prototype.updatePreviousScrollTop=function(){this._previousScrollTop=this._el.nativeElement.scrollTop},t.prototype.updatePreviousScrollHeight=function(){this._previousScrollHeight=this._el.nativeElement.scrollHeight},t}();a.decorators=[{type:e.Injectable}],function(t){t.DEFAULT="DEFAULT",t.TOP="TOP",t.MIDDLE="MIDDLE",t.BOTTOM="BOTTOM"}(p||(p={}));var h=function(){},g=function(){function t(t,e){this.directive=t,this.state=e}return t.prototype.wasScrolledDown=function(t,e){return t.scrollTop<e.scrollTop},t.prototype.wasScrolledUp=function(t,e){return!this.wasScrolledDown(t,e)},t.prototype.isScrollDownEnough=function(t,e){return(t.scrollTop+t.clientHeight)/t.scrollHeight>e/100},t.prototype.isScrollUpEnough=function(t,e){return t.scrollTop/t.scrollHeight<e/100},t.prototype.getInitialScrollPositionValue=function(t){var e=this.directive.initialScrollPosition;if(s.default(e))return Number(e);var o=this.getInitialScrollPositions();return e===p.DEFAULT?o[t]:o[e]},t.prototype.getInitialScrollPositions=function(){var t,e=this.state,o=e.scrollHeight,i=e.clientHeight;return(t={})[p.TOP]=0,t[p.MIDDLE]=o/2-i/2,t[p.BOTTOM]=o,t},t}(),f=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.wasScrolledUp.call(o,e[0],e[1])})))},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollUpEnough.call(o,e[1],o.directive.scrollUpPercentilePositionTrigger)})))},e.prototype.askForUpdate=function(){this.directive.onScrollUp.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.BOTTOM);this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t=this.state.previousScrollTop+(this.state.scrollHeight-this.state.previousScrollHeight);this.directive.scrollTo(t)},e}(g),d=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.wasScrolledDown.call(o,e[0],e[1])})))},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollDownEnough.call(o,e[1],o.directive.scrollDownPercentilePositionTrigger)})))},e.prototype.askForUpdate=function(){this.directive.onScrollDown.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.TOP);this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t=this.state.previousScrollTop;this.directive.scrollTo(t)},e}(g),v=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(t){return t},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollUpEnough.call(o,e[1],o.directive.scrollUpPercentilePositionTrigger)||t.prototype.isScrollDownEnough.call(o,e[1],o.directive.scrollDownPercentilePositionTrigger)})),r.tap((function(e){o.scrolledUp=t.prototype.wasScrolledUp.call(o,e[0],e[1])})))},e.prototype.askForUpdate=function(){this.scrolledUp?this.directive.onScrollUp.next():this.directive.onScrollDown.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.MIDDLE);this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t;t=this.scrolledUp?this.state.previousScrollTop+(this.state.scrollHeight-this.state.previousScrollHeight):this.state.previousScrollTop,this.directive.scrollTo(t)},e}(g),y=function(){function t(t,e){this.directive=t,this.state=e,this.DEFAULT_REQUEST_TIMEOUT=3e4}return t.prototype.start=function(){var t=this;this.listener=window.requestAnimationFrame(this.listen.bind(this)),this.httpRequestTimeout||(this.httpRequestTimeout=setTimeout((function(){t.stopIfRequestTimeout()}),this.DEFAULT_REQUEST_TIMEOUT))},t.prototype.stop=function(){window.cancelAnimationFrame(this.listener),clearTimeout(this.httpRequestTimeout),this.httpRequestTimeout=null},t.prototype.listen=function(){this.state.previousScrollHeight!==this.state.scrollHeight?(this.stop(),this.directive.onScrollbarHeightChanged()):this.start()},t.prototype.stopIfRequestTimeout=function(){this.state.previousScrollPositionpUpdated||this.stop()},t}(),S=function(t){function n(r,n,l,s){var c=t.call(this)||this;return c.platformId=r,c.el=n,c.renderer=l,c.state=s,c.strategy="scrollingToBottom",c.initialScrollPosition=p.DEFAULT,c.scrollbarAnimationInterval=100,c.scrollDebounceTimeAfterScrollHeightChanged=50,c.scrollDebounceTimeAfterDOMMutationOnInit=1e3,c.scrollUpPercentilePositionTrigger=2,c.scrollDownPercentilePositionTrigger=98,c.onScrollUp=new e.EventEmitter,c.onScrollDown=new e.EventEmitter,c.scrollHeightChanged=new i.Subject,c.domMutationEmitter=new i.Subject,c.isBrowser=o.isPlatformBrowser(r),c.state.setup({el:n,initMode:!0,scrollStreamActive:!0,previousScrollPositionpUpdated:!1}),c}return u(n,t),Object.defineProperty(n.prototype,"scrollPairChanged",{get:function(){var t=this;if(this.scrollChanged)return this.scrollChanged.pipe(r.takeWhile((function(){return t.state.scrollStreamActive})),r.map((function(t){return{scrollHeight:t.target.scrollHeight,scrollTop:t.target.scrollTop,clientHeight:t.target.clientHeight}})),r.pairwise(),r.debounceTime(this.scrollbarAnimationInterval))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"scrollDirectionChanged",{get:function(){return this.scrollingStrategy.scrollDirectionChanged(this.scrollPairChanged)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"scrollRequestZoneChanged",{get:function(){var t=this;return this.scrollingStrategy.scrollRequestZoneChanged(this.scrollDirectionChanged).pipe(r.tap((function(){t.state.updatePreviousScrollTop(),t.state.updatePreviousScrollHeight(),t.state.previousScrollPositionpUpdated=!1,t.scrollHeightListener.start()})))},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.useStrategy(),this.useScrollHeightListener(),this.registerScrollEventHandler(),this.registerMutationObserver(),this.registerInitialScrollPostionHandler(),this.registerPreviousScrollPositionHandler()},n.prototype.ngAfterViewInit=function(){this.registerScrollSpy()},n.prototype.ngOnDestroy=function(){this.unregisterMutationObserver()},n.prototype.scrollTo=function(t){this.state.scrollStreamActive=!1,this.renderer.setProperty(this.el.nativeElement,"scrollTop",t),this.state.scrollStreamActive=!0},n.prototype.onScrollbarHeightChanged=function(){this.scrollHeightChanged.next()},n.prototype.registerScrollEventHandler=function(){this.scrollChanged=i.fromEvent(this.el.nativeElement,"scroll")},n.prototype.registerMutationObserver=function(){var t=this;if(this.isBrowser){this.domMutationObserver=new MutationObserver((function(e){t.domMutationEmitter.next(e)}));this.domMutationObserver.observe(this.el.nativeElement,{attributes:!0,childList:!0,characterData:!0})}},n.prototype.registerInitialScrollPostionHandler=function(){var t=this;this.domMutationEmitter.pipe(r.takeWhile((function(){return t.state.initMode})),r.debounceTime(this.scrollDebounceTimeAfterDOMMutationOnInit)).subscribe((function(){t.scrollingStrategy.setInitialScrollPosition(),t.state.initMode=!1}))},n.prototype.registerPreviousScrollPositionHandler=function(){var t=this;i.zip(this.scrollRequestZoneChanged,this.scrollHeightChanged).pipe(r.skipWhile((function(){return t.state.initMode})),r.debounceTime(this.scrollDebounceTimeAfterScrollHeightChanged)).subscribe((function(){t.avoidSettingPreviousScrollPosition||(t.scrollingStrategy.setPreviousScrollPosition(),t.state.previousScrollPositionpUpdated=!0)}))},n.prototype.registerScrollSpy=function(){var t=this;this.scrollRequestZoneChanged.subscribe((function(){t.scrollingStrategy.askForUpdate()}))},n.prototype.unregisterMutationObserver=function(){this.domMutationObserver&&this.domMutationObserver.disconnect()},n.prototype.useStrategy=function(){switch(this.strategy){case"scrollingToBoth":this.scrollingStrategy=new v(this,this.state);break;case"scrollingToTop":this.scrollingStrategy=new f(this,this.state);break;default:this.scrollingStrategy=new d(this,this.state)}},n.prototype.useScrollHeightListener=function(){this.scrollHeightListener=new y(this,this.state)},n}(h);S.decorators=[{type:e.Directive,args:[{selector:"[ngxInfiniteScroller]"}]}],S.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.ElementRef},{type:e.Renderer2},{type:a}]},S.propDecorators={strategy:[{type:e.Input}],initialScrollPosition:[{type:e.Input}],scrollbarAnimationInterval:[{type:e.Input}],scrollDebounceTimeAfterScrollHeightChanged:[{type:e.Input}],scrollDebounceTimeAfterDOMMutationOnInit:[{type:e.Input}],scrollUpPercentilePositionTrigger:[{type:e.Input}],scrollDownPercentilePositionTrigger:[{type:e.Input}],avoidSettingPreviousScrollPosition:[{type:e.Input}],onScrollUp:[{type:e.Output}],onScrollDown:[{type:e.Output}]};var P=function(){};P.decorators=[{type:e.NgModule,args:[{declarations:[S],imports:[],exports:[S],providers:[a],bootstrap:[]}]}],t.NgxInfiniteScrollerModule=P,t["ɵa"]=S,t["ɵb"]=h,t["ɵc"]=a,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */function u(t,e){function o(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var p,a=function(){function t(){}return Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this._el.nativeElement.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this._el.nativeElement.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientHeight",{get:function(){return this._el.nativeElement.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"initMode",{get:function(){return this._initMode},set:function(t){this._initMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollStreamActive",{get:function(){return this._scrollStreamActive},set:function(t){this._scrollStreamActive=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollPositionpUpdated",{get:function(){return this._previousScrollPositionpUpdated},set:function(t){this._previousScrollPositionpUpdated=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollTop",{get:function(){return this._previousScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousScrollHeight",{get:function(){return this._previousScrollHeight},enumerable:!1,configurable:!0}),t.prototype.setup=function(t){this._el=t.el,this._initMode=t.initMode,this._scrollStreamActive=t.scrollStreamActive,this._previousScrollPositionpUpdated=t.previousScrollPositionpUpdated,this.updatePreviousScrollTop(),this.updatePreviousScrollHeight()},t.prototype.updatePreviousScrollTop=function(){this._previousScrollTop=this._el.nativeElement.scrollTop},t.prototype.updatePreviousScrollHeight=function(){this._previousScrollHeight=this._el.nativeElement.scrollHeight},t}();a.decorators=[{type:e.Injectable}],function(t){t.DEFAULT="DEFAULT",t.TOP="TOP",t.MIDDLE="MIDDLE",t.BOTTOM="BOTTOM"}(p||(p={}));var h=function(){},g=function(){function t(t,e){this.directive=t,this.state=e}return t.prototype.wasScrolledDown=function(t,e){return t.scrollTop<e.scrollTop},t.prototype.wasScrolledUp=function(t,e){return!this.wasScrolledDown(t,e)},t.prototype.isScrollDownEnough=function(t,e){return(t.scrollTop+t.clientHeight)/t.scrollHeight>e/100},t.prototype.isScrollUpEnough=function(t,e){return t.scrollTop/t.scrollHeight<e/100},t.prototype.getInitialScrollPositionValue=function(t){var e=this.directive.initialScrollPosition;if(s.default(e))return Number(e);var o=this.getInitialScrollPositions();return e===p.DEFAULT?o[t]:o[e]},t.prototype.getInitialScrollPositions=function(){var t,e=this.state,o=e.scrollHeight,i=e.clientHeight;return(t={})[p.TOP]=0,t[p.MIDDLE]=o/2-i/2,t[p.BOTTOM]=o,t},t}(),f=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.wasScrolledUp.call(o,e[0],e[1])})))},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollUpEnough.call(o,e[1],o.directive.scrollUpPercentilePositionTrigger)})))},e.prototype.askForUpdate=function(){this.directive.onScrollUp.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.BOTTOM);this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t=this.state.previousScrollTop+(this.state.scrollHeight-this.state.previousScrollHeight);this.directive.scrollTo(t)},e}(g),d=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.wasScrolledDown.call(o,e[0],e[1])})))},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollDownEnough.call(o,e[1],o.directive.scrollDownPercentilePositionTrigger)})))},e.prototype.askForUpdate=function(){this.directive.onScrollDown.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.TOP);console.log("this.directive.scrollTo(initialScrollPositionValue)"),this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t=this.state.previousScrollTop;console.log("this.directive.scrollTo(prevScrollPosition)"),this.directive.scrollTo(t)},e}(g),v=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.prototype.scrollDirectionChanged=function(t){return t},e.prototype.scrollRequestZoneChanged=function(e){var o=this;return e.pipe(r.filter((function(e){return t.prototype.isScrollUpEnough.call(o,e[1],o.directive.scrollUpPercentilePositionTrigger)||t.prototype.isScrollDownEnough.call(o,e[1],o.directive.scrollDownPercentilePositionTrigger)})),r.tap((function(e){o.scrolledUp=t.prototype.wasScrolledUp.call(o,e[0],e[1])})))},e.prototype.askForUpdate=function(){this.scrolledUp?this.directive.onScrollUp.next():this.directive.onScrollDown.next()},e.prototype.setInitialScrollPosition=function(){var e=t.prototype.getInitialScrollPositionValue.call(this,p.MIDDLE);this.directive.scrollTo(e)},e.prototype.setPreviousScrollPosition=function(){var t;t=this.scrolledUp?this.state.previousScrollTop+(this.state.scrollHeight-this.state.previousScrollHeight):this.state.previousScrollTop,this.directive.scrollTo(t)},e}(g),y=function(){function t(t,e){this.directive=t,this.state=e,this.DEFAULT_REQUEST_TIMEOUT=3e4}return t.prototype.start=function(){var t=this;this.listener=window.requestAnimationFrame(this.listen.bind(this)),this.httpRequestTimeout||(this.httpRequestTimeout=setTimeout((function(){t.stopIfRequestTimeout()}),this.DEFAULT_REQUEST_TIMEOUT))},t.prototype.stop=function(){window.cancelAnimationFrame(this.listener),clearTimeout(this.httpRequestTimeout),this.httpRequestTimeout=null},t.prototype.listen=function(){this.state.previousScrollHeight!==this.state.scrollHeight?(this.stop(),this.directive.onScrollbarHeightChanged()):this.start()},t.prototype.stopIfRequestTimeout=function(){this.state.previousScrollPositionpUpdated||this.stop()},t}(),S=function(t){function n(r,n,l,s){var c=t.call(this)||this;return c.platformId=r,c.el=n,c.renderer=l,c.state=s,c.strategy="scrollingToBottom",c.initialScrollPosition=p.DEFAULT,c.scrollbarAnimationInterval=100,c.scrollDebounceTimeAfterScrollHeightChanged=50,c.scrollDebounceTimeAfterDOMMutationOnInit=1e3,c.scrollUpPercentilePositionTrigger=2,c.scrollDownPercentilePositionTrigger=98,c.onScrollUp=new e.EventEmitter,c.onScrollDown=new e.EventEmitter,c.scrollHeightChanged=new i.Subject,c.domMutationEmitter=new i.Subject,c.isBrowser=o.isPlatformBrowser(r),c.state.setup({el:n,initMode:!0,scrollStreamActive:!0,previousScrollPositionpUpdated:!1}),c}return u(n,t),Object.defineProperty(n.prototype,"scrollPairChanged",{get:function(){var t=this;if(this.scrollChanged)return this.scrollChanged.pipe(r.takeWhile((function(){return t.state.scrollStreamActive})),r.map((function(t){return{scrollHeight:t.target.scrollHeight,scrollTop:t.target.scrollTop,clientHeight:t.target.clientHeight}})),r.pairwise(),r.debounceTime(this.scrollbarAnimationInterval))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"scrollDirectionChanged",{get:function(){return this.scrollingStrategy.scrollDirectionChanged(this.scrollPairChanged)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"scrollRequestZoneChanged",{get:function(){var t=this;return this.scrollingStrategy.scrollRequestZoneChanged(this.scrollDirectionChanged).pipe(r.tap((function(){t.state.updatePreviousScrollTop(),t.state.updatePreviousScrollHeight(),t.state.previousScrollPositionpUpdated=!1,t.scrollHeightListener.start()})))},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.useStrategy(),this.useScrollHeightListener(),this.registerScrollEventHandler(),this.registerMutationObserver(),this.registerInitialScrollPostionHandler(),this.registerPreviousScrollPositionHandler()},n.prototype.ngAfterViewInit=function(){this.registerScrollSpy()},n.prototype.ngOnDestroy=function(){this.unregisterMutationObserver()},n.prototype.scrollTo=function(t){this.state.scrollStreamActive=!1,this.renderer.setProperty(this.el.nativeElement,"scrollTop",t),this.state.scrollStreamActive=!0},n.prototype.onScrollbarHeightChanged=function(){this.scrollHeightChanged.next()},n.prototype.registerScrollEventHandler=function(){this.scrollChanged=i.fromEvent(this.el.nativeElement,"scroll")},n.prototype.registerMutationObserver=function(){var t=this;if(this.isBrowser){this.domMutationObserver=new MutationObserver((function(e){t.domMutationEmitter.next(e)}));this.domMutationObserver.observe(this.el.nativeElement,{attributes:!0,childList:!0,characterData:!0})}},n.prototype.registerInitialScrollPostionHandler=function(){var t=this;this.domMutationEmitter.pipe(r.takeWhile((function(){return t.state.initMode})),r.debounceTime(this.scrollDebounceTimeAfterDOMMutationOnInit)).subscribe((function(){t.scrollingStrategy.setInitialScrollPosition(),t.state.initMode=!1}))},n.prototype.registerPreviousScrollPositionHandler=function(){var t=this;i.zip(this.scrollRequestZoneChanged,this.scrollHeightChanged).pipe(r.skipWhile((function(){return t.state.initMode})),r.debounceTime(this.scrollDebounceTimeAfterScrollHeightChanged)).subscribe((function(){t.avoidSettingPreviousScrollPosition||(t.scrollingStrategy.setPreviousScrollPosition(),t.state.previousScrollPositionpUpdated=!0)}))},n.prototype.registerScrollSpy=function(){var t=this;this.scrollRequestZoneChanged.subscribe((function(){t.scrollingStrategy.askForUpdate()}))},n.prototype.unregisterMutationObserver=function(){this.domMutationObserver&&this.domMutationObserver.disconnect()},n.prototype.useStrategy=function(){switch(console.log("useStrategy"),this.strategy){case"scrollingToBoth":this.scrollingStrategy=new v(this,this.state);break;case"scrollingToTop":this.scrollingStrategy=new f(this,this.state);break;default:this.scrollingStrategy=new d(this,this.state)}},n.prototype.useScrollHeightListener=function(){this.scrollHeightListener=new y(this,this.state)},n}(h);S.decorators=[{type:e.Directive,args:[{selector:"[ngxInfiniteScroller]"}]}],S.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.ElementRef},{type:e.Renderer2},{type:a}]},S.propDecorators={strategy:[{type:e.Input}],initialScrollPosition:[{type:e.Input}],scrollbarAnimationInterval:[{type:e.Input}],scrollDebounceTimeAfterScrollHeightChanged:[{type:e.Input}],scrollDebounceTimeAfterDOMMutationOnInit:[{type:e.Input}],scrollUpPercentilePositionTrigger:[{type:e.Input}],scrollDownPercentilePositionTrigger:[{type:e.Input}],avoidSettingPreviousScrollPosition:[{type:e.Input}],onScrollUp:[{type:e.Output}],onScrollDown:[{type:e.Output}]};var P=function(){};P.decorators=[{type:e.NgModule,args:[{declarations:[S],imports:[],exports:[S],providers:[a],bootstrap:[]}]}],t.NgxInfiniteScrollerModule=P,t["ɵa"]=S,t["ɵb"]=h,t["ɵc"]=a,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-infinite-scroller-fixed.umd.min.js.map |
@@ -119,2 +119,3 @@ import { Directive, ElementRef, Input, Output, EventEmitter, Renderer2, Inject, PLATFORM_ID, } from '@angular/core'; | ||
useStrategy() { | ||
console.log("useStrategy"); | ||
switch (this.strategy) { | ||
@@ -160,2 +161,2 @@ case 'scrollingToBoth': | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWluZmluaXRlLXNjcm9sbGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvbmd4LWluZmluaXRlLXNjcm9sbGVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUlULFVBQVUsRUFDVixLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWixTQUFTLEVBQ1QsTUFBTSxFQUNOLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVwRCxPQUFPLEVBQWMsT0FBTyxFQUFFLEdBQUcsRUFBRSxTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFM0QsT0FBTyxFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsWUFBWSx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gPSBuZXcgU2Nyb2xsaW5nVG9Cb3RoKHRoaXMsIHRoaXMuc3RhdGUpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlICdzY3JvbGxpbmdUb1RvcCc6XHJcbiAgICAgICAgdGhpcy5zY3JvbGxpbmdTdHJhdGVneSA9IG5ldyBTY3JvbGxpbmdUb1RvcCh0aGlzLCB0aGlzLnN0YXRlKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSAnc2Nyb2xsaW5nVG9Cb3R0b20nOiBkZWZhdWx0OlxyXG4gICAgICAgIHRoaXMuc2Nyb2xsaW5nU3RyYXRlZ3kgPSBuZXcgU2Nyb2xsaW5nVG9Cb3R0b20odGhpcywgdGhpcy5zdGF0ZSk7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIHVzZVNjcm9sbEhlaWdodExpc3RlbmVyKCk6IHZvaWQge1xyXG4gICAgdGhpcy5zY3JvbGxIZWlnaHRMaXN0ZW5lciA9IG5ldyBTY3JvbGxIZWlnaHRMaXN0ZW5lcih0aGlzLCB0aGlzLnN0YXRlKTtcclxuICB9XHJcbn1cclxuIl19 |
@@ -23,2 +23,3 @@ import { filter } from 'rxjs/operators'; | ||
const initialScrollPositionValue = super.getInitialScrollPositionValue(InitialScrollPosition.TOP); | ||
console.log("this.directive.scrollTo(initialScrollPositionValue)"); | ||
this.directive.scrollTo(initialScrollPositionValue); | ||
@@ -28,5 +29,6 @@ } | ||
const prevScrollPosition = this.state.previousScrollTop; | ||
console.log("this.directive.scrollTo(prevScrollPosition)"); | ||
this.directive.scrollTo(prevScrollPosition); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsaW5nLXRvLWJvdHRvbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvc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ZS5sb2coXCJ0aGlzLmRpcmVjdGl2ZS5zY3JvbGxUbyhwcmV2U2Nyb2xsUG9zaXRpb24pXCIpO1xuICAgIHRoaXMuZGlyZWN0aXZlLnNjcm9sbFRvKHByZXZTY3JvbGxQb3NpdGlvbik7XG4gIH1cbn1cbiJdfQ== |
@@ -157,2 +157,3 @@ import { Injectable, EventEmitter, Directive, Inject, PLATFORM_ID, ElementRef, Renderer2, Input, Output, NgModule } from '@angular/core'; | ||
const initialScrollPositionValue = super.getInitialScrollPositionValue(InitialScrollPosition.TOP); | ||
console.log("this.directive.scrollTo(initialScrollPositionValue)"); | ||
this.directive.scrollTo(initialScrollPositionValue); | ||
@@ -162,2 +163,3 @@ } | ||
const prevScrollPosition = this.state.previousScrollTop; | ||
console.log("this.directive.scrollTo(prevScrollPosition)"); | ||
this.directive.scrollTo(prevScrollPosition); | ||
@@ -348,2 +350,3 @@ } | ||
useStrategy() { | ||
console.log("useStrategy"); | ||
switch (this.strategy) { | ||
@@ -350,0 +353,0 @@ case 'scrollingToBoth': |
{ | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"name": "ngx-infinite-scroller-fixed", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Infinite bidirectional scroll directive for Angular 11", | ||
@@ -6,0 +6,0 @@ "private": false, |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289253
1838