YUI.add("aui-datatable-property-list",function(e,t){var n=e.Lang,r=n.isFunction,i="activeCellChange",s="activeRow",o="auto",u="boundingBox",a="cell",f="columns",l="dblclick",c="id",h="initValue",t="name",p="property-list",d="propertyName",v="rows",m="value",g=".";e.PropertyList=e.Base.create(e.DataTable.NAME,e.DataTable,[e.WidgetCssClass,e.WidgetToggle],{initializer:function(e){var t=this;t.CLASS_NAMES_PROPERTY_LIST={cell:t.getClassName(a)},t._initHighlight(),t.after(t._afterRenderUI,t,"renderUI"),t.after(t._afterUITriggerSort,t,"_onUITriggerSort"),t.on(i,t._onActiveCellChange),e.columns||this.set(f,t._state.get(f,h))},getDefaultEditor:function(){return new e.TextCellEditor},_afterRenderUI:function(){var e=this;e.get(u).addClass(e.getClassName(p))},_afterUITriggerSort:function(e){var t=this;t.highlight.clear()},_initHighlight:function(){var t=this;t.plug(e.Plugin.DataTableHighlight,{highlightRange:!1,type:v})},_onActiveCellChange:function(e){var n=this,r=e.newVal,i;r&&(i=n.getColumn(r),i&&i.key===t&&(e.newVal=r.next(g+n.CLASS_NAMES_PROPERTY_LIST.cell)))},_onSelectionKey:function(t){var n=this,r=t.keyCode;r===13&&n._onEditCell(t),e.PropertyList.superclass._onSelectionKey.apply(this,arguments),n._syncPropertyListScrollUI()},_syncPropertyListScrollUI:function(){var e=this,t=e.get(s);t&&e.scrollTo&&e.scrollTo(t.get(c))}},{CSS_PREFIX:e.DataTable.CSS_PREFIX,ATTRS:{columns:{valueFn:function(){var e=this;return[{editor:!1,key:t,label:e.getString(d),sortable:!0},{editor:e.getDefaultEditor(),formatter:function(e){var t=this,n=e.data;if(!n)return;var i=n.formatter;return r(i)?i.apply(t,arguments):n.value},key:m,label:e.getString(m),sortable:!0,width:o}]}},scrollable:{value:!0},editEvent:{value:l},width:{setter:String},strings:{value:{propertyName:"Property Name",value:"Value"}}}})},"2.0.0",{requires:["datatable-scroll","datatable-sort","aui-datatable-core","aui-datatable-edit","aui-datatable-highlight","aui-datatable-selection","aui-widget-cssclass","aui-widget-toggle"],skinnable:!0});
