|
|
|
@ -34,11 +34,8 @@ import { |
|
|
|
ControlValueAccessor, |
|
|
|
FormArray, |
|
|
|
FormBuilder, |
|
|
|
NG_VALIDATORS, |
|
|
|
NG_VALUE_ACCESSOR, |
|
|
|
UntypedFormGroup, |
|
|
|
ValidationErrors, |
|
|
|
Validator, |
|
|
|
} from '@angular/forms'; |
|
|
|
import { |
|
|
|
ModbusMasterConfig, |
|
|
|
@ -61,17 +58,12 @@ import { TbTableDatasource } from '@shared/components/table/table-datasource.abs |
|
|
|
provide: NG_VALUE_ACCESSOR, |
|
|
|
useExisting: forwardRef(() => ModbusMasterTableComponent), |
|
|
|
multi: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
provide: NG_VALIDATORS, |
|
|
|
useExisting: forwardRef(() => ModbusMasterTableComponent), |
|
|
|
multi: true |
|
|
|
} |
|
|
|
], |
|
|
|
standalone: true, |
|
|
|
imports: [CommonModule, SharedModule] |
|
|
|
}) |
|
|
|
export class ModbusMasterTableComponent implements ControlValueAccessor, Validator, AfterViewInit, OnInit, OnDestroy { |
|
|
|
export class ModbusMasterTableComponent implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy { |
|
|
|
|
|
|
|
@ViewChild('searchInput') searchInputField: ElementRef; |
|
|
|
|
|
|
|
@ -138,10 +130,6 @@ export class ModbusMasterTableComponent implements ControlValueAccessor, Validat |
|
|
|
this.pushDataAsFormArrays(master.slaves); |
|
|
|
} |
|
|
|
|
|
|
|
validate(): ValidationErrors | null { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
enterFilterMode(): void { |
|
|
|
this.textSearchMode = true; |
|
|
|
this.cdr.detectChanges(); |
|
|
|
|