UNPKG

@asoftwareworld/form-builder-pro

Version:

ASW Form Builder Pro helps you with rapid development and designed web forms which includes several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same b

63 lines (62 loc) 2.63 kB
/** * @license * Copyright ASW (A Software World) All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file */ import { EventEmitter } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { CSSFrameworkEnum } from '@asoftwareworld/form-builder-pro/api'; import { NotificationService } from '@asoftwareworld/form-builder-pro/common'; import { FileUploadControl } from './fileupload-control'; import * as i0 from "@angular/core"; export declare class AswFileUpload { dialog: MatDialog; private notificationService; constants: any; icons: any; control: any; CSSFramework: CSSFrameworkEnum; isPreviewTemplate: boolean; propertyPersonalization: string[]; fileUploadUpdateEvent: EventEmitter<FileUploadControl>; fileUploadDeleteEvent: EventEmitter<FileUploadControl>; onfileUploadChange: EventEmitter<FileUploadControl>; duplicateControl: EventEmitter<FileUploadControl>; constructor(dialog: MatDialog, notificationService: NotificationService); /** * on file drop handler */ onFileDropped(event: any): void; /** * handle file from browsing */ fileBrowseHandler(event: any): void; /** * Delete file from files list * @param index (File index) */ deleteFile(index: number): void; /** * Simulate the upload process */ uploadFilesSimulator(index: number): void; /** * Convert Files list to normal array list * @param files (Files List) */ private prepareFilesList; private validateFileList; /** * format bytes * @param bytes (File size in bytes) * @param decimals (Decimals point) */ formatBytes(bytes: any, decimals: any): any; editFileUploadDialog(control: FileUploadControl): void; deleteFileUploadDialog(control: any): void; duplicateFileUploadControl(control: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<AswFileUpload, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AswFileUpload, "asw-fileupload", never, { "control": { "alias": "control"; "required": false; }; "CSSFramework": { "alias": "CSSFramework"; "required": false; }; "isPreviewTemplate": { "alias": "isPreviewTemplate"; "required": false; }; "propertyPersonalization": { "alias": "propertyPersonalization"; "required": false; }; }, { "fileUploadUpdateEvent": "fileUploadUpdateEvent"; "fileUploadDeleteEvent": "fileUploadDeleteEvent"; "onfileUploadChange": "onfileUploadChange"; "duplicateControl": "duplicateControl"; }, never, never, false, never>; }