ngx-countdown
Advanced tools
Comparing version 11.0.2 to 11.0.3
@@ -132,2 +132,15 @@ (function (global, factory) { | ||
} | ||
Object.defineProperty(CountdownComponent.prototype, "config", { | ||
get: function () { | ||
return this._config; | ||
}, | ||
set: function (i) { | ||
if (i.notify != null && !Array.isArray(i.notify) && i.notify > 0) { | ||
i.notify = [i.notify]; | ||
} | ||
this._config = i; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -134,0 +147,0 @@ * Start countdown, you must manually call when `demand: false` |
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-countdown",["exports","@angular/core","@angular/common"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-countdown"]={},t.ng.core,t.ng.common)}(this,(function(t,n,e){"use strict";var o;(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 s=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 n=+new Date-this.nextTime,e=1+Math.floor(n/100);n=100-n%100,this.nextTime+=100*e;for(var o=0,s=this.fns.length;o<s;o+=2){var i=this.fns[o+1];if(0===i)this.fns[o](e);else{i+=2*e-1;var r=Math.floor(i/20);r>0&&this.fns[o](r),this.fns[o+1]=i%20+1}}this.ing&&setTimeout((function(){return t.process()}),n)},t.prototype.add=function(t,n){var e=this;return this.commands.push((function(){e.fns.push(t),e.fns.push(1e3===n?1:0),e.ing=!0})),this},t.prototype.remove=function(t){var n=this;return this.commands.push((function(){var e=n.fns.indexOf(t);-1!==e&&n.fns.splice(e,2),n.ing=n.fns.length>0})),this},t}();s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[{type:n.NgZone}]};var i=function(t){var n=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,s=t.formatStr,i=t.timezone;return e.formatDate(new Date(o),s,n.locale,i||n.timezone||"+0000")}};i.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new i(n.ɵɵinject(n.LOCALE_ID))},token:i,providedIn:"root"}),i.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],i.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]};var r=function(){function e(e,o,s,i,r){this.locale=e,this.timer=o,this.defCog=s,this.cdr=i,this.ngZone=r,this.frequency=1e3,this._notify={},this.status=t.CountdownStatus.ing,this.isDestroy=!1,this.i={},this.left=0,this.event=new n.EventEmitter}return e.prototype.begin=function(){this.status=t.CountdownStatus.ing,this.callEvent("start")},e.prototype.restart=function(){this.status!==t.CountdownStatus.stop&&this.destroy(),this.init(),this.callEvent("restart")},e.prototype.stop=function(){this.status!==t.CountdownStatus.stop&&(this.status=t.CountdownStatus.stop,this.destroy(),this.callEvent("stop"))},e.prototype.pause=function(){this.status!==t.CountdownStatus.stop&&this.status!==t.CountdownStatus.pause&&(this.status=t.CountdownStatus.pause,this.callEvent("pause"))},e.prototype.resume=function(){this.status!==t.CountdownStatus.stop&&this.status===t.CountdownStatus.pause&&(this.status=t.CountdownStatus.ing,this.callEvent("resume"))},e.prototype.callEvent=function(t){this.event.emit({action:t,left:this.left,status:this.status,text:this.i.text})},e.prototype.init=function(){var n=this,e=this.locale,o=this.defCog,s=this.config=Object.assign(Object.assign(Object.assign({},new i(e)),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,e){return void 0===t&&(t=0),void 0===e&&(e=!1),a.apply(n,[t,e])},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,n._notify[t]=!0})),this.timer.add(this.reflow,r).start(),this.reflow(0,!0)},e.prototype.destroy=function(){return this.timer.remove(this.reflow),this},e.prototype.reflow=function(n,e){var o=this;if(void 0===n&&(n=0),void 0===e&&(e=!1),!this.isDestroy){var s=this,i=s.status,r=s.config,a=s._notify;if(e||i===t.CountdownStatus.ing){var u=this.left=this.left-this.frequency*n;u<1&&(u=0),this.i={value:u,text:r.formatDate({date:u,formatStr:r.format,timezone:r.timezone})},"function"==typeof r.prettyText&&(this.i.text=r.prettyText(this.i.text)),this.cdr.detectChanges(),(0===r.notify||a[u])&&this.ngZone.run((function(){o.callEvent("notify")})),0===u&&this.ngZone.run((function(){o.status=t.CountdownStatus.done,o.destroy(),o.callEvent("done")}))}}},e.prototype.getLeft=function(){var t=this.config,n=this.frequency,e=1e3*t.leftTime,o=t.stopTime;!e&&o&&(e=o-(new Date).getTime()),this.left=e-e%n},e.prototype.ngOnInit=function(){this.init(),this.config.demand||this.begin()},e.prototype.ngOnDestroy=function(){this.isDestroy=!0,this.destroy()},e.prototype.ngOnChanges=function(t){t.config.firstChange||this.restart()},e}();r.decorators=[{type:n.Component,args:[{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:n.ViewEncapsulation.None,changeDetection:n.ChangeDetectionStrategy.OnPush}]}],r.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]},{type:s},{type:i},{type:n.ChangeDetectorRef},{type:n.NgZone}]},r.propDecorators={config:[{type:n.Input}],render:[{type:n.Input}],event:[{type:n.Output}]};var a=function(){};a.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],providers:[s],declarations:[r],exports:[r]}]}],t.CountdownComponent=r,t.CountdownGlobalConfig=i,t.CountdownModule=a,t.CountdownTimer=s,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-countdown",["exports","@angular/core","@angular/common"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-countdown"]={},t.ng.core,t.ng.common)}(this,(function(t,n,e){"use strict";var o;(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 i=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 n=+new Date-this.nextTime,e=1+Math.floor(n/100);n=100-n%100,this.nextTime+=100*e;for(var o=0,i=this.fns.length;o<i;o+=2){var s=this.fns[o+1];if(0===s)this.fns[o](e);else{s+=2*e-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()}),n)},t.prototype.add=function(t,n){var e=this;return this.commands.push((function(){e.fns.push(t),e.fns.push(1e3===n?1:0),e.ing=!0})),this},t.prototype.remove=function(t){var n=this;return this.commands.push((function(){var e=n.fns.indexOf(t);-1!==e&&n.fns.splice(e,2),n.ing=n.fns.length>0})),this},t}();i.decorators=[{type:n.Injectable}],i.ctorParameters=function(){return[{type:n.NgZone}]};var s=function(t){var n=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 e.formatDate(new Date(o),i,n.locale,s||n.timezone||"+0000")}};s.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new s(n.ɵɵinject(n.LOCALE_ID))},token:s,providedIn:"root"}),s.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]};var r=function(){function e(e,o,i,s,r){this.locale=e,this.timer=o,this.defCog=i,this.cdr=s,this.ngZone=r,this.frequency=1e3,this._notify={},this.status=t.CountdownStatus.ing,this.isDestroy=!1,this.i={},this.left=0,this.event=new n.EventEmitter}return Object.defineProperty(e.prototype,"config",{get:function(){return this._config},set:function(t){null!=t.notify&&!Array.isArray(t.notify)&&t.notify>0&&(t.notify=[t.notify]),this._config=t},enumerable:!1,configurable:!0}),e.prototype.begin=function(){this.status=t.CountdownStatus.ing,this.callEvent("start")},e.prototype.restart=function(){this.status!==t.CountdownStatus.stop&&this.destroy(),this.init(),this.callEvent("restart")},e.prototype.stop=function(){this.status!==t.CountdownStatus.stop&&(this.status=t.CountdownStatus.stop,this.destroy(),this.callEvent("stop"))},e.prototype.pause=function(){this.status!==t.CountdownStatus.stop&&this.status!==t.CountdownStatus.pause&&(this.status=t.CountdownStatus.pause,this.callEvent("pause"))},e.prototype.resume=function(){this.status!==t.CountdownStatus.stop&&this.status===t.CountdownStatus.pause&&(this.status=t.CountdownStatus.ing,this.callEvent("resume"))},e.prototype.callEvent=function(t){this.event.emit({action:t,left:this.left,status:this.status,text:this.i.text})},e.prototype.init=function(){var n=this,e=this.locale,o=this.defCog,i=this.config=Object.assign(Object.assign(Object.assign({},new s(e)),o),this.config),r=this.frequency=~i.format.indexOf("S")?100:1e3;this.status=i.demand?t.CountdownStatus.pause:t.CountdownStatus.ing,this.getLeft();var a=this.reflow;this.reflow=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=!1),a.apply(n,[t,e])},Array.isArray(i.notify)&&i.notify.forEach((function(t){if(t<1)throw new Error("The notify config must be a positive integer.");t*=1e3,t-=t%r,n._notify[t]=!0})),this.timer.add(this.reflow,r).start(),this.reflow(0,!0)},e.prototype.destroy=function(){return this.timer.remove(this.reflow),this},e.prototype.reflow=function(n,e){var o=this;if(void 0===n&&(n=0),void 0===e&&(e=!1),!this.isDestroy){var i=this,s=i.status,r=i.config,a=i._notify;if(e||s===t.CountdownStatus.ing){var u=this.left=this.left-this.frequency*n;u<1&&(u=0),this.i={value:u,text:r.formatDate({date:u,formatStr:r.format,timezone:r.timezone})},"function"==typeof r.prettyText&&(this.i.text=r.prettyText(this.i.text)),this.cdr.detectChanges(),(0===r.notify||a[u])&&this.ngZone.run((function(){o.callEvent("notify")})),0===u&&this.ngZone.run((function(){o.status=t.CountdownStatus.done,o.destroy(),o.callEvent("done")}))}}},e.prototype.getLeft=function(){var t=this.config,n=this.frequency,e=1e3*t.leftTime,o=t.stopTime;!e&&o&&(e=o-(new Date).getTime()),this.left=e-e%n},e.prototype.ngOnInit=function(){this.init(),this.config.demand||this.begin()},e.prototype.ngOnDestroy=function(){this.isDestroy=!0,this.destroy()},e.prototype.ngOnChanges=function(t){t.config.firstChange||this.restart()},e}();r.decorators=[{type:n.Component,args:[{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:n.ViewEncapsulation.None,changeDetection:n.ChangeDetectionStrategy.OnPush}]}],r.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]},{type:i},{type:s},{type:n.ChangeDetectorRef},{type:n.NgZone}]},r.propDecorators={config:[{type:n.Input}],render:[{type:n.Input}],event:[{type:n.Output}]};var a=function(){};a.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],providers:[i],declarations:[r],exports:[r]}]}],t.CountdownComponent=r,t.CountdownGlobalConfig=s,t.CountdownModule=a,t.CountdownTimer=i,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-countdown.umd.min.js.map |
@@ -15,5 +15,7 @@ import { OnChanges, SimpleChanges, OnDestroy, EventEmitter, OnInit, SimpleChange, ChangeDetectorRef, TemplateRef, NgZone } from '@angular/core'; | ||
private isDestroy; | ||
private _config; | ||
i: CountdownItem; | ||
left: number; | ||
config: CountdownConfig; | ||
set config(i: CountdownConfig); | ||
get config(): CountdownConfig; | ||
render: TemplateRef<void>; | ||
@@ -20,0 +22,0 @@ readonly event: EventEmitter<CountdownEvent>; |
@@ -20,2 +20,11 @@ import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, NgZone, } from '@angular/core'; | ||
} | ||
set config(i) { | ||
if (i.notify != null && !Array.isArray(i.notify) && i.notify > 0) { | ||
i.notify = [i.notify]; | ||
} | ||
this._config = i; | ||
} | ||
get config() { | ||
return this._config; | ||
} | ||
/** | ||
@@ -189,2 +198,2 @@ * Start countdown, you must manually call when `demand: false` | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi9saWIvc3JjLyIsInNvdXJjZXMiOlsiY291bnRkb3duLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFJTCxNQUFNLEVBQ04sWUFBWSxFQUdaLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsRUFDakIsV0FBVyxFQUNYLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQW1CLGVBQWUsRUFBdUQsTUFBTSxjQUFjLENBQUM7QUFDckgsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO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ICAgICAgdGhpcy5jYWxsRXZlbnQoJ2RvbmUnKTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiDojrflj5blgJLorqHml7bliankvZnluKfmlbBcbiAgICovXG4gIHByaXZhdGUgZ2V0TGVmdCgpOiB2b2lkIHtcbiAgICBjb25zdCB7IGNvbmZpZywgZnJlcXVlbmN5IH0gPSB0aGlzO1xuICAgIGxldCBsZWZ0ID0gY29uZmlnLmxlZnRUaW1lICogMTAwMDtcbiAgICBjb25zdCBlbmQgPSBjb25maWcuc3RvcFRpbWU7XG5cbiAgICBpZiAoIWxlZnQgJiYgZW5kKSB7XG4gICAgICBsZWZ0ID0gZW5kIC0gbmV3IERhdGUoKS5nZXRUaW1lKCk7XG4gICAgfVxuXG4gICAgdGhpcy5sZWZ0ID0gbGVmdCAtIChsZWZ0ICUgZnJlcXVlbmN5KTtcbiAgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHRoaXMuaW5pdCgpO1xuICAgIGlmICghdGhpcy5jb25maWcuZGVtYW5kKSB7XG4gICAgICB0aGlzLmJlZ2luKCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5pc0Rlc3Ryb3kgPSB0cnVlO1xuICAgIHRoaXMuZGVzdHJveSgpO1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogeyBbUCBpbiBrZXlvZiB0aGlzXT86IFNpbXBsZUNoYW5nZSB9ICYgU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIGlmICghY2hhbmdlcy5jb25maWcuZmlyc3RDaGFuZ2UpIHtcbiAgICAgIHRoaXMucmVzdGFydCgpO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -122,2 +122,11 @@ import { Injectable, NgZone, ɵɵdefineInjectable, ɵɵinject, LOCALE_ID, Inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core'; | ||
} | ||
set config(i) { | ||
if (i.notify != null && !Array.isArray(i.notify) && i.notify > 0) { | ||
i.notify = [i.notify]; | ||
} | ||
this._config = i; | ||
} | ||
get config() { | ||
return this._config; | ||
} | ||
/** | ||
@@ -124,0 +133,0 @@ * Start countdown, you must manually call when `demand: false` |
@@ -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":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":{"ɵprov":{}}},"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":44,"character":3}}]}],"render":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"event":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":58,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":58,"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":61,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":62,"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":{"ɵprov":{}}},"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": "11.0.2", | ||
"version": "11.0.3", | ||
"description": "Simple, easy and performance countdown for angular", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,9 +42,9 @@ # ngx-countdown | ||
| Name | Description | | ||
|-------------|------------------------------------------------------------------------------------------------| | ||
| `begin()` | Start countdown, you must manually call when `demand: false` | | ||
| `restart()` | Restart countdown | | ||
| `stop()` | Stop countdown, must call `restart` when stopped, it's different from pause, unable to recover | | ||
| `pause()` | Pause countdown, you can use `resume` to recover again | | ||
| `resume()` | Resume countdown | | ||
| Name | Description | | ||
|------|-------------| | ||
| `begin()` | Start countdown, you must manually call when `demand: false` | | ||
| `restart()` | Restart countdown | | ||
| `stop()` | Stop countdown, must call `restart` when stopped, it's different from pause, unable to recover | | ||
| `pause()` | Pause countdown, you can use `resume` to recover again | | ||
| `resume()` | Resume countdown | | ||
@@ -62,12 +62,12 @@ **How call component methods** | ||
| Name | Type | Default | Summary | | ||
|----------|--------------------------------|---------|---------| | ||
| `config` | `CountdownConfig` | - | Config | | ||
| `event` | `EventEmitter<CountdownEvent>` | - | Events | | ||
| Name | Type | Default | Summary | | ||
|------|------|---------|---------| | ||
| `config` | `CountdownConfig` | - | Config | | ||
| `event` | `EventEmitter<CountdownEvent>` | - | Events | | ||
### CountdownConfig | ||
| Name | Type | Default | Summary | | ||
| ------- | ------------- | ----- | ----- | | ||
| demand | `boolean` | `false` | Start the counter on demand, must call `begin()` to starting | | ||
| Name | Type | Default | Summary | | ||
|------|------|---------|---------| | ||
| demand | `boolean` | `false` | Start the counter on demand, must call `begin()` to starting | | ||
| leftTime | `number` | `0` | Calculate the remaining time based on the server, e.g: `10`,`5.5`, (Unit: seconds) | | ||
@@ -77,3 +77,3 @@ | stopTime | `number` | - | Refers to counting down from local time to end time (Unit: Milliseconds second UNIX timestamp) | | ||
| prettyText | `(text: string) => string` | - | Beautify text, generally used to convert formatted time text into HTML | | ||
| notify | `number[] | number` | - | Should be trigger type `notify` event on the x second. When values is `0` will be trigger every time | | ||
| notify | `number[], number` | - | Should be trigger type `notify` event on the x second. When values is `0` will be trigger every time | | ||
| formatDate | `CountdownFormatFn` | - | Default based on the implementation of `formatDate` in `@angular/common`, You can changed to other libs, e.g: [date-fns](https://date-fns.org/v2.0.1/docs/format) | | ||
@@ -84,8 +84,8 @@ | timezone | `string` | `+0000` | A timezone offset (such as '+0430'), or a standard UTC/GMT. When not supplied, uses the end-user's local system timezone | | ||
| Name | Type | Summary | | ||
|----------|-----------------------------------------------|----------------------------------| | ||
| `action` | `start,stop,restart,pause,resume,notify,done` | Action of the event | | ||
| `status` | `CountdownStatus` | Status of the countdown | | ||
| `left` | `number` | Number of remaining milliseconds | | ||
| `text` | `string` | Format the text | | ||
| Name | Type | Summary | | ||
|------|------|---------| | ||
| `action` | `start,stop,restart,pause,resume,notify,done` | Action of the event | | ||
| `status` | `CountdownStatus` | Status of the countdown | | ||
| `left` | `number` | Number of remaining milliseconds | | ||
| `text` | `string` | Format the text | | ||
@@ -92,0 +92,0 @@ **Global Config** |
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
161180
1184