import { provideValueAccessor } from 'rh-base/core'; import { RhSafeAny } from 'rh-base/model'; import { RhControlValueAccessorComponent } from 'rh-base/shared'; import { Component, OnInit, ChangeDetectorRef, Input, Output, EventEmitter } from '@angular/core'; import { InpsectModeType } from '../../process-control-model'; @Component({ selector: 'rh-inspect-result-snippet', templateUrl: './inspect-result-snippet.component.html', styleUrls: ['./inspect-result-snippet.component.less'], providers: [provideValueAccessor(InspectResultSnippetComponent)] }) export class InspectResultSnippetComponent extends RhControlValueAccessorComponent implements OnInit { @Input() rhInspectMode: InpsectModeType = 'Qualitative'; @Output() rhClick = new EventEmitter(); constructor(cdk: ChangeDetectorRef) { super(cdk); } ngOnInit(): void { // } onClickResultTag(status: boolean) { this.value = status as RhSafeAny; this.rhClick.emit(this.value as RhSafeAny); } }