From 02d0089d0d7e81b3ff445534ecfee007f9aef309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 27 Jun 2023 11:57:50 +0300 Subject: [PATCH] RED-3800: Remove unused directive import --- .../input-with-action/input-with-action.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/inputs/input-with-action/input-with-action.component.ts b/src/lib/inputs/input-with-action/input-with-action.component.ts index 6f781da..cd58098 100644 --- a/src/lib/inputs/input-with-action/input-with-action.component.ts +++ b/src/lib/inputs/input-with-action/input-with-action.component.ts @@ -4,7 +4,6 @@ import { FormsModule } from '@angular/forms'; import { NgIf } from '@angular/common'; import { CircleButtonComponent } from '../../buttons'; import { MatIconModule } from '@angular/material/icon'; -import { StopPropagationDirective } from '../../directives'; @Component({ selector: 'iqser-input-with-action', @@ -12,7 +11,7 @@ import { StopPropagationDirective } from '../../directives'; styleUrls: ['./input-with-action.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, - imports: [FormsModule, NgIf, MatIconModule, CircleButtonComponent, StopPropagationDirective], + imports: [FormsModule, NgIf, MatIconModule, CircleButtonComponent], }) export class InputWithActionComponent { @Input() inputId = `${randomString() + '-search-input'}`; @@ -26,8 +25,6 @@ export class InputWithActionComponent { @Output() readonly action = new EventEmitter(); @Output() readonly valueChange = new EventEmitter(); - constructor(private readonly _changeDetectorRef: ChangeDetectorRef) {} - get hasContent(): boolean { return !!this.value?.length; } @@ -40,6 +37,8 @@ export class InputWithActionComponent { return !this.icon; } + constructor(private readonly _changeDetectorRef: ChangeDetectorRef) {} + reset(): void { this.value = ''; this.valueChange.emit(this.value);