ngx-countdown
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = global || self, factory(global['ngx-countdown'] = {}, global.ng.core, global.ng.common)); | ||
}(this, function (exports, core, common) { 'use strict'; | ||
}(this, (function (exports, core, common) { 'use strict'; | ||
@@ -213,3 +213,4 @@ /*! ***************************************************************************** | ||
var CountdownTimer = /** @class */ (function () { | ||
function CountdownTimer() { | ||
function CountdownTimer(ngZone) { | ||
this.ngZone = ngZone; | ||
this.fns = []; | ||
@@ -220,2 +221,3 @@ this.commands = []; | ||
CountdownTimer.prototype.start = function () { | ||
var _this = this; | ||
if (this.ing === true) | ||
@@ -225,3 +227,5 @@ return; | ||
this.nextTime = +new Date(); | ||
this.process(); | ||
this.ngZone.runOutsideAngular(function () { | ||
_this.process(); | ||
}); | ||
}; | ||
@@ -279,4 +283,8 @@ CountdownTimer.prototype.process = function () { | ||
}; | ||
CountdownTimer.ctorParameters = function () { return [ | ||
{ type: core.NgZone } | ||
]; }; | ||
CountdownTimer = __decorate([ | ||
core.Injectable() | ||
core.Injectable(), | ||
__metadata("design:paramtypes", [core.NgZone]) | ||
], CountdownTimer); | ||
@@ -299,2 +307,5 @@ return CountdownTimer; | ||
} | ||
CountdownGlobalConfig.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] } | ||
]; }; | ||
CountdownGlobalConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(core.ɵɵinject(core.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" }); | ||
@@ -310,3 +321,3 @@ CountdownGlobalConfig = __decorate([ | ||
var CountdownComponent = /** @class */ (function () { | ||
function CountdownComponent(locale, timer, defCog, cdr) { | ||
function CountdownComponent(locale, timer, defCog, cdr, ngZone) { | ||
this.locale = locale; | ||
@@ -316,2 +327,3 @@ this.timer = timer; | ||
this.cdr = cdr; | ||
this.ngZone = ngZone; | ||
this.frequency = 1000; | ||
@@ -416,2 +428,3 @@ this._notify = {}; | ||
CountdownComponent.prototype.reflow = function (count, force) { | ||
var _this = this; | ||
if (count === void 0) { count = 0; } | ||
@@ -434,8 +447,12 @@ if (force === void 0) { force = false; } | ||
if (config.notify === 0 || _notify[value]) { | ||
this.callEvent('notify'); | ||
this.ngZone.run(function () { | ||
_this.callEvent('notify'); | ||
}); | ||
} | ||
if (value < 1) { | ||
this.status = exports.CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
this.ngZone.run(function () { | ||
_this.status = exports.CountdownStatus.done; | ||
_this.callEvent('done'); | ||
_this.destroy(); | ||
}); | ||
} | ||
@@ -470,2 +487,9 @@ }; | ||
}; | ||
CountdownComponent.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: core.ChangeDetectorRef }, | ||
{ type: core.NgZone } | ||
]; }; | ||
__decorate([ | ||
@@ -494,3 +518,4 @@ core.Input(), | ||
CountdownGlobalConfig, | ||
core.ChangeDetectorRef]) | ||
core.ChangeDetectorRef, | ||
core.NgZone]) | ||
], CountdownComponent); | ||
@@ -521,3 +546,3 @@ return CountdownComponent; | ||
})); | ||
}))); | ||
//# sourceMappingURL=ngx-countdown.umd.js.map |
@@ -1,2 +0,16 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-countdown",["exports","@angular/core","@angular/common"],e):e((t=t||self)["ngx-countdown"]={},t.ng.core,t.ng.common)}(this,function(t,e,n){"use strict";var o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,o){var i,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(s<3?i(r):s>3?i(e,n,r):i(e,n))||r);return s>3&&r&&Object.defineProperty(e,n,r),r}function r(t,e){return function(n,o){e(n,o,t)}}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}(o=t.CountdownStatus||(t.CountdownStatus={}))[o.ing=0]="ing",o[o.pause=1]="pause",o[o.stop=2]="stop",o[o.done=3]="done";var u=function(){function t(){this.fns=[],this.commands=[],this.ing=!1}return t.prototype.start=function(){!0!==this.ing&&(this.ing=!0,this.nextTime=+new Date,this.process())},t.prototype.process=function(){for(var t=this;this.commands.length;)this.commands.shift()();var e=+new Date-this.nextTime,n=1+Math.floor(e/100);e=100-e%100,this.nextTime+=100*n;for(var o=0,i=this.fns.length;o<i;o+=2){var s=this.fns[o+1];if(0===s)this.fns[o](n);else{s+=2*n-1;var r=Math.floor(s/20);r>0&&this.fns[o](r),this.fns[o+1]=s%20+1}}this.ing&&setTimeout(function(){return t.process()},e)},t.prototype.add=function(t,e){var n=this;return this.commands.push(function(){n.fns.push(t),n.fns.push(1e3===e?1:0),n.ing=!0}),this},t.prototype.remove=function(t){var e=this;return this.commands.push(function(){var n=e.fns.indexOf(t);-1!==n&&e.fns.splice(n,2),e.ing=e.fns.length>0}),this},t=s([e.Injectable()],t)}(),f=function(){function t(t){var e=this;this.locale=t,this.demand=!1,this.leftTime=0,this.format="HH:mm:ss",this.timezone="+0000",this.formatDate=function(t){var o=t.date,i=t.formatStr,s=t.timezone;return n.formatDate(new Date(o),i,e.locale,s||e.timezone||"+0000")}}return t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.LOCALE_ID))},token:t,providedIn:"root"}),t=s([e.Injectable({providedIn:"root"}),r(0,e.Inject(e.LOCALE_ID)),a("design:paramtypes",[String])],t)}(),c=function(){function n(n,o,i,s){this.locale=n,this.timer=o,this.defCog=i,this.cdr=s,this.frequency=1e3,this._notify={},this._left=0,this.status=t.CountdownStatus.ing,this.isDestroy=!1,this.i={},this.event=new e.EventEmitter}return Object.defineProperty(n.prototype,"left",{get:function(){return this._left},enumerable:!0,configurable:!0}),n.prototype.begin=function(){this.status=t.CountdownStatus.ing,this.callEvent("start")},n.prototype.restart=function(){this.status!==t.CountdownStatus.stop&&this.destroy(),this.init(),this.callEvent("restart")},n.prototype.stop=function(){this.status!==t.CountdownStatus.stop&&(this.status=t.CountdownStatus.stop,this.destroy(),this.callEvent("stop"))},n.prototype.pause=function(){this.status!==t.CountdownStatus.stop&&this.status!==t.CountdownStatus.pause&&(this.status=t.CountdownStatus.pause,this.callEvent("pause"))},n.prototype.resume=function(){this.status!==t.CountdownStatus.stop&&this.status===t.CountdownStatus.pause&&(this.status=t.CountdownStatus.ing,this.callEvent("resume"))},n.prototype.callEvent=function(t){this.event.emit({action:t,left:this._left,status:this.status,text:this.i.text})},n.prototype.init=function(){var e=this,n=this.locale,o=this.defCog,s=this.config=i({},new f(n),o,this.config),r=this.frequency=~s.format.indexOf("S")?100:1e3;this.status=s.demand?t.CountdownStatus.pause:t.CountdownStatus.ing,this.getLeft();var a=this.reflow;this.reflow=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),a.apply(e,[t,n])},Array.isArray(s.notify)&&s.notify.forEach(function(t){if(t<1)throw new Error("The notify config must be a positive integer.");t*=1e3,t-=t%r,e._notify[t]=!0}),this.timer.add(this.reflow,r).start(),this.reflow(0,!0)},n.prototype.destroy=function(){return this.timer.remove(this.reflow),this},n.prototype.reflow=function(e,n){if(void 0===e&&(e=0),void 0===n&&(n=!1),!this.isDestroy){var o=this.status,i=this.config,s=this._notify;if(n||o===t.CountdownStatus.ing){var r=this._left=this._left-this.frequency*e;this.i={value:r,text:i.formatDate({date:r,formatStr:i.format,timezone:i.timezone})},"function"==typeof i.prettyText&&(this.i.text=i.prettyText(this.i.text)),this.cdr.detectChanges(),(0===i.notify||s[r])&&this.callEvent("notify"),r<1&&(this.status=t.CountdownStatus.done,this.callEvent("done"),this.destroy())}}},n.prototype.getLeft=function(){var t=this.config,e=this.frequency,n=1e3*t.leftTime,o=t.stopTime;!n&&o&&(n=o-(new Date).getTime()),this._left=n-n%e},n.prototype.ngOnInit=function(){this.init(),this.config.demand||this.begin()},n.prototype.ngOnDestroy=function(){this.isDestroy=!0,this.destroy()},n.prototype.ngOnChanges=function(t){t.config.firstChange||this.restart()},s([e.Input(),a("design:type",Object)],n.prototype,"config",void 0),s([e.Input(),a("design:type",e.TemplateRef)],n.prototype,"render",void 0),s([e.Output(),a("design:type",Object)],n.prototype,"event",void 0),n=s([e.Component({selector:"countdown",template:'\n <ng-container *ngIf="!render">\n <span [innerHTML]="i.text"></span>\n </ng-container>\n <ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>\n ',host:{"[class.count-down]":"true"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}),r(0,e.Inject(e.LOCALE_ID)),a("design:paramtypes",[String,u,f,e.ChangeDetectorRef])],n)}(),h=function(){function t(){}return t=s([e.NgModule({imports:[n.CommonModule],providers:[u],declarations:[c],exports:[c]})],t)}();t.CountdownComponent=c,t.CountdownGlobalConfig=f,t.CountdownModule=h,t.CountdownTimer=u,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-countdown",["exports","@angular/core","@angular/common"],e):e((t=t||self)["ngx-countdown"]={},t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */var o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,o){var i,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(s<3?i(r):s>3?i(e,n,r):i(e,n))||r);return s>3&&r&&Object.defineProperty(e,n,r),r}function r(t,e){return function(n,o){e(n,o,t)}}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}(o=t.CountdownStatus||(t.CountdownStatus={}))[o.ing=0]="ing",o[o.pause=1]="pause",o[o.stop=2]="stop",o[o.done=3]="done";var u=function(){function t(t){this.ngZone=t,this.fns=[],this.commands=[],this.ing=!1}return t.prototype.start=function(){var t=this;!0!==this.ing&&(this.ing=!0,this.nextTime=+new Date,this.ngZone.runOutsideAngular((function(){t.process()})))},t.prototype.process=function(){for(var t=this;this.commands.length;)this.commands.shift()();var e=+new Date-this.nextTime,n=1+Math.floor(e/100);e=100-e%100,this.nextTime+=100*n;for(var o=0,i=this.fns.length;o<i;o+=2){var s=this.fns[o+1];if(0===s)this.fns[o](n);else{s+=2*n-1;var r=Math.floor(s/20);r>0&&this.fns[o](r),this.fns[o+1]=s%20+1}}this.ing&&setTimeout((function(){return t.process()}),e)},t.prototype.add=function(t,e){var n=this;return this.commands.push((function(){n.fns.push(t),n.fns.push(1e3===e?1:0),n.ing=!0})),this},t.prototype.remove=function(t){var e=this;return this.commands.push((function(){var n=e.fns.indexOf(t);-1!==n&&e.fns.splice(n,2),e.ing=e.fns.length>0})),this},t.ctorParameters=function(){return[{type:e.NgZone}]},t=s([e.Injectable(),a("design:paramtypes",[e.NgZone])],t)}(),f=function(){function t(t){var e=this;this.locale=t,this.demand=!1,this.leftTime=0,this.format="HH:mm:ss",this.timezone="+0000",this.formatDate=function(t){var o=t.date,i=t.formatStr,s=t.timezone;return n.formatDate(new Date(o),i,e.locale,s||e.timezone||"+0000")}}return t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.LOCALE_ID))},token:t,providedIn:"root"}),t=s([e.Injectable({providedIn:"root"}),r(0,e.Inject(e.LOCALE_ID)),a("design:paramtypes",[String])],t)}(),c=function(){function n(n,o,i,s,r){this.locale=n,this.timer=o,this.defCog=i,this.cdr=s,this.ngZone=r,this.frequency=1e3,this._notify={},this._left=0,this.status=t.CountdownStatus.ing,this.isDestroy=!1,this.i={},this.event=new e.EventEmitter}return Object.defineProperty(n.prototype,"left",{get:function(){return this._left},enumerable:!0,configurable:!0}),n.prototype.begin=function(){this.status=t.CountdownStatus.ing,this.callEvent("start")},n.prototype.restart=function(){this.status!==t.CountdownStatus.stop&&this.destroy(),this.init(),this.callEvent("restart")},n.prototype.stop=function(){this.status!==t.CountdownStatus.stop&&(this.status=t.CountdownStatus.stop,this.destroy(),this.callEvent("stop"))},n.prototype.pause=function(){this.status!==t.CountdownStatus.stop&&this.status!==t.CountdownStatus.pause&&(this.status=t.CountdownStatus.pause,this.callEvent("pause"))},n.prototype.resume=function(){this.status!==t.CountdownStatus.stop&&this.status===t.CountdownStatus.pause&&(this.status=t.CountdownStatus.ing,this.callEvent("resume"))},n.prototype.callEvent=function(t){this.event.emit({action:t,left:this._left,status:this.status,text:this.i.text})},n.prototype.init=function(){var e=this,n=this.locale,o=this.defCog,s=this.config=i({},new f(n),o,this.config),r=this.frequency=~s.format.indexOf("S")?100:1e3;this.status=s.demand?t.CountdownStatus.pause:t.CountdownStatus.ing,this.getLeft();var a=this.reflow;this.reflow=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),a.apply(e,[t,n])},Array.isArray(s.notify)&&s.notify.forEach((function(t){if(t<1)throw new Error("The notify config must be a positive integer.");t*=1e3,t-=t%r,e._notify[t]=!0})),this.timer.add(this.reflow,r).start(),this.reflow(0,!0)},n.prototype.destroy=function(){return this.timer.remove(this.reflow),this},n.prototype.reflow=function(e,n){var o=this;if(void 0===e&&(e=0),void 0===n&&(n=!1),!this.isDestroy){var i=this.status,s=this.config,r=this._notify;if(n||i===t.CountdownStatus.ing){var a=this._left=this._left-this.frequency*e;this.i={value:a,text:s.formatDate({date:a,formatStr:s.format,timezone:s.timezone})},"function"==typeof s.prettyText&&(this.i.text=s.prettyText(this.i.text)),this.cdr.detectChanges(),(0===s.notify||r[a])&&this.ngZone.run((function(){o.callEvent("notify")})),a<1&&this.ngZone.run((function(){o.status=t.CountdownStatus.done,o.callEvent("done"),o.destroy()}))}}},n.prototype.getLeft=function(){var t=this.config,e=this.frequency,n=1e3*t.leftTime,o=t.stopTime;!n&&o&&(n=o-(new Date).getTime()),this._left=n-n%e},n.prototype.ngOnInit=function(){this.init(),this.config.demand||this.begin()},n.prototype.ngOnDestroy=function(){this.isDestroy=!0,this.destroy()},n.prototype.ngOnChanges=function(t){t.config.firstChange||this.restart()},n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]},{type:u},{type:f},{type:e.ChangeDetectorRef},{type:e.NgZone}]},s([e.Input(),a("design:type",Object)],n.prototype,"config",void 0),s([e.Input(),a("design:type",e.TemplateRef)],n.prototype,"render",void 0),s([e.Output(),a("design:type",Object)],n.prototype,"event",void 0),n=s([e.Component({selector:"countdown",template:'\n <ng-container *ngIf="!render">\n <span [innerHTML]="i.text"></span>\n </ng-container>\n <ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>\n ',host:{"[class.count-down]":"true"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}),r(0,e.Inject(e.LOCALE_ID)),a("design:paramtypes",[String,u,f,e.ChangeDetectorRef,e.NgZone])],n)}(),h=function(){function t(){}return t=s([e.NgModule({imports:[n.CommonModule],providers:[u],declarations:[c],exports:[c]})],t)}();t.CountdownComponent=c,t.CountdownGlobalConfig=f,t.CountdownModule=h,t.CountdownTimer=u,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-countdown.umd.min.js.map |
@@ -1,2 +0,2 @@ | ||
import { OnChanges, SimpleChanges, OnDestroy, EventEmitter, OnInit, SimpleChange, ChangeDetectorRef, TemplateRef } from '@angular/core'; | ||
import { OnChanges, SimpleChanges, OnDestroy, EventEmitter, OnInit, SimpleChange, ChangeDetectorRef, TemplateRef, NgZone } from '@angular/core'; | ||
import { CountdownConfig, CountdownEvent, CountdownItem } from './interfaces'; | ||
@@ -10,2 +10,3 @@ import { CountdownTimer } from './countdown.timer'; | ||
private cdr; | ||
private ngZone; | ||
private frequency; | ||
@@ -20,3 +21,3 @@ private _notify; | ||
readonly event: EventEmitter<CountdownEvent>; | ||
constructor(locale: string, timer: CountdownTimer, defCog: CountdownGlobalConfig, cdr: ChangeDetectorRef); | ||
constructor(locale: string, timer: CountdownTimer, defCog: CountdownGlobalConfig, cdr: ChangeDetectorRef, ngZone: NgZone); | ||
readonly left: number; | ||
@@ -23,0 +24,0 @@ /** |
@@ -0,2 +1,4 @@ | ||
import { NgZone } from '@angular/core'; | ||
export declare class CountdownTimer { | ||
private ngZone; | ||
private fns; | ||
@@ -6,2 +8,3 @@ private commands; | ||
private ing; | ||
constructor(ngZone: NgZone); | ||
start(): void; | ||
@@ -8,0 +11,0 @@ private process; |
import * as tslib_1 from "tslib"; | ||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, } from '@angular/core'; | ||
import { Component, Input, OnChanges, SimpleChanges, OnDestroy, Output, EventEmitter, OnInit, SimpleChange, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, NgZone, } from '@angular/core'; | ||
import { CountdownStatus } from './interfaces'; | ||
@@ -7,3 +7,3 @@ import { CountdownTimer } from './countdown.timer'; | ||
let CountdownComponent = class CountdownComponent { | ||
constructor(locale, timer, defCog, cdr) { | ||
constructor(locale, timer, defCog, cdr, ngZone) { | ||
this.locale = locale; | ||
@@ -13,2 +13,3 @@ this.timer = timer; | ||
this.cdr = cdr; | ||
this.ngZone = ngZone; | ||
this.frequency = 1000; | ||
@@ -119,8 +120,12 @@ this._notify = {}; | ||
if (config.notify === 0 || _notify[value]) { | ||
this.callEvent('notify'); | ||
this.ngZone.run(() => { | ||
this.callEvent('notify'); | ||
}); | ||
} | ||
if (value < 1) { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
this.ngZone.run(() => { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
}); | ||
} | ||
@@ -156,2 +161,9 @@ } | ||
}; | ||
CountdownComponent.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; | ||
tslib_1.__decorate([ | ||
@@ -185,5 +197,6 @@ Input(), | ||
CountdownGlobalConfig, | ||
ChangeDetectorRef]) | ||
ChangeDetectorRef, | ||
NgZone]) | ||
], CountdownComponent); | ||
export { CountdownComponent }; | ||
//# sourceMapping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gICB0aGlzLmlzRGVzdHJveSA9IHRydWU7XG4gICAgdGhpcy5kZXN0cm95KCk7XG4gIH1cblxuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiB7IFtQIGluIGtleW9mIHRoaXNdPzogU2ltcGxlQ2hhbmdlIH0gJiBTaW1wbGVDaGFuZ2VzKTogdm9pZCB7XG4gICAgaWYgKCFjaGFuZ2VzLmNvbmZpZy5maXJzdENoYW5nZSkge1xuICAgICAgdGhpcy5yZXN0YXJ0KCk7XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -18,2 +18,5 @@ import * as tslib_1 from "tslib"; | ||
}; | ||
CountdownGlobalConfig.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } | ||
]; | ||
CountdownGlobalConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0.ɵɵinject(i0.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" }); | ||
@@ -26,2 +29,2 @@ CountdownGlobalConfig = tslib_1.__decorate([ | ||
export { CountdownGlobalConfig }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24uY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzQ0FBc0M7QUFDdEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFJN0MsSUFBYSxxQkFBcUIsR0FBbEMsTUFBYSxxQkFBcUI7SUFDaEMsWUFBdUMsTUFBYztRQUFkLFdBQU0sR0FBTixNQUF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ZTogc3RyaW5nKSB7fVxuXG4gIGRlbWFuZD86IGJvb2xlYW4gPSBmYWxzZTtcblxuICBsZWZ0VGltZT86IG51bWJlciA9IDA7XG5cbiAgZm9ybWF0Pzogc3RyaW5nID0gJ0hIOm1tOnNzJztcblxuICB0aW1lem9uZT86IHN0cmluZyA9ICcrMDAwMCc7XG5cbiAgZm9ybWF0RGF0ZT86IENvdW50ZG93bkZvcm1hdEZuID0gKHsgZGF0ZSwgZm9ybWF0U3RyLCB0aW1lem9uZSB9KSA9PiB7XG4gICAgcmV0dXJuIGZvcm1hdERhdGUobmV3IERhdGUoZGF0ZSksIGZvcm1hdFN0ciwgdGhpcy5sb2NhbGUsIHRpbWV6b25lIHx8IHRoaXMudGltZXpvbmUgfHwgJyswMDAwJyk7XG4gIH07XG59XG4iXX0= |
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { Injectable, NgZone } from '@angular/core'; | ||
let CountdownTimer = class CountdownTimer { | ||
constructor() { | ||
constructor(ngZone) { | ||
this.ngZone = ngZone; | ||
this.fns = []; | ||
@@ -14,3 +15,5 @@ this.commands = []; | ||
this.nextTime = +new Date(); | ||
this.process(); | ||
this.ngZone.runOutsideAngular(() => { | ||
this.process(); | ||
}); | ||
} | ||
@@ -66,6 +69,10 @@ process() { | ||
}; | ||
CountdownTimer.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
CountdownTimer = tslib_1.__decorate([ | ||
Injectable() | ||
Injectable(), | ||
tslib_1.__metadata("design:paramtypes", [NgZone]) | ||
], CountdownTimer); | ||
export { CountdownTimer }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLnRpbWVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNvdW50ZG93bi8iLCJzb3VyY2VzIjpbImNvdW50ZG93bi50aW1lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyx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ICs9IDIgKiBjb3VudCAtIDE7XG5cbiAgICAgICAgY29uc3Qgc3RlcCA9IE1hdGguZmxvb3IoZnJlcXVlbmN5IC8gMjApO1xuICAgICAgICBpZiAoc3RlcCA+IDApIHtcbiAgICAgICAgICAodGhpcy5mbnNbaV0gYXMgKGNvdW50OiBudW1iZXIpID0+IHZvaWQpKHN0ZXApO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8g5oqK5pyr5L2N6L+Y5Y6f5oiQMVxuICAgICAgICB0aGlzLmZuc1tpICsgMV0gPSAoZnJlcXVlbmN5ICUgMjApICsgMTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoIXRoaXMuaW5nKSByZXR1cm47XG5cbiAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMucHJvY2VzcygpLCBkaWZmKTtcbiAgfVxuXG4gIGFkZChmbjogKCkgPT4gdm9pZCwgZnJlcXVlbmN5OiBudW1iZXIpOiB0aGlzIHtcbiAgICB0aGlzLmNvbW1hbmRzLnB1c2goKCkgPT4ge1xuICAgICAgdGhpcy5mbnMucHVzaChmbik7XG4gICAgICB0aGlzLmZucy5wdXNoKGZyZXF1ZW5jeSA9PT0gMTAwMCA/IDEgOiAwKTtcbiAgICAgIHRoaXMuaW5nID0gdHJ1ZTtcbiAgICB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIHJlbW92ZShmbjogKCkgPT4gdm9pZCk6IHRoaXMge1xuICAgIHRoaXMuY29tbWFuZHMucHVzaCgoKSA9PiB7XG4gICAgICBjb25zdCBpID0gdGhpcy5mbnMuaW5kZXhPZihmbik7XG4gICAgICBpZiAoaSAhPT0gLTEpIHtcbiAgICAgICAgdGhpcy5mbnMuc3BsaWNlKGksIDIpO1xuICAgICAgfVxuICAgICAgdGhpcy5pbmcgPSB0aGlzLmZucy5sZW5ndGggPiAwO1xuICAgIH0pO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json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Zm5zLnB1c2goZm4pO1xuICAgICAgdGhpcy5mbnMucHVzaChmcmVxdWVuY3kgPT09IDEwMDAgPyAxIDogMCk7XG4gICAgICB0aGlzLmluZyA9IHRydWU7XG4gICAgfSk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cblxuICByZW1vdmUoZm46ICgpID0+IHZvaWQpOiB0aGlzIHtcbiAgICB0aGlzLmNvbW1hbmRzLnB1c2goKCkgPT4ge1xuICAgICAgY29uc3QgaSA9IHRoaXMuZm5zLmluZGV4T2YoZm4pO1xuICAgICAgaWYgKGkgIT09IC0xKSB7XG4gICAgICAgIHRoaXMuZm5zLnNwbGljZShpLCAyKTtcbiAgICAgIH1cbiAgICAgIHRoaXMuaW5nID0gdGhpcy5mbnMubGVuZ3RoID4gMDtcbiAgICB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxufVxuIl19 |
import * as tslib_1 from "tslib"; | ||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, } from '@angular/core'; | ||
import { Component, Input, OnChanges, SimpleChanges, OnDestroy, Output, EventEmitter, OnInit, SimpleChange, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, NgZone, } from '@angular/core'; | ||
import { CountdownStatus } from './interfaces'; | ||
@@ -7,3 +7,3 @@ import { CountdownTimer } from './countdown.timer'; | ||
var CountdownComponent = /** @class */ (function () { | ||
function CountdownComponent(locale, timer, defCog, cdr) { | ||
function CountdownComponent(locale, timer, defCog, cdr, ngZone) { | ||
this.locale = locale; | ||
@@ -13,2 +13,3 @@ this.timer = timer; | ||
this.cdr = cdr; | ||
this.ngZone = ngZone; | ||
this.frequency = 1000; | ||
@@ -113,2 +114,3 @@ this._notify = {}; | ||
CountdownComponent.prototype.reflow = function (count, force) { | ||
var _this = this; | ||
if (count === void 0) { count = 0; } | ||
@@ -131,8 +133,12 @@ if (force === void 0) { force = false; } | ||
if (config.notify === 0 || _notify[value]) { | ||
this.callEvent('notify'); | ||
this.ngZone.run(function () { | ||
_this.callEvent('notify'); | ||
}); | ||
} | ||
if (value < 1) { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
this.ngZone.run(function () { | ||
_this.status = CountdownStatus.done; | ||
_this.callEvent('done'); | ||
_this.destroy(); | ||
}); | ||
} | ||
@@ -167,2 +173,9 @@ }; | ||
}; | ||
CountdownComponent.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; }; | ||
tslib_1.__decorate([ | ||
@@ -191,3 +204,4 @@ Input(), | ||
CountdownGlobalConfig, | ||
ChangeDetectorRef]) | ||
ChangeDetectorRef, | ||
NgZone]) | ||
], CountdownComponent); | ||
@@ -197,2 +211,2 @@ return CountdownComponent; | ||
export { CountdownComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFJTCxNQUFNLEVBQ04sWUFBWSxFQUdaLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsRUFDakIsV0FBVyxHQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBbUIsZUFBZSxFQUF1RCxNQUFNLGNBQWMsQ0FBQztBQUNySCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQ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uZ2VzKGNoYW5nZXM6IHsgW1AgaW4ga2V5b2YgdGhpc10/OiBTaW1wbGVDaGFuZ2UgfSAmIFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICBpZiAoIWNoYW5nZXMuY29uZmlnLmZpcnN0Q2hhbmdlKSB7XG4gICAgICB0aGlzLnJlc3RhcnQoKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -19,2 +19,5 @@ import * as tslib_1 from "tslib"; | ||
} | ||
CountdownGlobalConfig.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } | ||
]; }; | ||
CountdownGlobalConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0.ɵɵinject(i0.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" }); | ||
@@ -29,2 +32,2 @@ CountdownGlobalConfig = tslib_1.__decorate([ | ||
export { CountdownGlobalConfig }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24uY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzQ0FBc0M7QUFDdEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFJN0M7SUFDRSwrQkFBdUMsTUFBYztRQUFyRCxpQkFBeUQ7UUFBbEIsV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUVyRCxXQUFNLEdBQWEsS0FBSyxDQUFDO1FBRXpCLGFBQVEsR0FBWSxDQUFDLENBQUM7UUFFdEIsV0F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FRpbWU/OiBudW1iZXIgPSAwO1xuXG4gIGZvcm1hdD86IHN0cmluZyA9ICdISDptbTpzcyc7XG5cbiAgdGltZXpvbmU/OiBzdHJpbmcgPSAnKzAwMDAnO1xuXG4gIGZvcm1hdERhdGU/OiBDb3VudGRvd25Gb3JtYXRGbiA9ICh7IGRhdGUsIGZvcm1hdFN0ciwgdGltZXpvbmUgfSkgPT4ge1xuICAgIHJldHVybiBmb3JtYXREYXRlKG5ldyBEYXRlKGRhdGUpLCBmb3JtYXRTdHIsIHRoaXMubG9jYWxlLCB0aW1lem9uZSB8fCB0aGlzLnRpbWV6b25lIHx8ICcrMDAwMCcpO1xuICB9O1xufVxuIl19 |
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { Injectable, NgZone } from '@angular/core'; | ||
var CountdownTimer = /** @class */ (function () { | ||
function CountdownTimer() { | ||
function CountdownTimer(ngZone) { | ||
this.ngZone = ngZone; | ||
this.fns = []; | ||
@@ -10,2 +11,3 @@ this.commands = []; | ||
CountdownTimer.prototype.start = function () { | ||
var _this = this; | ||
if (this.ing === true) | ||
@@ -15,3 +17,5 @@ return; | ||
this.nextTime = +new Date(); | ||
this.process(); | ||
this.ngZone.runOutsideAngular(function () { | ||
_this.process(); | ||
}); | ||
}; | ||
@@ -69,4 +73,8 @@ CountdownTimer.prototype.process = function () { | ||
}; | ||
CountdownTimer.ctorParameters = function () { return [ | ||
{ type: NgZone } | ||
]; }; | ||
CountdownTimer = tslib_1.__decorate([ | ||
Injectable() | ||
Injectable(), | ||
tslib_1.__metadata("design:paramtypes", [NgZone]) | ||
], CountdownTimer); | ||
@@ -76,2 +84,2 @@ return CountdownTimer; | ||
export { CountdownTimer }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLnRpbWVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNvdW50ZG93bi8iLCJzb3VyY2VzIjpbImNvdW50Z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pID0+IHRoaXMucHJvY2VzcygpLCBkaWZmKTtcbiAgfVxuXG4gIGFkZChmbjogKCkgPT4gdm9pZCwgZnJlcXVlbmN5OiBudW1iZXIpOiB0aGlzIHtcbiAgICB0aGlzLmNvbW1hbmRzLnB1c2goKCkgPT4ge1xuICAgICAgdGhpcy5mbnMucHVzaChmbik7XG4gICAgICB0aGlzLmZucy5wdXNoKGZyZXF1ZW5jeSA9PT0gMTAwMCA/IDEgOiAwKTtcbiAgICAgIHRoaXMuaW5nID0gdHJ1ZTtcbiAgICB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIHJlbW92ZShmbjogKCkgPT4gdm9pZCk6IHRoaXMge1xuICAgIHRoaXMuY29tbWFuZHMucHVzaCgoKSA9PiB7XG4gICAgICBjb25zdCBpID0gdGhpcy5mbnMuaW5kZXhPZihmbik7XG4gICAgICBpZiAoaSAhPT0gLTEpIHtcbiAgICAgICAgdGhpcy5mbnMuc3BsaWNlKGksIDIpO1xuICAgICAgfVxuICAgICAgdGhpcy5pbmcgPSB0aGlzLmZucy5sZW5ndGggPiAwO1xuICAgIH0pO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG4iXX0= |
@@ -1,3 +0,3 @@ | ||
import { __decorate, __param, __metadata } from 'tslib'; | ||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, LOCALE_ID, Inject, EventEmitter, Input, TemplateRef, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, NgModule } from '@angular/core'; | ||
import { __decorate, __metadata, __param } from 'tslib'; | ||
import { NgZone, Injectable, Inject, LOCALE_ID, ɵɵdefineInjectable, ɵɵinject, EventEmitter, ChangeDetectorRef, Input, TemplateRef, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core'; | ||
import { formatDate, CommonModule } from '@angular/common'; | ||
@@ -14,3 +14,4 @@ | ||
let CountdownTimer = class CountdownTimer { | ||
constructor() { | ||
constructor(ngZone) { | ||
this.ngZone = ngZone; | ||
this.fns = []; | ||
@@ -25,3 +26,5 @@ this.commands = []; | ||
this.nextTime = +new Date(); | ||
this.process(); | ||
this.ngZone.runOutsideAngular(() => { | ||
this.process(); | ||
}); | ||
} | ||
@@ -77,4 +80,8 @@ process() { | ||
}; | ||
CountdownTimer.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
CountdownTimer = __decorate([ | ||
Injectable() | ||
Injectable(), | ||
__metadata("design:paramtypes", [NgZone]) | ||
], CountdownTimer); | ||
@@ -94,2 +101,5 @@ | ||
}; | ||
CountdownGlobalConfig.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } | ||
]; | ||
CountdownGlobalConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(ɵɵinject(LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" }); | ||
@@ -103,3 +113,3 @@ CountdownGlobalConfig = __decorate([ | ||
let CountdownComponent = class CountdownComponent { | ||
constructor(locale, timer, defCog, cdr) { | ||
constructor(locale, timer, defCog, cdr, ngZone) { | ||
this.locale = locale; | ||
@@ -109,2 +119,3 @@ this.timer = timer; | ||
this.cdr = cdr; | ||
this.ngZone = ngZone; | ||
this.frequency = 1000; | ||
@@ -215,8 +226,12 @@ this._notify = {}; | ||
if (config.notify === 0 || _notify[value]) { | ||
this.callEvent('notify'); | ||
this.ngZone.run(() => { | ||
this.callEvent('notify'); | ||
}); | ||
} | ||
if (value < 1) { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
this.ngZone.run(() => { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
}); | ||
} | ||
@@ -252,2 +267,9 @@ } | ||
}; | ||
CountdownComponent.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; | ||
__decorate([ | ||
@@ -281,3 +303,4 @@ Input(), | ||
CountdownGlobalConfig, | ||
ChangeDetectorRef]) | ||
ChangeDetectorRef, | ||
NgZone]) | ||
], CountdownComponent); | ||
@@ -284,0 +307,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { __decorate, __param, __metadata, __assign } from 'tslib'; | ||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, LOCALE_ID, Inject, EventEmitter, Input, TemplateRef, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, NgModule } from '@angular/core'; | ||
import { __decorate, __metadata, __param, __assign } from 'tslib'; | ||
import { NgZone, Injectable, Inject, LOCALE_ID, ɵɵdefineInjectable, ɵɵinject, EventEmitter, ChangeDetectorRef, Input, TemplateRef, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core'; | ||
import { formatDate, CommonModule } from '@angular/common'; | ||
@@ -14,3 +14,4 @@ | ||
var CountdownTimer = /** @class */ (function () { | ||
function CountdownTimer() { | ||
function CountdownTimer(ngZone) { | ||
this.ngZone = ngZone; | ||
this.fns = []; | ||
@@ -21,2 +22,3 @@ this.commands = []; | ||
CountdownTimer.prototype.start = function () { | ||
var _this = this; | ||
if (this.ing === true) | ||
@@ -26,3 +28,5 @@ return; | ||
this.nextTime = +new Date(); | ||
this.process(); | ||
this.ngZone.runOutsideAngular(function () { | ||
_this.process(); | ||
}); | ||
}; | ||
@@ -80,4 +84,8 @@ CountdownTimer.prototype.process = function () { | ||
}; | ||
CountdownTimer.ctorParameters = function () { return [ | ||
{ type: NgZone } | ||
]; }; | ||
CountdownTimer = __decorate([ | ||
Injectable() | ||
Injectable(), | ||
__metadata("design:paramtypes", [NgZone]) | ||
], CountdownTimer); | ||
@@ -100,2 +108,5 @@ return CountdownTimer; | ||
} | ||
CountdownGlobalConfig.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } | ||
]; }; | ||
CountdownGlobalConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(ɵɵinject(LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" }); | ||
@@ -111,3 +122,3 @@ CountdownGlobalConfig = __decorate([ | ||
var CountdownComponent = /** @class */ (function () { | ||
function CountdownComponent(locale, timer, defCog, cdr) { | ||
function CountdownComponent(locale, timer, defCog, cdr, ngZone) { | ||
this.locale = locale; | ||
@@ -117,2 +128,3 @@ this.timer = timer; | ||
this.cdr = cdr; | ||
this.ngZone = ngZone; | ||
this.frequency = 1000; | ||
@@ -217,2 +229,3 @@ this._notify = {}; | ||
CountdownComponent.prototype.reflow = function (count, force) { | ||
var _this = this; | ||
if (count === void 0) { count = 0; } | ||
@@ -235,8 +248,12 @@ if (force === void 0) { force = false; } | ||
if (config.notify === 0 || _notify[value]) { | ||
this.callEvent('notify'); | ||
this.ngZone.run(function () { | ||
_this.callEvent('notify'); | ||
}); | ||
} | ||
if (value < 1) { | ||
this.status = CountdownStatus.done; | ||
this.callEvent('done'); | ||
this.destroy(); | ||
this.ngZone.run(function () { | ||
_this.status = CountdownStatus.done; | ||
_this.callEvent('done'); | ||
_this.destroy(); | ||
}); | ||
} | ||
@@ -271,2 +288,9 @@ }; | ||
}; | ||
CountdownComponent.ctorParameters = function () { return [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; }; | ||
__decorate([ | ||
@@ -295,3 +319,4 @@ Input(), | ||
CountdownGlobalConfig, | ||
ChangeDetectorRef]) | ||
ChangeDetectorRef, | ||
NgZone]) | ||
], CountdownComponent); | ||
@@ -298,0 +323,0 @@ return CountdownComponent; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CountdownFormatFn":{"__symbolic":"interface"},"CountdownFormatFnOption":{"__symbolic":"interface"},"CountdownStatus":{"ing":0,"pause":1,"stop":2,"done":3},"CountdownConfig":{"__symbolic":"interface"},"CountdownEventAction":{"__symbolic":"interface"},"CountdownEvent":{"__symbolic":"interface"},"CountdownItem":{"__symbolic":"interface"},"CountdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"countdown","template":"\n <ng-container *ngIf=\"!render\">\n <span [innerHTML]=\"i.text\"></span>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"render; context: { $implicit: i }\"></ng-container>\n ","host":{"[class.count-down]":"true","$quoted$":["[class.count-down]"]},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":31,"character":17},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":32,"character":19},"member":"OnPush"}}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"render":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"event":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":47,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":47,"character":12}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"CountdownTimer"},{"__symbolic":"reference","name":"CountdownGlobalConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":50,"character":17}]}],"begin":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"resume":[{"__symbolic":"method"}],"callEvent":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reflow":[{"__symbolic":"method"}],"getLeft":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"CountdownTimer":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"start":[{"__symbolic":"method"}],"process":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}]}},"CountdownGlobalConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":7,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":7,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"ngInjectableDef":{}}},"CountdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"providers":[{"__symbolic":"reference","name":"CountdownTimer"}],"declarations":[{"__symbolic":"reference","name":"CountdownComponent"}],"exports":[{"__symbolic":"reference","name":"CountdownComponent"}]}]}],"members":{}}},"origins":{"CountdownFormatFn":"./interfaces","CountdownFormatFnOption":"./interfaces","CountdownStatus":"./interfaces","CountdownConfig":"./interfaces","CountdownEventAction":"./interfaces","CountdownEvent":"./interfaces","CountdownItem":"./interfaces","CountdownComponent":"./countdown.component","CountdownTimer":"./countdown.timer","CountdownGlobalConfig":"./countdown.config","CountdownModule":"./countdown.module"},"importAs":"ngx-countdown"} | ||
{"__symbolic":"module","version":4,"metadata":{"CountdownFormatFn":{"__symbolic":"interface"},"CountdownFormatFnOption":{"__symbolic":"interface"},"CountdownStatus":{"ing":0,"pause":1,"stop":2,"done":3},"CountdownConfig":{"__symbolic":"interface"},"CountdownEventAction":{"__symbolic":"interface"},"CountdownEvent":{"__symbolic":"interface"},"CountdownItem":{"__symbolic":"interface"},"CountdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"countdown","template":"\n <ng-container *ngIf=\"!render\">\n <span [innerHTML]=\"i.text\"></span>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"render; context: { $implicit: i }\"></ng-container>\n ","host":{"[class.count-down]":"true","$quoted$":["[class.count-down]"]},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":32,"character":17},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":33,"character":19},"member":"OnPush"}}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"render":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"event":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":48,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":48,"character":12}]}],null,null,null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"CountdownTimer"},{"__symbolic":"reference","name":"CountdownGlobalConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":51,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":20}]}],"begin":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"resume":[{"__symbolic":"method"}],"callEvent":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reflow":[{"__symbolic":"method"}],"getLeft":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"CountdownTimer":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":9,"character":30}]}],"start":[{"__symbolic":"method"}],"process":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}]}},"CountdownGlobalConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":7,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":7,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"ngInjectableDef":{}}},"CountdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"providers":[{"__symbolic":"reference","name":"CountdownTimer"}],"declarations":[{"__symbolic":"reference","name":"CountdownComponent"}],"exports":[{"__symbolic":"reference","name":"CountdownComponent"}]}]}],"members":{}}},"origins":{"CountdownFormatFn":"./interfaces","CountdownFormatFnOption":"./interfaces","CountdownStatus":"./interfaces","CountdownConfig":"./interfaces","CountdownEventAction":"./interfaces","CountdownEvent":"./interfaces","CountdownItem":"./interfaces","CountdownComponent":"./countdown.component","CountdownTimer":"./countdown.timer","CountdownGlobalConfig":"./countdown.config","CountdownModule":"./countdown.module"},"importAs":"ngx-countdown"} |
{ | ||
"name": "ngx-countdown", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"description": "Simple, easy and performance countdown for angular", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
261526
2006