Repository URL to install this package:
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Component, Input } from '@angular/core';
import { NGXLogger } from 'web-console-core';
/** @type {?} */
var LOG_TAG = '[WCStatsInfoComponent]';
/**
* @record
*/
export function WCStatsInfoItem() { }
if (false) {
/** @type {?} */
WCStatsInfoItem.prototype.label;
/** @type {?} */
WCStatsInfoItem.prototype.value;
/** @type {?|undefined} */
WCStatsInfoItem.prototype.hidden;
/** @type {?|undefined} */
WCStatsInfoItem.prototype.cssClass;
/** @type {?|undefined} */
WCStatsInfoItem.prototype.color;
}
/**
* @record
*/
export function WCStatsInfoModel() { }
if (false) {
/** @type {?} */
WCStatsInfoModel.prototype.items;
}
var WCStatsInfoComponent = /** @class */ (function () {
function WCStatsInfoComponent(logger) {
this.logger = logger;
this.model = { items: [] };
}
/**
* @return {?}
*/
WCStatsInfoComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
WCStatsInfoComponent.decorators = [
{ type: Component, args: [{
selector: 'wc-stats-info-component',
template: "<div class=\"wc-stats-info-container\">\n\n <div *ngFor=\"let item of model.items\" class=\"wc-stats-info-item-container {{item.cssClass}}\">\n <span *ngIf=\"!(item.hidden)\" class=\"wc-stats-info-item-value\" [ngStyle]=\"{'color': item.color }\">{{item.value}}<a>{{item.label}}</a></span>\n </div>\n \n</div>",
styles: [".wc-stats-info-container{position:absolute;top:65px;right:17px;display:flex;flex-direction:row;font-family:montserrat}.wc-stats-info-item-container{flex:1;display:flex;flex-direction:row;margin-right:10px}.wc-stats-info-item-container span{white-space:nowrap;margin-right:4px;font-size:1.8rem}.wc-stats-info-item-container span a{white-space:nowrap;margin-left:4px;font-size:.9rem}.green-stats-info{color:#5db85d}.gray-stats-info{color:gray}.red-stats-info{color:#f62626}"]
}] }
];
/** @nocollapse */
WCStatsInfoComponent.ctorParameters = function () { return [
{ type: NGXLogger }
]; };
WCStatsInfoComponent.propDecorators = {
model: [{ type: Input, args: ['model',] }]
};
return WCStatsInfoComponent;
}());
export { WCStatsInfoComponent };
if (false) {
/** @type {?} */
WCStatsInfoComponent.prototype.model;
/**
* @type {?}
* @private
*/
WCStatsInfoComponent.prototype.logger;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHMtaW5mby1jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9tb3RpZi13ZWItYWRtaW4tY29yZS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL1N0YXRzL3N0YXRzLWluZm8tY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBd0IsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGtCQUFrQixDQUFDOztJQUV2QyxPQUFPLEdBQUcsd0JBQXdCOzs7O0FBRXhDLHFDQU1DOzs7SUFMRyxnQ0FBYzs7SUFDZCxnQ0FBYzs7SUFDZCxpQ0FBaUI7O0lBQ2pCLG1DQUFrQjs7SUFDbEIsZ0NBQWU7Ozs7O0FBR25CLHNDQUVDOzs7SUFERyxpQ0FBOEI7O0FBR2xDO0lBVUksOEJBQW9CLE1BQWlCO1FBQWpCLFdBQU0sR0FBTixNQUFNLENBQVc7UUFGOUIsVUFBSyxHQUFvQixFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsQ0FBQztJQUd2QyxDQUFDOzs7O0lBRVIsdUNBQVE7OztJQUFSO0lBQ0EsQ0FBQzs7Z0JBZEosU0FBUyxTQUFDO29CQUNQLFFBQVEsRUFBRSx5QkFBeUI7b0JBRW5DLDhWQUEwQzs7aUJBQzdDOzs7O2dCQXBCUSxTQUFTOzs7d0JBdUJiLEtBQUssU0FBQyxPQUFPOztJQVVsQiwyQkFBQztDQUFBLEFBakJELElBaU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