@ngx-loading-bar/core
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3
@@ -5,3 +5,3 @@ import { CommonModule } from '@angular/common'; | ||
import { share as share$1 } from 'rxjs/operator/share'; | ||
var LoadingBarService = (function () { | ||
var LoadingBarService = /** @class */ (function () { | ||
function LoadingBarService() { | ||
@@ -12,8 +12,2 @@ this.pending = new Subject$1(); | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.ngOnDestroy = function () { | ||
this.pending.complete(); | ||
}; | ||
/** | ||
* @param {?=} source$ | ||
@@ -51,2 +45,8 @@ * @return {?} | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.ngOnDestroy = function () { | ||
this.pending.complete(); | ||
}; | ||
return LoadingBarService; | ||
@@ -61,3 +61,3 @@ }()); | ||
LoadingBarService.ctorParameters = function () { return []; }; | ||
var LoadingBarComponent = (function () { | ||
var LoadingBarComponent = /** @class */ (function () { | ||
/** | ||
@@ -90,5 +90,2 @@ * @param {?} loadingBarService | ||
// do not continually broadcast the started event: | ||
if (_this.started) { | ||
return; | ||
} | ||
_this.started = true; | ||
@@ -107,5 +104,2 @@ _this._status = 0; | ||
var _this = this; | ||
if (!this.started) { | ||
return; | ||
} | ||
var /** @type {?} */ pct = (n * 100) + '%'; | ||
@@ -139,5 +133,2 @@ this.progressWidth = pct; | ||
LoadingBarComponent.prototype.inc = function () { | ||
if (this._status >= 1) { | ||
return; | ||
} | ||
var /** @type {?} */ rnd = 0; | ||
@@ -184,3 +175,3 @@ var /** @type {?} */ stat = this._status; | ||
}; | ||
var LoadingBarModule = (function () { | ||
var LoadingBarModule = /** @class */ (function () { | ||
function LoadingBarModule() { | ||
@@ -187,0 +178,0 @@ } |
@@ -12,8 +12,2 @@ import { CommonModule } from '@angular/common'; | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnDestroy() { | ||
this.pending.complete(); | ||
} | ||
/** | ||
* @param {?=} source$ | ||
@@ -50,2 +44,8 @@ * @return {?} | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnDestroy() { | ||
this.pending.complete(); | ||
} | ||
} | ||
@@ -86,5 +86,2 @@ LoadingBarService.decorators = [ | ||
// do not continually broadcast the started event: | ||
if (this.started) { | ||
return; | ||
} | ||
this.started = true; | ||
@@ -102,5 +99,2 @@ this._status = 0; | ||
set(n) { | ||
if (!this.started) { | ||
return; | ||
} | ||
const /** @type {?} */ pct = (n * 100) + '%'; | ||
@@ -133,5 +127,2 @@ this.progressWidth = pct; | ||
inc() { | ||
if (this._status >= 1) { | ||
return; | ||
} | ||
let /** @type {?} */ rnd = 0; | ||
@@ -138,0 +129,0 @@ let /** @type {?} */ stat = this._status; |
@@ -7,3 +7,3 @@ (function (global, factory) { | ||
var LoadingBarService = (function () { | ||
var LoadingBarService = /** @class */ (function () { | ||
function LoadingBarService() { | ||
@@ -14,8 +14,2 @@ this.pending = new Subject.Subject(); | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.ngOnDestroy = function () { | ||
this.pending.complete(); | ||
}; | ||
/** | ||
* @param {?=} source$ | ||
@@ -53,2 +47,8 @@ * @return {?} | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.ngOnDestroy = function () { | ||
this.pending.complete(); | ||
}; | ||
return LoadingBarService; | ||
@@ -63,3 +63,3 @@ }()); | ||
LoadingBarService.ctorParameters = function () { return []; }; | ||
var LoadingBarComponent = (function () { | ||
var LoadingBarComponent = /** @class */ (function () { | ||
/** | ||
@@ -92,5 +92,2 @@ * @param {?} loadingBarService | ||
// do not continually broadcast the started event: | ||
if (_this.started) { | ||
return; | ||
} | ||
_this.started = true; | ||
@@ -109,5 +106,2 @@ _this._status = 0; | ||
var _this = this; | ||
if (!this.started) { | ||
return; | ||
} | ||
var /** @type {?} */ pct = (n * 100) + '%'; | ||
@@ -141,5 +135,2 @@ this.progressWidth = pct; | ||
LoadingBarComponent.prototype.inc = function () { | ||
if (this._status >= 1) { | ||
return; | ||
} | ||
var /** @type {?} */ rnd = 0; | ||
@@ -186,3 +177,3 @@ var /** @type {?} */ stat = this._status; | ||
}; | ||
var LoadingBarModule = (function () { | ||
var LoadingBarModule = /** @class */ (function () { | ||
function LoadingBarModule() { | ||
@@ -189,0 +180,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"LoadingBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"exports":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"providers":[{"__symbolic":"reference","name":"LoadingBarService"}]}]}],"members":{}},"LoadingBarService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"ngOnDestroy":[{"__symbolic":"method"}],"startLoading":[{"__symbolic":"method"}],"endLoading":[{"__symbolic":"method"}],"getLoadingObserver":[{"__symbolic":"method"}]}},"LoadingBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-loading-bar, ngx-loading-bar","template":"\n <ng-container *ngIf=\"started\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\"><div class=\"spinner-icon\"></div></div>\n <div id=\"loading-bar\"><div class=\"bar\" [style.width]=\"progressWidth\"><div class=\"peg\"></div></div></div>\n </ng-container>\n "}]}],"members":{"includeSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}],"start":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"inc":[{"__symbolic":"method"}]}}},"origins":{"LoadingBarModule":"./core.module","LoadingBarService":"./loading-bar.service","LoadingBarComponent":"./loading-bar.component"},"importAs":"@ngx-loading-bar/core"} | ||
{"__symbolic":"module","version":3,"metadata":{"LoadingBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"exports":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"providers":[{"__symbolic":"reference","name":"LoadingBarService"}]}]}],"members":{}},"LoadingBarService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"startLoading":[{"__symbolic":"method"}],"endLoading":[{"__symbolic":"method"}],"getLoadingObserver":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"LoadingBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-loading-bar, ngx-loading-bar","template":"\n <ng-container *ngIf=\"started\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\"><div class=\"spinner-icon\"></div></div>\n <div id=\"loading-bar\"><div class=\"bar\" [style.width]=\"progressWidth\"><div class=\"peg\"></div></div></div>\n </ng-container>\n "}]}],"members":{"includeSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}],"start":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"inc":[{"__symbolic":"method"}]}}},"origins":{"LoadingBarModule":"./core.module","LoadingBarService":"./loading-bar.service","LoadingBarComponent":"./loading-bar.component"},"importAs":"@ngx-loading-bar/core"} |
@@ -13,6 +13,6 @@ import { OnDestroy } from '@angular/core'; | ||
private _pendingRequests; | ||
ngOnDestroy(): void; | ||
startLoading(source$?: Observable<any>): void; | ||
endLoading(): void; | ||
getLoadingObserver(): Observer<any>; | ||
ngOnDestroy(): void; | ||
} |
{ | ||
"name": "@ngx-loading-bar/core", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
60966
703