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,126 +0,0 @@
1
- "use strict";
2
- var file_like_object_class_1 = require("./file-like-object.class");
3
- var FileItem = (function () {
4
- function FileItem(uploader, some, options) {
5
- this.url = '/';
6
- this.headers = [];
7
- this.withCredentials = true;
8
- this.formData = [];
9
- this.isReady = false;
10
- this.isUploading = false;
11
- this.isUploaded = false;
12
- this.isSuccess = false;
13
- this.isCancel = false;
14
- this.isError = false;
15
- this.progress = 0;
16
- this.index = void 0;
17
- this.uploader = uploader;
18
- this.some = some;
19
- this.options = options;
20
- this.file = new file_like_object_class_1.FileLikeObject(some);
21
- this._file = some;
22
- if (uploader.options) {
23
- this.method = uploader.options.method || 'POST';
24
- this.alias = uploader.options.itemAlias || 'file';
25
- }
26
- this.url = uploader.options.url;
27
- }
28
- FileItem.prototype.upload = function () {
29
- try {
30
- this.uploader.uploadItem(this);
31
- }
32
- catch (e) {
33
- this.uploader._onCompleteItem(this, '', 0, {});
34
- this.uploader._onErrorItem(this, '', 0, {});
35
- }
36
- };
37
- FileItem.prototype.cancel = function () {
38
- this.uploader.cancelItem(this);
39
- };
40
- FileItem.prototype.remove = function () {
41
- this.uploader.removeFromQueue(this);
42
- };
43
- FileItem.prototype.onBeforeUpload = function () {
44
- return void 0;
45
- };
46
- FileItem.prototype.onBuildForm = function (form) {
47
- return { form: form };
48
- };
49
- FileItem.prototype.onProgress = function (progress) {
50
- return { progress: progress };
51
- };
52
- FileItem.prototype.onSuccess = function (response, status, headers) {
53
- return { response: response, status: status, headers: headers };
54
- };
55
- FileItem.prototype.onError = function (response, status, headers) {
56
- return { response: response, status: status, headers: headers };
57
- };
58
- FileItem.prototype.onCancel = function (response, status, headers) {
59
- return { response: response, status: status, headers: headers };
60
- };
61
- FileItem.prototype.onComplete = function (response, status, headers) {
62
- return { response: response, status: status, headers: headers };
63
- };
64
- FileItem.prototype._onBeforeUpload = function () {
65
- this.isReady = true;
66
- this.isUploading = true;
67
- this.isUploaded = false;
68
- this.isSuccess = false;
69
- this.isCancel = false;
70
- this.isError = false;
71
- this.progress = 0;
72
- this.onBeforeUpload();
73
- };
74
- FileItem.prototype._onBuildForm = function (form) {
75
- this.onBuildForm(form);
76
- };
77
- FileItem.prototype._onProgress = function (progress) {
78
- this.progress = progress;
79
- this.onProgress(progress);
80
- };
81
- FileItem.prototype._onSuccess = function (response, status, headers) {
82
- this.isReady = false;
83
- this.isUploading = false;
84
- this.isUploaded = true;
85
- this.isSuccess = true;
86
- this.isCancel = false;
87
- this.isError = false;
88
- this.progress = 100;
89
- this.index = void 0;
90
- this.onSuccess(response, status, headers);
91
- };
92
- FileItem.prototype._onError = function (response, status, headers) {
93
- this.isReady = false;
94
- this.isUploading = false;
95
- this.isUploaded = true;
96
- this.isSuccess = false;
97
- this.isCancel = false;
98
- this.isError = true;
99
- this.progress = 0;
100
- this.index = void 0;
101
- this.onError(response, status, headers);
102
- };
103
- FileItem.prototype._onCancel = function (response, status, headers) {
104
- this.isReady = false;
105
- this.isUploading = false;
106
- this.isUploaded = false;
107
- this.isSuccess = false;
108
- this.isCancel = true;
109
- this.isError = false;
110
- this.progress = 0;
111
- this.index = void 0;
112
- this.onCancel(response, status, headers);
113
- };
114
- FileItem.prototype._onComplete = function (response, status, headers) {
115
- this.onComplete(response, status, headers);
116
- if (this.uploader.options.removeAfterUpload) {
117
- this.remove();
118
- }
119
- };
120
- FileItem.prototype._prepareToUploading = function () {
121
- this.index = this.index || ++this.uploader._nextIndex;
122
- this.isReady = true;
123
- };
124
- return FileItem;
125
- }());
126
- exports.FileItem = FileItem;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileItem":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./file-uploader.class","name":"FileUploader"},{"__symbolic":"error","message":"Could not resolve type","line":27,"character":51,"context":{"typeName":"File"}},{"__symbolic":"reference","module":"./file-uploader.class","name":"FileUploaderOptions"}]}],"upload":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"onBeforeUpload":[{"__symbolic":"method"}],"onBuildForm":[{"__symbolic":"method"}],"onProgress":[{"__symbolic":"method"}],"onSuccess":[{"__symbolic":"method"}],"onError":[{"__symbolic":"method"}],"onCancel":[{"__symbolic":"method"}],"onComplete":[{"__symbolic":"method"}],"_onBeforeUpload":[{"__symbolic":"method"}],"_onBuildForm":[{"__symbolic":"method"}],"_onProgress":[{"__symbolic":"method"}],"_onSuccess":[{"__symbolic":"method"}],"_onError":[{"__symbolic":"method"}],"_onCancel":[{"__symbolic":"method"}],"_onComplete":[{"__symbolic":"method"}],"_prepareToUploading":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileItem":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./file-uploader.class","name":"FileUploader"},{"__symbolic":"error","message":"Could not resolve type","line":27,"character":51,"context":{"typeName":"File"}},{"__symbolic":"reference","module":"./file-uploader.class","name":"FileUploaderOptions"}]}],"upload":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"onBeforeUpload":[{"__symbolic":"method"}],"onBuildForm":[{"__symbolic":"method"}],"onProgress":[{"__symbolic":"method"}],"onSuccess":[{"__symbolic":"method"}],"onError":[{"__symbolic":"method"}],"onCancel":[{"__symbolic":"method"}],"onComplete":[{"__symbolic":"method"}],"_onBeforeUpload":[{"__symbolic":"method"}],"_onBuildForm":[{"__symbolic":"method"}],"_onProgress":[{"__symbolic":"method"}],"_onSuccess":[{"__symbolic":"method"}],"_onError":[{"__symbolic":"method"}],"_onCancel":[{"__symbolic":"method"}],"_onComplete":[{"__symbolic":"method"}],"_prepareToUploading":[{"__symbolic":"method"}]}}}}]
@@ -1,27 +0,0 @@
1
- "use strict";
2
- function isElement(node) {
3
- return !!(node && (node.nodeName || node.prop && node.attr && node.find));
4
- }
5
- var FileLikeObject = (function () {
6
- function FileLikeObject(fileOrInput) {
7
- this.rawFile = fileOrInput;
8
- var isInput = isElement(fileOrInput);
9
- var fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
10
- var postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';
11
- var method = '_createFrom' + postfix;
12
- this[method](fakePathOrObject);
13
- }
14
- FileLikeObject.prototype._createFromFakePath = function (path) {
15
- this.lastModifiedDate = void 0;
16
- this.size = void 0;
17
- this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();
18
- this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\') + 2);
19
- };
20
- FileLikeObject.prototype._createFromObject = function (object) {
21
- this.size = object.size;
22
- this.type = object.type;
23
- this.name = object.name;
24
- };
25
- return FileLikeObject;
26
- }());
27
- exports.FileLikeObject = FileLikeObject;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileLikeObject":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"_createFromFakePath":[{"__symbolic":"method"}],"_createFromObject":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileLikeObject":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"_createFromFakePath":[{"__symbolic":"method"}],"_createFromObject":[{"__symbolic":"method"}]}}}}]
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var core_1 = require("@angular/core");
12
- var file_uploader_class_1 = require("./file-uploader.class");
13
- var FileSelectDirective = (function () {
14
- function FileSelectDirective(element) {
15
- this.onFileSelected = new core_1.EventEmitter();
16
- this.element = element;
17
- }
18
- FileSelectDirective.prototype.getOptions = function () {
19
- return this.uploader.options;
20
- };
21
- FileSelectDirective.prototype.getFilters = function () {
22
- return {};
23
- };
24
- FileSelectDirective.prototype.isEmptyAfterSelection = function () {
25
- return !!this.element.nativeElement.attributes.multiple;
26
- };
27
- FileSelectDirective.prototype.onChange = function () {
28
- var files = this.element.nativeElement.files;
29
- var options = this.getOptions();
30
- var filters = this.getFilters();
31
- this.uploader.addToQueue(files, options, filters);
32
- this.onFileSelected.emit(files);
33
- if (this.isEmptyAfterSelection()) {
34
- this.element.nativeElement.value = '';
35
- }
36
- };
37
- return FileSelectDirective;
38
- }());
39
- __decorate([
40
- core_1.Input(),
41
- __metadata("design:type", file_uploader_class_1.FileUploader)
42
- ], FileSelectDirective.prototype, "uploader", void 0);
43
- __decorate([
44
- core_1.Output(),
45
- __metadata("design:type", core_1.EventEmitter)
46
- ], FileSelectDirective.prototype, "onFileSelected", void 0);
47
- __decorate([
48
- core_1.HostListener('change'),
49
- __metadata("design:type", Function),
50
- __metadata("design:paramtypes", []),
51
- __metadata("design:returntype", Object)
52
- ], FileSelectDirective.prototype, "onChange", null);
53
- FileSelectDirective = __decorate([
54
- core_1.Directive({ selector: '[ng2FileSelect]' }),
55
- __metadata("design:paramtypes", [core_1.ElementRef])
56
- ], FileSelectDirective);
57
- exports.FileSelectDirective = FileSelectDirective;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileSelectDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng2FileSelect]"}]}],"members":{"uploader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onFileSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"getOptions":[{"__symbolic":"method"}],"getFilters":[{"__symbolic":"method"}],"isEmptyAfterSelection":[{"__symbolic":"method"}],"onChange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["change"]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileSelectDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng2FileSelect]"}]}],"members":{"uploader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onFileSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"getOptions":[{"__symbolic":"method"}],"getFilters":[{"__symbolic":"method"}],"isEmptyAfterSelection":[{"__symbolic":"method"}],"onChange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["change"]}]}]}}}}]
@@ -1,163 +0,0 @@
1
- "use strict";
2
- var FileType = (function () {
3
- function FileType() {
4
- }
5
- FileType.getMimeClass = function (file) {
6
- var mimeClass = 'application';
7
- if (this.mime_psd.indexOf(file.type) !== -1) {
8
- mimeClass = 'image';
9
- }
10
- else if (file.type.match('image.*')) {
11
- mimeClass = 'image';
12
- }
13
- else if (file.type.match('video.*')) {
14
- mimeClass = 'video';
15
- }
16
- else if (file.type.match('audio.*')) {
17
- mimeClass = 'audio';
18
- }
19
- else if (file.type === 'application/pdf') {
20
- mimeClass = 'pdf';
21
- }
22
- else if (this.mime_compress.indexOf(file.type) !== -1) {
23
- mimeClass = 'compress';
24
- }
25
- else if (this.mime_doc.indexOf(file.type) !== -1) {
26
- mimeClass = 'doc';
27
- }
28
- else if (this.mime_xsl.indexOf(file.type) !== -1) {
29
- mimeClass = 'xls';
30
- }
31
- else if (this.mime_ppt.indexOf(file.type) !== -1) {
32
- mimeClass = 'ppt';
33
- }
34
- if (mimeClass === 'application') {
35
- mimeClass = this.fileTypeDetection(file.name);
36
- }
37
- return mimeClass;
38
- };
39
- FileType.fileTypeDetection = function (inputFilename) {
40
- var types = {
41
- 'jpg': 'image',
42
- 'jpeg': 'image',
43
- 'tif': 'image',
44
- 'psd': 'image',
45
- 'bmp': 'image',
46
- 'png': 'image',
47
- 'nef': 'image',
48
- 'tiff': 'image',
49
- 'cr2': 'image',
50
- 'dwg': 'image',
51
- 'cdr': 'image',
52
- 'ai': 'image',
53
- 'indd': 'image',
54
- 'pin': 'image',
55
- 'cdp': 'image',
56
- 'skp': 'image',
57
- 'stp': 'image',
58
- '3dm': 'image',
59
- 'mp3': 'audio',
60
- 'wav': 'audio',
61
- 'wma': 'audio',
62
- 'mod': 'audio',
63
- 'm4a': 'audio',
64
- 'compress': 'compress',
65
- 'zip': 'compress',
66
- 'rar': 'compress',
67
- '7z': 'compress',
68
- 'lz': 'compress',
69
- 'z01': 'compress',
70
- 'pdf': 'pdf',
71
- 'xls': 'xls',
72
- 'xlsx': 'xls',
73
- 'ods': 'xls',
74
- 'mp4': 'video',
75
- 'avi': 'video',
76
- 'wmv': 'video',
77
- 'mpg': 'video',
78
- 'mts': 'video',
79
- 'flv': 'video',
80
- '3gp': 'video',
81
- 'vob': 'video',
82
- 'm4v': 'video',
83
- 'mpeg': 'video',
84
- 'm2ts': 'video',
85
- 'mov': 'video',
86
- 'doc': 'doc',
87
- 'docx': 'doc',
88
- 'eps': 'doc',
89
- 'txt': 'doc',
90
- 'odt': 'doc',
91
- 'rtf': 'doc',
92
- 'ppt': 'ppt',
93
- 'pptx': 'ppt',
94
- 'pps': 'ppt',
95
- 'ppsx': 'ppt',
96
- 'odp': 'ppt'
97
- };
98
- var chunks = inputFilename.split('.');
99
- if (chunks.length < 2) {
100
- return 'application';
101
- }
102
- var extension = chunks[chunks.length - 1].toLowerCase();
103
- if (types[extension] === undefined) {
104
- return 'application';
105
- }
106
- else {
107
- return types[extension];
108
- }
109
- };
110
- return FileType;
111
- }());
112
- /* MS office */
113
- FileType.mime_doc = [
114
- 'application/msword',
115
- 'application/msword',
116
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
117
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
118
- 'application/vnd.ms-word.document.macroEnabled.12',
119
- 'application/vnd.ms-word.template.macroEnabled.12'
120
- ];
121
- FileType.mime_xsl = [
122
- 'application/vnd.ms-excel',
123
- 'application/vnd.ms-excel',
124
- 'application/vnd.ms-excel',
125
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
126
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
127
- 'application/vnd.ms-excel.sheet.macroEnabled.12',
128
- 'application/vnd.ms-excel.template.macroEnabled.12',
129
- 'application/vnd.ms-excel.addin.macroEnabled.12',
130
- 'application/vnd.ms-excel.sheet.binary.macroEnabled.12'
131
- ];
132
- FileType.mime_ppt = [
133
- 'application/vnd.ms-powerpoint',
134
- 'application/vnd.ms-powerpoint',
135
- 'application/vnd.ms-powerpoint',
136
- 'application/vnd.ms-powerpoint',
137
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
138
- 'application/vnd.openxmlformats-officedocument.presentationml.template',
139
- 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
140
- 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
141
- 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
142
- 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
143
- 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'
144
- ];
145
- /* PSD */
146
- FileType.mime_psd = [
147
- 'image/photoshop',
148
- 'image/x-photoshop',
149
- 'image/psd',
150
- 'application/photoshop',
151
- 'application/psd',
152
- 'zz-application/zz-winassoc-psd'
153
- ];
154
- /* Compressed files */
155
- FileType.mime_compress = [
156
- 'application/x-gtar',
157
- 'application/x-gcompress',
158
- 'application/compress',
159
- 'application/x-tar',
160
- 'application/x-rar-compressed',
161
- 'application/octet-stream'
162
- ];
163
- exports.FileType = FileType;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileType":{"__symbolic":"class","statics":{"mime_doc":["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],"mime_xsl":["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],"mime_ppt":["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],"mime_psd":["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],"mime_compress":["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream"]}}}},{"__symbolic":"module","version":1,"metadata":{"FileType":{"__symbolic":"class","statics":{"mime_doc":["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],"mime_xsl":["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],"mime_ppt":["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],"mime_psd":["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],"mime_compress":["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream"]}}}}]
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var common_1 = require("@angular/common");
9
- var core_1 = require("@angular/core");
10
- var file_drop_directive_1 = require("./file-drop.directive");
11
- var file_select_directive_1 = require("./file-select.directive");
12
- var FileUploadModule = (function () {
13
- function FileUploadModule() {
14
- }
15
- return FileUploadModule;
16
- }());
17
- FileUploadModule = __decorate([
18
- core_1.NgModule({
19
- imports: [common_1.CommonModule],
20
- declarations: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective],
21
- exports: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective]
22
- })
23
- ], FileUploadModule);
24
- exports.FileUploadModule = FileUploadModule;
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":3,"metadata":{"FileUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","module":"./file-drop.directive","name":"FileDropDirective"},{"__symbolic":"reference","module":"./file-select.directive","name":"FileSelectDirective"}],"exports":[{"__symbolic":"reference","module":"./file-drop.directive","name":"FileDropDirective"},{"__symbolic":"reference","module":"./file-select.directive","name":"FileSelectDirective"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"FileUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","module":"./file-drop.directive","name":"FileDropDirective"},{"__symbolic":"reference","module":"./file-select.directive","name":"FileSelectDirective"}],"exports":[{"__symbolic":"reference","module":"./file-drop.directive","name":"FileDropDirective"},{"__symbolic":"reference","module":"./file-select.directive","name":"FileSelectDirective"}]}]}]}}}]