ngx-countdown
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-countdown'] = {}, global.ng.core, global.ng.common)); | ||
}(this, (function (exports, i0, i3) { 'use strict'; | ||
}(this, (function (exports, i0, common) { 'use strict'; | ||
@@ -29,3 +29,2 @@ function _interopNamespace(e) { | ||
var i0__namespace = /*#__PURE__*/_interopNamespace(i0); | ||
var i3__namespace = /*#__PURE__*/_interopNamespace(i3); | ||
@@ -40,30 +39,2 @@ exports.CountdownStatus = void 0; | ||
// tslint:disable: no-inferrable-types | ||
var CountdownGlobalConfig = /** @class */ (function () { | ||
function CountdownGlobalConfig(locale) { | ||
var _this = this; | ||
this.locale = locale; | ||
this.demand = false; | ||
this.leftTime = 0; | ||
this.format = 'HH:mm:ss'; | ||
this.timezone = '+0000'; | ||
this.formatDate = function (_a) { | ||
var date = _a.date, formatStr = _a.formatStr, timezone = _a.timezone; | ||
return i3.formatDate(new Date(date), formatStr, _this.locale, timezone || _this.timezone || '+0000'); | ||
}; | ||
} | ||
return CountdownGlobalConfig; | ||
}()); | ||
CountdownGlobalConfig.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownGlobalConfig, deps: [{ token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); | ||
CountdownGlobalConfig.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownGlobalConfig, providedIn: 'root' }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownGlobalConfig, decorators: [{ | ||
type: i0.Injectable, | ||
args: [{ providedIn: 'root' }] | ||
}], ctorParameters: function () { | ||
return [{ type: undefined, decorators: [{ | ||
type: i0.Inject, | ||
args: [i0.LOCALE_ID] | ||
}] }]; | ||
} }); | ||
var CountdownTimer = /** @class */ (function () { | ||
@@ -142,8 +113,33 @@ function CountdownTimer(ngZone) { | ||
}()); | ||
CountdownTimer.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownTimer, deps: [{ token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); | ||
CountdownTimer.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownTimer }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownTimer, decorators: [{ | ||
type: i0.Injectable | ||
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }]; } }); | ||
CountdownTimer.decorators = [ | ||
{ type: i0.Injectable } | ||
]; | ||
CountdownTimer.ctorParameters = function () { return [ | ||
{ type: i0.NgZone } | ||
]; }; | ||
// tslint:disable: no-inferrable-types | ||
var CountdownGlobalConfig = /** @class */ (function () { | ||
function CountdownGlobalConfig(locale) { | ||
var _this = this; | ||
this.locale = locale; | ||
this.demand = false; | ||
this.leftTime = 0; | ||
this.format = 'HH:mm:ss'; | ||
this.timezone = '+0000'; | ||
this.formatDate = function (_a) { | ||
var date = _a.date, formatStr = _a.formatStr, timezone = _a.timezone; | ||
return common.formatDate(new Date(date), formatStr, _this.locale, timezone || _this.timezone || '+0000'); | ||
}; | ||
} | ||
return CountdownGlobalConfig; | ||
}()); | ||
CountdownGlobalConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CountdownGlobalConfig_Factory() { return new CountdownGlobalConfig(i0__namespace.ɵɵinject(i0__namespace.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,] }] } | ||
]; }; | ||
var CountdownComponent = /** @class */ (function () { | ||
@@ -328,25 +324,23 @@ function CountdownComponent(locale, timer, defCog, cdr, ngZone) { | ||
}()); | ||
CountdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownComponent, deps: [{ token: i0.LOCALE_ID }, { token: CountdownTimer }, { token: CountdownGlobalConfig }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component }); | ||
CountdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.2", type: CountdownComponent, selector: "countdown", inputs: { config: "config", render: "render" }, outputs: { event: "event" }, host: { properties: { "class.count-down": "true" } }, usesOnChanges: true, ngImport: i0__namespace, 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 ", isInline: true, directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: 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, | ||
}] | ||
}], ctorParameters: function () { | ||
return [{ type: undefined, decorators: [{ | ||
type: i0.Inject, | ||
args: [i0.LOCALE_ID] | ||
}] }, { type: CountdownTimer }, { type: CountdownGlobalConfig }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }]; | ||
}, propDecorators: { config: [{ | ||
type: i0.Input | ||
}], render: [{ | ||
type: i0.Input | ||
}], event: [{ | ||
type: i0.Output | ||
}] } }); | ||
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 }] | ||
}; | ||
@@ -358,14 +352,10 @@ var CountdownModule = /** @class */ (function () { | ||
}()); | ||
CountdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); | ||
CountdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownModule, declarations: [CountdownComponent], imports: [i3.CommonModule], exports: [CountdownComponent] }); | ||
CountdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownModule, providers: [CountdownTimer], imports: [[i3.CommonModule]] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0__namespace, type: CountdownModule, decorators: [{ | ||
type: i0.NgModule, | ||
args: [{ | ||
imports: [i3.CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
}] | ||
}] }); | ||
CountdownModule.decorators = [ | ||
{ type: i0.NgModule, args: [{ | ||
imports: [common.CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
},] } | ||
]; | ||
@@ -372,0 +362,0 @@ /** |
@@ -5,3 +5,2 @@ import { OnChanges, SimpleChanges, OnDestroy, EventEmitter, OnInit, SimpleChange, ChangeDetectorRef, TemplateRef, NgZone } from '@angular/core'; | ||
import { CountdownGlobalConfig } from './countdown.config'; | ||
import * as i0 from "@angular/core"; | ||
export declare class CountdownComponent implements OnInit, OnChanges, OnDestroy { | ||
@@ -61,4 +60,2 @@ private locale; | ||
} & SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<CountdownComponent, "countdown", never, { "config": "config"; "render": "render"; }, { "event": "event"; }, never, never>; | ||
} |
import { CountdownFormatFn, CountdownConfig } from './interfaces'; | ||
import * as i0 from "@angular/core"; | ||
export declare class CountdownGlobalConfig implements CountdownConfig { | ||
@@ -11,4 +10,2 @@ private locale; | ||
formatDate?: CountdownFormatFn; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownGlobalConfig, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<CountdownGlobalConfig>; | ||
} |
@@ -1,8 +0,2 @@ | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./countdown.component"; | ||
import * as i2 from "@angular/common"; | ||
export declare class CountdownModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<CountdownModule, [typeof i1.CountdownComponent], [typeof i2.CommonModule], [typeof i1.CountdownComponent]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<CountdownModule>; | ||
} |
import { NgZone } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class CountdownTimer { | ||
@@ -14,4 +13,2 @@ private ngZone; | ||
remove(fn: () => void): this; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownTimer, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<CountdownTimer>; | ||
} |
@@ -1,8 +0,5 @@ | ||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, } from '@angular/core'; | ||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, LOCALE_ID, ChangeDetectorRef, NgZone, } from '@angular/core'; | ||
import { CountdownStatus } from './interfaces'; | ||
import { CountdownTimer } from './countdown.timer'; | ||
import { CountdownGlobalConfig } from './countdown.config'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./countdown.timer"; | ||
import * as i2 from "./countdown.config"; | ||
import * as i3 from "@angular/common"; | ||
export class CountdownComponent { | ||
@@ -174,4 +171,6 @@ constructor(locale, timer, defCog, cdr, ngZone) { | ||
} | ||
CountdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownComponent, deps: [{ token: LOCALE_ID }, { token: i1.CountdownTimer }, { token: i2.CountdownGlobalConfig }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); | ||
CountdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.2", type: CountdownComponent, selector: "countdown", inputs: { config: "config", render: "render" }, outputs: { event: "event" }, host: { properties: { "class.count-down": "true" } }, usesOnChanges: true, ngImport: i0, template: ` | ||
CountdownComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'countdown', | ||
template: ` | ||
<ng-container *ngIf="!render"> | ||
@@ -181,27 +180,20 @@ <span [innerHTML]="i.text"></span> | ||
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container> | ||
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: 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, | ||
}] | ||
}], ctorParameters: function () { return [{ type: undefined, decorators: [{ | ||
type: Inject, | ||
args: [LOCALE_ID] | ||
}] }, { type: i1.CountdownTimer }, { type: i2.CountdownGlobalConfig }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { config: [{ | ||
type: Input | ||
}], render: [{ | ||
type: Input | ||
}], event: [{ | ||
type: Output | ||
}] } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi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lkIHtcbiAgICB0aGlzLmluaXQoKTtcbiAgICBpZiAoIXRoaXMuY29uZmlnLmRlbWFuZCkge1xuICAgICAgdGhpcy5iZWdpbigpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuaXNEZXN0cm95ID0gdHJ1ZTtcbiAgICB0aGlzLmRlc3Ryb3koKTtcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IHsgW1AgaW4ga2V5b2YgdGhpc10/OiBTaW1wbGVDaGFuZ2UgfSAmIFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICBpZiAoIWNoYW5nZXMuY29uZmlnIS5maXJzdENoYW5nZSkge1xuICAgICAgdGhpcy5yZXN0YXJ0KCk7XG4gICAgfVxuICB9XG59XG4iXX0= | ||
host: { '[class.count-down]': 'true' }, | ||
encapsulation: ViewEncapsulation.None, | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
},] } | ||
]; | ||
CountdownComponent.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; | ||
CountdownComponent.propDecorators = { | ||
config: [{ type: Input }], | ||
render: [{ type: Input }], | ||
event: [{ type: Output }] | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFJTCxNQUFNLEVBQ04sWUFBWSxFQUdaLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIs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NEZXN0cm95ID0gdHJ1ZTtcbiAgICB0aGlzLmRlc3Ryb3koKTtcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IHsgW1AgaW4ga2V5b2YgdGhpc10/OiBTaW1wbGVDaGFuZ2UgfSAmIFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICBpZiAoIWNoYW5nZXMuY29uZmlnIS5maXJzdENoYW5nZSkge1xuICAgICAgdGhpcy5yZXN0YXJ0KCk7XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -17,11 +17,9 @@ // tslint:disable: no-inferrable-types | ||
} | ||
CountdownGlobalConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
CountdownGlobalConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, decorators: [{ | ||
type: Injectable, | ||
args: [{ providedIn: 'root' }] | ||
}], ctorParameters: function () { return [{ type: undefined, decorators: [{ | ||
type: Inject, | ||
args: [LOCALE_ID] | ||
}] }]; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzQ0FBc0M7QUFDdEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUF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h7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIENvdW50ZG93bkdsb2JhbENvbmZpZyBpbXBsZW1lbnRzIENvdW50ZG93bkNvbmZpZyB7XG4gIGNvbnN0cnVjdG9yKEBJbmplY3QoTE9DQUxFX0lEKSBwcml2YXRlIGxvY2FsZTogc3RyaW5nKSB7fVxuXG4gIGRlbWFuZD86IGJvb2xlYW4gPSBmYWxzZTtcblxuICBsZWZ0VGltZT86IG51bWJlciA9IDA7XG5cbiAgZm9ybWF0Pzogc3RyaW5nID0gJ0hIOm1tOnNzJztcblxuICB0aW1lem9uZT86IHN0cmluZyA9ICcrMDAwMCc7XG5cbiAgZm9ybWF0RGF0ZT86IENvdW50ZG93bkZvcm1hdEZuID0gKHsgZGF0ZSwgZm9ybWF0U3RyLCB0aW1lem9uZSB9KSA9PiB7XG4gICAgcmV0dXJuIGZvcm1hdERhdGUobmV3IERhdGUoZGF0ZSksIGZvcm1hdFN0ciwgdGhpcy5sb2NhbGUsIHRpbWV6b25lIHx8IHRoaXMudGltZXpvbmUgfHwgJyswMDAwJyk7XG4gIH1cbn1cbiJdfQ== | ||
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,] }] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcH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Db25maWcgfSBmcm9tICcuL2ludGVyZmFjZXMnO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIENvdW50ZG93bkdsb2JhbENvbmZpZyBpbXBsZW1lbnRzIENvdW50ZG93bkNvbmZpZyB7XG4gIGNvbnN0cnVjdG9yKEBJbmplY3QoTE9DQUxFX0lEKSBwcml2YXRlIGxvY2FsZTogc3RyaW5nKSB7fVxuXG4gIGRlbWFuZD86IGJvb2xlYW4gPSBmYWxzZTtcblxuICBsZWZ0VGltZT86IG51bWJlciA9IDA7XG5cbiAgZm9ybWF0Pzogc3RyaW5nID0gJ0hIOm1tOnNzJztcblxuICB0aW1lem9uZT86IHN0cmluZyA9ICcrMDAwMCc7XG5cbiAgZm9ybWF0RGF0ZT86IENvdW50ZG93bkZvcm1hdEZuID0gKHsgZGF0ZSwgZm9ybWF0U3RyLCB0aW1lem9uZSB9KSA9PiB7XG4gICAgcmV0dXJuIGZvcm1hdERhdGUobmV3IERhdGUoZGF0ZSksIGZvcm1hdFN0ciwgdGhpcy5sb2NhbGUsIHRpbWV6b25lIHx8IHRoaXMudGltZXpvbmUgfHwgJyswMDAwJyk7XG4gIH1cbn1cbiJdfQ== |
@@ -5,17 +5,12 @@ import { CommonModule } from '@angular/common'; | ||
import { CountdownTimer } from './countdown.timer'; | ||
import * as i0 from "@angular/core"; | ||
export class CountdownModule { | ||
} | ||
CountdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
CountdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, declarations: [CountdownComponent], imports: [CommonModule], exports: [CountdownComponent] }); | ||
CountdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, providers: [CountdownTimer], imports: [[CommonModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
imports: [CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
}] | ||
}] }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7O0FBUW5ELE1BQU0sT0FBTyxlQUFlOzs0R0FBZixlQUFlOzZHQUFmLGVBQWUsaUJBSFgsa0JBQWtCLGFBRnZCLFlBQVksYUFHWixrQkFBa0I7NkdBRWpCLGVBQWUsYUFKZixDQUFDLGNBQWMsQ0FBQyxZQURsQixDQUFDLFlBQVksQ0FBQzsyRkFLWixlQUFlO2tCQU4zQixRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztvQkFDdkIsU0FBUyxFQUFFLENBQUMsY0FBYyxDQUFDO29CQUMzQixZQUFZLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQztvQkFDbEMsT0FBTyxFQUFFLENBQUMsa0JBQWtCLENBQUM7aUJBQzlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IENvdW50ZG93bkNvbXBvbmVudCB9IGZyb20gJy4vY291bnRkb3duLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBDb3VudGRvd25UaW1lciB9IGZyb20gJy4vY291bnRkb3duLnRpbWVyJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIHByb3ZpZGVyczogW0NvdW50ZG93blRpbWVyXSxcbiAgZGVjbGFyYXRpb25zOiBbQ291bnRkb3duQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0NvdW50ZG93bkNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIENvdW50ZG93bk1vZHVsZSB7fVxuIl19 | ||
CountdownModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zcmMvY291bnRkb3duLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFRbkQsTUFBTSxPQUFPLGVBQWU7OztZQU4zQixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2dCQUN2QixTQUFTLEVBQUUsQ0FBQyxjQUFjLENBQUM7Z0JBQzNCLFlBQVksRUFBRSxDQUFDLGtCQUFrQixDQUFDO2dCQUNsQyxPQUFPLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQzthQUM5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDb3VudGRvd25Db21wb25lbnQgfSBmcm9tICcuL2NvdW50ZG93bi5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ291bnRkb3duVGltZXIgfSBmcm9tICcuL2NvdW50ZG93bi50aW1lcic7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBwcm92aWRlcnM6IFtDb3VudGRvd25UaW1lcl0sXG4gIGRlY2xhcmF0aW9uczogW0NvdW50ZG93bkNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtDb3VudGRvd25Db21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBDb3VudGRvd25Nb2R1bGUge31cbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
import { Injectable } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
import { Injectable, NgZone } from '@angular/core'; | ||
export class CountdownTimer { | ||
@@ -71,7 +70,8 @@ constructor(ngZone) { | ||
} | ||
CountdownTimer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
CountdownTimer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer, decorators: [{ | ||
type: Injectable | ||
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLnRpbWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL3NyYy9jb3VudGRvd24udGltZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7QUFHbkQsTUFBTSxPQUFPLGNBQWM7SUFNekIsWUFBb0IsTUFBYztRQUFkLFdBQU0sR0FBTixNQUFNLENBQVE7UUFMMUIsUUFBRyxHQUF1RCxFQUFFLENBQUM7UUFDN0QsYUFBUSxHQUFzQixFQUFFLENBQUM7UUFDakMsYUFBUSxHQUFHLENBQUMsQ0FBQztRQUNiLFFBQUcsR0FBRyxLQUFLLENBQUM7SUFFaUIsQ0FBQztJQUV0QyxLQUFLO1FBQ0gsSUFBSSxJQUFJLENBQUMsR0FBRyxLQUFLLElBQUksRUFBRTtZQUNyQixPQUFPO1NBQ1I7UUFFRCxJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQztRQUNoQixJQUFJLENBQUMsUUFBUSxHQUFHLENBQUMsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUM1QixJQUFJLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLEdBQUcsRUFBRTtZQUNqQyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDakIsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBRU8sT0FBTztRQUNiLE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQyxNQUFNLEVBQUU7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iAgICB9XG5cbiAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMucHJvY2VzcygpLCBkaWZmKTtcbiAgfVxuXG4gIGFkZChmbjogKCkgPT4gdm9pZCwgZnJlcXVlbmN5OiBudW1iZXIpOiB0aGlzIHtcbiAgICB0aGlzLmNvbW1hbmRzLnB1c2goKCkgPT4ge1xuICAgICAgdGhpcy5mbnMucHVzaChmbik7XG4gICAgICB0aGlzLmZucy5wdXNoKGZyZXF1ZW5jeSA9PT0gMTAwMCA/IDEgOiAwKTtcbiAgICAgIHRoaXMuaW5nID0gdHJ1ZTtcbiAgICB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIHJlbW92ZShmbjogKCkgPT4gdm9pZCk6IHRoaXMge1xuICAgIHRoaXMuY29tbWFuZHMucHVzaCgoKSA9PiB7XG4gICAgICBjb25zdCBpID0gdGhpcy5mbnMuaW5kZXhPZihmbik7XG4gICAgICBpZiAoaSAhPT0gLTEpIHtcbiAgICAgICAgdGhpcy5mbnMuc3BsaWNlKGksIDIpO1xuICAgICAgfVxuICAgICAgdGhpcy5pbmcgPSB0aGlzLmZucy5sZW5ndGggPiAwO1xuICAgIH0pO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG4iXX0= | ||
CountdownTimer.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
CountdownTimer.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRkb3duLnRpbWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL3NyYy9jb3VudGRvd24udGltZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHbkQsTUFBTSxPQUFPLGNBQWM7SUFNekIsWUFBb0IsTUFBYztRQ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KGZuKTtcbiAgICAgIGlmIChpICE9PSAtMSkge1xuICAgICAgICB0aGlzLmZucy5zcGxpY2UoaSwgMik7XG4gICAgICB9XG4gICAgICB0aGlzLmluZyA9IHRoaXMuZm5zLmxlbmd0aCA+IDA7XG4gICAgfSk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cbn1cbiJdfQ== |
import * as i0 from '@angular/core'; | ||
import { LOCALE_ID, Injectable, Inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core'; | ||
import * as i3 from '@angular/common'; | ||
import { Injectable, NgZone, Inject, LOCALE_ID, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core'; | ||
import { formatDate, CommonModule } from '@angular/common'; | ||
@@ -14,25 +13,2 @@ | ||
// tslint:disable: no-inferrable-types | ||
class CountdownGlobalConfig { | ||
constructor(locale) { | ||
this.locale = locale; | ||
this.demand = false; | ||
this.leftTime = 0; | ||
this.format = 'HH:mm:ss'; | ||
this.timezone = '+0000'; | ||
this.formatDate = ({ date, formatStr, timezone }) => { | ||
return formatDate(new Date(date), formatStr, this.locale, timezone || this.timezone || '+0000'); | ||
}; | ||
} | ||
} | ||
CountdownGlobalConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
CountdownGlobalConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownGlobalConfig, decorators: [{ | ||
type: Injectable, | ||
args: [{ providedIn: 'root' }] | ||
}], ctorParameters: function () { return [{ type: undefined, decorators: [{ | ||
type: Inject, | ||
args: [LOCALE_ID] | ||
}] }]; } }); | ||
class CountdownTimer { | ||
@@ -106,8 +82,30 @@ constructor(ngZone) { | ||
} | ||
CountdownTimer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
CountdownTimer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownTimer, decorators: [{ | ||
type: Injectable | ||
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } }); | ||
CountdownTimer.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
CountdownTimer.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
// tslint:disable: no-inferrable-types | ||
class CountdownGlobalConfig { | ||
constructor(locale) { | ||
this.locale = locale; | ||
this.demand = false; | ||
this.leftTime = 0; | ||
this.format = 'HH:mm:ss'; | ||
this.timezone = '+0000'; | ||
this.formatDate = ({ date, formatStr, timezone }) => { | ||
return formatDate(new Date(date), formatStr, this.locale, timezone || this.timezone || '+0000'); | ||
}; | ||
} | ||
} | ||
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,] }] } | ||
]; | ||
class CountdownComponent { | ||
@@ -279,4 +277,6 @@ constructor(locale, timer, defCog, cdr, ngZone) { | ||
} | ||
CountdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownComponent, deps: [{ token: LOCALE_ID }, { token: CountdownTimer }, { token: CountdownGlobalConfig }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); | ||
CountdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.2", type: CountdownComponent, selector: "countdown", inputs: { config: "config", render: "render" }, outputs: { event: "event" }, host: { properties: { "class.count-down": "true" } }, usesOnChanges: true, ngImport: i0, template: ` | ||
CountdownComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'countdown', | ||
template: ` | ||
<ng-container *ngIf="!render"> | ||
@@ -286,42 +286,31 @@ <span [innerHTML]="i.text"></span> | ||
<ng-container *ngTemplateOutlet="render; context: { $implicit: i }"></ng-container> | ||
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: 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, | ||
}] | ||
}], ctorParameters: function () { return [{ type: undefined, decorators: [{ | ||
type: Inject, | ||
args: [LOCALE_ID] | ||
}] }, { type: CountdownTimer }, { type: CountdownGlobalConfig }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { config: [{ | ||
type: Input | ||
}], render: [{ | ||
type: Input | ||
}], event: [{ | ||
type: Output | ||
}] } }); | ||
host: { '[class.count-down]': 'true' }, | ||
encapsulation: ViewEncapsulation.None, | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
},] } | ||
]; | ||
CountdownComponent.ctorParameters = () => [ | ||
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }, | ||
{ type: CountdownTimer }, | ||
{ type: CountdownGlobalConfig }, | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone } | ||
]; | ||
CountdownComponent.propDecorators = { | ||
config: [{ type: Input }], | ||
render: [{ type: Input }], | ||
event: [{ type: Output }] | ||
}; | ||
class CountdownModule { | ||
} | ||
CountdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
CountdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, declarations: [CountdownComponent], imports: [CommonModule], exports: [CountdownComponent] }); | ||
CountdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, providers: [CountdownTimer], imports: [[CommonModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.2", ngImport: i0, type: CountdownModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
imports: [CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
}] | ||
}] }); | ||
CountdownModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [CommonModule], | ||
providers: [CountdownTimer], | ||
declarations: [CountdownComponent], | ||
exports: [CountdownComponent], | ||
},] } | ||
]; | ||
@@ -328,0 +317,0 @@ /** |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="ngx-countdown" /> | ||
export * from './public_api'; |
{ | ||
"name": "ngx-countdown", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "Simple, easy and performance countdown for angular", | ||
@@ -29,2 +29,3 @@ "keywords": [ | ||
"typings": "ngx-countdown.d.ts", | ||
"metadata": "ngx-countdown.metadata.json", | ||
"sideEffects": false, | ||
@@ -31,0 +32,0 @@ "dependencies": { |
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
138091
32
1186