import { Component , EventEmitter , Input , Output } from '@angular/core' ; import { ICandidate } from '@gauzy/contracts' ; import { FormControl } from '@angular/forms' ; @ Component ( { selector : 'ga-candidate-select' , templateUrl : './candidate-select.component.html' } ) export class CandidateSelectComponent { @ Input ( ) selectedCandidateId : string ; @ Input ( ) placeholder : string ; @ Input ( ) disabledIds : string [ ] ; @ Input ( ) allCandidates : ICandidate [ ] ; @ Input ( ) isAllMembers = false ; @ Input ( ) disabled = false ; @ Input ( ) isPlaceholderSelected = false ; @ Output ( ) selectedChange = new EventEmitter ( ) ; select : FormControl = new FormControl ( ) ; @ Input ( ) public set reset ( value ) { if ( value ) { this . select . reset ( ) ; } } constructor ( ) { } onMembersSelected ( selectEvent ) { this . selectedChange . emit ( selectEvent ) ; } }