import { DestroyRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { DocumentFile } from '../../../../interfaces'; import { FormGroup } from '@angular/forms'; import { ControlValueAccessorDirective } from '../control-value-accessor.directive'; import { MatDialog } from '@angular/material/dialog'; import * as i0 from "@angular/core"; export declare class DocsUploaderComponent extends ControlValueAccessorDirective implements OnInit, OnChanges { maxSizeFlag: boolean; maxSizeValue: any; wrongExtensionFlag: boolean; useCrop: boolean; formKey: string; showLabel: boolean; downloadLink: boolean; showActions: boolean; styleHeight: string; fileInputHeight: string; styleWidth: string; hints: any; allowedExtensions: string; callApi: boolean; display: string; validExtension: boolean; attachType: string; error: string; displayedFiles: DocumentFile[]; selectedTemplateAttachment: EventEmitter; fileNotDuplicated: boolean; allowedFileSize: boolean; getDataFromTemplate: boolean; allowFileContentsWithMultiAttachments: boolean; accept: string[]; filesize: string; wrongFile: { mimeType: string; fileContents: string; fileName: string; name: string; }; allAttachments: any[]; uploadForm: FormGroup; signType: string; customDownload: boolean; showSignButton: boolean; printType: string; showPrintButton: boolean; downloadType: string; showDownloadButton: boolean; preventFileContents: boolean; addSignatureClicked: EventEmitter; printActionClicked: EventEmitter; emitedValue: EventEmitter; downloadActionClicked: EventEmitter; inputFile: ElementRef; dialog: MatDialog; destroyRef: DestroyRef; maxLength: number | string; sendAsFormdata: boolean; maxSize: any; private readonly validImageTypes; validImgPdfTypes: { pdf: string[]; jpg: string[]; JPG: string[]; jpeg: string[]; bmp: string[]; png: string[]; }; validFileTypes: { pdf: string[]; doc: string[]; docx: string[]; ppt: string[]; pptx: string[]; pps: string[]; ppsx: string[]; odt: string[]; xls: string[]; xlsx: string[]; zip: string[]; msg: string[]; csv: string[]; txt: string[]; rtf: string[]; html: string[]; mov: string[]; wmv: string[]; mpg: string[]; rmvb: string[]; jpg: string[]; jpeg: string[]; png: string[]; gif: string[]; bmp: string[]; }; private readonly validPdfTypes; uploading: boolean; lengthError: boolean; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; getFileType(attachment: any): string; private checkFileType; attachmentAction(type: any, index: number, field: any): void; confirmDelete(index: number): void; removeMulti(index: number): void; downloadFileNew(fileData: any): void; onValueChange(event: any): void; private handleFileInput; private processUploadedFile; private updateFileProperties; private uploadValidAndNonDuplicateFile; private readFileAndUpload; private uploadSingleFile; private emitEmptyFile; processAttachments(file: any, field: any, allowMultiAttachments: boolean): void; prepareSentItem(file: any): FormData; addAttachments(file: any): void; addMultiAttachments(file: any, field: any): void; isFileNotDuplicate(file: FileInfo): boolean; isValidMimeType(value: any): boolean; isValidExtension(value: string, type: string): boolean; removeAttachedFile(): void; downloadFile(event: any, field: any): void; private updateValue; private deleteFileContents; private reset; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "app-file-uploader", never, { "useCrop": { "alias": "useCrop"; "required": false; }; "formKey": { "alias": "formKey"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "downloadLink": { "alias": "downloadLink"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "styleHeight": { "alias": "styleHeight"; "required": false; }; "fileInputHeight": { "alias": "fileInputHeight"; "required": false; }; "styleWidth": { "alias": "styleWidth"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "allowedExtensions": { "alias": "allowedExtensions"; "required": false; }; "callApi": { "alias": "callApi"; "required": false; }; "display": { "alias": "display"; "required": false; }; "attachType": { "alias": "attachType"; "required": false; }; "error": { "alias": "error"; "required": false; }; "displayedFiles": { "alias": "displayedFiles"; "required": false; }; "getDataFromTemplate": { "alias": "getDataFromTemplate"; "required": false; }; "allowFileContentsWithMultiAttachments": { "alias": "allowFileContentsWithMultiAttachments"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "allAttachments": { "alias": "allAttachments"; "required": false; }; "signType": { "alias": "signType"; "required": false; }; "customDownload": { "alias": "customDownload"; "required": false; }; "showSignButton": { "alias": "showSignButton"; "required": false; }; "printType": { "alias": "printType"; "required": false; }; "showPrintButton": { "alias": "showPrintButton"; "required": false; }; "downloadType": { "alias": "downloadType"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "preventFileContents": { "alias": "preventFileContents"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "sendAsFormdata": { "alias": "sendAsFormdata"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, { "selectedTemplateAttachment": "selectedTemplateAttachment"; "addSignatureClicked": "addSignatureClicked"; "printActionClicked": "printActionClicked"; "emitedValue": "emitedValue"; "downloadActionClicked": "downloadActionClicked"; }, never, never, true, never>; } declare class FileInfo { fileName: string; name: string; mimeType: string; fileContents: string; filesize: string; constructor(fileName: string, name: string, mimeType: string, fileContents: string, filesize: string); } export {};