{"size": 2265, "ext": "js", "max_stars_repo_path": "node_modules/openui5.runtime.downloader/lib/1.46.9/resources/sap/m/StandardListItemRenderer.js", "max_stars_repo_name": "acastropardo/openui5node", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/openui5.runtime.downloader/lib/1.46.9/resources/sap/m/StandardListItemRenderer.js", "max_issues_repo_name": "acastropardo/openui5node", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/openui5.runtime.downloader/lib/1.46.9/resources/sap/m/StandardListItemRenderer.js", "max_forks_repo_name": "acastropardo/openui5node", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 323.5714285714, "max_line_length": 2078, "alphanum_fraction": 0.6971302428}
/*!
 * UI development toolkit for HTML5 (OpenUI5)
 * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['./ListItemBaseRenderer','sap/ui/core/Renderer','sap/m/library','sap/ui/core/library'],function(L,R,l,c){"use strict";var T=c.TextDirection;var a=l.ListType;var S=R.extend(L);S.renderLIAttributes=function(r,o){r.addClass("sapMSLI");if(o.getIcon()){r.addClass("sapMSLIIcon");}if(!o.getIconInset()){r.addClass("sapMSLIIconThumb");}if((o.getDescription()||!o.getAdaptTitleSize())&&o.getIcon()&&o.getIconInset()){r.addClass("sapMSLIDescIcon");}if((o.getDescription()||!o.getAdaptTitleSize())&&!o.getIcon()){r.addClass("sapMSLIDescNoIcon");}if(!o.getDescription()&&o.getIcon()){r.addClass("sapMSLINoDescIcon");}if(o.getType()==a.Detail||o.getType()==a.DetailAndActive){r.addClass("sapMSLIDetail");}};S.renderLIContent=function(r,o){var i=o.getInfo(),I=o.getInfoTextDirection(),t=o.getTitleTextDirection(),d=o.getTitle()&&(o.getDescription()||!o.getAdaptTitleSize());if(o.getIcon()){r.renderControl(o._getImage());}if(d){r.write('<div class="sapMSLIDiv">');}r.write("<div");if(!d){r.addClass("sapMSLIDiv");}r.addClass("sapMSLITitleDiv");r.writeClasses();r.write(">");r.write("<div");r.addClass(d?"sapMSLITitle":"sapMSLITitleOnly");r.writeClasses();if(t!==T.Inherit){r.writeAttribute("dir",t.toLowerCase());}r.write(">");r.writeEscaped(o.getTitle());r.write("</div>");if(i&&!d){r.write("<div");r.writeAttribute("id",o.getId()+"-info");r.addClass("sapMSLIInfo");r.addClass("sapMSLIInfo"+o.getInfoState());r.writeClasses();if(I!==T.Inherit){r.writeAttribute("dir",I.toLowerCase());}r.write(">");r.writeEscaped(i);r.write("</div>");}r.write("</div>");r.write('<div class="sapMSLIDescriptionDiv">');if(d){r.write('<div class="sapMSLIDescription">');if(o.getDescription()){r.writeEscaped(o.getDescription());}else{r.write("&nbsp;");}r.write("</div>");}if(i&&d){r.write("<div");r.writeAttribute("id",o.getId()+"-info");r.addClass("sapMSLIInfo");r.addClass("sapMSLIInfo"+o.getInfoState());r.writeClasses();if(I!==T.Inherit){r.writeAttribute("dir",I.toLowerCase());}r.write(">");r.writeEscaped(i);r.write("</div>");}r.write("</div>");if(d){r.write("</div>");}};return S;},true);
