import { Component , EventEmitter , Input , Output } from "@angular/core" ; import { CipherView } from "jslib-common/models/view/cipherView" ; @ Component ( { selector : "app-cipher-row" , templateUrl : "cipher-row.component.html" , } ) export class CipherRowComponent { @ Output ( ) onSelected = new EventEmitter < CipherView > ( ) ; @ Output ( ) launchEvent = new EventEmitter < CipherView > ( ) ; @ Output ( ) onView = new EventEmitter < CipherView > ( ) ; @ Input ( ) cipher : CipherView ; @ Input ( ) showView = false ; @ Input ( ) title : string ; selectCipher ( c ) { this . onSelected . emit ( c ) ; } launchCipher ( c ) { this . launchEvent . emit ( c ) ; } viewCipher ( c ) { this . onView . emit ( c ) ; } }