/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as i,subclass as t}from"../../core/accessorSupport/decorators.js";import s from"./Element.js";import{types as o}from"./inputs.js";import{fromJSON as r,types as p}from"../../layers/support/domains.js";var n;let l=n=class extends s{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new n({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};e([i({types:p,json:{read:{reader:r},write:!0}})],l.prototype,"domain",void 0),e([i({type:Boolean,json:{write:!0}})],l.prototype,"editable",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"editableExpression",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"fieldName",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"hint",void 0),e([i({types:o,json:{read:{source:"inputType"},write:{target:"inputType"}}})],l.prototype,"input",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"requiredExpression",void 0),e([i({type:String,json:{read:!1,write:!0}})],l.prototype,"type",void 0),e([i({type:String,json:{write:!0}})],l.prototype,"valueExpression",void 0),l=n=e([t("esri.form.elements.FieldElement")],l);export{l as default};
