@ngx-loading-bar/core
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
@@ -23,5 +23,8 @@ (function (global, factory) { | ||
var 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]; }; | ||
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); | ||
}; | ||
@@ -34,8 +37,11 @@ function __extends(d, b) { | ||
var __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; | ||
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); | ||
}; | ||
@@ -48,4 +54,6 @@ | ||
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) | ||
t[p[i]] = s[p[i]]; | ||
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; | ||
@@ -70,6 +78,7 @@ } | ||
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) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -86,4 +95,4 @@ }); | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
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]) { | ||
@@ -113,5 +122,5 @@ case 0: case 1: t = op; break; | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
if (o && typeof o.length === "number") return { | ||
next: function () { | ||
@@ -122,2 +131,3 @@ if (o && i >= o.length) o = void 0; | ||
}; | ||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | ||
} | ||
@@ -148,2 +158,10 @@ | ||
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) { | ||
@@ -159,3 +177,3 @@ return this instanceof __await ? (this.v = v, this) : new __await(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 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); } | ||
@@ -169,3 +187,3 @@ function reject(value) { resume("throw", value); } | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } | ||
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; } | ||
} | ||
@@ -175,4 +193,6 @@ | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator]; | ||
return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); | ||
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); } | ||
} | ||
@@ -197,19 +217,17 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.state.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @record | ||
*/ | ||
function ILoadingBarState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.action; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.value; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.initialValue; | ||
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; | ||
} | ||
var LoadingBarState = /** @class */ (function () { | ||
@@ -226,17 +244,4 @@ function LoadingBarState() { | ||
this.stream$ = new rxjs.Subject(); | ||
this.value$ = this.stream$.asObservable().pipe(operators.switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.timer$(s); })), operators.startWith({ action: null, value: 0 }), operators.shareReplay(), operators.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return s.value; }))); | ||
this.timer$ = (/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { | ||
/** @type {?} */ | ||
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.timer$ = function (s) { | ||
var state$ = rxjs.of(s); | ||
@@ -248,8 +253,4 @@ switch (s.action) { | ||
if (_this.requests > 0) { | ||
state$ = rxjs.timer(0, 250).pipe(operators.map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return t === 0 | ||
? __assign({}, s, { value: _this.state.value || s.initialValue }) : __assign({}, s, { value: _this._increment() }); }))); | ||
state$ = rxjs.timer(0, 250).pipe(operators.map(function (t) { return t === 0 | ||
? __assign(__assign({}, s), { value: _this.state.value || s.initialValue }) : __assign(__assign({}, s), { value: _this._increment() }); })); | ||
} | ||
@@ -261,30 +262,10 @@ break; | ||
// Attempt to aggregate any start/complete calls within 500ms: | ||
state$ = s.value === 0 ? rxjs.of(__assign({}, s)) : rxjs.timer(0, 500).pipe(operators.take(2), operators.map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return ({ value: t === 0 ? 100 : 0 }); }))); | ||
state$ = s.value === 0 ? rxjs.of(__assign({}, s)) : rxjs.timer(0, 500).pipe(operators.take(2), operators.map(function (t) { return ({ value: t === 0 ? 100 : 0 }); })); | ||
break; | ||
} | ||
} | ||
return state$.pipe(operators.map((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return (/** @type {?} */ ((__assign({}, next, { action: 'set' })))); })), operators.tap((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return _this.next(next, false); }))); | ||
}); | ||
return state$.pipe(operators.map(function (next) { return (__assign(__assign({}, next), { action: 'set' })); }), operators.tap(function (next) { return _this.next(next, false); })); | ||
}; | ||
} | ||
/** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.start = /** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarState.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -296,65 +277,19 @@ if (this.disabled) { | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.stop = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.stop = function () { | ||
this.next({ action: 'stop' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.complete = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.complete = function () { | ||
this.next({ action: 'complete' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.disable = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.disable = function () { | ||
this.disabled = true; | ||
}; | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.set = /** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.set = function (value) { | ||
this.next({ action: 'set', value: value }); | ||
}; | ||
/** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.increment = /** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.increment = function (value) { | ||
if (value === void 0) { value = 0; } | ||
this.next({ action: 'increment', value: value }); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.next = /** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
function (state, emitEvent) { | ||
LoadingBarState.prototype.next = function (state, emitEvent) { | ||
if (emitEvent === void 0) { emitEvent = true; } | ||
@@ -380,4 +315,3 @@ switch (state.action) { | ||
} | ||
/** @type {?} */ | ||
var newState = __assign({}, this.state, { action: null }, state); | ||
var newState = __assign(__assign(__assign({}, this.state), { action: null }), state); | ||
this.state = newState; | ||
@@ -388,15 +322,4 @@ if (emitEvent) { | ||
}; | ||
/** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype._increment = /** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
function (rnd) { | ||
LoadingBarState.prototype._increment = function (rnd) { | ||
if (rnd === void 0) { rnd = 0; } | ||
/** @type {?} */ | ||
var stat = this.state.value; | ||
@@ -432,37 +355,3 @@ if (stat >= 99) { | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.state; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.requests; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.stream$; | ||
/** @type {?} */ | ||
LoadingBarState.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.timer$; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarService = /** @class */ (function () { | ||
@@ -473,19 +362,7 @@ function LoadingBarService(platformId) { | ||
this.streams$ = (new rxjs.Subject()); | ||
this.value$ = this.streams$.pipe(operators.switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return rxjs.combineLatest.apply(void 0, __spread(s)); })), operators.map((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
function (v) { return Math.max.apply(Math, __spread(v)); }))); | ||
this.value$ = this.streams$.pipe(operators.switchMap(function (s) { return rxjs.combineLatest.apply(void 0, __spread(s)); }), operators.map(function (v) { return Math.max.apply(Math, __spread(v)); })); | ||
} | ||
Object.defineProperty(LoadingBarService.prototype, "progress$", { | ||
/** @deprecated use `value$` instead. */ | ||
get: /** | ||
* @deprecated use `value$` instead. | ||
* @return {?} | ||
*/ | ||
function () { return this.value$; }, | ||
get: function () { return this.value$; }, | ||
enumerable: true, | ||
@@ -495,13 +372,3 @@ configurable: true | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.start = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarService.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -511,54 +378,10 @@ this.useRef().start(initialValue); | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.set = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().set(value); }; | ||
LoadingBarService.prototype.set = function (value) { this.useRef().set(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.increment = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().increment(value); }; | ||
LoadingBarService.prototype.increment = function (value) { this.useRef().increment(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.complete = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().complete(); }; | ||
LoadingBarService.prototype.complete = function () { this.useRef().complete(); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.stop = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().stop(); }; | ||
/** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.useRef = /** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
LoadingBarService.prototype.stop = function () { this.useRef().stop(); }; | ||
LoadingBarService.prototype.useRef = function (id) { | ||
var _this = this; | ||
@@ -569,7 +392,3 @@ if (id === void 0) { id = 'default'; } | ||
this.streams$.next(Object.keys(this.refs) | ||
.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.refs[s].value$; }))); | ||
.map(function (s) { return _this.refs[s].value$; })); | ||
if (!common.isPlatformBrowser(this.platformId)) { | ||
@@ -581,37 +400,14 @@ this.refs[id].disable(); | ||
}; | ||
LoadingBarService.decorators = [ | ||
{ type: core.Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarService.ctorParameters = function () { return [ | ||
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] } | ||
]; }; | ||
/** @nocollapse */ LoadingBarService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(core.ɵɵinject(core.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function LoadingBarService_Factory() { return new LoadingBarService(core["ɵɵinject"](core.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService = __decorate([ | ||
core.Injectable({ providedIn: 'root' }), | ||
__param(0, core.Inject(core.PLATFORM_ID)), | ||
__metadata("design:paramtypes", [Object]) | ||
], LoadingBarService); | ||
return LoadingBarService; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.refs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.streams$; | ||
/** @type {?} */ | ||
LoadingBarService.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.platformId; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarComponent = /** @class */ (function () { | ||
@@ -625,11 +421,3 @@ function LoadingBarComponent(loader) { | ||
} | ||
/** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
LoadingBarComponent.prototype.ngOnChanges = /** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
function (changes) { | ||
LoadingBarComponent.prototype.ngOnChanges = function (changes) { | ||
if (changes.ref) { | ||
@@ -641,68 +429,63 @@ this.value$ = this.ref | ||
}; | ||
LoadingBarComponent.decorators = [ | ||
{ type: core.Component, args: [{ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: core.ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarComponent.ctorParameters = function () { return [ | ||
{ type: LoadingBarService } | ||
]; }; | ||
LoadingBarComponent.propDecorators = { | ||
includeSpinner: [{ type: core.Input }], | ||
includeBar: [{ type: core.Input }], | ||
fixed: [{ type: core.Input }], | ||
color: [{ type: core.Input }], | ||
value: [{ type: core.Input }], | ||
ref: [{ type: core.Input }], | ||
height: [{ type: core.Input }], | ||
diameter: [{ type: core.Input }] | ||
}; | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeSpinner", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeBar", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "fixed", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "color", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", Number) | ||
], LoadingBarComponent.prototype, "value", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "ref", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "height", void 0); | ||
__decorate([ | ||
core.Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "diameter", void 0); | ||
LoadingBarComponent = __decorate([ | ||
core.Component({ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: core.ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"] | ||
}), | ||
__metadata("design:paramtypes", [LoadingBarService]) | ||
], LoadingBarComponent); | ||
return LoadingBarComponent; | ||
}()); | ||
if (false) { | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeSpinner; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeBar; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.fixed; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.color; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.ref; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.height; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.diameter; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value$; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.loader; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: core.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarModule = /** @class */ (function () { | ||
function LoadingBarModule() { | ||
} | ||
LoadingBarModule.decorators = [ | ||
{ type: core.NgModule, args: [{ | ||
imports: [common.CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
},] } | ||
]; | ||
LoadingBarModule = __decorate([ | ||
core.NgModule({ | ||
imports: [common.CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
}) | ||
], LoadingBarModule); | ||
return LoadingBarModule; | ||
@@ -709,0 +492,0 @@ }()); |
@@ -1,2 +0,2 @@ | ||
!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,r,n,i){"use strict"; | ||
!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,i,r){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */Object.setPrototypeOf;var o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};function a(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}var p=function(){function t(){var t=this;this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new n.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 r=n.of(e);switch(e.action){case"start":case"increment":case"set":t.requests>0&&(r=n.timer(0,250).pipe(i.map((function(r){return o({},e,0===r?{value:t.state.value||e.initialValue}:{value:t._increment()})}))));break;case"complete":case"stop":r=0===e.value?n.of(o({},e)):n.timer(0,500).pipe(i.take(2),i.map((function(t){return{value:0===t?100:0}})))}return r.pipe(i.map((function(t){return 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;default:"increment"===t.action&&(t.value=this._increment(t.value))}var r=o({},this.state,{action:null},t);this.state=r,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}();var l=function(){function t(t){this.platformId=t,this.refs={},this.streams$=new n.Subject,this.value$=this.streams$.pipe(i.switchMap((function(t){return n.combineLatest.apply(void 0,s(t))})),i.map((function(t){return Math.max.apply(Math,s(t))})))}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){var e=this;return void 0===t&&(t="default"),this.refs[t]||(this.refs[t]=new p,this.streams$.next(Object.keys(this.refs).map((function(t){return e.refs[t].value$}))),r.isPlatformBrowser(this.platformId)||this.refs[t].disable()),this.refs[t]},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.PLATFORM_ID))},token:t,providedIn:"root"}),t}();var u=function(){function t(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.value$=this.loader.progress$}return t.prototype.ngOnChanges=function(t){t.ref&&(this.value$=this.ref?this.loader.useRef(this.ref).value$:this.loader.value$)},t.decorators=[{type:e.Component,args:[{selector:"ngx-loading-bar",template:'\n <ng-container *ngIf="(value != null ? value : value$|async) as progress">\n <div id="loading-bar-spinner" *ngIf="includeSpinner" [style.color]="color">\n <div [style.width]="diameter" [style.height]="diameter" class="spinner-icon"></div>\n </div>\n <div id="loading-bar" *ngIf="includeBar" [style.color]="color">\n <div class="bar" [style.background]="color" [style.height]="height" [style.width]="progress + \'%\'">\n <div class="peg" [style.height]="height"></div>\n </div>\n </div>\n </ng-container>\n ',preserveWhitespaces:!1,encapsulation:e.ViewEncapsulation.Emulated,host:{"[class.loading-bar-fixed]":"fixed"},styles:[":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]}]}],t.ctorParameters=function(){return[{type:l}]},t.propDecorators={includeSpinner:[{type:e.Input}],includeBar:[{type:e.Input}],fixed:[{type:e.Input}],color:[{type:e.Input}],value:[{type:e.Input}],ref:[{type:e.Input}],height:[{type:e.Input}],diameter:[{type:e.Input}]},t}();var c=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[r.CommonModule],declarations:[u],exports:[u]}]}],t}();t.LoadingBarComponent=u,t.LoadingBarModule=c,t.LoadingBarService=l,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function s(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 i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}var u=function(){function t(){var t=this;this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new i.Subject,this.value$=this.stream$.asObservable().pipe(r.switchMap((function(e){return t.timer$(e)})),r.startWith({action:null,value:0}),r.shareReplay(),r.map((function(t){return t.value}))),this.timer$=function(e){var n=i.of(e);switch(e.action){case"start":case"increment":case"set":t.requests>0&&(n=i.timer(0,250).pipe(r.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?i.of(o({},e)):i.timer(0,500).pipe(r.take(2),r.map((function(t){return{value:0===t?100:0}})))}return n.pipe(r.map((function(t){return o(o({},t),{action:"set"})})),r.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;default:"increment"===t.action&&(t.value=this._increment(t.value))}var n=o(o(o({},this.state),{action:null}),t);this.state=n,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}(),c=function(){function t(t){this.platformId=t,this.refs={},this.streams$=new i.Subject,this.value$=this.streams$.pipe(r.switchMap((function(t){return i.combineLatest.apply(void 0,l(t))})),r.map((function(t){return Math.max.apply(Math,l(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){var e=this;return void 0===t&&(t="default"),this.refs[t]||(this.refs[t]=new u,this.streams$.next(Object.keys(this.refs).map((function(t){return e.refs[t].value$}))),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=a([e.Injectable({providedIn:"root"}),(o=0,p=e.Inject(e.PLATFORM_ID),function(t,e){p(t,e,o)}),s("design:paramtypes",[Object])],t)}(),d=function(){function t(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.value$=this.loader.progress$}return t.prototype.ngOnChanges=function(t){t.ref&&(this.value$=this.ref?this.loader.useRef(this.ref).value$:this.loader.value$)},t.ctorParameters=function(){return[{type:c}]},a([e.Input(),s("design:type",Object)],t.prototype,"includeSpinner",void 0),a([e.Input(),s("design:type",Object)],t.prototype,"includeBar",void 0),a([e.Input(),s("design:type",Object)],t.prototype,"fixed",void 0),a([e.Input(),s("design:type",String)],t.prototype,"color",void 0),a([e.Input(),s("design:type",Number)],t.prototype,"value",void 0),a([e.Input(),s("design:type",String)],t.prototype,"ref",void 0),a([e.Input(),s("design:type",String)],t.prototype,"height",void 0),a([e.Input(),s("design:type",String)],t.prototype,"diameter",void 0),t=a([e.Component({selector:"ngx-loading-bar",template:'\n <ng-container *ngIf="(value != null ? value : value$|async) as progress">\n <div id="loading-bar-spinner" *ngIf="includeSpinner" [style.color]="color">\n <div [style.width]="diameter" [style.height]="diameter" class="spinner-icon"></div>\n </div>\n <div id="loading-bar" *ngIf="includeBar" [style.color]="color">\n <div class="bar" [style.background]="color" [style.height]="height" [style.width]="progress + \'%\'">\n <div class="peg" [style.height]="height"></div>\n </div>\n </div>\n </ng-container>\n ',preserveWhitespaces:!1,encapsulation:e.ViewEncapsulation.Emulated,host:{"[class.loading-bar-fixed]":"fixed"},styles:[":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"]}),s("design:paramtypes",[c])],t)}(),f=function(){function t(){}return t=a([e.NgModule({imports:[n.CommonModule],declarations:[d],exports:[d]})],t)}();t.LoadingBarComponent=d,t.LoadingBarModule=f,t.LoadingBarService=c,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-loading-bar-core.umd.min.js.map |
@@ -1,18 +0,15 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: core.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate } from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { LoadingBarComponent } from './loading-bar.component'; | ||
export class LoadingBarModule { | ||
} | ||
LoadingBarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJjb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBTzlELE1BQU0sT0FBTyxnQkFBZ0I7OztZQUw1QixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2dCQUN2QixZQUFZLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztnQkFDbkMsT0FBTyxFQUFFLENBQUMsbUJBQW1CLENBQUM7YUFDL0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IExvYWRpbmdCYXJDb21wb25lbnQgfSBmcm9tICcuL2xvYWRpbmctYmFyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtMb2FkaW5nQmFyQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0xvYWRpbmdCYXJDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBMb2FkaW5nQmFyTW9kdWxlIHt9XG4iXX0= | ||
let LoadingBarModule = class LoadingBarModule { | ||
}; | ||
LoadingBarModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
}) | ||
], LoadingBarModule); | ||
export { LoadingBarModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJjb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFPOUQsSUFBYSxnQkFBZ0IsR0FBN0IsTUFBYSxnQkFBZ0I7Q0FBRyxDQUFBO0FBQW5CLGdCQUFnQjtJQUw1QixRQUFRLENBQUM7UUFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7UUFDdkIsWUFBWSxFQUFFLENBQUMsbUJBQW1CLENBQUM7UUFDbkMsT0FBTyxFQUFFLENBQUMsbUJBQW1CLENBQUM7S0FDL0IsQ0FBQztHQUNXLGdCQUFnQixDQUFHO1NBQW5CLGdCQUFnQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTG9hZGluZ0JhckNvbXBvbmVudCB9IGZyb20gJy4vbG9hZGluZy1iYXIuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGRlY2xhcmF0aW9uczogW0xvYWRpbmdCYXJDb21wb25lbnRdLFxuICBleHBvcnRzOiBbTG9hZGluZ0JhckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIExvYWRpbmdCYXJNb2R1bGUge31cbiJdfQ== |
@@ -1,12 +0,5 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Component, Input, ViewEncapsulation } from '@angular/core'; | ||
import { LoadingBarService } from './loading-bar.service'; | ||
export class LoadingBarComponent { | ||
/** | ||
* @param {?} loader | ||
*/ | ||
let LoadingBarComponent = class LoadingBarComponent { | ||
constructor(loader) { | ||
@@ -19,6 +12,2 @@ this.loader = loader; | ||
} | ||
/** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
ngOnChanges(changes) { | ||
@@ -31,7 +20,42 @@ if (changes.ref) { | ||
} | ||
} | ||
LoadingBarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ngx-loading-bar', | ||
template: ` | ||
}; | ||
LoadingBarComponent.ctorParameters = () => [ | ||
{ type: LoadingBarService } | ||
]; | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeSpinner", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeBar", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "fixed", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "color", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Number) | ||
], LoadingBarComponent.prototype, "value", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "ref", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "height", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "diameter", void 0); | ||
LoadingBarComponent = __decorate([ | ||
Component({ | ||
selector: 'ngx-loading-bar', | ||
template: ` | ||
<ng-container *ngIf="(value != null ? value : value$|async) as progress"> | ||
@@ -48,46 +72,12 @@ <div id="loading-bar-spinner" *ngIf="includeSpinner" [style.color]="color"> | ||
`, | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarComponent.ctorParameters = () => [ | ||
{ type: LoadingBarService } | ||
]; | ||
LoadingBarComponent.propDecorators = { | ||
includeSpinner: [{ type: Input }], | ||
includeBar: [{ type: Input }], | ||
fixed: [{ type: Input }], | ||
color: [{ type: Input }], | ||
value: [{ type: Input }], | ||
ref: [{ type: Input }], | ||
height: [{ type: Input }], | ||
diameter: [{ type: Input }] | ||
}; | ||
if (false) { | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeSpinner; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeBar; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.fixed; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.color; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.ref; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.height; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.diameter; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value$; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.loader; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neC1sb2FkaW5nLWJhci9jb3JlLyIsInNvdXJjZXMiOlsibG9hZGluZy1iYXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQTRCLE1BQU0sZUFBZSxD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JlZikge1xuICAgICAgdGhpcy52YWx1ZSQgPSB0aGlzLnJlZlxuICAgICAgICA/IHRoaXMubG9hZGVyLnVzZVJlZih0aGlzLnJlZikudmFsdWUkXG4gICAgICAgIDogdGhpcy5sb2FkZXIudmFsdWUkO1xuICAgIH1cbiAgfVxufVxuIl19 | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"] | ||
}), | ||
__metadata("design:paramtypes", [LoadingBarService]) | ||
], LoadingBarComponent); | ||
export { LoadingBarComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5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SBoZWlnaHQ6IHN0cmluZztcbiAgQElucHV0KCkgZGlhbWV0ZXI6IHN0cmluZztcblxuICB2YWx1ZSQgPSB0aGlzLmxvYWRlci5wcm9ncmVzcyQ7XG5cbiAgY29uc3RydWN0b3IocHVibGljIGxvYWRlcjogTG9hZGluZ0JhclNlcnZpY2UpIHt9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcykge1xuICAgIGlmIChjaGFuZ2VzLnJlZikge1xuICAgICAgdGhpcy52YWx1ZSQgPSB0aGlzLnJlZlxuICAgICAgICA/IHRoaXMubG9hZGVyLnVzZVJlZih0aGlzLnJlZikudmFsdWUkXG4gICAgICAgIDogdGhpcy5sb2FkZXIudmFsdWUkO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata, __param } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -13,6 +9,3 @@ import { PLATFORM_ID, Inject } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export class LoadingBarService { | ||
/** | ||
* @param {?} platformId | ||
*/ | ||
let LoadingBarService = class LoadingBarService { | ||
constructor(platformId) { | ||
@@ -22,49 +15,16 @@ this.platformId = platformId; | ||
this.streams$ = (new Subject()); | ||
this.value$ = this.streams$.pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => combineLatest(...s))), map((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
v => Math.max(...v)))); | ||
this.value$ = this.streams$.pipe(switchMap(s => combineLatest(...s)), map(v => Math.max(...v))); | ||
} | ||
/** | ||
* @deprecated use `value$` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `value$` instead. */ | ||
get progress$() { return this.value$; } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
start(initialValue = 2) { this.useRef().start(initialValue); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
set(value) { this.useRef().set(value); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
increment(value) { this.useRef().increment(value); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
complete() { this.useRef().complete(); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
stop() { this.useRef().stop(); } | ||
/** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
useRef(id = 'default') { | ||
@@ -74,7 +34,3 @@ if (!this.refs[id]) { | ||
this.streams$.next(Object.keys(this.refs) | ||
.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => this.refs[s].value$))); | ||
.map(s => this.refs[s].value$)); | ||
if (!isPlatformBrowser(this.platformId)) { | ||
@@ -86,30 +42,13 @@ this.refs[id].disable(); | ||
} | ||
} | ||
LoadingBarService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
LoadingBarService.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
/** @nocollapse */ LoadingBarService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(i0.ɵɵinject(i0.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.refs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.streams$; | ||
/** @type {?} */ | ||
LoadingBarService.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.platformId; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbImxvYWRpbmctYmFyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQWMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMxRCxPQUFPLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQUdoRCxNQUFNLE9BQU8saUJBQWlCOzs7O0lBVzVCLFlBQXlDLFVBQWtCO1FBQWxCLGVBQVUsR0FBVixVQUFVLENBQVE7UUFWbkQsU0FBSSxHQUFzQyxFQUFFLENBQUM7UUFDN0MsYUFBUSxHQUFHLENBQUMsSUFBSSxPQUFPLEVBQXdCLENBQUMsQ0FBQztRQUNoRCxXQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQ2xDLFNBQVM7Ozs7UUFBQyxDQUFDLENBQ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NlUmVmKCkuaW5jcmVtZW50KHZhbHVlKTsgfVxuXG4gIC8qKiBAZGVwcmVjYXRlZCB1c2UgYHVzZVJlZmAgaW5zdGVhZC4gKi9cbiAgY29tcGxldGUoKSB7IHRoaXMudXNlUmVmKCkuY29tcGxldGUoKTsgfVxuXG4gIC8qKiBAZGVwcmVjYXRlZCB1c2UgYHVzZVJlZmAgaW5zdGVhZC4gKi9cbiAgc3RvcCgpIHsgdGhpcy51c2VSZWYoKS5zdG9wKCk7IH1cblxuICB1c2VSZWYoaWQ6IHN0cmluZyA9ICdkZWZhdWx0Jyk6IExvYWRpbmdCYXJTdGF0ZSB7XG4gICAgaWYgKCF0aGlzLnJlZnNbaWRdKSB7XG4gICAgICB0aGlzLnJlZnNbaWRdID0gbmV3IExvYWRpbmdCYXJTdGF0ZSgpO1xuICAgICAgdGhpcy5zdHJlYW1zJC5uZXh0KFxuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLnJlZnMpXG4gICAgICAgIC5tYXAocyA9PiB0aGlzLnJlZnNbc10udmFsdWUkKVxuICAgICAgKTtcblxuICAgICAgaWYgKCFpc1BsYXRmb3JtQnJvd3Nlcih0aGlzLnBsYXRmb3JtSWQpKSB7XG4gICAgICAgIHRoaXMucmVmc1tpZF0uZGlzYWJsZSgpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0aGlzLnJlZnNbaWRdO1xuICB9XG59XG4iXX0= | ||
LoadingBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(i0.ɵɵinject(i0.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(PLATFORM_ID)), | ||
__metadata("design:paramtypes", [Object]) | ||
], LoadingBarService); | ||
export { LoadingBarService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc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oKS5jb21wbGV0ZSgpOyB9XG5cbiAgLyoqIEBkZXByZWNhdGVkIHVzZSBgdXNlUmVmYCBpbnN0ZWFkLiAqL1xuICBzdG9wKCkgeyB0aGlzLnVzZVJlZigpLnN0b3AoKTsgfVxuXG4gIHVzZVJlZihpZDogc3RyaW5nID0gJ2RlZmF1bHQnKTogTG9hZGluZ0JhclN0YXRlIHtcbiAgICBpZiAoIXRoaXMucmVmc1tpZF0pIHtcbiAgICAgIHRoaXMucmVmc1tpZF0gPSBuZXcgTG9hZGluZ0JhclN0YXRlKCk7XG4gICAgICB0aGlzLnN0cmVhbXMkLm5leHQoXG4gICAgICAgIE9iamVjdC5rZXlzKHRoaXMucmVmcylcbiAgICAgICAgLm1hcChzID0+IHRoaXMucmVmc1tzXS52YWx1ZSQpXG4gICAgICApO1xuXG4gICAgICBpZiAoIWlzUGxhdGZvcm1Ccm93c2VyKHRoaXMucGxhdGZvcm1JZCkpIHtcbiAgICAgICAgdGhpcy5yZWZzW2lkXS5kaXNhYmxlKCk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMucmVmc1tpZF07XG4gIH1cbn1cbiJdfQ== |
@@ -1,20 +0,3 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.state.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { Subject, timer, of } from 'rxjs'; | ||
import { map, switchMap, take, tap, startWith, shareReplay } from 'rxjs/operators'; | ||
/** | ||
* @record | ||
*/ | ||
function ILoadingBarState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.action; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.value; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.initialValue; | ||
} | ||
export class LoadingBarState { | ||
@@ -30,17 +13,4 @@ constructor() { | ||
this.stream$ = new Subject(); | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
(s) => this.timer$(s))), startWith({ action: null, value: 0 }), shareReplay(), map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => s.value))); | ||
this.timer$ = (/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
(s) => { | ||
/** @type {?} */ | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((s) => this.timer$(s)), startWith({ action: null, value: 0 }), shareReplay(), map(s => s.value)); | ||
this.timer$ = (s) => { | ||
let state$ = of(s); | ||
@@ -52,8 +22,4 @@ switch (s.action) { | ||
if (this.requests > 0) { | ||
state$ = timer(0, 250).pipe(map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
t => t === 0 | ||
? Object.assign({}, s, { value: this.state.value || s.initialValue }) : Object.assign({}, s, { value: this._increment() })))); | ||
state$ = timer(0, 250).pipe(map(t => t === 0 | ||
? Object.assign(Object.assign({}, s), { value: this.state.value || s.initialValue }) : Object.assign(Object.assign({}, s), { value: this._increment() }))); | ||
} | ||
@@ -65,25 +31,9 @@ break; | ||
// Attempt to aggregate any start/complete calls within 500ms: | ||
state$ = s.value === 0 ? of(Object.assign({}, s)) : timer(0, 500).pipe(take(2), map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
t => ({ value: t === 0 ? 100 : 0 })))); | ||
state$ = s.value === 0 ? of(Object.assign({}, s)) : timer(0, 500).pipe(take(2), map(t => ({ value: t === 0 ? 100 : 0 }))); | ||
break; | ||
} | ||
} | ||
return state$.pipe(map((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
next => (/** @type {?} */ ((Object.assign({}, next, { action: 'set' })))))), tap((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
(next) => this.next(next, false)))); | ||
}); | ||
return state$.pipe(map(next => (Object.assign(Object.assign({}, next), { action: 'set' }))), tap((next) => this.next(next, false))); | ||
}; | ||
} | ||
/** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
start(initialValue = 2) { | ||
@@ -95,40 +45,17 @@ if (this.disabled) { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
stop() { | ||
this.next({ action: 'stop' }); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
complete() { | ||
this.next({ action: 'complete' }); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
disable() { | ||
this.disabled = true; | ||
} | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
set(value) { | ||
this.next({ action: 'set', value }); | ||
} | ||
/** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
increment(value = 0) { | ||
this.next({ action: 'increment', value }); | ||
} | ||
/** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
next(state, emitEvent = true) { | ||
@@ -154,4 +81,3 @@ switch (state.action) { | ||
} | ||
/** @type {?} */ | ||
const newState = Object.assign({}, this.state, { action: null }, state); | ||
const newState = Object.assign(Object.assign(Object.assign({}, this.state), { action: null }), state); | ||
this.state = newState; | ||
@@ -162,9 +88,3 @@ if (emitEvent) { | ||
} | ||
/** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
_increment(rnd = 0) { | ||
/** @type {?} */ | ||
const stat = this.state.value; | ||
@@ -199,31 +119,2 @@ if (stat >= 99) { | ||
} | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.state; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.requests; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.stream$; | ||
/** @type {?} */ | ||
LoadingBarState.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.timer$; | ||
} | ||
//# sourceMappingURL=data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XG4gIH1cblxuICBwcml2YXRlIF9pbmNyZW1lbnQocm5kID0gMCkge1xuICAgIGNvbnN0IHN0YXQgPSB0aGlzLnN0YXRlLnZhbHVlO1xuICAgIGlmIChzdGF0ID49IDk5KSB7XG4gICAgICBybmQgPSAwO1xuICAgIH1cblxuICAgIGlmIChybmQgPT09IDApIHtcbiAgICAgIGlmIChzdGF0ID49IDAgJiYgc3RhdCA8IDI1KSB7XG4gICAgICAgIC8vIFN0YXJ0IG91dCBiZXR3ZWVuIDMgLSA2JSBpbmNyZW1lbnRzXG4gICAgICAgIHJuZCA9IChNYXRoLnJhbmRvbSgpICogKDUgLSAzICsgMSkgKyAzKTtcbiAgICAgIH0gZWxzZSBpZiAoc3RhdCA+PSAyNSAmJiBzdGF0IDwgNjUpIHtcbiAgICAgICAgLy8gaW5jcmVtZW50IGJldHdlZW4gMCAtIDMlXG4gICAgICAgIHJuZCA9IChNYXRoLnJhbmRvbSgpICogMyk7XG4gICAgICB9IGVsc2UgaWYgKHN0YXQgPj0gNjUgJiYgc3RhdCA8IDkwKSB7XG4gICAgICAgIC8vIGluY3JlbWVudCBiZXR3ZWVuIDAgLSAyJVxuICAgICAgICBybmQgPSAoTWF0aC5yYW5kb20oKSAqIDIpO1xuICAgICAgfSBlbHNlIGlmIChzdGF0ID49IDkwICYmIHN0YXQgPCA5OSkge1xuICAgICAgICAvLyBmaW5hbGx5LCBpbmNyZW1lbnQgaXQgLjUgJVxuICAgICAgICBybmQgPSAwLjU7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICAvLyBhZnRlciA5OSUsIGRvbid0IGluY3JlbWVudDpcbiAgICAgICAgcm5kID0gMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gcm5kICsgc3RhdDtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc3RhdGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9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AmJiBzdGF0IDwgNjUpIHtcbiAgICAgICAgLy8gaW5jcmVtZW50IGJldHdlZW4gMCAtIDMlXG4gICAgICAgIHJuZCA9IChNYXRoLnJhbmRvbSgpICogMyk7XG4gICAgICB9IGVsc2UgaWYgKHN0YXQgPj0gNjUgJiYgc3RhdCA8IDkwKSB7XG4gICAgICAgIC8vIGluY3JlbWVudCBiZXR3ZWVuIDAgLSAyJVxuICAgICAgICBybmQgPSAoTWF0aC5yYW5kb20oKSAqIDIpO1xuICAgICAgfSBlbHNlIGlmIChzdGF0ID49IDkwICYmIHN0YXQgPCA5OSkge1xuICAgICAgICAvLyBmaW5hbGx5LCBpbmNyZW1lbnQgaXQgLjUgJVxuICAgICAgICBybmQgPSAwLjU7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICAvLyBhZnRlciA5OSUsIGRvbid0IGluY3JlbWVudDpcbiAgICAgICAgcm5kID0gMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gcm5kICsgc3RhdDtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: ngx-loading-bar-core.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { LoadingBarModule, LoadingBarComponent, LoadingBarService } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLWNvcmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJuZ3gtbG9hZGluZy1iYXItY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHlFQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLWNvcmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJuZ3gtbG9hZGluZy1iYXItY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
@@ -1,9 +0,4 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LoadingBarModule } from './core.module'; | ||
export { LoadingBarComponent } from './loading-bar.component'; | ||
export { LoadingBarService } from './loading-bar.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBMb2FkaW5nQmFyTW9kdWxlIH0gZnJvbSAnLi9jb3JlLm1vZHVsZSc7XG5leHBvcnQgeyBMb2FkaW5nQmFyQ29tcG9uZW50IH0gZnJvbSAnLi9sb2FkaW5nLWJhci5jb21wb25lbnQnO1xuZXhwb3J0IHsgTG9hZGluZ0JhclNlcnZpY2UgfSBmcm9tICcuL2xvYWRpbmctYmFyLnNlcnZpY2UnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgTG9hZGluZ0Jhck1vZHVsZSB9IGZyb20gJy4vY29yZS5tb2R1bGUnO1xuZXhwb3J0IHsgTG9hZGluZ0JhckNvbXBvbmVudCB9IGZyb20gJy4vbG9hZGluZy1iYXIuY29tcG9uZW50JztcbmV4cG9ydCB7IExvYWRpbmdCYXJTZXJ2aWNlIH0gZnJvbSAnLi9sb2FkaW5nLWJhci5zZXJ2aWNlJztcbiJdfQ== |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: core.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate } from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -12,12 +8,12 @@ import { CommonModule } from '@angular/common'; | ||
} | ||
LoadingBarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
},] } | ||
]; | ||
LoadingBarModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
}) | ||
], LoadingBarModule); | ||
return LoadingBarModule; | ||
}()); | ||
export { LoadingBarModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJjb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTlEO0lBQUE7SUFLK0IsQ0FBQzs7Z0JBTC9CLFFBQVEsU0FBQztvQkFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLFlBQVksRUFBRSxDQUFDLG1CQUFtQixDQUFDO29CQUNuQyxPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztpQkFDL0I7O0lBQzhCLHVCQUFDO0NBQUEsQUFMaEMsSUFLZ0M7U0FBbkIsZ0JBQWdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7I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ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IExvYWRpbmdCYXJDb21wb25lbnQgfSBmcm9tICcuL2xvYWRpbmctYmFyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtMb2FkaW5nQmFyQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0xvYWRpbmdCYXJDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBMb2FkaW5nQmFyTW9kdWxlIHt9XG4iXX0= |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Component, Input, ViewEncapsulation } from '@angular/core'; | ||
@@ -16,11 +12,3 @@ import { LoadingBarService } from './loading-bar.service'; | ||
} | ||
/** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
LoadingBarComponent.prototype.ngOnChanges = /** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
function (changes) { | ||
LoadingBarComponent.prototype.ngOnChanges = function (changes) { | ||
if (changes.ref) { | ||
@@ -32,53 +20,53 @@ this.value$ = this.ref | ||
}; | ||
LoadingBarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarComponent.ctorParameters = function () { return [ | ||
{ type: LoadingBarService } | ||
]; }; | ||
LoadingBarComponent.propDecorators = { | ||
includeSpinner: [{ type: Input }], | ||
includeBar: [{ type: Input }], | ||
fixed: [{ type: Input }], | ||
color: [{ type: Input }], | ||
value: [{ type: Input }], | ||
ref: [{ type: Input }], | ||
height: [{ type: Input }], | ||
diameter: [{ type: Input }] | ||
}; | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeSpinner", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeBar", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "fixed", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "color", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Number) | ||
], LoadingBarComponent.prototype, "value", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "ref", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "height", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "diameter", void 0); | ||
LoadingBarComponent = __decorate([ | ||
Component({ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"] | ||
}), | ||
__metadata("design:paramtypes", [LoadingBarService]) | ||
], LoadingBarComponent); | ||
return LoadingBarComponent; | ||
}()); | ||
export { LoadingBarComponent }; | ||
if (false) { | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeSpinner; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeBar; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.fixed; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.color; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.ref; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.height; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.diameter; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value$; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.loader; | ||
} | ||
//# source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added by tsickle | ||
* Generated from: loading-bar.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { __decorate, __metadata, __param, __read, __spread } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -19,19 +14,7 @@ import { PLATFORM_ID, Inject } from '@angular/core'; | ||
this.streams$ = (new Subject()); | ||
this.value$ = this.streams$.pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return combineLatest.apply(void 0, tslib_1.__spread(s)); })), map((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
function (v) { return Math.max.apply(Math, tslib_1.__spread(v)); }))); | ||
this.value$ = this.streams$.pipe(switchMap(function (s) { return combineLatest.apply(void 0, __spread(s)); }), map(function (v) { return Math.max.apply(Math, __spread(v)); })); | ||
} | ||
Object.defineProperty(LoadingBarService.prototype, "progress$", { | ||
/** @deprecated use `value$` instead. */ | ||
get: /** | ||
* @deprecated use `value$` instead. | ||
* @return {?} | ||
*/ | ||
function () { return this.value$; }, | ||
get: function () { return this.value$; }, | ||
enumerable: true, | ||
@@ -41,13 +24,3 @@ configurable: true | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.start = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarService.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -57,54 +30,10 @@ this.useRef().start(initialValue); | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.set = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().set(value); }; | ||
LoadingBarService.prototype.set = function (value) { this.useRef().set(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.increment = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().increment(value); }; | ||
LoadingBarService.prototype.increment = function (value) { this.useRef().increment(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.complete = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().complete(); }; | ||
LoadingBarService.prototype.complete = function () { this.useRef().complete(); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.stop = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().stop(); }; | ||
/** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.useRef = /** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
LoadingBarService.prototype.stop = function () { this.useRef().stop(); }; | ||
LoadingBarService.prototype.useRef = function (id) { | ||
var _this = this; | ||
@@ -115,7 +44,3 @@ if (id === void 0) { id = 'default'; } | ||
this.streams$.next(Object.keys(this.refs) | ||
.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.refs[s].value$; }))); | ||
.map(function (s) { return _this.refs[s].value$; })); | ||
if (!isPlatformBrowser(this.platformId)) { | ||
@@ -127,32 +52,14 @@ this.refs[id].disable(); | ||
}; | ||
LoadingBarService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarService.ctorParameters = function () { return [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; }; | ||
/** @nocollapse */ LoadingBarService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(i0.ɵɵinject(i0.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(i0.ɵɵinject(i0.PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(PLATFORM_ID)), | ||
__metadata("design:paramtypes", [Object]) | ||
], LoadingBarService); | ||
return LoadingBarService; | ||
}()); | ||
export { LoadingBarService }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.refs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.streams$; | ||
/** @type {?} */ | ||
LoadingBarService.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.platformId; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbImxvYWRpbmctYmFyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQkFBaU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yZWFtcyQubmV4dChcbiAgICAgICAgT2JqZWN0LmtleXModGhpcy5yZWZzKVxuICAgICAgICAubWFwKHMgPT4gdGhpcy5yZWZzW3NdLnZhbHVlJClcbiAgICAgICk7XG5cbiAgICAgIGlmICghaXNQbGF0Zm9ybUJyb3dzZXIodGhpcy5wbGF0Zm9ybUlkKSkge1xuICAgICAgICB0aGlzLnJlZnNbaWRdLmRpc2FibGUoKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5yZWZzW2lkXTtcbiAgfVxufVxuIl19 |
@@ -1,21 +0,4 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.state.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign } from "tslib"; | ||
import { Subject, timer, of } from 'rxjs'; | ||
import { map, switchMap, take, tap, startWith, shareReplay } from 'rxjs/operators'; | ||
/** | ||
* @record | ||
*/ | ||
function ILoadingBarState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.action; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.value; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.initialValue; | ||
} | ||
var LoadingBarState = /** @class */ (function () { | ||
@@ -32,17 +15,4 @@ function LoadingBarState() { | ||
this.stream$ = new Subject(); | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.timer$(s); })), startWith({ action: null, value: 0 }), shareReplay(), map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return s.value; }))); | ||
this.timer$ = (/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { | ||
/** @type {?} */ | ||
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.timer$ = function (s) { | ||
var state$ = of(s); | ||
@@ -54,8 +24,4 @@ switch (s.action) { | ||
if (_this.requests > 0) { | ||
state$ = timer(0, 250).pipe(map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return t === 0 | ||
? tslib_1.__assign({}, s, { value: _this.state.value || s.initialValue }) : tslib_1.__assign({}, s, { value: _this._increment() }); }))); | ||
state$ = timer(0, 250).pipe(map(function (t) { return t === 0 | ||
? __assign(__assign({}, s), { value: _this.state.value || s.initialValue }) : __assign(__assign({}, s), { value: _this._increment() }); })); | ||
} | ||
@@ -67,30 +33,10 @@ break; | ||
// Attempt to aggregate any start/complete calls within 500ms: | ||
state$ = s.value === 0 ? of(tslib_1.__assign({}, s)) : timer(0, 500).pipe(take(2), map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return ({ value: t === 0 ? 100 : 0 }); }))); | ||
state$ = s.value === 0 ? of(__assign({}, s)) : timer(0, 500).pipe(take(2), map(function (t) { return ({ value: t === 0 ? 100 : 0 }); })); | ||
break; | ||
} | ||
} | ||
return state$.pipe(map((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return (/** @type {?} */ ((tslib_1.__assign({}, next, { action: 'set' })))); })), tap((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return _this.next(next, false); }))); | ||
}); | ||
return state$.pipe(map(function (next) { return (__assign(__assign({}, next), { action: 'set' })); }), tap(function (next) { return _this.next(next, false); })); | ||
}; | ||
} | ||
/** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.start = /** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarState.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -102,65 +48,19 @@ if (this.disabled) { | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.stop = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.stop = function () { | ||
this.next({ action: 'stop' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.complete = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.complete = function () { | ||
this.next({ action: 'complete' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.disable = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.disable = function () { | ||
this.disabled = true; | ||
}; | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.set = /** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.set = function (value) { | ||
this.next({ action: 'set', value: value }); | ||
}; | ||
/** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.increment = /** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.increment = function (value) { | ||
if (value === void 0) { value = 0; } | ||
this.next({ action: 'increment', value: value }); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.next = /** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
function (state, emitEvent) { | ||
LoadingBarState.prototype.next = function (state, emitEvent) { | ||
if (emitEvent === void 0) { emitEvent = true; } | ||
@@ -186,4 +86,3 @@ switch (state.action) { | ||
} | ||
/** @type {?} */ | ||
var newState = tslib_1.__assign({}, this.state, { action: null }, state); | ||
var newState = __assign(__assign(__assign({}, this.state), { action: null }), state); | ||
this.state = newState; | ||
@@ -194,15 +93,4 @@ if (emitEvent) { | ||
}; | ||
/** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype._increment = /** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
function (rnd) { | ||
LoadingBarState.prototype._increment = function (rnd) { | ||
if (rnd === void 0) { rnd = 0; } | ||
/** @type {?} */ | ||
var stat = this.state.value; | ||
@@ -239,31 +127,2 @@ if (stat >= 99) { | ||
export { LoadingBarState }; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.state; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.requests; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.stream$; | ||
/** @type {?} */ | ||
LoadingBarState.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.timer$; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuc3RhdGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJsb2FkaW5nLWJhci5zdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDdEQsT0FBTyxFQUFFLEdBQUcsRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7QUFFbkYsK0JBSUM7OztJQUhDLGtDQUE0RDs7SUFDNUQsaUNBQWM7O0lBQ2Qsd0NBQXFCOztBQUd2QjtJQUFBO1FBQUEsaUJBMklDO1FBMUlTLFVBQUssR0FBcUI7WUFDa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xuICAgICAgICBybmQgPSAoTWF0aC5yYW5kb20oKSAqIDMpO1xuICAgICAgfSBlbHNlIGlmIChzdGF0ID49IDY1ICYmIHN0YXQgPCA5MCkge1xuICAgICAgICAvLyBpbmNyZW1lbnQgYmV0d2VlbiAwIC0gMiVcbiAgICAgICAgcm5kID0gKE1hdGgucmFuZG9tKCkgKiAyKTtcbiAgICAgIH0gZWxzZSBpZiAoc3RhdCA+PSA5MCAmJiBzdGF0IDwgOTkpIHtcbiAgICAgICAgLy8gZmluYWxseSwgaW5jcmVtZW50IGl0IC41ICVcbiAgICAgICAgcm5kID0gMC41O1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgLy8gYWZ0ZXIgOTklLCBkb24ndCBpbmNyZW1lbnQ6XG4gICAgICAgIHJuZCA9IDA7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHJuZCArIHN0YXQ7XG4gIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: ngx-loading-bar-core.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { LoadingBarModule, LoadingBarComponent, LoadingBarService } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLWNvcmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJuZ3gtbG9hZGluZy1iYXItY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHlFQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLWNvcmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWxvYWRpbmctYmFyL2NvcmUvIiwic291cmNlcyI6WyJuZ3gtbG9hZGluZy1iYXItY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
@@ -1,9 +0,4 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LoadingBarModule } from './core.module'; | ||
export { LoadingBarComponent } from './loading-bar.component'; | ||
export { LoadingBarService } from './loading-bar.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBMb2FkaW5nQmFyTW9kdWxlIH0gZnJvbSAnLi9jb3JlLm1vZHVsZSc7XG5leHBvcnQgeyBMb2FkaW5nQmFyQ29tcG9uZW50IH0gZnJvbSAnLi9sb2FkaW5nLWJhci5jb21wb25lbnQnO1xuZXhwb3J0IHsgTG9hZGluZ0JhclNlcnZpY2UgfSBmcm9tICcuL2xvYWRpbmctYmFyLnNlcnZpY2UnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvY29yZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgTG9hZGluZ0Jhck1vZHVsZSB9IGZyb20gJy4vY29yZS5tb2R1bGUnO1xuZXhwb3J0IHsgTG9hZGluZ0JhckNvbXBvbmVudCB9IGZyb20gJy4vbG9hZGluZy1iYXIuY29tcG9uZW50JztcbmV4cG9ydCB7IExvYWRpbmdCYXJTZXJ2aWNlIH0gZnJvbSAnLi9sb2FkaW5nLWJhci5zZXJ2aWNlJztcbiJdfQ== |
@@ -1,2 +0,3 @@ | ||
import { Injectable, Inject, PLATFORM_ID, ɵɵdefineInjectable, ɵɵinject, Component, ViewEncapsulation, Input, NgModule } from '@angular/core'; | ||
import { __decorate, __param, __metadata } from 'tslib'; | ||
import { Inject, PLATFORM_ID, ɵɵdefineInjectable, ɵɵinject, Injectable, Input, Component, ViewEncapsulation, NgModule } from '@angular/core'; | ||
import { isPlatformBrowser, CommonModule } from '@angular/common'; | ||
@@ -6,19 +7,2 @@ import { Subject, of, timer, combineLatest } from 'rxjs'; | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.state.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @record | ||
*/ | ||
function ILoadingBarState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.action; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.value; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.initialValue; | ||
} | ||
class LoadingBarState { | ||
@@ -34,17 +18,4 @@ constructor() { | ||
this.stream$ = new Subject(); | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
(s) => this.timer$(s))), startWith({ action: null, value: 0 }), shareReplay(), map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => s.value))); | ||
this.timer$ = (/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
(s) => { | ||
/** @type {?} */ | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((s) => this.timer$(s)), startWith({ action: null, value: 0 }), shareReplay(), map(s => s.value)); | ||
this.timer$ = (s) => { | ||
let state$ = of(s); | ||
@@ -56,8 +27,4 @@ switch (s.action) { | ||
if (this.requests > 0) { | ||
state$ = timer(0, 250).pipe(map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
t => t === 0 | ||
? Object.assign({}, s, { value: this.state.value || s.initialValue }) : Object.assign({}, s, { value: this._increment() })))); | ||
state$ = timer(0, 250).pipe(map(t => t === 0 | ||
? Object.assign(Object.assign({}, s), { value: this.state.value || s.initialValue }) : Object.assign(Object.assign({}, s), { value: this._increment() }))); | ||
} | ||
@@ -69,25 +36,9 @@ break; | ||
// Attempt to aggregate any start/complete calls within 500ms: | ||
state$ = s.value === 0 ? of(Object.assign({}, s)) : timer(0, 500).pipe(take(2), map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
t => ({ value: t === 0 ? 100 : 0 })))); | ||
state$ = s.value === 0 ? of(Object.assign({}, s)) : timer(0, 500).pipe(take(2), map(t => ({ value: t === 0 ? 100 : 0 }))); | ||
break; | ||
} | ||
} | ||
return state$.pipe(map((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
next => (/** @type {?} */ ((Object.assign({}, next, { action: 'set' })))))), tap((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
(next) => this.next(next, false)))); | ||
}); | ||
return state$.pipe(map(next => (Object.assign(Object.assign({}, next), { action: 'set' }))), tap((next) => this.next(next, false))); | ||
}; | ||
} | ||
/** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
start(initialValue = 2) { | ||
@@ -99,40 +50,17 @@ if (this.disabled) { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
stop() { | ||
this.next({ action: 'stop' }); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
complete() { | ||
this.next({ action: 'complete' }); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
disable() { | ||
this.disabled = true; | ||
} | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
set(value) { | ||
this.next({ action: 'set', value }); | ||
} | ||
/** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
increment(value = 0) { | ||
this.next({ action: 'increment', value }); | ||
} | ||
/** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
next(state, emitEvent = true) { | ||
@@ -158,4 +86,3 @@ switch (state.action) { | ||
} | ||
/** @type {?} */ | ||
const newState = Object.assign({}, this.state, { action: null }, state); | ||
const newState = Object.assign(Object.assign(Object.assign({}, this.state), { action: null }), state); | ||
this.state = newState; | ||
@@ -166,9 +93,3 @@ if (emitEvent) { | ||
} | ||
/** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
_increment(rnd = 0) { | ||
/** @type {?} */ | ||
const stat = this.state.value; | ||
@@ -203,41 +124,4 @@ if (stat >= 99) { | ||
} | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.state; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.requests; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.stream$; | ||
/** @type {?} */ | ||
LoadingBarState.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.timer$; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class LoadingBarService { | ||
/** | ||
* @param {?} platformId | ||
*/ | ||
let LoadingBarService = class LoadingBarService { | ||
constructor(platformId) { | ||
@@ -247,49 +131,16 @@ this.platformId = platformId; | ||
this.streams$ = (new Subject()); | ||
this.value$ = this.streams$.pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => combineLatest(...s))), map((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
v => Math.max(...v)))); | ||
this.value$ = this.streams$.pipe(switchMap(s => combineLatest(...s)), map(v => Math.max(...v))); | ||
} | ||
/** | ||
* @deprecated use `value$` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `value$` instead. */ | ||
get progress$() { return this.value$; } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
start(initialValue = 2) { this.useRef().start(initialValue); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
set(value) { this.useRef().set(value); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
increment(value) { this.useRef().increment(value); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
complete() { this.useRef().complete(); } | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
/** @deprecated use `useRef` instead. */ | ||
stop() { this.useRef().stop(); } | ||
/** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
useRef(id = 'default') { | ||
@@ -299,7 +150,3 @@ if (!this.refs[id]) { | ||
this.streams$.next(Object.keys(this.refs) | ||
.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
s => this.refs[s].value$))); | ||
.map(s => this.refs[s].value$)); | ||
if (!isPlatformBrowser(this.platformId)) { | ||
@@ -311,40 +158,14 @@ this.refs[id].disable(); | ||
} | ||
} | ||
LoadingBarService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
/** @nocollapse */ | ||
}; | ||
LoadingBarService.ctorParameters = () => [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
/** @nocollapse */ LoadingBarService.ngInjectableDef = ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(ɵɵinject(PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.refs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.streams$; | ||
/** @type {?} */ | ||
LoadingBarService.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.platformId; | ||
} | ||
LoadingBarService.ɵprov = ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(ɵɵinject(PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(PLATFORM_ID)), | ||
__metadata("design:paramtypes", [Object]) | ||
], LoadingBarService); | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class LoadingBarComponent { | ||
/** | ||
* @param {?} loader | ||
*/ | ||
let LoadingBarComponent = class LoadingBarComponent { | ||
constructor(loader) { | ||
@@ -357,6 +178,2 @@ this.loader = loader; | ||
} | ||
/** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
ngOnChanges(changes) { | ||
@@ -369,7 +186,42 @@ if (changes.ref) { | ||
} | ||
} | ||
LoadingBarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ngx-loading-bar', | ||
template: ` | ||
}; | ||
LoadingBarComponent.ctorParameters = () => [ | ||
{ type: LoadingBarService } | ||
]; | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeSpinner", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeBar", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "fixed", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "color", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Number) | ||
], LoadingBarComponent.prototype, "value", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "ref", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "height", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "diameter", void 0); | ||
LoadingBarComponent = __decorate([ | ||
Component({ | ||
selector: 'ngx-loading-bar', | ||
template: ` | ||
<ng-container *ngIf="(value != null ? value : value$|async) as progress"> | ||
@@ -386,75 +238,27 @@ <div id="loading-bar-spinner" *ngIf="includeSpinner" [style.color]="color"> | ||
`, | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarComponent.ctorParameters = () => [ | ||
{ type: LoadingBarService } | ||
]; | ||
LoadingBarComponent.propDecorators = { | ||
includeSpinner: [{ type: Input }], | ||
includeBar: [{ type: Input }], | ||
fixed: [{ type: Input }], | ||
color: [{ type: Input }], | ||
value: [{ type: Input }], | ||
ref: [{ type: Input }], | ||
height: [{ type: Input }], | ||
diameter: [{ type: Input }] | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"] | ||
}), | ||
__metadata("design:paramtypes", [LoadingBarService]) | ||
], LoadingBarComponent); | ||
let LoadingBarModule = class LoadingBarModule { | ||
}; | ||
if (false) { | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeSpinner; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeBar; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.fixed; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.color; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.ref; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.height; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.diameter; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value$; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.loader; | ||
} | ||
LoadingBarModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
}) | ||
], LoadingBarModule); | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: core.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
class LoadingBarModule { | ||
} | ||
LoadingBarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
},] } | ||
]; | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: ngx-loading-bar-core.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LoadingBarComponent, LoadingBarModule, LoadingBarService }; | ||
//# sourceMappingURL=ngx-loading-bar-core.js.map |
@@ -1,24 +0,7 @@ | ||
import { Injectable, Inject, PLATFORM_ID, ɵɵdefineInjectable, ɵɵinject, Component, ViewEncapsulation, Input, NgModule } from '@angular/core'; | ||
import { __assign, __spread, __decorate, __param, __metadata } from 'tslib'; | ||
import { Inject, PLATFORM_ID, ɵɵdefineInjectable, ɵɵinject, Injectable, Input, Component, ViewEncapsulation, NgModule } from '@angular/core'; | ||
import { isPlatformBrowser, CommonModule } from '@angular/common'; | ||
import { __assign, __spread } from 'tslib'; | ||
import { Subject, of, timer, combineLatest } from 'rxjs'; | ||
import { switchMap, startWith, shareReplay, map, take, tap } from 'rxjs/operators'; | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.state.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @record | ||
*/ | ||
function ILoadingBarState() { } | ||
if (false) { | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.action; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.value; | ||
/** @type {?} */ | ||
ILoadingBarState.prototype.initialValue; | ||
} | ||
var LoadingBarState = /** @class */ (function () { | ||
@@ -35,17 +18,4 @@ function LoadingBarState() { | ||
this.stream$ = new Subject(); | ||
this.value$ = this.stream$.asObservable().pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.timer$(s); })), startWith({ action: null, value: 0 }), shareReplay(), map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return s.value; }))); | ||
this.timer$ = (/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { | ||
/** @type {?} */ | ||
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.timer$ = function (s) { | ||
var state$ = of(s); | ||
@@ -57,8 +27,4 @@ switch (s.action) { | ||
if (_this.requests > 0) { | ||
state$ = timer(0, 250).pipe(map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return t === 0 | ||
? __assign({}, s, { value: _this.state.value || s.initialValue }) : __assign({}, s, { value: _this._increment() }); }))); | ||
state$ = timer(0, 250).pipe(map(function (t) { return t === 0 | ||
? __assign(__assign({}, s), { value: _this.state.value || s.initialValue }) : __assign(__assign({}, s), { value: _this._increment() }); })); | ||
} | ||
@@ -70,30 +36,10 @@ break; | ||
// Attempt to aggregate any start/complete calls within 500ms: | ||
state$ = s.value === 0 ? of(__assign({}, s)) : timer(0, 500).pipe(take(2), map((/** | ||
* @param {?} t | ||
* @return {?} | ||
*/ | ||
function (t) { return ({ value: t === 0 ? 100 : 0 }); }))); | ||
state$ = s.value === 0 ? of(__assign({}, s)) : timer(0, 500).pipe(take(2), map(function (t) { return ({ value: t === 0 ? 100 : 0 }); })); | ||
break; | ||
} | ||
} | ||
return state$.pipe(map((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return (/** @type {?} */ ((__assign({}, next, { action: 'set' })))); })), tap((/** | ||
* @param {?} next | ||
* @return {?} | ||
*/ | ||
function (next) { return _this.next(next, false); }))); | ||
}); | ||
return state$.pipe(map(function (next) { return (__assign(__assign({}, next), { action: 'set' })); }), tap(function (next) { return _this.next(next, false); })); | ||
}; | ||
} | ||
/** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.start = /** | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarState.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -105,65 +51,19 @@ if (this.disabled) { | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.stop = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.stop = function () { | ||
this.next({ action: 'stop' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.complete = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.complete = function () { | ||
this.next({ action: 'complete' }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.disable = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
LoadingBarState.prototype.disable = function () { | ||
this.disabled = true; | ||
}; | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.set = /** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.set = function (value) { | ||
this.next({ action: 'set', value: value }); | ||
}; | ||
/** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.increment = /** | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
LoadingBarState.prototype.increment = function (value) { | ||
if (value === void 0) { value = 0; } | ||
this.next({ action: 'increment', value: value }); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype.next = /** | ||
* @private | ||
* @param {?} state | ||
* @param {?=} emitEvent | ||
* @return {?} | ||
*/ | ||
function (state, emitEvent) { | ||
LoadingBarState.prototype.next = function (state, emitEvent) { | ||
if (emitEvent === void 0) { emitEvent = true; } | ||
@@ -189,4 +89,3 @@ switch (state.action) { | ||
} | ||
/** @type {?} */ | ||
var newState = __assign({}, this.state, { action: null }, state); | ||
var newState = __assign(__assign(__assign({}, this.state), { action: null }), state); | ||
this.state = newState; | ||
@@ -197,15 +96,4 @@ if (emitEvent) { | ||
}; | ||
/** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
LoadingBarState.prototype._increment = /** | ||
* @private | ||
* @param {?=} rnd | ||
* @return {?} | ||
*/ | ||
function (rnd) { | ||
LoadingBarState.prototype._increment = function (rnd) { | ||
if (rnd === void 0) { rnd = 0; } | ||
/** @type {?} */ | ||
var stat = this.state.value; | ||
@@ -241,37 +129,3 @@ if (stat >= 99) { | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.state; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.requests; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.stream$; | ||
/** @type {?} */ | ||
LoadingBarState.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarState.prototype.timer$; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarService = /** @class */ (function () { | ||
@@ -282,19 +136,7 @@ function LoadingBarService(platformId) { | ||
this.streams$ = (new Subject()); | ||
this.value$ = this.streams$.pipe(switchMap((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return combineLatest.apply(void 0, __spread(s)); })), map((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
function (v) { return Math.max.apply(Math, __spread(v)); }))); | ||
this.value$ = this.streams$.pipe(switchMap(function (s) { return combineLatest.apply(void 0, __spread(s)); }), map(function (v) { return Math.max.apply(Math, __spread(v)); })); | ||
} | ||
Object.defineProperty(LoadingBarService.prototype, "progress$", { | ||
/** @deprecated use `value$` instead. */ | ||
get: /** | ||
* @deprecated use `value$` instead. | ||
* @return {?} | ||
*/ | ||
function () { return this.value$; }, | ||
get: function () { return this.value$; }, | ||
enumerable: true, | ||
@@ -304,13 +146,3 @@ configurable: true | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.start = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} initialValue | ||
* @return {?} | ||
*/ | ||
function (initialValue) { | ||
LoadingBarService.prototype.start = function (initialValue) { | ||
if (initialValue === void 0) { initialValue = 2; } | ||
@@ -320,54 +152,10 @@ this.useRef().start(initialValue); | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.set = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().set(value); }; | ||
LoadingBarService.prototype.set = function (value) { this.useRef().set(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.increment = /** | ||
* @deprecated use `useRef` instead. | ||
* @param {?=} value | ||
* @return {?} | ||
*/ | ||
function (value) { this.useRef().increment(value); }; | ||
LoadingBarService.prototype.increment = function (value) { this.useRef().increment(value); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.complete = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().complete(); }; | ||
LoadingBarService.prototype.complete = function () { this.useRef().complete(); }; | ||
/** @deprecated use `useRef` instead. */ | ||
/** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.stop = /** | ||
* @deprecated use `useRef` instead. | ||
* @return {?} | ||
*/ | ||
function () { this.useRef().stop(); }; | ||
/** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
LoadingBarService.prototype.useRef = /** | ||
* @param {?=} id | ||
* @return {?} | ||
*/ | ||
function (id) { | ||
LoadingBarService.prototype.stop = function () { this.useRef().stop(); }; | ||
LoadingBarService.prototype.useRef = function (id) { | ||
var _this = this; | ||
@@ -378,7 +166,3 @@ if (id === void 0) { id = 'default'; } | ||
this.streams$.next(Object.keys(this.refs) | ||
.map((/** | ||
* @param {?} s | ||
* @return {?} | ||
*/ | ||
function (s) { return _this.refs[s].value$; }))); | ||
.map(function (s) { return _this.refs[s].value$; })); | ||
if (!isPlatformBrowser(this.platformId)) { | ||
@@ -390,37 +174,14 @@ this.refs[id].disable(); | ||
}; | ||
LoadingBarService.decorators = [ | ||
{ type: Injectable, args: [{ providedIn: 'root' },] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarService.ctorParameters = function () { return [ | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; }; | ||
/** @nocollapse */ LoadingBarService.ngInjectableDef = ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(ɵɵinject(PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService.ɵprov = ɵɵdefineInjectable({ factory: function LoadingBarService_Factory() { return new LoadingBarService(ɵɵinject(PLATFORM_ID)); }, token: LoadingBarService, providedIn: "root" }); | ||
LoadingBarService = __decorate([ | ||
Injectable({ providedIn: 'root' }), | ||
__param(0, Inject(PLATFORM_ID)), | ||
__metadata("design:paramtypes", [Object]) | ||
], LoadingBarService); | ||
return LoadingBarService; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.refs; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.streams$; | ||
/** @type {?} */ | ||
LoadingBarService.prototype.value$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LoadingBarService.prototype.platformId; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: loading-bar.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarComponent = /** @class */ (function () { | ||
@@ -434,11 +195,3 @@ function LoadingBarComponent(loader) { | ||
} | ||
/** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
LoadingBarComponent.prototype.ngOnChanges = /** | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
function (changes) { | ||
LoadingBarComponent.prototype.ngOnChanges = function (changes) { | ||
if (changes.ref) { | ||
@@ -450,68 +203,63 @@ this.value$ = this.ref | ||
}; | ||
LoadingBarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
LoadingBarComponent.ctorParameters = function () { return [ | ||
{ type: LoadingBarService } | ||
]; }; | ||
LoadingBarComponent.propDecorators = { | ||
includeSpinner: [{ type: Input }], | ||
includeBar: [{ type: Input }], | ||
fixed: [{ type: Input }], | ||
color: [{ type: Input }], | ||
value: [{ type: Input }], | ||
ref: [{ type: Input }], | ||
height: [{ type: Input }], | ||
diameter: [{ type: Input }] | ||
}; | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeSpinner", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "includeBar", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object) | ||
], LoadingBarComponent.prototype, "fixed", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "color", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Number) | ||
], LoadingBarComponent.prototype, "value", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "ref", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "height", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], LoadingBarComponent.prototype, "diameter", void 0); | ||
LoadingBarComponent = __decorate([ | ||
Component({ | ||
selector: 'ngx-loading-bar', | ||
template: "\n <ng-container *ngIf=\"(value != null ? value : value$|async) as progress\">\n <div id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ", | ||
preserveWhitespaces: false, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
host: { | ||
'[class.loading-bar-fixed]': 'fixed', | ||
}, | ||
styles: [":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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)}}"] | ||
}), | ||
__metadata("design:paramtypes", [LoadingBarService]) | ||
], LoadingBarComponent); | ||
return LoadingBarComponent; | ||
}()); | ||
if (false) { | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeSpinner; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.includeBar; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.fixed; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.color; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.ref; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.height; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.diameter; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.value$; | ||
/** @type {?} */ | ||
LoadingBarComponent.prototype.loader; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: core.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var LoadingBarModule = /** @class */ (function () { | ||
function LoadingBarModule() { | ||
} | ||
LoadingBarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
},] } | ||
]; | ||
LoadingBarModule = __decorate([ | ||
NgModule({ | ||
imports: [CommonModule], | ||
declarations: [LoadingBarComponent], | ||
exports: [LoadingBarComponent], | ||
}) | ||
], LoadingBarModule); | ||
return LoadingBarModule; | ||
@@ -521,14 +269,6 @@ }()); | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: ngx-loading-bar-core.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LoadingBarComponent, LoadingBarModule, LoadingBarService }; | ||
//# sourceMappingURL=ngx-loading-bar-core.js.map |
@@ -9,3 +9,3 @@ import { LoadingBarState } from './loading-bar.state'; | ||
/** @deprecated use `value$` instead. */ | ||
readonly progress$: Observable<number>; | ||
get progress$(): Observable<number>; | ||
constructor(platformId: Object); | ||
@@ -12,0 +12,0 @@ /** @deprecated use `useRef` instead. */ |
@@ -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 id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ","preserveWhitespaces":false,"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":18,"character":17},"member":"Emulated"},"host":{"[class.loading-bar-fixed]":"fixed","$quoted$":["[class.loading-bar-fixed]"]},"styles":[":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;-webkit-transition:350ms linear;transition:350ms linear;color:#29d}:host>div .bar{-webkit-transition:width 350ms;transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-webkit-keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]}]}],"members":{"includeSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"includeBar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"diameter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"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":19,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":19,"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":{"ngInjectableDef":{}}}},"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 id=\"loading-bar-spinner\" *ngIf=\"includeSpinner\" [style.color]=\"color\">\n <div [style.width]=\"diameter\" [style.height]=\"diameter\" class=\"spinner-icon\"></div>\n </div>\n <div id=\"loading-bar\" *ngIf=\"includeBar\" [style.color]=\"color\">\n <div class=\"bar\" [style.background]=\"color\" [style.height]=\"height\" [style.width]=\"progress + '%'\">\n <div class=\"peg\" [style.height]=\"height\"></div>\n </div>\n </div>\n </ng-container>\n ","preserveWhitespaces":false,"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":18,"character":17},"member":"Emulated"},"host":{"[class.loading-bar-fixed]":"fixed","$quoted$":["[class.loading-bar-fixed]"]},"styles":[":host{position:relative;display:block}:host.loading-bar-fixed>div .bar{position:fixed}:host.loading-bar-fixed>div#loading-bar-spinner{position:fixed;top:10px;left:10px}[dir=rtl] :host.loading-bar-fixed>div#loading-bar-spinner{right:10px;left:unset}:host.loading-bar-fixed>div .peg{display:block}:host>div{pointer-events:none;transition:350ms linear;color:#29d}:host>div .bar{transition:width 350ms;background:#29d;position:absolute;z-index:10002;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] :host>div .bar{right:0;left:unset}:host>div .peg{display:none;position:absolute;width:70px;right:0;top:0;height:2px;opacity:.45;box-shadow:1px 0 6px 1px;color:inherit;border-radius:100%}:host>div#loading-bar-spinner{display:block;position:absolute;z-index:10002;top:5px;left:0}:host>div#loading-bar-spinner .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}@-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":25,"character":3}}]}],"includeBar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"diameter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LoadingBarService"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"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":19,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":19,"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.0-alpha.0", | ||
"version": "5.0.0-alpha.1", | ||
"description": "Automatic page loading / progress bar for Angular", | ||
@@ -20,7 +20,5 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.7.1" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": ">=7.0.0", | ||
"@angular/common": ">=9.0.0", | ||
"tslib": "^1.7.1", | ||
"rxjs": ">=6.3.0" | ||
@@ -27,0 +25,0 @@ }, |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
222903
1604
- Removedtslib@^1.7.1