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

@ngx-loading-bar/core

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-loading-bar/core - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

15

bundles/ngx-loading-bar-core.umd.js

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

this.stream$ = new rxjs.Subject();
this.value$ = this.stream$.asObservable().pipe(operators.switchMap(function (s) { return _this.timer$(s); }), operators.startWith({ action: null, value: 0 }), operators.shareReplay(), operators.map(function (s) { return s.value; }));
this._value$ = null;
this.timer$ = function (s) {

@@ -260,2 +260,13 @@ var state$ = rxjs.of(s);

}
Object.defineProperty(LoadingBarState.prototype, "value$", {
get: function () {
var _this = this;
if (this._value$) {
return this._value$;
}
return (this._value$ = this.stream$.asObservable().pipe(operators.startWith(this.state), operators.switchMap(function (s) { return _this.timer$(s); }), operators.shareReplay(), operators.map(function (s) { return s.value; })));
},
enumerable: true,
configurable: true
});
LoadingBarState.prototype.start = function (initialValue) {

@@ -347,3 +358,3 @@ if (initialValue === void 0) { initialValue = 2; }

this.streams$ = new rxjs.Subject();
this.value$ = this.streams$.asObservable().pipe(operators.switchMap(function () { return rxjs.combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), operators.map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
this.value$ = this.streams$.asObservable().pipe(operators.startWith(null), operators.switchMap(function () { return rxjs.combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), operators.map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
}

@@ -350,0 +361,0 @@ Object.defineProperty(LoadingBarService.prototype, "progress$", {

2

bundles/ngx-loading-bar-core.umd.min.js

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngx-loading-bar/core",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e(((t=t||self)["ngx-loading-bar"]=t["ngx-loading-bar"]||{},t["ngx-loading-bar"].core={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,r,i){"use strict";

and limitations under the License.
***************************************************************************** */var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}var c=function(){function t(){var t=this;this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new r.Subject,this.value$=this.stream$.asObservable().pipe(i.switchMap((function(e){return t.timer$(e)})),i.startWith({action:null,value:0}),i.shareReplay(),i.map((function(t){return t.value}))),this.timer$=function(e){var n=r.of(e);switch(e.action){case"start":case"increment":case"set":t.requests>0&&(n=r.timer(0,250).pipe(i.map((function(n){return o(o({},e),0===n?{value:t.state.value||e.initialValue}:{value:t._increment()})}))));break;case"complete":case"stop":n=0===e.value?r.of(o({},e)):r.timer(0,500).pipe(i.take(2),i.map((function(t){return{value:0===t?100:0}})))}return n.pipe(i.map((function(t){return o(o({},t),{action:"set"})})),i.tap((function(e){return t.next(e,!1)})))}}return t.prototype.start=function(t){void 0===t&&(t=2),this.disabled||this.next({action:"start",initialValue:t})},t.prototype.stop=function(){this.next({action:"stop"})},t.prototype.complete=function(){this.next({action:"complete"})},t.prototype.disable=function(){this.disabled=!0},t.prototype.set=function(t){this.next({action:"set",value:t})},t.prototype.increment=function(t){void 0===t&&(t=0),this.next({action:"increment",value:t})},t.prototype.next=function(t,e){switch(void 0===e&&(e=!0),t.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":t.value=this._increment(t.value)}this.state=o(o(o({},this.state),{action:null}),t),e&&this.stream$.next(this.state)},t.prototype._increment=function(t){void 0===t&&(t=0);var e=this.state.value;return e>=99&&(t=0),0===t&&(t=e>=0&&e<25?3*Math.random()+3:e>=25&&e<65?3*Math.random():e>=65&&e<90?2*Math.random():e>=90&&e<99?.5:0),t+e},t}(),l=function(){function t(t){var e=this;this.platformId=t,this.refs={},this.streams$=new r.Subject,this.value$=this.streams$.asObservable().pipe(i.switchMap((function(){return r.combineLatest.apply(void 0,u(Object.keys(e.refs).map((function(t){return e.refs[t].value$}))))})),i.map((function(t){return Math.max.apply(Math,u([0],t))})))}var o,p;return Object.defineProperty(t.prototype,"progress$",{get:function(){return this.value$},enumerable:!0,configurable:!0}),t.prototype.start=function(t){void 0===t&&(t=2),this.useRef().start(t)},t.prototype.set=function(t){this.useRef().set(t)},t.prototype.increment=function(t){this.useRef().increment(t)},t.prototype.complete=function(){this.useRef().complete()},t.prototype.stop=function(){this.useRef().stop()},t.prototype.useRef=function(t){return void 0===t&&(t="default"),this.refs[t]||(this.refs[t]=new c,this.streams$.next(),n.isPlatformBrowser(this.platformId)||this.refs[t].disable()),this.refs[t]},t.ctorParameters=function(){return[{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.ɵprov=e["ɵɵdefineInjectable"]({factory:function(){return new t(e["ɵɵinject"](e.PLATFORM_ID))},token:t,providedIn:"root"}),t=s([e.Injectable({providedIn:"root"}),(o=0,p=e.Inject(e.PLATFORM_ID),function(t,e){p(t,e,o)}),a("design:paramtypes",[Object])],t)}(),f=function(){function t(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.color="#29d"}return Object.defineProperty(t.prototype,"value$",{get:function(){return this.ref?this.loader.useRef(this.ref).value$:this.loader.value$},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:l}]},s([e.Input(),a("design:type",Object)],t.prototype,"includeSpinner",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"includeBar",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"fixed",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"color",void 0),s([e.Input(),a("design:type",Number)],t.prototype,"value",void 0),s([e.Input(),a("design:type",String)],t.prototype,"ref",void 0),s([e.Input(),a("design:type",String)],t.prototype,"height",void 0),s([e.Input(),a("design:type",String)],t.prototype,"diameter",void 0),t=s([e.Component({selector:"ngx-loading-bar",template:'\n <ng-container *ngIf="value != null ? value : (value$ | async) as progress">\n <div *ngIf="includeSpinner" class="ngx-spinner">\n <div [style.width]="diameter" [style.height]="diameter" class="ngx-spinner-icon"></div>\n </div>\n <div\n *ngIf="includeBar"\n class="ngx-bar"\n [style.background]="color"\n [style.height]="height"\n [style.width]="progress + \'%\'"\n ></div>\n </ng-container>\n ',preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.Emulated,host:{"[attr.fixed]":"fixed","[style.color]":"color"},styles:[":host{position:relative;display:block;pointer-events:none}:host .ngx-spinner{transition:350ms linear;display:block;position:absolute;top:5px;left:0}:host .ngx-spinner .ngx-spinner-icon{width:14px;height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}:host .ngx-bar{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host .ngx-bar{right:0;left:unset}:host[fixed=true]{z-index:10002}:host[fixed=true] .ngx-bar{position:fixed}:host[fixed=true] .ngx-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host[fixed=true] .ngx-spinner{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}),a("design:paramtypes",[l])],t)}(),d=function(){function t(){}return t=s([e.NgModule({imports:[n.CommonModule],declarations:[f],exports:[f]})],t)}();t.LoadingBarComponent=f,t.LoadingBarModule=d,t.LoadingBarService=l,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}var c=function(){function t(){var t=this;this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new r.Subject,this._value$=null,this.timer$=function(e){var n=r.of(e);switch(e.action){case"start":case"increment":case"set":t.requests>0&&(n=r.timer(0,250).pipe(i.map((function(n){return o(o({},e),0===n?{value:t.state.value||e.initialValue}:{value:t._increment()})}))));break;case"complete":case"stop":n=0===e.value?r.of(o({},e)):r.timer(0,500).pipe(i.take(2),i.map((function(t){return{value:0===t?100:0}})))}return n.pipe(i.map((function(t){return o(o({},t),{action:"set"})})),i.tap((function(e){return t.next(e,!1)})))}}return Object.defineProperty(t.prototype,"value$",{get:function(){var t=this;return this._value$?this._value$:this._value$=this.stream$.asObservable().pipe(i.startWith(this.state),i.switchMap((function(e){return t.timer$(e)})),i.shareReplay(),i.map((function(t){return t.value})))},enumerable:!0,configurable:!0}),t.prototype.start=function(t){void 0===t&&(t=2),this.disabled||this.next({action:"start",initialValue:t})},t.prototype.stop=function(){this.next({action:"stop"})},t.prototype.complete=function(){this.next({action:"complete"})},t.prototype.disable=function(){this.disabled=!0},t.prototype.set=function(t){this.next({action:"set",value:t})},t.prototype.increment=function(t){void 0===t&&(t=0),this.next({action:"increment",value:t})},t.prototype.next=function(t,e){switch(void 0===e&&(e=!0),t.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":t.value=this._increment(t.value)}this.state=o(o(o({},this.state),{action:null}),t),e&&this.stream$.next(this.state)},t.prototype._increment=function(t){void 0===t&&(t=0);var e=this.state.value;return e>=99&&(t=0),0===t&&(t=e>=0&&e<25?3*Math.random()+3:e>=25&&e<65?3*Math.random():e>=65&&e<90?2*Math.random():e>=90&&e<99?.5:0),t+e},t}(),l=function(){function t(t){var e=this;this.platformId=t,this.refs={},this.streams$=new r.Subject,this.value$=this.streams$.asObservable().pipe(i.startWith(null),i.switchMap((function(){return r.combineLatest.apply(void 0,p(Object.keys(e.refs).map((function(t){return e.refs[t].value$}))))})),i.map((function(t){return Math.max.apply(Math,p([0],t))})))}var o,u;return Object.defineProperty(t.prototype,"progress$",{get:function(){return this.value$},enumerable:!0,configurable:!0}),t.prototype.start=function(t){void 0===t&&(t=2),this.useRef().start(t)},t.prototype.set=function(t){this.useRef().set(t)},t.prototype.increment=function(t){this.useRef().increment(t)},t.prototype.complete=function(){this.useRef().complete()},t.prototype.stop=function(){this.useRef().stop()},t.prototype.useRef=function(t){return void 0===t&&(t="default"),this.refs[t]||(this.refs[t]=new c,this.streams$.next(),n.isPlatformBrowser(this.platformId)||this.refs[t].disable()),this.refs[t]},t.ctorParameters=function(){return[{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.ɵprov=e["ɵɵdefineInjectable"]({factory:function(){return new t(e["ɵɵinject"](e.PLATFORM_ID))},token:t,providedIn:"root"}),t=s([e.Injectable({providedIn:"root"}),(o=0,u=e.Inject(e.PLATFORM_ID),function(t,e){u(t,e,o)}),a("design:paramtypes",[Object])],t)}(),f=function(){function t(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.color="#29d"}return Object.defineProperty(t.prototype,"value$",{get:function(){return this.ref?this.loader.useRef(this.ref).value$:this.loader.value$},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:l}]},s([e.Input(),a("design:type",Object)],t.prototype,"includeSpinner",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"includeBar",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"fixed",void 0),s([e.Input(),a("design:type",Object)],t.prototype,"color",void 0),s([e.Input(),a("design:type",Number)],t.prototype,"value",void 0),s([e.Input(),a("design:type",String)],t.prototype,"ref",void 0),s([e.Input(),a("design:type",String)],t.prototype,"height",void 0),s([e.Input(),a("design:type",String)],t.prototype,"diameter",void 0),t=s([e.Component({selector:"ngx-loading-bar",template:'\n <ng-container *ngIf="value != null ? value : (value$ | async) as progress">\n <div *ngIf="includeSpinner" class="ngx-spinner">\n <div [style.width]="diameter" [style.height]="diameter" class="ngx-spinner-icon"></div>\n </div>\n <div\n *ngIf="includeBar"\n class="ngx-bar"\n [style.background]="color"\n [style.height]="height"\n [style.width]="progress + \'%\'"\n ></div>\n </ng-container>\n ',preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.Emulated,host:{"[attr.fixed]":"fixed","[style.color]":"color"},styles:[":host{position:relative;display:block;pointer-events:none}:host .ngx-spinner{transition:350ms linear;display:block;position:absolute;top:5px;left:0}:host .ngx-spinner .ngx-spinner-icon{width:14px;height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}:host .ngx-bar{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host .ngx-bar{right:0;left:unset}:host[fixed=true]{z-index:10002}:host[fixed=true] .ngx-bar{position:fixed}:host[fixed=true] .ngx-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host[fixed=true] .ngx-spinner{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}),a("design:paramtypes",[l])],t)}(),d=function(){function t(){}return t=s([e.NgModule({imports:[n.CommonModule],declarations:[f],exports:[f]})],t)}();t.LoadingBarComponent=f,t.LoadingBarModule=d,t.LoadingBarService=l,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-loading-bar-core.umd.min.js.map

@@ -7,3 +7,3 @@ import { __decorate, __metadata, __param } from "tslib";

import { Subject, combineLatest } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { switchMap, map, startWith } from 'rxjs/operators';
import * as i0 from "@angular/core";

@@ -15,3 +15,3 @@ let LoadingBarService = class LoadingBarService {

this.streams$ = new Subject();
this.value$ = this.streams$.asObservable().pipe(switchMap(() => combineLatest(...Object.keys(this.refs).map((s) => this.refs[s].value$))), map((v) => Math.max(0, ...v)));
this.value$ = this.streams$.asObservable().pipe(startWith(null), switchMap(() => combineLatest(...Object.keys(this.refs).map((s) => this.refs[s].value$))), map((v) => Math.max(0, ...v)));
}

@@ -63,2 +63,2 @@ /** @deprecated use `value$` instead. */

export { LoadingBarService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbImxvYWRpbmctYmFyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDcEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBYyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzFELE9BQU8sRUFBRSxTQUFTLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBR2hELElBQWEsaUJBQWlCLEdBQTlCLE1BQWEsaUJBQWlCO0lBYTVCLFlBQXlDLFVBQWtCO1FBQWxCLGVBQVUsR0FBVixVQUFVLENBQVE7UUFabkQsU0FBSSxHQUFzQyxFQUFFLENBQU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AZGVwcmVjYXRlZCB1c2UgYHVzZVJlZmAgaW5zdGVhZC4gKi9cbiAgaW5jcmVtZW50KHZhbHVlPzogbnVtYmVyKSB7XG4gICAgdGhpcy51c2VSZWYoKS5pbmNyZW1lbnQodmFsdWUpO1xuICB9XG5cbiAgLyoqIEBkZXByZWNhdGVkIHVzZSBgdXNlUmVmYCBpbnN0ZWFkLiAqL1xuICBjb21wbGV0ZSgpIHtcbiAgICB0aGlzLnVzZVJlZigpLmNvbXBsZXRlKCk7XG4gIH1cblxuICAvKiogQGRlcHJlY2F0ZWQgdXNlIGB1c2VSZWZgIGluc3RlYWQuICovXG4gIHN0b3AoKSB7XG4gICAgdGhpcy51c2VSZWYoKS5zdG9wKCk7XG4gIH1cblxuICB1c2VSZWYoaWQ6IHN0cmluZyA9ICdkZWZhdWx0Jyk6IExvYWRpbmdCYXJTdGF0ZSB7XG4gICAgaWYgKCF0aGlzLnJlZnNbaWRdKSB7XG4gICAgICB0aGlzLnJlZnNbaWRdID0gbmV3IExvYWRpbmdCYXJTdGF0ZSgpO1xuICAgICAgdGhpcy5zdHJlYW1zJC5uZXh0KCk7XG5cbiAgICAgIGlmICghaXNQbGF0Zm9ybUJyb3dzZXIodGhpcy5wbGF0Zm9ybUlkKSkge1xuICAgICAgICB0aGlzLnJlZnNbaWRdLmRpc2FibGUoKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5yZWZzW2lkXTtcbiAgfVxufVxuIl19

@@ -13,3 +13,3 @@ import { Subject, timer, of } from 'rxjs';

this.stream$ = new Subject();
this.value$ = this.stream$.asObservable().pipe(switchMap((s) => this.timer$(s)), startWith({ action: null, value: 0 }), shareReplay(), map((s) => s.value));
this._value$ = null;
this.timer$ = (s) => {

@@ -39,2 +39,8 @@ let state$ = of(s);

}
get value$() {
if (this._value$) {
return this._value$;
}
return (this._value$ = this.stream$.asObservable().pipe(startWith(this.state), switchMap((s) => this.timer$(s)), shareReplay(), map((s) => s.value)));
}
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RhdCA8IDk5KSB7XG4gICAgICAgIC8vIGZpbmFsbHksIGluY3JlbWVudCBpdCAuNSAlXG4gICAgICAgIHJuZCA9IDAuNTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIC8vIGFmdGVyIDk5JSwgZG9uJ3QgaW5jcmVtZW50OlxuICAgICAgICBybmQgPSAwO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBybmQgKyBzdGF0O1xuICB9XG59XG4iXX0=

@@ -7,3 +7,3 @@ import { __decorate, __metadata, __param, __read, __spread } from "tslib";

import { Subject, combineLatest } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { switchMap, map, startWith } from 'rxjs/operators';
import * as i0 from "@angular/core";

@@ -16,3 +16,3 @@ var LoadingBarService = /** @class */ (function () {

this.streams$ = new Subject();
this.value$ = this.streams$.asObservable().pipe(switchMap(function () { return combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
this.value$ = this.streams$.asObservable().pipe(startWith(null), switchMap(function () { return combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
}

@@ -71,2 +71,2 @@ Object.defineProperty(LoadingBarService.prototype, "progress$", {

export { LoadingBarService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbImxvYWRpbmctYmFyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTS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VzZVJlZihpZDogc3RyaW5nID0gJ2RlZmF1bHQnKTogTG9hZGluZ0JhclN0YXRlIHtcbiAgICBpZiAoIXRoaXMucmVmc1tpZF0pIHtcbiAgICAgIHRoaXMucmVmc1tpZF0gPSBuZXcgTG9hZGluZ0JhclN0YXRlKCk7XG4gICAgICB0aGlzLnN0cmVhbXMkLm5leHQoKTtcblxuICAgICAgaWYgKCFpc1BsYXRmb3JtQnJvd3Nlcih0aGlzLnBsYXRmb3JtSWQpKSB7XG4gICAgICAgIHRoaXMucmVmc1tpZF0uZGlzYWJsZSgpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0aGlzLnJlZnNbaWRdO1xuICB9XG59XG4iXX0=

@@ -15,3 +15,3 @@ import { __assign } from "tslib";

this.stream$ = new Subject();
this.value$ = this.stream$.asObservable().pipe(switchMap(function (s) { return _this.timer$(s); }), startWith({ action: null, value: 0 }), shareReplay(), map(function (s) { return s.value; }));
this._value$ = null;
this.timer$ = function (s) {

@@ -43,2 +43,13 @@ var state$ = of(s);

}
Object.defineProperty(LoadingBarState.prototype, "value$", {
get: function () {
var _this = this;
if (this._value$) {
return this._value$;
}
return (this._value$ = this.stream$.asObservable().pipe(startWith(this.state), switchMap(function (s) { return _this.timer$(s); }), shareReplay(), map(function (s) { return s.value; })));
},
enumerable: true,
configurable: true
});
LoadingBarState.prototype.start = function (initialValue) {

@@ -124,2 +135,2 @@ if (initialValue === void 0) { initialValue = 2; }

export { LoadingBarState };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc3RhdGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJsb2FkaW5nLWJhci5zdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsRUFBRSxFQ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A5MCkge1xuICAgICAgICAvLyBpbmNyZW1lbnQgYmV0d2VlbiAwIC0gMiVcbiAgICAgICAgcm5kID0gTWF0aC5yYW5kb20oKSAqIDI7XG4gICAgICB9IGVsc2UgaWYgKHN0YXQgPj0gOTAgJiYgc3RhdCA8IDk5KSB7XG4gICAgICAgIC8vIGZpbmFsbHksIGluY3JlbWVudCBpdCAuNSAlXG4gICAgICAgIHJuZCA9IDAuNTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIC8vIGFmdGVyIDk5JSwgZG9uJ3QgaW5jcmVtZW50OlxuICAgICAgICBybmQgPSAwO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBybmQgKyBzdGF0O1xuICB9XG59XG4iXX0=

@@ -5,3 +5,3 @@ import { __decorate, __param, __metadata } from 'tslib';

import { Subject, of, timer, combineLatest } from 'rxjs';
import { switchMap, startWith, shareReplay, map, take, tap } from 'rxjs/operators';
import { take, map, tap, startWith, switchMap, shareReplay } from 'rxjs/operators';

@@ -18,3 +18,3 @@ class LoadingBarState {

this.stream$ = new Subject();
this.value$ = this.stream$.asObservable().pipe(switchMap((s) => this.timer$(s)), startWith({ action: null, value: 0 }), shareReplay(), map((s) => s.value));
this._value$ = null;
this.timer$ = (s) => {

@@ -44,2 +44,8 @@ let state$ = of(s);

}
get value$() {
if (this._value$) {
return this._value$;
}
return (this._value$ = this.stream$.asObservable().pipe(startWith(this.state), switchMap((s) => this.timer$(s)), shareReplay(), map((s) => s.value)));
}
start(initialValue = 2) {

@@ -125,3 +131,3 @@ if (this.disabled) {

this.streams$ = new Subject();
this.value$ = this.streams$.asObservable().pipe(switchMap(() => combineLatest(...Object.keys(this.refs).map((s) => this.refs[s].value$))), map((v) => Math.max(0, ...v)));
this.value$ = this.streams$.asObservable().pipe(startWith(null), switchMap(() => combineLatest(...Object.keys(this.refs).map((s) => this.refs[s].value$))), map((v) => Math.max(0, ...v)));
}

@@ -128,0 +134,0 @@ /** @deprecated use `value$` instead. */

@@ -5,3 +5,3 @@ import { __assign, __spread, __decorate, __param, __metadata } from 'tslib';

import { Subject, of, timer, combineLatest } from 'rxjs';
import { switchMap, startWith, shareReplay, map, take, tap } from 'rxjs/operators';
import { take, map, tap, startWith, switchMap, shareReplay } from 'rxjs/operators';

@@ -19,3 +19,3 @@ var LoadingBarState = /** @class */ (function () {

this.stream$ = new Subject();
this.value$ = this.stream$.asObservable().pipe(switchMap(function (s) { return _this.timer$(s); }), startWith({ action: null, value: 0 }), shareReplay(), map(function (s) { return s.value; }));
this._value$ = null;
this.timer$ = function (s) {

@@ -47,2 +47,13 @@ var state$ = of(s);

}
Object.defineProperty(LoadingBarState.prototype, "value$", {
get: function () {
var _this = this;
if (this._value$) {
return this._value$;
}
return (this._value$ = this.stream$.asObservable().pipe(startWith(this.state), switchMap(function (s) { return _this.timer$(s); }), shareReplay(), map(function (s) { return s.value; })));
},
enumerable: true,
configurable: true
});
LoadingBarState.prototype.start = function (initialValue) {

@@ -134,3 +145,3 @@ if (initialValue === void 0) { initialValue = 2; }

this.streams$ = new Subject();
this.value$ = this.streams$.asObservable().pipe(switchMap(function () { return combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
this.value$ = this.streams$.asObservable().pipe(startWith(null), switchMap(function () { return combineLatest.apply(void 0, __spread(Object.keys(_this.refs).map(function (s) { return _this.refs[s].value$; }))); }), map(function (v) { return Math.max.apply(Math, __spread([0], v)); }));
}

@@ -137,0 +148,0 @@ Object.defineProperty(LoadingBarService.prototype, "progress$", {

@@ -12,4 +12,4 @@ import { LoadingBarService } from './loading-bar.service';

diameter: string;
get value$(): import("rxjs").Observable<number>;
get value$(): any;
constructor(loader: LoadingBarService);
}
import { LoadingBarState } from './loading-bar.state';
import { Observable } from 'rxjs';
export declare class LoadingBarService {

@@ -7,5 +6,5 @@ private platformId;

private streams$;
readonly value$: Observable<number>;
readonly value$: import("rxjs").Observable<number>;
/** @deprecated use `value$` instead. */
get progress$(): Observable<number>;
get progress$(): import("rxjs").Observable<number>;
constructor(platformId: Object);

@@ -12,0 +11,0 @@ /** @deprecated use `useRef` instead. */

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

import { Observable } from 'rxjs';
export declare class LoadingBarState {

@@ -7,3 +6,4 @@ private state;

private stream$;
readonly value$: Observable<number>;
private _value$;
get value$(): any;
start(initialValue?: number): void;

@@ -10,0 +10,0 @@ stop(): void;

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

{"__symbolic":"module","version":4,"metadata":{"LoadingBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":5,"character":12}],"declarations":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"exports":[{"__symbolic":"reference","name":"LoadingBarComponent"}]}]}],"members":{}},"LoadingBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"ngx-loading-bar","template":"\n <ng-container *ngIf=\"value != null ? value : (value$ | async) as progress\">\n <div *ngIf=\"includeSpinner\" class=\"ngx-spinner\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"ngx-spinner-icon\"></div>\n </div>\n <div\n *ngIf=\"includeBar\"\n class=\"ngx-bar\"\n [style.background]=\"color\"\n [style.height]=\"height\"\n [style.width]=\"progress + '%'\"\n ></div>\n </ng-container>\n ","preserveWhitespaces":false,"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":21,"character":17},"member":"Emulated"},"host":{"[attr.fixed]":"fixed","[style.color]":"color","$quoted$":["[attr.fixed]","[style.color]"]},"styles":[":host{position:relative;display:block;pointer-events:none}:host .ngx-spinner{transition:350ms linear;display:block;position:absolute;top:5px;left:0}:host .ngx-spinner .ngx-spinner-icon{width:14px;height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}:host .ngx-bar{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host .ngx-bar{right:0;left:unset}:host[fixed=true]{z-index:10002}:host[fixed=true] .ngx-bar{position:fixed}:host[fixed=true] .ngx-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host[fixed=true] .ngx-spinner{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}]}],"members":{"includeSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"includeBar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"diameter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}]}},"LoadingBarService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":21,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"Object"}]}],"start":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"increment":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"useRef":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"LoadingBarModule":"./core.module","LoadingBarComponent":"./loading-bar.component","LoadingBarService":"./loading-bar.service"},"importAs":"@ngx-loading-bar/core"}
{"__symbolic":"module","version":4,"metadata":{"LoadingBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":5,"character":12}],"declarations":[{"__symbolic":"reference","name":"LoadingBarComponent"}],"exports":[{"__symbolic":"reference","name":"LoadingBarComponent"}]}]}],"members":{}},"LoadingBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"ngx-loading-bar","template":"\n <ng-container *ngIf=\"value != null ? value : (value$ | async) as progress\">\n <div *ngIf=\"includeSpinner\" class=\"ngx-spinner\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"ngx-spinner-icon\"></div>\n </div>\n <div\n *ngIf=\"includeBar\"\n class=\"ngx-bar\"\n [style.background]=\"color\"\n [style.height]=\"height\"\n [style.width]=\"progress + '%'\"\n ></div>\n </ng-container>\n ","preserveWhitespaces":false,"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":21,"character":17},"member":"Emulated"},"host":{"[attr.fixed]":"fixed","[style.color]":"color","$quoted$":["[attr.fixed]","[style.color]"]},"styles":[":host{position:relative;display:block;pointer-events:none}:host .ngx-spinner{transition:350ms linear;display:block;position:absolute;top:5px;left:0}:host .ngx-spinner .ngx-spinner-icon{width:14px;height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}:host .ngx-bar{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host .ngx-bar{right:0;left:unset}:host[fixed=true]{z-index:10002}:host[fixed=true] .ngx-bar{position:fixed}:host[fixed=true] .ngx-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host[fixed=true] .ngx-spinner{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}]}],"members":{"includeSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"includeBar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"diameter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}]}},"LoadingBarService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":22,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"Object"}]}],"start":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"increment":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"useRef":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"LoadingBarModule":"./core.module","LoadingBarComponent":"./loading-bar.component","LoadingBarService":"./loading-bar.service"},"importAs":"@ngx-loading-bar/core"}
{
"name": "@ngx-loading-bar/core",
"version": "5.0.1",
"version": "5.0.2",
"description": "Automatic page loading / progress bar for Angular",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc