UNPKG

@ohayojp.com/components

Version:

Common business components of ohayojp.

7 lines 3.02 kB
/** * @license ohayojp(cipchk@qq.com) v1.0.0 * (c) 2020 cipchk https://ohayojp.com/ * License: MIT */ !function (e, t) { "object" == typeof exports && "undefined" != typeof module ? t(exports, require("@angular/core"), require("@angular/common"), require("@ohayojp.com/util"), require("ng-zorro-antd/core/outlet"), require("ng-zorro-antd/icon")) : "function" == typeof define && define.amd ? define("@ohayojp.com/components/result", ["exports", "@angular/core", "@angular/common", "@ohayojp.com/util", "ng-zorro-antd/core/outlet", "ng-zorro-antd/icon"], t) : t(((e = "undefined" != typeof globalThis ? globalThis : e || self).ohayo = e.ohayo || {}, e.ohayo.components = e.ohayo.components || {}, e.ohayo.components.result = {}), e.ng.core, e.ng.common, e.ohayo.util, e["ng-zorro-antd/core/outlet"], e["ng-zorro-antd/icon"]) }(this, (function (e, t, n, o, r, i) { "use strict"; var c = function () { function e() { this._type = "", this._icon = "" } return Object.defineProperty(e.prototype, "type", { set: function (e) { switch (this._type = e, e) { case "success": this._icon = "check-circle"; break; case "error": this._icon = "close-circle"; break; default: this._icon = e } }, enumerable: !1, configurable: !0 }), e }(); c.decorators = [{ type: t.Component, args: [{ selector: "result", exportAs: "result", template: '<div class="result__icon">\n <i nz-icon [nzType]="_icon" class="result__icon-{{ _type }}"></i>\n</div>\n<div class="result__title">\n <ng-container *nzStringTemplateOutlet="title">{{ title }}</ng-container>\n</div>\n<div *ngIf="description" class="result__desc">\n <ng-container *nzStringTemplateOutlet="description">{{ description }}</ng-container>\n</div>\n<div *ngIf="extra" class="result__extra">\n <ng-container *nzStringTemplateOutlet="extra">{{ extra }}</ng-container>\n</div>\n<div class="result__actions">\n <ng-content></ng-content>\n</div>\n', host: { "[class.result]": "true" }, preserveWhitespaces: !1, changeDetection: t.ChangeDetectionStrategy.OnPush, encapsulation: t.ViewEncapsulation.None }] }], c.propDecorators = { type: [{ type: t.Input }], title: [{ type: t.Input }], description: [{ type: t.Input }], extra: [{ type: t.Input }] }; Object.create; function a(e, t) { var n = "function" == typeof Symbol && e[Symbol.iterator]; if (!n) return e; var o, r, i = n.call(e), c = []; try { for (; (void 0 === t || t-- > 0) && !(o = i.next()).done;)c.push(o.value) } catch (e) { r = { error: e } } finally { try { o && !o.done && (n = i.return) && n.call(i) } finally { if (r) throw r.error } } return c } function l() { for (var e = [], t = 0; t < arguments.length; t++)e = e.concat(a(arguments[t])); return e } Object.create; var s = [c], u = function () { }; u.decorators = [{ type: t.NgModule, args: [{ imports: [n.CommonModule, i.NzIconModule, o.OhayoUtilModule, r.NzOutletModule], declarations: l(s), exports: l(s) }] }], e.ResultComponent = c, e.ResultModule = u, Object.defineProperty(e, "__esModule", { value: !0 }) })); //# sourceMappingURL=result.umd.min.js.map