mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
import { DsoEditMetadataChangeType, DsoEditMetadataForm } from '../dso-edit-metadata-form';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
@Component({
|
|
selector: 'ds-dso-edit-metadata-field-values',
|
|
styleUrls: ['./dso-edit-metadata-field-values.component.scss'],
|
|
templateUrl: './dso-edit-metadata-field-values.component.html',
|
|
})
|
|
/**
|
|
* Component displaying table rows for each value for a certain metadata field within a form
|
|
*/
|
|
export class DsoEditMetadataFieldValuesComponent {
|
|
/**
|
|
* A dynamic form object containing all information about the metadata and the changes made to them, see {@link DsoEditMetadataForm}
|
|
*/
|
|
@Input() form: DsoEditMetadataForm;
|
|
|
|
/**
|
|
* Metadata field to display values for
|
|
*/
|
|
@Input() mdField: string;
|
|
|
|
/**
|
|
* Type of DSO we're displaying values for
|
|
* Determines i18n messages
|
|
*/
|
|
@Input() dsoType: string;
|
|
|
|
/**
|
|
* Observable to check if the form is being saved or not
|
|
*/
|
|
@Input() saving$: Observable<boolean>;
|
|
|
|
/**
|
|
* Emit when the value has been saved within the form
|
|
*/
|
|
@Output() valueSaved: EventEmitter<any> = new EventEmitter<any>();
|
|
|
|
/**
|
|
* The DsoEditMetadataChangeType enumeration for access in the component's template
|
|
* @type {DsoEditMetadataChangeType}
|
|
*/
|
|
public DsoEditMetadataChangeTypeEnum = DsoEditMetadataChangeType;
|
|
}
|