import { EventEmitter, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { Constants, KnoraApiConnection, ReadLinkValue, ReadResource, ReadUser, ReadValue } from '@dasch-swiss/dsp-js'; import { UserService } from '../../services/user.service'; import { ValueOperationEventService } from '../../services/value-operation-event.service'; import { ValueService } from '../../services/value.service'; import { BaseValueComponent } from '../../values/base-value.component'; import { PropertyInfoValues } from '../../views/resource-view/resource-view.component'; export declare class DisplayEditComponent implements OnInit { private _dspApiConnection; private _valueOperationEventService; private _dialog; private _userService; private _valueService; displayValueComponent: BaseValueComponent; displayValue: ReadValue; propArray: PropertyInfoValues[]; parentResource: ReadResource; configuration?: object; canDelete: boolean; referredResourceClicked: EventEmitter; referredResourceHovered: EventEmitter; constants: typeof Constants; mode: 'read' | 'update' | 'create' | 'search'; canModify: boolean; editModeActive: boolean; shouldShowCommentToggle: boolean; valueTypeOrClass: string; readOnlyValue: boolean; showActionBubble: boolean; backgroundColor: string; dateDisplayOptions: 'era' | 'calendar' | 'all'; showDateLabels: boolean; dateFormat: string; user: ReadUser; constructor(_dspApiConnection: KnoraApiConnection, _valueOperationEventService: ValueOperationEventService, _dialog: MatDialog, _userService: UserService, _valueService: ValueService); ngOnInit(): void; getTooltipText(): string; /** * Given a resource Iri, finds the corresponding standoff link value. * Returns an empty array if the standoff link cannot be found. * * @param resIri the Iri of the resource. */ private _getStandoffLinkValueForResource; /** * React when a standoff link in a text has received a click event. * * @param resIri the Iri of the resource the standoff link refers to. */ standoffLinkClicked(resIri: string): void; /** * React when a standoff link in a text has received a hover event. * * @param resIri the Iri of the resource the standoff link refers to. */ standoffLinkHovered(resIri: string): void; /** * Show the form components and CRUD buttons to update an existing value or add a new value. */ activateEditMode(): void; /** * Save a new version of an existing property value. */ saveEditValue(): void; /** * Open a confirmation dialog box to ensure the user would like to complete the action. */ openDialog(): void; /** * Delete a value from a property. * Emits an event that can be listened to. */ deleteValue(comment?: string): void; /** * Hide the form components and CRUD buttons and show the value in read mode. */ cancelEditValue(): void; /** * Show or hide the comment. */ toggleComment(): void; /** * Check if the comment toggle button should be shown. * Only show the comment toggle button if user is in READ mode and a comment exists for the value. */ checkCommentToggleVisibility(): void; /** * Show CRUD buttons and add 'highlighted' class to the element only if editModeActive is false */ mouseEnter(): void; /** * Hide CRUD buttons and remove the 'hightlighted' class from the element */ mouseLeave(): void; }