import { Component , EventEmitter , Input , Output } from "@angular/core" ; import { SendView } from "jslib-common/models/view/sendView" ; import { SendType } from "jslib-common/enums/sendType" ; @ Component ( { selector : "app-send-list" , templateUrl : "send-list.component.html" , } ) export class SendListComponent { @ Input ( ) sends : SendView [ ] ; @ Input ( ) title : string ; @ Input ( ) disabledByPolicy = false ; @ Output ( ) onSelected = new EventEmitter < SendView > ( ) ; @ Output ( ) onCopySendLink = new EventEmitter < SendView > ( ) ; @ Output ( ) onRemovePassword = new EventEmitter < SendView > ( ) ; @ Output ( ) onDeleteSend = new EventEmitter < SendView > ( ) ; sendType = SendType ; selectSend ( s ) { this . onSelected . emit ( s ) ; } copySendLink ( s ) { this . onCopySendLink . emit ( s ) ; } removePassword ( s ) { this . onRemovePassword . emit ( s ) ; } delete ( s ) { this . onDeleteSend . emit ( s ) ; } }