@salla.sa/twilight-components 1.6.2 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-button_27.cjs.entry.js +27879 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +9 -6
- package/dist/cjs/salla-select.cjs.entry.js +159 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/assets/svg/caret-down.svg +0 -1
- package/dist/collection/assets/svg/images.svg +0 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
- package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
- package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
- package/dist/collection/components/salla-gifting/intefaces.js +4 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +20 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +564 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +23 -13
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +46 -28
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -4
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +29 -16
- package/dist/collection/components/salla-modal/salla-modal.css +6 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +37 -13
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +23 -8
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +87 -64
- package/dist/collection/components/salla-scopes/salla-scopes.js +11 -7
- package/dist/collection/components/salla-search/salla-search.js +1 -1
- package/dist/collection/components/salla-select/salla-select.css +86 -0
- package/dist/collection/components/salla-select/salla-select.js +610 -0
- package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +32 -3
- package/dist/collection/components/salla-verify/salla-verify.js +1 -1
- package/dist/collection/global/app.js +15 -12
- package/dist/components/_commonjsHelpers.js +24 -0
- package/dist/{esm/salla-social-share.entry.js → components/anime.es.js} +1 -132
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/salla-datetime-picker.d.ts +11 -0
- package/dist/components/salla-datetime-picker.js +9 -0
- package/dist/components/salla-datetime-picker2.js +2876 -0
- package/dist/components/salla-file-upload.d.ts +11 -0
- package/dist/components/salla-file-upload.js +9 -0
- package/dist/components/salla-file-upload2.js +14623 -0
- package/dist/components/salla-gifting.d.ts +11 -0
- package/dist/components/salla-gifting.js +499 -0
- package/dist/components/salla-localization-modal.js +31 -16
- package/dist/components/salla-login-modal.js +35 -19
- package/dist/components/salla-loyalty-prize-item.d.ts +11 -0
- package/dist/components/salla-loyalty-prize-item.js +42 -0
- package/dist/components/salla-loyalty.js +28 -17
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-offer-modal.js +42 -12
- package/dist/components/salla-product-size-guide.js +21 -6
- package/dist/components/salla-rating-modal.js +47 -19
- package/dist/components/salla-scopes.js +10 -6
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-select.d.ts +11 -0
- package/dist/components/salla-select.js +199 -0
- package/dist/components/salla-social-share.js +1 -1308
- package/dist/components/salla-swiper2.js +9 -9
- package/dist/components/salla-tel-input2.js +15 -18
- package/dist/components/salla-verify2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-button_27.entry.js +27849 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +22 -0
- package/dist/esm/salla-scopes.entry.js +9 -6
- package/dist/esm/salla-select.entry.js +155 -0
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-49125b6a.entry.js +4 -0
- package/dist/twilight-components/p-9a25753c.entry.js +4 -0
- package/dist/twilight-components/p-b7b9439d.entry.js +22 -0
- package/dist/twilight-components/p-df1eb1e5.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-datetime-picker/interfaces.d.ts +8 -0
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +250 -0
- package/dist/types/components/salla-file-upload/interfaces.d.ts +766 -0
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +267 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +20 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +18 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +98 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +3 -2
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +13 -3
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +8 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -0
- package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -2
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
- package/dist/types/components/salla-select/salla-select.d.ts +110 -0
- package/dist/types/components/salla-tel-input/interfaces.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -0
- package/dist/types/components.d.ts +1253 -10
- package/package.json +9 -3
- package/dist/cjs/Helper-8ae6a805.js +0 -28
- package/dist/cjs/arrow-right-3d137e4c.js +0 -13
- package/dist/cjs/cancel-ae668d91.js +0 -13
- package/dist/cjs/check-circle2-1aac98d1.js +0 -13
- package/dist/cjs/mail-2db058ee.js +0 -13
- package/dist/cjs/salla-button_10.cjs.entry.js +0 -2584
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +0 -93
- package/dist/cjs/salla-list-tile_2.cjs.entry.js +0 -80
- package/dist/cjs/salla-loyalty.cjs.entry.js +0 -229
- package/dist/cjs/salla-product-availability.cjs.entry.js +0 -128
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +0 -52
- package/dist/cjs/salla-quantity-input.cjs.entry.js +0 -101
- package/dist/cjs/salla-rating-modal.cjs.entry.js +0 -169
- package/dist/cjs/salla-rating-stars.cjs.entry.js +0 -83
- package/dist/cjs/salla-social-share.cjs.entry.js +0 -1447
- package/dist/cjs/salla-swiper.cjs.entry.js +0 -5023
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +0 -159
- package/dist/cjs/star2-8288e6e1.js +0 -13
- package/dist/esm/Helper-e1d414a5.js +0 -26
- package/dist/esm/arrow-right-1c3e04f2.js +0 -11
- package/dist/esm/cancel-41a92070.js +0 -11
- package/dist/esm/check-circle2-f6e5f685.js +0 -11
- package/dist/esm/mail-9d5204c6.js +0 -11
- package/dist/esm/salla-button_10.entry.js +0 -2571
- package/dist/esm/salla-infinite-scroll.entry.js +0 -89
- package/dist/esm/salla-list-tile_2.entry.js +0 -75
- package/dist/esm/salla-loyalty.entry.js +0 -225
- package/dist/esm/salla-product-availability.entry.js +0 -124
- package/dist/esm/salla-product-size-guide.entry.js +0 -48
- package/dist/esm/salla-quantity-input.entry.js +0 -97
- package/dist/esm/salla-rating-modal.entry.js +0 -165
- package/dist/esm/salla-rating-stars.entry.js +0 -79
- package/dist/esm/salla-swiper.entry.js +0 -5019
- package/dist/esm/salla-tab-content_3.entry.js +0 -153
- package/dist/esm/star2-b134fc74.js +0 -11
- package/dist/twilight-components/p-0d498694.entry.js +0 -4
- package/dist/twilight-components/p-14f0ff17.entry.js +0 -4
- package/dist/twilight-components/p-335abbbb.entry.js +0 -4
- package/dist/twilight-components/p-4cafb11b.entry.js +0 -4
- package/dist/twilight-components/p-5e63e308.entry.js +0 -4
- package/dist/twilight-components/p-5fb32395.entry.js +0 -4
- package/dist/twilight-components/p-648e74e5.entry.js +0 -4
- package/dist/twilight-components/p-6a3adf55.entry.js +0 -4
- package/dist/twilight-components/p-6da4bb74.entry.js +0 -4
- package/dist/twilight-components/p-897b2018.js +0 -4
- package/dist/twilight-components/p-93708e1e.js +0 -4
- package/dist/twilight-components/p-9d236cf4.entry.js +0 -4
- package/dist/twilight-components/p-9d2ca9c8.js +0 -4
- package/dist/twilight-components/p-af7d5660.js +0 -4
- package/dist/twilight-components/p-bdbd2386.entry.js +0 -4
- package/dist/twilight-components/p-cac3db69.entry.js +0 -4
- package/dist/twilight-components/p-d914a212.js +0 -4
- package/dist/twilight-components/p-dace8e6d.js +0 -4
- package/dist/twilight-components/p-f9253fda.entry.js +0 -4
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
export declare enum FileStatus {
|
|
3
|
+
INIT = 1,
|
|
4
|
+
IDLE = 2,
|
|
5
|
+
PROCESSING_QUEUED = 9,
|
|
6
|
+
PROCESSING = 3,
|
|
7
|
+
PROCESSING_COMPLETE = 5,
|
|
8
|
+
PROCESSING_ERROR = 6,
|
|
9
|
+
PROCESSING_REVERT_ERROR = 10,
|
|
10
|
+
LOADING = 7,
|
|
11
|
+
LOAD_ERROR = 8
|
|
12
|
+
}
|
|
13
|
+
export declare enum Status {
|
|
14
|
+
EMPTY = 0,
|
|
15
|
+
IDLE = 1,
|
|
16
|
+
ERROR = 2,
|
|
17
|
+
BUSY = 3,
|
|
18
|
+
READY = 4
|
|
19
|
+
}
|
|
20
|
+
export declare enum FileOrigin {
|
|
21
|
+
INPUT = 1,
|
|
22
|
+
LIMBO = 2,
|
|
23
|
+
LOCAL = 3
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Don't use this type explicitly within your code. It'll be replaced with the native `File` type in a future release.
|
|
27
|
+
*/
|
|
28
|
+
export declare type ActualFileObject = Blob & {
|
|
29
|
+
readonly lastModified: number;
|
|
30
|
+
readonly name: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A custom FilePond File.
|
|
34
|
+
*/
|
|
35
|
+
export declare class FilePondFile {
|
|
36
|
+
/** Returns the ID of the file. */
|
|
37
|
+
id: string;
|
|
38
|
+
/** Returns the server id of the file. */
|
|
39
|
+
serverId: string;
|
|
40
|
+
/** Returns the source of the file. */
|
|
41
|
+
source: ActualFileObject | string;
|
|
42
|
+
/** Returns the origin of the file. */
|
|
43
|
+
origin: FileOrigin;
|
|
44
|
+
/** Returns the current status of the file. */
|
|
45
|
+
status: FileStatus;
|
|
46
|
+
/** Returns the File object. */
|
|
47
|
+
file: ActualFileObject;
|
|
48
|
+
/** Returns the file extensions. */
|
|
49
|
+
fileExtension: string;
|
|
50
|
+
/** Returns the size of the file. */
|
|
51
|
+
fileSize: number;
|
|
52
|
+
/** Returns the type of the file. */
|
|
53
|
+
fileType: string;
|
|
54
|
+
/** Returns the full name of the file. */
|
|
55
|
+
filename: string;
|
|
56
|
+
/** Returns the name of the file without extension. */
|
|
57
|
+
filenameWithoutExtension: string;
|
|
58
|
+
/** Aborts loading of this file */
|
|
59
|
+
abortLoad: () => void;
|
|
60
|
+
/** Aborts processing of this file */
|
|
61
|
+
abortProcessing: () => void;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve metadata saved to the file, pass a key to retrieve
|
|
64
|
+
* a specific part of the metadata (e.g. 'crop' or 'resize').
|
|
65
|
+
* If no key is passed, the entire metadata object is returned.
|
|
66
|
+
*/
|
|
67
|
+
getMetadata: (key?: string) => any;
|
|
68
|
+
/** Add additional metadata to the file */
|
|
69
|
+
setMetadata: (key: string, value: any, silent?: boolean) => void;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A custom FilePond File. Don't confuse this with the native `File` type.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated use `FilePondFile` instead. This type will be removed in a future release.
|
|
75
|
+
*/
|
|
76
|
+
export declare class File extends FilePondFile {
|
|
77
|
+
}
|
|
78
|
+
export interface ServerUrl {
|
|
79
|
+
url: string;
|
|
80
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
81
|
+
withCredentials?: boolean;
|
|
82
|
+
headers?: {
|
|
83
|
+
[key: string]: string | boolean | number;
|
|
84
|
+
};
|
|
85
|
+
timeout?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Called when server response is received, useful for getting
|
|
88
|
+
* the unique file id from the server response.
|
|
89
|
+
*/
|
|
90
|
+
onload?: (response: any) => number | string;
|
|
91
|
+
/**
|
|
92
|
+
* Called when server error is received, receives the response
|
|
93
|
+
* body, useful to select the relevant error data.
|
|
94
|
+
*/
|
|
95
|
+
onerror?: (responseBody: any) => any;
|
|
96
|
+
/**
|
|
97
|
+
* Called with the formdata object right before it is sent,
|
|
98
|
+
* return extended formdata object to make changes.
|
|
99
|
+
*/
|
|
100
|
+
ondata?: (data: FormData) => FormData;
|
|
101
|
+
}
|
|
102
|
+
export declare type ProgressServerConfigFunction = (
|
|
103
|
+
/**
|
|
104
|
+
* Flag indicating if the resource has a length that can be calculated.
|
|
105
|
+
* If not, the totalDataAmount has no significant value. Setting this to
|
|
106
|
+
* false switches the FilePond loading indicator to infinite mode.
|
|
107
|
+
*/
|
|
108
|
+
isLengthComputable: boolean,
|
|
109
|
+
/** The amount of data currently transferred. */
|
|
110
|
+
loadedDataAmount: number,
|
|
111
|
+
/** The total amount of data to be transferred. */
|
|
112
|
+
totalDataAmount: number) => void;
|
|
113
|
+
export interface ProcessServerChunkTransferOptions {
|
|
114
|
+
chunkTransferId: string;
|
|
115
|
+
chunkServer: ServerUrl;
|
|
116
|
+
/**
|
|
117
|
+
* Chunk uploads enabled
|
|
118
|
+
*/
|
|
119
|
+
chunkUploads: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Forcing use of chunk uploads even for files smaller than chunk size
|
|
122
|
+
*/
|
|
123
|
+
chunkForce: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Size of chunks
|
|
126
|
+
*/
|
|
127
|
+
chunkSize: number;
|
|
128
|
+
/**
|
|
129
|
+
* Amount of times to retry upload of a chunk when it fails
|
|
130
|
+
*/
|
|
131
|
+
chunkRetryDelays: number[];
|
|
132
|
+
}
|
|
133
|
+
export declare type ProcessServerConfigFunction = (
|
|
134
|
+
/** The name of the input field. */
|
|
135
|
+
fieldName: string,
|
|
136
|
+
/** The actual file object to send. */
|
|
137
|
+
file: ActualFileObject, metadata: {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* Should call the load method when done and pass the returned server file id.
|
|
142
|
+
* This server file id is then used later on when reverting or restoring a file
|
|
143
|
+
* so that your server knows which file to return without exposing that info
|
|
144
|
+
* to the client.
|
|
145
|
+
*/
|
|
146
|
+
load: (p: string | {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
}) => void,
|
|
149
|
+
/** Call if something goes wrong, will exit after. */
|
|
150
|
+
error: (errorText: string) => void,
|
|
151
|
+
/**
|
|
152
|
+
* Should call the progress method to update the progress to 100% before calling load().
|
|
153
|
+
* Setting computable to false switches the loading indicator to infinite mode.
|
|
154
|
+
*/
|
|
155
|
+
progress: ProgressServerConfigFunction,
|
|
156
|
+
/** Let FilePond know the request has been cancelled. */
|
|
157
|
+
abort: () => void,
|
|
158
|
+
/**
|
|
159
|
+
* Let Filepond know and store the current file chunk transfer id so it can track the
|
|
160
|
+
* progress of the whole file upload
|
|
161
|
+
*/
|
|
162
|
+
transfer: (transferId: string) => void, options: ProcessServerChunkTransferOptions) => void;
|
|
163
|
+
export declare type RevertServerConfigFunction = (
|
|
164
|
+
/** Server file id of the file to restore. */
|
|
165
|
+
uniqueFieldId: any,
|
|
166
|
+
/** Should call the load method when done. */
|
|
167
|
+
load: () => void,
|
|
168
|
+
/** Call if something goes wrong, will exit after. */
|
|
169
|
+
error: (errorText: string) => void) => void;
|
|
170
|
+
export declare type RestoreServerConfigFunction = (
|
|
171
|
+
/** Server file id of the file to restore. */
|
|
172
|
+
uniqueFileId: any,
|
|
173
|
+
/** Should call the load method with a file object or blob when done. */
|
|
174
|
+
load: (file: ActualFileObject) => void,
|
|
175
|
+
/** Call if something goes wrong, will exit after. */
|
|
176
|
+
error: (errorText: string) => void,
|
|
177
|
+
/**
|
|
178
|
+
* Should call the progress method to update the progress to 100% before calling load().
|
|
179
|
+
* Setting computable to false switches the loading indicator to infinite mode.
|
|
180
|
+
*/
|
|
181
|
+
progress: ProgressServerConfigFunction,
|
|
182
|
+
/** Let FilePond know the request has been cancelled. */
|
|
183
|
+
abort: () => void,
|
|
184
|
+
/**
|
|
185
|
+
* Can call the headers method to supply FilePond with early response header string.
|
|
186
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders
|
|
187
|
+
*/
|
|
188
|
+
headers: (headersString: string) => void) => void;
|
|
189
|
+
export declare type LoadServerConfigFunction = (source: any,
|
|
190
|
+
/** Should call the load method with a file object or blob when done. */
|
|
191
|
+
load: (file: ActualFileObject | Blob) => void,
|
|
192
|
+
/** Call if something goes wrong, will exit after. */
|
|
193
|
+
error: (errorText: string) => void,
|
|
194
|
+
/**
|
|
195
|
+
* Should call the progress method to update the progress to 100% before calling load().
|
|
196
|
+
* Setting computable to false switches the loading indicator to infinite mode.
|
|
197
|
+
*/
|
|
198
|
+
progress: ProgressServerConfigFunction,
|
|
199
|
+
/** Let FilePond know the request has been cancelled. */
|
|
200
|
+
abort: () => void,
|
|
201
|
+
/**
|
|
202
|
+
* Can call the headers method to supply FilePond with early response header string.
|
|
203
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders>
|
|
204
|
+
*/
|
|
205
|
+
headers: (headersString: string) => void) => void;
|
|
206
|
+
export declare type FetchServerConfigFunction = (url: string,
|
|
207
|
+
/** Should call the load method with a file object or blob when done. */
|
|
208
|
+
load: (file: ActualFileObject | Blob) => void,
|
|
209
|
+
/** Call if something goes wrong, will exit after. */
|
|
210
|
+
error: (errorText: string) => void,
|
|
211
|
+
/**
|
|
212
|
+
* Should call the progress method to update the progress to 100% before calling load().
|
|
213
|
+
* Setting computable to false switches the loading indicator to infinite mode.
|
|
214
|
+
*/
|
|
215
|
+
progress: ProgressServerConfigFunction,
|
|
216
|
+
/** Let FilePond know the request has been cancelled. */
|
|
217
|
+
abort: () => void,
|
|
218
|
+
/**
|
|
219
|
+
* Can call the headers method to supply FilePond with early response header string.
|
|
220
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders
|
|
221
|
+
*/
|
|
222
|
+
headers: (headersString: string) => void) => void;
|
|
223
|
+
export declare type RemoveServerConfigFunction = (
|
|
224
|
+
/** Local file source */
|
|
225
|
+
source: any,
|
|
226
|
+
/** Call when done */
|
|
227
|
+
load: () => void,
|
|
228
|
+
/** Call if something goes wrong, will exit after. */
|
|
229
|
+
error: (errorText: string) => void) => void;
|
|
230
|
+
export interface FilePondInitialFile {
|
|
231
|
+
/** The server file reference. */
|
|
232
|
+
source: string;
|
|
233
|
+
options: {
|
|
234
|
+
/** Origin of file being added. */
|
|
235
|
+
type: 'input' | 'limbo' | 'local';
|
|
236
|
+
/** Mock file information. */
|
|
237
|
+
file?: {
|
|
238
|
+
name?: string;
|
|
239
|
+
size?: number;
|
|
240
|
+
type?: string;
|
|
241
|
+
};
|
|
242
|
+
/** File initial metadata. */
|
|
243
|
+
metadata?: {
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
export interface FilePondServerConfigProps {
|
|
249
|
+
/**
|
|
250
|
+
* Immediately upload new files to the server.
|
|
251
|
+
* @default true
|
|
252
|
+
*/
|
|
253
|
+
instantUpload?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* The maximum number of files that can be uploaded in parallel.
|
|
256
|
+
* @default 2
|
|
257
|
+
*/
|
|
258
|
+
maxParallelUploads?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Server API Configuration.
|
|
261
|
+
* See: https://pqina.nl/filepond/docs/patterns/api/server
|
|
262
|
+
* @default null
|
|
263
|
+
*/
|
|
264
|
+
server?: string | {
|
|
265
|
+
url?: string;
|
|
266
|
+
timeout?: number;
|
|
267
|
+
headers?: {
|
|
268
|
+
[key: string]: string | boolean | number;
|
|
269
|
+
};
|
|
270
|
+
process?: string | ServerUrl | ProcessServerConfigFunction | null;
|
|
271
|
+
revert?: string | ServerUrl | RevertServerConfigFunction | null;
|
|
272
|
+
restore?: string | ServerUrl | RestoreServerConfigFunction | null;
|
|
273
|
+
load?: string | ServerUrl | LoadServerConfigFunction | null;
|
|
274
|
+
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
|
|
275
|
+
remove?: RemoveServerConfigFunction | null;
|
|
276
|
+
} | null;
|
|
277
|
+
/**
|
|
278
|
+
* Enable chunk uploads
|
|
279
|
+
* @default false
|
|
280
|
+
*/
|
|
281
|
+
chunkUploads?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Force use of chunk uploads even for files smaller than chunk size
|
|
284
|
+
* @default false
|
|
285
|
+
*/
|
|
286
|
+
chunkForce?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Size of chunks (5MB default)
|
|
289
|
+
* @default 5000000
|
|
290
|
+
*/
|
|
291
|
+
chunkSize?: number;
|
|
292
|
+
/**
|
|
293
|
+
* Amount of times to retry upload of a chunk when it fails
|
|
294
|
+
* @default [500, 1000, 3000]
|
|
295
|
+
*/
|
|
296
|
+
chunkRetryDelays?: number[];
|
|
297
|
+
/**
|
|
298
|
+
* A list of file locations that should be loaded immediately.
|
|
299
|
+
* See: https://pqina.nl/filepond/docs/patterns/api/filepond-object/#setting-initial-files
|
|
300
|
+
* @default []
|
|
301
|
+
*/
|
|
302
|
+
files?: Array<FilePondInitialFile | ActualFileObject | Blob | string>;
|
|
303
|
+
}
|
|
304
|
+
export interface FilePondDragDropProps {
|
|
305
|
+
/**
|
|
306
|
+
* FilePond will catch all files dropped on the webpage.
|
|
307
|
+
* @default false
|
|
308
|
+
*/
|
|
309
|
+
dropOnPage?: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* Require drop on the FilePond element itself to catch the file.
|
|
312
|
+
* @default true
|
|
313
|
+
*/
|
|
314
|
+
dropOnElement?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* When enabled, files are validated before they are dropped.
|
|
317
|
+
* A file is not added when it’s invalid.
|
|
318
|
+
* @default false
|
|
319
|
+
*/
|
|
320
|
+
dropValidation?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Ignored file names when handling dropped directories.
|
|
323
|
+
* Dropping directories is not supported on all browsers.
|
|
324
|
+
* @default ['.ds_store', 'thumbs.db', 'desktop.ini']
|
|
325
|
+
*/
|
|
326
|
+
ignoredFiles?: string[];
|
|
327
|
+
}
|
|
328
|
+
export interface FilePondLabelProps {
|
|
329
|
+
/**
|
|
330
|
+
* The decimal separator used to render numbers.
|
|
331
|
+
* By default this is determined automatically.
|
|
332
|
+
* @default 'auto'
|
|
333
|
+
*/
|
|
334
|
+
labelDecimalSeparator?: string;
|
|
335
|
+
/**
|
|
336
|
+
* The thousands separator used to render numbers.
|
|
337
|
+
* By default this is determined automatically.
|
|
338
|
+
* @default 'auto'
|
|
339
|
+
*/
|
|
340
|
+
labelThousandsSeparator?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Default label shown to indicate this is a drop area.
|
|
343
|
+
* FilePond will automatically bind browse file events to
|
|
344
|
+
* the element with CSS class .filepond--label-action.
|
|
345
|
+
* @default 'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>'
|
|
346
|
+
*/
|
|
347
|
+
labelIdle?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Label shown when the field contains invalid files and is validated by the parent form.
|
|
350
|
+
* @default 'Field contains invalid files'
|
|
351
|
+
*/
|
|
352
|
+
labelInvalidField?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Label used while waiting for file size information.
|
|
355
|
+
* @default 'Waiting for size'
|
|
356
|
+
*/
|
|
357
|
+
labelFileWaitingForSize?: string;
|
|
358
|
+
/**
|
|
359
|
+
* Label used when no file size information was received.
|
|
360
|
+
* @default 'Size not available'
|
|
361
|
+
*/
|
|
362
|
+
labelFileSizeNotAvailable?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Label used when showing the number of files and there is only one.
|
|
365
|
+
* @default 'file in list'
|
|
366
|
+
*/
|
|
367
|
+
labelFileCountSingular?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Label used when showing the number of files and there is more than one.
|
|
370
|
+
* @default 'files in list'
|
|
371
|
+
*/
|
|
372
|
+
labelFileCountPlural?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Label used while loading a file.
|
|
375
|
+
* @default 'Loading'
|
|
376
|
+
*/
|
|
377
|
+
labelFileLoading?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Label used when file is added (assistive only).
|
|
380
|
+
* @default 'Added'
|
|
381
|
+
*/
|
|
382
|
+
labelFileAdded?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Label used when file load failed.
|
|
385
|
+
* @default 'Error during load'
|
|
386
|
+
*/
|
|
387
|
+
labelFileLoadError?: ((error: any) => string) | string;
|
|
388
|
+
/**
|
|
389
|
+
* Label used when file is removed (assistive only).
|
|
390
|
+
* @default 'Removed'
|
|
391
|
+
*/
|
|
392
|
+
labelFileRemoved?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Label used when something went during during removing the file upload.
|
|
395
|
+
* @default 'Error during remove'
|
|
396
|
+
*/
|
|
397
|
+
labelFileRemoveError?: ((error: any) => string) | string;
|
|
398
|
+
/**
|
|
399
|
+
* Label used when uploading a file.
|
|
400
|
+
* @default 'Uploading'
|
|
401
|
+
*/
|
|
402
|
+
labelFileProcessing?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Label used when file upload has completed.
|
|
405
|
+
* @default 'Upload complete'
|
|
406
|
+
*/
|
|
407
|
+
labelFileProcessingComplete?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Label used when upload was cancelled.
|
|
410
|
+
* @default 'Upload cancelled'
|
|
411
|
+
*/
|
|
412
|
+
labelFileProcessingAborted?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Label used when something went wrong during file upload.
|
|
415
|
+
* @default 'Error during upload'
|
|
416
|
+
*/
|
|
417
|
+
labelFileProcessingError?: ((error: any) => string) | string;
|
|
418
|
+
/**
|
|
419
|
+
* Label used when something went wrong during reverting the file upload.
|
|
420
|
+
* @default 'Error during revert'
|
|
421
|
+
*/
|
|
422
|
+
labelFileProcessingRevertError?: ((error: any) => string) | string;
|
|
423
|
+
/**
|
|
424
|
+
* Label used to indicate to the user that an action can be cancelled.
|
|
425
|
+
* @default 'tap to cancel'
|
|
426
|
+
*/
|
|
427
|
+
labelTapToCancel?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Label used to indicate to the user that an action can be retried.
|
|
430
|
+
* @default 'tap to retry'
|
|
431
|
+
*/
|
|
432
|
+
labelTapToRetry?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Label used to indicate to the user that an action can be undone.
|
|
435
|
+
* @default 'tap to undo'
|
|
436
|
+
*/
|
|
437
|
+
labelTapToUndo?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Label used for remove button.
|
|
440
|
+
* @default 'Remove'
|
|
441
|
+
*/
|
|
442
|
+
labelButtonRemoveItem?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Label used for abort load button.
|
|
445
|
+
* @default 'Abort'
|
|
446
|
+
*/
|
|
447
|
+
labelButtonAbortItemLoad?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Label used for retry load.
|
|
450
|
+
* @default 'Retry'
|
|
451
|
+
*/
|
|
452
|
+
labelButtonRetryItemLoad?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Label used for abort upload button.
|
|
455
|
+
* @default 'Cancel'
|
|
456
|
+
*/
|
|
457
|
+
labelButtonAbortItemProcessing?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Label used for undo upload button.
|
|
460
|
+
* @default 'Undo'
|
|
461
|
+
*/
|
|
462
|
+
labelButtonUndoItemProcessing?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Label used for retry upload button.
|
|
465
|
+
* @default 'Retry'
|
|
466
|
+
*/
|
|
467
|
+
labelButtonRetryItemProcessing?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Label used for upload button.
|
|
470
|
+
* @default 'Upload'
|
|
471
|
+
*/
|
|
472
|
+
labelButtonProcessItem?: string;
|
|
473
|
+
}
|
|
474
|
+
export interface FilePondSvgIconProps {
|
|
475
|
+
/**
|
|
476
|
+
* The icon used for remove actions.
|
|
477
|
+
* @default '<svg></svg>'
|
|
478
|
+
*/
|
|
479
|
+
iconRemove?: string;
|
|
480
|
+
/**
|
|
481
|
+
* The icon used for process actions.
|
|
482
|
+
* @default '<svg></svg>'
|
|
483
|
+
*/
|
|
484
|
+
iconProcess?: string;
|
|
485
|
+
/**
|
|
486
|
+
* The icon used for retry actions.
|
|
487
|
+
* @default '<svg></svg>'
|
|
488
|
+
*/
|
|
489
|
+
iconRetry?: string;
|
|
490
|
+
/**
|
|
491
|
+
* The icon used for undo actions.
|
|
492
|
+
* @default '<svg></svg>'
|
|
493
|
+
*/
|
|
494
|
+
iconUndo?: string;
|
|
495
|
+
/**
|
|
496
|
+
* The icon used for done.
|
|
497
|
+
* @default '<svg></svg>'
|
|
498
|
+
*/
|
|
499
|
+
iconDone?: string;
|
|
500
|
+
}
|
|
501
|
+
export interface FilePondErrorDescription {
|
|
502
|
+
type: string;
|
|
503
|
+
code: number;
|
|
504
|
+
body: string;
|
|
505
|
+
}
|
|
506
|
+
export interface FilePondCallbackProps {
|
|
507
|
+
/** FilePond instance has been created and is ready. */
|
|
508
|
+
oninit?: () => void;
|
|
509
|
+
/**
|
|
510
|
+
* FilePond instance throws a warning. For instance
|
|
511
|
+
* when the maximum amount of files has been reached.
|
|
512
|
+
* Optionally receives file if error is related to a
|
|
513
|
+
* file object.
|
|
514
|
+
*/
|
|
515
|
+
onwarning?: (error: any, file?: FilePondFile, status?: any) => void;
|
|
516
|
+
/**
|
|
517
|
+
* FilePond instance throws an error. Optionally receives
|
|
518
|
+
* file if error is related to a file object.
|
|
519
|
+
*/
|
|
520
|
+
onerror?: (error: FilePondErrorDescription, file?: FilePondFile, status?: any) => void;
|
|
521
|
+
/** Started file load. */
|
|
522
|
+
onaddfilestart?: (file: FilePondFile) => void;
|
|
523
|
+
/** Made progress loading a file. */
|
|
524
|
+
onaddfileprogress?: (file: FilePondFile, progress: number) => void;
|
|
525
|
+
/** If no error, file has been successfully loaded. */
|
|
526
|
+
onaddfile?: (error: FilePondErrorDescription | null, file: FilePondFile) => void;
|
|
527
|
+
/** Started processing a file. */
|
|
528
|
+
onprocessfilestart?: (file: FilePondFile) => void;
|
|
529
|
+
/** Made progress processing a file. */
|
|
530
|
+
onprocessfileprogress?: (file: FilePondFile, progress: number) => void;
|
|
531
|
+
/** Aborted processing of a file. */
|
|
532
|
+
onprocessfileabort?: (file: FilePondFile) => void;
|
|
533
|
+
/** Processing of a file has been reverted. */
|
|
534
|
+
onprocessfilerevert?: (file: FilePondFile) => void;
|
|
535
|
+
/** If no error, Processing of a file has been completed. */
|
|
536
|
+
onprocessfile?: (error: FilePondErrorDescription | null, file: FilePondFile) => void;
|
|
537
|
+
/** Called when all files in the list have been processed. */
|
|
538
|
+
onprocessfiles?: () => void;
|
|
539
|
+
/** File has been removed. */
|
|
540
|
+
onremovefile?: (error: FilePondErrorDescription | null, file: FilePondFile) => void;
|
|
541
|
+
/**
|
|
542
|
+
* File has been transformed by the transform plugin or
|
|
543
|
+
* another plugin subscribing to the prepare_output filter.
|
|
544
|
+
* It receives the file item and the output data.
|
|
545
|
+
*/
|
|
546
|
+
onpreparefile?: (file: FilePondFile, output: any) => void;
|
|
547
|
+
/** A file has been added or removed, receives a list of file items. */
|
|
548
|
+
onupdatefiles?: (files: FilePondFile[]) => void;
|
|
549
|
+
onactivatefile?: (file: FilePondFile) => void;
|
|
550
|
+
/** Called when the files have been reordered */
|
|
551
|
+
onreorderfiles?: (files: FilePondFile[]) => void;
|
|
552
|
+
}
|
|
553
|
+
export interface FilePondHookProps {
|
|
554
|
+
/**
|
|
555
|
+
* FilePond is about to allow this item to be dropped, it can be a URL or a File object.
|
|
556
|
+
*
|
|
557
|
+
* Return `true` or `false` depending on if you want to allow the item to be dropped.
|
|
558
|
+
*/
|
|
559
|
+
beforeDropFile?: (file: FilePondFile | string) => boolean;
|
|
560
|
+
/**
|
|
561
|
+
* FilePond is about to add this file.
|
|
562
|
+
*
|
|
563
|
+
* Return `false` to prevent adding it, or return a `Promise` and resolve with `true` or `false`.
|
|
564
|
+
*/
|
|
565
|
+
beforeAddFile?: (item: FilePondFile) => boolean | Promise<boolean>;
|
|
566
|
+
/**
|
|
567
|
+
* FilePond is about to remove this file.
|
|
568
|
+
*
|
|
569
|
+
* Return `false` to prevent adding it, or return a `Promise` and resolve with `true` or `false`.
|
|
570
|
+
*/
|
|
571
|
+
beforeRemoveFile?: (item: FilePondFile) => boolean | Promise<boolean>;
|
|
572
|
+
}
|
|
573
|
+
export interface FilePondStyleProps {
|
|
574
|
+
/**
|
|
575
|
+
* Set a different layout render mode.
|
|
576
|
+
* @default null
|
|
577
|
+
*/
|
|
578
|
+
stylePanelLayout?: 'integrated' | 'compact' | 'circle' | 'integrated circle' | 'compact circle' | null;
|
|
579
|
+
/**
|
|
580
|
+
* Set a forced aspect ratio for the FilePond drop area.
|
|
581
|
+
*
|
|
582
|
+
* Accepts human readable aspect ratios like `1:1` or numeric aspect ratios like `0.75`.
|
|
583
|
+
* @default null
|
|
584
|
+
*/
|
|
585
|
+
stylePanelAspectRatio?: string | null;
|
|
586
|
+
/**
|
|
587
|
+
* Set a forced aspect ratio for the file items.
|
|
588
|
+
*
|
|
589
|
+
* Useful when rendering cropped or fixed aspect ratio images in grid view.
|
|
590
|
+
* @default null
|
|
591
|
+
*/
|
|
592
|
+
styleItemPanelAspectRatio?: string | null;
|
|
593
|
+
/**
|
|
594
|
+
* The position of the remove item button.
|
|
595
|
+
* @default 'left'
|
|
596
|
+
*/
|
|
597
|
+
styleButtonRemoveItemPosition?: string;
|
|
598
|
+
/**
|
|
599
|
+
* The position of the remove item button.
|
|
600
|
+
* @default 'right'
|
|
601
|
+
*/
|
|
602
|
+
styleButtonProcessItemPosition?: string;
|
|
603
|
+
/**
|
|
604
|
+
* The position of the load indicator.
|
|
605
|
+
* @default 'right'
|
|
606
|
+
*/
|
|
607
|
+
styleLoadIndicatorPosition?: string;
|
|
608
|
+
/**
|
|
609
|
+
* The position of the progress indicator.
|
|
610
|
+
* @default 'right'
|
|
611
|
+
*/
|
|
612
|
+
styleProgressIndicatorPosition?: string;
|
|
613
|
+
/**
|
|
614
|
+
* Enable to align the remove button to the left side of the file item.
|
|
615
|
+
* @default false
|
|
616
|
+
*/
|
|
617
|
+
styleButtonRemoveItemAlign?: boolean;
|
|
618
|
+
}
|
|
619
|
+
export declare type CaptureAttribute = "camera" | "microphone" | "camcorder";
|
|
620
|
+
export interface FilePondBaseProps {
|
|
621
|
+
/**
|
|
622
|
+
* The ID to add to the root element.
|
|
623
|
+
* @default null
|
|
624
|
+
*/
|
|
625
|
+
id?: string | null;
|
|
626
|
+
/**
|
|
627
|
+
* The input field name to use.
|
|
628
|
+
* @default 'filepond'
|
|
629
|
+
*/
|
|
630
|
+
name?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Class Name to put on wrapper.
|
|
633
|
+
* @default null
|
|
634
|
+
*/
|
|
635
|
+
className?: string | null;
|
|
636
|
+
/**
|
|
637
|
+
* Sets the required attribute to the output field.
|
|
638
|
+
* @default false
|
|
639
|
+
*/
|
|
640
|
+
required?: boolean;
|
|
641
|
+
/**
|
|
642
|
+
* Sets the disabled attribute to the output field.
|
|
643
|
+
* @default false
|
|
644
|
+
*/
|
|
645
|
+
disabled?: boolean;
|
|
646
|
+
/**
|
|
647
|
+
* Sets the given value to the capture attribute.
|
|
648
|
+
* @default null
|
|
649
|
+
*/
|
|
650
|
+
captureMethod?: CaptureAttribute | null;
|
|
651
|
+
/**
|
|
652
|
+
* Set to false to prevent FilePond from setting the file input field `accept` attribute to the value of the `acceptedFileTypes`.
|
|
653
|
+
*/
|
|
654
|
+
allowSyncAcceptAttribute?: boolean;
|
|
655
|
+
/**
|
|
656
|
+
* Enable or disable drag n’ drop.
|
|
657
|
+
* @default true
|
|
658
|
+
*/
|
|
659
|
+
allowDrop?: boolean;
|
|
660
|
+
/**
|
|
661
|
+
* Enable or disable file browser.
|
|
662
|
+
* @default true
|
|
663
|
+
*/
|
|
664
|
+
allowBrowse?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* Enable or disable pasting of files. Pasting files is not
|
|
667
|
+
* supported on all browsers.
|
|
668
|
+
* @default true
|
|
669
|
+
*/
|
|
670
|
+
allowPaste?: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* Enable or disable adding multiple files.
|
|
673
|
+
* @default false
|
|
674
|
+
*/
|
|
675
|
+
allowMultiple?: boolean;
|
|
676
|
+
/**
|
|
677
|
+
* Allow drop to replace a file, only works when allowMultiple is false.
|
|
678
|
+
* @default true
|
|
679
|
+
*/
|
|
680
|
+
allowReplace?: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* Allows the user to revert file upload.
|
|
683
|
+
* @default true
|
|
684
|
+
*/
|
|
685
|
+
allowRevert?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* Allows user to process a file. When set to false, this removes the file upload button.
|
|
688
|
+
* @default true
|
|
689
|
+
*/
|
|
690
|
+
allowProcess?: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Allows the user to reorder the file items
|
|
693
|
+
* @default false
|
|
694
|
+
*/
|
|
695
|
+
allowReorder?: boolean;
|
|
696
|
+
/**
|
|
697
|
+
* Allow only selecting directories with browse (no support for filtering dnd at this point)
|
|
698
|
+
* @default false
|
|
699
|
+
*/
|
|
700
|
+
allowDirectoriesOnly?: boolean;
|
|
701
|
+
/**
|
|
702
|
+
* Require the file to be successfully reverted before continuing.
|
|
703
|
+
* @default false
|
|
704
|
+
*/
|
|
705
|
+
forceRevert?: boolean;
|
|
706
|
+
/**
|
|
707
|
+
* The maximum number of files that filepond pond can handle.
|
|
708
|
+
* @default null
|
|
709
|
+
*/
|
|
710
|
+
maxFiles?: number | null;
|
|
711
|
+
/**
|
|
712
|
+
* Enables custom validity messages.
|
|
713
|
+
* @default false
|
|
714
|
+
*/
|
|
715
|
+
checkValidity?: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* Set to false to always add items to beginning or end of list.
|
|
718
|
+
* @default true
|
|
719
|
+
*/
|
|
720
|
+
itemInsertLocationFreedom?: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* Default index in list to add items that have been dropped at the top of the list.
|
|
723
|
+
* @default 'before'
|
|
724
|
+
*/
|
|
725
|
+
itemInsertLocation?: 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
|
|
726
|
+
/**
|
|
727
|
+
* The interval to use before showing each item being added to the list.
|
|
728
|
+
* @default 75
|
|
729
|
+
*/
|
|
730
|
+
itemInsertInterval?: number;
|
|
731
|
+
/**
|
|
732
|
+
* The base value used to calculate file size
|
|
733
|
+
* @default 1000
|
|
734
|
+
*/
|
|
735
|
+
fileSizeBase?: number;
|
|
736
|
+
/**
|
|
737
|
+
* Tells FilePond to store files in hidden file input elements so they can be posted along with
|
|
738
|
+
* normal form post. This only works if the browser supports the DataTransfer constructor,
|
|
739
|
+
* this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1
|
|
740
|
+
* and higher.
|
|
741
|
+
* @default false
|
|
742
|
+
*/
|
|
743
|
+
storeAsFile?: boolean;
|
|
744
|
+
/**
|
|
745
|
+
* Shows Powered by PQINA in footer. Can be disabled by setting to false, but please do
|
|
746
|
+
* link to https://pqina.nl somewhere else on your website, or otherwise donate to help
|
|
747
|
+
* keep the project alive.
|
|
748
|
+
* @default "Powered by PQINA"
|
|
749
|
+
*/
|
|
750
|
+
credits?: false;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @deprecated use `FilePondOptions`. This will be removed in a future release.
|
|
754
|
+
*/
|
|
755
|
+
export interface FilePondOptionProps extends FilePondDragDropProps, FilePondServerConfigProps, FilePondLabelProps, FilePondSvgIconProps, FilePondCallbackProps, FilePondHookProps, FilePondStyleProps, FilePondBaseProps {
|
|
756
|
+
}
|
|
757
|
+
export interface FilePondOptions extends FilePondDragDropProps, FilePondServerConfigProps, FilePondLabelProps, FilePondSvgIconProps, FilePondCallbackProps, FilePondHookProps, FilePondStyleProps, FilePondBaseProps {
|
|
758
|
+
}
|
|
759
|
+
export declare type FilePondEventPrefixed = 'FilePond:init' | 'FilePond:warning' | 'FilePond:error' | 'FilePond:addfilestart' | 'FilePond:addfileprogress' | 'FilePond:addfile' | 'FilePond:processfilestart' | 'FilePond:processfileprogress' | 'FilePond:processfileabort' | 'FilePond:processfilerevert' | 'FilePond:processfile' | 'FilePond:removefile' | 'FilePond:updatefiles' | 'FilePond:reorderfiles';
|
|
760
|
+
export declare type FilePondEvent = 'init' | 'warning' | 'error' | 'addfilestart' | 'addfileprogress' | 'addfile' | 'processfilestart' | 'processfileprogress' | 'processfileabort' | 'processfilerevert' | 'processfile' | 'removefile' | 'updatefiles' | 'reorderfiles';
|
|
761
|
+
export interface RemoveFileOptions {
|
|
762
|
+
remove?: boolean;
|
|
763
|
+
revert?: boolean;
|
|
764
|
+
}
|
|
765
|
+
export interface FilePond extends Required<FilePondOptions> {
|
|
766
|
+
}
|