YUI.add("aui-form-builder-field-text",function(e,t){var n=e.Lang,r=e.Escape,i="field",s="form-builder-field",o="form-builder-text-field",u="id",a="input",f="label",l="large",c="medium",t="name",h="node",p="predefinedValue",d="small",v=" ",m="template",g="templateNode",y="text",b="width",w=e.getClassName,E=w(i,a),S=w(i,a,y),x=w(s),T=w(s,h),N='<input id="{id}" class="'+[T,E,S].join(v)+'" name="{name}" type="text" value="{value}" />',C={small:"large",medium:"xlarge",large:"xxlarge"},k=e.Component.create({NAME:o,ATTRS:{template:{valueFn:function(){return N}},width:{value:d}},CSS_PREFIX:x,EXTENDS:e.FormBuilderField,prototype:{getHTML:function(){var e=this;return n.sub(e.get(m),{id:r.html(e.get(u)),label:r.html(e.get(f)),name:r.html(e.get(t)),value:r.html(e.get(p)),width:r.html(e.get(b))})},getPropertyModel:function(){var t=this,n=t.getStrings(),r=e.FormBuilderTextField.superclass.getPropertyModel.apply(t,arguments);return r.push({attributeName:b,editor:new e.RadioCellEditor({options:{small:n[d],medium:n[c],large:n[l]}}),formatter:function(e){return n[e.data.value]},name:n[b]}),r},_uiSetWidth:function(e){var t=this,n=t.get(g);n.addClass(w(a,C[e])),n.removeClass(w(a,C[t.prevWidth])),t.prevWidth=e}}});e.FormBuilderTextField=k,e.FormBuilder.types.text=e.FormBuilderTextField},"2.0.0",{requires:["aui-form-builder-field-base"]});
