var Unibase; (function (Unibase) { let Themes; (function (Themes) { let Compact; (function (Compact) { let KpiWidgets; (function (KpiWidgets) { class Twovaluecenterline extends KpiWidgets.Manager.KpiManager { jsFiles() { return []; } cssFiles() { return []; } html(id, containerid) { let title = id[0].WidgetName, html = ''; if (id[0].PortletWidgetId == 22501 || id[0].PortletWidgetId == 2250) { html = ''; } else { html = ''; } return html; } load(id, containerid, callback) { let instance = this; instance._load(id, containerid, null); } _loadData(portletwidgetid, Container, parameters, IsPreview, response, portletresponse) { let instance = this; instance.loadData(portletwidgetid, Container, parameters, IsPreview, response, portletresponse); } _styling(portletwidgetid, Container, response) { let cssproperty = JSON.parse(response.result.CssProperty); let height = response.result.KpiHeight + 'px'; $(Container).find('.kpi_card_class_' + portletwidgetid).css({ "background-color": cssproperty[0].BackgroundColor, "border-width": cssproperty[0].BorderWidth, "border-style": cssproperty[0].BorderType, "border-color": cssproperty[0].BorderColor, "border-radius": cssproperty[0].BorderRadius, "height": height }); $(Container).find(".kpivalue_" + portletwidgetid + '[data-valuebind="Value-1"]').css({ "font-size": cssproperty[0].FontSize + "px", "font-family": cssproperty[0].FontStyle }); $(Container).find(".kpivalue_" + portletwidgetid + '[data-valuebind="Value-2"]').css({ "font-size": cssproperty[0].FontSize + "px", "font-family": cssproperty[0].FontStyle }); } static Instance() { if (this.instance === null || this.instance === undefined) this.instance = new Twovaluecenterline(); return this.instance; } } KpiWidgets.Twovaluecenterline = Twovaluecenterline; })(KpiWidgets = Compact.KpiWidgets || (Compact.KpiWidgets = {})); })(Compact = Themes.Compact || (Themes.Compact = {})); })(Themes = Unibase.Themes || (Unibase.Themes = {})); })(Unibase || (Unibase = {}));