import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { ReadLinkValue, ReadResource, SystemPropertyDefinition } from '@dasch-swiss/dsp-js'; import { Subscription } from 'rxjs'; import { AddValueComponent } from '../../operations/add-value/add-value.component'; import { DisplayEditComponent } from '../../operations/display-edit/display-edit.component'; import { ValueOperationEventService } from '../../services/value-operation-event.service'; import { PropertyInfoValues } from '../resource-view/resource-view.component'; export declare class PropertyViewComponent implements OnInit, OnDestroy { private _valueOperationEventService; displayEditComponent: DisplayEditComponent; addValueComponent: AddValueComponent; /** * Parent resource * * @param (parentResource) */ parentResource: ReadResource; /** * Array of property object with ontology class prop def, list of properties and corresponding values * * @param (propArray) */ propArray: PropertyInfoValues[]; /** * Array of system property object with list of system properties * * @param (systemPropArray) */ systemPropArray: SystemPropertyDefinition[]; /** * Show all properties, even if they don't have a value. * * @param (showAllProps) */ showAllProps: boolean; referredResourceClicked: EventEmitter; referredResourceHovered: EventEmitter; addButtonIsVisible: boolean; addValueFormIsVisible: boolean; propID: string; valueOperationEventSubscription: Subscription; constructor(_valueOperationEventService: ValueOperationEventService); ngOnInit(): void; ngOnDestroy(): void; /** * Called from the template when the user clicks on the add button */ showAddValueForm(prop: PropertyInfoValues): void; /** * Called from the template when the user clicks on the cancel button */ hideAddValueForm(): void; /** * Given a resource property, check if an add button should be displayed under the property values * * @param prop the resource property */ addValueIsAllowed(prop: PropertyInfoValues): boolean; /** * Given a resource property, check if its cardinality allows a value to be deleted * * @param prop the resource property */ deleteValueIsAllowed(prop: PropertyInfoValues): boolean; }