@syncfusion/ej2-inputs 30.2.4 → 31.1.17
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/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +1 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +1 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/color-picker/color-picker-model.d.ts +186 -0
- package/dist/ts/color-picker/color-picker.d.ts +398 -0
- package/dist/ts/color-picker/color-picker.ts +2209 -0
- package/dist/ts/color-picker/index.d.ts +5 -0
- package/dist/ts/color-picker/index.ts +5 -0
- package/dist/ts/common/index.d.ts +4 -0
- package/dist/ts/common/index.ts +4 -0
- package/dist/ts/common/signature-base.d.ts +340 -0
- package/dist/ts/common/signature-base.ts +1170 -0
- package/dist/ts/form-validator/form-validator-model.d.ts +121 -0
- package/dist/ts/form-validator/form-validator.d.ts +312 -0
- package/dist/ts/form-validator/form-validator.ts +1068 -0
- package/dist/ts/form-validator/index.d.ts +5 -0
- package/dist/ts/form-validator/index.ts +5 -0
- package/dist/ts/index.d.ts +18 -0
- package/dist/ts/index.ts +18 -0
- package/dist/ts/input/index.d.ts +4 -0
- package/dist/ts/input/index.ts +4 -0
- package/dist/ts/input/input.d.ts +345 -0
- package/dist/ts/input/input.ts +1277 -0
- package/dist/ts/maskedtextbox/base/index.d.ts +4 -0
- package/dist/ts/maskedtextbox/base/index.ts +4 -0
- package/dist/ts/maskedtextbox/base/mask-base.d.ts +134 -0
- package/dist/ts/maskedtextbox/base/mask-base.ts +1207 -0
- package/dist/ts/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +167 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +307 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +709 -0
- package/dist/ts/numerictextbox/index.d.ts +5 -0
- package/dist/ts/numerictextbox/index.ts +5 -0
- package/dist/ts/numerictextbox/numerictextbox-model.d.ts +228 -0
- package/dist/ts/numerictextbox/numerictextbox.d.ts +431 -0
- package/dist/ts/numerictextbox/numerictextbox.ts +1672 -0
- package/dist/ts/otp-input/index.d.ts +5 -0
- package/dist/ts/otp-input/index.ts +5 -0
- package/dist/ts/otp-input/otp-input-model.d.ts +165 -0
- package/dist/ts/otp-input/otp-input.d.ts +365 -0
- package/dist/ts/otp-input/otp-input.ts +924 -0
- package/dist/ts/rating/index.d.ts +5 -0
- package/dist/ts/rating/index.ts +5 -0
- package/dist/ts/rating/rating-model.d.ts +239 -0
- package/dist/ts/rating/rating.d.ts +416 -0
- package/dist/ts/rating/rating.ts +1101 -0
- package/dist/ts/signature/index.d.ts +5 -0
- package/dist/ts/signature/index.ts +5 -0
- package/dist/ts/signature/signature-model.d.ts +131 -0
- package/dist/ts/signature/signature.d.ts +167 -0
- package/dist/ts/signature/signature.ts +266 -0
- package/dist/ts/slider/index.d.ts +5 -0
- package/dist/ts/slider/index.ts +5 -0
- package/dist/ts/slider/slider-model.d.ts +401 -0
- package/dist/ts/slider/slider.d.ts +721 -0
- package/dist/ts/slider/slider.ts +3497 -0
- package/dist/ts/smart-textarea/caret-helper.d.ts +17 -0
- package/dist/ts/smart-textarea/caret-helper.ts +95 -0
- package/dist/ts/smart-textarea/index.d.ts +5 -0
- package/dist/ts/smart-textarea/index.ts +5 -0
- package/dist/ts/smart-textarea/smart-textarea-model.d.ts +44 -0
- package/dist/ts/smart-textarea/smart-textarea.d.ts +80 -0
- package/dist/ts/smart-textarea/smart-textarea.ts +518 -0
- package/dist/ts/speech-to-text/index.d.ts +5 -0
- package/dist/ts/speech-to-text/index.ts +5 -0
- package/dist/ts/speech-to-text/speech-to-text-model.d.ts +270 -0
- package/dist/ts/speech-to-text/speech-to-text.d.ts +487 -0
- package/dist/ts/speech-to-text/speech-to-text.ts +1008 -0
- package/dist/ts/textarea/index.d.ts +5 -0
- package/dist/ts/textarea/index.ts +5 -0
- package/dist/ts/textarea/textarea-model.d.ts +161 -0
- package/dist/ts/textarea/textarea.d.ts +237 -0
- package/dist/ts/textarea/textarea.ts +812 -0
- package/dist/ts/textbox/index.d.ts +5 -0
- package/dist/ts/textbox/index.ts +5 -0
- package/dist/ts/textbox/textbox-model.d.ts +155 -0
- package/dist/ts/textbox/textbox.d.ts +288 -0
- package/dist/ts/textbox/textbox.ts +872 -0
- package/dist/ts/uploader/index.d.ts +5 -0
- package/dist/ts/uploader/index.ts +5 -0
- package/dist/ts/uploader/uploader-model.d.ts +555 -0
- package/dist/ts/uploader/uploader.d.ts +1216 -0
- package/dist/ts/uploader/uploader.ts +4391 -0
- package/package.json +62 -12
- package/src/input/input.js +1 -1
- package/styles/bootstrap5.3-lite.css +3 -3
- package/styles/bootstrap5.3.css +5 -5
- package/styles/input/_layout.scss +0 -1
- package/styles/input/tailwind3.css +0 -1
- package/styles/tailwind-dark-lite.css +3 -3
- package/styles/tailwind-dark.css +5 -5
- package/styles/tailwind-lite.css +3 -3
- package/styles/tailwind.css +5 -5
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/uploader/_bootstrap5.3-definition.scss +1 -1
- package/styles/uploader/_tailwind-definition.scss +1 -1
- package/styles/uploader/bootstrap5.3.css +5 -5
- package/styles/uploader/tailwind-dark.css +5 -5
- package/styles/uploader/tailwind.css +5 -5
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import { Component, Property, Event, EmitType, EventHandler, L10n, compile, isNullOrUndefined, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, append, Animation } from '@syncfusion/ej2-base';import { addClass, removeClass, KeyboardEvents, KeyboardEventArgs, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';import { Collection, Complex, Browser, Ajax, BeforeSendEventArgs, getUniqueID, closest, remove } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { select, selectAll } from '@syncfusion/ej2-base';
|
|
2
|
+
import {DropEffect,ActionCompleteEventArgs,RenderingEventArgs,BeforeUploadEventArgs,FileListRenderingEventArgs,SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,BeforeRemoveEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader";
|
|
3
|
+
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class FilesProp
|
|
7
|
+
*/
|
|
8
|
+
export interface FilesPropModel {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the name of the file
|
|
12
|
+
*
|
|
13
|
+
* @default ''
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the size of the file
|
|
19
|
+
*
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the type of the file
|
|
26
|
+
*
|
|
27
|
+
* @default ''
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Interface for a class ButtonsProps
|
|
35
|
+
*/
|
|
36
|
+
export interface ButtonsPropsModel {
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the text or html content to browse button
|
|
40
|
+
*
|
|
41
|
+
* @default 'Browse...'
|
|
42
|
+
*/
|
|
43
|
+
browse?: string | HTMLElement;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the text or html content to upload button
|
|
47
|
+
*
|
|
48
|
+
* @default 'Upload'
|
|
49
|
+
*/
|
|
50
|
+
upload?: string | HTMLElement;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the text or html content to clear button
|
|
54
|
+
*
|
|
55
|
+
* @default 'Clear'
|
|
56
|
+
*/
|
|
57
|
+
clear?: string | HTMLElement;
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Interface for a class AsyncSettings
|
|
63
|
+
*/
|
|
64
|
+
export interface AsyncSettingsModel {
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the URL of save action that will receive the upload files and save in the server.
|
|
68
|
+
* The save action type must be POST request and define the argument as same input name used to render the component.
|
|
69
|
+
* The upload operations could not perform without this property.
|
|
70
|
+
*
|
|
71
|
+
* @default ''
|
|
72
|
+
*/
|
|
73
|
+
saveUrl?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the URL of remove action that receives the file information and handle the remove operation in server.
|
|
77
|
+
* The remove action type must be POST request and define “removeFileNames” attribute to get file information that will be removed.
|
|
78
|
+
* This property is optional.
|
|
79
|
+
*
|
|
80
|
+
* @default ''
|
|
81
|
+
*/
|
|
82
|
+
removeUrl?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Specifies the chunk size to split the large file into chunks, and upload it to the server in a sequential order.
|
|
86
|
+
* If the chunk size property has value, the uploader enables the chunk upload by default.
|
|
87
|
+
* It must be specified in bytes value.
|
|
88
|
+
*
|
|
89
|
+
* > For more information, refer to the [chunk upload](../../uploader/chunk-upload/) section from the documentation.
|
|
90
|
+
*
|
|
91
|
+
* @default 0
|
|
92
|
+
*/
|
|
93
|
+
chunkSize?: number;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the number of retries that the uploader can perform on the file failed to upload.
|
|
97
|
+
* By default, the uploader set 3 as maximum retries. This property must be specified to prevent infinity looping.
|
|
98
|
+
*
|
|
99
|
+
* @default 3
|
|
100
|
+
*/
|
|
101
|
+
retryCount?: number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Specifies the delay time in milliseconds that the automatic retry happens after the delay.
|
|
105
|
+
*
|
|
106
|
+
* @default 500
|
|
107
|
+
*/
|
|
108
|
+
retryAfterDelay?: number;
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Interface for a class Uploader
|
|
114
|
+
*/
|
|
115
|
+
export interface UploaderModel extends ComponentModel{
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Configures the save and remove URL to perform the upload operations in the server asynchronously.
|
|
119
|
+
*
|
|
120
|
+
* @default { saveUrl: '', removeUrl: '' }
|
|
121
|
+
*/
|
|
122
|
+
asyncSettings?: AsyncSettingsModel;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* By default, the file uploader component is processing the multiple files simultaneously.
|
|
126
|
+
* If sequentialUpload property is enabled, the file upload component performs the upload one after the other.
|
|
127
|
+
*
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
sequentialUpload?: boolean;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
134
|
+
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
135
|
+
*
|
|
136
|
+
* {% codeBlock src='uploader/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
137
|
+
*
|
|
138
|
+
* @default {}
|
|
139
|
+
*/
|
|
140
|
+
htmlAttributes?: { [key: string]: string };
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the CSS class name that can be appended with root element of the uploader.
|
|
144
|
+
* One or more custom CSS classes can be added to a uploader.
|
|
145
|
+
*
|
|
146
|
+
* @default ''
|
|
147
|
+
*/
|
|
148
|
+
cssClass?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Specifies Boolean value that indicates whether the component is enabled or disabled.
|
|
152
|
+
* The uploader component does not allow to interact when this property is disabled.
|
|
153
|
+
*
|
|
154
|
+
* @default true
|
|
155
|
+
*/
|
|
156
|
+
enabled?: boolean;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Specifies the HTML string that used to customize the content of each file in the list.
|
|
160
|
+
*
|
|
161
|
+
* > For more information, refer to the [template](../../uploader/template/) section from the documentation.
|
|
162
|
+
*
|
|
163
|
+
* @default null
|
|
164
|
+
* @aspType string
|
|
165
|
+
*/
|
|
166
|
+
template?: string | Function;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Specifies a Boolean value that indicates whether the multiple files can be browsed or
|
|
170
|
+
* dropped simultaneously in the uploader component.
|
|
171
|
+
*
|
|
172
|
+
* @default true
|
|
173
|
+
*/
|
|
174
|
+
multiple?: boolean;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* By default, the uploader component initiates automatic upload when the files are added in upload queue.
|
|
178
|
+
* If you want to manipulate the files before uploading to server, disable the autoUpload property.
|
|
179
|
+
* The buttons “upload” and “clear” will be hided from file list when autoUpload property is true.
|
|
180
|
+
*
|
|
181
|
+
* @default true
|
|
182
|
+
*/
|
|
183
|
+
autoUpload?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Specifies Boolean value that indicates whether to prevent the cross site scripting code in filename or not.
|
|
187
|
+
* The uploader component removes the cross-site scripting code or functions from the filename and shows the validation error message to the user when enableHtmlSanitizer is true.
|
|
188
|
+
*
|
|
189
|
+
* @default true
|
|
190
|
+
*/
|
|
191
|
+
enableHtmlSanitizer?: boolean;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* You can customize the default text of “browse, clear, and upload” buttons with plain text or HTML elements.
|
|
195
|
+
* The buttons’ text can be customized from localization also. If you configured both locale and buttons property,
|
|
196
|
+
* the uploader component considers the buttons property value.
|
|
197
|
+
* {% codeBlock src='uploader/buttons/index.md' %}{% endcodeBlock %}
|
|
198
|
+
*
|
|
199
|
+
* @default { browse : 'Browse...', clear: 'Clear', upload: 'Upload' }
|
|
200
|
+
*/
|
|
201
|
+
buttons?: ButtonsPropsModel;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Specifies the extensions of the file types allowed in the uploader component and pass the extensions
|
|
205
|
+
* with comma separators. For example,
|
|
206
|
+
* if you want to upload specific image files, pass allowedExtensions as “.jpg,.png”.
|
|
207
|
+
*
|
|
208
|
+
* @default ''
|
|
209
|
+
*/
|
|
210
|
+
allowedExtensions?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Specifies the minimum file size to be uploaded in bytes.
|
|
214
|
+
* The property used to make sure that you cannot upload empty files and small files.
|
|
215
|
+
*
|
|
216
|
+
* @default 0
|
|
217
|
+
*/
|
|
218
|
+
minFileSize?: number;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Specifies the maximum allowed file size to be uploaded in bytes.
|
|
222
|
+
* The property used to make sure that you cannot upload too large files.
|
|
223
|
+
*
|
|
224
|
+
* @default 30000000
|
|
225
|
+
*/
|
|
226
|
+
maxFileSize?: number;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Specifies the drop target to handle the drag-and-drop upload.
|
|
230
|
+
* By default, the component creates wrapper around file input that will act as drop target.
|
|
231
|
+
*
|
|
232
|
+
* > For more information, refer to the [drag-and-drop](../../uploader/file-source/#drag-and-drop) section from the documentation.
|
|
233
|
+
*
|
|
234
|
+
* @default null
|
|
235
|
+
*/
|
|
236
|
+
dropArea?: string | HTMLElement;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Specifies the list of files that will be preloaded on rendering of uploader component.
|
|
240
|
+
* The property used to view and remove the uploaded files from server. By default, the files are configured with
|
|
241
|
+
* uploaded successfully state. The following properties are mandatory to configure the preload files:
|
|
242
|
+
* * Name
|
|
243
|
+
* * Size
|
|
244
|
+
* * Type
|
|
245
|
+
*
|
|
246
|
+
* {% codeBlock src='uploader/files/index.md' %}{% endcodeBlock %}
|
|
247
|
+
*
|
|
248
|
+
* @default { name: '', size: null, type: '' }
|
|
249
|
+
*/
|
|
250
|
+
files?: FilesPropModel[];
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Specifies a Boolean value that indicates whether the default file list can be rendered.
|
|
254
|
+
* The property used to prevent default file list and design own template for file list.
|
|
255
|
+
*
|
|
256
|
+
* @default true
|
|
257
|
+
*/
|
|
258
|
+
showFileList?: boolean;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Specifies a Boolean value that indicates whether the folder of files can be browsed in the uploader component.
|
|
262
|
+
*
|
|
263
|
+
* > When enabled this property, it allows only files of folder to select or drop to upload and
|
|
264
|
+
* it cannot be allowed to select or drop files.
|
|
265
|
+
*
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
directoryUpload?: boolean;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Specifies the drag operation effect to the uploader component. Possible values are Copy , Move, Link and None.
|
|
272
|
+
*
|
|
273
|
+
* By default, the uploader component works based on the browser drag operation effect.
|
|
274
|
+
*
|
|
275
|
+
* @default 'Default'
|
|
276
|
+
*/
|
|
277
|
+
dropEffect?: DropEffect;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Triggers when the component is created.
|
|
281
|
+
*
|
|
282
|
+
* @event created
|
|
283
|
+
*/
|
|
284
|
+
created?: EmitType<Object>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Triggers after all the selected files has processed to upload successfully or failed to server.
|
|
288
|
+
*
|
|
289
|
+
* @event actionComplete
|
|
290
|
+
*/
|
|
291
|
+
actionComplete?: EmitType<ActionCompleteEventArgs>;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* DEPRECATED-Triggers before rendering each file item from the file list in a page.
|
|
295
|
+
* It helps to customize specific file item structure.
|
|
296
|
+
*
|
|
297
|
+
* @event rendering
|
|
298
|
+
*/
|
|
299
|
+
rendering?: EmitType<RenderingEventArgs>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Triggers when the upload process before. This event is used to add additional parameter with upload request.
|
|
303
|
+
*
|
|
304
|
+
* @event beforeUpload
|
|
305
|
+
*/
|
|
306
|
+
beforeUpload?: EmitType<BeforeUploadEventArgs>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Triggers before rendering each file item from the file list in a page.
|
|
310
|
+
* It helps to customize specific file item structure.
|
|
311
|
+
*
|
|
312
|
+
* @event fileListRendering
|
|
313
|
+
*/
|
|
314
|
+
fileListRendering?: EmitType<FileListRenderingEventArgs>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Triggers after selecting or dropping the files by adding the files in upload queue.
|
|
318
|
+
*
|
|
319
|
+
* @event selected
|
|
320
|
+
*/
|
|
321
|
+
selected?: EmitType<SelectedEventArgs>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Triggers when the upload process gets started. This event is used to add additional parameter with upload request.
|
|
325
|
+
*
|
|
326
|
+
* @event uploading
|
|
327
|
+
*/
|
|
328
|
+
uploading?: EmitType<UploadingEventArgs>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Triggers when the AJAX request gets success on uploading files or removing files.
|
|
332
|
+
*
|
|
333
|
+
* <table>
|
|
334
|
+
* <tr>
|
|
335
|
+
* <td colSpan=1 rowSpan=1>
|
|
336
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
337
|
+
* Description<br/></td></tr>
|
|
338
|
+
* <tr>
|
|
339
|
+
* <td colSpan=1 rowSpan=1>
|
|
340
|
+
* event<br/></td><td colSpan=1 rowSpan=1>
|
|
341
|
+
* Ajax progress event arguments.<br/></td></tr>
|
|
342
|
+
* <tr>
|
|
343
|
+
* <td colSpan=1 rowSpan=1>
|
|
344
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
345
|
+
* File information which is uploaded/removed.<br/></td></tr>
|
|
346
|
+
* <tr>
|
|
347
|
+
* <td colSpan=1 rowSpan=1>
|
|
348
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
349
|
+
* Name of the event<br/></td></tr>
|
|
350
|
+
* <tr>
|
|
351
|
+
* <td colSpan=1 rowSpan=1>
|
|
352
|
+
* operation<br/></td><td colSpan=1 rowSpan=1>
|
|
353
|
+
* It indicates the success of the operation whether its uploaded or removed<br/></td></tr>
|
|
354
|
+
* </table>
|
|
355
|
+
*
|
|
356
|
+
* @event success
|
|
357
|
+
*/
|
|
358
|
+
success?: EmitType<Object>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Triggers when the AJAX request fails on uploading or removing files.
|
|
362
|
+
*
|
|
363
|
+
* <table>
|
|
364
|
+
* <tr>
|
|
365
|
+
* <td colSpan=1 rowSpan=1>
|
|
366
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
367
|
+
* Description<br/></td></tr>
|
|
368
|
+
* <tr>
|
|
369
|
+
* <td colSpan=1 rowSpan=1>
|
|
370
|
+
* event<br/></td><td colSpan=1 rowSpan=1>
|
|
371
|
+
* Ajax progress event arguments.<br/></td></tr>
|
|
372
|
+
* <tr>
|
|
373
|
+
* <td colSpan=1 rowSpan=1>
|
|
374
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
375
|
+
* File information which is failed from upload/remove.<br/></td></tr>
|
|
376
|
+
* <tr>
|
|
377
|
+
* <td colSpan=1 rowSpan=1>
|
|
378
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
379
|
+
* Name of the event<br/></td></tr>
|
|
380
|
+
* <tr>
|
|
381
|
+
* <td colSpan=1 rowSpan=1>
|
|
382
|
+
* operation<br/></td><td colSpan=1 rowSpan=1>
|
|
383
|
+
* It indicates the failure of the operation whether its upload or remove<br/></td></tr>
|
|
384
|
+
* </table>
|
|
385
|
+
*
|
|
386
|
+
* @event failure
|
|
387
|
+
*/
|
|
388
|
+
failure?: EmitType<Object>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Triggers on removing the uploaded file. The event used to get confirm before removing the file from server.
|
|
392
|
+
*
|
|
393
|
+
* @event removing
|
|
394
|
+
*/
|
|
395
|
+
removing?: EmitType<RemovingEventArgs>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Triggers on remove the uploaded file. The event used to get confirm before remove the file from server.
|
|
399
|
+
*
|
|
400
|
+
* @event beforeRemove
|
|
401
|
+
*/
|
|
402
|
+
beforeRemove?: EmitType<BeforeRemoveEventArgs>;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Triggers before clearing the items in file list when clicking “clear”.
|
|
406
|
+
*
|
|
407
|
+
* @event clearing
|
|
408
|
+
*/
|
|
409
|
+
clearing?: EmitType<ClearingEventArgs>;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Triggers when uploading a file to the server using the AJAX request.
|
|
413
|
+
*
|
|
414
|
+
* <table>
|
|
415
|
+
* <tr>
|
|
416
|
+
* <td colSpan=1 rowSpan=1>
|
|
417
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
418
|
+
* Description<br/></td></tr>
|
|
419
|
+
* <tr>
|
|
420
|
+
* <td colSpan=1 rowSpan=1>
|
|
421
|
+
* event<br/></td><td colSpan=1 rowSpan=1>
|
|
422
|
+
* Ajax progress event arguments.<br/></td></tr>
|
|
423
|
+
* <tr>
|
|
424
|
+
* <td colSpan=1 rowSpan=1>
|
|
425
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
426
|
+
* File information which is uploading to server.<br/></td></tr>
|
|
427
|
+
* <tr>
|
|
428
|
+
* <td colSpan=1 rowSpan=1>
|
|
429
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
430
|
+
* Name of the event<br/></td></tr>
|
|
431
|
+
* </table>
|
|
432
|
+
*
|
|
433
|
+
* @event progress
|
|
434
|
+
*/
|
|
435
|
+
progress?: EmitType<Object>;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Triggers when changes occur in uploaded file list by selecting or dropping files.
|
|
439
|
+
*
|
|
440
|
+
* <table>
|
|
441
|
+
* <tr>
|
|
442
|
+
* <td colSpan=1 rowSpan=1>
|
|
443
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
444
|
+
* Description<br/></td></tr>
|
|
445
|
+
* <tr>
|
|
446
|
+
* <td colSpan=1 rowSpan=1>
|
|
447
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
448
|
+
* File information which is successfully uploaded to server or removed in server.<br/></td></tr>
|
|
449
|
+
* <tr>
|
|
450
|
+
* <td colSpan=1 rowSpan=1>
|
|
451
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
452
|
+
* Name of the event<br/></td></tr>
|
|
453
|
+
* </table>
|
|
454
|
+
*
|
|
455
|
+
* @event change
|
|
456
|
+
*/
|
|
457
|
+
change?: EmitType<Object>;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Fires when the chunk file uploaded successfully.
|
|
461
|
+
*
|
|
462
|
+
* <table>
|
|
463
|
+
* <tr>
|
|
464
|
+
* <td colSpan=1 rowSpan=1>
|
|
465
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
466
|
+
* Description<br/></td></tr>
|
|
467
|
+
* <tr>
|
|
468
|
+
* <td colSpan=1 rowSpan=1>
|
|
469
|
+
* chunkIndex<br/></td><td colSpan=1 rowSpan=1>
|
|
470
|
+
* Returns current chunk index.<br/></td></tr>
|
|
471
|
+
* <tr>
|
|
472
|
+
* <td colSpan=1 rowSpan=1>
|
|
473
|
+
* chunkSize<br/></td><td colSpan=1 rowSpan=1>
|
|
474
|
+
* Returns the size of the chunk file.<br/></td></tr>
|
|
475
|
+
* <tr>
|
|
476
|
+
* <td colSpan=1 rowSpan=1>
|
|
477
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
478
|
+
* File information which is uploading to server.<br/></td></tr>
|
|
479
|
+
* <tr>
|
|
480
|
+
* <td colSpan=1 rowSpan=1>
|
|
481
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
482
|
+
* Name of the event<br/></td></tr>
|
|
483
|
+
* </table>
|
|
484
|
+
*
|
|
485
|
+
* @event chunkSuccess
|
|
486
|
+
*/
|
|
487
|
+
chunkSuccess?: EmitType<Object>;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Fires if the chunk file failed to upload.
|
|
491
|
+
*
|
|
492
|
+
* <table>
|
|
493
|
+
* <tr>
|
|
494
|
+
* <td colSpan=1 rowSpan=1>
|
|
495
|
+
* Event arguments<br/></td><td colSpan=1 rowSpan=1>
|
|
496
|
+
* Description<br/></td></tr>
|
|
497
|
+
* <tr>
|
|
498
|
+
* <td colSpan=1 rowSpan=1>
|
|
499
|
+
* chunkIndex<br/></td><td colSpan=1 rowSpan=1>
|
|
500
|
+
* Returns current chunk index.<br/></td></tr>
|
|
501
|
+
* <tr>
|
|
502
|
+
* <td colSpan=1 rowSpan=1>
|
|
503
|
+
* chunkSize<br/></td><td colSpan=1 rowSpan=1>
|
|
504
|
+
* Returns the size of the chunk file.<br/></td></tr>
|
|
505
|
+
* <tr>
|
|
506
|
+
* <td colSpan=1 rowSpan=1>
|
|
507
|
+
* file<br/></td><td colSpan=1 rowSpan=1>
|
|
508
|
+
* File information which is uploading to server.<br/></td></tr>
|
|
509
|
+
* <tr>
|
|
510
|
+
* <td colSpan=1 rowSpan=1>
|
|
511
|
+
* name<br/></td><td colSpan=1 rowSpan=1>
|
|
512
|
+
* Name of the event<br/></td></tr>
|
|
513
|
+
* <tr>
|
|
514
|
+
* <td colSpan=1 rowSpan=1>
|
|
515
|
+
* totalChunk<br/></td><td colSpan=1 rowSpan=1>
|
|
516
|
+
* Returns the total chunk count<br/></td></tr>
|
|
517
|
+
* <tr>
|
|
518
|
+
* <td colSpan=1 rowSpan=1>
|
|
519
|
+
* cancel<br/></td><td colSpan=1 rowSpan=1>
|
|
520
|
+
* Prevent triggering of failure event when we pass true to this attribute<br/></td></tr>
|
|
521
|
+
* </table>
|
|
522
|
+
*
|
|
523
|
+
* @event chunkFailure
|
|
524
|
+
*/
|
|
525
|
+
chunkFailure?: EmitType<Object>;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Fires when every chunk upload process gets started. This event is used to add additional parameter with upload request.
|
|
529
|
+
*
|
|
530
|
+
* @event chunkUploading
|
|
531
|
+
*/
|
|
532
|
+
chunkUploading?: EmitType<UploadingEventArgs>;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Fires if cancel the chunk file uploading.
|
|
536
|
+
*
|
|
537
|
+
* @event canceling
|
|
538
|
+
*/
|
|
539
|
+
canceling?: EmitType<CancelEventArgs>;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Fires if pause the chunk file uploading.
|
|
543
|
+
*
|
|
544
|
+
* @event pausing
|
|
545
|
+
*/
|
|
546
|
+
pausing?: EmitType<PauseResumeEventArgs>;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Fires if resume the paused chunk file upload.
|
|
550
|
+
*
|
|
551
|
+
* @event resuming
|
|
552
|
+
*/
|
|
553
|
+
resuming?: EmitType<PauseResumeEventArgs>;
|
|
554
|
+
|
|
555
|
+
}
|