source: trip-planner-front/node_modules/primeng/fileupload/fileupload.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 5.8 KB
Line 
1import { OnDestroy, EventEmitter, TemplateRef, AfterViewInit, AfterContentInit, QueryList, ElementRef, NgZone, ChangeDetectorRef, OnInit } from '@angular/core';
2import { DomSanitizer } from '@angular/platform-browser';
3import { Message } from 'primeng/api';
4import { PrimeNGConfig } from 'primeng/api';
5import { BlockableUI } from 'primeng/api';
6import { HttpClient, HttpHeaders } from "@angular/common/http";
7import { Subscription } from 'rxjs';
8import * as i0 from "@angular/core";
9import * as i1 from "@angular/common";
10import * as i2 from "primeng/api";
11import * as i3 from "primeng/button";
12import * as i4 from "primeng/progressbar";
13import * as i5 from "primeng/messages";
14import * as i6 from "primeng/ripple";
15export declare class FileUpload implements AfterViewInit, AfterContentInit, OnInit, OnDestroy, BlockableUI {
16 private el;
17 sanitizer: DomSanitizer;
18 zone: NgZone;
19 private http;
20 cd: ChangeDetectorRef;
21 config: PrimeNGConfig;
22 name: string;
23 url: string;
24 method: string;
25 multiple: boolean;
26 accept: string;
27 disabled: boolean;
28 auto: boolean;
29 withCredentials: boolean;
30 maxFileSize: number;
31 invalidFileSizeMessageSummary: string;
32 invalidFileSizeMessageDetail: string;
33 invalidFileTypeMessageSummary: string;
34 invalidFileTypeMessageDetail: string;
35 invalidFileLimitMessageDetail: string;
36 invalidFileLimitMessageSummary: string;
37 style: any;
38 styleClass: string;
39 previewWidth: number;
40 chooseLabel: string;
41 uploadLabel: string;
42 cancelLabel: string;
43 chooseIcon: string;
44 uploadIcon: string;
45 cancelIcon: string;
46 showUploadButton: boolean;
47 showCancelButton: boolean;
48 mode: string;
49 headers: HttpHeaders;
50 customUpload: boolean;
51 fileLimit: number;
52 onBeforeUpload: EventEmitter<any>;
53 onSend: EventEmitter<any>;
54 onUpload: EventEmitter<any>;
55 onError: EventEmitter<any>;
56 onClear: EventEmitter<any>;
57 onRemove: EventEmitter<any>;
58 onSelect: EventEmitter<any>;
59 onProgress: EventEmitter<any>;
60 uploadHandler: EventEmitter<any>;
61 templates: QueryList<any>;
62 advancedFileInput: ElementRef;
63 basicFileInput: ElementRef;
64 content: ElementRef;
65 set files(files: File[]);
66 get files(): File[];
67 _files: File[];
68 progress: number;
69 dragHighlight: boolean;
70 msgs: Message[];
71 fileTemplate: TemplateRef<any>;
72 contentTemplate: TemplateRef<any>;
73 toolbarTemplate: TemplateRef<any>;
74 uploadedFileCount: number;
75 focus: boolean;
76 uploading: boolean;
77 duplicateIEEvent: boolean;
78 translationSubscription: Subscription;
79 constructor(el: ElementRef, sanitizer: DomSanitizer, zone: NgZone, http: HttpClient, cd: ChangeDetectorRef, config: PrimeNGConfig);
80 ngAfterContentInit(): void;
81 ngOnInit(): void;
82 ngAfterViewInit(): void;
83 choose(): void;
84 onFileSelect(event: any): void;
85 isFileSelected(file: File): boolean;
86 isIE11(): boolean;
87 validate(file: File): boolean;
88 private isFileTypeValid;
89 getTypeClass(fileType: string): string;
90 isWildcard(fileType: string): boolean;
91 getFileExtension(file: File): string;
92 isImage(file: File): boolean;
93 onImageLoad(img: any): void;
94 upload(): void;
95 clear(): void;
96 remove(event: Event, index: number): void;
97 isFileLimitExceeded(): boolean;
98 isChooseDisabled(): boolean;
99 checkFileLimit(): void;
100 clearInputElement(): void;
101 clearIEInput(): void;
102 hasFiles(): boolean;
103 onDragEnter(e: any): void;
104 onDragOver(e: any): void;
105 onDragLeave(event: any): void;
106 onDrop(event: any): void;
107 onFocus(): void;
108 onBlur(): void;
109 formatSize(bytes: any): string;
110 onBasicUploaderClick(): void;
111 getBlockableElement(): HTMLElement;
112 get chooseButtonLabel(): string;
113 get uploadButtonLabel(): string;
114 get cancelButtonLabel(): string;
115 ngOnDestroy(): void;
116 static ɵfac: i0.ɵɵFactoryDeclaration<FileUpload, never>;
117 static ɵcmp: i0.ɵɵComponentDeclaration<FileUpload, "p-fileUpload", never, { "name": "name"; "url": "url"; "method": "method"; "multiple": "multiple"; "accept": "accept"; "disabled": "disabled"; "auto": "auto"; "withCredentials": "withCredentials"; "maxFileSize": "maxFileSize"; "invalidFileSizeMessageSummary": "invalidFileSizeMessageSummary"; "invalidFileSizeMessageDetail": "invalidFileSizeMessageDetail"; "invalidFileTypeMessageSummary": "invalidFileTypeMessageSummary"; "invalidFileTypeMessageDetail": "invalidFileTypeMessageDetail"; "invalidFileLimitMessageDetail": "invalidFileLimitMessageDetail"; "invalidFileLimitMessageSummary": "invalidFileLimitMessageSummary"; "style": "style"; "styleClass": "styleClass"; "previewWidth": "previewWidth"; "chooseLabel": "chooseLabel"; "uploadLabel": "uploadLabel"; "cancelLabel": "cancelLabel"; "chooseIcon": "chooseIcon"; "uploadIcon": "uploadIcon"; "cancelIcon": "cancelIcon"; "showUploadButton": "showUploadButton"; "showCancelButton": "showCancelButton"; "mode": "mode"; "headers": "headers"; "customUpload": "customUpload"; "fileLimit": "fileLimit"; "files": "files"; }, { "onBeforeUpload": "onBeforeUpload"; "onSend": "onSend"; "onUpload": "onUpload"; "onError": "onError"; "onClear": "onClear"; "onRemove": "onRemove"; "onSelect": "onSelect"; "onProgress": "onProgress"; "uploadHandler": "uploadHandler"; }, ["templates"], never>;
118}
119export declare class FileUploadModule {
120 static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadModule, never>;
121 static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadModule, [typeof FileUpload], [typeof i1.CommonModule, typeof i2.SharedModule, typeof i3.ButtonModule, typeof i4.ProgressBarModule, typeof i5.MessagesModule, typeof i6.RippleModule], [typeof FileUpload, typeof i2.SharedModule, typeof i3.ButtonModule, typeof i4.ProgressBarModule, typeof i5.MessagesModule]>;
122 static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadModule>;
123}
Note: See TracBrowser for help on using the repository browser.