import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core'; import { AngularEditorService } from './angular-editor.service'; import { CustomClass } from './config'; import { SelectOption } from './ae-select/ae-select.component'; import { MatDialog } from '@angular/material/dialog'; import { ColorWhere, CommandName, CustomCommandName, ICustomButtonConfig, SelectedObject } from './common/common-interfaces'; import { LangService } from './services/lang.service'; import * as i0 from "@angular/core"; export declare class AngularEditorToolbarComponent implements OnDestroy { private r; private editorService; private langService; private doc; private dialog; sen: { [p: string]: string; }; htmlMode: boolean; unLinkDisabled: boolean; block: string; fontName: string; fontSize: string; foreColour: any; backColor: any; commands: typeof CommandName; colorWheres: typeof ColorWhere; headings: SelectOption[]; fontSizes: SelectOption[]; tableActions: SelectOption[]; imageActions: SelectOption[]; tableAction: string; imageAction: string; customClassId: string; _customClasses: CustomClass[]; customClassList: SelectOption[]; tagMap: { BLOCKQUOTE: string; A: string; }; select: string[]; buttons: string[]; id: string; uploadUrl: string; showToolbar: boolean; fonts: SelectOption[]; selObject: SelectedObject; customColorPalette: string[]; customButtons: Array>; set customClasses(classes: CustomClass[]); set defaultFontName(value: string); set defaultFontSize(value: string); hiddenButtons: string[][]; execute: EventEmitter; customButtonClicked: EventEmitter; myInputFile: ElementRef; get isLinkButtonDisabled(): boolean; private ngUnsubscribe; constructor(r: Renderer2, editorService: AngularEditorService, langService: LangService, doc: any, dialog: MatDialog); ngOnDestroy(): void; /** * Trigger command from editor header buttons * @param command string from toolbar buttons */ triggerCommand(command: CommandName): void; /** * highlight editor buttons when cursor moved or positioning */ triggerButtons(): void; /** * Set-up buttons on toolbar, on timer interval tick, when other methods fail / are inconvenient */ setupButtons(): void; /** * trigger highlight editor buttons when cursor moved or positioning in block */ triggerBlocks(nodes: Node[]): void; executeCustomButtonCommand(command: CustomCommandName): void; /** * insert URL link */ insertUrl(): void; /** * set font Name/family * @param foreColor string */ setFontName(foreColor: string): void; /** * set font Size * @param fontSize string */ setFontSize(fontSize: string): void; /** * toggle editor mode (WYSIWYG or SOURCE) * @param m boolean */ setEditorMode(m: boolean): void; /** * Upload image when file is selected */ onFileChanged(event: any): void; /** * Set custom class */ setCustomClass(classId: string): void; isButtonHidden(name: CommandName): boolean; insertColorDialog(where: ColorWhere): void; /** insert color */ private insertColor; setHeading(block: string): void; private initSelectValues; private initHeadings; private initTableActions; private initImageActions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=angular-editor-toolbar.component.d.ts.map