import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { FormBuilder, FormControl, FormGroup } from '@angular/forms'; import { CreateTextValueAsXml, ReadTextValueAsXml, UpdateTextValueAsXml } from '@dasch-swiss/dsp-js'; import * as Editor from 'ckeditor5-custom-build'; import { Subscription } from 'rxjs'; import { BaseValueComponent } from '../../base-value.component'; import { ValueErrorStateMatcher } from '../../value-error-state-matcher'; export declare class TextValueAsXMLComponent extends BaseValueComponent implements OnInit, OnChanges, OnDestroy { private fb; readonly standardMapping: string; displayValue?: ReadTextValueAsXml; internalLinkClicked: EventEmitter; internalLinkHovered: EventEmitter; valueFormControl: FormControl; commentFormControl: FormControl; form: FormGroup; valueChangesSubscription: Subscription; matcher: ValueErrorStateMatcher; customValidators: any[]; editor: Editor; editorConfig: any; xmlTransform: { '
': string; '': string; '': string; '': string; '': string; '
': string; '
': string; '
': string; }; readonly resourceBasePath = "http://rdfh.ch/"; constructor(fb: FormBuilder); standardValueComparisonFunc(initValue: any, curValue: any): boolean; getInitValue(): string | null; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; getNewValue(): CreateTextValueAsXml | false; getUpdatedValue(): UpdateTextValueAsXml | false; /** * Converts XML to HTML suitable for CKEditor and vice versa. * * @param xml xml to be processed. * @param fromKnora true if xml is received from Knora. * @param addXMLDocType whether to add the doctype to the XML. */ private _handleXML; }