import { ControlsCommon , randomName , StructureContent } from './controls.common' ; export class RefSectionContent implements StructureContent { label : string ; name : string ; type : string ; reference : { type_id : number ; section_name : string ; selected_fields ? : any ; } ; fields ? : Array < string > ; public constructor ( ) { this . type = 'ref-section' ; this . name = randomName ( this . type ) ; this . label = 'Reference' ; this . reference = { type_id : undefined , section_name : undefined , selected_fields : undefined } ; } } export class RefSectionControl extends ControlsCommon { public name : string = 'ref-section' ; public label : string = 'Reference' ; public icon : string = 'fas fa-layer-group' ; public dndType : string = 'sections' ; public content ( ) { return new RefSectionContent ( ) ; } }