import { ControlsCommon , ControlsContent , randomName } from '../controls.common' ; class TextContent implements ControlsContent { public type : string ; public name : string ; public label : string ; public value : any ; public helperText : string ; public placeholder : string ; public required : boolean ; public constructor ( ) { this . type = 'text' ; this . name = randomName ( this . type ) ; this . label = 'Text Field' ; } } export class TextControl extends ControlsCommon { public name : string = 'text' ; public label : string = 'Text' ; public icon : string = 'fas fa-font' ; public dndType : string = 'inputs' ; public content ( ) { return new TextContent ( ) ; } }