UNPKG

@ohayojp.com/components

Version:

Common business components of ohayojp.

7 lines 2.63 kB
/** * @license ohayojp(cipchk@qq.com) v1.0.0 * (c) 2020 cipchk https://ohayojp.com/ * License: MIT */ !function (e, o) { "object" == typeof exports && "undefined" != typeof module ? o(exports, require("@angular/core"), require("date-fns/addSeconds"), require("date-fns/format"), require("@angular/common"), require("ngx-countdown")) : "function" == typeof define && define.amd ? define("@ohayojp.com/components/count-down", ["exports", "@angular/core", "date-fns/addSeconds", "date-fns/format", "@angular/common", "ngx-countdown"], o) : o(((e = "undefined" != typeof globalThis ? globalThis : e || self).ohayo = e.ohayo || {}, e.ohayo.components = e.ohayo.components || {}, e.ohayo.components["count-down"] = {}), e.ng.core, e.addSeconds, e.format, e.ng.common, e.ngxCountDown) }(this, (function (e, o, n, t, r, a) { "use strict"; function c(e) { return e && "object" == typeof e && "default" in e ? e : { default: e } } var u = c(n), i = c(t), f = function () { function e() { this.event = new o.EventEmitter } return Object.defineProperty(e.prototype, "target", { set: function (e) { this.config = { format: "HH:mm:ss", stopTime: "number" == typeof e ? u.default(new Date, e).valueOf() : +i.default(e, "t") } }, enumerable: !1, configurable: !0 }), e.prototype.handleEvent = function (e) { this.event.emit(e) }, e }(); f.decorators = [{ type: o.Component, args: [{ selector: "count-down", exportAs: "countDown", template: ' <countdown #cd *ngIf="config" [config]="config" (event)="handleEvent($event)"></countdown> ', preserveWhitespaces: !1, changeDetection: o.ChangeDetectionStrategy.OnPush, encapsulation: o.ViewEncapsulation.None }] }], f.propDecorators = { instance: [{ type: o.ViewChild, args: ["cd", { static: !1 }] }], config: [{ type: o.Input }], target: [{ type: o.Input }], event: [{ type: o.Output }] }; Object.create; function d(e, o) { var n = "function" == typeof Symbol && e[Symbol.iterator]; if (!n) return e; var t, r, a = n.call(e), c = []; try { for (; (void 0 === o || o-- > 0) && !(t = a.next()).done;)c.push(t.value) } catch (e) { r = { error: e } } finally { try { t && !t.done && (n = a.return) && n.call(a) } finally { if (r) throw r.error } } return c } function s() { for (var e = [], o = 0; o < arguments.length; o++)e = e.concat(d(arguments[o])); return e } Object.create; var l = [f], p = function () { }; p.decorators = [{ type: o.NgModule, args: [{ imports: [r.CommonModule, a.CountdownModule], declarations: s(l), exports: s(l) }] }], e.CountDownComponent = f, e.CountDownModule = p, Object.defineProperty(e, "__esModule", { value: !0 }) })); //# sourceMappingURL=count-down.umd.min.js.map