/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Platform } from '@angular/cdk/platform'; import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, TemplateRef } from '@angular/core'; import { editor } from 'monaco-editor'; import { BooleanInput, VtsSafeAny, OnChangeType, OnTouchedType } from '@ui-vts-kit/ng-vts/core/types'; import { VtsCodeEditorService } from './code-editor.service'; import { JoinedEditorOptions, VtsEditorMode } from './typings'; import * as i0 from "@angular/core"; export declare class VtsCodeEditorComponent implements OnDestroy, AfterViewInit { private vtsCodeEditorService; private ngZone; private platform; static ngAcceptInputType_vtsLoading: BooleanInput; static ngAcceptInputType_vtsFullControl: BooleanInput; vtsEditorMode: VtsEditorMode; vtsOriginalText: string; vtsLoading: boolean; vtsFullControl: boolean; vtsToolkit?: TemplateRef; set vtsEditorOption(value: JoinedEditorOptions); readonly vtsEditorInitialized: EventEmitter; editorOptionCached: JoinedEditorOptions; private readonly el; private destroy$; private resize$; private editorOption$; private editorInstance?; private value; private modelSet; constructor(vtsCodeEditorService: VtsCodeEditorService, ngZone: NgZone, elementRef: ElementRef, platform: Platform); /** * Initialize a monaco editor instance. */ ngAfterViewInit(): void; ngOnDestroy(): void; writeValue(value: string): void; registerOnChange(fn: OnChangeType): VtsSafeAny; registerOnTouched(fn: OnTouchedType): void; onChange: OnChangeType; onTouch: OnTouchedType; layout(): void; private setup; private registerOptionChanges; private initMonacoEditorInstance; private registerResizeChange; private setValue; /** * {@link editor.ICodeEditor}#setValue resets the cursor position to the start of the document. * This helper memorizes the cursor position and selections and restores them after the given * function has been called. */ private preservePositionAndSelections; private setValueEmitter; private emitValue; private updateOptionToMonaco; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }