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

ngx-countdown

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-countdown - npm Package Compare versions

Comparing version 9.0.1 to 10.0.0

346

bundles/ngx-countdown.umd.js

@@ -5,218 +5,4 @@ (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, i0, common) { '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.
***************************************************************************** */
/* global Reflect, Promise */
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);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
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);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
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 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
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) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
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]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
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) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, 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 fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
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; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
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); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
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;
}
(function (CountdownStatus) {

@@ -238,4 +24,5 @@ CountdownStatus[CountdownStatus["ing"] = 0] = "ing";

var _this = this;
if (this.ing === true)
if (this.ing === true) {
return;
}
this.ing = true;

@@ -274,4 +61,5 @@ this.nextTime = +new Date();

}
if (!this.ing)
if (!this.ing) {
return;
}
setTimeout(function () { return _this.process(); }, diff);

@@ -299,12 +87,12 @@ };

};
CountdownTimer.ctorParameters = function () { return [
{ type: core.NgZone }
]; };
CountdownTimer = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [core.NgZone])
], CountdownTimer);
return CountdownTimer;
}());
CountdownTimer.decorators = [
{ type: i0.Injectable }
];
CountdownTimer.ctorParameters = function () { return [
{ type: i0.NgZone }
]; };
// tslint:disable: no-inferrable-types
var CountdownGlobalConfig = /** @class */ (function () {

@@ -321,15 +109,14 @@ function CountdownGlobalConfig(locale) {

return common.formatDate(new Date(date), formatStr, _this.locale, timezone || _this.timezone || '+0000');
// tslint:disable-next-line: semicolon
};
}
CountdownGlobalConfig.ctorParameters = function () { return [
{ type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] }
]; };
CountdownGlobalConfig.ɵprov = core.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(core.ɵɵinject(core.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig = __decorate([
core.Injectable({ providedIn: 'root' }),
__param(0, core.Inject(core.LOCALE_ID)),
__metadata("design:paramtypes", [String])
], CountdownGlobalConfig);
return CountdownGlobalConfig;
}());
CountdownGlobalConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0.ɵɵinject(i0.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig.decorators = [
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
];
CountdownGlobalConfig.ctorParameters = function () { return [
{ type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
]; };

@@ -349,3 +136,3 @@ var CountdownComponent = /** @class */ (function () {

this.left = 0;
this.event = new core.EventEmitter();
this.event = new i0.EventEmitter();
}

@@ -384,4 +171,5 @@ /**

CountdownComponent.prototype.pause = function () {
if (this.status === exports.CountdownStatus.stop || this.status === exports.CountdownStatus.pause)
if (this.status === exports.CountdownStatus.stop || this.status === exports.CountdownStatus.pause) {
return;
}
this.status = exports.CountdownStatus.pause;

@@ -394,4 +182,5 @@ this.callEvent('pause');

CountdownComponent.prototype.resume = function () {
if (this.status === exports.CountdownStatus.stop || this.status !== exports.CountdownStatus.pause)
if (this.status === exports.CountdownStatus.stop || this.status !== exports.CountdownStatus.pause) {
return;
}
this.status = exports.CountdownStatus.ing;

@@ -406,3 +195,3 @@ this.callEvent('resume');

var _a = this, locale = _a.locale, defCog = _a.defCog;
var config = (this.config = __assign(__assign(__assign({}, new CountdownGlobalConfig(locale)), defCog), this.config));
var config = (this.config = Object.assign(Object.assign(Object.assign({}, new CountdownGlobalConfig(locale)), defCog), this.config));
// tslint:disable-next-line: no-bitwise

@@ -421,4 +210,5 @@ var frq = (this.frequency = ~config.format.indexOf('S') ? 100 : 1000);

config.notify.forEach(function (time) {
if (time < 1)
if (time < 1) {
throw new Error("The notify config must be a positive integer.");
}
time = time * 1000;

@@ -443,7 +233,9 @@ time = time - (time % frq);

if (force === void 0) { force = false; }
if (this.isDestroy)
if (this.isDestroy) {
return;
}
var _a = this, status = _a.status, config = _a.config, _notify = _a._notify;
if (!force && status !== exports.CountdownStatus.ing)
if (!force && status !== exports.CountdownStatus.ing) {
return;
}
var value = (this.left = this.left - this.frequency * count);

@@ -498,37 +290,25 @@ this.i = {

};
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([
core.Input(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "config", void 0);
__decorate([
core.Input(),
__metadata("design:type", core.TemplateRef)
], CountdownComponent.prototype, "render", void 0);
__decorate([
core.Output(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "event", void 0);
CountdownComponent = __decorate([
core.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: core.ViewEncapsulation.None,
changeDetection: core.ChangeDetectionStrategy.OnPush
}),
__param(0, core.Inject(core.LOCALE_ID)),
__metadata("design:paramtypes", [String, CountdownTimer,
CountdownGlobalConfig,
core.ChangeDetectorRef,
core.NgZone])
], CountdownComponent);
return CountdownComponent;
}());
CountdownComponent.decorators = [
{ type: i0.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: i0.ViewEncapsulation.None,
changeDetection: i0.ChangeDetectionStrategy.OnPush
},] }
];
CountdownComponent.ctorParameters = function () { return [
{ type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
{ type: CountdownTimer },
{ type: CountdownGlobalConfig },
{ type: i0.ChangeDetectorRef },
{ type: i0.NgZone }
]; };
CountdownComponent.propDecorators = {
config: [{ type: i0.Input }],
render: [{ type: i0.Input }],
event: [{ type: i0.Output }]
};

@@ -538,13 +318,17 @@ var CountdownModule = /** @class */ (function () {

}
CountdownModule = __decorate([
core.NgModule({
imports: [common.CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
})
], CountdownModule);
return CountdownModule;
}());
CountdownModule.decorators = [
{ type: i0.NgModule, args: [{
imports: [common.CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
},] }
];
/**
* Generated bundle index. Do not edit.
*/
exports.CountdownComponent = CountdownComponent;

@@ -551,0 +335,0 @@ exports.CountdownGlobalConfig = CountdownGlobalConfig;

@@ -1,16 +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=t||self)["ngx-countdown"]={},t.ng.core,t.ng.common)}(this,(function(t,n,e){"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 n,e=1,o=arguments.length;e<o;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function s(t,n,e,o){var i,s=arguments.length,r=s<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(s<3?i(r):s>3?i(n,e,r):i(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}function r(t,n){return function(e,o){n(e,o,t)}}function a(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}(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 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.ctorParameters=function(){return[{type:n.NgZone}]},t=s([n.Injectable(),a("design:paramtypes",[n.NgZone])],t)}(),f=function(){function t(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")}}return t.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(n.LOCALE_ID))},token:t,providedIn:"root"}),t=s([n.Injectable({providedIn:"root"}),r(0,n.Inject(n.LOCALE_ID)),a("design:paramtypes",[String])],t)}(),c=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 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=i(i(i({},new f(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 i=this.status,s=this.config,r=this._notify;if(e||i===t.CountdownStatus.ing){var a=this.left=this.left-this.frequency*n;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()}))}}},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.ctorParameters=function(){return[{type:String,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]},{type:u},{type:f},{type:n.ChangeDetectorRef},{type:n.NgZone}]},s([n.Input(),a("design:type",Object)],e.prototype,"config",void 0),s([n.Input(),a("design:type",n.TemplateRef)],e.prototype,"render",void 0),s([n.Output(),a("design:type",Object)],e.prototype,"event",void 0),e=s([n.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:n.ViewEncapsulation.None,changeDetection:n.ChangeDetectionStrategy.OnPush}),r(0,n.Inject(n.LOCALE_ID)),a("design:paramtypes",[String,u,f,n.ChangeDetectorRef,n.NgZone])],e)}(),h=function(){function t(){}return t=s([n.NgModule({imports:[e.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,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=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.status,i=this.config,r=this._notify;if(e||s===t.CountdownStatus.ing){var a=this.left=this.left-this.frequency*n;this.i={value:a,text:i.formatDate({date:a,formatStr:i.format,timezone:i.timezone})},"function"==typeof i.prettyText&&(this.i.text=i.prettyText(this.i.text)),this.cdr.detectChanges(),(0===i.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()}))}}},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})}));
//# sourceMappingURL=ngx-countdown.umd.min.js.map

75

esm2015/countdown.component.js

@@ -1,7 +0,6 @@

import { __decorate, __metadata, __param } from "tslib";
import { Component, Input, OnChanges, SimpleChanges, OnDestroy, Output, EventEmitter, OnInit, SimpleChange, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, NgZone, } from '@angular/core';
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, TemplateRef, NgZone, } from '@angular/core';
import { CountdownStatus } from './interfaces';
import { CountdownTimer } from './countdown.timer';
import { CountdownGlobalConfig } from './countdown.config';
let CountdownComponent = class CountdownComponent {
export class CountdownComponent {
constructor(locale, timer, defCog, cdr, ngZone) {

@@ -53,4 +52,5 @@ this.locale = locale;

pause() {
if (this.status === CountdownStatus.stop || this.status === CountdownStatus.pause)
if (this.status === CountdownStatus.stop || this.status === CountdownStatus.pause) {
return;
}
this.status = CountdownStatus.pause;

@@ -63,4 +63,5 @@ this.callEvent('pause');

resume() {
if (this.status === CountdownStatus.stop || this.status !== CountdownStatus.pause)
if (this.status === CountdownStatus.stop || this.status !== CountdownStatus.pause) {
return;
}
this.status = CountdownStatus.ing;

@@ -84,4 +85,5 @@ this.callEvent('resume');

config.notify.forEach((time) => {
if (time < 1)
if (time < 1) {
throw new Error(`The notify config must be a positive integer.`);
}
time = time * 1000;

@@ -103,7 +105,9 @@ time = time - (time % frq);

reflow(count = 0, force = false) {
if (this.isDestroy)
if (this.isDestroy) {
return;
}
const { status, config, _notify } = this;
if (!force && status !== CountdownStatus.ing)
if (!force && status !== CountdownStatus.ing) {
return;
}
const value = (this.left = this.left - this.frequency * count);

@@ -158,3 +162,17 @@ this.i = {

}
};
}
CountdownComponent.decorators = [
{ type: Component, args: [{
selector: 'countdown',
template: `
<ng-container *ngIf="!render">
<span [innerHTML]="i.text"></span>
</ng-container>
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>
`,
host: { '[class.count-down]': 'true' },
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
},] }
];
CountdownComponent.ctorParameters = () => [

@@ -167,34 +185,7 @@ { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },

];
__decorate([
Input(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "config", void 0);
__decorate([
Input(),
__metadata("design:type", TemplateRef)
], CountdownComponent.prototype, "render", void 0);
__decorate([
Output(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "event", void 0);
CountdownComponent = __decorate([
Component({
selector: 'countdown',
template: `
<ng-container *ngIf="!render">
<span [innerHTML]="i.text"></span>
</ng-container>
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>
`,
host: { '[class.count-down]': 'true' },
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
}),
__param(0, Inject(LOCALE_ID)),
__metadata("design:paramtypes", [String, CountdownTimer,
CountdownGlobalConfig,
ChangeDetectorRef,
NgZone])
], CountdownComponent);
export { CountdownComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCxTQUFTLEVBQ1QsYUFBYSxFQUNiLFNBQVMsRUFDVCxNQUFNLEVBQ04sWUFBWSxFQUNaLE1BQU0sRUFDTixZQUFZLEVBQ1osdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixNQUFNLEVBQ04sU0FBUyxFQUNULGlCQUFpQixFQUNqQixXQUFXLEVBQ1gsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBbUIsZUFBZSxFQUF1RCxNQUFNLGNBQWMsQ0FBQztBQUNySCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFjM0QsSUFBYSxrQkFBa0IsR0FBL0IsTUFBYSxrQkFBa0I7SUFZN0IsWUFDNkIsTUFBYyxFQUNqQyxLQUFxQixFQUNyQixNQUE2QixFQUM3QixHQUFzQixFQUN0QixNQUFjO1FBSkssV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUNq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Decorators = {
config: [{ type: Input }],
render: [{ type: Input }],
event: [{ type: Output }]
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFJTCxNQUFNLEVBQ04sWUFBWSxFQUdaLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsRUFDakIsV0FBVyxFQUNYLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQW1CLGVBQWUsRUFBdUQsTUFBTSxjQUFjLENBQUM7QUFDckgsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBYzNELE1BQU0sT0FBTyxrQkFBa0I7SUFZN0IsWUFDNkIsTUFBYyxFQUNqQyxLQUFxQixFQUNyQixNQUE2QixFQUM3QixHQUFzQixFQUN0QixNQUFjO1FBSkssV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUNqQyxVQUFLLEdBQUwsS0FBSyxDQUFnQjtRQUNyQixXQUFNLEdBQU4sTUFBTSxDQUF1QjtRQUM3QixRQUFHLEdBQUgsR0FBRyxDQUFtQjtRQUN0QixXQUFNLEdBQU4sTUFBTSxDQUFRO1FBaEJoQixjQUFTLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLFlBQU8sR0FBUSxFQUFFLENBQUM7UUFDbEIsV0FBTSxHQUFvQixlQUFlLENBQUMsR0FBRyxDQUFDO1FBQzlDLGNBQVMsR0FBRyxLQUFL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29uZmlnLmxlZnRUaW1lICogMTAwMDtcbiAgICBjb25zdCBlbmQgPSBjb25maWcuc3RvcFRpbWU7XG5cbiAgICBpZiAoIWxlZnQgJiYgZW5kKSB7XG4gICAgICBsZWZ0ID0gZW5kIC0gbmV3IERhdGUoKS5nZXRUaW1lKCk7XG4gICAgfVxuXG4gICAgdGhpcy5sZWZ0ID0gbGVmdCAtIChsZWZ0ICUgZnJlcXVlbmN5KTtcbiAgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHRoaXMuaW5pdCgpO1xuICAgIGlmICghdGhpcy5jb25maWcuZGVtYW5kKSB7XG4gICAgICB0aGlzLmJlZ2luKCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5pc0Rlc3Ryb3kgPSB0cnVlO1xuICAgIHRoaXMuZGVzdHJveSgpO1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogeyBbUCBpbiBrZXlvZiB0aGlzXT86IFNpbXBsZUNoYW5nZSB9ICYgU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIGlmICghY2hhbmdlcy5jb25maWcuZmlyc3RDaGFuZ2UpIHtcbiAgICAgIHRoaXMucmVzdGFydCgpO1xuICAgIH1cbiAgfVxufVxuIl19
/**
* @fileoverview This file was generated by the Angular template compiler. Do not edit.
*
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
* tslint:disable

@@ -21,2 +21,2 @@ */

export { CountdownComponentNgFactory as CountdownComponentNgFactory };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5uZ2ZhY3RvcnkuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtY291bnRkb3duLyIsInNvdXJjZXMiOlsiY291bnRkb3duLmNvbXB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7Ozs7Ozs7Ozs7Ozs7OzZEQ0NJLDZFQUE4QixLQUM1Qiw4RkFBMkIsd0RBQXJCLG1CQUFvQixTQUExQixZQUEyQixFQUFyQixTQUFvQjs2REFFNUIsNkVBQW9FO29FQUhwRSxrTEFBOEIsSUFHOUIsZ1FBQW9FLEdBQXRELHlCQUFxRCxtREFIckQsb0JBQWUsU0FBN0IsWUFBOEIsRUFBaEIsU0FBZSxHQUdmLHlEQUFxRCxTQUFuRSxZQUFvRSxFQUF0RCxvQkFBcUQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBpMCBmcm9tICdAYW5ndWxhci9jb3JlJztcbmkwLkNvbXBvbmVudEZhY3Rvcnk7XG4iLCJcbiAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIXJlbmRlclwiPlxuICAgICAgPHNwYW4gW2lubmVySFRNTF09XCJpLnRleHRcIj48L3NwYW4+XG4gICAgPC9uZy1jb250YWluZXI+XG4gICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInJlbmRlcjsgY29udGV4dDogeyAkaW1wbGljaXQ6IGkgfVwiPjwvbmctY29udGFpbmVyPlxuICAiXX0=

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

import { __decorate, __metadata, __param } from "tslib";
// tslint:disable: no-inferrable-types

@@ -6,3 +5,3 @@ import { Injectable, Inject, LOCALE_ID } from '@angular/core';

import * as i0 from "@angular/core";
let CountdownGlobalConfig = class CountdownGlobalConfig {
export class CountdownGlobalConfig {
constructor(locale) {

@@ -16,15 +15,13 @@ this.locale = locale;

return formatDate(new Date(date), formatStr, this.locale, timezone || this.timezone || '+0000');
// tslint:disable-next-line: semicolon
};
}
};
}
CountdownGlobalConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0.ɵɵinject(i0.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
CountdownGlobalConfig.ctorParameters = () => [
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
];
CountdownGlobalConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0.ɵɵinject(i0.LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig = __decorate([
Injectable({ providedIn: 'root' }),
__param(0, Inject(LOCALE_ID)),
__metadata("design:paramtypes", [String])
], CountdownGlobalConfig);
export { CountdownGlobalConfig };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24uY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzQ0FBc0M7QUFDdEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFJN0MsSUFBYSxxQkFBcUIsR0FBbEMsTUFBYSxxQkFBcUI7SUFDaEMsWUFBdUMsTUFBYztRQUFkLFdBQU0sR0FBTixNQUFNLENBQVE7UUFFckQsV0FBTSxHQUFhLEtBQUssQ0FBQztRQUV6QixhQUFRLEdBQVksQ0FBQyxDQUFDO1FBRXRCLFdBQU0sR0FBWSxVQUFVLENBQUM7UUFFN0IsYUFBUSxHQUFZLE9BQU8sQ0FBQztRQUU1QixlQUFVLEdBQXVCLENBQUMsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxFQUFFLEVBQUU7WUFDakUsT0FBTyxVQUFVLENBQUMsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEVB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fCB0aGlzLnRpbWV6b25lIHx8ICcrMDAwMCcpO1xuICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogc2VtaWNvbG9uXG4gIH07XG59XG4iXX0=

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

import { __decorate } from "tslib";
import { CommonModule } from '@angular/common';

@@ -6,13 +5,12 @@ import { NgModule } from '@angular/core';

import { CountdownTimer } from './countdown.timer';
let CountdownModule = class CountdownModule {
};
CountdownModule = __decorate([
NgModule({
imports: [CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
})
], CountdownModule);
export { CountdownModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJjb3VudGRvd24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFRbkQsSUFBYSxlQUFlLEdBQTVCLE1BQWEsZUFBZTtDQUFHLENBQUE7QUFBbEIsZUFBZTtJQU4zQixRQUFRLENBQUM7UUFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7UUFDdkIsU0FBUyxFQUFFLENBQUMsY0FBYyxDQUFDO1FBQzNCLFlBQVksRUFBRSxDQUFDLGtCQUFrQixDQUFDO1FBQ2xDLE9BQU8sRUFBRSxDQUFDLGtCQUFrQixDQUFDO0tBQzlCLENBQUM7R0FDVyxlQUFlLENBQUc7U0FBbEIsZUFBZSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDb3VudGRvd25Db21wb25lbnQgfSBmcm9tICcuL2NvdW50ZG93bi5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ291bnRkb3duVGltZXIgfSBmcm9tICcuL2NvdW50ZG93bi50aW1lcic7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBwcm92aWRlcnM6IFtDb3VudGRvd25UaW1lcl0sXG4gIGRlY2xhcmF0aW9uczogW0NvdW50ZG93bkNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtDb3VudGRvd25Db21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBDb3VudGRvd25Nb2R1bGUge31cbiJdfQ==
export class CountdownModule {
}
CountdownModule.decorators = [
{ type: NgModule, args: [{
imports: [CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFRbkQsTUFBTSxPQUFPLGVBQWU7OztZQU4zQixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2dCQUN2QixTQUFTLEVBQUUsQ0FBQyxjQUFjLENBQUM7Z0JBQzNCLFlBQVksRUFBRSxDQUFDLGtCQUFrQixDQUFDO2dCQUNsQyxPQUFPLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQzthQUM5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDb3VudGRvd25Db21wb25lbnQgfSBmcm9tICcuL2NvdW50ZG93bi5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ291bnRkb3duVGltZXIgfSBmcm9tICcuL2NvdW50ZG93bi50aW1lcic7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBwcm92aWRlcnM6IFtDb3VudGRvd25UaW1lcl0sXG4gIGRlY2xhcmF0aW9uczogW0NvdW50ZG93bkNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtDb3VudGRvd25Db21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBDb3VudGRvd25Nb2R1bGUge31cbiJdfQ==
/**
* @fileoverview This file was generated by the Angular template compiler. Do not edit.
*
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
* tslint:disable

@@ -13,2 +13,2 @@ */

export { CountdownModuleNgFactory as CountdownModuleNgFactory };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLm1vZHVsZS5uZ2ZhY3RvcnkuanMiLCJz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oKTp2b2lkIHtcbiAgdmFyIF9hbnk6YW55ID0gKG51bGwgYXMgYW55KTtcbn1cbmZ1bmN0aW9uIF9WaWV3X0NvdW50ZG93bkNvbXBvbmVudF8xXzAoKTp2b2lkIHtcbiAgdmFyIF9hbnk6YW55ID0gKG51bGwgYXMgYW55KTtcbiAgY29uc3QgY3VyclZhbF8wOmFueSA9ICFfZGVjbDBfMTEucmVuZGVyO1xuICBjdXJyVmFsXzA7XG4gIGNvbnN0IGN1cnJWYWxfMTphbnkgPSB7JGltcGxpY2l0Ol9kZWNsMF8xMS5pfTtcbiAgY3VyclZhbF8xO1xuICBjb25zdCBjdXJyVmFsXzI6YW55ID0gX2RlY2wwXzExLnJlbmRlcjtcbiAgY3VyclZhbF8yO1xufVxuIl19

@@ -1,4 +0,3 @@

import { __decorate, __metadata } from "tslib";
import { Injectable, NgZone } from '@angular/core';
let CountdownTimer = class CountdownTimer {
export class CountdownTimer {
constructor(ngZone) {

@@ -11,4 +10,5 @@ this.ngZone = ngZone;

start() {
if (this.ing === true)
if (this.ing === true) {
return;
}
this.ing = true;

@@ -46,4 +46,5 @@ this.nextTime = +new Date();

}
if (!this.ing)
if (!this.ing) {
return;
}
setTimeout(() => this.process(), diff);

@@ -69,11 +70,9 @@ }

}
};
}
CountdownTimer.decorators = [
{ type: Injectable }
];
CountdownTimer.ctorParameters = () => [
{ type: NgZone }
];
CountdownTimer = __decorate([
Injectable(),
__metadata("design:paramtypes", [NgZone])
], CountdownTimer);
export { CountdownTimer };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLnRpbWVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNvdW50ZG93bi8iLCJzb3VyY2VzIjpbImNvdW50ZG93bi50aW1lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQ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ByZXR1cm47XG4gICAgfVxuXG4gICAgc2V0VGltZW91dCgoKSA9PiB0aGlzLnByb2Nlc3MoKSwgZGlmZik7XG4gIH1cblxuICBhZGQoZm46ICgpID0+IHZvaWQsIGZyZXF1ZW5jeTogbnVtYmVyKTogdGhpcyB7XG4gICAgdGhpcy5jb21tYW5kcy5wdXNoKCgpID0+IHtcbiAgICAgIHRoaXMuZm5zLnB1c2goZm4pO1xuICAgICAgdGhpcy5mbnMucHVzaChmcmVxdWVuY3kgPT09IDEwMDAgPyAxIDogMCk7XG4gICAgICB0aGlzLmluZyA9IHRydWU7XG4gICAgfSk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cblxuICByZW1vdmUoZm46ICgpID0+IHZvaWQpOiB0aGlzIHtcbiAgICB0aGlzLmNvbW1hbmRzLnB1c2goKCkgPT4ge1xuICAgICAgY29uc3QgaSA9IHRoaXMuZm5zLmluZGV4T2YoZm4pO1xuICAgICAgaWYgKGkgIT09IC0xKSB7XG4gICAgICAgIHRoaXMuZm5zLnNwbGljZShpLCAyKTtcbiAgICAgIH1cbiAgICAgIHRoaXMuaW5nID0gdGhpcy5mbnMubGVuZ3RoID4gMDtcbiAgICB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxufVxuIl19

@@ -8,2 +8,2 @@ export var CountdownStatus;

})(CountdownStatus || (CountdownStatus = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJpbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE1BQU0sQ0FBTixJQUFZLGVBS1g7QUFMRCxXQUFZLGVBQWU7SUFDekIsbURBQUcsQ0FBQTtJQUNILHVEQUFLLENBQUE7SUFDTCxxREFBSSxDQUFBO0lBQ0oscURBQUksQ0FBQTtBQUNOLENBQUM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0ge1xuICB0ZXh0Pzogc3RyaW5nO1xuICB2YWx1ZT86IG51bWJlcjtcbn1cbiJdfQ==

@@ -5,2 +5,2 @@ /**

export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNvdW50ZG93bi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJuZ3gtY291bnRkb3duLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNvdW50ZG93bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvbmd4LWNvdW50ZG93bi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19

@@ -6,2 +6,2 @@ export * from './interfaces';

export * from './countdown.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jb3VudGRvd24vIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ludGVyZmFjZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3VudGRvd24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY291bnRkb3duLnRpbWVyJztcbmV4cG9ydCAqIGZyb20gJy4vY291bnRkb3duLmNvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2NvdW50ZG93bi5tb2R1bGUnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY291bnRkb3duLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvdW50ZG93bi50aW1lcic7XG5leHBvcnQgKiBmcm9tICcuL2NvdW50ZG93bi5jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3VudGRvd24ubW9kdWxlJztcbiJdfQ==

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

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 { Injectable, NgZone, ɵɵdefineInjectable, ɵɵinject, LOCALE_ID, Inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
import { formatDate, CommonModule } from '@angular/common';

@@ -13,3 +12,3 @@

let CountdownTimer = class CountdownTimer {
class CountdownTimer {
constructor(ngZone) {

@@ -22,4 +21,5 @@ this.ngZone = ngZone;

start() {
if (this.ing === true)
if (this.ing === true) {
return;
}
this.ing = true;

@@ -57,4 +57,5 @@ this.nextTime = +new Date();

}
if (!this.ing)
if (!this.ing) {
return;
}
setTimeout(() => this.process(), diff);

@@ -80,12 +81,12 @@ }

}
};
}
CountdownTimer.decorators = [
{ type: Injectable }
];
CountdownTimer.ctorParameters = () => [
{ type: NgZone }
];
CountdownTimer = __decorate([
Injectable(),
__metadata("design:paramtypes", [NgZone])
], CountdownTimer);
let CountdownGlobalConfig = class CountdownGlobalConfig {
// tslint:disable: no-inferrable-types
class CountdownGlobalConfig {
constructor(locale) {

@@ -99,16 +100,15 @@ this.locale = locale;

return formatDate(new Date(date), formatStr, this.locale, timezone || this.timezone || '+0000');
// tslint:disable-next-line: semicolon
};
}
};
}
CountdownGlobalConfig.ɵprov = ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(ɵɵinject(LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
CountdownGlobalConfig.ctorParameters = () => [
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
];
CountdownGlobalConfig.ɵprov = ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(ɵɵinject(LOCALE_ID)); }, token: CountdownGlobalConfig, providedIn: "root" });
CountdownGlobalConfig = __decorate([
Injectable({ providedIn: 'root' }),
__param(0, Inject(LOCALE_ID)),
__metadata("design:paramtypes", [String])
], CountdownGlobalConfig);
let CountdownComponent = class CountdownComponent {
class CountdownComponent {
constructor(locale, timer, defCog, cdr, ngZone) {

@@ -160,4 +160,5 @@ this.locale = locale;

pause() {
if (this.status === CountdownStatus.stop || this.status === CountdownStatus.pause)
if (this.status === CountdownStatus.stop || this.status === CountdownStatus.pause) {
return;
}
this.status = CountdownStatus.pause;

@@ -170,4 +171,5 @@ this.callEvent('pause');

resume() {
if (this.status === CountdownStatus.stop || this.status !== CountdownStatus.pause)
if (this.status === CountdownStatus.stop || this.status !== CountdownStatus.pause) {
return;
}
this.status = CountdownStatus.ing;

@@ -191,4 +193,5 @@ this.callEvent('resume');

config.notify.forEach((time) => {
if (time < 1)
if (time < 1) {
throw new Error(`The notify config must be a positive integer.`);
}
time = time * 1000;

@@ -210,7 +213,9 @@ time = time - (time % frq);

reflow(count = 0, force = false) {
if (this.isDestroy)
if (this.isDestroy) {
return;
}
const { status, config, _notify } = this;
if (!force && status !== CountdownStatus.ing)
if (!force && status !== CountdownStatus.ing) {
return;
}
const value = (this.left = this.left - this.frequency * count);

@@ -265,3 +270,17 @@ this.i = {

}
};
}
CountdownComponent.decorators = [
{ type: Component, args: [{
selector: 'countdown',
template: `
<ng-container *ngIf="!render">
<span [innerHTML]="i.text"></span>
</ng-container>
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>
`,
host: { '[class.count-down]': 'true' },
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
},] }
];
CountdownComponent.ctorParameters = () => [

@@ -274,45 +293,19 @@ { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },

];
__decorate([
Input(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "config", void 0);
__decorate([
Input(),
__metadata("design:type", TemplateRef)
], CountdownComponent.prototype, "render", void 0);
__decorate([
Output(),
__metadata("design:type", Object)
], CountdownComponent.prototype, "event", void 0);
CountdownComponent = __decorate([
Component({
selector: 'countdown',
template: `
<ng-container *ngIf="!render">
<span [innerHTML]="i.text"></span>
</ng-container>
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container>
`,
host: { '[class.count-down]': 'true' },
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
}),
__param(0, Inject(LOCALE_ID)),
__metadata("design:paramtypes", [String, CountdownTimer,
CountdownGlobalConfig,
ChangeDetectorRef,
NgZone])
], CountdownComponent);
let CountdownModule = class CountdownModule {
CountdownComponent.propDecorators = {
config: [{ type: Input }],
render: [{ type: Input }],
event: [{ type: Output }]
};
CountdownModule = __decorate([
NgModule({
imports: [CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
})
], CountdownModule);
class CountdownModule {
}
CountdownModule.decorators = [
{ type: NgModule, args: [{
imports: [CommonModule],
providers: [CountdownTimer],
declarations: [CountdownComponent],
exports: [CountdownComponent],
},] }
];
/**

@@ -319,0 +312,0 @@ * Generated bundle index. Do not edit.

{
"name": "ngx-countdown",
"version": "9.0.1",
"version": "10.0.0",
"description": "Simple, easy and performance countdown for angular",
"repository": {
"type": "git",
"url": "git+https://github.com/cipchk/ngx-countdown.git"
},
"keywords": [

@@ -17,14 +13,19 @@ "ngx-countdown",

],
"author": "cipchk <cipchk>",
"author": "cipchk <cipchk@qq.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cipchk/ngx-countdown"
},
"bugs": {
"url": "https://github.com/cipchk/ngx-countdown/issues"
},
"homepage": "https://github.com/cipchk/ngx-countdown#readme",
"homepage": "https://cipchk.github.io/ngx-countdown/",
"peerDependencies": {
"@angular/core": "~10.0.0"
},
"main": "bundles/ngx-countdown.umd.js",
"module": "fesm5/ngx-countdown.js",
"module": "fesm2015/ngx-countdown.js",
"es2015": "fesm2015/ngx-countdown.js",
"esm5": "esm5/ngx-countdown.js",
"esm2015": "esm2015/ngx-countdown.js",
"fesm5": "fesm5/ngx-countdown.js",
"fesm2015": "fesm2015/ngx-countdown.js",

@@ -34,5 +35,5 @@ "typings": "ngx-countdown.d.ts",

"sideEffects": false,
"peerDependencies": {
"tslib": "^1.10.0"
"dependencies": {
"tslib": "^2.0.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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc