/*! * 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/m/library","sap/base/security/encodeCSS","sap/ui/thirdparty/jquery"],function(l,e,q){"use strict";var G=l.GenericTileScope;var L=l.LoadState;var a={};a.render=function(r,c){var t=c._getTooltipText(),i=c._isScreenLarge(),A=c._getAriaText(),s=e("sapMGTScope"+c.getScope()),h=c.hasListeners("press");this._bRTL=sap.ui.getCore().getConfiguration().getRTL();r.write("");if(i){r.write("");this._renderFailedIcon(r,c);this._renderHeader(r,c);if(c.getSubheader()){this._renderSubheader(r,c);}r.write("");if(c.getScope()===G.Actions){this._renderActionsScope(r,c);}r.write("");r.write("");}else{if(c.getState()!==L.Disabled){this._renderFocusDiv(r,c);}r.write("");this._renderFailedIcon(r,c);r.write("");this._renderHeader(r,c);if(c.getSubheader()){this._renderSubheader(r,c);}r.write("");if(c.getScope()===G.Actions){this._renderActionsScope(r,c);}r.write("");}r.write("");};a._writeDirection=function(r){if(this._bRTL){r.writeAttribute("dir","rtl");}};a._renderFailedIcon=function(r,c){if(c.getState()===L.Failed){if(c._isCompact()){c._oWarningIcon.setSize("1.25rem");}else{c._oWarningIcon.setSize("1.375rem");}r.renderControl(c._oWarningIcon.addStyleClass("sapMGTLineModeFailedIcon"));}};a._renderHeader=function(r,c){r.write("");r.writeEscaped(c._oTitle.getText());r.write("");};a._renderSubheader=function(r,c){r.write("");r.writeEscaped(c.getSubheader());r.write("");};a._renderActionsScope=function(r,c){if(c.getState()!==L.Disabled){r.write("");r.renderControl(c._oMoreIcon);r.renderControl(c._oRemoveButton);r.write("");}};a._updateHoverStyle=function(){var s=this.$("styleHelper"),o,i=0,h="";s.empty();if(!this._oStyleData||this.$().is(":hidden")){return;}if(this._oStyleData.rtl){s.css("right",-this._oStyleData.positionRight);}else{s.css("left",-this._oStyleData.positionLeft);}for(i;i
");if(this._oStyleData.rtl){r.css("right",o.offset.x+"px");}else{r.css("left",o.offset.x+"px");}r.css({top:o.offset.y+"px",width:o.width+"px",height:o.height});h+=q.trim(r.get(0).outerHTML);}s.html(h);};a._renderFocusDiv=function(r,c){r.write("");r.write("");};a._getCSSPixelValue=function(o,p){var O=o instanceof q?o:o.$(),m=(O.css(p)||"").match(/([^a-zA-Z\%]*)(.*)/),v=parseFloat(m[1]),u=m[2];return(u==="px")?v:v*16;};return a;},true);