Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

twovaluecenterline.js 6.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. var Unibase;
  2. (function (Unibase) {
  3. let Themes;
  4. (function (Themes) {
  5. let Compact;
  6. (function (Compact) {
  7. let KpiWidgets;
  8. (function (KpiWidgets) {
  9. class Twovaluecenterline extends KpiWidgets.Manager.KpiManager {
  10. jsFiles() {
  11. return [];
  12. }
  13. cssFiles() {
  14. return [];
  15. }
  16. html(id, containerid) {
  17. let title = id[0].WidgetName, html = '';
  18. if (id[0].PortletWidgetId == 22501 || id[0].PortletWidgetId == 2250) {
  19. html = '<ul class="position-relative p-2 overflow-hide bgcolorset_' + id[0].PortletWidgetId + ' kpi_card_class_' + id[0].PortletWidgetId + ' kpi-card" style="background-color:#d8fcd9;border-color:#b0ecb2;border-style:solid; border-width:1px; height:180px"><li class="kpi-link-report"><a href="javascript:void(0);" onclick="Unibase.Themes.Compact.KpiWidgets.Manager.KpiManager.Instance().linkReport(' + id[0].WidgetId + ',' + id[0].PortletWidgetId + ',' + containerid + ')"><small class="showreport_' + id[0].PortletWidgetId + '" data-LinkReport="LinkReport"><span class="nav-icon-wrap LinkReport_' + id[0].PortletWidgetId + '"><i class="font-14 dripicons dripicons-graph-pie text-dark"></i></span></small></a></li><li class="d-flex flex-column kpivalue_1_' + id[0].PortletWidgetId + '"><ul class="d-flex justify-content-between align-items-center"><li><span class="kpivalueLabel_' + id[0].PortletWidgetId + '" data-valuelabelbind="Value-1" data-kpi="kpi_font">Total Meetings</span></li></ul><ul class="d-flex justify-content-between"><li class="text-truncate"><span class="text-dark textProperty_' + id[0].PortletWidgetId + ' kpivalue_' + id[0].PortletWidgetId + '" data-valuebind="Value-1" style="font-size:32px">00</span></li><li><span class="my-auto ml-auto pr-3" id="config_widget_' + id[0].PortletWidgetId + '"></span></li></ul></li><li class="d-flex flex-column border border-bottom-0 border-left-0 border-right-0 border-light-40 kpivalue_2_' + id[0].PortletWidgetId + '"><ul class="d-flex justify-content-between"><li><span class="kpivalueLabel_' + id[0].PortletWidgetId + '" data-valuelabelbind="Value-2" data-kpi="kpi_font">Total Participants</span></li></ul><ul class="d-flex justify-content-between"><li class="text-truncate"><span class="text-dark textProperty_' + id[0].PortletWidgetId + ' kpivalue_' + id[0].PortletWidgetId + ' text-truncate" data-valuebind="Value-2" style="font-size:32px">00</span></li></ul></li></ul>';
  20. }
  21. else {
  22. html = '<ul class="position-relative p-2 d-flex px-20 flex-column justify-content-between overflow-hide bgcolorset_' + id[0].PortletWidgetId + ' kpi_card_class_' + id[0].PortletWidgetId + ' kpi-card" style="background-color:#fff;"><li class="kpi-link-report"><a href="javascript:void(0);" onclick="Unibase.Themes.Compact.KpiWidgets.Manager.KpiManager.Instance().linkReport(' + id[0].WidgetId + ',' + id[0].PortletWidgetId + ',' + containerid + ')"><small class="showreport_' + id[0].PortletWidgetId + '" data-LinkReport="LinkReport"><span class="nav-icon-wrap LinkReport_' + id[0].PortletWidgetId + '"><i class="font-14 dripicons dripicons-graph-pie text-dark"></i></span></small></a></li><li class="d-flex flex-column h-100"><ul class="d-flex justify-content-between align-items-center"><li><span class="kpivalueLabel_' + id[0].PortletWidgetId + '" data-valuelabelbind="Value-1" data-kpi="kpi_font">Total Meetings</span></li></ul><ul class="d-flex justify-content-between my-auto"><li><span class=" line-height-10 text-dark textProperty_' + id[0].PortletWidgetId + ' kpivalue_' + id[0].PortletWidgetId + '" data-valuebind="Value-1" style="font-size:26px">00</span></li><li><span class="my-auto ml-auto pr-3" id="config_widget_' + id[0].PortletWidgetId + '"></span></li></ul></li><li style="height:3px;" class="kpivalue_2_' + id[0].PortletWidgetId + ' border border-bottom-0 border-left-0 border-right-0 border-light-40"></li><li class="d-flex flex-column h-100 kpivalue_2_' + id[0].PortletWidgetId + '"><span class="kpivalueLabel_' + id[0].PortletWidgetId + '" data-valuelabelbind="Value-2" data-kpi="kpi_font">Total Participants</span><span class="text-dark my-auto line-height-10 textProperty_' + id[0].PortletWidgetId + ' kpivalue_' + id[0].PortletWidgetId + '" data-valuebind="Value-2" style="font-size:26px">00</span></li></ul>';
  23. }
  24. return html;
  25. }
  26. load(id, containerid, callback) {
  27. let instance = this;
  28. instance._load(id, containerid, null);
  29. }
  30. _loadData(portletwidgetid, Container, parameters, IsPreview, response, portletresponse) {
  31. let instance = this;
  32. instance.loadData(portletwidgetid, Container, parameters, IsPreview, response, portletresponse);
  33. }
  34. _styling(portletwidgetid, Container, response) {
  35. let cssproperty = JSON.parse(response.result.CssProperty);
  36. let height = response.result.KpiHeight + 'px';
  37. $(Container).find('.kpi_card_class_' + portletwidgetid).css({
  38. "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
  39. });
  40. $(Container).find(".kpivalue_" + portletwidgetid + '[data-valuebind="Value-1"]').css({ "font-size": cssproperty[0].FontSize + "px", "font-family": cssproperty[0].FontStyle });
  41. $(Container).find(".kpivalue_" + portletwidgetid + '[data-valuebind="Value-2"]').css({ "font-size": cssproperty[0].FontSize + "px", "font-family": cssproperty[0].FontStyle });
  42. }
  43. static Instance() {
  44. if (this.instance === null || this.instance === undefined)
  45. this.instance = new Twovaluecenterline();
  46. return this.instance;
  47. }
  48. }
  49. KpiWidgets.Twovaluecenterline = Twovaluecenterline;
  50. })(KpiWidgets = Compact.KpiWidgets || (Compact.KpiWidgets = {}));
  51. })(Compact = Themes.Compact || (Themes.Compact = {}));
  52. })(Themes = Unibase.Themes || (Unibase.Themes = {}));
  53. })(Unibase || (Unibase = {}));