UNPKG

@lxlib/chart

Version:

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

16 lines (14 loc) 4.88 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@lxlib/util"),require("@angular/common"),require("ng-zorro-antd/card"),require("ng-zorro-antd/core/outlet"),require("ng-zorro-antd/spin")):"function"==typeof define&&define.amd?define("@lxlib/chart/card",["exports","@angular/core","@lxlib/util","@angular/common","ng-zorro-antd/card","ng-zorro-antd/core/outlet","ng-zorro-antd/spin"],e):e(((t=t||self).lxlib=t.lxlib||{},t.lxlib.chart=t.lxlib.chart||{},t.lxlib.chart.card={}),t.ng.core,t.lxlib.util,t.ng.common,t["ng-zorro-antd/card"],t["ng-zorro-antd/core/outlet"],t["ng-zorro-antd/spin"])}(this,(function(t,e,n,r,o,a,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 c(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}var g=function(){function t(t){this.cdr=t,this.bordered=!1,this.total="",this._height="auto",this.loading=!1}return Object.defineProperty(t.prototype,"contentHeight",{set:function(t){this._orgHeight=t,this._height="number"==typeof t?this._height=t+"px":t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.cdr.detectChanges()},t.decorators=[{type:e.Component,args:[{selector:"g2-card",exportAs:"g2Card",template:'<nz-card [nzBodyStyle]="{padding: \'20px 24px 8px 24px\'}" [nzBordered]="bordered">\n <nz-spin [nzSpinning]="loading">\n <div class="g2-card__top">\n <div class="g2-card__avatar">\n <ng-container *nzStringTemplateOutlet="avatar">{{avatar}}</ng-container>\n </div>\n <div class="g2-card__meta-wrap">\n <div class="g2-card__meta">\n <span class="g2-card__meta-title" *ngIf="title">\n <ng-container *nzStringTemplateOutlet="title">{{title}}</ng-container>\n </span>\n <span class="g2-card__meta-action" *ngIf="action">\n <ng-container *nzStringTemplateOutlet="action">{{action}}</ng-container>\n </span>\n </div>\n <p *ngIf="total" class="g2-card__total">{{total}}</p>\n </div>\n </div>\n <div class="g2-card__desc" [ngStyle]="{\'height\':_height}">\n <div [ngClass]="{\'g2-card__fixed\': !!_orgHeight }">\n <ng-content></ng-content>\n </div>\n </div>\n <div class="g2-card__footer" *ngIf="footer">\n <ng-container *nzStringTemplateOutlet="footer">{{footer}}</ng-container>\n </div>\n </nz-spin>\n</nz-card>\n',host:{"[class.g2-card]":"true"},preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t.propDecorators={bordered:[{type:e.Input}],avatar:[{type:e.Input}],title:[{type:e.Input}],action:[{type:e.Input}],total:[{type:e.Input}],contentHeight:[{type:e.Input}],footer:[{type:e.Input}],loading:[{type:e.Input}]},c([n.InputBoolean(),l("design:type",Object)],t.prototype,"bordered",void 0),c([n.InputBoolean(),l("design:type",Object)],t.prototype,"loading",void 0),t}();var u=[g],s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[r.CommonModule,n.LxlibUtilModule,o.NzCardModule,i.NzSpinModule,a.NzOutletModule],declarations:p(u),exports:p(u)}]}],t}();t.G2CardComponent=g,t.G2CardModule=s,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=card.umd.min.js.map