ngx-page-scroll
Advanced tools
Comparing version 7.0.3 to 7.0.4
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('ngx-page-scroll-core'), require('@angular/router'), require('@angular/common'), require('rxjs/operators')) : | ||
typeof define === 'function' && define.amd ? define('ngx-page-scroll', ['exports', '@angular/core', 'ngx-page-scroll-core', '@angular/router', '@angular/common', 'rxjs/operators'], factory) : | ||
(global = global || self, factory(global['ngx-page-scroll'] = {}, global.ng.core, global['ngx-page-scroll-core'], global.ng.router, global.ng.common, global.rxjs.operators)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-page-scroll'] = {}, global.ng.core, global['ngx-page-scroll-core'], global.ng.router, global.ng.common, global.rxjs.operators)); | ||
}(this, (function (exports, core, ngxPageScrollCore, router, common, operators) { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("ngx-page-scroll-core"),require("@angular/router"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-page-scroll",["exports","@angular/core","ngx-page-scroll-core","@angular/router","@angular/common","rxjs/operators"],t):t((e=e||self)["ngx-page-scroll"]={},e.ng.core,e["ngx-page-scroll-core"],e.ng.router,e.ng.common,e.rxjs.operators)}(this,(function(e,t,r,o,l,i){"use strict";var n=function(){function e(e,r,o){this.pageScrollService=e,this.router=r,this.pageScrollAdjustHash=!1,this.pageScrollFinish=new t.EventEmitter,this.document=o}return e.prototype.ngOnChanges=function(e){this.pageScrollInstance=void 0},e.prototype.ngOnDestroy=function(){this.pageScrollInstance&&this.pageScrollService.stop(this.pageScrollInstance)},e.prototype.getPageScrollTarget=function(){return this.pageScrollTarget||this.href||(this.fragment?"#"+this.fragment:"")},e.prototype.generatePageScrollInstance=function(){if(void 0===this.pageScrollInstance||null===this.pageScrollInstance){var e={document:this.document,scrollTarget:this.getPageScrollTarget()};this.pageScroll&&(e.namespace=this.pageScroll),void 0!==this.pageScrollHorizontal&&null!==this.pageScrollHorizontal&&(e.verticalScrolling=!this.pageScrollHorizontal),void 0!==this.pageScrollOffset&&null!==this.pageScrollOffset&&(e.scrollOffset=this.pageScrollOffset),void 0!==this.pageScrollInterruptible&&null!==this.pageScrollInterruptible&&(e.interruptible=this.pageScrollInterruptible),void 0!==this.pageScrollInView&&null!==this.pageScrollInView&&(e.scrollInView=this.pageScrollInView),this.pageScrollEasing&&(e.easingLogic=this.pageScrollEasing),void 0!==this.pageScrollDuration&&null!==this.pageScrollDuration&&(e.duration=this.pageScrollDuration),void 0!==this.pageScrollSpeed&&null!==this.pageScrollSpeed&&(e.speed=this.pageScrollSpeed),this.pageScrollFinish&&(e.scrollFinishListener=this.pageScrollFinish),this.pageScrollInstance=this.pageScrollService.create(e)}return this.pageScrollInstance},e.prototype.pushRouterState=function(){this.pageScrollAdjustHash&&"string"==typeof this.pageScrollInstance.pageScrollOptions.scrollTarget&&"#"===this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0,1)&&this.router.navigate([],{fragment:this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),queryParamsHandling:"preserve"})},e.prototype.scroll=function(){var e=this.generatePageScrollInstance();this.pushRouterState(),this.pageScrollService.start(e)},e.prototype.handleClick=function(e){var t=this;if(this.routerLink&&null!==this.router&&void 0!==this.router){var r=void 0;if(r="string"==typeof this.routerLink?this.router.parseUrl(this.routerLink):this.router.createUrlTree(this.routerLink),!this.router.isActive(r,!0))return this.router.events.pipe(i.filter((function(e){return e instanceof o.NavigationEnd||e instanceof o.NavigationError||e instanceof o.NavigationCancel})),i.take(1)).subscribe((function(e){e instanceof o.NavigationEnd&&setTimeout((function(){t.scroll()}),0)})),!1}return this.scroll(),!1},e}();n.decorators=[{type:t.Directive,args:[{selector:"[pageScroll]",host:{"(click)":"handleClick($event)"}}]}],n.ctorParameters=function(){return[{type:r.PageScrollService},{type:o.Router,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[l.DOCUMENT]}]}]},n.propDecorators={routerLink:[{type:t.Input}],href:[{type:t.Input}],fragment:[{type:t.Input}],pageScrollTarget:[{type:t.Input}],pageScrollHorizontal:[{type:t.Input}],pageScrollOffset:[{type:t.Input}],pageScrollDuration:[{type:t.Input}],pageScrollSpeed:[{type:t.Input}],pageScrollEasing:[{type:t.Input}],pageScrollInterruptible:[{type:t.Input}],pageScrollInView:[{type:t.Input}],pageScrollAdjustHash:[{type:t.Input}],pageScroll:[{type:t.Input}],pageScrollFinish:[{type:t.Output}]};var a=function(){};a.decorators=[{type:t.NgModule,args:[{declarations:[n],imports:[r.NgxPageScrollCoreModule],exports:[n]}]}],e.NgxPageScrollDirective=n,e.NgxPageScrollModule=a,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("ngx-page-scroll-core"),require("@angular/router"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-page-scroll",["exports","@angular/core","ngx-page-scroll-core","@angular/router","@angular/common","rxjs/operators"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-page-scroll"]={},e.ng.core,e["ngx-page-scroll-core"],e.ng.router,e.ng.common,e.rxjs.operators)}(this,(function(e,t,r,o,l,i){"use strict";var n=function(){function e(e,r,o){this.pageScrollService=e,this.router=r,this.pageScrollAdjustHash=!1,this.pageScrollFinish=new t.EventEmitter,this.document=o}return e.prototype.ngOnChanges=function(e){this.pageScrollInstance=void 0},e.prototype.ngOnDestroy=function(){this.pageScrollInstance&&this.pageScrollService.stop(this.pageScrollInstance)},e.prototype.getPageScrollTarget=function(){return this.pageScrollTarget||this.href||(this.fragment?"#"+this.fragment:"")},e.prototype.generatePageScrollInstance=function(){if(void 0===this.pageScrollInstance||null===this.pageScrollInstance){var e={document:this.document,scrollTarget:this.getPageScrollTarget()};this.pageScroll&&(e.namespace=this.pageScroll),void 0!==this.pageScrollHorizontal&&null!==this.pageScrollHorizontal&&(e.verticalScrolling=!this.pageScrollHorizontal),void 0!==this.pageScrollOffset&&null!==this.pageScrollOffset&&(e.scrollOffset=this.pageScrollOffset),void 0!==this.pageScrollInterruptible&&null!==this.pageScrollInterruptible&&(e.interruptible=this.pageScrollInterruptible),void 0!==this.pageScrollInView&&null!==this.pageScrollInView&&(e.scrollInView=this.pageScrollInView),this.pageScrollEasing&&(e.easingLogic=this.pageScrollEasing),void 0!==this.pageScrollDuration&&null!==this.pageScrollDuration&&(e.duration=this.pageScrollDuration),void 0!==this.pageScrollSpeed&&null!==this.pageScrollSpeed&&(e.speed=this.pageScrollSpeed),this.pageScrollFinish&&(e.scrollFinishListener=this.pageScrollFinish),this.pageScrollInstance=this.pageScrollService.create(e)}return this.pageScrollInstance},e.prototype.pushRouterState=function(){this.pageScrollAdjustHash&&"string"==typeof this.pageScrollInstance.pageScrollOptions.scrollTarget&&"#"===this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0,1)&&this.router.navigate([],{fragment:this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),queryParamsHandling:"preserve"})},e.prototype.scroll=function(){var e=this.generatePageScrollInstance();this.pushRouterState(),this.pageScrollService.start(e)},e.prototype.handleClick=function(e){var t=this;if(this.routerLink&&null!==this.router&&void 0!==this.router){var r=void 0;if(r="string"==typeof this.routerLink?this.router.parseUrl(this.routerLink):this.router.createUrlTree(this.routerLink),!this.router.isActive(r,!0))return this.router.events.pipe(i.filter((function(e){return e instanceof o.NavigationEnd||e instanceof o.NavigationError||e instanceof o.NavigationCancel})),i.take(1)).subscribe((function(e){e instanceof o.NavigationEnd&&setTimeout((function(){t.scroll()}),0)})),!1}return this.scroll(),!1},e}();n.decorators=[{type:t.Directive,args:[{selector:"[pageScroll]",host:{"(click)":"handleClick($event)"}}]}],n.ctorParameters=function(){return[{type:r.PageScrollService},{type:o.Router,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[l.DOCUMENT]}]}]},n.propDecorators={routerLink:[{type:t.Input}],href:[{type:t.Input}],fragment:[{type:t.Input}],pageScrollTarget:[{type:t.Input}],pageScrollHorizontal:[{type:t.Input}],pageScrollOffset:[{type:t.Input}],pageScrollDuration:[{type:t.Input}],pageScrollSpeed:[{type:t.Input}],pageScrollEasing:[{type:t.Input}],pageScrollInterruptible:[{type:t.Input}],pageScrollInView:[{type:t.Input}],pageScrollAdjustHash:[{type:t.Input}],pageScroll:[{type:t.Input}],pageScrollFinish:[{type:t.Output}]};var a=function(){};a.decorators=[{type:t.NgModule,args:[{declarations:[n],imports:[r.NgxPageScrollCoreModule],exports:[n]}]}],e.NgxPageScrollDirective=n,e.NgxPageScrollModule=a,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-page-scroll.umd.min.js.map |
{ | ||
"name": "ngx-page-scroll", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "Convenience directive for animated scrolling functionality for angular written in pure typescript", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"ngx-page-scroll-core": "7.0.3", | ||
"@angular/common": "^8.0.0 || ^9.0.0 || ^10.0.5", | ||
"@angular/core": "^8.0.0 || ^9.0.0 || ^10.0.5" | ||
"@angular/common": "^8.0.0 || ^9.0.0 || ^10.0.5 || ^11.0.0", | ||
"@angular/core": "^8.0.0 || ^9.0.0 || ^10.0.5 || ^11.0.0" | ||
}, | ||
@@ -43,2 +43,2 @@ "dependencies": { | ||
"sideEffects": false | ||
} | ||
} |
@@ -43,3 +43,3 @@ # ngx-page-scroll [![npm version](https://img.shields.io/npm/v/ngx-page-scroll.svg?style=flat)](https://www.npmjs.com/package/ngx-page-scroll) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) | ||
| -------------------------------------------- | -------------------------- | -------------------------------------------------------------------------- | | ||
| v7.x | v9, v8 | [README](README.md) | | ||
| v7.x | v10, v9, v8 | [README](README.md) | | ||
| v6.x | v8, v7 | [README](https://github.com/Nolanus/ngx-page-scroll/blob/v6.0.2/README.md) | | ||
@@ -46,0 +46,0 @@ | v5.x | v6 | [README](https://github.com/Nolanus/ngx-page-scroll/blob/v5.0.1/README.md) | |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
93343
557
0