| /******************************************************************************** |
| * Copyright (c) 2020 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0 |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| |
| import {Component, EventEmitter, forwardRef, Input, Output} from "@angular/core"; |
| import {NG_VALUE_ACCESSOR} from "@angular/forms"; |
| import {IAPIContactPerson} from "../../../core/api/contacts/IAPIContactPerson"; |
| import {IAPIContactPersonDetails} from "../../../core/api/contacts/IAPIContactPersonDetails"; |
| import {AbstractControlValueAccessorComponent} from "../common"; |
| |
| @Component({ |
| selector: "app-contact-select", |
| templateUrl: "./contact-select.component.html", |
| styleUrls: ["./contact-select.component.scss"], |
| providers: [ |
| { |
| provide: NG_VALUE_ACCESSOR, |
| useExisting: forwardRef(() => ContactSelectComponent), |
| multi: true |
| } |
| ] |
| }) |
| export class ContactSelectComponent extends AbstractControlValueAccessorComponent<string> { |
| |
| @Input() |
| public appEntries: IAPIContactPerson[]; |
| |
| @Input() |
| public appDetails: IAPIContactPersonDetails; |
| |
| @Input() |
| public appIsLoading: boolean; |
| |
| @Input() |
| public appPage: number; |
| |
| @Input() |
| public appMessage: string; |
| |
| @Output() |
| public appPageChange = new EventEmitter<number>(); |
| |
| @Input() |
| public appPageSize: number; |
| |
| @Input() |
| public appSearch: string; |
| |
| @Output() |
| public appSearchChange = new EventEmitter<string>(); |
| |
| @Output() |
| public appOpenContactModule = new EventEmitter<void>(); |
| |
| } |