var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();import{h}from"./index-ecdfb761.js";import{r as registerField}from"./FieldGenerator-3ae403b2.js";import{B as BaseField}from"./BaseField-0b01dc2c.js";var TextField=function(t){__extends(e,t);function e(e,r,n,o,i,s,p){if(s===void 0){s=1}if(p===void 0){p=1}var u=t.call(this,e,"text")||this;u.format="raw";u.id=e;u.title=r;u.placeholder=n;u.description=o;u.inputType=i;u.lines=s;u.linesMax=p;return u}e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getDisplayValue=function(t){return t};e.prototype.setInputType=function(t){this.inputType=t;return this};e.prototype.setFormat=function(t){this.format=t;return this};e.prototype.setLines=function(t){this.lines=t;return this};e.prototype.setLinesMax=function(t){this.linesMax=t;return this};e.prototype.setAutoComplete=function(t){this.autoComplete=t;return this};return e}(BaseField);TextField.type="text";var render=function(t,e,r,n,o,i){return h("dvn-field-input-text",{disabled:n,field:t,errors:r,onChange:function(e){e.stopImmediatePropagation();o(t,e.detail)},onBlur:function(){return i(t)},value:e})};registerField("text",render);export{TextField as T};