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

ngx-page-scroll

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-page-scroll - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

500

bundles/ngx-page-scroll.umd.js
(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')) :
typeof define === 'function' && define.amd ? define('ngx-page-scroll', ['exports', '@angular/core', 'ngx-page-scroll-core', '@angular/router', '@angular/common'], factory) :
(global = global || self, factory(global['ngx-page-scroll'] = {}, global.ng.core, global.ngxPageScrollCore, global.ng.router, global.ng.common));
}(this, function (exports, core, ngxPageScrollCore, router, common) { 'use strict';
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.ngxPageScrollCore, global.ng.router, global.ng.common, global.rxjs.operators));
}(this, (function (exports, core, ngxPageScrollCore, router, common, operators) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
/* tslint:disable:no-host-metadata-property directive-selector */
var NgxPageScrollDirective = /** @class */ (function () {

@@ -17,23 +228,9 @@ function NgxPageScrollDirective(pageScrollService, router, document) {

this.pageScrollFinish = new core.EventEmitter();
this.document = (/** @type {?} */ (document));
this.document = document;
}
/**
* @param {?} changes
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
NgxPageScrollDirective.prototype.ngOnChanges = function (changes) {
// Some inputs changed, reset the pageScrollInstance
this.pageScrollInstance = undefined;
};
/**
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.ngOnDestroy = function () {
if (this.pageScrollInstance) {

@@ -43,16 +240,10 @@ this.pageScrollService.stop(this.pageScrollInstance);

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.generatePageScrollInstance = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.getPageScrollTarget = function () {
return this.pageScrollTarget || this.href || (this.fragment ? '#' + this.fragment : '');
};
NgxPageScrollDirective.prototype.generatePageScrollInstance = function () {
if (this.pageScrollInstance === undefined || this.pageScrollInstance === null) {
/** @type {?} */
var options = {
document: this.document,
scrollTarget: this.pageScrollTarget || this.href,
scrollTarget: this.getPageScrollTarget(),
};

@@ -90,30 +281,13 @@ if (this.pageScroll) {

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.pushRouterState = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.pushRouterState = function () {
if (this.pageScrollAdjustHash && typeof this.pageScrollInstance.pageScrollOptions.scrollTarget === 'string'
&& ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(0, 1) === '#') {
&& this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0, 1) === '#') {
// "Navigate" to the current route again and this time set the fragment/hash
this.router.navigate([], {
fragment: ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(1),
preserveQueryParams: true,
fragment: this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),
queryParamsHandling: 'preserve',
});
}
};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.scroll = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
NgxPageScrollDirective.prototype.scroll = function () {
var pageScrollInstance = this.generatePageScrollInstance();

@@ -123,14 +297,5 @@ this.pushRouterState();

};
/**
* @param {?} clickEvent
* @return {?}
*/
NgxPageScrollDirective.prototype.handleClick = /**
* @param {?} clickEvent
* @return {?}
*/
function (clickEvent) {
NgxPageScrollDirective.prototype.handleClick = function (clickEvent) {
var _this = this;
if (this.routerLink && this.router !== null && this.router !== undefined) {
/** @type {?} */
var urlTree = void 0;

@@ -145,24 +310,17 @@ if (typeof this.routerLink === 'string') {

// We need to navigate their first.
// Navigation is handled by the routerLink directive
// so we only need to listen for route change
/** @type {?} */
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
function (routerEvent) {
// Navigation is handled by the routerLink directive so we only need to listen for route change
this.router.events.pipe(operators.filter(function (routerEvent) {
// We're only interested in successful navigations or when the navigation fails
return routerEvent instanceof router.NavigationEnd || routerEvent instanceof router.NavigationError
|| routerEvent instanceof router.NavigationCancel;
}),
// Consume only one event, automatically "unsubscribing" from the event stream afterwards
operators.take(1)).subscribe(function (routerEvent) {
if (routerEvent instanceof router.NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout((/**
* @return {?}
*/
function () {
setTimeout(function () {
_this.scroll();
}), 0);
}, 0);
}
else if (routerEvent instanceof router.NavigationError || routerEvent instanceof router.NavigationCancel) {
subscription_1.unsubscribe();
}
}))));
});
return false; // to preventDefault()

@@ -174,11 +332,2 @@ }

};
NgxPageScrollDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
},] }
];
/** @nocollapse */
NgxPageScrollDirective.ctorParameters = function () { return [

@@ -189,88 +338,87 @@ { type: ngxPageScrollCore.PageScrollService },

]; };
NgxPageScrollDirective.propDecorators = {
routerLink: [{ type: core.Input }],
href: [{ type: core.Input }],
pageScrollTarget: [{ type: core.Input }],
pageScrollHorizontal: [{ type: core.Input }],
pageScrollOffset: [{ type: core.Input }],
pageScrollDuration: [{ type: core.Input }],
pageScrollSpeed: [{ type: core.Input }],
pageScrollEasing: [{ type: core.Input }],
pageScrollInterruptible: [{ type: core.Input }],
pageScrollInView: [{ type: core.Input }],
pageScrollAdjustHash: [{ type: core.Input }],
pageScroll: [{ type: core.Input }],
pageScrollFinish: [{ type: core.Output }]
};
__decorate([
core.Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "routerLink", void 0);
__decorate([
core.Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "href", void 0);
__decorate([
core.Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "fragment", void 0);
__decorate([
core.Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScrollTarget", void 0);
__decorate([
core.Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollHorizontal", void 0);
__decorate([
core.Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollOffset", void 0);
__decorate([
core.Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollDuration", void 0);
__decorate([
core.Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollSpeed", void 0);
__decorate([
core.Input(),
__metadata("design:type", Function)
], NgxPageScrollDirective.prototype, "pageScrollEasing", void 0);
__decorate([
core.Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInterruptible", void 0);
__decorate([
core.Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInView", void 0);
__decorate([
core.Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "pageScrollAdjustHash", void 0);
__decorate([
core.Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScroll", void 0);
__decorate([
core.Output(),
__metadata("design:type", core.EventEmitter)
], NgxPageScrollDirective.prototype, "pageScrollFinish", void 0);
NgxPageScrollDirective = __decorate([
core.Directive({
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
}),
__param(1, core.Optional()), __param(2, core.Inject(common.DOCUMENT)),
__metadata("design:paramtypes", [ngxPageScrollCore.PageScrollService, router.Router, Object])
], NgxPageScrollDirective);
return NgxPageScrollDirective;
}());
if (false) {
/** @type {?} */
NgxPageScrollDirective.prototype.routerLink;
/** @type {?} */
NgxPageScrollDirective.prototype.href;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollTarget;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollHorizontal;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollOffset;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollDuration;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollSpeed;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollEasing;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInterruptible;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInView;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollAdjustHash;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScroll;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollFinish;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollInstance;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.document;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollService;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.router;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxPageScrollModule = /** @class */ (function () {
function NgxPageScrollModule() {
}
NgxPageScrollModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [
NgxPageScrollDirective,
],
imports: [
ngxPageScrollCore.NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
},] }
];
NgxPageScrollModule = __decorate([
core.NgModule({
declarations: [
NgxPageScrollDirective,
],
imports: [
ngxPageScrollCore.NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
})
], NgxPageScrollModule);
return NgxPageScrollModule;

@@ -284,3 +432,3 @@ }());

}));
})));
//# sourceMappingURL=ngx-page-scroll.umd.js.map

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

!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")):"function"==typeof define&&define.amd?define("ngx-page-scroll",["exports","@angular/core","ngx-page-scroll-core","@angular/router","@angular/common"],t):t((e=e||self)["ngx-page-scroll"]={},e.ng.core,e.ngxPageScrollCore,e.ng.router,e.ng.common)}(this,function(e,t,r,o,l){"use strict";var i=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.generatePageScrollInstance=function(){if(void 0===this.pageScrollInstance||null===this.pageScrollInstance){var e={document:this.document,scrollTarget:this.pageScrollTarget||this.href};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),preserveQueryParams:!0})},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)){var l=this.router.events.subscribe(function(e){e instanceof o.NavigationEnd?(l.unsubscribe(),setTimeout(function(){t.scroll()},0)):(e instanceof o.NavigationError||e instanceof o.NavigationCancel)&&l.unsubscribe()});return!1}}return this.scroll(),!1},e.decorators=[{type:t.Directive,args:[{selector:"[pageScroll]",host:{"(click)":"handleClick($event)"}}]}],e.ctorParameters=function(){return[{type:r.PageScrollService},{type:o.Router,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[l.DOCUMENT]}]}]},e.propDecorators={routerLink:[{type:t.Input}],href:[{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}]},e}();var n=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[i],imports:[r.NgxPageScrollCoreModule],exports:[i]}]}],e}();e.NgxPageScrollDirective=i,e.NgxPageScrollModule=n,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=e||self)["ngx-page-scroll"]={},e.ng.core,e.ngxPageScrollCore,e.ng.router,e.ng.common,e.rxjs.operators)}(this,(function(e,t,r,o,n,i){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function l(e,t,r,o){var n,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(l=(i<3?n(l):i>3?n(t,r,l):n(t,r))||l);return i>3&&l&&Object.defineProperty(t,r,l),l}function a(e,t){return function(r,o){t(r,o,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var s=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.ctorParameters=function(){return[{type:r.PageScrollService},{type:o.Router,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]},l([t.Input(),p("design:type",Object)],e.prototype,"routerLink",void 0),l([t.Input(),p("design:type",String)],e.prototype,"href",void 0),l([t.Input(),p("design:type",String)],e.prototype,"fragment",void 0),l([t.Input(),p("design:type",String)],e.prototype,"pageScrollTarget",void 0),l([t.Input(),p("design:type",Boolean)],e.prototype,"pageScrollHorizontal",void 0),l([t.Input(),p("design:type",Number)],e.prototype,"pageScrollOffset",void 0),l([t.Input(),p("design:type",Number)],e.prototype,"pageScrollDuration",void 0),l([t.Input(),p("design:type",Number)],e.prototype,"pageScrollSpeed",void 0),l([t.Input(),p("design:type",Function)],e.prototype,"pageScrollEasing",void 0),l([t.Input(),p("design:type",Boolean)],e.prototype,"pageScrollInterruptible",void 0),l([t.Input(),p("design:type",Boolean)],e.prototype,"pageScrollInView",void 0),l([t.Input(),p("design:type",Object)],e.prototype,"pageScrollAdjustHash",void 0),l([t.Input(),p("design:type",String)],e.prototype,"pageScroll",void 0),l([t.Output(),p("design:type",t.EventEmitter)],e.prototype,"pageScrollFinish",void 0),e=l([t.Directive({selector:"[pageScroll]",host:{"(click)":"handleClick($event)"}}),a(1,t.Optional()),a(2,t.Inject(n.DOCUMENT)),p("design:paramtypes",[r.PageScrollService,o.Router,Object])],e)}(),c=function(){function e(){}return e=l([t.NgModule({declarations:[s],imports:[r.NgxPageScrollCoreModule],exports:[s]})],e)}();e.NgxPageScrollDirective=s,e.NgxPageScrollModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-page-scroll.umd.min.js.map

@@ -1,16 +0,9 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/* tslint:disable:no-host-metadata-property directive-selector */
import { __decorate, __metadata, __param } from "tslib";
import { Directive, EventEmitter, Inject, Input, Optional, Output } from '@angular/core';
import { NavigationCancel, NavigationEnd, NavigationError, Router } from '@angular/router';
import { NavigationCancel, NavigationEnd, NavigationError, Router, UrlTree } from '@angular/router';
import { DOCUMENT } from '@angular/common';
import { PageScrollService } from 'ngx-page-scroll-core';
export class NgxPageScrollDirective {
/**
* @param {?} pageScrollService
* @param {?} router
* @param {?} document
*/
import { EasingLogic, PageScrollInstance, PageScrollOptions, PageScrollService } from 'ngx-page-scroll-core';
import { filter, take } from 'rxjs/operators';
let NgxPageScrollDirective = class NgxPageScrollDirective {
constructor(pageScrollService, router, document) {

@@ -21,8 +14,4 @@ this.pageScrollService = pageScrollService;

this.pageScrollFinish = new EventEmitter();
this.document = (/** @type {?} */ (document));
this.document = document;
}
/**
* @param {?} changes
* @return {?}
*/
ngOnChanges(changes) {

@@ -32,5 +21,2 @@ // Some inputs changed, reset the pageScrollInstance

}
/**
* @return {?}
*/
ngOnDestroy() {

@@ -41,12 +27,10 @@ if (this.pageScrollInstance) {

}
/**
* @private
* @return {?}
*/
getPageScrollTarget() {
return this.pageScrollTarget || this.href || (this.fragment ? '#' + this.fragment : '');
}
generatePageScrollInstance() {
if (this.pageScrollInstance === undefined || this.pageScrollInstance === null) {
/** @type {?} */
const options = {
document: this.document,
scrollTarget: this.pageScrollTarget || this.href,
scrollTarget: this.getPageScrollTarget(),
};

@@ -84,22 +68,13 @@ if (this.pageScroll) {

}
/**
* @private
* @return {?}
*/
pushRouterState() {
if (this.pageScrollAdjustHash && typeof this.pageScrollInstance.pageScrollOptions.scrollTarget === 'string'
&& ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(0, 1) === '#') {
&& this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0, 1) === '#') {
// "Navigate" to the current route again and this time set the fragment/hash
this.router.navigate([], {
fragment: ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(1),
preserveQueryParams: true,
fragment: this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),
queryParamsHandling: 'preserve',
});
}
}
/**
* @private
* @return {?}
*/
scroll() {
/** @type {?} */
const pageScrollInstance = this.generatePageScrollInstance();

@@ -109,9 +84,4 @@ this.pushRouterState();

}
/**
* @param {?} clickEvent
* @return {?}
*/
handleClick(clickEvent) {
if (this.routerLink && this.router !== null && this.router !== undefined) {
/** @type {?} */
let urlTree;

@@ -126,24 +96,17 @@ if (typeof this.routerLink === 'string') {

// We need to navigate their first.
// Navigation is handled by the routerLink directive
// so we only need to listen for route change
/** @type {?} */
const subscription = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
(routerEvent) => {
// Navigation is handled by the routerLink directive so we only need to listen for route change
this.router.events.pipe(filter(routerEvent => {
// We're only interested in successful navigations or when the navigation fails
return routerEvent instanceof NavigationEnd || routerEvent instanceof NavigationError
|| routerEvent instanceof NavigationCancel;
}),
// Consume only one event, automatically "unsubscribing" from the event stream afterwards
take(1)).subscribe((routerEvent) => {
if (routerEvent instanceof NavigationEnd) {
subscription.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout((/**
* @return {?}
*/
() => {
setTimeout(() => {
this.scroll();
}), 0);
}, 0);
}
else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {
subscription.unsubscribe();
}
}))));
});
return false; // to preventDefault()

@@ -155,12 +118,3 @@ }

}
}
NgxPageScrollDirective.decorators = [
{ type: Directive, args: [{
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
},] }
];
/** @nocollapse */
};
NgxPageScrollDirective.ctorParameters = () => [

@@ -171,65 +125,69 @@ { type: PageScrollService },

];
NgxPageScrollDirective.propDecorators = {
routerLink: [{ type: Input }],
href: [{ type: Input }],
pageScrollTarget: [{ type: Input }],
pageScrollHorizontal: [{ type: Input }],
pageScrollOffset: [{ type: Input }],
pageScrollDuration: [{ type: Input }],
pageScrollSpeed: [{ type: Input }],
pageScrollEasing: [{ type: Input }],
pageScrollInterruptible: [{ type: Input }],
pageScrollInView: [{ type: Input }],
pageScrollAdjustHash: [{ type: Input }],
pageScroll: [{ type: Input }],
pageScrollFinish: [{ type: Output }]
};
if (false) {
/** @type {?} */
NgxPageScrollDirective.prototype.routerLink;
/** @type {?} */
NgxPageScrollDirective.prototype.href;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollTarget;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollHorizontal;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollOffset;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollDuration;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollSpeed;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollEasing;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInterruptible;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInView;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollAdjustHash;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScroll;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollFinish;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollInstance;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.document;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollService;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.router;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBRUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFHTCxRQUFRLEVBQ1IsTUFBTSxFQUVQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkF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cbiAgICByZXR1cm4gZmFsc2U7IC8vIHRvIHByZXZlbnREZWZhdWx0KClcbiAgfVxufVxuIl19
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "routerLink", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "href", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "fragment", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScrollTarget", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollHorizontal", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollOffset", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollDuration", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollSpeed", void 0);
__decorate([
Input(),
__metadata("design:type", Function)
], NgxPageScrollDirective.prototype, "pageScrollEasing", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInterruptible", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInView", void 0);
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "pageScrollAdjustHash", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScroll", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], NgxPageScrollDirective.prototype, "pageScrollFinish", void 0);
NgxPageScrollDirective = __decorate([
Directive({
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
}),
__param(1, Optional()), __param(2, Inject(DOCUMENT)),
__metadata("design:paramtypes", [PageScrollService, Router, Object])
], NgxPageScrollDirective);
export { NgxPageScrollDirective };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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J0IHNjcm9sbGluZyBhcyBzb29uIGFzIHRoZSBzdGFjayBpcyBjbGVhcmVkXG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgdGhpcy5zY3JvbGwoKTtcbiAgICAgICAgICAgIH0sIDApO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIGZhbHNlOyAvLyB0byBwcmV2ZW50RGVmYXVsdCgpXG4gICAgICB9XG4gICAgfVxuICAgIHRoaXMuc2Nyb2xsKCk7XG5cbiAgICByZXR1cm4gZmFsc2U7IC8vIHRvIHByZXZlbnREZWZhdWx0KClcbiAgfVxufVxuIl19

@@ -1,23 +0,21 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { __decorate } from "tslib";
import { NgModule } from '@angular/core';
import { NgxPageScrollCoreModule } from 'ngx-page-scroll-core';
import { NgxPageScrollDirective } from './ngx-page-scroll.directive';
export class NgxPageScrollModule {
}
NgxPageScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRS9ELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBYXJFLE1BQU0sT0FBTyxtQkFBbUI7OztZQVgvQixRQUFRLFNBQUM7Z0JBQ1IsWUFBWSxFQUFFO29CQUNaLHNCQUFzQjtpQkFDdkI7Z0JBQ0QsT0FBTyxFQUFFO29CQUNQLHVCQUF1QjtpQkFDeEI7Z0JBQ0QsT0FBTyxFQUFFO29CQUNQLHNCQUFzQjtpQkFDdkI7YUFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IE5neFBhZ2VTY3JvbGxDb3JlTW9kdWxlIH0gZnJvbSAnbmd4LXBhZ2Utc2Nyb2xsLWNvcmUnO1xuXG5pbXBvcnQgeyBOZ3hQYWdlU2Nyb2xsRGlyZWN0aXZlIH0gZnJvbSAnLi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgTmd4UGFnZVNjcm9sbERpcmVjdGl2ZSxcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIE5neFBhZ2VTY3JvbGxDb3JlTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgTmd4UGFnZVNjcm9sbERpcmVjdGl2ZSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgTmd4UGFnZVNjcm9sbE1vZHVsZSB7XG59XG4iXX0=
let NgxPageScrollModule = class NgxPageScrollModule {
};
NgxPageScrollModule = __decorate([
NgModule({
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
})
], NgxPageScrollModule);
export { NgxPageScrollModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOi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d4UGFnZVNjcm9sbERpcmVjdGl2ZSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgTmd4UGFnZVNjcm9sbE1vZHVsZSB7XG59XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { NgxPageScrollModule, NgxPageScrollDirective } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXBhZ2Utc2Nyb2xsLyIsInNvdXJjZXMiOlsibmd4LXBhZ2Utc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw0REFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXBhZ2Utc2Nyb2xsLyIsInNvdXJjZXMiOlsibmd4LXBhZ2Utc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=

@@ -1,10 +0,6 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*
* Public API Surface of ngx-page-scroll
*/
export { NgxPageScrollModule } from './lib/ngx-page-scroll.module';
export { NgxPageScrollDirective } from './lib/ngx-page-scroll.directive';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLG9DQUFjLDhCQUE4QixDQUFDO0FBRTdDLHVDQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtcGFnZS1zY3JvbGxcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtcGFnZS1zY3JvbGwubW9kdWxlJztcblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZSc7XG4iXX0=
export * from './lib/ngx-page-scroll.module';
export * from './lib/ngx-page-scroll.directive';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDhCQUE4QixDQUFDO0FBRTdDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1wYWdlLXNjcm9sbFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1wYWdlLXNjcm9sbC5tb2R1bGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlJztcbiJdfQ==

@@ -1,10 +0,8 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/* tslint:disable:no-host-metadata-property directive-selector */
import { __decorate, __metadata, __param } from "tslib";
import { Directive, EventEmitter, Inject, Input, Optional, Output } from '@angular/core';
import { NavigationCancel, NavigationEnd, NavigationError, Router } from '@angular/router';
import { NavigationCancel, NavigationEnd, NavigationError, Router, UrlTree } from '@angular/router';
import { DOCUMENT } from '@angular/common';
import { PageScrollService } from 'ngx-page-scroll-core';
import { EasingLogic, PageScrollInstance, PageScrollOptions, PageScrollService } from 'ngx-page-scroll-core';
import { filter, take } from 'rxjs/operators';
var NgxPageScrollDirective = /** @class */ (function () {

@@ -16,23 +14,9 @@ function NgxPageScrollDirective(pageScrollService, router, document) {

this.pageScrollFinish = new EventEmitter();
this.document = (/** @type {?} */ (document));
this.document = document;
}
/**
* @param {?} changes
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
NgxPageScrollDirective.prototype.ngOnChanges = function (changes) {
// Some inputs changed, reset the pageScrollInstance
this.pageScrollInstance = undefined;
};
/**
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.ngOnDestroy = function () {
if (this.pageScrollInstance) {

@@ -42,16 +26,10 @@ this.pageScrollService.stop(this.pageScrollInstance);

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.generatePageScrollInstance = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.getPageScrollTarget = function () {
return this.pageScrollTarget || this.href || (this.fragment ? '#' + this.fragment : '');
};
NgxPageScrollDirective.prototype.generatePageScrollInstance = function () {
if (this.pageScrollInstance === undefined || this.pageScrollInstance === null) {
/** @type {?} */
var options = {
document: this.document,
scrollTarget: this.pageScrollTarget || this.href,
scrollTarget: this.getPageScrollTarget(),
};

@@ -89,30 +67,13 @@ if (this.pageScroll) {

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.pushRouterState = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.pushRouterState = function () {
if (this.pageScrollAdjustHash && typeof this.pageScrollInstance.pageScrollOptions.scrollTarget === 'string'
&& ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(0, 1) === '#') {
&& this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0, 1) === '#') {
// "Navigate" to the current route again and this time set the fragment/hash
this.router.navigate([], {
fragment: ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(1),
preserveQueryParams: true,
fragment: this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),
queryParamsHandling: 'preserve',
});
}
};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.scroll = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
NgxPageScrollDirective.prototype.scroll = function () {
var pageScrollInstance = this.generatePageScrollInstance();

@@ -122,14 +83,5 @@ this.pushRouterState();

};
/**
* @param {?} clickEvent
* @return {?}
*/
NgxPageScrollDirective.prototype.handleClick = /**
* @param {?} clickEvent
* @return {?}
*/
function (clickEvent) {
NgxPageScrollDirective.prototype.handleClick = function (clickEvent) {
var _this = this;
if (this.routerLink && this.router !== null && this.router !== undefined) {
/** @type {?} */
var urlTree = void 0;

@@ -144,24 +96,17 @@ if (typeof this.routerLink === 'string') {

// We need to navigate their first.
// Navigation is handled by the routerLink directive
// so we only need to listen for route change
/** @type {?} */
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
function (routerEvent) {
// Navigation is handled by the routerLink directive so we only need to listen for route change
this.router.events.pipe(filter(function (routerEvent) {
// We're only interested in successful navigations or when the navigation fails
return routerEvent instanceof NavigationEnd || routerEvent instanceof NavigationError
|| routerEvent instanceof NavigationCancel;
}),
// Consume only one event, automatically "unsubscribing" from the event stream afterwards
take(1)).subscribe(function (routerEvent) {
if (routerEvent instanceof NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout((/**
* @return {?}
*/
function () {
setTimeout(function () {
_this.scroll();
}), 0);
}, 0);
}
else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {
subscription_1.unsubscribe();
}
}))));
});
return false; // to preventDefault()

@@ -173,11 +118,2 @@ }

};
NgxPageScrollDirective.decorators = [
{ type: Directive, args: [{
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
},] }
];
/** @nocollapse */
NgxPageScrollDirective.ctorParameters = function () { return [

@@ -188,68 +124,71 @@ { type: PageScrollService },

]; };
NgxPageScrollDirective.propDecorators = {
routerLink: [{ type: Input }],
href: [{ type: Input }],
pageScrollTarget: [{ type: Input }],
pageScrollHorizontal: [{ type: Input }],
pageScrollOffset: [{ type: Input }],
pageScrollDuration: [{ type: Input }],
pageScrollSpeed: [{ type: Input }],
pageScrollEasing: [{ type: Input }],
pageScrollInterruptible: [{ type: Input }],
pageScrollInView: [{ type: Input }],
pageScrollAdjustHash: [{ type: Input }],
pageScroll: [{ type: Input }],
pageScrollFinish: [{ type: Output }]
};
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "routerLink", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "href", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "fragment", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScrollTarget", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollHorizontal", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollOffset", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollDuration", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollSpeed", void 0);
__decorate([
Input(),
__metadata("design:type", Function)
], NgxPageScrollDirective.prototype, "pageScrollEasing", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInterruptible", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInView", void 0);
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "pageScrollAdjustHash", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScroll", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], NgxPageScrollDirective.prototype, "pageScrollFinish", void 0);
NgxPageScrollDirective = __decorate([
Directive({
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
}),
__param(1, Optional()), __param(2, Inject(DOCUMENT)),
__metadata("design:paramtypes", [PageScrollService, Router, Object])
], NgxPageScrollDirective);
return NgxPageScrollDirective;
}());
export { NgxPageScrollDirective };
if (false) {
/** @type {?} */
NgxPageScrollDirective.prototype.routerLink;
/** @type {?} */
NgxPageScrollDirective.prototype.href;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollTarget;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollHorizontal;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollOffset;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollDuration;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollSpeed;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollEasing;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInterruptible;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInView;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollAdjustHash;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScroll;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollFinish;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollInstance;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.document;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollService;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.router;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBRUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFHTCxRQUFRLEVBQ1IsTUFBTSxFQUVQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBVyxNQUFNLGlCQUFpQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUczQyxPQUFPLEVBQXNELGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFN0c7SUFrREUsZ0NBQW9CLGlCQUFvQyxFQUFzQixNQUFjLEVBQW9CLFFBQWE7UUFBekcsc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFtQjtRQUFzQixXQUFNLEdBQU4sTUFBTSxDQUFRO1FBWHJGLHlCQUFvQixHQUFHLEtBQUssQ0FBQztRQU1wQyxxQkFBZ0IsR0FBMEIsSUFBSSxZ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XJFdmVudCkgPT4ge1xuICAgICAgICAgIGlmIChyb3V0ZXJFdmVudCBpbnN0YW5jZW9mIE5hdmlnYXRpb25FbmQpIHtcbiAgICAgICAgICAgIHN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgLy8gdXNlIGEgdGltZW91dCB0byBzdGFydCBzY3JvbGxpbmcgYXMgc29vbiBhcyB0aGUgc3RhY2sgaXMgY2xlYXJlZFxuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgIHRoaXMuc2Nyb2xsKCk7XG4gICAgICAgICAgICB9LCAwKTtcbiAgICAgICAgICB9IGVsc2UgaWYgKHJvdXRlckV2ZW50IGluc3RhbmNlb2YgTmF2aWdhdGlvbkVycm9yIHx8IHJvdXRlckV2ZW50IGluc3RhbmNlb2YgTmF2aWdhdGlvbkNhbmNlbCkge1xuICAgICAgICAgICAgc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gZmFsc2U7IC8vIHRvIHByZXZlbnREZWZhdWx0KClcbiAgICAgIH1cbiAgICB9XG4gICAgdGhpcy5zY3JvbGwoKTtcblxuICAgIHJldHVybiBmYWxzZTsgLy8gdG8gcHJldmVudERlZmF1bHQoKVxuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlFQUFpRTs7QUFFakUsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUss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XG4gICAgICAgIHJldHVybiBmYWxzZTsgLy8gdG8gcHJldmVudERlZmF1bHQoKVxuICAgICAgfVxuICAgIH1cbiAgICB0aGlzLnNjcm9sbCgpO1xuXG4gICAgcmV0dXJuIGZhbHNlOyAvLyB0byBwcmV2ZW50RGVmYXVsdCgpXG4gIH1cbn1cbiJdfQ==

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

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { __decorate } from "tslib";
import { NgModule } from '@angular/core';

@@ -11,18 +8,18 @@ import { NgxPageScrollCoreModule } from 'ngx-page-scroll-core';

}
NgxPageScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
},] }
];
NgxPageScrollModule = __decorate([
NgModule({
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
})
], NgxPageScrollModule);
return NgxPageScrollModule;
}());
export { NgxPageScrollModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtcGFnZS1zY3JvbGwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRS9ELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRXJFO0lBQUE7SUFZQSxDQUFDOztnQkFaQSxRQUFRLFNBQUM7b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/**
* Generated bundle index. Do not edit.
*/
export { NgxPageScrollModule, NgxPageScrollDirective } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXBhZ2Utc2Nyb2xsLyIsInNvdXJjZXMiOlsibmd4LXBhZ2Utc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw0REFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBhZ2Utc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXBhZ2Utc2Nyb2xsLyIsInNvdXJjZXMiOlsibmd4LXBhZ2Utc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=

@@ -1,10 +0,6 @@

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*
* Public API Surface of ngx-page-scroll
*/
export { NgxPageScrollModule } from './lib/ngx-page-scroll.module';
export { NgxPageScrollDirective } from './lib/ngx-page-scroll.directive';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLG9DQUFjLDhCQUE4QixDQUFDO0FBRTdDLHVDQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtcGFnZS1zY3JvbGxcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtcGFnZS1zY3JvbGwubW9kdWxlJztcblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LXBhZ2Utc2Nyb2xsLmRpcmVjdGl2ZSc7XG4iXX0=
export * from './lib/ngx-page-scroll.module';
export * from './lib/ngx-page-scroll.directive';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1wYWdlLXNjcm9sbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDhCQUE4QixDQUFDO0FBRTdDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1wYWdlLXNjcm9sbFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1wYWdlLXNjcm9sbC5tb2R1bGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtcGFnZS1zY3JvbGwuZGlyZWN0aXZlJztcbiJdfQ==

@@ -1,16 +0,10 @@

import { EventEmitter, Directive, Optional, Inject, Input, Output, NgModule } from '@angular/core';
import { __decorate, __metadata, __param } from 'tslib';
import { EventEmitter, Optional, Inject, Input, Output, Directive, NgModule } from '@angular/core';
import { PageScrollService, NgxPageScrollCoreModule } from 'ngx-page-scroll-core';
import { NavigationEnd, NavigationError, NavigationCancel, Router } from '@angular/router';
import { DOCUMENT } from '@angular/common';
import { filter, take } from 'rxjs/operators';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class NgxPageScrollDirective {
/**
* @param {?} pageScrollService
* @param {?} router
* @param {?} document
*/
/* tslint:disable:no-host-metadata-property directive-selector */
let NgxPageScrollDirective = class NgxPageScrollDirective {
constructor(pageScrollService, router, document) {

@@ -21,8 +15,4 @@ this.pageScrollService = pageScrollService;

this.pageScrollFinish = new EventEmitter();
this.document = (/** @type {?} */ (document));
this.document = document;
}
/**
* @param {?} changes
* @return {?}
*/
ngOnChanges(changes) {

@@ -32,5 +22,2 @@ // Some inputs changed, reset the pageScrollInstance

}
/**
* @return {?}
*/
ngOnDestroy() {

@@ -41,12 +28,10 @@ if (this.pageScrollInstance) {

}
/**
* @private
* @return {?}
*/
getPageScrollTarget() {
return this.pageScrollTarget || this.href || (this.fragment ? '#' + this.fragment : '');
}
generatePageScrollInstance() {
if (this.pageScrollInstance === undefined || this.pageScrollInstance === null) {
/** @type {?} */
const options = {
document: this.document,
scrollTarget: this.pageScrollTarget || this.href,
scrollTarget: this.getPageScrollTarget(),
};

@@ -84,22 +69,13 @@ if (this.pageScroll) {

}
/**
* @private
* @return {?}
*/
pushRouterState() {
if (this.pageScrollAdjustHash && typeof this.pageScrollInstance.pageScrollOptions.scrollTarget === 'string'
&& ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(0, 1) === '#') {
&& this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0, 1) === '#') {
// "Navigate" to the current route again and this time set the fragment/hash
this.router.navigate([], {
fragment: ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(1),
preserveQueryParams: true,
fragment: this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),
queryParamsHandling: 'preserve',
});
}
}
/**
* @private
* @return {?}
*/
scroll() {
/** @type {?} */
const pageScrollInstance = this.generatePageScrollInstance();

@@ -109,9 +85,4 @@ this.pushRouterState();

}
/**
* @param {?} clickEvent
* @return {?}
*/
handleClick(clickEvent) {
if (this.routerLink && this.router !== null && this.router !== undefined) {
/** @type {?} */
let urlTree;

@@ -126,24 +97,17 @@ if (typeof this.routerLink === 'string') {

// We need to navigate their first.
// Navigation is handled by the routerLink directive
// so we only need to listen for route change
/** @type {?} */
const subscription = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
(routerEvent) => {
// Navigation is handled by the routerLink directive so we only need to listen for route change
this.router.events.pipe(filter(routerEvent => {
// We're only interested in successful navigations or when the navigation fails
return routerEvent instanceof NavigationEnd || routerEvent instanceof NavigationError
|| routerEvent instanceof NavigationCancel;
}),
// Consume only one event, automatically "unsubscribing" from the event stream afterwards
take(1)).subscribe((routerEvent) => {
if (routerEvent instanceof NavigationEnd) {
subscription.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout((/**
* @return {?}
*/
() => {
setTimeout(() => {
this.scroll();
}), 0);
}, 0);
}
else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {
subscription.unsubscribe();
}
}))));
});
return false; // to preventDefault()

@@ -155,12 +119,3 @@ }

}
}
NgxPageScrollDirective.decorators = [
{ type: Directive, args: [{
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
},] }
];
/** @nocollapse */
};
NgxPageScrollDirective.ctorParameters = () => [

@@ -171,97 +126,94 @@ { type: PageScrollService },

];
NgxPageScrollDirective.propDecorators = {
routerLink: [{ type: Input }],
href: [{ type: Input }],
pageScrollTarget: [{ type: Input }],
pageScrollHorizontal: [{ type: Input }],
pageScrollOffset: [{ type: Input }],
pageScrollDuration: [{ type: Input }],
pageScrollSpeed: [{ type: Input }],
pageScrollEasing: [{ type: Input }],
pageScrollInterruptible: [{ type: Input }],
pageScrollInView: [{ type: Input }],
pageScrollAdjustHash: [{ type: Input }],
pageScroll: [{ type: Input }],
pageScrollFinish: [{ type: Output }]
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "routerLink", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "href", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "fragment", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScrollTarget", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollHorizontal", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollOffset", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollDuration", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollSpeed", void 0);
__decorate([
Input(),
__metadata("design:type", Function)
], NgxPageScrollDirective.prototype, "pageScrollEasing", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInterruptible", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInView", void 0);
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "pageScrollAdjustHash", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScroll", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], NgxPageScrollDirective.prototype, "pageScrollFinish", void 0);
NgxPageScrollDirective = __decorate([
Directive({
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
}),
__param(1, Optional()), __param(2, Inject(DOCUMENT)),
__metadata("design:paramtypes", [PageScrollService, Router, Object])
], NgxPageScrollDirective);
let NgxPageScrollModule = class NgxPageScrollModule {
};
if (false) {
/** @type {?} */
NgxPageScrollDirective.prototype.routerLink;
/** @type {?} */
NgxPageScrollDirective.prototype.href;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollTarget;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollHorizontal;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollOffset;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollDuration;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollSpeed;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollEasing;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInterruptible;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInView;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollAdjustHash;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScroll;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollFinish;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollInstance;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.document;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollService;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.router;
}
NgxPageScrollModule = __decorate([
NgModule({
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
})
], NgxPageScrollModule);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
/*
* Public API Surface of ngx-page-scroll
*/
class NgxPageScrollModule {
}
NgxPageScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
},] }
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* Generated bundle index. Do not edit.
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { NgxPageScrollDirective, NgxPageScrollModule };
//# sourceMappingURL=ngx-page-scroll.js.map

@@ -1,10 +0,9 @@

import { EventEmitter, Directive, Optional, Inject, Input, Output, NgModule } from '@angular/core';
import { __decorate, __metadata, __param } from 'tslib';
import { EventEmitter, Optional, Inject, Input, Output, Directive, NgModule } from '@angular/core';
import { PageScrollService, NgxPageScrollCoreModule } from 'ngx-page-scroll-core';
import { NavigationEnd, NavigationError, NavigationCancel, Router } from '@angular/router';
import { DOCUMENT } from '@angular/common';
import { filter, take } from 'rxjs/operators';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/* tslint:disable:no-host-metadata-property directive-selector */
var NgxPageScrollDirective = /** @class */ (function () {

@@ -16,23 +15,9 @@ function NgxPageScrollDirective(pageScrollService, router, document) {

this.pageScrollFinish = new EventEmitter();
this.document = (/** @type {?} */ (document));
this.document = document;
}
/**
* @param {?} changes
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
NgxPageScrollDirective.prototype.ngOnChanges = function (changes) {
// Some inputs changed, reset the pageScrollInstance
this.pageScrollInstance = undefined;
};
/**
* @return {?}
*/
NgxPageScrollDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.ngOnDestroy = function () {
if (this.pageScrollInstance) {

@@ -42,16 +27,10 @@ this.pageScrollService.stop(this.pageScrollInstance);

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.generatePageScrollInstance = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.getPageScrollTarget = function () {
return this.pageScrollTarget || this.href || (this.fragment ? '#' + this.fragment : '');
};
NgxPageScrollDirective.prototype.generatePageScrollInstance = function () {
if (this.pageScrollInstance === undefined || this.pageScrollInstance === null) {
/** @type {?} */
var options = {
document: this.document,
scrollTarget: this.pageScrollTarget || this.href,
scrollTarget: this.getPageScrollTarget(),
};

@@ -89,30 +68,13 @@ if (this.pageScroll) {

};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.pushRouterState = /**
* @private
* @return {?}
*/
function () {
NgxPageScrollDirective.prototype.pushRouterState = function () {
if (this.pageScrollAdjustHash && typeof this.pageScrollInstance.pageScrollOptions.scrollTarget === 'string'
&& ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(0, 1) === '#') {
&& this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0, 1) === '#') {
// "Navigate" to the current route again and this time set the fragment/hash
this.router.navigate([], {
fragment: ((/** @type {?} */ (this.pageScrollInstance.pageScrollOptions.scrollTarget))).substr(1),
preserveQueryParams: true,
fragment: this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),
queryParamsHandling: 'preserve',
});
}
};
/**
* @private
* @return {?}
*/
NgxPageScrollDirective.prototype.scroll = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
NgxPageScrollDirective.prototype.scroll = function () {
var pageScrollInstance = this.generatePageScrollInstance();

@@ -122,14 +84,5 @@ this.pushRouterState();

};
/**
* @param {?} clickEvent
* @return {?}
*/
NgxPageScrollDirective.prototype.handleClick = /**
* @param {?} clickEvent
* @return {?}
*/
function (clickEvent) {
NgxPageScrollDirective.prototype.handleClick = function (clickEvent) {
var _this = this;
if (this.routerLink && this.router !== null && this.router !== undefined) {
/** @type {?} */
var urlTree = void 0;

@@ -144,24 +97,17 @@ if (typeof this.routerLink === 'string') {

// We need to navigate their first.
// Navigation is handled by the routerLink directive
// so we only need to listen for route change
/** @type {?} */
var subscription_1 = (/** @type {?} */ (this.router.events.subscribe((/**
* @param {?} routerEvent
* @return {?}
*/
function (routerEvent) {
// Navigation is handled by the routerLink directive so we only need to listen for route change
this.router.events.pipe(filter(function (routerEvent) {
// We're only interested in successful navigations or when the navigation fails
return routerEvent instanceof NavigationEnd || routerEvent instanceof NavigationError
|| routerEvent instanceof NavigationCancel;
}),
// Consume only one event, automatically "unsubscribing" from the event stream afterwards
take(1)).subscribe(function (routerEvent) {
if (routerEvent instanceof NavigationEnd) {
subscription_1.unsubscribe();
// use a timeout to start scrolling as soon as the stack is cleared
setTimeout((/**
* @return {?}
*/
function () {
setTimeout(function () {
_this.scroll();
}), 0);
}, 0);
}
else if (routerEvent instanceof NavigationError || routerEvent instanceof NavigationCancel) {
subscription_1.unsubscribe();
}
}))));
});
return false; // to preventDefault()

@@ -173,11 +119,2 @@ }

};
NgxPageScrollDirective.decorators = [
{ type: Directive, args: [{
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
},] }
];
/** @nocollapse */
NgxPageScrollDirective.ctorParameters = function () { return [

@@ -188,99 +125,96 @@ { type: PageScrollService },

]; };
NgxPageScrollDirective.propDecorators = {
routerLink: [{ type: Input }],
href: [{ type: Input }],
pageScrollTarget: [{ type: Input }],
pageScrollHorizontal: [{ type: Input }],
pageScrollOffset: [{ type: Input }],
pageScrollDuration: [{ type: Input }],
pageScrollSpeed: [{ type: Input }],
pageScrollEasing: [{ type: Input }],
pageScrollInterruptible: [{ type: Input }],
pageScrollInView: [{ type: Input }],
pageScrollAdjustHash: [{ type: Input }],
pageScroll: [{ type: Input }],
pageScrollFinish: [{ type: Output }]
};
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "routerLink", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "href", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "fragment", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScrollTarget", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollHorizontal", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollOffset", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollDuration", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], NgxPageScrollDirective.prototype, "pageScrollSpeed", void 0);
__decorate([
Input(),
__metadata("design:type", Function)
], NgxPageScrollDirective.prototype, "pageScrollEasing", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInterruptible", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], NgxPageScrollDirective.prototype, "pageScrollInView", void 0);
__decorate([
Input(),
__metadata("design:type", Object)
], NgxPageScrollDirective.prototype, "pageScrollAdjustHash", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], NgxPageScrollDirective.prototype, "pageScroll", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], NgxPageScrollDirective.prototype, "pageScrollFinish", void 0);
NgxPageScrollDirective = __decorate([
Directive({
selector: '[pageScroll]',
host: {
'(click)': 'handleClick($event)',
},
}),
__param(1, Optional()), __param(2, Inject(DOCUMENT)),
__metadata("design:paramtypes", [PageScrollService, Router, Object])
], NgxPageScrollDirective);
return NgxPageScrollDirective;
}());
if (false) {
/** @type {?} */
NgxPageScrollDirective.prototype.routerLink;
/** @type {?} */
NgxPageScrollDirective.prototype.href;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollTarget;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollHorizontal;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollOffset;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollDuration;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollSpeed;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollEasing;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInterruptible;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollInView;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollAdjustHash;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScroll;
/** @type {?} */
NgxPageScrollDirective.prototype.pageScrollFinish;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollInstance;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.document;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.pageScrollService;
/**
* @type {?}
* @private
*/
NgxPageScrollDirective.prototype.router;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxPageScrollModule = /** @class */ (function () {
function NgxPageScrollModule() {
}
NgxPageScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
},] }
];
NgxPageScrollModule = __decorate([
NgModule({
declarations: [
NgxPageScrollDirective,
],
imports: [
NgxPageScrollCoreModule,
],
exports: [
NgxPageScrollDirective,
],
})
], NgxPageScrollModule);
return NgxPageScrollModule;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
/*
* Public API Surface of ngx-page-scroll
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* Generated bundle index. Do not edit.
*/

@@ -287,0 +221,0 @@

@@ -9,2 +9,3 @@ import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';

href: string;
fragment: string;
pageScrollTarget: string;

@@ -26,2 +27,3 @@ pageScrollHorizontal: boolean;

ngOnDestroy(): void;
private getPageScrollTarget;
private generatePageScrollInstance;

@@ -28,0 +30,0 @@ private pushRouterState;

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

{"__symbolic":"module","version":4,"metadata":{"NgxPageScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgxPageScrollDirective"}],"imports":[{"__symbolic":"reference","module":"ngx-page-scroll-core","name":"NgxPageScrollCoreModule","line":11,"character":4}],"exports":[{"__symbolic":"reference","name":"NgxPageScrollDirective"}]}]}],"members":{}},"NgxPageScrollDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":19,"character":1},"arguments":[{"selector":"[pageScroll]","host":{"(click)":"handleClick($event)","$quoted$":["(click)"]}}]}],"members":{"routerLink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"href":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"pageScrollTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"pageScrollHorizontal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"pageScrollOffset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"pageScrollDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"pageScrollSpeed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"pageScrollEasing":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"pageScrollInterruptible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"pageScrollInView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"pageScrollAdjustHash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"pageScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"pageScrollFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":63,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":69,"character":61}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":69,"character":97},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":69,"character":104}]}]],"parameters":[{"__symbolic":"reference","module":"ngx-page-scroll-core","name":"PageScrollService","line":69,"character":41},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":69,"character":88},{"__symbolic":"reference","name":"any"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"generatePageScrollInstance":[{"__symbolic":"method"}],"pushRouterState":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}]}}},"origins":{"NgxPageScrollModule":"./lib/ngx-page-scroll.module","NgxPageScrollDirective":"./lib/ngx-page-scroll.directive"},"importAs":"ngx-page-scroll"}
{"__symbolic":"module","version":4,"metadata":{"NgxPageScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgxPageScrollDirective"}],"imports":[{"__symbolic":"reference","module":"ngx-page-scroll-core","name":"NgxPageScrollCoreModule","line":11,"character":4}],"exports":[{"__symbolic":"reference","name":"NgxPageScrollDirective"}]}]}],"members":{}},"NgxPageScrollDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":19,"character":1},"arguments":[{"selector":"[pageScroll]","host":{"(click)":"handleClick($event)","$quoted$":["(click)"]}}]}],"members":{"routerLink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"href":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"fragment":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"pageScrollTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"pageScrollHorizontal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"pageScrollOffset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"pageScrollDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"pageScrollSpeed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"pageScrollEasing":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"pageScrollInterruptible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"pageScrollInView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"pageScrollAdjustHash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"pageScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"pageScrollFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":72,"character":61}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":72,"character":97},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":72,"character":104}]}]],"parameters":[{"__symbolic":"reference","module":"ngx-page-scroll-core","name":"PageScrollService","line":72,"character":41},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":72,"character":88},{"__symbolic":"reference","name":"any"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getPageScrollTarget":[{"__symbolic":"method"}],"generatePageScrollInstance":[{"__symbolic":"method"}],"pushRouterState":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}]}}},"origins":{"NgxPageScrollModule":"./lib/ngx-page-scroll.module","NgxPageScrollDirective":"./lib/ngx-page-scroll.directive"},"importAs":"ngx-page-scroll"}
{
"name": "ngx-page-scroll",
"version": "7.0.0",
"version": "7.0.1",
"description": "Convenience directive for animated scrolling functionality for angular written in pure typescript",

@@ -27,5 +27,6 @@ "keywords": [

"peerDependencies": {
"ngx-page-scroll-core": "7.0.0",
"ngx-page-scroll-core": "7.0.1",
"@angular/common": "^8.0.0 || ^9.0.0",
"@angular/core": "^8.0.0 || ^9.0.0"
"@angular/core": "^8.0.0 || ^9.0.0",
"tslib": "^1.10.0"
},

@@ -41,6 +42,3 @@ "main": "bundles/ngx-page-scroll.umd.js",

"metadata": "ngx-page-scroll.metadata.json",
"sideEffects": false,
"dependencies": {
"tslib": "^1.9.0"
}
"sideEffects": false
}

@@ -181,2 +181,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)

| `pageScrollSpeed` | number | - | Speed in Pixel/Second the animation should take. Only applied if no duration is set.
| `pageScrollInView` | boolean | true | Whether the scroll animation should happen even when the scroll target is already inside the view port (`true`). Set to `false` to skip scroll animation if target is already in view.
| `pageScrollInterruptible` | boolean | true | Whether the scroll animation should stop if the user interferes with it (`true`) or not (`false`).

@@ -183,0 +184,0 @@ | `pageScrollAdjustHash` | boolean | false | Whether the [routes hash/fragment](https://angular.io/docs/ts/latest/guide/router.html#!#query-parameters) should be updated to reflect to section that has been scrolled to

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