UNPKG

@lxlib/seed

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

16 lines (14 loc) 3.39 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@lxlib/util"),require("ng-zorro-antd/core/outlet"),require("ng-zorro-antd/icon")):"function"==typeof define&&define.amd?define("@lxlib/seed/result",["exports","@angular/core","@angular/common","@lxlib/util","ng-zorro-antd/core/outlet","ng-zorro-antd/icon"],t):t(((e=e||self).lxlib=e.lxlib||{},e.lxlib.seed=e.lxlib.seed||{},e.lxlib.seed.result={}),e.ng.core,e.ng.common,e.lxlib.util,e["ng-zorro-antd/core/outlet"],e["ng-zorro-antd/icon"])}(this,(function(e,t,n,r,o,i){"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. ***************************************************************************** */function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var s=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:!0,configurable:!0}),e.decorators=[{type:t.Component,args:[{selector:"result",exportAs:"result",template:'<div class="result__icon">\n <i nz-icon\n [nzType]="_icon"\n 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"\n class="result__desc">\n <ng-container *nzStringTemplateOutlet="description">{{description}}</ng-container>\n</div>\n<div *ngIf="extra"\n 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}]}],e.propDecorators={type:[{type:t.Input}],title:[{type:t.Input}],description:[{type:t.Input}],extra:[{type:t.Input}]},e}();var a=[s],u=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.NzIconModule,r.LxlibUtilModule,o.NzOutletModule],declarations:c(a),exports:c(a)}]}],e}();e.ResultComponent=s,e.ResultModule=u,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=result.umd.min.js.map