ng2-file-upload 1.3.0 → 1.4.0

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.
Files changed (50) hide show
  1. package/bundles/ng2-file-upload.umd.js +2012 -1064
  2. package/bundles/ng2-file-upload.umd.js.map +1 -1
  3. package/bundles/ng2-file-upload.umd.min.js +2 -1
  4. package/bundles/ng2-file-upload.umd.min.js.map +1 -0
  5. package/esm2015/file-upload/file-drop.directive.js +139 -0
  6. package/esm2015/file-upload/file-item.class.js +268 -0
  7. package/esm2015/file-upload/file-like-object.class.js +60 -0
  8. package/esm2015/file-upload/file-select.directive.js +73 -0
  9. package/esm2015/file-upload/file-type.class.js +194 -0
  10. package/esm2015/file-upload/file-upload.module.js +18 -0
  11. package/esm2015/file-upload/file-uploader.class.js +845 -0
  12. package/esm2015/index.js +11 -0
  13. package/esm2015/ng2-file-upload.js +9 -0
  14. package/esm5/file-upload/file-drop.directive.js +171 -0
  15. package/esm5/file-upload/file-item.class.js +347 -0
  16. package/esm5/file-upload/file-like-object.class.js +67 -0
  17. package/esm5/file-upload/file-select.directive.js +84 -0
  18. package/esm5/file-upload/file-type.class.js +206 -0
  19. package/esm5/file-upload/file-upload.module.js +22 -0
  20. package/esm5/file-upload/file-uploader.class.js +1132 -0
  21. package/esm5/index.js +11 -0
  22. package/esm5/ng2-file-upload.js +9 -0
  23. package/fesm2015/ng2-file-upload.js +1599 -0
  24. package/fesm2015/ng2-file-upload.js.map +1 -0
  25. package/fesm5/ng2-file-upload.js +2020 -0
  26. package/fesm5/ng2-file-upload.js.map +1 -0
  27. package/file-upload/file-type.class.d.ts +2 -1
  28. package/ng2-file-upload.d.ts +3 -0
  29. package/ng2-file-upload.metadata.json +1 -1
  30. package/package.json +16 -27
  31. package/CHANGELOG.md +0 -133
  32. package/LICENSE +0 -22
  33. package/README.md +0 -65
  34. package/file-upload/file-drop.directive.js +0 -112
  35. package/file-upload/file-drop.directive.metadata.json +0 -1
  36. package/file-upload/file-item.class.js +0 -126
  37. package/file-upload/file-item.class.metadata.json +0 -1
  38. package/file-upload/file-like-object.class.js +0 -27
  39. package/file-upload/file-like-object.class.metadata.json +0 -1
  40. package/file-upload/file-select.directive.js +0 -57
  41. package/file-upload/file-select.directive.metadata.json +0 -1
  42. package/file-upload/file-type.class.js +0 -163
  43. package/file-upload/file-type.class.metadata.json +0 -1
  44. package/file-upload/file-upload.module.js +0 -24
  45. package/file-upload/file-upload.module.metadata.json +0 -1
  46. package/file-upload/file-uploader.class.js +0 -404
  47. package/file-upload/file-uploader.class.metadata.json +0 -1
  48. package/index.js +0 -11
  49. package/index.metadata.json +0 -1
  50. package/ng2-file-upload.js +0 -5
@@ -1,404 +0,0 @@
1
- "use strict";
2
- var core_1 = require("@angular/core");
3
- var file_like_object_class_1 = require("./file-like-object.class");
4
- var file_item_class_1 = require("./file-item.class");
5
- var file_type_class_1 = require("./file-type.class");
6
- function isFile(value) {
7
- return (File && value instanceof File);
8
- }
9
- var FileUploader = (function () {
10
- function FileUploader(options) {
11
- this.isUploading = false;
12
- this.queue = [];
13
- this.progress = 0;
14
- this._nextIndex = 0;
15
- this.options = {
16
- autoUpload: false,
17
- isHTML5: true,
18
- filters: [],
19
- removeAfterUpload: false,
20
- disableMultipart: false,
21
- formatDataFunction: function (item) { return item._file; },
22
- formatDataFunctionIsAsync: false
23
- };
24
- this.setOptions(options);
25
- this.response = new core_1.EventEmitter();
26
- }
27
- FileUploader.prototype.setOptions = function (options) {
28
- this.options = Object.assign(this.options, options);
29
- this.authToken = this.options.authToken;
30
- this.authTokenHeader = this.options.authTokenHeader || 'Authorization';
31
- this.autoUpload = this.options.autoUpload;
32
- this.options.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });
33
- if (this.options.maxFileSize) {
34
- this.options.filters.unshift({ name: 'fileSize', fn: this._fileSizeFilter });
35
- }
36
- if (this.options.allowedFileType) {
37
- this.options.filters.unshift({ name: 'fileType', fn: this._fileTypeFilter });
38
- }
39
- if (this.options.allowedMimeType) {
40
- this.options.filters.unshift({ name: 'mimeType', fn: this._mimeTypeFilter });
41
- }
42
- for (var i = 0; i < this.queue.length; i++) {
43
- this.queue[i].url = this.options.url;
44
- }
45
- };
46
- FileUploader.prototype.addToQueue = function (files, options, filters) {
47
- var _this = this;
48
- var list = [];
49
- for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {
50
- var file = files_1[_i];
51
- list.push(file);
52
- }
53
- var arrayOfFilters = this._getFilters(filters);
54
- var count = this.queue.length;
55
- var addedFileItems = [];
56
- list.map(function (some) {
57
- if (!options) {
58
- options = _this.options;
59
- }
60
- var temp = new file_like_object_class_1.FileLikeObject(some);
61
- if (_this._isValidFile(temp, arrayOfFilters, options)) {
62
- var fileItem = new file_item_class_1.FileItem(_this, some, options);
63
- addedFileItems.push(fileItem);
64
- _this.queue.push(fileItem);
65
- _this._onAfterAddingFile(fileItem);
66
- }
67
- else {
68
- var filter = arrayOfFilters[_this._failFilterIndex];
69
- _this._onWhenAddingFileFailed(temp, filter, options);
70
- }
71
- });
72
- if (this.queue.length !== count) {
73
- this._onAfterAddingAll(addedFileItems);
74
- this.progress = this._getTotalProgress();
75
- }
76
- this._render();
77
- if (this.options.autoUpload) {
78
- this.uploadAll();
79
- }
80
- };
81
- FileUploader.prototype.removeFromQueue = function (value) {
82
- var index = this.getIndexOfItem(value);
83
- var item = this.queue[index];
84
- if (item.isUploading) {
85
- item.cancel();
86
- }
87
- this.queue.splice(index, 1);
88
- this.progress = this._getTotalProgress();
89
- };
90
- FileUploader.prototype.clearQueue = function () {
91
- while (this.queue.length) {
92
- this.queue[0].remove();
93
- }
94
- this.progress = 0;
95
- };
96
- FileUploader.prototype.uploadItem = function (value) {
97
- var index = this.getIndexOfItem(value);
98
- var item = this.queue[index];
99
- var transport = this.options.isHTML5 ? '_xhrTransport' : '_iframeTransport';
100
- item._prepareToUploading();
101
- if (this.isUploading) {
102
- return;
103
- }
104
- this.isUploading = true;
105
- this[transport](item);
106
- };
107
- FileUploader.prototype.cancelItem = function (value) {
108
- var index = this.getIndexOfItem(value);
109
- var item = this.queue[index];
110
- var prop = this.options.isHTML5 ? item._xhr : item._form;
111
- if (item && item.isUploading) {
112
- prop.abort();
113
- }
114
- };
115
- FileUploader.prototype.uploadAll = function () {
116
- var items = this.getNotUploadedItems().filter(function (item) { return !item.isUploading; });
117
- if (!items.length) {
118
- return;
119
- }
120
- items.map(function (item) { return item._prepareToUploading(); });
121
- items[0].upload();
122
- };
123
- FileUploader.prototype.cancelAll = function () {
124
- var items = this.getNotUploadedItems();
125
- items.map(function (item) { return item.cancel(); });
126
- };
127
- FileUploader.prototype.isFile = function (value) {
128
- return isFile(value);
129
- };
130
- FileUploader.prototype.isFileLikeObject = function (value) {
131
- return value instanceof file_like_object_class_1.FileLikeObject;
132
- };
133
- FileUploader.prototype.getIndexOfItem = function (value) {
134
- return typeof value === 'number' ? value : this.queue.indexOf(value);
135
- };
136
- FileUploader.prototype.getNotUploadedItems = function () {
137
- return this.queue.filter(function (item) { return !item.isUploaded; });
138
- };
139
- FileUploader.prototype.getReadyItems = function () {
140
- return this.queue
141
- .filter(function (item) { return (item.isReady && !item.isUploading); })
142
- .sort(function (item1, item2) { return item1.index - item2.index; });
143
- };
144
- FileUploader.prototype.destroy = function () {
145
- return void 0;
146
- };
147
- FileUploader.prototype.onAfterAddingAll = function (fileItems) {
148
- return { fileItems: fileItems };
149
- };
150
- FileUploader.prototype.onBuildItemForm = function (fileItem, form) {
151
- return { fileItem: fileItem, form: form };
152
- };
153
- FileUploader.prototype.onAfterAddingFile = function (fileItem) {
154
- return { fileItem: fileItem };
155
- };
156
- FileUploader.prototype.onWhenAddingFileFailed = function (item, filter, options) {
157
- return { item: item, filter: filter, options: options };
158
- };
159
- FileUploader.prototype.onBeforeUploadItem = function (fileItem) {
160
- return { fileItem: fileItem };
161
- };
162
- FileUploader.prototype.onProgressItem = function (fileItem, progress) {
163
- return { fileItem: fileItem, progress: progress };
164
- };
165
- FileUploader.prototype.onProgressAll = function (progress) {
166
- return { progress: progress };
167
- };
168
- FileUploader.prototype.onSuccessItem = function (item, response, status, headers) {
169
- return { item: item, response: response, status: status, headers: headers };
170
- };
171
- FileUploader.prototype.onErrorItem = function (item, response, status, headers) {
172
- return { item: item, response: response, status: status, headers: headers };
173
- };
174
- FileUploader.prototype.onCancelItem = function (item, response, status, headers) {
175
- return { item: item, response: response, status: status, headers: headers };
176
- };
177
- FileUploader.prototype.onCompleteItem = function (item, response, status, headers) {
178
- return { item: item, response: response, status: status, headers: headers };
179
- };
180
- FileUploader.prototype.onCompleteAll = function () {
181
- return void 0;
182
- };
183
- FileUploader.prototype._mimeTypeFilter = function (item) {
184
- return !(this.options.allowedMimeType && this.options.allowedMimeType.indexOf(item.type) === -1);
185
- };
186
- FileUploader.prototype._fileSizeFilter = function (item) {
187
- return !(this.options.maxFileSize && item.size > this.options.maxFileSize);
188
- };
189
- FileUploader.prototype._fileTypeFilter = function (item) {
190
- return !(this.options.allowedFileType &&
191
- this.options.allowedFileType.indexOf(file_type_class_1.FileType.getMimeClass(item)) === -1);
192
- };
193
- FileUploader.prototype._onErrorItem = function (item, response, status, headers) {
194
- item._onError(response, status, headers);
195
- this.onErrorItem(item, response, status, headers);
196
- };
197
- FileUploader.prototype._onCompleteItem = function (item, response, status, headers) {
198
- item._onComplete(response, status, headers);
199
- this.onCompleteItem(item, response, status, headers);
200
- var nextItem = this.getReadyItems()[0];
201
- this.isUploading = false;
202
- if (nextItem) {
203
- nextItem.upload();
204
- return;
205
- }
206
- this.onCompleteAll();
207
- this.progress = this._getTotalProgress();
208
- this._render();
209
- };
210
- FileUploader.prototype._headersGetter = function (parsedHeaders) {
211
- return function (name) {
212
- if (name) {
213
- return parsedHeaders[name.toLowerCase()] || void 0;
214
- }
215
- return parsedHeaders;
216
- };
217
- };
218
- FileUploader.prototype._xhrTransport = function (item) {
219
- var _this = this;
220
- var that = this;
221
- var xhr = item._xhr = new XMLHttpRequest();
222
- var sendable;
223
- this._onBeforeUploadItem(item);
224
- if (typeof item._file.size !== 'number') {
225
- throw new TypeError('The file specified is no longer valid');
226
- }
227
- if (!this.options.disableMultipart) {
228
- sendable = new FormData();
229
- this._onBuildItemForm(item, sendable);
230
- var appendFile = function () { return sendable.append(item.alias, item._file, item.file.name); };
231
- if (!this.options.parametersBeforeFiles) {
232
- appendFile();
233
- }
234
- // For AWS, Additional Parameters must come BEFORE Files
235
- if (this.options.additionalParameter !== undefined) {
236
- Object.keys(this.options.additionalParameter).forEach(function (key) {
237
- var paramVal = _this.options.additionalParameter[key];
238
- // Allow an additional parameter to include the filename
239
- if (typeof paramVal === 'string' && paramVal.indexOf('{{file_name}}') >= 0) {
240
- paramVal = paramVal.replace('{{file_name}}', item.file.name);
241
- }
242
- sendable.append(key, paramVal);
243
- });
244
- }
245
- if (this.options.parametersBeforeFiles) {
246
- appendFile();
247
- }
248
- }
249
- else {
250
- sendable = this.options.formatDataFunction(item);
251
- }
252
- xhr.upload.onprogress = function (event) {
253
- var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);
254
- _this._onProgressItem(item, progress);
255
- };
256
- xhr.onload = function () {
257
- var headers = _this._parseHeaders(xhr.getAllResponseHeaders());
258
- var response = _this._transformResponse(xhr.response, headers);
259
- var gist = _this._isSuccessCode(xhr.status) ? 'Success' : 'Error';
260
- var method = '_on' + gist + 'Item';
261
- _this[method](item, response, xhr.status, headers);
262
- _this._onCompleteItem(item, response, xhr.status, headers);
263
- };
264
- xhr.onerror = function () {
265
- var headers = _this._parseHeaders(xhr.getAllResponseHeaders());
266
- var response = _this._transformResponse(xhr.response, headers);
267
- _this._onErrorItem(item, response, xhr.status, headers);
268
- _this._onCompleteItem(item, response, xhr.status, headers);
269
- };
270
- xhr.onabort = function () {
271
- var headers = _this._parseHeaders(xhr.getAllResponseHeaders());
272
- var response = _this._transformResponse(xhr.response, headers);
273
- _this._onCancelItem(item, response, xhr.status, headers);
274
- _this._onCompleteItem(item, response, xhr.status, headers);
275
- };
276
- xhr.open(item.method, item.url, true);
277
- xhr.withCredentials = item.withCredentials;
278
- if (this.options.headers) {
279
- for (var _i = 0, _a = this.options.headers; _i < _a.length; _i++) {
280
- var header = _a[_i];
281
- xhr.setRequestHeader(header.name, header.value);
282
- }
283
- }
284
- if (item.headers.length) {
285
- for (var _b = 0, _c = item.headers; _b < _c.length; _b++) {
286
- var header = _c[_b];
287
- xhr.setRequestHeader(header.name, header.value);
288
- }
289
- }
290
- if (this.authToken) {
291
- xhr.setRequestHeader(this.authTokenHeader, this.authToken);
292
- }
293
- xhr.onreadystatechange = function () {
294
- if (xhr.readyState == XMLHttpRequest.DONE) {
295
- that.response.emit(xhr.responseText);
296
- }
297
- };
298
- if (this.options.formatDataFunctionIsAsync) {
299
- sendable.then(function (result) { return xhr.send(JSON.stringify(result)); });
300
- }
301
- else {
302
- xhr.send(sendable);
303
- }
304
- this._render();
305
- };
306
- FileUploader.prototype._getTotalProgress = function (value) {
307
- if (value === void 0) { value = 0; }
308
- if (this.options.removeAfterUpload) {
309
- return value;
310
- }
311
- var notUploaded = this.getNotUploadedItems().length;
312
- var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;
313
- var ratio = 100 / this.queue.length;
314
- var current = value * ratio / 100;
315
- return Math.round(uploaded * ratio + current);
316
- };
317
- FileUploader.prototype._getFilters = function (filters) {
318
- if (!filters) {
319
- return this.options.filters;
320
- }
321
- if (Array.isArray(filters)) {
322
- return filters;
323
- }
324
- if (typeof filters === 'string') {
325
- var names_1 = filters.match(/[^\s,]+/g);
326
- return this.options.filters
327
- .filter(function (filter) { return names_1.indexOf(filter.name) !== -1; });
328
- }
329
- return this.options.filters;
330
- };
331
- FileUploader.prototype._render = function () {
332
- return void 0;
333
- };
334
- FileUploader.prototype._queueLimitFilter = function () {
335
- return this.options.queueLimit === undefined || this.queue.length < this.options.queueLimit;
336
- };
337
- FileUploader.prototype._isValidFile = function (file, filters, options) {
338
- var _this = this;
339
- this._failFilterIndex = -1;
340
- return !filters.length ? true : filters.every(function (filter) {
341
- _this._failFilterIndex++;
342
- return filter.fn.call(_this, file, options);
343
- });
344
- };
345
- FileUploader.prototype._isSuccessCode = function (status) {
346
- return (status >= 200 && status < 300) || status === 304;
347
- };
348
- FileUploader.prototype._transformResponse = function (response, headers) {
349
- return response;
350
- };
351
- FileUploader.prototype._parseHeaders = function (headers) {
352
- var parsed = {};
353
- var key;
354
- var val;
355
- var i;
356
- if (!headers) {
357
- return parsed;
358
- }
359
- headers.split('\n').map(function (line) {
360
- i = line.indexOf(':');
361
- key = line.slice(0, i).trim().toLowerCase();
362
- val = line.slice(i + 1).trim();
363
- if (key) {
364
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
365
- }
366
- });
367
- return parsed;
368
- };
369
- FileUploader.prototype._onWhenAddingFileFailed = function (item, filter, options) {
370
- this.onWhenAddingFileFailed(item, filter, options);
371
- };
372
- FileUploader.prototype._onAfterAddingFile = function (item) {
373
- this.onAfterAddingFile(item);
374
- };
375
- FileUploader.prototype._onAfterAddingAll = function (items) {
376
- this.onAfterAddingAll(items);
377
- };
378
- FileUploader.prototype._onBeforeUploadItem = function (item) {
379
- item._onBeforeUpload();
380
- this.onBeforeUploadItem(item);
381
- };
382
- FileUploader.prototype._onBuildItemForm = function (item, form) {
383
- item._onBuildForm(form);
384
- this.onBuildItemForm(item, form);
385
- };
386
- FileUploader.prototype._onProgressItem = function (item, progress) {
387
- var total = this._getTotalProgress(progress);
388
- this.progress = total;
389
- item._onProgress(progress);
390
- this.onProgressItem(item, progress);
391
- this.onProgressAll(total);
392
- this._render();
393
- };
394
- FileUploader.prototype._onSuccessItem = function (item, response, status, headers) {
395
- item._onSuccess(response, status, headers);
396
- this.onSuccessItem(item, response, status, headers);
397
- };
398
- FileUploader.prototype._onCancelItem = function (item, response, status, headers) {
399
- item._onCancel(response, status, headers);
400
- this.onCancelItem(item, response, status, headers);
401
- };
402
- return FileUploader;
403
- }());
404
- exports.FileUploader = FileUploader;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileUploader":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":66,"character":30,"context":{"typeName":"FileUploaderOptions"}}]}],"setOptions":[{"__symbolic":"method"}],"addToQueue":[{"__symbolic":"method"}],"removeFromQueue":[{"__symbolic":"method"}],"clearQueue":[{"__symbolic":"method"}],"uploadItem":[{"__symbolic":"method"}],"cancelItem":[{"__symbolic":"method"}],"uploadAll":[{"__symbolic":"method"}],"cancelAll":[{"__symbolic":"method"}],"isFile":[{"__symbolic":"method"}],"isFileLikeObject":[{"__symbolic":"method"}],"getIndexOfItem":[{"__symbolic":"method"}],"getNotUploadedItems":[{"__symbolic":"method"}],"getReadyItems":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"onAfterAddingAll":[{"__symbolic":"method"}],"onBuildItemForm":[{"__symbolic":"method"}],"onAfterAddingFile":[{"__symbolic":"method"}],"onWhenAddingFileFailed":[{"__symbolic":"method"}],"onBeforeUploadItem":[{"__symbolic":"method"}],"onProgressItem":[{"__symbolic":"method"}],"onProgressAll":[{"__symbolic":"method"}],"onSuccessItem":[{"__symbolic":"method"}],"onErrorItem":[{"__symbolic":"method"}],"onCancelItem":[{"__symbolic":"method"}],"onCompleteItem":[{"__symbolic":"method"}],"onCompleteAll":[{"__symbolic":"method"}],"_mimeTypeFilter":[{"__symbolic":"method"}],"_fileSizeFilter":[{"__symbolic":"method"}],"_fileTypeFilter":[{"__symbolic":"method"}],"_onErrorItem":[{"__symbolic":"method"}],"_onCompleteItem":[{"__symbolic":"method"}],"_headersGetter":[{"__symbolic":"method"}],"_xhrTransport":[{"__symbolic":"method"}],"_getTotalProgress":[{"__symbolic":"method"}],"_getFilters":[{"__symbolic":"method"}],"_render":[{"__symbolic":"method"}],"_queueLimitFilter":[{"__symbolic":"method"}],"_isValidFile":[{"__symbolic":"method"}],"_isSuccessCode":[{"__symbolic":"method"}],"_transformResponse":[{"__symbolic":"method"}],"_parseHeaders":[{"__symbolic":"method"}],"_onWhenAddingFileFailed":[{"__symbolic":"method"}],"_onAfterAddingFile":[{"__symbolic":"method"}],"_onAfterAddingAll":[{"__symbolic":"method"}],"_onBeforeUploadItem":[{"__symbolic":"method"}],"_onBuildItemForm":[{"__symbolic":"method"}],"_onProgressItem":[{"__symbolic":"method"}],"_onSuccessItem":[{"__symbolic":"method"}],"_onCancelItem":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileUploader":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":66,"character":30,"context":{"typeName":"FileUploaderOptions"}}]}],"setOptions":[{"__symbolic":"method"}],"addToQueue":[{"__symbolic":"method"}],"removeFromQueue":[{"__symbolic":"method"}],"clearQueue":[{"__symbolic":"method"}],"uploadItem":[{"__symbolic":"method"}],"cancelItem":[{"__symbolic":"method"}],"uploadAll":[{"__symbolic":"method"}],"cancelAll":[{"__symbolic":"method"}],"isFile":[{"__symbolic":"method"}],"isFileLikeObject":[{"__symbolic":"method"}],"getIndexOfItem":[{"__symbolic":"method"}],"getNotUploadedItems":[{"__symbolic":"method"}],"getReadyItems":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"onAfterAddingAll":[{"__symbolic":"method"}],"onBuildItemForm":[{"__symbolic":"method"}],"onAfterAddingFile":[{"__symbolic":"method"}],"onWhenAddingFileFailed":[{"__symbolic":"method"}],"onBeforeUploadItem":[{"__symbolic":"method"}],"onProgressItem":[{"__symbolic":"method"}],"onProgressAll":[{"__symbolic":"method"}],"onSuccessItem":[{"__symbolic":"method"}],"onErrorItem":[{"__symbolic":"method"}],"onCancelItem":[{"__symbolic":"method"}],"onCompleteItem":[{"__symbolic":"method"}],"onCompleteAll":[{"__symbolic":"method"}],"_mimeTypeFilter":[{"__symbolic":"method"}],"_fileSizeFilter":[{"__symbolic":"method"}],"_fileTypeFilter":[{"__symbolic":"method"}],"_onErrorItem":[{"__symbolic":"method"}],"_onCompleteItem":[{"__symbolic":"method"}],"_headersGetter":[{"__symbolic":"method"}],"_xhrTransport":[{"__symbolic":"method"}],"_getTotalProgress":[{"__symbolic":"method"}],"_getFilters":[{"__symbolic":"method"}],"_render":[{"__symbolic":"method"}],"_queueLimitFilter":[{"__symbolic":"method"}],"_isValidFile":[{"__symbolic":"method"}],"_isSuccessCode":[{"__symbolic":"method"}],"_transformResponse":[{"__symbolic":"method"}],"_parseHeaders":[{"__symbolic":"method"}],"_onWhenAddingFileFailed":[{"__symbolic":"method"}],"_onAfterAddingFile":[{"__symbolic":"method"}],"_onAfterAddingAll":[{"__symbolic":"method"}],"_onBeforeUploadItem":[{"__symbolic":"method"}],"_onBuildItemForm":[{"__symbolic":"method"}],"_onProgressItem":[{"__symbolic":"method"}],"_onSuccessItem":[{"__symbolic":"method"}],"_onCancelItem":[{"__symbolic":"method"}]}}}}]
package/index.js DELETED
@@ -1,11 +0,0 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- __export(require("./file-upload/file-select.directive"));
6
- __export(require("./file-upload/file-drop.directive"));
7
- __export(require("./file-upload/file-uploader.class"));
8
- __export(require("./file-upload/file-item.class"));
9
- __export(require("./file-upload/file-like-object.class"));
10
- var file_upload_module_1 = require("./file-upload/file-upload.module");
11
- exports.FileUploadModule = file_upload_module_1.FileUploadModule;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./file-upload/file-select.directive"},{"from":"./file-upload/file-drop.directive"},{"from":"./file-upload/file-uploader.class"},{"from":"./file-upload/file-item.class"},{"from":"./file-upload/file-like-object.class"},{"from":"./file-upload/file-upload.module","export":["FileUploadModule"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./file-upload/file-select.directive"},{"from":"./file-upload/file-drop.directive"},{"from":"./file-upload/file-uploader.class"},{"from":"./file-upload/file-item.class"},{"from":"./file-upload/file-like-object.class"},{"from":"./file-upload/file-upload.module","export":["FileUploadModule"]}]}]
@@ -1,5 +0,0 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- __export(require("./index"));