-
Notifications
You must be signed in to change notification settings - Fork 1
/
etools-upload.d.ts
62 lines (56 loc) · 1.91 KB
/
etools-upload.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* etools-upload.js
*/
// tslint:disable:variable-name Describing an API that's defined elsewhere.
// tslint:disable:no-any describes the API as best we are able today
import {LitElement} from 'lit-element';
/**
* `etools-upload`
* Use to upload files
*/
declare class EtoolsUpload extends LitElement {
uploadBtnLabel: string | null | undefined;
alwaysFloatLabel: boolean | null | undefined;
fileUrl: string | null | undefined;
_filename: string | null | undefined;
rawFile: object | null | undefined;
showDeleteBtn: boolean | null | undefined;
errorMessage: string | null | undefined;
originalErrorMessage: string | null | undefined;
serverErrorMsg: string | null | undefined;
success: boolean | null | undefined;
fail: boolean | null | undefined;
showChange: boolean | null | undefined;
allowMultilineFilename: boolean | null | undefined;
invalid: boolean | undefined;
connectedCallback(): void;
_thereIsAFileSelectedOrSaved(_filename: any): any;
_fileSelected(e: any): void;
_fireChangeFileEventIfApplicable(): void;
_handleUpload(): void;
setInvalid(invalid: any, errMsg: any): void;
resetValidations(): void;
resetStatus(): void;
_fileUrlChanged(fileUrl: any): void;
getFilenameFromURL(url: any): any;
_showDownloadBtn(fileUrl: any): any;
_showChange(readonly: any, _filename: any, uploadInProgress: any, showChange: any): any;
_showDeleteBtn(readonly: any, _filename: any, showDeleteBtn: any, uploadInProgress: any): any;
_cancelUpload(): void;
_deleteFile(e: any): void;
resetRawFile(): void;
_downloadFile(e: any): void;
validate(): any;
autoValidateHandler(): void;
}
declare global {
interface HTMLElementTagNameMap {
"etools-upload": EtoolsUpload;
}
}