| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- "use strict";
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- var core_1 = require("@angular/core");
- var common_1 = require("@angular/common");
- var platform_browser_1 = require("@angular/platform-browser");
- var button_1 = require("../button/button");
- var messages_1 = require("../messages/messages");
- var progressbar_1 = require("../progressbar/progressbar");
- var domhandler_1 = require("../dom/domhandler");
- var shared_1 = require("../common/shared");
- var http_1 = require("@angular/common/http");
- var FileUpload = /** @class */ (function () {
- function FileUpload(el, sanitizer, zone, http) {
- this.el = el;
- this.sanitizer = sanitizer;
- this.zone = zone;
- this.http = http;
- this.method = 'POST';
- this.invalidFileSizeMessageSummary = '{0}: Invalid file size, ';
- this.invalidFileSizeMessageDetail = 'maximum upload size is {0}.';
- this.invalidFileTypeMessageSummary = '{0}: Invalid file type, ';
- this.invalidFileTypeMessageDetail = 'allowed file types: {0}.';
- this.invalidFileLimitMessageDetail = 'limit is {0} at most.';
- this.invalidFileLimitMessageSummary = 'Maximum number of files exceeded, ';
- this.previewWidth = 50;
- this.chooseLabel = 'Choose';
- this.uploadLabel = 'Upload';
- this.cancelLabel = 'Cancel';
- this.showUploadButton = true;
- this.showCancelButton = true;
- this.mode = 'advanced';
- this.onBeforeUpload = new core_1.EventEmitter();
- this.onSend = new core_1.EventEmitter();
- this.onUpload = new core_1.EventEmitter();
- this.onError = new core_1.EventEmitter();
- this.onClear = new core_1.EventEmitter();
- this.onRemove = new core_1.EventEmitter();
- this.onSelect = new core_1.EventEmitter();
- this.onProgress = new core_1.EventEmitter();
- this.uploadHandler = new core_1.EventEmitter();
- this._files = [];
- this.progress = 0;
- this.uploadedFileCount = 0;
- }
- Object.defineProperty(FileUpload.prototype, "files", {
- get: function () {
- return this._files;
- },
- set: function (files) {
- this._files = [];
- for (var i = 0; i < files.length; i++) {
- var file = files[i];
- if (this.validate(file)) {
- if (this.isImage(file)) {
- file.objectURL = this.sanitizer.bypassSecurityTrustUrl((window.URL.createObjectURL(files[i])));
- }
- this._files.push(files[i]);
- }
- }
- },
- enumerable: true,
- configurable: true
- });
- FileUpload.prototype.ngAfterContentInit = function () {
- var _this = this;
- this.templates.forEach(function (item) {
- switch (item.getType()) {
- case 'file':
- _this.fileTemplate = item.template;
- break;
- case 'content':
- _this.contentTemplate = item.template;
- break;
- case 'toolbar':
- _this.toolbarTemplate = item.template;
- break;
- default:
- _this.fileTemplate = item.template;
- break;
- }
- });
- };
- FileUpload.prototype.ngAfterViewInit = function () {
- var _this = this;
- if (this.mode === 'advanced') {
- this.zone.runOutsideAngular(function () {
- if (_this.content)
- _this.content.nativeElement.addEventListener('dragover', _this.onDragOver.bind(_this));
- });
- }
- };
- FileUpload.prototype.onFileSelect = function (event) {
- if (event.type !== 'drop' && this.isIE11() && this.duplicateIEEvent) {
- this.duplicateIEEvent = false;
- return;
- }
- this.msgs = [];
- if (!this.multiple) {
- this.files = [];
- }
- var files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
- for (var i = 0; i < files.length; i++) {
- var file = files[i];
- if (!this.isFileSelected(file)) {
- if (this.validate(file)) {
- if (this.isImage(file)) {
- file.objectURL = this.sanitizer.bypassSecurityTrustUrl((window.URL.createObjectURL(files[i])));
- }
- this.files.push(files[i]);
- }
- }
- }
- this.onSelect.emit({ originalEvent: event, files: files });
- if (this.fileLimit && this.mode == "advanced") {
- this.checkFileLimit();
- }
- if (this.hasFiles() && this.auto && (!(this.mode === "advanced") || !this.isFileLimitExceeded())) {
- this.upload();
- }
- if (event.type !== 'drop' && this.isIE11()) {
- this.clearIEInput();
- }
- else {
- this.clearInputElement();
- }
- };
- FileUpload.prototype.isFileSelected = function (file) {
- for (var _i = 0, _a = this.files; _i < _a.length; _i++) {
- var sFile = _a[_i];
- if ((sFile.name + sFile.type + sFile.size) === (file.name + file.type + file.size)) {
- return true;
- }
- }
- return false;
- };
- FileUpload.prototype.isIE11 = function () {
- return !!window['MSInputMethodContext'] && !!document['documentMode'];
- };
- FileUpload.prototype.validate = function (file) {
- if (this.accept && !this.isFileTypeValid(file)) {
- this.msgs.push({
- severity: 'error',
- summary: this.invalidFileTypeMessageSummary.replace('{0}', file.name),
- detail: this.invalidFileTypeMessageDetail.replace('{0}', this.accept)
- });
- return false;
- }
- if (this.maxFileSize && file.size > this.maxFileSize) {
- this.msgs.push({
- severity: 'error',
- summary: this.invalidFileSizeMessageSummary.replace('{0}', file.name),
- detail: this.invalidFileSizeMessageDetail.replace('{0}', this.formatSize(this.maxFileSize))
- });
- return false;
- }
- return true;
- };
- FileUpload.prototype.isFileTypeValid = function (file) {
- var acceptableTypes = this.accept.split(',').map(function (type) { return type.trim(); });
- for (var _i = 0, acceptableTypes_1 = acceptableTypes; _i < acceptableTypes_1.length; _i++) {
- var type = acceptableTypes_1[_i];
- var acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type)
- : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase();
- if (acceptable) {
- return true;
- }
- }
- return false;
- };
- FileUpload.prototype.getTypeClass = function (fileType) {
- return fileType.substring(0, fileType.indexOf('/'));
- };
- FileUpload.prototype.isWildcard = function (fileType) {
- return fileType.indexOf('*') !== -1;
- };
- FileUpload.prototype.getFileExtension = function (file) {
- return '.' + file.name.split('.').pop();
- };
- FileUpload.prototype.isImage = function (file) {
- return /^image\//.test(file.type);
- };
- FileUpload.prototype.onImageLoad = function (img) {
- window.URL.revokeObjectURL(img.src);
- };
- FileUpload.prototype.upload = function () {
- var _this = this;
- if (this.customUpload) {
- if (this.fileLimit) {
- this.uploadedFileCount += this.files.length;
- }
- this.uploadHandler.emit({
- files: this.files
- });
- }
- else {
- this.uploading = true;
- this.msgs = [];
- var formData_1 = new FormData();
- this.onBeforeUpload.emit({
- 'formData': formData_1
- });
- for (var i = 0; i < this.files.length; i++) {
- formData_1.append(this.name, this.files[i], this.files[i].name);
- }
- this.http.post(this.url, formData_1, {
- headers: this.headers, reportProgress: true, observe: 'events', withCredentials: this.withCredentials
- }).subscribe(function (event) {
- switch (event.type) {
- case http_1.HttpEventType.Sent:
- _this.onSend.emit({
- originalEvent: event,
- 'formData': formData_1
- });
- break;
- case http_1.HttpEventType.Response:
- _this.uploading = false;
- _this.progress = 0;
- if (event['status'] >= 200 && event['status'] < 300) {
- if (_this.fileLimit) {
- _this.uploadedFileCount += _this.files.length;
- }
- _this.onUpload.emit({ originalEvent: event, files: _this.files });
- }
- else {
- _this.onError.emit({ files: _this.files });
- }
- _this.clear();
- break;
- case http_1.HttpEventType.UploadProgress: {
- if (event['loaded']) {
- _this.progress = Math.round((event['loaded'] * 100) / event['total']);
- }
- _this.onProgress.emit({ originalEvent: event, progress: _this.progress });
- break;
- }
- }
- }, function (error) {
- _this.uploading = false;
- _this.onError.emit({ files: _this.files, error: error });
- });
- }
- };
- FileUpload.prototype.clear = function () {
- this.files = [];
- this.onClear.emit();
- this.clearInputElement();
- };
- FileUpload.prototype.remove = function (event, index) {
- this.clearInputElement();
- this.onRemove.emit({ originalEvent: event, file: this.files[index] });
- this.files.splice(index, 1);
- };
- FileUpload.prototype.isFileLimitExceeded = function () {
- if (this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount && this.focus) {
- this.focus = false;
- }
- return this.fileLimit && this.fileLimit < this.files.length + this.uploadedFileCount;
- };
- FileUpload.prototype.isChooseDisabled = function () {
- return this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount;
- };
- FileUpload.prototype.checkFileLimit = function () {
- if (this.isFileLimitExceeded()) {
- this.msgs.push({
- severity: 'error',
- summary: this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString()),
- detail: this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())
- });
- }
- };
- FileUpload.prototype.clearInputElement = function () {
- if (this.advancedFileInput && this.advancedFileInput.nativeElement) {
- this.advancedFileInput.nativeElement.value = '';
- }
- if (this.basicFileInput && this.basicFileInput.nativeElement) {
- this.basicFileInput.nativeElement.value = '';
- }
- };
- FileUpload.prototype.clearIEInput = function () {
- if (this.advancedFileInput && this.advancedFileInput.nativeElement) {
- this.duplicateIEEvent = true; //IE11 fix to prevent onFileChange trigger again
- this.advancedFileInput.nativeElement.value = '';
- }
- };
- FileUpload.prototype.hasFiles = function () {
- return this.files && this.files.length > 0;
- };
- FileUpload.prototype.onDragEnter = function (e) {
- if (!this.disabled) {
- e.stopPropagation();
- e.preventDefault();
- }
- };
- FileUpload.prototype.onDragOver = function (e) {
- if (!this.disabled) {
- domhandler_1.DomHandler.addClass(this.content.nativeElement, 'ui-fileupload-highlight');
- this.dragHighlight = true;
- e.stopPropagation();
- e.preventDefault();
- }
- };
- FileUpload.prototype.onDragLeave = function (event) {
- if (!this.disabled) {
- domhandler_1.DomHandler.removeClass(this.content.nativeElement, 'ui-fileupload-highlight');
- }
- };
- FileUpload.prototype.onDrop = function (event) {
- if (!this.disabled) {
- domhandler_1.DomHandler.removeClass(this.content.nativeElement, 'ui-fileupload-highlight');
- event.stopPropagation();
- event.preventDefault();
- var files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
- var allowDrop = this.multiple || (files && files.length === 1);
- if (allowDrop) {
- this.onFileSelect(event);
- }
- }
- };
- FileUpload.prototype.onFocus = function () {
- this.focus = true;
- };
- FileUpload.prototype.onBlur = function () {
- this.focus = false;
- };
- FileUpload.prototype.formatSize = function (bytes) {
- if (bytes == 0) {
- return '0 B';
- }
- var k = 1000, dm = 3, sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], i = Math.floor(Math.log(bytes) / Math.log(k));
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
- };
- FileUpload.prototype.onSimpleUploaderClick = function (event) {
- if (this.hasFiles()) {
- this.upload();
- }
- };
- FileUpload.prototype.getBlockableElement = function () {
- return this.el.nativeElement.children[0];
- };
- FileUpload.prototype.ngOnDestroy = function () {
- if (this.content && this.content.nativeElement) {
- this.content.nativeElement.removeEventListener('dragover', this.onDragOver);
- }
- };
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "name", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "url", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "method", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "multiple", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "accept", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "disabled", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "auto", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "withCredentials", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Number)
- ], FileUpload.prototype, "maxFileSize", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileSizeMessageSummary", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileSizeMessageDetail", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileTypeMessageSummary", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileTypeMessageDetail", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileLimitMessageDetail", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "invalidFileLimitMessageSummary", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Object)
- ], FileUpload.prototype, "style", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "styleClass", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Number)
- ], FileUpload.prototype, "previewWidth", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "chooseLabel", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "uploadLabel", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "cancelLabel", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "showUploadButton", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "showCancelButton", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", String)
- ], FileUpload.prototype, "mode", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", http_1.HttpHeaders)
- ], FileUpload.prototype, "headers", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Boolean)
- ], FileUpload.prototype, "customUpload", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Number)
- ], FileUpload.prototype, "fileLimit", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onBeforeUpload", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onSend", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onUpload", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onError", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onClear", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onRemove", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onSelect", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "onProgress", void 0);
- __decorate([
- core_1.Output(),
- __metadata("design:type", core_1.EventEmitter)
- ], FileUpload.prototype, "uploadHandler", void 0);
- __decorate([
- core_1.ContentChildren(shared_1.PrimeTemplate),
- __metadata("design:type", core_1.QueryList)
- ], FileUpload.prototype, "templates", void 0);
- __decorate([
- core_1.ViewChild('advancedfileinput', { static: false }),
- __metadata("design:type", core_1.ElementRef)
- ], FileUpload.prototype, "advancedFileInput", void 0);
- __decorate([
- core_1.ViewChild('basicfileinput', { static: false }),
- __metadata("design:type", core_1.ElementRef)
- ], FileUpload.prototype, "basicFileInput", void 0);
- __decorate([
- core_1.ViewChild('content', { static: false }),
- __metadata("design:type", core_1.ElementRef)
- ], FileUpload.prototype, "content", void 0);
- __decorate([
- core_1.Input(),
- __metadata("design:type", Array),
- __metadata("design:paramtypes", [Object])
- ], FileUpload.prototype, "files", null);
- FileUpload = __decorate([
- core_1.Component({
- selector: 'p-fileUpload',
- template: "\n <div [ngClass]=\"'ui-fileupload ui-widget'\" [ngStyle]=\"style\" [class]=\"styleClass\" *ngIf=\"mode === 'advanced'\">\n <div class=\"ui-fileupload-buttonbar ui-widget-header ui-corner-top\">\n <span class=\"ui-fileupload-choose\" [label]=\"chooseLabel\" icon=\"pi pi-plus\" pButton [ngClass]=\"{'ui-state-focus': focus, 'ui-state-disabled':disabled || isChooseDisabled()}\"> \n <input #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple\" [accept]=\"accept\" [disabled]=\"disabled || isChooseDisabled()\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </span>\n\n <p-button *ngIf=\"!auto&&showUploadButton\" type=\"button\" [label]=\"uploadLabel\" icon=\"pi pi-upload\" (onClick)=\"upload()\" [disabled]=\"!hasFiles() || isFileLimitExceeded()\"></p-button>\n <p-button *ngIf=\"!auto&&showCancelButton\" type=\"button\" [label]=\"cancelLabel\" icon=\"pi pi-times\" (onClick)=\"clear()\" [disabled]=\"!hasFiles() ||\u00A0uploading\"></p-button>\n\n <ng-container *ngTemplateOutlet=\"toolbarTemplate\"></ng-container>\n </div>\n <div #content [ngClass]=\"{'ui-fileupload-content ui-widget-content ui-corner-bottom':true}\"\n (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\">\n <p-progressBar [value]=\"progress\" [showValue]=\"false\" *ngIf=\"hasFiles()\"></p-progressBar>\n\n <p-messages [value]=\"msgs\" [enableService]=\"false\"></p-messages>\n\n <div class=\"ui-fileupload-files\" *ngIf=\"hasFiles()\">\n <div *ngIf=\"!fileTemplate\">\n <div class=\"ui-fileupload-row\" *ngFor=\"let file of files; let i = index;\">\n <div><img [src]=\"file.objectURL\" *ngIf=\"isImage(file)\" [width]=\"previewWidth\" /></div>\n <div>{{file.name}}</div>\n <div>{{formatSize(file.size)}}</div>\n <div>\n <button type=\"button\" icon=\"pi pi-times\" pButton (click)=\"remove($event,i)\" [disabled]=\"uploading\"></button>\n </div>\n </div>\n </div>\n <div *ngIf=\"fileTemplate\">\n <ng-template ngFor [ngForOf]=\"files\" [ngForTemplate]=\"fileTemplate\"></ng-template>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n </div>\n <span *ngIf=\"mode === 'basic'\" [ngClass]=\"{'ui-button ui-fileupload-choose ui-widget ui-state-default ui-corner-all ui-button-text-icon-left': true, \n 'ui-fileupload-choose-selected': hasFiles(),'ui-state-focus': focus, 'ui-state-disabled':disabled}\"\n [ngStyle]=\"style\" [class]=\"styleClass\" (mouseup)=\"onSimpleUploaderClick($event)\">\n <span class=\"ui-button-icon-left pi\" [ngClass]=\"{'pi-plus': !hasFiles()||auto, 'pi-upload': hasFiles()&&!auto}\"></span>\n <span class=\"ui-button-text ui-clickable\">{{auto ? chooseLabel : hasFiles() ? files[0].name : chooseLabel}}</span>\n <input #basicfileinput type=\"file\" [accept]=\"accept\" [multiple]=\"multiple\" [disabled]=\"disabled\"\n (change)=\"onFileSelect($event)\" *ngIf=\"!hasFiles()\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </span>\n "
- }),
- __metadata("design:paramtypes", [core_1.ElementRef, platform_browser_1.DomSanitizer, core_1.NgZone, http_1.HttpClient])
- ], FileUpload);
- return FileUpload;
- }());
- exports.FileUpload = FileUpload;
- var FileUploadModule = /** @class */ (function () {
- function FileUploadModule() {
- }
- FileUploadModule = __decorate([
- core_1.NgModule({
- imports: [common_1.CommonModule, shared_1.SharedModule, button_1.ButtonModule, progressbar_1.ProgressBarModule, messages_1.MessagesModule],
- exports: [FileUpload, shared_1.SharedModule, button_1.ButtonModule, progressbar_1.ProgressBarModule, messages_1.MessagesModule],
- declarations: [FileUpload]
- })
- ], FileUploadModule);
- return FileUploadModule;
- }());
- exports.FileUploadModule = FileUploadModule;
- //# sourceMappingURL=fileupload.js.map
|