import { Directive, ElementRef } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { ValueAccessor } from './value-accessor'; @Directive({ /* tslint:disable-next-line:directive-selector */ selector: 'swirl-autocomplete:not([multi-select]):not([multiSelect]), swirl-color-input, swirl-date-input, swirl-radio-group, swirl-search, swirl-text-input, swirl-time-input', host: { '(valueChange)': 'handleChangeEvent($event.target?.["value"])' }, providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: TextValueAccessor, multi: true } ], standalone: false }) export class TextValueAccessor extends ValueAccessor { constructor(el: ElementRef) { super(el); } }