/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/core/Renderer","sap/ui/core/library","sap/ui/Device","./library","./ListItemBaseRenderer","./Label","sap/base/Log","sap/base/security/encodeXML"],function(R,c,D,l,L,a,b,e){"use strict";var P=l.PopinDisplay;var V=c.VerticalAlign;var d=l.PopinLayout;var C=R.extend(L);C.render=function(r,o){var t=o.getTable();if(!t){return;}L.render.apply(this,arguments);if(o.getVisible()&&t.hasPopin()){this.renderPopin(r,o,t);}};C.renderHighlight=function(r,o){r.write('');L.renderHighlight.apply(this,arguments);r.write('');};C.renderType=function(r,o){r.write('');L.renderType.apply(this,arguments);r.write('');};C.renderModeContent=function(r,o){r.write('');L.renderModeContent.apply(this,arguments);r.write('');};C.renderCounter=function(r,o){};C.getAriaRole=function(o){return"";};C.renderLIAttributes=function(r,o){r.addClass("sapMListTblRow");var A=o.getVAlign();if(A!=V.Inherit){r.addClass("sapMListTblRow"+A);}var t=o.getTable();if(t&&t.getAlternateRowColors()){var p=t.indexOfItem(o);if(p%2==0){r.addClass("sapMListTblRowAlternate");}}};C.renderLIContentWrapper=function(r,o){var t=o.getTable();if(!t){return;}var f=t.getColumns(true),g=o.getCells();o._destroyClonedHeaders();f.forEach(function(h,i){var j,H,k=true,m=g[h.getInitialOrder()];if(!m||!h.getVisible()||h.isPopin()){h.setIndex(-1);return;}r.write("");if(k){this.applyAriaLabelledBy(H,m);r.renderControl(m);}r.write("");},this);};C.applyAriaLabelledBy=function(h,o){if(o&&o.removeAriaLabelledBy){o.removeAriaLabelledBy(o.data("ariaLabelledBy")||undefined);}if(h&&h.getText&&o.addAriaLabelledBy&&h.getVisible()){o.addAriaLabelledBy(h);o.data("ariaLabelledBy",h.getId());}};C.renderPopin=function(r,o,t){o.removePopin();r.write("");this.renderHighlight(r,o);r.write("");var f=o.getCells(),g=t.getColumns(true);g.forEach(function(h){if(!h.getVisible()||!h.isPopin()){return;}var i=f[h.getInitialOrder()],H=h.getHeader();if(!H&&!i){return;}var s=h.getStyleClass(),j=h.getPopinDisplay();r.write("");if(H&&j!=P.WithoutHeader){r.write("");var k=sap.ui.require("sap/m/ColumnHeader");if(typeof k=="function"&&H instanceof k){var m=H.getText();H=new a({text:m});}else{H=H.clone();}h.addDependent(H);o._addClonedHeader(H);r.renderControl(H);r.write("");r.write("
:
");}if(i){r.write("");this.applyAriaLabelledBy(H,i);r.renderControl(i);r.write("");}r.write("");},this);r.write("");};C.addLegacyOutlineClass=function(r,o){};return C;},true);