import { Component , Input , Output , EventEmitter } from '@angular/core' ; import { FormGroup } from '@angular/forms' ; import { CmdbMode } from '../../../../framework/modes.enum' ; @ Component ( { selector : 'cmdb-docapi-settings-builder-type-step-base' , templateUrl : './docapi-builder-type-step-base.component.html' , styleUrls : [ './docapi-builder-type-step-base.component.scss' ] } ) export class DocapiBuilderTypeStepBaseComponent { @ Input ( ) set preData ( data ) { if ( data ) { this . typeParamForm . patchValue ( data ) ; } } @ Input ( ) public mode : CmdbMode ; @ Output ( ) public formValidationEmitter : EventEmitter < boolean > ; public formValid : boolean = false ; public typeParamForm : FormGroup ; public modes = CmdbMode ; constructor ( ) { this . formValidationEmitter = new EventEmitter < boolean > ( ) ; } }