@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.32 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@lxlib/util"),require("@angular/common"),require("ng-zorro-antd/core/outlet"),require("ng-zorro-antd/icon")):"function"==typeof define&&define.amd?define("@lxlib/chart/number-info",["exports","@angular/core","@lxlib/util","@angular/common","ng-zorro-antd/core/outlet","ng-zorro-antd/icon"],t):t(((e=e||self).lxlib=e.lxlib||{},e.lxlib.chart=e.lxlib.chart||{},e.lxlib.chart["number-info"]={}),e.ng.core,e.lxlib.util,e.ng.common,e["ng-zorro-antd/core/outlet"],e["ng-zorro-antd/icon"])}(this,(function(e,t,n,o,r,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){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)l.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 l}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var c=function(){function e(e,t){this.el=e,this.renderer=t,this.theme="light",this.gap=8}return e.prototype.setClass=function(){var e,t=this.el,o=this.renderer,r=this.theme;n.updateHostClass(t.nativeElement,o,((e={"number-info":!0})["number-info__"+r]=!0,e),!0)},e.prototype.ngOnChanges=function(){this.setClass()},e.decorators=[{type:t.Component,args:[{selector:"number-info",exportAs:"numberInfo",template:'<div *ngIf="title" class="number-info__title">\n <ng-container *nzStringTemplateOutlet="title">{{title}}</ng-container>\n</div>\n<div *ngIf="subTitle" class="number-info__title-sub">\n <ng-container *nzStringTemplateOutlet="subTitle">{{subTitle}}</ng-container>\n</div>\n<div class="number-info__value" [ngStyle]="{\'margin-top.px\': gap}">\n <span class="number-info__value-text">\n <ng-container *nzStringTemplateOutlet="total">{{total}}</ng-container>\n <em class="number-info__value-suffix" *ngIf="suffix">{{suffix}}</em>\n </span>\n <span *ngIf="status || subTotal" class="number-info__value-text number-info__value-sub">\n <ng-container *nzStringTemplateOutlet="subTotal">{{subTotal}}</ng-container>\n <i *ngIf="status" nz-icon nzType="caret-{{status}}"></i>\n </span>\n</div>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},e.propDecorators={title:[{type:t.Input}],subTitle:[{type:t.Input}],total:[{type:t.Input}],subTotal:[{type:t.Input}],suffix:[{type:t.Input}],status:[{type:t.Input}],theme:[{type:t.Input}],gap:[{type:t.Input}]},function(e,t,n,o){var r,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(l=(i<3?r(l):i>3?r(t,n,l):r(t,n))||l);i>3&&l&&Object.defineProperty(t,n,l)}([n.InputNumber(),l("design:type",Object)],e.prototype,"gap",void 0),e}();var s=[c],f=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[o.CommonModule,i.NzIconModule,n.LxlibUtilModule,r.NzOutletModule],declarations:u(s),exports:u(s)}]}],e}();e.NumberInfoComponent=c,e.NumberInfoModule=f,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=number-info.umd.min.js.map