/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./Bar','./ComboBoxBaseRenderer','./Dialog','./InputBase','./List','./Popover','./library','sap/ui/core/EnabledPropagator','sap/ui/core/IconPool'],function(q,B,C,D,I,L,P,l,E,a){"use strict";var b=I.extend("sap.m.ComboBoxBase",{metadata:{"abstract":true,library:"sap.m",properties:{maxWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:"100%"}},defaultAggregation:"items",aggregations:{items:{type:"sap.ui.core.Item",multiple:true,singularName:"item",bindable:"bindable"},picker:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"}}}});a.insertFontFaceStyle();E.apply(b.prototype,[true]);b.prototype.getListItem=function(i){return(i&&i.data(sap.m.ComboBoxBaseRenderer.CSS_CLASS+"ListItem"))||null;};b.prototype._mapItemToListItem=function(i){if(!i){return null;}var c=C.CSS_CLASS,s=c+"Item",d=i.getEnabled()?"Enabled":"Disabled",e=(i===this.getSelectedItem())?s+"Selected":"",o=this.getListItem(i),f=o?o.getVisible():true;o=new sap.m.StandardListItem().addStyleClass(s+" "+s+d+" "+e);o.setVisible(f);o.setTitle(i.getText());o.setType(i.getEnabled()?sap.m.ListType.Active:sap.m.ListType.Inactive);o.setTooltip(i.getTooltip());i.data(c+"ListItem",o);return o;};b.prototype._findMappedItem=function(o,c){for(var i=0,c=c||this.getItems(),d=c.length;ie){o.scrollTop=e;}else if((e+g)>(d+f)){o.scrollTop=Math.ceil(e+g-f);}};b.prototype.clearFilter=function(){for(var i=0,o,c=this.getItems();i