import { EventEmitter, ElementRef, AfterViewInit, ChangeDetectorRef } from '@angular/core'; import { ModalService } from '../modal.service'; import { DialogService } from '../ui-dialog/ui-dialog.service'; import * as i0 from "@angular/core"; export declare class EditorMenuComponent implements AfterViewInit { private modal; private dialog; editorConfig: any; toolbarConfig: any; moreOptionsButton: boolean; buttonClick: EventEmitter; sendSavedFiles: EventEmitter; imageInEditor: EventEmitter; linkInEditor: EventEmitter; setWidth: EventEmitter; menuLeft: ElementRef; menuRight: ElementRef; enter: boolean; upload: boolean; uploadImage: boolean; alignment: boolean; addLink: boolean; listStyle: boolean; filesArray: any[]; ShowFiles: boolean; fontStyle: boolean; fontSize: boolean; fillColor: boolean[]; setTextColor: boolean; showAlert: boolean; alertMsg: string; savedFiles: any; savedImages: any; imgUrl: any; imgArr: Array; linkUrl: string; linkText: string; linkTitle: string; inValidUrl: boolean; invalidUrlMessage: boolean; inValidLinkTitle: string; inValidLinkText: string; savedLinks: object; fontFamily: boolean; moreOptions: boolean; color: boolean; popupZIndex: number; image: any; fontType: string[]; constructor(modal: ModalService, dialog: DialogService); ngAfterViewInit(): void; /** * * @param event - Event triggered when the toolbar button is clicked */ buttonClicked(event: any): void; /** * * @param type - Represents the color which is */ colorChange(type: 'textColor' | 'fillColor'): void; /** * Opens the color tab */ openColorTab(): void; /** * Closes the image popover */ clickOutsideImage(): void; /** * @param event - Dropped event triggered */ dropImage(event: any): void; /** * @param file - File that needs to be checked * @returns true or false based on if the file is an image file or not */ validImage(file: File): boolean; /** * Function is invoked after the final save button is clicked from the image popup */ saveImage(): void; /** * @param file - Represents the image file that needs to be previewed */ readImageFile(file: File): void; /** * @param event - Event which is triggered when the user hits the browse button in image popup and selects a file */ changeImage(event: any): void; /** * Function is invoked when the user clicks on the save button from the add files popover */ saveFiles(event: any[]): void; /** * Function is invoked when the user clicks on the save button from the add link popover */ saveLink(event: any): void; alignPopover(): void; listStyles(): void; fontStylePopover(): void; fontSizePopover(): void; openfontFamily(): void; showMoreOptions(): void; clickOutsideMoreOptions(): void; closePopover(): void; closeAlignPopover(): void; closeListStylesPopover(): void; closeFontSizePopover(): void; closeFontStylePopover(): void; hideAlert(): void; openModal(id: string): void; openFilePicker(): void; closeModal(id: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class EditorLinkComponent { editorConfig: any; linkEmitter: EventEmitter<{ linkUrl: string; linkTitle: string; linkText: string; }>; closeEmitter: EventEmitter; linkTitle: string; linkText: string; linkUrl: string; rex: RegExp; invalid: boolean; constructor(); /** * Reset the values */ reset(): void; /** * Save the link */ save(): void; /** * Close the popup */ close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class EditorFilesComponent { private cdr; editorConfig: any; filesEmitter: EventEmitter; closeEmitter: EventEmitter; enter: boolean; filesArray: any[]; constructor(cdr: ChangeDetectorRef); /** * Reset the values */ reset(): void; save(): void; close(): void; /** * * @param event - Represents a dragenter event */ dragenter(event: DragEvent): void; /** * * @param event - Represents a dragover event */ dragover(event: DragEvent): void; /** * * @param event - Represents a dragend event */ dragend(event: DragEvent): void; /** * * @param event - Represents a dragleave event */ dragleave(event: DragEvent): void; /** * * @param event - Triggered when a file is dropped in the drag & drop area */ dropFiles(event: DragEvent): void; /** * * @param fileIndex - Index from where file needs to be removed */ removeFile(fileIndex: number): void; /** * * @param event - Event triggered when user clicks on browse button of the file popup */ filesFromInput(event: any): void; /** * * @param file - Represents a file whose extension needs to be returned * @returns a string value which represents an extension */ getFileExtension(file: File): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=editor-menu.component.d.ts.map