|
|
|
@ -5,6 +5,7 @@ import { |
|
|
|
|
Input, |
|
|
|
|
Output, |
|
|
|
|
} from '@angular/core'; |
|
|
|
|
import { I18nService } from 'core-app/core/i18n/i18n.service'; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'spot-filter-chip', |
|
|
|
@ -16,6 +17,20 @@ export class SpotFilterChipComponent { |
|
|
|
|
@Input() removable = true; |
|
|
|
|
|
|
|
|
|
@Input() title = ''; |
|
|
|
|
@Input() icon = ''; |
|
|
|
|
|
|
|
|
|
@Output() remove = new EventEmitter<void>(); |
|
|
|
|
|
|
|
|
|
public text = { |
|
|
|
|
remove: this.i18n.t('js.spot.filter_chip.remove'), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
public get iconClasses() { |
|
|
|
|
return [ |
|
|
|
|
'spot-icon', |
|
|
|
|
`spot-icon_${this.icon}`, |
|
|
|
|
];
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
constructor(readonly i18n:I18nService) {} |
|
|
|
|
} |
|
|
|
|